@esri/solutions-components 5.1.0-next.66 → 5.1.0-next.67
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/5TPLPDK2.js +2 -0
- package/dist/cdn/7EEAVPTU.js +2 -0
- package/dist/cdn/BIYG7PA2.js +2 -0
- package/dist/cdn/{SMPEVMDE.js → BWTBRONP.js} +1 -1
- package/dist/cdn/{A6L4SLVT.js → COTZWDC3.js} +1 -1
- package/dist/cdn/CR2XUUG5.js +2 -0
- package/dist/cdn/EUY3GSFI.js +2 -0
- package/dist/cdn/{TMRCJ23T.js → GYQ22PJ6.js} +1 -1
- package/dist/cdn/LCBZNTKI.js +2 -0
- package/dist/cdn/M6ZFMO6K.js +2 -0
- package/dist/cdn/{DV2IPJEK.js → QX7YHRF5.js} +2 -2
- package/dist/cdn/UHVBUHU3.js +2 -0
- package/dist/cdn/{WLKDLZCS.js → V7UWSW6U.js} +1 -1
- package/dist/cdn/{ZH6LQCHJ.js → WR3YNDFH.js} +1 -1
- package/dist/cdn/XEQSHS4A.js +2 -0
- package/dist/cdn/{DVCONGYS.js → XY4HNUJE.js} +1 -1
- package/dist/cdn/ZSPRUX4H.js +2 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/solutions-deploy-app-nav.js +35 -36
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +4 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +7 -7
- package/dist/components/arcgis-solutions-assistant/index.js +3 -1
- 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 +5 -5
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
- package/dist/components/solutions-deploy-app/customElement.js +111 -100
- package/dist/components/solutions-deploy-app/index.js +3 -0
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +6 -0
- package/dist/components/solutions-deploy-app-nav/customElement.js +2 -4
- package/dist/components/solutions-deployed-panel/customElement.js +8 -8
- package/dist/components/solutions-deployed-shell/customElement.js +4 -4
- package/dist/components/solutions-filter-panel/customElement.d.ts +0 -6
- package/dist/components/solutions-filter-panel/customElement.js +46 -61
- package/dist/components/solutions-filter-panel/index.js +0 -3
- package/dist/components/solutions-resources-shell/customElement.d.ts +6 -0
- package/dist/components/solutions-resources-shell/customElement.js +9 -9
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +5 -5
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/package.json +1 -1
- package/dist/cdn/3CEPDBZC.js +0 -2
- package/dist/cdn/5JF3GXG7.js +0 -2
- package/dist/cdn/ACH7OUDZ.js +0 -2
- package/dist/cdn/D6EAKAAG.js +0 -2
- package/dist/cdn/FFYAX3YU.js +0 -2
- package/dist/cdn/R2WYNBYU.js +0 -2
- package/dist/cdn/UW2E725I.js +0 -2
- package/dist/cdn/V75TSZXZ.js +0 -2
- package/dist/cdn/WFZYVS4A.js +0 -2
- package/dist/cdn/ZPKQMASX.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import a from"./N73GF6WL.js";import{Eb as $,c as k,mb as R,ya as A}from"./HBQN25RR.js";import{a as U}from"./SDJWXDEO.js";import{g as d}from"./JUUVYK2H.js";import{b as M}from"./FLLZBDVI.js";import{E as l,F as c,G as S,I as C,K as m,h as w,i as o,j as f,q as u}from"./F2JKSZOE.js";export default $arcgis.t(([p,L,N,{A:O,C:x,K:h,g:E,q:_,y:T}])=>{var I=class{constructor(t,e,i,s){this._credential=void 0,this._isEnterprise=!1,this._locale="en",this._portalSubset=void 0,this._portalUserSubset=void 0,this._arcGISOnlineReachable=!0,this._searchArcGISOnlineEnabled=!0,this._signInParam=void 0,this._clientId=t??"",this._locale=i??"en",this._portalUrl=e??"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 L({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});try{p.registerOAuthInfos([n])}catch(a){console.log(a)}this._portal=new N({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 t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get SignInParam(){return this._signInParam}get CanDeleteSolution(){return this.PortalUserPrivileges.includes("portal:admin:deleteItems")}get CanUpdateSolution(){return this.PortalUserPrivileges.includes("portal:admin:updateItems")}get CanUseAI(){let t=this._portalSubset?.orgSettings,e=this.PortalUserPrivileges.includes("portal:user:useAIAssistants");return t?.aiAssistantsEnabled?t.aiAssistantsEnabled&&!t.blockBetaApps&&e:!1}get CanViewOrg(){return this.PortalUserPrivileges.includes("portal:admin:viewItems")}get CanSearchArcGISOnline(){return this._searchArcGISOnlineEnabled&&this._arcGISOnlineReachable}async checkArcGISOnlineReachability(t){if(this._isEnterprise&&this._searchArcGISOnlineEnabled&&t){let e=`${O(this._portalUrl)}/sharing/rest`,i=new d({});try{await R({q:`group:${t} type:Solution`,num:1,start:1,authentication:i,portal:e}),this._arcGISOnlineReachable=!0}catch(s){this._arcGISOnlineReachable=!1,console.warn("ArcGIS Online solutions group not reachable:",s)}}}get RestUserSession(){let t=p.findServerInfo(this._portalRestUrl),e=this._credential?d.fromCredential(this._credential,t):this._isEnterprise?new d({}):new d({portal:this._portalRestUrl});return e.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:e.portal,e.clientId=this._credential?._oAuthCred?.appId,e._refreshToken=this._credential?._oAuthCred?.refreshToken,e}async initialize(t=!1,e){try{await this._init(t,e)}catch{this.destroy()}return this}destroy(){this._credential=void 0,this._portalSubset=void 0,this._portalUserSubset=void 0,p.destroyCredentials()}async signIn(t=""){p.setOAuthRedirectionHandler(e=>{let i=e.authorizeParams.redirect_uri;if(t.length>0){let s=i.split("?"),n=s[0],a="",r=new URLSearchParams(s[1]||"");r.append("signInParam",t),a="?"+r.toString(),e.authorizeParams.redirect_uri=n+a}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),await p.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(e=>{e&&window.location.reload()})}signOut(){let t=window.location.href,e=/[\/]\b([0-9A-Fa-f]){32}\b/g,i=t.match(e)?t.replace(e,""):t;i=T(i,"sortField","suggested");let s=`${this._portal?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(i)}`;this.destroy(),window.location.replace(s)}refreshSession(){let t=this.RestUserSession;if(!(!t||!this.IsSignedIn))return t.exchangeRefreshToken()}_getOrgUrl(t,e,i){return e&&i?window.location.protocol+"//"+e.toLowerCase()+"."+i:t}async _init(t=!1,e){try{this._credential=await p.checkSignInStatus(this._portalUrl+"/sharing")}catch(s){console.log(s)}try{let s=await p.checkAppAccess(this._portalUrl+"/sharing",this._clientId);(typeof s.valid<"u"&&!s.valid||s.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=s.credential}catch(s){s.name}this._searchArcGISOnlineEnabled=await this._checkSearchArcGISOnlineEnabled(t,this._portal.restUrl),this._portal.authMode=t?"immediate":"auto",await this._portal.load();let i=this._credential?await A(this.RestUserSession):{};return this._isEnterprise=this._portal.isPortal,await this.checkArcGISOnlineReachability(e),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:i},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??"",roleId:this._portal.user?.roleId??void 0},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await $(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}async _checkSearchArcGISOnlineEnabled(t,e){if(t)try{let i=`${e}/portals/self/settings`,s=await k(i,{authentication:this._credential?this.RestUserSession:void 0});return s?.portalConfigProperties?.searchArcGISOnlineEnabled!==void 0?s.portalConfigProperties.searchArcGISOnlineEnabled:!1}catch(i){return console.warn("Failed to fetch portal settings:",i),!1}else return!0}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e(i,t[i]))).join("&"):Object.keys(t).map(i=>{let s=t[i];if(s==null)return"";let n=encodeURIComponent(i)+"=",a=e&&e[i];return a?n+encodeURIComponent(a(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 g={name:"arcgis-solutions-app",version:"2.0",dev:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"7e2fd97553644e5f99b1129fbcee3c2e"}}},qa:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"a3beba911bd14847ada5c9ffed2a2111"}}},prod:{amazon:{userPoolID:"us-east-1:8c41b2dc-7563-403d-ba64-673b103debce",app:{id:"35a920e0e7f84680be076e57dd5cb728"}}}},P="solutions-deployment-first-use",v=class b{constructor(){this._telemetryInstance=void 0,this._logTelemetryEvents=!1}getInstance(){return this._telemetryInstance}isEnabled(){return this._logTelemetryEvents}setInstance(t){this._telemetryInstance=t}setEnabled(t){this._logTelemetryEvents=t}_mapDimensions(t){let e={};return t&&t.slice(0,20).forEach((i,s)=>{let n=`dimension${s+1}`;e[n]=i}),e}_mapMetrics(t){let e={};return t&&t.slice(0,20).forEach((i,s)=>{let n=`metric${s+1}`;e[n]=i}),e}logEvent(t){if(this._logTelemetryEvents&&this._telemetryInstance){let{category:e,action:i,dimensions:s,metrics:n,label:a="",details:r=""}=t,z=this._mapDimensions(s),G=this._mapMetrics(n);this._telemetryInstance.logEvent({category:e,action:i,label:a,details:r,...z,...G})}}getTelemetrySession(){return{instance:this._telemetryInstance,logEvent:t=>this.logEvent(t),enabled:this._logTelemetryEvents}}static getDisabledSession(){return{instance:void 0,logEvent:()=>{},enabled:!1}}async initializeTelemetry(t,e){if(!b.shouldEnableTelemetry(t,e))return this.getTelemetrySession();let i=document.querySelector("consent-manager");if(!i){if(!customElements.get("consent-manager"))return this.getTelemetrySession();i=document.createElement("consent-manager"),i.portal=t.Portal,i.measurementIds=e.measurementIds||[],i.firstUseVar=P;let s=b.getEnvironmentConfig(e,t);s&&(i.amazonUserPoolID=s?.amazon?.userPoolID,i.amazonAppId=s?.amazon?.app?.id,i.amazonAppName=g.name,i.amazonVersion=g.version);let n=t.Portal?.eueiEnabled;(localStorage.getItem(i.firstUseVar)==="true"||n)&&(this.setEnabled(!0),i.classList.add("display-none")),document.body.appendChild(i),n?(await new Promise(a=>setTimeout(a,100)),await this._setInstanceFromConsentManager(i)):window.addEventListener("consentGranted",a=>{a.detail?.granted&&(this.setEnabled(!0),this._setInstanceFromConsentManager(i))})}return this.getTelemetrySession()}async _setInstanceFromConsentManager(t){try{let e=new Promise((s,n)=>setTimeout(()=>n(new Error("Timeout waiting for consent-manager instance")),1e4)),i=await Promise.race([t.getInstance(),e]);this.setInstance(i)}catch{}}static shouldEnableTelemetry(t,e){let i=t?.IsEnterprisePortal;return t?.Portal?.eueiEnabled===!1||i?!1:!!((e.measurementIds||g)&&P)}static getEnvironmentConfig(t,e){let i=t.forceTrackingEnv||x(document.location.hostname,e?.Portal?.portalHostname||"");return i&&Object.keys(g).includes(i)?g[i]:void 0}},F=w`.esri-global-nav__title{margin-block-start:0;position:relative;margin-bottom:0;font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-medium);padding-inline-end:var(--calcite-spacing-xxl);align-self:center;height:100%;display:flex;align-items:center}.esri-global-nav__logo-link{color:var(--calcite-color-text-1);text-decoration:unset;margin-block-start:0px;position:relative;margin-bottom:0;align-self:center;height:100%;display:flex;align-items:center}.esri-global-nav__logo-link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.cursor-pointer{cursor:pointer}.side{border-right:solid 1px;color:var(--calcite-color-text-1);height:34px;align-self:center}.display-flex{display:flex}.align-self-center{align-self:center}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.margin-start-end-1{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-start-end-1-5{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.height-full{height:100%}.user-label{--calcite-label-margin-bottom: 0px}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-normal{font-weight:var(--calcite-font-weight-normal)}.logo-padding{padding-inline-start:var(--calcite-spacing-none);height:100%}@media(max-width:800px){.logo-padding{padding-inline-start:var(--calcite-spacing-lg)}}.signin-padding{padding-inline-end:var(--calcite-spacing-none)}@media(max-width:800px){.signin-padding{padding-inline-end:var(--calcite-spacing-lg)}}calcite-action{--calcite-font-size-0: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: var(--calcite-spacing-lg)}calcite-navigation{--calcite-color-border-3: transparent}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box;position:absolute;top:65px;left:0;width:100%;z-index:1}.height-66{height:66px}.sub-nav-constrained{width:calc(100% - var(--assistant-panel-width, 420px));overflow:hidden}`,y=class extends S{constructor(){super(),this.assistantOpen=!1,this._isMobile=!1,this._logoFill="",this._thumbnailUrl="",this._translations=U({name:"solutions-deploy-app-nav",blocking:!0}),this._activeTab="all-solutions",this._authentication=void 0,this._cardType="details",this._dropdownRef=l(),this._dropdownItemAll=l(),this._dropdownItemMy=l(),this._dropdownItemMyContent=l(),this._dropdownItemResources=l(),this._handleMobileChange=t=>{this._isMobile=t.matches},this._menuRef=l(),this._menuItemAll=l(),this._menuItemMy=l(),this._menuItemResources=l(),this.authInit=u(),this.navTabSelected=u(),this.tabChanged=u(),this.tokenRefreshed=u(),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployAppTabSelected",this._deployAppTabSelected),this.listenOn(window,"popstate",this._handleUrlChange),this.listenOn(window,"sessionRefreshed",t=>{this._updateThumbnailToken(t.detail)}),this._mobileMediaQuery=window.matchMedia("(max-width: 800px)"),this._isMobile=this._mobileMediaQuery.matches,this._mobileMediaQuery.addEventListener("change",this._handleMobileChange)}static{this.properties={appConfig:1,assistantOpen:5,initTab:1,_subNavigationCard:16,_isMobile:16,_logoFill:16,_thumbnailUrl:16,_translations:16}}static{this.styles=F}get _telemetry(){return this._config?.telemetrySession}clearMenuItems(){this._isMobile?(this._dropdownItemAll.value.selected=!1,this._authentication?.IsSignedIn&&(this._dropdownItemMy.value.selected=!1),this._dropdownItemResources.value.selected=!1):(this._menuItemAll.value.active=!1,this._authentication?.IsSignedIn&&(this._menuItemMy.value.active=!1),this._menuItemResources.value.active=!1)}activateMenuItem(t,e=!1){let i,s;switch(t){case"all-solutions":i=this._isMobile?this._dropdownItemAll:this._menuItemAll,s=this._isMobile?[this._dropdownItemMy,this._dropdownItemResources]:[this._menuItemMy,this._menuItemResources];break;case"deployments":i=this._isMobile?this._dropdownItemMy:this._menuItemMy,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemResources]:[this._menuItemAll,this._menuItemResources];break;case"resources":i=this._isMobile?this._dropdownItemResources:this._menuItemResources,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemMy]:[this._menuItemAll,this._menuItemMy];break;case"my-content":this._isMobile&&(i=this._dropdownItemMyContent,s=[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources]);break}i&&s&&this._handleMenuClick(t,i,s,e)}async connectedCallback(){super.connectedCallback();let t=new d({username:"",password:""});this._userSession=t}async load(){let t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",r=>this._logoFill=this._getLogoFill(r.matches)),this._logoFill=this._getLogoFill(t.matches),this._mobileMediaQuery.matches&&(this._isMobile=!0);let e=this.appConfig.locale||"en",i=this.appConfig.authentication?.PortalSubset?.orgUrl||this.appConfig.orgURL||this.appConfig.portalURL,s=this.appConfig.authentication?.PortalUrl||this.appConfig.portalURL,n=this.appConfig.primarySolutionsGroupId,a=!1;this._authentication||(this.appConfig.authentication?this._authentication=this.appConfig.authentication:(this._authentication=new I(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this._authentication.initialize(this.appConfig.isEnterprise,this.appConfig.agoBasedEnterpriseSolutionsGroupId),a=!0)),a||await this._authentication?.checkArcGISOnlineReachability(this.appConfig.agoBasedEnterpriseSolutionsGroupId),this._authentication.RestUserSession&&(this._userSession=this._authentication.RestUserSession),this.initTab&&(this._activeTab=this.initTab,this.initTab=void 0),this._config={anonAgolSession:void 0,agolPortalUrl:"",allCards:[],appId:this.appConfig.appId,authentication:this._authentication,agoBasedEnterpriseSolutionsGroupId:this.appConfig.agoBasedEnterpriseSolutionsGroupId,diagramKey:this.appConfig.diagramKey,forceTrackingEnv:this.appConfig.forceTrackingEnv,isEnterprise:this.appConfig.isEnterprise,locale:e,orgUrl:i,portalURL:s,primarySolutionsGroupId:n,userSession:this._userSession,telemetrySession:v.getDisabledSession(),measurementIds:this.appConfig.measurementIds},this.authInit.emit(this._config),this._portal=await this._userSession?.getPortal()}render(){return o`<div><calcite-navigation>${this._getHeading()}${this._isMobile?this._getDropdown():this._getMenu()}${this._isMobile?"":this._getSignInOut()}</calcite-navigation><div class="border" slot=header></div>${!this._isMobile&&o`<div class=${C(this.assistantOpen?"sub-nav-constrained":"")}>${this._getSubHeading()}</div>`||""}</div>`}updated(t){t.has("_isMobile")&&t.get("_isMobile")!==void 0&&this.activateMenuItem(this._activeTab,!1)}disconnectedCallback(){super.disconnectedCallback(),this._mobileMediaQuery.removeEventListener("change",this._handleMobileChange)}_getSignInOut(){return this._authentication?.IsSignedIn?o`<div slot=user>${this._getUserAvatar()}</div>`:o`<calcite-menu label slot=content-end><calcite-menu-item label @click=${this._handleSignIn} @keydown=${t=>h(t,()=>this._handleSignIn(t))} .text=${this._translations.signIn}></calcite-menu-item></calcite-menu>`}_getDropdown(){let t=this._authentication?.IsSignedIn?this._translations.signOut:this._translations.signIn;return o`<calcite-dropdown overlay-positioning=fixed slot=content-end width=m ${c(this._dropdownRef)}><calcite-button appearance=transparent icon-start=hamburger kind=neutral slot=trigger scale=l></calcite-button><calcite-dropdown-group><calcite-dropdown-item @click=${()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemAll)}>${this._translations.allSolutions}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemMy)}>${this._translations.myDeployments}</calcite-dropdown-item>${this._authentication?.CanSearchArcGISOnline&&o`<calcite-dropdown-item @click=${()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemResources)}>${this._translations.solutionResources}</calcite-dropdown-item>`||""}<calcite-dropdown-item @click=${()=>{let e=this._activeTab==="all-solutions"?this._dropdownItemAll:this._activeTab==="deployments"?this._dropdownItemMy:this._activeTab==="resources"?this._dropdownItemResources:void 0;setTimeout(()=>this._handleMenuClick("my-content",e,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!1),10)}} ${c(this._dropdownItemMyContent)}>${this._translations.myContent}</calcite-dropdown-item><calcite-dropdown-item @click=${e=>{this._authentication?.IsSignedIn?this._signOut():this._handleSignIn(e)}}>${t}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_getMenu(){return o`<calcite-menu label slot=content-start ${c(this._menuRef)}><calcite-menu-item label @click=${()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0))} .text=${this._translations.allSolutions} ${c(this._menuItemAll)}></calcite-menu-item><calcite-menu-item label @click=${()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0))} .text=${this._translations.myDeployments} ${c(this._menuItemMy)}></calcite-menu-item>${this._authentication?.CanSearchArcGISOnline&&o`<calcite-menu-item label @click=${()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0))} .text=${this._translations.solutionResources} ${c(this._menuItemResources)}></calcite-menu-item>`||""}</calcite-menu>`}_getHeading(){return o`<div class="align-self-center display-flex cursor-pointer logo-padding" slot=logo><a aria-label=${this._translations.linkToEsriHomePage??m} class="esri-global-nav__logo-link" href=https://www.esri.com @click=${()=>this._logLinkClickTelemetry("Esri")} rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??m}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${f`<path fill=${this._logoFill??m} d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="side margin-start-end-1-5" slot=logo></div><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??m} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview @click=${()=>this._logLinkClickTelemetry("ArcGIS Solutions")} rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??m}>${this._translations.arcgisSolutions}</a></div></div>`}_getSubHeading(){let t=this._cardType==="deployed"?this._translations.myDeployments:this._translations.allSolutions;return this._subNavigationCard?o`<calcite-navigation class="height-66" slot=navigation-secondary><calcite-menu class="height-66" label slot=content-start><calcite-menu-item breadcrumb .label=${t} @click=${this._navigateFromSubMenu} @keydown=${e=>h(e,()=>this._navigateFromSubMenu())} .text=${t} text-enabled></calcite-menu-item><calcite-menu-item label active .text=${this._subNavigationCard?.title} text-enabled></calcite-menu-item></calcite-menu></calcite-navigation>`:""}_getLogoFill(t){return t?"#FFFFFF":"#141414"}_handleMenuClick(t,e,i,s){i.forEach(n=>{n.value&&(this._isMobile?n.value.selected=!1:n.value.active=!1)}),e?.value&&(this._isMobile?e.value.selected=!0:e.value.active=!0),t!=="my-content"?this._activeTab=t:this._viewMyContent(),s&&this._logNavClickTelemetry(t),s&&this.navTabSelected.emit({tabType:t})}_logNavClickTelemetry(t){let e={"all-solutions":"Solutions",deployments:"Deployments","my-content":"My Content",resources:"Resources",details:void 0,"deployed-card":void 0}[t];e&&this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[e]})}_logLinkClickTelemetry(t){this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[t]})}_getUserAvatar(){let t=this._portal.user,e=this._authentication?.PortalUserSubset,i=t?.id??t?.sourceJSON?.id;return this._thumbnailUrl===""&&(this._thumbnailUrl=t?.thumbnailUrl??e?.thumbnailUrl??""),o`<div class="height-full display-flex cursor-pointer signin-padding"><calcite-navigation-user class="height-full" full-name=${t?.fullName??m} id=instant-apps-sign-in-user-button slot=user .thumbnail=${this._thumbnailUrl} .userId=${i} .username=${t?.username}></calcite-navigation-user></div><calcite-popover placement=bottom-end scale=s reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close .label=${this._translations.userSettings}><calcite-action scale=l @click=${this._viewMyContent} .text=${this._translations.myContent} text-enabled></calcite-action><calcite-action scale=l @click=${this._signOut} .text=${this._translations.signOut} text-enabled></calcite-action></calcite-popover>`}_viewMyContent(){let t=`${this._config?.portalURL}/home/content.html#my`;window.open(t,"_blank")}_signOut(){this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign out"]}),this._authentication?.signOut()}_handleSignIn(t){t.preventDefault(),this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign in"]}),this._authentication?.signIn().then(()=>{}).catch(e=>{console.error("Error creating global nav header:",e)})}_deployedCardSelected(t){this._cardType="deployed",this._subNavigationCard=t.detail.card}_detailsCardSelected(t){this._cardType="details",this._subNavigationCard=t.detail}_deployAppTabSelected(){this._subNavigationCard=void 0}_handleUrlChange(){this._subNavigationCard=void 0}_navigateFromSubMenu(){this._cardType==="details"?this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0):this._cardType==="deployed"&&this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)}_updateThumbnailToken(t){this._thumbnailUrl!==""&&(this._thumbnailUrl=E(this._thumbnailUrl,t))}};M("solutions-deploy-app-nav",y);return{a:v,b:y}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as y}from"./JZHP22BA.js";import a from"./N73GF6WL.js";import{a as R,b as I}from"./QHG54NVK.js";import{b as g}from"./DPD6UBKD.js";import{a as A}from"./SDJWXDEO.js";import{b as C}from"./FLLZBDVI.js";import{G as S,I as b,h as N,i as c,q as u}from"./F2JKSZOE.js";export default $arcgis.t(([{K:F,j:_,k:v}])=>{var M=N`.width-full{width:100%}calcite-panel{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-panel-footer-space: var(--calcite-spacing-sm)}.border-color{--calcite-block-border-color: transparent}calcite-block{margin:0;--calcite-block-content-space: 0}.tree-padding{padding:0 .2rem}.display-none{display:none}`,f={PUBLICSAFETY:["EMERGENCYMANAGEMENT","FIRESERVICE","LAWENFORCEMENT"],STATEANDLOCALGOVERNMENT:["AGRICULTURE","AIRPORT","ASSESSMENTANDTAXATION","ELECTIONS","EMERGENCYMANAGEMENT","FIRESERVICE","FISHANDWILDLIFE","HEALTHANDHUMANSERVICES","LAWENFORCEMENT","NATURALRESOURCES","PARKS","PLANNINGANDDEVELOPMENT","PUBLICWORKS","TRANSPORTATION"],UTILITIES:["DISTRICTENERGY","ELECTRIC","GAS","SEWER","STORMWATER","WATER"]},T=Object.keys(_).reduce((m,t)=>{let e=t;return m[e]=f[e]??[],m},{}),E=class extends S{constructor(){super(),this.hideIndustryFilter=!1,this.showReset=!1,this._activeFilterSettings={categories:[]},this._isMobile=!1,this._translations=A({name:"solutions-filter-panel",blocking:!0}),this._userFirstName="",this._configContextConsumer=g({context:I,subscribe:!0,callback:t=>{t?.userSession&&!this._userFirstName&&this._loadUserFirstName()}}),this._isMobileContextConsumer=g({context:R,subscribe:!0,callback:t=>this._isMobile=t}),this.applyFilter=u(),this.toggleFilter=u(),this.updateUrlParams=u(),this._handleFilterRemoved=t=>{let e=t.detail;Array.isArray(e)&&(this._activeFilterSettings={...this._activeFilterSettings,categories:[...e]})},this._industryMatchName=t=>{let e=Object.keys(this._translations.industries).find(o=>o.toUpperCase()===t.replaceAll(" ","").toUpperCase());return e&&e in this._translations.industries?this._translations.industries[e]:t},this._domainMatchName=t=>{let e=Object.keys(this._translations.industriesDomain).find(o=>o.toUpperCase()===t.replaceAll(" ","").toUpperCase());return e&&e in this._translations.industriesDomain?this._translations.industriesDomain[e]:t},this.listenOn(window,"filterRemoved",this._handleFilterRemoved),this.listenOn(window,"tabChanged",t=>{t.detail==="all-solutions"?this.updateUrlParams.emit(this._activeFilterSettings):this.updateUrlParams.emit(null)})}static{this.properties={hideIndustryFilter:5,showReset:5,_activeFilterSettings:16,_isMobile:16,_translations:16,_userFirstName:16}}static{this.styles=M}changeIndustryFilter(t,e,o,h){if(t!==""||e!==""){let r=[];if(e!==""){let i=_[t],a=this._industryMatchName(i),s=v[e],n=this._domainMatchName(s);r=[{displayValue:a,type:"industry",value:t,industry:t,domain:""},{displayValue:n,type:"domain",value:e,industry:t,domain:e}]}else r=[{displayValue:o,type:e!==""?"domain":"industry",value:e!==""?e:t,industry:t,domain:e}];this._activeFilterSettings={...this._activeFilterSettings,categories:[...r]},h&&this.applyFilter.emit(r)}else{let r={displayValue:o,type:"industry",value:t,industry:t,domain:e};this._activeFilterSettings={...this._activeFilterSettings,categories:[r]},h&&this.applyFilter.emit(r)}}clearFilters(){this.changeIndustryFilter("","",""),this.applyFilter.emit(null)}async load(){await this._loadUserFirstName(),this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}render(){return c`<calcite-panel description heading>${this.showReset&&c`<calcite-action appearance=solid icon=reset @click=${()=>{this.clearFilters()}} slot=header-actions-end .text=${this._translations.resetFilters} text-enabled></calcite-action>`||""}<calcite-block-group .label=${this._translations.filters} scale=l>${!this.hideIndustryFilter&&this.renderIndustryBlock()||""}</calcite-block-group></calcite-panel>`}renderIndustryBlock(){let t=(i,a)=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(s=>s.industry===i&&(s.domain??"")===a),e=i=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(a=>a.industry===i&&(a.domain??"")===""),o=(i,a)=>a.length>0&&(e(i)||this._activeFilterSettings.categories?.some(s=>s.industry===i&&!!s.domain&&a.includes(s.domain))===!0),h=(i,a)=>y(a,s=>s,s=>{let n=Object.keys(this._translations.industriesDomain).find(l=>l.toUpperCase()===s.toUpperCase()),d=n&&n in this._translations.industriesDomain?this._translations.industriesDomain[n]:s,p=t(i,s);return c`<calcite-tree-item .label=${d} @click=${l=>{l.detail!==0&&this.changeIndustryFilter(i,s,d,!0)}} @keydown=${l=>{F(l,()=>{this.changeIndustryFilter(i,s,d,!0)})}} .selected=${p||void 0}>${d}</calcite-tree-item>`}),r=y(Object.entries(T),([i,a])=>i,([i,a])=>{let s=this._industryMatchName(i),n=a,d=e(i),p=o(i,n);return c`<calcite-tree-item .label=${s} @click=${l=>{l.detail!==0&&this.changeIndustryFilter(i,"",s,!0)}} @keydown=${l=>{F(l,()=>{this.changeIndustryFilter(i,"",s,!0)})}} .selected=${d||void 0} .expanded=${p?!0:void 0}>${s}${n.length>0&&c`<calcite-tree slot=children selection-mode=multiple>${h(i,n)}</calcite-tree>`||""}</calcite-tree-item>`});return c`<calcite-block description expanded class="border-color" .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-action class=${b(this._isMobile?"":"display-none")} icon=x @click=${this._toggleFilter} slot=content-end text></calcite-action><calcite-tree selection-mode=single-persist class="tree-padding">${r}</calcite-tree></calcite-block>`}_toggleFilter(){this.toggleFilter.emit()}async _loadUserFirstName(){try{let t=await this._configContextConsumer.value?.userSession?.getUser();if(t?.fullName){let e=t.fullName.split(" ")[0];this._userFirstName=e}}catch{}}};C("solutions-filter-panel",E);return E},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as y}from"./JZHP22BA.js";import d from"./N73GF6WL.js";import{a as v,b as x}from"./QHG54NVK.js";import{b as c}from"./DPD6UBKD.js";import{a as b}from"./SDJWXDEO.js";import{b as m}from"./FLLZBDVI.js";import{E as r,F as a,G as _,I as o,J as n,h as f,i as s,q as g}from"./F2JKSZOE.js";export default $arcgis.t(([{j:h,k:p,q:d}])=>{var w=f`.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-sm)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@container (max-width: 800px){.filter{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-4);--calcite-panel-background-color: var(--calcite-color-surface-4)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-lg);padding-top:8px}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@container (max-width: 800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`,u=class extends _{constructor(){super(),this.solutionsCount=0,this._isLoading=!0,this._filterOpen=!0,this._filters={categories:[],searchTerm:""},this._isMobile=!1,this._translations=b({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=r(),this._solutionsFilterPanelRef=r(),this._mainPanelRef=r(),this._panelFixed=!1,this._configContextConsumer=c({context:x,subscribe:!0}),this._isMobileContextConsumer=c({context:v,subscribe:!0,callback:e=>this._isMobile=e}),this.filterRemoved=g(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option,e.detail.logSearchTelemetry)}),this.listenOn(window,"toggleFilter",this._toggleFilter),this.listenOn(window,"cardsFetched",()=>{this._isLoading=!1})}static{this.properties={solutionsCount:9,_isLoading:16,_filterOpen:16,_filters:16,_isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("_isMobile")&&(this._filterOpen=!this._isMobile)}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(h).find(([,l])=>l===e.industry)?.[0]:void 0,i=e.domain?Object.entries(p).find(([,l])=>l===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=i||"",e.value=i||t||"",this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(e))}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(i=>{if(i.type==="attributes"&&i.attributeName==="tabindex"){let l=i.target;l.classList.contains("content-wrapper")&&l.tabIndex===0&&(l.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){let e=this._isMobile?"justify-content-end":"",t=this._isLoading?"display-none":"";return s`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile?"":this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${a(this._mainPanelRef)}><div class=${o(this._isMobile?`mobile-stack ${e}`:`display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&s`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{this._filters={...this._filters,categories:[]},this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div></div>${this._isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this._filterOpen?{display:"flex"}:"";return this._isMobile?s`<calcite-panel class=${`border-none ${this._filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${n(e)}><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:s`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${n(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this._isMobile&&this._filterOpen?{display:"none"}:"";return s`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${n(e)} ${a(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(t=>t.type==="industry"||t.type==="domain");if(e.length!==0)return s`<calcite-chip-group class="chip-group" label>${y(e,t=>`${t.type}:${t.value}`,t=>s`<calcite-chip appearance=outline-fill class=${o(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`)}</calcite-chip-group>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_chipClosed(e,t){if(this._filters.categories){if(t==="industry")this._filters.categories=[];else{let i=this._filters.categories.filter(l=>l.displayValue!==e&&l.type!==t);this._filters.categories=i}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_toggleFilter(){this._filterOpen=!this._filterOpen}_logFilterTelemetry(e){if((e.type==="industry"||e.type==="domain")&&e.industry){let t=[h[e.industry]];if(e.domain){let i=p[e.domain];t.push(i)}this._telemetry?.logEvent({category:d.ALL_SOLUTIONS,action:"Filter",dimensions:t})}}_filterApplied(e,t){if(this._filters.categories)if(e){let i=e;if("displayValue"in e)this._filters.categories.push(e),this._logFilterTelemetry(e);else if(Array.isArray(e)&&e.length>0){e.length>=2&&(i=[e[e.length-1]]),this._filters={categories:e,searchTerm:this._filters.searchTerm};let l=e[e.length-1];l&&this._logFilterTelemetry(l)}if("searchTerm"in i&&(this._filters.searchTerm=i.searchTerm,t&&i.searchTerm)){this._telemetry?.logEvent({category:d.ALL_SOLUTIONS,action:"Search",dimensions:[i.searchTerm]});return}this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};m("solutions-all-shell",u);return u},d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./UHVBUHU3.js";import c from"./4NCV4IWX.js";import b from"./QF3LZFWW.js";import a from"./N73GF6WL.js";import"./QHG54NVK.js";import"./DPD6UBKD.js";import"./HBQN25RR.js";import"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./FLLZBDVI.js";import"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,a])=>{return a},a,b,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./EUY3GSFI.js";import"./BDENYZEG.js";import c from"./BF6NM5HV.js";import b from"./E7RDA5B4.js";import"./JA3R6YUV.js";import a from"./N73GF6WL.js";import"./QHG54NVK.js";import"./DPD6UBKD.js";import"./HBQN25RR.js";import"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./FLLZBDVI.js";import"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,a])=>{return a},a,b,c,d)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import c from"./LE6OUXPN.js";import b from"./4NCV4IWX.js";import a from"./N73GF6WL.js";import{b as C}from"./QHG54NVK.js";import{b as v}from"./DPD6UBKD.js";import"./HBQN25RR.js";import{a as w}from"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as f}from"./FLLZBDVI.js";import{E as u,F as d,G as g,K as y,h as m,i as r,j as _,q as n}from"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([{H:T,L:b,n:c,q:l,r:x},,{a:h,b:S}])=>{var $=m`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@container (max-width: 1280px){solution-deployed-card{width:calc(25% - .75rem)}}@container (max-width: 1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@container (max-width: 740px){solution-deployed-card{width:calc(50% - .75rem)}}@container (max-width: 440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`,F=5,p=class extends g{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=w({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=c,this._allCards=[],this._baseAgoTerms=c,this._categories=[],this._mainPanelRef=u(),this._panelFixed=!1,this._configContextConsumer=v({context:C,subscribe:!0,callback:async t=>{t&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=n(),this.searchTermSet=n(),this.sortTypeSet=n(),this.listenOn(window,"solutionDeleted",t=>{this._modifiedCheckTry=F,this.reload(t.detail.showAlert,t.detail.refreshSolutionsTimeout,t.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",t=>{t.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",t=>{this._modifiedCheckTry=F,this._refreshAfterDeploy(t.detail)}),this.listenOn(window,"sortTypeChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(this.sortType=t.detail.sortType,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Sort",dimensions:[T(t.detail.sortType)]}),this.searchSolutions(t.detail))}),this.listenOn(window,"searchChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(t.detail.logSearchTelemetry&&t.detail.option?.searchTerm?this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Search",dimensions:[t.detail.option.searchTerm]}):this.searchSolutions(t.detail.option))})}static{this.properties={sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_deletedSolutionName:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(t=!0,e=!0,s){if(this._initCardsFetchers(),t){let i=s||this._translations.solution;b({kind:"success",icon:"check-circle",title:this._translations.deleteComplete.replace("{{solutionName}}",i),message:"",autoClose:!0,autoCloseDuration:"fast"})}e?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(i){console.error("Error getting deployed solutions:",i)}})()},500):await this._getDeployedSolutions()}async searchSolutions(t){if(t){if("searchTerm"in t&&this._setSearchTerm(t.searchTerm||""),"sortType"in t&&this._setSortOptions(t),Object.keys(t).indexOf("type")>-1){let e=t;this._owner=e.value,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})}if(Object.keys(t).indexOf("filter")>-1){let e=t;this._owner=e.filter===x.ORG?"My organization's solutions":"My solutions"}}else this._agoTerms=this._baseAgoTerms,this._clearFilterCategories();await this._getDeployedSolutions()}async setSearchOptions(t){t&&("searchTerm"in t&&(this._setSearchTerm(t.searchTerm),this.searchTermSet.emit({searchTerm:t.searchTerm,scope:"deployments"})),"sortType"in t&&(this._setSortOptions(t),this.sortTypeSet.emit({sortType:t.sortType,scope:"deployments"})))}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let t=this._mainPanelRef.value;t.componentOnReady?.().then(()=>{if(t.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&(e.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(e=>{e.forEach(s=>{if(s.type==="attributes"&&s.attributeName==="tabindex"){let i=s.target;i.classList.contains("content-wrapper")&&i.tabIndex===0&&(i.tabIndex=-1)}})});let t=this._mainPanelRef.value;if(t?.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&this._panelObserver.observe(e,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){return this._cardsFetching?r`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?r`<calcite-panel ${d(this._mainPanelRef)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group></calcite-panel>`:r`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let t=this._configContextConsumer.value;this._cardsFetcher=new h(t.locale,t.orgUrl,t.portalURL),this._cardsFetcherDeployed=new h(t.locale,t.orgUrl,t.portalURL)}}_renderCards(){return this._refs={},this._cards.map(t=>r`<solution-deployed-card .card=${t} .deployedDate=${t.created} .description=${t.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${t.title} id=${t.id??y} .itemId=${t.id} .owner=${this._owner==="My solutions"?"":t.owner} .thumbnail=${t.thumbnailUrl} ${d(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(t){t&&(this._refs[t.id]=t)}async _getDeployedSolutions(){let t=this._configContextConsumer.value.authentication;if(t.IsSignedIn){this._abortController?(this._abortController.abort("redundant request"),this._abortController=new AbortController):this._abortController=new AbortController,this._cardsFetching=!0;try{let e=await S(t,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._abortController.signal,this._owner);this._abortController=void 0,this._modifiedCheckTry>0&&(this._cards?.length===e?.cards?.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=e?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}catch(e){e.message!=="redundant request"&&console.warn(e)}}}_getSolutionsBriefcase(){return r`<div><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${_`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_setSearchTerm(t){this._agoTerms=this._baseAgoTerms+` ${t}`}_setSortOptions(t){let e=t.sortType;e==="relevance"||e==="title"?(e==="title"&&(this._sortOrder="asc"),this._sortField=e):(e==="updated"||e==="created")&&(this._sortOrder="desc",this._sortField=e),this.sortType=e}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(t){if(t){this._newId=t;let e=10,s=500;for(let a=0;a<e&&(await this._getDeployedSolutions(),!this._cards.some(o=>o.id===t));a++)a<e-1&&await new Promise(o=>setTimeout(o,s));await this.updateComplete;let i=10,O=100;for(let a=0;a<i;a++){if(this._refs[t]){let o=this._cards.find(D=>D.id===t);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:o,cardRef:this._refs[t]}})),this._newId="";return}await new Promise(o=>setTimeout(o,O)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${t}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:t}})),this._newId=""}}};f("solutions-deployed-panel",p);return p},a,b,c)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import c from"./E7RDA5B4.js";import a from"./N73GF6WL.js";import{a as R,b as E}from"./QHG54NVK.js";import{b as w}from"./DPD6UBKD.js";import{Cb as U,Db as F,K as v,M as $,N as A,c as P,q as _,sa as O}from"./HBQN25RR.js";import{a as L}from"./SDJWXDEO.js";import{k as T}from"./73AX72WY.js";import{b as C}from"./FLLZBDVI.js";import{E as d,F as h,G as S,I as u,J as D,K as b,h as M,i as o,q as y}from"./F2JKSZOE.js";export default $arcgis.t(([{I:z,J:f,K:Y,b:N,d:H,e:V,f:k,l:g,m:x,q:m,s:B},{a:G}])=>{var K=M`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@container (max-width: 800px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;max-width:100%;margin:0;padding-bottom:0}.image-width img{width:100%;max-width:100%}.title-font{padding-inline-end:var(--calcite-spacing-lg);padding-top:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@container (max-width: 1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@container (max-width: 1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@container (max-width: 550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}#screenshots-subsection .card-image{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-surface-3)}.back-color-override-1{background-color:var(--calcite-color-surface-2)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-surface-2)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-surface-3)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}`;async function q(n,e,t){let i=t;return n&&(n?.IsEnterprisePortal&&await Z("",e)&&i.push(g.NOTEBOOK),await B(e)?t.push(g.VELOCITY):n?.PortalUserPrivileges&&[x.VELOCITYFEEDS,x.VELOCITYBIGDATA,x.VELOCITYREALTIME].forEach(s=>{let a=t.indexOf(s)||-1;a!==-1&&t.splice(a,1)}),i=i.concat(j(Q(n),ee(n))),i=i.concat(J(n)),i=i.concat(await X(n))),Promise.resolve(i)}function j(n,e){let t=[];return n&&e?t=[g.TRACKINGADMINANDTRACKING,g.TRACKINGADMIN,g.TRACKING]:n&&!e?t=[g.TRACKINGADMIN]:!n&&e&&(t=[g.TRACKING]),t}function J(n){return te(n)?[g.HUBPREMIUM]:[]}async function X(n){let e=n?.RestUserSession;if(!e?.username)return[];let t=await F(e);return await U(t,e)?[g.WORKFLOW]:[]}async function Z(n,e){let t=n+"/sharing/rest",i={authentication:e,portal:t,params:{f:"json"}};return P(`${t}/portals/self/servers`,i).then(s=>s?.servers?.find(a=>a.serverFunction.indexOf("NotebookServer")>-1),s=>(console.error(s),!1))}function Q(n){let e=n?.PortalUserSubset?.privileges;return e?["portal:admin:create","portal:admin:delete","portal:admin:update","portal:admin:reassign"].every(i=>e.some(s=>s.startsWith(i))):!1}function ee(n){return n?.PortalSubset?.locationTrackingEnabled||!1}function te(n){return n?.PortalSubset?.hubPremiumEnabled||!1}var I=class extends S{constructor(){super(),this._isDeployDisabled=!1,this._isLoaded=!1,this._itemFetched=!1,this._showScreenshotsShowMore=!1,this._showYouMayAlsoLikeShowMore=!1,this.isMobile=!1,this._isScreenshotsRowExpanded=!1,this._isYouMayAlsoLikeRowExpanded=!1,this._screenshotsRowBaseHeight=340,this._showLoader=!1,this._templates=[],this._translations=L({name:"solution-details-panel",blocking:!0}),this._youMayAlsoLikeBaseHeight=340,this._allCards=[],this._configContextConsumer=w({context:E,subscribe:!0}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=d(),this._deployingDialogRef=d(),this._isMobileContextConsumer=w({context:R,subscribe:!0,callback:e=>this.isMobile=e}),this._overviewAccordionItemElement=d(),this._privilegePopoverRef=d(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._releaseNotesAccordionItemElement=d(),this._relatedResourcesAccordionItemElement=d(),this._screenshotsAccordionItemElement=d(),this._screenshotsDialogRef=d(),this._screenshotsElement=d(),this._termsOfUseAccordionItemElement=d(),this._userOptions=[],this._youMayAlsoLikeAccordionItemElement=d(),this._youMayAlsoLikeElement=d(),this._signInParamValue=null,this._deploymentStartTime=null,this._cancellationStartTime=null,this._deployToCancelDuration=0,this.templatesFetched=y(),this.itemPropertiesFetched=y(),this.sortTypeChanged=y(),this.tokenRefreshed=y(),this._handleDeployCancelled=()=>{this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Dialog Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]})},this._handleDeploySuccess=()=>{let e=f(this._deploymentStartTime);this._deploymentStartTime=null,this._deployingDialogRef.value&&(this._deployingDialogRef.value.isWaitingForCard=!0),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Success",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[e]})},this._handleDeployedCardReady=async e=>{this._closeDialogs(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t))),window.dispatchEvent(new CustomEvent("displayDeployedCard",{detail:e.detail}))},this._handleDeploymentFallback=()=>{console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"),this._closeDialogs(),window.dispatchEvent(new CustomEvent("navTabSelected",{detail:"deployments"}))},this._handleDeploymentProcessCancelled=()=>{this._cancellationStartTime=Date.now(),this._deployToCancelDuration=f(this._deploymentStartTime),this._deploymentStartTime=null},this._handleDeployFailed=e=>{if(this._cancellationStartTime!==null){this._closeDialogs();return}let t=f(this._deploymentStartTime);this._deploymentStartTime=null;let i=z(e.detail?.error),s=i.length>200?i.slice(-200):i;console.error("Deployment failed:",e.detail?.error),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Failure",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",s],metrics:[t]}),this._closeDialogs(!0)},this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"deployedCardReady",this._handleDeployedCardReady),this.listenOn(window,"deploymentCompletedWithoutNav",this._handleDeploymentFallback)}static{this.properties={card:0,_isDeployDisabled:16,_isLoaded:16,_itemFetched:16,_showScreenshotsShowMore:16,_showYouMayAlsoLikeShowMore:16,isMobile:16,_isScreenshotsRowExpanded:16,_isYouMayAlsoLikeRowExpanded:16,_itemProperties:16,_missingPrivilegeMessages:16,_screenshotsRowBaseHeight:16,_showLoader:16,_templates:16,_translations:16,_youMayAlsoLikeBaseHeight:16}}static{this.styles=K}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async connectedCallback(){super.connectedCallback(),this.listenOn(window,"calciteTabChange",this._cleanupPanel)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}willUpdate(e){e.has("card")&&(this._isDeployDisabled=!1,this._isLoaded=!1,this._showLoader=!1,this._signInParamValue==="deploy"&&(this._showLoader=!0,this._signInParamValue=null))}loaded(){this._signInParamValue===null&&this._configContextConsumer.value?.authentication?.SignInParam&&(this._signInParamValue=this._configContextConsumer.value.authentication.SignInParam),this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="padding-bottom-1-5",t=this._getRelatedResources(),i=this._getYouMayAlsoLikeCards();return o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${u(e)}>${this._getScreenshotsRow()}</div><div class=${u(e)}>${this._getOverviewRow()}</div><div class=${u(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?o`<div class=${u(e)}>${this._getRelatedResourcesRow(t)}</div>`:""}${i.length>0?o`<div class=${u(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<div class=${u(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile?"":o`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`}updated(){setTimeout(()=>{let e=this._getYouMayAlsoLikeCards(),t=340;for(let i=0;i<e.length;i++){let s=this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`),a=s?.offsetHeight?s.offsetHeight+40:0;a>t&&(t=a)}this._youMayAlsoLikeBaseHeight=t,this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2},100)}_checkUrlParametersForAutoDeployment(){if(this._signInParamValue==="deploy"){let e=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);this._configContextConsumer.value?.authentication?.IsSignedIn&&this.card&&this._deployDialogRef.value&&!e&&(this._signInParamValue=null,this._openDeploy())}}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._missingPrivilegeMessages?.leadingMessages||[],i=t.length>0,s=this._missingPrivilegeMessages?.bulletedMessages||[],a=s.length>0,l=this._missingPrivilegeMessages?.trailingMessages||[],c=l.length>0;return o`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title??b} src=${e??b}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i,a,c,t,s,l)}${this._getButtons()}</div></div>`}_getTextSection(e,t,i,s,a,l){return o`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some(c=>c.includes("New Release"))&&o`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>`||""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile?"":e||t||i?o`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s,a,l)}</div>`:""}</div>`}_getButtons(){let e=this._itemProperties?.demoURL||"";return o`<div class="display-flex flex-direction-column button-width">${!this.isMobile&&o`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled} icon-flip-rtl=end @click=${()=>this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader?o`<calcite-loader inline label></calcite-loader>`:this._translations.deployButton}</calcite-button>`||""}${!this._configContextConsumer.value?.isEnterprise&&e&&o`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>`||""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise&&o`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId||""} .solutionTitle=${this.card?.title||""} .solutionVersion=${this.card?.deployVersion||""}></solution-social-share>`||""}</div>`}_getMissingPrivilegesNotice(e,t,i){let s="solutions-missing-privileges-notice",a=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges,l=t.length>0?"":"display-none",c=t.length>0?"padding-top-sm":"";return o`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${a}`}</div><calcite-action icon=information id=${s} slot=actions-end .text=${a}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${this._getSpanMessages(e,"padding-bottom-1")}<span class=${`padding-bottom-1-2 ${l}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getBulletedMessages(t)}${this._getSpanMessages(i,c)}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>o`<span class=${u(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?o`<ul>${e.map(t=>o`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._isScreenshotsRowExpanded?this._translations.showLess:this._translations.showMore,t=this._isScreenshotsRowExpanded?"arrow-up":"arrow-down",i=this._showScreenshotsShowMore?"":"display-none";return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${()=>{this._screenshotsElement.value?.classList.toggle("expanded"),this._isScreenshotsRowExpanded=this._screenshotsElement.value.classList.contains("expanded")}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`}_getScreenshots(){let e=this._itemProperties?.preview.filter(a=>a.format==="image")||[],t=this._configContextConsumer.value,i=this._itemFetched?"":"display-none",s=this._itemFetched?"display-none":"";return o`<calcite-loader class=${u(s)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((a,l)=>{let c=k(this.card?.id||"",l.name,t.authentication),p;return t.agoBasedEnterpriseSolutionsGroupId&&t.isEnterprise&&(p=k(this.card?.id||"",l.name,void 0,t.agolPortalUrl)),this.card?.id?a.push(o`<calcite-card class=${`${this.isMobile?"is-mobile":"cursor-pointer not-mobile"}`} .label=${l.alt} @click=${()=>this._openScreenshotGallery(l)} @keydown=${r=>Y(r,()=>this._openScreenshotGallery(l))}><div class="card-image-wrap" slot=thumbnail><img alt=${l.alt??b} class="thumbnail card-image" slot=thumbnail src=${(p||c)??b}>${!this.isMobile&&o`<div class="hover-text">${this._translations.openInGallery}</div>`||""}</div></calcite-card>`):a.push(""),a},[])}</calcite-card-group>`}_openScreenshotGallery(e){if(!this.isMobile){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Screenshot Gallery",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]});let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}}_getOverviewRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`}_getDescriptionRow(){return o`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description??""} tabindex=0></div></div>`}_getInformationProductsRow(){return o`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.item)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.description)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.userType)??""}></p></calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`}_getReleaseNotesTableHeaderRow(){return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.version)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.description)??""}></p></calcite-table-cell></calcite-table-row>`)}_getRelatedResourcesRow(e){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(()=>{o`<solution-resource-card></solution-resource-card>`})}</div></calcite-accordion-item></calcite-accordion>`}_getRelatedResources(){return[]}_getYouMayAlsoLikeRow(e){let t=this._showYouMayAlsoLikeShowMore?"":"display-none",i=this._isYouMayAlsoLikeRowExpanded?this._translations.showLess:this._translations.showMore,s=this._isYouMayAlsoLikeRowExpanded?"arrow-up":"arrow-down",a=this._isYouMayAlsoLikeRowExpanded?"":{height:`${this._youMayAlsoLikeBaseHeight}px`};return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${D(a)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l,c)=>o`<solution-details-card .id=${`you-may-also-like-${c}`} .card=${l} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId||""} .referrerSolutionTitle=${this.card?.title||""} .referrerSolutionVersion=${this.card?.deployVersion||""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${s} kind=inverse @click=${()=>{this._youMayAlsoLikeElement.value?.classList.toggle("expanded"),this._isYouMayAlsoLikeRowExpanded=this._youMayAlsoLikeElement.value.classList.contains("expanded")}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getTermsOfUseRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo||"")??""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`}_openDeploy(){if(this._configContextConsumer.value.authentication.IsSignedIn){let e=this._deployDialogRef.value;e&&(this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Dialog Opened",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),e.userOptions=this._userOptions,e.open=!0)}else this._configContextConsumer.value.authentication.signIn("deploy")}_openUrl(e){window.open(e,"_blank")}_handleWatchDemoClick(e){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Watch Demo",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(e)}_handleLearnMoreClick(){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(this.card?.learnMoreUrl||"")}async _detailsCardSelected(e){this.card=e.detail,this.el.scrollIntoView(!0),this._onResize(),this._missingPrivilegeMessages=void 0,await this._getItemData(),this._expandAccordions()}_expandAccordions(){this._overviewAccordionItemElement.value&&(this._overviewAccordionItemElement.value.expanded=!0),this._releaseNotesAccordionItemElement.value&&(this._releaseNotesAccordionItemElement.value.expanded=!0),this._relatedResourcesAccordionItemElement.value&&(this._relatedResourcesAccordionItemElement.value.expanded=!0),this._screenshotsAccordionItemElement.value&&(this._screenshotsAccordionItemElement.value.expanded=!0),this._termsOfUseAccordionItemElement.value&&(this._termsOfUseAccordionItemElement.value.expanded=!0),this._youMayAlsoLikeAccordionItemElement.value&&(this._youMayAlsoLikeAccordionItemElement.value.expanded=!0)}async _getItemData(){this._itemFetched=!1;let e=this._configContextConsumer.value,t=e?.agoBasedEnterpriseSolutionsGroupId&&e?.isEnterprise?e.anonAgolSession:e?.userSession,i=await O(this.card.id,t),s=await T(this.card.id,t);this._itemFetched=!0,this._itemProperties=s.properties,this.itemPropertiesFetched.emit(this._itemProperties);let a=N(i,this.card.typeKeywords,e?.authentication);this._privileges=t.username?a:[],this._userPrivileges=e?.authentication&&e?.userSession?await q(e.authentication,e.userSession,e.authentication.PortalUserPrivileges):[];let l=this._privileges.filter(p=>!this._userPrivileges.includes(p));this._missingPrivilegeMessages=H(this._translations,l),this._isDeployDisabled=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);let c=i.params?await this.formatParams(i.params):[];this._userOptions=c,this._templates=i.templates,this.templatesFetched.emit(i.templates),this._checkUrlParametersForAutoDeployment(),this._isLoaded=!0,this._showLoader&&(this._showLoader=!1,this._isDeployDisabled||this._openDeploy())}formatParams(e){let t=this._configContextConsumer.value.userSession,i=[],s=e?Object.keys(e):[],a={id:"",props:[],accordionDisplay:!1};if(s.length>0){let l=[];return s.forEach(c=>{let p=e[c];p.valueType&&p.valueType.toLowerCase()==="itemid"&&l.push(this._findExistingItem(c,"Feature Service",t.username||""))}),Promise.all(l).then(c=>{let p={};return c.forEach(r=>{if(r.query&&r.results&&r.results.length>0){let W=r.query.split(" ")[0].replace("typekeywords:source-","");p[W]={resultId:r.results[0].id,response:r.results[0]}}}),s.forEach(r=>{if(r==="serviceLearnMore"){this._configureLearnMore=e[r],alert(this._configureLearnMore),delete e[r];return}e[r].enterpriseIDMapping&&(this._customDeploymentMappings[r]=e[r].enterpriseIDMapping),a.id=r,p[r]&&(e[r].existingItemId=p[r].resultId,this.updateUserProp(e[r],p[r].response)),this.updateOption(e[r],a,r)}),i.push(a),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let s=this._configContextConsumer.value.userSession;return G(`typekeywords:source-${e} type:${t} owner:${i}`,s)}updateUserProp(e,t){let i=e.itemType?.toLowerCase()==="feature service",s=new RegExp(i?this._regexFsUrl:e.itemType,"iu"),a=$(t,i?"url":"type","")||"",l=a!==""&&s.test(a);return e.responseValue=l?a:"",e.name=l&&v(t,"name")||"",e.title=l&&v(t,"title")||"",e.itemType=l?v(t,"type"):e.itemType,e.validId=l,e.itemUrl=V(t.id,this._configContextConsumer.value.authentication),l}updateOption(e,t,i){let s=e.default||"",a=typeof s,l=s.toString();this._setFeatureServiceProps(e);let c=this.getValidation(e,l);t.props.push({id:i,outType:a,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:l,default:l,srSearchText:l,autoSelect:l!=="",...c,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&A(e,"attributes.required","true")}getValidation(e,t){let i="",s=v(e,"validation.message")||"",a=!0;return v(e,"attributes.required")==="true"&&(i=$(e,"validation.expression","\\S{1,}"),a=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,s=this._translations.configure.invalidID),{valid:a,validation:{expression:i,message:s}}}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2}_cleanupPanel(){this.el.scrollIntoView(!0),this._isScreenshotsRowExpanded=!1,this._showScreenshotsShowMore=!1,this._screenshotsElement.value?.classList.remove("expanded"),this._isYouMayAlsoLikeRowExpanded=!1,this._showYouMayAlsoLikeShowMore=!1,this._youMayAlsoLikeElement.value?.classList.remove("expanded"),this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1),this._isDeployDisabled=!1,this._isLoaded=!1,this._itemFetched=!1,this._showLoader=!1,this._expandAccordions()}_deployProgressStart(e){this._deploymentStartTime=Date.now(),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Started",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0,this._deployingDialogRef.value.abortController=e.detail),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(e=!1){if(this._cancellationStartTime!==null){let t=f(this._cancellationStartTime);this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[this._deployToCancelDuration,t]}),this._cancellationStartTime=null,this._deployToCancelDuration=0}this._deployingDialogRef.value.close(),e?this._deployDialogRef.value.open=!0:this._deployDialogRef.value.close(),this._deployDialogRef.value.classList.remove("display-none")}_handleDeployAppTabSelected(e){e.detail==="details"&&this.sortTypeChanged.emit("")}_checkPermissionsBeforeDeploy(){this._isLoaded?this._openDeploy():this._configContextConsumer.value.authentication?.IsSignedIn?this._showLoader=!0:this._openDeploy()}};C("solution-details-panel",I);return I},a,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./BIYG7PA2.js";import b from"./7EEAVPTU.js";import"./JZHP22BA.js";import a from"./N73GF6WL.js";import"./QHG54NVK.js";import"./DPD6UBKD.js";import"./HBQN25RR.js";import"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./FLLZBDVI.js";import"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import a from"./N73GF6WL.js";import{a as f,b as v}from"./QHG54NVK.js";import{b as r}from"./DPD6UBKD.js";import{a as b}from"./SDJWXDEO.js";import{b as g}from"./FLLZBDVI.js";import{E as s,F as l,G as p,J as u,h as d,i,j as h,q as o}from"./F2JKSZOE.js";export default $arcgis.t(([{K:m,L:x}])=>{var w=d`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.text-center{text-align:center}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.justify-content-start{justify-content:start}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-8{padding-top:8px}`,c=class extends p{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this.isMobile=!1,this._translations=b({name:"solutions-deployed-shell",blocking:!0}),this._configContextConsumer=r({context:v,subscribe:!0}),this._isMobileContextConsumer=r({context:f,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedPanelRef=s(),this._mainPanelRef=s(),this._panelFixed=!1,this.filterRemoved=o(),this.tokenRefreshed=o(),this._handleSignIn=()=>{let e=window.location.pathname.endsWith("deployments")?"":"deployments";this._configContextConsumer.value?.authentication?.signIn(e)},this.listenOn(window,"deployedCardFetchFailed",e=>{let t=e.detail;x({kind:"danger",icon:"exclamation-mark-triangle",title:t.title,message:t.message,autoClose:!1})})}static{this.properties={solutionsCount:9,filterOpen:16,isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){this._solutionsDeployedPanelRef.value?.setSearchOptions(e),("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(n=>{if(n.type==="attributes"&&n.attributeName==="tabindex"){let a=n.target;a.classList.contains("content-wrapper")&&a.tabIndex===0&&(a.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){if(!this._configContextConsumer.value?.authentication?.IsSignedIn)return this._getSignInPrompt();let e=this.isMobile?"justify-content-start":"";return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${l(this._mainPanelRef)}><div class=${`display-flex align-items-center height-50 header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-8" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`}_getSignInPrompt(){return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${e=>m(e,()=>this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`}_getSolutionsDeployedPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${u(e)} ${l(this._solutionsDeployedPanelRef)}></solutions-deployed-panel></div>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_getSignInIcon(){return i`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${h`<path d="M56.9 4.1V60h-.8V4.9H23.3l25.6 7.47v39.26l-28.8 8.4V35h.8v23.97l27.2-7.94V12.97L20.9 5.03V30h-.8V4.1h36.8zM30.735 41.7l.565.566 9.766-9.766-9.766-9.766-.565.567 8.799 8.799H5v.8h34.534l-8.8 8.8z" fill=var(--calcite-color-text-3) />`}</svg></div>`}};g("solutions-deployed-shell",c);return c},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import"./TLJX3G56.js";import b from"./33OQKT4F.js";import a from"./N73GF6WL.js";import"./QHG54NVK.js";import"./DPD6UBKD.js";import"./HBQN25RR.js";import{a as g}from"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as p}from"./FLLZBDVI.js";import{E as c,F as l,G as h,h as o,i as r,q as d}from"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([])=>{var u={heading:"Get Started",card1:{heading:"What's new in the app"},card2:{heading:"Deploy a solution"},card3:{heading:"Manage a deployment"},card4:{heading:"AI Assistant"}},m={heading:"Documentation",card1:{heading:"Help"},card2:{heading:"What's new"},card3:{heading:"FAQ"},card4:{heading:"ArcGIS Blog"}},b={heading:"Support",card1:{heading:"Esri Community"},card2:{heading:"ArcGIS Ideas"},card3:{heading:"Esri Video"},card4:{heading:"Technical support"}},i={getStarted:u,documentation:m,support:b},v=o`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.position-relative{position:relative}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-background-color: var(--calcite-color-surface-3)}.width-350{--calcite-shell-panel-width: 350px}.height-full{height:100%}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-surface-2)}calcite-shell{background-color:unset;height:auto}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-end-md{margin-inline-end:var(--calcite-spacing-md)}.resources-container{width:100%;box-sizing:border-box}.content-wrapper{max-width:1440px;width:100%;margin-left:auto;margin-right:auto;padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md);box-sizing:border-box}.hero-banner{background-color:var(--calcite-color-surface-3);padding:4.25rem var(--calcite-spacing-md);text-align:center;width:100%;box-sizing:border-box;margin-bottom:3rem}.hero-content{max-width:1440px;width:100%;margin-left:auto;margin-right:auto}.hero-heading{font-size:var(--calcite-font-size-5);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-xxl) 0;color:var(--calcite-color-text-1)}.hero-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);max-width:600px;margin:0 auto}.assistant-open{margin-left:max(2vw,calc((100vw - 1440px)/2));margin-right:0;width:auto;max-width:1440px}`,s=class extends h{constructor(){super(),this.assistantOpen=!1,this._translations=g({name:"solutions-resources-shell",blocking:!0}),this._mainPanelRef=c(),this._panelFixed=!1,this.sortTypeChanged=d(),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected)}static{this.properties={assistantOpen:7,_translations:16}}static{this.styles=v}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let n=e.shadowRoot.querySelector(".content-wrapper");n&&(n.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(n=>{n.forEach(a=>{if(a.type==="attributes"&&a.attributeName==="tabindex"){let t=a.target;t.classList.contains("content-wrapper")&&t.tabIndex===0&&(t.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let n=e.shadowRoot.querySelector(".content-wrapper");n&&this._panelObserver.observe(n,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){let e=this._translations,n=this.assistantOpen?"assistant-open":"";return r`<calcite-shell class="position-relative"><calcite-panel ${l(this._mainPanelRef)}><div class="resources-container"><div class="hero-banner"><div class=${`hero-content ${n}`}><h1 class="hero-heading" tabindex=0>${e.hero.heading}</h1><p class="hero-subheading" tabindex=0>${e.hero.subheading}</p></div></div><div class=${`content-wrapper ${n}`}><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[{meridianIcon:"value",heading:e.getStarted.card1.heading,description:e.getStarted.card1.description,url:"https://links.esri.com/solutions/whats-new-in-the-app",headingEn:i.getStarted.card1.heading,sectionHeadingEn:i.getStarted.heading},{meridianIcon:"install",heading:e.getStarted.card2.heading,description:e.getStarted.card2.description,url:"https://links.esri.com/solutions/deploy-a-solution",headingEn:i.getStarted.card2.heading,sectionHeadingEn:i.getStarted.heading},{meridianIcon:"keys",heading:e.getStarted.card3.heading,description:e.getStarted.card3.description,url:"https://links.esri.com/solutions/manage-a-deployment",headingEn:i.getStarted.card3.heading,sectionHeadingEn:i.getStarted.heading},{meridianIcon:"speech-bubbles",heading:e.getStarted.card4.heading,description:e.getStarted.card4.description,url:"https://links.esri.com/solutions/ai-assistant",headingEn:i.getStarted.card4.heading,sectionHeadingEn:i.getStarted.heading}]}></solutions-resources-section><solutions-resources-section .heading=${e.documentation.heading} .subheading=${e.documentation.subheading} .cards=${[{meridianIcon:"search-files",heading:e.documentation.card1.heading,description:e.documentation.card1.description,url:"https://links.esri.com/solutions/help",headingEn:i.documentation.card1.heading,sectionHeadingEn:i.documentation.heading},{meridianIcon:"value",heading:e.documentation.card2.heading,description:e.documentation.card2.description,url:"https://links.esri.com/solutions/whats-new",headingEn:i.documentation.card2.heading,sectionHeadingEn:i.documentation.heading},{meridianIcon:"faq",heading:e.documentation.card3.heading,description:e.documentation.card3.description,url:"https://links.esri.com/solutions/faq",headingEn:i.documentation.card3.heading,sectionHeadingEn:i.documentation.heading},{meridianIcon:"arcmap-blog",heading:e.documentation.card4.heading,description:e.documentation.card4.description,url:"https://links.esri.com/solutions/arcgis-blogs",headingEn:i.documentation.card4.heading,sectionHeadingEn:i.documentation.heading}]}></solutions-resources-section><solutions-resources-section .heading=${e.support.heading} .subheading=${e.support.subheading} .cards=${[{meridianIcon:"esri-community",heading:e.support.card1.heading,description:e.support.card1.description,url:"https://links.esri.com/solutions/esri-community",headingEn:i.support.card1.heading,sectionHeadingEn:i.support.heading},{meridianIcon:"idea",heading:e.support.card2.heading,description:e.support.card2.description,url:"https://links.esri.com/solutions/arcgis-ideas",headingEn:i.support.card2.heading,sectionHeadingEn:i.support.heading},{meridianIcon:"video",heading:e.support.card3.heading,description:e.support.card3.description,url:"https://links.esri.com/solutions/esri-video",headingEn:i.support.card3.heading,sectionHeadingEn:i.support.heading},{meridianIcon:"support",heading:e.support.card4.heading,description:e.support.card4.description,url:"https://links.esri.com/solutions/technical-support",headingEn:i.support.card4.heading,sectionHeadingEn:i.support.heading}]}></solutions-resources-section></div></div></calcite-panel></calcite-shell>`}_handleDeployAppTabSelected(e){e.detail==="resources"&&this.sortTypeChanged.emit("")}};p("solutions-resources-shell",s);return s},a,b)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./N73GF6WL.js";import{b as g0}from"./QHG54NVK.js";import{b as m0}from"./DPD6UBKD.js";import"./HBQN25RR.js";import{a as za}from"./KN36REDP.js";import{a as f0}from"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as h0}from"./FLLZBDVI.js";import{E as u0,F as l0,G as d0,K as p0,h as r0,i as co,k as s0,l as nh,q as a0,v as i0,w as o0,x as c0}from"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([BE,ZE,Q1,,,,{J:_0,q:y0}])=>{var uo=class extends c0{constructor(t){if(super(t),this.it=nh,t.type!==i0.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nh||t==null)return this._t=void 0,this.it=t;if(t===s0)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}};uo.directiveName="unsafeHTML",uo.resultType=1;var v0=o0(uo);var VE=r0`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-surface-4);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-surface-1);border-radius:10px;padding:10px}.chat-panel{--calcite-dialog-header-background-color: var(--calcite-color-brand);--calcite-dialog-header-action-background-color: var(--calcite-color-brand);--calcite-dialog-heading-text-color: var(--calcite-color-surface-1);--calcite-dialog-header-action-text-color: var(--calcite-color-surface-1);--calcite-dialog-header-action-text-color-press: var(--calcite-color-surface-1);--calcite-color-focus: var(--calcite-color-surface-1);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel calcite-card,.chat-panel calcite-text-area,.chat-panel calcite-button:not(.icon-color-background),.chat-panel .chat-messages,.chat-panel .chat-input{--calcite-color-focus: var(--calcite-color-brand)}.assistant-followup-chip:focus{outline:2px solid var(--calcite-color-brand)}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-surface-1, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-color-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-text-inverse);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-surface-3);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-surface-4);--calcite-card-border-color: var(--calcite-color-surface-4);color:var(--calcite-color-inverse);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-surface-4);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-surface-4);--calcite-card-border-color: var(--calcite-color-surface-4)}.message-content{padding:0;font-size:14px}.response-message.message-content>p:first-of-type{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.padding-left-right-5{padding-right:5px;padding-left:5px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-surface-4)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-width:520px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.solution-card:focus{outline:2px solid var(--calcite-color-brand)}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.display-none{display:none}.chat-messages calcite-fab{position:absolute;bottom:16px;left:50%;transform:translate(-50%);z-index:999}.icon-color-background{--calcite-button-icon-color: var(--calcite-color-surface-1)}.icon-color-background:focus{--calcite-color-focus: var(--calcite-color-surface-1)}@media(max-width:430px){.solution-card .solution-snippet{display:none}}.height-32-flex-auto{height:32px;flex:0 0 auto}.margin-top-0.message-content>p:first-of-type{margin-top:0}a:not(.solution-card){color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:not(.solution-card):hover{background-size:100% 1px,100% 1px}a:not(.solution-card):focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:not(.solution-card):active{color:var(--calcite-color-brand-press)}`,wt="__start__",St="__end__",as="__input__",yp="__error__",rh="__pregel_ns_writes",ds="__pregel_send",oy="__pregel_call",ra="__pregel_read",Fr="__pregel_checkpointer",Tl="__pregel_resuming",Ku="__pregel_task_id",cy="__pregel_stream",qE="__pregel_resume_value",Xu="__pregel_resume_map",ps="__pregel_scratchpad",Yu="__pregel_previous",HE="__pregel_durability",Yf="checkpoint_id",Br="checkpoint_ns",WE="__pregel_node_finished",Mr="checkpoint_map",JE="__pregel_abort_signals",Tt="__interrupt__",vs="__resume__",uy="__no_writes__",_p="__return__",sh="__previous__",ln="langsmith:hidden",w0="__self__",_i="__pregel_tasks",Zr="__pregel_push",Qf="__pregel_pull",yr="00000000-0000-0000-0000-000000000000",GE=[ln,as,Tt,vs,yp,uy,ds,ra,Fr,HE,cy,Tl,Ku,oy,qE,ps,Yu,Mr,Br,Yf],b0=Symbol.for("langgraph.command"),KE=class{[b0];constructor(e){this[b0]=e}};function em(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var Jo=class{lg_name="Send";node;args;constructor(e,t){this.node=e,this.args=Go(t)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args}}};function fn(e){return e instanceof Jo}var XE="__overwrite__";function tm(e){return typeof e=="object"&&e!==null&&"__overwrite__"in e?[!0,e[XE]]:[!1,void 0]}function YE(e){return tm(e)[0]}function ek(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[Tt])}var _r=class extends KE{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?Go(e.goto):[Go(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:fn(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function Ut(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function Go(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let n;if(Array.isArray(e))n=[],t.set(e,n),e.forEach((r,s)=>{n[s]=Go(r,t)});else if(Ut(e)&&!(e instanceof _r))n=new _r(e),t.set(e,n);else if(em(e)&&!(e instanceof Jo))n=new Jo(e.node,e.args),t.set(e,n);else if(Ut(e)||fn(e))n=e,t.set(e,n);else if("lc_serializable"in e&&e.lc_serializable)n=e,t.set(e,n);else{n={},t.set(e,n);for(let[r,s]of Object.entries(e))n[r]=Go(s,t)}return n}return e}var Rs=class extends Error{lc_error_code;constructor(e,t){let n=e??"";t?.lc_error_code&&(n=`${n}
|
|
2
|
+
import a from"./N73GF6WL.js";import{b as g0}from"./QHG54NVK.js";import{b as m0}from"./DPD6UBKD.js";import"./HBQN25RR.js";import{a as za}from"./KN36REDP.js";import{a as f0}from"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as h0}from"./FLLZBDVI.js";import{E as u0,F as l0,G as d0,K as p0,h as r0,i as co,k as s0,l as nh,q as a0,v as i0,w as o0,x as c0}from"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([BE,ZE,Q1,,,,{J:_0,q:y0}])=>{var uo=class extends c0{constructor(t){if(super(t),this.it=nh,t.type!==i0.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nh||t==null)return this._t=void 0,this.it=t;if(t===s0)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}};uo.directiveName="unsafeHTML",uo.resultType=1;var v0=o0(uo);var VE=r0`:host{display:block;height:100%}.margin-lg{margin:var(--calcite-spacing-lg)}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-surface-4);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-surface-1);border-radius:10px;padding:10px}.chat-panel{--calcite-color-focus: var(--calcite-color-brand);--calcite-panel-border-color: var(--calcite-color-border-2);--calcite-internal-panel-header-vertical-padding: 0px;--calcite-panel-header-content-space: 0px;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);height:100%}.header-content{display:flex;align-items:center;gap:var(--calcite-spacing-sm);height:65px;box-sizing:border-box;padding-inline-start:var(--calcite-spacing-md)}.header-title{font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-medium)}.beta-chip{--calcite-chip-corner-radius: var(--calcite-corner-radius-half)}.chat-panel calcite-card,.chat-panel calcite-text-area,.chat-panel calcite-button,.chat-panel .chat-messages,.chat-panel .chat-input{--calcite-color-focus: var(--calcite-color-brand)}.assistant-followup-chip:focus{outline:2px solid var(--calcite-color-brand)}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-surface-1, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-color-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-text-inverse);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-surface-3);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-surface-4);--calcite-card-border-color: var(--calcite-color-surface-4);color:var(--calcite-color-inverse);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-surface-4);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-surface-4);--calcite-card-border-color: var(--calcite-color-surface-4)}.message-content{padding:0;font-size:14px}.response-message.message-content>p:first-of-type{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.padding-left-right-5{padding-right:5px;padding-left:5px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-surface-4)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-width:520px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.solution-card:focus{outline:2px solid var(--calcite-color-brand)}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.display-none{display:none}.chat-messages calcite-fab{position:absolute;bottom:16px;left:50%;transform:translate(-50%);z-index:999}.icon-color-background{--calcite-button-icon-color: var(--calcite-color-surface-1)}#closeAssistantButton{--calcite-action-text-color: var(--calcite-color-text-1)}.icon-color-background:focus{--calcite-color-focus: var(--calcite-color-surface-1)}@media(max-width:430px){.solution-card .solution-snippet{display:none}}.height-32-flex-auto{height:32px;flex:0 0 auto}.margin-top-0.message-content>p:first-of-type{margin-top:0}a:not(.solution-card){color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:not(.solution-card):hover{background-size:100% 1px,100% 1px}a:not(.solution-card):focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:not(.solution-card):active{color:var(--calcite-color-brand-press)}`,wt="__start__",St="__end__",as="__input__",yp="__error__",rh="__pregel_ns_writes",ds="__pregel_send",oy="__pregel_call",ra="__pregel_read",Fr="__pregel_checkpointer",Tl="__pregel_resuming",Ku="__pregel_task_id",cy="__pregel_stream",qE="__pregel_resume_value",Xu="__pregel_resume_map",ps="__pregel_scratchpad",Yu="__pregel_previous",HE="__pregel_durability",Yf="checkpoint_id",Br="checkpoint_ns",WE="__pregel_node_finished",Mr="checkpoint_map",JE="__pregel_abort_signals",Tt="__interrupt__",vs="__resume__",uy="__no_writes__",_p="__return__",sh="__previous__",ln="langsmith:hidden",w0="__self__",_i="__pregel_tasks",Zr="__pregel_push",Qf="__pregel_pull",yr="00000000-0000-0000-0000-000000000000",GE=[ln,as,Tt,vs,yp,uy,ds,ra,Fr,HE,cy,Tl,Ku,oy,qE,ps,Yu,Mr,Br,Yf],b0=Symbol.for("langgraph.command"),KE=class{[b0];constructor(e){this[b0]=e}};function em(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var Jo=class{lg_name="Send";node;args;constructor(e,t){this.node=e,this.args=Go(t)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args}}};function fn(e){return e instanceof Jo}var XE="__overwrite__";function tm(e){return typeof e=="object"&&e!==null&&"__overwrite__"in e?[!0,e[XE]]:[!1,void 0]}function YE(e){return tm(e)[0]}function ek(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[Tt])}var _r=class extends KE{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?Go(e.goto):[Go(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:fn(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function Ut(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function Go(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let n;if(Array.isArray(e))n=[],t.set(e,n),e.forEach((r,s)=>{n[s]=Go(r,t)});else if(Ut(e)&&!(e instanceof _r))n=new _r(e),t.set(e,n);else if(em(e)&&!(e instanceof Jo))n=new Jo(e.node,e.args),t.set(e,n);else if(Ut(e)||fn(e))n=e,t.set(e,n);else if("lc_serializable"in e&&e.lc_serializable)n=e,t.set(e,n);else{n={},t.set(e,n);for(let[r,s]of Object.entries(e))n[r]=Go(s,t)}return n}return e}var Rs=class extends Error{lc_error_code;constructor(e,t){let n=e??"";t?.lc_error_code&&(n=`${n}
|
|
3
3
|
|
|
4
4
|
Troubleshooting URL: https://docs.langchain.com/oss/javascript/langgraph/${t.lc_error_code}/
|
|
5
5
|
`),super(n),this.lc_error_code=t?.lc_error_code}},tk=class extends Rs{get is_bubble_up(){return!0}},QE=class extends Rs{constructor(e,t){super(e,t),this.name="GraphRecursionError"}static get unminifiable_name(){return"GraphRecursionError"}},Qu=class extends Rs{constructor(e,t){super(e,t),this.name="GraphValueError"}static get unminifiable_name(){return"GraphValueError"}},hi=class extends tk{interrupts;constructor(e,t){super(JSON.stringify(e,null,2),t),this.name="GraphInterrupt",this.interrupts=e??[]}static get unminifiable_name(){return"GraphInterrupt"}},ly=class extends hi{constructor(e,t){super([{value:e}],t),this.name="NodeInterrupt"}static get unminifiable_name(){return"NodeInterrupt"}},nk=class extends tk{command;constructor(e){super(),this.name="ParentCommand",this.command=e}static get unminifiable_name(){return"ParentCommand"}};function eA(e){return e!==void 0&&e.name===nk.unminifiable_name}function el(e){return e!==void 0&&e.is_bubble_up===!0}function ti(e){return e!==void 0&&[hi.unminifiable_name,ly.unminifiable_name].includes(e.name)}var k0=class extends Rs{constructor(e,t){super(e,t),this.name="EmptyInputError"}static get unminifiable_name(){return"EmptyInputError"}},Et=class extends Rs{constructor(e,t){super(e,t),this.name="EmptyChannelError"}static get unminifiable_name(){return"EmptyChannelError"}},Xe=class extends Rs{constructor(e,t){super(e,t),this.name="InvalidUpdateError"}static get unminifiable_name(){return"InvalidUpdateError"}},tA=class extends Rs{constructor(e,t){super(e,t),this.name="UnreachableNodeError"}static get unminifiable_name(){return"UnreachableNodeError"}},ah=class extends Rs{constructor(e,t){super(e,t),this.name="StateGraphInputError",this.message="Invalid StateGraph input. Make sure to pass a valid StateDefinition, Annotation.Root, or Zod schema."}static get unminifiable_name(){return"StateGraphInputError"}},nA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function nm(e){return typeof e=="string"&&nA.test(e)}function rk(e){if(!nm(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var At=[];for(lu=0;lu<256;++lu)At.push((lu+256).toString(16).slice(1));var lu;function eo(e,t=0){return(At[e[t+0]]+At[e[t+1]]+At[e[t+2]]+At[e[t+3]]+"-"+At[e[t+4]]+At[e[t+5]]+"-"+At[e[t+6]]+At[e[t+7]]+"-"+At[e[t+8]]+At[e[t+9]]+"-"+At[e[t+10]]+At[e[t+11]]+At[e[t+12]]+At[e[t+13]]+At[e[t+14]]+At[e[t+15]]).toLowerCase()}var du,rA=new Uint8Array(16);function dy(){if(!du&&(du=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!du))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return du(rA)}var ih,pu,oh=0,ch=0;function sA(e,t,n){var r=0,s=t||new Array(16);e=e||{};var a=e.node,i=e.clockseq;if(e._v6||(a||(a=ih),i==null&&(i=pu)),a==null||i==null){var o=e.random||(e.rng||dy)();a==null&&(a=[o[0],o[1],o[2],o[3],o[4],o[5]],!ih&&!e._v6&&(a[0]|=1,ih=a)),i==null&&(i=(o[6]<<8|o[7])&16383,pu===void 0&&!e._v6&&(pu=i))}var c=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:ch+1,l=c-oh+(u-ch)/1e4;if(l<0&&e.clockseq===void 0&&(i=i+1&16383),(l<0||c>oh)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");oh=c,ch=u,pu=i,c+=122192928e5;var d=((c&268435455)*1e4+u)%4294967296;s[r++]=d>>>24&255,s[r++]=d>>>16&255,s[r++]=d>>>8&255,s[r++]=d&255;var p=c/4294967296*1e4&268435455;s[r++]=p>>>8&255,s[r++]=p&255,s[r++]=p>>>24&15|16,s[r++]=p>>>16&255,s[r++]=i>>>8|128,s[r++]=i&255;for(var h=0;h<6;++h)s[r+h]=a[h];return t||eo(s)}function aA(e){var t=typeof e=="string"?rk(e):e,n=iA(t);return typeof e=="string"?eo(n):n}function iA(e,t=!1){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function oA(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var cA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",uA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function lA(e,t,n){function r(s,a,i,o){var c;if(typeof s=="string"&&(s=oA(s)),typeof a=="string"&&(a=rk(a)),((c=a)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+s.length);if(u.set(a),u.set(s,a.length),u=n(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,i){o=o||0;for(var l=0;l<16;++l)i[o+l]=u[l];return i}return eo(u)}try{r.name=e}catch{}return r.DNS=cA,r.URL=uA,r}var dA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),x0={randomUUID:dA};function Gs(e,t,n){if(x0.randomUUID&&!e)return x0.randomUUID();e=e||{};var r=e.random||(e.rng||dy)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,eo(r)}function pA(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function uh(e,t){return e<<t|e>>>32-t}function hA(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var s=0;s<r.length;++s)e.push(r.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),o=new Array(i),c=0;c<i;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[c*64+l*4]<<24|e[c*64+l*4+1]<<16|e[c*64+l*4+2]<<8|e[c*64+l*4+3];o[c]=u}o[i-1][14]=(e.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<i;++d){for(var p=new Uint32Array(80),h=0;h<16;++h)p[h]=o[d][h];for(var f=16;f<80;++f)p[f]=uh(p[f-3]^p[f-8]^p[f-14]^p[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],k=n[4],x=0;x<80;++x){var S=Math.floor(x/20),E=uh(m,5)+pA(S,v,g,y)+k+t[S]+p[x]>>>0;k=y,y=g,g=uh(v,30)>>>0,v=m,m=E}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+k>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var sk=lA("v5",80,hA);function O0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function S0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){fA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fA(e,t,n){return(t=mA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mA(e){var t=gA(e,"string");return typeof t=="symbol"?t:t+""}function gA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yA(e={},t,n=0){var r=sA(S0(S0({},e),{},{_v6:!0}),new Uint8Array(16));return r=aA(r),eo(r)}var T0=null,I0=null,Fn=0;function ak(e,t,n){e=e||{};var r=0,s=new Uint8Array(16),a=e.random||(e.rng||dy)(),i=e.msecs!==void 0?e.msecs:Date.now(),o=e.seq!==void 0?e.seq:null,c=I0,u=T0;return i>Fn&&e.msecs===void 0&&(Fn=i,o!==null&&(c=null,u=null)),o!==null&&(o>2147483647&&(o=2147483647),c=o>>>19&4095,u=o&524287),(c===null||u===null)&&(c=a[6]&127,c=c<<8|a[7],u=a[8]&63,u=u<<8|a[9],u=u<<5|a[10]>>>3),i+1e4>Fn&&o===null?++u>524287&&(u=0,++c>4095&&(c=0,Fn++)):Fn=i,I0=c,T0=u,s[r++]=Fn/1099511627776&255,s[r++]=Fn/4294967296&255,s[r++]=Fn/16777216&255,s[r++]=Fn/65536&255,s[r++]=Fn/256&255,s[r++]=Fn&255,s[r++]=c>>>4&15|112,s[r++]=c&255,s[r++]=u>>>13&63|128,s[r++]=u>>>5&255,s[r++]=u<<3&255|a[10]&7,s[r++]=a[11],s[r++]=a[12],s[r++]=a[13],s[r++]=a[14],s[r++]=a[15],t||eo(s)}function ik(e){return yA({clockseq:e})}function ni(e,t){let n=t.replace(/-/g,"").match(/.{2}/g).map(r=>parseInt(r,16));return sk(e,new Uint8Array(n))}var _A="__error__",tl="__scheduled__",vA="__interrupt__",wA="__resume__",E0="[...]",bA="[Circular]",Il=[],ri=[];function kA(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function xA(e,t,n,r){typeof r>"u"&&(r=kA()),rm(e,"",0,[],void 0,0,r);var s;try{ri.length===0?s=JSON.stringify(e,t,n):s=JSON.stringify(e,OA(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Il.length!==0;){var a=Il.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return s}function lh(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);s.get!==void 0?s.configurable?(Object.defineProperty(r,n,{value:e}),Il.push([r,n,t,s])):ri.push([t,n,e]):(r[n]=e,Il.push([r,n,t]))}function rm(e,t,n,r,s,a,i){a+=1;var o;if(typeof e=="object"&&e!==null){for(o=0;o<r.length;o++)if(r[o]===e){lh(bA,e,t,s);return}if(typeof i.depthLimit<"u"&&a>i.depthLimit){lh(E0,e,t,s);return}if(typeof i.edgesLimit<"u"&&n+1>i.edgesLimit){lh(E0,e,t,s);return}if(r.push(e),Array.isArray(e))for(o=0;o<e.length;o++)rm(e[o],o,o,r,e,a,i);else{var c=Object.keys(e);for(o=0;o<c.length;o++){var u=c[o];rm(e[u],u,o,r,e,a,i)}}r.pop()}}function OA(e){return e=typeof e<"u"?e:function(t,n){return n},function(t,n){if(ri.length>0)for(var r=0;r<ri.length;r++){var s=ri[r];if(s[1]===t&&s[0]===n){n=s[2],ri.splice(r,1);break}}return e.call(this,t,n)}}var A0,$0;function SA(){return $0||($0=1,A0=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}),A0}var TA=SA(),IA=za(TA),hu={exports:{}},C0;function EA(){if(C0)return hu.exports;C0=1;let e=/[\p{Lu}]/u,t=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,r=/([\p{Alpha}\p{N}_]|$)/u,s=/[_.\- ]+/,a=new RegExp("^"+s.source),i=new RegExp(s.source+r.source,"gu"),o=new RegExp("\\d+"+r.source,"gu"),c=(p,h,f)=>{let m=!1,v=!1,g=!1;for(let y=0;y<p.length;y++){let k=p[y];m&&e.test(k)?(p=p.slice(0,y)+"-"+p.slice(y),m=!1,g=v,v=!0,y++):v&&g&&t.test(k)?(p=p.slice(0,y-1)+"-"+p.slice(y-1),g=v,v=!1,m=!0):(m=h(k)===k&&f(k)!==k,g=v,v=f(k)===k&&h(k)!==k)}return p},u=(p,h)=>(n.lastIndex=0,p.replace(n,f=>h(f))),l=(p,h)=>(i.lastIndex=0,o.lastIndex=0,p.replace(i,(f,m)=>h(m)).replace(o,f=>h(f))),d=(p,h)=>{if(!(typeof p=="string"||Array.isArray(p)))throw new TypeError("Expected the input to be `string | string[]`");if(h={pascalCase:!1,preserveConsecutiveUppercase:!1,...h},Array.isArray(p)?p=p.map(v=>v.trim()).filter(v=>v.length).join("-"):p=p.trim(),p.length===0)return"";let f=h.locale===!1?v=>v.toLowerCase():v=>v.toLocaleLowerCase(h.locale),m=h.locale===!1?v=>v.toUpperCase():v=>v.toLocaleUpperCase(h.locale);return p.length===1?h.pascalCase?m(p):f(p):(p!==f(p)&&(p=c(p,f,m)),p=p.replace(a,""),h.preserveConsecutiveUppercase?p=u(p,f):p=f(p),h.pascalCase&&(p=m(p.charAt(0))+p.slice(1)),l(p,m))};return hu.exports=d,hu.exports.default=d,hu.exports}var AA=EA(),$A=za(AA);function CA(e,t){return t?.[e]||IA(e)}function NA(e,t){return t?.[e]||$A(e)}function ok(e,t,n){let r={};for(let s in e)Object.hasOwn(e,s)&&(r[t(s,n)]=e[s]);return r}var ck="__lc_escaped__";function PA(e){return"lc"in e||Object.keys(e).length===1&&"__lc_escaped__"in e}function jA(e){return{[ck]:e}}function uk(e){return Object.keys(e).length===1&&"__lc_escaped__"in e}function RA(e){return e!==null&&typeof e=="object"&&"lc_serializable"in e&&typeof e.toJSON=="function"}function MA(e){let t;return e!==null&&typeof e=="object"?"lc_id"in e&&Array.isArray(e.lc_id)?t=e.lc_id:t=[e.constructor?.name??"Object"]:t=[typeof e],{lc:1,type:"not_implemented",id:t}}function sm(e,t=new WeakSet){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){if(t.has(e))return MA(e);if(RA(e))return e;t.add(e);let n=e;if(PA(n))return t.delete(e),jA(n);let r={};for(let[s,a]of Object.entries(n))r[s]=sm(a,t);return t.delete(e),r}return Array.isArray(e)?e.map(n=>sm(n,t)):e}function am(e){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let t=e;if(uk(t))return t[ck];let n={};for(let[r,s]of Object.entries(t))n[r]=am(s);return n}return Array.isArray(e)?e.map(t=>am(t)):e}var N0=Object.defineProperty,Q=(e,t)=>{let n={};for(var r in e)N0(n,r,{get:e[r],enumerable:!0});return N0(n,Symbol.toStringTag,{value:"Module"}),n},LA=Q({Serializable:()=>Rn,get_lc_unique_name:()=>vp});function P0(e){return Array.isArray(e)?[...e]:{...e}}function zA(e,t){let n=P0(e);for(let[r,s]of Object.entries(t)){let[a,...i]=r.split(".").reverse(),o=n;for(let c of i.reverse()){if(o[c]===void 0)break;o[c]=P0(o[c]),o=o[c]}o[a]!==void 0&&(o[a]={lc:1,type:"secret",id:[s]})}return n}function vp(e){let t=Object.getPrototypeOf(e);return typeof e.lc_name=="function"&&(typeof t.lc_name!="function"||e.lc_name()!==t.lc_name())?e.lc_name():e.name}var Rn=class lk{lc_serializable=!1;lc_kwargs;static lc_name(){return this.name}get lc_id(){return[...this.lc_namespace,vp(this.constructor)]}get lc_secrets(){}get lc_attributes(){}get lc_aliases(){}get lc_serializable_keys(){}constructor(t,...n){this.lc_serializable_keys!==void 0?this.lc_kwargs=Object.fromEntries(Object.entries(t||{}).filter(([r])=>this.lc_serializable_keys?.includes(r))):this.lc_kwargs=t??{}}toJSON(){if(!this.lc_serializable)return this.toJSONNotImplemented();if(this.lc_kwargs instanceof lk||typeof this.lc_kwargs!="object"||Array.isArray(this.lc_kwargs))return this.toJSONNotImplemented();let t={},n={},r=Object.keys(this.lc_kwargs).reduce((o,c)=>(o[c]=c in this?this[c]:this.lc_kwargs[c],o),{});for(let o=Object.getPrototypeOf(this);o;o=Object.getPrototypeOf(o))Object.assign(t,Reflect.get(o,"lc_aliases",this)),Object.assign(n,Reflect.get(o,"lc_secrets",this)),Object.assign(r,Reflect.get(o,"lc_attributes",this));Object.keys(n).forEach(o=>{let c=this,u=r,[l,...d]=o.split(".").reverse();for(let p of d.reverse()){if(!(p in c)||c[p]===void 0)return;(!(p in u)||u[p]===void 0)&&(typeof c[p]=="object"&&c[p]!=null?u[p]={}:Array.isArray(c[p])&&(u[p]=[])),c=c[p],u=u[p]}l in c&&c[l]!==void 0&&(u[l]=u[l]||c[l])});let s={},a=new WeakSet;a.add(this);for(let[o,c]of Object.entries(r))s[o]=sm(c,a);let i=ok(Object.keys(n).length?zA(s,n):s,CA,t);return{lc:1,type:"constructor",id:this.lc_id,kwargs:i}}toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:this.lc_id}}},UA=Q({getEnv:()=>py,getEnvironmentVariable:()=>rr,getRuntimeEnvironment:()=>mk,isBrowser:()=>dk,isDeno:()=>wp,isJsDom:()=>hk,isNode:()=>fk,isWebWorker:()=>pk}),dk=()=>typeof window<"u"&&typeof window.document<"u",pk=()=>typeof globalThis=="object"&&globalThis.constructor&&globalThis.constructor.name==="DedicatedWorkerGlobalScope",hk=()=>typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&navigator.userAgent.includes("jsdom"),wp=()=>typeof Deno<"u",fk=()=>typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"&&!wp(),py=()=>{let e;return dk()?e="browser":fk()?e="node":pk()?e="webworker":hk()?e="jsdom":wp()?e="deno":e="other",e},dh;function mk(){return dh===void 0&&(dh={library:"langchain-js",runtime:py()}),dh}function rr(e){try{return typeof process<"u"?process.env?.[e]:wp()?Deno?.env.get(e):void 0}catch{return}}var DA=[],FA=Q({}),BA=Q({}),Y="0123456789abcdef".split(""),ZA=[-2147483648,8388608,32768,128],Bn=[24,16,8,0],fu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],xt=[];function ir(e,t){t?(xt[0]=xt[16]=xt[1]=xt[2]=xt[3]=xt[4]=xt[5]=xt[6]=xt[7]=xt[8]=xt[9]=xt[10]=xt[11]=xt[12]=xt[13]=xt[14]=xt[15]=0,this.blocks=xt):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}ir.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw new Error(ERROR)}else throw new Error(ERROR);t=!0}for(var r,s=0,a,i=e.length,o=this.blocks;s<i;){if(this.hashed&&(this.hashed=!1,o[0]=this.block,this.block=o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),t)for(a=this.start;s<i&&a<64;++s)o[a>>>2]|=e[s]<<Bn[a++&3];else for(a=this.start;s<i&&a<64;++s)r=e.charCodeAt(s),r<128?o[a>>>2]|=r<<Bn[a++&3]:r<2048?(o[a>>>2]|=(192|r>>>6)<<Bn[a++&3],o[a>>>2]|=(128|r&63)<<Bn[a++&3]):r<55296||r>=57344?(o[a>>>2]|=(224|r>>>12)<<Bn[a++&3],o[a>>>2]|=(128|r>>>6&63)<<Bn[a++&3],o[a>>>2]|=(128|r&63)<<Bn[a++&3]):(r=65536+((r&1023)<<10|e.charCodeAt(++s)&1023),o[a>>>2]|=(240|r>>>18)<<Bn[a++&3],o[a>>>2]|=(128|r>>>12&63)<<Bn[a++&3],o[a>>>2]|=(128|r>>>6&63)<<Bn[a++&3],o[a>>>2]|=(128|r&63)<<Bn[a++&3]);this.lastByteIndex=a,this.bytes+=a-this.start,a>=64?(this.block=o[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};ir.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=ZA[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};ir.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,s=this.h4,a=this.h5,i=this.h6,o=this.h7,c=this.blocks,u,l,d,p,h,f,m,v,g,y,k;for(u=16;u<64;++u)h=c[u-15],l=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,h=c[u-2],d=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,c[u]=c[u-16]+l+c[u-7]+d<<0;for(k=t&n,u=0;u<64;u+=4)this.first?(this.is224?(v=300032,h=c[0]-1413257819,o=h-150054599<<0,r=h+24177077<<0):(v=704751109,h=c[0]-210244248,o=h-1521486534<<0,r=h+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),v=e&t,p=v^e&n^k,m=s&a^~s&i,h=o+d+m+fu[u]+c[u],f=l+p,o=r+h<<0,r=h+f<<0),l=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),g=r&e,p=g^r&t^v,m=i&o^~i&s,h=a+d+m+fu[u+1]+c[u+1],f=l+p,i=n+h<<0,n=h+f<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),y=n&r,p=y^n&e^g,m=a&i^~a&o,h=s+d+m+fu[u+2]+c[u+2],f=l+p,a=t+h<<0,t=h+f<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),k=t&n,p=k^t&r^y,m=a&i^~a&o,h=s+d+m+fu[u+3]+c[u+3],f=l+p,s=e+h<<0,e=h+f<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+s<<0,this.h5=this.h5+a<<0,this.h6=this.h6+i<<0,this.h7=this.h7+o<<0};ir.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,s=this.h4,a=this.h5,i=this.h6,o=this.h7,c=Y[e>>>28&15]+Y[e>>>24&15]+Y[e>>>20&15]+Y[e>>>16&15]+Y[e>>>12&15]+Y[e>>>8&15]+Y[e>>>4&15]+Y[e&15]+Y[t>>>28&15]+Y[t>>>24&15]+Y[t>>>20&15]+Y[t>>>16&15]+Y[t>>>12&15]+Y[t>>>8&15]+Y[t>>>4&15]+Y[t&15]+Y[n>>>28&15]+Y[n>>>24&15]+Y[n>>>20&15]+Y[n>>>16&15]+Y[n>>>12&15]+Y[n>>>8&15]+Y[n>>>4&15]+Y[n&15]+Y[r>>>28&15]+Y[r>>>24&15]+Y[r>>>20&15]+Y[r>>>16&15]+Y[r>>>12&15]+Y[r>>>8&15]+Y[r>>>4&15]+Y[r&15]+Y[s>>>28&15]+Y[s>>>24&15]+Y[s>>>20&15]+Y[s>>>16&15]+Y[s>>>12&15]+Y[s>>>8&15]+Y[s>>>4&15]+Y[s&15]+Y[a>>>28&15]+Y[a>>>24&15]+Y[a>>>20&15]+Y[a>>>16&15]+Y[a>>>12&15]+Y[a>>>8&15]+Y[a>>>4&15]+Y[a&15]+Y[i>>>28&15]+Y[i>>>24&15]+Y[i>>>20&15]+Y[i>>>16&15]+Y[i>>>12&15]+Y[i>>>8&15]+Y[i>>>4&15]+Y[i&15];return this.is224||(c+=Y[o>>>28&15]+Y[o>>>24&15]+Y[o>>>20&15]+Y[o>>>16&15]+Y[o>>>12&15]+Y[o>>>8&15]+Y[o>>>4&15]+Y[o&15]),c};ir.prototype.toString=ir.prototype.hex;ir.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,s=this.h4,a=this.h5,i=this.h6,o=this.h7,c=[e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255];return this.is224||c.push(o>>>24&255,o>>>16&255,o>>>8&255,o&255),c};ir.prototype.array=ir.prototype.digest;ir.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};var hy=(...e)=>new ir(!1,!0).update(e.join("")).hex(),VA=Q({sha256:()=>hy});function gk(e){let t=Symbol.for(e);return{brand(n,r){let s=r?Symbol.for(`${e}.${r}`):t;class a extends n{[s]=!0;constructor(...o){super(...o)}static isInstance(o){return typeof o=="object"&&o!==null&&s in o&&o[s]===!0}}return Object.defineProperty(a,"name",{value:n.name}),a},sub(n){return gk(`${e}.${n}`)},isInstance(n){return typeof n=="object"&&n!==null&&t in n&&n[t]===!0}}}var qA=gk("langchain"),HA=Q({ContextOverflowError:()=>yk,LangChainError:()=>fy,ModelAbortError:()=>im,addLangChainErrorFields:()=>Dc,ns:()=>bp});function Dc(e,t){return e.lc_error_code=t,e.message=`${e.message}
|
|
@@ -356,4 +356,4 @@ ${t}`:t:e,default:()=>""}),ticket:mt({reducer:(e,t)=>t??null,default:()=>null})}
|
|
|
356
356
|
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"textInput",message:i,metadata:[]}}else if(!n.template&&!n.useCase){let i=["Templates provide a starting structure for your solution, including layers, maps, and apps. Choose a template to get started."].join(`
|
|
357
357
|
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"singleSelection",message:i,metadata:["Field inspections","Spatial Data Management","Points of interest"]}}else if(!n.template&&n.useCase){let i=[`We understand that your use case is ${n.useCase}.`,"We alse need to know what template to use.","Templates provide a starting structure for your solution, including layers, maps, and apps. Choose a template to get started."].join(`
|
|
358
358
|
`);a={agentId:Lo.id,id:"approveTemplateTicket",kind:"singleSelection",message:i,metadata:["Field inspections","Spatial Data Management","Points of interest"]}}throw new ly(a)}console.log(`hitlResponse.payload: ${r.payload}`);let s=r.payload;if(!n.template||!n.useCase){if(s==="No")return{outputMessage:"Okay, I've cancelled solution builder.",ticket:null};if(s==="Field inspections"||s==="Spatial Data Management"||s==="Points of interest")return{outputMessage:`Use ${s} template to create a new solution.`,ticket:{template:s,useCase:n.useCase}}}return e},m7=async(e,t)=>{await Qi({text:"persisting template and use case"},t);let n=e.ticket;if(!n)return{outputMessage:"I couldn't start the solution builder.Please let me know what you would like to do."};try{console.log("sending trace"),await Qi({text:"Template and use case set."},t)}catch(r){throw new Error(`Failed to save Builder request: ${r.message}`)}return{outputMessage:["Thanks, I\u2019ve logged your Builder request:","",`- template: ${n.template}`,`- useCase: ${n.useCase}`].join(`
|
|
359
|
-
`)}},g7=()=>new N_(UE).addNode("extractTemplateLLM",h7).addNode("approvalTemplate",f7).addNode("persistTemplate",m7).addEdge(wt,"extractTemplateLLM").addEdge("extractTemplateLLM","approvalTemplate").addConditionalEdges("approvalTemplate",e=>e.ticket?.template===""||e.ticket?.useCase===""?"continue":"done",{done:"persistTemplate",continue:"extractTemplateLLM"}).addEdge("persistTemplate",St),y7=await cu(zE,"solutions_builder_description"),Lo={id:"solutionBuilder",name:"Solution Builder Agent",description:y7,createGraph:g7,workspace:UE},_7=Object.assign({"./prompts/explorer-prompts.md":()=>import("./GV3BOKA2.js").then(e=>e.default),"./prompts/solutions_explorer_description.md":()=>import("./NNOZ6KRO.js").then(e=>e.default)});function v7(e,t){if(t.startsWith(e))return t.slice(e.length);let n=0,r=Math.min(e.length,t.length);for(;n<r&&e[n]===t[n];)n++;return t.slice(n)}function w7(e){return e&&e.helperServices.aiAssistantServices?`${e.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/chat`:null}var b7=e=>new Promise(t=>setTimeout(t,e)),DE=mt.Root({messages:mt({reducer:Ra,default:()=>[]}),outputMessage:mt({default:()=>"",reducer:(e,t)=>typeof t!="string"||t.length===0?e:e+t}),_lastFullOutput:mt({default:()=>"",reducer:(e,t)=>typeof t!="string"?e:t}),solutionResponse:mt({reducer:(e,t)=>t??null,default:()=>null}),documentSkillUrl:mt({reducer:(e,t)=>t??null,default:()=>null})}),k7=()=>new N_(DE).addNode("initializeAgent",O7).addNode("askSolutionsQuestions",x7).addEdge(wt,"initializeAgent").addEdge("initializeAgent","askSolutionsQuestions").addConditionalEdges("askSolutionsQuestions",e=>e.solutionResponse?.hasMore===!1?"done":"continue",{done:St,continue:"askSolutionsQuestions"}),x7=async(e,t)=>{let n=PE(t);t&&(t.recursionLimit=100),e.solutionResponse?.conversationId||await Qi({text:n.agentProgress.explorerAgentReading},t);let r={message:e.messages[e.messages.length-1].content,conversationId:t?.configurable?.context?.convoId,context:{kind:"DocAIAssistantRequest",filters:{persona:{persona:"solutions"}}}};e.solutionResponse?.conversationId&&e.solutionResponse.hasMore&&(r={conversationId:e.solutionResponse.conversationId,ackSequenceNumber:e.solutionResponse.ackSequenceNumber,inquiryId:e.solutionResponse.inquiryId}),e.solutionResponse?.conversationId&&e.solutionResponse.hasMore&&await b7(1500);let s=e.documentSkillUrl,a=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",token:t?.configurable?.context?.token},body:JSON.stringify(r)});if(!a.ok)throw new Error(`HTTP ${a.status} calling ${s}`);let i=await a.json();t&&t.configurable&&(t.configurable.context.convoId=i.conversationId);let o={message:i.message,conversationId:i.conversationId,hasMore:i.hasMore,ackSequenceNumber:i.sequenceNumber,inquiryId:i.inquiryId},c=i.context&&i.context.results?i.context.results[0].reply??"":"";c!==""&&i.context&&i.context.results&&i.context.results[0].followupQuestions&&t?.configurable?.context?.updateSuggestedPrompts&&t.configurable.context.updateSuggestedPrompts(i.context.results[0].followupQuestions);let u=e._lastFullOutput??"",l=c,d=v7(u,l);if(i.context&&i.context.results&&i.context.results[0].status.currentStatusStep){let p=i.context.results[0].status.currentStatusStep,h="";p===1?h=n.agentProgress.explorerAgentReading:p===2?h=n.agentProgress.explorerAgentReviewing:p===3&&(h=n.agentProgress.explorerAgentPreparing),await Qi({text:h},t)}return{outputMessage:d,_lastFullOutput:l,solutionResponse:o}},O7=async(e,t)=>{let n=null;return e.documentSkillUrl===null&&t?.configurable?.context?.portal&&(n=w7(t.configurable.context.portal)),{documentSkillUrl:n}},S7=await cu(_7,"solutions_explorer_description"),T7={id:"solutionsExplorerAgent",name:"Solutions Explorer Agent",description:S7,createGraph:k7,workspace:DE},I7="https://links.esri.com/solutions/agol-organizational-account",E7="https://links.esri.com/solutions/configure-assistants",iy=class extends d0{constructor(){super(),this.open=!1,this.userFirstName="",this._conversationId=void 0,this._orgSettings={aiAssistantsEnabled:!1,blockBetaApps:!0,colocateCompute:!1},this._suggestedPrompts=[],this._hasInteracted=!1,this._translations=f0({name:"arcgis-solutions-assistant",blocking:!0}),this._assistantRef=u0(),this._configContextConsumer=m0({context:g0,subscribe:!0,callback:t=>{t?.userSession&&!this.userFirstName&&this._loadUserFirstName(),t?.authentication?.PortalSubset?.orgSettings&&(this._orgSettings=t?.authentication?.PortalSubset?.orgSettings)}}),this.closeAssistant=a0(),this._handleSignIn=()=>{this._configContextConsumer.value?.authentication?.signIn("aiOpen")},this._checkURLOpenParameter=()=>{this.open=this._configContextConsumer.value?.authentication?.SignInParam==="aiOpen"||this.open}}static{this.properties={open:5,userFirstName:1,_conversationId:16,_orgSettings:16,_suggestedPrompts:16,_hasInteracted:16,_translations:16}}static{this.styles=VE}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}loaded(){this._checkURLOpenParameter()}load(){this._configContextConsumer.value?.portalURL&&(BE.portalUrl=this._configContextConsumer.value.portalURL)}firstUpdated(t){this._loadUserFirstName()}willUpdate(t){this._configContextConsumer.value?.userSession?.token&&this._configContextConsumer.value?.authentication?.CanUseAI}_renderNoSign(){return co`<calcite-notice open scale=m icon=effects kind=info><div slot=message>${this._translations.signInMessage}</div><calcite-link @click=${this._handleSignIn} slot=link title=${this._translations.signInMessage??p0} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`}_renderNoPermission(){return co`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${v0(this._translations.noPermissionMessage.replace("{{orgUrl}}",I7).replace("{{configAI}}",E7))}</div></calcite-notice>`}render(){let t=[];return this._suggestedPrompts.length>0?t=this._suggestedPrompts:this._hasInteracted||(t=[...Object.values(this._translations.defaultFollowUpQuestions)],t.push("I want to build my own solution.")),co`<calcite-
|
|
359
|
+
`)}},g7=()=>new N_(UE).addNode("extractTemplateLLM",h7).addNode("approvalTemplate",f7).addNode("persistTemplate",m7).addEdge(wt,"extractTemplateLLM").addEdge("extractTemplateLLM","approvalTemplate").addConditionalEdges("approvalTemplate",e=>e.ticket?.template===""||e.ticket?.useCase===""?"continue":"done",{done:"persistTemplate",continue:"extractTemplateLLM"}).addEdge("persistTemplate",St),y7=await cu(zE,"solutions_builder_description"),Lo={id:"solutionBuilder",name:"Solution Builder Agent",description:y7,createGraph:g7,workspace:UE},_7=Object.assign({"./prompts/explorer-prompts.md":()=>import("./GV3BOKA2.js").then(e=>e.default),"./prompts/solutions_explorer_description.md":()=>import("./NNOZ6KRO.js").then(e=>e.default)});function v7(e,t){if(t.startsWith(e))return t.slice(e.length);let n=0,r=Math.min(e.length,t.length);for(;n<r&&e[n]===t[n];)n++;return t.slice(n)}function w7(e){return e&&e.helperServices.aiAssistantServices?`${e.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/chat`:null}var b7=e=>new Promise(t=>setTimeout(t,e)),DE=mt.Root({messages:mt({reducer:Ra,default:()=>[]}),outputMessage:mt({default:()=>"",reducer:(e,t)=>typeof t!="string"||t.length===0?e:e+t}),_lastFullOutput:mt({default:()=>"",reducer:(e,t)=>typeof t!="string"?e:t}),solutionResponse:mt({reducer:(e,t)=>t??null,default:()=>null}),documentSkillUrl:mt({reducer:(e,t)=>t??null,default:()=>null})}),k7=()=>new N_(DE).addNode("initializeAgent",O7).addNode("askSolutionsQuestions",x7).addEdge(wt,"initializeAgent").addEdge("initializeAgent","askSolutionsQuestions").addConditionalEdges("askSolutionsQuestions",e=>e.solutionResponse?.hasMore===!1?"done":"continue",{done:St,continue:"askSolutionsQuestions"}),x7=async(e,t)=>{let n=PE(t);t&&(t.recursionLimit=100),e.solutionResponse?.conversationId||await Qi({text:n.agentProgress.explorerAgentReading},t);let r={message:e.messages[e.messages.length-1].content,conversationId:t?.configurable?.context?.convoId,context:{kind:"DocAIAssistantRequest",filters:{persona:{persona:"solutions"}}}};e.solutionResponse?.conversationId&&e.solutionResponse.hasMore&&(r={conversationId:e.solutionResponse.conversationId,ackSequenceNumber:e.solutionResponse.ackSequenceNumber,inquiryId:e.solutionResponse.inquiryId}),e.solutionResponse?.conversationId&&e.solutionResponse.hasMore&&await b7(1500);let s=e.documentSkillUrl,a=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",token:t?.configurable?.context?.token},body:JSON.stringify(r)});if(!a.ok)throw new Error(`HTTP ${a.status} calling ${s}`);let i=await a.json();t&&t.configurable&&(t.configurable.context.convoId=i.conversationId);let o={message:i.message,conversationId:i.conversationId,hasMore:i.hasMore,ackSequenceNumber:i.sequenceNumber,inquiryId:i.inquiryId},c=i.context&&i.context.results?i.context.results[0].reply??"":"";c!==""&&i.context&&i.context.results&&i.context.results[0].followupQuestions&&t?.configurable?.context?.updateSuggestedPrompts&&t.configurable.context.updateSuggestedPrompts(i.context.results[0].followupQuestions);let u=e._lastFullOutput??"",l=c,d=v7(u,l);if(i.context&&i.context.results&&i.context.results[0].status.currentStatusStep){let p=i.context.results[0].status.currentStatusStep,h="";p===1?h=n.agentProgress.explorerAgentReading:p===2?h=n.agentProgress.explorerAgentReviewing:p===3&&(h=n.agentProgress.explorerAgentPreparing),await Qi({text:h},t)}return{outputMessage:d,_lastFullOutput:l,solutionResponse:o}},O7=async(e,t)=>{let n=null;return e.documentSkillUrl===null&&t?.configurable?.context?.portal&&(n=w7(t.configurable.context.portal)),{documentSkillUrl:n}},S7=await cu(_7,"solutions_explorer_description"),T7={id:"solutionsExplorerAgent",name:"Solutions Explorer Agent",description:S7,createGraph:k7,workspace:DE},I7="https://links.esri.com/solutions/agol-organizational-account",E7="https://links.esri.com/solutions/configure-assistants",iy=class extends d0{constructor(){super(),this.open=!1,this.userFirstName="",this._conversationId=void 0,this._orgSettings={aiAssistantsEnabled:!1,blockBetaApps:!0,colocateCompute:!1},this._suggestedPrompts=[],this._hasInteracted=!1,this._translations=f0({name:"arcgis-solutions-assistant",blocking:!0}),this._assistantRef=u0(),this._configContextConsumer=m0({context:g0,subscribe:!0,callback:t=>{t?.userSession&&!this.userFirstName&&this._loadUserFirstName(),t?.authentication?.PortalSubset?.orgSettings&&(this._orgSettings=t?.authentication?.PortalSubset?.orgSettings)}}),this.closeAssistant=a0(),this._handleSignIn=()=>{this._configContextConsumer.value?.authentication?.signIn("aiOpen")},this._checkURLOpenParameter=()=>{this.open=this._configContextConsumer.value?.authentication?.SignInParam==="aiOpen"||this.open}}static{this.properties={open:5,userFirstName:1,_conversationId:16,_orgSettings:16,_suggestedPrompts:16,_hasInteracted:16,_translations:16}}static{this.styles=VE}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}loaded(){this._checkURLOpenParameter()}load(){this._configContextConsumer.value?.portalURL&&(BE.portalUrl=this._configContextConsumer.value.portalURL)}firstUpdated(t){this._loadUserFirstName()}willUpdate(t){t.has("open")&&this.open&&window.dispatchEvent(new CustomEvent("openAssistant")),this._configContextConsumer.value?.userSession?.token&&this._configContextConsumer.value?.authentication?.CanUseAI}_renderNoSign(){return co`<calcite-notice class="margin-lg" open scale=m icon=effects kind=info><div slot=message>${this._translations.signInMessage}</div><calcite-link @click=${this._handleSignIn} slot=link title=${this._translations.signInMessage??p0} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`}_renderNoPermission(){return co`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${v0(this._translations.noPermissionMessage.replace("{{orgUrl}}",I7).replace("{{configAI}}",E7))}</div></calcite-notice>`}render(){let t=[];return this._suggestedPrompts.length>0?t=this._suggestedPrompts:this._hasInteracted||(t=[...Object.values(this._translations.defaultFollowUpQuestions)],t.push("I want to build my own solution.")),co`<calcite-panel class="chat-panel"><div class="header-content" slot=header-content><span class="header-title">${this._translations.solutionAssistantTitle}</span><calcite-chip class="beta-chip" kind=brand .label=${this._translations.beta} scale=s>${this._translations.beta}</calcite-chip></div>${this._configContextConsumer.value?.userSession?.token?this._configContextConsumer.value?.authentication?.CanUseAI?co`<calcite-button appearance=transparent id=newChatButton icon-end=speech-bubble-plus kind=neutral label="New conversation" @click=${()=>{this._conversationId=void 0,this._suggestedPrompts=[],this._hasInteracted=!1,this._assistantRef.value?.clearChatHistory()}} scale=l slot=header-actions-end></calcite-button><calcite-tooltip placement=bottom reference-element=newChatButton><span>${this._translations.tooltips.newConversation}</span></calcite-tooltip><arcgis-assistant reference-element copy-enabled feedback-enabled heading description .suggestedPrompts=${t} @arcgisSubmit=${n=>{console.log("arcgis submit: ",n.detail),this._hasInteracted=!0;let r=Date.now(),s=_0(r),a=n.detail||"Unknown";this._telemetry?.logEvent({category:y0.ASSISTANT,action:"Chat",dimensions:[a],metrics:[s]})}} @arcgisFeedback=${n=>{n.detail}} ${l0(this._assistantRef)}><arcgis-assistant-agent .agent=${T7} .context=${{token:this._configContextConsumer.value?.userSession?.token,convoId:this._conversationId,portal:this._configContextConsumer.value?.authentication.Portal,assistantRef:this._assistantRef,translations:this._translations,updateSuggestedPrompts:n=>{this._suggestedPrompts=n}}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${p7} .context=${{translations:this._translations,clearSuggestedPrompts:()=>{this._suggestedPrompts=[]}}}></arcgis-assistant-agent><arcgis-assistant-agent .agent=${Lo}></arcgis-assistant-agent></arcgis-assistant><div slot=footer class="disclaimer-div width-100"><calcite-icon icon=information scale=s></calcite-icon><span>${this._translations.disclaimerMessage} <a href=https://links.esri.com/solutions/security-concern target=_blank>${this._translations.reportConcern}</a></span></div>`:this._renderNoPermission():this._renderNoSign()}<calcite-action icon=x id=closeAssistantButton label=Close @click=${()=>{this.closeAssistant.emit(!0)}} slot=header-actions-end text=Close></calcite-action><calcite-tooltip placement=bottom reference-element=closeAssistantButton><span>${this._translations.tooltips.close}</span></calcite-tooltip></calcite-panel>`}async _loadUserFirstName(){try{let t=await this._configContextConsumer.value?.userSession?.getUser();if(t?.fullName){let n=t.fullName.split(" ")[0];this.userFirstName=n}}catch{}}};h0("arcgis-solutions-assistant",iy);return iy},"config","identity/IdentityManager","portal/Portal","core/reactiveUtils","layers/FeatureLayer","request",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import e from"./4NCV4IWX.js";import d from"./QF3LZFWW.js";import a from"./N73GF6WL.js";import{a as _,b as v}from"./QHG54NVK.js";import{b as g}from"./DPD6UBKD.js";import{ka as w,qa as y}from"./HBQN25RR.js";import{a as x}from"./SDJWXDEO.js";import{b}from"./FLLZBDVI.js";import{G as u,I as f,K as c,h as m,i as t,q as r}from"./F2JKSZOE.js";export default $arcgis.t(([{L:D,a:$,c:C,g:k,q:l},{a:S},{d:p,h:I,i:T}])=>{var O=m`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.icon-color{color:var(--calcite-color-text-3)}.padding-bottom-lg{padding-bottom:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.background-color-1{background-color:var(--calcite-color-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.margin-start-end-lg{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-top-xxl{margin-top:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-lg{padding:var(--calcite-spacing-lg)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-top-lg{padding-top:var(--calcite-spacing-lg)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}.padding-start-sm{padding-inline-start:var(--calcite-spacing-sm)}.padding-start-xxl{padding-inline-start:var(--calcite-spacing-xxl)}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip;display:block}.margin-xl{margin:var(--calcite-spacing-xl)}.line-height-1{line-height:1.1}.line-height-xxl{line-height:var(--calcite-line-height-xxl)}@container (max-width: 800px){.font-size-override .display-flex.flex-direction-row{flex-direction:column!important}.image-width{width:100%!important;max-width:100%!important;margin:0!important;padding:var(--calcite-spacing-lg)!important;padding-bottom:0!important;box-sizing:border-box}.image-width img{width:100%;max-width:100%}.margin-xl{margin:0!important}.image-width+.display-flex{padding-inline-start:var(--calcite-spacing-lg)!important;padding-inline-end:var(--calcite-spacing-lg)!important}.padding-start-sm{padding-inline-start:0!important}.title-font{padding-inline-start:0!important;padding-top:var(--calcite-spacing-lg)!important;padding-bottom:var(--calcite-spacing-lg)!important}.align-items-start.padding-bottom-xxl,.padding-bottom-xxl.padding-start-sm{padding-bottom:var(--calcite-spacing-lg)!important}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}calcite-shell{block-size:unset}.solution-deployed-action{--calcite-color-focus: initial}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`,h=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._showFailedAlert=!1,this._showItemUpdateLoading=!1,this.isMobile=!1,this._templateInfoGraph=[],this._thumbnailUrl="",this._folderName="",this._folderId=null,this._folderLoading=!1,this._translations=x({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=g({context:v,subscribe:!0,callback:async e=>{e&&(this._isOrgAdmin=C(e.authentication),this._user=e.authentication?.Portal?.user)}}),this._isOrgAdmin=!1,this._isMobileContextConsumer=g({context:_,subscribe:!0,callback:e=>this.isMobile=e}),this.navTabSelected=r(),this.forceSelectTab=r(),this.sortTypeChanged=r(),this.solutionConfigureDialogClose=r(),this._nonSolutionDependencyItems=[],this._openFolder=e=>{e.stopPropagation(),this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Open Folder",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]});let i=this._configContextConsumer.value?.orgUrl;if(!i)return;let a=this._folderId||this.card?.owner,o=`${i}/home/content.html?folder=${a}`;window.open(o,"_blank")},this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"displayDeployedCard",()=>{D({kind:"success",icon:"check-circle",title:this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title??""),message:"",autoClose:!0,autoCloseDuration:"medium"})}),this.listenOn(window,"sessionRefreshed",e=>{this._updateThumbnailToken(e.detail)})}static{this.properties={card:0,cardRef:1,diagramKey:1,open:5,templateInfos:0,_accordionLoading:16,_configureTitlesOpen:16,_deleteDialogOpen:16,_hasNewVersion:16,_isDiagramOpen:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,isMobile:16,_templateInfoGraph:16,_thumbnailUrl:16,_folderName:16,_folderId:16,_folderLoading:16,_translations:16,_nonSolutionDependencyItems:16}}static{this.styles=O}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){if(this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value),this.card?.thumbnailUrl){let e=this._configContextConsumer.value?.userSession,i=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400");this._thumbnailUrl=`${i}&token=${e?.token}`}}willUpdate(e){if(e.has("card")){let i=this._configContextConsumer.value?.userSession,a=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400");this._thumbnailUrl=`${a}&token=${i?.token}`,this._folderLoading=!0,this._folderName="",this._folderId=null}}render(){return this.isMobile?t`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}${this.card?.owner===this._configContextConsumer.value?.userSession?.username&&t`<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}`||""}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>`:t`<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()}${this.card?.owner===this._configContextConsumer.value?.userSession?.username&&t`<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}`||""}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`}async _deployedCardSelected(e){let i=e.detail;this.card=i.card,this.cardRef=i.cardRef,this.templateInfos=[],this._accordionLoading=!0,this.templateInfos=await this._getTemplates(),this._accordionLoading=!1;let a=await S(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=a._nonSolutionDependencyItems;let o=I(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),n=!1;if(o){let s=p(o),d=p(this.card);n=s>d}this._hasNewVersion=n,this._folderLoading=!0,this._folderName="",this._folderId=null,await this._fetchFolderInfo(),this._folderLoading=!1}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){let e=this._configContextConsumer.value?.userSession?.username,i=this._configContextConsumer.value?.authentication?.CanUpdateSolution,a=this.card?.owner===e||this._isOrgAdmin||i,o=this.card?.owner===e||this._isOrgAdmin,n=a?"display-none":"",s=this.isMobile?"padding-lg":"padding-xxl";return t`<div class=${`display-flex flex-direction-column ${s}`}>${!this.isMobile&&t`<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>${a&&!this.isMobile&&t`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${f(n)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>`||""}${o&&!this.isMobile&&t`<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?t`<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;let e=this.isMobile?"margin-start-end-lg":"margin-start-end-xxl";return t`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${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 i=await this._getTemplates();i&&(this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"View Diagram",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"","Details Page"]}),this._templateInfoGraph=i,this._isDiagramOpen=!0)}async _getTemplates(){return this.cardRef?await this.cardRef.getTemplates():this.card?await $(this.card.id,this._configContextConsumer.value.userSession):void 0}async _fetchFolderInfo(){if(!this.card?.id)return;let e=this._configContextConsumer.value?.userSession?.username;if(this.card?.owner===e)try{let i=this._configContextConsumer.value?.userSession;if(!i)return;let a=await y(this.card.id,i);this._folderId=a.ownerFolder??null;let o=this._configContextConsumer.value?.userSession?.username;if(this.card?.owner!==o)return;if(this._folderId){let{folders:n}=await w(i),s=n.find(d=>d.id===this._folderId);this._folderName=s?.title||this._folderId}else this._folderName=this.card?.owner||"Root"}catch(i){console.error("Error fetching folder info:",i),this._folderId=null,this._folderName=""}}_getFolderSection(){let e=this.isMobile?"padding-lg":"padding-xxl",i=this._folderId?"folder":"home";return t`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading?t`<div class="skeleton-loader skeleton-folder"></div>`:t`<calcite-icon class="icon-color" .icon=${i} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName||"Root"}</span></div>`}</div></div></div>`}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion,i=this.isMobile?"padding-lg":"padding-xxl";return t`<div class=${`${i} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${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 class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion?t`<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 i=T(this._configContextConsumer.value.allCards,this.card.deployCommonId);i&&this.forceSelectTab.emit({tabType:"details",tabTitleOrId:i})}_getSolutionPanel(){return t`<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??c} src=${this._thumbnailUrl??c}></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 negative-tabbing-offset" tabindex=0>${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 negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><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(i=>i.controlItemId))];return t`<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?t`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>`:t`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length>0?"multiple":"single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?t`<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>`:""}_renderDiagramDialog(){return this._isDiagramOpen?t`<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??"")??c} 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}_updateThumbnailToken(e){this._thumbnailUrl!==""&&(this._thumbnailUrl=k(this._thumbnailUrl,e))}};b("solution-deployed-card-panel",h);return h},a,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./LCBZNTKI.js";import a from"./N73GF6WL.js";import"./QHG54NVK.js";import"./DPD6UBKD.js";import"./HBQN25RR.js";import"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./FLLZBDVI.js";import"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([,a])=>{return a},a,b)
|