@esri/solutions-components 1.1.0-next.20250813 → 1.1.0-next.20250814
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/{ETXGPE47.js → 233SOP2X.js} +2 -2
- package/dist/cdn/{HIJ2VUZY.js → 2A5LFLWY.js} +2 -2
- package/dist/cdn/{SMAAZRND.js → 2FHWNASZ.js} +2 -2
- package/dist/cdn/2MSRG3L3.js +4 -0
- package/dist/cdn/{7XRNZ2VO.js → 2PQMOYN2.js} +1 -1
- package/dist/cdn/{FH5CEEAL.js → 2R2NLVG4.js} +2 -2
- package/dist/cdn/{WIZHWIJI.js → 2SMJNHDA.js} +2 -2
- package/dist/cdn/{ZKCETCZM.js → 34PHRONA.js} +2 -2
- package/dist/cdn/{C6YIH4HI.js → 36YENHNO.js} +2 -2
- package/dist/cdn/{7GI27WHE.js → 37NCXJQ7.js} +2 -2
- package/dist/cdn/{2FZPIIHB.js → 3ACOUZ2J.js} +2 -2
- package/dist/cdn/{LMNGFYEP.js → 3HY2C477.js} +2 -2
- package/dist/cdn/3PKAD5T2.css +1 -0
- package/dist/cdn/{5JMJMFDW.js → 3Q7M2PFZ.js} +2 -2
- package/dist/cdn/{7QZIMTB6.js → 3VMMC5BJ.js} +2 -2
- package/dist/cdn/{HVYCYJJA.js → 3WGSSTHY.js} +2 -2
- package/dist/cdn/3WLB6HQG.js +18 -0
- package/dist/cdn/{FFAVYRB4.js → 3ZJXTRS3.js} +2 -2
- package/dist/cdn/{MGRNE66F.js → 42LO4TCV.js} +2 -2
- package/dist/cdn/{MJIIJ7IR.js → 4CBNOR6N.js} +2 -2
- package/dist/cdn/{AZCMMHWC.js → 4D2YRN2T.js} +2 -2
- package/dist/cdn/{K4BEULDQ.js → 4DGE5KUI.js} +2 -2
- package/dist/cdn/{BVARQ3DZ.js → 4DTTBSJJ.js} +2 -2
- package/dist/cdn/{AMSTPHGE.js → 4GD36GY6.js} +2 -2
- package/dist/cdn/{UG6JNU5B.js → 4GLART42.js} +2 -2
- package/dist/cdn/{5ZH5LYCG.js → 4IOF3RZQ.js} +2 -2
- package/dist/cdn/{7UB3DEPT.js → 4NIDMX33.js} +2 -2
- package/dist/cdn/{Y766BHKT.js → 4Q75WJMW.js} +2 -2
- package/dist/cdn/{5QG46LCT.js → 4QMK76M4.js} +2 -2
- package/dist/cdn/{4YOLJ22J.js → 4S3PKQJ4.js} +2 -2
- package/dist/cdn/{HR6ENVFY.js → 4S3SCEG2.js} +2 -2
- package/dist/cdn/4VDUJIVA.js +4 -0
- package/dist/cdn/{4777KHCE.js → 5DHG3XZC.js} +2 -2
- package/dist/cdn/{QBOSXN7R.js → 5FTEBTMX.js} +2 -2
- package/dist/cdn/{L23MKNQC.js → 5GN3UTVY.js} +2 -2
- package/dist/cdn/{LAZSJDRK.js → 5M64RMWJ.js} +2 -2
- package/dist/cdn/{AJWBRQQN.js → 5Z3UBSQA.js} +2 -2
- package/dist/cdn/{F5MY54IS.js → 65KMHURS.js} +1 -1
- package/dist/cdn/{7KNQESYU.js → 67UNP3O6.js} +2 -2
- package/dist/cdn/{XCWI7Y7D.js → 6B6YSA5T.js} +2 -2
- package/dist/cdn/{TWHMQL23.js → 6CE3P6MK.js} +2 -2
- package/dist/cdn/{GIPIFBTE.js → 6DEQD5XS.js} +2 -2
- package/dist/cdn/{G4RR2COS.js → 6GBJRGMX.js} +2 -2
- package/dist/cdn/{BLVRQ6OB.js → 6UNISOCW.js} +1 -1
- package/dist/cdn/{QDXWYPJL.js → 6V7OF3L5.js} +2 -2
- package/dist/cdn/{LZPSHFJT.js → 6VUW2EIQ.js} +2 -2
- package/dist/cdn/{2TO5YBHP.js → 6VYIML44.js} +2 -2
- package/dist/cdn/{RSPASQLO.js → 6WWRM5A2.js} +2 -2
- package/dist/cdn/{HVYSRDTL.js → 6X64VRXD.js} +1 -1
- package/dist/cdn/{4GN6WWZB.js → 6XZKH4OE.js} +1 -1
- package/dist/cdn/{M7SV47G6.js → 7APIJZQK.js} +2 -2
- package/dist/cdn/{5QZWFNDG.js → 7BFAL4UH.js} +2 -2
- package/dist/cdn/{PRVYKTMW.js → 7CUVYKXM.js} +2 -2
- package/dist/cdn/{ES57S3YD.js → 7EK6RHGO.js} +2 -2
- package/dist/cdn/{Q2G766SX.js → 7HH4LEDN.js} +2 -2
- package/dist/cdn/{BTL6T5RK.js → 7KV5JEFS.js} +2 -2
- package/dist/cdn/{FG4RZ2ZL.js → 7TIDDZ6R.js} +2 -2
- package/dist/cdn/{QKKC6GBL.js → 7TLQLS4B.js} +2 -2
- package/dist/cdn/{OPJDGQPQ.js → 7WZ4WODT.js} +1 -1
- package/dist/cdn/{B2AO3FYW.js → A5ANEUPM.js} +2 -2
- package/dist/cdn/{HXBWYYB2.js → A6COROCR.js} +2 -2
- package/dist/cdn/{Q2ZDGWJW.js → AA7WFQB6.js} +1 -1
- package/dist/cdn/{XLF4EXMY.js → ABJR44TO.js} +2 -2
- package/dist/cdn/{SG7HY4KR.js → ACFG5TV4.js} +2 -2
- package/dist/cdn/{76WUG6ZM.js → AFVKAHAM.js} +1 -1
- package/dist/cdn/{2I3EU5FX.js → AOCRZJFL.js} +2 -2
- package/dist/cdn/{BYBBSBXY.js → ARCKDH5K.js} +2 -2
- package/dist/cdn/{4MGPYD2C.js → ATXNKDGP.js} +2 -2
- package/dist/cdn/{VU544BRL.js → AZAVNJBN.js} +2 -2
- package/dist/cdn/{L35NOW7V.js → B3TFVUQ3.js} +2 -2
- package/dist/cdn/{W3MIURTN.js → B45YTTVU.js} +2 -2
- package/dist/cdn/{A2JIGX46.js → BI4XBFSU.js} +2 -2
- package/dist/cdn/{WOE5WBGS.js → BIGXMS6J.js} +1 -1
- package/dist/cdn/{CV5YU67D.js → BKWX324H.js} +2 -2
- package/dist/cdn/{DRVD2AAI.js → BO3S7FKQ.js} +1 -1
- package/dist/cdn/{ZIR6EOKG.js → BRPY77VA.js} +2 -2
- package/dist/cdn/{34IBI2AQ.js → BSSBZ2ER.js} +2 -2
- package/dist/cdn/{G57OJUTV.js → BTX6AXUQ.js} +2 -2
- package/dist/cdn/{VRDTHKQM.js → BUNVS4W5.js} +2 -2
- package/dist/cdn/{NPN7O4FC.js → BY3GJ3CC.js} +2 -2
- package/dist/cdn/{EYOCOJSR.js → BYHTYD3Z.js} +2 -2
- package/dist/cdn/{7P7IKFXJ.js → C6JV3SFP.js} +2 -2
- package/dist/cdn/CFGG33L3.js +4 -0
- package/dist/cdn/{UH2QOIEJ.js → CFK3L2YF.js} +3 -3
- package/dist/cdn/{RIAEKLSC.js → COA66VSX.js} +2 -2
- package/dist/cdn/{U65OM7BT.js → CQ7LEMHR.js} +2 -2
- package/dist/cdn/{47MIQ4DL.js → CRMHAJAF.js} +2 -2
- package/dist/cdn/{RHIDC6MD.js → CSM3L6AR.js} +2 -2
- package/dist/cdn/{OVAKXTWT.js → CT3POA2I.js} +1 -1
- package/dist/cdn/{LEM5ESDQ.js → CX6UAOFC.js} +2 -2
- package/dist/cdn/{BUR77F2K.js → CZ3BVZWT.js} +1 -1
- package/dist/cdn/{67M6LTDD.js → DA7Z7I7X.js} +2 -2
- package/dist/cdn/{A2TBPE2G.js → DIBEV5G6.js} +2 -2
- package/dist/cdn/{YOY2GNVH.js → DPUKESDE.js} +2 -2
- package/dist/cdn/{UC4MDLJF.js → DZCVQ56U.js} +2 -2
- package/dist/cdn/E4PI56YM.js +25 -0
- package/dist/cdn/{G2IXPHFG.js → E7LQ47NZ.js} +2 -2
- package/dist/cdn/{ANMSCQDK.js → EAJXKXMD.js} +2 -2
- package/dist/cdn/{7DRSRLQU.js → EEGAL5CF.js} +2 -2
- package/dist/cdn/{VW34EHE3.js → EEV7SOFB.js} +2 -2
- package/dist/cdn/{IONO5NHM.js → EHQ3VXEX.js} +2 -2
- package/dist/cdn/{2BSMPRPL.js → EI3UVHVJ.js} +2 -2
- package/dist/cdn/{TPXXUP67.js → EIUU6LFK.js} +2 -2
- package/dist/cdn/{6ALKL72V.js → EJPEGRC5.js} +2 -2
- package/dist/cdn/{E3J4OV7H.js → EQDRXUK4.js} +2 -2
- package/dist/cdn/{3R4UXQEY.js → EUKNWB5D.js} +2 -2
- package/dist/cdn/{4TXAIPAV.js → EY72R2LK.js} +2 -2
- package/dist/cdn/{MYSOOGRY.js → F2APN33Z.js} +1 -1
- package/dist/cdn/{FR3LDSFZ.js → F5XDXMQW.js} +2 -2
- package/dist/cdn/{3337RAYT.js → F6J4JHYY.js} +2 -2
- package/dist/cdn/{AZXNU3JV.js → FCHZ5RNV.js} +2 -2
- package/dist/cdn/{4ZPTS5KZ.js → FCOP3UI6.js} +2 -2
- package/dist/cdn/{GZJPCOO2.js → FM7IQX4W.js} +1 -1
- package/dist/cdn/{CZ3WANK2.js → FRWXWI2M.js} +2 -2
- package/dist/cdn/{6EVHCQPO.js → FVTQPVHE.js} +2 -2
- package/dist/cdn/{I2W6HP27.js → GGOYFIFO.js} +2 -2
- package/dist/cdn/{DDKMU6YS.js → GGVBPUEY.js} +1 -1
- package/dist/cdn/{QIVRCSOY.js → GLTMZBZ3.js} +2 -2
- package/dist/cdn/{NF5QA4VW.js → GNLOPXJZ.js} +2 -2
- package/dist/cdn/{O6M2B5IS.js → GTKJOQZ5.js} +2 -2
- package/dist/cdn/{SFCGDOPG.js → GUHRLDGP.js} +2 -2
- package/dist/cdn/{SMY5OKKE.js → GULICWSX.js} +2 -2
- package/dist/cdn/{O3YWDE5A.js → GWXCOATK.js} +2 -2
- package/dist/cdn/{HQPCR5CJ.js → GZ3JCXM2.js} +2 -2
- package/dist/cdn/{MWDFNHWF.js → GZ5FYQCV.js} +2 -2
- package/dist/cdn/{AFRKEAQM.js → H32TGV2M.js} +2 -2
- package/dist/cdn/{SHG23ECR.js → H36LQ652.js} +2 -2
- package/dist/cdn/{YVICINTE.js → H74XC2TA.js} +2 -2
- package/dist/cdn/{CYTBK2BQ.js → H752522M.js} +2 -2
- package/dist/cdn/{EWG4LDCG.js → HBXZXBY7.js} +2 -2
- package/dist/cdn/{GTLNO4OA.js → HEJ3YUKD.js} +1 -1
- package/dist/cdn/{Q6HYEE7V.js → HEWFNI5Z.js} +2 -2
- package/dist/cdn/{LUCWXIPQ.js → HFSCAQ24.js} +2 -2
- package/dist/cdn/{A7BJA2JV.js → HOP7ALIK.js} +2 -2
- package/dist/cdn/HZMBWRXQ.js +8 -0
- package/dist/cdn/{PV7IPXI2.js → I264P2LK.js} +3 -3
- package/dist/cdn/{LXWHWSX3.js → I34YH2F2.js} +1 -1
- package/dist/cdn/{ZTMI4TJ2.js → I3MPLFSS.js} +2 -2
- package/dist/cdn/{RIUNU5TW.js → I56B5SNN.js} +2 -2
- package/dist/cdn/{SGBJLWPE.js → I6MRF2RD.js} +2 -2
- package/dist/cdn/IC2ZRIYZ.css +1 -0
- package/dist/cdn/{ARSSBQ3Y.js → IIVGSCZM.js} +2 -2
- package/dist/cdn/{SVYYLS7W.js → IK7F27QS.js} +2 -2
- package/dist/cdn/{QUMBTJ7B.js → ILAB777S.js} +2 -2
- package/dist/cdn/{DJA3AADV.js → INFEDXBU.js} +2 -2
- package/dist/cdn/{BK567S5G.js → IOFVYSAR.js} +2 -2
- package/dist/cdn/{DBETPFAY.js → J7QYWG2V.js} +2 -2
- package/dist/cdn/{HKJ2253W.js → JANO2YZL.js} +2 -2
- package/dist/cdn/{FI4D65D6.js → JDXO6ZRX.js} +2 -2
- package/dist/cdn/{35KLWNMW.js → JER6JZXQ.js} +1 -1
- package/dist/cdn/{A4KBWJAK.js → JKQUT6DG.js} +2 -2
- package/dist/cdn/{ZP5EZBHS.js → JSJNYFZJ.js} +2 -2
- package/dist/cdn/{I6MGRLI4.js → JUYDS4OZ.js} +2 -2
- package/dist/cdn/{Y5GTW2DA.js → JVW7WLOW.js} +2 -2
- package/dist/cdn/{LJOZBNIY.js → JXB5LIL6.js} +2 -2
- package/dist/cdn/{JZEPTF2K.js → JXV5EH5F.js} +2 -2
- package/dist/cdn/{QLTUYSOO.js → K25ZDV3N.js} +2 -2
- package/dist/cdn/{QFKIG5HD.js → K4VJ4UUU.js} +2 -2
- package/dist/cdn/{KOO55D6Y.js → K4WXSKEW.js} +2 -2
- package/dist/cdn/{YRKM4RUJ.js → K6Y7PB4W.js} +1 -1
- package/dist/cdn/{AD4H2ATA.js → K74VECE5.js} +2 -2
- package/dist/cdn/{QERWPSRP.js → KCDXKG6S.js} +2 -2
- package/dist/cdn/KERNWLMR.js +4 -0
- package/dist/cdn/{WF66BB57.js → KFBZQQQ7.js} +2 -2
- package/dist/cdn/{SM5VDDRN.js → KFUZQVRG.js} +2 -2
- package/dist/cdn/{6BG7W3CN.js → KIM74FS2.js} +2 -2
- package/dist/cdn/{LJWWQW7J.js → KIQZ5WQU.js} +2 -2
- package/dist/cdn/{XH733SKB.js → KLSBDOEY.js} +2 -2
- package/dist/cdn/{R7EKXMAX.js → KOYHLFAL.js} +2 -2
- package/dist/cdn/{77DY6CAU.js → KSTLAKPR.js} +3 -3
- package/dist/cdn/{G7TXJGIG.js → KVWD2NCD.js} +1 -1
- package/dist/cdn/{WO4VN3HA.js → KXMHMNFG.js} +2 -2
- package/dist/cdn/{B25VKT4V.js → L3BR7QKR.js} +2 -2
- package/dist/cdn/{IZ2EPCHV.js → L3F7TJ6L.js} +2 -2
- package/dist/cdn/{LB5CWVM5.js → L5DUE5CZ.js} +2 -2
- package/dist/cdn/{GYNGOAT6.js → LAVEGGCU.js} +2 -2
- package/dist/cdn/{PWVFPPH5.js → LFXV5FIA.js} +2 -2
- package/dist/cdn/{QTVIQLKJ.js → LMO5IATU.js} +2 -2
- package/dist/cdn/{AS7XQPFZ.js → LQBQ6ZZ2.js} +2 -2
- package/dist/cdn/{7GQCHIIL.js → LRZ2H4VM.js} +1 -1
- package/dist/cdn/{EHPD5LNH.js → LTF34RHT.js} +4 -4
- package/dist/cdn/{LKD43DNT.js → LTUHFIIV.js} +2 -2
- package/dist/cdn/{FVBN55HK.js → MFUAOGF2.js} +2 -2
- package/dist/cdn/{4D4JUG4C.js → MGTNVXN6.js} +1 -1
- package/dist/cdn/{HIVBMS4W.js → MJE3V7QY.js} +2 -2
- package/dist/cdn/{HA657JM2.js → MMYFF5BN.js} +2 -2
- package/dist/cdn/{YF6SFVFK.js → MOMQCSIV.js} +2 -2
- package/dist/cdn/{HDIHCB33.js → MTK6HSL2.js} +2 -2
- package/dist/cdn/{RDAND746.js → MVUCSBRQ.js} +1 -1
- package/dist/cdn/MXVIDHVI.js +6 -0
- package/dist/cdn/{3LKWFYL2.js → MYD4NK2J.js} +2 -2
- package/dist/cdn/MZQU2J2U.js +18 -0
- package/dist/cdn/{7EN7HPX7.js → N4C5NAQY.js} +1 -1
- package/dist/cdn/{LLAJ5GH2.js → N7LRP7YX.js} +2 -2
- package/dist/cdn/{F4W35326.js → NAU5WDAR.js} +2 -2
- package/dist/cdn/{F7AR6B4Q.js → NDJACPW5.js} +2 -2
- package/dist/cdn/{FSQIWFIM.js → NE2OEA2D.js} +2 -2
- package/dist/cdn/{G2RN44GK.js → NIWJURVV.js} +1 -1
- package/dist/cdn/{5325K6YZ.js → NL6JR43M.js} +2 -2
- package/dist/cdn/{SLAQ2GU6.js → NLMLINN5.js} +2 -2
- package/dist/cdn/{TRSI6C4V.js → NMWGRUCG.js} +2 -2
- package/dist/cdn/NO34SVO5.js +4 -0
- package/dist/cdn/{CIRQZIIA.js → NVI5TEOI.js} +2 -2
- package/dist/cdn/{UYLUOL7G.js → NYQNROUW.js} +2 -2
- package/dist/cdn/{RAS6VSVN.js → O4QMU4K5.js} +2 -2
- package/dist/cdn/{QF3STRWQ.js → OBILOKBT.js} +1 -1
- package/dist/cdn/{D54KWJVY.js → OGASMD3V.js} +2 -2
- package/dist/cdn/{GPG6ILNV.js → OKPE75LL.js} +2 -2
- package/dist/cdn/{4MD75RVS.js → OQLSBZBK.js} +1 -1
- package/dist/cdn/{WMQPXSBF.js → OQVRSS4R.js} +2 -2
- package/dist/cdn/{3CS7YODH.js → ORKEWGRR.js} +2 -2
- package/dist/cdn/PFUYV3G4.js +81 -0
- package/dist/cdn/{D5EP34TV.js → PN2RZQ5Z.js} +1 -1
- package/dist/cdn/{YUMDEDM5.js → PPS7C4OY.js} +2 -2
- package/dist/cdn/{QKXPSAO2.js → Q32XHGZN.js} +2 -2
- package/dist/cdn/{JUZPVELG.js → Q3ISOYAQ.js} +2 -2
- package/dist/cdn/Q4BABE57.css +1 -0
- package/dist/cdn/QAJ2PAW7.js +4 -0
- package/dist/cdn/{SUGOUOC4.js → QBC5SBBE.js} +1 -1
- package/dist/cdn/{5OV7AWYU.js → QCHFRVHM.js} +2 -2
- package/dist/cdn/{7DGYAZNS.js → QMB4QM6Y.js} +1 -1
- package/dist/cdn/{P3J337S3.js → QQ4UOWYP.js} +2 -2
- package/dist/cdn/{ZS4TLPQ3.js → QST55MDE.js} +2 -2
- package/dist/cdn/{GBQZCOMU.js → QTJB45LA.js} +2 -2
- package/dist/cdn/{JHZQDGOM.js → QUUCQ7VD.js} +2 -2
- package/dist/cdn/RGMD7TWK.js +8 -0
- package/dist/cdn/{HGDIBWTX.js → RGVGURNS.js} +3 -3
- package/dist/cdn/{HLDTKQML.js → RHIM2X2N.js} +2 -2
- package/dist/cdn/{NY445WIU.js → RI4DNTJV.js} +1 -1
- package/dist/cdn/{H55RDRDA.js → RLX2PT2V.js} +2 -2
- package/dist/cdn/{U5Z46A5E.js → RNI7TT4M.js} +2 -2
- package/dist/cdn/{XWTGQKAR.js → RO5PJ76M.js} +1 -1
- package/dist/cdn/{LNTT6I2X.js → ROCIFSUL.js} +2 -2
- package/dist/cdn/{J3N2IR3X.js → RWXLPD4H.js} +2 -2
- package/dist/cdn/{7KMQUKVD.js → RYES6YM3.js} +2 -2
- package/dist/cdn/{RP55AFNY.js → S3MH5MBH.js} +2 -2
- package/dist/cdn/{DP6BIYZV.js → SAKENJP3.js} +2 -2
- package/dist/cdn/SBTBR7XC.js +4 -0
- package/dist/cdn/{NDEKQB6R.js → SCKOUQAW.js} +2 -2
- package/dist/cdn/{UQBP62ZD.js → SMIITNGH.js} +2 -2
- package/dist/cdn/{RZM7X2DV.js → SRYSQJ5H.js} +2 -2
- package/dist/cdn/{KNFAYFJX.js → SRZTL2NZ.js} +2 -2
- package/dist/cdn/{KN7A2W4U.js → T2S47FRF.js} +2 -2
- package/dist/cdn/T5YWANI2.js +18 -0
- package/dist/cdn/{KVMXA3Y6.js → THEX57MF.js} +2 -2
- package/dist/cdn/{D4IRZK6U.js → TKL4MG3Q.js} +2 -2
- package/dist/cdn/{FIGAKUCR.js → TMK2YYUU.js} +2 -2
- package/dist/cdn/{AX43INFU.js → TMNFYHGY.js} +2 -2
- package/dist/cdn/{ULVD3IW2.js → TPFTOSLE.js} +2 -2
- package/dist/cdn/{6GTMUJA6.js → TTV4NRBC.js} +2 -2
- package/dist/cdn/{B3YWATN3.js → TX7MPMSV.js} +2 -2
- package/dist/cdn/{46FXW275.js → TZZA2IJ3.js} +3 -3
- package/dist/cdn/{SDHBTMKJ.js → U4LWE3ZY.js} +2 -2
- package/dist/cdn/{ZGOI3FXD.js → UGA6C7H6.js} +2 -2
- package/dist/cdn/{EWLFZX72.js → UR7VT743.js} +2 -2
- package/dist/cdn/USF6ABOG.js +4 -0
- package/dist/cdn/{VWNN4SWV.js → UTJPTXFZ.js} +2 -2
- package/dist/cdn/{QPH2ZSRJ.js → V3BJ3C7G.js} +2 -2
- package/dist/cdn/{L2MNL4N6.js → V3FGPANI.js} +2 -2
- package/dist/cdn/{BRGIANIA.js → V7ETNYJN.js} +2 -2
- package/dist/cdn/{VE76CHCV.js → VHDKMKRB.js} +2 -2
- package/dist/cdn/{6L5CFL7R.js → VIUJIRMV.js} +2 -2
- package/dist/cdn/{TOZIXJZO.js → VKM2IICG.js} +2 -2
- package/dist/cdn/{HPHWYMF3.js → VLIQM5XM.js} +2 -2
- package/dist/cdn/{KAV773MF.js → VNC7CXVL.js} +1 -1
- package/dist/cdn/{SKSAREHZ.js → VPYZU3PV.js} +2 -2
- package/dist/cdn/{2EEVDFAG.js → VQANXEIF.js} +2 -2
- package/dist/cdn/{WCPFC4PZ.js → W2C4A6AQ.js} +2 -2
- package/dist/cdn/{SLB4NTXY.js → WAICL3LP.js} +2 -2
- package/dist/cdn/{Y7UBXMDQ.js → WBJPA4F4.js} +2 -2
- package/dist/cdn/{2QFXOBI3.js → WCFYJXHQ.js} +1 -1
- package/dist/cdn/{M6HNM3ML.js → WL7PFVSR.js} +2 -2
- package/dist/cdn/{KUSFOMTK.js → WSD7UQUA.js} +2 -2
- package/dist/cdn/{SIX2JQL2.js → X7AWZSTB.js} +1 -1
- package/dist/cdn/X7CK777N.js +4 -0
- package/dist/cdn/{FNN6KMV2.js → XBJI7OVV.js} +2 -2
- package/dist/cdn/{TN3ITLSW.js → XIPPDG54.js} +2 -2
- package/dist/cdn/{3ZLMDYKJ.js → XIU26NMO.js} +2 -2
- package/dist/cdn/{3AHKLMK7.js → XIX3CLNV.js} +2 -2
- package/dist/cdn/{5MPACKGM.js → XJ4Q4SWE.js} +2 -2
- package/dist/cdn/{WIMSMHDF.js → XQ7LKWS6.js} +2 -2
- package/dist/cdn/{B6EWOQY5.js → XYIYSCJF.js} +2 -2
- package/dist/cdn/{SF4CXPFN.js → Y2JZNUZN.js} +2 -2
- package/dist/cdn/{JARC45CV.js → Y5ITNA7H.js} +1 -1
- package/dist/cdn/{RQWAIILE.js → YAIWCQES.js} +2 -2
- package/dist/cdn/{MQS3QZ22.js → YJ4NJMG7.js} +2 -2
- package/dist/cdn/{F63KEMM3.js → YKSLBBBW.js} +1 -1
- package/dist/cdn/{F7HH77RT.js → YLTW4Q2G.js} +2 -2
- package/dist/cdn/YR23NYJC.js +4 -0
- package/dist/cdn/{YYNMOKSW.js → YWNZV6CK.js} +2 -2
- package/dist/cdn/{IF2SDHZP.js → Z36FODX2.js} +2 -2
- package/dist/cdn/{DZOQFMST.js → Z7EWWUJK.js} +2 -2
- package/dist/cdn/{KCM2OFY3.js → ZHCQ73AF.js} +2 -2
- package/dist/cdn/{QKSQZGNF.js → ZJMMDGSQ.js} +2 -2
- package/dist/cdn/{57YXUARI.js → ZLELJP4A.js} +2 -2
- package/dist/cdn/ZQ37VBMP.js +4 -0
- package/dist/cdn/{HKNCASTM.js → ZZWNL2AJ.js} +2 -2
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/stdin.css +1 -0
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +2 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +54 -54
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +38 -121
- package/dist/components/solution-configure-dialog/index.d.ts +0 -3
- package/dist/components/solution-configure-dialog/index.js +0 -3
- package/dist/components/solution-configure-titles/customElement.js +10 -10
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +24 -25
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +8 -8
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +2 -2
- package/dist/components/solution-details-panel/customElement.js +3 -3
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.d.ts +2 -0
- package/dist/components/solution-item-diagram/customElement.js +10 -9
- package/dist/components/solution-item-diagram/utils/SolutionDisplay.d.ts +2 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +38 -34
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +19 -2
- package/dist/docs/docs.json +24 -2
- package/dist/docs/web-types.json +6 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/5253FCAA.js +0 -4
- package/dist/cdn/77RPO7MJ.js +0 -8
- package/dist/cdn/7JGAEA3J.js +0 -4
- package/dist/cdn/A5KVJBPR.js +0 -8
- package/dist/cdn/APNPQ7O7.js +0 -4
- package/dist/cdn/B5FGKAM6.js +0 -4
- package/dist/cdn/D2ATJM23.js +0 -25
- package/dist/cdn/EHWDZP62.js +0 -4
- package/dist/cdn/F6Y7AO3M.js +0 -18
- package/dist/cdn/FGFRQH3J.js +0 -81
- package/dist/cdn/GDBXS7KE.js +0 -4
- package/dist/cdn/GO3CZAXV.js +0 -4
- package/dist/cdn/IHQKADUC.js +0 -4
- package/dist/cdn/KKC3EZXQ.js +0 -4
- package/dist/cdn/ODSRLWLP.js +0 -6
- package/dist/cdn/RLYQ3LRK.js +0 -18
- package/dist/cdn/S3JQNLJM.js +0 -18
- package/dist/cdn/YV6HJVHW.js +0 -4
- package/dist/cdn/ZI4TWRCO.js +0 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as u}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as u}from"./2SMJNHDA.js";import{b as s,c as p,e as m}from"./B3TFVUQ3.js";import"./MXVIDHVI.js";import"./CZ3BVZWT.js";import"./ROCIFSUL.js";import"./4DTTBSJJ.js";import"./EI3UVHVJ.js";import"./SAKENJP3.js";import"./RI4DNTJV.js";import"./CT3POA2I.js";import"./67UNP3O6.js";import"./AFVKAHAM.js";import"./RO5PJ76M.js";import"./WCFYJXHQ.js";import"./4DGE5KUI.js";import"./QST55MDE.js";import"./THEX57MF.js";import"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import"./OQLSBZBK.js";import{a as g}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as h}from"./4VDUJIVA.js";import{C as o,h as n,i,j as c,w as t,x as a,y as d}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var f=n`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,4 +15,4 @@ import{a as u}from"./WIZHWIJI.js";import{b as s,c as p,e as m}from"./L35NOW7V.js
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
16
|
* See the License for the specific language governing permissions and
|
17
17
|
* limitations under the License.
|
18
|
-
*/calcite-card{width:295px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(
|
18
|
+
*/calcite-card{width:295px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(20%);filter:brightness(20%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:2px solid var(--calcite-ui-brand);box-sizing:content-box;cursor:pointer}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.1rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: 0px}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:.5rem}.padding-bottom-1-2{padding-bottom:.5rem}.display-flex{display:flex}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-bold{font-weight:700}.font-weight-normal{font-weight:400}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.cursor-default{cursor:default}`,l=class extends d{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this._isConfigureOpen=!1,this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._translations=g({name:"solution-deployed-card",blocking:!0}),this._authContextConsumer=s({context:m,subscribe:!0}),this._configureDialogRef=t(),this._deleteDialogRef=t(),this._diagramDialogRef=t(),this._userSessionContextConsumer=s({context:p,subscribe:!0})}static{this.properties={allowDelete:5,card:0,deployedDate:1,description:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:5,_isConfigureOpen:16,_isDeleteOpen:16,_isDiagramOpen:16,templateInfoGraph:16,_translations:16}}static{this.styles=f}async renderConfigureDialog(e){this._cardSelected(),this._configureDialogRef.value&&(this._configureDialogRef.value.showSuccessAlert=e)}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return this._isDiagramOpen=!0,await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}render(){return i`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this._getOwnerLabel()}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureDialog()}`}_getImage(){let e=this._userSessionContextConsumer.value;return i`<div class="card-image-wrap" slot=thumbnail><img class="thumbnail card-image" alt=${this.heading??o} src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.configure}</div></div>`}_getHeader(){return i`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return i`<calcite-label class="font-weight-bold padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return i`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${c`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){return i`<calcite-split-button appearance=outline @calciteSplitButtonPrimaryClick=${()=>{this._isConfigureOpen=!0}} @click=${e=>e.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.configure??o} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item>${this.allowDelete&&i`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} ${a(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??o} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled resizable scale=l width=l ${a(this._diagramDialogRef)}><solution-item-diagram .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureDialog(){return i`<solution-configure-dialog .card=${this.card} .cardRef=${this.el} @solutionConfigureDialogClose=${()=>{this._isConfigureOpen=!1}} .open=${this._isConfigureOpen} ${a(this._configureDialogRef)}></solution-configure-dialog>`}_cardSelected(){this._isConfigureOpen=!0}async _viewDiagram(e){e.stopPropagation(),this.card&&(this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let r=this._authContextConsumer.value?.PortalSubset?.orgUrl;r&&window.open(`${r}/home/user.html`,"_blank")}async _processTemplates(e){return await u(e.id,this._userSessionContextConsumer.value)}};h("solution-deployed-card",l);export{l as SolutionDeployedCard};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as v}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as v}from"./7CUVYKXM.js";import"./PFUYV3G4.js";import"./MXVIDHVI.js";import"./CZ3BVZWT.js";import"./ROCIFSUL.js";import"./4DTTBSJJ.js";import"./EI3UVHVJ.js";import"./SAKENJP3.js";import"./RI4DNTJV.js";import"./CT3POA2I.js";import"./67UNP3O6.js";import"./AFVKAHAM.js";import"./RO5PJ76M.js";import"./WCFYJXHQ.js";import"./4DGE5KUI.js";import"./QST55MDE.js";import"./THEX57MF.js";import"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import"./OQLSBZBK.js";import"./OBILOKBT.js";import"./A5ANEUPM.js";import"./6X64VRXD.js";import{b}from"./Y5ITNA7H.js";import{a as m}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as w}from"./4VDUJIVA.js";import{A as i,B as f,h as p,i as s,k as u,n as o,q as _,y as g}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var E=p`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as h}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{b as h}from"./4VDUJIVA.js";import{h as n,i as s,k as c,n as l,q as o,y as d}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var p=n`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{b}from"./Y5ITNA7H.js";import{a as f}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as u}from"./4VDUJIVA.js";import{A as o,h as _,i as h,k as c,w as l,x as a,y as w}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var $=_`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250814 */
|
4
4
|
function c(e){let t={};if(Array.isArray(e))t=e.map(c);else if(typeof e=="object"){if(e===null)return e;for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];n!=null&&typeof n=="object"?n instanceof Date?t[r]=new Date(n.getTime()):typeof Blob<"u"&&n instanceof Blob?t[r]=new Blob([n],{type:n.type}):t[r]=c(n):t[r]=n}}else t=e;return t}function s(e,t){return e.filter(n=>n!==t)}function l(e="i"){return`${e}${Math.random().toString(36).substr(2,8)}`}function a(e,t){return e!=null&&(t=c(t),t.push(e)),t}function d(e){e=e.toLowerCase(),e=e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi," ");let t=/(\-|\_|\.|\s)+(.)?/g,r=/(^|\/)([A-Z])/g;return e.replace(t,function(n,i,u){return u?u.toUpperCase():""}).replace(r,function(n,i,u){return n.toLowerCase()})}function p(e,t,r){return r.indexOf(e)===t}function f(e,t,r=!0){let n=c(e);return Object.keys(t).reduce((i,u)=>{if(t[u]!==null&&t[u]!==void 0){let o=c(t[u]);Array.isArray(o)?i[u]=o:r&&typeof o=="object"?i[u]=f(i[u]||{},o,r):i[u]=o}return i},n)}function x(e,t){let r=[],n=0;for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}var y=e=>e==null;export{c as a,s as b,l as c,a as d,d as e,p as f,f as g,x as h,y as 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as p}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as p}from"./RO5PJ76M.js";import{a as n}from"./YKSLBBBW.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j as a};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{c as l}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{c as l}from"./YAIWCQES.js";import"./LRZ2H4VM.js";import"./6X64VRXD.js";import{b as n}from"./Y5ITNA7H.js";import{b as h}from"./4VDUJIVA.js";import{h as o,n as s,q as r,y as c}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var d=o`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import"./K6Y7PB4W.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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as _}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as _}from"./V3BJ3C7G.js";import"./JER6JZXQ.js";import{c as g,g as $,j as F}from"./YAIWCQES.js";import{e as d}from"./LRZ2H4VM.js";import{a as E,d as O,f as T}from"./6X64VRXD.js";import{b as I}from"./Y5ITNA7H.js";import{a as k}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as G}from"./4VDUJIVA.js";import{A as y,B as V,h as L,i as c,n as S,q as v,w as u,x as p,y as C}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var N=L`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{e as t,g as i}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{e as t,g as i}from"./67UNP3O6.js";function n(r){let o=r&&r.hubApiUrl;return o||i(t(r))}export{n as a};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a,b}from"./7EK6RHGO.js";import"./JXB5LIL6.js";import"./MGTNVXN6.js";import"./BUNVS4W5.js";import"./KVWD2NCD.js";import"./BO3S7FKQ.js";import"./K6Y7PB4W.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import e from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import e from"./CQ7LEMHR.js";import b from"./KXMHMNFG.js";import"./FVTQPVHE.js";import a from"./NLMLINN5.js";import{a as p}from"./4D2YRN2T.js";import"./AA7WFQB6.js";import{b as l}from"./USF6ABOG.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{A as d,C as c,h as s,i as t,n as r,y as o}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";export default $arcgis.t(([,{b:h},{i:g,t:v}])=>{var x=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: 500;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .instant-apps-interactive-legend__header--compact .esri-widget__heading{font-size:.9rem}:host .esri-widget__heading{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},a=class extends o{constructor(){super(...arguments),this._messages=p({name:"instant-apps-interactive-legend"}),this.isChild=!1,this.expanded=!0,this.layerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=x}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=g(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages?.collapse:this._messages?.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",_=h.get("compact")?` ${e.compact}`:"";return t`<header class=${`${e.interacitveLegendHeader} ${v(this.el)}${_}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i??""} .label=${i} scale=s></calcite-action><span><span class=${d(e.headerActionContainer)}><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};l("instant-apps-interactive-legend-layer-element-caption",a);return a},a,b,e)
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as s}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as s}from"./PPS7C4OY.js";import"./67UNP3O6.js";import"./AFVKAHAM.js";import"./RO5PJ76M.js";import"./WCFYJXHQ.js";import{a as i,b as a}from"./K74VECE5.js";import"./XBJI7OVV.js";import"./4DGE5KUI.js";import"./QST55MDE.js";import{a as o}from"./ACFG5TV4.js";import{a as r}from"./3ACOUZ2J.js";import"./THEX57MF.js";import"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import"./EJPEGRC5.js";import"./6CE3P6MK.js";import"./OQLSBZBK.js";import"./5GN3UTVY.js";import"./HOP7ALIK.js";import"./ARCKDH5K.js";import"./6V7OF3L5.js";import"./4QMK76M4.js";import"./TTV4NRBC.js";import"./4GLART42.js";import"./6UNISOCW.js";import"./ABJR44TO.js";import"./X7AWZSTB.js";import"./QMB4QM6Y.js";import"./2A5LFLWY.js";import"./7EK6RHGO.js";import"./JXB5LIL6.js";import"./MGTNVXN6.js";import"./DA7Z7I7X.js";import"./CSM3L6AR.js";import"./BUNVS4W5.js";import"./KVWD2NCD.js";import"./BO3S7FKQ.js";import"./K6Y7PB4W.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,"discussion",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 r(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 i(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),mapTools:["polygon","rectangle"],noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.details.label`,elements:[{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{control:"hub-field-input-input",type:"textarea",messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]}]});export{u as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import"./K6Y7PB4W.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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as n}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as n}from"./HEJ3YUKD.js";import{a as p}from"./C6JV3SFP.js";import"./WCFYJXHQ.js";import{a as r,b as i}from"./K74VECE5.js";import"./XBJI7OVV.js";import"./4DGE5KUI.js";import{d as a}from"./QST55MDE.js";import"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import{a as t}from"./EJPEGRC5.js";import"./6CE3P6MK.js";import"./OQLSBZBK.js";import"./5GN3UTVY.js";import"./HOP7ALIK.js";import"./ARCKDH5K.js";import"./6V7OF3L5.js";import"./4QMK76M4.js";import"./TTV4NRBC.js";import"./4GLART42.js";import"./6UNISOCW.js";import"./ABJR44TO.js";import"./X7AWZSTB.js";import"./QMB4QM6Y.js";import"./2A5LFLWY.js";import"./7EK6RHGO.js";import"./JXB5LIL6.js";import"./MGTNVXN6.js";import"./DA7Z7I7X.js";import"./CSM3L6AR.js";import"./BUNVS4W5.js";import"./KVWD2NCD.js";import"./BO3S7FKQ.js";import"./K6Y7PB4W.js";var h=async(e,s,o)=>{var l;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,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,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:`${e}.fields.hero.helperText`},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"]}}]}]},{type:"Section",labelKey:`${e}.sections.hero.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"image"}}},options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(s.location,o.hubRequestOptions),options:await i(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.fields.featuredImage.label`,options:{helperText:{labelKey:`${e}.fields.featuredImage.helperText`}},rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},elements:[{scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:p((l=s.view)===null||l===void 0?void 0:l.featuredImageUrl,o.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",options:{helperText:{labelKey:`${e}.fields.featuredImage.altText.helperText`}}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:n(o.currentUser.groups),disabled:!a("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]}};export{h as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import e from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import e from"./CQ7LEMHR.js";import c from"./KXMHMNFG.js";import"./FVTQPVHE.js";import b from"./NLMLINN5.js";import"./AA7WFQB6.js";import{b as l}from"./USF6ABOG.js";import"./ZLELJP4A.js";import{A as o,B as d,h as s,i as a,w as i,x as n,y as r}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{b as g,e as m}from"./B3TFVUQ3.js";import{a as u}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as h}from"./4VDUJIVA.js";import{h as c,i as t,n as d,w as a,y as p}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var v=c`/** @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
|
+
*/.minor-card{width:16%}.center{justify-content:center;align-items:center}.align-self-center{align-self:center}.font-weight-semibold{font-weight:var(--calcite-font-weight-semibold)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.icon-color{color:var(--calcite-color-text-3)}.font-weight-normal{font-weight:var(--calcite-font-weight-normal)}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.no-space{--calcite-label-margin-bottom: 0px}.font-color{color:red}.padding-end-1-2{padding-inline-end:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.edit-button-position{position:absolute;right:1rem}html[dir=rtl] .edit-button-position{position:absolute;left:1rem}.max-width-35{max-width:35vw}.large-card{width:49%}.btn-center{width:100%;display:grid;place-items:center}.width-full{width:100%}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.width-400{width:400px}.width-450{width:450px}.padding-3-4{padding:.75rem}.margin-0{margin:0}.calcite-internal-dialog-content-padding-override{--calcite-internal-dialog-content-padding: 0px}.background-color-2{background-color:var(--calcite-color-foreground-2)}.card-group-padding,.solution-content-padding{padding:1rem}@media (max-width: 1240px){.large-card{width:48%}}.error-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.button-flex{display:flex;flex-wrap:wrap}`,l=165,o=class extends p{constructor(){super(...arguments),this.open=!1,this.showSuccessAlert=!1,this.templateInfos=[],this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._displayClass="",this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._translations=u({name:"solution-configure-dialog",blocking:!0}),this._authContextConsumer=g({context:m,subscribe:!0}),this._editSummaryPopoverRef=a(),this._editNamePopoverRef=a(),this._solutionSnippetUpdated=!1,this._solutionTitleUpdated=!1,this.solutionConfigureDialogClose=d()}static{this.properties={card:0,cardRef:1,open:5,showSuccessAlert:5,templateInfos:0,_configureTitlesOpen:16,_deleteDialogOpen:16,_displayClass:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,_translations:16}}static{this.styles=v}updated(e){if(e.has("open")){let i=e.get("open");this.open&&!i&&this.cardRef.getTemplates().then(s=>{this.templateInfos=s})}}render(){return t`<div>${this.templateInfos.length>0&&t`<calcite-dialog class=${`${this._displayClass} calcite-internal-dialog-content-padding-override`} .heading=${this.card?.title} modal scale=l @calciteDialogClose=${()=>{this.open=!1,this.solutionConfigureDialogClose.emit(this._solutionSnippetUpdated||this._solutionTitleUpdated),this._cleanupPanel(),this.card=void 0,this.templateInfos=[],this.showSuccessAlert=!1}} .open=${this.open} outside-close-disabled width=l><div class="display-flex flex-direction-column"><div class="display-flex flex-direction-row card-group-padding background-color-2"><calcite-card-group .label=${this._translations.reviewAndConfigureSolution}>${this._getStartHereCard()}${this._getDiagramCard()}${this._getSolutionCard()}${this._getSolutionVersionCard()}</calcite-card-group></div>${this._getSolutionContents()}</div><div slot=footer-start></div><calcite-button appearance=outline @click=${this._close} slot=footer-end>${this._translations.closeTheDialog}</calcite-button><div slot=alerts>${this._getSuccessAlert()}${this._getFailedAlert()}</div></calcite-dialog>`||""}${this.templateInfos.length>0&&this._getConfigureTitlesDialog()||""}${this.templateInfos.length>0&&this._getDeleteDialog()||""}</div>`}_getConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._displayClass="",this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this.cardRef.getTemplates()}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_getFailedAlert(){let e=this._failedType==="snippet"?this._translations.failedToUpdateSnippet:this._failedType==="title"?this._translations.failedToUpdateTitle:this._failedType==="titles"?this._translations.failedToUpdateTitles:void 0;return this._showFailedAlert&&e?t`<calcite-alert auto-close icon=exclamation-mark-triangle kind=danger .label=${e} @calciteAlertClose=${()=>{this._showFailedAlert=!1}} .open=${this._showFailedAlert}><div slot=message>${e}</div></calcite-alert>`:""}_getSuccessAlert(){return this.showSuccessAlert?t`<calcite-alert auto-close icon=check-circle kind=success .label=${this.card?.title||""} @calciteAlertClose=${()=>{this.showSuccessAlert=!1}} .open=${this.showSuccessAlert}><div slot=message>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title||"")}</div></calcite-alert>`:""}_getDiagramCard(){return this._getBasicCard(this._translations.diagramOfTheSolution,this._translations.diagramSubText,"model",this._translations.openTheDiagram,"outline",this._openDiagram,void 0)}async _openDiagram(e){this._displayClass="display-none";let i=await this.cardRef.renderDiagramDialog(e);i&&this.listenOn(i,"calciteDialogBeforeClose",()=>{this._displayClass=""})}_getStartHereCard(){return this._getBasicCard(this._translations.startHere,this._translations.startHereSubText,"file-text",this._translations.viewTheDocumentation,"solid")}_getSolutionVersionCard(){return this._getBasicCard(this._translations.solutionVersion,"","check-shield",void 0,void 0,void 0,this.card?.deployVersion??"")}_getBasicCard(e,i,s,n,f,_,r){return t`<calcite-card class="minor-card font-size-override"><span class="font-weight-medium" slot=heading>${e}</span><div class="display-flex center"><div class="display-flex flex-direction-column center"><calcite-icon class="icon-color" .icon=${s} scale=l></calcite-icon>${r?t`<span class="font-weight-medium">${r}</span>`:""}<p>${i}</p></div></div>${n?t`<div class="btn-center" slot=footer-start><calcite-button .appearance=${f} kind=brand @click=${_}>${n}</calcite-button></div>`:""}</calcite-card>`}_getSolutionCard(){let e="configure-show-full-summary",i=this.card?.snippet,s="";return this.card?.snippet&&this.card?.snippet.length>l&&(i=this.card?.snippet.substring(0,l)+"... ",s=t`<calcite-link id=${e}>${this._translations.showMoreSummary}</calcite-link>`),t`<calcite-card class="large-card font-size-override"><calcite-label class="font-weight-medium" scale=l slot=heading>${this._translations.aboutYourSolution}</calcite-label><div class="display-flex flex-direction-column"><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionName}</calcite-label><span class="font-weight-medium width-full align-self-start">${this.card?.title}</span></div><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionSummary}</calcite-label><span class="font-weight-medium width-full align-self-center">${i}${s}</span></div><div class="display-flex"><calcite-label class="font-weight-medium no-space padding-end-1" layout=inline>${this._translations.aboutYourSolutionOwner}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.card?.owner}</calcite-link></calcite-label><div class="display-flex"><calcite-label class="no-space icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this.card?.created}</calcite-label></div></div></div><div slot=footer-start class="button-flex"><calcite-button appearance=outline class="padding-end-1" icon-start=share kind=brand @click=${this._showItemDetails}>${this._translations.itemDetails}</calcite-button></div><calcite-button appearance=outline icon-start=trash kind=brand @click=${this._deleteSolution} slot=footer-end>${this._translations.deleteSolution}</calcite-button>${this.card?.snippet&&this.card?.snippet.length>l&&this._getSummaryPopover(e)||""}</calcite-card>`}_getSolutionContents(){return t`<div class="solution-content-padding"><calcite-label class="font-weight-medium" layout=inline scale=l>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}<calcite-button appearance=outline icon-start=pencil kind=brand @click=${()=>{this._configureTitlesOpen=!0,this._displayClass="display-none"}}>${this._translations.updateTitles}</calcite-button></calcite-label><solution-item-accordion list-selection-mode=single .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion></div>`}_getDeleteDialog(){return this._deleteDialogOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleted=${this._close} @solutionDeleteDialogBeforeClose=${()=>{this._displayClass="",this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen}></solution-delete-dialog>`:""}async _deleteSolution(){this._displayClass="display-none",this._deleteDialogOpen=!0}_showItemDetails(){window.open(this.card.itemUrl,"_blank")}_openUserProfile(e){e.stopPropagation();let i=this._authContextConsumer.value?.PortalSubset?.orgUrl;i&&window.open(`${i}/home/user.html`,"_blank")}_getSummaryPopover(e){return t`<calcite-popover closable heading label overlay-positioning=fixed .referenceElement=${e}><div class="padding-3-4 margin-0 width-400">${this.card?.snippet}</div></calcite-popover>`}_close(){this.open=!1}_cleanupPanel(){this._editSummaryPopoverRef.value?.open&&(this._editSummaryPopoverRef.value.open=!1),this._editNamePopoverRef.value?.open&&(this._editNamePopoverRef.value.open=!1)}};h("solution-configure-dialog",o);export{o as SolutionConfigureDialog};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as p,d as n,e as h,f as R}from"./7EN7HPX7.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{b as p,d as n,e as h,f as R}from"./N4C5NAQY.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import a from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import a from"./GLTMZBZ3.js";import{b as v}from"./QBC5SBBE.js";import{a as l,c as y,d as b,e as m}from"./B3TFVUQ3.js";import"./MXVIDHVI.js";import"./CZ3BVZWT.js";import"./ROCIFSUL.js";import"./4DTTBSJJ.js";import"./EI3UVHVJ.js";import"./SAKENJP3.js";import"./RI4DNTJV.js";import"./CT3POA2I.js";import"./67UNP3O6.js";import"./AFVKAHAM.js";import"./RO5PJ76M.js";import"./WCFYJXHQ.js";import"./4DGE5KUI.js";import"./QST55MDE.js";import"./THEX57MF.js";import"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import"./OQLSBZBK.js";import{a as g}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as f}from"./4VDUJIVA.js";import{B as o,C as u,h as c,i,n,w as d,x as p,y as h}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";export default $arcgis.t(([_])=>{var x=c`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import"./K6Y7PB4W.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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as m,b as o,c as T,d as E}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as m,b as o,c as T,d as E}from"./ABJR44TO.js";import{a as t,b as e}from"./X7AWZSTB.js";import{a as n,c as i,e as a,f as r,i as s,k as p}from"./BO3S7FKQ.js";import"./K6Y7PB4W.js";var l=()=>({$async:!0,required:["name","startDate","endDate","timeZone"],properties:{name:n,description:{type:"string"},_thumbnail:p,attendanceType:{type:"string",enum:[t.InPerson,t.Online,t.Both],default:t.InPerson},startDate:{type:"string",format:"date"},endDate:{type:"string",format:"date",formatMinimum:{$data:"1/startDate"}},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1},timeZone:{type:"string"},inPersonCapacity:{type:"number"},inPersonCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},location:Object.assign(Object.assign({},s),{allOf:[{if:{properties:{type:{enum:["custom","org"]}}},then:{required:["name"]}}]}),onlineUrl:{type:"string"},onlineDetails:{type:"string"},onlineCapacity:{type:"number"},onlineCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},summary:i,tags:a,categories:r},allOf:[o,m,T,E]});export{l 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as C}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as C}from"./ZLELJP4A.js";import{a as v,b as E,o as y}from"./CFK3L2YF.js";var O=(n,r)=>{let e=n;for(;e;){if(e===r)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},L=(n,r,e)=>{let o=A(r).subscribe;return o(t=>{t.some(s=>O(n,s.target))&&e()})},h={},A=n=>{let r=n.join(","),e=h[r];if(e!==void 0)return e;let o=new Set,t=new MutationObserver(s=>o.forEach(a=>a(s)));globalThis.document&&t.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let i={subscribe:s=>(o.add(s),()=>{o.delete(s),o.size===0&&(t.disconnect(),h[r]=void 0)})};return h[r]=i,i},T=(n,r)=>{let e=n;for(;e;){let o=e.closest?.(r);if(o)return o;let t=e.getRootNode?.();if(t===globalThis.document)return;e=t.host}};var N=(n,r,e)=>T(n,`[${r}]`)?.getAttribute(r)??e;var M="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),_=new Set(M),d="en",$={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},S=async(n,r,e="")=>{let o=`${r}/${e}`,t=`${o}${n}.json`;return f[t]??(f[t]=x(n,o)),await f[t]},f={},x=async(n,r)=>{let e=`${r}${n}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return n===d?{}:await x(d,r)},m=n=>{let r=N(n,"lang",globalThis.navigator?.language||d);return{lang:r,t9nLocale:w(r)}},w=n=>{let[r,e]=n.split("-"),o=r.toLowerCase(),t=o;return e&&(t=`${o}-${e.toUpperCase()}`),t=$[t]??t,_.has(t)?t:e?w(o):d},P=(n,r,e,o)=>{let t,i=()=>j(n,r(),o).then(s=>{(t?.lang!==s.lang||t.t9nLocale!==s.t9nLocale||t.t9nStrings!==s.t9nStrings)&&e(s),t=s}).catch(console.error);return queueMicrotask(i),L(n,["lang"],i)},j=async(n,r,e=n.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:t}=m(n),i=`${r}/${e}/t9n`,a=e===null?{}:await S(t,i,"messages.");return{lang:o,t9nLocale:t,t9nStrings:a}};var F=n=>D(void 0,n);var g=class extends y{constructor(r,e){super(r);let o=this.exports;try{E(this.component);let t=e(this.component,this),i=this.exports!==o;if(v(t)){i||this.setProvisionalExports(t);let s=t.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a),console.error(a)});this.onLoad(async()=>await s)}else(!i||t!==void 0)&&(this.exports=t),queueMicrotask(()=>super.catchUpLifecycle())}catch(t){this.P.reject(t),console.error(t)}}catchUpLifecycle(){}},D=C(g);var le=n=>(r={})=>F((e,o)=>{let t=m(e.el),i={_lang:t.lang,_t9nLocale:t.t9nLocale,_loading:!0},s=e;o.onLifecycle(()=>P(e.el,()=>n("./assets"),({t9nLocale:c,t9nStrings:l,lang:u})=>{let p={...l,_lang:u,_t9nLocale:c,_loading:!1};o.exports=p;let b=l.componentLabel;typeof b=="string"&&"label"in e&&e.label==null&&(e.label??=b),a(s.messageOverrides)},r.name));let a=c=>{let l=o.exports,u=l._original??l,p=k(u,c);c&&(p._original=u),o.exports=p};return"messageOverrides"in s&&o.onUpdate(c=>{c.has("messageOverrides")&&a(s.messageOverrides)}),r.blocking?(o.setProvisionalExports(i,!1),o.ready):i}),k=(n,r)=>{if(!r)return n;let e={...n};return Object.entries(r).forEach(([o,t])=>{typeof t=="object"?e[o]=k(n[o],t):e[o]=t??n[o]}),e};export{le as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{a as e}from"./BUNVS4W5.js";var s=["hub:survey:edit","hub:survey:settings"],a=Object.assign(Object.assign({},e),{properties:Object.assign({displayMap:{type:"boolean",enum:[!0,!1],default:!1},hasMapQuestion:{type:"boolean",enum:[!0,!1],default:!1}},e.properties)});export{s as a,a as b};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as I,c as b,d as v}from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import{b as I,c as b,d as v}from"./HBXZXBY7.js";import{a as i}from"./DPUKESDE.js";import"./JER6JZXQ.js";import"./MXVIDHVI.js";import"./CZ3BVZWT.js";import"./ROCIFSUL.js";import"./4DTTBSJJ.js";import"./EI3UVHVJ.js";import"./SAKENJP3.js";import"./RI4DNTJV.js";import"./CT3POA2I.js";import"./67UNP3O6.js";import"./AFVKAHAM.js";import"./RO5PJ76M.js";import"./WCFYJXHQ.js";import"./4DGE5KUI.js";import"./QST55MDE.js";import"./THEX57MF.js";import{g as a}from"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import"./OQLSBZBK.js";import{a as n}from"./IK7F27QS.js";import"./LRZ2H4VM.js";import{a as g}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as _}from"./4VDUJIVA.js";import{A as m,h,i as o,k as c,q as u,w as d,x as p,y as f}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";var y=h`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import b from"./
|
3
|
+
v1.1.0-next.20250814 */
|
4
|
+
import b from"./AZAVNJBN.js";import{b as T,c as I}from"./B3TFVUQ3.js";import{mb as x,nb as $}from"./MXVIDHVI.js";import"./CZ3BVZWT.js";import"./ROCIFSUL.js";import"./4DTTBSJJ.js";import"./EI3UVHVJ.js";import"./SAKENJP3.js";import"./RI4DNTJV.js";import"./CT3POA2I.js";import"./67UNP3O6.js";import"./AFVKAHAM.js";import"./RO5PJ76M.js";import"./WCFYJXHQ.js";import"./4DGE5KUI.js";import"./QST55MDE.js";import"./THEX57MF.js";import"./N4C5NAQY.js";import"./MVUCSBRQ.js";import"./H752522M.js";import"./YKSLBBBW.js";import"./OQLSBZBK.js";import{H as g}from"./LRZ2H4VM.js";import{a as _}from"./4CBNOR6N.js";import"./TPFTOSLE.js";import"./ZLELJP4A.js";import{b as m}from"./4VDUJIVA.js";import{A as l,h as p,i as a,n as r,w as c,x as u,y as f}from"./CFK3L2YF.js";import"./K6Y7PB4W.js";export default $arcgis.t(([{d:d}])=>{var E=p`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,4 +15,4 @@ import b from"./VU544BRL.js";import{b as T,c as I}from"./L35NOW7V.js";import{mb
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
16
|
* See the License for the specific language governing permissions and
|
17
17
|
* limitations under the License.
|
18
|
-
*/.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.padding-bottom-1{padding-bottom:1rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`,h=class extends f{constructor(){super(...arguments),this.open=!1,this.templateInfos=[],this._saveDisabled=!1,this._displayTemplateInfos=[],this._hasNameLengthError=!1,this._solutionItemsTitlesUpdating=!1,this._translations=_({name:"solution-configure-titles",blocking:!0}),this._prefixRef=c(),this._prefixValue="",this._suffixRef=c(),this._suffixValue="",this._userSessionContextConsumer=T({context:I,subscribe:!0}),this.solutionConfigureTitlesBeforeClose=r(),this.solutionItemsTitlesChanged=r()}static{this.properties={card:0,open:5,templateInfos:0,_saveDisabled:16,_displayTemplateInfos:16,_hasNameLengthError:16,_solutionItemsTitlesUpdating:16,_translations:16}}static{this.styles=E}willUpdate(e){e.has("templateInfos")&&this._updateTemplates()}load(){this._updateTemplates()}render(){let e=this._translations.configureTitlesDialogHeader.replace("{{solutionName}}",this.card.title);return a`<calcite-dialog .heading=${e} modal @calciteDialogBeforeClose=${()=>{this.solutionConfigureTitlesBeforeClose.emit()}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`}_getPrefixSuffixControls(){let e=d(this._prefixValue),s=this._hasNameLengthError&&this._prefixValue.length>0,i=!e,t=!s,
|
18
|
+
*/.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.padding-bottom-1{padding-bottom:1rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`,h=class extends f{constructor(){super(...arguments),this.open=!1,this.templateInfos=[],this._saveDisabled=!1,this._displayTemplateInfos=[],this._hasNameLengthError=!1,this._solutionItemsTitlesUpdating=!1,this._translations=_({name:"solution-configure-titles",blocking:!0}),this._prefixRef=c(),this._prefixValue="",this._suffixRef=c(),this._suffixValue="",this._userSessionContextConsumer=T({context:I,subscribe:!0}),this.solutionConfigureTitlesBeforeClose=r(),this.solutionItemsTitlesChanged=r()}static{this.properties={card:0,open:5,templateInfos:0,_saveDisabled:16,_displayTemplateInfos:16,_hasNameLengthError:16,_solutionItemsTitlesUpdating:16,_translations:16}}static{this.styles=E}willUpdate(e){e.has("templateInfos")&&this._updateTemplates()}load(){this._updateTemplates()}render(){let e=this._translations.configureTitlesDialogHeader.replace("{{solutionName}}",this.card.title);return a`<calcite-dialog .heading=${e} modal @calciteDialogBeforeClose=${()=>{this.solutionConfigureTitlesBeforeClose.emit()}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`}_getPrefixSuffixControls(){let e=d(this._prefixValue),s=this._hasNameLengthError&&this._prefixValue.length>0,i=!e,t=!s,y=i?"display-none":"",b=t?"display-none":"",v=i&&t?"valid":"invalid",C=d(this._suffixValue),S=this._hasNameLengthError&&this._suffixValue.length>0,n=!C,o=!S,w=n?"display-none":"",L=o?"display-none":"",N=n&&o?"valid":"invalid";return this._saveDisabled=!i||!t||!n||!o,a`<div class="display-flex flex-direction-column padding-bottom-1"><calcite-label>${this._translations.addPrefixOrSuffixToItems}</calcite-label><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1">${this._translations.prefixToAddToItems}<calcite-input @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${v} ${u(this._prefixRef)}></calcite-input><calcite-input-message class=${l(y)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${l(b)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full">${this._translations.suffixToAddToItems}<calcite-input @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${N} ${u(this._suffixRef)}></calcite-input><calcite-input-message class=${l(w)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${l(L)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`}_getAccordion(){return a`<div class="display-flex flex-direction-column"><calcite-label class="padding-bottom-1">${this._translations.previewTheChanges}</calcite-label><solution-item-accordion .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion></div>`}_getDialogButtons(){return a`<div slot=footer-end><calcite-button appearance=outline class="padding-end-1-2" kind=brand @click=${this._closeDialog}>${this._translations.cancelTheDialog}</calcite-button><calcite-button .disabled=${this._saveDisabled} kind=brand .loading=${this._solutionItemsTitlesUpdating} @click=${this._commitNameChanges}>${this._translations.keepChangesAndCloseTheDialog}</calcite-button></div>`}_prefixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._prefixValue=this._prefixRef.value?.value||"",this._updateTemplates()},500)}_suffixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._suffixValue=this._suffixRef.value?.value||"",this._updateTemplates()},500)}_updateTemplates(){let e=/[^\s\\]/.test(this._prefixValue),s=/[^\s\\]/.test(this._suffixValue),i=JSON.parse(JSON.stringify(this.templateInfos));this._hasNameLengthError=!1,this._displayTemplateInfos=i.map(t=>(t.title=e&&s?`${`${this._prefixValue} `}${t.title}${` ${this._suffixValue}`}`:e?`${`${this._prefixValue} `}${t.title}`:s?`${t.title}${` ${this._suffixValue}`}`:t.title,this._hasNameLengthError||(this._hasNameLengthError=t.title.length>g),t))}_closeDialog(){this.open=!1}async _commitNameChanges(){if(JSON.stringify(this.templateInfos)!==JSON.stringify(this._displayTemplateInfos)){this._solutionItemsTitlesUpdating=!0;let e=this._displayTemplateInfos.reduce((s,i)=>{let t={id:i.id,title:i.title};return s.push(i.type==="Group"?$(t,this._userSessionContextConsumer.value):x(t,this._userSessionContextConsumer.value)),s},[]);await Promise.all(e),this._solutionItemsTitlesUpdating=!1,this.solutionItemsTitlesChanged.emit()}this._closeDialog()}};m("solution-configure-titles",h);return h},b)
|