@arcgis/portal-components 6.0.0-next.0 → 6.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as P}from"./YVKSTDL6.js";import c from"./RBGARTND.js";import b from"./F3ODJVJC.js";import{a as K}from"./OV5O7YP4.js";import{a as R}from"./KYNL256E.js";import{a as M}from"./23X56P4K.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import{b as N}from"./2GBRZSEC.js";import{a as J}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{L as _,M as L,O as x,R as T,j as d,k as O,w as A}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([p,{substitute:w},,,{f:E,g:H,h:W,i:B}])=>{var C=1260*1e3,q=2500;function D(o,t="_blank",i=582,e=670){let s=window.screenLeft??0,n=window.screenTop??0,a=window.innerWidth||document.documentElement.clientWidth||window.screen.width,r=window.innerHeight||document.documentElement.clientHeight||window.screen.height,c=a/2-i/2+s,l=r/2-e/2+n,u=window.open(o,t,`scrollbars=no, width=${i}, height=${e}, top=${l}, left=${c}`);return u?.focus(),u}function z(o){let t=p.findOAuthInfo(o.url),{locale:i="en",expiration:e=C}=t??{},s=new URLSearchParams({locale:i,client_id:"arcgisonline",response_type:"token",expiration:`${e}`,linkUserRequest:"true",showSocialLogins:"true",hideEnterpriseLogins:"false",force_login:"true",parent:window.location.origin,redirect_uri:`https://${o.portalHostname}/home/link_account_callback.html`,state:JSON.stringify({useMessage:!0})}),n=`https://${o.portalHostname}/sharing/oauth2/authorize?${s.toString()}`;D(n)}function y(o){let{config:t,token:i,clientId:e="arcgisonline",redirectToClientUri:s=!1,displaySignoutComplete:n=!1,clientUri:a}=o,r=new URLSearchParams({display:"iframe",client_id:e,...i&&{token:i},parent:window.location.origin,redirect_uri:`${t.baseUrl}/home/check_sign_in_status.html`,state:JSON.stringify({signout:!0,origin:window.location.origin,accountOrigin:`${t.restBaseUrl}/`,redirectToClientUri:s,displaySignoutComplete:n,...a&&{redirectUri:a}})}),c=`${t.restBaseUrl}/oauth2/signout?${r.toString()}`,l=document.createElement("iframe");l.src=c,l.style.display="none",document.body.appendChild(l)}function F(o,t,i){let e=h(o.orgUrlKey,t),s=p.findOAuthInfo(e),{appId:n,locale:a="en",expiration:r=C}=s??{},c=v(o.provider),l=new URLSearchParams({locale:a,client_id:i??n??"arcgisonline",response_type:"token",expiration:`${r}`,parent:window.location.origin,...c==="social"&&{socialLoginProviderName:o.provider},...c==="default"&&{prepopulatedusername:o.username},force_login:"true",redirect_uri:`${e}/home/sign_in_callback.html`,state:JSON.stringify({user:o.username,server:e,portalUrl:e,origin:window.location.origin})}),u=`${I(o,t)}?${l.toString()}`;D(u)}function G({accounts:o,clientId:t="arcgisonline",usersToFilter:i=[],accountsToFilter:e=""}){let s={};return o.reduce((n,a)=>{let r={disabled:a.disabled??!1,allowed:a.clientAppAccessAllowed??!0};return n[a.username]=r,(i.includes(a.username)||i.includes(a.username.toLowerCase())||e==="org"&&a.orgUrlKey||t==="esriapps"&&a.userType!=="both")&&(r.allowed=!1),n},s),s}function Q({account:o,credential:t,clientId:i,portal:e,redirectUri:s}){let n=v(o.provider),a=I(o,e),r=s||j(o,e),c=new URLSearchParams({client_id:i,redirect_uri:r,parent:window.location.origin,response_type:"token",force_login:"false",...t.userId&&{prepopulatedusername:t.userId},...n==="social"&&{socialLoginProviderName:o.provider},expiration:`${(t?.expires??Date.now()+C)-Date.now()}`});return`${a}?${c.toString()}`}function v(o){return V(o)?"social":o==="enterprise"?"enterprise":o.includes("oidc")?"oidc":"default"}function V(o){return["apple","facebook","github","google"].includes(o)}function I(o,t){let i=h(o.orgUrlKey,t).toLowerCase(),e=v(o.provider),s="";switch(e){case"social":s="social/";break;case"enterprise":s="saml/";break;case"oidc":s=`oidc/${o.provider.split("_")[1]}/`;break}return`${i}/sharing/rest/oauth2/${s}authorize`}function h(o,t){return o?.startsWith("https://")?o:o&&t.customBaseUrl?`https://${o}.${t.customBaseUrl}`:`https://${t.portalHostname}`}function j(o,t){return`${h(o.orgUrlKey,t)}/home/accountswitcher-callback.html`}function X(o,t){return p.findCredential(h(o.orgUrlKey,t),o.username)}function Y(o,t){let i=X(o,t);if(i)return i;let e=h(o.orgUrlKey,t),s=`${e}/home/check_sign_in_status.html#state=${JSON.stringify({origin:window.location.origin,server:e,orgKey:e})}`;Z(s,`iframe__for-${e}`)}function Z(o,t){let i=document.createElement("iframe");i.src=o,i.id=t,i.style.display="none",document.body.appendChild(i)}var S=100,b=class extends _{constructor(){super(),this.messages=J({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=A(),this.arcgisClose=A(),this.arcgisSignoutComplete=A(),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,redirectUri:1,signout:5,signoutOptions:0}}static{this.styles=M}willUpdate(t){if(t.has("portal")&&(this.user=this.portal?.user),(t.has("portal")||t.has("user"))&&this.portal&&this.user){this.findLinkedUsers();return}if(t.has("linkedAccounts")||t.has("signedInStatus")){if(this.signout){let{signedInStatus:i,linkedAccounts:e,portal:s,signoutOptions:n,clientId:a,user:r,redirectUri:c}=this,l=Object.keys(i).filter(k=>i[k]!==null).map(k=>e.find(U=>U.username===k));this.remainingSignouts=l.length+1;let u=h(s.urlKey??"",s),f=`${u}/sharing/rest`,{displaySignoutComplete:m=!0,redirectToClientUri:g=!0}=n;l.length>0&&(m=!1,g=!1),this.loading=!0;let $=p.findCredential(u,r?.id||r?.username);y({displaySignoutComplete:m,redirectToClientUri:g,clientId:a,config:{baseUrl:u,restBaseUrl:f},token:$?.token,clientUri:g?c:void 0}),this.signoutHandle=window.setTimeout(()=>{this.remainingSignouts-=1,this.finishSignout({accountOrigin:u,redirectToClientUri:g,displaySignoutComplete:m})},q)}return}}handleMessageEvent(t){if(new URL(t.origin).hostname!=="localhost"&&(t.origin.endsWith(".arcgis.com")||t.origin===window.location.origin)){if(typeof t.data=="string"){JSON.parse(t.data).type==="token_exchange"&&this.handleExchangeTokenMessage(t);return}if("type"in t.data)switch(t.data.type){case"signin":this.handleSigninMessage(t);return;case"signout":this.handleSignoutMessage(t);return;case"linkUser":this.handleLinkUserMessage(t);return;case"token_exchange":this.handleExchangeTokenMessage(t);return}if("credential"in t.data){this.handleSigninMessage(t);return}this.handleCheckSignInStatusMessage(t)}}handleSignoutMessage(t){let{error:i,signout:e,accountOrigin:s,redirectToClientUri:n,displaySignoutComplete:a}=t.data;if(this.remainingSignouts-=1,i&&i!=="unknown"){console.error(i),this.showAlert("danger",this.messages.errors.signout);return}e&&(this.user=void 0,this.credential=void 0,this.finishSignout({accountOrigin:s,redirectToClientUri:n,displaySignoutComplete:a}))}handleSigninMessage(t){let{messages:i,clientId:e}=this,{error:s,status:n,state:a,access_token:r,ssl:c,expires_in:l}=t.data;if(s){console.error(s),this.showAlert("danger",i.errors.signin);return}if(n==="success"){let{portal:u,user:f,redirectUri:m}=this,g=this.linkedAccounts.find(U=>U.username===a.user);g?.orgUrlKey===this.portal.urlKey&&p.findCredential(`https://${u.portalHostname}`,f?.username)?.destroy();let $={server:a.portalUrl,userId:a.user,token:r,expires:Number(l)+Date.now(),ssl:c===void 0||c!=="false"};p.registerToken($);let k=Q({account:g,credential:$,clientId:e,portal:u,redirectUri:m});window.self!==window.top?window.top?.postMessage({type:"navigate",url:k}):this.arcgisAccountSwitch.emit({account:g,finishUrl:k})}}handleCheckSignInStatusMessage(t){let{success:i,orgKey:e,server:s,userId:n,token:a,expires:r,ssl:c}=t.data;e&&s&&i&&n&&a&&r&&c!==void 0&&(this.signedInStatus[n]={token:a,expires:r,ssl:c})}async handleLinkUserMessage(t){let{error:i,username:e,access_token:s}=t.data,{portal:n,user:a,linkedAccounts:r,messages:c}=this;if(i){if(i.toString().toLowerCase().includes("user denied your request"))return;this.showAlert("danger",c.errors.accessAccount);return}if(e===a?.username){this.showAlert("danger",c.errors.selfLink);return}if(r.find(u=>u.username===e)){this.showAlert("danger",w(c.errors.alreadyLinked,{username:e}));return}let l=await H(n,e,s);if(l?.length){this.userAccounts=l,this.targetUser=e??"",this.targetToken=s??"",this.showAssociatedAccountsWarning=!0;return}this.linkAccount(e,s)}handleExchangeTokenMessage(t){let i=typeof t.data=="string"?JSON.parse(t.data):t.data;if(!(i.type&&i.type!=="token_exchange")){if(i.error)console.error(i);else if(i.status==="success"&&this.targetUser){let{portal:e,linkedAccounts:s,targetUser:n,clientId:a}=this,r=s.find(m=>m.username===n);if(!r)return;let c=j(r,e),l=h(r.orgUrlKey,e),u=new URLSearchParams({response_type:"token",client_id:a,redirect_uri:c,state:JSON.stringify({user:r.username,portalUrl:l})}),f=`${I(r,e)}?${u.toString()}`;window.opener?(window.opener.location.href=f,window.close()):window.location.href=f}}}finishSignout({accountOrigin:t,redirectToClientUri:i,displaySignoutComplete:e}){this.signoutHandle&&window.clearTimeout(this.signoutHandle),t===window.location.origin&&p.destroyCredentials(),console.info("Signout complete",t,i,e),this.remainingSignouts<=0&&this.arcgisSignoutComplete.emit({accountOrigin:t,redirectToClientUri:i,displaySignoutComplete:e})}async findLinkedUsers(){if(this.loading=!0,!this.portal||!this.user){this.linkedAccounts=[],this.loading=!1;return}this.linkedAccounts=await E(this.portal,this.user),this.linkedAccounts.length&&(this.signedInStatus=this.linkedAccounts.filter(t=>t.orgUrlKey!==this.portal.urlKey).reduce((t,i)=>(t[i.username]=Y(i,this.portal)??null,t),{}),this.accountAccess=G({accounts:this.linkedAccounts,clientId:this.clientId})),this.loading=!1}async linkAccount(t,i){let{portal:e,user:s}=this;if(!e||!s)return;let n=await W({portal:e,user:s,targetUser:t,targetToken:i}),{messages:a}=this;if(n.error){this.showAlert("danger",w(a.errors.linkAccount,{username:t})),this.targetUser="",this.userAccounts=[];return}let r=this.userAccounts?.length?a.success.linkAccountMultiple:a.success.linkAccount;this.showAlert("success",w(r,{username:t})),this.targetUser="",this.userAccounts=[],await N(350),this.findLinkedUsers()}async unlinkAccount(t){if(!this.portal||!this.user)return;let{messages:i,portal:e,user:s}=this,{success:n}=await B({portal:e,user:s,linkedUsername:t.username});n?this.showAlert("success",w(i.success.unlinkAccount,{username:t.username})):this.showAlert("danger",w(i.errors.unlinkAccount,{username:t.username})),await this.findLinkedUsers()}startAccountLink(){z(this.portal)}switchAccount(t){let{portal:i,user:e,clientId:s}=this;if(!i||!e||!t)return;let n=h(e.sourceJSON.orgUrlKey??"",i),a=p.findCredential(n,e.id||e.username);a&&y({config:{baseUrl:n,restBaseUrl:`${n}/sharing/rest`},token:a?.token,clientId:s}),F(t,i,s)}signoutAll(t){let{portal:i,signedInStatus:e,clientId:s}=this;t.forEach(n=>{let a=h(n.orgUrlKey,i),r=`${a}/sharing/rest`,c=e[n.username];y({config:{baseUrl:a,restBaseUrl:r},token:c?.token,clientId:s})})}showAlert(t,i,e){this.alertOptions={kind:t,title:e,message:i}}showUnlinkConfirmation(t){let{messages:i}=this;this.alertOptions={kind:"danger",icon:"exclamation-mark-triangle-f",title:i.unlinkAccount,message:i.unlinkWarning,actions:[{text:i.unlink,kind:"danger",clickHandler:()=>{this.alertOptions=void 0,this.unlinkAccount(t)}}]}}render(){let{linkedAccounts:t,accountAccess:i,user:e,portal:s,messages:n,signout:a}=this;if(!s||!e)return null;if(a){let{signedInAccounts:r}=this;return r.length===0?d`<calcite-loader .label=${n.signingOut} .text=${n.signingOut}></calcite-loader>`:d`<arcgis-portal-account-switcher-signout .portal=${s} .signedInAccounts=${r} @arcgisSwitchAccount=${c=>{this.switchAccount(c.detail.account)}} @arcgisSignOutAll=${()=>{this.signoutAll(r)}}></arcgis-portal-account-switcher-signout>`}return d`<calcite-dialog .heading=${n.switchAccounts} heading-level=2 scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${()=>{this.arcgisClose.emit()}}><calcite-block .heading=${n.currentAccount} heading-level=3 .description=${n.signedInAs} expanded class="current-account-block" tabindex=-1>${K(e.id??e.username,d`<calcite-block class="current-account" .label=${s.urlKey?`${e.username}, ${s.name}`:e.username} heading-level=4 .heading=${e.username} .description=${s.urlKey?`${e.fullName??e.username}, ${s.name}`:e.fullName??e.username}><calcite-avatar slot=content-start inert .fullName=${e.fullName??void 0} .username=${e.username} .userId=${e.id} .thumbnail=${R(e,s)??void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${t.length>0?d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 .description=${n.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${t.length>=S}>${n.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${s} .linkedAccounts=${t} .accountAccess=${i} .signedInUsers=${Object.keys(this.signedInStatus).filter(r=>this.signedInStatus[r]!==null)} interactive @arcgisAccountSwitch=${r=>{this.switchAccount(r.detail.account)}} @arcgisAccountUnlink=${r=>{this.showUnlinkConfirmation(r.detail.account)}}></arcgis-portal-account-switcher-list></calcite-block>`:d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 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>${O`<path d=${P.couple??x} fill=currentColor />`}</svg><h4>${n.emptyListTitle}</h4><p>${n.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${t.length>=S}>${n.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${t.length>=S}><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=${L({"alert-message":!0,"short-message":!!this.alertOptions?.actions?.length})}>${this.alertOptions.message}</p>`||""}${this.alertOptions?.actions?.map(r=>d`<calcite-button slot=actions-end .kind=${r.kind} .appearance=${r.appearance} @click=${r.clickHandler}>${r.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning&&d`<arcgis-portal-account-switcher-accounts .portal=${s} .targetUser=${this.targetUser} .accounts=${this.userAccounts??[]} @arcgisLinkAll=${()=>{this.linkAccount(this.targetUser,this.targetToken)}} @arcgisCloseDialog=${()=>{this.showAssociatedAccountsWarning=!1}}></arcgis-portal-account-switcher-accounts>`||""}`}};T("arcgis-portal-account-switcher",b);return b},"identity/IdentityManager","intl",a,b,c)
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{Q as r,z as e}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./FEBUVUR5.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./GYA7R4F6.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./ODH2VAWC.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./XU3QHJD7.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./DKIYHE4A.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./Y3YIMI2Z.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./FSACXOM3.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./C5VUNN4M.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./6MWSS5YF.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./QCOJMMT3.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./3SO52LKS.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./MY7AYBBR.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./ZAIRH5DL.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./UKHCSMA4.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./ADZAKBOJ.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./GTZ4LKEQ.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./MCX22B23.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./5FOWUL6I.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./5FDUO7J4.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./4SHXR62X.js"),"active,disableLinks,items:,messages:,portal:,user:"],"arcgis-portal-delete-items-review":[()=>import("./7TGCBYRK.js"),"items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./YG5VQATB.js"),"_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./T2HQNZ36.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./NDRCB2K3.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./OJNU7H3F.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./2I5SLQC5.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./XROCYFKH.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./OKUI3HQ4.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./DF5GVVDW.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./QBV7VDQK.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./X4G32AIG.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-picker":[()=>import("./BEAUY47J.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./NICTB76A.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./V5YXPHYD.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./UQKT5JQZ.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./AE574B3G.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./LRHPL6B5.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./AWCYG2JJ.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./QSAZVVVL.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./CJHR4UK5.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-item-thumbnail":[()=>import("./LP4IB3PV.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./ZSILF72K.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./QKK6N2AN.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./QKBGX2OY.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./3R4PPD5N.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./QYMSY57N.js"),"messages:,portal:,relatedItems:,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./BRJE3G3H.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./KC4FTTKP.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./LYOR4B2O.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./D6QHNXEH.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./UGRFT75G.js"),"language;clearText,startListening,stopListening"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,arcgis-portal-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-delete-items,arcgis-portal-delete-items-review,arcgis-portal-entity-picker,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-picker,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-picker,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
2
+ import{Q as r,z as e}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./TJN3DTKK.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./GYA7R4F6.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./ODH2VAWC.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./XU3QHJD7.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./DKIYHE4A.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./Y3YIMI2Z.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./FSACXOM3.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./C5VUNN4M.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./6MWSS5YF.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./QCOJMMT3.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./3SO52LKS.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./MY7AYBBR.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./ZAIRH5DL.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./UKHCSMA4.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./ADZAKBOJ.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./GTZ4LKEQ.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./MCX22B23.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./5FOWUL6I.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./5FDUO7J4.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./4SHXR62X.js"),"active,disableLinks,items:,messages:,portal:,user:"],"arcgis-portal-delete-items-review":[()=>import("./7TGCBYRK.js"),"items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./YG5VQATB.js"),"_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./T2HQNZ36.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./NDRCB2K3.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./OJNU7H3F.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./2I5SLQC5.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./XROCYFKH.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./OKUI3HQ4.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./DF5GVVDW.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./QBV7VDQK.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./X4G32AIG.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-picker":[()=>import("./BEAUY47J.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./NICTB76A.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./V5YXPHYD.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./UQKT5JQZ.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./AE574B3G.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./LRHPL6B5.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./AWCYG2JJ.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./QSAZVVVL.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./CJHR4UK5.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-item-thumbnail":[()=>import("./LP4IB3PV.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./ZSILF72K.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./QKK6N2AN.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./QKBGX2OY.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./3R4PPD5N.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./QYMSY57N.js"),"messages:,portal:,relatedItems:,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./BRJE3G3H.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./KC4FTTKP.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./LYOR4B2O.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./D6QHNXEH.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./UGRFT75G.js"),"language;clearText,startListening,stopListening"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,arcgis-portal-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-delete-items,arcgis-portal-delete-items-review,arcgis-portal-entity-picker,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-picker,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-picker,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
@@ -143,7 +143,10 @@ export abstract class ArcgisPortalAccountSwitcher extends LitElement {
143
143
  displaySignoutComplete?: boolean;
144
144
  };
