@arcgis/portal-components 5.2.0-next.121 → 5.2.0-next.123

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/portal-components",
3
- "version": "5.2.0-next.121",
3
+ "version": "5.2.0-next.123",
4
4
  "description": "ArcGIS Portal Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -38,10 +38,10 @@
38
38
  ],
39
39
  "license": "SEE LICENSE IN LICENSE.md",
40
40
  "dependencies": {
41
- "@arcgis/ai-components": "5.2.0-next.121",
42
- "@arcgis/lumina": "5.2.0-next.121",
43
- "@arcgis/lumina-toolkit": "5.2.0-next.121",
44
- "@arcgis/toolkit": "5.2.0-next.121",
41
+ "@arcgis/ai-components": "5.2.0-next.123",
42
+ "@arcgis/lumina": "5.2.0-next.123",
43
+ "@arcgis/lumina-toolkit": "5.2.0-next.123",
44
+ "@arcgis/toolkit": "5.2.0-next.123",
45
45
  "@esri/arcgis-html-sanitizer": "~4.1.0",
46
46
  "@langchain/core": "^1.2.9",
47
47
  "@langchain/langgraph": "^1.4.14",
@@ -52,7 +52,7 @@
52
52
  "zod": "^4.4.3"
53
53
  },
54
54
  "peerDependencies": {
55
- "@arcgis/core": "5.2.0-next.121",
55
+ "@arcgis/core": "5.2.0-next.123",
56
56
  "@esri/calcite-components": "^5.2.0-next.80"
57
57
  },
