@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.41
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/{SGDDFWCJ.js → 2GIECQ25.js} +1 -1
- package/dist/cdn/2N6K2UUQ.js +2 -0
- package/dist/cdn/36DGXQLJ.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → 3HXQ5Z4C.js} +1 -1
- package/dist/cdn/3HZI6MKD.js +2 -0
- package/dist/cdn/3OL7A2UC.js +2 -0
- package/dist/cdn/3Q7UJKKN.js +2 -0
- package/dist/cdn/3SG67WP5.js +2 -0
- package/dist/cdn/3ZVDEJPF.js +2 -0
- package/dist/cdn/42AN66SK.js +2 -0
- package/dist/cdn/46HNNQAD.js +2 -0
- package/dist/cdn/4CBRO7JP.js +2 -0
- package/dist/cdn/4E354KKM.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/5MLBK66O.js +2 -0
- package/dist/cdn/5ZHNRQOW.js +2 -0
- package/dist/cdn/62TL6V4N.js +2 -0
- package/dist/cdn/67FEZD25.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
- package/dist/cdn/6GPAZV4Z.js +2 -0
- package/dist/cdn/6QI7DAS2.js +2 -0
- package/dist/cdn/6XDKSVRF.js +2 -0
- package/dist/cdn/6ZJNZZPC.js +2 -0
- package/dist/cdn/6ZYYG64M.js +2 -0
- package/dist/cdn/7AG3E7K6.js +2 -0
- package/dist/cdn/7JDXAVUG.js +2 -0
- package/dist/cdn/7JKFWVCY.js +2 -0
- package/dist/cdn/7VPB6Q55.js +63 -0
- package/dist/cdn/AJEQETRW.js +2 -0
- package/dist/cdn/{JE2376SE.js → AP7UWD4P.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
- package/dist/cdn/BUYOYUA2.js +2 -0
- package/dist/cdn/BX7Q3V2Y.js +43 -0
- package/dist/cdn/BXPNB7VJ.js +2 -0
- package/dist/cdn/BZEKNJUA.js +2 -0
- package/dist/cdn/C6RUWLEJ.js +2 -0
- package/dist/cdn/CERDMRFQ.js +2 -0
- package/dist/cdn/DFECUYNW.js +2 -0
- package/dist/cdn/DGWOMELT.js +2 -0
- package/dist/cdn/DIWTHL4N.js +2 -0
- package/dist/cdn/DKUOQCHO.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → DQL2JT6K.js} +1 -1
- package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
- package/dist/cdn/DU2R3VC4.js +2 -0
- package/dist/cdn/E5HCHRAI.js +2 -0
- package/dist/cdn/EBL7YSRM.js +2 -0
- package/dist/cdn/EDGE3T36.js +2 -0
- package/dist/cdn/EETYTFHH.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
- package/dist/cdn/FINVGL3V.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FXXFSYNB.js +2 -0
- package/dist/cdn/GA4OWLSO.js +2 -0
- package/dist/cdn/GFUKRB6D.js +2 -0
- package/dist/cdn/GHDMQJG4.js +2 -0
- package/dist/cdn/{FRE56NBG.js → GY4SY4XC.js} +1 -1
- package/dist/cdn/H4TPPTVB.js +2 -0
- package/dist/cdn/HOIZXTOD.js +2 -0
- package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
- package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
- package/dist/cdn/IQPJOVDL.js +2 -0
- package/dist/cdn/ITRJGXFV.js +93 -0
- package/dist/cdn/ITWLFQI4.js +2 -0
- package/dist/cdn/IWPJEUHY.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
- package/dist/cdn/JDW7ECBF.js +2 -0
- package/dist/cdn/JFGXTJY4.js +2 -0
- package/dist/cdn/JGTBDGJ7.js +2 -0
- package/dist/cdn/JLT5GCLY.js +2 -0
- package/dist/cdn/JTA223NH.js +2 -0
- package/dist/cdn/KA2MXQTR.js +2 -0
- package/dist/cdn/KAK6CNI7.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/KWL2D56D.js +3 -0
- package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
- package/dist/cdn/L3YOPSRB.js +135 -0
- package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
- package/dist/cdn/{JIJO4CAS.js → LVWAYUYZ.js} +1 -1
- package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
- package/dist/cdn/ME6XACY6.js +2 -0
- package/dist/cdn/MSL36HAR.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/N47MW5HI.js +9 -0
- package/dist/cdn/N5AG34NK.js +2 -0
- package/dist/cdn/N7XYFVOI.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
- package/dist/cdn/O2GPTWGF.js +3 -0
- package/dist/cdn/ODYYTLLQ.js +2 -0
- package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
- package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
- package/dist/cdn/OQBLBDR5.js +2 -0
- package/dist/cdn/OWODUQF2.js +2 -0
- package/dist/cdn/OXF2WDSW.js +2 -0
- package/dist/cdn/PM33STYQ.js +2 -0
- package/dist/cdn/PUHZVFK7.js +2 -0
- package/dist/cdn/QAXFE5DD.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
- package/dist/cdn/QXPDVHB5.js +2 -0
- package/dist/cdn/R26RBXQW.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → R45EMSQJ.js} +1 -1
- package/dist/cdn/R6KJVAX3.js +99 -0
- package/dist/cdn/RA2NMLMP.js +2 -0
- package/dist/cdn/RDRSZQAR.js +2 -0
- package/dist/cdn/RR56BOTV.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/RX64JXHI.js +170 -0
- package/dist/cdn/S4N5QMSN.js +2 -0
- package/dist/cdn/SCLYGIHM.js +2 -0
- package/dist/cdn/SGV47YVU.js +2 -0
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TQX5BOZG.js +2 -0
- package/dist/cdn/U2J4ST45.js +2 -0
- package/dist/cdn/U3V7PPC2.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
- package/dist/cdn/UCHX4CBR.js +2 -0
- package/dist/cdn/UCTXRTQZ.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/UWB23CG4.js +2 -0
- package/dist/cdn/VABNHOVG.js +2 -0
- package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
- package/dist/cdn/VWOBCSD6.js +4 -0
- package/dist/cdn/W6U2HMEK.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
- package/dist/cdn/WTKLB3R6.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → XSEFGIVV.js} +1 -1
- package/dist/cdn/XYHIVGUK.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
- package/dist/cdn/Y7ZCEONL.js +73 -0
- package/dist/cdn/YCMZ3RVZ.js +2 -0
- package/dist/cdn/YELHAJB3.js +2 -0
- package/dist/cdn/YH2OFXPU.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → ZOOEWYFB.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/FieldIcons.js +24 -0
- package/dist/chunks/constants.js +7 -0
- package/dist/chunks/contextUsage.js +208 -0
- package/dist/chunks/createPortalTool.js +18 -0
- package/dist/chunks/fieldAddDelete.js +6 -6
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/help.js +22 -0
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +135 -33
- package/dist/chunks/item2.js +96 -122
- package/dist/chunks/itemThumbnail.js +21 -21
- package/dist/chunks/items.js +11 -11
- package/dist/chunks/layers.js +196 -0
- package/dist/chunks/loadClassificationData.js +26 -27
- package/dist/chunks/portal-browser.js +49 -46
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-item-preview-sublayer.js +214 -0
- package/dist/chunks/portal-item-status-card.js +81 -0
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +14 -10
- package/dist/chunks/portal2.js +22 -22
- package/dist/chunks/portalEntitySelection.js +61 -0
- package/dist/chunks/previewSessionController.js +33 -0
- package/dist/chunks/query.js +14 -14
- package/dist/chunks/request.js +49 -41
- package/dist/chunks/requests.js +7 -7
- package/dist/chunks/selectedMentions.js +25 -0
- package/dist/chunks/services.js +5 -5
- package/dist/chunks/string.js +19 -11
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.js +67 -53
- package/dist/chunks/user2.js +10 -10
- package/dist/chunks/utils.js +35 -22
- package/dist/chunks/utils3.js +88 -657
- package/dist/chunks/utils4.js +663 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
- package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
- package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
- package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-browser/customElement.js +3 -2
- package/dist/components/arcgis-portal-browser/index.js +1 -0
- package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
- package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
- package/dist/components/arcgis-portal-delete-items/index.js +1 -2
- package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
- package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
- package/dist/components/arcgis-portal-field-delete/index.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
- package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
- package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
- package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +37 -10
- package/dist/components/arcgis-portal-item-card/customElement.js +125 -86
- package/dist/components/arcgis-portal-item-card/index.js +4 -1
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
- package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
- package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
- package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview/index.js +20 -0
- package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
- package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
- package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
- package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
- package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +10 -4
- package/dist/components/arcgis-portal-navigation/customElement.js +349 -351
- package/dist/components/arcgis-portal-navigation/index.js +4 -5
- package/dist/components/arcgis-portal-navigation/types.d.ts +3 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
- package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
- package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
- package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
- package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
- package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
- package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
- package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
- package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- package/dist/components/portal-related-items-list-item/customElement.js +16 -14
- package/dist/components/portal-related-items-list-item/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +87 -0
- package/dist/index.js +305 -6
- package/dist/loader.js +22 -11
- package/dist/services/group.d.ts +17 -0
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +23 -11
- package/dist/types/layer.d.ts +27 -0
- package/dist/types/lumina.d.ts +82 -12
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +93 -12
- package/dist/types/react.d.ts +104 -12
- package/dist/types/services.d.ts +28 -1
- package/dist/types/stencil.d.ts +82 -12
- package/dist/types/user.d.ts +14 -10
- package/dist/utils/generateEmbeddings.d.ts +7 -0
- package/dist/utils/semanticSearch.d.ts +60 -0
- package/dist/utils/types.d.ts +10 -0
- package/package.json +14 -13
- package/dist/cdn/23NXHNPU.js +0 -2
- package/dist/cdn/24QSQLRY.js +0 -2
- package/dist/cdn/2CN754CY.js +0 -2
- package/dist/cdn/2FQKDFEE.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/3CQKCUM5.js +0 -2
- package/dist/cdn/3EYB5GQX.js +0 -2
- package/dist/cdn/3FSPL34I.js +0 -170
- package/dist/cdn/3LEQ37YT.js +0 -68
- package/dist/cdn/4KTRAA2J.js +0 -2
- package/dist/cdn/4MUB6TL6.js +0 -2
- package/dist/cdn/4PRXQFCV.js +0 -2
- package/dist/cdn/4QFTKB6T.js +0 -2
- package/dist/cdn/4TSXFX3M.js +0 -2
- package/dist/cdn/5C5GHX4D.js +0 -2
- package/dist/cdn/7LMZHJZG.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AXOBMX3S.js +0 -2
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BYHX3UWV.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/D2YQWKME.js +0 -135
- package/dist/cdn/DDBXEXOV.js +0 -2
- package/dist/cdn/DHMNNIXZ.js +0 -2
- package/dist/cdn/DLI4XKJ3.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EMJQI4MA.js +0 -2
- package/dist/cdn/EY5S6ICQ.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FIQZPIIK.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/GGDOGNH4.js +0 -150
- package/dist/cdn/GSOBDGLK.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/HCNTXLUT.js +0 -2
- package/dist/cdn/I273CANO.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/J5NPDIZM.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/JWBUJT43.js +0 -2
- package/dist/cdn/K75JTQPW.js +0 -2
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/MQK63FV7.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/OD5WXP7J.js +0 -2
- package/dist/cdn/OXPXXIWL.js +0 -2
- package/dist/cdn/PKA745KL.js +0 -2
- package/dist/cdn/PMRFXB4F.js +0 -2
- package/dist/cdn/PNIFJ5DQ.js +0 -2
- package/dist/cdn/PZDI5ZDC.js +0 -2
- package/dist/cdn/QROXYP6V.js +0 -2
- package/dist/cdn/QUOLQGKP.js +0 -2
- package/dist/cdn/QWHGLE3O.js +0 -2
- package/dist/cdn/R3PK7XOP.js +0 -2
- package/dist/cdn/REM3KCX6.js +0 -2
- package/dist/cdn/RNWICLRH.js +0 -2
- package/dist/cdn/RQYNPDN3.js +0 -2
- package/dist/cdn/S6F7U36E.js +0 -400
- package/dist/cdn/SMX2LEJB.js +0 -2
- package/dist/cdn/SVROAT3Z.js +0 -2
- package/dist/cdn/TBZXKKGP.js +0 -2
- package/dist/cdn/TNUCSWBN.js +0 -2
- package/dist/cdn/TOICLGFK.js +0 -2
- package/dist/cdn/TOTWYGB3.js +0 -2
- package/dist/cdn/TUUUK3VX.js +0 -2
- package/dist/cdn/U3KMGSVH.js +0 -2
- package/dist/cdn/UEP2NYJK.js +0 -2
- package/dist/cdn/UZP4YMTE.js +0 -2
- package/dist/cdn/VNU4QX7M.js +0 -41
- package/dist/cdn/XYMBRPC7.js +0 -2
- package/dist/cdn/YB3DR4VO.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
- package/dist/cdn/Z3HGPBOR.js +0 -2
- package/dist/cdn/ZDDN7UKS.js +0 -2
- package/dist/cdn/ZXNF77OB.js +0 -2
- package/dist/chunks/functional.js +0 -9
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
- /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
- /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as ne, c as
|
|
3
|
-
import { safeStyleMap as Ie, safeClassMap as re, LitElement as
|
|
4
|
-
import { u as
|
|
5
|
-
import { nothing as M, html as c, svg as
|
|
6
|
-
import { formatDate as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { g as ne, c as _t } from "../../chunks/runtime.js";
|
|
3
|
+
import { safeStyleMap as Ie, safeClassMap as re, LitElement as yt, createEvent as q } from "@arcgis/lumina";
|
|
4
|
+
import { u as $t } from "../../chunks/useT9n.js";
|
|
5
|
+
import { nothing as M, html as c, svg as kt, css as At } from "lit";
|
|
6
|
+
import { formatDate as xt, substitute as X, getLocale as St } from "@arcgis/core/intl.js";
|
|
7
|
+
import { b as ce, g as It } from "../../chunks/url.js";
|
|
8
|
+
import { c as B } from "../../chunks/requests.js";
|
|
9
9
|
import { repeat as U } from "lit/directives/repeat.js";
|
|
10
|
-
import { m as
|
|
11
|
-
import { i as
|
|
12
|
-
import { c as Ct, d as Mt, e as Ot, f as
|
|
13
|
-
import { c as
|
|
14
|
-
import { i as
|
|
15
|
-
import { e as Ut } from "../../chunks/
|
|
10
|
+
import { m as Pt } from "../../chunks/icons.js";
|
|
11
|
+
import { i as C, c as ge, a as Nt } from "../../chunks/user2.js";
|
|
12
|
+
import { b as Tt, c as Ct, d as Mt, e as Ot, f as Et } from "../../chunks/portal2.js";
|
|
13
|
+
import { c as Lt, d as jt, e as Dt } from "../../chunks/user.js";
|
|
14
|
+
import { i as zt, a as Gt } from "../../chunks/utils4.js";
|
|
15
|
+
import { e as Ut, g as Pe } from "../../chunks/item2.js";
|
|
16
16
|
import { g as Bt } from "../../chunks/request.js";
|
|
17
|
-
import { g as Te } from "../../chunks/item.js";
|
|
18
17
|
import { keyed as le } from "lit/directives/keyed.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
18
|
+
import { g as ue, n as Ft, a as de, f as J, b as Rt } from "../../chunks/portal.js";
|
|
19
|
+
import { g as Wt } from "../../chunks/items.js";
|
|
20
|
+
import { ref as W, createRef as R } from "lit/directives/ref.js";
|
|
21
|
+
import { c as Vt, g as Ht } from "../../chunks/dom.js";
|
|
22
22
|
import { debounce as be } from "@arcgis/toolkit/function";
|
|
23
|
-
import
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
23
|
+
import qt from "@arcgis/core/identity/IdentityManager.js";
|
|
24
|
+
import { t as Jt } from "../../chunks/functionalities.js";
|
|
25
|
+
import { b as Kt } from "../../chunks/string.js";
|
|
26
26
|
function ve({ portal: e, productInfo: t }) {
|
|
27
27
|
const { name: i, glyph: n } = t || {};
|
|
28
28
|
return c`<img alt class="logo__glyph" src=${n ?? M}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Qt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: a, showNav: s, projectTitleEditing: l }) {
|
|
31
31
|
const d = a && i === "Online" && !s || i !== "Online" && l && window.innerWidth < 960;
|
|
32
|
-
return !i || !t || !o || d ||
|
|
33
|
-
e({ event:
|
|
32
|
+
return !i || !t || !o || d || ["Online", "Enterprise"].includes(i) && !t?.user ? null : r ? c`<a href=${r ?? M} @click=${(h) => {
|
|
33
|
+
e({ event: h, href: r });
|
|
34
34
|
}} class="logo logo--link">${ve({ portal: t, productInfo: n })}</a>` : c`<div class="logo ">${ve({ portal: t, productInfo: n })}</div>`;
|
|
35
35
|
}
|
|
36
|
-
const te = {},
|
|
36
|
+
const te = {}, T = {
|
|
37
37
|
Month: 2628e3,
|
|
38
38
|
Week: 604800,
|
|
39
39
|
Day: 86400,
|
|
@@ -41,73 +41,73 @@ const te = {}, C = {
|
|
|
41
41
|
Minute: 60,
|
|
42
42
|
Second: 1
|
|
43
43
|
};
|
|
44
|
-
function
|
|
44
|
+
function Ne(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return null;
|
|
47
|
-
const t = Math.floor(e / 1e3), i = Math.abs(t), n =
|
|
47
|
+
const t = Math.floor(e / 1e3), i = Math.abs(t), n = T.Day * 365;
|
|
48
48
|
switch (!0) {
|
|
49
|
-
case i <
|
|
50
|
-
return [Math.floor(t /
|
|
51
|
-
case i <
|
|
52
|
-
return [Math.floor(t /
|
|
53
|
-
case i <
|
|
54
|
-
return [Math.floor(t /
|
|
55
|
-
case i <
|
|
56
|
-
return [Math.floor(t /
|
|
57
|
-
case i <
|
|
58
|
-
return [Math.floor(t /
|
|
49
|
+
case i < T.Minute:
|
|
50
|
+
return [Math.floor(t / T.Second), "second"];
|
|
51
|
+
case i < T.Hour:
|
|
52
|
+
return [Math.floor(t / T.Minute), "minute"];
|
|
53
|
+
case i < T.Day:
|
|
54
|
+
return [Math.floor(t / T.Hour), "hour"];
|
|
55
|
+
case i < T.Week:
|
|
56
|
+
return [Math.floor(t / T.Day), "day"];
|
|
57
|
+
case i < T.Month:
|
|
58
|
+
return [Math.floor(t / T.Week), "week"];
|
|
59
59
|
case i < n:
|
|
60
|
-
return [Math.floor(t /
|
|
60
|
+
return [Math.floor(t / T.Month), "month"];
|
|
61
61
|
default:
|
|
62
62
|
return [Math.floor(t / n), "year"];
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Te(e) {
|
|
66
66
|
return (typeof e == "number" ? e : e.getTime?.()) - (/* @__PURE__ */ new Date()).getTime();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ce({ locale: e, time: t, t9n: i }) {
|
|
69
69
|
if (!e || !t)
|
|
70
70
|
return "";
|
|
71
|
-
const n =
|
|
71
|
+
const n = Te(t);
|
|
72
72
|
te[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
|
|
73
|
-
const r =
|
|
73
|
+
const r = Ne(n);
|
|
74
74
|
return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${te[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : te[e].format(r[0], r[1]) : "";
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const Xt = {
|
|
77
77
|
month: "long",
|
|
78
78
|
day: "numeric",
|
|
79
79
|
year: "numeric"
|
|
80
|
-
},
|
|
80
|
+
}, Yt = {
|
|
81
81
|
month: "long",
|
|
82
82
|
day: "numeric"
|
|
83
83
|
};
|
|
84
|
-
function
|
|
84
|
+
function Zt({ locale: e, time: t }, i) {
|
|
85
85
|
if (!e || !t)
|
|
86
86
|
return "";
|
|
87
87
|
const n = new Date(t);
|
|
88
|
-
return
|
|
88
|
+
return xt(n, i ? Xt : Yt);
|
|
89
89
|
}
|
|
90
|
-
async function
|
|
90
|
+
async function ei({ portal: e }) {
|
|
91
91
|
if (!e?.user)
|
|
92
92
|
return { result: [] };
|
|
93
93
|
const t = `${e.restUrl}/community/users/${e.user.id}/notifications`, { result: i, error: n } = await B(t);
|
|
94
94
|
return n ? { error: n } : { result: i?.notifications };
|
|
95
95
|
}
|
|
96
|
-
async function
|
|
96
|
+
async function ti(e, t) {
|
|
97
97
|
if (!e?.user)
|
|
98
98
|
return { success: !0 };
|
|
99
|
-
const i = t.map((o) => ({ portal: e, id: o })).map(
|
|
99
|
+
const i = t.map((o) => ({ portal: e, id: o })).map(Me);
|
|
100
100
|
return { success: !((await Promise.allSettled(i))?.filter((o) => o.status === "rejected" || !o.value?.success)).length };
|
|
101
101
|
}
|
|
102
|
-
async function
|
|
102
|
+
async function Me({
|
|
103
103
|
portal: e,
|
|
104
104
|
id: t
|
|
105
105
|
}) {
|
|
106
106
|
const i = `${e.restUrl}/community/users/${e.user?.id}/notifications/${t}/delete`, { result: n } = await B(i, { method: "post" });
|
|
107
107
|
return n?.success ? { success: !0, id: t } : { success: !1, id: t };
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
109
|
+
const Oe = "notifications-menu";
|
|
110
|
+
function ii(e) {
|
|
111
111
|
try {
|
|
112
112
|
const t = decodeURIComponent(e);
|
|
113
113
|
return t !== e ? t : e;
|
|
@@ -115,7 +115,7 @@ function ti(e) {
|
|
|
115
115
|
return e;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ni(e) {
|
|
119
119
|
switch (e) {
|
|
120
120
|
case "group_join_admin":
|
|
121
121
|
return "users";
|
|
@@ -170,7 +170,7 @@ function ii(e) {
|
|
|
170
170
|
return "bell";
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ri({
|
|
174
174
|
notification: e,
|
|
175
175
|
portal: t,
|
|
176
176
|
locale: i,
|
|
@@ -178,12 +178,12 @@ function ni({
|
|
|
178
178
|
}) {
|
|
179
179
|
if (e?.received && e.id) {
|
|
180
180
|
const r = {
|
|
181
|
-
date:
|
|
181
|
+
date: Ce({ locale: i, time: e.received, t9n: n }),
|
|
182
182
|
id: e.id,
|
|
183
183
|
text: "",
|
|
184
|
-
icon:
|
|
184
|
+
icon: ni(e.type)
|
|
185
185
|
};
|
|
186
|
-
if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle =
|
|
186
|
+
if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle = ii(e.data.taskTitle)), e.type === "message_received")
|
|
187
187
|
r.text = e.data.message || "";
|
|
188
188
|
else if (n.types[e.type]) {
|
|
189
189
|
const o = ce({ portal: t, usePortalHostname: !!t.user });
|
|
@@ -194,61 +194,61 @@ function ni({
|
|
|
194
194
|
}
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
197
|
-
async function
|
|
197
|
+
async function we({
|
|
198
198
|
portal: e,
|
|
199
199
|
locale: t,
|
|
200
200
|
t9n: i
|
|
201
201
|
}) {
|
|
202
202
|
if (!i)
|
|
203
203
|
return [];
|
|
204
|
-
const { result: n, error: r } = await
|
|
205
|
-
return r && console.error(r), n?.length ? n.map((a) =>
|
|
204
|
+
const { result: n, error: r } = await ei({ portal: e });
|
|
205
|
+
return r && console.error(r), n?.length ? n.map((a) => ri({ notification: a, portal: e, t9n: i, locale: t })).filter((a) => a) : [];
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${
|
|
207
|
+
function oi({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
|
|
208
|
+
return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Oe} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
|
|
209
209
|
}
|
|
210
210
|
function K({ icon: e, title: t, description: i }) {
|
|
211
|
-
return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${
|
|
211
|
+
return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${kt`<path d=${Pt[e] ?? M} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return i ? c`<calcite-popover .referenceElement=${
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
213
|
+
function ai({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: a, notificationDeleteProgress: s }) {
|
|
214
|
+
return i ? c`<calcite-popover .referenceElement=${Oe} @calcitePopoverClose=${() => a(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof s == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
|
|
215
|
+
const h = d.target, g = h.href;
|
|
216
|
+
if (h.nodeName === "CALCITE-LINK" && g) {
|
|
217
217
|
const p = `${ce({ portal: r, usePortalHostname: !!r.user })}/home/`;
|
|
218
218
|
n({ event: d, href: g, relativePath: g.replace(p, "") });
|
|
219
219
|
}
|
|
220
220
|
}}></div><div class="notification__date">${l.date}</div></div></calcite-list-item>`)}</calcite-list></div><calcite-button class="notifications__dismiss" scale=l appearance=transparent @click=${async (l) => {
|
|
221
221
|
const d = l.currentTarget?.parentElement;
|
|
222
|
-
await t(e?.map(({ id:
|
|
222
|
+
await t(e?.map(({ id: h }) => h)), d.open = !1;
|
|
223
223
|
}}>${i.dismissAllLabel}</calcite-button>` : c`<div class="notifications">${K({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
function si(e) {
|
|
229
|
-
return ui(e, !0);
|
|
225
|
+
function si(e, t, i, n) {
|
|
226
|
+
hi(e, JSON.stringify(t), i);
|
|
230
227
|
}
|
|
231
228
|
function ci(e) {
|
|
229
|
+
return di(e, !0);
|
|
230
|
+
}
|
|
231
|
+
function li(e) {
|
|
232
232
|
try {
|
|
233
233
|
window.localStorage.removeItem(e);
|
|
234
234
|
} catch {
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function ui(e) {
|
|
238
238
|
try {
|
|
239
239
|
window.sessionStorage.removeItem(e);
|
|
240
240
|
} catch {
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const i =
|
|
243
|
+
function di(e, t) {
|
|
244
|
+
const i = pi(e);
|
|
245
245
|
return i && t ? JSON.parse(i) : i;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function pi(e) {
|
|
248
248
|
const t = document.cookie, i = new RegExp(`(?:^|; )${Ut(e)}=([^;]*)`, "u"), n = t.match(i);
|
|
249
249
|
return n ? decodeURIComponent(n[1]) : "";
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function hi(e, t, i) {
|
|
252
252
|
i = i || {};
|
|
253
253
|
let n = i?.expires;
|
|
254
254
|
if (typeof n == "number") {
|
|
@@ -264,7 +264,7 @@ function pi(e, t, i) {
|
|
|
264
264
|
}
|
|
265
265
|
document.cookie = r;
|
|
266
266
|
}
|
|
267
|
-
async function
|
|
267
|
+
async function mi(e) {
|
|
268
268
|
const i = `owner:"${e.isPortal ? "esri" : "esri_config"}" AND title:"AppSwitcher Config" AND type:"Application Configuration"`, n = `${e.restUrl}/search`;
|
|
269
269
|
return await B(n, { query: {
|
|
270
270
|
num: 1,
|
|
@@ -274,17 +274,17 @@ async function hi(e) {
|
|
|
274
274
|
q: i
|
|
275
275
|
} });
|
|
276
276
|
}
|
|
277
|
-
async function
|
|
277
|
+
async function fi(e) {
|
|
278
278
|
const t = { appSwitcher: { apps: [] } };
|
|
279
279
|
if (!e?.id || !e.user)
|
|
280
280
|
return t;
|
|
281
|
-
const { result: i } = await
|
|
281
|
+
const { result: i } = await mi(e), n = i?.results?.[0];
|
|
282
282
|
if (!n)
|
|
283
283
|
return t;
|
|
284
284
|
const r = n.id;
|
|
285
|
-
return (await
|
|
285
|
+
return (await Pe(e, r)).result;
|
|
286
286
|
}
|
|
287
|
-
async function
|
|
287
|
+
async function gi(e, t, i) {
|
|
288
288
|
if (!t || !e?.length)
|
|
289
289
|
return { result: null };
|
|
290
290
|
const n = `${i.restUrl}/search`;
|
|
@@ -295,7 +295,7 @@ async function fi(e, t, i) {
|
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
-
async function
|
|
298
|
+
async function bi(e) {
|
|
299
299
|
const t = `${e.restUrl}/search`, i = {
|
|
300
300
|
num: 10,
|
|
301
301
|
start: 0,
|
|
@@ -303,17 +303,17 @@ async function gi(e) {
|
|
|
303
303
|
sortOrder: "asc",
|
|
304
304
|
q: 'owner:"esri" AND title:"BlockedApps Config" AND type: "Application Configuration"'
|
|
305
305
|
}, { result: n } = await B(t, { query: i }), r = n?.results?.[0]?.id;
|
|
306
|
-
return r ? (await
|
|
306
|
+
return r ? (await Pe(e, r))?.result?.blockedApps || [] : [];
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function vi(e, t) {
|
|
309
309
|
const i = e?.toLowerCase() || "", n = `${t.title || ""} ${t.label || ""}`;
|
|
310
310
|
return !i || n.toLowerCase().includes(i);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
if (
|
|
312
|
+
function wi() {
|
|
313
|
+
if (ci("APSW-query")?.expires > (/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours()))
|
|
314
314
|
return !0;
|
|
315
315
|
const t = { expires: (/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 5) };
|
|
316
|
-
return
|
|
316
|
+
return si(
|
|
317
317
|
"APSW-query",
|
|
318
318
|
t,
|
|
319
319
|
{
|
|
@@ -323,16 +323,7 @@ function vi() {
|
|
|
323
323
|
}
|
|
324
324
|
), !1;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
const { landingPage: i } = t || {};
|
|
328
|
-
return {
|
|
329
|
-
image: "arcgis-online.png",
|
|
330
|
-
label: "ArcGIS Online",
|
|
331
|
-
title: "ArcGIS Online",
|
|
332
|
-
url: `${Pe({ portal: e })}/${i?.url ? i.url : Ne(e.user) ? "organization.html" : "index.html"}`
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
function we(e) {
|
|
326
|
+
function _e(e) {
|
|
336
327
|
const i = [
|
|
337
328
|
"api-for-python",
|
|
338
329
|
"appstudio",
|
|
@@ -418,7 +409,7 @@ function we(e) {
|
|
|
418
409
|
].find((n) => e?.includes(n) && V(`${n}.png`) === e);
|
|
419
410
|
return i ? V(`${i}.avif`) : e;
|
|
420
411
|
}
|
|
421
|
-
function
|
|
412
|
+
function _i(e, t) {
|
|
422
413
|
const i = e?.blockedApps || [], n = [];
|
|
423
414
|
return !i.length && !e.blockBetaApps || !t?.length ? [] : (e.blockBetaApps && t.forEach((r) => {
|
|
424
415
|
r.isBeta && !i.includes(r.clientid) && i.push(r.clientid);
|
|
@@ -427,11 +418,11 @@ function wi(e, t) {
|
|
|
427
418
|
o && n.push(o);
|
|
428
419
|
}), n);
|
|
429
420
|
}
|
|
430
|
-
function
|
|
421
|
+
function P(e, t) {
|
|
431
422
|
return t && t[e.toLowerCase()]?.valid || !1;
|
|
432
423
|
}
|
|
433
424
|
function yi(e, t) {
|
|
434
|
-
return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 :
|
|
425
|
+
return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : P("HubforArcGIS", t);
|
|
435
426
|
}
|
|
436
427
|
function $i(e, t) {
|
|
437
428
|
if (!e)
|
|
@@ -440,14 +431,14 @@ function $i(e, t) {
|
|
|
440
431
|
"portal:publisher:publishFeeds",
|
|
441
432
|
"portal:publisher:publishRealTimeAnalytics",
|
|
442
433
|
"portal:publisher:publishBigDataAnalytics"
|
|
443
|
-
], r = (e?.privileges || []).some((a) => i.includes(a)), o =
|
|
434
|
+
], r = (e?.privileges || []).some((a) => i.includes(a)), o = P("velocity", t);
|
|
444
435
|
return r && o;
|
|
445
436
|
}
|
|
446
|
-
function
|
|
447
|
-
return
|
|
437
|
+
function ki(e) {
|
|
438
|
+
return P("HubforArcGIS", e);
|
|
448
439
|
}
|
|
449
|
-
function
|
|
450
|
-
return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) &&
|
|
440
|
+
function Ai(e, t) {
|
|
441
|
+
return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && P("arcgisWebApps", t);
|
|
451
442
|
}
|
|
452
443
|
function xi(e) {
|
|
453
444
|
return !!e.helperServices?.rasterAnalytics && !!e.helperServices.orthoMapping;
|
|
@@ -466,34 +457,34 @@ function Pi(e, t, i, n) {
|
|
|
466
457
|
hasAccess: () => yi(e, n)
|
|
467
458
|
},
|
|
468
459
|
AppStudio: {
|
|
469
|
-
hasAccess: () =>
|
|
460
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
470
461
|
},
|
|
471
462
|
"ArcGIS Velocity": {
|
|
472
463
|
hasAccess: () => e.isPortal || $i(r, n)
|
|
473
464
|
},
|
|
474
465
|
"ArcGIS Hub": {
|
|
475
|
-
hasAccess: () =>
|
|
466
|
+
hasAccess: () => P("HubforArcGIS", n)
|
|
476
467
|
},
|
|
477
468
|
"ArcGIS Enterprise Sites": {
|
|
478
|
-
hasAccess: () =>
|
|
469
|
+
hasAccess: () => ki(n)
|
|
479
470
|
},
|
|
480
471
|
"ArcGIS QuickCapture Web Designer": {
|
|
481
|
-
hasAccess: () =>
|
|
472
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
482
473
|
},
|
|
483
474
|
"ArcGIS Dashboards": {
|
|
484
|
-
hasAccess: () =>
|
|
475
|
+
hasAccess: () => P("dashboards", n)
|
|
485
476
|
},
|
|
486
477
|
"Map Viewer": {
|
|
487
|
-
hasAccess: () =>
|
|
478
|
+
hasAccess: () => Ai(e, n)
|
|
488
479
|
},
|
|
489
480
|
"Map Viewer Classic": {
|
|
490
|
-
hasAccess: () =>
|
|
481
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
491
482
|
},
|
|
492
483
|
"Operations Dashboard for ArcGIS": {
|
|
493
|
-
hasAccess: () =>
|
|
484
|
+
hasAccess: () => P("opsdashboard", n)
|
|
494
485
|
},
|
|
495
486
|
"ArcGIS Dashboards Classic": {
|
|
496
|
-
hasAccess: () =>
|
|
487
|
+
hasAccess: () => P("opsdashboard", n)
|
|
497
488
|
},
|
|
498
489
|
"Ortho Maker": {
|
|
499
490
|
hasAccess: () => xi(e)
|
|
@@ -502,28 +493,29 @@ function Pi(e, t, i, n) {
|
|
|
502
493
|
hasAccess: () => Si(e, r, t)
|
|
503
494
|
},
|
|
504
495
|
"Scene Viewer": {
|
|
505
|
-
hasAccess: () =>
|
|
496
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
506
497
|
},
|
|
507
498
|
"Story Maps": {
|
|
508
|
-
hasAccess: () =>
|
|
499
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
509
500
|
},
|
|
510
501
|
Survey123: {
|
|
511
|
-
hasAccess: () =>
|
|
502
|
+
hasAccess: () => P("survey123", n)
|
|
512
503
|
},
|
|
513
504
|
"Track Viewer": {
|
|
514
505
|
hasAccess: () => Ii(e, i)
|
|
515
506
|
},
|
|
516
507
|
"Instant Apps": {
|
|
517
508
|
// For Portal
|
|
518
|
-
hasAccess: () =>
|
|
509
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
519
510
|
},
|
|
520
511
|
"ArcGIS Maps for Adobe Creative Cloud": {
|
|
521
|
-
hasAccess: () =>
|
|
512
|
+
hasAccess: () => P("arcgisWebApps", n) && !e.isPortal
|
|
522
513
|
}
|
|
523
514
|
};
|
|
524
515
|
}
|
|
525
516
|
function Ni(e) {
|
|
526
517
|
let t = {
|
|
518
|
+
arcgisonline: 1,
|
|
527
519
|
opsdashboard: 1,
|
|
528
520
|
arcgisWebApps: 1,
|
|
529
521
|
Workforce: 1,
|
|
@@ -552,7 +544,7 @@ function oe(e) {
|
|
|
552
544
|
function V(e) {
|
|
553
545
|
return ne(`assets/portal-navigation/apps/${e || ""}`);
|
|
554
546
|
}
|
|
555
|
-
function
|
|
547
|
+
function Ee(e, t, i) {
|
|
556
548
|
return e.icon ? `${t.restUrl}/portals/self/resources/${e.icon}?token=${i}` : `${t.restUrl}/content/items/${e.itemId}/resources/${e.image || e.properties?.appSwitcher?.image}?token=${i}`;
|
|
557
549
|
}
|
|
558
550
|
function G(e, t, i) {
|
|
@@ -562,7 +554,7 @@ function G(e, t, i) {
|
|
|
562
554
|
}
|
|
563
555
|
return e.title === "ArcGIS GeoBIM" && (e.label = "ArcGIS GeoBIM"), delete e.isLicensed, delete e.privileges, e.itemId = t, e;
|
|
564
556
|
}
|
|
565
|
-
function
|
|
557
|
+
function Le() {
|
|
566
558
|
return `${V()}svg-app-circle.svg`;
|
|
567
559
|
}
|
|
568
560
|
function Ti(e, t, i) {
|
|
@@ -572,14 +564,14 @@ function Ti(e, t, i) {
|
|
|
572
564
|
itemId: e.itemId,
|
|
573
565
|
canAccess: !0,
|
|
574
566
|
webMappingApp: !0,
|
|
575
|
-
image: n ?
|
|
567
|
+
image: n ? Ee(e, t, i) : void 0,
|
|
576
568
|
label: e.title || e.label,
|
|
577
569
|
url: e.url,
|
|
578
|
-
placeHolderIcon: e.placeHolderIcon ||
|
|
570
|
+
placeHolderIcon: e.placeHolderIcon || Le()
|
|
579
571
|
};
|
|
580
572
|
}
|
|
581
573
|
function Ci(e, t, i) {
|
|
582
|
-
return e.appSwitcher?.image || e.icon ? e.image =
|
|
574
|
+
return e.appSwitcher?.image || e.icon ? e.image = Ee(e, t, i) : e.placeHolderIcon = Le(), e.abbr = e.appSwitcher?.abbr || e.abbreviation, delete e.abbreviation, delete e.appSwitcher, delete e.approvedApp, delete e.webMappingApp, e;
|
|
583
575
|
}
|
|
584
576
|
function ye(e, t) {
|
|
585
577
|
e.forEach((i) => {
|
|
@@ -597,75 +589,75 @@ async function Mi({
|
|
|
597
589
|
trackViewerEnabled: s,
|
|
598
590
|
notebookServerEnabled: l,
|
|
599
591
|
willQueryForItems: d,
|
|
600
|
-
approvedApps:
|
|
592
|
+
approvedApps: h
|
|
601
593
|
}) {
|
|
602
|
-
const g = {}, p = {},
|
|
603
|
-
for (let
|
|
604
|
-
const u = e[
|
|
605
|
-
let
|
|
606
|
-
const
|
|
607
|
-
(
|
|
594
|
+
const g = {}, p = {}, w = Pi(i, l, s, n), A = Ni(i), y = [], _ = e.length;
|
|
595
|
+
for (let m = 0; m < _; m++) {
|
|
596
|
+
const u = e[m], f = u.itemId || u.title;
|
|
597
|
+
let S = !0;
|
|
598
|
+
const $ = !u.serverFunction || t?.some((k) => (k.serverFunction?.split(",") || []).includes(u.serverFunction)), I = r?.some(
|
|
599
|
+
(k) => u.itemId && u.itemId === k.itemid || u.title && u.title === k.title
|
|
608
600
|
);
|
|
609
|
-
if (g[
|
|
601
|
+
if (g[f] = 1, p[f] = u, I || oe(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
|
|
610
602
|
continue;
|
|
611
603
|
const b = u.title;
|
|
612
|
-
if (
|
|
604
|
+
if (w[b] && !w[b]?.hasAccess())
|
|
613
605
|
continue;
|
|
614
606
|
const j = i.sourceJSON?.subscriptionInfo;
|
|
615
607
|
if (u.subscriptionType) {
|
|
616
|
-
j?.type === u.subscriptionType && (p[
|
|
608
|
+
j?.type === u.subscriptionType && (p[f].canAccess = !0, y.push(G(u, f, i)));
|
|
617
609
|
continue;
|
|
618
610
|
}
|
|
619
611
|
if (u.orgCapabilities) {
|
|
620
|
-
a?.length && a.some((
|
|
612
|
+
a?.length && a.some((L) => u.orgCapabilities?.includes(L.id)) && (p[f].canAccess = !0, y.push(G(u, f, i)));
|
|
621
613
|
continue;
|
|
622
614
|
}
|
|
623
|
-
if (!u.privileges?.length && !u.isLicensed &&
|
|
624
|
-
p[
|
|
615
|
+
if (!u.privileges?.length && !u.isLicensed && $ && (u.label !== "ArcGIS Location Platform" || oe(i))) {
|
|
616
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
625
617
|
continue;
|
|
626
618
|
}
|
|
627
619
|
if (i.user?.sourceJSON?.userLicenseTypeId?.toLowerCase() === "storytellerut" && u.label?.toLowerCase() === "storymaps") {
|
|
628
|
-
p[
|
|
620
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
629
621
|
continue;
|
|
630
622
|
}
|
|
631
623
|
if (u.privileges?.length && i.user?.privileges) {
|
|
632
|
-
for (let
|
|
633
|
-
if (!i.user.privileges.includes(u.privileges[
|
|
634
|
-
|
|
624
|
+
for (let k = 0; k < u.privileges.length; k++)
|
|
625
|
+
if (!i.user.privileges.includes(u.privileges[k])) {
|
|
626
|
+
S = !1;
|
|
635
627
|
break;
|
|
636
628
|
}
|
|
637
|
-
if (!u.isLicensed &&
|
|
638
|
-
p[
|
|
629
|
+
if (!u.isLicensed && S && $) {
|
|
630
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
639
631
|
continue;
|
|
640
632
|
}
|
|
641
633
|
}
|
|
642
|
-
if (u.isLicensed &&
|
|
643
|
-
for (let
|
|
644
|
-
if (
|
|
645
|
-
p[
|
|
634
|
+
if (u.isLicensed && S && $) {
|
|
635
|
+
for (let k = 0; k < o.length; k++)
|
|
636
|
+
if (f === o[k].itemId || f === o[k].title) {
|
|
637
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
646
638
|
break;
|
|
647
639
|
}
|
|
648
640
|
}
|
|
649
641
|
}
|
|
650
642
|
const N = await Bt(i);
|
|
651
|
-
return o.forEach((
|
|
652
|
-
if (
|
|
653
|
-
const u = Ti(
|
|
654
|
-
p[
|
|
643
|
+
return o.forEach((m) => {
|
|
644
|
+
if (m.type === "Web Mapping Application" && !A[m.clientId] && !g[m.itemId] && m.url && m.title && !g[m.title] && !m.typeKeywords.includes("hideFromAppSwitcher")) {
|
|
645
|
+
const u = Ti(m, i, N);
|
|
646
|
+
p[m.itemId] = u, y.push(u);
|
|
655
647
|
}
|
|
656
648
|
}), {
|
|
657
649
|
apps: [
|
|
658
|
-
...
|
|
650
|
+
...h.map((m) => {
|
|
659
651
|
const u = {
|
|
660
|
-
...
|
|
661
|
-
itemId:
|
|
652
|
+
...m.appProperties,
|
|
653
|
+
itemId: m.itemId,
|
|
662
654
|
webMappingApp: !0,
|
|
663
655
|
approvedApp: !0,
|
|
664
656
|
canAccess: !d
|
|
665
657
|
};
|
|
666
|
-
return p[
|
|
658
|
+
return p[m.itemId] = u, Ci(u, i, N);
|
|
667
659
|
}),
|
|
668
|
-
...
|
|
660
|
+
...y
|
|
669
661
|
],
|
|
670
662
|
appDictionary: p
|
|
671
663
|
};
|
|
@@ -673,7 +665,7 @@ async function Mi({
|
|
|
673
665
|
function ie(e, t) {
|
|
674
666
|
return e.filter((i) => !t?.some(
|
|
675
667
|
(r) => i.itemId && i.itemId === r.itemid || i.title && i.title === r.title
|
|
676
|
-
));
|
|
668
|
+
) && i.itemId !== "ArcGIS Online");
|
|
677
669
|
}
|
|
678
670
|
function $e({
|
|
679
671
|
apps: e,
|
|
@@ -683,7 +675,7 @@ function $e({
|
|
|
683
675
|
portal: r
|
|
684
676
|
}) {
|
|
685
677
|
let a = Object.keys(i).map((s) => i[s]).filter((s) => s.itemId === t.uid || s.title === t.uid).shift();
|
|
686
|
-
return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) &&
|
|
678
|
+
return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) && zt(r.user) && (i[t.uid].hasChanged = !0, i[t.uid].ignoreNoAccess = t.ignoreNoAccess), t.isNew && (i[t.uid].isNew = !0), delete n[t.uid]) : (a = t, a.canAccess = !1, a.itemId = t.uid, i[t.uid] = a), i[t.uid].hasBeenPopulated = !0, e.push(a)), e;
|
|
687
679
|
}
|
|
688
680
|
async function Oi({
|
|
689
681
|
portal: e,
|
|
@@ -692,83 +684,83 @@ async function Oi({
|
|
|
692
684
|
}) {
|
|
693
685
|
if (!e?.id || !e.user)
|
|
694
686
|
return { apps: [], hiddenApps: {} };
|
|
695
|
-
const n =
|
|
696
|
-
|
|
687
|
+
const n = wi(), [r, o, a, s, l, d, h] = await Promise.all([
|
|
688
|
+
fi(e),
|
|
689
|
+
jt(e),
|
|
697
690
|
Dt(e),
|
|
698
|
-
|
|
691
|
+
Tt(e),
|
|
699
692
|
Ct(e),
|
|
700
693
|
Mt(e),
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
x && (w[x] = {
|
|
694
|
+
bi(e)
|
|
695
|
+
]), g = e.isPortal ? await Ot(e) : null, p = a?.result?.properties;
|
|
696
|
+
let w = r?.appSwitcher?.apps || [];
|
|
697
|
+
e.isPortal || (w = w.filter(
|
|
698
|
+
($) => $.title !== "Map Viewer Classic" || e.sourceJSON.created < /* @__PURE__ */ new Date("February 26 2025")
|
|
699
|
+
));
|
|
700
|
+
const A = s?.result?.approvedApps?.filter(($) => !$.hideForNonPrivilegedMember) || [], y = {};
|
|
701
|
+
o?.forEach(($) => {
|
|
702
|
+
const I = $.clientId?.toLowerCase();
|
|
703
|
+
I && (y[I] = {
|
|
712
704
|
valid: !0,
|
|
713
|
-
itemId:
|
|
714
|
-
clientId:
|
|
705
|
+
itemId: $.itemId,
|
|
706
|
+
clientId: $.clientId
|
|
715
707
|
});
|
|
716
|
-
}), l?.forEach((
|
|
717
|
-
const
|
|
718
|
-
|
|
708
|
+
}), l?.forEach(($) => {
|
|
709
|
+
const I = $.id?.toLowerCase();
|
|
710
|
+
I && (y[I] = {
|
|
719
711
|
valid: !0,
|
|
720
|
-
clientId:
|
|
712
|
+
clientId: $.id
|
|
721
713
|
});
|
|
722
714
|
});
|
|
723
|
-
const
|
|
724
|
-
userApps:
|
|
715
|
+
const _ = _i(d, h), { apps: N, appDictionary: v } = await Mi({
|
|
716
|
+
userApps: w,
|
|
725
717
|
servers: g,
|
|
726
718
|
portal: e,
|
|
727
|
-
blockedApps:
|
|
719
|
+
blockedApps: _,
|
|
728
720
|
provisionedListings: o,
|
|
729
721
|
orgCapabilities: l,
|
|
730
|
-
licenses:
|
|
722
|
+
licenses: y,
|
|
731
723
|
trackViewerEnabled: t,
|
|
732
724
|
notebookServerEnabled: i,
|
|
733
725
|
willQueryForItems: n,
|
|
734
726
|
approvedApps: A
|
|
735
727
|
});
|
|
736
728
|
p?.appLauncher && (p?.appLauncher.primary && ye(p?.appLauncher.primary, e), p?.appLauncher.secondary && ye(p?.appLauncher.secondary, e));
|
|
737
|
-
let
|
|
729
|
+
let m = [], u = [];
|
|
738
730
|
if (!p?.appLauncher?.primary || !p?.appLauncher.secondary)
|
|
739
|
-
|
|
731
|
+
m = N.slice().sort(($, I) => ($.label || "") < (I.label || "") ? -1 : 1), m = ie(m, _), u = [];
|
|
740
732
|
else {
|
|
741
|
-
const { result:
|
|
742
|
-
|
|
743
|
-
const b =
|
|
744
|
-
b.canAccess = !0, b.hasChanged = b.url !==
|
|
733
|
+
const { result: $ } = await gi(A, n, e);
|
|
734
|
+
$?.results?.length && $.results.forEach((x) => {
|
|
735
|
+
const b = v[x.id];
|
|
736
|
+
b.canAccess = !0, b.hasChanged = b.url !== x.url ? !!x.url : !1;
|
|
745
737
|
});
|
|
746
|
-
const
|
|
747
|
-
p?.appLauncher?.primary?.forEach((
|
|
748
|
-
|
|
749
|
-
}),
|
|
750
|
-
(
|
|
738
|
+
const I = { ...v };
|
|
739
|
+
p?.appLauncher?.primary?.forEach((x) => {
|
|
740
|
+
x.label === "Map Viewer" && (x.uid = "Map Viewer");
|
|
741
|
+
}), m = p?.appLauncher.primary.reduce(
|
|
742
|
+
(x, b) => $e({ apps: x, app: b, appDictionary: v, newAppDictionary: I, portal: e }),
|
|
751
743
|
[]
|
|
752
744
|
) || [], u = p?.appLauncher.secondary.reduce(
|
|
753
|
-
(
|
|
745
|
+
(x, b) => $e({ apps: x, app: b, appDictionary: v, newAppDictionary: I, portal: e }),
|
|
754
746
|
[]
|
|
755
|
-
) || [],
|
|
756
|
-
for (const
|
|
757
|
-
x
|
|
747
|
+
) || [], m = ie(m, _), u = ie(u, _), oe(e) && (m = m.filter((x) => x.canAccess), u = u.filter((x) => x.canAccess));
|
|
748
|
+
for (const x of Object.keys(I))
|
|
749
|
+
I[x].canAccess && (I[x].isNew = !0, v[x] = I[x], m.push(I[x]));
|
|
758
750
|
}
|
|
759
|
-
const
|
|
751
|
+
const f = [...m, ...u], S = u.reduce(($, I) => (I.itemId && ($[I.itemId] = !0), $), {});
|
|
760
752
|
return {
|
|
761
|
-
apps:
|
|
762
|
-
hiddenApps:
|
|
753
|
+
apps: f,
|
|
754
|
+
hiddenApps: S,
|
|
763
755
|
signInSettings: d,
|
|
764
|
-
licenses:
|
|
756
|
+
licenses: y,
|
|
765
757
|
userProperties: p
|
|
766
758
|
};
|
|
767
759
|
}
|
|
768
|
-
function
|
|
760
|
+
function Ei(e, t) {
|
|
769
761
|
return !e?.itemId || !t ? !1 : t[e.itemId];
|
|
770
762
|
}
|
|
771
|
-
async function
|
|
763
|
+
async function Li({
|
|
772
764
|
apps: e,
|
|
773
765
|
hiddenApps: t,
|
|
774
766
|
userProperties: i,
|
|
@@ -784,46 +776,46 @@ async function Ei({
|
|
|
784
776
|
},
|
|
785
777
|
{ primary: [], secondary: [] }
|
|
786
778
|
), o = { ...i || {}, appLauncher: r };
|
|
787
|
-
return await
|
|
779
|
+
return await Lt(o, n);
|
|
788
780
|
}
|
|
789
|
-
function
|
|
781
|
+
function je({ app: e }) {
|
|
790
782
|
if (!e)
|
|
791
783
|
return null;
|
|
792
784
|
if (!e.canAccess)
|
|
793
785
|
return c`<span class="list-item__logo list-item__logo-empty"></span>`;
|
|
794
786
|
const t = !e.image && e.abbr;
|
|
795
|
-
return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${
|
|
787
|
+
return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${_e(e.placeHolderIcon) ?? M} class="list-item__logo-bg" alt>` || ""}<span style=${Ie({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && c`<img src=${_e(e.image) ?? M} class="list-item__logo" alt>` || ""}`;
|
|
796
788
|
}
|
|
797
789
|
function ji({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n, handleAppDelete: r }) {
|
|
798
790
|
if (!e || !i)
|
|
799
791
|
return null;
|
|
800
|
-
const o =
|
|
801
|
-
return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${
|
|
792
|
+
const o = Ei(e, t), { title: a, itemId: s, label: l } = e;
|
|
793
|
+
return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${je({ app: e })}</span>${e.canAccess ? c`<calcite-action .text=${o ? i.show : i.hide} .icon=${o ? "view-hide" : "view-visible"} slot=actions-end @click=${() => s && n(s, !o)}></calcite-action>` : c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => s && r(s)}></calcite-action>`}</calcite-list-item>`;
|
|
802
794
|
}
|
|
803
795
|
function Di({ app: e, messages: t }) {
|
|
804
796
|
if (!e || !t)
|
|
805
797
|
return null;
|
|
806
798
|
const { title: i, itemId: n, label: r, url: o, isNew: a } = e, s = t?.descriptions?.[i] || t?.descriptions?.[r];
|
|
807
|
-
return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${
|
|
799
|
+
return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${je({ app: e })}<span class="list-item__title">${r || i}</span>${a && c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${s && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${s}</calcite-tooltip>` || ""}</li>`;
|
|
808
800
|
}
|
|
809
|
-
function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: a, handleAppSave: s, handleAppHide: l, handleAppDelete: d, handleAppCancel:
|
|
801
|
+
function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: a, handleAppSave: s, handleAppHide: l, handleAppDelete: d, handleAppCancel: h, handleAppEdit: g, editingApplications: p }) {
|
|
810
802
|
if (!e || !r)
|
|
811
803
|
return null;
|
|
812
|
-
const
|
|
804
|
+
const w = i?.length > 0, A = (e || []).filter((_) => _.itemId && (!n?.[_.itemId] || w) && vi(i, _)), y = w ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable;
|
|
813
805
|
return p ? c`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
|
|
814
|
-
|
|
806
|
+
h();
|
|
815
807
|
}}>${r.cancel}</calcite-button><calcite-button width=half @click=${() => {
|
|
816
808
|
s();
|
|
817
|
-
}}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(
|
|
818
|
-
const { newIndex:
|
|
819
|
-
a({ newIndex:
|
|
820
|
-
}} .loading=${t}>${U(e, (
|
|
821
|
-
l({ app:
|
|
822
|
-
}, handleAppDelete: d }))}</calcite-list>` : c`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${(
|
|
823
|
-
o(
|
|
824
|
-
}}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() => g()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${r.customizeApps}</span></calcite-tooltip></div>${
|
|
825
|
-
}
|
|
826
|
-
const
|
|
809
|
+
}}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(_) => {
|
|
810
|
+
const { newIndex: N, oldIndex: v } = _.detail;
|
|
811
|
+
a({ newIndex: N, oldIndex: v });
|
|
812
|
+
}} .loading=${t}>${U(e, (_) => _.itemId, (_) => ji({ app: _, hiddenApps: n, messages: r, toggleAppVisibility: (N, v) => {
|
|
813
|
+
l({ app: N, hidden: v });
|
|
814
|
+
}, handleAppDelete: d }))}</calcite-list>` : c`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${(_) => {
|
|
815
|
+
o(_.currentTarget.value);
|
|
816
|
+
}}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() => g()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${r.customizeApps}</span></calcite-tooltip></div>${A?.length > 0 ? c`<ul class="list">${U(A, (_) => _.itemId, (_) => Di({ app: _, messages: r }))}</ul>` : K({ title: y, icon: i ? "search" : "apps" })}`;
|
|
817
|
+
}
|
|
818
|
+
const ke = "portalAppClientId", pe = {
|
|
827
819
|
GeoanalyticsEngine: "geoanalyticsengine",
|
|
828
820
|
GeoanalyticsFabric: "geoanalyticsfabric",
|
|
829
821
|
IndoorsOnline: "indoorsonline"
|
|
@@ -834,7 +826,7 @@ function he(e) {
|
|
|
834
826
|
function me(e) {
|
|
835
827
|
return pe.GeoanalyticsFabric === e;
|
|
836
828
|
}
|
|
837
|
-
function
|
|
829
|
+
function De(e) {
|
|
838
830
|
return pe.IndoorsOnline === e;
|
|
839
831
|
}
|
|
840
832
|
function Q(e) {
|
|
@@ -852,7 +844,7 @@ function Gi({
|
|
|
852
844
|
const o = e.sourceJSON?.subscriptionInfo, a = Wi({ messages: t, portal: e });
|
|
853
845
|
if (!e.user)
|
|
854
846
|
return a;
|
|
855
|
-
if (!e || !a || e?.user && !i && !
|
|
847
|
+
if (!e || !a || e?.user && !i && !C(e))
|
|
856
848
|
return [];
|
|
857
849
|
const s = Hi({
|
|
858
850
|
portal: e,
|
|
@@ -867,7 +859,7 @@ function Gi({
|
|
|
867
859
|
});
|
|
868
860
|
return Ui({ links: l, portal: e });
|
|
869
861
|
}
|
|
870
|
-
function
|
|
862
|
+
function Ae(e, t) {
|
|
871
863
|
return t ? e.configName ? t.indexOf(e.configName) : t.length : 0;
|
|
872
864
|
}
|
|
873
865
|
function Ui({
|
|
@@ -878,35 +870,41 @@ function Ui({
|
|
|
878
870
|
if (!i)
|
|
879
871
|
return e;
|
|
880
872
|
const n = i.customPage;
|
|
881
|
-
return n?.enabled && (n.visibility !== "members" || t.user?.orgId === t.id) && e.push({
|
|
873
|
+
return n?.enabled && (n.visibility !== "members" || t.user?.orgId === t.id) && e.push({
|
|
874
|
+
label: n.name,
|
|
875
|
+
href: n.url,
|
|
876
|
+
configName: "customPage",
|
|
877
|
+
icon: n.iconName ?? "link",
|
|
878
|
+
newTab: !0
|
|
879
|
+
}), i.order ? e.sort((r, o) => Ae(r, i.order) - Ae(o, i.order)) : e;
|
|
882
880
|
}
|
|
883
881
|
function Bi(e) {
|
|
884
882
|
const { id: t, access: i, isPortal: n } = e;
|
|
885
883
|
return !t && !i && !n;
|
|
886
884
|
}
|
|
887
|
-
function
|
|
885
|
+
function Fi(e, t, i) {
|
|
888
886
|
if (i === "customPage")
|
|
889
887
|
return !1;
|
|
890
888
|
const n = new URL(e), r = t || window.location.pathname;
|
|
891
889
|
return n.pathname === r;
|
|
892
890
|
}
|
|
893
|
-
function
|
|
891
|
+
function ze({
|
|
894
892
|
portal: e,
|
|
895
893
|
clientId: t,
|
|
896
894
|
signInSettings: i
|
|
897
895
|
}) {
|
|
898
|
-
const n = e.user, r =
|
|
896
|
+
const n = e.user, r = De(t), o = !!i?.blockedApps?.includes("arcgisnotebooks"), a = e.portalProperties, {
|
|
899
897
|
gallery: s = "all",
|
|
900
898
|
groups: l = "all",
|
|
901
899
|
map: d = "all",
|
|
902
|
-
notebook:
|
|
900
|
+
notebook: h = "notebookCreators",
|
|
903
901
|
scene: g = "all"
|
|
904
902
|
} = a?.topNav || {};
|
|
905
903
|
let p = ["home"];
|
|
906
904
|
if (!n) {
|
|
907
905
|
if (!a?.topNav) {
|
|
908
|
-
const A = ["gallery", "map", "scene", "groups"],
|
|
909
|
-
return [...p, ...A, ...
|
|
906
|
+
const A = ["gallery", "map", "scene", "groups"], y = e.isPortal ? ["help"] : [];
|
|
907
|
+
return [...p, ...A, ...y];
|
|
910
908
|
}
|
|
911
909
|
return [
|
|
912
910
|
...p,
|
|
@@ -917,22 +915,22 @@ function Ue({
|
|
|
917
915
|
...e.isPortal ? ["help"] : []
|
|
918
916
|
];
|
|
919
917
|
}
|
|
920
|
-
const
|
|
921
|
-
return !a?.topNav &&
|
|
918
|
+
const w = n.orgId === e.id;
|
|
919
|
+
return !a?.topNav && C(e) ? p = ["ArcGIS", "overview", "pricing", "map", "scene", "groups", "myContent"] : p = [
|
|
922
920
|
...p,
|
|
923
|
-
...(s === "all" || s === "members" &&
|
|
924
|
-
...(d === "all" || d === "members" &&
|
|
925
|
-
...(g === "all" || g === "members" &&
|
|
921
|
+
...(s === "all" || s === "members" && w) && !r ? ["gallery"] : [],
|
|
922
|
+
...(d === "all" || d === "members" && w || d === "mapCreators" && ge(n)) && !r ? ["map"] : [],
|
|
923
|
+
...(g === "all" || g === "members" && w || g === "sceneCreators" && ge(n)) && !r ? ["scene"] : [],
|
|
926
924
|
...!o && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
927
|
-
(!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (
|
|
928
|
-
...(l === "all" || l === "members" &&
|
|
929
|
-
...
|
|
925
|
+
(!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (h === "members" && w || h === "notebookCreators" && Nt(n)) && !r ? ["notebook"] : [],
|
|
926
|
+
...(l === "all" || l === "members" && w) && !r ? ["groups"] : [],
|
|
927
|
+
...w && !r ? ["myContent", "organization"] : []
|
|
930
928
|
], p;
|
|
931
929
|
}
|
|
932
930
|
function O(e) {
|
|
933
|
-
return `${
|
|
931
|
+
return `${It({ portal: e })}/`;
|
|
934
932
|
}
|
|
935
|
-
function
|
|
933
|
+
function Ri({
|
|
936
934
|
keys: e,
|
|
937
935
|
navLinkDictionary: t,
|
|
938
936
|
messages: i
|
|
@@ -941,13 +939,13 @@ function Fi({
|
|
|
941
939
|
return e.forEach((r) => {
|
|
942
940
|
const o = t[r];
|
|
943
941
|
if (o && (!("show" in o) || o.show)) {
|
|
944
|
-
const { href: a, newTab: s, icon: l, relativePath: d, configName:
|
|
942
|
+
const { href: a, newTab: s, icon: l, relativePath: d, configName: h } = o;
|
|
945
943
|
n.push({
|
|
946
944
|
label: i[r],
|
|
947
945
|
href: a,
|
|
948
946
|
newTab: s,
|
|
949
947
|
relativePath: d,
|
|
950
|
-
configName:
|
|
948
|
+
configName: h,
|
|
951
949
|
icon: l
|
|
952
950
|
});
|
|
953
951
|
}
|
|
@@ -987,7 +985,7 @@ function Wi({
|
|
|
987
985
|
configName: "groups"
|
|
988
986
|
}
|
|
989
987
|
};
|
|
990
|
-
return (Bi(t) ? ["overview", "pricing", "map", "scene", "help"] :
|
|
988
|
+
return (Bi(t) ? ["overview", "pricing", "map", "scene", "help"] : ze({ portal: t })).map((o) => n[o]);
|
|
991
989
|
}
|
|
992
990
|
function Vi({
|
|
993
991
|
messages: e,
|
|
@@ -996,7 +994,7 @@ function Vi({
|
|
|
996
994
|
signInSettings: n,
|
|
997
995
|
navLinkDictionary: r
|
|
998
996
|
}) {
|
|
999
|
-
const o = he(i), a =
|
|
997
|
+
const o = he(i), a = ze({ portal: t, clientId: i, signInSettings: n }), s = `${O(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
|
|
1000
998
|
return o || me(i) ? [
|
|
1001
999
|
{
|
|
1002
1000
|
// TODO: active calculations in the component need to account for hash for these options
|
|
@@ -1017,20 +1015,20 @@ function Vi({
|
|
|
1017
1015
|
href: `${s}#account`,
|
|
1018
1016
|
label: e.account
|
|
1019
1017
|
}
|
|
1020
|
-
] :
|
|
1018
|
+
] : Ri({ keys: a, messages: e, navLinkDictionary: r });
|
|
1021
1019
|
}
|
|
1022
1020
|
function Hi({
|
|
1023
1021
|
portal: e,
|
|
1024
1022
|
licenses: t,
|
|
1025
1023
|
subscriptionInfo: i
|
|
1026
1024
|
}) {
|
|
1027
|
-
const n = e.user, r = O(e), o = i?.options?.includes("Developer"), a =
|
|
1025
|
+
const n = e.user, r = O(e), o = i?.options?.includes("Developer"), a = P("arcgiswebapps", t) || o && P("locationplatformwebapps", t) || C(e);
|
|
1028
1026
|
return {
|
|
1029
1027
|
pricing: { href: `${r}../features/plans/pricing.html` },
|
|
1030
1028
|
overview: { href: `${r}../features/features.html` },
|
|
1031
1029
|
ArcGIS: {
|
|
1032
|
-
href: `${r}${
|
|
1033
|
-
show:
|
|
1030
|
+
href: `${r}${C(e) ? "index.html" : "../features/features.html"}`,
|
|
1031
|
+
show: C(e) || !n
|
|
1034
1032
|
},
|
|
1035
1033
|
groups: {
|
|
1036
1034
|
href: `${r}groups.html`,
|
|
@@ -1062,7 +1060,7 @@ function Hi({
|
|
|
1062
1060
|
configName: "gallery"
|
|
1063
1061
|
},
|
|
1064
1062
|
home: {
|
|
1065
|
-
show: !
|
|
1063
|
+
show: !C(e) && !o,
|
|
1066
1064
|
href: `${r}index.html`,
|
|
1067
1065
|
relativePath: "index.html",
|
|
1068
1066
|
icon: "home",
|
|
@@ -1075,21 +1073,21 @@ function Hi({
|
|
|
1075
1073
|
configName: "scene"
|
|
1076
1074
|
},
|
|
1077
1075
|
notebook: {
|
|
1078
|
-
show:
|
|
1076
|
+
show: Ft(e),
|
|
1079
1077
|
href: `${r}notebook/notebookhome.html`,
|
|
1080
1078
|
relativePath: "notebook/notebookhome.html",
|
|
1081
1079
|
icon: "notebook",
|
|
1082
1080
|
configName: "notebook"
|
|
1083
1081
|
},
|
|
1084
1082
|
organization: {
|
|
1085
|
-
show: !
|
|
1083
|
+
show: !C(e),
|
|
1086
1084
|
href: `${r}organization.html`,
|
|
1087
1085
|
relativePath: "organization.html",
|
|
1088
1086
|
icon: "organization",
|
|
1089
1087
|
configName: "organization"
|
|
1090
1088
|
},
|
|
1091
1089
|
features: {
|
|
1092
|
-
show:
|
|
1090
|
+
show: C(e) && !e.isPortal,
|
|
1093
1091
|
href: `${r}../features/features.html`,
|
|
1094
1092
|
icon: "information"
|
|
1095
1093
|
}
|
|
@@ -1098,22 +1096,22 @@ function Hi({
|
|
|
1098
1096
|
function qi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
|
|
1099
1097
|
if (!t || !i || !t.modified)
|
|
1100
1098
|
return null;
|
|
1101
|
-
const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s =
|
|
1102
|
-
return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${
|
|
1103
|
-
n({ event: g, href:
|
|
1099
|
+
const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ne(Te(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Zt({ locale: r, time: o }, s?.[1] === "year") : Ce({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, h = `${O(e)}${d}}`;
|
|
1100
|
+
return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${h ?? M} @click=${(g) => {
|
|
1101
|
+
n({ event: g, href: h, relativePath: d, item: Wt(t) });
|
|
1104
1102
|
}}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${X(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
|
|
1105
1103
|
}
|
|
1106
|
-
function Ji({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: a, appsSearchTerm: s, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder:
|
|
1107
|
-
if (
|
|
1104
|
+
function Ji({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: a, appsSearchTerm: s, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: h, handleAppSave: g, handleAppDelete: p, handleAppHide: w, handleAppCancel: A, handleAppEdit: y, handleItemSearch: _, handlePlatformTabUpdate: N, platformTab: v, editingApplications: m, recentContent: u, recentContentLoading: f, recentContentSearchTerm: S, product: $, platformInfo: I, links: x, messages: b }) {
|
|
1105
|
+
if (!$ || !i || !b)
|
|
1108
1106
|
return null;
|
|
1109
|
-
const { name: j, icon:
|
|
1110
|
-
return c`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${
|
|
1111
|
-
(D.key === "Enter" || D.key === " ") && t({ event: D, href:
|
|
1107
|
+
const { name: j, icon: E } = I || {};
|
|
1108
|
+
return c`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${E ?? M} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${j}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__tiles">${x.filter(({ icon: k }) => k).map(({ label: k, href: L, icon: Y, relativePath: H }) => c`<calcite-tile .icon=${Y} .description=${k} .href=${L} alignment=center scale=s @keydown=${(D) => {
|
|
1109
|
+
(D.key === "Enter" || D.key === " ") && t({ event: D, href: L, relativePath: H });
|
|
1112
1110
|
}} @click=${(D) => {
|
|
1113
|
-
t({ event: D, href:
|
|
1114
|
-
}}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center
|
|
1115
|
-
N(
|
|
1116
|
-
}}>${!
|
|
1111
|
+
t({ event: D, href: L, relativePath: H });
|
|
1112
|
+
}}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center><calcite-tab-nav slot=title-group @calciteTabChange=${(k) => {
|
|
1113
|
+
N(k.target.selectedTitle?.dataset.id);
|
|
1114
|
+
}}>${!C(i) && c`<calcite-tab-title data-id=apps .selected=${v === "apps"}>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title data-id=content .selected=${v === "content"}>${b.recentContent}</calcite-tab-title></calcite-tab-nav></calcite-tabs>` || ""}${!C(i) && v === "apps" && c`${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${zi({ apps: r, appsLoading: o, appsSearchTerm: s, hiddenApps: a, messages: b, handleAppsSearch: d, handleAppReorder: h, handleAppSave: g, handleAppDelete: p, handleAppHide: w, handleAppCancel: A, handleAppEdit: y, editingApplications: m })}` || ""}${v === "content" && c`<div class="list__header"><calcite-input type=search icon .placeholder=${b.searchRecentContent} .value=${S} scale=m class="list__search" .loading=${f} @calciteInputInput=${(k) => _(k.target.value)}></calcite-input></div><div class="list__container">${f && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}${u?.length > 0 || f ? c`<ul class="list">${U(u, (k) => k.id, (k) => qi({ portal: i, messages: b, navigate: t, item: k, locale: e }))}</ul>` : S?.length ? K({ title: X(b.noAppResults, { term: S }), icon: "search" }) : K({ title: b.noContent, icon: "clock" })}</div>` || ""}</calcite-panel></calcite-sheet>`;
|
|
1117
1115
|
}
|
|
1118
1116
|
const ae = [
|
|
1119
1117
|
"new",
|
|
@@ -1164,41 +1162,41 @@ function Xi(e, t) {
|
|
|
1164
1162
|
o.push(a);
|
|
1165
1163
|
return;
|
|
1166
1164
|
}
|
|
1167
|
-
const { text: l, external: d, group:
|
|
1168
|
-
i[
|
|
1165
|
+
const { text: l, external: d, group: h } = n[a.id];
|
|
1166
|
+
i[h].push({ text: l, external: d, ...a });
|
|
1169
1167
|
}), o.forEach((a) => {
|
|
1170
1168
|
const s = a.group || "custom";
|
|
1171
1169
|
i[s].push(a);
|
|
1172
1170
|
}), i;
|
|
1173
1171
|
}
|
|
1174
|
-
function Yi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: a }) {
|
|
1172
|
+
function Yi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: a, projectMenuSaveIndicator: s }) {
|
|
1175
1173
|
if (!t || !n || !i || i.id === "details" && !r)
|
|
1176
1174
|
return null;
|
|
1177
|
-
const { external:
|
|
1178
|
-
return le(`${
|
|
1179
|
-
if (
|
|
1175
|
+
const { external: l, id: d, text: h } = i, g = `${O(t)}item.html?id=${r?.id}`;
|
|
1176
|
+
return le(`${d}${h}`, c`<calcite-dropdown-item .iconEnd=${l ? "launch" : void 0} .href=${d === "details" ? g : i.href} .target=${l ? "_blank" : void 0} @calciteDropdownItemSelect=${(p) => {
|
|
1177
|
+
if (d === "rename") {
|
|
1180
1178
|
o?.();
|
|
1181
1179
|
return;
|
|
1182
1180
|
}
|
|
1183
|
-
|
|
1184
|
-
}}>${
|
|
1181
|
+
d === "details" && e({ event: p, href: g }), a?.({ type: d });
|
|
1182
|
+
}} .disabled=${i?.disabled}>${h}${d === "save" && s && c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
|
|
1185
1183
|
}
|
|
1186
|
-
function Zi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: a, openProjectTitleEdit: s, portalItem: l, projectTitleEditing: d, projectTitleSaving:
|
|
1187
|
-
if (!t || !
|
|
1184
|
+
function Zi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: a, openProjectTitleEdit: s, portalItem: l, projectTitleEditing: d, projectTitleSaving: h, projectTitleErrorMessage: g, projectMenuIcon: p, projectMenuSaveIndicator: w, projectMenuClick: A, projectMenuOptions: y, projectTitleInputRef: _, projectButtonRef: N, messages: v }) {
|
|
1185
|
+
if (!t || !v || !y?.length && !i)
|
|
1188
1186
|
return null;
|
|
1189
|
-
if (!
|
|
1190
|
-
return c`<div class="project__title">${p && c`<calcite-icon .icon=${p} scale=s class="project__menu-icon"></calcite-icon>` || ""}<h1 class="project__title__header">${i}</h1>${
|
|
1191
|
-
const
|
|
1192
|
-
return d ? c`<form class="rename" @submit=${async (
|
|
1193
|
-
|
|
1194
|
-
}} @keydown=${(
|
|
1195
|
-
|
|
1196
|
-
}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${
|
|
1187
|
+
if (!y?.length)
|
|
1188
|
+
return c`<div class="project__title">${p && c`<calcite-icon .icon=${p} scale=s class="project__menu-icon"></calcite-icon>` || ""}<h1 class="project__title__header">${i}</h1>${w && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}</div>`;
|
|
1189
|
+
const m = Xi(y, v), u = !!g;
|
|
1190
|
+
return d ? c`<form class="rename" @submit=${async (f) => {
|
|
1191
|
+
f.preventDefault(), await r?.(n);
|
|
1192
|
+
}} @keydown=${(f) => {
|
|
1193
|
+
f.key === "Escape" && a?.();
|
|
1194
|
+
}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${v.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(f) => o?.(f.target.value)} ${W(_)}></calcite-input>${u && c`<calcite-popover open .label=${v.error} .referenceElement=${_?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${g}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${h} icon=check scale=l .text=${v?.saveRename} active class="rename__action" type=submit .loading=${h}></calcite-action><calcite-action .disabled=${h} icon=x scale=l .text=${v?.cancelRename} class="rename__action" @click=${() => a?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(N)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${w && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${U(Object.entries(m).filter(([f, S]) => S.length), ([f, S]) => f, ([f, S]) => c`<calcite-dropdown-group selection-mode=none>${S.map(($) => Yi({ menuItem: $, navigate: e, portal: t, messages: v, portalItem: l, openProjectTitleEdit: s, projectMenuClick: A, projectMenuSaveIndicator: w }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
|
|
1197
1195
|
}
|
|
1198
1196
|
function en(e) {
|
|
1199
1197
|
return ["Location Platform", "Online", "Enterprise"].includes(e);
|
|
1200
1198
|
}
|
|
1201
|
-
function
|
|
1199
|
+
function Ge({
|
|
1202
1200
|
portal: e,
|
|
1203
1201
|
searchType: t,
|
|
1204
1202
|
searchTerm: i
|
|
@@ -1220,7 +1218,7 @@ function nn({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r
|
|
|
1220
1218
|
return null;
|
|
1221
1219
|
if (!t)
|
|
1222
1220
|
return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
|
|
1223
|
-
const a =
|
|
1221
|
+
const a = Ge({ portal: e, searchType: r, searchTerm: o }), s = `/${a}`, l = `${O(e)}${a}`;
|
|
1224
1222
|
return c`<ul class="list">${t.map((d) => tn({ messages: i, portal: e, item: d, navigate: n }))}</ul><div class="suggestions__footer"><calcite-button icon-end=arrow-right scale=l appearance=outline class="suggestions__footer__button" kind=neutral round .href=${l} @click=${(d) => {
|
|
1225
1223
|
n({ href: l, event: d, relativePath: s });
|
|
1226
1224
|
}}>${i.viewAll}</calcite-button></div>`;
|
|
@@ -1231,32 +1229,32 @@ function rn({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }
|
|
|
1231
1229
|
const r = i === "keyword", o = t.searchType;
|
|
1232
1230
|
return c`<calcite-chip .label=${o.label} .icon=${r ? "text" : "effects"} id=search-type-toggle appearance=solid kind=neutral><span>${r ? o.keywordTitle : o.semanticTitle}</span><calcite-icon icon=chevron-down scale=s class="suggestions__search-type__icon" aria-hidden=true></calcite-icon></calcite-chip><calcite-popover pointer-disabled .label=${t.searchType.label} reference-element=search-type-toggle placement=bottom-end class="suggestions__search-type"><div class="esri-header-search-type-popover-contents"><calcite-list .label=${t.searchType.label} interaction-mode=interactive display-mode=flat scale=m selection-mode=none><calcite-list-item @calciteListItemSelect=${() => n("keyword")} icon-start=text value=keyword .label=${o.keywordTitle} .description=${o.keywordDescription}></calcite-list-item><calcite-list-item @calciteListItemSelect=${() => n("vector")} icon-start=effects value=semantic .label=${o.semanticTitle} .description=${o.semanticDescription}></calcite-list-item></calcite-list></div></calcite-popover>`;
|
|
1233
1231
|
}
|
|
1234
|
-
function on({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: a, searchTerm: s, suggestions: l, searchInputRef: d, searchActionRef:
|
|
1232
|
+
function on({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: a, searchTerm: s, suggestions: l, searchInputRef: d, searchActionRef: h, searchPopoverRef: g, handleSearch: p, handleToggleSearch: w, handleSearchTypeChange: A }) {
|
|
1235
1233
|
if (!en(i) || !r || !n || e?.includes("search.html"))
|
|
1236
1234
|
return null;
|
|
1237
|
-
const
|
|
1238
|
-
return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${a === "vector" ?
|
|
1239
|
-
|
|
1240
|
-
}} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() =>
|
|
1235
|
+
const y = Ge({ portal: n, searchType: a, searchTerm: s }), _ = `/${y}`, N = `${O(n)}${y}`, v = r.searchType, m = n?.isPortal, u = m ? v.keywordPlaceholderEnterprise : v.keywordPlaceholder, f = m ? v.semanticPlaceholderEnterprise : v.semanticPlaceholder;
|
|
1236
|
+
return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${a === "vector" ? f : u} @calciteInputInput=${(S) => p(S.target.value)} @keydown=${(S) => {
|
|
1237
|
+
S.key === "Enter" && (t({ href: N, event: S, relativePath: _ }), S.defaultPrevented || (window.location.href = N)), S.key === "Escape" && w(!1);
|
|
1238
|
+
}} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => w(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(g)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${rn({ portal: n, messages: r, searchType: a, handleSearchTypeChange: A })}</div><div class="suggestions__results">${nn({ portal: n, suggestions: l, navigate: t, messages: r, searchType: a, searchTerm: s })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action" @click=${() => w(!0)} ${W(h)}></calcite-action>`;
|
|
1241
1239
|
}
|
|
1242
1240
|
function an({ signIn: e, messages: t }) {
|
|
1243
1241
|
return c`<div class="border-start fade-in"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral @click=${() => e()}><span class="user__button__contents"><calcite-avatar scale=m class="user__button__avatar"></calcite-avatar><span class="user__button__text"><p class="user__button__username">${t?.signIn || ""}</p></span></span></calcite-button></div>`;
|
|
1244
1242
|
}
|
|
1245
1243
|
function sn({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: a }) {
|
|
1246
|
-
return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName:
|
|
1244
|
+
return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName: h, newTab: g }) => c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .target=${g ? "_blank" : void 0} .active=${Fi(l, o, h)} @click=${(p) => e({ event: p, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
|
|
1247
1245
|
}
|
|
1248
1246
|
function cn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: a }) {
|
|
1249
1247
|
const s = r?.user;
|
|
1250
|
-
return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon:
|
|
1251
|
-
(A.key === "Enter" || A.key === " ") && i({ event: A, href: p, relativePath:
|
|
1248
|
+
return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: h, label: g, href: p, relativePath: w }) => c`<calcite-dropdown-item .iconStart=${h} .href=${p} @keydown=${(A) => {
|
|
1249
|
+
(A.key === "Enter" || A.key === " ") && i({ event: A, href: p, relativePath: w });
|
|
1252
1250
|
}} @click=${(A) => {
|
|
1253
|
-
i({ event: A, href: p, relativePath:
|
|
1251
|
+
i({ event: A, href: p, relativePath: w });
|
|
1254
1252
|
}}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
|
|
1255
|
-
const d =
|
|
1253
|
+
const d = Vt(l.target, "calcite-dropdown");
|
|
1256
1254
|
d && (d.open = !1), n();
|
|
1257
1255
|
}}>${t.switchAccounts}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=sign-out @calciteDropdownItemSelect=${() => o()}>${t.signOut}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></div>`;
|
|
1258
1256
|
}
|
|
1259
|
-
const
|
|
1257
|
+
const Ue = {
|
|
1260
1258
|
community: "https://community.esri.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fcommunity.esri.com%2F",
|
|
1261
1259
|
myEsri: "https://my.esri.com"
|
|
1262
1260
|
};
|
|
@@ -1300,20 +1298,20 @@ function dn({
|
|
|
1300
1298
|
"arcgisBlog",
|
|
1301
1299
|
"help"
|
|
1302
1300
|
];
|
|
1303
|
-
return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]),
|
|
1301
|
+
return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []), pn(n, t, e);
|
|
1304
1302
|
}
|
|
1305
1303
|
function pn(e, t, i) {
|
|
1306
1304
|
const n = [];
|
|
1307
1305
|
return e.forEach((r) => {
|
|
1308
1306
|
const o = i[r];
|
|
1309
1307
|
if (o && (!("show" in o) || o.show)) {
|
|
1310
|
-
const { href: a, newTab: s, icon: l, group: d, relativePath:
|
|
1308
|
+
const { href: a, newTab: s, icon: l, group: d, relativePath: h } = o;
|
|
1311
1309
|
n.push({
|
|
1312
1310
|
label: t[r],
|
|
1313
1311
|
group: d,
|
|
1314
1312
|
href: a,
|
|
1315
1313
|
newTab: s,
|
|
1316
|
-
relativePath:
|
|
1314
|
+
relativePath: h,
|
|
1317
1315
|
icon: l
|
|
1318
1316
|
});
|
|
1319
1317
|
}
|
|
@@ -1344,13 +1342,13 @@ function hn(e) {
|
|
|
1344
1342
|
show: i,
|
|
1345
1343
|
group: "resources",
|
|
1346
1344
|
icon: "speech-bubbles",
|
|
1347
|
-
href:
|
|
1345
|
+
href: Ue.community,
|
|
1348
1346
|
newTab: !0
|
|
1349
1347
|
},
|
|
1350
1348
|
myEsri: {
|
|
1351
1349
|
show: i,
|
|
1352
1350
|
group: "account",
|
|
1353
|
-
icon: "
|
|
1351
|
+
icon: "blank",
|
|
1354
1352
|
href: gn(e),
|
|
1355
1353
|
newTab: !0
|
|
1356
1354
|
},
|
|
@@ -1380,15 +1378,15 @@ function mn(e) {
|
|
|
1380
1378
|
return !e.isPortal && e?.user?.sourceJSON?.userType === "both";
|
|
1381
1379
|
}
|
|
1382
1380
|
function fn(e) {
|
|
1383
|
-
return
|
|
1381
|
+
return Be(
|
|
1384
1382
|
e,
|
|
1385
1383
|
`${window.location.protocol}//www.esri.com/training/arcgis-online-training`
|
|
1386
1384
|
);
|
|
1387
1385
|
}
|
|
1388
1386
|
function gn(e) {
|
|
1389
|
-
return
|
|
1387
|
+
return Be(e, Ue.myEsri);
|
|
1390
1388
|
}
|
|
1391
|
-
function
|
|
1389
|
+
function Be(e, t) {
|
|
1392
1390
|
const i = de(e), n = bn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${J(i.replace("/sharing/rest/", ""), e)}`, a = `${r}LoginHandler/switchuser?`, s = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
|
|
1393
1391
|
return `${a}${s}`;
|
|
1394
1392
|
}
|
|
@@ -1397,9 +1395,9 @@ function bn(e) {
|
|
|
1397
1395
|
return t?.includes("dev") ? "dev" : t?.includes("qa") ? "qa" : "";
|
|
1398
1396
|
}
|
|
1399
1397
|
function vn(e) {
|
|
1400
|
-
return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON
|
|
1398
|
+
return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON?.subscriptionInfo?.type);
|
|
1401
1399
|
}
|
|
1402
|
-
function
|
|
1400
|
+
function Fe(e) {
|
|
1403
1401
|
switch (e) {
|
|
1404
1402
|
case "360 VR":
|
|
1405
1403
|
return {
|
|
@@ -1620,7 +1618,7 @@ function We(e) {
|
|
|
1620
1618
|
};
|
|
1621
1619
|
}
|
|
1622
1620
|
}
|
|
1623
|
-
function
|
|
1621
|
+
function Re({
|
|
1624
1622
|
name: e,
|
|
1625
1623
|
fileName: t,
|
|
1626
1624
|
icon: i
|
|
@@ -1631,19 +1629,19 @@ function Ve({
|
|
|
1631
1629
|
icon: ne(`assets/portal-navigation/apps/${i}.avif`)
|
|
1632
1630
|
};
|
|
1633
1631
|
}
|
|
1634
|
-
function
|
|
1632
|
+
function We({ portal: e, clientId: t }) {
|
|
1635
1633
|
return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : me(t) ? "GeoAnalytics Fabric" : he(t) ? "GeoAnalytics Engine" : e?.isPortal ? "Enterprise" : "Online";
|
|
1636
1634
|
}
|
|
1637
|
-
function
|
|
1638
|
-
const t =
|
|
1639
|
-
return
|
|
1635
|
+
function wn(e) {
|
|
1636
|
+
const t = We(e);
|
|
1637
|
+
return Re(Fe(t));
|
|
1640
1638
|
}
|
|
1641
1639
|
function xe(e) {
|
|
1642
|
-
const t = e?.product === "Online" ?
|
|
1643
|
-
return
|
|
1640
|
+
const t = e?.product === "Online" ? We(e) : e?.product;
|
|
1641
|
+
return Re(Fe(t));
|
|
1644
1642
|
}
|
|
1645
|
-
function
|
|
1646
|
-
const e =
|
|
1643
|
+
function _n() {
|
|
1644
|
+
const e = St();
|
|
1647
1645
|
["item.html", "group.html"].some((t) => window.location.href.includes(t)) ? window.location.href = `./signin.html?locale=${e}&useLandingPage=false&returnUrl=${encodeURIComponent(
|
|
1648
1646
|
window.location.href
|
|
1649
1647
|
)}` : window.location.href = `./signin.html?locale=${e}&useLandingPage=true`;
|
|
@@ -1652,26 +1650,26 @@ function yn({ portal: e, clientId: t }) {
|
|
|
1652
1650
|
const i = ce({ portal: e });
|
|
1653
1651
|
if (e?.isPortal) {
|
|
1654
1652
|
const n = e.access === "private" ? J("signin.html", e) : e.allSSL || window.location.protocol === "https:" ? J("./index.html", e) : `${i}/index.html`;
|
|
1655
|
-
|
|
1653
|
+
kn(e, n);
|
|
1656
1654
|
} else
|
|
1657
1655
|
window.location.href = `${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`;
|
|
1658
1656
|
}
|
|
1659
1657
|
function $n() {
|
|
1660
|
-
|
|
1658
|
+
li(ke), ui(ke);
|
|
1661
1659
|
}
|
|
1662
|
-
function
|
|
1663
|
-
const i = window.location.href.startsWith("http://"), n =
|
|
1664
|
-
|
|
1660
|
+
function kn(e, t = window.location.href) {
|
|
1661
|
+
const i = window.location.href.startsWith("http://"), n = Rt(e);
|
|
1662
|
+
qt.destroyCredentials(), $n();
|
|
1665
1663
|
const r = new URL(J(`${de(e)}oauth2/signout`, e)), { searchParams: o } = r;
|
|
1666
1664
|
o.append("client_id", "arcgisonline"), o.append("redirect_uri", t), n && i && (e.isPortal || e.user?.sourceJSON.provider === "enterprise") && o.append("token", n), window.location.href = r.href;
|
|
1667
1665
|
}
|
|
1668
1666
|
function z(e, t) {
|
|
1669
1667
|
if (!e)
|
|
1670
1668
|
return 0;
|
|
1671
|
-
const i =
|
|
1669
|
+
const i = Ht({ text: e, font: `${t === "s" ? ".875rem" : "1rem"} 'Avenir Next'` });
|
|
1672
1670
|
return Math.ceil(i);
|
|
1673
1671
|
}
|
|
1674
|
-
function
|
|
1672
|
+
function An({
|
|
1675
1673
|
portal: e,
|
|
1676
1674
|
product: t,
|
|
1677
1675
|
projectTitle: i,
|
|
@@ -1681,27 +1679,27 @@ function kn({
|
|
|
1681
1679
|
}) {
|
|
1682
1680
|
if (!t || !e)
|
|
1683
1681
|
return;
|
|
1684
|
-
const a = e.user, l = Q(t) && n?.length ? 24 + n.reduce((g, p) => g + 16 + z(p.label) + 16, 0) : 0, d = 40 + z(i) + 32 + 16 + 16 + 12,
|
|
1682
|
+
const a = e.user, l = Q(t) && n?.length ? 24 + n.reduce((g, p) => g + 16 + z(p.label) + 16, 0) : 0, d = 40 + z(i) + 32 + 16 + 16 + 12, h = a ? Math.max(z(a?.username, "s"), z(a?.fullName)) : z(r?.signIn);
|
|
1685
1683
|
return {
|
|
1686
1684
|
actions: 192,
|
|
1687
1685
|
project: i ? Math.min(d, 400) : 0,
|
|
1688
1686
|
product: 64 + Math.max(z(o?.name), z(e.name, "s")) + 16,
|
|
1689
1687
|
nav: l,
|
|
1690
|
-
user: 64 +
|
|
1688
|
+
user: 64 + h + 16
|
|
1691
1689
|
};
|
|
1692
1690
|
}
|
|
1693
1691
|
function xn({
|
|
1694
1692
|
measurements: e,
|
|
1695
1693
|
screenWidth: t
|
|
1696
1694
|
}) {
|
|
1697
|
-
const { actions: i, nav: n, product: r, project: o, user: a } = e, s = 64, l = t - i - s > n, d = t - i - (l ? n : 0) - o - s > Math.min(r, 400),
|
|
1695
|
+
const { actions: i, nav: n, product: r, project: o, user: a } = e, s = 64, l = t - i - s > n, d = t - i - (l ? n : 0) - o - s > Math.min(r, 400), h = t - n - o - i - r < Math.min(a, 320);
|
|
1698
1696
|
return {
|
|
1699
1697
|
nav: l,
|
|
1700
1698
|
product: d,
|
|
1701
|
-
user:
|
|
1699
|
+
user: h ? "avatar" : "full"
|
|
1702
1700
|
};
|
|
1703
1701
|
}
|
|
1704
|
-
const
|
|
1702
|
+
const Ve = ' -type:"Code Attachment" -type:"Featured Items" -type:"Symbol Set" -type:"Color Set" -type:"Windows Viewer Add In" -type:"Windows Viewer Configuration" -type:"Map Area" -typekeywords:"MapAreaPackage" -type:"Indoors Map Configuration" -typekeywords:"SMX"';
|
|
1705
1703
|
async function Se({
|
|
1706
1704
|
portal: e,
|
|
1707
1705
|
searchTerm: t
|
|
@@ -1711,7 +1709,7 @@ async function Se({
|
|
|
1711
1709
|
try {
|
|
1712
1710
|
return (await e.queryItems({
|
|
1713
1711
|
...t ? { query: t } : {},
|
|
1714
|
-
filter: `owner:${e.user.username}${
|
|
1712
|
+
filter: `owner:${e.user.username}${Ve}`,
|
|
1715
1713
|
num: 20,
|
|
1716
1714
|
sortField: "modified",
|
|
1717
1715
|
sortOrder: "desc"
|
|
@@ -1726,7 +1724,7 @@ async function Sn({
|
|
|
1726
1724
|
}) {
|
|
1727
1725
|
if (!e)
|
|
1728
1726
|
return [];
|
|
1729
|
-
const i =
|
|
1727
|
+
const i = Kt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Ve}`, r = `${de(e)}search/suggest`;
|
|
1730
1728
|
return (await B(r, { query: {
|
|
1731
1729
|
suggest: i,
|
|
1732
1730
|
filters: n,
|
|
@@ -1734,29 +1732,29 @@ async function Sn({
|
|
|
1734
1732
|
f: "json"
|
|
1735
1733
|
} }))?.result?.results || [];
|
|
1736
1734
|
}
|
|
1737
|
-
const In = St`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column;max-height:100%}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.platform__tabs{min-height:0;flex:1 1 auto;--calcite-tab-content-space-y: 0}.platform__tab{position:relative}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
|
|
1735
|
+
const In = At`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375;min-width:0}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;word-wrap:break-word;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
|
|
1738
1736
|
function Pn({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
|
|
1739
1737
|
return !e || i && !t?.user ? null : c`<calcite-action .label=${e.applicationMenu} text="app switcher" icon=app-launcher scale=l class="action" @click=${n} @focusin=${() => r(!1, !0)}></calcite-action>`;
|
|
1740
1738
|
}
|
|
1741
|
-
class Nn extends
|
|
1739
|
+
class Nn extends yt {
|
|
1742
1740
|
constructor() {
|
|
1743
|
-
super(...arguments), this.messages =
|
|
1741
|
+
super(...arguments), this.messages = $t({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
|
|
1744
1742
|
const { portal: t, messages: i } = this;
|
|
1745
|
-
this.notifications = await
|
|
1743
|
+
this.notifications = await we({ portal: t, locale: i._t9nLocale, t9n: i.notifications });
|
|
1746
1744
|
}, this.deleteNotifications = async (t) => {
|
|
1747
1745
|
const { portal: i } = this;
|
|
1748
1746
|
if (t?.length < 20)
|
|
1749
|
-
await
|
|
1747
|
+
await ti(i, t);
|
|
1750
1748
|
else {
|
|
1751
1749
|
let n = 0;
|
|
1752
1750
|
for await (const r of t)
|
|
1753
|
-
await
|
|
1751
|
+
await Me({ id: r, portal: i }), this.notificationDeleteProgress = Math.ceil(n++ / t.length * 100);
|
|
1754
1752
|
}
|
|
1755
1753
|
this.notificationDeleteProgress = void 0, this.refreshNotifications();
|
|
1756
1754
|
}, this.navigate = (t) => {
|
|
1757
1755
|
this.arcgisNavigate.emit(t), this.platformMenuOpen = !1, this.notificationsActive = !1, this.searchActive = !1;
|
|
1758
1756
|
}, this.openPlatformMenu = () => {
|
|
1759
|
-
this.platformMenuOpen = !0, this.searchActive = !1,
|
|
1757
|
+
this.platformMenuOpen = !0, this.searchActive = !1, C(this.portal) || (this.platformTab = "apps");
|
|
1760
1758
|
}, this.projectMenuClick = (t) => {
|
|
1761
1759
|
this.arcgisNavigationProjectMenuClick.emit(t);
|
|
1762
1760
|
}, this.openProjectTitleEdit = () => {
|
|
@@ -1783,7 +1781,7 @@ class Nn extends At {
|
|
|
1783
1781
|
const { portal: t, clientId: i } = this;
|
|
1784
1782
|
yn({ portal: t, clientId: i }), this.arcgisNavigationSignOut.emit();
|
|
1785
1783
|
}, this.signIn = () => {
|
|
1786
|
-
this.arcgisNavigationSignIn.emit(),
|
|
1784
|
+
this.arcgisNavigationSignIn.emit(), _n();
|
|
1787
1785
|
}, this.openAccountSwitcher = () => {
|
|
1788
1786
|
this.accountSwitcherOpen = !0;
|
|
1789
1787
|
}, this.handlePlatformClose = () => {
|
|
@@ -1793,11 +1791,11 @@ class Nn extends At {
|
|
|
1793
1791
|
}, this.handleAppSave = async () => {
|
|
1794
1792
|
const { hiddenApps: t, sortedApps: i, userProperties: n, portal: r } = this;
|
|
1795
1793
|
this.apps = [...i], this.editingApplications = !1, this.appsLoading = !0;
|
|
1796
|
-
const { result: o } = await
|
|
1794
|
+
const { result: o } = await Li({ apps: i, hiddenApps: t, userProperties: n, portal: r });
|
|
1797
1795
|
o?.success && (this.previousAppState = {
|
|
1798
1796
|
apps: i,
|
|
1799
1797
|
hiddenApps: t
|
|
1800
|
-
}), await
|
|
1798
|
+
}), await Jt(1e3), this.appsLoading = !1;
|
|
1801
1799
|
}, this.handleAppDelete = async (t) => {
|
|
1802
1800
|
t && (this.apps = this.sortedApps.filter((i) => i.itemId !== t), this.sortedApps = this.sortedApps.filter((i) => i.itemId !== t));
|
|
1803
1801
|
}, this.handleAppCancel = () => {
|
|
@@ -1833,10 +1831,10 @@ class Nn extends At {
|
|
|
1833
1831
|
});
|
|
1834
1832
|
}, this.handleSearchTypeChange = (t) => {
|
|
1835
1833
|
this.searchType = t;
|
|
1836
|
-
}, this.searchInput =
|
|
1834
|
+
}, this.searchInput = R(), this.searchAction = R(), this.searchPopover = R(), this.projectTitleInputRef = R(), this.projectButtonRef = R(), this.initialDocumentOverflowStyle = document.documentElement.style.overflow, this.links = [], this.notifications = [], this.notificationsActive = !1, this.apps = [], this.hiddenApps = {}, this.sortedApps = [], this.appsSearchTerm = "", this.appsLoading = !0, this.editingApplications = !1, this.recentContent = [], this.recentContentSearchTerm = "", this.recentContentLoading = !0, this.platformMenuOpen = !1, this.platformTab = "apps", this.accountSwitcherOpen = !1, this.projectTitleEditing = !1, this.projectTitleSaving = !1, this.screenWidth = window.innerWidth, this.searchActive = !1, this.searchTerm = "", this.searchType = "keyword", this.projectMenuOptions = [], this.currentPathname = window.location.pathname, this.arcgisNavigate = q(), this.arcgisNavigationProjectMenuClick = q(), this.arcgisNavigationSignIn = q(), this.arcgisNavigationSignOut = q();
|
|
1837
1835
|
}
|
|
1838
1836
|
static {
|
|
1839
|
-
this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9 };
|
|
1837
|
+
this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9, showNotifications: 5 };
|
|
1840
1838
|
}
|
|
1841
1839
|
static {
|
|
1842
1840
|
this.styles = In;
|
|
@@ -1863,24 +1861,24 @@ class Nn extends At {
|
|
|
1863
1861
|
}
|
|
1864
1862
|
async fetchData() {
|
|
1865
1863
|
const { portal: t, messages: i, clientId: n, product: r } = this;
|
|
1866
|
-
this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo =
|
|
1864
|
+
this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo = wn({ clientId: n, portal: t }), this.userLinks = un({ portal: t, messages: i.user, clientId: n }), this.notifications = await we({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await Se({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
|
|
1867
1865
|
const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await Oi({
|
|
1868
1866
|
portal: t,
|
|
1869
1867
|
trackViewerEnabled: !this.disableTrackViewer,
|
|
1870
1868
|
notebookServerEnabled: !this.disableNotebookServer
|
|
1871
|
-
}),
|
|
1872
|
-
this.infoBanner =
|
|
1869
|
+
}), h = await Et(t);
|
|
1870
|
+
this.infoBanner = h?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links = Gi({
|
|
1873
1871
|
portal: t,
|
|
1874
1872
|
messages: i.links,
|
|
1875
1873
|
licenses: l,
|
|
1876
1874
|
clientId: n,
|
|
1877
1875
|
signInSettings: s
|
|
1878
|
-
}),
|
|
1876
|
+
}), C(t) && (this.platformTab = "content"), this.calculateMeasurements();
|
|
1879
1877
|
}
|
|
1880
1878
|
calculateMeasurements() {
|
|
1881
1879
|
const { links: t, messages: i, portal: n, product: r, productInfo: o, projectTitle: a } = this;
|
|
1882
1880
|
if (n) {
|
|
1883
|
-
const s =
|
|
1881
|
+
const s = An({
|
|
1884
1882
|
portal: n,
|
|
1885
1883
|
product: r,
|
|
1886
1884
|
productInfo: o,
|
|
@@ -1899,13 +1897,13 @@ class Nn extends At {
|
|
|
1899
1897
|
}
|
|
1900
1898
|
}
|
|
1901
1899
|
render() {
|
|
1902
|
-
const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave:
|
|
1903
|
-
return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active":
|
|
1900
|
+
const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: h, handleItemSearch: g, handlePlatformClose: p, handleSearch: w, handleToggleSearch: A, handleSearchTypeChange: y, hiddenApps: _, infoBanner: N, links: v, messages: m, navigate: u, notifications: f, notificationsActive: S, notificationDeleteProgress: $, openAccountSwitcher: I, platformInfo: x, portal: b, portalItem: j, product: E, productInfo: k, productHref: L, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, handleProjectTitleCancel: qe, handleToggleNotifications: fe, openProjectTitleEdit: Je, openPlatformMenu: Ke, platformMenuOpen: Qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectTitleErrorMessage: Ye, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, userLinks: ct, searchActive: F, searchTerm: lt, searchType: ut, searchInput: dt, searchAction: pt, searchPopover: ht, showNav: ee, showProduct: mt, showUser: ft, suggestions: gt } = this, bt = b?.user, vt = Q(E) && !v?.length || !this.measurements;
|
|
1901
|
+
return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": F })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": vt })}>${Pn({ messages: m?.platform, portal: b, showNav: ee, openPlatformMenu: Ke, handleToggleSearch: A })}${mt && Qt({ navigate: u, portal: b, product: E, productInfo: k, productHref: L, messages: m?.logo, showNav: ee, searchActive: F, projectTitleEditing: Z }) || ""}${Zi({ navigate: u, portal: b, portalItem: j, messages: m?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, openProjectTitleEdit: Je, projectTitleErrorMessage: Ye, handleProjectTitleCancel: qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt })}${ee && sn({ searchActive: F, navigate: u, portal: b, product: E, messages: m?.links, links: v, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || F}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: b, product: E, messages: m?.search, searchActive: F, searchType: ut, searchTerm: lt, suggestions: gt, handleSearch: w, handleToggleSearch: A, handleSearchTypeChange: y, searchInputRef: dt, searchActionRef: pt, searchPopoverRef: ht })}${bt ? c`<div class="border-start">${this.showNotifications && c`${oi({ notifications: f, notificationsActive: S, messages: m?.notifications, handleToggleNotifications: fe, handleToggleSearch: A })}${ai({ notificationsActive: S, notifications: f, navigate: u, portal: b, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: m?.notifications, notificationDeleteProgress: $ })}` || ""}</div>${cn({ portal: b, userLinks: ct, openAccountSwitcher: b?.isPortal ? void 0 : I, signOut: this.signOut, messages: m?.user, textDisabled: ft === "avatar", navigate: u })}` : an({ messages: m.user, signIn: this.signIn })}</header>${Ji({ locale: m._t9nLocale, navigate: u, portal: b, product: E, platformInfo: x, messages: m?.platform, apps: i, appsLoading: n, hiddenApps: _, appsSearchTerm: r, editingApplications: this.editingApplications, open: Qe, links: v, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (wt) => this.appsSearchTerm = wt, handleAppSave: h, handleAppCancel: a, handleAppHide: l, handleItemSearch: g, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${b} @arcgisClose=${() => {
|
|
1904
1902
|
this.accountSwitcherOpen = !1;
|
|
1905
1903
|
}}></arcgis-portal-account-switcher>` || ""}</div>`;
|
|
1906
1904
|
}
|
|
1907
1905
|
}
|
|
1908
|
-
|
|
1906
|
+
_t("arcgis-portal-navigation", Nn);
|
|
1909
1907
|
export {
|
|
1910
1908
|
Nn as ArcGISPortalNavigation
|
|
1911
1909
|
};
|