145
145
  /** Emitted when the user chooses a different account. */
146
- readonly arcgisAccountSwitch: import("@arcgis/lumina").TargetedEvent<this, { account: LinkedAccount; }>;
146
+ readonly arcgisAccountSwitch: import("@arcgis/lumina").TargetedEvent<this, {
147
+ account: LinkedAccount;
148
+ finishUrl: string;
149
+ }>;
147
150
  /** Emitted when the user closes the account switcher. */
148
151
  readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
149
152
  /** Emitted when the signout(s) have completed */
@@ -1,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as C } from "../../chunks/runtime.js";
3
- import { keyed as v } from "lit/directives/keyed.js";
4
- import { LitElement as x, createEvent as U, safeClassMap as T, nothing as M } from "@arcgis/lumina";
5
- import { html as d, svg as K } from "lit";
6
- import { s as N } from "../../chunks/portal-account-switcher.js";
7
- import { g as E, a as H, l as P, u as W } from "../../chunks/user.js";
3
+ import { keyed as x } from "lit/directives/keyed.js";
4
+ import { LitElement as T, createEvent as $, safeClassMap as M, nothing as K } from "@arcgis/lumina";
5
+ import { html as d, svg as N } from "lit";
6
+ import { s as E } from "../../chunks/portal-account-switcher.js";
7
+ import { g as H, a as P, l as W, u as B } from "../../chunks/user.js";
8
8
  import p from "@arcgis/core/identity/IdentityManager.js";
