@esri/solutions-components 1.2.0-next.96 → 1.2.0-next.98
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/22YY32VZ.js +18 -0
- package/dist/cdn/{IWQKKA2X.js → 2436BI76.js} +1 -1
- package/dist/cdn/{JV3QO6RD.js → 26N4ZFK5.js} +2 -2
- package/dist/cdn/26RMPMZC.js +4 -0
- package/dist/cdn/{USAZCHXS.js → 2APFPBDM.js} +2 -2
- package/dist/cdn/{YWXO5566.js → 2E4OAKEP.js} +1 -1
- package/dist/cdn/{QHYSA4NO.js → 2EJLI47O.js} +2 -2
- package/dist/cdn/2EOBYTAC.js +4 -0
- package/dist/cdn/{E47ONF5M.js → 2EVVROW6.js} +2 -2
- package/dist/cdn/2F4HSBX4.js +18 -0
- package/dist/cdn/{C546TZBV.js → 2LRLVNZS.js} +2 -2
- package/dist/cdn/{UHK3SADT.js → 2M2HOVJN.js} +2 -2
- package/dist/cdn/{ZPPE7VHR.js → 2QYFS2TE.js} +2 -2
- package/dist/cdn/{TE4HZG2N.js → 2RR62GBZ.js} +2 -2
- package/dist/cdn/{YTXLAN6H.js → 2VI3TMRO.js} +2 -2
- package/dist/cdn/{CLHE25I3.js → 2XTLB75J.js} +2 -2
- package/dist/cdn/36U2PES4.js +4 -0
- package/dist/cdn/{ZVKLVTTG.js → 37XS2CUJ.js} +2 -2
- package/dist/cdn/{VDLLU4UK.js → 3LJYXL6B.js} +2 -2
- package/dist/cdn/{4RUYUCKH.js → 3WGH4NJC.js} +2 -2
- package/dist/cdn/{22K2SOD7.js → 4BZLKOXR.js} +2 -2
- package/dist/cdn/{AZUU5ZXS.js → 4CEM7NZI.js} +2 -2
- package/dist/cdn/{DIGFSWHK.js → 4DHUBSW4.js} +2 -2
- package/dist/cdn/{EKMVOSOE.js → 4EKY6V5Y.js} +2 -2
- package/dist/cdn/{KHU25CQO.js → 4FUYNRDQ.js} +2 -2
- package/dist/cdn/{JTIP7ULP.js → 4KZKBMXG.js} +2 -2
- package/dist/cdn/{4HWTKLOW.js → 4LSSMN67.js} +2 -2
- package/dist/cdn/{5Q4RCFQN.js → 4MQNSCSI.js} +2 -2
- package/dist/cdn/{XMHK52D3.js → 4NHL44S3.js} +2 -2
- package/dist/cdn/{N72AFNSJ.js → 4PCQCTQ6.js} +2 -2
- package/dist/cdn/{KTQWROMB.js → 4R3IITJQ.js} +2 -2
- package/dist/cdn/{Y2OH3BJ3.js → 4TEQBWX7.js} +2 -2
- package/dist/cdn/{HVOFH5IF.js → 4UCTEM32.js} +2 -2
- package/dist/cdn/{JKM6BLZA.js → 4UR4HQTL.js} +1 -1
- package/dist/cdn/{N2EKGFMV.js → 4W6UTZX2.js} +2 -2
- package/dist/cdn/{N74YODYK.js → 4XZPDS4V.js} +2 -2
- package/dist/cdn/{FD2ISON4.js → 4YNABXNC.js} +2 -2
- package/dist/cdn/{VJ3KDK54.js → 52L3QNBG.js} +2 -2
- package/dist/cdn/{YT7DYR43.js → 52NYTARX.js} +2 -2
- package/dist/cdn/{GWXEJZXF.js → 54TPFPGT.js} +2 -2
- package/dist/cdn/{K75AUVKV.js → 554MH4Y2.js} +2 -2
- package/dist/cdn/{LNVCDYRA.js → 56FUBVFP.js} +2 -2
- package/dist/cdn/{56A35C6P.js → 5DMWNUJW.js} +1 -1
- package/dist/cdn/{3S5UQCYK.js → 5E2LTZR2.js} +2 -2
- package/dist/cdn/{CUVW3GK4.js → 5MF2SXEJ.js} +2 -2
- package/dist/cdn/{23NFP2B6.js → 5MFYACQG.js} +2 -2
- package/dist/cdn/{SE7PAIW6.js → 5MYHXND7.js} +2 -2
- package/dist/cdn/{HA6FW7RF.js → 5R7RBNOC.js} +2 -2
- package/dist/cdn/{SGDPVMUA.js → 5SOEKOLD.js} +2 -2
- package/dist/cdn/{R23K6PCI.js → 5XS6RIAX.js} +2 -2
- package/dist/cdn/{WIJWQ5VY.js → 62U7IIEW.js} +2 -2
- package/dist/cdn/{DKFKZ63L.js → 6CWD6FSL.js} +2 -2
- package/dist/cdn/{4N5K4ME5.js → 6GFUJPON.js} +2 -2
- package/dist/cdn/{2P4ZNTXN.js → 6H4ITSZD.js} +2 -2
- package/dist/cdn/{CGZ5NJNK.js → 73FERBLO.js} +2 -2
- package/dist/cdn/{3VOYYYAY.js → 77LRH6G7.js} +2 -2
- package/dist/cdn/{3T3EPXGX.js → 77SLYUQ4.js} +2 -2
- package/dist/cdn/{LWTQHIG4.js → 7BHLUYH4.js} +2 -2
- package/dist/cdn/{A7XDSWJ5.js → 7ICGC5UA.js} +2 -2
- package/dist/cdn/{3S5ALN67.js → 7KCMZ4FM.js} +2 -2
- package/dist/cdn/{3YDLBLGM.js → 7LTCVPGB.js} +2 -2
- package/dist/cdn/{3L5VMECR.js → 7ORYIMKW.js} +2 -2
- package/dist/cdn/{YT3HCIKN.js → 7RKATYFN.js} +2 -2
- package/dist/cdn/{7J44FCS6.js → 7T5SPX63.js} +1 -1
- package/dist/cdn/{3WIOC37K.js → 7ZJNNS35.js} +2 -2
- package/dist/cdn/{IJ3Z6B7U.js → 7ZUN6FV3.js} +2 -2
- package/dist/cdn/{R3BYS23P.js → A6C2AVNV.js} +1 -1
- package/dist/cdn/A6FJBCHM.js +4 -0
- package/dist/cdn/{JYN2EVH5.js → AAGGJJ2E.js} +2 -2
- package/dist/cdn/{HDP6J57X.js → ACWL6TYN.js} +2 -2
- package/dist/cdn/AFTT76D5.js +4 -0
- package/dist/cdn/{3WXSIIQX.js → AGTAPRIE.js} +2 -2
- package/dist/cdn/{LEENTIW4.js → AI6B4324.js} +1 -1
- package/dist/cdn/{SPY5VHAX.js → AKUHH4WY.js} +2 -2
- package/dist/cdn/{QJY6TEDI.js → ANGGLV6M.js} +2 -2
- package/dist/cdn/{AWCRUU2F.js → AOLM4R7N.js} +2 -2
- package/dist/cdn/{VON4I3RU.js → ARVRS7UX.js} +2 -2
- package/dist/cdn/{3GPMRYM6.js → AYG4Z4SQ.js} +2 -2
- package/dist/cdn/{NYM5X2GW.js → AYXHNTHE.js} +2 -2
- package/dist/cdn/{TAARC6EU.js → B5F3MBZO.js} +1 -1
- package/dist/cdn/{IWZKHCP6.js → B6MDYQLX.js} +2 -2
- package/dist/cdn/{BWRWVWTV.js → BBXVZ3OF.js} +2 -2
- package/dist/cdn/{XENM7VNA.js → BDMOHNOG.js} +2 -2
- package/dist/cdn/{RO3XM23Z.js → BMG6KBDG.js} +1 -1
- package/dist/cdn/{6G2FTSFQ.js → BMKT7BH4.js} +2 -2
- package/dist/cdn/{Z5V6UEGG.js → BPPPAYEV.js} +1 -1
- package/dist/cdn/{ADBJ54OV.js → BRFVDDRE.js} +2 -2
- package/dist/cdn/BRWZRLUY.js +18 -0
- package/dist/cdn/{GEO5SQPW.js → BSYFYLGN.js} +2 -2
- package/dist/cdn/{FAYOWWZW.js → BUPMAU37.js} +2 -2
- package/dist/cdn/{SDQ62FTZ.js → C3GSKKYK.js} +2 -2
- package/dist/cdn/{TJJDAW3G.js → CB7Z3JTX.js} +2 -2
- package/dist/cdn/CHDLY32W.js +4 -0
- package/dist/cdn/{5QPDO2QX.js → CLSVSJ2T.js} +2 -2
- package/dist/cdn/{YNG2OYHK.js → CO53NO7V.js} +2 -2
- package/dist/cdn/{WZRL4UQM.js → CRKD2GT5.js} +2 -2
- package/dist/cdn/{CV4DHSLG.js → CTHRL7FW.js} +2 -2
- package/dist/cdn/{ITJ2SQDF.js → CUSF545L.js} +1 -1
- package/dist/cdn/{JNHN7WLW.js → CVQ5QITW.js} +2 -2
- package/dist/cdn/{Q23NQ4QH.js → D4MNINLU.js} +2 -2
- package/dist/cdn/{PEHHNJ6V.js → DE4W54A4.js} +2 -2
- package/dist/cdn/DKABSUVF.js +18 -0
- package/dist/cdn/{4LECMI3R.js → DQBQLYT6.js} +2 -2
- package/dist/cdn/{D4YVUHIU.js → DUDRPZFV.js} +2 -2
- package/dist/cdn/{NRH2QJCG.js → DURU45BQ.js} +2 -2
- package/dist/cdn/{5M4B43D2.js → DVURAXHV.js} +2 -2
- package/dist/cdn/{QGSGVBLL.js → DYKQG3LW.js} +2 -2
- package/dist/cdn/{YBEQAX2S.js → DZMSHTIJ.js} +2 -2
- package/dist/cdn/{3SB7BPVC.js → E4SBLQY7.js} +3 -3
- package/dist/cdn/{UUD5CUKC.js → EC2Y2UKM.js} +3 -3
- package/dist/cdn/{275ZPKYI.js → EC3AONCY.js} +1 -1
- package/dist/cdn/{M4V4BSTN.js → EDR4DAQS.js} +2 -2
- package/dist/cdn/{DF2IF5MT.js → EOLMYESF.js} +2 -2
- package/dist/cdn/{7MONX4WW.js → EOPABNT5.js} +2 -2
- package/dist/cdn/{P3XZAWSF.js → EUEYQPFY.js} +2 -2
- package/dist/cdn/EWN4VQCK.js +4 -0
- package/dist/cdn/{CWUH4QUQ.js → EZAN3M4R.js} +2 -2
- package/dist/cdn/{V3YEBL4M.js → F2P6MI7D.js} +2 -2
- package/dist/cdn/{VEN3SQUK.js → F2TKY5WY.js} +1 -1
- package/dist/cdn/{KAX2OMRN.js → F34GFQN3.js} +2 -2
- package/dist/cdn/{C4IIF3HY.js → F3BPDBBR.js} +2 -2
- package/dist/cdn/{G5D4GLDZ.js → F6YNKL7K.js} +2 -2
- package/dist/cdn/{QREZWDMC.js → F7IZAZWS.js} +1 -1
- package/dist/cdn/{BQ6Y5QS4.js → FGMW4FNC.js} +2 -2
- package/dist/cdn/{6MBGNT7U.js → FK3SK64C.js} +2 -2
- package/dist/cdn/{RLCZV46Z.js → FL6NFBES.js} +2 -2
- package/dist/cdn/{TEFND7O6.js → FLASQXOF.js} +2 -2
- package/dist/cdn/{DDP2DF3N.js → FNUPHHLH.js} +2 -2
- package/dist/cdn/FPHMPYCM.js +4 -0
- package/dist/cdn/{XPT225H2.js → FUXDXF6F.js} +2 -2
- package/dist/cdn/{5CGQRT3T.js → FYKXDL5C.js} +2 -2
- package/dist/cdn/{FV6PFXXM.js → FYNKRQOR.js} +2 -2
- package/dist/cdn/{M6VVLJG7.js → G2Q6QZ72.js} +2 -2
- package/dist/cdn/{CHS5OOKP.js → G4GDXMVM.js} +2 -2
- package/dist/cdn/{BWCDG33M.js → G4RXRD4M.js} +2 -2
- package/dist/cdn/{C3WNO3F7.js → GIKRO6LK.js} +2 -2
- package/dist/cdn/GKVESBX3.js +4 -0
- package/dist/cdn/{V3RXZGIM.js → GLALIG3V.js} +2 -2
- package/dist/cdn/{XV5AQCH3.js → GLHYAENW.js} +2 -2
- package/dist/cdn/{R62PC4UC.js → GLWRHQA7.js} +2 -2
- package/dist/cdn/{ZOQ3RHTL.js → GNFWWLJW.js} +2 -2
- package/dist/cdn/{F3AYRPOL.js → GPBFVBWH.js} +2 -2
- package/dist/cdn/{RTBG4SAP.js → GQABVPPX.js} +2 -2
- package/dist/cdn/{WEESVU2C.js → GRW2TCVX.js} +2 -2
- package/dist/cdn/{5EFFRTSX.js → GYFR555Y.js} +2 -2
- package/dist/cdn/{B3XVV774.js → GZB5YXOY.js} +2 -2
- package/dist/cdn/H2CWNIBG.js +18 -0
- package/dist/cdn/{6LVNGRGA.js → H32SOFJQ.js} +2 -2
- package/dist/cdn/{XNGISPIV.js → H3QL7UU7.js} +2 -2
- package/dist/cdn/{R5GCDLC7.js → H3V5WZ4E.js} +2 -2
- package/dist/cdn/{BE3FIAFN.js → HA4342G2.js} +2 -2
- package/dist/cdn/HBSELESQ.js +4 -0
- package/dist/cdn/{ZYYFYIDO.js → HDH3CKNB.js} +2 -2
- package/dist/cdn/{KZ2LE32W.js → HF7NCWVC.js} +2 -2
- package/dist/cdn/{YZ34JPPN.js → HG3YA6NY.js} +2 -2
- package/dist/cdn/{2M6EM5T2.js → HL7XWNM3.js} +1 -1
- package/dist/cdn/{IUBO7W6A.js → HVDNS7Q2.js} +2 -2
- package/dist/cdn/HVTMXXBP.js +4 -0
- package/dist/cdn/{52OB5KCR.js → I7JY674N.js} +2 -2
- package/dist/cdn/{VBUUEEPE.js → IB7BUTUC.js} +2 -2
- package/dist/cdn/{TEZWM3SV.js → IBLICW2N.js} +2 -2
- package/dist/cdn/{3LG5LVBD.js → IDWMR26T.js} +2 -2
- package/dist/cdn/{OA65JG4F.js → IFIHUJWI.js} +2 -2
- package/dist/cdn/{VBPQWNQY.js → IFIJYBSD.js} +2 -2
- package/dist/cdn/{YVUKGXA7.js → IGBESZCF.js} +2 -2
- package/dist/cdn/{K25B4OPK.js → IS2JJESF.js} +2 -2
- package/dist/cdn/{YHXGJ43C.js → IX6USVKJ.js} +2 -2
- package/dist/cdn/IYMMZRBH.js +4 -0
- package/dist/cdn/{FX5T6DY2.js → IYZH7G6L.js} +2 -2
- package/dist/cdn/{TEUSUECK.js → IZL7JV4L.js} +2 -2
- package/dist/cdn/{4RKTOBXG.js → J32TPAZ2.js} +2 -2
- package/dist/cdn/{CLKVZFZ3.js → J5YQKTF4.js} +2 -2
- package/dist/cdn/{OLSVBERN.js → J6YWNGCL.js} +2 -2
- package/dist/cdn/JCIQAHV2.js +18 -0
- package/dist/cdn/{AEBLDJ6I.js → JEZCSUNK.js} +2 -2
- package/dist/cdn/{F4AZ6LGR.js → JHD6URWH.js} +2 -2
- package/dist/cdn/{3AKKKVX7.js → JJYVDJN6.js} +2 -2
- package/dist/cdn/{VMWEYFYK.js → JMOQD6EF.js} +3 -3
- package/dist/cdn/{KXL3WQKN.js → JNJUBRQD.js} +2 -2
- package/dist/cdn/{E5QQFCT4.js → JOS2BNWC.js} +2 -2
- package/dist/cdn/JTEMVV6E.js +4 -0
- package/dist/cdn/{D7CP4BVE.js → JVMUSSRU.js} +2 -2
- package/dist/cdn/{7FYEP4A4.js → JWT6JMSB.js} +1 -1
- package/dist/cdn/{GBGG6MGA.js → KDOT5BP6.js} +2 -2
- package/dist/cdn/{KCZCEE3T.js → KHV27C2N.js} +2 -2
- package/dist/cdn/{QOVIWETW.js → KIX53XWP.js} +1 -1
- package/dist/cdn/{IS7IQIOW.js → KMA7RAFO.js} +1 -1
- package/dist/cdn/{LWMZWLH3.js → KWRWJ2PO.js} +2 -2
- package/dist/cdn/L2GUQQTH.js +18 -0
- package/dist/cdn/{SZTZCLV2.js → L6IPJOHV.js} +2 -2
- package/dist/cdn/{OJQ5Z3EP.js → L6YYI4EP.js} +2 -2
- package/dist/cdn/{IETFJRSJ.js → LHNV3XXK.js} +2 -2
- package/dist/cdn/{BI53W2HV.js → LJIC7RYS.js} +2 -2
- package/dist/cdn/{BI2ZNFKT.js → LMC3LZHO.js} +2 -2
- package/dist/cdn/{ARBLCXP2.js → M2CGVITC.js} +2 -2
- package/dist/cdn/{LOKIVJJR.js → M5ZSBD7R.js} +2 -2
- package/dist/cdn/{UTU3EJ4E.js → MBF2CXLY.js} +2 -2
- package/dist/cdn/{V7OVHRCL.js → MGNTCQYW.js} +2 -2
- package/dist/cdn/{QFINED2Q.js → MI3J5MI3.js} +2 -2
- package/dist/cdn/{MQ6S5EKQ.js → MIPGFQIJ.js} +2 -2
- package/dist/cdn/{2DIQQSS7.js → MOMAAY2V.js} +2 -2
- package/dist/cdn/{CV74ZAHK.js → MQFFUBV3.js} +2 -2
- package/dist/cdn/{DBP6MKV3.js → MSPZGU3B.js} +2 -2
- package/dist/cdn/{MMGEI3E2.js → MT6KAFTZ.js} +2 -2
- package/dist/cdn/{SQH47IMI.js → MXH5FVPI.js} +2 -2
- package/dist/cdn/N454EGKT.js +18 -0
- package/dist/cdn/{OBJT5DQL.js → NAAQEPCA.js} +2 -2
- package/dist/cdn/{NRIKCZQQ.js → NI3MWU75.js} +2 -2
- package/dist/cdn/{Z66Q7VDZ.js → NQ52VKK3.js} +2 -2
- package/dist/cdn/{OJZSGHXG.js → NSPT5WWD.js} +2 -2
- package/dist/cdn/{CIO2VG6T.js → NVKA3ZAO.js} +1 -1
- package/dist/cdn/{SPZCXXRW.js → NZMSCYAO.js} +1 -1
- package/dist/cdn/{KXG3ACJ4.js → O5JAHRRT.js} +1 -1
- package/dist/cdn/{ZGNQ4X7A.js → OBOL4WJV.js} +2 -2
- package/dist/cdn/{SPXZ65SO.js → OJ43QV4D.js} +1 -1
- package/dist/cdn/{5FHXJ3CU.js → OKOJMFJN.js} +2 -2
- package/dist/cdn/{4BTN2B3R.js → OQIWAIAE.js} +2 -2
- package/dist/cdn/{BHVHDS4B.js → OSMPLYN6.js} +4 -4
- package/dist/cdn/{LTY3YEMJ.js → OSSN5FSP.js} +2 -2
- package/dist/cdn/{4QCPQEM3.js → OTC5ZUE3.js} +3 -3
- package/dist/cdn/{NGDLETFN.js → OYAHYM4C.js} +2 -2
- package/dist/cdn/{AZVO7X2V.js → OYDY3NCD.js} +2 -2
- package/dist/cdn/P3ABVSTV.js +4 -0
- package/dist/cdn/P7X7YSZ2.js +4 -0
- package/dist/cdn/{32HGCR4U.js → PBABDBNX.js} +3 -3
- package/dist/cdn/{UAWDLR2T.js → PBMPRX24.js} +2 -2
- package/dist/cdn/{77HK5REE.js → PBRQWAFO.js} +2 -2
- package/dist/cdn/{T64ZSN6G.js → PEPT6NLQ.js} +2 -2
- package/dist/cdn/{BPW42UFS.js → PFTBWKLN.js} +2 -2
- package/dist/cdn/{SUWD6MVR.js → PMGTZ2TG.js} +2 -2
- package/dist/cdn/{DH2VYHEA.js → PTMGAEZQ.js} +2 -2
- package/dist/cdn/{43J3CMJ6.js → PY3XYS6G.js} +1 -1
- package/dist/cdn/{TZCVWRT6.js → PZWQOO2G.js} +2 -2
- package/dist/cdn/{EVB5BCP2.js → Q36TDMCN.js} +2 -2
- package/dist/cdn/{XFA6AOQY.js → Q37KMT3O.js} +2 -2
- package/dist/cdn/{KE43GNT7.js → QBQT3H3S.js} +2 -2
- package/dist/cdn/{OC34OB5L.js → QFR4IBYC.js} +1 -1
- package/dist/cdn/QWZA44BK.js +4 -0
- package/dist/cdn/{JC2IM5XB.js → QYNRPQQR.js} +2 -2
- package/dist/cdn/{BQH3N7SQ.js → R3HFFO4X.js} +2 -2
- package/dist/cdn/R5JUKUW4.js +18 -0
- package/dist/cdn/{6DZIYXEM.js → RB3RHEHW.js} +2 -2
- package/dist/cdn/{TR2NEOEC.js → RCR3NJTA.js} +2 -2
- package/dist/cdn/{OIESJ3KL.js → RK6MZC3M.js} +2 -2
- package/dist/cdn/{ZYPTSYTI.js → RNCPW356.js} +2 -2
- package/dist/cdn/{Y4QXNPFB.js → RXIA7ZEU.js} +2 -2
- package/dist/cdn/RXTK4PJ4.js +4 -0
- package/dist/cdn/{QT6OHKP2.js → RZNA2JWJ.js} +2 -2
- package/dist/cdn/{EVEYVVCT.js → S47C5SPC.js} +1 -1
- package/dist/cdn/{6J7ZEFEX.js → S4PRYWVN.js} +2 -2
- package/dist/cdn/{Z7VOKCJ2.js → SBLNE36X.js} +2 -2
- package/dist/cdn/{7YZFGTJT.js → SBN4LKM6.js} +2 -2
- package/dist/cdn/{KUDEKGGR.js → SEU7GWJS.js} +2 -2
- package/dist/cdn/{VSOJ2IZ4.js → SGGEDYJU.js} +2 -2
- package/dist/cdn/{B7GX6WQ2.js → SIYX5EUA.js} +2 -2
- package/dist/cdn/{KT56YIKP.js → SJBSOLBN.js} +2 -2
- package/dist/cdn/{TVY5IKVU.js → SNHZWXI6.js} +1 -1
- package/dist/cdn/{7WHRTZ5H.js → SP3VNY4Q.js} +2 -2
- package/dist/cdn/{O3YGNVTR.js → SS2PA2Z2.js} +2 -2
- package/dist/cdn/{OKHEUPYI.js → SSUCXPC2.js} +2 -2
- package/dist/cdn/{CYKGRXBO.js → SVTZ6KQM.js} +2 -2
- package/dist/cdn/{27PAMO62.js → SW475RUS.js} +2 -2
- package/dist/cdn/{UZF4A3FT.js → SWUYZ6U5.js} +2 -2
- package/dist/cdn/{FMRHNUJL.js → TC62X3CO.js} +1 -1
- package/dist/cdn/{TMXSPYJH.js → TCPTQT4H.js} +2 -2
- package/dist/cdn/{BFA4BKBO.js → TIQFLJVT.js} +2 -2
- package/dist/cdn/{LUQ7FMMN.js → TSMTNNRT.js} +1 -1
- package/dist/cdn/{CK5OTBYO.js → TTNHM7WX.js} +2 -2
- package/dist/cdn/{MRXWSMLR.js → TUPBI34D.js} +2 -2
- package/dist/cdn/TUZJIMIG.js +4 -0
- package/dist/cdn/{2XGBTQC2.js → TV5VUE2G.js} +2 -2
- package/dist/cdn/{WRINZES6.js → TXWYL7SR.js} +2 -2
- package/dist/cdn/U5MOOG77.js +18 -0
- package/dist/cdn/{WK7DUCCV.js → UIBEQQSW.js} +2 -2
- package/dist/cdn/{JYUJABRJ.js → UKKKSSLB.js} +2 -2
- package/dist/cdn/{2HC4BML5.js → ULTQFU4Z.js} +2 -2
- package/dist/cdn/{ATMFUEOD.js → UOTFZK6J.js} +2 -2
- package/dist/cdn/UOZDTLDK.js +4 -0
- package/dist/cdn/{TT4AJPTD.js → UPY5DG3S.js} +2 -2
- package/dist/cdn/{H26VA4BA.js → UR55WR5C.js} +2 -2
- package/dist/cdn/UY6SR65L.js +18 -0
- package/dist/cdn/{JDL56MNA.js → V5AMYI7Q.js} +2 -2
- package/dist/cdn/{QWZ5HUEW.js → V5AR5GET.js} +1 -1
- package/dist/cdn/{MP6AV2VT.js → VBY26TDT.js} +2 -2
- package/dist/cdn/{AHELA4T4.js → VEHZCG2Q.js} +1 -1
- package/dist/cdn/{CCOMNGDJ.js → VEKVJRA3.js} +2 -2
- package/dist/cdn/{KDS5VU7U.js → VELIMVOA.js} +2 -2
- package/dist/cdn/VH5I26C2.js +18 -0
- package/dist/cdn/{SOKAL66R.js → VIKV76RF.js} +2 -2
- package/dist/cdn/{4GYJYX6S.js → VK5WWE5W.js} +2 -2
- package/dist/cdn/{C4WTLMRX.js → VLJILVR4.js} +2 -2
- package/dist/cdn/{AOSZKBKE.js → VMKUUZLM.js} +1 -1
- package/dist/cdn/{YC375XNT.js → VYFOBVIM.js} +2 -2
- package/dist/cdn/{GBX7ZZLH.js → W2B52NIR.js} +2 -2
- package/dist/cdn/W6HK2ZPG.js +4 -0
- package/dist/cdn/{MM7T6NAK.js → WFYOTS7H.js} +2 -2
- package/dist/cdn/{QMNJ6LO4.js → WIZKN7QT.js} +2 -2
- package/dist/cdn/{6IYRM3GO.js → WVEFWSFF.js} +2 -2
- package/dist/cdn/{HPXNQRCD.js → WW3GFLKS.js} +2 -2
- package/dist/cdn/{UBSVMWOO.js → X2NHXGRP.js} +2 -2
- package/dist/cdn/{LXJBXXCO.js → X7UEPPY2.js} +1 -1
- package/dist/cdn/{4EMHSJHQ.js → XGKHLHMC.js} +2 -2
- package/dist/cdn/{PPTHTB2U.js → XHNW6XWX.js} +2 -2
- package/dist/cdn/{5U35PANI.js → XLKJ2HJD.js} +2 -2
- package/dist/cdn/{IVL6X2PZ.js → XLNIEQQ2.js} +2 -2
- package/dist/cdn/{Q4YSFEBW.js → XNOKMDTC.js} +2 -2
- package/dist/cdn/{T25RIFZ6.js → XNUGFAMU.js} +2 -2
- package/dist/cdn/{CHONHRWK.js → XNV33VDJ.js} +2 -2
- package/dist/cdn/XPBA7FXW.js +4 -0
- package/dist/cdn/{TRSLTEH4.js → XQMJEZF3.js} +2 -2
- package/dist/cdn/{EWOK66Z4.js → XSG2YM3W.js} +2 -2
- package/dist/cdn/{OZN2527A.js → XXUYSD4C.js} +2 -2
- package/dist/cdn/{X44BXCEZ.js → Y2VFZATW.js} +2 -2
- package/dist/cdn/{XKZBWYWQ.js → Y4GEE45F.js} +2 -2
- package/dist/cdn/{XVKHXFUM.js → Y4YZGXDG.js} +2 -2
- package/dist/cdn/{ULI5AYQL.js → YBZZSHIF.js} +2 -2
- package/dist/cdn/YJ2QJSUL.js +4 -0
- package/dist/cdn/{5GYJL6TE.js → YKKCE4SW.js} +2 -2
- package/dist/cdn/{BYC6NCNZ.js → YNV56B27.js} +2 -2
- package/dist/cdn/{IFPGXQQN.js → YOVNI4YY.js} +2 -2
- package/dist/cdn/{6YPMMLAF.js → YPHE7264.js} +2 -2
- package/dist/cdn/{B555K35K.js → YTJPZQWD.js} +2 -2
- package/dist/cdn/{7IQH3HU5.js → YVIMSTEQ.js} +2 -2
- package/dist/cdn/{77A567FP.js → YVUHXCKS.js} +1 -1
- package/dist/cdn/{7SVNHMAW.js → YX4SSQBN.js} +1 -1
- package/dist/cdn/{ZC4RMFOU.js → YZNJJ2WY.js} +2 -2
- package/dist/cdn/{RR64E3RB.js → Z2T27IUZ.js} +2 -2
- package/dist/cdn/{B4VN5PKX.js → ZAWB3IEH.js} +2 -2
- package/dist/cdn/{4WQL5G65.js → ZBYCUJRW.js} +2 -2
- package/dist/cdn/{EMZHXVIQ.js → ZCRJGXL3.js} +2 -2
- package/dist/cdn/{AVJWZC3G.js → ZJBTCJW3.js} +2 -2
- package/dist/cdn/{AHLK4GBO.js → ZJWCFG2H.js} +1 -1
- package/dist/cdn/{YENAM6BK.js → ZKKB7KH3.js} +1 -1
- package/dist/cdn/{MX6QD4JR.js → ZMO74CFY.js} +2 -2
- package/dist/cdn/{BU3IS2BF.js → ZMYSPESV.js} +2 -2
- package/dist/cdn/{XALX65EN.js → ZYK6R6LQ.js} +2 -2
- package/dist/cdn/assets/create-feature/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/create-feature/t9n/messages.json +1 -1
- package/dist/cdn/assets/map-tools/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/map-tools/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +32 -32
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/helpers.js +11 -11
- package/dist/chunks/interfaces.js +3 -3
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-deploy-dialog.js +2 -2
- package/dist/chunks/solutions-deploy-app-nav.js +2 -2
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +5 -5
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.d.ts +6 -0
- package/dist/components/card-manager/customElement.js +14 -14
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.d.ts +6 -0
- package/dist/components/create-feature/customElement.js +15 -15
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.d.ts +20 -2
- package/dist/components/crowdsource-manager/customElement.js +15 -15
- 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/info-card/customElement.js +6 -6
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-list-widget/customElement.d.ts +23 -0
- package/dist/components/layer-list-widget/customElement.js +63 -0
- package/dist/components/layer-list-widget/index.d.ts +1 -0
- package/dist/components/layer-list-widget/index.js +1 -0
- package/dist/components/layer-table/customElement.d.ts +6 -0
- package/dist/components/layer-table/customElement.js +7 -6
- package/dist/components/map-basemap-gallery/customElement.js +1 -1
- package/dist/components/map-card/customElement.d.ts +13 -1
- package/dist/components/map-card/customElement.js +13 -13
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-floor-filter/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +3 -3
- 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.d.ts +24 -3
- package/dist/components/map-tools/customElement.js +102 -64
- package/dist/components/map-tools/index.d.ts +1 -0
- package/dist/components/map-tools/index.js +1 -0
- 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.d.ts +9 -3
- package/dist/components/selection-tool/customElement.js +9 -4
- package/dist/components/solution-configure-titles/customElement.d.ts +6 -0
- package/dist/components/solution-configure-titles/customElement.js +9 -8
- package/dist/components/solution-delete-dialog/customElement.d.ts +6 -0
- package/dist/components/solution-delete-dialog/customElement.js +8 -7
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +4 -4
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +2 -2
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +6 -6
- package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
- package/dist/components/solutions-deployed-filter-panel/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/solutions-resource-panel/customElement.js +1 -1
- package/dist/components/solutions-resources/customElement.js +1 -1
- package/dist/components/solutions-resources-shell/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/docs/api.json +652 -9
- package/dist/docs/docs.json +537 -13
- package/dist/docs/vscode.html-custom-data.json +120 -3
- package/dist/docs/web-types.json +254 -10
- package/dist/index.d.ts +17 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +10 -9
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +15 -8
- package/dist/types/preact.d.ts +16 -8
- package/dist/types/react.d.ts +17 -8
- package/dist/types/stencil.d.ts +15 -8
- package/dist/utils/interfaces.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cdn/2FJXFYLT.js +0 -4
- package/dist/cdn/5BHGOS3J.js +0 -18
- package/dist/cdn/5EFBSE6L.js +0 -18
- package/dist/cdn/64PUXJTT.js +0 -4
- package/dist/cdn/6TSZTSHR.js +0 -4
- package/dist/cdn/75S3HU43.js +0 -4
- package/dist/cdn/7Q2OSCZT.js +0 -4
- package/dist/cdn/AO23C6NG.js +0 -4
- package/dist/cdn/ARZ3WSGZ.js +0 -4
- package/dist/cdn/AYRZKO5Q.js +0 -4
- package/dist/cdn/BYWOGMBB.js +0 -4
- package/dist/cdn/BZAQEA2T.js +0 -4
- package/dist/cdn/C732PWJB.js +0 -18
- package/dist/cdn/CYPDP5ZF.js +0 -4
- package/dist/cdn/EG3WPMEU.js +0 -4
- package/dist/cdn/F3RAFZYD.js +0 -4
- package/dist/cdn/F6ZXTKHM.js +0 -4
- package/dist/cdn/HEPJMKPP.js +0 -18
- package/dist/cdn/IVTBDY4M.js +0 -4
- package/dist/cdn/JOG2SKIS.js +0 -4
- package/dist/cdn/JOPYA5RQ.js +0 -18
- package/dist/cdn/LE5UAHXH.js +0 -4
- package/dist/cdn/LGVBGJWX.js +0 -18
- package/dist/cdn/LI6DICLE.js +0 -18
- package/dist/cdn/NCQMBI5W.js +0 -4
- package/dist/cdn/PQT3HOXE.js +0 -4
- package/dist/cdn/QTAJRFK7.js +0 -18
- package/dist/cdn/R7GKBUYA.js +0 -4
- package/dist/cdn/SC7P5DTG.js +0 -4
- package/dist/cdn/UI2N3K2H.js +0 -18
- package/dist/cdn/VQBSJOWS.js +0 -18
- package/dist/cdn/Y6OFELWW.js +0 -4
- package/dist/cdn/YSK3M7YN.js +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import c from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import c from"./V5AR5GET.js";import a from"./2LRLVNZS.js";import{a as b}from"./5MFYACQG.js";import{a as C}from"./MSPZGU3B.js";import{b as _}from"./DE4W54A4.js";import"./WW3GFLKS.js";import"./I7JY674N.js";import{F as v,G as S,H as x,J as f,h as E,i as s,u as T}from"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([D,L,P,u,h,F,M,p])=>{var{state:t,onChange:k}=M({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),g="time-slider-watch",I=class{constructor(){this.initializeModules()}async initializeModules(){try{this.handles=new D}catch{}}async init(e){if(!e)return;e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:n}=t;if(i)try{if(await i.when(),n.length===1&&n[0]?.type==="map")this.initTimeSlider(e,n[0]);else{let r=await this.getTimeLayerViews(i,n);t.timeInfoItems=this.generateTimeInfoItems(r,n),this.initTimeSlider(e)}}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let n=e.map?.allLayers,r=l=>n?.find(({id:c})=>l===c),a=i.map(({id:l})=>r(l)).map(async l=>await e.whenLayerView(l));return await Promise.all(a)}generateTimeInfoItems(e,i){return[...i].map(n=>{let r=e.find(({layer:a})=>a.id===n.id);return this.generateTimeInfoItem(r,n)})}generateTimeInfoItem(e,{increments:i,rangeStart:n,rangeEnd:r,timeIntervalValue:a}){let l=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:a??1,rangeStart:new Date(n),rangeEnd:new Date(r),timeExtent:l,previousTimeExtent:null}}initTimeSlider(e,i){let n=r=>{t.timeSlider=new F(r),t.autoPlay&&t.timeSlider.play()};if(i){let r=this.getTimeSliderConfig(e,i);n(r)}else{let r=t?.timeInfoItems?.[0];if(!r)return;t.selectedTimeInfoItem=r;let a=this.getTimeSliderConfig(e);n(a)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){k("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let n=i.layerView;this.applyTimeExtent(n,n?.featureEffect?.filter?.timeExtent||n.filter?.timeExtent,e)})})}getTimeSliderConfig(e,i){let n={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let o=t.view?.map?.widgets?.timeSlider,w={...n,fullTimeExtent:o?.fullTimeExtent,timeExtent:o?.currentTimeExtent};return o?.stopInterval?.unit&&o?.stopInterval?.value&&(w.stops={interval:new h({unit:o?.stopInterval?.unit,value:o?.stopInterval?.value})}),w}let[{timeExtent:r,rangeStart:a,rangeEnd:l,unit:c,timeIntervalValue:V}]=t.timeInfoItems;return{...n,fullTimeExtent:r,timeExtent:new u({start:a,end:l}),stops:{interval:new h({unit:c,value:V})}}}initialize2DView(){t.timeInfoItems.forEach(e=>this.applyTimeExtent(e.layerView,new u({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,n){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,n):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,n){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||n){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=new L({filter:{timeExtent:i},includedEffect:await p(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await p(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=new P({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(g)&&this.handles?.remove(g),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),g)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=this.getTimeExtent(e),t.timeSlider.stops={interval:this.getTimeInterval(e)})}getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:n}){return n??new u({start:e,end:i})}getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return new h({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},m=new I,R=E`@layer{.instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-color-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand: var(--calcite-color-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}}`,d={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},y=class extends x{constructor(){super(...arguments),this._messages=C({name:"instant-apps-time-filter"}),this.timeSliderRef=v(),this.timeInfoConfigItems=[],this.autoPlay=!1}static{this.properties={timeInfoConfigItems:0,filterMode:0,view:0,timeSliderConfig:0,autoPlay:5}}static{this.styles=R}static{this.shadowRootOptions=T}async load(){t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode)}willUpdate(e){e.has("timeInfoConfigItems")&&(this.hasUpdated||this.timeInfoConfigItems?.length>0)&&(t.timeInfoConfigItems=this.timeInfoConfigItems,m.init(this.timeSliderRef.value)),e.has("filterMode")&&(t.filterMode=this.filterMode),e.has("timeSliderConfig")&&(t.timeSliderConfig=this.timeSliderConfig,m.init(this.timeSliderRef.value)),e.has("autoPlay")&&(this.hasUpdated||this.autoPlay)&&(t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop()))}async loaded(){try{await m.init(this.timeSliderRef.value)}catch{}finally{t.loading=!1}}render(){return s`<div class=${`${d.base}${this.view.type!=="2d"?d.threeD:""}`}>${this._renderLoader()}${this.view.type==="2d"&&this._renderTopEl()||""}${b("time-slider",s`<div ${S(this.timeSliderRef)}></div>`)}</div>`}_renderLoader(){return t.loading?s`<div><div class=${f(d.background)}></div><div class=${f(d.loadingContainer)}><calcite-loader scale=m .label=${this._messages.loading??""} .text=${this._messages.loading}></calcite-loader></div></div>`:null}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let e=t.selectedTimeInfoItem?.layerView?.layer?.title;return s`<span class=${f(d.layerTitle)}>${e}</span>`}_renderDropdown(){return t.selectedTimeInfoItem?s`<calcite-dropdown>${this._renderDropdownButton()}${this._renderDropdownItems()}</calcite-dropdown>`:null}_renderDropdownButton(){return s`<calcite-button slot=trigger appearance=transparent icon-end=chevron-down width=full alignment=space-between>${m.getLabel(t.selectedTimeInfoItem)}</calcite-button>`}_renderDropdownItems(){return t.timeInfoItems.map(e=>this._renderDropdownItem(e))}_renderDropdownItem(e){let i=t.selectedTimeInfoItem?.layerView?.layer?.id,n=e?.layerView?.layer?.id;return s`<calcite-dropdown-item @calciteDropdownItemSelect=${()=>m.updateSelectedTimeInfoItem(e)} .selected=${i===n}>${m.getLabel(e)}</calcite-dropdown-item>`}};_("instant-apps-time-filter",y);return y},"core/Handles","layers/support/FeatureEffect","layers/support/FeatureFilter","time/TimeExtent","time/TimeInterval","widgets/TimeSlider",a,c)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a,b}from"./GNFWWLJW.js";import"./S47C5SPC.js";import"./RNCPW356.js";import"./JWT6JMSB.js";import"./EC3AONCY.js";import"./SNHZWXI6.js";export{a as EventEditorTypes,b as buildSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as n}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as n}from"./MSPZGU3B.js";import{b as i}from"./DE4W54A4.js";import"./WW3GFLKS.js";import"./I7JY674N.js";import{H as o,h as a,i as s}from"./O5JAHRRT.js";import"./SNHZWXI6.js";var p=a`[role=alert]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}`,r=class extends o{constructor(){super(),this._messages=n({name:"instant-apps-app-error"}),this._handleErrorMessage=this._handleErrorMessage.bind(this),this.listenOn(document,"instant-apps-error",this._handleErrorMessage)}static{this.properties={errorMessage:16}}static{this.styles=p}async clearErrorMessage(){this.errorMessage=void 0}_handleErrorMessage(e){if(!e.detail||!this._messages?.errorMessages)return;let t=this._messages.errorMessages[e.detail];t&&(this.errorMessage=t)}render(){return s`<div role=alert>${this.errorMessage&&s`<p>${this.errorMessage}</p>`||""}</div>`}};i("instant-apps-app-error",r);export{r as InstantAppsAppError};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import e from"./4R3IITJQ.js";import b from"./F2TKY5WY.js";import a from"./JMOQD6EF.js";import"./QYNRPQQR.js";import"./XHNW6XWX.js";import{a as _}from"./UKKKSSLB.js";import"./WW3GFLKS.js";import"./I7JY674N.js";import"./VEHZCG2Q.js";import"./JOS2BNWC.js";import"./TSMTNNRT.js";import"./NVKA3ZAO.js";import"./6GFUJPON.js";import"./GZB5YXOY.js";import"./RCR3NJTA.js";import"./ARVRS7UX.js";import"./NZMSCYAO.js";import"./PY3XYS6G.js";import"./HL7XWNM3.js";import"./ACWL6TYN.js";import"./RZNA2JWJ.js";import"./UIBEQQSW.js";import"./4UR4HQTL.js";import"./BPPPAYEV.js";import"./VIKV76RF.js";import"./YX4SSQBN.js";import"./2436BI76.js";import{b as m}from"./GLALIG3V.js";import{F as c,G as p,H as g,J as n,h as d,i as r,r as s,u as l}from"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([f,a,,,{e:w}])=>{var y=d`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import"./SNHZWXI6.js";var e="\u60A8\u6C92\u6709\u8DB3\u5920\u7684\u9EDE\u6578\u4F86\u57F7\u884C\u6B64\u64CD\u4F5C\u3002 \u806F\u7D61 ArcGIS \u7CFB\u7D71\u7BA1\u7406\u54E1\u4EE5\u53D6\u5F97\u5354\u52A9\u3002",a="\u6B64\u5DE5\u5177\u662F\u5F9E\u7B46\u8A18\u672C\u767C\u4F48\u7684\u3002 \u60A8\u7684\u7D44\u7E54\u5C0D ArcGIS Notebooks \u7684\u5B58\u53D6\u88AB\u5C01\u9396\u3002 \u8ACB\u806F\u7D61\u60A8\u7684\u7BA1\u7406\u54E1\u4EE5\u8ABF\u6574\u8A2D\u5B9A\u3002",r="${ dataPath } \u4E0D\u80FD\u6709 ${ additionalProperty }\u3002",t="${ dataPath } \u5FC5\u9808\u7B26\u5408\u4E0B\u5217\u5176\u4E2D\u4E00\u9805\u7D50\u69CB\u63CF\u8FF0: ${ schemaOptions }\u3002",o="\u6B63\u5728\u5617\u8A66\u91CD\u65B0\u5132\u5B58\u5730\u5716\u3002",s="\u9EDE\u6578\u4F30\u8A08\u5931\u6557\u3002 \u5411\u4E0B\u6372\u52D5\uFF0C\u4FEE\u6B63\u932F\u8AA4\uFF0C\u4E26\u91CD\u65B0\u4F30\u8A08\u9EDE\u6578\u3002",i="\u57F7\u884C\u5206\u6790\u6642\u767C\u751F\u932F\u8AA4\u3002",l="${ dataPath } \u5FC5\u9808\u7B49\u65BC\u4E0B\u5217\u5176\u4E2D\u4E00\u500B\u5141\u8A31\u503C: ${ allowedValues }\u3002",d="\u7121\u6CD5\u5132\u5B58\u5206\u6790\u6B77\u7A0B\u8A18\u9304",n="\u6B77\u7A0B\u8A18\u9304\u5132\u5B58\u9AD4\u6EFF\u6EA2\u3002 \u5F9E\u5206\u6790\u6B77\u53F2\u8A18\u9304\u4E2D\u79FB\u9664\u4E00\u4E9B\u9805\u76EE\u4E26\u5617\u8A66\u518D\u6B21\u5132\u5B58\u3002",c="\u670D\u52D9\u540D\u7A31\u5305\u542B\u4E00\u6216\u591A\u500B\u7121\u6548\u5B57\u5143\u3002",m="\u5C07\u81E8\u6642\u5716\u5C64\u5132\u5B58\u70BA\u8A17\u7BA1\u5716\u5FB5\u5716\u5C64\u672A\u5B8C\u6210\u3002",u="\u7121\u6CD5\u53D6\u5F97\u91D1\u9470\u5C6C\u6027\u3002",E="\u7121\u6CD5\u8F09\u5165\u5716\u5C64\u3002",h="\u5716\u5C64\u7121\u6CD5\u4F7F\u7528\u3002",y="${ dataPath } \u7684\u9805\u76EE\u6578\u4E0D\u61C9\u591A\u65BC ${ limit } \u500B\u3002",P="\u5132\u5B58\u6A21\u578B\u6642\u767C\u751F\u932F\u8AA4\u3002 \u6B63\u5728\u5617\u8A66\u91CD\u65B0\u5132\u5B58\u3002",p="${ dataPath } \u7684\u9805\u76EE\u6578\u4E0D\u61C9\u5C11\u65BC ${ limit } \u500B\u3002",S="${ dataPath } \u4E0D\u61C9\u77ED\u65BC ${ limit } \u500B\u5B57\u5143\u3002",$="\u7121\u6CD5\u8F09\u5165\u6A21\u578B\u9805\u76EE\u3002 \u78BA\u5B9A\u6A21\u578B\u5B58\u5728\uFF0C\u4E26\u4E14\u5DF2\u6388\u4E88\u5B58\u53D6\u6B0A\u9650\u3002",v="\u7121\u6CD5\u5B8C\u6210\u8ACB\u6C42\u3002",f="\u60A8\u6C92\u6709\u57F7\u884C\u6B64\u5DE5\u5177\u7684\u6B0A\u9650\u3002 <calcite-link target='_blank' href='${ docLink }'>\u77AD\u89E3\u8A73\u7D30\u8CC7\u8A0A</calcite-link>",F="\u7121\u6CD5\u767B\u5165\u5230\u5165\u53E3\u7DB2\u7AD9\u3002",I="\u7121\u6CD5\u8B80\u53D6\u8F38\u5165\u8CC7\u6599\u3002",k="${ dataPath } \u7F3A\u5C11\u540D\u70BA ${ missingProperty } \u7684\u5C6C\u6027\u3002",T="\u5DF2\u5B58\u5728\u6B64\u540D\u7A31\u7684\u7D50\u679C\u5716\u5C64\u3002 \u7D50\u679C\u5716\u5C64\u5728\u6574\u500B\u7D44\u7E54\u4E2D\u5FC5\u9808\u6709\u552F\u4E00\u540D\u7A31\u3002 \u8ACB\u4F7F\u7528\u4E0D\u540C\u7684\u540D\u7A31\u3002",L="\u8F38\u51FA\u540D\u7A31\u5305\u542B\u4E00\u6216\u591A\u500B\u7121\u6548\u5B57\u5143\u3002 <a href='${docLink}' target='_blank'>\u77AD\u89E3\u8A73\u7D30\u8CC7\u8A0A\u3002</a>",b="\u7531\u65BC\u4E00\u6216\u591A\u500B\u7121\u6548\u6B04\u4F4D\uFF0C\u5C07\u81E8\u6642\u5716\u5C64\u767C\u4F48\u70BA\u8A17\u7BA1\u5716\u5C64\u5931\u6557\u3002 \u91CD\u65B0\u57F7\u884C\u5DE5\u5177\u4EE5\u5EFA\u7ACB\u5177\u5099\u6709\u6548\u6B04\u4F4D\u7684\u5716\u5C64\u3002",N="\u5DE5\u4F5C\u63D0\u4EA4\u5931\u6557\u3002 \u5411\u4E0B\u6372\u52D5\uFF0C\u4FEE\u6B63\u932F\u8AA4\uFF0C\u4E26\u91CD\u65B0\u57F7\u884C\u5206\u6790\u3002",g="${ dataPath } \u81F3\u5C11\u5FC5\u9808\u6709\u4E00\u500B\u975E\u7A7A\u767D\u5B57\u5143\u3002",V={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,V as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
4
|
var i=(e,t="v")=>{if(!e)return e;let n=e.indexOf("?")>-1?"&":"?";return e+=`${n}${t}=${new Date().getTime()}`,e};export{i as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import a from"./2LRLVNZS.js";export default $arcgis.t(([t])=>{var a=t({data:{},relationshipRampExpandStates:{},compact:!1}),o=a.state;a.onChange;var s=a;return{a:o,b:s}},a)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import c from"./VEKVJRA3.js";import b from"./XNOKMDTC.js";import"./YVIMSTEQ.js";import"./5MFYACQG.js";import a from"./JMOQD6EF.js";import"./QYNRPQQR.js";import"./XHNW6XWX.js";import"./UKKKSSLB.js";import"./WW3GFLKS.js";import"./I7JY674N.js";import"./VEHZCG2Q.js";import"./JOS2BNWC.js";import"./TSMTNNRT.js";import"./NVKA3ZAO.js";import"./6GFUJPON.js";import"./GZB5YXOY.js";import"./RCR3NJTA.js";import"./ARVRS7UX.js";import"./NZMSCYAO.js";import"./PY3XYS6G.js";import"./HL7XWNM3.js";import"./ACWL6TYN.js";import"./RZNA2JWJ.js";import"./UIBEQQSW.js";import"./4UR4HQTL.js";import"./BPPPAYEV.js";import"./VIKV76RF.js";import"./YX4SSQBN.js";import"./2436BI76.js";import"./GLALIG3V.js";import"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{d as m,e as c,f as d,g as f,p as C}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{d as m,e as c,f as d,g as f,p as C}from"./O5JAHRRT.js";var P=t=>(...p)=>{let s=c(),e=new t(...p),o=e.exports;m(s.at(-1));let n=e.component.manager;n.W(e,o),e.watchExports(n.W.bind(n,e)),d(e);let r=[e.component,...s].reverse();return C(r,a=>a===void 0?void 0:E(e,a,o),o)},E=(t,{host:p,key:s,isReactive:e},o)=>{let n=p,r=n[s]!==t.exports,a=n[s]!==o,g=o!==t.exports;if(r&&!a&&g&&(n[s]=t.exports),p===t.component){if(e){let i=t.component.manager;a&&i.W(t,n[s]),t.onUpdate(v=>{if(v.has(s)){let x=n[s];x!==t.exports&&i.W(t,x)}})}t.O=e?void 0:s}let h=t.component.constructor.elementProperties.get(s)?.readOnly;t.watchExports(()=>{n[s]!==t.exports&&(h?f(()=>{n[s]=t.exports}):n[s]=t.exports)})};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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import"./SNHZWXI6.js";var s=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",elements:[{labelKey:`${e}.fields.allowRegistration.label`,scope:"/properties/allowRegistration",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.allowRegistration.helperText`},labels:[`{{${e}.fields.allowRegistration.enabled.label:translate}}`,`{{${e}.fields.allowRegistration.disabled.label:translate}}`],descriptions:[`{{${e}.fields.allowRegistration.enabled.description:translate}}`,`{{${e}.fields.allowRegistration.disabled.description:translate}}`],icons:["user-calendar","circle-disallowed"],layout:"horizontal"}},{labelKey:`${e}.fields.notifyAttendees.label`,scope:"/properties/notifyAttendees",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.notifyAttendees.helperText`},labels:[`{{${e}.fields.notifyAttendees.enabled.label:translate}}`,`{{${e}.fields.notifyAttendees.disabled.label:translate}}`],descriptions:[`{{${e}.fields.notifyAttendees.enabled.description:translate}}`,`{{${e}.fields.notifyAttendees.disabled.description:translate}}`],icons:["envelope","circle-disallowed"],layout:"horizontal"}}]}]});export{s as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import"./SNHZWXI6.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import"./SNHZWXI6.js";var o=async(e,r,t)=>({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.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import"./SNHZWXI6.js";var e=()=>({properties:{allowRegistration:{type:"boolean",enum:[!0,!1],default:!0},notifyAttendees:{type:"boolean",enum:[!0,!1],default:!0}}});export{e as buildSchema};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as r}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as r}from"./ZYK6R6LQ.js";import{b as o}from"./GLALIG3V.js";import{H as n,L as e,h as i,i as s}from"./O5JAHRRT.js";import"./SNHZWXI6.js";var a=i`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as m}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as m}from"./OQIWAIAE.js";import{a as p}from"./F34GFQN3.js";import"./ARVRS7UX.js";import"./NZMSCYAO.js";import"./PY3XYS6G.js";import"./HL7XWNM3.js";import{a,b as n}from"./SBLNE36X.js";import"./OBOL4WJV.js";import"./ACWL6TYN.js";import"./RZNA2JWJ.js";import{a as r}from"./7ZJNNS35.js";import{a as s}from"./4NHL44S3.js";import"./UIBEQQSW.js";import"./4UR4HQTL.js";import"./BPPPAYEV.js";import"./VIKV76RF.js";import"./YX4SSQBN.js";import{a as i}from"./FLASQXOF.js";import"./NAAQEPCA.js";import"./YPHE7264.js";import"./ZJBTCJW3.js";import"./GYFR555Y.js";import"./GNFWWLJW.js";import"./S47C5SPC.js";import"./RNCPW356.js";import"./JWT6JMSB.js";import"./KIX53XWP.js";import"./GPBFVBWH.js";import"./2436BI76.js";import"./Q36TDMCN.js";import"./GRW2TCVX.js";import"./UPY5DG3S.js";import"./A6C2AVNV.js";import"./4PCQCTQ6.js";import"./4EKY6V5Y.js";import"./54TPFPGT.js";import"./IX6USVKJ.js";import"./NQ52VKK3.js";import"./CUSF545L.js";import"./EC3AONCY.js";import"./SNHZWXI6.js";var g=async(e,t,l)=>{var o;return{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`}]}},{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.purpose.maxLengthError"}]}},...p(e,t.thumbnail,t.thumbnailUrl,"initiative",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 s(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await r(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await a(t.location,l.hubRequestOptions),options:await n(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}},{type:"Section",labelKey:`${e}.sections.timeline.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.timeline.helperText`}},elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]}]},{type:"Section",labelKey:"shared.sections.heroBanner.label",elements:[{type:"Section",labelKey:"shared.sections.heroBannerAppearance.label",options:{section:"block",helperText:{labelKey:"shared.sections.heroBannerAppearance.helperText"}},elements:[{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.hero.map.label:translate}}`,`{{${e}.fields.hero.image.label:translate}}`],descriptions:[`{{${e}.fields.hero.map.description:translate}}`,`{{${e}.fields.hero.image.description:translate}}`],icons:["map-pin","image"]}},{labelKey:`${e}.fields.featuredImage.label`,scope:"/properties/view/properties/featuredImage",type:"Control",rule:{effect:i.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},options:{control:"hub-field-input-image-picker",imgSrc:m((o=t.view)===null||o===void 0?void 0:o.featuredImageUrl,l.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",rule:{effect:i.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}}}]}]}]}};export{g as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as h}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{b as h}from"./DE4W54A4.js";import{F as o,G as a,H as m,J as n,h as d,i as c,u as l}from"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([v,p,g])=>{var f=d`@layer{.esri-measurement,.esri-coordinate-conversion{width:300px}.instant-apps-measurement-tool__hide{display:none}}`,u="instant-apps-measurement-tool",s={base:u,hide:`${u}__hide`},r=class extends m{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=l}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new v({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(s.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(s.hide);let i=this.el.getRootNode().querySelector(`calcite-action[data-value="${e}"]`);i&&i.setFocus()}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new p({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let i=this._coordinateWidget.formats.find(_=>_.name===t);this._coordinateWidget?.conversions?.splice(0,0,new g({format:i}))}e!=null&&this._setActiveTool(e)}render(){return c`<div class=${n(s.base)}><div ${a(this._measureElement)}></div><div class=${n(s.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);return r},"widgets/Measurement","widgets/CoordinateConversion","widgets/CoordinateConversion/support/Conversion")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as e}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as e}from"./NQ52VKK3.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a}from"./LHNV3XXK.js";import"./YVUHXCKS.js";import"./2M2HOVJN.js";import"./BPPPAYEV.js";import"./VIKV76RF.js";import"./YX4SSQBN.js";import"./2436BI76.js";import"./SNHZWXI6.js";export{a as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import"./SNHZWXI6.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",s="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",i="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",m="The service name contains one or more invalid characters.",c="Saving the temporary layer as a hosted feature layer did not complete.",h="Failed to get key properties.",u="Failed to load the layer.",y="Layer is not available.",p="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",f="${ dataPath } must not have fewer than ${ limit } items.",g="${ dataPath } must not be shorter than ${ limit } characters.",E="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",P="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",F="Failed to log in to portal.",b="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",k="The output name contains one or more invalid characters. <a href='${docLink}' target='_blank'>Learn more.</a>",w="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",L="${ dataPath } must have at least one non-whitespace character.",A={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:h,layerLoadFailure:u,layerUnavailable:y,maxItems:p,mbFailedToSave:v,minItems:f,minLength:g,modelNotFound:E,networkError:P,noPermissionToAccessTool:S,portalLoadError:F,queryFeaturesError:b,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:w,toolValidationError:I,whiteSpacePattern:L};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,A as default,i as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,h as keyPropertiesError,u as layerLoadFailure,y as layerUnavailable,p as maxItems,v as mbFailedToSave,f as minItems,g as minLength,E as modelNotFound,P as networkError,S as noPermissionToAccessTool,F as portalLoadError,b as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,w as temporaryLayerFieldsError,I as toolValidationError,L as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as _}from"./AOSZKBKE.js";import{a as b}from"./DBP6MKV3.js";import{b as w}from"./PEHHNJ6V.js";import"./HPXNQRCD.js";import"./52OB5KCR.js";import{F as u,G as g,H as f,J as r,h as m,i as s,l as h}from"./KXG3ACJ4.js";import"./TVY5IKVU.js";export default $arcgis.t(([y])=>{var d={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},x=new Map;Object.keys(d).forEach(o=>{x.set(o,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${d[o].fill}"><path d="${d[o].path}"/></svg>`)});function c(o){return x.get(o)||""}var V=m`:host{display:block;--instant-apps-create-action-background: var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover: var( --calcite-color-foreground-2 );--instant-apps-create-action-background-press: var( --calcite-color-foreground-3 );--instant-apps-create-action-height: 100%;--instant-apps-create-action-width: fit-content;--instant-apps-create-action-icon-color: var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-create-background: var(--calcite-color-foreground-1);--instant-apps-create-text-color: var(--calcite-color-text-1);--instant-apps-create-popover-width: 450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1: var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1: var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 .5rem;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:.5rem}.instant-apps-create__option:first-of-type{margin-top:.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option{cursor:pointer;--calcite-color-text-link: var(--calcite-color-text-1);align-items:stretch;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:.75rem;color:var(--calcite-color-text-2);padding:.75rem 0 0 .75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:.25rem;color:#7e7e7e;--tw-translate-x: 0px;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}`,n={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",header:"instant-apps-create__header",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle"},v=class extends f{constructor(){super(...arguments),this._messages=b({name:"instant-apps-create",blocking:!0}),this.popoverEl=u(),this.baseClass=n.baseLight,this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"]}static{this.properties={baseClass:16,popoverIcon:0,mode:3,popoverPositioning:1,popoverPlacement:1,showHeader:5,content:0,options:0,portal:0}}static{this.styles=V}load(){this.baseClass=_(this.el)==="dark"?n.baseDark:n.baseLight,this.initializeModules(),this.initializePredefinedOptions()}willUpdate(t){t.has("content")&&this._createOptionsLookup&&Object.keys(this._createOptionsLookup).forEach(e=>{this._createOptionsLookup[e].href=this.hrefLookup(e)})}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}initializeModules(){this.handles=new y}initializePredefinedOptions(){let{instantApps:t,instantAppsDesc:e,mapViewer:a,mapViewerDesc:i,arcgisStoryMaps:p,storyMapsDesc:l,experienceBuilder:$,experienceBuilderDesc:z,dashboards:A,dashboardsDesc:k}=this._messages;this._createOptionsLookup={"instant-apps":{title:t,subtitle:e,img:c("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:a,subtitle:i,img:c("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:p,subtitle:l,img:c("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:$,subtitle:z,img:c("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:A,subtitle:k,img:c("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){let e=this.getBaseUrl(this.portal),a=this._getEnvironment(e),i=this.contentHref();switch(t){case"instant-apps":return`${e}/apps/instantgallery/index.html?${i}`;case"dashboards":return this.content!=null&&"portalItem"in this.content?`${e}/apps/dashboards/new#id=${this.content?.portalItem?.id}`:`${e}/apps/dashboards/new`;case"map-viewer":return`${e}/apps/mapviewer/index.html?${i}`;case"story-maps":return a==="enterprise"?`${e}/apps/storymaps/stories/new?${i}`:`https://storymaps${a==="prod"?"":a}.arcgis.com/stories/new?${i}`;case"experience-builder":return a==="enterprise"?`${e}/apps/experiencebuilder/builder/?page=template&${i}`:`https://experience${a==="prod"?"":a}.arcgis.com/builder/page/template/?${i}`}return""}contentHref(){return this?.content?.portalItem?.type==="Web Map"?`webmap=${this.content?.portalItem?.id}`:this?.content?.portalItem?.type==="Web Scene"?`webscene=${this.content?.portalItem?.id}`:typeof this?.content?.fetchMembers=="function"?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";let{customBaseUrl:e,portalHostname:a,urlKey:i}=t,{protocol:p}=window.location,l=i?`${i}.${e}`:a;return`${p}//${l}`}_getEnvironment(t){let e="";try{e=new URL(t)?.hostname}catch{}return e?.includes("arcgis.com")?e.includes("devext")&&"dev"||e.includes("qaext")&&"qa"||"prod":"enterprise"}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel();return s`<div class=${r(this.baseClass)}>${t}</div>`}renderPopover(){let t=this.renderPanel();return[s`<calcite-popover reference-element=create-popover-btn .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close .label=${this._messages.createLabel} ${g(this.popoverEl)}>${t}</calcite-popover>`,s`<calcite-action id=create-popover-btn alignment=center .icon=${this.popoverIcon} title=${this._messages.create??h} .text=${this._messages.create}></calcite-action>`]}renderPanel(){let t=this.showHeader?this.renderHeader():null,e=this.renderPanelOptions(),a=this.mode==="inline"?n.inlineContainer:n.popoverContainer;return s`<div class=${r(a)}>${t}${e}</div>`}renderHeader(){return s`<div class=${r(n.header)}><h3>${this._messages.create}</h3><p>${this._messages.createSubheading}</p></div>`}renderPanelOptions(){return s`<nav>${this.options.map(t=>this.renderOption(t))}</nav>`}renderOption(t){if(typeof t=="string"&&(t=this._createOptionsLookup?.[t]),t==null)return s`<div></div>`;let{title:e,subtitle:a,img:i,href:p}=t;return s`<a class=${r(n.option)} href=${p??h} target=_blank>${s`<span class=${r(n.optionIcon)} .innerHTML=${i??""}></span><span class=${r(n.optionText)}><span class=${r(n.optionTextWrapper)}><h3 class=${r(n.optionTitle)}>${e}</h3><calcite-icon scale=s icon=launch></calcite-icon></span><p class=${r(n.optionSubtitle)}>${a}</p></span>`}</a>`}};w("instant-apps-create",v);return v},"core/Handles")
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as _}from"./VMKUUZLM.js";import{a as b}from"./MSPZGU3B.js";import{b as w}from"./DE4W54A4.js";import"./WW3GFLKS.js";import"./I7JY674N.js";import{F as u,G as g,H as f,J as r,h as m,i as s,l as h}from"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([y])=>{var d={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},x=new Map;Object.keys(d).forEach(o=>{x.set(o,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${d[o].fill}"><path d="${d[o].path}"/></svg>`)});function c(o){return x.get(o)||""}var V=m`:host{display:block;--instant-apps-create-action-background: var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover: var( --calcite-color-foreground-2 );--instant-apps-create-action-background-press: var( --calcite-color-foreground-3 );--instant-apps-create-action-height: 100%;--instant-apps-create-action-width: fit-content;--instant-apps-create-action-icon-color: var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-create-background: var(--calcite-color-foreground-1);--instant-apps-create-text-color: var(--calcite-color-text-1);--instant-apps-create-popover-width: 450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1: var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1: var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 .5rem;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:.5rem}.instant-apps-create__option:first-of-type{margin-top:.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option{cursor:pointer;--calcite-color-text-link: var(--calcite-color-text-1);align-items:stretch;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:.75rem;color:var(--calcite-color-text-2);padding:.75rem 0 0 .75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:.25rem;color:#7e7e7e;--tw-translate-x: 0px;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}`,n={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",header:"instant-apps-create__header",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle"},v=class extends f{constructor(){super(...arguments),this._messages=b({name:"instant-apps-create",blocking:!0}),this.popoverEl=u(),this.baseClass=n.baseLight,this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"]}static{this.properties={baseClass:16,popoverIcon:0,mode:3,popoverPositioning:1,popoverPlacement:1,showHeader:5,content:0,options:0,portal:0}}static{this.styles=V}load(){this.baseClass=_(this.el)==="dark"?n.baseDark:n.baseLight,this.initializeModules(),this.initializePredefinedOptions()}willUpdate(t){t.has("content")&&this._createOptionsLookup&&Object.keys(this._createOptionsLookup).forEach(e=>{this._createOptionsLookup[e].href=this.hrefLookup(e)})}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}initializeModules(){this.handles=new y}initializePredefinedOptions(){let{instantApps:t,instantAppsDesc:e,mapViewer:a,mapViewerDesc:i,arcgisStoryMaps:p,storyMapsDesc:l,experienceBuilder:$,experienceBuilderDesc:z,dashboards:A,dashboardsDesc:k}=this._messages;this._createOptionsLookup={"instant-apps":{title:t,subtitle:e,img:c("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:a,subtitle:i,img:c("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:p,subtitle:l,img:c("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:$,subtitle:z,img:c("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:A,subtitle:k,img:c("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){let e=this.getBaseUrl(this.portal),a=this._getEnvironment(e),i=this.contentHref();switch(t){case"instant-apps":return`${e}/apps/instantgallery/index.html?${i}`;case"dashboards":return this.content!=null&&"portalItem"in this.content?`${e}/apps/dashboards/new#id=${this.content?.portalItem?.id}`:`${e}/apps/dashboards/new`;case"map-viewer":return`${e}/apps/mapviewer/index.html?${i}`;case"story-maps":return a==="enterprise"?`${e}/apps/storymaps/stories/new?${i}`:`https://storymaps${a==="prod"?"":a}.arcgis.com/stories/new?${i}`;case"experience-builder":return a==="enterprise"?`${e}/apps/experiencebuilder/builder/?page=template&${i}`:`https://experience${a==="prod"?"":a}.arcgis.com/builder/page/template/?${i}`}return""}contentHref(){return this?.content?.portalItem?.type==="Web Map"?`webmap=${this.content?.portalItem?.id}`:this?.content?.portalItem?.type==="Web Scene"?`webscene=${this.content?.portalItem?.id}`:typeof this?.content?.fetchMembers=="function"?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";let{customBaseUrl:e,portalHostname:a,urlKey:i}=t,{protocol:p}=window.location,l=i?`${i}.${e}`:a;return`${p}//${l}`}_getEnvironment(t){let e="";try{e=new URL(t)?.hostname}catch{}return e?.includes("arcgis.com")?e.includes("devext")&&"dev"||e.includes("qaext")&&"qa"||"prod":"enterprise"}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel();return s`<div class=${r(this.baseClass)}>${t}</div>`}renderPopover(){let t=this.renderPanel();return[s`<calcite-popover reference-element=create-popover-btn .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close .label=${this._messages.createLabel} ${g(this.popoverEl)}>${t}</calcite-popover>`,s`<calcite-action id=create-popover-btn alignment=center .icon=${this.popoverIcon} title=${this._messages.create??h} .text=${this._messages.create}></calcite-action>`]}renderPanel(){let t=this.showHeader?this.renderHeader():null,e=this.renderPanelOptions(),a=this.mode==="inline"?n.inlineContainer:n.popoverContainer;return s`<div class=${r(a)}>${t}${e}</div>`}renderHeader(){return s`<div class=${r(n.header)}><h3>${this._messages.create}</h3><p>${this._messages.createSubheading}</p></div>`}renderPanelOptions(){return s`<nav>${this.options.map(t=>this.renderOption(t))}</nav>`}renderOption(t){if(typeof t=="string"&&(t=this._createOptionsLookup?.[t]),t==null)return s`<div></div>`;let{title:e,subtitle:a,img:i,href:p}=t;return s`<a class=${r(n.option)} href=${p??h} target=_blank>${s`<span class=${r(n.optionIcon)} .innerHTML=${i??""}></span><span class=${r(n.optionText)}><span class=${r(n.optionTextWrapper)}><h3 class=${r(n.optionTitle)}>${e}</h3><calcite-icon scale=s icon=launch></calcite-icon></span><p class=${r(n.optionSubtitle)}>${a}</p></span>`}</a>`}};w("instant-apps-create",v);return v},"core/Handles")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as u}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{b as u}from"./GLALIG3V.js";import{F as l,G as d,H as p,h as c,i as o}from"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([f,w])=>{var S=c`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import g from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import g from"./E4SBLQY7.js";import e from"./2EJLI47O.js";import b from"./62U7IIEW.js";import a from"./JMOQD6EF.js";import{b as C,d as L}from"./QYNRPQQR.js";import{J as u,L as f,M,p as m,ra as T}from"./XHNW6XWX.js";import{a as k}from"./UKKKSSLB.js";import{k as R}from"./UIBEQQSW.js";import{b as I}from"./GLALIG3V.js";import{F as c,G as d,H as $,J as p,K as S,L as v,h as w,i as o,r as _}from"./O5JAHRRT.js";export default $arcgis.t(([{b:E,d:A,s:h},{p:P,q:y},{a:D,b:b},{a:O}])=>{var H=w`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as s}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as s}from"./F34GFQN3.js";import"./ARVRS7UX.js";import"./NZMSCYAO.js";import"./PY3XYS6G.js";import"./HL7XWNM3.js";import{a as r,b as a}from"./SBLNE36X.js";import"./OBOL4WJV.js";import"./ACWL6TYN.js";import"./RZNA2JWJ.js";import{a as o}from"./7ZJNNS35.js";import{a as i}from"./4NHL44S3.js";import"./UIBEQQSW.js";import"./4UR4HQTL.js";import"./BPPPAYEV.js";import"./VIKV76RF.js";import"./YX4SSQBN.js";import"./FLASQXOF.js";import"./NAAQEPCA.js";import"./YPHE7264.js";import"./ZJBTCJW3.js";import"./GYFR555Y.js";import"./GNFWWLJW.js";import"./S47C5SPC.js";import"./RNCPW356.js";import"./JWT6JMSB.js";import"./KIX53XWP.js";import"./GPBFVBWH.js";import"./2436BI76.js";import"./Q36TDMCN.js";import"./GRW2TCVX.js";import"./UPY5DG3S.js";import"./A6C2AVNV.js";import"./4PCQCTQ6.js";import"./4EKY6V5Y.js";import"./54TPFPGT.js";import"./IX6USVKJ.js";import"./NQ52VKK3.js";import"./CUSF545L.js";import"./EC3AONCY.js";import"./SNHZWXI6.js";var u=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:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{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.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"survey",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 i(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 a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{u as buildUiSchema};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as v}from"./AI6B4324.js";import i from"./4R3IITJQ.js";import f from"./F2TKY5WY.js";import e from"./JMOQD6EF.js";import{b as w}from"./QYNRPQQR.js";import"./XHNW6XWX.js";import{a as L}from"./UKKKSSLB.js";import"./WW3GFLKS.js";import"./I7JY674N.js";import"./VEHZCG2Q.js";import"./JOS2BNWC.js";import"./TSMTNNRT.js";import"./NVKA3ZAO.js";import"./6GFUJPON.js";import"./GZB5YXOY.js";import"./RCR3NJTA.js";import"./ARVRS7UX.js";import"./NZMSCYAO.js";import"./PY3XYS6G.js";import"./HL7XWNM3.js";import"./ACWL6TYN.js";import"./RZNA2JWJ.js";import"./UIBEQQSW.js";import"./4UR4HQTL.js";import"./BPPPAYEV.js";import"./VIKV76RF.js";import"./YX4SSQBN.js";import"./2436BI76.js";import{b as u}from"./GLALIG3V.js";import{F as o,G as d,H as g,J as p,K as c,h as b,i as a,l,r as h,u as _}from"./O5JAHRRT.js";import"./SNHZWXI6.js";export default $arcgis.t(([,,{a:f,b:I,d:y}])=>{var $=b`@layer{/** @license
|
|
5
|
+
* Copyright 2025 Esri
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/:host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}.popover-list{overflow:auto;width:250px}}`,m=class extends g{constructor(){super(),this.appearance="transparent",this.configLayerOrderDefined=!1,this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.isMobile=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.showLayersListInPopover=!1,this.referenceElement="",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=L({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=o(),this._layerComboboxElement=o(),this._pnContextConsumer=w({context:v,subscribe:!0}),this._skipEditCheck=!1,this._popover=o(),this.beforeLayerSelectionChange=h(),this.idsFound=h(),this.noLayersFound=h(),this.layerSelectionChange=h(),this.listenOn(window,"mapChanged",this.mapChanged)}static{this.properties={appearance:1,configLayerOrderDefined:5,defaultLayerId:1,display:1,enabledLayerIds:0,height:9,isMobile:5,mapView:0,showOnlyUpdatableLayers:5,placeholderIcon:0,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,showLayersListInPopover:5,referenceElement:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=$}static{this.shadowRootOptions=_}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement),e.has("selectedIds")&&this.hasUpdated&&this.mapView&&(async()=>{let t=await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title??""})(),e.has("enabledLayerIds")&&this.hasUpdated&&this.enabledLayerIdsWatchHandler()}async enabledLayerIdsWatchHandler(){let e=this.selectedIds.length>0&&!this.enabledLayerIds.includes(this.selectedIds[0]),t=this.enabledLayerIds.some(i=>!this.ids.includes(i)),s=this.ids.toString()!==this.enabledLayerIds.toString();e?this.mapViewWatchHandler():(t||s)&&this._setLayers(),this._hasMultipleLayers=this.enabledLayerIds.length>1}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):this.mapView&&(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async mapChanged(e){e.detail.isValid||(this._hasValidLayers=!1,this.noLayersFound.emit())}async load(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):this.mapView&&(this._hasValidLayers=!1,this.noLayersFound.emit())}render(){let e="map-layer-picker",t=this.height&&this.height>0&&!this.showLayersListInPopover?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},a`<div class="map-layer-picker-container" style=${c(t)}><div class="map-layer-picker" style=${c(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this.showLayersListInPopover?this._getMapLayerPopOver():this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}this._popover.value?.addEventListener("calcitePopoverOpen",()=>{this.el.querySelector("calcite-dropdown-item[selected]")?.setFocus()})}_getMapLayerPopOver(){let e=this.height&&this.height>0?{"max-height":`${this.height.toString()}px`}:{};return a`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=left .referenceElement=${this.referenceElement} scale=s ${d(this._popover)}><div class=popover-list style=${c(e)}>${this._getMapLayerOptions()}</div></calcite-popover>`}_getInvalidPlaceholder(){return a`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return a`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return a`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${d(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return a`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${d(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return a`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return a`<calcite-action appearance=solid id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",i=this._isDropdownOpen?"chevron-up":"chevron-down";return a`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${p(t)} .iconEnd=${i} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e=this.selectedIds.length>0&&this._layerNameHash,t=e?this.selectedIds[0]:void 0;return e?Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table":"layers"}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,i=this.showOnlyUpdatableLayers?s&&!s.supportsUpdate:!1,r=s?.name||"",n=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?a`<calcite-combobox-item .disabled=${i} .heading=${r} .selected=${n} .value=${e}></calcite-combobox-item>`:this.type==="select"?a`<calcite-option .disabled=${i} .label=${r} .selected=${n} .value=${e}></calcite-option>`:this.force&&n||!this.force?a`<calcite-dropdown-group class=${p(i?"disabled":"")} id=${r??l} .selectionMode=${i?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${i?void 0:()=>{this._setSelectedLayer(e)}} .selected=${n}>${r}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this._popover.value&&(this._popover.value.open=!1),this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.showOnlyUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];if(this._tableNameHash&&(t=this.showTables?this.showOnlyUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.configLayerOrderDefined){let s=[...e.reverse(),...t.reverse()];this.ids=this.enabledLayerIds.length>0?this.enabledLayerIds.filter(i=>s.includes(i)):s}else this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(s)>-1:!0)];this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).filter(t=>e[t].supportsUpdate)}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await f(this.mapView,this.showOnlyUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await I(this.mapView,this.showOnlyUpdatableLayers):{}}_validLayer(e){let t=this._pnContextConsumer.value,s=this._layerNameHash&&this._layerNameHash[e]?.name;return s!==void 0&&Object.keys(t?.managedLayers||[]).indexOf(s)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._pnContextConsumer.value,s=this._tableNameHash&&this._tableNameHash[e]?.name,i=s&&this.showTables;return i?(t?.managedTables||[]).indexOf(s)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0):i!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};u("map-layer-picker",m);return m},e,f,i)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as t}from"./
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as t}from"./FLASQXOF.js";import"./NAAQEPCA.js";import"./YPHE7264.js";import"./ZJBTCJW3.js";import"./GYFR555Y.js";import"./GNFWWLJW.js";import{a as r}from"./S47C5SPC.js";import"./RNCPW356.js";import"./JWT6JMSB.js";import"./KIX53XWP.js";import"./GPBFVBWH.js";import"./2436BI76.js";import"./Q36TDMCN.js";import"./GRW2TCVX.js";import"./UPY5DG3S.js";import"./A6C2AVNV.js";import"./4PCQCTQ6.js";import"./4EKY6V5Y.js";import"./54TPFPGT.js";import"./IX6USVKJ.js";import"./NQ52VKK3.js";import"./CUSF545L.js";import"./EC3AONCY.js";import"./SNHZWXI6.js";var n=async(e,l,o)=>{let i=r(new Date,l.timeZone);return{type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"}]}},{labelKey:`${e}.fields.date.label`,scope:"/properties/startDate",type:"Control",options:{control:"hub-field-input-date",min:i,messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.date.requiredError`},{type:"ERROR",keyword:"formatMinimum",icon:!0,labelKey:`${e}.fields.date.minDateError`}]}},{labelKey:`${e}.fields.allDay.label`,type:"Control",scope:"/properties/isAllDay",options:{control:"hub-field-input-switch"}},{labelKey:`${e}.fields.startTime.label`,scope:"/properties/startTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:t.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.startTime.requiredError`}]}},{labelKey:`${e}.fields.endTime.label`,scope:"/properties/endTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:t.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.endTime.requiredError`},{type:"ERROR",keyword:"formatExclusiveMinimum",icon:!0,labelKey:`${e}.fields.endTime.minTimeError`}]}}]}};export{n as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as h}from"./IS7IQIOW.js";import{b as m}from"./VJ3KDK54.js";import{a as U}from"./AHLK4GBO.js";import{b as t,d as l,e as d}from"./7J44FCS6.js";import{a as N}from"./77A567FP.js";import{c as A}from"./IWQKKA2X.js";function w(n){return n.httpMethod="POST",m("/channels",n)}function $(n){return n.httpMethod="GET",m(`/channels/${n.channelId}`,n)}function B(n){return n.httpMethod="PATCH",m(`/channels/${n.channelId}`,n)}function H(n){return n.httpMethod="DELETE",m(`/channels/${n.channelId}`,n)}function T(n){return n.role==="org_admin"}function C(n={},e){return n.orgId===e}function f(n,e){return T(n)&&C(n,e)}function u(n={},e){var r;return!!(!((r=n.privileges)===null||r===void 0)&&r.includes(e))}function p(n={},e){return e.every(r=>u(n,r))}function y(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:updateItems"])}function D(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:deleteItems"])}function M(n){let{channelAclDefinition:e}=n,r=U(n,["channelAclDefinition"]);return Object.assign(Object.assign({},r),{channelAcl:e})}var o;(function(n){n.READ_POSTS="readPosts",n.WRITE_POSTS="writePosts",n.MODERATE_CHANNEL="moderateChannel",n.DELETE_CHANNEL="deleteChannel",n.IS_MODERATOR="isModerator",n.IS_MANAGER="isManager",n.IS_OWNER="isOwner"})(o||(o={}));var E={UPDATE_OWNERS:[t.OWNER],UPDATE_MANAGERS:[t.OWNER,t.MANAGE],UPDATE_MODERATORS:[t.OWNER,t.MANAGE],UPDATE_ORGS:[t.OWNER,t.MANAGE],UPDATE_GROUPS:[t.OWNER,t.MANAGE],UPDATE_USERS:[t.OWNER,t.MANAGE],UPDATE_AUTHENTICATED_USERS:[t.OWNER,t.MANAGE],UPDATE_ANONYMOUS_USERS:[t.OWNER,t.MANAGE],UPDATE_POST_REPLIES:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_AS_ANONYMOUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_ALLOWED_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_DEFAULT_POST_STATUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_BLOCKED_WORDS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_CHANNEL_NAME:[t.OWNER,t.MANAGE],UPDATE_SOFT_DELETE_SETTING:[t.OWNER,t.MANAGE]},R=class{constructor(e){if(this.ALLOWED_GROUP_MEMBER_TYPES=["owner","admin","member"],e.channelAcl===void 0)throw new Error("channel.channelAcl is required for ChannelPermission checks");this.existingChannel=e,this.isChannelAclEmpty=e.channelAcl.length===0,this.permissionsByCategory={},e.channelAcl.forEach(r=>{var i;let{category:s}=r;!((i=this.permissionsByCategory[s])===null||i===void 0)&&i.push(r)||(this.permissionsByCategory[s]=[r])})}canPostToChannel(e){return this.canAnyUser(o.WRITE_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.WRITE_POSTS)||this.canSomeUser(o.WRITE_POSTS,e)||this.canSomeUserGroup(o.WRITE_POSTS,e)||this.canSomeUserOrg(o.WRITE_POSTS,e)}canCreateChannel(e){return this.isUserUnAuthenticated(e)||this.isChannelAclEmpty?!1:this.userCanAddAnonymousToAcl(e)&&this.userCanAddUnauthenticatedToAcl(e)&&this.userCanAddAllGroupsToAcl(e)&&this.userCanAddAllOrgsToAcl(e)&&this.userCanAddUsersToAcl(e)}canModerateChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.MODERATE_CHANNEL,e)||this.canSomeUserGroup(o.MODERATE_CHANNEL,e)||this.canSomeUserOrg(o.MODERATE_CHANNEL,e)}canReadChannel(e){return this.canAnyUser(o.READ_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.READ_POSTS)||this.canSomeUser(o.READ_POSTS,e)||this.canSomeUserGroup(o.READ_POSTS,e)||this.canSomeUserOrg(o.READ_POSTS,e)}canDeleteChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.DELETE_CHANNEL,e)||this.canSomeUserGroup(o.DELETE_CHANNEL,e)||this.canSomeUserOrg(o.DELETE_CHANNEL,e)}canUpdateProperties(e,r={}){if(Object.keys(r).length===0)return!0;let i=this.determineUserRole(e),s=M(r);return!(this.isChanged(s.allowReply,this.existingChannel.allowReply)&&!E.UPDATE_POST_REPLIES.includes(i)||this.isChanged(s.allowReaction,this.existingChannel.allowReaction)&&!E.UPDATE_POST_REACTIONS.includes(i)||this.isChanged(s.allowAsAnonymous,this.existingChannel.allowAsAnonymous)&&!E.UPDATE_POST_AS_ANONYMOUS.includes(i)||this.isStringArrayChanged(s.allowedReactions,this.existingChannel.allowedReactions)&&!E.UPDATE_ALLOWED_REACTIONS.includes(i)||this.isChanged(s.defaultPostStatus,this.existingChannel.defaultPostStatus)&&!E.UPDATE_DEFAULT_POST_STATUS.includes(i)||this.isStringArrayChanged(s.blockWords,this.existingChannel.blockWords)&&!E.UPDATE_BLOCKED_WORDS.includes(i)||this.isChanged(s.name,this.existingChannel.name)&&!E.UPDATE_CHANNEL_NAME.includes(i)||this.isChanged(s.softDelete,this.existingChannel.softDelete)&&!E.UPDATE_SOFT_DELETE_SETTING.includes(i)||this.isRoleChanged(t.OWNER,s.channelAcl)&&!E.UPDATE_OWNERS.includes(i)||this.isRoleChanged(t.MANAGE,s.channelAcl)&&!E.UPDATE_MANAGERS.includes(i)||this.isRoleChanged(t.MODERATE,s.channelAcl)&&!E.UPDATE_MODERATORS.includes(i)||this.isCategoryChanged(l.ORG,s.channelAcl)&&!E.UPDATE_ORGS.includes(i)||this.isCategoryChanged(l.GROUP,s.channelAcl)&&!E.UPDATE_GROUPS.includes(i)||this.isCategoryChanged(l.USER,s.channelAcl)&&!E.UPDATE_USERS.includes(i)||this.isCategoryChanged(l.AUTHENTICATED_USER,s.channelAcl)&&!E.UPDATE_AUTHENTICATED_USERS.includes(i)||this.isCategoryChanged(l.ANONYMOUS_USER,s.channelAcl)&&!E.UPDATE_ANONYMOUS_USERS.includes(i))}isChanged(e,r){return e!==void 0&&e!==r}isStringArrayChanged(e,r){let i=e??[],s=r??[];return i.filter(a=>!s.includes(a)).length!==0||s.filter(a=>!i.includes(a)).length!==0}isRoleChanged(e,r){if(!r)return!1;let i=this.existingChannel.channelAcl.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`),s=r.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`);return this.isStringArrayChanged(i,s)}isCategoryChanged(e,r){var i;if(!r)return!1;let s=((i=this.permissionsByCategory[e])!==null&&i!==void 0?i:[]).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`),a=r.filter(c=>c.category===e).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`);return this.isStringArrayChanged(s,a)}canAnyUser(e){var r;let i=(r=this.permissionsByCategory[l.ANONYMOUS_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canAnyAuthenticatedUser(e){var r;let i=(r=this.permissionsByCategory[l.AUTHENTICATED_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canSomeUser(e,r){var i;let s=(i=this.permissionsByCategory[l.USER])!==null&&i!==void 0?i:[],a=r.username;return s.some(c=>{let{role:O,key:G}=c;return G===a&&S(e).includes(O)})}canSomeUserGroup(e,r){var i;let s=(i=this.permissionsByCategory[l.GROUP])!==null&&i!==void 0?i:[],a=this.mapUserGroupsById(r.groups);return s.some(c=>{let O=a[c.key];if(e===o.READ_POSTS){if(!O)return!1}else if(!O||!P(O))return!1;return x(c,O)&&S(e).includes(c.role)})}canSomeUserOrg(e,r){var i;return((i=this.permissionsByCategory[l.ORG])!==null&&i!==void 0?i:[]).some(a=>a.key!==r.orgId?!1:W(a,r)&&S(e).includes(a.role))}userCanAddAnonymousToAcl(e){return this.permissionsByCategory[l.ANONYMOUS_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddUnauthenticatedToAcl(e){return this.permissionsByCategory[l.AUTHENTICATED_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddAllGroupsToAcl(e){let r=this.permissionsByCategory[l.GROUP],i=this.mapUserGroupsById(e.groups);return r?r.every(s=>{let a=i[s.key];return a&&this.isMemberTypeAuthorized(a)&&P(a)}):!0}userCanAddAllOrgsToAcl(e){let r=this.permissionsByCategory[l.ORG];return r?(T(e)||u(e,"portal:admin:shareToOrg")||u(e,"portal:user:shareToOrg"))&&this.isEveryPermissionForUserOrg(e.orgId,r):!0}isEveryPermissionForUserOrg(e,r){return r.every(i=>{let{key:s}=i;return e===s})}userCanAddUsersToAcl(e){return!this.permissionsByCategory[l.USER]}isUserUnAuthenticated(e){return e.username===null||e.username===void 0}mapUserGroupsById(e){return e.reduce((r,i)=>(r[i.id]=i,r),{})}isMemberTypeAuthorized(e){let{userMembership:{memberType:r}}=e;return this.ALLOWED_GROUP_MEMBER_TYPES.includes(r)}determineUserRole(e){return this.isOwner(e)?t.OWNER:this.isManager(e)?t.MANAGE:this.isModerator(e)?t.MODERATE:t.READ}isOwner(e){return this.canSomeUser(o.IS_OWNER,e)||this.canSomeUserGroup(o.IS_OWNER,e)||this.canSomeUserOrg(o.IS_OWNER,e)}isManager(e){return this.canSomeUser(o.IS_MANAGER,e)||this.canSomeUserGroup(o.IS_MANAGER,e)||this.canSomeUserOrg(o.IS_MANAGER,e)}isModerator(e){return this.canSomeUser(o.IS_MODERATOR,e)||this.canSomeUserGroup(o.IS_MODERATOR,e)||this.canSomeUserOrg(o.IS_MODERATOR,e)}};function P(n){let{typeKeywords:e=[]}=n;return!e.includes(N)}function x(n,e){return n.category!==l.GROUP||e.userMembership.memberType==="none"?!1:e.userMembership.memberType==="owner"||e.userMembership.memberType==="admin"||n.subCategory===d.MEMBER}function W(n,e){return n.category===l.ORG&&(n.subCategory===d.MEMBER||n.subCategory===d.ADMIN&&T(e))}function S(n){return n===o.WRITE_POSTS?[t.WRITE,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]:n===o.MODERATE_CHANNEL?[t.MODERATE,t.MANAGE,t.OWNER]:n===o.DELETE_CHANNEL?[t.OWNER]:n===o.IS_MODERATOR?[t.MODERATE]:n===o.IS_MANAGER?[t.MANAGE]:n===o.IS_OWNER?[t.OWNER]:[t.READ,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]}function g(n,e={}){return D(e,n.orgId)?!0:new R(n).canDeleteChannel(e)}function _(n,e={},r){if(y(e,n.orgId))return!0;let i=new R(n);return i.canModerateChannel(e)&&i.canUpdateProperties(e,r)}var v={[t.READ]:A.channelRead,[t.WRITE]:A.channelWrite,[t.READWRITE]:A.channelReadWrite,[t.MODERATE]:A.channelModerate,[t.MANAGE]:A.channelManage,[t.OWNER]:A.channelOwner},I=n=>{let e=v[n.role],r;return n.category===l.ANONYMOUS_USER?r=h.anonymous:n.category===l.AUTHENTICATED_USER?r=h.authenticated:n.category===l.GROUP?r=n.subCategory===d.ADMIN?h.groupAdmin:h.group:n.category===l.ORG?r=n.subCategory===d.ADMIN?h.orgAdmin:h.org:r=h.user,{permission:e,collaborationId:n.key||null,collaborationType:r,id:n.id||null}};function de(n,e){return{access:n.access,id:n.id,name:n.name,createdDate:new Date(n.createdAt),createdDateSource:"channel.createdAt",updatedDate:new Date(n.updatedAt),updatedDateSource:"channel.updatedAt",type:"Channel",source:n.creator,links:{thumbnail:null,self:null,siteRelative:null,siteRelativeEntityType:null,workspaceRelative:null,layoutRelative:null},blockWords:n.blockWords,permissions:n.channelAcl.map(r=>I(r)),allowAsAnonymous:n.allowAsAnonymous,canEdit:_(n,e,n),canDelete:g(n,e),orgId:n.orgId,owner:n.creator,channel:n,typeKeywords:[],thumbnail:void 0,view:void 0,description:void 0,location:void 0,tags:[]}}export{w as a,$ as b,B as c,H as d,de as e};
|
|
3
|
+
v1.2.0-next.97 */
|
|
4
|
+
import{a as h}from"./KMA7RAFO.js";import{b as m}from"./52L3QNBG.js";import{a as U}from"./ZJWCFG2H.js";import{b as t,d as l,e as d}from"./7T5SPX63.js";import{a as N}from"./YVUHXCKS.js";import{c as A}from"./2436BI76.js";function w(n){return n.httpMethod="POST",m("/channels",n)}function $(n){return n.httpMethod="GET",m(`/channels/${n.channelId}`,n)}function B(n){return n.httpMethod="PATCH",m(`/channels/${n.channelId}`,n)}function H(n){return n.httpMethod="DELETE",m(`/channels/${n.channelId}`,n)}function T(n){return n.role==="org_admin"}function C(n={},e){return n.orgId===e}function f(n,e){return T(n)&&C(n,e)}function u(n={},e){var r;return!!(!((r=n.privileges)===null||r===void 0)&&r.includes(e))}function p(n={},e){return e.every(r=>u(n,r))}function y(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:updateItems"])}function D(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:deleteItems"])}function M(n){let{channelAclDefinition:e}=n,r=U(n,["channelAclDefinition"]);return Object.assign(Object.assign({},r),{channelAcl:e})}var o;(function(n){n.READ_POSTS="readPosts",n.WRITE_POSTS="writePosts",n.MODERATE_CHANNEL="moderateChannel",n.DELETE_CHANNEL="deleteChannel",n.IS_MODERATOR="isModerator",n.IS_MANAGER="isManager",n.IS_OWNER="isOwner"})(o||(o={}));var E={UPDATE_OWNERS:[t.OWNER],UPDATE_MANAGERS:[t.OWNER,t.MANAGE],UPDATE_MODERATORS:[t.OWNER,t.MANAGE],UPDATE_ORGS:[t.OWNER,t.MANAGE],UPDATE_GROUPS:[t.OWNER,t.MANAGE],UPDATE_USERS:[t.OWNER,t.MANAGE],UPDATE_AUTHENTICATED_USERS:[t.OWNER,t.MANAGE],UPDATE_ANONYMOUS_USERS:[t.OWNER,t.MANAGE],UPDATE_POST_REPLIES:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_AS_ANONYMOUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_ALLOWED_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_DEFAULT_POST_STATUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_BLOCKED_WORDS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_CHANNEL_NAME:[t.OWNER,t.MANAGE],UPDATE_SOFT_DELETE_SETTING:[t.OWNER,t.MANAGE]},R=class{constructor(e){if(this.ALLOWED_GROUP_MEMBER_TYPES=["owner","admin","member"],e.channelAcl===void 0)throw new Error("channel.channelAcl is required for ChannelPermission checks");this.existingChannel=e,this.isChannelAclEmpty=e.channelAcl.length===0,this.permissionsByCategory={},e.channelAcl.forEach(r=>{var i;let{category:s}=r;!((i=this.permissionsByCategory[s])===null||i===void 0)&&i.push(r)||(this.permissionsByCategory[s]=[r])})}canPostToChannel(e){return this.canAnyUser(o.WRITE_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.WRITE_POSTS)||this.canSomeUser(o.WRITE_POSTS,e)||this.canSomeUserGroup(o.WRITE_POSTS,e)||this.canSomeUserOrg(o.WRITE_POSTS,e)}canCreateChannel(e){return this.isUserUnAuthenticated(e)||this.isChannelAclEmpty?!1:this.userCanAddAnonymousToAcl(e)&&this.userCanAddUnauthenticatedToAcl(e)&&this.userCanAddAllGroupsToAcl(e)&&this.userCanAddAllOrgsToAcl(e)&&this.userCanAddUsersToAcl(e)}canModerateChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.MODERATE_CHANNEL,e)||this.canSomeUserGroup(o.MODERATE_CHANNEL,e)||this.canSomeUserOrg(o.MODERATE_CHANNEL,e)}canReadChannel(e){return this.canAnyUser(o.READ_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.READ_POSTS)||this.canSomeUser(o.READ_POSTS,e)||this.canSomeUserGroup(o.READ_POSTS,e)||this.canSomeUserOrg(o.READ_POSTS,e)}canDeleteChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.DELETE_CHANNEL,e)||this.canSomeUserGroup(o.DELETE_CHANNEL,e)||this.canSomeUserOrg(o.DELETE_CHANNEL,e)}canUpdateProperties(e,r={}){if(Object.keys(r).length===0)return!0;let i=this.determineUserRole(e),s=M(r);return!(this.isChanged(s.allowReply,this.existingChannel.allowReply)&&!E.UPDATE_POST_REPLIES.includes(i)||this.isChanged(s.allowReaction,this.existingChannel.allowReaction)&&!E.UPDATE_POST_REACTIONS.includes(i)||this.isChanged(s.allowAsAnonymous,this.existingChannel.allowAsAnonymous)&&!E.UPDATE_POST_AS_ANONYMOUS.includes(i)||this.isStringArrayChanged(s.allowedReactions,this.existingChannel.allowedReactions)&&!E.UPDATE_ALLOWED_REACTIONS.includes(i)||this.isChanged(s.defaultPostStatus,this.existingChannel.defaultPostStatus)&&!E.UPDATE_DEFAULT_POST_STATUS.includes(i)||this.isStringArrayChanged(s.blockWords,this.existingChannel.blockWords)&&!E.UPDATE_BLOCKED_WORDS.includes(i)||this.isChanged(s.name,this.existingChannel.name)&&!E.UPDATE_CHANNEL_NAME.includes(i)||this.isChanged(s.softDelete,this.existingChannel.softDelete)&&!E.UPDATE_SOFT_DELETE_SETTING.includes(i)||this.isRoleChanged(t.OWNER,s.channelAcl)&&!E.UPDATE_OWNERS.includes(i)||this.isRoleChanged(t.MANAGE,s.channelAcl)&&!E.UPDATE_MANAGERS.includes(i)||this.isRoleChanged(t.MODERATE,s.channelAcl)&&!E.UPDATE_MODERATORS.includes(i)||this.isCategoryChanged(l.ORG,s.channelAcl)&&!E.UPDATE_ORGS.includes(i)||this.isCategoryChanged(l.GROUP,s.channelAcl)&&!E.UPDATE_GROUPS.includes(i)||this.isCategoryChanged(l.USER,s.channelAcl)&&!E.UPDATE_USERS.includes(i)||this.isCategoryChanged(l.AUTHENTICATED_USER,s.channelAcl)&&!E.UPDATE_AUTHENTICATED_USERS.includes(i)||this.isCategoryChanged(l.ANONYMOUS_USER,s.channelAcl)&&!E.UPDATE_ANONYMOUS_USERS.includes(i))}isChanged(e,r){return e!==void 0&&e!==r}isStringArrayChanged(e,r){let i=e??[],s=r??[];return i.filter(a=>!s.includes(a)).length!==0||s.filter(a=>!i.includes(a)).length!==0}isRoleChanged(e,r){if(!r)return!1;let i=this.existingChannel.channelAcl.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`),s=r.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`);return this.isStringArrayChanged(i,s)}isCategoryChanged(e,r){var i;if(!r)return!1;let s=((i=this.permissionsByCategory[e])!==null&&i!==void 0?i:[]).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`),a=r.filter(c=>c.category===e).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`);return this.isStringArrayChanged(s,a)}canAnyUser(e){var r;let i=(r=this.permissionsByCategory[l.ANONYMOUS_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canAnyAuthenticatedUser(e){var r;let i=(r=this.permissionsByCategory[l.AUTHENTICATED_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canSomeUser(e,r){var i;let s=(i=this.permissionsByCategory[l.USER])!==null&&i!==void 0?i:[],a=r.username;return s.some(c=>{let{role:O,key:G}=c;return G===a&&S(e).includes(O)})}canSomeUserGroup(e,r){var i;let s=(i=this.permissionsByCategory[l.GROUP])!==null&&i!==void 0?i:[],a=this.mapUserGroupsById(r.groups);return s.some(c=>{let O=a[c.key];if(e===o.READ_POSTS){if(!O)return!1}else if(!O||!P(O))return!1;return x(c,O)&&S(e).includes(c.role)})}canSomeUserOrg(e,r){var i;return((i=this.permissionsByCategory[l.ORG])!==null&&i!==void 0?i:[]).some(a=>a.key!==r.orgId?!1:W(a,r)&&S(e).includes(a.role))}userCanAddAnonymousToAcl(e){return this.permissionsByCategory[l.ANONYMOUS_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddUnauthenticatedToAcl(e){return this.permissionsByCategory[l.AUTHENTICATED_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddAllGroupsToAcl(e){let r=this.permissionsByCategory[l.GROUP],i=this.mapUserGroupsById(e.groups);return r?r.every(s=>{let a=i[s.key];return a&&this.isMemberTypeAuthorized(a)&&P(a)}):!0}userCanAddAllOrgsToAcl(e){let r=this.permissionsByCategory[l.ORG];return r?(T(e)||u(e,"portal:admin:shareToOrg")||u(e,"portal:user:shareToOrg"))&&this.isEveryPermissionForUserOrg(e.orgId,r):!0}isEveryPermissionForUserOrg(e,r){return r.every(i=>{let{key:s}=i;return e===s})}userCanAddUsersToAcl(e){return!this.permissionsByCategory[l.USER]}isUserUnAuthenticated(e){return e.username===null||e.username===void 0}mapUserGroupsById(e){return e.reduce((r,i)=>(r[i.id]=i,r),{})}isMemberTypeAuthorized(e){let{userMembership:{memberType:r}}=e;return this.ALLOWED_GROUP_MEMBER_TYPES.includes(r)}determineUserRole(e){return this.isOwner(e)?t.OWNER:this.isManager(e)?t.MANAGE:this.isModerator(e)?t.MODERATE:t.READ}isOwner(e){return this.canSomeUser(o.IS_OWNER,e)||this.canSomeUserGroup(o.IS_OWNER,e)||this.canSomeUserOrg(o.IS_OWNER,e)}isManager(e){return this.canSomeUser(o.IS_MANAGER,e)||this.canSomeUserGroup(o.IS_MANAGER,e)||this.canSomeUserOrg(o.IS_MANAGER,e)}isModerator(e){return this.canSomeUser(o.IS_MODERATOR,e)||this.canSomeUserGroup(o.IS_MODERATOR,e)||this.canSomeUserOrg(o.IS_MODERATOR,e)}};function P(n){let{typeKeywords:e=[]}=n;return!e.includes(N)}function x(n,e){return n.category!==l.GROUP||e.userMembership.memberType==="none"?!1:e.userMembership.memberType==="owner"||e.userMembership.memberType==="admin"||n.subCategory===d.MEMBER}function W(n,e){return n.category===l.ORG&&(n.subCategory===d.MEMBER||n.subCategory===d.ADMIN&&T(e))}function S(n){return n===o.WRITE_POSTS?[t.WRITE,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]:n===o.MODERATE_CHANNEL?[t.MODERATE,t.MANAGE,t.OWNER]:n===o.DELETE_CHANNEL?[t.OWNER]:n===o.IS_MODERATOR?[t.MODERATE]:n===o.IS_MANAGER?[t.MANAGE]:n===o.IS_OWNER?[t.OWNER]:[t.READ,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]}function g(n,e={}){return D(e,n.orgId)?!0:new R(n).canDeleteChannel(e)}function _(n,e={},r){if(y(e,n.orgId))return!0;let i=new R(n);return i.canModerateChannel(e)&&i.canUpdateProperties(e,r)}var v={[t.READ]:A.channelRead,[t.WRITE]:A.channelWrite,[t.READWRITE]:A.channelReadWrite,[t.MODERATE]:A.channelModerate,[t.MANAGE]:A.channelManage,[t.OWNER]:A.channelOwner},I=n=>{let e=v[n.role],r;return n.category===l.ANONYMOUS_USER?r=h.anonymous:n.category===l.AUTHENTICATED_USER?r=h.authenticated:n.category===l.GROUP?r=n.subCategory===d.ADMIN?h.groupAdmin:h.group:n.category===l.ORG?r=n.subCategory===d.ADMIN?h.orgAdmin:h.org:r=h.user,{permission:e,collaborationId:n.key||null,collaborationType:r,id:n.id||null}};function de(n,e){return{access:n.access,id:n.id,name:n.name,createdDate:new Date(n.createdAt),createdDateSource:"channel.createdAt",updatedDate:new Date(n.updatedAt),updatedDateSource:"channel.updatedAt",type:"Channel",source:n.creator,links:{thumbnail:null,self:null,siteRelative:null,siteRelativeEntityType:null,workspaceRelative:null,layoutRelative:null},blockWords:n.blockWords,permissions:n.channelAcl.map(r=>I(r)),allowAsAnonymous:n.allowAsAnonymous,canEdit:_(n,e,n),canDelete:g(n,e),orgId:n.orgId,owner:n.creator,channel:n,typeKeywords:[],thumbnail:void 0,view:void 0,description:void 0,location:void 0,tags:[]}}export{w as a,$ as b,B as c,H as d,de as e};
|