@esri/solutions-components 1.1.0-next.20250910.1 → 1.1.0-next.20250911.2
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/{7LJV36QZ.js → 23T25PXM.js} +2 -2
- package/dist/cdn/{CWDC5M42.js → 2BTYUMLK.js} +2 -2
- package/dist/cdn/{SJIX367C.js → 2C7SCE4V.js} +2 -2
- package/dist/cdn/{EF3E56LB.js → 2DBFWM3J.js} +2 -2
- package/dist/cdn/{TOX2SKRM.js → 2GQADZED.js} +2 -2
- package/dist/cdn/{VLNFTRZ6.js → 2L7PEA7U.js} +1 -1
- package/dist/cdn/{6YWBMK5D.js → 2NFSMO4K.js} +2 -2
- package/dist/cdn/{OYSPAZBM.js → 2RMZE6TC.js} +2 -2
- package/dist/cdn/35OG34DW.js +4 -0
- package/dist/cdn/{J6NDCNWY.js → 3H2ONS2E.js} +2 -2
- package/dist/cdn/3QPGK5W4.js +18 -0
- package/dist/cdn/{OI2ZKFNI.js → 3QT7BIV3.js} +2 -2
- package/dist/cdn/{3QI4JEPT.js → 3QUP66X5.js} +2 -2
- package/dist/cdn/{D2TCEQDF.js → 3V7CDAW4.js} +2 -2
- package/dist/cdn/{OVTWAO3W.js → 3VW7GINP.js} +2 -2
- package/dist/cdn/{ZSDK7SSY.js → 423XDLXY.js} +2 -2
- package/dist/cdn/{QLMPHXBF.js → 46TLWAGR.js} +2 -2
- package/dist/cdn/{JMR4PIJS.js → 4EIOWWRF.js} +2 -2
- package/dist/cdn/{2IXAGNUN.js → 4FKMIMIE.js} +1 -1
- package/dist/cdn/{TQG5BBF5.js → 4FXTY4UZ.js} +1 -1
- package/dist/cdn/{2VLHEB7B.js → 4G6R7HJV.js} +2 -2
- package/dist/cdn/{IVOYSFW7.js → 4GLVTBLS.js} +2 -2
- package/dist/cdn/{W6IU7RKO.js → 4LG3PE5J.js} +1 -1
- package/dist/cdn/{C5B2ZQXT.js → 4NZC636H.js} +2 -2
- package/dist/cdn/{Y5OHDPVW.js → 4Q57777R.js} +1 -1
- package/dist/cdn/{OHPSPQ27.js → 4WAESXJG.js} +2 -2
- package/dist/cdn/{XIS4IX7Q.js → 4WZM547K.js} +2 -2
- package/dist/cdn/{MJRPGRZ3.js → 4XEBKLU2.js} +2 -2
- package/dist/cdn/{LXPANUEN.js → 534QDBAQ.js} +2 -2
- package/dist/cdn/{H2IPXFDN.js → 5EMTFT4K.js} +2 -2
- package/dist/cdn/{EZPA6HBN.js → 5F6FAGVF.js} +2 -2
- package/dist/cdn/{AFZSJ23K.js → 5FYALSB7.js} +2 -2
- package/dist/cdn/{YQQ3RC2P.js → 5IUFSIDX.js} +2 -2
- package/dist/cdn/{64SUMFOH.js → 5MDH25UU.js} +1 -1
- package/dist/cdn/{GVDGJ6AX.js → 5PWMGYZG.js} +1 -1
- package/dist/cdn/{FWNXDKA6.js → 5V2TKTC3.js} +2 -2
- package/dist/cdn/{ZREIGXLA.js → 5W2FD4M5.js} +2 -2
- package/dist/cdn/{5EWOPJVU.js → 5YLPXC3Y.js} +2 -2
- package/dist/cdn/{3HQ3OQQX.js → 625F6UTS.js} +2 -2
- package/dist/cdn/{KULPDVRS.js → 652RXIXT.js} +2 -2
- package/dist/cdn/{UEAG7XEG.js → 6AGEFCYB.js} +2 -2
- package/dist/cdn/{F5XOAHEM.js → 6D4HQ7M2.js} +1 -1
- package/dist/cdn/{ZLSU5YUQ.js → 6EAV5JJ4.js} +2 -2
- package/dist/cdn/{OMSKPLQP.js → 6G2PI2MU.js} +2 -2
- package/dist/cdn/{VYNI2P33.js → 6HEFYILX.js} +1 -1
- package/dist/cdn/{X3YFFDLR.js → 6JIZ4XBP.js} +2 -2
- package/dist/cdn/{OYRE33AG.js → 7B2LY6UV.js} +2 -2
- package/dist/cdn/{QDFVZYQ3.js → 7EYIHL3E.js} +2 -2
- package/dist/cdn/{OZVO2DEL.js → 7F3GV2VG.js} +2 -2
- package/dist/cdn/{D66VHSAD.js → 7F63WMPE.js} +2 -2
- package/dist/cdn/{SOGRD2JJ.js → 7JJ55RBG.js} +2 -2
- package/dist/cdn/7L2K4CTR.js +4 -0
- package/dist/cdn/{7JZ2YFB2.js → 7L4FXHUD.js} +2 -2
- package/dist/cdn/{IBZHVUY2.js → 7MKK4E56.js} +2 -2
- package/dist/cdn/{67P43IKY.js → 7NH4HSMI.js} +2 -2
- package/dist/cdn/{7CYCM3Z5.js → 7QDQDNIG.js} +2 -2
- package/dist/cdn/{BD6GZ2TK.js → A7EIQKXY.js} +2 -2
- package/dist/cdn/{2LOCTUXZ.js → A7KL7OUO.js} +2 -2
- package/dist/cdn/{OFMEBUEX.js → A7UXYWNK.js} +2 -2
- package/dist/cdn/{AXFT4FGB.js → AD4A4N4U.js} +2 -2
- package/dist/cdn/{426ED2VJ.js → AIB25UJ5.js} +2 -2
- package/dist/cdn/{OXIH74YN.js → AJIMU7O4.js} +2 -2
- package/dist/cdn/{RZPHHUX2.js → AR7S42BQ.js} +2 -2
- package/dist/cdn/{NKC2ZM3A.js → ARM3EG66.js} +2 -2
- package/dist/cdn/{FEXMIZO4.js → AS4N6LTM.js} +2 -2
- package/dist/cdn/{HOLLAORG.js → ATB53ZKP.js} +2 -2
- package/dist/cdn/{WLWLCWMU.js → AWMWRRNB.js} +2 -2
- package/dist/cdn/{NTNYKARB.js → AWMXLOE7.js} +2 -2
- package/dist/cdn/{5BTS2MRF.js → AWZ2L6P4.js} +2 -2
- package/dist/cdn/{L22D4L2S.js → AXK7QP5J.js} +2 -2
- package/dist/cdn/{NLCLVI26.js → AYKWMJXC.js} +2 -2
- package/dist/cdn/{FE5BQ7AH.js → B3TNANEX.js} +2 -2
- package/dist/cdn/{EB5CVOFV.js → B44OKJQC.js} +2 -2
- package/dist/cdn/{3C2BNZBL.js → BE4VGAQ6.js} +2 -2
- package/dist/cdn/{YPZLHSNR.js → BGLA6JTF.js} +1 -1
- package/dist/cdn/{IY2VNAQZ.js → BGUPQWXL.js} +1 -1
- package/dist/cdn/{O52L4O4U.js → BHPA7WHD.js} +2 -2
- package/dist/cdn/{TAKTIID3.js → BU6CLZMJ.js} +1 -1
- package/dist/cdn/{24XDWYKV.js → BWJW6NOF.js} +2 -2
- package/dist/cdn/{AYQL2HEP.js → C5X2ZRMN.js} +2 -2
- package/dist/cdn/{K6FVMKPD.js → C7LU5E2N.js} +2 -2
- package/dist/cdn/{HYUXCZG4.js → CC2IBTVB.js} +1 -1
- package/dist/cdn/{BWSOYGPQ.js → CF4XXPBR.js} +2 -2
- package/dist/cdn/{3EWPRYKN.js → CTUSQXMB.js} +2 -2
- package/dist/cdn/{6GXS32LZ.js → DBLPNJCC.js} +3 -3
- package/dist/cdn/{DGPEVIQZ.js → DG6M3ZU4.js} +2 -2
- package/dist/cdn/{MWODBSGD.js → DGQPGBON.js} +2 -2
- package/dist/cdn/{JO4ATJDW.js → DHLILBFE.js} +2 -2
- package/dist/cdn/{PNUG753I.js → DIPB3EE3.js} +2 -2
- package/dist/cdn/{KJSQKKHT.js → DJIVAYXP.js} +4 -4
- package/dist/cdn/{EAGN7LMP.js → DRDHC6JP.js} +2 -2
- package/dist/cdn/{77ZXTY75.js → DSTSUTNU.js} +2 -2
- package/dist/cdn/{6SLEHMMB.js → DTLIRFON.js} +2 -2
- package/dist/cdn/{4PVGCI2U.js → DUIBMXZM.js} +2 -2
- package/dist/cdn/{Q7AGL4LT.js → DVAGFDDK.js} +2 -2
- package/dist/cdn/{3QPT6M3D.js → DWTJ4XUX.js} +2 -2
- package/dist/cdn/{XFQXV5YO.js → E5LWTUJM.js} +2 -2
- package/dist/cdn/{ZC2PXZAT.js → ECCUBDV6.js} +2 -2
- package/dist/cdn/{CFCBEIMW.js → EHOYB4HE.js} +2 -2
- package/dist/cdn/{J7AAPKZJ.js → EIJFIHHL.js} +2 -2
- package/dist/cdn/{SSZWLLF3.js → ELLO2MAY.js} +2 -2
- package/dist/cdn/{A34QXM55.js → ET7BFDTD.js} +1 -1
- package/dist/cdn/{XAJSOTJI.js → EVH6ZOGW.js} +2 -2
- package/dist/cdn/{52G3RSHQ.js → EXUFMUTQ.js} +2 -2
- package/dist/cdn/{H7QP3F3T.js → EYWF2YAH.js} +2 -2
- package/dist/cdn/{LRN6EVKD.js → F2BWJE75.js} +2 -2
- package/dist/cdn/{RT55EC2Q.js → FDUGCC34.js} +2 -2
- package/dist/cdn/{4DMRVREN.js → FH4WJC25.js} +2 -2
- package/dist/cdn/{PLPUZFFH.js → FLYG2DDR.js} +2 -2
- package/dist/cdn/{7MZ2LMEC.js → FMNW55YT.js} +2 -2
- package/dist/cdn/{B5M5JEFE.js → FN75WUH2.js} +2 -2
- package/dist/cdn/{RQRQO2S5.js → FOKWC4YX.js} +2 -2
- package/dist/cdn/{JTLWXL36.js → FQIN5IN3.js} +2 -2
- package/dist/cdn/{SNEHQV5Z.js → FUJF2Z35.js} +2 -2
- package/dist/cdn/{JVA5DL47.js → FVW6IAZX.js} +2 -2
- package/dist/cdn/{RB3GSXDR.js → G763EUK4.js} +2 -2
- package/dist/cdn/{VNHCIW42.js → GAI6NOBN.js} +2 -2
- package/dist/cdn/{NCKNYJ6S.js → GB6MUB2B.js} +2 -2
- package/dist/cdn/{5IQCZZPM.js → GBL74D5O.js} +2 -2
- package/dist/cdn/{472ZZDGS.js → GGUV3WL7.js} +2 -2
- package/dist/cdn/{VAFUM6YI.js → GQCWPPLN.js} +2 -2
- package/dist/cdn/{ALMIPQAJ.js → GUDOYAJ4.js} +2 -2
- package/dist/cdn/{NRPXKLIZ.js → GUZFVIC6.js} +2 -2
- package/dist/cdn/{IGYVYWZ5.js → GWPT2ICC.js} +2 -2
- package/dist/cdn/{VGRZ2ZPQ.js → HAG4JRWN.js} +2 -2
- package/dist/cdn/{BZ7I7OVA.js → HAGL5MC2.js} +2 -2
- package/dist/cdn/{HLLCSJ6W.js → HASJRYAV.js} +2 -2
- package/dist/cdn/{K3VFJGE6.js → HF2OV5H6.js} +2 -2
- package/dist/cdn/{CFTNHNDO.js → HF4ZVPTQ.js} +2 -2
- package/dist/cdn/{KJIY2VBN.js → HGB2ZKH5.js} +1 -1
- package/dist/cdn/{YE4M27FZ.js → HK6RVKL5.js} +2 -2
- package/dist/cdn/{XA3JYF7M.js → HM7C4ICO.js} +2 -2
- package/dist/cdn/{E2DTA6HV.js → HVQVHADU.js} +2 -2
- package/dist/cdn/{6CD72XGX.js → HWRTCJII.js} +2 -2
- package/dist/cdn/{ILTZCBGN.js → HXWR5OEJ.js} +2 -2
- package/dist/cdn/{UO6VP3BI.js → IABTIHGI.js} +2 -2
- package/dist/cdn/{DKGSZNT3.js → IAH236ZP.js} +2 -2
- package/dist/cdn/{DHDWWTTV.js → IDITN77F.js} +1 -1
- package/dist/cdn/{454AAUCM.js → IF7UHJAR.js} +1 -1
- package/dist/cdn/{SEMZSBY4.js → IOLMZX66.js} +2 -2
- package/dist/cdn/{CRN3T3KQ.js → IVUTQ2WB.js} +2 -2
- package/dist/cdn/{2IPTPDJJ.js → IYIXMAGT.js} +2 -2
- package/dist/cdn/IYPM2CF6.js +4 -0
- package/dist/cdn/{DI4ESMTW.js → J2RSNIGV.js} +2 -2
- package/dist/cdn/J67LB5D3.js +4 -0
- package/dist/cdn/{2PSI6SNZ.js → J7O5VJDT.js} +1 -1
- package/dist/cdn/{ZS3JL4YL.js → JCX7NDVY.js} +2 -2
- package/dist/cdn/{4FUL4LTQ.js → JOJEPUUR.js} +2 -2
- package/dist/cdn/{OGLOID67.js → JQJTOKRA.js} +2 -2
- package/dist/cdn/{IRFZHAWE.js → JRCPPBWZ.js} +2 -2
- package/dist/cdn/{RWNP44AQ.js → JU4FWB4Y.js} +2 -2
- package/dist/cdn/{DPYO2Y27.js → JWBPC5LQ.js} +2 -2
- package/dist/cdn/{OVBCAQZR.js → JYVVTI7Y.js} +2 -2
- package/dist/cdn/{J7DARDRT.js → K4IX2BB7.js} +2 -2
- package/dist/cdn/{LKAK2JPD.js → K7M5CHTQ.js} +1 -1
- package/dist/cdn/{TTYNFOJV.js → KE7B6EJ7.js} +2 -2
- package/dist/cdn/{SJ5QMMOX.js → KGCOTPXS.js} +2 -2
- package/dist/cdn/{CJN7MLHV.js → KJVRMIBD.js} +2 -2
- package/dist/cdn/{RT6VAK3A.js → KLRHMKZS.js} +2 -2
- package/dist/cdn/{7M6LUBEJ.js → KNPOCWWF.js} +2 -2
- package/dist/cdn/KQXXZPWB.js +4 -0
- package/dist/cdn/{RBABITUZ.js → KVUHCDCE.js} +2 -2
- package/dist/cdn/{GUX67N3E.js → KWNHBLCT.js} +2 -2
- package/dist/cdn/{GCCIFJAK.js → L36IZTJY.js} +2 -2
- package/dist/cdn/{WY7U574O.js → L3LZPYIH.js} +2 -2
- package/dist/cdn/{PNSYGT53.js → L3QYFMKB.js} +2 -2
- package/dist/cdn/{7KL6Q3B3.js → L5UT6SUW.js} +1 -1
- package/dist/cdn/{ZGMU4B46.js → L6ZAMSWA.js} +2 -2
- package/dist/cdn/{K6B5YEY5.js → LEA72LQK.js} +2 -2
- package/dist/cdn/{36FA65ZE.js → LOFOYFYB.js} +2 -2
- package/dist/cdn/{DDZZKSOZ.js → LOYE4TGK.js} +2 -2
- package/dist/cdn/{PT3SBFQX.js → LPL2LQ5B.js} +2 -2
- package/dist/cdn/{RY5VWPZ5.js → LSBH2RQL.js} +2 -2
- package/dist/cdn/{AMIVZN2B.js → LVIAV5QR.js} +2 -2
- package/dist/cdn/{EJP3F75A.js → LXTE5TEF.js} +2 -2
- package/dist/cdn/{3VAICNR3.js → LYTMNBSS.js} +2 -2
- package/dist/cdn/{RQ2PBNMJ.js → LZXSNZEG.js} +2 -2
- package/dist/cdn/{X6HPEDUR.js → M33KJNWN.js} +2 -2
- package/dist/cdn/{6NKOAWXU.js → M5DODFXN.js} +1 -1
- package/dist/cdn/{Y6MX2Z6A.js → M7CHTU5E.js} +2 -2
- package/dist/cdn/{G7OIXOFV.js → MCPYVHWV.js} +2 -2
- package/dist/cdn/{FFF6NXJD.js → MEZPIRT2.js} +2 -2
- package/dist/cdn/{VJS6GYQO.js → MNBSCGTH.js} +2 -2
- package/dist/cdn/MNG4ZG3D.js +18 -0
- package/dist/cdn/{JFN7WHFQ.js → MP2SEKNA.js} +2 -2
- package/dist/cdn/{PNTGDETM.js → MRIJEWVG.js} +2 -2
- package/dist/cdn/{JDP7MA56.js → MW3KDKSA.js} +2 -2
- package/dist/cdn/{E32I3A4X.js → N3EJWHNC.js} +2 -2
- package/dist/cdn/{5SFAJGR5.js → NBSBX63J.js} +2 -2
- package/dist/cdn/{YMRV4C4R.js → ND2PYDKI.js} +1 -1
- package/dist/cdn/{TTEW4AOW.js → NEJI5QW6.js} +2 -2
- package/dist/cdn/{NRDV6TV5.js → NFIBYZAV.js} +2 -2
- package/dist/cdn/NG3RIAIG.js +4 -0
- package/dist/cdn/{H6BZZUHP.js → NHGKXIPR.js} +2 -2
- package/dist/cdn/{VS7AF6HU.js → NLAFKJ2E.js} +2 -2
- package/dist/cdn/{EH76FIZ2.js → NQA4IZWB.js} +2 -2
- package/dist/cdn/{PVCDHV3Q.js → NRRM4ZKX.js} +2 -2
- package/dist/cdn/{5C6NWJJO.js → NRZOM7WH.js} +2 -2
- package/dist/cdn/{VKAHO2YV.js → NTTQO4LF.js} +2 -2
- package/dist/cdn/NXOVSG5D.js +18 -0
- package/dist/cdn/{BHKDDXVE.js → O5SXHKPM.js} +2 -2
- package/dist/cdn/{DBZ3HZRZ.js → O6UST32T.js} +2 -2
- package/dist/cdn/{JP2R2KF2.js → O724AAAL.js} +1 -1
- package/dist/cdn/OB4UZUS3.js +18 -0
- package/dist/cdn/OF2TUOXE.js +18 -0
- package/dist/cdn/{U7HGC4JT.js → OFLFBFEA.js} +2 -2
- package/dist/cdn/{LIA47KT3.js → OHH4JYRI.js} +2 -2
- package/dist/cdn/{ALWC3AYZ.js → OKIDHS5M.js} +2 -2
- package/dist/cdn/{65CWROZ6.js → OQS7FURR.js} +2 -2
- package/dist/cdn/{SAQVIWXI.js → OWZPVOBY.js} +1 -1
- package/dist/cdn/{KW2B2GLB.js → OZYNCKYO.js} +2 -2
- package/dist/cdn/{VO2FH6DP.js → P4ODMYQB.js} +2 -2
- package/dist/cdn/{52TXHALD.js → P4OEWYQH.js} +2 -2
- package/dist/cdn/{ZBUVQGAH.js → P7YRW4KH.js} +2 -2
- package/dist/cdn/PCSVUFBN.js +18 -0
- package/dist/cdn/{MWP27FBT.js → PEFVFAUS.js} +2 -2
- package/dist/cdn/{Y3U3ULUT.js → PEYOKBZS.js} +2 -2
- package/dist/cdn/{CXA5LFAX.js → PFRBRXPQ.js} +2 -2
- package/dist/cdn/{VS3572WW.js → PL2XGMQD.js} +2 -2
- package/dist/cdn/{ZOPTP7GT.js → PRO5YTTB.js} +2 -2
- package/dist/cdn/{7N5GEORH.js → PRSEXVB4.js} +2 -2
- package/dist/cdn/{AHZSIQ7Z.js → PTTXJVNC.js} +2 -2
- package/dist/cdn/{2LG355WX.js → PYTMYLTL.js} +2 -2
- package/dist/cdn/{VU3FNVM6.js → QGW2FJDB.js} +2 -2
- package/dist/cdn/QJ4JOKJB.js +4 -0
- package/dist/cdn/{K375JPS4.js → QLKWPXJR.js} +2 -2
- package/dist/cdn/{MOFOFYOT.js → QO6TTYYN.js} +2 -2
- package/dist/cdn/{YCN22YB4.js → QOAI6EA2.js} +2 -2
- package/dist/cdn/{I2AUDNAV.js → QQGMGBKF.js} +1 -1
- package/dist/cdn/{YVRJE5RW.js → QZ5JMA34.js} +2 -2
- package/dist/cdn/{CWAKQBUB.js → QZ5TADRQ.js} +2 -2
- package/dist/cdn/{3T66KYR3.js → QZLIH56L.js} +2 -2
- package/dist/cdn/{PTEIJ66G.js → R5S5NMIA.js} +2 -2
- package/dist/cdn/{YCTSBMBF.js → R6UKAFVG.js} +2 -2
- package/dist/cdn/{RC77QGTW.js → R6YCPKFS.js} +2 -2
- package/dist/cdn/{XL7ATNQ4.js → RH5HB2BT.js} +2 -2
- package/dist/cdn/{OSEYEALS.js → RKCK7RBY.js} +2 -2
- package/dist/cdn/{EHGR3CQY.js → RSXSF7MJ.js} +2 -2
- package/dist/cdn/RUUJR35M.js +4 -0
- package/dist/cdn/{L2AKLTJL.js → RX7FCRXL.js} +2 -2
- package/dist/cdn/{AQMYQ62J.js → RYE2NS44.js} +1 -1
- package/dist/cdn/{V23K42RX.js → S3T6DKUX.js} +2 -2
- package/dist/cdn/{26CPSMP6.js → S4J4KHRF.js} +2 -2
- package/dist/cdn/{DAYUDBBU.js → S4SYUQWF.js} +2 -2
- package/dist/cdn/{ZWGOMFAN.js → S4TIHVZI.js} +2 -2
- package/dist/cdn/{JMBSVZWY.js → SCMDZPD5.js} +2 -2
- package/dist/cdn/{7WEYWMO5.js → SCVZQMZ5.js} +2 -2
- package/dist/cdn/{5DNBCIX3.js → SCY6BW5I.js} +2 -2
- package/dist/cdn/{EGRFOXJZ.js → SFDBXOOG.js} +2 -2
- package/dist/cdn/{HBDMIGI6.js → SHYRK7HE.js} +1 -1
- package/dist/cdn/{ZPY26UEA.js → SI2RCG3D.js} +2 -2
- package/dist/cdn/{63YTEXJK.js → SIOGNWC6.js} +2 -2
- package/dist/cdn/{CK4PZ242.js → SJMKD3XJ.js} +1 -1
- package/dist/cdn/{SFW7USRQ.js → SJVWZRHI.js} +2 -2
- package/dist/cdn/{6NR6L4K2.js → SNRZBSNS.js} +2 -2
- package/dist/cdn/{57E326AG.js → SPZFZLTC.js} +1 -1
- package/dist/cdn/{TUXPSW3B.js → SSJKYZYV.js} +2 -2
- package/dist/cdn/{YXC22GE4.js → ST2OKDZ4.js} +2 -2
- package/dist/cdn/{YSL4FVPV.js → SW6PCDQR.js} +2 -2
- package/dist/cdn/{N5GLWQV2.js → SXRWHCQ4.js} +2 -2
- package/dist/cdn/{7PDOAR65.js → TCFCLE53.js} +2 -2
- package/dist/cdn/{EZ5EERHG.js → TCOUPEPD.js} +2 -2
- package/dist/cdn/{LYYQTMEF.js → TD3XU55Q.js} +1 -1
- package/dist/cdn/{3M3MLSW6.js → TEVDJQRA.js} +1 -1
- package/dist/cdn/{IF5GNN6U.js → TGO42WNV.js} +2 -2
- package/dist/cdn/{GH76KR7G.js → TJDQLK7G.js} +2 -2
- package/dist/cdn/{R6KKTBGT.js → U5FOT3KO.js} +2 -2
- package/dist/cdn/{36UDL2ZS.js → U7CERHPP.js} +4 -4
- package/dist/cdn/{K3BYV3AU.js → UJRSZU3W.js} +2 -2
- package/dist/cdn/{OYWM7I56.js → UL4K3TEK.js} +2 -2
- package/dist/cdn/{FXYSPMOA.js → UMX3ZFNX.js} +2 -2
- package/dist/cdn/{VEOZ3VQK.js → UN5RJRL2.js} +2 -2
- package/dist/cdn/{D7RQ73KT.js → UQFPIFA7.js} +2 -2
- package/dist/cdn/UQY4RWWT.js +4 -0
- package/dist/cdn/{GMUDKQC5.js → V3AZDL3Q.js} +2 -2
- package/dist/cdn/{257ICJ4X.js → V3SHEJRF.js} +2 -2
- package/dist/cdn/{IMDTBX4T.js → V5WZRUNS.js} +2 -2
- package/dist/cdn/{YUO6GWE5.js → V7R32KZG.js} +1 -1
- package/dist/cdn/{EHKGAJSZ.js → VCF5ECOP.js} +2 -2
- package/dist/cdn/{OJKL6G37.js → VJR7P6BV.js} +2 -2
- package/dist/cdn/{OEOCZKFB.js → VKWASFD4.js} +2 -2
- package/dist/cdn/{CB55XZJQ.js → VNIUIIFM.js} +2 -2
- package/dist/cdn/{PPVKMCVO.js → VNPSHP4E.js} +2 -2
- package/dist/cdn/VNWH6JZ2.js +4 -0
- package/dist/cdn/VP7WLWWE.js +18 -0
- package/dist/cdn/{ARRRTMLK.js → VQ5K2ZRH.js} +2 -2
- package/dist/cdn/{KXHAGJOQ.js → VSN3MCJF.js} +2 -2
- package/dist/cdn/{GMHJTSRQ.js → VUPSMPY2.js} +2 -2
- package/dist/cdn/{5JVCGDPQ.js → W57M64Z5.js} +2 -2
- package/dist/cdn/{UQJYI3X6.js → WD4HSNVO.js} +2 -2
- package/dist/cdn/{RSZ2NCUH.js → WEQSM7IC.js} +2 -2
- package/dist/cdn/{FB7MM7LH.js → WF3JXYL3.js} +2 -2
- package/dist/cdn/{HZRR2DE4.js → WFZT3XAI.js} +2 -2
- package/dist/cdn/{IKXOD3CO.js → WG2RTAQY.js} +2 -2
- package/dist/cdn/{XQL7IUUB.js → WRBC72YE.js} +2 -2
- package/dist/cdn/{TIHZ3PKG.js → WSRA6XTH.js} +1 -1
- package/dist/cdn/X377VEMR.js +4 -0
- package/dist/cdn/{4LONNHGH.js → X4FO5WY5.js} +2 -2
- package/dist/cdn/{E2TZF6GN.js → X63Q5IVG.js} +2 -2
- package/dist/cdn/{UMAJGM6V.js → XCAWHB7I.js} +1 -1
- package/dist/cdn/{KMBBYQRC.js → XEB4CP6T.js} +2 -2
- package/dist/cdn/{MB7QV4LW.js → XGGTGACU.js} +2 -2
- package/dist/cdn/{5BI6EWEY.js → XIMVS4MY.js} +1 -1
- package/dist/cdn/{DFBYMVWV.js → XKVQI6NZ.js} +2 -2
- package/dist/cdn/{VCXJUE47.js → XLVGX5QG.js} +2 -2
- package/dist/cdn/{WCV52AIH.js → XMEJ6JVV.js} +2 -2
- package/dist/cdn/{H6UYY32H.js → XTWIZPJI.js} +2 -2
- package/dist/cdn/{MQCBZXVN.js → XXDDHD56.js} +2 -2
- package/dist/cdn/{OLTYFDCI.js → XXR767KI.js} +1 -1
- package/dist/cdn/{KIYBMSMM.js → Y435VSDF.js} +2 -2
- package/dist/cdn/{V6C2KNEL.js → Y4M5C6YU.js} +2 -2
- package/dist/cdn/{J3I6KA34.js → Y52HMXKU.js} +2 -2
- package/dist/cdn/{62GBADLT.js → YAQDLWIH.js} +2 -2
- package/dist/cdn/{7O45FV6E.js → YCRRPNZJ.js} +2 -2
- package/dist/cdn/{S3MKKCSX.js → YDEVYMZ2.js} +1 -1
- package/dist/cdn/{AIPTF2E4.js → YH5LZKSP.js} +1 -1
- package/dist/cdn/{ISA2EK4Z.js → YIW2NPTV.js} +2 -2
- package/dist/cdn/{NDKNCPOM.js → YKFCUCEU.js} +2 -2
- package/dist/cdn/{ZR5APICE.js → YLSDC4BQ.js} +2 -2
- package/dist/cdn/{NZECTCEX.js → YMO5WE7P.js} +2 -2
- package/dist/cdn/{YZW4EM7C.js → YMU6CVCY.js} +2 -2
- package/dist/cdn/{7GL4OVRO.js → YPTI53FA.js} +2 -2
- package/dist/cdn/{MIATNONP.js → YU573OZL.js} +2 -2
- package/dist/cdn/{T6J2DJ63.js → YVSHOV3G.js} +2 -2
- package/dist/cdn/{L5XIXH4K.js → YX6ITC3Y.js} +2 -2
- package/dist/cdn/{BG2K5X3H.js → YZU3OLOE.js} +2 -2
- package/dist/cdn/{WB4PSXFM.js → ZAQCMLF4.js} +2 -2
- package/dist/cdn/{MUGNITEU.js → ZC2BQBII.js} +2 -2
- package/dist/cdn/ZE2ISXNN.js +4 -0
- package/dist/cdn/{NPXU54CX.js → ZEDQ72KB.js} +2 -2
- package/dist/cdn/{VXBJE6HZ.js → ZF42G2JC.js} +2 -2
- package/dist/cdn/{ZZ7KZR4E.js → ZFMWIEGQ.js} +1 -1
- package/dist/cdn/{WYH2N6RJ.js → ZGOLN2TZ.js} +2 -2
- package/dist/cdn/{NBJ3DMXN.js → ZHBZCVEI.js} +2 -2
- package/dist/cdn/{NDSR2M5D.js → ZHIF66KC.js} +3 -3
- package/dist/cdn/ZJ7VEBUB.js +18 -0
- package/dist/cdn/{CKU2K5WH.js → ZMNVUH2F.js} +2 -2
- package/dist/cdn/{FYSDJ4NL.js → ZTZWSNFW.js} +2 -2
- package/dist/cdn/{QQW3LB3L.js → ZVEIDXJX.js} +2 -2
- package/dist/cdn/ZYLLH7BH.js +18 -0
- package/dist/cdn/{PWIMTC4R.js → ZZ6EPPLQ.js} +2 -2
- 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.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.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-configure-titles/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/interfaces.js +8 -8
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +6 -6
- 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 → publicNotificationContext.js} +4 -22
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +725 -156
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +28 -24
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +25 -21
- 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 +50 -41
- 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.d.ts +9 -1
- package/dist/components/public-notification/customElement.js +53 -34
- package/dist/components/refine-selection/customElement.js +39 -37
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +2 -2
- package/dist/components/solution-deployed-card/customElement.js +10 -10
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +10 -10
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +2 -2
- 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 +2 -2
- package/dist/components/solution-snapshot-gallery/customElement.js +4 -4
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +2 -2
- 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 +2 -2
- 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-deploy-app/customElement.js +2 -2
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +9 -9
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +2 -2
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/interfaces.d.ts +7 -0
- package/dist/utils/publicNotificationContext.d.ts +3 -6
- package/package.json +1 -2
- package/dist/cdn/42MQKQDN.js +0 -4
- package/dist/cdn/5MTRZP55.js +0 -4
- package/dist/cdn/63E3NLUC.js +0 -18
- package/dist/cdn/ASKCSZXH.js +0 -18
- package/dist/cdn/AT6CT66J.js +0 -4
- package/dist/cdn/BVKEGDHM.js +0 -18
- package/dist/cdn/D3TI4W6H.js +0 -4
- package/dist/cdn/FQGC3DD7.js +0 -4
- package/dist/cdn/GFJE75G6.js +0 -18
- package/dist/cdn/HILUPNGJ.js +0 -4
- package/dist/cdn/J2MYLP36.js +0 -4
- package/dist/cdn/M3WB37IV.js +0 -18
- package/dist/cdn/MD6LF7JL.js +0 -18
- package/dist/cdn/MSBDWOS3.js +0 -4
- package/dist/cdn/O2ACUDA6.js +0 -18
- package/dist/cdn/OLJKFSN7.js +0 -4
- package/dist/cdn/ROH4HEPI.js +0 -18
- package/dist/cdn/RZJ7XEAA.js +0 -4
- package/dist/cdn/VYZ6YKJF.js +0 -18
- package/dist/cdn/Y2TXCMKL.js +0 -4
- package/dist/cdn/YNRVJINU.js +0 -4
- package/dist/chunks/index.js +0 -576
- package/dist/utils/publicNotificationStore.d.ts +0 -8
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{e as l,f as o}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{e as l,f as o}from"./3QT7BIV3.js";import{d as g}from"./K7M5CHTQ.js";var p=async(s,e)=>{s.slug&&!s.slug.startsWith(`${s.orgUrlKey}|`)&&(s.slug=g(s.slug,s.orgUrlKey));let{id:r,slug:u}=s,a=r?{slug:u,existingId:r}:{slug:u};return s.slug=await o(a,e),s.typeKeywords=l(s.typeKeywords,s.slug),s};export{p as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as d}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{b as d}from"./LZXSNZEG.js";import{D as c,E as l,G as h,h as o,i as a,o as r}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var u=o`:host{display:block}.chat-container{display:flex;flex-direction:column;gap:10px;max-width:400px;background-color:#d3d3d3;border-radius:10px;padding:10px}.chat-panel{--calcite-panel-background-color: "blue"}.chat-messages{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:300px;max-height:300px;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;width:90%;--calcite-card-background-color: "blue";--calcite-card-border-color: "blue";color:#fff}.system-message{align-self:flex-start;background:var(--calcite-ui-foreground-1);border-radius:8px;width:90%;--calcite-card-background-color: "white";--calcite-card-border-color: "white"}.message-content{padding:0}.chat-input{display:flex;gap:8px}`,n=class extends l{constructor(){super(...arguments),this.handleSendMessage=async()=>{if(!this.inputRef?.value.trim())return;this._isLoading=!0;let e=this.inputRef.value.trim(),i={message:e};if(this.conversationStore.conversationId!==null){if(i={message:e,conversationId:this.conversationStore.conversationId},this.token){let s=await this.requestAIServer(i,this.token);this.loopRequest(s,this.token)}}else if(this.token){let s=await this.requestAIServer(i,this.token);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token)}this.inputRef.value=""},this.loopRequest=async(e,i)=>{let s={conversationId:e.conversationId,ackSequenceNumber:e.sequenceNumber,inquiryId:e.inquiryId},t=await this.requestAIServer(s,i);t.hasMore?(t.message&&t.message!==null&&(this._isValidJson(t.message)!==!1?(this.jsonMessage=this._isValidJson(t.message),t.context?.intent==="inspection"?this.messages=[...this.messages,{text:this.jsonMessage,sender:t.context.author,format:"json",inquiryId:t.inquiryId}]:t.context&&(this.jsonMessage.response&&this.jsonMessage.response==="no"?(this._resetConversation(),this.messages=[...this.messages,{text:"What else can I help you with?",sender:t.context.author,format:"text",inquiryId:t.inquiryId}]):this.messages=[...this.messages,{text:this.jsonMessage.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])):t.context&&(this.messages=[...this.messages,{text:t.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])),this.loopRequest(t,i)):this._isLoading=!1},this.requestAIServer=async(e,i)=>await fetch(this.AIServerUrl,{method:"POST",headers:{"Content-Type":"application/json",token:i},body:JSON.stringify(e)}).then(async s=>await s.json()).then(s=>s||"error").catch(s=>s),this.resetChat=()=>{this._resetConversation(),this.messages=[],this.inputRef&&(this.inputRef.value="")},this._isValidJson=e=>{try{return JSON.parse(e)}catch{return!1}},this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setRef=e=>{this.inputRef=e},this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this.jsonMessage={},this.messages=[],this._isLoading=!1,this.AIServerUrl="http://localhost:8080/skills/solution_deployment/chat",this.token=null,this.arcgisCreateSolutionEvent=r()}static{this.properties={conversationStore:16,jsonMessage:16,messages:16,_isLoading:16,AIServerUrl:1,token:1}}static{this.styles=u}emitCreateSolutionEvent(e){return console.log(e),this.arcgisCreateSolutionEvent.emit()}render(){return a`<div class="chat-container"><calcite-panel class="chat-panel" heading="Solution Assistant">${this.messages.length>0?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent>Reset</calcite-button>`:""}<div class="chat-messages">${this.messages.map(e=>a`<calcite-card class=${h(e.sender==="human"?"user-message":"system-message")}><div class="message-content"><strong>${e.sender==="human"?"You:":"AI:"}</strong>${e.format==="json"?this.renderExtraInformation(e.text):e.text}</div></calcite-card>`)}</div></calcite-panel><div class="chat-input"><calcite-text-area placeholder="Type your message..." auto-grow value="I would like to assess and capture the condition of bus stops in our city?" ${c(this._setRef)}></calcite-text-area><calcite-button @click=${this.handleSendMessage} .disabled=${!!this._isLoading}>${this._isLoading?a`<calcite-loader label=processing... inline></calcite-loader>`:"Send"}</calcite-button></div></div>`}renderExtraInformation(e){return a`<calcite-accordion><calcite-accordion-item description="View the JSON schema" heading="View Schema"><calcite-card><calcite-button @click=${()=>this.emitCreateSolutionEvent(e)}>Create Solution</calcite-button></calcite-card><calcite-card><pre>${JSON.stringify(e,null,2)}</pre></calcite-card></calcite-accordion-item></calcite-accordion>`}};d("arcgis-solutions-assistant",n);export{n as ArcgisSolutionsAssistant};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import"./SHYRK7HE.js";var s=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",elements:[{labelKey:`${e}.fields.allowRegistration.label`,scope:"/properties/allowRegistration",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.allowRegistration.helperText`},labels:[`{{${e}.fields.allowRegistration.enabled.label:translate}}`,`{{${e}.fields.allowRegistration.disabled.label:translate}}`],descriptions:[`{{${e}.fields.allowRegistration.enabled.description:translate}}`,`{{${e}.fields.allowRegistration.disabled.description:translate}}`],icons:["user-calendar","circle-disallowed"],layout:"horizontal"}},{labelKey:`${e}.fields.notifyAttendees.label`,scope:"/properties/notifyAttendees",type:"Control",options:{control:"hub-field-input-tile-select",type:"radio",helperText:{labelKey:`${e}.fields.notifyAttendees.helperText`},labels:[`{{${e}.fields.notifyAttendees.enabled.label:translate}}`,`{{${e}.fields.notifyAttendees.disabled.label:translate}}`],descriptions:[`{{${e}.fields.notifyAttendees.enabled.description:translate}}`,`{{${e}.fields.notifyAttendees.disabled.description:translate}}`],icons:["envelope","circle-disallowed"],layout:"horizontal"}}]}]});export{s as buildUiSchema};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as O}from"./XXR767KI.js";import{e as _}from"./K7M5CHTQ.js";import{a as l,f as p}from"./IDITN77F.js";import"./YH5LZKSP.js";import"./SHYRK7HE.js";function C(e,a){let i=[];return O(e,(t,o)=>(o.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let o=q(a),r,u,s,m,d;switch(o){case"stat":s=import("./KWNHBLCT.js"),m={"hub:card:stat":()=>import("./FDUGCC34.js")}[a],await Promise.all([s,m()]).then(async([f,c])=>{let{MetricSchema:n}=f;r=l(n),u=await c.buildUiSchema(e,i,t),c.buildDefaults&&(d=c.buildDefaults(e,i,t))});break;case"follow":s=import("./HAG4JRWN.js"),m={"hub:card:follow":()=>import("./DIPB3EE3.js")}[a],await Promise.all([s,m()]).then(([f,c])=>{let{FollowSchema:n}=f;r=l(n),u=c.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./RKCK7RBY.js"),m=import("./JOJEPUUR.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:o}=a;o||(o=""),t.maxLength=_(o);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:o}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let o=a.split(":")[1],r,u,s;switch(o){case"site":let{getSiteSchema:m}=await import("./VQ5K2ZRH.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./SSJKYZYV.js"),"hub:site:create":()=>import("./V5WZRUNS.js"),"hub:site:followers":()=>import("./JYVVTI7Y.js"),"hub:site:discussions":()=>import("./J2RSNIGV.js"),"hub:site:settings":()=>import("./3QUP66X5.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./UMX3ZFNX.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./A7UXYWNK.js"),"hub:discussion:create":()=>import("./FLYG2DDR.js"),"hub:discussion:settings":()=>import("./QGW2FJDB.js"),"hub:discussion:settings:discussions":()=>import("./HK6RVKL5.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./VNWH6JZ2.js");r=l(f);let c=await{"hub:channel:edit":()=>import("./R5S5NMIA.js"),"hub:channel:create":()=>import("./NG3RIAIG.js")}[a]();u=await c.buildUiSchema(e,i,t),c.buildDefaults&&(s=await c.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./QJ4JOKJB.js");r=l(n);let v=await{"hub:project:edit":()=>import("./DG6M3ZU4.js"),"hub:project:create":()=>import("./UN5RJRL2.js"),"hub:project:create2":()=>import("./3V7CDAW4.js"),"hub:project:metrics":()=>import("./MEZPIRT2.js"),"hub:project:settings":()=>import("./FUJF2Z35.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./IYPM2CF6.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./JCX7NDVY.js"),"hub:initiative:create":()=>import("./MW3KDKSA.js"),"hub:initiative:create2":()=>import("./BE4VGAQ6.js"),"hub:initiative:metrics":()=>import("./ZMNVUH2F.js"),"hub:initiative:associations":()=>import("./6G2PI2MU.js"),"hub:initiative:settings":()=>import("./CF4XXPBR.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./PRO5YTTB.js");r=l(I);let D=await{"hub:page:edit":()=>import("./JWBPC5LQ.js"),"hub:page:create":()=>import("./KVUHCDCE.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./AJIMU7O4.js");r=l(K);let U=await{"hub:content:edit":()=>import("./QZ5TADRQ.js"),"hub:content:discussions":()=>import("./4WAESXJG.js"),"hub:content:settings":()=>import("./DHLILBFE.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./Y435VSDF.js");r=l(y);let k=await{"hub:template:edit":()=>import("./625F6UTS.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./WEQSM7IC.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./V3AZDL3Q.js"),"hub:group:create:association":()=>import("./EXUFMUTQ.js"),"hub:group:create:view":()=>import("./YAQDLWIH.js"),"hub:group:create:edit":()=>import("./A7EIQKXY.js"),"hub:group:create":()=>import("./4GLVTBLS.js"),"hub:group:edit":()=>import("./SNRZBSNS.js"),"hub:group:settings":()=>import("./OKIDHS5M.js"),"hub:group:discussions":()=>import("./2NFSMO4K.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./X377VEMR.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./GAI6NOBN.js"),"hub:survey:settings":()=>import("./OZYNCKYO.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./7L2K4CTR.js"),"hub:event:edit":()=>import("./XLVGX5QG.js"),"hub:event:registrants":()=>import("./P4ODMYQB.js")}[a](),H=await{"hub:event:create":()=>import("./KGCOTPXS.js"),"hub:event:edit":()=>import("./5V2TKTC3.js"),"hub:event:registrants":()=>import("./ZC2BQBII.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./TGO42WNV.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./DRDHC6JP.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./M7CHTU5E.js");r=l(N);let P=await{"hub:user:settings":()=>import("./NRZOM7WH.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import b from"./PNTGDETM.js";import a from"./TTEW4AOW.js";import{a as _}from"./CWDC5M42.js";import{b as T}from"./X3YFFDLR.js";import"./6CD72XGX.js";import{D as $,E as y,G as l,I as g,h as C,i as r,o as x,r as L}from"./I2AUDNAV.js";import"./HBDMIGI6.js";export default $arcgis.t(([,{a:d,b:b,c:u,d:m,e:I,f:i,h:E,i:D,k:U}])=>{var R=C`@layer{:host{display:block}:host .instant-apps-language-translator-item{display:flex}:host .instant-apps-language-translator-item__section{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__top-row{display:flex;align-items:center;justify-content:space-between}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label-container{display:flex;align-items:center}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator-item__section calcite-input{margin-top:10px;margin-left:55px}:host .instant-apps-language-translator-item__section--last-item{border-bottom:none}:host .instant-apps-language-translator-item__section--selected{background-color:#f1faff}:host .instant-apps-language-translator-item__section:first-child{margin-right:1%}:host .instant-apps-language-translator-item__ui-location-popover-content{display:inline-block;padding:10px;max-width:400px}:host .instant-apps-language-translator-item__ui-location-items{display:flex}:host .instant-apps-language-translator-item__ui-location-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}:host .instant-apps-language-translator-item__tip{display:inline-block;font-size:14px;line-height:22px}:host .instant-apps-language-translator-item__info-icon{color:var(--calcite-color-brand)}:host .instant-apps-language-translator-item__info-button{border:0;background-color:transparent;cursor:pointer}:host .instant-apps-language-translator-item__nested-input{margin-left:60px;margin-top:8px}:host .instant-apps-language-translator-item__nested-input calcite-input{margin-left:30px}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-action{--calcite-ui-icon-color: var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-icon{color:var(--calcite-color-text-inverse)}:host(.instant-apps-language-translator--last-item) .instant-apps-language-translator-item__section{border-bottom:none}}`,p="instant-apps-language-translator-item",c={section:`${p}__section`,selected:`${p}__section--selected`,topRow:`${p}__top-row`,labelContainer:`${p}__label-container`,label:`${p}__label`,uiLocationPopoverContent:`${p}__ui-location-popover-content`,uiLocationItems:`${p}__ui-location-items`,uiLocationItem:`${p}__ui-location-item`,infoIcon:`${p}__info-icon`,infoButton:`${p}__info-button`,tip:`${p}__tip`,nestedInput:`${p}__nested-input`},v=class extends y{constructor(){super(...arguments),this.userInputs={},this.translatedInputs={},this.translatorItemDataUpdated=x()}static{this.properties={fieldName:1,translatedLanguageLabels:0,setting:0,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}static{this.shadowRootOptions=L}get isTextEditor(){return this.setting.type===b.TextEditor}get calciteMode(){return U()?m.Dark:m.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}loaded(){this.isTextEditor&&i.onChange("uiData",()=>this.handleEditorCollapse())}handleInputRender(e,t,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(e):this.renderInput(e,t,a):null}getUIDataItem(){if(I.uiData)return I.uiData.get(this.fieldName)}updateT9nStore(e,t){let a=i.get("currentLanguage"),n={[e]:t},s=D(a,n);i.set("portalItemResourceT9n",s)}handleExpand(){let e=this.getUIDataItem();e.expanded=!e.expanded;let t=new Map(I.uiData);t.set(this.fieldName,e),i.set("uiData",t)}handleEditorCollapse(){if(!i.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:e,translatedEditorWrapper:t}=this,a=e.editorInstance.getData();e.value=a;let n=t.editorInstance.getData();t.value=n,e.editorInstance.destroy(),t.editorInstance.destroy()}}handleSelection(e){let t=new Map(I.uiData),a=E();a.forEach(n=>{let s=t?.get(n);s.selected=!1}),a.forEach(n=>{let s=e?.target?.getAttribute("data-field-name");if(n===s){let o=t?.get(n);o.selected=!0}}),i.set("uiData",t)}getUILocation(){let e=this.getUIDataItem(),{uiLocation:t,userLocaleData:a}=e,{section:n,subsection:s}=t,o=[n.label,s.label,a.label].filter(h=>!!h);return o.map((h,f)=>r`<span class=${l(c.uiLocationItem)}><span>${h}</span>${f!==o.length-1?r`<calcite-icon icon=chevron-right scale=s></calcite-icon>`:null}</span>`)}getTip(){let e=this.getUIDataItem(),{tip:t}=e;return t}copySelection(e,t){this.setting.type===b.TextEditor?this.copyTextEditorContent(e):this.copyCalciteInputContent(t,e)}copyTextEditorContent(e){let t=e===d.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(t),setTimeout(()=>this.selectContent(t),a)},a),this.copyContent(t)}selectContent(e){e.editing.view.focus();let{model:t}=e,a=t.document.getRoot();if(a){let n=t.createRangeIn(a);t.change(s=>s.setSelection(n))}}copyContent(e){let t=e.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=t,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(e,t){let a=t===d.User?this.userInputs[e]:this.translatedInputs[e];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(e,t){t&&(e===d.User?this.userEditorWrapper=t:this.translatedEditorWrapper=t)}async handleUserInputChange(e){i.set("saving",!0);try{let t=e.target,a=t.id,n=t.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleUserTextEditorChange(e){i.set("saving",!0);try{let t=e.detail,a=e.target.id,n=this.getUIDataItem();n.userLocaleData.value=t,await this.userLocaleInputOnChangeCallback(a,t),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleTranslatedInputChange(e){i.set("saving",!0);try{let t=e.composedPath()[0],a=t.id;this.updateT9nStore(a,t.value);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=e.target.value;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}async handleTranslatedTextEditorChange(e){i.set("saving",!0);try{let t=e.target.id;this.updateT9nStore(t,e.detail);let{locale:a,resource:n}=this.getTranslatedLocaleCallbackData(),s=e.detail;await this.translatedLocaleInputOnChangeCallback(t,s,a,n),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}handleTextEditorDataChange(e,t){e===d.User?this.handleUserTextEditorChange(t):this.handleTranslatedTextEditorChange(t)}getTranslatedLocaleCallbackData(){let e=i.get("currentLanguage"),t=i.get("portalItemResource");return{locale:e,resource:t}}getIcon(e){switch((e??this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}render(){return"content"in this.setting&&this.setting.content?.every(e=>e?.content?.length===0)?(this.el.classList.remove(this.calciteMode),""):(this.el.classList.add(this.calciteMode),r`${this.renderBase()}${this.renderPopover()}`)}renderBase(){return r`<div class=${l(p)}>${this.renderUserLocaleSection()}${this.renderTranslatedLanguageSection()}</div>`}renderPopover(){let e=this.getTip();return r`<calcite-popover .referenceElement=${this.tipID} label auto-close placement=trailing closable><span class=${l(c.uiLocationPopoverContent)}><span class=${l(c.uiLocationItems)}>${this.getUILocation()}</span>${e?r`<span class=${l(c.tip)}>${e}</span>`:null}</span></calcite-popover>`}renderUserLocaleSection(){let e=this.getUIDataItem(),t=e?.userLocaleData,a=e?.selected?` ${c.selected}`:"",n=t?.label,s=t?.value,o=this.setting.id;return r`<div class=${`${c.section}${a}`}>${this.renderItemHeader(d.User,n,o)}${this.handleInputRender(d.User,s,o)}</div>`}renderTranslatedLanguageSection(){let e=this.getUIDataItem(),t=this.setting.id,a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[t]??""):"",h=e?.selected?` ${c.selected}`:"";return r`<div class=${`${c.section}${h}`}>${this.renderItemHeader(d.Translation,s,t)}${this.handleInputRender(d.Translation,o,t)}</div>`}renderNestedInputs(e,t){let a=t??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(e,s):this.renderNestedInput(e,s)).filter(s=>s!==void 0)}renderNestedInput(e,t){let a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=t?.id,o=n?.[a],h=typeof o=="object"&&o!==null?o[s]:void 0,{label:f,value:w,id:k}=t,S=e===d.Translation?this.translatedLanguageLabels?.[k]:f,N=e===d.User?w:h??"";return r`<div class=${l(c.nestedInput)}>${this.renderItemHeader(e,S,s,t)}${this.renderInput(e,String(N),s,t)}</div>`}renderItemHeader(e,t,a,n){let s=!this.hasNestedContent||!!n;return r`<div class=${l(c.topRow)}>${this.renderItemHeaderLabel(e,t,n)}${s?this.renderCopyButton(e,a):null}</div>`}renderItemHeaderLabel(e,t,a){let n=e===d.User&&!a;return r`<div class=${l(c.labelContainer)}>${a?null:this.renderExpandCollapseButton()}<calcite-icon .icon=${this.getIcon(a)} scale=s></calcite-icon><span class=${l(c.label)}>${t}</span>${n?this.renderInfoButton():null}</div>`}renderExpandCollapseButton(){let e=this.getUIDataItem()?.expanded?u.Expanded:u.Collapsed;return r`<calcite-action @click=${this.handleExpand} .icon=${e} scale=s appearance=transparent text></calcite-action>`}renderInfoButton(){return r`<button id=${this.tipID??g} class=${l(c.infoButton)}><calcite-icon class=${l(c.infoIcon)} .icon=${u.Popover} scale=s></calcite-icon></button>`}renderCopyButton(e,t){return r`<calcite-action class=${l(this.calciteMode)} @click=${this.copySelection.bind(this,e,t)} slot=action .icon=${u.Copy} appearance=transparent text></calcite-action>`}renderInput(e,t,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?e===d.User?this.renderUserLocaleInput(t,a):this.renderTranslatedLanguageInput(t,a):this.renderTextEditor(t,e,a)}renderUserLocaleInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleUserInputChange} ${$(a=>{a&&(this.userInputs[t]=a)})}></calcite-input>`)}renderTranslatedLanguageInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleTranslatedInputChange} ${$(a=>{a&&(this.translatedInputs[t]=a)})}></calcite-input>`)}renderTextEditor(e,t,a){let n={toolbar:[]};return r`<instant-apps-ckeditor-wrapper id=${a??g} @dataChanged=${this.handleTextEditorDataChange.bind(this,t)} @isFocused=${this.handleSelection} .value=${e??""} data-field-name=${this.fieldName??g} .config=${n} ${$(this.setEditor.bind(this,t))}></instant-apps-ckeditor-wrapper>`}};T("instant-apps-language-translator-item",v);return v},a,b)
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import b from"./MRIJEWVG.js";import a from"./NEJI5QW6.js";import{a as _}from"./2BTYUMLK.js";import{b as T}from"./6JIZ4XBP.js";import"./HWRTCJII.js";import{D as $,E as y,G as l,I as g,h as C,i as r,o as x,r as L}from"./QQGMGBKF.js";import"./SHYRK7HE.js";export default $arcgis.t(([,{a:d,b:b,c:u,d:m,e:I,f:i,h:E,i:D,k:U}])=>{var R=C`@layer{:host{display:block}:host .instant-apps-language-translator-item{display:flex}:host .instant-apps-language-translator-item__section{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__top-row{display:flex;align-items:center;justify-content:space-between}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label-container{display:flex;align-items:center}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator-item__section calcite-input{margin-top:10px;margin-left:55px}:host .instant-apps-language-translator-item__section--last-item{border-bottom:none}:host .instant-apps-language-translator-item__section--selected{background-color:#f1faff}:host .instant-apps-language-translator-item__section:first-child{margin-right:1%}:host .instant-apps-language-translator-item__ui-location-popover-content{display:inline-block;padding:10px;max-width:400px}:host .instant-apps-language-translator-item__ui-location-items{display:flex}:host .instant-apps-language-translator-item__ui-location-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}:host .instant-apps-language-translator-item__tip{display:inline-block;font-size:14px;line-height:22px}:host .instant-apps-language-translator-item__info-icon{color:var(--calcite-color-brand)}:host .instant-apps-language-translator-item__info-button{border:0;background-color:transparent;cursor:pointer}:host .instant-apps-language-translator-item__nested-input{margin-left:60px;margin-top:8px}:host .instant-apps-language-translator-item__nested-input calcite-input{margin-left:30px}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-action{--calcite-ui-icon-color: var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-icon{color:var(--calcite-color-text-inverse)}:host(.instant-apps-language-translator--last-item) .instant-apps-language-translator-item__section{border-bottom:none}}`,p="instant-apps-language-translator-item",c={section:`${p}__section`,selected:`${p}__section--selected`,topRow:`${p}__top-row`,labelContainer:`${p}__label-container`,label:`${p}__label`,uiLocationPopoverContent:`${p}__ui-location-popover-content`,uiLocationItems:`${p}__ui-location-items`,uiLocationItem:`${p}__ui-location-item`,infoIcon:`${p}__info-icon`,infoButton:`${p}__info-button`,tip:`${p}__tip`,nestedInput:`${p}__nested-input`},v=class extends y{constructor(){super(...arguments),this.userInputs={},this.translatedInputs={},this.translatorItemDataUpdated=x()}static{this.properties={fieldName:1,translatedLanguageLabels:0,setting:0,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}static{this.shadowRootOptions=L}get isTextEditor(){return this.setting.type===b.TextEditor}get calciteMode(){return U()?m.Dark:m.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}loaded(){this.isTextEditor&&i.onChange("uiData",()=>this.handleEditorCollapse())}handleInputRender(e,t,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(e):this.renderInput(e,t,a):null}getUIDataItem(){if(I.uiData)return I.uiData.get(this.fieldName)}updateT9nStore(e,t){let a=i.get("currentLanguage"),n={[e]:t},s=D(a,n);i.set("portalItemResourceT9n",s)}handleExpand(){let e=this.getUIDataItem();e.expanded=!e.expanded;let t=new Map(I.uiData);t.set(this.fieldName,e),i.set("uiData",t)}handleEditorCollapse(){if(!i.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:e,translatedEditorWrapper:t}=this,a=e.editorInstance.getData();e.value=a;let n=t.editorInstance.getData();t.value=n,e.editorInstance.destroy(),t.editorInstance.destroy()}}handleSelection(e){let t=new Map(I.uiData),a=E();a.forEach(n=>{let s=t?.get(n);s.selected=!1}),a.forEach(n=>{let s=e?.target?.getAttribute("data-field-name");if(n===s){let o=t?.get(n);o.selected=!0}}),i.set("uiData",t)}getUILocation(){let e=this.getUIDataItem(),{uiLocation:t,userLocaleData:a}=e,{section:n,subsection:s}=t,o=[n.label,s.label,a.label].filter(h=>!!h);return o.map((h,f)=>r`<span class=${l(c.uiLocationItem)}><span>${h}</span>${f!==o.length-1?r`<calcite-icon icon=chevron-right scale=s></calcite-icon>`:null}</span>`)}getTip(){let e=this.getUIDataItem(),{tip:t}=e;return t}copySelection(e,t){this.setting.type===b.TextEditor?this.copyTextEditorContent(e):this.copyCalciteInputContent(t,e)}copyTextEditorContent(e){let t=e===d.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(t),setTimeout(()=>this.selectContent(t),a)},a),this.copyContent(t)}selectContent(e){e.editing.view.focus();let{model:t}=e,a=t.document.getRoot();if(a){let n=t.createRangeIn(a);t.change(s=>s.setSelection(n))}}copyContent(e){let t=e.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=t,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(e,t){let a=t===d.User?this.userInputs[e]:this.translatedInputs[e];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(e,t){t&&(e===d.User?this.userEditorWrapper=t:this.translatedEditorWrapper=t)}async handleUserInputChange(e){i.set("saving",!0);try{let t=e.target,a=t.id,n=t.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleUserTextEditorChange(e){i.set("saving",!0);try{let t=e.detail,a=e.target.id,n=this.getUIDataItem();n.userLocaleData.value=t,await this.userLocaleInputOnChangeCallback(a,t),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleTranslatedInputChange(e){i.set("saving",!0);try{let t=e.composedPath()[0],a=t.id;this.updateT9nStore(a,t.value);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=e.target.value;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}async handleTranslatedTextEditorChange(e){i.set("saving",!0);try{let t=e.target.id;this.updateT9nStore(t,e.detail);let{locale:a,resource:n}=this.getTranslatedLocaleCallbackData(),s=e.detail;await this.translatedLocaleInputOnChangeCallback(t,s,a,n),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}handleTextEditorDataChange(e,t){e===d.User?this.handleUserTextEditorChange(t):this.handleTranslatedTextEditorChange(t)}getTranslatedLocaleCallbackData(){let e=i.get("currentLanguage"),t=i.get("portalItemResource");return{locale:e,resource:t}}getIcon(e){switch((e??this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}render(){return"content"in this.setting&&this.setting.content?.every(e=>e?.content?.length===0)?(this.el.classList.remove(this.calciteMode),""):(this.el.classList.add(this.calciteMode),r`${this.renderBase()}${this.renderPopover()}`)}renderBase(){return r`<div class=${l(p)}>${this.renderUserLocaleSection()}${this.renderTranslatedLanguageSection()}</div>`}renderPopover(){let e=this.getTip();return r`<calcite-popover .referenceElement=${this.tipID} label auto-close placement=trailing closable><span class=${l(c.uiLocationPopoverContent)}><span class=${l(c.uiLocationItems)}>${this.getUILocation()}</span>${e?r`<span class=${l(c.tip)}>${e}</span>`:null}</span></calcite-popover>`}renderUserLocaleSection(){let e=this.getUIDataItem(),t=e?.userLocaleData,a=e?.selected?` ${c.selected}`:"",n=t?.label,s=t?.value,o=this.setting.id;return r`<div class=${`${c.section}${a}`}>${this.renderItemHeader(d.User,n,o)}${this.handleInputRender(d.User,s,o)}</div>`}renderTranslatedLanguageSection(){let e=this.getUIDataItem(),t=this.setting.id,a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[t]??""):"",h=e?.selected?` ${c.selected}`:"";return r`<div class=${`${c.section}${h}`}>${this.renderItemHeader(d.Translation,s,t)}${this.handleInputRender(d.Translation,o,t)}</div>`}renderNestedInputs(e,t){let a=t??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(e,s):this.renderNestedInput(e,s)).filter(s=>s!==void 0)}renderNestedInput(e,t){let a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=t?.id,o=n?.[a],h=typeof o=="object"&&o!==null?o[s]:void 0,{label:f,value:w,id:k}=t,S=e===d.Translation?this.translatedLanguageLabels?.[k]:f,N=e===d.User?w:h??"";return r`<div class=${l(c.nestedInput)}>${this.renderItemHeader(e,S,s,t)}${this.renderInput(e,String(N),s,t)}</div>`}renderItemHeader(e,t,a,n){let s=!this.hasNestedContent||!!n;return r`<div class=${l(c.topRow)}>${this.renderItemHeaderLabel(e,t,n)}${s?this.renderCopyButton(e,a):null}</div>`}renderItemHeaderLabel(e,t,a){let n=e===d.User&&!a;return r`<div class=${l(c.labelContainer)}>${a?null:this.renderExpandCollapseButton()}<calcite-icon .icon=${this.getIcon(a)} scale=s></calcite-icon><span class=${l(c.label)}>${t}</span>${n?this.renderInfoButton():null}</div>`}renderExpandCollapseButton(){let e=this.getUIDataItem()?.expanded?u.Expanded:u.Collapsed;return r`<calcite-action @click=${this.handleExpand} .icon=${e} scale=s appearance=transparent text></calcite-action>`}renderInfoButton(){return r`<button id=${this.tipID??g} class=${l(c.infoButton)}><calcite-icon class=${l(c.infoIcon)} .icon=${u.Popover} scale=s></calcite-icon></button>`}renderCopyButton(e,t){return r`<calcite-action class=${l(this.calciteMode)} @click=${this.copySelection.bind(this,e,t)} slot=action .icon=${u.Copy} appearance=transparent text></calcite-action>`}renderInput(e,t,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?e===d.User?this.renderUserLocaleInput(t,a):this.renderTranslatedLanguageInput(t,a):this.renderTextEditor(t,e,a)}renderUserLocaleInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleUserInputChange} ${$(a=>{a&&(this.userInputs[t]=a)})}></calcite-input>`)}renderTranslatedLanguageInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleTranslatedInputChange} ${$(a=>{a&&(this.translatedInputs[t]=a)})}></calcite-input>`)}renderTextEditor(e,t,a){let n={toolbar:[]};return r`<instant-apps-ckeditor-wrapper id=${a??g} @dataChanged=${this.handleTextEditorDataChange.bind(this,t)} @isFocused=${this.handleSelection} .value=${e??""} data-field-name=${this.fieldName??g} .config=${n} ${$(this.setEditor.bind(this,t))}></instant-apps-ckeditor-wrapper>`}};T("instant-apps-language-translator-item",v);return v},a,b)
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as h}from"./ZZ6EPPLQ.js";function i(t){if(typeof t=="string")return t.replace(/\/sharing\/rest\/?$/,"");if(typeof t=="object"){let e=t.portalSelf||t,{portalHostname:s,urlKey:o,customBaseUrl:n}=e;if(s||o&&n)return e.isPortal?`https://${e.portalHostname}`:`https://${e.urlKey}.${e.customBaseUrl}`}return i(h(t))}function _(t){let r="enterprise";return t.includes("arcgis.com")&&(r="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(r="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(r="devext"),r}function S(t,r){return`${i(r)}/home/item.html?id=${t}`}var a="/apps/sites";function E(t,r){let e=i(r),s;/(devext|mapsdevext)\.arcgis\.com/.test(e)?s="https://hubdevcdn.arcgis.com/opendata-ui/assets":/(qaext|mapsqa)\.arcgis\.com/.test(e)?s="https://hubqacdn.arcgis.com/opendata-ui/assets":/(www|maps)\.arcgis\.com/.test(e)?s="https://hubcdn.arcgis.com/opendata-ui/assets":s=`${e}${a}`;let o=t.startsWith("/")?"":"/";return[s,t].join(o)}function R(t){let{host:r,path:e,query:s}=t,o=r.endsWith("/")?r:`${r}/`,n=new URL(e,o);return n.search=f(s),n.toString()}function f(t={}){let r=Object.keys(t).filter(e=>t[e]!==void 0).reduce((e,s)=>(e[s]=t[s],e),{});return new URLSearchParams(r).toString()}var u={devext:"https://hubdevcdn.arcgis.com",qaext:"https://hubqacdn.arcgis.com",www:"https://hubcdn.arcgis.com"};function q(t){if(t.isPortal)return`${i(t)}${a}`;{let r=t.portalHostname.split(".")[0];return`${u[r]||u.www}/opendata-ui/assets`}}function c(t){return`${i(t)}/sharing/rest`}function N(t){return t=t.toLowerCase(),t.includes("//")&&(t=t.split("//")[1]),t}function p(t){let r;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="https://hubqa.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="https://hubdev.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(r="https://hub.arcgis.com"),r}function K(t){if(t.isPortal)throw new Error("Hub Url is not available in ArcGIS Enterprise");return p(t.portalHostname)}var V=(t,r,e)=>{let{id:s,access:o}=t,n=`${c(r)}/content/items/${s}`,l=new URLSearchParams({f:"json"});return o!=="public"&&e&&l.append("token",e),`${n}?${l.toString()}`};var m=/\/(map|feature)server/i,Q=t=>m.test(t);export{R as a,i as b,_ as c,q as d,c as e,N as f,p as g,K as h,S as i,V as j,E as k,Q as l};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
4
|
var e=["hub:channel","hub:channel:create","hub:channel:delete","hub:channel:edit","hub:channel:view","hub:channel:owner","hub:channel:manage","hub:channel:read","hub:channel:write","hub:channel:readWrite","hub:channel:moderate"],n="hub:channel:none",h={channelRoot:"hub:channel",channelCreate:"hub:channel:create",channelDelete:"hub:channel:delete",channelEdit:"hub:channel:edit",channelView:"hub:channel:view",channelOwner:"hub:channel:owner",channelManage:"hub:channel:manage",channelRead:"hub:channel:read",channelWrite:"hub:channel:write",channelReadWrite:"hub:channel:readWrite",channelModerate:"hub:channel:moderate"};export{e as a,n as b,h as c};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import e from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import e from"./YKFCUCEU.js";import b from"./652RXIXT.js";import"./HF4ZVPTQ.js";import a from"./NEJI5QW6.js";import{a as g}from"./NLAFKJ2E.js";import"./BGUPQWXL.js";import{b as p}from"./6JIZ4XBP.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{E as o,G as d,H as l,I as c,h as s,i as t,o as r}from"./QQGMGBKF.js";import"./SHYRK7HE.js";export default $arcgis.t(([,,{i:h,t:v}])=>{var _=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-widget__heading{overflow:hidden}:host .esri-widget__heading{margin:0;overflow-x:hidden}:host .esri-widget__heading{display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size)}:host .esri-widget__heading{font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interactiveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container"},a=class extends o{constructor(){super(...arguments),this._messages=g({name:"instant-apps-interactive-legend",blocking:!0}),this.isChild=!1,this.expanded=!0,this.groupLayerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=_}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.groupLayerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=h(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages.collapse:this._messages.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return t`<header class=${`${e.interactiveLegendHeader} ${v(this.el)}`} style=${l({borderLeft:"1px solid var(--calcite-color-border-3)"})}><span><span class=${d(e.headerActionContainer)}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i} .label=${i} scale=s></calcite-action><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};p("instant-apps-interactive-legend-group-legend-element-caption",a);return a},a,b,e)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{m as i}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{m as i}from"./4LG3PE5J.js";import{a as h}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as d}from"./LZXSNZEG.js";import{E as r,G as a,I as c,h as l,i as s,o}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var u=l`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as r}from"./N3EJWHNC.js";import{b as o}from"./LZXSNZEG.js";import{E as n,I as e,h as i,i as s}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var a=i`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,4 +15,4 @@ import{a as r}from"./E32I3A4X.js";import{b as o}from"./RQ2PBNMJ.js";import{E as
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
16
|
* See the License for the specific language governing permissions and
|
17
17
|
* limitations under the License.
|
18
|
-
*/.item-type-icon{@apply block h-4 pointer-events-none;margin-top:.15em!important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{@apply m-inline-end-1.5;}`,t=class extends n{constructor(){super(...arguments),this.isPortal=!1,this.type="",this.typeKeywords=[]}static{this.properties={isPortal:5,type:1,typeKeywords:0}}static{this.styles=a}render(){return s`<div title=${this.type??e}><img class="item-type-icon item-type-icon-margin" height=16 src=${r(this.type,this.typeKeywords)??e} width=16></div>`}};o("solution-item-icon",t);export{t as SolutionItemIcon};
|
18
|
+
*/.item-type-icon{@apply block h-4 pointer-events-none;margin-top:.15em!important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{@apply m-inline-end-1.5;}`,t=class extends n{constructor(){super(...arguments),this.isPortal=!1,this.type="",this.typeKeywords=[]}static{this.properties={isPortal:5,type:1,typeKeywords:0}}static{this.styles=a}render(){return s`<div title=${this.type??e}><img class="item-type-icon item-type-icon-margin" height=16 role=presentation src=${r(this.type,this.typeKeywords)??e} width=16></div>`}};o("solution-item-icon",t);export{t as SolutionItemIcon};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{b as y}from"./KQXXZPWB.js";import{b}from"./U5FOT3KO.js";import{a as g}from"./W57M64Z5.js";import{a as f}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as u}from"./LZXSNZEG.js";import{C as n,D as c,E as d,G as p,H as l,I as h,h as r,i,o as s}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var _=r`/** @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-2);--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}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@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}.height-100{height:100%}`,a=class extends d{constructor(){super(),this.solutionsCount=0,this.sortType="relevance",this.filterOpen=!0,this._filters=[],this.isMobile=!1,this._translations=f({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=n(),this._isMobileContextConsumer=b({context:y,subscribe:!0,callback:e=>this.isMobile=e}),this.filterRemoved=s(),this.solutionsAllLoaded=s()}static{this.properties={appConfig:1,solutionsCount:9,sortType:1,filterOpen:16,_filters:16,isMobile:16,_translations:16}}static{this.styles=_}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}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 z-index-2" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><h1><calcite-panel class="border-override header-override z-index-1"><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._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this.filterOpen?{display:"flex"}:"";return this.isMobile?i`<calcite-panel class=${p(this.filterOpen?"background-override":"filter background-override")} id=solutions-all-shell-panel-start style=${l(e)}><solutions-filter-panel class="height-100" @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=${l(e)}><calcite-panel><solutions-filter-panel class="height-100" @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-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=${l(e)} ${c(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){let e=this._filters.filter(t=>t.type==="industry"||t.type==="domain");return e.length>0?g(e,t=>`${t.type}:${t.value}`,t=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{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??h}>${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"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,t){if(t==="industry")this._filters=[];else{let m=this._filters.filter(o=>o.displayValue!==e&&o.type!==t);this._filters=m}this._filters.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters)}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){if(e.detail){let t=e.detail;"displayValue"in e.detail?this._filters.push(e.detail):Array.isArray(e.detail)&&e.detail.length>0&&(e.detail.length>=2&&(t=[e.detail[e.detail.length-1]]),this._filters=e.detail),this._allSolutionsPanelRef.value?.searchSolutions(t)}else this._filters=[],this._allSolutionsPanelRef.value?.searchSolutions()}};u("solutions-all-shell",a);export{a as SolutionsAllShell};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./UJRSZU3W.js";import{a as r}from"./FMNW55YT.js";import"./SJMKD3XJ.js";import"./ATB53ZKP.js";import"./ZFMWIEGQ.js";import"./TCFCLE53.js";import"./SFDBXOOG.js";import"./E5LWTUJM.js";import"./KNPOCWWF.js";import"./7F3GV2VG.js";import"./AYKWMJXC.js";import"./FQIN5IN3.js";import"./FN75WUH2.js";import"./2L7PEA7U.js";import"./3VW7GINP.js";import"./IF7UHJAR.js";import"./SCMDZPD5.js";import"./JU4FWB4Y.js";import"./2GQADZED.js";import"./HGB2ZKH5.js";import"./LVIAV5QR.js";import"./TJDQLK7G.js";import"./SPZFZLTC.js";import"./4Q57777R.js";import"./SHYRK7HE.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as p}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as p}from"./ND2PYDKI.js";import{a as m}from"./O724AAAL.js";import{a as c}from"./XCAWHB7I.js";import{b as g}from"./6JIZ4XBP.js";import{E as d,G as o,H as a,h as l,i as e,l as i,o as r}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var u=l`:host{--instant-apps-header-height: auto;--instant-apps-header-min-height: 50px;--instant-apps-header-title-text-link-decoration: underline;--instant-apps-header-height--logo-scale--s: 55px;--instant-apps-header-logo-width--logo-scale--s: 35px;--instant-apps-header-logo-height--logo-scale--s: 35px;--instant-apps-header-height--logo-scale--m: 70px;--instant-apps-header-logo-width--logo-scale--m: 50px;--instant-apps-header-logo-height--logo-scale--m: 50px;--instant-apps-header-height--logo-scale--l: 80px;--instant-apps-header-logo-width--logo-scale--l: 60px;--instant-apps-header-logo-height--logo-scale--l: 60px;--instant-apps-header-actions-end-height: auto;width:100%}:host .image.image_resized img{width:100%}:host .header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .header-container{display:flex;align-items:center;width:100%;height:inherit}:host .header-container slot{display:flex;height:inherit}:host .header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .header-container ::slotted(*) calcite-button{height:100%}:host .header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration);overflow:hidden}:host .header-content img{margin:10px}:host .header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .header-content #infoButton{margin-inline-start:10px}:host .header-content.center{justify-content:center}:host .header-content.right{justify-content:end}:host .header.height-s{height:var(--instant-apps-header-height--logo-scale--s)}:host .header.height-s h1{font-size:1.125rem}:host .header.height-s img{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .header.height-m{height:var(--instant-apps-header-height--logo-scale--m)}:host .header.height-m img{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .header.height-l{height:var(--instant-apps-header-height--logo-scale--l)}:host .header.height-l h1{font-size:1.375rem}:host .header.height-l img{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}`,s={base:"header",headerContainer:"header-container",headerContent:"header-content",actionsEndContainer:"actions-end-container"},h=class extends d{constructor(){super(...arguments),this._sanitizer=new c({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.handleMobileMediaQueryChange=t=>{let{matches:n}=t;if(n){this.logoScale="s";return}this.logoScale=this.initialScale},this.initialScale="m",this.titleText="",this.logoScale="m",this.infoButton=!1,this.infoIsOpen=!1,this.headerAlignment="left",this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=p.medium[1],this.infoIsOpenChanged=r({cancelable:!1})}static{this.properties={initialScale:16,titleText:1,titleTextLink:1,backgroundColor:1,textColor:1,logoImage:1,logoScale:3,logoImageAltText:1,logoLink:1,infoButton:7,infoIsOpen:7,infoTitleText:1,customHeaderHtml:1,headerAlignment:1,customHeaderCss:1,fontFamily:3,mobileWidthBreakpoint:9}}static{this.styles=u}async toggleInfo(){this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen)}load(){this.handleMobileBreakpoints(),this.sanitizeCustomHeaderHtml()}willUpdate(t){t.has("customHeaderHtml")&&this.sanitizeCustomHeaderHtml()}disconnectedCallback(){super.disconnectedCallback(),this._mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaQueryChange)}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}handleMobileBreakpoints(){this.initialScale=this.logoScale,this._mobileMediaQuery=window.matchMedia(`(max-width: ${this.mobileWidthBreakpoint}px)`),this._mobileMediaQuery.matches&&(this.logoScale="s"),this._mobileMediaQuery.addEventListener("change",this.handleMobileMediaQueryChange)}get hasEmptyLogo(){return this.logoImage==="undefined"||this.logoImage?.split("?")[0]==="undefined"||this.logoImage?.split("?")[0]===""||!this.logoImage}render(){let t=this.renderLogo(),n=this.renderTitle(),f=m(this.fontFamily);return this.customHeaderHtml?[e`<style>${this.customHeaderCss}</style>`,e`<div id=customHeader .innerHTML=${this.customHeaderHtml??""}></div>`]:e`<header class=${o({[s.base]:s.base,[`height-${this.logoScale}`]:!!t})} style=${a({backgroundColor:this.backgroundColor,fontFamily:f})}><div class=${o(s.headerContainer)}><span class=${`${s.headerContent} ${this.headerAlignment}`}>${t}${n}${this.infoButton?e`<calcite-button style=${a({"--calcite-color-text-1":this.textColor})} id=infoButton alignment=start appearance=transparent kind=neutral icon-start=information-f scale=s .label=${this.infoTitleText} title=${this.infoTitleText??i} @click=${this.toggleInfo}></calcite-button>`:null}</span><div class=${o(s.actionsEndContainer)}><slot name=actions-end></slot></div></div></header>`}renderLogo(){if(this.hasEmptyLogo)return null;let t=e`<img src=${this.logoImage??i} alt=${this.logoImageAltText??i}>`;return this.logoLink?e`<a href=${this.logoLink??i} target=_blank>${t}</a>`:t}renderTitle(){return this.titleText&&this.titleTextLink?e`<a style=${a({color:this.textColor})} href=${this.titleTextLink??i} rel="noopener noreferrer" target=_blank>${e`<h1 style=${a({color:this.textColor})}>${this.titleText}</h1>`}</a>`:e`<h1 style=${a({color:this.textColor})}>${this.titleText}</h1>`}};g("instant-apps-header",h);export{h as InstantAppsHeader};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as r}from"./35OG34DW.js";import"./IOLMZX66.js";import"./GUZFVIC6.js";import"./XXR767KI.js";import"./3QT7BIV3.js";import"./NTTQO4LF.js";import"./5FYALSB7.js";import"./OWZPVOBY.js";import"./K7M5CHTQ.js";import"./ZF42G2JC.js";import"./ET7BFDTD.js";import"./IDITN77F.js";import"./BGLA6JTF.js";import"./5F6FAGVF.js";import"./NFIBYZAV.js";import"./ZZ6EPPLQ.js";import"./CC2IBTVB.js";import"./6D4HQ7M2.js";import"./PTTXJVNC.js";import"./YH5LZKSP.js";import"./ZFMWIEGQ.js";import"./4LG3PE5J.js";import{a as c}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as n}from"./LZXSNZEG.js";import{E as l,H as a,h as s,i,r as o}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var b=s`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{a as D}from"./RUUJR35M.js";import{b as F}from"./U5FOT3KO.js";import{c as y,g as T,j as $}from"./SCY6BW5I.js";import{e as d}from"./4LG3PE5J.js";import{a as k,d as E,f as O}from"./6HEFYILX.js";import{b as G}from"./5MDH25UU.js";import{a as I}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as V}from"./LZXSNZEG.js";import{C as u,D as p,E as v,G as _,H as C,h as w,i as c,o as L,r as S}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var N=w`@layer{/** @license
|
5
|
+
* Copyright 2025 Esri
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/:host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem"!important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:.5rem}.padding-end-1-2{padding-inline-end:.5rem}.icon{--calcite-color-icon-color: var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,g=class extends v{constructor(){super(),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.noResultText="",this.selectionLayerIds=[],this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm="",this._selectionLoading=!1,this._translations=I({name:"map-select-tools",blocking:!0}),this._bufferTools=u(),this._drawTools=u(),this._labelName=u(),this._pnContextConsumer=F({context:D,subscribe:!0}),this._selectLayers=[],this._searchElement=u(),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.selectionSetChange=L(),this.listenOn(window,"searchConfigurationChange",this.searchConfigurationChangeChanged),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,enabledLayerIds:0,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,defaultBufferDistance:9,defaultBufferUnit:1,geometries:0,isUpdate:5,layerViews:0,mapView:0,noResultText:1,searchConfiguration:0,selectionSet:0,selectionLayerIds:0,selectLayerView:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,searchDistanceEnabled:5,useLayerFeaturesEnabled:5,_numSelected:16,_searchTerm:16,_selectionLoading:16,_translations:16}}static{this.styles=N}static{this.shadowRootOptions=S}willUpdate(e){e.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.watchGeometriesHandler(this.geometries,e.get("geometries")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView")),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration"))}async watchGeometriesHandler(e,t){if(e!==t&&e.length>0)return this._highlightWithOIDsOrGeoms()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async watchSearchConfigurationHandler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate&&this.selectionSet?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.value?.distance,download:!0,unit:this._bufferTools.value?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async load(){await this._initModules()}async loaded(){await this._init()}render(){let e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return c`${this._getMapLayerPicker()}<div class="border-bottom"></div><div class="padding-top-sides-1"><div class="search-widget" ${p(this._searchElement)}></div><div class=${_(t)}><map-draw-tools active class=${_(e)} .editGraphicsEnabled=${!this.useLayerFeaturesEnabled} .graphics=${this._graphics} .mapView=${this.mapView} @sketchGraphicsChange=${s=>void this._sketchGraphicsChanged(s)} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} ${p(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}${this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0}${this._getNumSelected()}</div><div class="border-bottom"></div>${this._getNameInput()}`}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t=typeof this.selectionSet?.distance=="number"?this.selectionSet.distance:this.defaultBufferDistance;return c`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this.searchDistanceEnabled} @calciteSwitchChange=${()=>this.searchDistanceEnabled=!this.searchDistanceEnabled}></calcite-switch></div><div class=${_(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${t} .geometries=${this.geometries} @bufferComplete=${s=>void this._bufferComplete(s)} .unit=${this.selectionSet?.unit||this.defaultBufferUnit} ${p(this._bufferTools)}></buffer-tools></div></div>`}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);let e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return c`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.useLayerFeatures}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=use-layer-features-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=use-layer-features-icon><span class="tooltip-message">${this._translations.useLayerFeaturesTooltip}</span></calcite-popover><calcite-switch .checked=${this.useLayerFeaturesEnabled} @calciteSwitchChange=${()=>{this._useLayerFeaturesEnabledChanged()}}></calcite-switch></div><div class=${`${e} padding-top-1`}><map-layer-picker .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this.layerViews.map(t=>t.layer.id)}></map-layer-picker></div></div>`}_getNumSelected(){let e=this._translations._lang==="en"?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return c`<div class="padding-top-1 padding-bottom-1" style=${C({"align-items":"end",display:"flex"})}>${this._selectionLoading?c`<div><calcite-loader class="info-blue padding-end-1-2" inline .label=${e||""} scale=m type=indeterminate></calcite-loader></div>`:c`<calcite-icon class="info-blue padding-end-1-2" icon=feature-layer scale=s></calcite-icon>`}<calcite-input-message class="info-blue" scale=m>${this._selectionLoading?e:this.noResultText&&this._numSelected===0?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())}</calcite-input-message></div>`}_getNameInput(){let e=this.customLabelEnabled?"":"display-none";return c`<div class=${`padding-sides-1 padding-top-1 ${e}`}><calcite-label class="font-bold">${this._translations.listName}<calcite-input @input=${()=>{this._selectionLabel=this._labelName.value?this._labelName.value.value:""}} .placeholder=${this._translations.listNamePlaceholder} .value=${this._selectionLabel||""} ${p(this._labelName)}></calcite-input></calcite-label></div>`}_getMapLayerPicker(){let e=this.selectionSet?.layerView?.layer.id;return c`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-label class="font-bold width-full label-margin-0">${this._translations.inputLayer}<map-layer-picker .enabledLayerIds=${this.enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>void this._inputLayerSelectionChange(t)} .selectedIds=${this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet&&e!==void 0?[e]:[]}></map-layer-picker></calcite-label></div>`}async _initModules(){let[e,t,s,i,a,l]=await G(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=e,this.GraphicsLayer=t,this.Graphic=s,this.Search=i,this._geometryEngine=a,this.FeatureLayer=l}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs||[],this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.reduce((e,t)=>{let s=t.type==="point"?this.sketchPointSymbol:t.type==="polyline"?this.sketchLineSymbol:this.sketchPolygonSymbol;return this.Graphic&&e.push(new this.Graphic({geometry:t,symbol:s})),e},[]),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await this._drawTools.value?.updateGraphics(),this.selectionSet.layerView&&this.mapView&&await $(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement.value){let e=this.searchConfiguration&&this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement.value,searchTerm:this._searchTerm,...e};this._searchWidget?(this._searchWidget.view=this.mapView,this._searchWidget.searchTerm=this._searchTerm):this._searchWidget=this.Search&&new this.Search(t),this._searchWidget&&(this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.viewModel.addHandles(this._searchWidget.on("search-clear",()=>{let s=this._searchClearLabel();this._searchResult?.name&&this._clearResults(!1,s)})),this._searchWidget.viewModel.addHandles(this._searchWidget.on("select-result",s=>{this._selectResult(s.result)})),await this._searchWidget.when(()=>{this._searchWidget&&(this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&this.searchConfiguration.allPlaceholder.toLowerCase()!=="find address or place"?this.searchConfiguration.allPlaceholder:this._translations.placeholder)}))}}async _selectResult(e){if(e){this._searchResult=e;let t=e.feature,s=t?.layer,i=this.selectLayerView?.layer,a=Number(t?.getObjectId()),l;s?.sourceJSON?.isView&&s.url&&(l=await this._getViewSourceUrl(s.url));let r;i?.sourceJSON?.isView&&i.url&&(r=await this._getViewSourceUrl(i.url));let o=s?.url?.toLowerCase(),n=l?.toLowerCase(),h=i?.url?.toLowerCase(),m=r?.toLowerCase(),b=o&&h&&(o===h||o===m||n===h||n===m)&&!Number.isNaN(a),x=b?[a]:void 0;this._workflowType=d.SEARCH,this._updateLabel();let f=[e.feature];this._updateSelection(f,b,x),this._drawTools.value&&(this._drawTools.value.graphics=f),this._searchWidget?.resultGraphic&&(this._searchWidget.resultGraphic.visible=!1)}else{let t=this._searchClearLabel();this._clearResults(!1,t)}}async _getViewSourceUrl(e){let t="",s=`${e}/sources?f=json`;try{let i=this._esriRequest&&await this._esriRequest(s,{query:{f:"json"}});i?.data?.services?.length===1&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value&&this._labelName.value.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){let s=e?.sources;return s&&s?.length>0?(e={...e,includeDefaultSources:!1},s.forEach(i=>{if(i.hasOwnProperty("layer")){let a=i,l=a.layer?.id,r=l?t.map?.findLayerById(l):null,o=a?.layer?.url;r&&a?a.layer=r:o&&this.FeatureLayer&&(a.layer=new this.FeatureLayer(o))}}),s?.forEach(i=>{if(i.hasOwnProperty("locator")){let a=i;if(a?.name==="ArcGIS World Geocoding Service"){let l=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=l,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){let e=this._pnContextConsumer.value,t=this._translations.bufferLayer;if(this.mapView){let s=this.mapView.map.layers.findIndex(i=>i.title===t);if(s>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(s);else if(this._bufferGraphicsLayer=this.GraphicsLayer&&new this.GraphicsLayer({title:t,listMode:"hide"}),this._bufferGraphicsLayer){e.managedLayers[t]="buffer";let i=this.mapView.map.layers.findIndex(a=>a.title===this._translations.sketchLayer);i>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,i):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){let s=e.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this.useLayerFeaturesEnabled?d.SELECT:d.SKETCH,this._workflowType===d.SKETCH&&this._drawTools.value&&await this._drawTools.value.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){let i=Array.isArray(s)?s.map(a=>a.geometry):this.geometries;await this._selectLayerFeatures(i[0])}else{let i=s.reduce((l,r)=>(r?.layer?.objectIdField?l.push(Number(r.attributes[r.layer.objectIdField])):r.getObjectId&&l.push(Number(r.getObjectId())),l),[]),a=e.detail.useOIDs&&i.length>0;this._updateSelection(s,a,i),a&&await this._highlightFeatures(i)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs&&this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){let t=this._pnContextConsumer.value;if(t.removeHandles(),e.length>0&&this.selectLayerView&&this.mapView){let s=await T(e,this.selectLayerView,this.mapView);t.highlightHandles.push(s)}this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=this.selectLayerView&&await k(e,this.selectLayerView.layer)||[],this._selectionLoading=!1,this._drawTools.value&&(this._drawTools.value.graphics=this._graphics),await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.value&&Number(this._bufferTools.value.distance),s=0;if(this._bufferGeometry){let i={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=this.Graphic&&new this.Graphic({geometry:this._bufferGeometry,symbol:i});this._bufferGraphicsLayer&&a&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(a),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(a.geometry?.extent)),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:s})}_geomQuery(e){let t=this._geometryEngine&&O(e,this._geometryEngine);return t?this._selectFeatures(t):Promise.resolve()}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value&&(this._labelName.value.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._searchWidget&&this._clearSearchWidget(),this._pnContextConsumer.value.removeHandles(),this._drawTools.value?.clear&&(this._graphics=[],await this._drawTools.value.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget?.clear(),this._searchResult=void 0}_updateSelection(e,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(e)?e.reduce((i,a)=>(a.geometry&&i.push(a.geometry),i),[]):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){let e=this._translations.sketch&&this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._translations.select&&this._selectionLabel.indexOf(this._translations.select)>-1,s=this._selectionLabel.indexOf(this._searchResult?.name)>-1,i=this._workflowType===d.SEARCH?this._searchResult?.name:this._workflowType===d.SELECT?this._translations.select:this._translations.sketch,a=!this._unit&&this._bufferTools.value?this._bufferTools.value.unit:this._unit,l=this._bufferTools.value&&a&&await this._bufferTools.value.getTranslatedUnit(a),r=Number.isNaN(Number(this._distance))&&this._bufferTools.value?this._bufferTools.value.distance:this._distance;this._selectionLabel=e||t||s||!this._selectionLabel?`${i} ${r} ${l}`:this._selectionLabel,this._labelName.value&&(this._labelName.value.value=this._selectionLabel)}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){let t=e.detail.reduce((s,i)=>(this.mapView&&s.push(y(this.mapView,i)),s),[]);return Promise.all(t).then(s=>{this.layerViews=s.reduce((i,a)=>(a&&i.push(a),i),[]),this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})})}}async _inputLayerSelectionChange(e){let t=e?.detail?.length>0?e.detail[0]:"";(!this.selectLayerView||t!==this.selectLayerView.layer.id)&&(this.selectLayerView=this.mapView&&await y(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;let t=this.layerViews.map(s=>(this._featuresCollection[s.layer.id]=[],E(0,s.layer,e,this._featuresCollection)));return Promise.all(t).then(async s=>{this._selectionLoading=!1;let i=[];s.forEach(n=>{Object.keys(n).forEach(h=>{i=i.concat(n[h])})});let a=!1;i.forEach(n=>{let h=n.geometry;n.symbol=h&&h.type==="point"?this.sketchPointSymbol:h&&h.type==="polyline"?this.sketchLineSymbol:h&&h.type==="polygon"?this.sketchPolygonSymbol:void 0,a=n?.layer?.hasOwnProperty("objectIdField")||n.hasOwnProperty("getObjectId")});let l=this.layerViews[0].layer,r=this.selectLayerView?.layer,o=a&&l.url===r?.url&&r?.layerId===l.layerId;await this._sketchGraphicsChanged({detail:{graphics:i,useOIDs:o}},!0)})}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}};V("map-select-tools",g);export{g as MapSelectTools};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as p,d as n,e as h,f as R}from"./HYUXCZG4.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
3
|
+
v1.1.0-next.20250911.2 */
|
4
|
+
import{b as p,d as n,e as h,f as R}from"./CC2IBTVB.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
@@ -1 +1 @@
|
|
1
|
-
{"aboutYourSolution":"بيت_About___________لاحقة","aboutYourSolutionDeployedDate":"بيت_Deployed_________________لاحقة","aboutYourSolutionName":"بيت_Name___________لاحقة:","aboutYourSolutionOwner":"بيت_Owner_____________لاحقة:","aboutYourSolutionSummary":"بيت_Summary_________________لاحقة:","cancelTheDialog":"بيت_Cancel_____________لاحقة","changeOwner":"بيت_Change owner_____________لاحقة","closeTheDialog":"بيت_Close___________لاحقة","configureSolution":"بيت_Configure {{solutionName}}___________________________لاحقة","deleteSolution":"بيت_Delete solution________________لاحقة","deploySuccessAlert":"بيت_{{solutionTitle}} was deployed successfully to your ArcGIS content___________________________________لاحقة!","diagramOfTheSolution":"بيت_Diagram_______________لاحقة","diagramSubText":"بيت_Explore the relationships between items in the solution_____________________________لاحقة.","failedToUpdateSnippet":"بيت_Failed to update the solution's snippet_____________________لاحقة.","failedToUpdateTitle":"بيت_Failed to update the solution's title____________________لاحقة.","failedToUpdateTitles":"بيت_Failed to update the solution's items' titles________________________لاحقة.","itemDetails":"بيت_Item details_____________لاحقة","itemUpdating":"بيت_Updating item______________لاحقة","ok":"بيت_OK_____لاحقة","applyChange":"بيت_Apply___________لاحقة","viewTheDiagram":"بيت_View_________لاحقة","openInNewTab":"بيت_Open_________لاحقة","reviewAndConfigureSolution":"بيت_Review and configure this solution__________________لاحقة","seeWhatsNew":"بيت_See_______لاحقة","showMoreSummary":"بيت_read more___________________لاحقة","solutionsContentsAndCount":"بيت_Contents ({{numberOfSolutions}})_________________لاحقة","solutionNameErrorBlank":"بيت_Name cannot be empty______________________لاحقة.","solutionNameErrorLength":"بيت_Name is too long__________________لاحقة.","solutionNameErrorSpecialCharacter":"بيت_Name contains a special character which is not allowed_____________________________لاحقة.","solutionNameErrorUniqueName":"بيت_Name already exists in your content. Please choose a different name___________________________________لاحقة.","
|
1
|
+
{"aboutYourSolution":"بيت_About___________لاحقة","aboutYourSolutionDeployedDate":"بيت_Deployed_________________لاحقة","aboutYourSolutionName":"بيت_Name___________لاحقة:","aboutYourSolutionOwner":"بيت_Owner_____________لاحقة:","aboutYourSolutionSummary":"بيت_Summary_________________لاحقة:","cancelTheDialog":"بيت_Cancel_____________لاحقة","changeOwner":"بيت_Change owner_____________لاحقة","closeTheDialog":"بيت_Close___________لاحقة","configureSolution":"بيت_Configure {{solutionName}}___________________________لاحقة","deleteSolution":"بيت_Delete solution________________لاحقة","deploySuccessAlert":"بيت_{{solutionTitle}} was deployed successfully to your ArcGIS content___________________________________لاحقة!","diagramOfTheSolution":"بيت_Diagram_______________لاحقة","diagramSubText":"بيت_Explore the relationships between items in the solution_____________________________لاحقة.","failedToUpdateSnippet":"بيت_Failed to update the solution's snippet_____________________لاحقة.","failedToUpdateTitle":"بيت_Failed to update the solution's title____________________لاحقة.","failedToUpdateTitles":"بيت_Failed to update the solution's items' titles________________________لاحقة.","itemDetails":"بيت_Item details_____________لاحقة","itemUpdating":"بيت_Updating item______________لاحقة","ok":"بيت_OK_____لاحقة","applyChange":"بيت_Apply___________لاحقة","viewTheDiagram":"بيت_View_________لاحقة","openInNewTab":"بيت_Open_________لاحقة","reviewAndConfigureSolution":"بيت_Review and configure this solution__________________لاحقة","seeWhatsNew":"بيت_See_______لاحقة","showMoreSummary":"بيت_read more___________________لاحقة","solutionsContentsAndCount":"بيت_Contents ({{numberOfSolutions}})_________________لاحقة","solutionNameErrorBlank":"بيت_Name cannot be empty______________________لاحقة.","solutionNameErrorLength":"بيت_Name is too long__________________لاحقة.","solutionNameErrorSpecialCharacter":"بيت_Name contains a special character which is not allowed_____________________________لاحقة.","solutionNameErrorUniqueName":"بيت_Name already exists in your content. Please choose a different name___________________________________لاحقة.","solutionDocumentation":"بيت_Documentation______________لاحقة","docSubText":"بيت_Learn how to configure and use the solution in your organization__________________________________لاحقة.","updateTheSolution":"بيت_Update_____________لاحقة","updateAvailable":"بيت_Update available_________________لاحقة","updateSolutionName":"بيت_Update solution name_____________________لاحقة","updateSolutionSummary":"بيت_Update solution summary________________________لاحقة","updateTitles":"بيت_Rename items_____________لاحقة","solutionVersion":"بيت_Version_______________لاحقة","versionOfTheSolution":"بيت_Version_______________لاحقة","newVersionAvailable":"بيت_A new version is available____________________________لاحقة.","youHaveTheLatestVersion":"بيت_This is the latest version____________________________لاحقة."}
|
@@ -1 +1 @@
|
|
1
|
-
{"aboutYourSolution":"й_About___________й","aboutYourSolutionDeployedDate":"й_Deployed_________________й","aboutYourSolutionName":"й_Name___________й:","aboutYourSolutionOwner":"й_Owner_____________й:","aboutYourSolutionSummary":"й_Summary_________________й:","cancelTheDialog":"й_Cancel_____________й","changeOwner":"й_Change owner_____________й","closeTheDialog":"й_Close___________й","configureSolution":"й_Configure {{solutionName}}___________________________й","deleteSolution":"й_Delete solution________________й","deploySuccessAlert":"й_{{solutionTitle}} was deployed successfully to your ArcGIS content___________________________________й!","diagramOfTheSolution":"й_Diagram_______________й","diagramSubText":"й_Explore the relationships between items in the solution_____________________________й.","failedToUpdateSnippet":"й_Failed to update the solution's snippet_____________________й.","failedToUpdateTitle":"й_Failed to update the solution's title____________________й.","failedToUpdateTitles":"й_Failed to update the solution's items' titles________________________й.","itemDetails":"й_Item details_____________й","itemUpdating":"й_Updating item______________й","ok":"й_OK_____й","applyChange":"й_Apply___________й","viewTheDiagram":"й_View_________й","openInNewTab":"й_Open_________й","reviewAndConfigureSolution":"й_Review and configure this solution__________________й","seeWhatsNew":"й_See_______й","showMoreSummary":"й_read more___________________й","solutionsContentsAndCount":"й_Contents ({{numberOfSolutions}})_________________й","solutionNameErrorBlank":"й_Name cannot be empty______________________й.","solutionNameErrorLength":"й_Name is too long__________________й.","solutionNameErrorSpecialCharacter":"й_Name contains a special character which is not allowed_____________________________й.","solutionNameErrorUniqueName":"й_Name already exists in your content. Please choose a different name___________________________________й.","
|
1
|
+
{"aboutYourSolution":"й_About___________й","aboutYourSolutionDeployedDate":"й_Deployed_________________й","aboutYourSolutionName":"й_Name___________й:","aboutYourSolutionOwner":"й_Owner_____________й:","aboutYourSolutionSummary":"й_Summary_________________й:","cancelTheDialog":"й_Cancel_____________й","changeOwner":"й_Change owner_____________й","closeTheDialog":"й_Close___________й","configureSolution":"й_Configure {{solutionName}}___________________________й","deleteSolution":"й_Delete solution________________й","deploySuccessAlert":"й_{{solutionTitle}} was deployed successfully to your ArcGIS content___________________________________й!","diagramOfTheSolution":"й_Diagram_______________й","diagramSubText":"й_Explore the relationships between items in the solution_____________________________й.","failedToUpdateSnippet":"й_Failed to update the solution's snippet_____________________й.","failedToUpdateTitle":"й_Failed to update the solution's title____________________й.","failedToUpdateTitles":"й_Failed to update the solution's items' titles________________________й.","itemDetails":"й_Item details_____________й","itemUpdating":"й_Updating item______________й","ok":"й_OK_____й","applyChange":"й_Apply___________й","viewTheDiagram":"й_View_________й","openInNewTab":"й_Open_________й","reviewAndConfigureSolution":"й_Review and configure this solution__________________й","seeWhatsNew":"й_See_______й","showMoreSummary":"й_read more___________________й","solutionsContentsAndCount":"й_Contents ({{numberOfSolutions}})_________________й","solutionNameErrorBlank":"й_Name cannot be empty______________________й.","solutionNameErrorLength":"й_Name is too long__________________й.","solutionNameErrorSpecialCharacter":"й_Name contains a special character which is not allowed_____________________________й.","solutionNameErrorUniqueName":"й_Name already exists in your content. Please choose a different name___________________________________й.","solutionDocumentation":"й_Documentation______________й","docSubText":"й_Learn how to configure and use the solution in your organization__________________________________й.","updateTheSolution":"й_Update_____________й","updateAvailable":"й_Update available_________________й","updateSolutionName":"й_Update solution name_____________________й","updateSolutionSummary":"й_Update solution summary________________________й","updateTitles":"й_Rename items_____________й","solutionVersion":"й_Version_______________й","versionOfTheSolution":"й_Version_______________й","newVersionAvailable":"й_A new version is available____________________________й.","youHaveTheLatestVersion":"й_This is the latest version____________________________й."}
|