@esri/solutions-components 1.0.0-next.20250521 → 1.0.0-next.20250521.1
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/{2K7DGSFB.js → 23YJ5GOE.js} +2 -2
- package/dist/cdn/{5QHR547V.js → 24525IFF.js} +2 -2
- package/dist/cdn/{ACRGKPWC.js → 25ZSQ4Y4.js} +2 -2
- package/dist/cdn/{3F77DKKE.js → 2ECBDDEM.js} +2 -2
- package/dist/cdn/{DHBPFMCR.js → 2IN6EBD2.js} +2 -2
- package/dist/cdn/{2EXQ56RF.js → 2N36AAZW.js} +2 -2
- package/dist/cdn/{QJKNCR6A.js → 2OTIFQIN.js} +2 -2
- package/dist/cdn/{TOAZF57I.js → 2PCAQBP3.js} +2 -2
- package/dist/cdn/{SF4B7M4A.js → 2TGWW2EE.js} +2 -2
- package/dist/cdn/{VBF5NJZP.js → 2WHMOJKI.js} +2 -2
- package/dist/cdn/{C2E3A23D.js → 2Z7AL4WY.js} +2 -2
- package/dist/cdn/{M35BWF4P.js → 34ISDA3J.js} +2 -2
- package/dist/cdn/{G5LXVZNY.js → 3BFU2N33.js} +2 -2
- package/dist/cdn/{ESV3CXI2.js → 3MEA5DUO.js} +2 -2
- package/dist/cdn/{KKNWWLKQ.js → 3OQDT2PX.js} +2 -2
- package/dist/cdn/{VIYZL3B7.js → 3QD6OQGN.js} +2 -2
- package/dist/cdn/3QIZTD4O.js +4 -0
- package/dist/cdn/{AQWDAX6O.js → 3QSJRZNT.js} +2 -2
- package/dist/cdn/{NMVGGIT5.js → 3YDR5TNM.js} +2 -2
- package/dist/cdn/{VWQY7M2H.js → 3ZWTRRJN.js} +1 -1
- package/dist/cdn/{EASKU6IL.js → 3ZX46XLT.js} +2 -2
- package/dist/cdn/{M5UYAWRE.js → 45JWP6I3.js} +2 -2
- package/dist/cdn/{MBUHNSTZ.js → 4FV35CZ2.js} +4 -4
- package/dist/cdn/{XJ4IACYP.js → 4I5HWIEN.js} +2 -2
- package/dist/cdn/{KJT2MUWI.js → 4NZAMBEG.js} +2 -2
- package/dist/cdn/{4Z26DFOL.js → 4SKIALSW.js} +2 -2
- package/dist/cdn/{XS4B5XRB.js → 4W3OTNVQ.js} +2 -2
- package/dist/cdn/{LRP67MH5.js → 53ZP5E2V.js} +2 -2
- package/dist/cdn/{E5SEWVK4.js → 57KCCA45.js} +2 -2
- package/dist/cdn/{HFFKBS55.js → 57TFREKC.js} +1 -1
- package/dist/cdn/{VXPY22JC.js → 5D4SFQMX.js} +2 -2
- package/dist/cdn/{EBNAV3Y7.js → 5SI2WE3S.js} +2 -2
- package/dist/cdn/{YLP7M2HK.js → 5VKMQKEK.js} +1 -1
- package/dist/cdn/{27VZRIN5.js → 6FO4Q3E6.js} +2 -2
- package/dist/cdn/{JD4I4FDB.js → 6XL3O76R.js} +2 -2
- package/dist/cdn/{U7X224JI.js → 6YGV5ZHN.js} +2 -2
- package/dist/cdn/{7Q35EK3R.js → 6Z2DWNPT.js} +1 -1
- package/dist/cdn/{7DTTJ6XF.js → 73ZW6AZO.js} +2 -2
- package/dist/cdn/{2BAANPWO.js → 76ALAXVV.js} +2 -2
- package/dist/cdn/{LPVPGWBP.js → 7BW7YOBF.js} +2 -2
- package/dist/cdn/{NXSX7IHR.js → 7CKL36AK.js} +1 -1
- package/dist/cdn/{LPC72AFO.js → 7DG3DSPE.js} +2 -2
- package/dist/cdn/{BWISN2EI.js → 7RN23NYN.js} +2 -2
- package/dist/cdn/{ZMEYP6O5.js → 7SPIT3JA.js} +2 -2
- package/dist/cdn/{R75X3FLO.js → 7VOV57VQ.js} +2 -2
- package/dist/cdn/{XSBEWAUF.js → 7WQVJT5F.js} +2 -2
- package/dist/cdn/{VHRYIIEE.js → 7XECJH7Y.js} +1 -1
- package/dist/cdn/{6K2KSAYP.js → A62HEPRS.js} +2 -2
- package/dist/cdn/{CQBTEXB7.js → AAX2HQKV.js} +1 -1
- package/dist/cdn/{FHC7XWWV.js → AEA2NSI4.js} +2 -2
- package/dist/cdn/{3IGBLVGB.js → AJMDPQVN.js} +2 -2
- package/dist/cdn/{G3G55BG6.js → ANGBSTZ3.js} +2 -2
- package/dist/cdn/{MENGUY4H.js → ANZR4N6V.js} +2 -2
- package/dist/cdn/{LTJRIZ42.js → ASDGPISP.js} +2 -2
- package/dist/cdn/{FP46U5U5.js → AZ5AUWSV.js} +2 -2
- package/dist/cdn/{TAJSNUTI.js → B42KRM6Z.js} +2 -2
- package/dist/cdn/{WQUL53Q5.js → B73J3DHK.js} +2 -2
- package/dist/cdn/{V6ARYYKV.js → BEGVEBJJ.js} +2 -2
- package/dist/cdn/BEOKELUC.js +4 -0
- package/dist/cdn/{MNNJPYBV.js → BFH5SO2L.js} +1 -1
- package/dist/cdn/{3APWL446.js → BJ2EZS3Z.js} +2 -2
- package/dist/cdn/{DO6UOUZQ.js → BJFZKZXY.js} +2 -2
- package/dist/cdn/{XCYELAZU.js → BPTAOEJG.js} +2 -2
- package/dist/cdn/{WCPYDJKL.js → BRBPMYFG.js} +2 -2
- package/dist/cdn/{F7QLLECP.js → BWYEDUZX.js} +2 -2
- package/dist/cdn/{4JWQ7FCB.js → BXNKGYEI.js} +2 -2
- package/dist/cdn/{Q3TAJJU3.js → BZPPRNYK.js} +2 -2
- package/dist/cdn/{U6PBNDHL.js → CE3PZUP3.js} +1 -1
- package/dist/cdn/{HEIPP7RV.js → CFSCFQIJ.js} +2 -2
- package/dist/cdn/{UYZXNOJX.js → CGBW4C56.js} +2 -2
- package/dist/cdn/{3KG65DHY.js → CKIF7ITD.js} +2 -2
- package/dist/cdn/{LVY3WUSX.js → CQDNZU4P.js} +2 -2
- package/dist/cdn/{Y2JLI2XM.js → CW6CCZ73.js} +2 -2
- package/dist/cdn/{EDF6RBKC.js → CZDA3M6G.js} +2 -2
- package/dist/cdn/{KMXTJPWK.js → DEXEV3CF.js} +2 -2
- package/dist/cdn/{R6SL3N5H.js → DIELHCE6.js} +2 -2
- package/dist/cdn/{GCCEX2EM.js → DIR7QOWJ.js} +2 -2
- package/dist/cdn/{H2S3BYD2.js → DK32RK5U.js} +1 -1
- package/dist/cdn/{JNJEU67D.js → DNJH5UNS.js} +1 -1
- package/dist/cdn/{5NFJ7RS2.js → DRFVJJFB.js} +2 -2
- package/dist/cdn/{7Q5GFHJU.js → DW5MNUDP.js} +1 -1
- package/dist/cdn/{IUOYLDK2.js → E2ACXLVV.js} +2 -2
- package/dist/cdn/{OID7NDBF.js → EC5BCFOV.js} +2 -2
- package/dist/cdn/{RVOXAFUD.js → EF5JUDMP.js} +2 -2
- package/dist/cdn/{Y6CIXH5E.js → ELCX7XI2.js} +2 -2
- package/dist/cdn/{K75YNK4P.js → EMXWEQBM.js} +1 -1
- package/dist/cdn/{DBCECF2B.js → EPSCUZ73.js} +2 -2
- package/dist/cdn/{KHA6XWL7.js → EQREHHBY.js} +2 -2
- package/dist/cdn/{SXNJKD62.js → ETE327MH.js} +1 -1
- package/dist/cdn/{Y37XTU24.js → EV7HBUTQ.js} +2 -2
- package/dist/cdn/{PKKTKHZX.js → EVND7CLX.js} +2 -2
- package/dist/cdn/{VDUSHAW5.js → EYCGOAQV.js} +2 -2
- package/dist/cdn/{57ND4IBZ.js → F3UYT636.js} +2 -2
- package/dist/cdn/{KV6B4JKU.js → F5UQ42HE.js} +2 -2
- package/dist/cdn/{SWOLF6SR.js → FDHX3KKE.js} +2 -2
- package/dist/cdn/{FV4JCJSW.js → FFUCQ7IU.js} +2 -2
- package/dist/cdn/{O7I7OGXT.js → FHZLYB2S.js} +2 -2
- package/dist/cdn/{FJIAFDKB.js → FJEXAORI.js} +2 -2
- package/dist/cdn/{5PFKGFCK.js → FOESISXO.js} +2 -2
- package/dist/cdn/{2SH4JASC.js → FQH25K2H.js} +2 -2
- package/dist/cdn/G36LLGTJ.js +4 -0
- package/dist/cdn/{AVJL2GFG.js → G4WDN3WM.js} +2 -2
- package/dist/cdn/{O5IPTC4U.js → GGFHUOLW.js} +2 -2
- package/dist/cdn/{RZZEMAXG.js → GJSNSMV5.js} +2 -2
- package/dist/cdn/{JCGTMHDX.js → GJWFJRKH.js} +2 -2
- package/dist/cdn/{PACFBFZI.js → GPUC2YAZ.js} +1 -1
- package/dist/cdn/{4RGGJHFA.js → GRBGQ3CY.js} +2 -2
- package/dist/cdn/{6UG7C3TR.js → H3LE6IXK.js} +2 -2
- package/dist/cdn/H7LNTTBF.js +4 -0
- package/dist/cdn/{HGOC6CO4.js → HAIBENUV.js} +2 -2
- package/dist/cdn/{DWFC2YA2.js → HDBFFEBB.js} +2 -2
- package/dist/cdn/{Y5GMJUNS.js → HGEH7RJP.js} +2 -2
- package/dist/cdn/{KRFEYMMF.js → HJNIOQBX.js} +1 -1
- package/dist/cdn/HNLKT2BY.js +4 -0
- package/dist/cdn/{HCK4TVJU.js → HR7NBZ23.js} +2 -2
- package/dist/cdn/{2KD6DXZ7.js → HRNJ6PPS.js} +2 -2
- package/dist/cdn/{ROAC6LDL.js → HRTSR2SE.js} +1 -1
- package/dist/cdn/{GHF3VSYV.js → HTVK2NSG.js} +2 -2
- package/dist/cdn/{TDLJE5IW.js → HXJN6FVT.js} +2 -2
- package/dist/cdn/{WANZ57VI.js → HYXJ3R6E.js} +2 -2
- package/dist/cdn/I5FXIJHX.js +4 -0
- package/dist/cdn/{SSNAJI27.js → IGELH7BW.js} +1 -1
- package/dist/cdn/{4NN4MG2R.js → IHYLQW3P.js} +1 -1
- package/dist/cdn/{WV2NFXS4.js → ILY2OKMX.js} +2 -2
- package/dist/cdn/{DOUWGSKA.js → IY54OHHB.js} +2 -2
- package/dist/cdn/{XROLTWSS.js → J77NMDV5.js} +1 -1
- package/dist/cdn/{EM33S2YC.js → JA2BLSMQ.js} +2 -2
- package/dist/cdn/{7L6VHBLR.js → JNJU5SA4.js} +2 -2
- package/dist/cdn/{S673JDUL.js → JUK6YN7M.js} +2 -2
- package/dist/cdn/{LHV635NF.js → JUWEYEWN.js} +2 -2
- package/dist/cdn/{QWYBS5JR.js → JY42QHUW.js} +2 -2
- package/dist/cdn/{4DWLBN6E.js → JYB6HV7M.js} +2 -2
- package/dist/cdn/{6JBHPPCE.js → JZPIPYHU.js} +2 -2
- package/dist/cdn/{TKFYVUEB.js → K47GFZZC.js} +2 -2
- package/dist/cdn/{GHPQJY63.js → KETFCI2P.js} +2 -2
- package/dist/cdn/{Y6BHXC2R.js → KF632BTH.js} +2 -2
- package/dist/cdn/{AB7YZSC4.js → KFA5XB23.js} +1 -1
- package/dist/cdn/{WP7P5VNB.js → KH2BTRXI.js} +1 -1
- package/dist/cdn/{MVIN4223.js → KMDWJ4IU.js} +2 -2
- package/dist/cdn/{EHSF2PHZ.js → KOI3XUTI.js} +2 -2
- package/dist/cdn/KONO75BP.js +4 -0
- package/dist/cdn/{LEGUC5TT.js → KQ3XW3HT.js} +2 -2
- package/dist/cdn/{2U2RXQXU.js → KU62FCLR.js} +2 -2
- package/dist/cdn/{SVS67XXF.js → KZLVAEI2.js} +2 -2
- package/dist/cdn/{7HCUEAV4.js → L4DGTHZ5.js} +2 -2
- package/dist/cdn/{3HVW5UQM.js → L5RFIDWK.js} +2 -2
- package/dist/cdn/{GMQ6DEY4.js → L64TRNGF.js} +2 -2
- package/dist/cdn/{ZJZZ27A4.js → LA6C6JAO.js} +2 -2
- package/dist/cdn/{47G6FBO5.js → LAKS4FFK.js} +2 -2
- package/dist/cdn/{YYUD7YK5.js → LGJZ53IQ.js} +2 -2
- package/dist/cdn/{EJ6M46PY.js → LGMP6U2I.js} +2 -2
- package/dist/cdn/{ZAER32FT.js → LREJHPPN.js} +2 -2
- package/dist/cdn/{RBUZ7BMT.js → LRH5JW4Y.js} +2 -2
- package/dist/cdn/{KI4AAB7Q.js → LYRXJGDC.js} +2 -2
- package/dist/cdn/{XOABMMJJ.js → M3BZTOYS.js} +2 -2
- package/dist/cdn/{PGON6AUG.js → M4EOHQP3.js} +2 -2
- package/dist/cdn/{CNNGW5MH.js → MBYLGI4U.js} +1 -1
- package/dist/cdn/{QUYGI4H7.js → MCVVXWUA.js} +2 -2
- package/dist/cdn/{3DB3ODZ5.js → ME35VNVL.js} +2 -2
- package/dist/cdn/{VBJ6UGFM.js → MHYB5WW2.js} +2 -2
- package/dist/cdn/{GVZAZ45P.js → MSJNBWKG.js} +1 -1
- package/dist/cdn/{XL3QH5JD.js → MUWBCKCV.js} +2 -2
- package/dist/cdn/{MGSEHG3F.js → MV3DKW2Y.js} +2 -2
- package/dist/cdn/{VCJJR4TK.js → MW5Q3YCW.js} +2 -2
- package/dist/cdn/MXFGKNUJ.js +4 -0
- package/dist/cdn/{EIV3DXVX.js → NARZWJOL.js} +1 -1
- package/dist/cdn/{XDVUXKUA.js → ND6EAOAK.js} +1 -1
- package/dist/cdn/{LZYYPD7R.js → NFAFQG7O.js} +2 -2
- package/dist/cdn/{KSL35IAB.js → NG5O4EF2.js} +2 -2
- package/dist/cdn/{KSA37XLR.js → NLAAOG7K.js} +2 -2
- package/dist/cdn/{W56OR4B5.js → NMDVSB55.js} +1 -1
- package/dist/cdn/{B35DEHBP.js → NNCVEOOC.js} +2 -2
- package/dist/cdn/{AC2LBIGW.js → NNWPGIM6.js} +2 -2
- package/dist/cdn/{ULRYUA62.js → NPBGB25Y.js} +2 -2
- package/dist/cdn/{YAPVS6P2.js → NPHHJYBH.js} +2 -2
- package/dist/cdn/{DQFWRA4G.js → NSEF4U3D.js} +2 -2
- package/dist/cdn/{LVGSS7OM.js → NWN7Y7AR.js} +2 -2
- package/dist/cdn/{J77NPQYU.js → NZFOFQFK.js} +2 -2
- package/dist/cdn/{2ME5MQM2.js → O5AVB7EE.js} +2 -2
- package/dist/cdn/{BY5Y2DNE.js → ODMUEFOT.js} +1 -1
- package/dist/cdn/{ONPYY5TZ.js → ODRDYVBD.js} +2 -2
- package/dist/cdn/{6E4ERRKW.js → OFNMFDPR.js} +1 -1
- package/dist/cdn/{U42JI37N.js → ON5Q5T5J.js} +2 -2
- package/dist/cdn/{IRV53C7Q.js → OQ2OHE4S.js} +2 -2
- package/dist/cdn/{K4FECCC2.js → OT7ZKWCQ.js} +2 -2
- package/dist/cdn/{PKCZXRFD.js → OUGZWNO6.js} +1 -1
- package/dist/cdn/{M7HKGN5F.js → PF6ZRQJ2.js} +2 -2
- package/dist/cdn/{YC2B6HXG.js → PFAB7BY6.js} +2 -2
- package/dist/cdn/{DYZR46J2.js → POK67CCI.js} +2 -2
- package/dist/cdn/{7BU4RNKA.js → POZF7VFZ.js} +1 -1
- package/dist/cdn/{FA2YAWHF.js → PSTNEQMA.js} +2 -2
- package/dist/cdn/{ELTW2XEW.js → PZXLUUWJ.js} +2 -2
- package/dist/cdn/{LWTWMRMU.js → QCNZF3NJ.js} +2 -2
- package/dist/cdn/{7LT3YMUL.js → QHW6LKVE.js} +2 -2
- package/dist/cdn/{WVT27UPL.js → QJNE3P25.js} +2 -2
- package/dist/cdn/{STGRFEM3.js → QP5IG75V.js} +2 -2
- package/dist/cdn/{U2LMZPFA.js → QW25OYIP.js} +2 -2
- package/dist/cdn/{IRUPQ64H.js → R6U7AID6.js} +1 -1
- package/dist/cdn/{VB6M2WNG.js → R7URESQA.js} +2 -2
- package/dist/cdn/{CECW3E26.js → RBNUMIQJ.js} +2 -2
- package/dist/cdn/{Q57FIV26.js → RFHVHPG4.js} +2 -2
- package/dist/cdn/{LNENTW73.js → RKPAK25A.js} +2 -2
- package/dist/cdn/{6DOZYB66.js → SB2ETAD7.js} +2 -2
- package/dist/cdn/{RYK7QXBJ.js → SHGCXAGA.js} +2 -2
- package/dist/cdn/{ZUNWS4PF.js → SWD5EGIW.js} +1 -1
- package/dist/cdn/{MWD6GECG.js → SWLJRRGU.js} +2 -2
- package/dist/cdn/{NKHXO7E3.js → SYQ76GDV.js} +2 -2
- package/dist/cdn/{GCYQ6YCF.js → SZ6XDDRS.js} +2 -2
- package/dist/cdn/{ENAJZOXJ.js → T2AD4OLC.js} +2 -2
- package/dist/cdn/{HQKHXY53.js → T6VGLWYO.js} +2 -2
- package/dist/cdn/{MZJP3FIW.js → TETTY42T.js} +2 -2
- package/dist/cdn/{IWA7VN2A.js → TG55KKIP.js} +2 -2
- package/dist/cdn/{T6TALN7D.js → THVVAYVQ.js} +2 -2
- package/dist/cdn/{LRS2MDCL.js → TJDY5JFR.js} +2 -2
- package/dist/cdn/{2K22YMUV.js → TLBQLRUA.js} +2 -2
- package/dist/cdn/{IUH2VZXW.js → TLP53ZXS.js} +2 -2
- package/dist/cdn/{GO5RRYI6.js → TMKXDITO.js} +2 -2
- package/dist/cdn/{6EIHODNG.js → TQT42IK7.js} +1 -1
- package/dist/cdn/{FCERBRLE.js → TV6MVRLN.js} +2 -2
- package/dist/cdn/{K6CGYWKI.js → TX5LUCPB.js} +2 -2
- package/dist/cdn/{D56F66YP.js → U3MG73BI.js} +2 -2
- package/dist/cdn/{YBF7SXFW.js → U6ZZFZ5O.js} +2 -2
- package/dist/cdn/{YMZI2I7I.js → U7SYT67J.js} +2 -2
- package/dist/cdn/{C2HR5NM7.js → UENHZJI6.js} +2 -2
- package/dist/cdn/{EWLBN5NG.js → UHGVCTXE.js} +2 -2
- package/dist/cdn/{VGZGGNPC.js → UKJQTCNY.js} +2 -2
- package/dist/cdn/{QDI6ECEG.js → UTA3GVUF.js} +2 -2
- package/dist/cdn/{2A2OCNEI.js → UVB3QATU.js} +2 -2
- package/dist/cdn/{XP2DPI47.js → UVSVC3WI.js} +2 -2
- package/dist/cdn/{YZ42HQYG.js → UXHI6HKV.js} +2 -2
- package/dist/cdn/{DQ5TSMZ4.js → UZCXGQDN.js} +2 -2
- package/dist/cdn/{XJMSVZRM.js → V2N5MGKX.js} +2 -2
- package/dist/cdn/{DHYIQDTW.js → V6FMWC6D.js} +2 -2
- package/dist/cdn/{S57CAXVX.js → VD6PGA3P.js} +2 -2
- package/dist/cdn/{TPBLXSTH.js → VDRSRH6X.js} +2 -2
- package/dist/cdn/{LLAYW4K7.js → VDWURYIO.js} +2 -2
- package/dist/cdn/{CV35X56P.js → VOD7YR56.js} +2 -2
- package/dist/cdn/{BOUZ3FH6.js → VOJ7ETXL.js} +2 -2
- package/dist/cdn/{7SVPCQNH.js → VSAXW4LJ.js} +2 -2
- package/dist/cdn/{UXWDS6MR.js → VUZSRYII.js} +2 -2
- package/dist/cdn/{X6SDOZI2.js → W47KT5GG.js} +2 -2
- package/dist/cdn/{AEBIJJDB.js → W7FRKETT.js} +2 -2
- package/dist/cdn/{LYNNKR32.js → WCEJDYKE.js} +2 -2
- package/dist/cdn/{DE3A5NJQ.js → WGNTLBNS.js} +2 -2
- package/dist/cdn/{IONHPS7Z.js → WU3WC633.js} +2 -2
- package/dist/cdn/{2WHDR7EZ.js → WXAL7UR7.js} +2 -2
- package/dist/cdn/{H7MMUDQA.js → WY3BALDA.js} +2 -2
- package/dist/cdn/{T2JUS4TO.js → WYW6UPKP.js} +1 -1
- package/dist/cdn/{HFRCYYXR.js → XFVJUICD.js} +2 -2
- package/dist/cdn/{KJJPTASW.js → XI2LPQ33.js} +2 -2
- package/dist/cdn/{LS72LBRH.js → XLIFIZT4.js} +1 -1
- package/dist/cdn/{BFK5P4H6.js → XM7J7FRK.js} +2 -2
- package/dist/cdn/{7GRMI52O.js → XPISGP4X.js} +2 -2
- package/dist/cdn/{HK6GQTIP.js → XRQCOVSZ.js} +2 -2
- package/dist/cdn/{2RRWLFYL.js → Y7AFN6OI.js} +2 -2
- package/dist/cdn/Y7RZLFOV.js +4 -0
- package/dist/cdn/{QQG5I4RW.js → YJEMF2Z6.js} +2 -2
- package/dist/cdn/{SW5IQ7XO.js → YLZ235UH.js} +2 -2
- package/dist/cdn/{LWXXGZP2.js → YNVH5WOM.js} +1 -1
- package/dist/cdn/{WBQWHY3S.js → YP5ARNCZ.js} +2 -2
- package/dist/cdn/{ZWBUELZ3.js → YPZY5T64.js} +2 -2
- package/dist/cdn/{LSWZVOP2.js → YVCCBY5A.js} +2 -2
- package/dist/cdn/{FF62NTPZ.js → YZ45SJNV.js} +2 -2
- package/dist/cdn/{LAQNZDRK.js → Z2Z7VXON.js} +2 -2
- package/dist/cdn/{SV73C7FZ.js → Z3Z7UPMU.js} +1 -1
- package/dist/cdn/{J5MCJSA4.js → ZG3PPQ55.js} +2 -2
- package/dist/cdn/{7F7OU5LY.js → ZG5TZZOJ.js} +2 -2
- package/dist/cdn/{R6Q7LXCW.js → ZMAGZDYI.js} +2 -2
- package/dist/cdn/{DAELPIWJ.js → ZNZZHZ2Q.js} +2 -2
- package/dist/cdn/{CF3T2MF5.js → ZRDVHXEL.js} +2 -2
- package/dist/cdn/{VPSKNEUJ.js → ZTVEA5RF.js} +1 -1
- package/dist/cdn/{Y3HZIU5J.js → ZUSH4SCO.js} +2 -2
- package/dist/cdn/{RUUFDMAP.js → ZVNQTPA6.js} +2 -2
- package/dist/cdn/{KE33RJNK.js → ZVQ7AOB6.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +313 -405
- 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/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/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-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +2 -2
- package/dist/cdn/2DP6OMTG.js +0 -4
- package/dist/cdn/4BDP4U52.js +0 -4
- package/dist/cdn/7ICACTIO.js +0 -4
- package/dist/cdn/CS3QUAQD.js +0 -4
- package/dist/cdn/H5Q3K3Q6.js +0 -4
- package/dist/cdn/K5QZD6FH.js +0 -4
- package/dist/cdn/NHJ7E4Q4.js +0 -4
- package/dist/cdn/U4HS5ENT.js +0 -8
- package/dist/cdn/XEJZXWBI.js +0 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as S}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as S}from"./GJWFJRKH.js";import"./A62HEPRS.js";import{c as v,j as L}from"./OQ2OHE4S.js";import"./ODMUEFOT.js";import"./XLIFIZT4.js";import{a as r,b as n}from"./F5UQ42HE.js";import{b as w}from"./MSJNBWKG.js";import{a as $}from"./EYCGOAQV.js";import{D as y,E as b,I,c as g,d as o,g as u,o as p,q as _}from"./AAX2HQKV.js";import"./GPUC2YAZ.js";function W(l){return l?.indexOf("http://")!==-1}function c(l){return W(l)?l.replace(/^http:\/\//,"https://"):l}function M(l,e,i){return i&&i.forEach(t=>{l.allLayers.forEach(s=>{s&&s.url===t.sourceUrl&&(s.url=c(t.proxyUrl),s.portalItem&&s.portalItem.when(()=>{s.portalItem.url=c(t.proxyUrl)}),e.request?.interceptors?.push({urls:t.sourceUrl,before:a=>{a.url&&a.url===t.sourceUrl&&(a.url=c(t.proxyUrl))}}))})}),l}var x=g`@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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as n}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as n}from"./J77NMDV5.js";import{a as s}from"./5SI2WE3S.js";import"./U3MG73BI.js";import"./ND6EAOAK.js";import"./POZF7VFZ.js";import"./KH2BTRXI.js";import{a as r,b as i}from"./ELCX7XI2.js";import"./JYB6HV7M.js";import"./HAIBENUV.js";import{a as o}from"./WXAL7UR7.js";import{a}from"./UHGVCTXE.js";import"./UKJQTCNY.js";import"./ETE327MH.js";import"./CE3PZUP3.js";import"./TQT42IK7.js";import"./XRQCOVSZ.js";import"./DK32RK5U.js";import"./UVB3QATU.js";import"./WYW6UPKP.js";import"./ASDGPISP.js";import"./JZPIPYHU.js";import"./EQREHHBY.js";import"./3MEA5DUO.js";import"./TV6MVRLN.js";import"./25ZSQ4Y4.js";import"./NG5O4EF2.js";import"./ON5Q5T5J.js";import"./KFA5XB23.js";import"./TMKXDITO.js";import"./7CKL36AK.js";import"./3ZX46XLT.js";import"./SHGCXAGA.js";import"./EV7HBUTQ.js";import"./IHYLQW3P.js";import"./ME35VNVL.js";import"./BZPPRNYK.js";import"./R6U7AID6.js";import"./EMXWEQBM.js";import"./GPUC2YAZ.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},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:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as e}from"./BZPPRNYK.js";var i=["hub:initiativeTemplate:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}},recommendedTemplates:{type:"array",items:{type:"string"}}})});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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as o,b as l}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as o,b as l}from"./F5UQ42HE.js";import{b as c}from"./MSJNBWKG.js";import{a as u}from"./EYCGOAQV.js";import{D as r,I as h,c as n,d as i,o as s}from"./AAX2HQKV.js";import"./GPUC2YAZ.js";var m=n`/** @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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./PZXLUUWJ.js";import{a as r}from"./XRQCOVSZ.js";import"./DK32RK5U.js";import"./UVB3QATU.js";import"./WYW6UPKP.js";import"./ASDGPISP.js";import"./JZPIPYHU.js";import"./EQREHHBY.js";import"./3MEA5DUO.js";import"./TV6MVRLN.js";import"./25ZSQ4Y4.js";import"./NG5O4EF2.js";import"./ON5Q5T5J.js";import"./KFA5XB23.js";import"./TMKXDITO.js";import"./7CKL36AK.js";import"./3ZX46XLT.js";import"./SHGCXAGA.js";import"./EV7HBUTQ.js";import"./IHYLQW3P.js";import"./ME35VNVL.js";import"./BZPPRNYK.js";import"./R6U7AID6.js";import"./EMXWEQBM.js";import"./GPUC2YAZ.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as l}from"./EYCGOAQV.js";import{D as n,I as o,c as r,d as a,o as s}from"./AAX2HQKV.js";import"./GPUC2YAZ.js";var c=r`/** @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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as G}from"./7DTTJ6XF.js";import{b as K,f as P,m as _,n as U,o as L}from"./NKHXO7E3.js";import"./Y3HZIU5J.js";import"./AVJL2GFG.js";import"./SV73C7FZ.js";import"./D56F66YP.js";import"./XDVUXKUA.js";import{a as j}from"./7BU4RNKA.js";import"./WP7P5VNB.js";import"./4DWLBN6E.js";import"./HGOC6CO4.js";import{k as S}from"./VGZGGNPC.js";import"./SXNJKD62.js";import"./U6PBNDHL.js";import"./6EIHODNG.js";import{b}from"./AB7YZSC4.js";import{a as c,b as p}from"./NXSX7IHR.js";import"./PACFBFZI.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as G}from"./73ZW6AZO.js";import{b as K,f as P,m as _,n as U,o as L}from"./SYQ76GDV.js";import"./ZUSH4SCO.js";import"./G4WDN3WM.js";import"./Z3Z7UPMU.js";import"./U3MG73BI.js";import"./ND6EAOAK.js";import{a as j}from"./POZF7VFZ.js";import"./KH2BTRXI.js";import"./JYB6HV7M.js";import"./HAIBENUV.js";import{k as S}from"./UKJQTCNY.js";import"./ETE327MH.js";import"./CE3PZUP3.js";import"./TQT42IK7.js";import{b}from"./KFA5XB23.js";import{a as c,b as p}from"./7CKL36AK.js";import"./GPUC2YAZ.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{o,p as a,q as r,r as d,v as c,w as m}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{o,p as a,q as r,r as d,v as c,w as m}from"./YNVH5WOM.js";import{a as l,c as i,d as h,e as u}from"./A62HEPRS.js";import"./GPUC2YAZ.js";var f=".sc-instant-apps-measurement-tool-h .esri-measurement.sc-instant-apps-measurement-tool,.sc-instant-apps-measurement-tool-h .esri-coordinate-conversion.sc-instant-apps-measurement-tool{width:300px}.sc-instant-apps-measurement-tool-h .instant-apps-measurement-tool__hide.sc-instant-apps-measurement-tool{display:none}",v=f,p="instant-apps-measurement-tool",s={base:p,hide:`${p}__hide`},g=class{constructor(e){l(this,e),this.view=void 0,this.measureConfiguration=void 0,this.activeTool=void 0}async componentWillLoad(){await this._initModules()}componentDidLoad(){this._init()}render(){return i(h,{key:"f6bd046c04fd3c17204fd95e4ab5e85cab179671"},i("div",{key:"070603555cb6497ddd67f1f53ebaf89a59bd7c01",class:s.base},i("div",{key:"475bff4347c71401ecb292a74c59aac28b40952f",ref:e=>{e instanceof HTMLElement&&(this._measureElement=e)}}),i("div",{key:"9018f1338b598e9c02e1ea6239ab1ee57c460fa0",class:s.hide,ref:e=>{e instanceof HTMLElement&&(this._coordinateElement=e)}})))}disconnectedCallback(){this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _initModules(){let[e,t,n]=await Promise.all([c(),o(),r()]);this.Measurement=e,this.CoordinateConversion=t,this.Conversion=n}_init(){this._initMeasurementWidget(),this._initCoordinateWidget()}_updateToolType(e){this._setActiveTool(e)}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=await m({view:this.view,container:this._measureElement,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget.clear(),this._coordinateElement?.classList.add(s.hide),e==="distance"?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement?.classList?.remove(s.hide)}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=await a({view:this.view,storageEnabled:!1,container:this._coordinateElement}),t!=null)){let n=this._coordinateWidget.formats.find(_=>_.name===t);this._coordinateWidget?.conversions?.splice(0,0,await d({format:n}))}e!=null&&this._setActiveTool(e)}get el(){return u(this)}static get watchers(){return{activeTool:["_updateToolType"]}}};g.style=v;export{g as instant_apps_measurement_tool};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./PZXLUUWJ.js";import{a as r}from"./XRQCOVSZ.js";import"./DK32RK5U.js";import"./UVB3QATU.js";import"./WYW6UPKP.js";import"./ASDGPISP.js";import"./JZPIPYHU.js";import"./EQREHHBY.js";import"./3MEA5DUO.js";import"./TV6MVRLN.js";import"./25ZSQ4Y4.js";import"./NG5O4EF2.js";import"./ON5Q5T5J.js";import"./KFA5XB23.js";import"./TMKXDITO.js";import"./7CKL36AK.js";import"./3ZX46XLT.js";import"./SHGCXAGA.js";import"./EV7HBUTQ.js";import"./IHYLQW3P.js";import"./ME35VNVL.js";import"./BZPPRNYK.js";import"./R6U7AID6.js";import"./EMXWEQBM.js";import"./GPUC2YAZ.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{c as a}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{c as a}from"./IHYLQW3P.js";import"./GPUC2YAZ.js";export{a as MetricSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as i}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as i}from"./KOI3XUTI.js";var c=class e extends Error{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(r),this.operation=o,this.name="OperationError",this.rootCause=t,Object.setPrototypeOf(this,e.prototype),this.stack=i(t,"stack",new Error().stack)}};var p=class extends c{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(o,r,t),this.name="HubError",this.stack=i(t,"stack",new Error().stack)}};export{p 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{e as P}from"./3KG65DHY.js";import{A as C,C as R,D as L,d as k,e as y}from"./LWXXGZP2.js";import"./7Q35EK3R.js";import{a as S,c as e,d as E,e as $}from"./6K2KSAYP.js";import"./PACFBFZI.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{e as P}from"./CKIF7ITD.js";import{A as C,C as R,D as L,d as k,e as y}from"./YNVH5WOM.js";import"./6Z2DWNPT.js";import{a as S,c as e,d as E,e as $}from"./A62HEPRS.js";import"./GPUC2YAZ.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as s}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as s}from"./2Z7AL4WY.js";import{a as l,b as p}from"./DW5MNUDP.js";import"./KOI3XUTI.js";import{b as m}from"./ETE327MH.js";import{a}from"./TQT42IK7.js";import"./GPUC2YAZ.js";async function D(e){b(e);let{entity:t,format:o,context:r,progressCallback:n}=e;n&&n(p.PENDING);let c=w(e),{xmin:x,xmax:f,ymin:d,ymax:u}=c,{wkid:g}=c.spatialReference,i=Object.assign({},r.requestOptions);return i.httpMethod="GET",i.params={bbox:`${x},${d},${f},${u}`,bboxSR:`${g}`,f:"image",format:o,mosaicRule:'{"ascending":true,"mosaicMethod":"esriMosaicNorthwest","mosaicOperation":"MT_FIRST"}'},{type:"blob",blob:await m(`${t.url}/exportImage`,i),filename:h(t,o)}}function b(e){let{geometry:t}=e;if(t&&t.type!=="extent")throw new s("fetchExportImageDownloadFileUrl","Only extent geometric filters are supported for this type of download")}function w(e){let{entity:t,geometry:o}=e,r=a(t,"extendedProps.server.extent"),n=null;if(o?n=o:r&&(n=r),!n)throw new s("fetchExportImageDownloadFileUrl","Extent required for this download operation");return n}function h(e,t){let o=e.name||a(e,"extendedProps.server.name"),r=t.includes(l.PNG)?l.PNG:t;return`${o}.${r}`}export{D as fetchExportImageDownloadFile};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as e}from"./BZPPRNYK.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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as n,b as m}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as n,b as m}from"./F5UQ42HE.js";import{b as l}from"./MSJNBWKG.js";import{D as p,I as o,c as t,d as r}from"./AAX2HQKV.js";import"./GPUC2YAZ.js";var h=t`/** @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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as o}from"./CFSCFQIJ.js";import"./KOI3XUTI.js";import{a as n}from"./WXAL7UR7.js";import{a as s}from"./UHGVCTXE.js";import"./UKJQTCNY.js";import"./ETE327MH.js";import"./CE3PZUP3.js";import"./TQT42IK7.js";import{a}from"./XRQCOVSZ.js";import"./DK32RK5U.js";import"./UVB3QATU.js";import"./WYW6UPKP.js";import"./ASDGPISP.js";import"./JZPIPYHU.js";import"./EQREHHBY.js";import"./3MEA5DUO.js";import"./TV6MVRLN.js";import"./25ZSQ4Y4.js";import"./NG5O4EF2.js";import"./ON5Q5T5J.js";import"./KFA5XB23.js";import"./TMKXDITO.js";import"./7CKL36AK.js";import"./3ZX46XLT.js";import"./SHGCXAGA.js";import"./EV7HBUTQ.js";import"./IHYLQW3P.js";import"./ME35VNVL.js";import"./BZPPRNYK.js";import"./R6U7AID6.js";import"./EMXWEQBM.js";import"./GPUC2YAZ.js";async function b(e,r,t){let l=await n(`${e}.content`,t);return l[0].rules=[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}],delete l[0].options.helperText,{type:"Layout",elements:[{type:"Section",options:{section:"accordion",selectionMode:"single"},elements:[{type:"Section",label:`{{${e}.content.label:translate}}`,options:{section:"accordionItem",expanded:!0},elements:[{scope:"/properties/selectionMode",type:"Control",options:{control:"hub-field-input-radio-group",enum:{i18nScope:`${e}.content.selectionMode`},width:"full"}},{label:`{{${e}.content.access.label:translate}}`,scope:"/properties/access",type:"Control",options:{control:"hub-field-input-tile-select",descriptions:[`{{${e}.content.access.private.description:translate}}`,`{{${e}.content.access.org.description:translate}}`,`{{${e}.content.access.public.description:translate}}`],icons:["users","organization","globe"],labels:[`{{${e}.content.access.private.label:translate}}`,`{{${e}.content.access.org.label:translate}}`,`{{${e}.content.access.public.label:translate}}`],type:"checkbox"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}]},{label:`{{${e}.content.tags.label:translate}}`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await s(r.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}]},...l,{scope:"/properties/entityIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:[o(`${e}.content.entityIds`,"organization","item",{user:t.currentUser,collectionNames:["site","initiative","project"],filters:[],context:t})],facets:[{label:"{{facets.from.label:translate}}",key:"from",display:"single-select",operation:"OR",options:[{label:"{{facets.from.myContent.label:translate}}",key:"myContent",selected:!0,predicates:[{owner:t.currentUser.username}]},{label:"{{facets.from.myOrganization.label:translate}}",key:"myOrganization",selected:!1,predicates:[{orgId:t.currentUser.orgId}]}]},{label:"{{facets.sharing.label:translate}}",key:"access",field:"access",display:"multi-select",operation:"OR"}],width:"full",kind:"brand",appearance:"solid"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}]},{scope:"/properties/eventIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"event",catalogs:[{schemaVersion:1,title:"{{catalogs.event.label:translate}}",scopes:{event:{targetEntity:"event",filters:[{predicates:[{orgid:t.currentUser.orgId}]}]}},collections:[{key:"event",label:"{{catalogs.event.collections.event.label:translate}}",targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}]}],facets:[{label:"{{facets.from.label:translate}}",key:"from",display:"single-select",operation:"OR",options:[{label:"{{facets.from.myContent.label:translate}}",key:"myContent",selected:!0,predicates:[{owner:t.currentUser.id}]},{label:"{{facets.from.myOrganization.label:translate}}",key:"myOrganization",selected:!1,predicates:[{orgId:t.currentUser.orgId}]}]},{label:"{{facets.sharing.label:translate}}",key:"access",display:"multi-select",operation:"OR",options:[{label:"{{facets.sharing.public.label:translate}}",key:"public",selected:!1,predicates:[{access:"public"}]},{label:"{{facets.sharing.private.label:translate}}",key:"private",selected:!1,predicates:[{access:"private"}]},{label:"{{facets.sharing.organization.label:translate}}",key:"org",selected:!1,predicates:[{access:"org"}]}]}],width:"full",kind:"brand",appearance:"solid"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"manual"}}]}]},{type:"Slot",options:{name:"add-content-slot"}}]},{type:"Section",label:`{{${e}.appearance.label:translate}}`,options:{section:"accordionItem"},elements:[{label:`{{${e}.appearance.titleHeading.label:translate}}`,scope:"/properties/titleHeading",type:"Control",options:{control:"hub-field-input-radio-group",enum:{i18nScope:`${e}.appearance.titleHeading`},width:"full",tooltip:{label:`{{${e}.appearance.titleHeading.tooltip:translate}}`}}},{label:`{{${e}.appearance.corners.label:translate}}`,scope:"/properties/corners",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.appearance.corners`}}},{label:`{{${e}.appearance.shadow.label:translate}}`,scope:"/properties/shadow",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.appearance.shadow`}}},{label:`{{${e}.appearance.showAdditionalInfo.label:translate}}`,scope:"/properties/showAdditionalInfo",type:"Control",options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{label:`{{${e}.appearance.layout.label:translate}}`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.appearance.layout`}},scope:"/properties/layout",type:"Control"}]},{type:"Section",label:`{{${e}.options.label:translate}}`,options:{section:"accordionItem"},elements:[{label:`{{${e}.options.openIn.label:translate}}`,scope:"/properties/openIn",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.options.openIn`}}},{type:"Notice",options:{notice:{configuration:{id:"open-in-notice",noticeType:"notice",closeable:!1,kind:"brand",scale:"m"},title:`{{${e}.options.openIn.notice.title:translate}}`,body:`{{${e}.options.openIn.notice.body:translate}}`,autoShow:!0,actions:[{label:`{{${e}.options.openIn.notice.link:translate}}`,ariaLabel:`{{${e}.options.openIn.notice.linkAriaLabel:translate}}`,icon:"launch",href:"https://www.w3.org/TR/WCAG20-TECHS/G200.html",target:"_blank"}]}}}]}]}]}}export{b as buildUiSchema};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a,b}from"./SHGCXAGA.js";import"./EV7HBUTQ.js";import"./IHYLQW3P.js";import"./BZPPRNYK.js";import"./R6U7AID6.js";import"./EMXWEQBM.js";import"./GPUC2YAZ.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as t}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as t}from"./WY3BALDA.js";import"./Z3Z7UPMU.js";import"./CFSCFQIJ.js";import"./KOI3XUTI.js";import"./CE3PZUP3.js";import"./TQT42IK7.js";import"./WYW6UPKP.js";import"./GPUC2YAZ.js";var m=async(a,e,c)=>{let i=await t(a,e,c);return e.canEdit&&i.elements.splice(0,0,{type:"Notice",options:{noticeId:"20250311-channel-edit-warning"}}),i};export{m as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as r}from"./EYCGOAQV.js";import{D as n,I as o,c as i,d as t,q as s}from"./AAX2HQKV.js";import"./GPUC2YAZ.js";var a=i`@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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import{a as o,b as s,c as i,d as p}from"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import{a as o,b as s,c as i,d as p}from"./EV7HBUTQ.js";import{c as r}from"./IHYLQW3P.js";import{a as e}from"./BZPPRNYK.js";import{b as t}from"./R6U7AID6.js";var E=["hub:project:create","hub:project:create2","hub:project:edit","hub:project:metrics","hub:project:settings"],b=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{_groups:{type:"array",items:{type:"string"}},status:{type:"string",default:t.notStarted,enum:Object.keys(t)},_metric:{type:"object",required:["cardTitle"],properties:r.properties}}),allOf:[s,o,p,i]});export{E as a,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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250521 */
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250521.1 */
|
4
|
+
import"./GPUC2YAZ.js";var l=async(e,r,o)=>{let t=r.orgUrlKey;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:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.siteEntityTitleValidatorError`}]}},{scope:"/properties/_urlInfo",type:"Control",options:{type:"Control",control:"hub-composite-input-site-url",orgUrlKey:t,messages:[{type:"ERROR",keyword:"isUniqueDomain",labelKey:`${e}.fields.siteUrl.isUniqueError`,icon:!0}]}}]}};export{l as buildUiSchema};
|