58
58
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import c from"./GVHJAVV7.js";import"./6QTLQAJL.js";import"./OBBYT2AV.js";import"./DFTUMKSN.js";import b from"./J267PPCF.js";import a from"./E6IE34RO.js";import"./6H7CWMFE.js";import"./2GBRZSEC.js";import"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as r}from"./H4TRF2G7.js";import{a as n}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{K as a,L as c,M as o,T as l,j as s,w as i}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([{substitute:d}])=>{var e=class extends o{constructor(){super(...arguments),this.messages=n({blocking:!0,name:"portal-account-switcher"}),this.dialogRef=a(),this.accounts=[],this.arcgisLinkAll=i(),this.arcgisCloseDialog=i()}static{this.properties={portal:0,targetUser:1,accounts:0}}static{this.styles=r}render(){let{messages:t,portal:g,accounts:u,targetUser:m}=this;return s`<calcite-dialog open modal width=s .heading=${t.linkTitle} outside-close-disabled @calciteDialogClose=${()=>this.arcgisCloseDialog.emit()} ${c(this.dialogRef)}><calcite-block .heading=${d(t.linkWarning,{targetUser:m})} expanded class="linked-accounts-block"><arcgis-portal-account-switcher-list .portal=${g} .linkedAccounts=${u}></arcgis-portal-account-switcher-list></calcite-block><calcite-button slot=footer-end appearance=outline @click=${()=>{this.dialogRef.value.open=!1}}>${t.cancel}</calcite-button><calcite-button slot=footer-end kind=brand @click=${()=>{this.arcgisLinkAll.emit(),this.dialogRef.value.open=!1}}>${t.linkAll}</calcite-button></calcite-dialog>`}};l("arcgis-portal-account-switcher-accounts",e);return e},"intl")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as h}from"./7NZ3RJFV.js";import{t as f,u as m,y}from"./N5KMTTYL.js";export default $arcgis.t(([{on:W,watch:v},{property:C,subclass:E},x,{createObservable:w,trackAccess:b}])=>{var g=r=>{let e=class extends x{},n=typeof r=="function"?r():r,o=Object.getOwnPropertyDescriptors(n);for(let[c,t]of Object.entries(o))Object.defineProperty(e.prototype,c,t),C()(e.prototype,c);let s=E()(e);return new s};var A=(r,e)=>n=>P(n,r),$=class extends y{constructor(e,n){super(e),this.Y=new Map,this.A=void 0,this.#t=w();let o=this;o.#e=n,o.Z(),o.setProvisionalExports(k(e,new WeakRef(o),e.M.length-1,o.instance,o.Y),!1),f(e,s=>{if(s){let c=v(()=>e[s],t=>{if(t===o.instance)return;let i=o.instance;o.exports=t,o.instance=t,o.Y.forEach((a,p)=>e.requestUpdate(a,i[p])),o.#o&&i.destroy(),o.#o=!1},{sync:!0});o.onDestroy(c.remove)}},o.exports)}#o;#t;#e;get exports(){return b(this.#t),super.exports}set exports(e){super.exports=e,this.#t.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#o=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#o&&this.instance.destroy?.()}},P=h($),k=(r,e,n,o,s)=>new Proxy(o,{get:(c,t)=>{let i=c[t];if(typeof t=="symbol"||s.has(t))return i;let a=r.M[n];return a.A=t,m(r,p=>{if(a.A=void 0,p!==void 0){let l=p.key;s.set(t,l);let d=r.constructor.getPropertyOptions(l),u=t!==l&&l.toLowerCase().includes("disable");O(e,d,t,l,u),d.i===void 0&&L(d,n,t,u)}},i)}}),O=(r,e,n,o,s,c)=>c=v(()=>{let t=r.deref();return t===void 0||t.component.manager.destroyed?c=c.remove():t.exports[n]},(t,i)=>{if(!c)return;r.deref().component?.requestUpdate(o,s?!i:i),e.c=!1},{sync:!0}),L=(r,e,n,o)=>{r.d.get=function(){let s=this.M[e]?.exports[n];return o?!s:s},r.d.set=function(s){let c=this.M[e];c.A!==n&&(c.exports[n]=o?!s:s)}};var V=A;var Z=g;return{a:V,b:Z}},"core/reactiveUtils","core/accessorSupport/decorators","core/Accessor","applications/Components/reactiveUtils")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import c from"./EFAWWJTV.js";import b from"./J267PPCF.js";import a from"./E6IE34RO.js";import"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as W}from"./YVKSTDL6.js";import c from"./RBGARTND.js";import{a as L}from"./6H7CWMFE.js";import b from"./F3ODJVJC.js";import{a as J}from"./KYNL256E.js";import{a as x}from"./H4TRF2G7.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import{b as T}from"./2GBRZSEC.js";import{a as H}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{M as I,O,Q as v,T as _,j as d,k as C,w}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([m,{substitute:f},,,{f:K,g:M,h:N,i:E}])=>{var S=1260*1e3;function P(r,e="_blank",s=582,t=670){let i=window.screenLeft??0,n=window.screenTop??0,a=window.innerWidth||document.documentElement.clientWidth||window.screen.width,o=window.innerHeight||document.documentElement.clientHeight||window.screen.height,c=a/2-s/2+i,u=o/2-t/2+n,l=window.open(r,e,`scrollbars=no, width=${s}, height=${t}, top=${u}, left=${c}`);return l?.focus(),l}function D(r,e){let s=m.findOAuthInfo(r.url),{appId:t,locale:i="en",expiration:n=S}=s??{},a=new URLSearchParams({locale:i,client_id:e??t??"arcgisonline",response_type:"token",expiration:`${n}`,linkUserRequest:"true",showSocialLogins:"true",hideEnterpriseLogins:"false",force_login:"true",parent:window.location.origin,redirect_uri:`https://${r.portalHostname}/home/link_account_callback.html`,state:JSON.stringify({useMessage:!0})}),o=`https://${r.portalHostname}/sharing/oauth2/authorize?${a.toString()}`;P(o)}function $(r){let{config:e,token:s,clientId:t="arcgisonline",redirectToClientUri:i=!1,displaySignoutComplete:n=!1}=r,a=new URLSearchParams({display:"iframe",client_id:t,...s&&{token:s},parent:window.location.origin,redirect_uri:`${e.baseUrl}signout_callback.html`,state:JSON.stringify({signout:!0,origin:window.location.origin,redirectToClientUri:i,displaySignoutComplete:n})}),o=`${e.restBaseUrl}oauth2/signout?${a.toString()}`,c=document.createElement("iframe");c.src=o,c.style.display="none",document.body.appendChild(c)}function j(r,e,s){let t=g(r.orgUrlKey,e),i=m.findOAuthInfo(t),{appId:n,locale:a="en",expiration:o=S}=i??{},c=U(r.provider),u=new URLSearchParams({locale:a,client_id:s??n??"arcgisonline",response_type:"token",expiration:`${o}`,parent:window.location.origin,...c==="social"&&{socialLoginProviderName:r.provider},...c==="default"&&{prepopulatedusername:r.username},force_login:"true",redirect_uri:`${t}/home/sign_in_callback.html`,state:JSON.stringify({user:r.username,server:t,portalUrl:t,origin:window.location.origin})}),l=`${b(r,e)}?${u.toString()}`;P(l)}function q({accounts:r,clientId:e="arcgisonline",usersToFilter:s=[],accountsToFilter:t=""}){let i={};return r.reduce((n,a)=>{let o={disabled:a.disabled??!1,allowed:a.clientAppAccessAllowed??!0};return n[a.username]=o,(s.includes(a.username)||s.includes(a.username.toLowerCase())||t==="org"&&a.orgUrlKey||e==="esriapps"&&a.userType!=="both")&&(o.allowed=!1),n},i),i}function z({account:r,credential:e,client_id:s,portal:t}){let i=U(r.provider),n=b(r,t),a=B(r,t),o=new URLSearchParams({client_id:s,redirect_uri:a,parent:window.location.origin,response_type:"token",force_login:"false",...e.userId&&{prepopulatedusername:e.userId},...i==="social"&&{socialLoginProviderName:r.provider},expiration:`${(e?.expires??Date.now()+S)-Date.now()}`});return`${n}?${o.toString()}`}function U(r){return F(r)?"social":r==="enterprise"?"enterprise":r.includes("oidc")?"oidc":"default"}function F(r){return["apple","facebook","github","google"].includes(r)}function b(r,e){let s=g(r.orgUrlKey,e).toLowerCase(),t=U(r.provider),i="";switch(t){case"social":i="social/";break;case"enterprise":i="saml/";break;case"oidc":i=`oidc/${r.provider.split("_")[1]}/`;break}return`${s}/sharing/rest/oauth2/${i}authorize`}function g(r,e){return r?.startsWith("https://")?r:r&&e.customBaseUrl?`https://${r}.${e.customBaseUrl}`:`https://${e.portalHostname}`}function B(r,e){return`${g(r.orgUrlKey,e)}/home/accountswitcher-callback.html`}function G(r,e){return m.findCredential(g(r.orgUrlKey,e),r.username)}function Q(r,e){let s=G(r,e);if(s)return s;let t=g(r.orgUrlKey,e),i=`${t}/home/check_sign_in_status.html#state=${JSON.stringify({origin:window.location.origin,server:t,orgKey:t})}`;X(i,`iframe__for-${t}`)}function X(r,e){let s=document.createElement("iframe");s.src=r,s.id=e,s.style.display="none",document.body.appendChild(s)}var A=100,y=class extends I{constructor(){super(),this.messages=H({blocking:!0}),this.targetUser="",this.targetToken="",this.accountAccess={},this.remainingSignouts=0,this.signoutHandle=0,this.linkedAccounts=[],this.loading=!1,this.signedInStatus={},this.showAssociatedAccountsWarning=!1,this.signedInAccounts=[],this.clientId="arcgisonline",this.signout=!1,this.signoutOptions={redirectToClientUri:!1,displaySignoutComplete:!1},this.arcgisAccountSwitch=w(),this.arcgisClose=w(),this.arcgisSignoutComplete=w(),this.listenOn(window,"message",this.handleMessageEvent)}static{this.properties={linkedAccounts:16,userAccounts:16,user:16,credential:16,alertOptions:16,loading:16,signedInStatus:16,showAssociatedAccountsWarning:16,signedInAccounts:16,portal:0,clientId:1,signout:5,signoutOptions:0}}static{this.styles=x}willUpdate(e){if(e.has("portal")&&(this.user=this.portal?.user),(e.has("portal")||e.has("user"))&&this.portal&&this.user){this.findLinkedUsers();return}if(e.has("linkedAccounts")||e.has("signedInStatus")){if(this.signout){let{signedInStatus:s,linkedAccounts:t,portal:i,signoutOptions:n,clientId:a}=this,o=Object.keys(s).filter(p=>s[p]!==null).map(p=>t.find(k=>k.username===p));this.remainingSignouts=o.length+1;let c=g(i.urlKey??"",i),u=`${c}/sharing/rest`,{displaySignoutComplete:l=!0,redirectToClientUri:h=!0}=n;o.length>0&&(l=!1,h=!1),this.loading=!0,$({displaySignoutComplete:l,redirectToClientUri:h,clientId:a,config:{baseUrl:c,restBaseUrl:u}}),this.signoutHandle=window.setTimeout(()=>{this.remainingSignouts-=1,this.finishSignout({accountOrigin:c,redirectToClientUri:h,displaySignoutComplete:l})},1200)}return}}handleMessageEvent(e){if(new URL(e.origin).hostname!=="localhost"&&(e.origin.endsWith(".arcgis.com")||e.origin===window.location.origin)){if(typeof e.data=="string"){JSON.parse(e.data).type==="token_exchange"&&this.handleExchangeTokenMessage(e);return}if("type"in e.data)switch(e.data.type){case"signin":this.handleSigninMessage(e);return;case"signout":this.handleSignoutMessage(e);return;case"linkUser":this.handleLinkUserMessage(e);return;case"token_exchange":this.handleExchangeTokenMessage(e);return}if("credential"in e.data){this.handleSigninMessage(e);return}this.handleCheckSignInStatusMessage(e)}}handleSignoutMessage(e){let{error:s,signout:t,accountOrigin:i,redirectToClientUri:n,displaySignoutComplete:a}=e.data;if(this.remainingSignouts-=1,s&&s!=="unknown"){console.error(s),this.showAlert("danger",this.messages.errors.signout);return}t&&(this.user=void 0,this.credential=void 0,this.finishSignout({accountOrigin:i,redirectToClientUri:n,displaySignoutComplete:a}))}handleSigninMessage(e){let{messages:s,clientId:t}=this,{error:i,status:n,state:a,access_token:o,ssl:c}=e.data;if(i){console.error(i),this.showAlert("danger",s.errors.signin);return}if(n==="success"){let{portal:u,user:l}=this,h=this.linkedAccounts.find(R=>R.username===a.user);h?.orgUrlKey===this.portal.urlKey&&m.findCredential(`https://${u.portalHostname}`,l?.username)?.destroy();let p={server:a.portalUrl,userId:a.user,token:o,expires:Number(e.data.expires_in)+Date.now(),ssl:c===void 0||c!=="false"};m.registerToken(p);let k=z({account:h,credential:p,client_id:t,portal:u});window.self!==window.top?window.top?.postMessage({type:"navigate",url:k}):window.location.href=k}}handleCheckSignInStatusMessage(e){let{success:s,orgKey:t,server:i,userId:n,token:a,expires:o,ssl:c}=e.data;t&&i&&s&&n&&a&&o&&c!==void 0&&(this.signedInStatus[n]={token:a,expires:o,ssl:c})}async handleLinkUserMessage(e){let{error:s,username:t,access_token:i}=e.data,{portal:n,user:a,linkedAccounts:o,messages:c}=this;if(s){if(s.toString().toLowerCase().includes("user denied your request"))return;this.showAlert("danger",c.errors.accessAccount);return}if(t===a?.username){this.showAlert("danger",c.errors.selfLink);return}if(o.find(l=>l.username===t)){this.showAlert("danger",f(c.errors.alreadyLinked,{username:t}));return}let u=await M(n,t,i);if(u?.length){this.userAccounts=u,this.targetUser=t??"",this.targetToken=i??"",this.showAssociatedAccountsWarning=!0;return}this.linkAccount(t,i)}handleExchangeTokenMessage(e){let s=typeof e.data=="string"?JSON.parse(e.data):e.data;if(!(s.type&&s.type!=="token_exchange")){if(s.error)console.error(s);else if(s.status==="success"&&this.targetUser){let{portal:t,linkedAccounts:i,targetUser:n,clientId:a}=this,o=i.find(p=>p.username===n);if(!o)return;let c=B(o,t),u=g(o.orgUrlKey,t),l=new URLSearchParams({response_type:"token",client_id:a,redirect_uri:c,state:JSON.stringify({user:o.username,portalUrl:u})}),h=`${b(o,t)}?${l.toString()}`;window.opener?(window.opener.location.href=h,window.close()):window.location.href=h}}}finishSignout({accountOrigin:e,redirectToClientUri:s,displaySignoutComplete:t}){this.signoutHandle&&window.clearTimeout(this.signoutHandle),console.info("Signout complete",e,s,t),this.remainingSignouts<=0&&this.arcgisSignoutComplete.emit({accountOrigin:e,redirectToClientUri:s,displaySignoutComplete:t})}async findLinkedUsers(){if(this.loading=!0,!this.portal||!this.user){this.linkedAccounts=[],this.loading=!1;return}this.linkedAccounts=await K(this.portal,this.user),this.linkedAccounts.length&&(this.signedInStatus=this.linkedAccounts.filter(e=>e.orgUrlKey!==this.portal.urlKey).reduce((e,s)=>(e[s.username]=Q(s,this.portal)??null,e),{}),this.accountAccess=q({accounts:this.linkedAccounts,clientId:this.clientId})),this.loading=!1}async linkAccount(e,s){let{portal:t,user:i}=this;if(!t||!i)return;let n=await N({portal:t,user:i,targetUser:e,targetToken:s}),{messages:a}=this;if(n.error){this.showAlert("danger",f(a.errors.linkAccount,{username:e})),this.targetUser="",this.userAccounts=[];return}let o=this.userAccounts?.length?a.success.linkAccountMultiple:a.success.linkAccount;this.showAlert("success",f(o,{username:e})),this.targetUser="",this.userAccounts=[],await T(350),this.findLinkedUsers()}async unlinkAccount(e){if(!this.portal||!this.user)return;let{messages:s,portal:t,user:i}=this,{success:n}=await E({portal:t,user:i,linkedUsername:e.username});n?this.showAlert("success",f(s.success.unlinkAccount,{username:e.username})):this.showAlert("danger",f(s.errors.unlinkAccount,{username:e.username})),await this.findLinkedUsers()}startAccountLink(){D(this.portal,this.clientId)}switchAccount(e){let{portal:s,user:t,clientId:i}=this;if(!s||!t||!e)return;let n=g(t.sourceJSON.orgUrlKey??"",s),a=m.findCredential(n,t.id||t.username);a&&$({config:{baseUrl:n,restBaseUrl:`${n}/sharing/rest`},token:a?.token,clientId:i}),j(e,s,i)}signoutAll(e){let{portal:s,signedInStatus:t,clientId:i}=this;e.forEach(n=>{let a=g(n.orgUrlKey,s),o=`${a}/sharing/rest`,c=t[n.username];$({config:{baseUrl:a,restBaseUrl:o},token:c?.token,clientId:i})})}showAlert(e,s,t){this.alertOptions={kind:e,title:t,message:s}}showUnlinkConfirmation(e){let{messages:s}=this;this.alertOptions={kind:"danger",icon:"exclamation-mark-triangle-f",title:s.unlinkTitle,message:s.unlinkWarning,actions:[{text:s.unlink,kind:"danger",clickHandler:()=>{this.alertOptions=void 0,this.unlinkAccount(e)}}]}}render(){let{linkedAccounts:e,accountAccess:s,user:t,portal:i,messages:n,signout:a}=this;if(!i||!t)return null;if(a){let{signedInAccounts:o}=this;return o.length===0?d`<calcite-loader .label=${n.signingOut} .text=${n.signingOut}></calcite-loader>`:d`<arcgis-portal-account-switcher-signout .portal=${i} .signedInAccounts=${o} @arcgisSwitchAccount=${c=>{this.switchAccount(c.detail.account)}} @arcgisSignOutAll=${()=>{this.signoutAll(o)}}></arcgis-portal-account-switcher-signout>`}return d`<calcite-dialog .heading=${n.switchAccounts} scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${()=>{this.arcgisClose.emit()}}><calcite-block .heading=${n.currentAccount} .description=${n.signedInAs} expanded class="current-account-block" tabindex=-1>${L(t.id??t.username,d`<calcite-block class="current-account" .label=${i.urlKey?`${t.username}, ${i.name}`:t.username} heading-level=4 .heading=${t.username} .description=${i.urlKey?`${t.fullName??t.username}, ${i.name}`:t.fullName??t.username}><calcite-avatar slot=content-start inert .fullName=${t.fullName??void 0} .username=${t.username} .userId=${t.id} .thumbnail=${J(t,i)??void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${e.length>0?d`<calcite-block .heading=${n.linkedAccounts} .description=${n.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${e.length>=A}>${n.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${i} .linkedAccounts=${e} .accountAccess=${s} .signedInUsers=${Object.keys(this.signedInStatus).filter(o=>this.signedInStatus[o]!==null)} interactive @arcgisAccountSwitch=${o=>{this.switchAccount(o.detail.account)}} @arcgisAccountUnlink=${o=>{this.showUnlinkConfirmation(o.detail.account)}}></arcgis-portal-account-switcher-list></calcite-block>`:d`<calcite-block .heading=${n.linkedAccounts} expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${C`<path d=${W.couple??v} fill=currentColor />`}</svg><h4>${n.emptyListTitle}</h4><p>${n.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${e.length>=A}>${n.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${e.length>=A}><div slot=message>${n.maxAccounts}</div></calcite-notice><calcite-alert .label=${n.alertLabel} slot=alerts .autoClose=${this.alertOptions?.kind!=="danger"} auto-close-duration=fast placement=bottom .kind=${this.alertOptions?.kind} .icon=${this.alertOptions?.icon} .open=${!!this.alertOptions} @calciteAlertClose=${()=>{this.alertOptions=void 0}}>${this.alertOptions?.title&&d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>`||""}${this.alertOptions?.message&&d`<p slot=message class=${O({"alert-message":!0,"short-message":!!this.alertOptions?.actions?.length})}>${this.alertOptions.message}</p>`||""}${this.alertOptions?.actions?.map(o=>d`<calcite-button slot=actions-end .kind=${o.kind} .appearance=${o.appearance} @click=${o.clickHandler}>${o.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning&&d`<arcgis-portal-account-switcher-accounts .portal=${i} .targetUser=${this.targetUser} .accounts=${this.userAccounts??[]} @arcgisLinkAll=${()=>{this.linkAccount(this.targetUser,this.targetToken)}} @arcgisCloseDialog=${()=>{this.showAssociatedAccountsWarning=!1}}></arcgis-portal-account-switcher-accounts>`||""}`}};_("arcgis-portal-account-switcher",y);return y},"identity/IdentityManager","intl",a,b,c)