9
- import { t as B } from "../../chunks/functionalities.js";
10
- import { u as R } from "../../chunks/useT9n.js";
11
- import { m as J } from "../../chunks/icons.js";
12
- import { substitute as k } from "@arcgis/core/intl.js";
13
- import { g as D } from "../../chunks/services.js";
14
- const b = 1260 * 1e3, j = 2500;
15
- function _(r, e = "_blank", s = 582, t = 670) {
9
+ import { t as R } from "../../chunks/functionalities.js";
10
+ import { u as J } from "../../chunks/useT9n.js";
11
+ import { m as D } from "../../chunks/icons.js";
12
+ import { substitute as w } from "@arcgis/core/intl.js";
13
+ import { g as j } from "../../chunks/services.js";
14
+ const y = 1260 * 1e3, q = 2500;
15
+ function L(r, e = "_blank", s = 582, t = 670) {
16
16
  const 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, l = o / 2 - t / 2 + n, u = window.open(r, e, `scrollbars=no, width=${s}, height=${t}, top=${l}, left=${c}`);
17
17
  return u?.focus(), u;
18
18
  }
19
- function q(r) {
20
- const e = p.findOAuthInfo(r.url), { locale: s = "en", expiration: t = b } = e ?? {}, i = new URLSearchParams({
19
+ function z(r) {
20
+ const e = p.findOAuthInfo(r.url), { locale: s = "en", expiration: t = y } = e ?? {}, i = new URLSearchParams({
21
21
  locale: s,
22
22
  // Linking accounts ALWAYS uses the "arcgisonline" client id
23
23
  client_id: "arcgisonline",
@@ -31,9 +31,9 @@ function q(r) {
31
31
  redirect_uri: `https://${r.portalHostname}/home/link_account_callback.html`,
32
32
  state: JSON.stringify({ useMessage: !0 })
33
33
  }), n = `https://${r.portalHostname}/sharing/oauth2/authorize?${i.toString()}`;
34
- _(n);
34
+ L(n);
35
35
  }
36
- function S(r) {
36
+ function U(r) {
37
37
  const {
38
38
  config: e,
39
39
  token: s,
@@ -58,8 +58,8 @@ function S(r) {
58
58
  }), c = `${e.restBaseUrl}/oauth2/signout?${o.toString()}`, l = document.createElement("iframe");
59
59
  l.src = c, l.style.display = "none", document.body.appendChild(l);
60
60
  }
61
- function z(r, e, s) {
62
- const t = h(r.orgUrlKey, e), i = p.findOAuthInfo(t), { appId: n, locale: a = "en", expiration: o = b } = i ?? {}, c = I(r.provider), l = new URLSearchParams({
61
+ function F(r, e, s) {
62
+ const t = h(r.orgUrlKey, e), i = p.findOAuthInfo(t), { appId: n, locale: a = "en", expiration: o = y } = i ?? {}, c = b(r.provider), l = new URLSearchParams({
63
63
  locale: a,
64
64
  client_id: s ?? n ?? "arcgisonline",
65
65
  response_type: "token",
@@ -75,10 +75,10 @@ function z(r, e, s) {
75
75
  portalUrl: t,
76
76
  origin: window.location.origin
77
77
  })
78
- }), u = `${O(r, e)}?${l.toString()}`;
79
- _(u);
78
+ }), u = `${I(r, e)}?${l.toString()}`;
79
+ L(u);
80
80
  }
81
- function F({
81
+ function G({
82
82
  accounts: r,
83
83
  clientId: e = "arcgisonline",
84
84
  usersToFilter: s = [],
@@ -93,14 +93,14 @@ function F({
93
93
  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;
94
94
  }, i), i;
95
95
  }
96
- function G({
96
+ function Q({
97
97
  account: r,
98
98
  credential: e,
99
99
  clientId: s,
100
100
  portal: t,
101
101
  redirectUri: i
102
102
  }) {
103
- const n = I(r.provider), a = O(r, t), o = i || L(r, t), c = new URLSearchParams({
103
+ const n = b(r.provider), a = I(r, t), o = i || v(r, t), c = new URLSearchParams({
104
104
  client_id: s,
105
105
  redirect_uri: o,
106
106
  parent: window.location.origin,
@@ -108,18 +108,18 @@ function G({
108
108
  force_login: "false",
109
109
  ...e.userId && { prepopulatedusername: e.userId },
110
110
  ...n === "social" && { socialLoginProviderName: r.provider },
111
- expiration: `${(e?.expires ?? Date.now() + b) - Date.now()}`
111
+ expiration: `${(e?.expires ?? Date.now() + y) - Date.now()}`
112
112
  });
113
113
  return `${a}?${c.toString()}`;
114
114
  }
115
- function I(r) {
116
- return Q(r) ? "social" : r === "enterprise" ? "enterprise" : r.includes("oidc") ? "oidc" : "default";
115
+ function b(r) {
116
+ return V(r) ? "social" : r === "enterprise" ? "enterprise" : r.includes("oidc") ? "oidc" : "default";
117
117
  }
118
- function Q(r) {
118
+ function V(r) {
119
119
  return ["apple", "facebook", "github", "google"].includes(r);
120
120
  }
121
- function O(r, e) {
122
- const s = h(r.orgUrlKey, e).toLowerCase(), t = I(r.provider);
121
+ function I(r, e) {
122
+ const s = h(r.orgUrlKey, e).toLowerCase(), t = b(r.provider);
123
123
  let i = "";
124
124
  switch (t) {
125
125
  case "social":
@@ -137,14 +137,14 @@ function O(r, e) {
137
137
  function h(r, e) {
138
138
  return r?.startsWith("https://") ? r : r && e.customBaseUrl ? `https://${r}.${e.customBaseUrl}` : `https://${e.portalHostname}`;
139
139
  }
140
- function L(r, e) {
140
+ function v(r, e) {
141
141
  return `${h(r.orgUrlKey, e)}/home/accountswitcher-callback.html`;
142
142
  }
143
- function V(r, e) {
143
+ function X(r, e) {
144
144
  return p.findCredential(h(r.orgUrlKey, e), r.username);
145
145
  }
146
- function X(r, e) {
147
- const s = V(r, e);
146
+ function Y(r, e) {
147
+ const s = X(r, e);
148
148
  if (s)
149
149
  return s;
150
150
  const t = h(r.orgUrlKey, e), i = `${t}/home/check_sign_in_status.html#state=${JSON.stringify({
@@ -152,25 +152,25 @@ function X(r, e) {
152
152
  server: t,
153
153
  orgKey: t
154
154
  })}`;
155
- Y(i, `iframe__for-${t}`);
155
+ Z(i, `iframe__for-${t}`);
156
156
  }
157
- function Y(r, e) {
157
+ function Z(r, e) {
158
158
  const s = document.createElement("iframe");
159
159
  s.src = r, s.id = e, s.style.display = "none", document.body.appendChild(s);
160
160
  }
161
- const y = 100;
162
- class Z extends x {
161
+ const S = 100;
162
+ class ee extends T {
163
163
  constructor() {
164
- super(), this.messages = R({ 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 = {
164
+ super(), this.messages = J({ 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 = {
165
165
  redirectToClientUri: !1,
166
166
  displaySignoutComplete: !1
167
- }, this.arcgisAccountSwitch = U(), this.arcgisClose = U(), this.arcgisSignoutComplete = U(), this.listenOn(window, "message", this.handleMessageEvent);
167
+ }, this.arcgisAccountSwitch = $(), this.arcgisClose = $(), this.arcgisSignoutComplete = $(), this.listenOn(window, "message", this.handleMessageEvent);
168
168
  }
169
169
  static {
170
170
  this.properties = { linkedAccounts: 16, userAccounts: 16, user: 16, credential: 16, alertOptions: 16, loading: 16, signedInStatus: 16, showAssociatedAccountsWarning: 16, signedInAccounts: 16, portal: 0, clientId: 1, redirectUri: 1, signout: 5, signoutOptions: 0 };
171
171
  }
172
172
  static {
173
- this.styles = N;
173
+ this.styles = E;
174
174
  }
175
175
  willUpdate(e) {
176
176
  if (e.has("portal") && (this.user = this.portal?.user), (e.has("portal") || e.has("user")) && this.portal && this.user) {
@@ -179,22 +179,22 @@ class Z extends x {
179
179
  }
180
180
  if (e.has("linkedAccounts") || e.has("signedInStatus")) {
181
181
  if (this.signout) {
182
- const { signedInStatus: s, linkedAccounts: t, portal: i, signoutOptions: n, clientId: a, user: o, redirectUri: c } = this, l = Object.keys(s).filter((A) => s[A] !== null).map((A) => t.find(($) => $.username === A));
182
+ const { signedInStatus: s, linkedAccounts: t, portal: i, signoutOptions: n, clientId: a, user: o, redirectUri: c } = this, l = Object.keys(s).filter((k) => s[k] !== null).map((k) => t.find((O) => O.username === k));
183
183
  this.remainingSignouts = l.length + 1;
184
184
  const u = h(i.urlKey ?? "", i), m = `${u}/sharing/rest`;
185
- let { displaySignoutComplete: g = !0, redirectToClientUri: f = !0 } = n;
186
- l.length > 0 && (g = !1, f = !1), this.loading = !0;
187
- const w = p.findCredential(u, o?.id || o?.username);
188
- S({
189
- displaySignoutComplete: g,
190
- redirectToClientUri: f,
185
+ let { displaySignoutComplete: f = !0, redirectToClientUri: g = !0 } = n;
186
+ l.length > 0 && (f = !1, g = !1), this.loading = !0;
187
+ const A = p.findCredential(u, o?.id || o?.username);
188
+ U({
189
+ displaySignoutComplete: f,
190
+ redirectToClientUri: g,
191
191
  clientId: a,
192
192
  config: { baseUrl: u, restBaseUrl: m },
193
- token: w?.token,
194
- clientUri: f ? c : void 0
193
+ token: A?.token,
194
+ clientUri: g ? c : void 0
195
195
  }), this.signoutHandle = window.setTimeout(() => {
196
- this.remainingSignouts -= 1, this.finishSignout({ accountOrigin: u, redirectToClientUri: f, displaySignoutComplete: g });
197
- }, j);
196
+ this.remainingSignouts -= 1, this.finishSignout({ accountOrigin: u, redirectToClientUri: g, displaySignoutComplete: f });
197
+ }, q);
198
198
  }
199
199
  return;
200
200
  }
@@ -236,30 +236,30 @@ class Z extends x {
236
236
  t && (this.user = void 0, this.credential = void 0, this.finishSignout({ accountOrigin: i, redirectToClientUri: n, displaySignoutComplete: a }));
237
237
  }
238
238
  handleSigninMessage(e) {
239
- const { messages: s, clientId: t } = this, { error: i, status: n, state: a, access_token: o, ssl: c } = e.data;
239
+ const { messages: s, clientId: t } = this, { error: i, status: n, state: a, access_token: o, ssl: c, expires_in: l } = e.data;
240
240
  if (i) {
241
241
  console.error(i), this.showAlert("danger", s.errors.signin);
242
242
  return;
243
243
  }
244
244
  if (n === "success") {
245
- const { portal: l, user: u, redirectUri: m } = this, g = this.linkedAccounts.find(($) => $.username === a.user);
246
- g?.orgUrlKey === this.portal.urlKey && p.findCredential(`https://${l.portalHostname}`, u?.username)?.destroy();
247
- const f = {
245
+ const { portal: u, user: m, redirectUri: f } = this, g = this.linkedAccounts.find((_) => _.username === a.user);
246
+ g?.orgUrlKey === this.portal.urlKey && p.findCredential(`https://${u.portalHostname}`, m?.username)?.destroy();
247
+ const A = {
248
248
  server: a.portalUrl,
249
249
  userId: a.user,
250
250
  token: o,
251
- expires: Number(e.data.expires_in) + Date.now(),
251
+ expires: Number(l) + Date.now(),
252
252
  ssl: c === void 0 || c !== "false"
253
253
  };
254
- p.registerToken(f);
255
- const w = G({
254
+ p.registerToken(A);
255
+ const k = Q({
256
256
  account: g,
257
- credential: f,
257
+ credential: A,
258
258
  clientId: t,
259
- portal: l,
260
- redirectUri: m
259
+ portal: u,
260
+ redirectUri: f
261
261
  });
262
- window.self !== window.top ? window.top?.postMessage({ type: "navigate", url: w }) : window.location.href = w;
262
+ window.self !== window.top ? window.top?.postMessage({ type: "navigate", url: k }) : this.arcgisAccountSwitch.emit({ account: g, finishUrl: k });
263
263
  }
264
264
  }
265
265
  handleCheckSignInStatusMessage(e) {
@@ -279,10 +279,10 @@ class Z extends x {
279
279
  return;
280
280
  }
281
281
  if (o.find((u) => u.username === t)) {
282
- this.showAlert("danger", k(c.errors.alreadyLinked, { username: t }));
282
+ this.showAlert("danger", w(c.errors.alreadyLinked, { username: t }));
283
283
  return;
284
284
  }
285
- const l = await E(n, t, i);
285
+ const l = await H(n, t, i);
286
286
  if (l?.length) {
287
287
  this.userAccounts = l, this.targetUser = t ?? "", this.targetToken = i ?? "", this.showAssociatedAccountsWarning = !0;
288
288
  return;
@@ -295,10 +295,10 @@ class Z extends x {
295
295
  if (s.error)
296
296
  console.error(s);
297
297
  else if (s.status === "success" && this.targetUser) {
298
- const { portal: t, linkedAccounts: i, targetUser: n, clientId: a } = this, o = i.find((g) => g.username === n);
298
+ const { portal: t, linkedAccounts: i, targetUser: n, clientId: a } = this, o = i.find((f) => f.username === n);
299
299
  if (!o)
300
300
  return;
301
- const c = L(o, t), l = h(o.orgUrlKey, t), u = new URLSearchParams({
301
+ const c = v(o, t), l = h(o.orgUrlKey, t), u = new URLSearchParams({
302
302
  // eslint-disable-next-line @typescript-eslint/naming-convention
303
303
  response_type: "token",
304
304
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -306,7 +306,7 @@ class Z extends x {
306
306
  // eslint-disable-next-line @typescript-eslint/naming-convention
307
307
  redirect_uri: c,
308
308
  state: JSON.stringify({ user: o.username, portalUrl: l })
309
- }), m = `${O(o, t)}?${u.toString()}`;
309
+ }), m = `${I(o, t)}?${u.toString()}`;
310
310
  window.opener ? (window.opener.location.href = m, window.close()) : window.location.href = m;
311
311
  }
312
312
  }
@@ -319,41 +319,41 @@ class Z extends x {
319
319
  this.linkedAccounts = [], this.loading = !1;
320
320
  return;
321
321
  }
322
- this.linkedAccounts = await H(this.portal, this.user), this.linkedAccounts.length && (this.signedInStatus = this.linkedAccounts.filter((e) => e.orgUrlKey !== this.portal.urlKey).reduce((e, s) => (e[s.username] = X(s, this.portal) ?? null, e), {}), this.accountAccess = F({ accounts: this.linkedAccounts, clientId: this.clientId })), this.loading = !1;
322
+ this.linkedAccounts = await P(this.portal, this.user), this.linkedAccounts.length && (this.signedInStatus = this.linkedAccounts.filter((e) => e.orgUrlKey !== this.portal.urlKey).reduce((e, s) => (e[s.username] = Y(s, this.portal) ?? null, e), {}), this.accountAccess = G({ accounts: this.linkedAccounts, clientId: this.clientId })), this.loading = !1;
323
323
  }
324
324
  async linkAccount(e, s) {
325
325
  const { portal: t, user: i } = this;
326
326
  if (!t || !i)
327
327
  return;
328
- const n = await P({ portal: t, user: i, targetUser: e, targetToken: s }), { messages: a } = this;
328
+ const n = await W({ portal: t, user: i, targetUser: e, targetToken: s }), { messages: a } = this;
329
329
  if (n.error) {
330
- this.showAlert("danger", k(a.errors.linkAccount, { username: e })), this.targetUser = "", this.userAccounts = [];
330
+ this.showAlert("danger", w(a.errors.linkAccount, { username: e })), this.targetUser = "", this.userAccounts = [];
331
331
  return;
332
332
  }
333
333
  const o = this.userAccounts?.length ? a.success.linkAccountMultiple : a.success.linkAccount;
334
- this.showAlert("success", k(o, { username: e })), this.targetUser = "", this.userAccounts = [], await B(350), this.findLinkedUsers();
334
+ this.showAlert("success", w(o, { username: e })), this.targetUser = "", this.userAccounts = [], await R(350), this.findLinkedUsers();
335
335
  }
336
336
  async unlinkAccount(e) {
337
337
  if (!this.portal || !this.user)
338
338
  return;
339
- const { messages: s, portal: t, user: i } = this, { success: n } = await W({ portal: t, user: i, linkedUsername: e.username });
340
- n ? this.showAlert("success", k(s.success.unlinkAccount, { username: e.username })) : this.showAlert("danger", k(s.errors.unlinkAccount, { username: e.username })), await this.findLinkedUsers();
339
+ const { messages: s, portal: t, user: i } = this, { success: n } = await B({ portal: t, user: i, linkedUsername: e.username });
340
+ n ? this.showAlert("success", w(s.success.unlinkAccount, { username: e.username })) : this.showAlert("danger", w(s.errors.unlinkAccount, { username: e.username })), await this.findLinkedUsers();
341
341
  }
342
342
  startAccountLink() {
343
- q(this.portal);
343
+ z(this.portal);
344
344
  }
345
345
  switchAccount(e) {
346
346
  const { portal: s, user: t, clientId: i } = this;
347
347
  if (!s || !t || !e)
348
348
  return;
349
349
  const n = h(t.sourceJSON.orgUrlKey ?? "", s), a = p.findCredential(n, t.id || t.username);
350
- a && S({ config: { baseUrl: n, restBaseUrl: `${n}/sharing/rest` }, token: a?.token, clientId: i }), z(e, s, i);
350
+ a && U({ config: { baseUrl: n, restBaseUrl: `${n}/sharing/rest` }, token: a?.token, clientId: i }), F(e, s, i);
351
351
  }
352
352
  signoutAll(e) {
353
353
  const { portal: s, signedInStatus: t, clientId: i } = this;
354
354
  e.forEach((n) => {
355
355
  const a = h(n.orgUrlKey, s), o = `${a}/sharing/rest`, c = t[n.username];
356
- S({ config: { baseUrl: a, restBaseUrl: o }, token: c?.token, clientId: i });
356
+ U({ config: { baseUrl: a, restBaseUrl: o }, token: c?.token, clientId: i });
357
357
  });
358
358
  }
359
359
  showAlert(e, s, t) {
@@ -395,20 +395,20 @@ class Z extends x {
395
395
  }
396
396
  return d`<calcite-dialog .heading=${n.switchAccounts} heading-level=2 scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${() => {
397
397
  this.arcgisClose.emit();
398
- }}><calcite-block .heading=${n.currentAccount} heading-level=3 .description=${n.signedInAs} expanded class="current-account-block" tabindex=-1>${v(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=${D(t, i) ?? void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${e.length > 0 ? d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 .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 >= y}>${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) => {
398
+ }}><calcite-block .heading=${n.currentAccount} heading-level=3 .description=${n.signedInAs} expanded class="current-account-block" tabindex=-1>${x(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} heading-level=3 .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 >= S}>${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) => {
399
399
  this.switchAccount(o.detail.account);
400
400
  }} @arcgisAccountUnlink=${(o) => {
401
401
  this.showUnlinkConfirmation(o.detail.account);
402
- }}></arcgis-portal-account-switcher-list></calcite-block>` : d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 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>${K`<path d=${J.couple ?? M} 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 >= y}>${n.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${e.length >= y}><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=${() => {
402
+ }}></arcgis-portal-account-switcher-list></calcite-block>` : d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 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>${N`<path d=${D.couple ?? K} 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 >= S}>${n.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${e.length >= S}><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=${() => {
403
403
  this.alertOptions = void 0;
404
- }}>${this.alertOptions?.title && d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>` || ""}${this.alertOptions?.message && d`<p slot=message class=${T({ "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=${() => {
404
+ }}>${this.alertOptions?.title && d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>` || ""}${this.alertOptions?.message && d`<p slot=message class=${M({ "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=${() => {
405
405
  this.linkAccount(this.targetUser, this.targetToken);
406
406
  }} @arcgisCloseDialog=${() => {
407
407
  this.showAssociatedAccountsWarning = !1;
408
408
  }}></arcgis-portal-account-switcher-accounts>` || ""}`;
409
409
  }
410
410
  }
411
- C("arcgis-portal-account-switcher", Z);
411
+ C("arcgis-portal-account-switcher", ee);
412
412
  export {
413
- Z as ArcgisPortalAccountSwitcher
413
+ ee as ArcgisPortalAccountSwitcher
414
414
  };
@@ -2,14 +2,14 @@ import "@esri/calcite-components/components/calcite-chip";
2
2
  import "@esri/calcite-components/components/calcite-tooltip";
3
3
  import "@esri/calcite-components/components/calcite-list-item";
4
4
  import "@esri/calcite-components/components/calcite-action";
5
+ import "../arcgis-portal-item-type/index.js";
6
+ import "@esri/calcite-components/components/calcite-button";
7
+ import "@esri/calcite-components/components/calcite-list";
8
+ import "@esri/calcite-components/components/calcite-input";
5
9
  import "@esri/calcite-components/components/calcite-icon";
6
10
  import "@esri/calcite-components/components/calcite-popover";
7
- import "@esri/calcite-components/components/calcite-list";
8
- import "../arcgis-portal-item-type/index.js";
9
11
  import "@esri/calcite-components/components/calcite-loader";
10
- import "@esri/calcite-components/components/calcite-button";
11
12
  import "@esri/calcite-components/components/calcite-dropdown-item";
12
- import "@esri/calcite-components/components/calcite-input";
13
13
  import "@esri/calcite-components/components/calcite-dropdown";
14
14
  import "../arcgis-portal-user-avatar/index.js";
15
15
  import "@esri/calcite-components/components/calcite-dropdown-group";