@arcgis/portal-components 5.2.0-next.21 → 5.2.0-next.23

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.
Files changed (56) hide show
  1. package/dist/cdn/2CP32LP3.js +2 -0
  2. package/dist/cdn/4PKNGQ3Q.js +2 -0
  3. package/dist/cdn/{MH7KZ5G3.js → 7ZLHVPFN.js} +1 -1
  4. package/dist/cdn/EZZ66WTI.js +3 -0
  5. package/dist/cdn/{TSLW4FSA.js → GDYQWDWB.js} +1 -1
  6. package/dist/cdn/{V2EOXGK2.js → I234NUZ5.js} +1 -1
  7. package/dist/cdn/{EHRAFAEA.js → IANXXLKE.js} +1 -1
  8. package/dist/cdn/IVD6XJNI.js +2 -0
  9. package/dist/cdn/LCZTOHWB.js +2 -0
  10. package/dist/cdn/NWIIOJEG.js +2 -0
  11. package/dist/cdn/PZJAY7AM.js +2 -0
  12. package/dist/cdn/R2ULEQSR.js +2 -0
  13. package/dist/cdn/RFZCHE7J.js +2 -0
  14. package/dist/cdn/SY6RBNVT.js +2 -0
  15. package/dist/cdn/U3FVMN32.js +2 -0
  16. package/dist/cdn/{47NPIL2S.js → W7JNOIYK.js} +1 -1
  17. package/dist/cdn/XDMQ36GP.js +2 -0
  18. package/dist/cdn/XPYGLVPT.js +2 -0
  19. package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
  20. package/dist/cdn/index.js +1 -1
  21. package/dist/cdn/main.css +1 -1
  22. package/dist/chunks/dom.js +36 -0
  23. package/dist/chunks/functionalities.js +5 -4
  24. package/dist/chunks/ui.js +10 -0
  25. package/dist/components/arcgis-portal-browser/customElement.d.ts +85 -0
  26. package/dist/components/arcgis-portal-browser/customElement.js +210 -0
  27. package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
  28. package/dist/components/arcgis-portal-browser/index.js +6 -0
  29. package/dist/components/arcgis-portal-browser/utils/store.d.ts +29 -0
  30. package/dist/components/arcgis-portal-browser/utils/types.d.ts +12 -0
  31. package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +25 -0
  32. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +55 -0
  33. package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
  34. package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
  35. package/dist/components/arcgis-portal-group-card/customElement.js +2 -6
  36. package/dist/components/arcgis-portal-user-popup/customElement.js +90 -97
  37. package/dist/docs/api.json +1 -1
  38. package/dist/docs/docs.json +1 -1
  39. package/dist/docs/vscode.html-custom-data.json +1 -1
  40. package/dist/docs/web-types.json +1 -1
  41. package/dist/index.d.ts +20 -0
  42. package/dist/loader.js +2 -0
  43. package/dist/types/group.d.ts +13 -13
  44. package/dist/types/item.d.ts +77 -2
  45. package/dist/types/lumina.d.ts +13 -0
  46. package/dist/types/preact.d.ts +15 -0
  47. package/dist/types/react.d.ts +17 -0
  48. package/dist/types/search.d.ts +27 -0
  49. package/dist/types/stencil.d.ts +13 -0
  50. package/package.json +4 -4
  51. package/dist/cdn/2RGMWFHB.js +0 -2
  52. package/dist/cdn/3KS5IDT2.js +0 -2
  53. package/dist/cdn/EETBNQU2.js +0 -2
  54. package/dist/cdn/KT7PE6UE.js +0 -2
  55. package/dist/cdn/KY7Q7DH3.js +0 -2
  56. package/dist/cdn/VXCB2YBR.js +0 -3
@@ -1,16 +1,16 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as A } from "../../chunks/runtime.js";
3
- import { LitElement as B, createEvent as y, safeClassMap as k, safeStyleMap as L } from "@arcgis/lumina";
2
+ import { c as N } from "../../chunks/runtime.js";
3
+ import { LitElement as A, createEvent as y, safeClassMap as k, safeStyleMap as B } from "@arcgis/lumina";
4
4
  import { css as R, html as u } from "lit";
5
5
  import { createRef as U, ref as I } from "lit/directives/ref.js";
6
- import { u as z } from "../../chunks/useT9n.js";
6
+ import { u as L } from "../../chunks/useT9n.js";
7
7
  import { a as _, r as $, f as w } from "../../chunks/user2.js";
