@esri/solutions-components 1.1.0-next.20250808 → 1.1.0-next.20250812
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/{OIA7VIOQ.js → 2BXUT6DX.js} +1 -1
- package/dist/cdn/{QVNEJNZD.js → 2DLPB4EO.js} +2 -2
- package/dist/cdn/{DJB74632.js → 2DT63QLW.js} +2 -2
- package/dist/cdn/{EU67ANMF.js → 2GOI3U6A.js} +2 -2
- package/dist/cdn/{BLU2VIKU.js → 2GVD2PNS.js} +2 -2
- package/dist/cdn/{AQR5P57P.js → 2IO3QS6R.js} +2 -2
- package/dist/cdn/{R4TRXB34.js → 2KL46Q2D.js} +2 -2
- package/dist/cdn/{WQFPFLZV.js → 2SBZXCJH.js} +2 -2
- package/dist/cdn/{QFNACVKW.js → 2XJYA7PT.js} +2 -2
- package/dist/cdn/{IH5UPO4W.js → 2YT2RFVI.js} +2 -2
- package/dist/cdn/{LFVZUXMO.js → 32SEVXRM.js} +1 -1
- package/dist/cdn/{WGDVAD44.js → 32VJQFM7.js} +1 -1
- package/dist/cdn/{45QWR7XP.js → 34UNGHTX.js} +2 -2
- package/dist/cdn/{O2KCUN77.js → 36V7KPBK.js} +2 -2
- package/dist/cdn/{UY5ERYZ7.js → 37RUKMXJ.js} +2 -2
- package/dist/cdn/3BCTRIX2.js +4 -0
- package/dist/cdn/{AFZDYZ7T.js → 3EHO5HEG.js} +2 -2
- package/dist/cdn/3FWBTG2Q.js +4 -0
- package/dist/cdn/{DBV7PUGF.js → 3GPBADMZ.js} +2 -2
- package/dist/cdn/{ZYH6DEJC.js → 3L47ZYJD.js} +2 -2
- package/dist/cdn/{BMYV5AEO.js → 3MFMNW62.js} +2 -2
- package/dist/cdn/3MHOTTLM.js +25 -0
- package/dist/cdn/{MS3IFJOL.js → 3NLPELR7.js} +2 -2
- package/dist/cdn/{K55E3GAS.js → 3O7U5WLR.js} +2 -2
- package/dist/cdn/{RHPNDMP2.js → 3SQSGBUH.js} +2 -2
- package/dist/cdn/{NOIUHSNJ.js → 3VSZ6HWZ.js} +2 -2
- package/dist/cdn/{5C7IZMYM.js → 3Y7SBEPM.js} +2 -2
- package/dist/cdn/436PERQP.js +18 -0
- package/dist/cdn/{MKSPCOFR.js → 4IJYUSHX.js} +2 -2
- package/dist/cdn/{W75WYPAF.js → 4SGAX2MI.js} +2 -2
- package/dist/cdn/{S7G6BX5M.js → 4X7GWY5N.js} +2 -2
- package/dist/cdn/{GNDIMMV2.js → 4XQIRZLX.js} +2 -2
- package/dist/cdn/{A76BC4EF.js → 53LZK2NX.js} +1 -1
- package/dist/cdn/{4NV4YSI4.js → 55MFPGX2.js} +2 -2
- package/dist/cdn/{GRBLHBF2.js → 57B7RYSF.js} +2 -2
- package/dist/cdn/{FCYIJDDZ.js → 5HLMGC77.js} +2 -2
- package/dist/cdn/5HZLCNU2.js +18 -0
- package/dist/cdn/{4PADNNBY.js → 5JIEUQRM.js} +2 -2
- package/dist/cdn/{FSGAUODS.js → 5L3UCLOY.js} +2 -2
- package/dist/cdn/{BFC5QXIT.js → 5ORK2Y44.js} +2 -2
- package/dist/cdn/{5BILF3PR.js → 5PNJQEHL.js} +2 -2
- package/dist/cdn/{STZUGXN3.js → 5PXYAS3B.js} +2 -2
- package/dist/cdn/{JJFVVQME.js → 5QRNJRKJ.js} +2 -2
- package/dist/cdn/{ACRTXGVC.js → 5ZUHX3VT.js} +3 -3
- package/dist/cdn/{NIYVCETW.js → 66Z5F3Z2.js} +2 -2
- package/dist/cdn/{7B2HCARZ.js → 6IIIEY74.js} +2 -2
- package/dist/cdn/{FGAJFBW2.js → 6IJOFEAH.js} +1 -1
- package/dist/cdn/{22WTPZXT.js → 6K4LQMAX.js} +1 -1
- package/dist/cdn/{6B737EGY.js → 7DLIAJCU.js} +2 -2
- package/dist/cdn/{GQUQ25DY.js → 7EDFUMWK.js} +2 -2
- package/dist/cdn/{WQRVOAAE.js → 7HTPHT6R.js} +2 -2
- package/dist/cdn/{OYMWRNRK.js → 7KQ2BBGH.js} +2 -2
- package/dist/cdn/{PU52KJGS.js → 7MBIJWN3.js} +2 -2
- package/dist/cdn/{34O3JSKM.js → 7NNOBYSQ.js} +2 -2
- package/dist/cdn/{5QHABXLW.js → 7R37WICF.js} +1 -1
- package/dist/cdn/{462ZO5LH.js → 7S2YYGKB.js} +2 -2
- package/dist/cdn/{MX2RCF7L.js → 7VPDZBJR.js} +2 -2
- package/dist/cdn/{VBZITN63.js → 7X7D4YVD.js} +2 -2
- package/dist/cdn/7Y37SBXY.js +20 -0
- package/dist/cdn/{MRS3UBTT.js → 7ZJMMRH4.js} +1 -1
- package/dist/cdn/{KJWROV22.js → A6JEFTX2.js} +2 -2
- package/dist/cdn/{OMBAX252.js → ABYLFJWS.js} +2 -2
- package/dist/cdn/{YL7442RB.js → AGAYVTUV.js} +2 -2
- package/dist/cdn/{UR63X3E7.js → AP6ERTGB.js} +2 -2
- package/dist/cdn/APXHE3B3.js +4 -0
- package/dist/cdn/{KIR3VHHX.js → AQIJR4XD.js} +2 -2
- package/dist/cdn/{ULX3XZXE.js → AQMF7NA2.js} +2 -2
- package/dist/cdn/{MWNKF7WJ.js → ATWKDQMR.js} +2 -2
- package/dist/cdn/{TVST3VSU.js → AXUX37GT.js} +1 -1
- package/dist/cdn/{AAFW2UKV.js → AXZ3Q7NZ.js} +2 -2
- package/dist/cdn/AZAD32ZX.js +4 -0
- package/dist/cdn/{UVLVIG72.js → AZH3EEU4.js} +2 -2
- package/dist/cdn/{3OBMAMX2.js → BADS5XZD.js} +2 -2
- package/dist/cdn/{PEFG2XTS.js → BDUN32OS.js} +2 -2
- package/dist/cdn/{XZQQP3SH.js → BGOOKLPG.js} +2 -2
- package/dist/cdn/{ZNAL4DDQ.js → BKODTFFO.js} +2 -2
- package/dist/cdn/{QC5KFLH3.js → BMVUDTTY.js} +2 -2
- package/dist/cdn/{KBSLLI3Y.js → BPDYH25K.js} +2 -2
- package/dist/cdn/{IVO43U7Q.js → BTKBHKQO.js} +2 -2
- package/dist/cdn/{IVUHOF7R.js → BVCJBJQL.js} +2 -2
- package/dist/cdn/{OZ3UWVCA.js → BVXKRSGL.js} +1 -1
- package/dist/cdn/{AS4W6XAM.js → BYKFCMXP.js} +2 -2
- package/dist/cdn/{RM42QQL2.js → C4OQIYFQ.js} +2 -2
- package/dist/cdn/C7LOQ7OI.js +18 -0
- package/dist/cdn/{7X3JKJVF.js → CGQI4TYR.js} +2 -2
- package/dist/cdn/{LDIEDUAL.js → CQY3643E.js} +2 -2
- package/dist/cdn/CTWEU7QD.js +4 -0
- package/dist/cdn/{ZAUF26RB.js → D6UC7QOS.js} +2 -2
- package/dist/cdn/{VNBMQTBB.js → DBI5MALT.js} +2 -2
- package/dist/cdn/{INDLPX7C.js → DCUNQVC7.js} +2 -2
- package/dist/cdn/{O4G2XTNM.js → DEYWCDYE.js} +1 -1
- package/dist/cdn/{4L4JZKJ6.js → DF4U7UQT.js} +2 -2
- package/dist/cdn/{D34LMVM5.js → DIR5ZFRB.js} +2 -2
- package/dist/cdn/{SXBM6EZP.js → DKGXGDIG.js} +2 -2
- package/dist/cdn/{SHMGFOGS.js → DPASP522.js} +2 -2
- package/dist/cdn/{VYZHM626.js → DU3EVUJQ.js} +2 -2
- package/dist/cdn/{LFS6Y6L2.js → DYYDQJ3C.js} +2 -2
- package/dist/cdn/{AE5NEHRJ.js → EBAIG4UF.js} +1 -1
- package/dist/cdn/{P3JAAQ5L.js → EBYK2JMV.js} +2 -2
- package/dist/cdn/{5YGCWUNA.js → ECDV3RJN.js} +2 -2
- package/dist/cdn/{V6HZBTAM.js → EL3O7SU5.js} +2 -2
- package/dist/cdn/{7AVB457O.js → EMCSETR3.js} +2 -2
- package/dist/cdn/{TEHO6PBT.js → EQF7354P.js} +2 -2
- package/dist/cdn/{TG27VP3D.js → EQWZKX6V.js} +2 -2
- package/dist/cdn/{6FV573R5.js → ERINYIS2.js} +2 -2
- package/dist/cdn/{JNIPTN7Z.js → EUSLG7J4.js} +1 -1
- package/dist/cdn/{PRZC7XFU.js → EWFTPTDF.js} +2 -2
- package/dist/cdn/F2PLJZ35.js +4 -0
- package/dist/cdn/{5NEGXFEY.js → F5TW6HEN.js} +1 -1
- package/dist/cdn/{3T5X6TQS.js → FBYQBRBZ.js} +2 -2
- package/dist/cdn/{6QQLYL4K.js → FFFJSA6E.js} +2 -2
- package/dist/cdn/{KRJ2L3K4.js → FGBLMTAS.js} +2 -2
- package/dist/cdn/{VOZWKTOI.js → FJMBBCIQ.js} +2 -2
- package/dist/cdn/{GKCKRQWP.js → FM4G2RSJ.js} +2 -2
- package/dist/cdn/{6A5FFXGY.js → FMFPTEIS.js} +2 -2
- package/dist/cdn/{47G5VVBO.js → FY6AWVVF.js} +2 -2
- package/dist/cdn/{2GOU5HIK.js → FYH6THZZ.js} +2 -2
- package/dist/cdn/{SMORLQMB.js → G3ONBCRX.js} +2 -2
- package/dist/cdn/{FTX66P5U.js → GCJO7NBJ.js} +2 -2
- package/dist/cdn/{HXOQFNGB.js → GKMDZTC3.js} +1 -1
- package/dist/cdn/{FCKAD5C4.js → GLD46N72.js} +2 -2
- package/dist/cdn/{45RT4J6W.js → GNLEYSDW.js} +2 -2
- package/dist/cdn/{G4ENZOQI.js → GREGLFM2.js} +2 -2
- package/dist/cdn/{NS7H6YMZ.js → GUCZWBGM.js} +3 -3
- package/dist/cdn/{TZ7ZADM3.js → GV7IXPU6.js} +1 -1
- package/dist/cdn/{ACEZ22CN.js → GXHWOEWG.js} +2 -2
- package/dist/cdn/{F2PZM5QK.js → HBONMRUG.js} +2 -2
- package/dist/cdn/{LW7C6AEQ.js → HGCM2FE2.js} +1 -1
- package/dist/cdn/{FLEZREEZ.js → HGTXMUFL.js} +2 -2
- package/dist/cdn/{EZFM4ZIN.js → HLH3CEN7.js} +1 -1
- package/dist/cdn/{VCTV42TG.js → HMNRBKGU.js} +2 -2
- package/dist/cdn/{KJVXCJ5J.js → HP6EZ4T6.js} +2 -2
- package/dist/cdn/{UK46FFWF.js → HRPINX2P.js} +2 -2
- package/dist/cdn/{7OBG75DM.js → HRS2ULJX.js} +2 -2
- package/dist/cdn/{TXZPVJC3.js → HSNJFDZI.js} +2 -2
- package/dist/cdn/{5JJMI5T4.js → HV3ZJ75V.js} +2 -2
- package/dist/cdn/{MZB7PQ2R.js → HV42PHN2.js} +2 -2
- package/dist/cdn/{PR6643MF.js → HW3PYGRO.js} +2 -2
- package/dist/cdn/{CE32N5MH.js → I3OWRWKV.js} +2 -2
- package/dist/cdn/{GAH4ZI7P.js → I65TCXEV.js} +2 -2
- package/dist/cdn/{OQQ2FKHA.js → IJWZ2QGC.js} +2 -2
- package/dist/cdn/{WMBQMXJM.js → IKJ2MUXC.js} +2 -2
- package/dist/cdn/{RSSBO26R.js → IOZP453D.js} +2 -2
- package/dist/cdn/{TBDSM4RN.js → IQEIWTTQ.js} +1 -1
- package/dist/cdn/{VRZ5U6KO.js → IQJONGSP.js} +2 -2
- package/dist/cdn/IYGXOL5A.js +18 -0
- package/dist/cdn/{RVMICDG4.js → J3RLAMMG.js} +2 -2
- package/dist/cdn/{XORPA3LU.js → JDQXOW4N.js} +2 -2
- package/dist/cdn/{JRLGUPV3.js → JJM7DPRD.js} +2 -2
- package/dist/cdn/{BFH2Q5U3.js → JLQSRAJA.js} +2 -2
- package/dist/cdn/JOXQDPXR.js +18 -0
- package/dist/cdn/{JVGQ4NFQ.js → JQLK37UG.js} +2 -2
- package/dist/cdn/{7UORHXRU.js → JWCO6WYR.js} +2 -2
- package/dist/cdn/{3X5F76DP.js → JX7OUCFF.js} +2 -2
- package/dist/cdn/{JOBBMOLV.js → K4UNKJ5H.js} +2 -2
- package/dist/cdn/{PM2FJP2T.js → K5AQ47LY.js} +2 -2
- package/dist/cdn/{IA23IYVY.js → K6TIKSGU.js} +2 -2
- package/dist/cdn/{U2XK5RP7.js → KAR4LTJL.js} +1 -1
- package/dist/cdn/{CUQH3TNF.js → KN2HYDVW.js} +2 -2
- package/dist/cdn/KYJV4K4T.js +18 -0
- package/dist/cdn/{MTCRAQAJ.js → L3I2MLN4.js} +2 -2
- package/dist/cdn/L3PM24PZ.js +18 -0
- package/dist/cdn/{LM4M3UUJ.js → L3VAHI62.js} +2 -2
- package/dist/cdn/{DMGXDHPW.js → L7USSUAB.js} +2 -2
- package/dist/cdn/{5CRH3T2P.js → LA7NDNWK.js} +3 -3
- package/dist/cdn/{7BFI7TBI.js → LFJA4ZL7.js} +2 -2
- package/dist/cdn/{VHYFDDVW.js → LGV5OMRP.js} +2 -2
- package/dist/cdn/{4WL53LUA.js → LLOZFHAC.js} +2 -2
- package/dist/cdn/{SLMABSAX.js → LQ43QFI2.js} +2 -2
- package/dist/cdn/{U5TJXXJ2.js → LWJFG2TB.js} +1 -1
- package/dist/cdn/{G2NDHZIY.js → M344WSRV.js} +1 -1
- package/dist/cdn/{B347S3OX.js → MHQCPSLE.js} +2 -2
- package/dist/cdn/{C6SWDNUF.js → MKDZNMY7.js} +1 -1
- package/dist/cdn/{TLBL4ZQ2.js → MNJN2GFB.js} +2 -2
- package/dist/cdn/{2JEEE6YX.js → MT54TTK3.js} +2 -2
- package/dist/cdn/{TZWZBVBO.js → MWH2EIKG.js} +2 -2
- package/dist/cdn/{P3GWBGGX.js → MXAI3H2Y.js} +2 -2
- package/dist/cdn/{5LDQ2GL2.js → N2NJILWN.js} +2 -2
- package/dist/cdn/N5NEHLCX.js +4 -0
- package/dist/cdn/{5D2QODTY.js → NACVBQNC.js} +1 -1
- package/dist/cdn/{GHE2ECXL.js → NAWILONU.js} +2 -2
- package/dist/cdn/{7WRQT2RE.js → NB4YH3JV.js} +2 -2
- package/dist/cdn/{DHB2ACZ2.js → NBPBOJ23.js} +2 -2
- package/dist/cdn/{QRQBI32B.js → NFSHI4K2.js} +2 -2
- package/dist/cdn/{3YCH5HF6.js → NMZ3OE4M.js} +2 -2
- package/dist/cdn/{5H3COH45.js → NPE5VGIJ.js} +1 -1
- package/dist/cdn/{C6IW5XPH.js → NQ43PDWK.js} +1 -1
- package/dist/cdn/{UVONSEDL.js → NS4JA7V7.js} +2 -2
- package/dist/cdn/{JZPLLKMA.js → NTZWVSZY.js} +2 -2
- package/dist/cdn/{5DU7OMGK.js → NY6QTBWO.js} +2 -2
- package/dist/cdn/{7WAVZXMQ.js → NZYOPIF7.js} +2 -2
- package/dist/cdn/{PLG6ZCRP.js → O4DAQ76R.js} +2 -2
- package/dist/cdn/{VPDNYNYU.js → O5MZPOPH.js} +2 -2
- package/dist/cdn/{T23GUATM.js → OBWKJWXC.js} +2 -2
- package/dist/cdn/{3JXZX54X.js → OCAI32J3.js} +2 -2
- package/dist/cdn/{SW2PKNVK.js → ODRWQOSM.js} +2 -2
- package/dist/cdn/{T3JO7MJX.js → OEESZ5OV.js} +2 -2
- package/dist/cdn/{5TW3VD4R.js → OFKLFPJB.js} +2 -2
- package/dist/cdn/{VX6N3BA2.js → OM3XGHUN.js} +2 -2
- package/dist/cdn/OQPHC3L2.js +4 -0
- package/dist/cdn/{NPJHYSKO.js → OUK52IIO.js} +2 -2
- package/dist/cdn/{JXSWQOVW.js → P2PRJL62.js} +17 -17
- package/dist/cdn/{GUCIDMNV.js → PAUAKCLM.js} +2 -2
- package/dist/cdn/{DEWBDUVG.js → PIVTTIXY.js} +2 -2
- package/dist/cdn/{33HMZMZA.js → PJZTESVI.js} +2 -2
- package/dist/cdn/{5JJT4ZZO.js → PNUTIPX7.js} +2 -2
- package/dist/cdn/{ABKISPH2.js → PNVFVVE6.js} +2 -2
- package/dist/cdn/{4ZJMKDMO.js → POM4C6DI.js} +2 -2
- package/dist/cdn/{5HSCQ3YD.js → PTEALRQR.js} +2 -2
- package/dist/cdn/{PGY3MTHQ.js → PTSO747J.js} +2 -2
- package/dist/cdn/{XOYSU3NN.js → PUM7WU5Q.js} +2 -2
- package/dist/cdn/{XZXQA66P.js → PUNA6UWM.js} +2 -2
- package/dist/cdn/{ESRTCMBM.js → PWGBFNR2.js} +2 -2
- package/dist/cdn/{ZC5VEUEH.js → PWJSDFB5.js} +1 -1
- package/dist/cdn/{NJMY3FC3.js → Q7PTMTBS.js} +2 -2
- package/dist/cdn/{NOFJIVRF.js → Q7YYCBYQ.js} +2 -2
- package/dist/cdn/{TWRDYP6L.js → QADRNTEK.js} +2 -2
- package/dist/cdn/{PSMKR2NS.js → QHBTS47Z.js} +2 -2
- package/dist/cdn/QIXFH7VY.js +6 -0
- package/dist/cdn/{VOWE4FUE.js → RAZFH54Z.js} +2 -2
- package/dist/cdn/{PWE3WFYX.js → ROR6YUGT.js} +2 -2
- package/dist/cdn/{YSPC2R7G.js → RSS4NWVZ.js} +2 -2
- package/dist/cdn/{JDMHXFRB.js → RVT3UAUI.js} +2 -2
- package/dist/cdn/{MIBEMEHR.js → RZXR3T2O.js} +2 -2
- package/dist/cdn/{NGPTR56X.js → S6RJHHML.js} +2 -2
- package/dist/cdn/{QDOQAXQ2.js → SKHXGZWX.js} +1 -1
- package/dist/cdn/{AO744LTN.js → SLEI7LYC.js} +2 -2
- package/dist/cdn/{BRK66LT6.js → SOGF7JLH.js} +1 -1
- package/dist/cdn/{HTU7XXVJ.js → SPF74Q42.js} +1 -1
- package/dist/cdn/{T5Z3DCYK.js → SPFFRGBK.js} +1 -1
- package/dist/cdn/{ODQSJCRL.js → STV67PIO.js} +2 -2
- package/dist/cdn/{STIAMNME.js → SUIDIWD6.js} +2 -2
- package/dist/cdn/{GZU7CS6P.js → SV2EP4JK.js} +2 -2
- package/dist/cdn/{RPCHNJ5I.js → SVKS7KL3.js} +2 -2
- package/dist/cdn/TDSZPVPL.js +18 -0
- package/dist/cdn/{IDZM6JQ2.js → TLR6GDUP.js} +2 -2
- package/dist/cdn/{7PHORZWE.js → TMFTNPLJ.js} +2 -2
- package/dist/cdn/{PER3FANK.js → TP3Q4JTG.js} +2 -2
- package/dist/cdn/{ODROTWXF.js → TRZDIDEA.js} +2 -2
- package/dist/cdn/{ZHBCW2M7.js → TS5QLE3W.js} +1 -1
- package/dist/cdn/{T35I7QYT.js → TSFAXIQQ.js} +2 -2
- package/dist/cdn/{QCMQKKPY.js → U4BFCSBQ.js} +2 -2
- package/dist/cdn/{BINBDWML.js → UGC4M3L5.js} +2 -2
- package/dist/cdn/{FOHBFDJD.js → UGHZODS3.js} +2 -2
- package/dist/cdn/{WEUSJWAE.js → UMYOEGMF.js} +2 -2
- package/dist/cdn/{HABV25N7.js → USBUOYSE.js} +1 -1
- package/dist/cdn/{P5Z3VY3T.js → USJC532U.js} +2 -2
- package/dist/cdn/{LQBCAFSW.js → UT4B76ZF.js} +2 -2
- package/dist/cdn/{EXD4IGJY.js → UWRGESW6.js} +2 -2
- package/dist/cdn/{RZ5TXPRK.js → V4ICHA6X.js} +2 -2
- package/dist/cdn/{RSTPCTRP.js → V4P44XCJ.js} +2 -2
- package/dist/cdn/{G53GBDBC.js → VEECODKP.js} +2 -2
- package/dist/cdn/{I325H2EH.js → VGRCZ36H.js} +1 -1
- package/dist/cdn/{WZEM4BXK.js → VN3B4LBI.js} +2 -2
- package/dist/cdn/{2W5KL7LK.js → VVERV2QI.js} +2 -2
- package/dist/cdn/{OEYMQ44L.js → VYCPFHKG.js} +2 -2
- package/dist/cdn/{WKBFYG4Q.js → W23M33N7.js} +2 -2
- package/dist/cdn/{DUZSPRRF.js → WD5PKUU3.js} +1 -1
- package/dist/cdn/{CZVNRFM4.js → WDMSDRPI.js} +4 -4
- package/dist/cdn/{KOSFP4TW.js → WJDR4FIK.js} +2 -2
- package/dist/cdn/{2CLV46ND.js → WKTJ6QCW.js} +2 -2
- package/dist/cdn/{OAFXVMDT.js → WNHJ7PIL.js} +1 -1
- package/dist/cdn/{HHU2QIT7.js → WUYHEMVC.js} +2 -2
- package/dist/cdn/{3CMD5PVX.js → WX2FTC64.js} +2 -2
- package/dist/cdn/{NPEYNUYM.js → WYZ7SQQN.js} +2 -2
- package/dist/cdn/{SVQOIQXG.js → WZDAHV2W.js} +3 -3
- package/dist/cdn/{PGAU7XC3.js → WZVCVIBP.js} +2 -2
- package/dist/cdn/XHQSKNX6.js +18 -0
- package/dist/cdn/{UNRNLKUZ.js → XIHWGWOZ.js} +2 -2
- package/dist/cdn/{LU7CTWWV.js → XK4QSY24.js} +2 -2
- package/dist/cdn/{GU4QPSOO.js → XQP3EVFG.js} +2 -2
- package/dist/cdn/{SLOADIPP.js → XRX2HXXR.js} +2 -2
- package/dist/cdn/{JGXKYEBY.js → XU6BRRA7.js} +2 -2
- package/dist/cdn/{WQAXXKFO.js → XVPETWSD.js} +2 -2
- package/dist/cdn/Y32USNTH.js +4 -0
- package/dist/cdn/{AWKJXH26.js → Y4PJZPVR.js} +2 -2
- package/dist/cdn/{53VD6TGY.js → Y55NNV6M.js} +2 -2
- package/dist/cdn/{2L5RDVZW.js → Y5ROBTLH.js} +2 -2
- package/dist/cdn/{AJX4UOXA.js → Y5ZZUWEB.js} +3 -3
- package/dist/cdn/{3NX25KHK.js → YETOFDZ6.js} +2 -2
- package/dist/cdn/{NAMNXPQG.js → YFTHYPT3.js} +2 -2
- package/dist/cdn/{EAF3VHRN.js → YGKFRUZE.js} +2 -2
- package/dist/cdn/{WXDCPXQ7.js → YIJFEDFW.js} +2 -2
- package/dist/cdn/{TSHGNGUT.js → YUL3FLGS.js} +2 -2
- package/dist/cdn/{4IMOHO3P.js → YYNOCEWC.js} +2 -2
- package/dist/cdn/{TRGIVBAD.js → YZJXEOMV.js} +2 -2
- package/dist/cdn/{MNGHV4D2.js → Z7WNEKTH.js} +2 -2
- package/dist/cdn/{DE4ZQLOG.js → ZK4MHDHC.js} +2 -2
- package/dist/cdn/{U3VBMULC.js → ZOPYH7VG.js} +2 -2
- package/dist/cdn/{XI4BRTEG.js → ZQ2UYMNA.js} +2 -2
- package/dist/cdn/{2EQWOG4U.js → ZRAWON53.js} +2 -2
- package/dist/cdn/{SOSJBYR7.js → ZTW7APB3.js} +2 -2
- package/dist/cdn/{XMJ3GY6B.js → ZZWLXC4D.js} +2 -2
- package/dist/cdn/{IHRUCQ2W.js → ZZYWNVZZ.js} +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-delete-dialog/t9n/messages.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/assets/solution-item-accordion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1129 -1128
- 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 -2
- 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 +10 -10
- package/dist/components/solution-configure-dialog/customElement.js +13 -15
- package/dist/components/solution-configure-dialog/index.d.ts +1 -0
- package/dist/components/solution-configure-dialog/index.js +1 -0
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +6 -6
- package/dist/components/solution-deploy-dialog/customElement.d.ts +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +11 -9
- package/dist/components/solution-deploy-dialog/index.d.ts +0 -1
- package/dist/components/solution-deploy-dialog/index.js +0 -1
- package/dist/components/solution-deployed-card/customElement.js +17 -20
- package/dist/components/solution-deployed-card/index.d.ts +0 -3
- package/dist/components/solution-deployed-card/index.js +0 -3
- package/dist/components/solution-deploying-dialog/customElement.d.ts +4 -0
- package/dist/components/solution-deploying-dialog/customElement.js +19 -17
- package/dist/components/solution-details-card/customElement.js +4 -4
- package/dist/components/solution-details-panel/customElement.js +6 -6
- package/dist/components/solution-item/customElement.js +17 -17
- package/dist/components/solution-item-accordion/customElement.js +2 -2
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +3 -3
- 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 +14 -14
- package/dist/components/solutions-deployed-shell/customElement.js +12 -12
- 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 +42 -3
- package/dist/docs/docs.json +51 -6
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +9 -4
- 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 +2 -2
- package/dist/cdn/3FPOGXIB.js +0 -4
- package/dist/cdn/54ZFB7LI.js +0 -18
- package/dist/cdn/5NI3FFHS.js +0 -4
- package/dist/cdn/7LZPJOU7.js +0 -25
- package/dist/cdn/CNFCP73P.js +0 -4
- package/dist/cdn/DD7EJ4ZW.js +0 -18
- package/dist/cdn/GMZVBYEW.js +0 -4
- package/dist/cdn/GP2IIA76.js +0 -18
- package/dist/cdn/GXOZZUNW.js +0 -18
- package/dist/cdn/K3C5AHY2.js +0 -4
- package/dist/cdn/KPFYEGFG.js +0 -18
- package/dist/cdn/LYXAM2X5.js +0 -18
- package/dist/cdn/NY4636UE.js +0 -4
- package/dist/cdn/OKIFYM75.js +0 -18
- package/dist/cdn/OW5AFJWW.js +0 -18
- package/dist/cdn/QTHWC2ZJ.js +0 -4
- package/dist/cdn/SHBMYV5S.js +0 -6
- package/dist/cdn/U57WJLGP.js +0 -4
- package/dist/cdn/V5AFQGVT.js +0 -4
- package/dist/cdn/VZOMSRAD.js +0 -20
- package/dist/cdn/X6TYRAA2.js +0 -18
package/dist/cdn/GXOZZUNW.js
DELETED
@@ -1,18 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import a from"./INDLPX7C.js";import{b as c,c as v,e as w}from"./OEYMQ44L.js";import{mb as r}from"./462ZO5LH.js";import"./BRK66LT6.js";import"./BLU2VIKU.js";import"./7X3JKJVF.js";import"./TG27VP3D.js";import"./BFC5QXIT.js";import"./QDOQAXQ2.js";import"./AE5NEHRJ.js";import"./K55E3GAS.js";import"./LFVZUXMO.js";import"./TBDSM4RN.js";import"./OAFXVMDT.js";import"./LFS6Y6L2.js";import"./UNRNLKUZ.js";import{k as f}from"./WQRVOAAE.js";import"./TVST3VSU.js";import"./22WTPZXT.js";import"./VCTV42TG.js";import"./DUZSPRRF.js";import"./WGDVAD44.js";import{a as _}from"./KBSLLI3Y.js";import"./4L4JZKJ6.js";import"./TRGIVBAD.js";import{b as g}from"./MZB7PQ2R.js";import{h as u,i,n as h,w as l,x as n,y as m}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";export default $arcgis.t(([{c:$}])=>{var S=u`/** @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}.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}`,C=2048,b=165,d=class extends m{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=_({name:"solution-configure-dialog",blocking:!0}),this._authContextConsumer=c({context:w,subscribe:!0}),this._editSummaryRef=l(),this._editSummaryPopoverRef=l(),this._editNameRef=l(),this._editNamePopoverRef=l(),this._solutionSnippetUpdated=!1,this._solutionTitleUpdated=!1,this._typeKeywords=[],this._updateSolutionNameInputRef=l(),this._updateSolutionSummaryInputRef=l(),this._userSessionContextConsumer=c({context:v,subscribe:!0}),this.solutionConfigureDialogClose=h()}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=S}updated(t){if(t.has("open")){let e=t.get("open");this.open&&!e&&this.cardRef.getTemplates().then(a=>{this.templateInfos=a})}}render(){return i`<div>${this.templateInfos.length>0&&i`<calcite-dialog class=${`${this._displayClass} calcite-internal-dialog-content-padding-override`} .heading=${this.card?.title} modal @calciteDialogClose=${()=>{this.open=!1,this.solutionConfigureDialogClose.emit(this._solutionSnippetUpdated||this._solutionTitleUpdated),this._cleanupPanel(),this.card=void 0,this.templateInfos=[]}} .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?i`<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 t=this._failedType==="snippet"?this._translations.failedToUpdateSnippet:this._failedType==="title"?this._translations.failedToUpdateTitle:this._failedType==="titles"?this._translations.failedToUpdateTitles:void 0;return this._showFailedAlert&&t?i`<calcite-alert auto-close icon=exclamation-mark-triangle kind=danger .label=${t} @calciteAlertClose=${()=>{this._showFailedAlert=!1}} .open=${this._showFailedAlert}><div slot=message>${t}</div></calcite-alert>`:""}_getSuccessAlert(){return this.showSuccessAlert?i`<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(t){this._displayClass="display-none";let e=await this.cardRef.renderDiagramDialog(t);e&&this.listenOn(e,"calciteDialogBeforeClose",()=>{this._displayClass=""})}_getStartHereCard(){return this._getBasicCard(this._translations.startHere,this._translations.startHereSubText,"file-text",this._translations.openTheDiagram,"solid")}_getSolutionVersionCard(){return this._getBasicCard(this._translations.solutionVersion,this._translations.youHaveTheLatestVersion,"check-shield",void 0,void 0,void 0,"Version 3.2")}_getBasicCard(t,e,a,s,o,y,p){return i`<calcite-card class="minor-card font-size-override"><span class="font-weight-medium" slot=heading>${t}</span><div class="display-flex center"><div class="display-flex flex-direction-column center"><calcite-icon class="icon-color" .icon=${a} scale=l></calcite-icon>${p?i`<span class="font-weight-medium">${p}</span>`:""}<p>${e}</p></div></div>${s?i`<div class="btn-center" slot=footer-start><calcite-button .appearance=${o} kind=brand @click=${y}>${s}</calcite-button></div>`:""}</calcite-card>`}_getSolutionCard(){let t="configure-edit-solution-name",e="configure-edit-solution-summary",a="configure-show-full-summary",s=this.card?.snippet,o="";return this.card?.snippet&&this.card?.snippet.length>b&&(s=this.card?.snippet.substring(0,b)+"... ",o=i`<calcite-link id=${a}>${this._translations.showMoreSummary}</calcite-link>`),i`<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><calcite-button appearance=transparent icon-start=pencil id=${t} kind=neutral ${n(this._editNameRef)}></calcite-button></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">${s}${o}</span><calcite-button appearance=transparent icon-start=pencil id=${e} kind=neutral ${n(this._editSummaryRef)}></calcite-button></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=arrow-up-down kind=brand @click=${this._showChangeOwner}>${this._translations.changeOwner}</calcite-button><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._getEditNamePopover(t)}${this._getEditSummaryPopover(e)}${this._getSummaryPopover(a)}</calcite-card>`}_getSolutionContents(){return i`<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._typeKeywords}></solution-item-accordion></div>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<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(t){t.stopPropagation();let e=this._authContextConsumer.value?.PortalSubset?.orgUrl;e&&window.open(`${e}/home/user.html`,"_blank")}_showChangeOwner(){}_getSummaryPopover(t){return i`<calcite-popover closable heading label overlay-positioning=fixed .referenceElement=${t}><div class="padding-3-4 margin-0 width-400">${this.card?.snippet}</div></calcite-popover>`}_getEditSummaryPopover(t){return i`<calcite-popover .heading=${this._translations.updateSolutionSummary} .label=${this._translations.updateSolutionSummary} overlay-positioning=fixed .referenceElement=${t} ${n(this._editSummaryPopoverRef)}><div class="padding-3-4 margin-0 width-400"><calcite-text-area limit-text .maxLength=${C} rows=6 .value=${this.card?.snippet||""} ${n(this._updateSolutionSummaryInputRef)}></calcite-text-area></div><div class="display-flex flex-direction-row padding-3-4 margin-0"><calcite-button appearance=outline @click=${()=>this._closeSummaryChangePopup(!1)} width=full>${this._translations.cancelTheDialog}</calcite-button><calcite-button .loading=${this._showItemUpdateLoading} @click=${()=>this._closeSummaryChangePopup(!0)} width=full>${this._translations.ok}</calcite-button></div></calcite-popover>`}async _closeSummaryChangePopup(t){let e=this.card.snippet!==this._updateSolutionSummaryInputRef.value.value;if(e)if(t&&e){this._showItemUpdateLoading=!0;let a={id:this.card.id,snippet:this._updateSolutionSummaryInputRef.value.value},s=await r(a,this._userSessionContextConsumer.value),o=await this._getItem(s.id);s.success&&o&&this.card.snippet!==o.snippet&&(this.card.snippet=o.snippet,this.card={...this.card},this._solutionSnippetUpdated=!0),this._updateSolutionSummaryInputRef.value.value!==o.snippet&&(this._resetSnippet(),this._failedType="snippet",this._showFailedAlert=!0)}else e&&this._resetSnippet();this._showItemUpdateLoading=!1,this._editSummaryPopoverRef.value.open=!1}_resetSnippet(){setTimeout(()=>{this._updateSolutionSummaryInputRef.value.value=this.card.snippet},100)}async _getItem(t){return await f(t,{authentication:this._userSessionContextConsumer.value})}_getEditNamePopover(t){return i`<calcite-popover .heading=${this._translations.updateSolutionName} .label=${this.card?.title||""} @calcitePopoverClose=${()=>{this._closeNameChangePopup(!1)}} overlay-positioning=fixed .referenceElement=${t} ${n(this._editNamePopoverRef)}><calcite-input class="padding-3-4 margin-0 width-400" max-length=250 @calciteInputInput=${async e=>{let a=e.target.value.trim();if(a!==this.card?.title){let s=await this._validateName(a);this._updateSolutionNameInputRef.value?.value.trim()===a&&(this._isNameConflict=!s)}else this._isNameConflict=!1}} required .value=${this.card?.title} ${n(this._updateSolutionNameInputRef)}></calcite-input>${this._isNameConflict&&this._updateSolutionNameInputRef.value&&i`<calcite-label layout=inline class="padding-3-4 margin-0 width-400"><calcite-icon class="error-icon-color" icon=exclamation-mark-triangle scale=s></calcite-icon>${this._invalidNameMessage}</calcite-label>`||""}<div class="display-flex flex-direction-row padding-3-4 margin-0"><calcite-button appearance=outline @click=${()=>{this._isNameConflict=!1,this._closeNameChangePopup(!1)}} width=full>${this._translations.cancelTheDialog}</calcite-button><calcite-button .disabled=${this._isNameConflict} width=full .loading=${this._showItemUpdateLoading} @click=${()=>void this._closeNameChangePopup(!0)}>${this._translations.ok}</calcite-button></div></calcite-popover>`}async _closeNameChangePopup(t){if(this.card.title!==this._updateSolutionNameInputRef.value.value)if(t){this._showItemUpdateLoading=!0;let e={id:this.card.id,title:this._updateSolutionNameInputRef.value.value},a=await r(e,this._userSessionContextConsumer.value),s=await this._getItem(a.id);a.success&&s&&this.card.title!==s.title&&(this.card.title=s.title,this.card={...this.card},this._solutionTitleUpdated=!0),this._updateSolutionNameInputRef.value.value!==s.title&&(this._resetTitle(),this._failedType="title",this._showFailedAlert=!0)}else this._resetTitle();this._showItemUpdateLoading=!1,this._editNamePopoverRef.value.open=!1}_resetTitle(){setTimeout(()=>{this._updateSolutionNameInputRef.value.value=this.card.title},100)}_close(){this.open=!1}_cleanupPanel(){this._editSummaryPopoverRef.value?.open&&(this._editSummaryPopoverRef.value.open=!1),this._editNamePopoverRef.value?.open&&(this._editNamePopoverRef.value.open=!1)}async _validateName(t){this._invalidNameMessage="";let e=await $(t,this._userSessionContextConsumer.value);if(!e.status){switch(e.type){case"empty":this._invalidNameMessage=this._translations.solutionNameErrorBlank;break;case"exceed length":this._invalidNameMessage=this._translations.solutionNameErrorLength;break;case"special character":this._invalidNameMessage=this._translations.solutionNameErrorSpecialCharacter;break;case"not unique":this._invalidNameMessage=this._translations.solutionNameErrorUniqueName;break}return e.status}return!0}};g("solution-configure-dialog",d);return d},a)
|
package/dist/cdn/K3C5AHY2.js
DELETED
@@ -1,4 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{a,b}from"./GZU7CS6P.js";import"./FGAJFBW2.js";import"./OIA7VIOQ.js";export{a as GroupEditorTypes,b as GroupSchema};
|
package/dist/cdn/KPFYEGFG.js
DELETED
@@ -1,18 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import e from"./QVNEJNZD.js";import{b as v}from"./G2NDHZIY.js";import{a as l,c as m,d as y,e as _}from"./OEYMQ44L.js";import"./462ZO5LH.js";import"./BRK66LT6.js";import"./BLU2VIKU.js";import"./7X3JKJVF.js";import"./TG27VP3D.js";import"./BFC5QXIT.js";import"./QDOQAXQ2.js";import"./AE5NEHRJ.js";import"./K55E3GAS.js";import"./LFVZUXMO.js";import"./TBDSM4RN.js";import"./OAFXVMDT.js";import"./LFS6Y6L2.js";import"./UNRNLKUZ.js";import"./WQRVOAAE.js";import{g as b}from"./TVST3VSU.js";import"./22WTPZXT.js";import"./VCTV42TG.js";import"./DUZSPRRF.js";import"./WGDVAD44.js";import{a as g}from"./KBSLLI3Y.js";import"./4L4JZKJ6.js";import"./TRGIVBAD.js";import{b as f}from"./MZB7PQ2R.js";import{B as a,C as u,h as c,i,n as o,w as d,x as p,y as h}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";export default $arcgis.t(([C])=>{var S=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
|
-
*/.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:1rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}`,r=class extends h{constructor(){super(),this.authentication=void 0,this.solutionsCount=0,this.sortType="numviews",this.useLocalAppConfig=!1,this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=g({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=d(),this._authContextProvider=l({context:_}),this._isMobileContextProvider=l({context:y}),this._userSessionContextProvider=l({context:m}),this.filterRemoved=o(),this.solutionsAllLoaded=o(),this.tokenRefreshed=o(),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,authentication:0,solutionsCount:9,sortType:1,useLocalAppConfig:5,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=S}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}connectedCallback(){super.connectedCallback();let e=new b({username:"",password:""});this._userSessionContextProvider.setValue(e),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=v),this.authentication||(console.log("auth not provided in solutions-all-shell...loading from app config"),this.authentication=new C(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this.authentication.init(),this.authentication.SignedIn||this.authentication.signIn()),this._authContextProvider.setValue(this.authentication),this.authentication.RestUserSession&&this._userSessionContextProvider.setValue(this.authentication.RestUserSession),this._setRefreshInterval()}loaded(){this.solutionsAllLoaded.emit()}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="border-override header-override background-override"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this.filterOpen&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}_getFilterPanel(){let e=this.filterOpen?{display:"block"}:"";return this.isMobile?i`<calcite-panel class="filter background-override" id=solutions-all-shell-panel-start style=${a(e)}><solutions-filter-panel @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-panel>`:i`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start position=start slot=panel-start style=${a(e)}><solutions-filter-panel is-all-solutions @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-all-panel .agoSolutionsGroupId=${this.appConfig.primarySolutionsGroupId} .enterpriseSolutionsGroupId=${this.appConfig.agoBasedEnterpriseSolutionsGroupId} .locale=${this.appConfig.locale||"en"} .orgUrl=${this.appConfig.portalURL} @cardsFetched=${this._updateSolutionCount} .portalUrl=${this.appConfig.portalURL} .sortType=${this.sortType} style=${a(e)} ${p(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){return this.filters.length>0?this.filters.map(e=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${e.displayValue} @calciteChipClose=${()=>this._chipClosed(e.displayValue)} .value=${e.displayValue}>${e.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByMostPopular,sortType:"numviews"},{displayValue:this._translations.sortByNew,sortType:"new"},{displayValue:this._translations.sortByUpdated,sortType:"updated"},{displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}];return i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??u}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"new":t=this._translations.sortByNew;break;case"numviews":t=this._translations.sortByMostPopular;break;case"relevance":t=this._translations.sortByRelevance;break;case"suggested":t=this._translations.sortBySuggestedForYou;break;case"title":t=this._translations.sortByTitle;break;case"updated":t=this._translations.sortByUpdated;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._allSolutionsPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e){let t=this.filters.filter(s=>s.displayValue===e);this.filters=this.filters.filter(s=>s.displayValue!==e),this._allSolutionsPanelRef.value?.searchSolutions(),t.length>0&&this.filterRemoved.emit(t[0])}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){e.detail?("displayValue"in e.detail&&"type"in e.detail&&e.detail.type==="industry"&&(this.filters=this.filters.filter(t=>t.type!=="industry"),this.filters.push(e.detail)),this._allSolutionsPanelRef.value?.searchSolutions(e.detail)):(this.filters=[],this._allSolutionsPanelRef.value?.searchSolutions())}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setRefreshInterval(){let e=this._userSessionContextProvider.value,t=this._authContextProvider.value;if(e&&t){let s=(e.tokenExpires?.getTime()-Date.now())*.9;setInterval(async()=>{let n=await t?.refreshSession();if(n){this._userSessionContextProvider.setValue(n);let w=n?.token??"";this.tokenRefreshed.emit(w)}},s)}}};f("solutions-all-shell",r);return r},e)
|
package/dist/cdn/LYXAM2X5.js
DELETED
@@ -1,18 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import e from"./SOSJBYR7.js";import{b as x}from"./DHB2ACZ2.js";import b from"./INDLPX7C.js";import{b as n,c as C,e as v}from"./OEYMQ44L.js";import"./462ZO5LH.js";import"./BRK66LT6.js";import"./BLU2VIKU.js";import"./7X3JKJVF.js";import"./TG27VP3D.js";import"./BFC5QXIT.js";import"./QDOQAXQ2.js";import"./AE5NEHRJ.js";import"./K55E3GAS.js";import"./LFVZUXMO.js";import"./TBDSM4RN.js";import"./OAFXVMDT.js";import"./LFS6Y6L2.js";import"./UNRNLKUZ.js";import"./WQRVOAAE.js";import"./TVST3VSU.js";import"./22WTPZXT.js";import"./VCTV42TG.js";import"./DUZSPRRF.js";import"./WGDVAD44.js";import{k as y,l as w,m as f,o as l}from"./C6SWDNUF.js";import{a as m}from"./KBSLLI3Y.js";import"./4L4JZKJ6.js";import"./TRGIVBAD.js";import{b as g}from"./MZB7PQ2R.js";import{A as a,h as d,i as s,j as c,k as o,n as p,x as u,y as _}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";export default $arcgis.t(([,{a:i,b:S}])=>{var D=d`/** @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
|
-
*/calcite-panel{width:100%;height:100%}.card-group{overflow:hidden;padding:.2rem 1rem}.solutions-briefcase{margin:auto;padding-top:2rem}.text-center{text-align:center}.leader-1{margin-top:1.5rem}.trailer-1{margin-bottom:1.5rem}.warning-text{max-width:35em;margin-left:auto;margin-right:auto}.no-solutions{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}`,h=class extends _{constructor(){super(),this.agoSolutionsGroupId="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="created",this._cards=[],this._cardsFetching=!1,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._translations=m({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=l,this._allCards=[],this._authContextConsumer=n({context:v,subscribe:!0}),this._baseAgoTerms=l,this._categories=[],this._delay=!1,this._isOrgAdmin=!1,this._owner=f.OWNER,this._sortField="created",this._sortOrder="desc",this._userSessionContextConsumer=n({context:C,subscribe:!0}),this.deployedCardsFetched=p(),this.listenOn(window,"solutionDeleted",()=>this.reload(!0,!0)),this.listenOn(window,"solutionConfigureDialogClose",e=>{e.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",this._refresh)}static{this.properties={agoSolutionsGroupId:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,_cards:16,_cardsFetching:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_translations:16}}static{this.styles=D}async reload(e=!0,t=!0){this._cardsFetcher=new i(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new i(this.locale,this.orgUrl,this.portalUrl),t?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(r){console.error("Error getting deployed solutions:",r)}})()},500):await this._getDeployedSolutions(),e&&(this._showDeleteCompleteAlert=!0)}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async load(){this._cardsFetcher=new i(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new i(this.locale,this.orgUrl,this.portalUrl),this._isOrgAdmin=x(this._authContextConsumer.value),await this._getDeployedSolutions()}render(){let e=this._cardsFetching?"":"display-none",t=this._cardsFetching?"display-none":"";return s`<div><calcite-loader class=${a(e)} .label=${this._translations.fetchingDeployedSolutions}></calcite-loader><calcite-panel class=${a(t)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group><calcite-alert auto-close auto-close-duration=fast icon=check-circle kind=success .label=${this._translations.deleteComplete} .open=${this._showDeleteCompleteAlert} @calciteAlertClose=${()=>{this._showDeleteCompleteAlert=!1}}><div slot=title>${this._translations.deleteComplete}</div></calcite-alert></calcite-panel></div>`}updated(e){e.has("_refs")&&this._newId&&Object.keys(this._refs).indexOf(this._newId)>-1&&(this._refs[this._newId].renderConfigureDialog(!0),this._newId="")}_renderCards(){return this._cards.length?(this._refs={},this._cards.map(e=>s`<solution-deployed-card .allowDelete=${this._isOrgAdmin||e.owner===this._userSessionContextConsumer.value.username||this.checkDeletePermissions()} .card=${e} .deployedDate=${e.created} .description=${e.snippet} .heading=${e.title} id=${e.id??o} itemId=${e.id??o} .owner=${e.owner} .thumbnail=${e.thumbnailUrl} ${u(this._handleRefs)}></solution-deployed-card>`)):s`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><span>${this._translations.noSolutionsYet}</span><span>${this._translations.noSolutionsInstruction}</span></div></div>`}_handleRefs(e){e&&(this._refs[e.id]=e)}async _getDeployedSolutions(){this._cardsFetching=!0;let e=await S(this._authContextConsumer.value,this._userSessionContextConsumer.value,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._owner);this._cards=e?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}_getSolutionsBriefcase(){return s`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${c`<path 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" fill=#ccc /><path 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" fill=#ccc />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):(t==="updated"||t==="created")&&(this._sortOrder="desc",this._sortField=t),this.sortType=t}_filterCards(e){if(e.industry){let t=this._getIndustryValue(e.industry);if(e.domain){let r=this._getDomainValue(e.domain);this._categories=[`/Categories/${t}/${r}`]}else this._categories=[`/Categories/${t}`];e.type==="owner"&&(this._owner=e.value),this._getDeployedSolutions()}else e.type==="owner"&&(this._owner=e.value,this._getDeployedSolutions())}_getDomainValue(e){return w[e]}_getIndustryValue(e){return e==="AEC"?"AEC":y[e]}_clearFilterCategories(){this._categories=[]}checkDeletePermissions(){let e=this._authContextConsumer.value;return e?.PortalUserPrivileges&&e.PortalUserPrivileges.length>0?e.PortalUserPrivileges.some(t=>t==="portal:admin:deleteItems"):!1}async _refresh(e){let t=e.detail;t&&setTimeout(async()=>{await this._getDeployedSolutions(),this._newId=t},500)}};g("solutions-deployed-panel",h);return h},b,e)
|
package/dist/cdn/NY4636UE.js
DELETED
@@ -1,4 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{o as u,p as v,q as _,r as p,v as g,w as C}from"./EAF3VHRN.js";import{b as h}from"./G53GBDBC.js";import{A as n,h as d,i as m,q as c,w as o,x as a,y as l}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";var f=d`@layer{:host .esri-measurement,:host .esri-coordinate-conversion{width:300px}:host .instant-apps-measurement-tool__hide{display:none}}`,w="instant-apps-measurement-tool",i={base:w,hide:`${w}__hide`},r=class extends l{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=c}async load(){await this._initModules()}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _initModules(){let[e,t,s]=await Promise.all([g(),u(),_()]);this.Measurement=e,this.CoordinateConversion=t,this.Conversion=s}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=await C({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(i.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(i.hide)}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=await v({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let s=this._coordinateWidget.formats.find(W=>W.name===t);this._coordinateWidget?.conversions?.splice(0,0,await p({format:s}))}e!=null&&this._setActiveTool(e)}render(){return m`<div class=${n(i.base)}><div ${a(this._measureElement)}></div><div class=${n(i.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);export{r as InstantAppsMeasurementTool};
|
package/dist/cdn/OKIFYM75.js
DELETED
@@ -1,18 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{a as p}from"./KBSLLI3Y.js";import"./4L4JZKJ6.js";import"./TRGIVBAD.js";import{b as d}from"./MZB7PQ2R.js";import{A as n,C as a,h as o,i as t,n as r,y as l}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";var m=o`/** @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
|
-
*/calcite-card{width:240px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(50%);filter:brightness(50%);-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:border-box;cursor:pointer}.chip-updated{--calcite-chip-icon-color: var(--calcite-ui-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.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}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.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}`,s=class extends l{constructor(){super(...arguments),this._translations=p({name:"solution-details-card",blocking:!0}),this.detailsCardSelected=r()}static{this.properties={card:0,_translations:16}}static{this.styles=m}render(){let e=this.card,h=e.chip==="updated"?"chip-updated":this.card.chip==="deployed"?"chip-deployed":"",c="solution-details-card-chip",i=e.chip==="updated"?this._translations.updated:this._translations.deployed;return t`<div><calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??a} class="thumbnail card-image" src=${e.thumbnailUrl??a}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height">${e.title}</calcite-label><p slot=description>${e.snippet}</p>${e.chip!=="none"?t`<div slot=footer-end><calcite-chip class=${n(h)} .icon=${e.chip==="updated"?"mega-phone":"check-circle"} id=${c} .label=${i} .value=${i} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${i}</span></calcite-tooltip></div>`:void 0}<div slot=footer-start></div></calcite-card></div>`}_cardSelected(){this.detailsCardSelected.emit(this.card)}};d("solution-details-card",s);export{s as SolutionDetailsCard};
|
package/dist/cdn/OW5AFJWW.js
DELETED
@@ -1,18 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{a as r}from"./KBSLLI3Y.js";import"./4L4JZKJ6.js";import"./TRGIVBAD.js";import{b as c}from"./MZB7PQ2R.js";import{h as o,i as t,w as a,x as s,y as l}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";var d=o`/** @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
|
-
*/.panel-bg-white{--calcite-panel-background-color: var(--calcite-color-foreground-1)}`,n=class extends l{constructor(){super(...arguments),this.deploymentProgress=0,this.open=!1,this._isInCancelConfirmation=!1,this._showCancelConfirmation=!1,this._translations=r({name:"solution-deploying-dialog",blocking:!0}),this._deployingDialogRef=a()}static{this.properties={card:0,deploymentProgress:9,open:5,_isInCancelConfirmation:16,_showCancelConfirmation:16,_translations:16}}static{this.styles=d}close(){this._showCancelConfirmation=!1;let e=this._deployingDialogRef.value;e&&(e.open=!1),this.open=!1}confirmCancel(){if(this._isInCancelConfirmation)this.close();else{let e=this._deployingDialogRef.value;e&&(e.open=!0,e.closeDisabled=!0,this._isInCancelConfirmation=!0),this._showCancelConfirmation=!0}}async load(){}render(){return t`<calcite-dialog .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} modal .open=${this.open} @calciteDialogBeforeClose=${e=>{e.preventDefault()}} outside-close-disabled ${s(this._deployingDialogRef)}>${this._showCancelConfirmation?this.renderCancelModal():t`<calcite-panel class="panel-bg-white"><calcite-loader .label=${this._translations.deploymentInProgress} scale=l .text=${this._translations.deploymentInProgress} type=determinate-value .value=${this.deploymentProgress}></calcite-loader><calcite-carousel autoplay .label=${this._translations.newsAndFeatures} arrow-type=inline>${this.renderCarouselItems()}</calcite-carousel><calcite-button appearance=outline @click=${this.confirmCancel} slot=footer-end>${this._translations.cancel}</calcite-button></calcite-panel>`}</calcite-dialog>`}renderCarouselItems(){let e=[],h=this._translations.carousel;for(let[i,p]of Object.entries(h))e.push(t`<calcite-carousel-item .label=${i}><calcite-label layout=inline>${i==="stockMessage1"&&t`<calcite-icon icon=model></calcite-icon>`||""}${i==="stockMessage2"&&t`<calcite-icon icon=trash></calcite-icon>`||""}${p}</calcite-label></calcite-carousel-item>`);return e}renderCancelModal(){return t`<calcite-panel class="panel-bg-white">${this._translations.deploymentCancelMessage}<calcite-button kind=brand @click=${()=>{let e=this._deployingDialogRef.value;e&&(e.closeDisabled=!1),this._isInCancelConfirmation=!1,this._showCancelConfirmation=!1}} slot=footer-end>${this._translations.continueDeployment}</calcite-button><calcite-button appearance=outline @click=${this.confirmCancel} slot=footer-end>${this._translations.cancelDeploymentButton}</calcite-button></calcite-panel>`}};c("solution-deploying-dialog",n);export{n as SolutionDeployingDialog};
|
package/dist/cdn/QTHWC2ZJ.js
DELETED
@@ -1,4 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{a,b}from"./3NX25KHK.js";import"./IH5UPO4W.js";import"./IHRUCQ2W.js";import"./T23GUATM.js";import"./HTU7XXVJ.js";import"./FGAJFBW2.js";import"./OIA7VIOQ.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
package/dist/cdn/SHBMYV5S.js
DELETED
@@ -1,6 +0,0 @@
|
|
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.20250808 */
|
4
|
-
var Q=globalThis,Y=Q.ShadowRoot&&(Q.ShadyCSS===void 0||Q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ut=Symbol(),Ut=new WeakMap,I=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ut)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Y&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ut.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new I(typeof o=="string"?o:o+"",void 0,ut),pe=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new I(e,o,ut)},It=(o,t)=>{if(Y)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=Q.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},ft=Y?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var{is:ue,defineProperty:fe,getOwnPropertyDescriptor:me,getOwnPropertyNames:ye,getOwnPropertySymbols:ge,getPrototypeOf:ve}=Object,X=globalThis,kt=X.trustedTypes,Ee=kt?kt.emptyScript:"",$e=X.reactiveElementPolyfillSupport,k=(o,t)=>o,Z={toAttribute(o,t){switch(t){case Boolean:o=o?Ee:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!ue(o,t),jt={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),X.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=jt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&fe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){let{get:i,set:r}=me(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){let a=i?.call(this);r?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=ve(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...ye(e),...ge(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(ft(i))}else t!==void 0&&e.push(ft(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:Z).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let r=s.getPropertyOptions(i),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Z;this._$Em=i;let a=n.fromAttribute(e,r.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,r]of s){let{wrapped:n}=r,a=this[i];n!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[k("elementProperties")]=new Map,b[k("finalized")]=new Map,$e?.({ReactiveElement:b}),(X.reactiveElementVersions??=[]).push("2.1.1");var yt=globalThis,tt=yt.trustedTypes,Ht=tt?tt.createPolicy("lit-html",{createHTML:o=>o}):void 0,gt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,vt="?"+_,be=`<${vt}>`,T=document,z=()=>T.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",Et=Array.isArray,Gt=o=>Et(o)||typeof o?.[Symbol.iterator]=="function",mt=`[
|
5
|
-
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zt=/-->/g,Vt=/>/g,w=RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Wt=/"/g,qt=/^(?:script|style|textarea|title)$/i,$t=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),cs=$t(1),ls=$t(2),hs=$t(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ft=new WeakMap,O=T.createTreeWalker(T,129);function Kt(o,t){if(!Et(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ht!==void 0?Ht.createHTML(t):t}var Jt=(o,t)=>{let e=o.length-1,s=[],i,r=t===2?"<svg>":t===3?"<math>":"",n=H;for(let a=0;a<e;a++){let c=o[a],h,u,l=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===H?u[1]==="!--"?n=zt:u[1]!==void 0?n=Vt:u[2]!==void 0?(qt.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=i??H,l=-1):u[1]===void 0?l=-2:(l=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?w:u[3]==='"'?Wt:Bt):n===Wt||n===Bt?n=w:n===zt||n===Vt?n=H:(n=w,i=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";r+=n===H?c+be:l>=0?(s.push(h),c.slice(0,l)+gt+c.slice(l)+_+g):c+_+(l===-2?a:g)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0,a=t.length-1,c=this.parts,[h,u]=Jt(t,e);if(this.el=o.createElement(h,s),O.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=O.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let l of i.getAttributeNames())if(l.endsWith(gt)){let y=u[n++],g=i.getAttribute(l).split(_),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:r,name:C[2],strings:g,ctor:C[1]==="."?st:C[1]==="?"?ot:C[1]==="@"?it:P}),i.removeAttribute(l)}else l.startsWith(_)&&(c.push({type:6,index:r}),i.removeAttribute(l));if(qt.test(i.tagName)){let l=i.textContent.split(_),y=l.length-1;if(y>0){i.textContent=tt?tt.emptyScript:"";for(let g=0;g<y;g++)i.append(l[g],z()),O.nextNode(),c.push({type:2,index:++r});i.append(l[y],z())}}}else if(i.nodeType===8)if(i.data===vt)c.push({type:2,index:r});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)c.push({type:7,index:r}),l+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return i?.constructor!==r&&(i?._$AO?.(!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=S(o,i._$AS(o,t.values),i,s)),t}var et=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??T).importNode(e,!0);O.currentNode=i;let r=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new R(r,r.nextSibling,this,t):c.type===1?h=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(h=new rt(r,this,t)),this._$AV.push(h),c=s[++a]}n!==c?.index&&(r=O.nextNode(),n++)}return O.currentNode=T,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},R=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Gt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{let r=new et(i,this),n=r.u(this.options);r.p(e),this.T(n),this._$AH=r}}_$AC(t){let e=Ft.get(t.strings);return e===void 0&&Ft.set(t.strings,e=new B(t)),e}k(t){Et(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let r of t)i===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){let r=this.strings,n=!1;if(r===void 0)t=S(this,t,e,0),n=!V(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,h;for(t=r[0],c=0;c<r.length-1;c++)h=S(this,a[s+c],e,c),h===f&&(h=this._$AH[c]),n||=!V(h)||h!==this._$AH[c],h===d?t=d:t!==d&&(t+=(h??"")+r[c+1]),this._$AH[c]=h}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ot=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},rt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Qt={M:gt,P:_,A:vt,C:1,L:Jt,R:et,D:Gt,V:S,I:R,H:P,N:ot,U:it,B:st,F:rt},_e=yt.litHtmlPolyfillSupport;_e?.(B,R),(yt.litHtmlVersions??=[]).push("3.3.1");var bt=(o,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let r=e?.renderBefore??null;s._$litPart$=i=new R(t.insertBefore(z(),r),r,void 0,e??{})}return i._$AI(o),i};var _t=globalThis,A=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};A._$litElement$=!0,A.finalized=!0,_t.litElementHydrateSupport?.({LitElement:A});var Ae=_t.litElementPolyfillSupport;Ae?.({LitElement:A});(_t.litElementVersions??=[]).push("4.2.1");var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),Ce=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Cs=o=>typeof o?.then=="function";var F,x=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},q=o=>F,N=[],Yt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},Zt=()=>N,U,ws=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},we=()=>{let o=U;return U=void 0,o},Xt=async(o,t)=>{let e=at(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(i=>t(i,s))}return e.exports},te=async o=>{let t=at(o);return await t.ready,t},at=o=>{let e=q().manager.X(o);if(e!==void 0)return e;if(Ce(o))return o;let s=we();if(s!==void 0)return s},nt=!1,Os=o=>{nt=!0;try{return o()}finally{nt=!1}};var $=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ee=(o,t)=>{let e=t>Oe?Te:t/Se,s=0,i=setInterval(()=>{s+=e,s>=t&&(clearInterval(i),o())},e);return i},Oe=4e3,Te=2e3,Se=4;var Pe=(o,t,e)=>{let s=Object.keys(o),i=s.length;M===void 0&&queueMicrotask(K),M??=new Map;let r=M.get(o);return r===void 0&&(r={callbacks:[],keyCount:i},M.set(o,r)),r.keyCount!==i&&(r.callbacks.forEach(n=>n(s)),r.callbacks=[],r.keyCount=i),r.callbacks.push(n=>{let a=h=>p(t,null,h),c=n[i];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,K=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},Ne=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((i,r)=>p(t,void 0,e===r?i:void 0)),e},xe=(o=[q(),...Zt()],t,e)=>{let s=Array.isArray(o)?o:[o],i=s.length+1,r=n=>{i-=1,n!==void 0&&(i=Math.min(i,0)),i===0&&t(n)};s.forEach(n=>Pe(n,a=>r(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){Ne(n,a=>r(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},De=(o="",t={},e=q())=>{let s={emit:i=>{o===""&&K();let r=new CustomEvent(o,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&xe(void 0,i=>o=i.key,s),s},Le=De.bind(null,""),ie;ie=G;var At=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new $,this.connectedCalled=!1,this.loadedCalled=!1,this[ie]=!0,this.#a=[];let e=this,s=t??q(new.target.name);e.#r=s,e.ready=e.P.promise,e.#n=oe(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(Yt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#i;#c;#l;#p;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?oe(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#r),Xt}get useRef(){return x(this.#r),te}get useRefSync(){return x(this.#r),at}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#o.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(se,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(se,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#r);let e=p(t);(Array.isArray(e)?e:[e]).forEach(i=>{typeof i=="function"?this.#h.push(i):typeof i=="object"&&typeof i.remove=="function"&&this.#h.push(i.remove)})}};function se(o){p(o,void 0,this)}var re=At,oe=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,i,r){if(!((i==="exports"||i==="_exports")&&i in s&&s[i]===e)&&(i in s||i in Promise.prototype||typeof i=="symbol"))return typeof s=="function"?s[i]:Reflect.get(s,i,r)}},e=new Proxy(o,t);return e};var ct=o=>o.replace(Re,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Re=/[A-Z]+(?![a-z])|[A-Z]/gu;var Ot=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Tt={};function St(){}var Ie=(o,t)=>function(s,i){if(!globalThis.customElements)return;let n=(i??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,h=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,l,y]=h.split(";"),g=u?u?.split(",").map(ke):void 0,C=g?.map(([L])=>L),D=class extends wt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=l?l?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},lt=Object.defineProperty,ke=o=>{let t=o.split(":");return t.length===1?[t[0],ct(t[0])]:t},je=globalThis.HTMLElement??St,wt=class extends je{constructor(){super(),this.#e={},this.#s=[],this.I=new $,this.H=new $,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(i=>typeof i=="function"?{a:i}:i)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])lt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])lt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])lt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Ot(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,i=this.#e,r=Object.values(t).find(l=>l.L===s),n=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ze(a),!e.A&&(e.A=r,customElements.define(n,r)),r.N=this;let h=document.createElement(n);r.N=void 0,this.#t=h,this.#e=h,this.#s.forEach(l=>h.attributeChangedCallback(l,null,this.getAttribute(l))),Object.entries(i).forEach(He,h);let u=this.isConnected;(u||this.G)&&(h.connectedCallback?.(),u||h.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function He([o,t]){this[o]=t}var ze=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(i,r){e.setAttribute.call(this.el,i,r)},t.removeAttribute=function(i){e.removeAttribute.call(this.el,i)},lt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:Ws}=Qt;var ht=o=>o.strings===void 0;var Ve={},ne=(o,t=Ve)=>o._$AH=t;var Be=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ne(o),t}});var J=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),J(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ae=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Ge(t)}};function We(o){this._$AN!==void 0?(dt(this),this._$AM=o,ae(this)):this._$AM=o}function Fe(o,t=!1,e=0){let s=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)J(s[r],!1),dt(s[r]);else s!=null&&(J(s,!1),dt(s));else J(this,o)}var Ge=o=>{o.type==m.CHILD&&(o._$AP??=Fe,o._$AQ??=We)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ae(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(J(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var io=()=>new Nt,Nt=class{},Pt=new WeakMap,xt=E(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ce=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let i=!!t[s];i===this.st.has(s)||this.nt?.has(s)||(i?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var le="important",Ke=" !"+le,he=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let i=t[s];if(i!=null){this.ft.add(s);let r=typeof i=="string"&&i.endsWith(Ke);s.includes("-")||r?e.setProperty(s,r?i.slice(0,-11):i,r?le:""):e[s]=i}}return f}});var Dt=class extends re{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Lt in t&&typeof t.destroy=="function",A.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Lt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),K();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ee(t,os)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(i=>i(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},os=1e3,Lt="autoDestroyDisabled",de=class o extends A{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,i=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new $,t.I=s?.I??new $,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=St,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),i&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,i()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Tt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,r=i?.hasChanged??j,n={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...i,hasChanged(a,c){let h=r(a,c);return n.c=h,h}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let i=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return i.t?.(this.#t.get(t)),r.get?.call(this)},set(n){let a=this.manager;if(s.readOnly&&!nt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);r.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(K(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#o;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Tt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=r.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Ot(this.el);t&&await t;let e=[];for(let i of this.M)"triggerLoad"in i?e.push(i.triggerLoad()):e.push(W(i.hostLoad,i));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(i=>i.has(Lt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(i=>!i.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async i=>await i.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let i of this.M)"triggerLoaded"in i?i.triggerLoaded():p(i.hostLoaded,i);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,s){let i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,s),()=>this.el.removeEventListener(t,i,s)))}listenOn(t,e,s,i){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,i),()=>t.removeEventListener(e,r,i)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},Fo=o=>{let t,e=i=>{t=new URL(i,globalThis.location?.href||void 0).href},s={...o,getAssetPath(i){let r=new URL(i,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(i,r){r.K=s,r.L=i,customElements.get(i)||customElements.define(i,r)}};return e(o.defaultAssetPath),s};var Go=o=>typeof o=="object"&&o!=null?ce(o):o,qo=o=>typeof o=="object"&&o!=null?he(o):o;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(i){return e.#t.call(this,i)}}render(t){return typeof t=="function"?(this.#t=t,xt(this.#e)):xt(t)}},Ko=E(Rt);var Jo=d;export{Cs as a,x as b,q as c,Yt as d,Zt as e,ws as f,Os as g,pe as h,cs as i,ls as j,d as k,Ne as l,xe as m,Le as n,At as o,re as p,Tt as q,Ie as r,E as s,v as t,ne as u,Be as v,io as w,xt as x,de as y,Fo as z,Go as A,qo as B,Jo as C};
|
package/dist/cdn/U57WJLGP.js
DELETED
@@ -1,4 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{a,b}from"./45QWR7XP.js";import"./WGDVAD44.js";import"./OIA7VIOQ.js";export{a as ChannelEditorTypes,b as ChannelSchema};
|
package/dist/cdn/V5AFQGVT.js
DELETED
@@ -1,4 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{a,b}from"./SLOADIPP.js";import"./IH5UPO4W.js";import"./IHRUCQ2W.js";import"./T23GUATM.js";import"./HTU7XXVJ.js";import"./FGAJFBW2.js";import"./OIA7VIOQ.js";export{a as ProjectEditorTypes,b as ProjectSchema};
|
package/dist/cdn/VZOMSRAD.js
DELETED
@@ -1,20 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import{$ as oe,$a as tr,$b as Lr,A as C,Aa as Ct,Ab as yr,B as pt,Ba as de,Bb as Pr,C as Ge,Ca as To,Cb as xr,D as Pe,Da as Ut,Db as re,E as P,Ea as Wt,Eb as wr,F as ut,Fa as Nt,Fb as Sr,G as ft,Ga as Lt,Gb as Er,H as u,Ha as Vt,Hb as br,I as lt,Ia as $t,Ib as Tr,Ja as Bt,Jb as vr,K as xe,Ka as zt,Kb as Fr,L as E,La as Gt,Lb as _r,M as we,Ma as jt,Mb as Or,N as It,Na as Kt,Nb as Rr,O as Po,Oa as Ht,Ob as kr,P as xo,Pa as qt,Pb as Ar,Q as je,Qa as Jt,Qb as Mr,R as K,Ra as vo,Rb as Cr,S as gt,Sa as De,T as ht,Ta as Dt,Tb as Ur,U as yt,Ua as Zt,Ub as Qe,V as L,Va as Qt,Vb as Oo,W as Pt,Wa as te,Wb as Ee,X as z,Xa as Yt,Xb as Ye,Y as Ke,Ya as Xt,Yb as Wr,Z as xt,Za as er,Zb as Nr,_ as wo,_a as or,a as Ae,aa as x,ab as rr,ac as Vr,ba as b,bb as nr,c as B,ca as J,cb as sr,cc as $r,d as X,da as He,db as ir,ea as wt,eb as mr,f,fa as St,fb as Se,fc as Br,g as ho,ga as So,gb as v,gc as be,h as se,ha as Et,hb as Ze,hc as Xe,i as We,ia as bt,ic as eo,j as me,ja as Tt,jc as zr,k as Ne,ka as vt,kb as ar,kc as oo,l as Le,la as Ft,lb as cr,lc as Gr,m as yo,ma as _t,mb as V,n as it,na as A,nb as dr,o as Ve,oa as ce,ob as pe,p as mt,pa as H,pb as q,q as $e,qa as qe,qb as pr,r as Be,ra as Je,rb as Fo,s as ee,sa as Ot,sb as ur,tb as _o,u as ae,ua as Rt,ub as fr,v as at,va as kt,vb as lr,w as I,wa as At,wb as Ir,x as ct,xa as Eo,xb as gr,y as dt,ya as bo,z as ze,za as Mt,zb as hr}from"./462ZO5LH.js";import{a as ie,g as ye}from"./7X3JKJVF.js";import{a as W}from"./QDOQAXQ2.js";import{a as j,b as Me,c as Ce,d as Ue}from"./TBDSM4RN.js";import{e as G,f as rt,j as Oe,l as Re,o as nt,s as ke}from"./WQRVOAAE.js";import{a as tt}from"./TVST3VSU.js";import{a as st}from"./VCTV42TG.js";import{a as N}from"./DUZSPRRF.js";import{c as U}from"./OIA7VIOQ.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function jr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var to={};U(to,{_mostRecentlyEditedLayer:()=>Ro,convertItemToTemplate:()=>Ts,createItemFromTemplate:()=>vs,postProcess:()=>Fs});function Ts(e,o,r,t){return new Promise((n,s)=>{let i=z(e);ir(e.groupDesignations)?Nt(i,r).then(a=>n(a),a=>s(P(a))):(i.estimatedDeploymentCostFactor=10,H(i.item.id,r).then(a=>{i.data=a,rr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Ro(i.properties.layers),Ro(i.properties.tables)),er(c,r).then(d=>{c.dependencies=d.map(p=>p.id),n(Mt(c,d,!1,t))},d=>s(P(d)))},c=>s(P(c)))}))})}function vs(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,Ge(s,"properties.service.size");let i=Ct(s.data);Qt(s,r,o).then(m=>{m.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=To(s,o,m),$t(s,o,i,r).then(()=>{s=To(s,o,m),pe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,u(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||vo(s)})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function Fs(e,o,r,t,n,s,i){return new Promise((m,a)=>{q(e,s,i).then(c=>{vo(t)?(t=x(t,s),De(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Ro(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>_s,createItemFromTemplate:()=>Os});function _s(e,o,r){return new Promise(t=>{let n=z(e);n.item.id=b(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{ce(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Wr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Ye(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),p={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=p,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function Os(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,f.Cancelled,0),v(i.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}var Ho={};U(Ho,{_getFormDataFilename:()=>On,_replaceFeatureServiceURLs:()=>Sn,_replaceItemIds:()=>En,_replacePortalBaseUrls:()=>bn,_replaceWorkflowManagerBaseUrls:()=>Tn,_updateZipObjectTextContent:()=>vn,convertItemToTemplate:()=>pi,createItemFromTemplate:()=>ui,postProcess:()=>_n,postProcessFormItems:()=>li,swizzleFormObject:()=>jo,templatizeFormData:()=>Ko});function qr(e,o){return Rs(e,o)}function Rs(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=u(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=b(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&ks(s,e,o)})}),e}function ks(e,o,r){e.datasets.forEach(t=>{if(u(t,"dataSource.type")!=="arcadeDataSource"){let s=u(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=u(t,"dataSource.layerId");de(i?.toString(),s,"",r),t.dataSource.itemId=b(s,s,".itemId")}}})}function Jr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=u(e,t);As(n,o)}),r.forEach(t=>{Ms(e,t,o)}),e}function As(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=Po(u(t,"dataSource.itemId"));if(n){let s=xo(u(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Hr(i,r.id),!0):!1)}else{let s=u(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Hr(m,r.id),!0):!1)}}})})}function Ms(e,o,r){let t=u(e,o);t&&E(e,o,Cs(t,r))}function Cs(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=Kr(m,o);if(a){let c=u(a,"fields"),d=u(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(p=>{let g=p;return g.targetName=J(g.targetName,c,d),g}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=Kr(n,o);if(i){let m=u(i,"fields"),a=u(i,"basePath");Array.isArray(m)&&a&&(t=J(t,m,a),s=J(s,m,a))}}return s})),t}):e}function Kr(e,o){let r,t=u(e,"dataSource.id")||u(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=Po(u(e,"dataSource.itemId")),s=xo(u(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Hr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var fe={};U(fe,{convertItemToTemplate:()=>js,convertNotebookToTemplate:()=>$o,createItemFromTemplate:()=>Ks,deleteProps:()=>sn,fineTuneCreatedItem:()=>Vo,postProcess:()=>qs,postProcessNotebookTemplates:()=>Hs});function Qr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=L(K)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Ns(e),E(e,"data.folderId","{{folderId}}"),$s(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Xr(e,"data.appItemId",e.itemId),No(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],L(K)),E(e,"data.geometryService",L(gt)),Us(e,r,i,t).then(()=>{Zr(e,r,i,"data.widgetPool.widgets").then(m=>{Zr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ws(a,r,i,"data.values").then(c=>{n(c)},c=>s(P(c)))},a=>s(P(a)))},m=>s(P(m)))},m=>s(P(m)))})}function Us(e,o,r,t){return new Promise((n,s)=>{let i=u(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",L(K));let d=u(c,"itemId");if(u(c,"url")){if(d){let g=c.url.substr(c.url.lastIndexOf("/")+1);de(g.toString(),d,c.url,t),c.itemId=b(d,d,".layer"+g+".itemId")}let p=Wo(c.url,r,[],[],o);m.push(new Promise((g,h)=>{Uo(p.serviceRequests,p.requestUrls,p.testString).then(y=>{c.url=y,g()},y=>h(P(y)))}))}else d&&(c.itemId=b(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(P(a)))}else n(e)})}function Zr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=u(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&u(d,"icon")&&No(d,["icon"],L(K));let p=d.config;if(p){let g=JSON.stringify(p),h=Wo(g,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Uo(a,c,d).then(p=>{E(e,t,JSON.parse(p)),s(e)},p=>i(P(p)))}else s(e)})}function Ws(e,o,r,t){return new Promise((n,s)=>{let i=u(e,t),m=[],a=[];if(i){u(i,"icon")&&No(i,["icon"],L(K));let c=JSON.stringify(i),d=Wo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Uo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(P(d)))}else n(e)})}function Uo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(u(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=ro(r,o[s],a,!0)}s++}),t(r)},i=>n(P(i)))}else t(r)})}function Wo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=ro(e,m,L(yt)):m.indexOf("GeocodeServer")>-1?e=ro(e,m,L(ht)):o&&m.indexOf(o)>-1?e=ro(e,o,L(K)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(B(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function ro(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function No(e,o,r){o.forEach(t=>{let n=u(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function Yr(e,o,r,t){return new Promise(n=>{if(we(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=V(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:Be(x(L(K),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Ns(e){let o=Ls;return we(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Vs),o(e)}function Ls(e){return lt(e,["data.values.webmap","data.values.group"])}function Vs(e){let o=[],r=u(e,"data.map.itemId");r&&o.push(r);let t=u(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function $s(e,o){o.forEach(r=>{let t=u(e,r);Xr(e,r,t)})}function Xr(e,o,r){E(e,o,b(r,r,".itemId"))}function en(e,o){let r=u(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Mo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=u(e,s);i&&E(e,s,Bs(i,o))});let n=u(e,"data.values");return n&&E(e,"data.values",Mo(n,o)),e}function Mo(e,o,r=!1){return e=Gs(e,o,r),zs(e,o).forEach(n=>{e=J(e,n.fields,n.basePath,r)}),e}function Bs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Mo(t.config,o,n)}return t})}function zs(e,o){let r=JSON.stringify(e);return o.filter(n=>Ao(n,r)<4).sort((n,s)=>Ao(n,r)-Ao(s,r))}function Ao(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Gs(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=Co(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=no(e,s,i,r)})}),e}function Co(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>Co(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=Co(e[m],o,r):(i&&i.test(e[m])&&(e=J(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function no(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>no(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(no(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=J(e[i],o.fields,o.basePath,t)),n[i]=no(e[i],o,r,t)):(s.test(e[i])&&(e=J(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function on(e,o,r,t){return Jt(e,r,t)}function tn(e,o,r){return De(e,o,"",r)}function D(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0))t(e.itemId,f.Ignored,0),n(I(e.type));else{let s=C(e);s=x(s,o);let i;e.type==="Web Mapping Application"&&e.data?s=JSON.parse(x(JSON.stringify(s),o)):e.type==="QuickCapture Project"&&e.data&&(i=JSON.stringify(s.data.application),delete s.data),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(m=>{if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.id))t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else{o[e.itemId]={itemId:m.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+m.id},s.itemId=m.id,s.type==="Web Mapping Application"&&e.data&&E(s,"data.appItemId",m.id);let a=oe(s.data),c=s.item.url;s=x(s,o);let d=Promise.resolve([]);if(s.relatedItems){let g=x(He(s.relatedItems),o);d=Dt(s.itemId,g,r)}let p;if(e.type==="Web Mapping Application"&&e.data&&we(e,["WAB2D","WAB3D","Web AppBuilder"]))p=Yr(e,s,o,r);else if(e.type==="Workforce Project")p=tn(s,r,o);else if(e.type==="QuickCapture Project"){if(i){let g=ze(x(JSON.parse(i),o),"qc.project.json");p=Br(g,s.itemId,"",g.name,r)}}else e.type==="Notebook"?p=Vo(e,s,o,r):c!==s.item.url?p=new Promise((g,h)=>{pr(m.id,s.item.url,r).then(()=>g(),h)}):p=Promise.resolve(null);Promise.all([d,p]).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.id)?n({item:s,id:m.id,type:s.type,postProcess:a}):(t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}})}function js(e,o,r,t){return Z(e,o,r,t)}function Ks(e,o,r,t){return D(e,o,r,t)}function $o(e){return new Promise(o=>{sn(e.data),o(e)})}function Hs(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,p=c.match(d)[0];s.dependencies.indexOf(p)<0&&s.dependencies.push(p)}}),s.data=JSON.parse(i),s}})}return e}function sn(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function Vo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:ze(o.data,o.itemId+".ipynb")};V(i,t).then(()=>n(null),s)})}function qs(e,o,r,t,n,s,i){return q(e,s,i)}function an(e,o,r){return new Promise((t,n)=>{Js(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=mn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=mn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(P(s)))})}function Js(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Ds(s,n,o).then(i=>{r(i)},i=>t(P(i)))}else r({dependencies:n,urlHash:{}})})}function Ds(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let p=/.+FeatureServer/g.exec(d),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g]]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function mn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=b(t,t,".layer"+n+".url")}r=He(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>pn,_templatizeApplication:()=>dn,_templatizeId:()=>Bo,_templatizeUrl:()=>fn,_updateDependencies:()=>un,convertItemToTemplate:()=>Qs,convertQuickCaptureToTemplate:()=>zo,createItemFromTemplate:()=>Ys});function Qs(e,o,r,t){return Z(e,o,r,t)}function zo(e){return E(e,"data.application",dn(e.data.application,e)),e}function dn(e,o){Bo(e,"itemId"),pn(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(un(n,o),fn(t,"featureServiceItemId","url"),Bo(t,"featureServiceItemId"))}),e}function pn(e){u(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function un(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function fn(e,o,r){let t=u(e,o),n=u(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,b(t,t,".layer"+s+".url"))}}function Bo(e,o){let r=u(e,o);r&&E(e,o,b(r,r,".itemId"))}function Ys(e,o,r,t){return D(e,o,r,t)}var Xs="home/webmap/viewer.html?webmap=";function ln(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?Be(L(K))+Xs+e.item.id:e.item.url),ei(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Go(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Go(e.data.operationalLayers,i.urlHash,t),Go(e.data.tables,i.urlHash,t),oi(e.data)),n(e)},i=>s(P(i)))})}function ei(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ti(a,n,o).then(c=>{r(c)},c=>t(P(c)))}else r({dependencies:n,urlHash:{}})})}function oi(e){Ge(e,"initialState")}function ti(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let p=/.+FeatureServer/g.exec(d.url),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d.url,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(c[g].layerType==="VectorTileLayer"){let h=u(p,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(p.id)<0&&o.push(p.id),c[g].templatizeId=!0;let y=c[g].styleUrl.indexOf(p.id)+p.id.length;c[g].styleUrl=b(c[g].styleUrl.replace(c[g].styleUrl.substring(0,y),p.id),p.id,".itemUrl")}}else if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function Go(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=b(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(de(n,s,t.url,r),t.url=b(s,s,".layer"+n+".url"),t.itemId=b(s,s,".layer"+n+".itemId"))}})}function In(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>ri(e,o,t)),e}function ri(e,o,r){let t=u(e,r);t&&E(e,r,ni(t,o))}function ni(e,o){return e.forEach(r=>{let t=si(r,o);if(t){let n=t.fields.map(i=>i.name);Gt(r,t,t.basePath,t.itemId,n),Kt(r,t.basePath,n),r.layerDefinition&&(qt(r.layerDefinition,t.basePath,n),Ht(r.layerDefinition,t.basePath,n));let s=u(r,"field.name");s&&E(r,"field.name",jt(s,r,t.itemId,t.basePath))}}),e}function si(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Z(e,o,r,t){return new Promise((n,s)=>{let i=z(e);i.item.id=b(i.item.id,i.item.id,".itemId");let m=qe(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{H(i.itemId,r).then(p=>d(p))});break;case"Form":a=ce(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=Je(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[p,g,h]=d;Gr(i,t),i.data=oo(p,e.type,t);let y=g;i.dependencies=[],i.relatedItems=[],y.forEach(w=>{w.relationshipType!=="WMA2Code"&&(i.relatedItems.push(w),w.relatedItemIds.forEach(F=>{i.dependencies.indexOf(F)<0&&i.dependencies.push(F)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ii(p)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":qr(i,t);break;case"Notebook":S=$o(i);break;case"Oriented Imagery Catalog":S=an(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async w=>{let F=null,R=-1;h&&(h.some((Ie,$)=>{let M=Ie.name==="qc.project.json";return M&&(F=Ie,R=$),M}),R>=0&&h.splice(R,1)),F&&(i.data={application:{...await $e(F)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let Q=zo(i);w(Q)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=ln(i,o,r,t);break;case"Web Mapping Application":p&&(S=Qr(i,o,r,t));break;case"Workforce Project":S=on(i,o,r,t);break}S.then(n,w=>s(P(w)))})})}function ii(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=u(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var _={};U(_,{convertItemToTemplate:()=>mi,createItemFromTemplate:()=>ai,postProcess:()=>di,postProcessFieldReferences:()=>ci});function mi(e,o,r,t){return Z(e,o,r,t)}function ai(e,o,r,t){return D(e,o,r,t)}function ci(e,o,r){switch(r){case"Web Mapping Application":en(e,o);break;case"Dashboard":Jr(e,o);break;case"Web Map":In(e,o);break}return e}function di(e,o,r,t,n,s,i){return q(e,s,i)}function pi(e,o,r,t){return _.convertItemToTemplate(e,o,r,t)}function so(e){return!!u(e,"properties.services")}function yn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:tt({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Pn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function xn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:p}}}=o,{token:g}=r.toCredential();return Rt(d,p,r).then(h=>{let y="Survey-",S=It(`${y}${t}`,o,"user.folders").replace(y,"");if(m.questions){let F=R=>(R.maps&&(R.maps=R.maps.map(Q=>({...Q,itemId:h.id}))),R);m.questions=m.questions.map(R=>R.questions?{...R,questions:R.questions.map(F)}:F(R))}let w=Pn(m);return{description:n,form:w,portalUrl:c,tags:s,title:S,token:g,typeKeywords:i,username:a}})}function wn(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return xn(n,o,r).then(i=>yn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=pe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,f.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,f.Failed,0),i})}function ui(e,o,r,t){return so(e)?wn(e,o,r,t):_.createItemFromTemplate(e,o,r,t)}async function jo(e,o){let r=await _o(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=vn(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Ko(e,o){return(await _o(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=En(n,o,s),n=Sn(n,o,s),n=bn(n,o),n=Tn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function Sn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function En(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function bn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Tn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function vn(e,o){let r=ct(),t=e.content;return t=x(e.content,o),ae(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function Fn(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let p=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],g=y=>V(y,i),h=p.map(g);return Promise.all(h).then(()=>{let y=[e,a],S=F=>G({itemId:F,folderId:s.folderId,authentication:i}),w=y.map(S);return Promise.all(w)}).then(()=>mr(d.ownerFolder,i)).then(()=>{let y=z(d);return n.push(y),t.dependencies.push(d.id),!0})})}async function _n(e,o,r,t,n,s,i){let m=await ce(e,"Form",i);if(m){let a=await Fo(m),c=await jo(a,s);Qe(c,e,i)}else return await at(5e3),_n(e,o,r,t,n,s,i);return so(t)?Fn(e,o,r,t,n,s,i):q(e,s,i)}async function li(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Fo(t);n=await Ko(n,o),r.item.name=On(r.item.name,t.name,`${r.itemId}.zip`);let s=await fr(n,r.item.name),i=Ye(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function On(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var qo={};U(qo,{_initializeNewGroup:()=>Rn,convertItemToTemplate:()=>Ii,createItemFromTemplate:()=>gi,postProcess:()=>hi});function Ii(e,o,r){return new Promise(t=>{let n=Pt(e);n.item.id=b(n.item.id,n.item.id,".itemId"),_t(e.id,r).then(s=>{n.type="Group",Ft(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(ft(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function gi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=Rn(s.item);Xt(i.title,i,o,r,bo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(bo(s)){let a=o.locationTracking.owner;ar(m.group.id,a,r).then(c=>{c.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?cr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,f.Failed,0),n(I(e.type))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function hi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=dr(c,i)),!0}}),m}function Rn(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>yi,createItemFromTemplate:()=>Pi,isAPage:()=>wi,postProcess:()=>xi});function kn(e,o,r,t){return e=me(e,r,{}),Er(e,{...t,allowList:[]}).then(()=>!0)}function io(e){let o=j(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=se(o.item,n,s),o.data=se(o.data,n,s),e.properties&&(o.properties=se(o.properties,n,s))}),o}function mo(e,o,r){let t=W(G,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return N(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function yi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Tr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],N(s,"properties")||(s.properties={}),s=io(s),s))}function Pi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,vr(e,o,s,m))).then(c=>{let d=c,p={assets:d.assets||[]};return br(d,p,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Sr,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function xi(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>kn(a,r,s,m))}function wi(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>Si,createItemFromTemplate:()=>Ei,isASite:()=>Ti,postProcess:()=>bi});function An(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Cr(e,n,r))}function Mn(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Mr(e,s,t)),i=i.concat(An(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Rr(e,r,{}),i.push(Fr(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function Si(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,yo(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Ar(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],u(a,"properties")||(a.properties={}),a.dependencies=ae(a.dependencies),a=io(a),a))}function Ei(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,kr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return Or(c,d,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(_r,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function bi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,yo(e,m))).then(a=>Mn(a,r,s,m)).then(()=>Promise.resolve(!0))}function Ti(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var co={};U(co,{convertItemToTemplate:()=>_i,createItemFromTemplate:()=>Oi,isAStoryMap:()=>Ri});function Cn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(N(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Un(e){let o=N(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(N(o,`${t}.type`)==="webmap"&&r.push(N(o,`${t}.data.itemId`)),r),[])}function Nn(e){let o=Ke(e.item.id,e.item.type);o.key=`${We(e.item.title)}_${Ce("i")}`;let r=j(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Le(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Cn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=j(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=se(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Wn)!==-1&&(o.item.typeKeywords=[vi].concat(o.item.typeKeywords.filter(m=>m!==Wn))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Fi),o.dependencies=Un(e),Promise.resolve(o)}var Wn="smstatusunpublishedchanges",vi="smstatuspublished",Fi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
5
|
-
<oembed>
|
6
|
-
<version>1.0</version>
|
7
|
-
<type>rich</type>
|
8
|
-
<title>Example StoryMap</title>
|
9
|
-
<url>{{storyMapTemplateUrl}}</url>
|
10
|
-
<author_name>undefined</author_name>
|
11
|
-
<provider_name>ArcGIS StoryMaps</provider_name>
|
12
|
-
<provider_url>{{storyMapBaseUrl}}</provider_url>
|
13
|
-
<width>800</width>
|
14
|
-
<height>600</height>
|
15
|
-
<thumbnail_url>{{storyMapThumbnailUrl}}</thumbnail_url>
|
16
|
-
<thumbnail_height>100.5</thumbnail_height>
|
17
|
-
<thumbnail_width>400</thumbnail_width>
|
18
|
-
<html><iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen="true"></iframe></html>
|
19
|
-
<cache_age>86400</cache_age>
|
20
|
-
</oembed>`};function Ln(e){let o=e.portal||"https://www.arcgis.com/sharing/rest",r="portal";return o.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="qaext":o.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="devext":o.match(/(www|\.maps)\.arcgis.com/)&&(r="www"),r}function ao(e){let o=e.portal||"https://www.arcgis.com/sharing/rest",r;return o.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="storymapsqa":o.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="storymapsdev":o.match(/(www|\.maps)\.arcgis.com/)&&(r="storymaps"),r}function Vn(e){let o="",r=ao(e);return r?o=`https://${r}.arcgis.com`:o=`${e.portal.replace("/sharing/rest","")}/apps/storymaps`,o}function $n(e,o,r,t){let n=new Date().getTime();o.agoenv=Ln(t),o.smBase=ao(t),o.timestamp=new Date().getTime(),o.storyMapBaseUrl=Vn(t),o.storyMapTemplateUrl=`${o.storyMapBaseUrl}/stories/{{appid}}`,o.storyMapThumnailUrl=`${t.portal}/content/items/{{appid}}/info/thumbnail/thumbnail.jpg/?w=400&d=${n}`;let s=me(e,o,r);return Promise.resolve(s)}function Bn(e,o,r,t){let n=[];e.data=JSON.parse(JSON.stringify(e.data).replace(/portalUrl=https:\/\//g,"portalUrl=https%3A%2F%2F"));let s={item:ie(e),authentication:t};return e.item.thumbnail&&(s.params={thumbnail:e.item.thumbnail},delete s.item.thumbnail),Oe(s).then(i=>{e.item.id=i.id,e=Ne(e);let m=ue(JSON.stringify(e.data));return n.push({name:e.properties.draftFileName,file:m}),n.push({name:"oembed.json",file:ue(JSON.stringify(e.properties.oembed))}),n.push({name:"oembed.xml",file:ue(e.properties.oembedXML)}),n.push({name:"published_data.json",file:m}),delete e.properties,Promise.all([X({item:ie(e),authentication:t}),t.getUsername()])}).then(i=>{let m=i[1],a=W(Ae,{success:!0}),c=n.map(d=>a({id:e.item.id,owner:m,resource:d.file,name:d.name,authentication:t}));return Promise.all(c)}).then(()=>G({itemId:e.item.id,folderId:o,authentication:t})).then(()=>e)}function _i(e,o,r){let t={item:e,data:{}};return Re(e.id,{authentication:r}).then(n=>(t.data=n,Nn(t))).then(n=>n)}function Oi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));o.solution||(o.solution={}),o.solution.title=o.title;let s={},i;return $n(e,o,s,r).then(m=>{let a={assets:m.assets||[]};return Bn(m,o.folderId,a,r)}).then(m=>{if(i=m,o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let c={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!1};return c.item.itemId=i.item.id,c}else return W(ke,{success:!0})({id:i.item.id,authentication:r}).then(()=>Promise.resolve(I(e.type)))}).catch(m=>{throw t(e.itemId,f.Failed,0),m})}function Ri(e){let o=!1;return e==="StoryMap"&&(o=!0),o}var le={};U(le,{convertItemToTemplate:()=>qi,createItemFromTemplate:()=>Ji,postProcess:()=>Di});function zn(e){Jo(e,"data.sources",Mi),Jo(e,"data.feeds",Ai),Jo(e,"data.feed",Gn)}function Jo(e,o,r){let t=u(e,o);t&&E(e,o,r(t))}function Ai(e){return e.map(o=>(o.label=o.label&&o.id?`{{${o.id}.label}}`:o.label,o.id=o.id?`{{${o.id}.itemId}}`:o.id,o))}function Gn(e){let o=u(e,"properties.feature-layer.portalItemId");if(e.properties&&(e.properties["feature-layer.portalItemId"]&&(o=e.properties["feature-layer.portalItemId"],e.properties["feature-layer.portalItemId"]=`{{${o}.itemId}}`),o&&e.properties.hasOwnProperty("feature-layer.layerId"))){let r=e.properties["feature-layer.layerId"];e.properties["feature-layer.layerId"]=`{{${o}.layer${r}.layerId}}`}return e}function Mi(e){return e.map(o=>Gn(o))}function jn(e,o){let r=[];return[u(e,"data.feeds")?e.data.feeds:[],u(e,"data.feed")?[e.data.feed]:[]].forEach(t=>Ui(t,r)),[u(e,"data.sources")?e.data.sources:[],u(e,"data.source")?[e.data.source]:[],u(e,"data.outputs")?e.data.outputs:[],u(e,"data.output")?[e.data.output]:[]].forEach(t=>Kn(t,r)),Ci(r,o)}function Ci(e,o){let r=e.map(t=>A(t,o));return Promise.all(r).then(t=>Promise.resolve(t.reduce((n,s)=>(s.typeKeywords.indexOf("IoTFeatureLayer")<0&&n.push(s.id),n),[])))}function Ui(e,o){e.reduce((r,t)=>{let n=t.id||void 0;return n&&r.indexOf(n)<0&&r.push(n),r},o),Kn(e,o)}function Kn(e,o){e.reduce((r,t)=>((u(t,"name")?[t.name]:Xe).forEach(s=>{eo.forEach(i=>{if(i.indexOf("mapServicePortalItemID")<0&&i.indexOf("streamServicePortalItemID")<0){let m=t.properties?t.properties[s+i]:void 0;m&&r.indexOf(m)<0&&r.push(m)}})}),r),o)}function _e(e,o,r,t="",n=!1,s="",i=""){return zr(e,o).then(m=>{if(m){let a=r==="Real Time Analytic"?"analytics/realtime":r==="Big Data Analytic"?"analytics/bigdata":r.toLowerCase(),c=i?`/${i}`:"",d=s?`/${s}`:"";return Promise.resolve(n?`${m}/iot/${a}${d}${c}`:t?`${m}/iot/${a}${d}/${t}${c}/?f=json&token=${e.token}`:`${m}/iot/${a}${d}${c}/?f=json&token=${e.token}`)}else return Promise.resolve(m)})}function Hn(e,o,r,t,n=!1){return _e(e,t,o.type,void 0,!0).then(s=>s?Wi(e,r.label,s).then(i=>{let m=i.titles;r.label=i.label,r.id="";let a=x(r,t),c=(r.outputs?r.outputs:r.output?[r.output]:[]).map(p=>({id:p.id,name:p.properties[`${p.name}.name`]})),d=(a.feeds?a.feeds:a.feed?[a.feed]:[]).map(p=>({id:p.id?p.id:p.properties[`${p.name}.portalItemId`]||"",name:p.label?p.label:r.label}));return qn(e,t,o.type,a,m,c,d).then(p=>po(e,s,"POST",p).then(g=>{o.item.url=`${s}/${g.id}`,o.item.title=r.label,t[o.itemId].url=o.item.url,t[o.itemId].label=r.label,t[o.itemId].itemId=g.id;let h={item:x(o.item,t),id:g.id,type:o.type,postProcess:!1};return n?$i(e,t,o,g.id).then(()=>Promise.resolve(h)):Promise.resolve(h)}))}):Promise.reject(P("Velocity NOT Supported by Organization")))}function Wi(e,o,r){return po(e,`${r}StatusList?view=admin`,"GET").then(t=>{let n=t&&Array.isArray(t)?t.map(s=>({title:s.label})):[];return Promise.resolve({label:Dn(o,{titles:n},"titles"),titles:n.map(s=>s.title)})})}function qn(e,o,r,t,n,s=[],i=[]){return s.length>0||i.length>0?Zn(e,o,r,"",t).then(m=>{let a=Ni(m);return a.length>0?(s.length>0&&Vi(s,t,a),i.length>0&&Li(i,t,a.concat(n)),qn(e,o,r,t,n,s,i)):Promise.resolve(t)}):Promise.resolve(t)}function Ni(e){let o=u(e,"validation.messages"),r=u(e,"nodes");r&&Array.isArray(r)&&r.forEach(n=>{o=o.concat(u(n,"validation.messages")||[])});let t=[];return o&&Array.isArray(o)&&o.forEach(n=>{["VALIDATION_ANALYTICS__MULTIPLE_CREATE_FEATURE_LAYER_OUTPUTS_REFERENCE_SAME_LAYER_NAME","VALIDATION_ANALYTICS__MULTIPLE_CREATE_STREAM_LAYER_OUTPUTS_REFERENCE_SAME_LAYER_NAME","ITEM_MANAGER__CREATE_ANALYTIC_FAILED_DUPLICATE_OUTPUT_NAMES_IN_ORGANIZATION_NOT_ALLOWED","ITEM_MANAGER__CREATE_BIG_DATA_ANALYTIC_FAILED_DUPLICATE_NAMES_NOT_ALLOWED","ITEM_MANAGER__CREATE_REAL_TIME_ANALYTIC_FAILED_DUPLICATE_NAMES_NOT_ALLOWED","ITEM_MANAGER__CREATE_FEED_FAILED_DUPLICATE_NAME"].indexOf(n.key)>-1&&(t=t.concat(n.args))}),t}function Li(e,o,r){e.forEach(t=>{let n=Jn(r,t);n&&(o.label=n.label,t.name=n.label)})}function Vi(e,o,r){e.forEach(t=>{let n=Jn(r,t);if(n){let s=(o.outputs?o.outputs:o.output?[o.output]:[]).map(i=>{if(i.id===n.id&&i.properties){let m=`${i.name}.name`;Object.keys(i.properties).indexOf(m)>-1&&(i.properties[m]=n.label)}return i});o.outputs&&(o.outputs=s),o.output&&(o.output=s[0])}})}function Jn(e,o){let r=e.map(n=>({title:n})),t=Dn(o.name,{titles:r},"titles");return t!==o.name?{label:t,id:o.id}:void 0}function Dn(e,o,r){e=e?e.trim():"_";let n=(u(o,r)||[]).map(m=>m.title),s=e,i=0;for(;n.indexOf(s)>-1||n.indexOf(s.replace(/ /g,"_"))>-1;)i++,s=e+" "+i;return s}function $i(e,o,r,t){return Zn(e,o,r.type,t).then(n=>n.executable?Bi(e,o,r.type,t):Promise.resolve(n))}function Zn(e,o,r,t,n){return _e(e,o,r,t,!1,"validate","").then(s=>po(e,s,"POST",n).then(i=>Promise.resolve(i)))}function Bi(e,o,r,t){return _e(e,o,r,t,!1,"","start").then(n=>po(e,n,"GET").then(s=>Promise.resolve(s)))}function zi(e,o){return{headers:{Accept:"application/json","Content-Type":"application/json",Authorization:"token="+e.token},method:o}}function po(e,o,r,t){let n=zi(e,r);return t&&(n.body=JSON.stringify(t)),fetch(o,n).then(s=>Promise.resolve(s.json()))}function Qn(e,o){let r=e.dependencies;[u(e,"data.sources")?e.data.sources:[],u(e,"data.source")?[e.data.source]:[],u(e,"data.feeds")?e.data.feeds:[],u(e,"data.feed")?[e.data.feed]:[]].forEach(t=>Gi(t,r,o)),[u(e,"data.outputs")?e.data.outputs:[],u(e,"data.output")?[e.data.output]:[]].forEach(t=>ji(t,r))}function Gi(e,o,r){e.forEach(t=>{let n="feature-layer.portalItemId",s="feature-layer.layerId";if(t.properties){if(t.properties[n]){let a=t.properties[n];a&&o.indexOf(a)<0&&(delete t.properties[n],delete t.properties[s])}let i="simulator.url",m=t.properties[i];m&&m.indexOf(r)>-1&&delete t.properties[i]}})}function ji(e,o){e.forEach(r=>{r.properties&&((u(r,"name")?[r.name]:Xe).forEach(n=>{eo.forEach(s=>Ki(r.properties,n+s,o))}),Hi(r.properties))})}function Ki(e,o,r){let t=e[o];t&&r.indexOf(t)<0&&delete e[o]}function Hi(e){["feat-lyr-new.name","stream-lyr-new.name","feat-lyr-existing.name"].forEach(o=>{let r=e[o];r&&r.indexOf("{{solutionItemId}}")<0&&(e[o]=`${r}_{{solutionItemId}}`)})}function qi(e,o,r,t){let n=z(e);return _e(r,t,e.type,e.id).then(s=>s?fetch(s).then(i=>i.json()).then(i=>(n.item.title=i.label,n.data=i,jn(n,r).then(m=>(n.dependencies=m,Qn(n,t.velocityUrl),zn(n),n.item=oo(n.item,n.type,t),Promise.resolve(n))))):Promise.reject("Velocity NOT Supported by Organization"),s=>Promise.reject(P(s)))}function Ji(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));let s=e.itemId;return Hn(r,e,e.data,o).then(i=>{if(t(s,f.Finished,e.estimatedDeploymentCostFactor||2,i.id)){let a={item:{...e,...i},id:i.item.id,type:e.type,postProcess:!0};return a.item.itemId=i.item.id,a}else return v(i.id,r).then(()=>Promise.resolve(I(e.type)),()=>Promise.resolve(I(e.type)))})}function Di(e,o,r,t,n,s,i){let a=r.filter(c=>c.id===e)[0].item.item;return delete a.url,delete a.origUrl,V(a,i).then(()=>G({owner:i.username,itemId:e,folderId:s.folderId,authentication:i}))}var uo={};U(uo,{convertItemToTemplate:()=>Qi,createItemFromTemplate:()=>Yi,postProcess:()=>Xi});function Yn(e){let o=e.portal||"https://www.arcgis.com/sharing/rest",r;return o.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="experienceqa":o.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="experiencedev":o.match(/(www|\.maps)\.arcgis.com/)&&(r="experience"),r}function Xn(e){let o="",r=Yn(e);return r?o=`https://${r}.arcgis.com/experience/{{appid}}`:o=`${e.portal.replace("/sharing/rest","")}/apps/experiencebuilder/?id={{appid}}`,o}function es(e,o,r,t){o.experienceUrlTemplate=Xn(t);let n=me(e,o,r);return n.item.url=o.experienceUrlTemplate,e.item.thumbnail&&(n.item.thumbnail=e.item.thumbnail),Promise.resolve(n)}function os(e,o,r,t){let n=[],s={item:ie(e),authentication:t};return e.item.thumbnail&&(s.params={thumbnail:e.item.thumbnail},delete s.item.thumbnail),Oe(s).then(i=>{e.item.id=i.id;let m=e.item.thumbnail;e=Ne(e),e.item.thumbnail=m;let a=j(e.data);n.push({name:"config.json",prefix:"config",file:jr(a)});let c=j(e.properties.imageResourcesList);c&&n.push({name:"image-resources-list.json",prefix:"images",file:ue(JSON.stringify(c))}),delete e.properties;let d={item:ie(e),authentication:t};return e.item.thumbnail&&(d.params={thumbnail:e.item.thumbnail},delete d.item.thumbnail),Promise.all([X(d),t.getUsername()])}).then(i=>{let m=i[1],a=W(Ae,{success:!0}),c=n.map(d=>a({id:e.item.id,owner:m,resource:d.file,name:d.name,prefix:d.prefix,authentication:t}));return Promise.all(c)}).then(()=>G({itemId:e.item.id,folderId:o,authentication:t})).then(()=>e)}function ts(e){let o=N(e,"data.dataSources")||{};return Object.keys(o).reduce((r,t)=>Ue(N(o,`${t}.itemId`),r),[])}function ns(e){let o=Ke(e.item.id,e.item.type);o.key=`${We(e.item.title)}_${Ce("i")}`;let r=j(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Le(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{experienceUrlTemplate}}",o.item.typeKeywords.indexOf(rs)!==-1&&(o.item.typeKeywords=[Zi].concat(o.item.typeKeywords.filter(i=>i!==rs))),o.dependencies=ts(e),Promise.resolve(o)}var Zi="status: Published",rs="status: Changed";function Qi(e,o,r){let t={item:e,data:{}};return Re(e.id,{authentication:r}).then(n=>(t.data=n,ns(t)))}function Yi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));let s;return es(e,o,{},r).then(i=>(s=i,os(i,o.folderId,{},r))).then(i=>{if(s.item.id=i.item.id,s.item.url=i.item.url,o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let a={item:{...e,...ee(s)},id:s.item.id,type:e.type,postProcess:!1};return a.item.itemId=s.item.id,a}else return W(ke,{success:!0})({id:s.item.id,authentication:r}).then(()=>Promise.resolve(I(e.type)))})}function Xi(e,o,r,t,n,s,i){return q(e,s,i)}var fo={};U(fo,{convertItemToTemplate:()=>em,createItemFromTemplate:()=>om,createWebTool:()=>ss,getNotebookEnterpriseServerRootURL:()=>ms,getNotebookServerCreateServiceURL:()=>is,moveToFolder:()=>as});function em(e,o,r,t){return _.convertItemToTemplate(e,o,r,t)}function om(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0))t(e.itemId,f.Ignored,0),n(I(e.type));else{let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),ss(s,o,r).then(i=>{t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,i.itemId)?(o[e.itemId]={itemId:i.itemId,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+i.itemId},s.itemId=i.itemId,s.item.id=i.itemId,s.data={},delete s.item.thumbnail,as(s.itemId,o,r).then(()=>{Je(i.itemId,r).then(m=>{let a=Promise.resolve();m.some(c=>{if(c.name==="webtoolService.json")return a=$e(c),!0}),a.then(c=>{o[e.itemId].url=c?.serviceUrl,s=x(s,o),pe({...s.item},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,i.itemId)?A(s.itemId,r).then(d=>{s.item=d,n({item:s,id:i.itemId,type:s.type,postProcess:!1})},()=>{t(e.itemId,f.Failed,0),v(i.itemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),v(i.itemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),v(i.itemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})})})},()=>{t(e.itemId,f.Failed,0),v(i.itemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(t(e.itemId,f.Cancelled,0),v(i.itemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}})}function ss(e,o,r){return new Promise((t,n)=>{is(o.portalBaseUrl,r,o).then(s=>{if(s){let i={serviceProperties:{description:e.item.description,provider:"notebooks",type:"GPServer",jsonProperties:{timeoutInMinutes:e.data.timeoutInMinutes,title:e.item.title,notebookId:e.data.notebookId,tasks:[{type:"notebook",name:e.data.name}]}}},m={httpMethod:"POST",authentication:r,params:i,headers:{Accept:"application/json",Authorization:`Bearer ${r.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${r.token}`}};B(s,m).then(a=>{t(a)},a=>{n(a)})}else n()},s=>{n(s)})})}async function is(e,o,r){let t=r.isPortal?await ms(e,o):r.portalUrls?.notebooks.https.length>0?r.portalUrls.notebooks.https[0]:"";return t&&r.isPortal?`${t}/admin/services/createService?f=json&request.preventCache=${Date.now()}`:t?`https://${t}/admin/services/createService?f=json&request.preventCache=${Date.now()}`:""}async function ms(e,o){let t=(await Tt(`${e}/sharing/rest`,o)).find(n=>n.serverFunction.indexOf("NotebookServer")>-1);return t?t.url:""}async function as(e,o,r){return o.isPortal&&!(await or(e,o.folderId,r)).success?Promise.reject("Failed to move webTool item"):Promise.resolve()}var Xo={};U(Xo,{_cacheLayerDetails:()=>Do,addWorkflowItem:()=>Zo,convertItemToTemplate:()=>nm,createItemFromTemplate:()=>sm,fetchAuxiliaryItems:()=>Qo,postProcessFormItems:()=>tm,updateTempDictWorkflowId:()=>lo,updateTemplateDictionaryForWorkflow:()=>Yo});async function Zo(e,o,r){let t=`${o}/admin/createWorkflowItem?name=${e.item.title}`,n={authentication:r,headers:{Accept:"application/json",Authorization:`Bearer ${r.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${r.token}`},params:{name:`${e.item.title}`}},s=await B(t,n);return Promise.resolve(s.itemId)}async function Qo(e,o){let r=`workflow_${e}`,t=`WorkflowLocations_${e}`,n=`workflow_views_${e}`,s=await Ze({q:`title:${r} OR title:${t} OR title:${n}`,authentication:o});return Promise.resolve(s.results.map(i=>i.id))}function tm(e){for(let o of e)if(o.type==="Workflow"){let r=dt(JSON.stringify(o.properties.configuration));o.dependencies=ae([...o.dependencies,...r])}return e}async function Yo(e,o,r,t){let n=await H(o,t),s=u(r,`workflows.${e}`);s&&(await lo(r,"viewSchema",s,n,t),await lo(r,"workflowLocations",s,n,t),await lo(r,"workflowSchema",s,n,t))}async function lo(e,o,r,t,n){let s=r[o],i=u(t,`${o}.itemId`);e[s].itemId=i;let m=await xr(i,n),a=u(m,"base.url");e[s].url=a,e[s].name=u(m,"base.name");let c=u(m,"featureServiceProperties.layers");Do(c,e,a,s,i);let d=u(m,"featureServiceProperties.tables");Do(d,e,a,s,i)}function Do(e,o,r,t,n){e&&t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&e.forEach(s=>{let i=s.fields.reduce((c,d)=>(c[d.name.toLowerCase()]={alias:d.alias,name:d.name,type:d.type},c),{}),m=s.id,a=`${r}/${m}`;o[t][`layer${m}`]={fields:i,itemId:n,layerId:m,url:a}})}async function nm(e,o,r,t){let n=z(e);n.estimatedDeploymentCostFactor=20,n.item.id=b(n.item.id,n.item.id,".itemId");let s=qe(n.itemId,"forward",r),i=nr(e.id,t.workflowBaseUrl,r),m=H(e.id,r),[a,c,d]=await Promise.all([s,i,m]);return n.data=d,n.dependencies=[],n.relatedItems=[],Pr(n),a.forEach(p=>{p.relationshipType!=="WMA2Code"&&(n.relatedItems.push(p),p.relatedItemIds.forEach(g=>{n.dependencies.indexOf(g)<0&&n.dependencies.push(g)}))}),n.properties.configuration=await Ir(c),Promise.resolve(n)}async function sm(e,o,r,t){if(!t(e.itemId,f.Started,0))return t(e.itemId,f.Ignored,0),Promise.resolve(I(e.type));e.data={};let n=C(e);n=x(n,o),e.item.thumbnail&&(n.item.thumbnail=e.item.thumbnail);try{let s=await Zo(n,o.workflowBaseUrl,r);if(!s)throw new Error("Failed to create workflow item");if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,s))return t(e.itemId,f.Cancelled,0),v(s,r),Promise.resolve(I(e.type));n.itemId=n.item.id=s,o[e.itemId]={itemId:s},await Yo(e.itemId,s,o,r),n.properties.configuration=x(n.properties.configuration,o);let i=await lr(n.properties.configuration);await sr(s,i,o.workflowBaseUrl,r);let m=await Qo(s,r);if(m.push(s),(await tr(m,o.folderId,r)).some(d=>!d.success))throw new Error("Failed to move all workflow items");return t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,s),Promise.resolve({item:n,id:s,type:n.type,postProcess:!1})}catch{return t(e.itemId,f.Failed,0),Promise.resolve(I(e.type))}}var Io=null,go={Group:qo,"Big Data Analytic":le,"Feature Collection":_,"Feature Service":to,Feed:le,"Geocoding Service":void 0,"Geodata Service":void 0,"Geometry Service":void 0,"Geoprocessing Service":fo,"Globe Service":void 0,"Image Service":void 0,KML:void 0,"Map Service":to,"Network Analysis Service":void 0,"Real Time Analytic":le,"Relational Database Connection":void 0,"Scene Service":void 0,"Stream Service":void 0,Tool:void 0,"Vector Tile Service":_,WFS:void 0,WMS:void 0,WMTS:void 0,"Workflow Manager Service":void 0,"3D Web Scene":void 0,"Web Map":_,"Web Scene":_,Application:void 0,Dashboard:_,"Data Pipeline":_,"Data Store":void 0,"Desktop Application":void 0,"Excalibur Imagery Project":void 0,Form:Ho,"Hub Initiative":Io,"Hub Page":ve,"Hub Site Application":Fe,"Insights Model":_,"Insights Page":void 0,"Insights Theme":void 0,"Insights Workbook":void 0,Mission:void 0,"Mobile Application":void 0,Notebook:fe,"Oriented Imagery Catalog":_,"Ortho Mapping Project":void 0,"QuickCapture Project":Te,"Site Application":Fe,"Site Page":ve,Solution:Io,StoryMap:co,"Urban Model":void 0,"Web Experience Template":void 0,"Web Experience":uo,"Web Mapping Application":_,"Workforce Project":_,"360 VR Experience":l,"AppBuilder Extension":l,"AppBuilder Widget Package":l,"Application Configuration":l,"ArcGIS Pro Add In":l,"ArcGIS Pro Configuration":l,"ArcPad Package":l,"Basemap Package":l,"CAD Drawing":l,"CityEngine Web Scene":l,"Code Attachment":Io,"Code Sample":l,"Color Set":l,"Compact Tile Package":l,"CSV Collection":l,CSV:l,"Deep Learning Package":l,"Desktop Add In":l,"Desktop Application Template":l,"Desktop Style":l,"Document Link":l,"Explorer Add In":l,"Explorer Layer":l,"Explorer Map":l,"Feature Collection Template":l,"File Geodatabase":l,GeoJson:l,GeoPackage:l,"Geoprocessing Package":l,"Geoprocessing Sample":l,"Globe Document":l,"Image Collection":l,Image:l,"iWork Keynote":l,"iWork Numbers":l,"iWork Pages":l,"KML Collection":l,"Layer Package":l,"Layer Template":l,Layer:l,Layout:l,"Locator Package":l,"Map Document":l,"Map Package":l,"Map Template":l,"Microsoft Excel":l,"Microsoft Powerpoint":l,"Microsoft Word":l,"Mobile Basemap Package":l,"Mobile Map Package":l,"Mobile Scene Package":l,"Native Application":l,"Native Application Installer":l,"Native Application Template":l,netCDF:l,"Operation View":l,"Operations Dashboard Add In":l,"Operations Dashboard Extension":l,PDF:l,"Pro Layer Package":l,"Pro Layer":l,"Pro Map Package":l,"Pro Map":l,"Pro Report":l,"Project Package":l,"Project Template":l,"Published Map":l,"Raster function template":l,"Report Template":l,"Rule Package":l,"Scene Document":l,"Scene Package":l,"Service Definition":l,Shapefile:l,"Statistical Data Collection":l,Style:_,"Survey123 Add In":l,"Symbol Set":l,"Task File":l,"Tile Package":l,"Toolbox Package":l,"Vector Tile Package":l,"Viewer Configuration":l,"Visio Document":l,"Window Mobile Package":l,"Windows Mobile Package":l,"Windows Viewer Add In":l,"Windows Viewer Configuration":l,Workflow:Xo,"Workflow Manager Package":l,"Administrative Report":void 0,"Apache Parquet":void 0,"API Key":void 0,"datastore catalog service":void 0,"Deep Learning Studio Project":void 0,"Earth Configuration":void 0,"Elevation Layer":void 0,"Esri Classifier Definition":void 0,"Export Package":void 0,"GeoBIM Application":void 0,"GeoBIM Project":void 0,"Geoenrichment Service":void 0,GML:void 0,"Hub Event":void 0,"Hub Initiative Template":void 0,"Hub Project":void 0,"Insights Data Engineering Model":void 0,"Insights Data Engineering Workbook":void 0,"Insights Workbook Package":void 0,"Knowledge Graph":void 0,"Knowledge Studio Project":void 0,"Link Chart":void 0,"Map Image Layer":void 0,Markup:void 0,OGCFeatureServer:void 0,"Pro Project":void 0,"Pro Report Template":void 0,"Route Layer":void 0,"Scene Layer Package":void 0,"Site Initiative":void 0,"StoryMap Theme":void 0,Table:void 0,"Video Service":void 0,Undefined:void 0,Unsupported:Io};var et=null;function ps(e,o,r,t,n,s,i,m){return new Promise((a,c)=>{let d=hm(r)+1,p=10,g=(99-p)/d,h=[],y=[],S=!0,w=($,M,O,ne)=>{if(p+=g*O,m.progressCallback)if(M===f.Finished){let ge={event:ho[M],data:$};m.progressCallback(Math.round(p),m.jobId,ge)}else m.progressCallback(Math.round(p),m.jobId);return m.consoleProgress&&console.log(Date.now(),$,m.jobId??"",ho[M],p.toFixed(0)+"%",O,ne?"==> "+ne:""),M===f.Created?y.push(ne):M===f.Failed&&(h.push($),console.error("Item "+$+" has failed"),S=!1),S};u(n,"organization.isPortal")&&(r=mm(r));let{buildOrder:F,itemsToBePatched:R}=wr(r),Q=[];pm(r,m.enableItemReuse??!1,n,i).then(()=>{um(r,u(n,"params.useExisting"),n,i).then(()=>{r=Wt(r),F.forEach(M=>{let O=wo(r,M);O.type==="Form"?R[M]=[]:O.type==="QuickCapture Project"&&(O.resources=O.resources.filter(ne=>!ne.endsWith("qc.project.json"))),Q.push(gm(O,Vr(e,o,O.resources,m.storageVersion),t,n,i,w))}),Promise.all(Q).then(M=>{h.length===0?(im(R,n,M),a(M)):Ur(s,y,r,n,i,{consoleProgress:!0}).then(()=>c(ut(h)))})})},$=>{console.error($),c(P($))})})}function im(e,o,r){let t=Object.keys(e);t.length>0&&(t=t.map(n=>o[n].itemId),r.forEach(n=>{t.includes(n.id)&&(n.postProcess=!0)}))}function mm(e){let o=dm(e);am(e,o);let r=cm(o),t=[],n=[];return Object.keys(r).forEach(s=>{r[s].forEach(m=>{let a=wo(e,m),c=u(a,"properties.syncViews");n.indexOf(a.itemId)>-1&&(t=t.concat(c)),c&&c.length>0&&E(a,"properties.syncViews",C(t)),t.indexOf(m)<0&&t.push(m),n.indexOf(a.itemId)<0&&n.push(a.itemId)}),t=[]}),e}function am(e,o){return o.forEach(r=>{r.dependencies.forEach(t=>{e=e.map(n=>(u(n,"properties.service.isView")&&n.dependencies.indexOf(t)>-1&&n.itemId!==r.id&&(Array.isArray(n.properties.syncViews)||(n.properties.syncViews=[]),n.properties.syncViews.indexOf(r.id)<0&&n.properties.syncViews.push(r.id)),n))})}),e}function cm(e){let o={};return e.forEach(r=>{r.dependencies.forEach(t=>{Object.keys(o).indexOf(t)<0?o[t]=[r.id]:o[t].indexOf(r.id)<0&&o[t].push(r.id)})}),o}function dm(e){return e.reduce((o,r)=>(u(r,"properties.service.isView")&&o.push({id:r.itemId,dependencies:r.dependencies}),o),[])}function pm(e,o,r,t){return new Promise((n,s)=>{if(o){let i=Im(e,r,t),m=i.existingItemsDefs,a=i.existingItemInfos;Promise.all(m).then(c=>{let d=ds(c,a,r,t,!0),p=d.existingItemsDefs,g=d.existingItemInfos;Promise.all(p).then(h=>{ds(h,g,r,t,!1),us(e,r,t).then(n)},h=>s(P(h)))},c=>s(P(c)))}else n(null)})}function um(e,o,r,t){return new Promise(n=>{if(o){let s=[],i={},m=[];Object.keys(r.params).forEach(a=>{let c=r.params[a];c.itemId&&/[0-9A-F]{32}/i.test(a)&&(fs(r,a,c.itemId,c),s.push(A(c.itemId,t)),i[c.itemId]=a,m.indexOf(a)<0&&m.push(a))}),fm(s,i,t).then(()=>{us(m.map(a=>je(e,a)),r,t).then(n)})}else n(null)})}function fm(e,o,r){return new Promise(t=>{e.length>0?Promise.all(e).then(n=>{let s=[];n.forEach(i=>{let m=o[i.id];if(i&&m&&i.typeKeywords){let a=`source-${m}`,c=i.typeKeywords;if(c.indexOf(a)<0){c.push(a);let d={id:i.id,typeKeywords:c};s.push(V(d,r))}}}),s.length>0?Promise.all(s).then(t,()=>t(void 0)):t(void 0)},()=>t(void 0)):t(void 0)})}function us(e,o,r){return new Promise(t=>{let n=[],s=[],i=[],m=[];e.forEach(a=>{let c=o[a.itemId];if(c&&c.url&&c.itemId){if(a.item.type==="Feature Service"){let d=u(o,`params.${a.itemId}.enterpriseIDMapping`);Object.assign(o[a.itemId],Ut(Lt(a),c.url,c.itemId,d)),u(a,"properties.service.hasViews")&&Bt(a,o,!1)}s.indexOf(c.url)<0&&(n.push(a.item.type==="Feature Service"?B(c.url,{authentication:r}):A(c.itemId,r)),s.push(c.url),i.push(a.item.type),m.push(c.itemId))}}),n.length>0?Promise.all(n.map(a=>a.catch(c=>c))).then(a=>{if(Array.isArray(a)&&a.length>0){let c=[];a.forEach((d,p)=>{d.serviceItemId&&i[p]==="Feature Service"?Object.keys(o).forEach(g=>{let h=o[g];if(h.itemId&&h.itemId===d.serviceItemId){zt(o,g,d.spatialReference),xe(o,`${g}.defaultExtent`,d.fullExtent||d.initialExtent);let y=(d.layers||[]).map(w=>w.id),S=(d.tables||[]).map(w=>w.id);c.push(Vt(s[p],y.concat(S),r))}}):(i[p]==="Feature Service"||u(d,"response.error"))&&(o=lm(o,m[p]))}),c.length>0?Promise.all(c).then(d=>{d.forEach(p=>{p.forEach(g=>{Object.keys(o).forEach(h=>{if(o[h].itemId===g.serviceItemId){let y="";Object.keys(o).some(w=>{if(o[w].itemId===g.serviceItemId)return y=w,!0});let S=u(o,`params.${y}.enterpriseIDMapping`);S?Object.keys(S).forEach(w=>{S[w].toString()===g.id.toString()&&cs(o,h,w,g.fields)}):cs(o,h,g.id,g.fields)}})})}),t(null)}):t(null)}else t(null)}):t(null)})}function cs(e,o,r,t){let n=u(e,`${o}.layer${r}`);n&&t&&(n.fields=t)}function lm(e,o){if(o){let r="";Object.keys(e).some(t=>{if(e[t].itemId===o)return r=t,!0}),r!==""&&delete e[r]}return e}function ds(e,o,r,t,n){let s=[Promise.resolve(null)],i=[void 0];return e&&Array.isArray(e)&&e.forEach((m,a)=>{if(Array.isArray(m?.results)){let c,d=m.results;if(d.length===1)c=d[0];else if(d.length>1)c=d.reduce((p,g)=>p.created>g.created?p:g);else if(n&&o[a]){let p=o[a],g=`tags:source-${p.itemId} type:${p.type} owner:${r.user.username}`;s.push(ls(g,t)),i.push(o[a])}if(c){let p=o[a].itemId;p&&fs(r,p,c.id,c)}}}),{existingItemsDefs:s,existingItemInfos:i}}function fs(e,o,r,t){e[o]=Object.assign(e[o]||{},{def:Promise.resolve(I(t.type,r)),itemId:r,name:t.name,title:t.title,url:t.url,label:t.title})}function Im(e,o,r){let t=[],n=[];return e.forEach(s=>{if(s.item.type==="Group"){let i=o.user?.groups;Array.isArray(i)&&t.push(Promise.resolve({results:i.filter(m=>m.tags.indexOf(`source-${s.itemId}`)>-1||m.typeKeywords.indexOf(`source-${s.itemId}`)>-1).map(m=>(m.type="Group",m)),sourceId:s.itemId}))}else t.push(ls(`typekeywords:source-${s.itemId} type:${s.item.type} owner:${o.user.username}`,r));n.push({itemId:s.itemId,type:s.item.type})}),{existingItemsDefs:t,existingItemInfos:n}}function ls(e,o){return Ze({q:e,authentication:o,pagingParam:{start:1,num:100}})}function gm(e,o,r,t,n,s){let i=e.itemId;if(e.dependencies=e.dependencies||[],!t.hasOwnProperty(e.itemId)||!u(t[e.itemId],"def")){let m,a=f.Unknown,c;t[e.itemId]=t[e.itemId]||{},t[e.itemId].def=new Promise(d=>{let p=e.dependencies.reduce((y,S)=>{let w=u(t,`${S}.def`);return w&&y.push(w),y},[]),g=u(e,"properties.syncViews"),h=g&&g.length>0?g.reduce((y,S)=>{let w=u(t,`${S}.def`);return w&&y.push(w),y},p):p;Promise.all(h).then(()=>{let y=e.type;if(c=go[y],e.type==="Geoprocessing Service"&&(c=e.item.typeKeywords.indexOf("Web Tool")>-1?c:et),!c||c===et)throw c===et?(a=f.Ignored,new Error):(a=f.Failed,new Error);return $r(r,o)}).then(y=>(e.item.thumbnail=y,c.createItemFromTemplate(e,t,n,s))).then(async y=>{if(y.id==="")throw a=f.Failed,new Error("handled");if(m=y,m.item.item.url&&xe(t,i+".url",m.item.item.url),o.length>0){let S=m.id;if(e.type==="Form"){let w;if(o=o.filter(F=>F.filename.endsWith(".zip")?(w=F,!1):!0),w){let F=await ur(w.url,r);await Qe(F,S,n)}}return Nr(r,o,i,t.folderId,S,n,m.item,t)}else return Promise.resolve(null)}).then(()=>{d(m)}).catch(y=>{(!y||y.message!=="handled")&&s(i,a===f.Unknown?f.Failed:a,0),d(I(e.type))})})}return t[i].def}function hm(e){return e.reduce((o,r)=>o+(r.estimatedDeploymentCostFactor||1),0)}function Is(e,o,r){let t=e.filter(n=>n.groups&&n.groups.length>0);return Promise.all(t.map(n=>{let s=n.groups.reduce((i,m)=>Ue(u(o,`${m}.itemId`),i),[]);if(Eo(n)&&!u(o,"locationTracking.userIsOwner")){let i=u(n,"item.properties.trackViewGroup"),m=u(o,"locationTracking.owner");if(i&&m){let a=s.filter(c=>c===x(i,o));if(a.length!==s.length){let c=s.filter(d=>d!==i);return Promise.all([be(a,n.itemId,r,m),be(c,n.itemId,r)])}else return be(s,n.itemId,r,m)}}else return be(s,n.itemId,r)}))}function gs(e,o,r,t,n){let s=[];e&&(s=r.filter(c=>c.type!=="Group").map(c=>rt({originItemId:e,destinationItemId:c.id,relationshipType:"Solution2Item",authentication:t})));let i=Is(o,n,t),a=r.filter(c=>c.postProcess).reduce((c,d)=>{let p=go[d.type];return p&&p.postProcess&&c.push(p.postProcess(d.id,d.type,r,je(o,d.id),o,n,t)),c},[]);return Promise.all([i].concat(a,s))}function hs(e,o){e.sort((r,t)=>o.indexOf(r.itemId)-o.indexOf(t.itemId))}async function xs(e,o,r,t,n){n.storageVersion=xt(r);let s=n.storageAuthentication?n.storageAuthentication:t,i=n.templateDictionary??{},m=hr(r.templates,i);r.templates=m.deployTemplates,wm(n,o,i,t),n.additionalTypeKeywords&&(o.typeKeywords=[].concat(o.typeKeywords,n.additionalTypeKeywords));let a="thumbnail",c=Promise.resolve(null);if(!n.thumbnail&&n.thumbnailurl){a=vt(n.thumbnailurl)||a;let k=mt(n.thumbnailurl,"w=400");delete n.thumbnailurl,c=bt(k,a,s,[400])}Sm(r,i);let d=await Promise.all([wt("",t),St(t),So(t),Et(t),c]),[p,g,h,y,S]=d;!n.thumbnail&&S&&(n.thumbnail=S),r.templates=xm(r.templates),i.isPortal=p.isPortal,i.organization=Object.assign(i.organization||{},p),i.portalUrls=g.urls,i.portalBaseUrl=Em(p,t),i.user=h,i.user.folders=y.folders,i.user.groups=y.groups.filter(k=>k.owner===i.user.username);let w=await So(t);i.workflowBaseUrl=await gr(t,p,w.orgId),kt(p,h,i,r.templates);let F=At(i,t),R=Yt(o.title,i,t),Q=p.defaultExtent,Ie=Zt(Q,void 0,{wkid:4326},p.helperServices.geometry.url,t),$=await Promise.all([R,Ie,F]),[M,O,ne]=$,ge=M.folder.id;i.folderId=ge,i.solutionItemExtent=O.xmin+","+O.ymin+","+O.xmax+","+O.ymax,i.organization.defaultExtentBBox=[[O.xmin,O.ymin],[O.xmax,O.ymax]],i.locationTrackingEnabled&&xe(i,"locationTracking.userIsOwner",ne);let Y;if(!n.dontCreateSolutionItem){o.categories=[];let k={...Ve(o),type:"Solution",typeKeywords:["Solution"]};n.additionalTypeKeywords&&(k.typeKeywords=["Solution"].concat(n.additionalTypeKeywords)),k.thumbnail=n.thumbnail,Y=(await te(k,{},t,ge)).id,await nt({id:Y,authentication:t}),i.solutionItemId=Y,o.id=Y,o.tryitUrl=Ps(o.tryitUrl,e,Y),o.url=Ps(o.url,e,Y)}let ot=await ps(s.portal,e,r.templates,s,i,Y,t,n);if(r.templates=r.templates.map(k=>(k.itemId=u(i,`${k.itemId}.itemId`),k.dependencies=k.dependencies.map(he=>st(i,`${he}.itemId`,he)),k)),hs(r.templates,ot.map(k=>k.id)),await gs(Y,r.templates,ot,t,i),!n.dontCreateSolutionItem){o.typeKeywords=[].concat(o.typeKeywords,["Deployed"]);let k=o.typeKeywords.indexOf("Template");k>=0&&o.typeKeywords.splice(k,1),r.templates=r.templates.map(he=>ws(he)),Pm(m,r),r.templates=bm(r.templates,i),r.templates=yr(r.templates,i),o.data=x(r,i),i.params&&(o.data.params=i.params),await V(o,t,ge)}return o.id}function Pm(e,o){e.workflowManagedTemplates.forEach(r=>{o.templates.push(ws(r))})}function xm(e){return e.map(o=>{if(o.item){let r=o.item.typeKeywords||[];r.push("source-"+o.itemId),o.item.typeKeywords=r}return o})}function wm(e,o,r,t){return["title","snippet","description","tags"].forEach(n=>{e[n]=e[n]??o[n],e[n]&&(o[n]=e[n],r[n]=e[n])}),!e.thumbnailurl&&o.thumbnail&&(e.thumbnailurl=Lr(t.portal,o.id,o.thumbnail),delete o.thumbnail),e}function Sm(e,o){e.templates=e.templates.map(r=>{if(r.type==="Feature Service"){let t="params.";r=ys(r,"item.spatialReference.wkid",t,o),r=ys(r,"properties.service.spatialReference.wkid",t,o)}return r})}function ys(e,o,r,t){let n=u(e,o);return n&&typeof n=="string"&&n.indexOf(r)>-1&&E(e,o,x(n,t)),e}function Ps(e,o,r){let t;if(e&&e.indexOf(o)>-1){let n=new RegExp(o,"g");t=e.replace(n,r)}else t=e;return t}function Em(e,o){let r="https",t=u(e,"urlKey"),n=u(e,"customBaseUrl"),s=u(e,"portalHostname");return t&&n?`${r}://${t}.${n}`:s?`${r}://${s}`:o.portal.replace("/sharing/rest","")}function bm(e,o){let r=e.reduce((t,n)=>(n.type==="Group"&&t.push(n.itemId),t),[]);return Object.keys(o).forEach(t=>{let n=o[t].itemId;r.indexOf(n)>-1&&e.forEach(s=>{s.groups=s.groups.map(i=>i===t?n:i)})}),e}function ws(e){let o=["itemId","type","dependencies","groups"],r=Object.keys(e).filter(t=>o.indexOf(t)<0);return Pe(e,r),e}function Ss(e,o){return typeof e=="string"?Promise.all([A(e,o),H(e,o)]).then(([r,t])=>Oo({item:r,data:t})):Tm(e)?Oo(e):Promise.reject(P("getSolutionTemplateItem must be passed an item id or a model object"))}function Es(e,o,r){return e.jobId=e.jobId??o.id,e.title=e.title??o.title,e.snippet=e.snippet??o.snippet,e.description=e.description??o.description,e.tags=e.tags??o.tags,e.thumbnailurl=o.thumbnail?Ot(o.id,o.thumbnail,!1,r):null,e}function Tm(e){let o=!1,r=t=>t!=null&&typeof t!="string"&&!Array.isArray(t)&&typeof t=="object";return r(e)&&(o=["item","data"].reduce((t,n)=>(t&&(t=r(e[n])),t),!0)),o}function bs(e){let o=e.typeKeywords,r=!1;return e.type==="Solution"&&o.indexOf("Solution")>-1&&(o.indexOf("Template")>-1||o.indexOf("solutionTemplate")>-1)&&(r=!0),e.type==="Web Mapping Application"&&o.indexOf("hubSolutionTemplate")>-1&&(r=!0),r}async function Rd(e,o,r){if(!e)return Promise.reject(P("The Solution Template id is missing"));let t=r||{};t.progressCallback&&t.progressCallback(1,t.jobId);let n=t.storageAuthentication?t.storageAuthentication:o;return Ss(e,n).then(s=>bs(s.item)?Promise.all([Promise.resolve(s.item),Promise.resolve(s.data)]):Promise.reject(P(`${s.item.id} is not a Solution Template`))).then(s=>{let[i,m]=s,a=new it,c=Ve(i,a),d=m,p=c.id;return t=Es(t,c,n),pt(c),xs(p,c,d,o,t)}).then(s=>(t.progressCallback&&t.progressCallback(100,t.jobId),s),s=>(t.progressCallback&&t.progressCallback(1,t.jobId),Promise.reject(s))).catch(s=>{throw s})}export{ls as a,Rd as b};
|
package/dist/cdn/X6TYRAA2.js
DELETED
@@ -1,18 +0,0 @@
|
|
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.20250808 */
|
4
|
-
import a from"./QVNEJNZD.js";import{b as v}from"./G2NDHZIY.js";import{a as l,c as y,d as b,e as m}from"./OEYMQ44L.js";import"./462ZO5LH.js";import"./BRK66LT6.js";import"./BLU2VIKU.js";import"./7X3JKJVF.js";import"./TG27VP3D.js";import"./BFC5QXIT.js";import"./QDOQAXQ2.js";import"./AE5NEHRJ.js";import"./K55E3GAS.js";import"./LFVZUXMO.js";import"./TBDSM4RN.js";import"./OAFXVMDT.js";import"./LFS6Y6L2.js";import"./UNRNLKUZ.js";import"./WQRVOAAE.js";import"./TVST3VSU.js";import"./22WTPZXT.js";import"./VCTV42TG.js";import"./DUZSPRRF.js";import"./WGDVAD44.js";import{a as g}from"./KBSLLI3Y.js";import"./4L4JZKJ6.js";import"./TRGIVBAD.js";import{b as f}from"./MZB7PQ2R.js";import{B as o,C as u,h as c,i,n,w as d,x as p,y as h}from"./SHBMYV5S.js";import"./OIA7VIOQ.js";export default $arcgis.t(([_])=>{var w=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
|
-
*/.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:1rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}`,r=class extends h{constructor(){super(),this.authentication=void 0,this.solutionsCount=0,this.sortType="created",this.useLocalAppConfig=!1,this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=g({name:"solutions-deployed-shell",blocking:!0}),this._solutionsDeployedPanelRef=d(),this._authContextProvider=l({context:m}),this._isMobileContextProvider=l({context:b}),this._userSessionContextProvider=l({context:y}),this.filterRemoved=n(),this.tokenRefreshed=n(),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,authentication:0,solutionsCount:9,sortType:1,useLocalAppConfig:5,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=v),this.authentication||(console.log("auth not provided in solutions-deployed-shell...loading from app config"),this.authentication=new _(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this.authentication.init(),this.authentication.SignedIn||this.authentication.signIn()),this._authContextProvider.setValue(this.authentication),this.authentication.RestUserSession&&this._userSessionContextProvider.setValue(this.authentication.RestUserSession),this._setRefreshInterval()}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="border-override header-override background-override"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this.filterOpen&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}_getFilterPanel(){let e=this.filterOpen?{display:"block"}:"";return this.isMobile?i`<calcite-panel class="filter background-override" id=solutions-all-shell-panel-start style=${o(e)}><solutions-filter-panel @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-panel>`:i`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${o(e)} position=start><solutions-filter-panel @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-deployed-panel .agoSolutionsGroupId=${this.appConfig.primarySolutionsGroupId} .enterpriseSolutionsGroupId=${this.appConfig.agoBasedEnterpriseSolutionsGroupId} .locale=${this.appConfig.locale||"en"} .orgUrl=${this.appConfig.portalURL} @deployedCardsFetched=${this._updateSolutionCount} .portalUrl=${this.appConfig.portalURL} .sortType=${this.sortType} style=${o(e)} ${p(this._solutionsDeployedPanelRef)}></solutions-deployed-panel>`}_renderChips(){return this.filters.length>0?this.filters.map(e=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${e.displayValue} @calciteChipClose=${()=>this._chipClosed(e.displayValue)} .value=${e.displayValue}>${e.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByDateDeployed,sortType:"created"}];return i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??u}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"created":t=this._translations.sortByDateDeployed;break;case"relevance":t=this._translations.sortByRelevance;break;case"title":t=this._translations.sortByTitle;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._solutionsDeployedPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e){let t=this.filters.filter(s=>s.displayValue===e);this.filters=this.filters.filter(s=>s.displayValue!==e),this._solutionsDeployedPanelRef.value?.searchSolutions(),t.length>0&&this.filterRemoved.emit(t[0])}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){e.detail?("displayValue"in e.detail&&"type"in e.detail&&e.detail.type==="industry"&&(this.filters=this.filters.filter(t=>t.type!=="industry"),this.filters.push(e.detail)),this._solutionsDeployedPanelRef.value?.searchSolutions(e.detail)):(this.filters=[],this._solutionsDeployedPanelRef.value?.searchSolutions())}_setRefreshInterval(){let e=this._userSessionContextProvider.value,t=this._authContextProvider.value;if(e&&t){let s=(e.tokenExpires?.getTime()-Date.now())*.9;setInterval(async()=>{let a=await t?.refreshSession();if(a){this._userSessionContextProvider.setValue(a);let C=a?.token??"";this.tokenRefreshed.emit(C)}},s)}}};f("solutions-deployed-shell",r);return r},a)
|