@esri/solutions-components 1.0.0-next.20250530 → 1.0.0-next.20250530.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{TZB4SIVB.js → 223GEOHY.js} +2 -2
- package/dist/cdn/{PKQBHNHV.js → 24TZCC7K.js} +2 -2
- package/dist/cdn/2AEJNC2Y.js +4 -0
- package/dist/cdn/{7ICYEZEV.js → 2B4ODL4I.js} +1 -1
- package/dist/cdn/{NW4KXWWN.js → 2BATVN26.js} +2 -2
- package/dist/cdn/{HOZJEHZI.js → 2C2446YO.js} +2 -2
- package/dist/cdn/{YWR7J3GR.js → 2ED5S63G.js} +2 -2
- package/dist/cdn/{CVHD4WPU.js → 2JM5ZUYC.js} +2 -2
- package/dist/cdn/2N6IKQAJ.js +4 -0
- package/dist/cdn/{ZKKTR3BI.js → 2T7OWYJF.js} +1 -1
- package/dist/cdn/{6DWD2XLO.js → 2TFAMRO4.js} +2 -2
- package/dist/cdn/{MSAGS3RU.js → 2ZIEEWZM.js} +2 -2
- package/dist/cdn/{GPVKAG4C.js → 3EVL4T45.js} +2 -2
- package/dist/cdn/{R2MSIDPH.js → 3GNSS25V.js} +2 -2
- package/dist/cdn/{MZNCYU5F.js → 3J33WXHY.js} +2 -2
- package/dist/cdn/{HK4LMSCI.js → 3VKOIUB3.js} +2 -2
- package/dist/cdn/{OTV4TIHA.js → 3YMTKEK5.js} +1 -1
- package/dist/cdn/{5TJLMZD4.js → 45VAALBN.js} +2 -2
- package/dist/cdn/{HPD42QK2.js → 46KNGUML.js} +2 -2
- package/dist/cdn/{NPELRLAT.js → 472AWOX3.js} +1 -1
- package/dist/cdn/{OL6BCU24.js → 4J4NUK33.js} +2 -2
- package/dist/cdn/{LRUGHWTN.js → 4NUVQZAI.js} +1 -1
- package/dist/cdn/{MFK4TJVR.js → 4TE3RTYX.js} +2 -2
- package/dist/cdn/{ASMSD26H.js → 55EBYUZN.js} +2 -2
- package/dist/cdn/{SAVY6UWC.js → 5A7G5CA4.js} +2 -2
- package/dist/cdn/{WJF7O2KL.js → 5DFDVK6H.js} +2 -2
- package/dist/cdn/{GNLCPEV7.js → 5LMXTWC2.js} +2 -2
- package/dist/cdn/{MJ7WUNVY.js → 5S33W4IV.js} +2 -2
- package/dist/cdn/{73MN3UQT.js → 5T6A2NT3.js} +2 -2
- package/dist/cdn/{FINGXX6A.js → 64FZOXAN.js} +2 -2
- package/dist/cdn/{R4TKAAQV.js → 6BYYEA3R.js} +2 -2
- package/dist/cdn/{PC7NVT5O.js → 6DT74H27.js} +2 -2
- package/dist/cdn/{2VNIKRUP.js → 6FUII4JI.js} +2 -2
- package/dist/cdn/{5Y5ORVLB.js → 6KYFPVWD.js} +1 -1
- package/dist/cdn/{O34SMVFC.js → 6M5LLBFV.js} +2 -2
- package/dist/cdn/{6OHWZOS5.js → 6XR6SHED.js} +2 -2
- package/dist/cdn/6Z5XKLIH.js +4 -0
- package/dist/cdn/{XANWM4XJ.js → 6ZIUZPW6.js} +2 -2
- package/dist/cdn/{IAZYT5SM.js → 73DTRGE3.js} +2 -2
- package/dist/cdn/{LMGSYVDG.js → 77VHGJGG.js} +1 -1
- package/dist/cdn/{Z25W4Z6L.js → 7BQXCVHW.js} +2 -2
- package/dist/cdn/{C7F3GRAL.js → 7CR6HYTL.js} +2 -2
- package/dist/cdn/{624IUPMH.js → 7D7PABFH.js} +2 -2
- package/dist/cdn/{DKFDVAPB.js → 7LTABIRE.js} +2 -2
- package/dist/cdn/{6EHPMLHH.js → 7NWNTAMW.js} +2 -2
- package/dist/cdn/{JL5VELML.js → 7P23QXUP.js} +2 -2
- package/dist/cdn/{4M4MXT54.js → 7PDUKDDV.js} +2 -2
- package/dist/cdn/{X472G43W.js → 7TZWE6K3.js} +2 -2
- package/dist/cdn/{FX4JCXT3.js → A5KMT3LM.js} +2 -2
- package/dist/cdn/{UCOGDUDQ.js → AAQNZMHM.js} +2 -2
- package/dist/cdn/{S7HDN545.js → AFD4RBBU.js} +2 -2
- package/dist/cdn/{XJHNY525.js → AOPVDS2B.js} +2 -2
- package/dist/cdn/{HBZ4X7UP.js → AX3FGYBT.js} +2 -2
- package/dist/cdn/{HSDQUCF6.js → BD737FGF.js} +2 -2
- package/dist/cdn/{K4F6G4OQ.js → BEBIPBJB.js} +1 -1
- package/dist/cdn/{FMBJIOBG.js → BGVLMLWE.js} +2 -2
- package/dist/cdn/{VSFHEXKM.js → BMXZA6UO.js} +2 -2
- package/dist/cdn/{QQFRILT6.js → BOKYBROP.js} +2 -2
- package/dist/cdn/{YDQ3OJQO.js → BV76MPA5.js} +1 -1
- package/dist/cdn/{BLRHWO52.js → BVIFPMNY.js} +2 -2
- package/dist/cdn/{A7QSMG5S.js → C34H6SGK.js} +1 -1
- package/dist/cdn/{U4AOWHPN.js → C3P3IFUU.js} +2 -2
- package/dist/cdn/{FJZZPZAP.js → C556IKNJ.js} +1 -1
- package/dist/cdn/{WTHR4PDS.js → CBQHTAYP.js} +2 -2
- package/dist/cdn/{7HKKUGXJ.js → CCBFE5GN.js} +2 -2
- package/dist/cdn/{BJMWCYCG.js → CCKIOTSJ.js} +1 -1
- package/dist/cdn/{JHW7VZTV.js → CH5PRHPR.js} +2 -2
- package/dist/cdn/{4AKAPNSY.js → CMOLOAHQ.js} +2 -2
- package/dist/cdn/{5HIKUFVB.js → CPBYDRAF.js} +2 -2
- package/dist/cdn/{H3YXFKQG.js → CQFA3WBO.js} +2 -2
- package/dist/cdn/{WFQNYZM4.js → CTUHVTSA.js} +2 -2
- package/dist/cdn/{RUZUM5JL.js → CXJ53YNZ.js} +2 -2
- package/dist/cdn/CZCNKDL6.js +4 -0
- package/dist/cdn/{ASAQWYLX.js → D6EOKX53.js} +2 -2
- package/dist/cdn/{NO2SL2YF.js → DA5DY7HY.js} +1 -1
- package/dist/cdn/{HUJDORKB.js → DIYKH756.js} +2 -2
- package/dist/cdn/{SITUZTCB.js → DP5KDHDS.js} +1 -1
- package/dist/cdn/{SUYA6BJE.js → DRGQGDS6.js} +2 -2
- package/dist/cdn/{23QD6NT3.js → DTXY6OOO.js} +2 -2
- package/dist/cdn/{B7LQMG3R.js → DV3SVW2J.js} +2 -2
- package/dist/cdn/DVMPKT5N.js +4 -0
- package/dist/cdn/{T6ENDM5I.js → DZSY5JZN.js} +2 -2
- package/dist/cdn/{DXVTCY4M.js → EDTDPGLP.js} +2 -2
- package/dist/cdn/{65WW5KKH.js → EJS4EUMP.js} +2 -2
- package/dist/cdn/{YUXVO62S.js → EK4MS2HQ.js} +2 -2
- package/dist/cdn/{76ZVHQZN.js → EL4X5ULJ.js} +2 -2
- package/dist/cdn/{KPU6AFJN.js → EMCOKOZ5.js} +2 -2
- package/dist/cdn/{5TRKAS2N.js → ES6XKTKK.js} +1 -1
- package/dist/cdn/{77XUB3YE.js → EUKMNMGH.js} +2 -2
- package/dist/cdn/{LCUHKJMS.js → EXXZSWW2.js} +2 -2
- package/dist/cdn/{MPJ2AA4Y.js → F3IRPQCO.js} +2 -2
- package/dist/cdn/{IY4EENZ5.js → F45IOLFK.js} +2 -2
- package/dist/cdn/{UTUTEFAQ.js → F56VXVXX.js} +2 -2
- package/dist/cdn/{OKMLPIEO.js → F7SKZ7TX.js} +2 -2
- package/dist/cdn/{PYTYKQXT.js → FAND47WD.js} +2 -2
- package/dist/cdn/{AWWFUP7R.js → FDZTWT7F.js} +2 -2
- package/dist/cdn/{Z3VO6XU3.js → FHVWZYRK.js} +2 -2
- package/dist/cdn/{LQRMHTGZ.js → FNI2QU5Z.js} +2 -2
- package/dist/cdn/{C6W5EVRT.js → FPPXUL5B.js} +2 -2
- package/dist/cdn/{7RRAT3I3.js → FZXH5UDA.js} +2 -2
- package/dist/cdn/{RFBPGTLV.js → GDZS5JMN.js} +2 -2
- package/dist/cdn/{OGSX3AIB.js → GE3L6RLR.js} +2 -2
- package/dist/cdn/GH3PRS32.js +18 -0
- package/dist/cdn/{UF7C45QH.js → GJKEPLSZ.js} +1 -1
- package/dist/cdn/{UVD3URNY.js → GJWN4WP3.js} +2 -2
- package/dist/cdn/{2EOEAV5E.js → GMHH44W3.js} +2 -2
- package/dist/cdn/{OOIVSIXL.js → GUTIVTWX.js} +2 -2
- package/dist/cdn/{NKOVTFUU.js → GV3IWFPF.js} +1 -1
- package/dist/cdn/{AAZLISVR.js → GWV77TVF.js} +2 -2
- package/dist/cdn/{UMIMUVFB.js → GXKAH7DD.js} +2 -2
- package/dist/cdn/{OY2EULMD.js → GZU2CPZN.js} +1 -1
- package/dist/cdn/{CRVOSDOH.js → H3O4ORNM.js} +2 -2
- package/dist/cdn/{ACD5DGKO.js → H77B36RA.js} +2 -2
- package/dist/cdn/{TGF4D4AP.js → HAQYF5US.js} +2 -2
- package/dist/cdn/{SM4ERQVS.js → HCVBMJG5.js} +2 -2
- package/dist/cdn/{D64CJOFO.js → HITNOOU3.js} +2 -2
- package/dist/cdn/{3CHLZWTV.js → HMGYITJ2.js} +2 -2
- package/dist/cdn/{RUXEHYBS.js → HQ4JF5OI.js} +2 -2
- package/dist/cdn/{NIVL5UGT.js → HQW4WYSH.js} +2 -2
- package/dist/cdn/{JDPFMWSP.js → HTW2BPA3.js} +2 -2
- package/dist/cdn/{MJ7SNROO.js → HYIN2EAD.js} +2 -2
- package/dist/cdn/{OFMVTSKF.js → I5QBLE4N.js} +2 -2
- package/dist/cdn/{FBFPEXXQ.js → I5SZYEIS.js} +2 -2
- package/dist/cdn/{ZKOIDQFC.js → I5VSPGGJ.js} +2 -2
- package/dist/cdn/{LI5GC7CN.js → I5YXI6G2.js} +2 -2
- package/dist/cdn/{W3LLXNL3.js → IDBD7LSX.js} +1 -1
- package/dist/cdn/{QSOWUBRL.js → IDRORHF7.js} +2 -2
- package/dist/cdn/{X7YNYBQ7.js → ILUBVWJF.js} +1 -1
- package/dist/cdn/{6PMWYOH6.js → IRHPLBFA.js} +2 -2
- package/dist/cdn/{NFHEIYMD.js → J3RU5GJE.js} +2 -2
- package/dist/cdn/{XQTZGROY.js → JAG5YFJB.js} +2 -2
- package/dist/cdn/{G6RPSMZU.js → JFKJRB56.js} +2 -2
- package/dist/cdn/{VNKBLONB.js → JI5ZRG7H.js} +2 -2
- package/dist/cdn/{CNE6Q3HD.js → JKNNOYXC.js} +2 -2
- package/dist/cdn/{B6D7BVKN.js → JM6ORLVQ.js} +2 -2
- package/dist/cdn/{LCP3BY3N.js → JN5YR3C5.js} +2 -2
- package/dist/cdn/{RZ64SXIZ.js → JQEVQ7FX.js} +2 -2
- package/dist/cdn/{PQF5AGW3.js → JSIYTPMP.js} +2 -2
- package/dist/cdn/{66KXCMW2.js → JTDXHRQI.js} +2 -2
- package/dist/cdn/{XXHTK6SD.js → K7LCWOS7.js} +2 -2
- package/dist/cdn/{GVMSMEI4.js → KCN6JCXH.js} +2 -2
- package/dist/cdn/{NGOP7PKK.js → KK5SXYNF.js} +2 -2
- package/dist/cdn/{2XITJCRB.js → KLKHZZWM.js} +2 -2
- package/dist/cdn/{HF75TXAE.js → KQCFHFAG.js} +2 -2
- package/dist/cdn/{LXA33IHT.js → KXIA4444.js} +2 -2
- package/dist/cdn/L2QQ7XWU.js +4 -0
- package/dist/cdn/{YWKKYK5K.js → L4KM5BWJ.js} +2 -2
- package/dist/cdn/{FOARVMCU.js → LATOYW5P.js} +1 -1
- package/dist/cdn/{GHOZRGNX.js → LSMRI35A.js} +2 -2
- package/dist/cdn/{4UN2BYLH.js → LWP7WX74.js} +1 -1
- package/dist/cdn/{G6J2G3OU.js → M6XUGB2Z.js} +2 -2
- package/dist/cdn/{N4SJLKUB.js → MCM7XWTF.js} +2 -2
- package/dist/cdn/{H46M3Z3P.js → MDHH56JU.js} +2 -2
- package/dist/cdn/{6Y2HFRCC.js → MHOAA6P3.js} +2 -2
- package/dist/cdn/{H22ZUYLG.js → MKROWF52.js} +2 -2
- package/dist/cdn/{57KRALMV.js → MLZ4RTHG.js} +2 -2
- package/dist/cdn/{A3472HMO.js → MNA6JCMZ.js} +2 -2
- package/dist/cdn/{UJIWOKHV.js → MVQ6IP26.js} +2 -2
- package/dist/cdn/{R7RG6ML5.js → MWA7BHLK.js} +2 -2
- package/dist/cdn/{623GWCXD.js → MYGSYGYU.js} +2 -2
- package/dist/cdn/{TJYWSXAE.js → N33BUUYD.js} +2 -2
- package/dist/cdn/N3A5PMYA.js +4 -0
- package/dist/cdn/{AOWCHDDD.js → NBHU4HTV.js} +2 -2
- package/dist/cdn/{VVKUWUHS.js → NEMP2EEG.js} +2 -2
- package/dist/cdn/{ZK3VF62M.js → NIXMWDPM.js} +1 -1
- package/dist/cdn/{CVY3C2IL.js → NLJSCFKM.js} +2 -2
- package/dist/cdn/{MTI5LVZW.js → NNQEWRZP.js} +2 -2
- package/dist/cdn/{RM2TEOMI.js → NNRPVDMT.js} +2 -2
- package/dist/cdn/{STR7L3II.js → NS4YKFI7.js} +1 -1
- package/dist/cdn/{BHDI3U4H.js → NTASDALK.js} +2 -2
- package/dist/cdn/{H6V2DNZK.js → NTHWDWQ4.js} +2 -2
- package/dist/cdn/{OLE4GCSZ.js → NUFMCKHA.js} +2 -2
- package/dist/cdn/{PQ6UKR2D.js → O2HIRP5H.js} +2 -2
- package/dist/cdn/{6B752FN2.js → O5IG7QMW.js} +2 -2
- package/dist/cdn/{H5ZIHIO2.js → O5STABPN.js} +2 -2
- package/dist/cdn/{ADKZI66G.js → OF5XRF7X.js} +2 -2
- package/dist/cdn/{NUCJR6CY.js → ON477UD5.js} +2 -2
- package/dist/cdn/{COHNJZCA.js → OONRY2LS.js} +2 -2
- package/dist/cdn/{WVOYVMPB.js → OPHPZAWR.js} +2 -2
- package/dist/cdn/{DFVGHMS4.js → OPPO4362.js} +2 -2
- package/dist/cdn/{W77AHKSW.js → ORPALJYI.js} +2 -2
- package/dist/cdn/{ULUZHD23.js → OSW5BFUP.js} +2 -2
- package/dist/cdn/{DPCZKJNP.js → OVK3TD4M.js} +2 -2
- package/dist/cdn/{FVYY2V6T.js → OWDWZHMV.js} +2 -2
- package/dist/cdn/{DMOHDVMJ.js → P4QZUNYY.js} +2 -2
- package/dist/cdn/{43ULSAMW.js → P5R5UYXR.js} +2 -2
- package/dist/cdn/{5AXS3KFI.js → P6B7MWVF.js} +2 -2
- package/dist/cdn/{4FC3X2PR.js → PDWNCQED.js} +2 -2
- package/dist/cdn/{SFZSSATF.js → PHA5TYOC.js} +1 -1
- package/dist/cdn/{2Z3TWB2K.js → PND2W5YW.js} +2 -2
- package/dist/cdn/PRILEYGG.js +4 -0
- package/dist/cdn/{Y6GOEXCP.js → QCU33RPV.js} +1 -1
- package/dist/cdn/{JSUMCSCE.js → QEWSNHU7.js} +2 -2
- package/dist/cdn/{MSC6SQKC.js → QF5QELVM.js} +2 -2
- package/dist/cdn/{VQNKIJYJ.js → QMT7LNSC.js} +2 -2
- package/dist/cdn/{SWLTPJE7.js → QSCPIFBP.js} +2 -2
- package/dist/cdn/{JRD5PLWA.js → QU3EEVJP.js} +2 -2
- package/dist/cdn/{474ZEOFB.js → QUVQBXCE.js} +1 -1
- package/dist/cdn/{IWEV46QA.js → R7OODGTN.js} +2 -2
- package/dist/cdn/{X5I4YW2D.js → RC47QK6Z.js} +2 -2
- package/dist/cdn/{FT36ADUC.js → RCFE6H7G.js} +2 -2
- package/dist/cdn/{BTLOBHUI.js → RHQK4LTS.js} +2 -2
- package/dist/cdn/{MPF442O4.js → RRKWVYF6.js} +2 -2
- package/dist/cdn/{XS2PGUTI.js → RSMTUN7I.js} +2 -2
- package/dist/cdn/{VUE2KPGT.js → RTFLMETG.js} +1 -1
- package/dist/cdn/{UU5CNOQW.js → RVQUWOMM.js} +1 -1
- package/dist/cdn/{5S33JONB.js → RWFMDK27.js} +2 -2
- package/dist/cdn/{UPY2LA6F.js → RX6Y3JHB.js} +2 -2
- package/dist/cdn/{UFB3TUWD.js → RY37AQKX.js} +2 -2
- package/dist/cdn/{OK6EFAL5.js → SAQTFWRS.js} +2 -2
- package/dist/cdn/{LZS774B3.js → SGGIVA63.js} +1 -1
- package/dist/cdn/{UMQ6LGJX.js → SGUBT5JB.js} +2 -2
- package/dist/cdn/{FLMBYBSQ.js → SLLAIEW4.js} +2 -2
- package/dist/cdn/{D3CEKY4I.js → T2TH26PQ.js} +2 -2
- package/dist/cdn/{5S2LGZK4.js → T4BAASGD.js} +2 -2
- package/dist/cdn/{NQHY7XX2.js → TIPFSDZA.js} +2 -2
- package/dist/cdn/{PNYGXVOF.js → TP3QX5HT.js} +2 -2
- package/dist/cdn/{CDW32ZV2.js → TQM2UAMN.js} +2 -2
- package/dist/cdn/{USLNR5GM.js → TTJLCKXQ.js} +2 -2
- package/dist/cdn/{MHWXPIZF.js → TWSV65O2.js} +2 -2
- package/dist/cdn/{WB3MRH4D.js → U5GNKKAT.js} +2 -2
- package/dist/cdn/{GIZRBHCR.js → UCRJGUPR.js} +2 -2
- package/dist/cdn/{CIR5U4D6.js → UE3MOFNO.js} +2 -2
- package/dist/cdn/{C5O32W6W.js → UFW2PO2K.js} +2 -2
- package/dist/cdn/{2WTCHQJH.js → UQ6BMBWB.js} +2 -2
- package/dist/cdn/{36LI3UQA.js → USUJ3LC6.js} +2 -2
- package/dist/cdn/UWFHS56N.js +18 -0
- package/dist/cdn/{QUXU6A5O.js → UWYX3KLQ.js} +2 -2
- package/dist/cdn/{YGOJWFRE.js → UY5WXQ65.js} +1 -1
- package/dist/cdn/{IOFFIYTL.js → UZ7Z2JVT.js} +1 -1
- package/dist/cdn/{S76CATML.js → UZC6O522.js} +2 -2
- package/dist/cdn/{GWZJKQMN.js → V2CTNIEN.js} +2 -2
- package/dist/cdn/{PLZQ55P6.js → V3NJ7RMG.js} +1 -1
- package/dist/cdn/{QWW5LVKF.js → VE4I5REF.js} +1 -1
- package/dist/cdn/{6TLILFC7.js → VF44ZDU6.js} +2 -2
- package/dist/cdn/{N6WVCUYZ.js → VFHITJHF.js} +2 -2
- package/dist/cdn/{H46O6YAN.js → VGOCUCWJ.js} +2 -2
- package/dist/cdn/{O7VNTXYR.js → VHCT5ETZ.js} +1 -1
- package/dist/cdn/{G2RF3XGL.js → VIJEHZLK.js} +2 -2
- package/dist/cdn/{NOSOENXA.js → VKCASX3G.js} +2 -2
- package/dist/cdn/{VVBT7KBI.js → VLHN4DFG.js} +2 -2
- package/dist/cdn/{JQ5YNHDK.js → VMWRKCHU.js} +2 -2
- package/dist/cdn/{QHCRENJA.js → VN7EOIEM.js} +2 -2
- package/dist/cdn/{RVP3IPFW.js → VPRU3HQD.js} +2 -2
- package/dist/cdn/{RJMRH5EB.js → VVQFUKSX.js} +2 -2
- package/dist/cdn/{RU4LFZ43.js → VZJ4LWYJ.js} +2 -2
- package/dist/cdn/{B5VH5463.js → W6GET7ZB.js} +2 -2
- package/dist/cdn/{YEZ45MYI.js → W6QIPNCT.js} +2 -2
- package/dist/cdn/{JDBE77NZ.js → WAQJ4IC3.js} +2 -2
- package/dist/cdn/{QKSO2DZS.js → WBJLCNZG.js} +2 -2
- package/dist/cdn/{DPQI6KC3.js → WO34BPRA.js} +2 -2
- package/dist/cdn/{FIZQWFHG.js → WQSGEAXH.js} +2 -2
- package/dist/cdn/{V3UMFOSY.js → WS4WNRNQ.js} +2 -2
- package/dist/cdn/{VI4S4LJS.js → WSDY2CHI.js} +1 -1
- package/dist/cdn/{5LO4GJR2.js → WSUH3PG3.js} +2 -2
- package/dist/cdn/{RTSDGCAZ.js → X6MD346Y.js} +2 -2
- package/dist/cdn/{YHPDJ5FN.js → XCCD5RBC.js} +2 -2
- package/dist/cdn/{GAJRZJ5F.js → XHQDXY4H.js} +2 -2
- package/dist/cdn/{B6UMTBML.js → XLMYFJTK.js} +2 -2
- package/dist/cdn/{7MSPLAAS.js → XVDOUKNJ.js} +1 -1
- package/dist/cdn/{Q2NP2O3M.js → XZBB2UEX.js} +1 -1
- package/dist/cdn/{2BKGC3GR.js → XZEDAG2T.js} +2 -2
- package/dist/cdn/{4WQSWJOC.js → Y52LUZET.js} +4 -4
- package/dist/cdn/{INHTUKGG.js → YB3XRPJ5.js} +2 -2
- package/dist/cdn/{ZBE4V2ZL.js → YF65GC7S.js} +2 -2
- package/dist/cdn/{WG6YT6NR.js → YMHHSIXK.js} +2 -2
- package/dist/cdn/{PUL6DFZP.js → YO2OX52L.js} +2 -2
- package/dist/cdn/{5ZNOFKZT.js → YR5E3HFV.js} +2 -2
- package/dist/cdn/{IFQJHKJ3.js → YUAPYYIK.js} +2 -2
- package/dist/cdn/{GULDKM5K.js → YUQ2VNA6.js} +2 -2
- package/dist/cdn/{EDGMFTA5.js → YY23O533.js} +1 -1
- package/dist/cdn/{DTFCT5IZ.js → Z3QNUQDB.js} +2 -2
- package/dist/cdn/{6WM4LAYI.js → Z42LHLHR.js} +1 -1
- package/dist/cdn/{TDAFNKRF.js → ZFWMGQUB.js} +2 -2
- package/dist/cdn/{XUI76RRO.js → ZKX2RDI2.js} +2 -2
- package/dist/cdn/{TNKUKSQO.js → ZXPEMYN2.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +3 -3
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.d.ts +0 -5
- package/dist/components/map-layer-picker/customElement.js +5 -5
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +1 -18
- package/dist/docs/docs.json +1 -23
- package/dist/docs/web-types.json +1 -6
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/2NWAL23W.js +0 -4
- package/dist/cdn/4MBXYMTN.js +0 -18
- package/dist/cdn/7DEB6EKJ.js +0 -4
- package/dist/cdn/BWUWGBTF.js +0 -4
- package/dist/cdn/DI3ZJNYG.js +0 -4
- package/dist/cdn/H3WID2XT.js +0 -18
- package/dist/cdn/KVNQHEXQ.js +0 -4
- package/dist/cdn/S3DJ42LQ.js +0 -4
- package/dist/cdn/SOCFGEQX.js +0 -4
- package/dist/cdn/XJJZC34E.js +0 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as k}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as k}from"./BD737FGF.js";import"./NIXMWDPM.js";import{g as s}from"./6KYFPVWD.js";import{a as g,b as m}from"./R7OODGTN.js";import{b as y}from"./CCKIOTSJ.js";import{a as w}from"./TP3QX5HT.js";import{D as n,E as o,I as p,c,d as l,o as a,q as d}from"./RTFLMETG.js";import"./GZU2CPZN.js";var _=c`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a}from"./UY5WXQ65.js";import{a as d}from"./GJKEPLSZ.js";import{m as b,n as m}from"./OWDWZHMV.js";import"./DA5DY7HY.js";import{a as l}from"./ILUBVWJF.js";import{a as i}from"./CH5PRHPR.js";import"./IDBD7LSX.js";import"./NTHWDWQ4.js";import"./GV3IWFPF.js";import"./HMGYITJ2.js";import"./SGUBT5JB.js";import"./CXJ53YNZ.js";import"./M6XUGB2Z.js";import"./7NWNTAMW.js";import"./CPBYDRAF.js";import"./UQ6BMBWB.js";import"./I5VSPGGJ.js";import"./BV76MPA5.js";import"./HYIN2EAD.js";import"./VHCT5ETZ.js";import"./YR5E3HFV.js";import"./EK4MS2HQ.js";import"./GJWN4WP3.js";import"./C34H6SGK.js";import"./RX6Y3JHB.js";import"./NNRPVDMT.js";import"./SGGIVA63.js";import"./C556IKNJ.js";import"./GZU2CPZN.js";function h(e,r){let t=l(r,"portal")||l(r,"authentication.portal")||"www.arcgis.com",n=`${d(t)}/sharing/rest`;return b(e,Object.assign(Object.assign({},r),{portal:n}))}var _=async(e,r,t)=>{var n,o;let s,p=`{{${e}.notice.message:translate}}`,g=[{ariaLabel:`{{${e}.notice.actions.goToOrg:translate}}`,label:`{{${e}.notice.actions.goToOrg:translate}}`,href:`${t.portalUrl}/home/organization.html?tab=general#settings`,target:"_blank"}],c=await C(t),y=!((n=c.informationalBanner)===null||n===void 0)&&n.enabled?`{{${e}.fields.infoBanner.helperText:translate}}`:`{{${e}.fields.infoBanner.helperTextWhenDisabled:translate}}`,O=`{{${e}.fields.infoBanner.goToBannerConfig:translate}}`,$=`<calcite-link href=${t.portalUrl}/home/organization.html?tab=security#settings target="_blank" icon-end="launch">${O}</calcite-link>`;if(t.communityOrgId||t.enterpriseOrgId){let f=t.enterpriseOrgId?"goToStaffOrg":"goToCommunityOrg",u=await S(t),w=t.enterpriseOrgId||t.communityOrgId;s=t.trustedOrgs.find(T=>T.to.orgId===w).to.name,p=t.enterpriseOrgId?`{{${e}.notice.staffMessage:translate}}: ${s}`:`{{${e}.notice.communityMessage:translate}}: ${s}`,u&&g.push({ariaLabel:`{{${e}.notice.actions.${f}:translate}}`,label:`{{${e}.notice.actions.${f}:translate}}`,href:u,target:"_blank"})}return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.userSettings`,elements:[{type:"Control",scope:"/properties/settings/properties/preview/properties/workspace",labelKey:`${e}.fields.workspacePreview.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.workspacePreview.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.orgSettings.label`,options:{helperText:{label:`${t.portal.name}`}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin&&t.currentUser.orgId===t.portal.id]}],elements:[{type:"Notice",options:{notice:{configuration:{id:"user-org-settings-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.notice.title:translate}}`,message:p,autoShow:!0,actions:g}}},{type:"Section",labelKey:`${e}.sections.orgSettings.siteDefaults.label`,elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",labelKey:`${e}.fields.infoBanner.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{label:y}},rules:[{effect:i.DISABLE,conditions:[!(!((o=c.informationalBanner)===null||o===void 0)&&o.enabled)]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",options:{control:"calcite-link",layout:"inline-space-between",helperText:{label:$}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin]}]}]},{type:"Section",labelKey:`${e}.sections.orgSettings.signinSettings.label`,rules:[{effect:i.SHOW,conditions:[!!(t.isCommunityOrg&&t.isOrgAdmin)]}],options:{helperText:{labelKey:`${e}.sections.orgSettings.signinSettings.helperText`}},elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",labelKey:`${e}.fields.enableTermsAndConditions.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/termsAndConditions",labelKey:`${e}.fields.termsAndConditions.label`,options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",schema:{const:!0}}]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/enableSignupText",labelKey:`${e}.fields.enableSignupText.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/signupText",options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableSignupText",schema:{const:!0}}]}]}]}]}]}};async function S(e){let r=`${e.communityOrgUrl}/home/organization.html`;if(e.enterpriseOrgId){let n=await a(h,{})(e.enterpriseOrgId,e.requestOptions);n.urlKey?r=`https://${n.urlKey}.${n.customBaseUrl}/home/organization.html`:r=void 0}return r}async function C(e){return await a(m,{})(e.portal.id,{portal:e.sharingApiUrl})}export{C as _getPortalSettings,_ as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as g,b as E,c as p,d as I,e as f,f as r,i as y,j as S,l as k}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as g,b as E,c as p,d as I,e as f,f as r,i as y,j as S,l as k}from"./VKCASX3G.js";import"./HQ4JF5OI.js";import"./QMT7LNSC.js";import"./PHA5TYOC.js";import"./WSDY2CHI.js";import{a as _,c as i,d as v,e as U,f as b,j as w}from"./5DFDVK6H.js";import"./GZU2CPZN.js";var A=`
|
5
5
|
.ck.ck-reset.ck-editor.ck-rounded-corners {
|
6
6
|
margin-top: 10px !important;
|
7
7
|
margin-left: 55px !important;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a,b}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a,b}from"./RX6Y3JHB.js";import"./NNRPVDMT.js";import"./SGGIVA63.js";import"./C556IKNJ.js";import"./GZU2CPZN.js";export{a as SiteEditorTypes,b as getSiteSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as h}from"./STR7L3II.js";import{b as m}from"./5S2LGZK4.js";import{a as U}from"./QWW5LVKF.js";import{c as t,e as l,f as d}from"./YWR7J3GR.js";import{a as N}from"./UU5CNOQW.js";import{c as A}from"./NKOVTFUU.js";function w(n){return n.httpMethod="POST",m("/channels",n)}function $(n){return n.httpMethod="GET",m(`/channels/${n.channelId}`,n)}function B(n){return n.httpMethod="PATCH",m(`/channels/${n.channelId}`,n)}function H(n){return n.httpMethod="DELETE",m(`/channels/${n.channelId}`,n)}function T(n){return n.role==="org_admin"}function C(n={},e){return n.orgId===e}function f(n,e){return T(n)&&C(n,e)}function u(n={},e){var r;return!!(!((r=n.privileges)===null||r===void 0)&&r.includes(e))}function p(n={},e){return e.every(r=>u(n,r))}function y(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:updateItems"])}function D(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:deleteItems"])}function M(n){let{channelAclDefinition:e}=n,r=U(n,["channelAclDefinition"]);return Object.assign(Object.assign({},r),{channelAcl:e})}var o;(function(n){n.READ_POSTS="readPosts",n.WRITE_POSTS="writePosts",n.MODERATE_CHANNEL="moderateChannel",n.DELETE_CHANNEL="deleteChannel",n.IS_MODERATOR="isModerator",n.IS_MANAGER="isManager",n.IS_OWNER="isOwner"})(o||(o={}));var E={UPDATE_OWNERS:[t.OWNER],UPDATE_MANAGERS:[t.OWNER,t.MANAGE],UPDATE_MODERATORS:[t.OWNER,t.MANAGE],UPDATE_ORGS:[t.OWNER,t.MANAGE],UPDATE_GROUPS:[t.OWNER,t.MANAGE],UPDATE_USERS:[t.OWNER,t.MANAGE],UPDATE_AUTHENTICATED_USERS:[t.OWNER,t.MANAGE],UPDATE_ANONYMOUS_USERS:[t.OWNER,t.MANAGE],UPDATE_POST_REPLIES:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_AS_ANONYMOUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_ALLOWED_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_DEFAULT_POST_STATUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_BLOCKED_WORDS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_CHANNEL_NAME:[t.OWNER,t.MANAGE],UPDATE_SOFT_DELETE_SETTING:[t.OWNER,t.MANAGE]},R=class{constructor(e){if(this.ALLOWED_GROUP_MEMBER_TYPES=["owner","admin","member"],e.channelAcl===void 0)throw new Error("channel.channelAcl is required for ChannelPermission checks");this.existingChannel=e,this.isChannelAclEmpty=e.channelAcl.length===0,this.permissionsByCategory={},e.channelAcl.forEach(r=>{var i;let{category:s}=r;!((i=this.permissionsByCategory[s])===null||i===void 0)&&i.push(r)||(this.permissionsByCategory[s]=[r])})}canPostToChannel(e){return this.canAnyUser(o.WRITE_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.WRITE_POSTS)||this.canSomeUser(o.WRITE_POSTS,e)||this.canSomeUserGroup(o.WRITE_POSTS,e)||this.canSomeUserOrg(o.WRITE_POSTS,e)}canCreateChannel(e){return this.isUserUnAuthenticated(e)||this.isChannelAclEmpty?!1:this.userCanAddAnonymousToAcl(e)&&this.userCanAddUnauthenticatedToAcl(e)&&this.userCanAddAllGroupsToAcl(e)&&this.userCanAddAllOrgsToAcl(e)&&this.userCanAddUsersToAcl(e)}canModerateChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.MODERATE_CHANNEL,e)||this.canSomeUserGroup(o.MODERATE_CHANNEL,e)||this.canSomeUserOrg(o.MODERATE_CHANNEL,e)}canReadChannel(e){return this.canAnyUser(o.READ_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.READ_POSTS)||this.canSomeUser(o.READ_POSTS,e)||this.canSomeUserGroup(o.READ_POSTS,e)||this.canSomeUserOrg(o.READ_POSTS,e)}canDeleteChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.DELETE_CHANNEL,e)||this.canSomeUserGroup(o.DELETE_CHANNEL,e)||this.canSomeUserOrg(o.DELETE_CHANNEL,e)}canUpdateProperties(e,r={}){if(Object.keys(r).length===0)return!0;let i=this.determineUserRole(e),s=M(r);return!(this.isChanged(s.allowReply,this.existingChannel.allowReply)&&!E.UPDATE_POST_REPLIES.includes(i)||this.isChanged(s.allowReaction,this.existingChannel.allowReaction)&&!E.UPDATE_POST_REACTIONS.includes(i)||this.isChanged(s.allowAsAnonymous,this.existingChannel.allowAsAnonymous)&&!E.UPDATE_POST_AS_ANONYMOUS.includes(i)||this.isStringArrayChanged(s.allowedReactions,this.existingChannel.allowedReactions)&&!E.UPDATE_ALLOWED_REACTIONS.includes(i)||this.isChanged(s.defaultPostStatus,this.existingChannel.defaultPostStatus)&&!E.UPDATE_DEFAULT_POST_STATUS.includes(i)||this.isStringArrayChanged(s.blockWords,this.existingChannel.blockWords)&&!E.UPDATE_BLOCKED_WORDS.includes(i)||this.isChanged(s.name,this.existingChannel.name)&&!E.UPDATE_CHANNEL_NAME.includes(i)||this.isChanged(s.softDelete,this.existingChannel.softDelete)&&!E.UPDATE_SOFT_DELETE_SETTING.includes(i)||this.isRoleChanged(t.OWNER,s.channelAcl)&&!E.UPDATE_OWNERS.includes(i)||this.isRoleChanged(t.MANAGE,s.channelAcl)&&!E.UPDATE_MANAGERS.includes(i)||this.isRoleChanged(t.MODERATE,s.channelAcl)&&!E.UPDATE_MODERATORS.includes(i)||this.isCategoryChanged(l.ORG,s.channelAcl)&&!E.UPDATE_ORGS.includes(i)||this.isCategoryChanged(l.GROUP,s.channelAcl)&&!E.UPDATE_GROUPS.includes(i)||this.isCategoryChanged(l.USER,s.channelAcl)&&!E.UPDATE_USERS.includes(i)||this.isCategoryChanged(l.AUTHENTICATED_USER,s.channelAcl)&&!E.UPDATE_AUTHENTICATED_USERS.includes(i)||this.isCategoryChanged(l.ANONYMOUS_USER,s.channelAcl)&&!E.UPDATE_ANONYMOUS_USERS.includes(i))}isChanged(e,r){return e!==void 0&&e!==r}isStringArrayChanged(e,r){let i=e??[],s=r??[];return i.filter(a=>!s.includes(a)).length!==0||s.filter(a=>!i.includes(a)).length!==0}isRoleChanged(e,r){if(!r)return!1;let i=this.existingChannel.channelAcl.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`),s=r.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`);return this.isStringArrayChanged(i,s)}isCategoryChanged(e,r){var i;if(!r)return!1;let s=((i=this.permissionsByCategory[e])!==null&&i!==void 0?i:[]).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`),a=r.filter(c=>c.category===e).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`);return this.isStringArrayChanged(s,a)}canAnyUser(e){var r;let i=(r=this.permissionsByCategory[l.ANONYMOUS_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canAnyAuthenticatedUser(e){var r;let i=(r=this.permissionsByCategory[l.AUTHENTICATED_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canSomeUser(e,r){var i;let s=(i=this.permissionsByCategory[l.USER])!==null&&i!==void 0?i:[],a=r.username;return s.some(c=>{let{role:O,key:G}=c;return G===a&&S(e).includes(O)})}canSomeUserGroup(e,r){var i;let s=(i=this.permissionsByCategory[l.GROUP])!==null&&i!==void 0?i:[],a=this.mapUserGroupsById(r.groups);return s.some(c=>{let O=a[c.key];if(e===o.READ_POSTS){if(!O)return!1}else if(!O||!P(O))return!1;return x(c,O)&&S(e).includes(c.role)})}canSomeUserOrg(e,r){var i;return((i=this.permissionsByCategory[l.ORG])!==null&&i!==void 0?i:[]).some(a=>a.key!==r.orgId?!1:W(a,r)&&S(e).includes(a.role))}userCanAddAnonymousToAcl(e){return this.permissionsByCategory[l.ANONYMOUS_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddUnauthenticatedToAcl(e){return this.permissionsByCategory[l.AUTHENTICATED_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddAllGroupsToAcl(e){let r=this.permissionsByCategory[l.GROUP],i=this.mapUserGroupsById(e.groups);return r?r.every(s=>{let a=i[s.key];return a&&this.isMemberTypeAuthorized(a)&&P(a)}):!0}userCanAddAllOrgsToAcl(e){let r=this.permissionsByCategory[l.ORG];return r?(T(e)||u(e,"portal:admin:shareToOrg")||u(e,"portal:user:shareToOrg"))&&this.isEveryPermissionForUserOrg(e.orgId,r):!0}isEveryPermissionForUserOrg(e,r){return r.every(i=>{let{key:s}=i;return e===s})}userCanAddUsersToAcl(e){return!this.permissionsByCategory[l.USER]}isUserUnAuthenticated(e){return e.username===null||e.username===void 0}mapUserGroupsById(e){return e.reduce((r,i)=>(r[i.id]=i,r),{})}isMemberTypeAuthorized(e){let{userMembership:{memberType:r}}=e;return this.ALLOWED_GROUP_MEMBER_TYPES.includes(r)}determineUserRole(e){return this.isOwner(e)?t.OWNER:this.isManager(e)?t.MANAGE:this.isModerator(e)?t.MODERATE:t.READ}isOwner(e){return this.canSomeUser(o.IS_OWNER,e)||this.canSomeUserGroup(o.IS_OWNER,e)||this.canSomeUserOrg(o.IS_OWNER,e)}isManager(e){return this.canSomeUser(o.IS_MANAGER,e)||this.canSomeUserGroup(o.IS_MANAGER,e)||this.canSomeUserOrg(o.IS_MANAGER,e)}isModerator(e){return this.canSomeUser(o.IS_MODERATOR,e)||this.canSomeUserGroup(o.IS_MODERATOR,e)||this.canSomeUserOrg(o.IS_MODERATOR,e)}};function P(n){let{typeKeywords:e=[]}=n;return!e.includes(N)}function x(n,e){return n.category!==l.GROUP||e.userMembership.memberType==="none"?!1:e.userMembership.memberType==="owner"||e.userMembership.memberType==="admin"||n.subCategory===d.MEMBER}function W(n,e){return n.category===l.ORG&&(n.subCategory===d.MEMBER||n.subCategory===d.ADMIN&&T(e))}function S(n){return n===o.WRITE_POSTS?[t.WRITE,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]:n===o.MODERATE_CHANNEL?[t.MODERATE,t.MANAGE,t.OWNER]:n===o.DELETE_CHANNEL?[t.OWNER]:n===o.IS_MODERATOR?[t.MODERATE]:n===o.IS_MANAGER?[t.MANAGE]:n===o.IS_OWNER?[t.OWNER]:[t.READ,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]}function g(n,e={}){return D(e,n.orgId)?!0:new R(n).canDeleteChannel(e)}function _(n,e={},r){if(y(e,n.orgId))return!0;let i=new R(n);return i.canModerateChannel(e)&&i.canUpdateProperties(e,r)}var v={[t.READ]:A.channelRead,[t.WRITE]:A.channelWrite,[t.READWRITE]:A.channelReadWrite,[t.MODERATE]:A.channelModerate,[t.MANAGE]:A.channelManage,[t.OWNER]:A.channelOwner},I=n=>{let e=v[n.role],r;return n.category===l.ANONYMOUS_USER?r=h.anonymous:n.category===l.AUTHENTICATED_USER?r=h.authenticated:n.category===l.GROUP?r=n.subCategory===d.ADMIN?h.groupAdmin:h.group:n.category===l.ORG?r=n.subCategory===d.ADMIN?h.orgAdmin:h.org:r=h.user,{permission:e,collaborationId:n.key||null,collaborationType:r,id:n.id||null}};function de(n,e){return{access:n.access,id:n.id,name:n.name,createdDate:new Date(n.createdAt),createdDateSource:"channel.createdAt",updatedDate:new Date(n.updatedAt),updatedDateSource:"channel.updatedAt",type:"Channel",source:n.creator,links:{thumbnail:null,self:null,siteRelative:null,siteRelativeEntityType:null,workspaceRelative:null,layoutRelative:null},blockWords:n.blockWords,permissions:n.channelAcl.map(r=>I(r)),allowAsAnonymous:n.allowAsAnonymous,canEdit:_(n,e,n),canDelete:g(n,e),orgId:n.orgId,owner:n.creator,channel:n,typeKeywords:[],thumbnail:void 0,view:void 0,description:void 0,location:void 0,tags:[]}}export{w as a,$ as b,B as c,H as d,de as e};
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as h}from"./NS4YKFI7.js";import{b as m}from"./T4BAASGD.js";import{a as U}from"./VE4I5REF.js";import{c as t,e as l,f as d}from"./2ED5S63G.js";import{a as N}from"./RVQUWOMM.js";import{c as A}from"./GV3IWFPF.js";function w(n){return n.httpMethod="POST",m("/channels",n)}function $(n){return n.httpMethod="GET",m(`/channels/${n.channelId}`,n)}function B(n){return n.httpMethod="PATCH",m(`/channels/${n.channelId}`,n)}function H(n){return n.httpMethod="DELETE",m(`/channels/${n.channelId}`,n)}function T(n){return n.role==="org_admin"}function C(n={},e){return n.orgId===e}function f(n,e){return T(n)&&C(n,e)}function u(n={},e){var r;return!!(!((r=n.privileges)===null||r===void 0)&&r.includes(e))}function p(n={},e){return e.every(r=>u(n,r))}function y(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:updateItems"])}function D(n={},e){return f(n,e)||C(n,e)&&p(n,["portal:admin:viewItems","portal:admin:deleteItems"])}function M(n){let{channelAclDefinition:e}=n,r=U(n,["channelAclDefinition"]);return Object.assign(Object.assign({},r),{channelAcl:e})}var o;(function(n){n.READ_POSTS="readPosts",n.WRITE_POSTS="writePosts",n.MODERATE_CHANNEL="moderateChannel",n.DELETE_CHANNEL="deleteChannel",n.IS_MODERATOR="isModerator",n.IS_MANAGER="isManager",n.IS_OWNER="isOwner"})(o||(o={}));var E={UPDATE_OWNERS:[t.OWNER],UPDATE_MANAGERS:[t.OWNER,t.MANAGE],UPDATE_MODERATORS:[t.OWNER,t.MANAGE],UPDATE_ORGS:[t.OWNER,t.MANAGE],UPDATE_GROUPS:[t.OWNER,t.MANAGE],UPDATE_USERS:[t.OWNER,t.MANAGE],UPDATE_AUTHENTICATED_USERS:[t.OWNER,t.MANAGE],UPDATE_ANONYMOUS_USERS:[t.OWNER,t.MANAGE],UPDATE_POST_REPLIES:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_POST_AS_ANONYMOUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_ALLOWED_REACTIONS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_DEFAULT_POST_STATUS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_BLOCKED_WORDS:[t.OWNER,t.MANAGE,t.MODERATE],UPDATE_CHANNEL_NAME:[t.OWNER,t.MANAGE],UPDATE_SOFT_DELETE_SETTING:[t.OWNER,t.MANAGE]},R=class{constructor(e){if(this.ALLOWED_GROUP_MEMBER_TYPES=["owner","admin","member"],e.channelAcl===void 0)throw new Error("channel.channelAcl is required for ChannelPermission checks");this.existingChannel=e,this.isChannelAclEmpty=e.channelAcl.length===0,this.permissionsByCategory={},e.channelAcl.forEach(r=>{var i;let{category:s}=r;!((i=this.permissionsByCategory[s])===null||i===void 0)&&i.push(r)||(this.permissionsByCategory[s]=[r])})}canPostToChannel(e){return this.canAnyUser(o.WRITE_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.WRITE_POSTS)||this.canSomeUser(o.WRITE_POSTS,e)||this.canSomeUserGroup(o.WRITE_POSTS,e)||this.canSomeUserOrg(o.WRITE_POSTS,e)}canCreateChannel(e){return this.isUserUnAuthenticated(e)||this.isChannelAclEmpty?!1:this.userCanAddAnonymousToAcl(e)&&this.userCanAddUnauthenticatedToAcl(e)&&this.userCanAddAllGroupsToAcl(e)&&this.userCanAddAllOrgsToAcl(e)&&this.userCanAddUsersToAcl(e)}canModerateChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.MODERATE_CHANNEL,e)||this.canSomeUserGroup(o.MODERATE_CHANNEL,e)||this.canSomeUserOrg(o.MODERATE_CHANNEL,e)}canReadChannel(e){return this.canAnyUser(o.READ_POSTS)?!0:this.isUserUnAuthenticated(e)?!1:this.canAnyAuthenticatedUser(o.READ_POSTS)||this.canSomeUser(o.READ_POSTS,e)||this.canSomeUserGroup(o.READ_POSTS,e)||this.canSomeUserOrg(o.READ_POSTS,e)}canDeleteChannel(e){return this.isUserUnAuthenticated(e)?!1:this.canSomeUser(o.DELETE_CHANNEL,e)||this.canSomeUserGroup(o.DELETE_CHANNEL,e)||this.canSomeUserOrg(o.DELETE_CHANNEL,e)}canUpdateProperties(e,r={}){if(Object.keys(r).length===0)return!0;let i=this.determineUserRole(e),s=M(r);return!(this.isChanged(s.allowReply,this.existingChannel.allowReply)&&!E.UPDATE_POST_REPLIES.includes(i)||this.isChanged(s.allowReaction,this.existingChannel.allowReaction)&&!E.UPDATE_POST_REACTIONS.includes(i)||this.isChanged(s.allowAsAnonymous,this.existingChannel.allowAsAnonymous)&&!E.UPDATE_POST_AS_ANONYMOUS.includes(i)||this.isStringArrayChanged(s.allowedReactions,this.existingChannel.allowedReactions)&&!E.UPDATE_ALLOWED_REACTIONS.includes(i)||this.isChanged(s.defaultPostStatus,this.existingChannel.defaultPostStatus)&&!E.UPDATE_DEFAULT_POST_STATUS.includes(i)||this.isStringArrayChanged(s.blockWords,this.existingChannel.blockWords)&&!E.UPDATE_BLOCKED_WORDS.includes(i)||this.isChanged(s.name,this.existingChannel.name)&&!E.UPDATE_CHANNEL_NAME.includes(i)||this.isChanged(s.softDelete,this.existingChannel.softDelete)&&!E.UPDATE_SOFT_DELETE_SETTING.includes(i)||this.isRoleChanged(t.OWNER,s.channelAcl)&&!E.UPDATE_OWNERS.includes(i)||this.isRoleChanged(t.MANAGE,s.channelAcl)&&!E.UPDATE_MANAGERS.includes(i)||this.isRoleChanged(t.MODERATE,s.channelAcl)&&!E.UPDATE_MODERATORS.includes(i)||this.isCategoryChanged(l.ORG,s.channelAcl)&&!E.UPDATE_ORGS.includes(i)||this.isCategoryChanged(l.GROUP,s.channelAcl)&&!E.UPDATE_GROUPS.includes(i)||this.isCategoryChanged(l.USER,s.channelAcl)&&!E.UPDATE_USERS.includes(i)||this.isCategoryChanged(l.AUTHENTICATED_USER,s.channelAcl)&&!E.UPDATE_AUTHENTICATED_USERS.includes(i)||this.isCategoryChanged(l.ANONYMOUS_USER,s.channelAcl)&&!E.UPDATE_ANONYMOUS_USERS.includes(i))}isChanged(e,r){return e!==void 0&&e!==r}isStringArrayChanged(e,r){let i=e??[],s=r??[];return i.filter(a=>!s.includes(a)).length!==0||s.filter(a=>!i.includes(a)).length!==0}isRoleChanged(e,r){if(!r)return!1;let i=this.existingChannel.channelAcl.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`),s=r.filter(a=>a.role===e).map(a=>`${a.category}_${a.subCategory}_${a.key}_${e}`);return this.isStringArrayChanged(i,s)}isCategoryChanged(e,r){var i;if(!r)return!1;let s=((i=this.permissionsByCategory[e])!==null&&i!==void 0?i:[]).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`),a=r.filter(c=>c.category===e).map(c=>`${e}_${c.subCategory}_${c.key}_${c.role}`);return this.isStringArrayChanged(s,a)}canAnyUser(e){var r;let i=(r=this.permissionsByCategory[l.ANONYMOUS_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canAnyAuthenticatedUser(e){var r;let i=(r=this.permissionsByCategory[l.AUTHENTICATED_USER])===null||r===void 0?void 0:r[0].role;return S(e).includes(i)}canSomeUser(e,r){var i;let s=(i=this.permissionsByCategory[l.USER])!==null&&i!==void 0?i:[],a=r.username;return s.some(c=>{let{role:O,key:G}=c;return G===a&&S(e).includes(O)})}canSomeUserGroup(e,r){var i;let s=(i=this.permissionsByCategory[l.GROUP])!==null&&i!==void 0?i:[],a=this.mapUserGroupsById(r.groups);return s.some(c=>{let O=a[c.key];if(e===o.READ_POSTS){if(!O)return!1}else if(!O||!P(O))return!1;return x(c,O)&&S(e).includes(c.role)})}canSomeUserOrg(e,r){var i;return((i=this.permissionsByCategory[l.ORG])!==null&&i!==void 0?i:[]).some(a=>a.key!==r.orgId?!1:W(a,r)&&S(e).includes(a.role))}userCanAddAnonymousToAcl(e){return this.permissionsByCategory[l.ANONYMOUS_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddUnauthenticatedToAcl(e){return this.permissionsByCategory[l.AUTHENTICATED_USER]?T(e)||u(e,"portal:admin:shareToPublic")||u(e,"portal:user:shareToPublic"):!0}userCanAddAllGroupsToAcl(e){let r=this.permissionsByCategory[l.GROUP],i=this.mapUserGroupsById(e.groups);return r?r.every(s=>{let a=i[s.key];return a&&this.isMemberTypeAuthorized(a)&&P(a)}):!0}userCanAddAllOrgsToAcl(e){let r=this.permissionsByCategory[l.ORG];return r?(T(e)||u(e,"portal:admin:shareToOrg")||u(e,"portal:user:shareToOrg"))&&this.isEveryPermissionForUserOrg(e.orgId,r):!0}isEveryPermissionForUserOrg(e,r){return r.every(i=>{let{key:s}=i;return e===s})}userCanAddUsersToAcl(e){return!this.permissionsByCategory[l.USER]}isUserUnAuthenticated(e){return e.username===null||e.username===void 0}mapUserGroupsById(e){return e.reduce((r,i)=>(r[i.id]=i,r),{})}isMemberTypeAuthorized(e){let{userMembership:{memberType:r}}=e;return this.ALLOWED_GROUP_MEMBER_TYPES.includes(r)}determineUserRole(e){return this.isOwner(e)?t.OWNER:this.isManager(e)?t.MANAGE:this.isModerator(e)?t.MODERATE:t.READ}isOwner(e){return this.canSomeUser(o.IS_OWNER,e)||this.canSomeUserGroup(o.IS_OWNER,e)||this.canSomeUserOrg(o.IS_OWNER,e)}isManager(e){return this.canSomeUser(o.IS_MANAGER,e)||this.canSomeUserGroup(o.IS_MANAGER,e)||this.canSomeUserOrg(o.IS_MANAGER,e)}isModerator(e){return this.canSomeUser(o.IS_MODERATOR,e)||this.canSomeUserGroup(o.IS_MODERATOR,e)||this.canSomeUserOrg(o.IS_MODERATOR,e)}};function P(n){let{typeKeywords:e=[]}=n;return!e.includes(N)}function x(n,e){return n.category!==l.GROUP||e.userMembership.memberType==="none"?!1:e.userMembership.memberType==="owner"||e.userMembership.memberType==="admin"||n.subCategory===d.MEMBER}function W(n,e){return n.category===l.ORG&&(n.subCategory===d.MEMBER||n.subCategory===d.ADMIN&&T(e))}function S(n){return n===o.WRITE_POSTS?[t.WRITE,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]:n===o.MODERATE_CHANNEL?[t.MODERATE,t.MANAGE,t.OWNER]:n===o.DELETE_CHANNEL?[t.OWNER]:n===o.IS_MODERATOR?[t.MODERATE]:n===o.IS_MANAGER?[t.MANAGE]:n===o.IS_OWNER?[t.OWNER]:[t.READ,t.READWRITE,t.MODERATE,t.MANAGE,t.OWNER]}function g(n,e={}){return D(e,n.orgId)?!0:new R(n).canDeleteChannel(e)}function _(n,e={},r){if(y(e,n.orgId))return!0;let i=new R(n);return i.canModerateChannel(e)&&i.canUpdateProperties(e,r)}var v={[t.READ]:A.channelRead,[t.WRITE]:A.channelWrite,[t.READWRITE]:A.channelReadWrite,[t.MODERATE]:A.channelModerate,[t.MANAGE]:A.channelManage,[t.OWNER]:A.channelOwner},I=n=>{let e=v[n.role],r;return n.category===l.ANONYMOUS_USER?r=h.anonymous:n.category===l.AUTHENTICATED_USER?r=h.authenticated:n.category===l.GROUP?r=n.subCategory===d.ADMIN?h.groupAdmin:h.group:n.category===l.ORG?r=n.subCategory===d.ADMIN?h.orgAdmin:h.org:r=h.user,{permission:e,collaborationId:n.key||null,collaborationType:r,id:n.id||null}};function de(n,e){return{access:n.access,id:n.id,name:n.name,createdDate:new Date(n.createdAt),createdDateSource:"channel.createdAt",updatedDate:new Date(n.updatedAt),updatedDateSource:"channel.updatedAt",type:"Channel",source:n.creator,links:{thumbnail:null,self:null,siteRelative:null,siteRelativeEntityType:null,workspaceRelative:null,layoutRelative:null},blockWords:n.blockWords,permissions:n.channelAcl.map(r=>I(r)),allowAsAnonymous:n.allowAsAnonymous,canEdit:_(n,e,n),canDelete:g(n,e),orgId:n.orgId,owner:n.creator,channel:n,typeKeywords:[],thumbnail:void 0,view:void 0,description:void 0,location:void 0,tags:[]}}export{w as a,$ as b,B as c,H as d,de as e};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a,b}from"./EK4MS2HQ.js";import"./GJWN4WP3.js";import"./C34H6SGK.js";import"./NNRPVDMT.js";import"./SGGIVA63.js";import"./C556IKNJ.js";import"./GZU2CPZN.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as h}from"./TP3QX5HT.js";import{D as d,I as p,c as a,d as l,g as c,o as n}from"./RTFLMETG.js";import"./GZU2CPZN.js";var y=a`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
4
|
var l=e=>({labelKey:`${e}.fields.slug.label`,scope:"/properties/_slug",type:"Control",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.slug.patternError`},{type:"ERROR",keyword:"isUniqueSlug",icon:!0,labelKey:`${e}.fields.slug.isUniqueError`}]}});export{l as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as O}from"./USLNR5GM.js";import{a as D}from"./RUXEHYBS.js";import{h as N,i as b}from"./SFZSSATF.js";var k=D({data:{},relationshipRampExpandStates:{},compact:!1}),P=k.state,K=k;function W(e,t,o){return n=>{let c=n?.layer?.type;if(c==="feature"||c==="group"){let i=j(t,n,o).then(r=>r);i&&e.push(i);let a=r=>{let s=j(t,r,o).then(l=>l);s&&e.push(s)};n.children.forEach(r=>{a(r),r?.children?.length>0&&r.children.forEach(s=>{a(s),s?.children?.length>0&&s.children.forEach(l=>{a(l)})})})}}}async function j(e,t,o){try{let n=t?.layer?.type==="group",c=t?.layer?.layers?.some(h=>h.visible),i=t?.layer?.layers?.every(h=>!h?.legendEnabled);await o.whenOnce(()=>e?.state==="ready"),!n||n&&c?n&&i?await o.whenOnce(()=>t?.layer?.loaded):await o.whenOnce(()=>t?.ready):await o.whenOnce(()=>t?.legendElements);let a=t?.legendElements?.[0],r=new Map,s=t.layer,l=await e?.view?.whenLayerView(s),f=s.renderer?.field??"";a!==void 0&&a?.infos?.forEach(h=>{if(h.type==="symbol-table"){let y=[];h.infos.forEach(g=>{let E={count:null,selected:!1,legendElementInfo:g};y.push(E)});let d={count:null,selected:!1,legendElementInfo:h,nestedInfos:y};r.set(h.title,d)}else{let y={count:null,selected:!1,legendElementInfo:h};r.set(h.label??s.id,y)}});let u=[];return l?Promise.resolve({activeLayerInfo:t,title:l.layer.title,categories:r,field:f,queryExpressions:u,totalCount:null,fLayerView:l,legendElement:a}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function re(e,t){let o={},n=[];e.activeLayerInfos.forEach(W(n,e,t));try{return(await Promise.all(n)).forEach(i=>{let a=i?.activeLayerInfo?.layer?.id;o[a]=i}),Promise.resolve(o)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ne(e){return Array.from(e,t=>t[1])}function oe(e,t,o,n,c){if(n)return n?.nestedInfos?.[c];let i="label"in o?o?.label:t?.id;return e?.categories?.get(i)}function ce(e){return P?.data?.[e?.id]}async function ae(e,t,o,n,c){let{queryExpressions:i,fLayerView:a}=e;X(e,t,o,c);let r=i.every(u=>u&&u.includes("<>"))?" AND ":" OR ",s=i.join(r),l=a?.filter?.timeExtent??a?.featureEffect?.filter?.timeExtent??null,{type:f}=n;if(f==="filter")a.filter=await b({where:s,timeExtent:l});else if(n.effect){let{includedEffect:u,excludedEffect:h}=n.effect,p=await O(h,a,"excludedEffect"),y=await O(u,a,"includedEffect");a.featureEffect=await N({filter:await b({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function V(e,t){let o=t?t?.layer?.renderer?.authoringInfo:null,n=o?o.fields:null,c=[];if(!n)return"";if(Object.hasOwn(e,"value"))return n.forEach(i=>{if(e.value===i)return;let a=`(${e.value} > ${i} OR (${i} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;c.push(a)}),c.join(" AND ");{let i=[];n.forEach(r=>{i.push(`${r} = 0`)});let a=[];if(n.length>2){n.forEach(l=>{n.forEach(f=>{if(l===f)return;let u=[];n.forEach(h=>{l===h||f===h||u.push(`${l} = ${f} AND (${l} > ${h} OR ${l} >= ${h})`)}),a.push(`(${u.join(" AND ")})`)})});let r=[];return n.forEach(l=>{r.push(`${l} IS NULL`)}),`(${i.join(" AND ")}) OR (${a.join(" OR ")}) OR (${r.join(" AND ")})`}else{let r=[];n.forEach(l=>{n.forEach(f=>{l!==f&&(r.push(`${l} = ${f}`),r.push(`(${i.join(" AND ")})`))})});let s=[];return n.forEach(l=>{n.forEach(f=>{l!==f&&s.push(`(${l} = 0 AND ${f} IS NULL) OR (${l} IS NULL AND ${f} IS NULL)`)})}),`(${r.join(" OR ")}) OR (${s.join(" OR ")})`}}}function X(e,t,o,n){let{field:c,legendElement:i,categories:a,fLayerView:r}=e,s=e?.queryExpressions;n&&Array.from(e.categories).map(g=>g[1]).forEach(g=>{g.nestedInfos?.every(m=>!m.selected)&&g.nestedInfos?.forEach(m=>{let $=c?`${c} = '${m.legendElementInfo.value}'`:null,w=$?s.indexOf($):-1;$&&w!==-1&&s.splice(w,1)})});let l=i?.infos,f=L(r),u=f?V(t,r):R(t,c,o,i,l??[],""),h=a?n?a.get(n.title)?.nestedInfos?.[o]:a.get(t.label??r?.layer?.id):null;h&&(h.selected=!h?.selected);let p=l&&l.length===1,y=s.indexOf(u);if(f){let d=s.indexOf(u);s.length===0||d===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]?s[0]="1=0":s&&s.length===1||s.length===1&&u!==s[0]&&s[0]==="1=0"?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"?s[0]=null:s.splice(d,1),s.join(" OR ")}else s.length===0||y===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]&&!p?s[0]="1=0":s&&s.length===1&&!p||s.length===1&&u!==s[0]&&s[0]==="1=0"&&!p?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"&&!p?s[0]=null:s.splice(y,1);if(n){let d=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{(c?`${c} = '${$.legendElementInfo.value}'`:null)&&d.push(`${c} = '${$.legendElementInfo.value}'`)})}),d.forEach(E=>{s.includes(E)||s.push(E)})}}function R(e,t,o,n,c,i){let{value:a}=e;if(n?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&c?.length===1){if(Object.hasOwn(c?.[0],"value")&&Array.isArray(c?.[0].value)&&Object.hasOwn(c?.[c.length-2],"value")&&Array.isArray(c?.[c.length-2].value))return i?`((${t}/${i}) > ${c?.[0].value[1]}) OR ((${t}/${i}) < ${c?.[c.length-2].value[0]}) OR ${i} = 0 OR ${i} IS NULL`:`${t} > ${c?.[0].value[1]} OR ${t} < ${c?.[c.length-2].value[0]} OR ${t} IS NULL`;if(c?.length===1)return"1=0";{let r=[];c?.forEach(l=>{if(l?.value){let{value:f}=l,u=f.indexOf("'")!==-1?f.split("'").join("''"):null,h=u?`${t} <> '${u}'`:isNaN(f)||typeof f=="string"&&!f.trim()?`${t} <> '${f}'`:`${t} <> ${f} AND ${t} <> '${f}'`;r.push(h)}});let s=r.join(" AND ");return t&&s?`${s} OR ${t} IS NULL`:""}}else{let r=a.indexOf("'")!==-1?a.split("'").join("''"):null,s=Array.isArray(e.value),l=c&&c.length-1===o,f=!Object.hasOwn(c?.[c.length-1],"value"),u=c&&c.length-2===o;return s?i?l||f&&u?`(${t}/${i}) >= ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:`(${t}/${i}) > ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:l||f&&u?`${t} >= ${a[0]} AND ${t} <= ${a[1]}`:`${t} > ${a[0]} AND ${t} <= ${a[1]}`:c?.length===1&&t?isNaN(a)||!a.trim().length?`${t} <> '${a}'`:`${t} <> ${a} OR ${t} <> '${a}'`:r?`${t} = '${r}'`:isNaN(a)||!a.trim().length?`${t} = '${a}'`:`${t} = ${a} OR ${t} = '${a}'`}else return""}function ie(e){return Array.isArray(e)?e.every(t=>!t.selected):e&&Array.from(e.categories.entries()).every(t=>!t[1].selected)&&e.queryExpressions[0]!=="1=0"}function L(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function ue(e,t,o){let c=e.layer?.renderer?.field,i=t?.type,a=e?.layerView,r=a?.layer?.renderer?.classBreakInfos,s=a?.layer?.renderer?.uniqueValueInfos&&c,l=i==="size-ramp",f=i==="color-ramp",u=i==="opacity-ramp",h=i==="heatmap-ramp",p=a&&r&&r.length>1,y=a?.layer?.renderer?.authoringInfo?.type,d=y==="class-breaks-color",g=y==="class-breaks-size",E=t?.infos?.length===1&&!c,m=y==="relationship"&&t?.type!=="size-ramp"&&t?.type!=="symbol-table",$=e?.layer?.type==="feature",w=$&&c&&!f&&!l&&p,A=!!($&&c&&!f&&!l&&!p),S=!!(A||L(a)&&!l||d&&c||g&&c||E&&!c&&c!==null||m||s),U=e?.layer?.featureReduction&&e?.legendElements?.[o]?.type==="size-ramp",q=t?.type==="symbol-table"&&t?.infos?.length===1,Q=!e?.legendElements.every(x=>x.type!=="color-ramp"),B=!e?.legendElements.every(x=>x.type!=="size-ramp"),z=q&&Q,I=q&&B,G=t?.infos?.every(x=>typeof x.value=="number"),Z=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",H=y==="dot-density",J=T(e?.layer,c);return $&&!U&&!u&&!h&&!z&&!I&&!G&&!Z&&!H&&J?r?w||S:A||S:!1}function fe(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(t=>{t.selected=!1}),e}function he(e,t){e.categories.get(t)?.nestedInfos?.forEach(r=>{let s=`${e.field} = '${r.legendElementInfo.value}'`,l=e.queryExpressions.indexOf(s);l!==-1&&e.queryExpressions.splice(l,1),r.selected=!1});let n=[],c=Array.from(e.categories).map(r=>r[1]);c.forEach(r=>{r.nestedInfos?.every(l=>!l.selected)&&r.nestedInfos?.forEach(l=>{n.push(`${e.field} = '${l.legendElementInfo.value}'`)})}),n.forEach(r=>{e.queryExpressions.includes(r)||e.queryExpressions.push(r)});let i=e.queryExpressions.join(" OR ");return c.every(r=>r.nestedInfos?.every(s=>!s.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=i),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=i)),e}async function ye(e,t,o){let n=e.fLayerView.createQuery();if(o)if(o.nestedInfos.every(i=>!i.selected)){let i=o.nestedInfos.map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let i=o.nestedInfos.filter(a=>a.selected).map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let c=e.queryExpressions.join(" OR ");n.where=c}try{let{extent:c}=await e.fLayerView.layer.queryExtent(n);await t.goTo(c)}catch{}}function pe(e){return e.map(o=>o?.count).reduce((o,n)=>o+n)}function de(e){return e.map(t=>t?.nestedInfos?.map(o=>o.count).reduce((o,n)=>o+n)).reduce((t,o)=>t+o)}async function v(e,t,o,n,c,i,a,r){if(!t||!T(t?.layer,o))return;let l=t?.layer?.type==="feature"?t.createQuery():null,f=L(t)?V(n,t):n.type?R(a,o,r,n,n.infos):R(n,o,c,i,i.infos);l&&f&&(l.where=f==="1=0"?"1=1":f,e&&(l.geometry=e));try{let u=l?await t.queryFeatureCount(l):null;return Promise.resolve({[n.label??t?.layer?.id]:u})}catch(u){console.error("FAILURE AT 'getInfoCount': ",u)}return await Promise.resolve(null)}async function ge(e,t){let o={...t},{activeLayerInfos:n}=e,c=e?.view?.extent,i={},a={};n.forEach(async r=>{let s=r.legendElements[0],l=r.layer,f=t[r?.layer?.id]?.fLayerView,u=l.renderer?.field,h=[];a[r.layer.id]=[],s?.infos?.forEach((y,d)=>{if(s.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach((m,$)=>{let w=v(c,f,u,y,d,s,m,$);E.push(w)}),a[r.layer.id].push(E)}else h.push(v(c,f,u,y,d,s)),a[r.layer.id]=h});let p=y=>{let d=[],g=y.legendElements[0],E=y.layer,m=t[y?.layer?.id]?.fLayerView,$=E.renderer?.field;g?.infos?.forEach((w,A)=>d.push(v(c,m,$,w,A,g))),a[y.layer.id]=d};r.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(d=>{p(d),d?.children?.length>0&&d.children.forEach(g=>{p(g)})})})});for(let r in a){let s=i[r];s||(s=i[r]={});let l=await Promise.all(a[r]);if(l.every(f=>Array.isArray(f))){let f=await Promise.all(l.map(async u=>(await Promise.all(u)).map(y=>y&&Object.values(y)[0])));s[r]=f,i[r]={...s[r]}}else{let f={};l.forEach(u=>{if(!u)return;let h=Object.keys(u)[0];f[h]=u[h]}),r&&(s[r]=f),i[r]={...s[r]}}}return n.forEach(r=>{let s=t[r.layer.id],l=r.layer.id;s?.categories?.forEach((h,p)=>{let d=Array.from(s?.categories).findIndex(g=>g[0]===p);if(h?.nestedInfos)h?.nestedInfos.forEach((g,E)=>{let m=i?.[r?.layer?.id]?.[d]?.[E];g.count=isNaN(m)?null:m});else{let g=i?.[l]?.[p];h.count=isNaN(g)?null:g}});let u=h=>{let p=h.layer.id;t[p]?.categories?.forEach((d,g)=>{let E=i?.[p]?.[g];d.count=E})};r?.children?.forEach(h=>{u(h),h?.children?.length>0&&h.children.forEach(p=>{u(p),p?.children?.length>0&&p.children.forEach(y=>{u(y)})})})}),await Promise.resolve(o)}function Ee(e,t){return e?.nestedInfos?.[t]}function $e(e){return Array.from(e).map(o=>o[1]).every(o=>!!o?.nestedInfos)}function me(e){return!!e?.legendElements?.[0]?.infos?.every?.(t=>t?.type==="symbol-table")}function we(e,t){if(typeof t?.title=="string")return e?.categories?.get(t?.title)}function xe(e){let t="calcite-mode-",o=`${t}light`,n=`${t}dark`;return e.classList.contains(n)?n:o}function Oe(e){if(e.layerId&&e.intLegendLayerData){let t=e.layerId,o=e.intLegendLayerData,n={...P.data,[t]:o};K.set("data",n)}}function Ae(e,t){let{type:o}=e;o==="filter"?Y(t):o==="effect"&&_(e,t)}function Y(e){e?.allLayerViews?.filter(t=>t?.layer?.type==="feature")?.forEach(t=>{let o=t,n=C(o);o.filter=n,o.set("featureEffect",null)})}function _(e,t){t?.allLayerViews?.filter(o=>o?.layer?.type==="feature").forEach(async o=>{let n=o;if(e?.effect&&n){let{includedEffect:c,excludedEffect:i}=e.effect,a=await O(i,n,"excludedEffect"),r=await O(c,n,"includedEffect"),s=C(n);n.featureEffect=await N({filter:s,includedEffect:r,excludedEffect:a}),n.set("filter",null)}})}function C(e){return e?.filter||e?.featureEffect?.filter}function T(e,t){let o=e?.fields,n=o&&o.map(c=>c.name);return t?n&&n.includes(t):!0}function Ne(e){let t=[];return e.forEach(o=>F(o,t)),t}function F(e,t){t.push(e),e.children&&e.children.length>0&&e.children.forEach(o=>{F(o,t)})}export{P as a,K as b,j as c,re as d,ne as e,oe as f,ce as g,ae as h,ie as i,le as j,ue as k,fe as l,he as m,ye as n,pe as o,de as p,ge as q,Ee as r,$e as s,me as t,we as u,xe as v,Oe as w,Ae as x,Ne as y};
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as O}from"./TTJLCKXQ.js";import{a as D}from"./HQ4JF5OI.js";import{h as N,i as b}from"./PHA5TYOC.js";var k=D({data:{},relationshipRampExpandStates:{},compact:!1}),P=k.state,K=k;function W(e,t,o){return n=>{let c=n?.layer?.type;if(c==="feature"||c==="group"){let i=j(t,n,o).then(r=>r);i&&e.push(i);let a=r=>{let s=j(t,r,o).then(l=>l);s&&e.push(s)};n.children.forEach(r=>{a(r),r?.children?.length>0&&r.children.forEach(s=>{a(s),s?.children?.length>0&&s.children.forEach(l=>{a(l)})})})}}}async function j(e,t,o){try{let n=t?.layer?.type==="group",c=t?.layer?.layers?.some(h=>h.visible),i=t?.layer?.layers?.every(h=>!h?.legendEnabled);await o.whenOnce(()=>e?.state==="ready"),!n||n&&c?n&&i?await o.whenOnce(()=>t?.layer?.loaded):await o.whenOnce(()=>t?.ready):await o.whenOnce(()=>t?.legendElements);let a=t?.legendElements?.[0],r=new Map,s=t.layer,l=await e?.view?.whenLayerView(s),f=s.renderer?.field??"";a!==void 0&&a?.infos?.forEach(h=>{if(h.type==="symbol-table"){let y=[];h.infos.forEach(g=>{let E={count:null,selected:!1,legendElementInfo:g};y.push(E)});let d={count:null,selected:!1,legendElementInfo:h,nestedInfos:y};r.set(h.title,d)}else{let y={count:null,selected:!1,legendElementInfo:h};r.set(h.label??s.id,y)}});let u=[];return l?Promise.resolve({activeLayerInfo:t,title:l.layer.title,categories:r,field:f,queryExpressions:u,totalCount:null,fLayerView:l,legendElement:a}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function re(e,t){let o={},n=[];e.activeLayerInfos.forEach(W(n,e,t));try{return(await Promise.all(n)).forEach(i=>{let a=i?.activeLayerInfo?.layer?.id;o[a]=i}),Promise.resolve(o)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ne(e){return Array.from(e,t=>t[1])}function oe(e,t,o,n,c){if(n)return n?.nestedInfos?.[c];let i="label"in o?o?.label:t?.id;return e?.categories?.get(i)}function ce(e){return P?.data?.[e?.id]}async function ae(e,t,o,n,c){let{queryExpressions:i,fLayerView:a}=e;X(e,t,o,c);let r=i.every(u=>u&&u.includes("<>"))?" AND ":" OR ",s=i.join(r),l=a?.filter?.timeExtent??a?.featureEffect?.filter?.timeExtent??null,{type:f}=n;if(f==="filter")a.filter=await b({where:s,timeExtent:l});else if(n.effect){let{includedEffect:u,excludedEffect:h}=n.effect,p=await O(h,a,"excludedEffect"),y=await O(u,a,"includedEffect");a.featureEffect=await N({filter:await b({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function V(e,t){let o=t?t?.layer?.renderer?.authoringInfo:null,n=o?o.fields:null,c=[];if(!n)return"";if(Object.hasOwn(e,"value"))return n.forEach(i=>{if(e.value===i)return;let a=`(${e.value} > ${i} OR (${i} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;c.push(a)}),c.join(" AND ");{let i=[];n.forEach(r=>{i.push(`${r} = 0`)});let a=[];if(n.length>2){n.forEach(l=>{n.forEach(f=>{if(l===f)return;let u=[];n.forEach(h=>{l===h||f===h||u.push(`${l} = ${f} AND (${l} > ${h} OR ${l} >= ${h})`)}),a.push(`(${u.join(" AND ")})`)})});let r=[];return n.forEach(l=>{r.push(`${l} IS NULL`)}),`(${i.join(" AND ")}) OR (${a.join(" OR ")}) OR (${r.join(" AND ")})`}else{let r=[];n.forEach(l=>{n.forEach(f=>{l!==f&&(r.push(`${l} = ${f}`),r.push(`(${i.join(" AND ")})`))})});let s=[];return n.forEach(l=>{n.forEach(f=>{l!==f&&s.push(`(${l} = 0 AND ${f} IS NULL) OR (${l} IS NULL AND ${f} IS NULL)`)})}),`(${r.join(" OR ")}) OR (${s.join(" OR ")})`}}}function X(e,t,o,n){let{field:c,legendElement:i,categories:a,fLayerView:r}=e,s=e?.queryExpressions;n&&Array.from(e.categories).map(g=>g[1]).forEach(g=>{g.nestedInfos?.every(m=>!m.selected)&&g.nestedInfos?.forEach(m=>{let $=c?`${c} = '${m.legendElementInfo.value}'`:null,w=$?s.indexOf($):-1;$&&w!==-1&&s.splice(w,1)})});let l=i?.infos,f=L(r),u=f?V(t,r):R(t,c,o,i,l??[],""),h=a?n?a.get(n.title)?.nestedInfos?.[o]:a.get(t.label??r?.layer?.id):null;h&&(h.selected=!h?.selected);let p=l&&l.length===1,y=s.indexOf(u);if(f){let d=s.indexOf(u);s.length===0||d===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]?s[0]="1=0":s&&s.length===1||s.length===1&&u!==s[0]&&s[0]==="1=0"?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"?s[0]=null:s.splice(d,1),s.join(" OR ")}else s.length===0||y===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]&&!p?s[0]="1=0":s&&s.length===1&&!p||s.length===1&&u!==s[0]&&s[0]==="1=0"&&!p?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"&&!p?s[0]=null:s.splice(y,1);if(n){let d=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{(c?`${c} = '${$.legendElementInfo.value}'`:null)&&d.push(`${c} = '${$.legendElementInfo.value}'`)})}),d.forEach(E=>{s.includes(E)||s.push(E)})}}function R(e,t,o,n,c,i){let{value:a}=e;if(n?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&c?.length===1){if(Object.hasOwn(c?.[0],"value")&&Array.isArray(c?.[0].value)&&Object.hasOwn(c?.[c.length-2],"value")&&Array.isArray(c?.[c.length-2].value))return i?`((${t}/${i}) > ${c?.[0].value[1]}) OR ((${t}/${i}) < ${c?.[c.length-2].value[0]}) OR ${i} = 0 OR ${i} IS NULL`:`${t} > ${c?.[0].value[1]} OR ${t} < ${c?.[c.length-2].value[0]} OR ${t} IS NULL`;if(c?.length===1)return"1=0";{let r=[];c?.forEach(l=>{if(l?.value){let{value:f}=l,u=f.indexOf("'")!==-1?f.split("'").join("''"):null,h=u?`${t} <> '${u}'`:isNaN(f)||typeof f=="string"&&!f.trim()?`${t} <> '${f}'`:`${t} <> ${f} AND ${t} <> '${f}'`;r.push(h)}});let s=r.join(" AND ");return t&&s?`${s} OR ${t} IS NULL`:""}}else{let r=a.indexOf("'")!==-1?a.split("'").join("''"):null,s=Array.isArray(e.value),l=c&&c.length-1===o,f=!Object.hasOwn(c?.[c.length-1],"value"),u=c&&c.length-2===o;return s?i?l||f&&u?`(${t}/${i}) >= ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:`(${t}/${i}) > ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:l||f&&u?`${t} >= ${a[0]} AND ${t} <= ${a[1]}`:`${t} > ${a[0]} AND ${t} <= ${a[1]}`:c?.length===1&&t?isNaN(a)||!a.trim().length?`${t} <> '${a}'`:`${t} <> ${a} OR ${t} <> '${a}'`:r?`${t} = '${r}'`:isNaN(a)||!a.trim().length?`${t} = '${a}'`:`${t} = ${a} OR ${t} = '${a}'`}else return""}function ie(e){return Array.isArray(e)?e.every(t=>!t.selected):e&&Array.from(e.categories.entries()).every(t=>!t[1].selected)&&e.queryExpressions[0]!=="1=0"}function L(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function ue(e,t,o){let c=e.layer?.renderer?.field,i=t?.type,a=e?.layerView,r=a?.layer?.renderer?.classBreakInfos,s=a?.layer?.renderer?.uniqueValueInfos&&c,l=i==="size-ramp",f=i==="color-ramp",u=i==="opacity-ramp",h=i==="heatmap-ramp",p=a&&r&&r.length>1,y=a?.layer?.renderer?.authoringInfo?.type,d=y==="class-breaks-color",g=y==="class-breaks-size",E=t?.infos?.length===1&&!c,m=y==="relationship"&&t?.type!=="size-ramp"&&t?.type!=="symbol-table",$=e?.layer?.type==="feature",w=$&&c&&!f&&!l&&p,A=!!($&&c&&!f&&!l&&!p),S=!!(A||L(a)&&!l||d&&c||g&&c||E&&!c&&c!==null||m||s),U=e?.layer?.featureReduction&&e?.legendElements?.[o]?.type==="size-ramp",q=t?.type==="symbol-table"&&t?.infos?.length===1,Q=!e?.legendElements.every(x=>x.type!=="color-ramp"),B=!e?.legendElements.every(x=>x.type!=="size-ramp"),z=q&&Q,I=q&&B,G=t?.infos?.every(x=>typeof x.value=="number"),Z=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",H=y==="dot-density",J=T(e?.layer,c);return $&&!U&&!u&&!h&&!z&&!I&&!G&&!Z&&!H&&J?r?w||S:A||S:!1}function fe(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(t=>{t.selected=!1}),e}function he(e,t){e.categories.get(t)?.nestedInfos?.forEach(r=>{let s=`${e.field} = '${r.legendElementInfo.value}'`,l=e.queryExpressions.indexOf(s);l!==-1&&e.queryExpressions.splice(l,1),r.selected=!1});let n=[],c=Array.from(e.categories).map(r=>r[1]);c.forEach(r=>{r.nestedInfos?.every(l=>!l.selected)&&r.nestedInfos?.forEach(l=>{n.push(`${e.field} = '${l.legendElementInfo.value}'`)})}),n.forEach(r=>{e.queryExpressions.includes(r)||e.queryExpressions.push(r)});let i=e.queryExpressions.join(" OR ");return c.every(r=>r.nestedInfos?.every(s=>!s.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=i),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=i)),e}async function ye(e,t,o){let n=e.fLayerView.createQuery();if(o)if(o.nestedInfos.every(i=>!i.selected)){let i=o.nestedInfos.map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let i=o.nestedInfos.filter(a=>a.selected).map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let c=e.queryExpressions.join(" OR ");n.where=c}try{let{extent:c}=await e.fLayerView.layer.queryExtent(n);await t.goTo(c)}catch{}}function pe(e){return e.map(o=>o?.count).reduce((o,n)=>o+n)}function de(e){return e.map(t=>t?.nestedInfos?.map(o=>o.count).reduce((o,n)=>o+n)).reduce((t,o)=>t+o)}async function v(e,t,o,n,c,i,a,r){if(!t||!T(t?.layer,o))return;let l=t?.layer?.type==="feature"?t.createQuery():null,f=L(t)?V(n,t):n.type?R(a,o,r,n,n.infos):R(n,o,c,i,i.infos);l&&f&&(l.where=f==="1=0"?"1=1":f,e&&(l.geometry=e));try{let u=l?await t.queryFeatureCount(l):null;return Promise.resolve({[n.label??t?.layer?.id]:u})}catch(u){console.error("FAILURE AT 'getInfoCount': ",u)}return await Promise.resolve(null)}async function ge(e,t){let o={...t},{activeLayerInfos:n}=e,c=e?.view?.extent,i={},a={};n.forEach(async r=>{let s=r.legendElements[0],l=r.layer,f=t[r?.layer?.id]?.fLayerView,u=l.renderer?.field,h=[];a[r.layer.id]=[],s?.infos?.forEach((y,d)=>{if(s.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach((m,$)=>{let w=v(c,f,u,y,d,s,m,$);E.push(w)}),a[r.layer.id].push(E)}else h.push(v(c,f,u,y,d,s)),a[r.layer.id]=h});let p=y=>{let d=[],g=y.legendElements[0],E=y.layer,m=t[y?.layer?.id]?.fLayerView,$=E.renderer?.field;g?.infos?.forEach((w,A)=>d.push(v(c,m,$,w,A,g))),a[y.layer.id]=d};r.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(d=>{p(d),d?.children?.length>0&&d.children.forEach(g=>{p(g)})})})});for(let r in a){let s=i[r];s||(s=i[r]={});let l=await Promise.all(a[r]);if(l.every(f=>Array.isArray(f))){let f=await Promise.all(l.map(async u=>(await Promise.all(u)).map(y=>y&&Object.values(y)[0])));s[r]=f,i[r]={...s[r]}}else{let f={};l.forEach(u=>{if(!u)return;let h=Object.keys(u)[0];f[h]=u[h]}),r&&(s[r]=f),i[r]={...s[r]}}}return n.forEach(r=>{let s=t[r.layer.id],l=r.layer.id;s?.categories?.forEach((h,p)=>{let d=Array.from(s?.categories).findIndex(g=>g[0]===p);if(h?.nestedInfos)h?.nestedInfos.forEach((g,E)=>{let m=i?.[r?.layer?.id]?.[d]?.[E];g.count=isNaN(m)?null:m});else{let g=i?.[l]?.[p];h.count=isNaN(g)?null:g}});let u=h=>{let p=h.layer.id;t[p]?.categories?.forEach((d,g)=>{let E=i?.[p]?.[g];d.count=E})};r?.children?.forEach(h=>{u(h),h?.children?.length>0&&h.children.forEach(p=>{u(p),p?.children?.length>0&&p.children.forEach(y=>{u(y)})})})}),await Promise.resolve(o)}function Ee(e,t){return e?.nestedInfos?.[t]}function $e(e){return Array.from(e).map(o=>o[1]).every(o=>!!o?.nestedInfos)}function me(e){return!!e?.legendElements?.[0]?.infos?.every?.(t=>t?.type==="symbol-table")}function we(e,t){if(typeof t?.title=="string")return e?.categories?.get(t?.title)}function xe(e){let t="calcite-mode-",o=`${t}light`,n=`${t}dark`;return e.classList.contains(n)?n:o}function Oe(e){if(e.layerId&&e.intLegendLayerData){let t=e.layerId,o=e.intLegendLayerData,n={...P.data,[t]:o};K.set("data",n)}}function Ae(e,t){let{type:o}=e;o==="filter"?Y(t):o==="effect"&&_(e,t)}function Y(e){e?.allLayerViews?.filter(t=>t?.layer?.type==="feature")?.forEach(t=>{let o=t,n=C(o);o.filter=n,o.set("featureEffect",null)})}function _(e,t){t?.allLayerViews?.filter(o=>o?.layer?.type==="feature").forEach(async o=>{let n=o;if(e?.effect&&n){let{includedEffect:c,excludedEffect:i}=e.effect,a=await O(i,n,"excludedEffect"),r=await O(c,n,"includedEffect"),s=C(n);n.featureEffect=await N({filter:s,includedEffect:r,excludedEffect:a}),n.set("filter",null)}})}function C(e){return e?.filter||e?.featureEffect?.filter}function T(e,t){let o=e?.fields,n=o&&o.map(c=>c.name);return t?n&&n.includes(t):!0}function Ne(e){let t=[];return e.forEach(o=>F(o,t)),t}function F(e,t){t.push(e),e.children&&e.children.length>0&&e.children.forEach(o=>{F(o,t)})}export{P as a,K as b,j as c,re as d,ne as e,oe as f,ce as g,ae as h,ie as i,le as j,ue as k,fe as l,he as m,ye as n,pe as o,de as p,ge as q,Ee as r,$e as s,me as t,we as u,xe as v,Oe as w,Ae as x,Ne as y};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
4
|
function r(o){return o.reduce((n,e)=>{var i;let t=e.capabilities.includes("updateitemcontrol"),a=(i=e.userMembership)===null||i===void 0?void 0:i.memberType;return(!e.isViewOnly||e.isViewOnly&&["owner","admin"].includes(a))&&n.push({value:e.id,label:e.title,icon:t?"unlock":"view-mixed"}),n},[])}export{r as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as e}from"./NNRPVDMT.js";var i=["hub:template:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}}})});export{i as a,r as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as o}from"./5T6A2NT3.js";import{a as r}from"./F56VXVXX.js";import"./V3NJ7RMG.js";import"./NBHU4HTV.js";import"./ILUBVWJF.js";import{a as s}from"./CH5PRHPR.js";import"./IDBD7LSX.js";import"./NTHWDWQ4.js";import"./GV3IWFPF.js";import"./HMGYITJ2.js";import"./SGUBT5JB.js";import"./CXJ53YNZ.js";import"./M6XUGB2Z.js";import"./7NWNTAMW.js";import"./CPBYDRAF.js";import"./UQ6BMBWB.js";import"./I5VSPGGJ.js";import"./BV76MPA5.js";import"./HYIN2EAD.js";import"./VHCT5ETZ.js";import"./YR5E3HFV.js";import"./EK4MS2HQ.js";import"./GJWN4WP3.js";import"./C34H6SGK.js";import"./RX6Y3JHB.js";import"./NNRPVDMT.js";import"./SGGIVA63.js";import"./C556IKNJ.js";import"./GZU2CPZN.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createAssociation.any:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createAssociation.admins:translate}}`]}}]}]}]}),c=async(e,l,t)=>Object.assign({},o("hubAssociationsGroup",t));export{c as buildDefaults,p as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as l}from"./TP3QX5HT.js";import{D as n,I as o,c as r,d as a,o as s}from"./RTFLMETG.js";import"./GZU2CPZN.js";var c=r`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as n}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as n}from"./CTUHVTSA.js";import{b as I,c as b,d as v}from"./NTASDALK.js";import{a as i}from"./P6B7MWVF.js";import"./NIXMWDPM.js";import"./C3P3IFUU.js";import"./7P23QXUP.js";import"./XZBB2UEX.js";import"./OWDWZHMV.js";import{e as a}from"./DA5DY7HY.js";import"./ILUBVWJF.js";import"./6KYFPVWD.js";import{a as f,b as _}from"./R7OODGTN.js";import{a as g}from"./TP3QX5HT.js";import{D as d,E as p,I as m,c,d as o,g as r,q as u}from"./RTFLMETG.js";import"./GZU2CPZN.js";var y=c`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{b as g}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{b as g}from"./CCKIOTSJ.js";import{a as b}from"./TP3QX5HT.js";import{D as u,E as p,I as w,c as h,d as l,o as r,q as m}from"./RTFLMETG.js";import"./GZU2CPZN.js";var y=h`@layer{/**
|
5
5
|
* @license
|
6
6
|
* Copyright 2025 Esri
|
7
7
|
*
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as i}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as i}from"./P6B7MWVF.js";import"./NIXMWDPM.js";import"./C3P3IFUU.js";import"./7P23QXUP.js";import"./XZBB2UEX.js";import"./OWDWZHMV.js";import"./DA5DY7HY.js";import"./ILUBVWJF.js";import"./6KYFPVWD.js";import{a as m}from"./TP3QX5HT.js";import{D as p,E as a,I as u,c as r,d as h,g as c,q as d}from"./RTFLMETG.js";import"./GZU2CPZN.js";var g=r`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{e as o}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{e as o}from"./QMT7LNSC.js";import"./PHA5TYOC.js";import"./WSDY2CHI.js";import{a as n,c as t,d as r,e as i}from"./5DFDVK6H.js";import"./GZU2CPZN.js";var c=":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}",l=c,h={content:"instant-apps-keyboard-shortcuts__content"},d=class{constructor(s){n(this,s),this.messages=void 0,this.view=void 0}render(){let s=this?.view?.type==="2d"||!this?.view?this._getMapViewCommands():this._getSceneViewCommands(),a=this._isMacLike()?"Option":"Alt";return t(r,{key:"84f9106dc025e1e2f72b3877c07f4f518f114451"},t("calcite-block",{key:"25201b23d1d74d25678b324db2d9ba8a19b65fe1",open:!0,class:h.content,heading:this?.messages?.generalShortcuts?.label},t("table",{key:"3eda56857013107bb19470f47b12c7a2296c6c51"},this.renderTableHeader(),t("tr",{key:"432311f662920cdc42f15f5d70b3ef9b93844cd0"},t("td",{key:"389c393270a40a0e9c7e0976d67a29154aa7b082"},`${a} + M`),t("td",{key:"e375dc8f8d69e75e20db9387d41dc2bd80862e06"},this?.messages?.generalShortcuts?.title))),t("calcite-label",{key:"5e770d6232fba18fb9a8bf64eadd713a417ec465"},this?.messages?.generalShortcuts?.title),t("table",{key:"6a16dbd6d987507dc024da5248ee3a4c5591fc7f"},this.renderTableHeader(),s.map(e=>t("tr",null,t("td",null,e.alias),t("td",null,e.title))))))}componentDidLoad(){o(this)}renderTableHeader(){return this?.messages?t("tr",null,t("th",null,this?.messages?.generalShortcuts.shortcut),t("th",null,this?.messages?.generalShortcuts.action)):null}_getMapViewCommands(){let s=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this?.messages.mapShortcuts.N,show:s},{alias:"A",title:this?.messages.mapShortcuts.A,show:s},{alias:"D",title:this?.messages.mapShortcuts.D,show:s},{alias:"+",title:this?.messages.mapShortcuts.plus,show:!0},{alias:"-",title:this?.messages.mapShortcuts.minus,show:!0}]:[];return this?.messages?a?.filter(e=>e.show):[]}_getSceneViewCommands(){let s=this.view?.type==="3d"&&this.view.viewingMode==="global",a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!!s},{alias:"P",title:this?.messages.sceneShortcuts.P,show:!0},{alias:"N",title:this?.messages.sceneShortcuts.N,show:!0},{alias:"W",title:this?.messages.sceneShortcuts.W,show:!0},{alias:"A",title:this?.messages.sceneShortcuts.A,show:!0},{alias:"D",title:this?.messages.sceneShortcuts.D,show:!0},{alias:"S",title:this?.messages.sceneShortcuts.S,show:!0},{alias:"J",title:this?.messages.sceneShortcuts.globalCommands.J,show:!!s},{alias:"U",title:this?.messages.sceneShortcuts.globalCommands.U,show:!!s}]:[];return this?.messages?a?.filter(e=>e.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}get el(){return i(this)}};d.style=l;export{d as instant_apps_keyboard_shortcuts};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{d as g}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{d as g}from"./WBJLCNZG.js";import"./6KYFPVWD.js";import{b as m}from"./3YMTKEK5.js";import{a as d,b as p}from"./R7OODGTN.js";import{a as u}from"./TP3QX5HT.js";import{D as c,I as h,c as n,d as i,o as a,q as l}from"./RTFLMETG.js";import"./GZU2CPZN.js";var f=n`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as h}from"./WSUH3PG3.js";import{a as Y}from"./QEWSNHU7.js";import{a as R}from"./VE4I5REF.js";import{a as V,d as W,e as H,f as B,g as J,h as G}from"./3VKOIUB3.js";import{c as y,f as E,l as b,m as I}from"./DZSY5JZN.js";import"./7P23QXUP.js";import"./2ED5S63G.js";import"./UY5WXQ65.js";import{a as M,c as U,e as C}from"./QCU33RPV.js";import"./RVQUWOMM.js";import{a as N,d as F}from"./V3NJ7RMG.js";import{a as g}from"./NBHU4HTV.js";import{d as j}from"./QF5QELVM.js";import"./GJKEPLSZ.js";import{a as p,b as A,c as L,e as u}from"./XZBB2UEX.js";import"./2B4ODL4I.js";import"./CQFA3WBO.js";import"./6ZIUZPW6.js";import{h as $}from"./OWDWZHMV.js";import"./DA5DY7HY.js";import"./2T7OWYJF.js";import{a as l}from"./ILUBVWJF.js";import{b as T}from"./SGGIVA63.js";import"./GZU2CPZN.js";function X(e,t=!1){let{id:r,properties:i}=e,s=i?.slug;return s?M(t?C(s,r):s):r}var d;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(d||(d={}));var f;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(f||(f={}));function z(e,t){var r;let i=e._slug;delete e._slug;let s=p(e);return s.orgUrlKey=e.orgUrlKey?e.orgUrlKey:t.urlKey,s.extent=(r=e.location)===null||r===void 0?void 0:r.extent,i?s.slug=U(i,s.orgUrlKey):s.slug="",s}var le=1,ue=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],ye=e=>[{orgId:e}],de={item:ue,event:ye};function Q(e){if(l(e,"schemaVersion")===le)return e;{let t=p(e);return t=fe(t),t}}function fe(e){if(l(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},r=l(e,"groups")||[],i=[];Array.isArray(r)&&r.length?i=r:typeof r=="string"&&(i=[r]),i.length&&(t.scopes=Object.entries(t.scopes).reduce((n,o)=>Object.assign(Object.assign({},n),{[o[0]]:Object.assign(Object.assign({},o[1]),{filters:[{predicates:[{group:i}]}]})}),{}));let s=l(e,"orgId");return s&&(t.scopes=Object.entries(t.scopes).reduce((n,o)=>{let a=o[0],c=o[1];return Object.assign(Object.assign({},n),{[a]:Object.assign(Object.assign({},c),{filters:[...c.filters,{operation:"AND",predicates:de[a](s)}]})})},{})),t}}function Z(e,t){let r=Object.assign(Object.assign({},t),e),i=Object.keys(t);return Object.keys(r).reduce((n,o)=>(i.includes(o)||n.push(o),n),[]).forEach(n=>{delete r[n]}),r}function q(e,t){let r;return t.authentication&&(r=t.authentication.token),{self:j(e.id,t),siteRelative:E(e.type,X(e),e.typeKeywords),siteRelativeEntityType:E(e.type),workspaceRelative:Y(e.type,e.id),thumbnail:y(e,t,r)}}var w="Hub Project",ee={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:T.notStarted,tags:[],typeKeywords:[w],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:N},te={item:{type:w,title:"",description:"",snippet:"",tags:[],typeKeywords:[w],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:T.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function re(e,t){return q(e,t)}function v(e,t,r){var i,s;let n;return r.authentication&&(n=r.authentication.token),t=H(e.item,t),t.thumbnailUrl=y(e.item,r,n),t.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(i=e.data.view)===null||i===void 0?void 0:i.featuredImageUrl}),t.catalog=Q(t.catalog||{}),t.features=Z(((s=e.data.settings)===null||s===void 0?void 0:s.features)||{},F),t.links=re(e.item,r),t}function _(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},t,r){let{value:i,valueType:s,dynamicMetric:n}=e,o=R(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:m,statistic:x,serviceUrl:oe,fieldType:ne,sourceLink:D,sourceTitle:O,allowExpressionSet:k,expressionSet:P,legacyWhere:S}=n||{},{entityInfo:ae,metricName:ce}=r||{},pe={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:m,statistic:x,where:S||ge(k?P:[])}:{type:"static-value",value:i,valueType:s},name:ce||t,entityInfo:ae||{id:void 0,name:void 0,type:void 0},id:t};delete o.itemId;let me=Object.assign(Object.assign({},o),{displayType:o.displayType||"stat-card",visibility:o.visibility||f.hidden,metricId:t,fieldType:ne,itemId:c,expressionSet:P,allowExpressionSet:k,statistic:x,sourceLink:e.type==="dynamic"&&D?D:o.sourceLink,sourceTitle:e.type==="dynamic"&&O?O:o.sourceTitle,allowLink:e.type==="dynamic"?o.allowDynamicLink:o.allowLink,type:e.type});return{metric:pe,displayConfig:me}}function ge(e=[]){let t=e.map(r=>{let{field:i,values:s,relationship:n}=r,o=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!s||!s.length||!i||!i.name)return!1;let a;switch(i.type){case"esriFieldTypeString":a=n===d.LIKE?`${i.name} like '%${s[0]}%'`:`(${i.name} IN (${s.map(c=>`'${o(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof s[0]=="string"&&(a=`${i.name} >= timestamp '${o(s[0])} 00:00:00'`),typeof s[1]=="string"&&(a=`${i.name} <= timestamp '${o(s[1])} 23:59:59'`),typeof s[0]=="string"&&typeof s[1]=="string"&&(a=`${i.name} >= timestamp '${o(s[0])} 00:00:00' AND ${i.name} <= timestamp '${o(s[1])} 23:59:59'`);break;default:u(s[0])||(a=`(${i.name}) >= ${s[0]}`),u(s[1])||(a=`(${i.name}) <= ${s[1]}`),!u(s[0])&&!u(s[1])&&(a=`(${i.name}) >= ${s[0]} AND (${i.name}) <= ${s[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(t)}function K(e,t){let r=e.filter(i=>!i.startsWith("status|"));return r.push(`status|${t}`),r}function se(e,t,r){let i=p(e),s=t.id,n=g(i,"metrics",[]),o=n.findIndex(m=>m.id===s),a=g(i,"view.metricDisplays",[]),c=a.findIndex(m=>m.metricId===s);return o>-1?n[o]=t:n.push(t),c>-1?a[c]=r:a.push(r),i.view.metricDisplays=a,i.metrics=n,i}async function Tt(e,t){let r=Object.assign(Object.assign({},ee),e);r.slug||(r.slug=V(r.name,r.orgUrlKey)),await h(r,t),r.typeKeywords=K(r.typeKeywords,r.status),r.typeKeywords=b(r.typeKeywords,r.isDiscussable);let i=new I(_()),s=i.entityToStore(r,p(te));s=await J(s,t);let n=i.storeToEntity(s,{});return n=v(s,n,t),n}function Et(e,t){var r;let i=e._metric;delete e._groups,delete e._thumbnail,(r=e.view)===null||r===void 0||delete r.featuredImage,delete e._metric,delete e._groups;let s=z(e,t);if(i&&Object.keys(i).length){let n=i.metricId||A(L(`${i.cardTitle}_`)),{metric:o,displayConfig:a}=ie(i,n,{metricName:i.cardTitle});s=se(s,o,a)}return s}async function ht(e,t){await h(e,t),e.typeKeywords=K(e.typeKeywords,e.status),e.typeKeywords=b(e.typeKeywords,e.isDiscussable);let r=await B(e.id,t),i=new I(_()),s=i.entityToStore(e,r),n=await G(s,t),o=i.storeToEntity(n,e);return o=v(r,o,t),o}async function bt(e,t){let r=Object.assign(Object.assign({},t),{id:e});await $(r)}export{Tt as createProject,bt as deleteProject,Et as editorToProject,ht as updateProject};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as l,b as a}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as l,b as a}from"./R7OODGTN.js";import{b}from"./CCKIOTSJ.js";import{a as f}from"./TP3QX5HT.js";import{D as w,E as o,I as u,c as _,d as h,g as c}from"./RTFLMETG.js";import"./GZU2CPZN.js";var $=_`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as u,e as h}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as u,e as h}from"./NTASDALK.js";import{a}from"./P6B7MWVF.js";import"./NIXMWDPM.js";import"./C3P3IFUU.js";import"./7P23QXUP.js";import"./XZBB2UEX.js";import"./OWDWZHMV.js";import"./DA5DY7HY.js";import"./ILUBVWJF.js";import"./6KYFPVWD.js";import{D as i,I as l,o,q as n}from"./RTFLMETG.js";import"./GZU2CPZN.js";var r=class extends i{constructor(){super(...arguments),this.value="",this.templates=[],this.stateLoaded=o()}static{this.properties={value:3,templates:2,authentication:0}}static{this.shadowRootOptions=n}connectedCallback(){super.connectedCallback(),this._handleValueChange(this.value),this._initValueObserver()}render(){return null}async getStoreInfo(t){return Promise.resolve(a.getStoreInfo(t))}_handleValueChange(t){if(t!==""){let e=JSON.parse(t);a.setStoreInfo("solutionData",e);let s=u(e.templates);a.setStoreInfo("featureServices",s),a.setStoreInfo("spatialReferenceInfo",h(s,e)),this.templates=e.templates,this.stateLoaded.emit(a)}}_initValueObserver(){this._valueObserver=new MutationObserver(t=>{t.some(e=>{let s=e.target[e.attributeName];return e.type==="attributes"&&e.attributeName==="value"&&s!==e.oldValue?(this._handleValueChange(s),!0):!1})}),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}};l("store-manager",r);export{r as StoreManager};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a}from"./FDZTWT7F.js";import"./RVQUWOMM.js";import"./RC47QK6Z.js";import"./NBHU4HTV.js";import"./2T7OWYJF.js";import"./ILUBVWJF.js";import"./GV3IWFPF.js";import"./GZU2CPZN.js";export{a as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as e}from"./ILUBVWJF.js";function i(r,n,o){let t=e(r,n);return t!==void 0?t:o}export{i as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{e as s}from"./
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{e as s}from"./QMT7LNSC.js";import"./PHA5TYOC.js";import"./WSDY2CHI.js";import{a as c,c as e,d as l,e as r,f as d}from"./5DFDVK6H.js";import"./GZU2CPZN.js";var m=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}",u=m,h={content:"instant-apps-measurement__content"},f=class{constructor(t){c(this,t),this.measureActive=d(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){s(this)}componentDidLoad(){}render(){return e(l,{key:"68d619bbb5d2b0808ad57a1891ca07ae35391194"},e("calcite-panel",{key:"5fe4f0d6ee4c8344cb5fadedd3c09a81a100f342",heading:this?.messages?.label,closable:this.closable},e("div",{key:"6f220edb8795f0563ea4f4e76f0908c2fca4a263",slot:"content-top"},this.renderActionPad()),e("div",{key:"5b11d036b55b5a98df11d8c575b995c2b7f4a322"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){let{view:t,coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o}=this;return e("calcite-panel",{class:h.content},e("instant-apps-measurement-tool",{ref:p=>{this.measureTool=p},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o},activeTool:this.activeToolType}))}renderActionPad(){let{messages:t,activeToolType:i}=this;return e("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},e("calcite-action",{class:i==="distance"?"active-tool":"",text:t?.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.line)),e("calcite-action",{class:i==="area"?"active-tool":"",text:t?.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.area)),e("calcite-action",{class:i==="point"?"active-tool":"",text:t?.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.point)),e("calcite-action",{text:t?.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.clear)))}_handleToolClick(t){if(!this?.measureTool)return;let i=t?.target;if(!(i instanceof HTMLElement))return;let a=i?.dataset.value;if(a!=="distance"&&a!=="area"&&a!=="point"&&a!=="clear")return;a&&(this.measureTool.activeTool=a);let n=document.getElementsByClassName("active-tool");for(let o=0;o<n?.length;o++)n[o]?.classList?.remove("active-tool");i?.classList.add("active-tool"),this.measureActive.emit(!(a===void 0||a==="clear"))}get el(){return r(this)}};f.style=u;export{f as instant_apps_measurement};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
4
|
var y={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},we="app",Re=Object.defineProperty,xe=(e,t)=>{for(var o in t)Re(e,o,{get:t[o],enumerable:!0})},Se="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",_e=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},q=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),X="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{};w.HTMLElement;var N={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),j=!1,G=[],ie=[],Ee=(e,t)=>o=>{e.push(o),j||(j=!0,t&&N.$flags$&4?K(D):N.raf(D))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},D=()=>{J(G),J(ie),(j=G.length>0)&&N.raf(D)},K=e=>ke().then(e),Ce=Ee(ie,!0),Le=e=>e!=null&&e!==void 0,$e=e=>(e=typeof e,e==="object"||e==="function"),Ae=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe={};xe(Oe,{err:()=>ce,map:()=>Fe,ok:()=>U,unwrap:()=>Me,unwrapErr:()=>Pe});var U=e=>({isOk:!0,isErr:!1,value:e}),ce=e=>({isOk:!1,isErr:!0,value:e});function Fe(e,t){if(e.isOk){let o=t(e.value);return o instanceof Promise?o.then(n=>U(n)):U(o)}if(e.isErr){let o=e.value;return ce(o)}throw"should never get here"}var Me=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},de=e=>{let t=ee(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&fe(t,e.tagName).forEach(n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(De(n,Q(n),!1).length?n.hidden=!0:n.hidden=!1)});let o=0;for(o=0;o<t.length;o++){let n=t[o];n.nodeType===1&&ee(n,"childNodes").length&&de(n)}},je=e=>{let t=[];for(let o=0;o<e.length;o++){let n=e[o]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t};function fe(e,t,o){let n=0,s=[],l;for(;n<e.length;n++)l=e[n],l["s-sr"]&&(!t||l["s-hn"]===t)&&o===void 0&&s.push(l),s=[...s,...fe(l.childNodes,t,o)];return s}var De=(e,t,o=!0)=>{let n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)===t&&(o||!s["s-sr"])&&n.push(s);return n},Z=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ue(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;let t=o=>function(n){let s=[],l=this["s-sn"];n?.flatten&&console.error(`
|
5
5
|
Flattening is not supported for Stencil non-shadow slots.
|
6
6
|
You can use \`.childNodes\` to nested slot fallback content.
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250530 */
|
4
|
-
import{a as G}from"./JSUMCSCE.js";import{b as K,f as P,m as _,n as U,o as L}from"./T6ENDM5I.js";import"./JL5VELML.js";import"./YWR7J3GR.js";import"./UU5CNOQW.js";import"./MSC6SQKC.js";import"./UF7C45QH.js";import{a as j}from"./Q2NP2O3M.js";import"./7ICYEZEV.js";import"./H3YXFKQG.js";import"./XANWM4XJ.js";import{k as S}from"./FVYY2V6T.js";import"./NO2SL2YF.js";import"./ZKKTR3BI.js";import"./X7YNYBQ7.js";import{b}from"./YDQ3OJQO.js";import{a as c,b as p}from"./O7VNTXYR.js";import"./OY2EULMD.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|
3
|
+
v1.0.0-next.20250530.1 */
|
4
|
+
import{a as G}from"./QEWSNHU7.js";import{b as K,f as P,m as _,n as U,o as L}from"./DZSY5JZN.js";import"./7P23QXUP.js";import"./2ED5S63G.js";import"./RVQUWOMM.js";import"./QF5QELVM.js";import"./GJKEPLSZ.js";import{a as j}from"./XZBB2UEX.js";import"./2B4ODL4I.js";import"./CQFA3WBO.js";import"./6ZIUZPW6.js";import{k as S}from"./OWDWZHMV.js";import"./DA5DY7HY.js";import"./2T7OWYJF.js";import"./ILUBVWJF.js";import{b}from"./BV76MPA5.js";import{a as c,b as p}from"./VHCT5ETZ.js";import"./GZU2CPZN.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|