8
- import { g as T } from "../../chunks/user.js";
9
- import { Sanitizer as H } from "@esri/arcgis-html-sanitizer";
10
- import { g as P } from "../../chunks/portal.js";
8
+ import { g as H } from "../../chunks/user.js";
9
+ import { s as T, a as z } from "../../chunks/dom.js";
10
+ import { g as x } from "../../chunks/portal.js";
11
11
  function C(e) {
12
- const t = /(https?:\/\/[^\s]+)/gu;
13
- return e?.replace(t, (r) => `<a href="${r}" target="_blank">${r}</a>`);
12
+ const r = /(https?:\/\/[^\s]+)/gu;
13
+ return e?.replace(r, (o) => `<a href="${o}" target="_blank">${o}</a>`);
14
14
  }
15
15
  function M(e) {
16
16
  return e?.replace(/(?:\r)/gu, "&#10;").replace(/(?:\n)/gu, "&#13;");
@@ -19,121 +19,114 @@ function q(e) {
19
19
  return e?.replace(/(?:&#10;)/gu, "\r").replace(/(?:&#13;)/gu, `
20
20
  `);
21
21
  }
22
- function S(e) {
22
+ function F(e) {
23
23
  return e?.replace(/&#10;&#13;|&#10;|&#13;|\r\n|\r|\n/gu, "<br>");
24
24
  }
25
- function E(e) {
26
- return S(M(C(q(e))));
25
+ function S(e) {
26
+ return F(M(C(q(e))));
27
27
  }
28
- function F(e) {
28
+ function E(e) {
29
29
  return e?.endsWith("/") ? e.slice(0, e.length - 1) : e;
30
30
  }
31
31
  const G = R`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;
32
- function O(e) {
33
- return new H().sanitize(e);
34
- }
35
- function D(e) {
36
- const t = O(e), r = document.createElement("div");
37
- return r.innerHTML = t, r.textContent || r.innerText || "";
38
- }
39
- async function J(e, t, r, s, o) {
40
- const n = e.portal?.portalHostname || s?.portalHostname || s?.restUrl?.replace("/sharing/rest", ""), a = o ? `https://www.arcgis.com/sharing/rest/portals/${t}` : `https://${n}/sharing/rest/portals/${t}`;
41
- if (!n && !o)
32
+ async function D(e, r, o, s, t) {
33
+ const a = e.portal?.portalHostname || s?.portalHostname || s?.restUrl?.replace("/sharing/rest", ""), n = t ? `https://www.arcgis.com/sharing/rest/portals/${r}` : `https://${a}/sharing/rest/portals/${r}`;
34
+ if (!a && !t)
42
35
  return null;
43
- const i = o ? { disableIdentityLookup: !0, addTokenManually: !1 } : {}, l = await $({ url: a, portal: s, options: i }), { urlKey: m, thumbnail: c, customBaseUrl: p } = l, f = `https://${m}.${p}/`, h = c ? `${f}sharing/rest/portals/self/resources/${c}` : null;
36
+ const i = t ? { disableIdentityLookup: !0, addTokenManually: !1 } : {}, l = await $({ url: n, portal: s, options: i }), { urlKey: m, thumbnail: p, customBaseUrl: c } = l, f = `https://${m}.${c}/`, h = p ? `${f}sharing/rest/portals/self/resources/${p}` : null;
44
37
  let d = "", v = "";
45
38
  try {
46
39
  const g = await $({
47
- url: `${a}/resources/localizedOrgProperties`,
40
+ url: `${n}/resources/localizedOrgProperties`,
48
41
  portal: s,
49
42
  params: { start: 1, num: 100 },
50
43
  options: i
51
44
  });
52
45
  if (g) {
53
- const b = g[r] || g.default;
46
+ const b = g[o] || g.default;
54
47
  d = b.name, v = b.description;
55
48
  }
56
49
  } catch {
57
50
  }
58
51
  return {
59
52
  name: d || l.name,
60
- description: D(v || l.description),
53
+ description: T(v || l.description),
61
54
  url: `${f}home/`,
62
55
  thumbnail: h
63
56
  };
64
57
  }
65
- async function K(e, t, r, s) {
66
- const o = e.sourceJSON?.orgId ?? e.portal?.id ?? r?.id;
58
+ async function J(e, r, o, s) {
59
+ const t = e.sourceJSON?.orgId ?? e.portal?.id ?? o?.id;
67
60
  return await _({
68
- requester: async () => await J(e, o, t, r, s),
61
+ requester: async () => await D(e, t, r, o, s),
69
62
  key: "verified",
70
- id: o
63
+ id: t
71
64
  });
72
65
  }
73
- const N = (e) => (
66
+ const O = (e) => (
74
67
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
75
68
  e?.sourceJSON?.contentStatus === "public_authoritative"
76
69
  );
77
- async function V(e, t, r, s) {
78
- if (N(e)) {
79
- const o = e.owner || "", n = await K(e, r, t, s);
80
- if (!n)
81
- return await w(o, t, s);
82
- const { description: a, name: i, thumbnail: l, url: m } = n;
70
+ async function K(e, r, o, s) {
71
+ if (O(e)) {
72
+ const t = e.owner || "", a = await J(e, o, r, s);
73
+ if (!a)
74
+ return await w(t, r, s);
75
+ const { description: n, name: i, thumbnail: l, url: m } = a;
83
76
  return {
84
- description: a ? O(a) : "",
77
+ description: n ? z(n) : "",
85
78
  fullName: i,
86
- username: o,
79
+ username: t,
87
80
  thumbnail: l,
88
81
  id: e.portal.id,
89
82
  url: m
90
83
  };
91
84
  }
92
- return await w(e.owner || "", t, s);
85
+ return await w(e.owner || "", r, s);
93
86
  }
94
- async function W(e, t, r) {
95
- const s = r ? "https://www.arcgis.com/sharing/rest/" : P(t), o = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
87
+ async function V(e, r, o) {
88
+ const s = o ? "https://www.arcgis.com/sharing/rest/" : x(r), t = o ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
96
89
  return await _({
97
90
  requester: async () => await $({
98
91
  url: `${s}community/groups`,
99
- portal: t,
92
+ portal: r,
100
93
  params: {
101
94
  q: `(owner:"${e}")`,
102
95
  num: 100
103
96
  },
104
- options: o
97
+ options: t
105
98
  }),
106
99
  key: "userGroups",
107
100
  id: e
108
101
  });
109
102
  }
110
- async function j(e, t, r) {
111
- const s = r ? "https://www.arcgis.com/sharing/rest/" : P(t), o = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
103
+ async function W(e, r, o) {
104
+ const s = o ? "https://www.arcgis.com/sharing/rest/" : x(r), t = o ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
112
105
  return await _({
113
106
  requester: async () => (await $({
114
107
  url: `${s}search`,
115
- portal: t,
108
+ portal: r,
116
109
  params: {
117
110
  q: `(owner:"${e}") -typekeywords:"recyclebin"`,
118
111
  num: 1
119
112
  },
120
- options: o
113
+ options: t
121
114
  })).total,
122
115
  key: "userItemsTotal",
123
116
  id: e
124
117
  });
125
118
  }
126
- function x({
119
+ function P({
127
120
  baseUrl: e,
128
- user: t,
129
- type: r
121
+ user: r,
122
+ type: o
130
123
  }) {
131
- const s = F(e), o = encodeURIComponent(t.username || "");
132
- return o ? `${s}/${r}.html?user=${o}` : `${s}/${r}.html`;
124
+ const s = E(e), t = encodeURIComponent(r.username || "");
125
+ return t ? `${s}/${o}.html?user=${t}` : `${s}/${o}.html`;
133
126
  }
134
- class Q extends B {
127
+ class j extends A {
135
128
  constructor() {
136
- super(...arguments), this.messages = z({ blocking: !0 }), this.buttonRef = U(), this.popoverRef = U(), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = y(), this.arcgisUserPopupClose = y();
129
+ super(...arguments), this.messages = L({ blocking: !0 }), this.buttonRef = U(), this.popoverRef = U(), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = y(), this.arcgisUserPopupClose = y();
137
130
  }
138
131
  static {
139
132
  this.properties = { itemUserInfo: 16, groups: 16, total: 16, isPopoverOpen: 16, user: 0, username: 1, fullName: 1, item: 0, scale: 3, portal: 0, baseUrl: 1, underline: 5, showAvatar: 5, showName: 5, showUsername: 5, wrap: 5, appearance: 1, zIndex: 9, avatarAriaHidden: 5, checkOnline: 5 };
@@ -150,71 +143,71 @@ class Q extends B {
150
143
  connectedCallback() {
151
144
  super.connectedCallback(), this.init();
152
145
  }
153
- updated(t) {
154
- t.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
146
+ updated(r) {
147
+ r.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
155
148
  }
156
149
  get resolvedBaseUrl() {
157
150
  return this.baseUrl || `${this.portal.url}/home`;
158
151
  }
159
152
  async init() {
160
- const { item: t, username: r, portal: s, fullName: o, messages: n } = this;
161
- if (!(!n._lang || !s)) {
162
- if (t) {
163
- this.itemUserInfo = await V(t, s, n._lang, this.checkOnline);
153
+ const { item: r, username: o, portal: s, fullName: t, messages: a } = this;
154
+ if (!(!a._lang || !s)) {
155
+ if (r) {
156
+ this.itemUserInfo = await K(r, s, a._lang, this.checkOnline);
164
157
  return;
165
158
  }
166
- if (r) {
167
- const a = await w(r, s, this.checkOnline);
168
- !a.fullName && o && (a.fullName = o), this.itemUserInfo = a;
159
+ if (o) {
160
+ const n = await w(o, s, this.checkOnline);
161
+ !n.fullName && t && (n.fullName = t), this.itemUserInfo = n;
169
162
  }
170
163
  }
171
164
  }
172
165
  async fetchItemsAndGroups() {
173
- const { user: t, itemUserInfo: r, item: s, portal: o, username: n, checkOnline: a } = this, i = n || t?.username || s?.owner || r?.username;
174
- if (!(!i || !o)) {
166
+ const { user: r, itemUserInfo: o, item: s, portal: t, username: a, checkOnline: n } = this, i = a || r?.username || s?.owner || o?.username;
167
+ if (!(!i || !t)) {
175
168
  if (!this.groups) {
176
- const l = await W(i, o, a);
169
+ const l = await V(i, t, n);
177
170
  this.groups = l;
178
171
  }
179
- this.total = await j(i, o, a);
172
+ this.total = await W(i, t, n);
180
173
  }
181
174
  }
182
- setPopoverOpen(t) {
175
+ setPopoverOpen(r) {
183
176
  requestAnimationFrame(() => {
184
- this.popoverRef.value && (this.popoverRef.value.open = t);
177
+ this.popoverRef.value && (this.popoverRef.value.open = r);
185
178
  });
186
179
  }
187
- openLink(t, r) {
188
- t.preventDefault(), window.open(r, "_blank");
189
- }
190
- renderOrgButtons(t) {
191
- const { messages: r } = this, o = (t.url || this.resolvedBaseUrl).replace(/\/$/u, "");
192
- return u`<calcite-button appearance=outline-fill kind=neutral .href=${o} target=_blank @click=${(n) => this.openLink(n, o)}>${r.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${o}/gallery.html`} target=_blank @click=${(n) => this.openLink(n, `${o}/gallery.html`)}>${r.gallery}</calcite-button>`;
193
- }
194
- renderUserButtons(t) {
195
- const { total: r, groups: s, messages: o } = this, n = t.username || "";
196
- if (typeof r != "number" || !s)
197
- return u`<calcite-loader .label=${o.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;
198
- const i = x({ baseUrl: this.resolvedBaseUrl, user: { username: n }, type: "groups" }), l = x({ baseUrl: this.resolvedBaseUrl, user: { username: n }, type: "content" }), m = `${this.resolvedBaseUrl.replace(/\/$/u, "")}/user.html?user=${encodeURIComponent(n)}`;
199
- return u`${!!s.total && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${(c) => {
200
- this.openLink(c, i), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all groups" });
201
- }}>${o.groups.replace("${number}", new Intl.NumberFormat(o._lang).format(s.total))}</calcite-button>` || ""}${!!r && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${(c) => {
202
- this.openLink(c, l), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all content" });
203
- }}>${o.items.replace("${number}", new Intl.NumberFormat(o._lang).format(r))}</calcite-button>` || ""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${m} target=_blank @click=${(c) => {
204
- this.openLink(c, m), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view profile" });
205
- }}>${o.profile}</calcite-button>`;
180
+ openLink(r, o) {
181
+ r.preventDefault(), window.open(o, "_blank");
182
+ }
183
+ renderOrgButtons(r) {
184
+ const { messages: o } = this, t = (r.url || this.resolvedBaseUrl).replace(/\/$/u, "");
185
+ return u`<calcite-button appearance=outline-fill kind=neutral .href=${t} target=_blank @click=${(a) => this.openLink(a, t)}>${o.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${t}/gallery.html`} target=_blank @click=${(a) => this.openLink(a, `${t}/gallery.html`)}>${o.gallery}</calcite-button>`;
186
+ }
187
+ renderUserButtons(r) {
188
+ const { total: o, groups: s, messages: t } = this, a = r.username || "";
189
+ if (typeof o != "number" || !s)
190
+ return u`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;
191
+ const i = P({ baseUrl: this.resolvedBaseUrl, user: { username: a }, type: "groups" }), l = P({ baseUrl: this.resolvedBaseUrl, user: { username: a }, type: "content" }), m = `${this.resolvedBaseUrl.replace(/\/$/u, "")}/user.html?user=${encodeURIComponent(a)}`;
192
+ return u`${!!s.total && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${(p) => {
193
+ this.openLink(p, i), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all groups" });
194
+ }}>${t.groups.replace("${number}", new Intl.NumberFormat(t._lang).format(s.total))}</calcite-button>` || ""}${!!o && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${(p) => {
195
+ this.openLink(p, l), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all content" });
196
+ }}>${t.items.replace("${number}", new Intl.NumberFormat(t._lang).format(o))}</calcite-button>` || ""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${m} target=_blank @click=${(p) => {
197
+ this.openLink(p, m), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view profile" });
198
+ }}>${t.profile}</calcite-button>`;
206
199
  }
207
200
  render() {
208
- const { user: t, itemUserInfo: r, portal: s, item: o, appearance: n, scale: a, isPopoverOpen: i, showName: l, showUsername: m, messages: c } = this, p = t || r;
209
- if (!c._lang || !p)
201
+ const { user: r, itemUserInfo: o, portal: s, item: t, appearance: a, scale: n, isPopoverOpen: i, showName: l, showUsername: m, messages: p } = this, c = r || o;
202
+ if (!p._lang || !c)
210
203
  return u`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;
211
- const f = N(o), h = p.username || "", d = E(p.description || "") || "", v = T(p, c._lang), g = f ? c.itemManagedBy.replace("${username}", h) : h;
204
+ const f = O(t), h = c.username || "", d = S(c.description || "") || "", v = H(c, p._lang), g = f ? p.itemManagedBy.replace("${username}", h) : h;
212
205
  return u`<button class=${k({
213
206
  button: !0,
214
- "button--outline": n === "outline"
207
+ "button--outline": a === "outline"
215
208
  })} @click=${() => {
216
209
  this.isPopoverOpen || (this.isPopoverOpen = !0), this.fetchItemsAndGroups();
217
- }} ${I(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${p} .scale=${a} .portal=${s} .showName=${l} .description=${m ? h : ""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${i && this.buttonRef.value && p && u`<calcite-popover class="popover" .label=${v} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${h}-popover`} auto-close style=${L({ "--calcite-popover-z-index": this.zIndex?.toString() || "12" })} @calcitePopoverOpen=${() => {
210
+ }} ${I(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${n} .portal=${s} .showName=${l} .description=${m ? h : ""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${i && this.buttonRef.value && c && u`<calcite-popover class="popover" .label=${v} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${h}-popover`} auto-close style=${B({ "--calcite-popover-z-index": this.zIndex?.toString() || "12" })} @calcitePopoverOpen=${() => {
218
211
  this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "open profile popup" });
219
212
  }} @calcitePopoverClose=${() => {
220
213
  this.isPopoverOpen = !1, this.arcgisUserPopupClose.emit();
@@ -222,10 +215,10 @@ class Q extends B {
222
215
  b.key === "Escape" && setTimeout(() => {
223
216
  this.buttonRef.value?.focus();
224
217
  }, 200);
225
- }} ${I(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${p} scale=l .portal=${s} show-name .description=${g} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!d && u`<p class="popover__description">${d}</p>` || ""}${!!d && u`<div class="popover__fade"></div>` || ""}<div class=${k({ popover__buttons: !0, "popover__buttons--no-description": !d })}>${f ? this.renderOrgButtons(p) : this.renderUserButtons(p)}</div></div></div></calcite-popover>` || ""}`;
218
+ }} ${I(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${s} show-name .description=${g} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!d && u`<p class="popover__description">${d}</p>` || ""}${!!d && u`<div class="popover__fade"></div>` || ""}<div class=${k({ popover__buttons: !0, "popover__buttons--no-description": !d })}>${f ? this.renderOrgButtons(c) : this.renderUserButtons(c)}</div></div></div></calcite-popover>` || ""}`;
226
219
  }
227
220
  }
228
- A("arcgis-portal-user-popup", Q);
221
+ N("arcgis-portal-user-popup", j);
229
222
  export {
230
- Q as ArcgisPortalUserPopup
223
+ j as ArcgisPortalUserPopup
231
224
  };