@esri/solutions-components 1.2.0-next.170 → 1.2.0-next.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{Z5PB2GOW.js → 27SXLOYO.js} +1 -1
- package/dist/cdn/{UN4QHPCM.js → 4JYAHYSB.js} +1 -1
- package/dist/cdn/{U2FD6RFU.js → 4MVZOALG.js} +1 -1
- package/dist/cdn/{YFLYHPA6.js → 5BN5PLBZ.js} +2 -2
- package/dist/cdn/{HCRCP6KN.js → 5ZPWI7UO.js} +1 -1
- package/dist/cdn/{NRKNJXAQ.js → 74CNKTNB.js} +1 -1
- package/dist/cdn/{QCDP3DKE.js → 7IDQSTH6.js} +1 -1
- package/dist/cdn/{2SZKHTPC.js → 7SWL6QHO.js} +1 -1
- package/dist/cdn/{GMMSJ5Q4.js → A3DG3JY4.js} +1 -1
- package/dist/cdn/{F7AUJLBP.js → AF67Y5BV.js} +1 -1
- package/dist/cdn/{3CQKFKEK.js → BCYECXV5.js} +1 -1
- package/dist/cdn/{X22C5ANH.js → BDVHABZX.js} +1 -1
- package/dist/cdn/EIWICV5Z.js +84 -0
- package/dist/cdn/{2NELDSSV.js → F3FLECDE.js} +1 -1
- package/dist/cdn/{VIXMGIRH.js → FDGOSCWU.js} +1 -1
- package/dist/cdn/{KYROITG2.js → FFKCZ7C4.js} +2 -2
- package/dist/cdn/{YDFVDQAV.js → FMBYXSYS.js} +1 -1
- package/dist/cdn/{TNKBHEPU.js → H46OUFY6.js} +1 -1
- package/dist/cdn/HBLHST33.js +71 -0
- package/dist/cdn/{XLDH3RFW.js → IJCGEEN7.js} +1 -1
- package/dist/cdn/{OTQC3GBA.js → LXBIV3WP.js} +1 -1
- package/dist/cdn/{2LHLMWRB.js → MBT6NAY3.js} +1 -1
- package/dist/cdn/{54R4HFPD.js → MOGCNHOR.js} +1 -1
- package/dist/cdn/{RRCINHTU.js → MQ3SJVZH.js} +1 -1
- package/dist/cdn/MSHZE73Y.js +107 -0
- package/dist/cdn/{7LOKKH5S.js → NB5E6ULD.js} +1 -1
- package/dist/cdn/{MI3DGRKT.js → NS2SRZUB.js} +1 -1
- package/dist/cdn/{2OFTJJ6V.js → OMNHXXSR.js} +1 -1
- package/dist/cdn/{XCWRZEQ4.js → SEHX6TXB.js} +1 -1
- package/dist/cdn/{7Y2SX5Z3.js → SYNRPEWR.js} +1 -1
- package/dist/cdn/{MITVRON5.js → U6EHKFOT.js} +1 -1
- package/dist/cdn/{VS55ZNDJ.js → UH43HYT7.js} +1 -1
- package/dist/cdn/{WE43YFKO.js → UW4N62G7.js} +1 -1
- package/dist/cdn/{IMVJT6BJ.js → VQL25LKW.js} +1 -1
- package/dist/cdn/{HE7XA5HU.js → WY27JZWW.js} +1 -1
- package/dist/cdn/XV2A7MTV.js +136 -0
- package/dist/cdn/{RHCEUDFU.js → YKUPXKCH.js} +2 -2
- package/dist/cdn/{QHAEHGX2.js → ZAV5W2PD.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/interfaces.js +30 -25
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -6
- package/dist/components/solutions-all-shell/customElement.js +2 -1
- package/dist/components/solutions-deploy-app/customElement.js +2 -7
- package/dist/components/solutions-deployed-panel/customElement.js +2 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +2 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +22 -21
- package/dist/solutions-components_commit.txt +5 -5
- package/dist/utils/interfaces.d.ts +6 -0
- package/package.json +1 -1
- package/dist/cdn/6PIEXXH4.js +0 -136
- package/dist/cdn/IVTTTYHQ.js +0 -71
- package/dist/cdn/JPRTR5CD.js +0 -107
- package/dist/cdn/OZRR6BUS.js +0 -84
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./7IDQSTH6.js";import b from"./4MVZOALG.js";import a from"./5BN5PLBZ.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,{b:o}])=>{return o},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./NB5E6ULD.js";import c from"./5ZPWI7UO.js";import b from"./4MVZOALG.js";import a from"./5BN5PLBZ.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,a])=>{return a},a,b,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./5BN5PLBZ.js";import{ka as u,nb as l,nc as f}from"./TRGFYBOH.js";import{u as c}from"./3GWWHA4S.js";export default $arcgis.t(([,{m:m}])=>{function D(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function I(e){return e?f(e,{}).then(t=>Promise.resolve(!!t)):Promise.resolve(!1)}async function x(e,t){let r=t,n=await r.getUsername(),d={q:new c().match(e).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:r},h=(await l(d)).results.map(i=>i.title),{folders:p}=await u(r),w=p.map(i=>i.title),a=[...h,...w].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),y=a.filter(i=>i===o),v=a.filter(i=>i.startsWith(o));return{conflictingNames:y,similiarNames:v}}async function C(e,t){return E(e)?{status:!1,type:"empty"}:S(e)?{status:!1,type:"exceed length"}:T(e,"folder")?{status:!1,type:"special character"}:(await x(e.trim(),t)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function E(e){return e.length<=0}function S(e){return e.length>m}function T(e,t){return(t==="item"?/[><~`$^+=|]/u:/[/<>]/u).test(e)}function U(e){if(e){let t=e.trim();return t?"<div>"+t+"</div>":""}else return""}function q(e){let t="",r="?";return e.forEach(n=>{n.k&&n.v&&(t+=r+n.k+"="+n.v,r="&")}),t}function b(e,t,r,n){let s="";return t?s=n+"/sharing/rest/content/items/"+e+"/info/"+t+q([{k:"w",v:"400"}]):s=r,s}function A(e){let t=e?e.replace("https://","").replace("www.",""):"";return t.endsWith("devext.arcgis.com")||t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?e??"https://www.arcgis.com":"https://www.arcgis.com"}function M(e,t,r){return t.some(n=>n.wkid===e?(r=n.defaultExtent,!0):!1),r}function B(e,t){return g(t||e)}function F(e,t="en"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function O(e,t){let r="";return e.some(n=>n.startsWith(t)?(r=n.substring(t.length),!0):!1),r}function g(e){let t=e.replace("www.","");return t.endsWith("devext.arcgis.com")?"dev":t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?"qa":t==="arcgis.com"||t.endsWith(".arcgis.com")?"prod":"dev"}function _(e,t){let r=e?.reduce((n,s)=>(n.indexOf(s.id)<0&&n.push(s.id),n),[])||[];return t?r.sort((n,s)=>t.indexOf(n)-t.indexOf(s)):r}function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}function V(e){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[e]||e}function j(e){if(!e)return"Unknown error";if(e.message)return e.message;try{let t=JSON.stringify(e);return t&&t!=="{}"?t:e.toString()}catch{return e.toString()}}function z(e){return e?parseFloat(((Date.now()-e)/1e3).toFixed(2)):0}return{a:D,b:I,c:x,d:C,e:T,f:U,g:q,h:b,i:A,j:M,k:B,l:F,m:O,n:_,o:G,p:V,q:j,r:z}},"intl",a)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{b as D}from"./W4YXXJAS.js";import{b as I}from"./77CU4WA2.js";import{oa as R,qa as v,sa as
|
|
2
|
+
import{b as D}from"./W4YXXJAS.js";import{b as I}from"./77CU4WA2.js";import{oa as R,qa as v,sa as N}from"./TRGFYBOH.js";import{a as S}from"./6S75SIVV.js";import{b as A}from"./ABSRNM72.js";import{F as m,G as f,H as O,J as _,L as h,h as b,i as r,j as y,r as w}from"./5CQPQ7AE.js";export default $arcgis.t(([])=>{var x=b`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -185,4 +185,4 @@ img {
|
|
|
185
185
|
|
|
186
186
|
.cursor-default {
|
|
187
187
|
cursor: default;
|
|
188
|
-
}`;async function $(i,e){let t=await L(i,e);if(!t)throw new Error(`Solution ${i} was not found`);let a=e?.portal.replace("/sharing/rest","")??"https://www.arcgis.com",s=[];if(t.templates[0].item)s=t.templates.map(n=>({id:n.itemId,title:n.item.title,type:n.item.type,typeKeywords:n.item.typeKeywords,dependencies:n.dependencies,snippet:n.item.snippet}));else{let n=t.templates.map(o=>o.type==="Group"?R(o.itemId,e):v(o.itemId,e));s=(await Promise.allSettled(n)).filter(o=>o.status==="fulfilled").map(o=>o.value).map((o,u)=>{let d=typeof o.type>"u"?"group":"item";return{id:o.id,title:o.title,type:o.type??"Group",typeKeywords:o.typeKeywords,dependencies:t.templates[u].dependencies,snippet:o.snippet,url:`${a}/home/${d}.html?id=${o.id}`}})}return s}function he(i,e,t){let a=i.templates.map(u=>u.type),s=[];s.push(V),a.indexOf("Group")>=0&&(s.push(N),s.push(C)),a.indexOf("Feature Service")>=0&&s.push(k);let n=a.indexOf("Feed")>-1;n&&s.push(Y);let c=a.indexOf("Big Data Analytic")>-1;c&&s.push(W);let p=a.indexOf("Real Time Analytic")>-1;p&&s.push(q),(n||c||p)&&s.push(ee),a.indexOf("Workflow")>-1&&(s.push(N),s.push(k),s.push(C),s.push(te)),a.indexOf("Geoprocessing Service")>-1&&(s.push(z),t.IsEnterprisePortal&&s.push(J));let o=i.templates.reduce((u,d)=>u.concat(d.item.typeKeywords||[]),[]);return U(s,o,t),B(s,e),G(s,i),s}function G(i,e){e.templates.some(t=>t.type==="Group"&&t.item?.membershipAccess==="collaboration")&&i.push(F)}function U(i,e,t){let a=M(t),s=K(t);["Location Tracking View"].some(c=>e.indexOf(c)>-1)&&(!a&&!s?i.push(X):a&&!s?i.push(Q):!a&&s&&i.push(Z))}function B(i,e){["HubPremium"].some(a=>e.indexOf(a)>-1)&&i.push(j)}function M(i){let e=i.PortalUserSubset;return e?.role==="org_admin"&&!e?.hasOwnProperty("roleId")}function K(i){return i.PortalSubset?.locationTrackingEnabled||!1}function ge(i,e){let t={leadingMessages:[],bulletedMessages:[],trailingMessages:[]},a=[l.NOTEBOOK,l.VELOCITY,l.HUBPREMIUM,l.WORKFLOW,l.TRACKINGBASE],s=g(i,e,l.VELOCITY);s&&t.leadingMessages.push(s);let n=g(i,e,l.NOTEBOOK);n&&t.leadingMessages.push(n);let c=g(i,e,l.HUBPREMIUM);c&&t.leadingMessages.push(c);let p=g(i,e,l.WORKFLOW);p&&t.leadingMessages.push(p),e=e.filter(d=>a.indexOf(d)<0),e.forEach(d=>{t.bulletedMessages.push(P(i,d))});let o=g(i,e,l.TRACKINGBASE);return o&&t.trailingMessages.push(o),(t.leadingMessages.length>0||t.trailingMessages.length>0||t.bulletedMessages.length>0)&&t.trailingMessages.push(i.missingPrivilegesPopup.suggestedProblemRemedyMessage),t}function g(i,e,t){return e.filter(s=>s.includes(t)).length>0?P(i,t):""}function P(i,e){let t=i.missingPrivilegesPopup.requiredPrivilegesList,a="";switch(e){case"portal:user:createItem":a=t.createItem;break;case"portal:publisher:publishFeatures":a=t.publishFeatures;break;case"portal:user:createGroup":a=t.createGroup;break;case"portal:user:shareToGroup":a=t.shareToGroup;break;case"portal:user:addExternalMembersToGroup":a=t.addMembers;break;case"portal:publisher:publishFeeds":a=t.publishFeeds;break;case"portal:publisher:publishBigDataAnalytics":a=t.publishBigDataAnalytics;break;case"portal:publisher:publishRealTimeAnalytics":a=t.publishRealTimeAnalytics;break;case"solutions:locationtracking:admin:tracking":a=t.requiresLocationTrackingAndAdmin;break;case"solutions:locationtracking:tracking":a=t.requiresLocationTracking;break;case"solutions:locationtracking:admin":a=t.requiresAdmin;break;case"solutions:hubPremium":a=t.hubPremium;break;case"solutions:workflowManager":a=t.workflowManager;break;case"solutions:velocity":a=t.velocity;break;case"solutions:notebook":a=t.requiresNotebookServer;break;case"portal:publisher:publishServerGPServices":a=t.publishGPServices;break;case"writable:Enterprise":a=t.writableEnterprise;break;case"writable:Online":a=t.writableOnline.replace("{{url}}","https://status.arcgis.com");break}return a}var b=class extends _{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.diagramKey="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._translations=S({name:"solution-deployed-card",blocking:!0}),this._configContextConsumer=I({context:D,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||M(e.authentication))}}),this._deleteDialogRef=m(),this._diagramDialogRef=m(),this._isOrgAdmin=!1,this.deployedCardSelected=w()}static{this.properties={allowDelete:[5,{},{type:Boolean}],card:[0,{},{attribute:!1}],deployedDate:1,description:1,diagramKey:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_isDeleteOpen:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],templateInfoGraph:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=x}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}render(){return r`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner!==""&&this._getOwnerLabel()||""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){let e=this._configContextConsumer.value?.userSession;return r`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading??h} class="thumbnail card-image" src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return r`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return r`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${y`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return r`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution??h} dropdown-label=${this._translations.moreActions??h} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${s=>s.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??h} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item><calcite-dropdown-item .disabled=${!t} icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async()=>{this.templateInfos=await this._processTemplates(this.card),this._configureTitlesOpen=!0}}>${this._translations.renameItems}</calcite-dropdown-item>${this.allowDelete&&r`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group><calcite-tooltip class=${A(a)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?r`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} source="Card Dropdown" ${f(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?r`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??h} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l ${f(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?r`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e}),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this.deployedCardSelected.emit({card:this.card,cardRef:this.el})}async _viewDiagram(e){e.stopPropagation(),this.card&&(this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card.title||"",this.card.deployCommonId||"",this.card.deployVersion||"","Card Dropdown"]}),this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let t=this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;t&&window.open(`${t}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await $(e.id,this._configContextConsumer.value.userSession)}};O("solution-deployed-card",b);var me=500,fe={AEC:"Architecture, Engineering, and Construction (AEC)",AIRPORTPORTRAIL:"Airports, Ports, and Rails",BUSINESS:"Business",CONSERVATION:"Conservation",DEFENSE:"Defense",FACILITIES:"Facilities",HEALTHANDHUMANSERVICES:"Health and Human Services",PIPELINE:"Pipeline",PUBLICSAFETY:"Public Safety",RENEWABLES:"Renewables",STATEANDLOCALGOVERNMENT:"State and Local Government",TELECOMMUNICATIONS:"Telecommunications",UTILITIES:"Utilities"},Te={AIRPORT:"Airports",AGRICULTURE:"Agriculture",ASSESSMENTANDTAXATION:"Assessment and Taxation",DISTRICTENERGY:"District Energy",ELECTIONS:"Elections",ELECTRIC:"Electric",EMERGENCYMANAGEMENT:"Emergency Management",ENVIRONMENTANDNATURALRESOURCES:"Environment and Natural Resources",FIRESERVICE:"Fire Service",FISHANDWILDLIFE:"Fish and Wildlife",GAS:"Gas",HEALTHANDHUMANSERVICES:"Health and Human Services",LAWENFORCEMENT:"Law Enforcement",NATURALRESOURCES:"Natural Resources",PARKS:"Parks",PLANNINGANDDEVELOPMENT:"Planning and Development",PROTECTEDAREAS:"Protected Areas",PUBLICWORKS:"Public Works",SEWER:"Sewer",STORMWATER:"Stormwater",TELECOMMUNICATIONS:"Telecommunications",TRANSPORTATION:"Transportation",WATER:"Water Distribution"},l=(i=>(i.HUBPREMIUM="solutions:hubPremium",i.NOTEBOOK="solutions:notebook",i.TRACKINGBASE="solutions:locationtracking",i.TRACKING="solutions:locationtracking:tracking",i.TRACKINGADMIN="solutions:locationtracking:admin",i.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",i.VELOCITY="solutions:velocity",i.WORKFLOW="solutions:workflowManager",i))(l||{}),H=(i=>(i.VELOCITYBIGDATA="portal:publisher:publishBigDataAnalytics",i.VELOCITYFEEDS="portal:publisher:publishFeeds",i.VELOCITYREALTIME="portal:publisher:publishRealTimeAnalytics",i))(H||{}),be='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',Ee="(typekeywords:Solution,Template)",F="portal:user:addExternalMembersToGroup",V="portal:user:createItem",N="portal:user:createGroup",W="portal:publisher:publishBigDataAnalytics",k="portal:publisher:publishFeatures",Y="portal:publisher:publishFeeds",z="portal:publisher:publishServerGPServices",q="portal:publisher:publishRealTimeAnalytics",C="portal:user:shareToGroup",j="solutions:hubPremium",J="solutions:notebook",X="solutions:locationtracking:admin:tracking",Q="solutions:locationtracking:tracking",Z="solutions:locationtracking:admin",ee="solutions:velocity",te="solutions:workflowManager",ye=250,T={SOLUTION_DETAILS:"Solution Details",GLOBAL_NAVIGATION:"Global Nav",ALL_SOLUTIONS:"Solutions",DEPLOYMENTS:"Deployments",ASSISTANT:"Assistant",RESOURCES:"Resources"};return{a:$,b:he,c:M,d:ge,e:b,f:me,g:fe,h:Te,i:l,j:H,k:be,l:Ee,m:ye,n:T}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
|
|
188
|
+
}`;async function $(i,e){let t=await N(i,e);if(!t)throw new Error(`Solution ${i} was not found`);let a=e?.portal.replace("/sharing/rest","")??"https://www.arcgis.com",s=[];if(t.templates[0].item)s=t.templates.map(n=>({id:n.itemId,title:n.item.title,type:n.item.type,typeKeywords:n.item.typeKeywords,dependencies:n.dependencies,snippet:n.item.snippet}));else{let n=t.templates.map(o=>o.type==="Group"?R(o.itemId,e):v(o.itemId,e));s=(await Promise.allSettled(n)).filter(o=>o.status==="fulfilled").map(o=>o.value).map((o,u)=>{let d=typeof o.type>"u"?"group":"item";return{id:o.id,title:o.title,type:o.type??"Group",typeKeywords:o.typeKeywords,dependencies:t.templates[u].dependencies,snippet:o.snippet,url:`${a}/home/${d}.html?id=${o.id}`}})}return s}function he(i,e,t){let a=i.templates.map(u=>u.type),s=[];s.push(V),a.indexOf("Group")>=0&&(s.push(L),s.push(C)),a.indexOf("Feature Service")>=0&&s.push(k);let n=a.indexOf("Feed")>-1;n&&s.push(z);let c=a.indexOf("Big Data Analytic")>-1;c&&s.push(W);let p=a.indexOf("Real Time Analytic")>-1;p&&s.push(q),(n||c||p)&&s.push(ee),a.indexOf("Workflow")>-1&&(s.push(L),s.push(k),s.push(C),s.push(te)),a.indexOf("Geoprocessing Service")>-1&&(s.push(Y),t.IsEnterprisePortal&&s.push(J));let o=i.templates.reduce((u,d)=>u.concat(d.item.typeKeywords||[]),[]);return U(s,o,t),B(s,e),G(s,i),s}function G(i,e){e.templates.some(t=>t.type==="Group"&&t.item?.membershipAccess==="collaboration")&&i.push(F)}function U(i,e,t){let a=M(t),s=K(t);["Location Tracking View"].some(c=>e.indexOf(c)>-1)&&(!a&&!s?i.push(X):a&&!s?i.push(Q):!a&&s&&i.push(Z))}function B(i,e){["HubPremium"].some(a=>e.indexOf(a)>-1)&&i.push(j)}function M(i){let e=i.PortalUserSubset;return e?.role==="org_admin"&&!e?.hasOwnProperty("roleId")}function K(i){return i.PortalSubset?.locationTrackingEnabled||!1}function ge(i,e){let t={leadingMessages:[],bulletedMessages:[],trailingMessages:[]},a=[l.NOTEBOOK,l.VELOCITY,l.HUBPREMIUM,l.WORKFLOW,l.TRACKINGBASE],s=g(i,e,l.VELOCITY);s&&t.leadingMessages.push(s);let n=g(i,e,l.NOTEBOOK);n&&t.leadingMessages.push(n);let c=g(i,e,l.HUBPREMIUM);c&&t.leadingMessages.push(c);let p=g(i,e,l.WORKFLOW);p&&t.leadingMessages.push(p),e=e.filter(d=>a.indexOf(d)<0),e.forEach(d=>{t.bulletedMessages.push(P(i,d))});let o=g(i,e,l.TRACKINGBASE);return o&&t.trailingMessages.push(o),(t.leadingMessages.length>0||t.trailingMessages.length>0||t.bulletedMessages.length>0)&&t.trailingMessages.push(i.missingPrivilegesPopup.suggestedProblemRemedyMessage),t}function g(i,e,t){return e.filter(s=>s.includes(t)).length>0?P(i,t):""}function P(i,e){let t=i.missingPrivilegesPopup.requiredPrivilegesList,a="";switch(e){case"portal:user:createItem":a=t.createItem;break;case"portal:publisher:publishFeatures":a=t.publishFeatures;break;case"portal:user:createGroup":a=t.createGroup;break;case"portal:user:shareToGroup":a=t.shareToGroup;break;case"portal:user:addExternalMembersToGroup":a=t.addMembers;break;case"portal:publisher:publishFeeds":a=t.publishFeeds;break;case"portal:publisher:publishBigDataAnalytics":a=t.publishBigDataAnalytics;break;case"portal:publisher:publishRealTimeAnalytics":a=t.publishRealTimeAnalytics;break;case"solutions:locationtracking:admin:tracking":a=t.requiresLocationTrackingAndAdmin;break;case"solutions:locationtracking:tracking":a=t.requiresLocationTracking;break;case"solutions:locationtracking:admin":a=t.requiresAdmin;break;case"solutions:hubPremium":a=t.hubPremium;break;case"solutions:workflowManager":a=t.workflowManager;break;case"solutions:velocity":a=t.velocity;break;case"solutions:notebook":a=t.requiresNotebookServer;break;case"portal:publisher:publishServerGPServices":a=t.publishGPServices;break;case"writable:Enterprise":a=t.writableEnterprise;break;case"writable:Online":a=t.writableOnline.replace("{{url}}","https://status.arcgis.com");break}return a}var E=class extends O{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.diagramKey="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._translations=S({name:"solution-deployed-card",blocking:!0}),this._configContextConsumer=I({context:D,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||M(e.authentication))}}),this._deleteDialogRef=m(),this._diagramDialogRef=m(),this._isOrgAdmin=!1,this.deployedCardSelected=w()}static{this.properties={allowDelete:[5,{},{type:Boolean}],card:[0,{},{attribute:!1}],deployedDate:1,description:1,diagramKey:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_isDeleteOpen:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],templateInfoGraph:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=x}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}render(){return r`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner!==""&&this._getOwnerLabel()||""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){let e=this._configContextConsumer.value?.userSession;return r`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading??h} class="thumbnail card-image" src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return r`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return r`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${y`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return r`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution??h} dropdown-label=${this._translations.moreActions??h} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${s=>s.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??h} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item><calcite-dropdown-item .disabled=${!t} icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async()=>{this.templateInfos=await this._processTemplates(this.card),this._configureTitlesOpen=!0}}>${this._translations.renameItems}</calcite-dropdown-item>${this.allowDelete&&r`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group><calcite-tooltip class=${_(a)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?r`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} source="Card Dropdown" ${f(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?r`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??h} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l ${f(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?r`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e}),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this.deployedCardSelected.emit({card:this.card,cardRef:this.el})}async _viewDiagram(e){e.stopPropagation(),this.card&&(this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card.title||"",this.card.deployCommonId||"",this.card.deployVersion||"","Card Dropdown"]}),this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:T.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Card Dropdown"]}),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let t=this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;t&&window.open(`${t}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await $(e.id,this._configContextConsumer.value.userSession)}};A("solution-deployed-card",E);var me=500,fe={AEC:"Architecture, Engineering, and Construction (AEC)",AIRPORTPORTRAIL:"Airports, Ports, and Rails",BUSINESS:"Business",CONSERVATION:"Conservation",DEFENSE:"Defense",FACILITIES:"Facilities",HEALTHANDHUMANSERVICES:"Health and Human Services",PIPELINE:"Pipeline",PUBLICSAFETY:"Public Safety",RENEWABLES:"Renewables",STATEANDLOCALGOVERNMENT:"State and Local Government",TELECOMMUNICATIONS:"Telecommunications",UTILITIES:"Utilities"},Te={AIRPORT:"Airports",AGRICULTURE:"Agriculture",ASSESSMENTANDTAXATION:"Assessment and Taxation",DISTRICTENERGY:"District Energy",ELECTIONS:"Elections",ELECTRIC:"Electric",EMERGENCYMANAGEMENT:"Emergency Management",ENVIRONMENTANDNATURALRESOURCES:"Environment and Natural Resources",FIRESERVICE:"Fire Service",FISHANDWILDLIFE:"Fish and Wildlife",GAS:"Gas",HEALTHANDHUMANSERVICES:"Health and Human Services",LAWENFORCEMENT:"Law Enforcement",NATURALRESOURCES:"Natural Resources",PARKS:"Parks",PLANNINGANDDEVELOPMENT:"Planning and Development",PROTECTEDAREAS:"Protected Areas",PUBLICWORKS:"Public Works",SEWER:"Sewer",STORMWATER:"Stormwater",TELECOMMUNICATIONS:"Telecommunications",TRANSPORTATION:"Transportation",WATER:"Water Distribution"},l=(i=>(i.HUBPREMIUM="solutions:hubPremium",i.NOTEBOOK="solutions:notebook",i.TRACKINGBASE="solutions:locationtracking",i.TRACKING="solutions:locationtracking:tracking",i.TRACKINGADMIN="solutions:locationtracking:admin",i.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",i.VELOCITY="solutions:velocity",i.WORKFLOW="solutions:workflowManager",i))(l||{}),H=(i=>(i.VELOCITYBIGDATA="portal:publisher:publishBigDataAnalytics",i.VELOCITYFEEDS="portal:publisher:publishFeeds",i.VELOCITYREALTIME="portal:publisher:publishRealTimeAnalytics",i))(H||{}),Ee='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',be="(typekeywords:Solution,Template)",F="portal:user:addExternalMembersToGroup",V="portal:user:createItem",L="portal:user:createGroup",W="portal:publisher:publishBigDataAnalytics",k="portal:publisher:publishFeatures",z="portal:publisher:publishFeeds",Y="portal:publisher:publishServerGPServices",q="portal:publisher:publishRealTimeAnalytics",C="portal:user:shareToGroup",j="solutions:hubPremium",J="solutions:notebook",X="solutions:locationtracking:admin:tracking",Q="solutions:locationtracking:tracking",Z="solutions:locationtracking:admin",ee="solutions:velocity",te="solutions:workflowManager",ye=250,T={SOLUTION_DETAILS:"Solution Details",GLOBAL_NAVIGATION:"Global Nav",ALL_SOLUTIONS:"Solutions",DEPLOYMENTS:"Deployments",ASSISTANT:"Assistant",RESOURCES:"Resources"};return{a:$,b:he,c:M,d:ge,e:E,f:me,g:fe,h:Te,i:l,j:H,k:Ee,l:be,m:ye,n:T}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./4MVZOALG.js";export default $arcgis.t(([,,,{a:s}])=>{function u(r,o){let t=m(o),e=s([{k:"id",v:r}])||"";return t?`${t}/home/item.html${e}`:""}function p(r,o,t,e){let n=e||m(t);return n?`${n}/sharing/rest/content/items/${r}/resources/${o}`:""}function m(r){return r?.PortalSubset?.orgUrl||r?.PortalUrl||""}return{a:u,b:p}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import g from"./
|
|
2
|
+
import g from"./VQL25LKW.js";import e from"./5ZPWI7UO.js";import c from"./4MVZOALG.js";import b from"./5BN5PLBZ.js";import{a as D,b as R}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import{Cb as U,Db as N,K as f,M as I,N as P,c as A,q as _,sa as O}from"./TRGFYBOH.js";import{a as E}from"./6S75SIVV.js";import{k as T}from"./3GWWHA4S.js";import{b as L}from"./ABSRNM72.js";import{F as d,G as h,H as C,J as m,K as M,L as y,h as k,i as a,r as v}from"./5CQPQ7AE.js";export default $arcgis.t(([{b:F,d:H,i:p,j:x,n:g},{b:V,q:z,r:b},{a:B,b:S},{a:Y}])=>{var W=k`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./4MVZOALG.js";import b from"./5BN5PLBZ.js";import{a as E}from"./W4YXXJAS.js";import{b as M}from"./77CU4WA2.js";import{Eb as R,c as A,ya as k}from"./TRGFYBOH.js";import{a as C}from"./6S75SIVV.js";import{g as d}from"./3YYHZQJB.js";import{b as U}from"./ABSRNM72.js";import{F as a,G as l,H as S,L as h,h as y,i as c,j as w,r as p}from"./5CQPQ7AE.js";export default $arcgis.t(([m,$,x,{n:g},{k:T}])=>{var b=class{constructor(e,t,i,s){this._credential=void 0,this._isEnterprise=!1,this._locale="en",this._portalSubset=void 0,this._portalUserSubset=void 0,this._searchArcGISOnlineEnabled=!0,this._signInParam=void 0,this._clientId=e??"",this._locale=i??"en",this._portalUrl=t??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl,this._signInParam=s;let n=new $({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});try{m.registerOAuthInfos([n])}catch(o){console.log(o)}this._portal=new x({url:this._portalUrl})}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let e=[];return this._portalUserSubset?.privileges&&(e=this._portalUserSubset.privileges),e}get SignInParam(){return this._signInParam}get CanUseAI(){let e=this._portalSubset?.orgSettings,t=this.PortalUserPrivileges.includes("portal:user:useAIAssistants");return e?.aiAssistantsEnabled?e.aiAssistantsEnabled&&!e.blockBetaApps&&t:!1}get CanSearchArcGISOnline(){return this._searchArcGISOnlineEnabled}get RestUserSession(){let e=m.findServerInfo(this._portalRestUrl),t=this._credential?d.fromCredential(this._credential,e):this._isEnterprise?new d({}):new d({portal:this._portalRestUrl});return t.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:t.portal,t.clientId=this._credential?._oAuthCred?.appId,t._refreshToken=this._credential?._oAuthCred?.refreshToken,t}async initialize(){try{await this._init()}catch{this.destroy()}return this}destroy(){this._credential=void 0,this._portalSubset=void 0,this._portalUserSubset=void 0,m.destroyCredentials()}async signIn(e=""){m.setOAuthRedirectionHandler(t=>{let i=t.authorizeParams.redirect_uri;if(e.length>0){let s=i.split("?"),n=s[0],o="",r=new URLSearchParams(s[1]||"");r.append("signInParam",e),o="?"+r.toString(),t.authorizeParams.redirect_uri=n+o}window.location.href=t.authorizeUrl+"?"+this._objectToQuery(t.authorizeParams)}),await m.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(t=>{t&&window.location.reload()})}signOut(){let e=window.location.href,t=/[\/]\b([0-9A-Fa-f]){32}\b/g,i=e.match(t)?e.replace(t,""):e,n=`${this._portal?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(i)}`;this.destroy(),window.location.replace(n)}refreshSession(){let e=this.RestUserSession;if(!(!e||!this.IsSignedIn))return e.exchangeRefreshToken()}_getOrgUrl(e,t,i){return t&&i?window.location.protocol+"//"+t.toLowerCase()+"."+i:e}async _init(){try{this._credential=await m.checkSignInStatus(this._portalUrl+"/sharing")}catch(t){console.log(t)}try{let t=await m.checkAppAccess(this._portalUrl+"/sharing",this._clientId);(typeof t.valid<"u"&&!t.valid||t.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=t.credential}catch(t){console.log(t),t.name}this._portal.authMode="auto",await this._portal.load();let e=this._credential?await k(this.RestUserSession):{};if(this._isEnterprise=this._portal.isPortal,this._isEnterprise)try{let t=`${this._portal.restUrl}/portals/self/settings`,i=await A(t,{authentication:this._credential?this.RestUserSession:void 0});i?.portalConfigProperties?.searchArcGISOnlineEnabled!==void 0?this._searchArcGISOnlineEnabled=i.portalConfigProperties.searchArcGISOnlineEnabled:this._searchArcGISOnlineEnabled=!1}catch(t){console.warn("Failed to fetch portal settings:",t),this._searchArcGISOnlineEnabled=!1}else this._searchArcGISOnlineEnabled=!0;return this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly,orgSettings:e},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await R(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}_isSerializable(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}_objectToQuery(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(t(i,e[i]))).join("&"):Object.keys(e).map(i=>{let s=e[i];if(s==null)return"";let n=encodeURIComponent(i)+"=",o=t&&t[i];return o?n+encodeURIComponent(o(s)):Array.isArray(s)?s.map(r=>this._isSerializable(r)?n+encodeURIComponent(JSON.stringify(r)):n+encodeURIComponent(r)).join("&"):this._isSerializable(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)}).filter(i=>i).join("&"):""}};var f=class _{constructor(){this._telemetryInstance=void 0,this._logTelemetryEvents=!1}getInstance(){return this._telemetryInstance}isEnabled(){return this._logTelemetryEvents}setInstance(e){this._telemetryInstance=e}setEnabled(e){this._logTelemetryEvents=e}_mapDimensions(e){let t={};return e&&e.slice(0,20).forEach((i,s)=>{let n=`dimension${s+1}`;t[n]=i}),t}_mapMetrics(e){let t={};return e&&e.slice(0,20).forEach((i,s)=>{let n=`metric${s+1}`;t[n]=i}),t}logEvent(e){if(this._logTelemetryEvents&&this._telemetryInstance){let{category:t,action:i,dimensions:s,metrics:n,label:o="",details:r=""}=e,I=this._mapDimensions(s),u=this._mapMetrics(n);this._telemetryInstance.logEvent({category:t,action:i,label:o,details:r,...I,...u})}}getTelemetrySession(){return{instance:this._telemetryInstance,logEvent:e=>this.logEvent(e),enabled:this._logTelemetryEvents}}static getDisabledSession(){return{instance:void 0,logEvent:()=>{},enabled:!1}}async initializeTelemetry(e,t){if(!_.shouldEnableTelemetry(e,t))return this.getTelemetrySession();let s=document.querySelector("consent-manager");if(!s){if(!customElements.get("consent-manager"))return this.getTelemetrySession();s=document.createElement("consent-manager"),s.portal=e.Portal,s.measurementIds=t.measurementIds||[],s.firstUseVar=t.cookiesFirstUseVar;let o=_.getEnvironmentConfig(t,e);o&&(s.amazonUserPoolID=o?.amazon?.userPoolID,s.amazonAppId=o?.amazon?.app?.id,s.amazonAppName=t.telemetry?.name,s.amazonVersion=t.telemetry?.version);let r=e.Portal?.eueiEnabled;(localStorage.getItem(s.firstUseVar)==="true"||r)&&(this.setEnabled(!0),s.classList.add("display-none")),document.body.appendChild(s),r?(await new Promise(u=>setTimeout(u,100)),await this._setInstanceFromConsentManager(s)):window.addEventListener("consentGranted",u=>{u.detail?.granted&&(this.setEnabled(!0),this._setInstanceFromConsentManager(s))})}return this.getTelemetrySession()}async _setInstanceFromConsentManager(e){try{let t=new Promise((s,n)=>setTimeout(()=>n(new Error("Timeout waiting for consent-manager instance")),1e4)),i=await Promise.race([e.getInstance(),t]);this.setInstance(i)}catch{}}static shouldEnableTelemetry(e,t){let i=e?.IsEnterprisePortal,s=e?.Portal?.eueiEnabled;return s===!1||i?!1:!!((t.measurementIds||t.telemetry)&&(t.cookiesFirstUseVar||s))}static getEnvironmentConfig(e,t){if(!e.telemetry)return;let i=e.forceTrackingEnv||T(document.location.hostname,t?.Portal?.portalHostname||"");return i&&Object.keys(e.telemetry).includes(i)?e.telemetry[i]:void 0}},O=y`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import g from"./
|
|
2
|
+
import g from"./BCYECXV5.js";import f from"./JOFESHKU.js";import"./5XHAT3I6.js";import"./QSNYUY6K.js";import"./DC5KIXAN.js";import"./YMMGYOOO.js";import e from"./4MVZOALG.js";import d from"./5BN5PLBZ.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.js";import{a as v}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as T}from"./ABSRNM72.js";import{G as y,H as _,h as u,i as b}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([])=>{var C=u`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./4MVZOALG.js";import d from"./5BN5PLBZ.js";import{b as w}from"./W4YXXJAS.js";import{b}from"./77CU4WA2.js";import"./TRGFYBOH.js";import{a as g}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as m}from"./ABSRNM72.js";import{F as a,G as n,H as v,K as l,L as c,h as f,i as s,j as p}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([$,R,{n:y},{o:x}])=>{var L=f`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the 'License');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./5BN5PLBZ.js";import{b as o}from"./W4YXXJAS.js";import{b as n}from"./77CU4WA2.js";import{a as r}from"./6S75SIVV.js";import{b as s}from"./ABSRNM72.js";import{H as l,L as t,h as i,i as a,j as c}from"./5CQPQ7AE.js";export default $arcgis.t(([{n:h}])=>{var v=i`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import h from"./JOFESHKU.js";import{a as H}from"./QSNYUY6K.js";import e from"./
|
|
2
|
+
import h from"./JOFESHKU.js";import{a as H}from"./QSNYUY6K.js";import e from"./4MVZOALG.js";import d from"./5BN5PLBZ.js";import c from"./N6IQW2WT.js";import a from"./C2LXNVZ5.js";import{a as S}from"./6S75SIVV.js";import{b as x}from"./ABSRNM72.js";import{F as b,G as p,H as E,J as g,h as T,i as o,l as f,r as _,u as v}from"./5CQPQ7AE.js";export default $arcgis.t(([$,c,D,w,{c:F},{c:C,d:A,j:m},{f:y},{n:O},{b:L}])=>{var M=T`@layer{
|
|
3
3
|
/** @license
|
|
4
4
|
* Copyright 2025 Esri
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import{a as d}from"./I5GF7UR6.js";import a from"./
|
|
2
|
+
import{a as d}from"./I5GF7UR6.js";import a from"./5BN5PLBZ.js";import{a as f,b as A}from"./W4YXXJAS.js";import{b as g}from"./77CU4WA2.js";import{a as S}from"./6S75SIVV.js";import{b as I}from"./ABSRNM72.js";import{H as b,J as F,h as N,i as r,r as m}from"./5CQPQ7AE.js";export default $arcgis.t(([{g:E,n:y}])=>{var O=N`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
+
import t from"./7IDQSTH6.js";import s from"./H46OUFY6.js";import r from"./XV2A7MTV.js";import q from"./BDVHABZX.js";import"./6RIBHYGR.js";import l from"./FFKCZ7C4.js";import k from"./U6EHKFOT.js";import j from"./74CNKTNB.js";import"./7SGXC6B2.js";import i from"./NB5E6ULD.js";import h from"./VQL25LKW.js";import e from"./5ZPWI7UO.js";import d from"./IJCGEEN7.js";import"./I5GF7UR6.js";import"./YUDZU2OW.js";import c from"./4MVZOALG.js";import b from"./5BN5PLBZ.js";import{a as C,b as S}from"./W4YXXJAS.js";import{a as _}from"./77CU4WA2.js";import"./TRGFYBOH.js";import{a as v}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as f}from"./ABSRNM72.js";import{F as o,G as a,H as g,J as p,h as m,i as u,r as n}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,{c:w,g:I,k:D,l:F,n:c},,,,{b:O},,,{g:x,h:E},,,,{a:b,b:k},{a:y}])=>{var L=m`/** @license
|
|
3
|
+
* Copyright 2025 Esri
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
.back-color-override {
|
|
19
|
+
background-color: var(--calcite-color-foreground-2);
|
|
20
|
+
--calcite-tab-border-color: var(--calcite-color-foreground-3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.display-none {
|
|
24
|
+
display: none !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.height-100 {
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Calcite overrides */
|
|
32
|
+
|
|
33
|
+
calcite-tab-nav {
|
|
34
|
+
padding-bottom: 6px;
|
|
35
|
+
padding-top: 6px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
calcite-tabs {
|
|
39
|
+
--calcite-tab-border-color: var(--calcite-color-border-3);
|
|
40
|
+
--calcite-color-focus: transparent;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tab-space-0 {
|
|
45
|
+
--calcite-tab-content-space-y: var(--calcite-spacing-none);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tab-space-md {
|
|
49
|
+
--calcite-tab-content-space-y: var(--calcite-spacing-md);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
solutions-searchsort-toolbar,
|
|
53
|
+
solutions-deploy-app-nav,
|
|
54
|
+
solution-details-panel,
|
|
55
|
+
solutions-resources-shell,
|
|
56
|
+
solutions-deployed-shell,
|
|
57
|
+
solutions-all-shell,
|
|
58
|
+
calcite-tab-nav,
|
|
59
|
+
solution-deployed-card-panel {
|
|
60
|
+
width: 1440px;
|
|
61
|
+
display: block;
|
|
62
|
+
max-width: 96vw;
|
|
63
|
+
padding-right: var(--calcite-spacing-none);
|
|
64
|
+
padding-left: var(--calcite-spacing-none);
|
|
65
|
+
margin-left: auto;
|
|
66
|
+
margin-right: auto;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.border {
|
|
71
|
+
height: var(--calcite-spacing-px);
|
|
72
|
+
border-bottom-color: var(--calcite-color-border-3);
|
|
73
|
+
border-bottom-style: solid;
|
|
74
|
+
border-bottom-width: var(--calcite-border-width-sm);
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.overflow-auto {
|
|
79
|
+
overflow: auto;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
solution-details-panel {
|
|
83
|
+
scroll-margin-top: 3rem;
|
|
84
|
+
}`,T=class extends g{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._translations=v({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${F}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=_({context:S}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._isMobileContextProvider=_({context:C}),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=n(),this.deployedCardFetchFailed=n(),this.detailsCardSelected=n(),this.deployedCardSelected=n(),this.metaTagStringsReady=n(),this.tabChanged=n(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:[5,{},{type:Boolean}],authentication:[16,{},{state:!0}],_isLoaded:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_activeTab:[16,{},{state:!0}],_showDeployedCardFetchFailed:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=L}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(s=l,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=x(this._allCards,t.tabTitleOrId);s=s||E(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=O)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return u`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&u`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar slot=header ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new b(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new b(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let i=t.detail.tabType,s=this._activeTab!==i;switch(this._activeTab=i,s&&this._logTabViewTelemetry(i),i){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}i!=="details"&&i!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(i),this.deployAppTabSelected.emit(i),this._emitMetaTagStrings(i))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let r=e;s.push(r.title||""),s.push(r.deployCommonId||""),s.push(r.deployVersion||"")}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,{num:1e3});return this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){let s=w(e);try{let l=await k(e,i,this._cardsFetcher,this._cardFetcherDeployed,D,"created","desc",!1,[],[],s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let r=l.message;r.indexOf("CONT_0001")>-1||r.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):r.indexOf("GWM_0003")>-1||r.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?I.AEC:t.industry,l=t.offerType,r=t.searchTerm,A="",d=t.sortField,h=t.owner;e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:A}),d&&(e=e?{...e,sortType:d}:{sortType:d}),l&&(d=l.toLowerCase(),e=e?{...e,sortType:d}:{sortType:d}),h&&(e=e?{...e,owner:h}:{owner:h})}return e}_setScrollbarGutters(){let t=this._detailsTab.value?.shadowRoot?.firstElementChild;t?.style&&(t.style.scrollbarGutter="stable both-edges");let e=this._deployedCardTab.value?.shadowRoot?.firstElementChild;e?.style&&(e.style.scrollbarGutter="stable both-edges")}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),l=(e.Credential?.expires-i)*.95;setInterval(async()=>{await t.refreshCredentials()},l)}}};f("solutions-deploy-app",T);return T},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b,c,d,e,h,i,j,k,l,q,r,s,t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./74CNKTNB.js";import"./7SGXC6B2.js";import e from"./NB5E6ULD.js";import d from"./VQL25LKW.js";import c from"./5ZPWI7UO.js";import"./I5GF7UR6.js";import b from"./4MVZOALG.js";import a from"./5BN5PLBZ.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./IJCGEEN7.js";import d from"./4MVZOALG.js";import a from"./5BN5PLBZ.js";import{b as T}from"./W4YXXJAS.js";import{b as S}from"./77CU4WA2.js";import{rb as v,sa as D,sb as $,tb as b}from"./TRGFYBOH.js";import{a as C}from"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import{b as y}from"./ABSRNM72.js";import{F as m,G as h,H as I,J as u,h as g,i as f,r as c}from"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([{m:P,n:E},{e:_},{a:V}])=>{var N=g`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./U6EHKFOT.js";import b from"./IJCGEEN7.js";import a from"./5BN5PLBZ.js";import{b as _}from"./W4YXXJAS.js";import{b as x}from"./77CU4WA2.js";import{a as f}from"./6S75SIVV.js";import{b as m}from"./ABSRNM72.js";import{G as g,H as u,J as h,L as n,h as p,i,r as o}from"./5CQPQ7AE.js";export default $arcgis.t(([{a:y,c:v,n:l},{a:b},{d:s,h:w,i:S}])=>{var C=p`/** @license
|
|
3
3
|
* Copyright 2025 Esri
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -242,4 +242,4 @@ calcite-shell {
|
|
|
242
242
|
|
|
243
243
|
.solution-deployed-action {
|
|
244
244
|
--calcite-color-focus: initial;
|
|
245
|
-
}`,c=class extends u{constructor(){super(),this.diagramKey="",this.open=!1,this.templateInfos=[],this._accordionLoading=!1,this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showSuccessAlert=!1,this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._templateInfoGraph=[],this._translations=f({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=x({context:_,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||y(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this.navTabSelected=o(),this.forceSelectTab=o(),this.sortTypeChanged=o(),this.solutionConfigureDialogClose=o(),this._nonSolutionDependencyItems=[],this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{this._showSuccessAlert=!0})}static{this.properties={card:[0,{},{attribute:!1}],cardRef:1,diagramKey:1,open:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_accordionLoading:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_deleteDialogOpen:[16,{},{state:!0}],_hasNewVersion:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],_isNameConflict:[16,{},{state:!0}],_invalidNameMessage:[16,{},{state:!0}],_showSuccessAlert:[16,{},{state:!0}],_showFailedAlert:[16,{},{state:!0}],_showItemUpdateLoading:[16,{},{state:!0}],_templateInfoGraph:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}]}}static{this.styles=C}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}${this._getSuccessDeployAlert()}</calcite-shell>`}async _deployedCardSelected(e){let t=e.detail;this.card=t.card,this.cardRef=t.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await b(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems,setTimeout(async()=>{await this._accordionRef.expandFirstItem(),a.uniqueIitemIds.length>0&&(this._accordionRef.listSelectionMode="multiple",this._accordionRef.selectItems(a.uniqueIitemIds))},250);let r=w(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),d=!1;if(r){let D=s(r),$=s(this.card);d=D>$}this._hasNewVersion=d}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return i`<div class="display-flex flex-direction-column padding-xxl"><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${!t} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${h(a)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button></div>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this.templateInfos=await this._getTemplates(),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this._getTemplates()}} .open=${this._configureTitlesOpen} source="Details Page" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){if(this._configContextConsumer?.value)return i`<div class="display-flex padding-bottom-xxl margin-start-end-xxl flex-direction-column"><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override" layout=inline scale=l>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username===this.card?.owner?this._user?.fullName:void 0} .lookupProfile=${this._user?.username!==this.card?.owner} .thumbnailUrl=${this._user?.username===this.card?.owner?this._user?.thumbnailUrl:void 0} .username=${this.card?.owner}></solution-user-avatar></div>`}async _openDiagram(e){e.stopPropagation();let t=await this._getTemplates();t&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=t,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await v(this.card.id,this._configContextConsumer.value.userSession):void 0}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion;return i`<div class="padding-xxl display-flex flex-direction-column"><calcite-label class="font-weight-med label-override" layout=inline scale=l slot=heading>${this._translations.solutionVersion.replace("{{version}}",this.card?.deployVersion||"")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span>${e}</span></div></div></div>${this._hasNewVersion?i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>`:""}</div>`}async _openNewVersionSolution(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Latest Version",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let t=S(this._configContextConsumer.value.allCards,this.card.deployCommonId);t&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:t})}_getSolutionPanel(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._configContextConsumer.value?.userSession;return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title??n} src=${e?`${e}&token=${t?.token}`:""}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1">${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl">${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div></div></div></div></calcite-panel>`}_getSolutionContents(){let e=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))];return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading?i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:i`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords} ${g(async t=>{t&&(this._accordionRef=t)})}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>`:""}_getSuccessDeployAlert(){return i`<calcite-alert auto-close auto-close-duration=medium icon=check-circle kind=success .label=${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")} .open=${this._showSuccessAlert} @calciteAlertClose=${()=>{this._showSuccessAlert=!1}}><div slot=title>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")}</div></calcite-alert>`}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??n} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}async _deleteSolution(){this._deleteDialogOpen=!0}};m("solution-deployed-card-panel",c);return c},a,b,c)
|
|
245
|
+
}`,c=class extends u{constructor(){super(),this.diagramKey="",this.open=!1,this.templateInfos=[],this._accordionLoading=!1,this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showSuccessAlert=!1,this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._templateInfoGraph=[],this._translations=f({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=x({context:_,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=e.authentication?.PortalUserSubset?.role==="org_admin"||v(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this.navTabSelected=o(),this.forceSelectTab=o(),this.sortTypeChanged=o(),this.solutionConfigureDialogClose=o(),this._nonSolutionDependencyItems=[],this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{this._showSuccessAlert=!0})}static{this.properties={card:[0,{},{attribute:!1}],cardRef:1,diagramKey:1,open:[5,{},{type:Boolean}],templateInfos:[0,{},{attribute:!1}],_accordionLoading:[16,{},{state:!0}],_configureTitlesOpen:[16,{},{state:!0}],_deleteDialogOpen:[16,{},{state:!0}],_hasNewVersion:[16,{},{state:!0}],_isDiagramOpen:[16,{},{state:!0}],_isNameConflict:[16,{},{state:!0}],_invalidNameMessage:[16,{},{state:!0}],_showSuccessAlert:[16,{},{state:!0}],_showFailedAlert:[16,{},{state:!0}],_showItemUpdateLoading:[16,{},{state:!0}],_templateInfoGraph:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_nonSolutionDependencyItems:[16,{},{state:!0}]}}static{this.styles=C}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}${this._getSuccessDeployAlert()}</calcite-shell>`}async _deployedCardSelected(e){let t=e.detail;this.card=t.card,this.cardRef=t.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await b(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems,setTimeout(async()=>{await this._accordionRef.expandFirstItem(),a.uniqueIitemIds.length>0&&(this._accordionRef.listSelectionMode="multiple",this._accordionRef.selectItems(a.uniqueIitemIds))},250);let r=w(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),d=!1;if(r){let D=s(r),$=s(this.card);d=D>$}this._hasNewVersion=d}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,t=this.card?.owner===e||this._isOrgAdmin,a=t?"display-none":"";return i`<div class="display-flex flex-direction-column padding-xxl"><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" .disabled=${!t} id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${h(a)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button></div>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async()=>{this.templateInfos=await this._getTemplates(),this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this._getTemplates()}} .open=${this._configureTitlesOpen} source="Details Page" .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Item Details",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){if(this._configContextConsumer?.value)return i`<div class="display-flex padding-bottom-xxl margin-start-end-xxl flex-direction-column"><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override" layout=inline scale=l>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username===this.card?.owner?this._user?.fullName:void 0} .lookupProfile=${this._user?.username!==this.card?.owner} .thumbnailUrl=${this._user?.username===this.card?.owner?this._user?.thumbnailUrl:void 0} .username=${this.card?.owner}></solution-user-avatar></div>`}async _openDiagram(e){e.stopPropagation();let t=await this._getTemplates();t&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=t,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await y(this.card.id,this._configContextConsumer.value.userSession):void 0}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion;return i`<div class="padding-xxl display-flex flex-direction-column"><calcite-label class="font-weight-med label-override" layout=inline scale=l slot=heading>${this._translations.solutionVersion.replace("{{version}}",this.card?.deployVersion||"")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span>${e}</span></div></div></div>${this._hasNewVersion?i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>`:""}</div>`}async _openNewVersionSolution(e){e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Latest Version",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),await new Promise(a=>setTimeout(a,100));let t=S(this._configContextConsumer.value.allCards,this.card.deployCommonId);t&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:t})}_getSolutionPanel(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._configContextConsumer.value?.userSession;return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title??n} src=${e?`${e}&token=${t?.token}`:""}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1">${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl">${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div></div></div></div></calcite-panel>`}_getSolutionContents(){let e=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))];return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading?i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:i`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords} ${g(async t=>{t&&(this._accordionRef=t)})}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>`:""}_getSuccessDeployAlert(){return i`<calcite-alert auto-close auto-close-duration=medium icon=check-circle kind=success .label=${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")} .open=${this._showSuccessAlert} @calciteAlertClose=${()=>{this._showSuccessAlert=!1}}><div slot=title>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??"")}</div></calcite-alert>`}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??n} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}async _deleteSolution(){this._deleteDialogOpen=!0}};m("solution-deployed-card-panel",c);return c},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./FFKCZ7C4.js";import d from"./U6EHKFOT.js";import c from"./IJCGEEN7.js";import b from"./4MVZOALG.js";import a from"./5BN5PLBZ.js";import"./W4YXXJAS.js";import"./77CU4WA2.js";import"./TRGFYBOH.js";import"./6S75SIVV.js";import"./5IZMQFRP.js";import"./FOQPGXXA.js";import"./ED6SUP22.js";import"./E6P6PYNW.js";import"./IKKBLHLZ.js";import"./CUA2IUXX.js";import"./4UZDZNJD.js";import"./KOTG6W5Z.js";import"./6SC7YR5Y.js";import"./Z6NOHRUL.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import"./ZYQ4P2ON.js";import"./5MKH4QDV.js";import"./3GWWHA4S.js";import"./3YYHZQJB.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./44A5XEM4.js";import"./ABSRNM72.js";import"./5CQPQ7AE.js";import"./3QPJ2JCA.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./U6EHKFOT.js";import c from"./4MVZOALG.js";import a from"./5BN5PLBZ.js";import{K as T,nb as N,ob as O,qa as M,r as b}from"./TRGFYBOH.js";import{g as U}from"./3YYHZQJB.js";export default $arcgis.t(([{k:y},{f:J,g:j,h:k,i:K,l:F,m:w},{a:A,b:h,c:_,e:f}])=>{var x=class{constructor(r,t,s){this.cMissingImageDataURI="https://static.arcgis.com/images/solution.png",this.cardCache=[],this.cardCacheParams={q:"",categoriesAsStr:"[]",sortField:"title",sortOrder:"asc"},this.locale=r,this.orgUrl=t,this.portalUrl=s,this.anonAgolSession=new U({}),this.agolPortalUrl=K(s)}addToCache(r){this.cardCache.push(r)}getCache(){return this.cardCache}removeFromCache(r){this.cardCache=this.cardCache.filter(t=>t.id!==r)}requestAvailableSolutionCards(r,t,s,e,i,a,o){let m=a?.start?a.start:1,g=a?.num?a.num:24,p=this.portalUrl+"/sharing/rest",P=this.agolPortalUrl+"/sharing/rest",C=this.anonAgolSession,v=JSON.stringify(r.categories);if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==v||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:v,sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=f(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let c;if(o&&o.size>0){let l=A(this.cardCache,o);c=h(l,m,g)}else c=h(this.cardCache,m,g);return Promise.resolve(c)}let R={filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,categories:r?.categories?this.convertSearchCategories(r.categories):""},S=[];if(t&&!i){let c=e||new U({});S.push(O(t,r.q,c,R,p))}return s&&i&&S.push(O(s,r.q,C,R,P)),Promise.allSettled(S).then(c=>{let l=[];c.forEach(d=>{if(d.status==="fulfilled"){let D=d.value,B="",E=!1;B=this.agolPortalUrl,E=!0,D.results.forEach(I=>{I.sourcePortalUrl=B,I.knownToBePublicSource=E}),l.push(D)}else if(d.status==="rejected")throw new Error(d.reason.message?d.reason.message:"cannotAccessAGO")}),l.length===0?this.cardCache=[]:l.length===1?this.cardCache=this.getCardsFromResponse(l[0]):this.cardCache=f(this.getCardsFromResponse(this.mergeResponses(l)),this.cardCacheParams.sortField,this.cardCacheParams.sortOrder);let u;if(o&&o.size>0){let d=A(this.cardCache,o);u=h(d,m,g)}else u=h(this.cardCache,m,g);return Promise.resolve(u)}).catch(c=>Promise.reject(new Error(c.message)))}requestDeployedSolutionCards(r,t,s=""){let e=this.portalUrl+"/sharing/rest";if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==JSON.stringify(r.q)||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:"[]",sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=f(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let a=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(a)}let i={q:r.q,filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,authentication:t,portal:e,categories:r?.categories?JSON.stringify(r.categories):"",num:r.num};return s?M(s,t).then(a=>{this.cardCache=this.getCardsFromResponse({results:[a]});let o=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}).catch(a=>Promise.reject(new Error(a))):N(i).then(a=>{this.cardCache=this.getCardsFromResponse(a);let o=h(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}).catch(a=>Promise.reject(new Error(a)))}convertSearchCategories(r){return r&&(Array.isArray(r)?r=r.map(t=>JSON.stringify(Array.isArray(t)?t:[t])):r=JSON.stringify([r])),r}getCardsFromResponse(r){return r.results.length>0?b(r.results).map(e=>{let i=e.sourcePortalUrl?e.sourcePortalUrl:this.portalUrl,a=e.sourcePortalUrl?e.sourcePortalUrl:this.orgUrl,o={id:e.id,title:e.title,snippet:e.snippet||"",description:e.description||"",url:e.url||"",itemUrl:`${a}/home/item.html`+j([{k:"id",v:e.id}])||"",thumbnailFilename:e.thumbnail,thumbnailUrl:k(e.id,e.thumbnail,this.cMissingImageDataURI,i),tryitUrl:e.url||"",typeKeywords:e.typeKeywords,learnMoreUrl:e.properties?.learnMoreUrl||"",createdMs:e.created,created:F(e.created,this.locale),modified:F(e.modified,this.locale),numViews:e.numViews,tags:e.tags,categories:e.groupCategories&&e.groupCategories.length>0?e.groupCategories:e.categories||[],licenseInfo:J(e.licenseInfo),deployCommonId:w(e.typeKeywords||[],"solutionid-"),deployVersion:w(e.typeKeywords||[],"solutionversion-"),canDelete:e.created>16183314e5,preview:this.preparePreviewImageUrls(e.id,e.properties?.preview,i),sourcePortalUrl:e.sourcePortalUrl||"",knownToBePublicSource:e.knownToBePublicSource||!1,waitId:"",relatedSolutions:T(e,"properties.relatedSolutions")||[],owner:e.owner};return o.deployCommonId!==""&&o.deployVersion!==""?o:null}).filter(e=>e!=null):[]}mergeResponses(r){let t=0;r.forEach(e=>t+=e.total);let s=[];return r.forEach(e=>s=s.concat(e.results)),{query:r[0].query,start:1,num:t,nextStart:-1,total:t,results:s}}preparePreviewImageUrls(r,t,s){return t?t.map(e=>(e.format==="image"&&(e.name=s+"/sharing/rest/content/items/"+r+"/resources/"+e.name),e)):[]}};async function $(n,r,t,s,e=y,i="created",a="desc",o=!1,m=[],g=[],p,P){if(!n?.IsSignedIn)return;let C={q:e,filter:"type:Solution",sortField:i,sortOrder:a,delay:o,categories:m,num:100};return C.q+=z(n,p),await V(r,C,s,g,P)}function z(n,r){let t="",s=n.PortalUserOrg,e=n.PortalUserName;return s&&(t+=" orgid:"+s),r!=="My organization's solutions"&&e&&(t+=" owner:"+e),t}async function V(n,r,t,s,e=""){let i=await t.requestDeployedSolutionCards(r,n,e),a=_(i.cards,s);return{cards:i.cards,relatedSolutions:a}}return{a:x,b:$}},a,c,d)
|