/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import * as f from "@esri/solution-common";
import { c as R } from "./runtime.js";
import { css as v, html as r, svg as C } from "lit";
import { u as k } from "./useT9n.js";
import { LitElement as L, createEvent as N, nothing as m, safeClassMap as M } from "@arcgis/lumina";
import { useContextConsumer as _ } from "@arcgis/lumina/context";
import { c as $, i as P } from "./deployAppContexts.js";
import "@arcgis/lumina/controllers";
import "@arcgis/core/identity/IdentityManager.js";
import "@arcgis/core/identity/OAuthInfo.js";
import "@arcgis/core/portal/Portal.js";
import "@arcgis/core/intl.js";
import "@arcgis/core/geometry/Extent.js";
import "@arcgis/core/geometry/SpatialReference.js";
import "@arcgis/core/geometry/operators/projectOperator.js";
import "@arcgis/core/geometry/operators/support/geographicTransformationUtils.js";
import { v as x, l as u, i as U, j as T } from "./helpers.js";
import { createRef as y, ref as E } from "lit-html/directives/ref.js";
const G = v`calcite-card{height:100%;padding-bottom:var(--calcite-spacing-base)}@media(max-width:400px){calcite-card{width:100%}}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{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:content-box;cursor:pointer}.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{flex:0 0 auto}.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}.card-image{width:100%;display:block;background-color:var(--calcite-color-surface-2)}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: var(--calcite-spacing-none)}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}.padding-bottom-1-2{padding-bottom:var(--calcite-spacing-sm)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:var(--calcite-spacing-sm);margin-bottom:.7rem}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.cursor-default{cursor:default}.chipClass{padding-bottom:var(--calcite-spacing-sm)!important}`;
async function B(i, e) {
  const t = await f.getItemDataAsJson(i, e);
  if (!t)
    throw new Error(`Solution ${i} was not found`);
  const s = e?.portal.replace("/sharing/rest", "") ?? "https://www.arcgis.com";
  let a = [];
  if (t.templates[0].item)
    a = t.templates.map((n) => ({
      id: n.itemId,
      title: n.item.title,
      type: n.item.type,
      typeKeywords: n.item.typeKeywords,
      dependencies: n.dependencies,
      snippet: n.item.snippet,
      owner: n.item.owner
    }));
  else {
    const n = t.templates.map((o) => o.type === "Group" ? f.getGroupBase(o.itemId, e) : f.getItemBase(o.itemId, e));
    a = (await Promise.allSettled(n)).filter((o) => o.status === "fulfilled").map((o) => o.value).map((o, h) => {
      const p = typeof o.type > "u" ? "group" : "item";
      return {
        id: o.id,
        title: o.title,
        type: o.type ?? "Group",
        typeKeywords: o.typeKeywords,
        dependencies: t.templates[h].dependencies,
        snippet: o.snippet,
        url: `${s}/home/${p}.html?id=${o.id}`,
        owner: o.owner
      };
    });
  }
  return a;
}
function Oe(i, e, t) {
  const s = i.templates.map((h) => h.type), a = [];
  a.push(j), s.indexOf("Group") >= 0 && (a.push(w), a.push(O)), s.indexOf("Feature Service") >= 0 && a.push(A);
  const n = s.indexOf("Feed") > -1;
  n && a.push(J);
  const c = s.indexOf("Big Data Analytic") > -1;
  c && a.push(X);
  const d = s.indexOf("Real Time Analytic") > -1;
  d && a.push(Z), (n || c || d) && a.push(oe), s.indexOf("Workflow") > -1 && (a.push(w), a.push(A), a.push(O), a.push(ne)), s.indexOf("Geoprocessing Service") > -1 && (a.push(Q), t.IsEnterprisePortal && a.push(te));
  const o = i.templates.reduce(
    (h, p) => h.concat(p.item.typeKeywords || []),
    []
  );
  return F(a, o, t), H(a, e), K(a, i), a;
}
function K(i, e) {
  e.templates.some((t) => t.type === "Group" && t.item?.membershipAccess === "collaboration") && i.push(q);
}
function F(i, e, t) {
  const s = S(t), a = V(t);
  ["Location Tracking View"].some((c) => e.indexOf(c) > -1) && (!s && !a ? i.push(ie) : s && !a ? i.push(se) : !s && a && i.push(ae));
}
function H(i, e) {
  ["HubPremium"].some((s) => e.indexOf(s) > -1) && i.push(ee);
}
function S(i) {
  const e = i?.PortalUserSubset?.privileges, t = [
    "portal:admin:create",
    "portal:admin:delete",
    "portal:admin:update",
    "portal:admin:reassign"
  ];
  return e ? t.every(
    (s) => e.some((a) => a.startsWith(s))
  ) : !1;
}
function V(i) {
  return i.PortalSubset?.locationTrackingEnabled || !1;
}
function Se(i, e) {
  let t = {
    leadingMessages: [],
    bulletedMessages: [],
    trailingMessages: []
  };
  const s = [
    l.NOTEBOOK,
    l.VELOCITY,
    l.HUBPREMIUM,
    l.WORKFLOW,
    l.TRACKINGBASE
  ];
  let a = g(
    i,
    e,
    l.VELOCITY
  );
  a && t.leadingMessages.push(a);
  let n = g(
    i,
    e,
    l.NOTEBOOK
  );
  n && t.leadingMessages.push(n);
  let c = g(
    i,
    e,
    l.HUBPREMIUM
  );
  c && t.leadingMessages.push(c);
  let d = g(
    i,
    e,
    l.WORKFLOW
  );
  d && t.leadingMessages.push(d), e = e.filter((p) => s.indexOf(p) < 0), e.forEach((p) => {
    t.bulletedMessages.push(
      I(i, p)
    );
  });
  let o = g(
    i,
    e,
    l.TRACKINGBASE
  );
  return o && t.trailingMessages.push(o), (t.leadingMessages.length > 0 || t.trailingMessages.length > 0 || t.bulletedMessages.length > 0) && t.trailingMessages.push(
    i.missingPrivilegesPopup.suggestedProblemRemedyMessage
  ), t;
}
function g(i, e, t) {
  return e.filter((a) => a.includes(t)).length > 0 ? I(i, t) : "";
}
function I(i, e) {
  const t = i.missingPrivilegesPopup.requiredPrivilegesList;
  let s = "";
  switch (e) {
    case "portal:user:createItem":
      s = t.createItem;
      break;
    case "portal:publisher:publishFeatures":
      s = t.publishFeatures;
      break;
    case "portal:user:createGroup":
      s = t.createGroup;
      break;
    case "portal:user:shareToGroup":
      s = t.shareToGroup;
      break;
    case "portal:user:addExternalMembersToGroup":
      s = t.addMembers;
      break;
    case "portal:publisher:publishFeeds":
      s = t.publishFeeds;
      break;
    case "portal:publisher:publishBigDataAnalytics":
      s = t.publishBigDataAnalytics;
      break;
    case "portal:publisher:publishRealTimeAnalytics":
      s = t.publishRealTimeAnalytics;
      break;
    case "solutions:locationtracking:admin:tracking":
      s = t.requiresLocationTrackingAndAdmin;
      break;
    case "solutions:locationtracking:tracking":
      s = t.requiresLocationTracking;
      break;
    case "solutions:locationtracking:admin":
      s = t.requiresAdmin;
      break;
    case "solutions:hubPremium":
      s = t.hubPremium;
      break;
    case "solutions:workflowManager":
      s = t.workflowManager;
      break;
    case "solutions:velocity":
      s = t.velocity;
      break;
    case "solutions:notebook":
      s = t.requiresNotebookServer;
      break;
    case "portal:publisher:publishServerGPServices":
      s = t.publishGPServices;
      break;
  }
  return s;
}
function Ie(i, e) {
  const t = D(e), s = x([{ k: "id", v: i }]) || "";
  return t ? `${t}/home/item.html${s}` : "";
}
function De(i, e, t, s) {
  const a = s || D(t);
  return a ? `${a}/sharing/rest/content/items/${i}/resources/${e}` : "";
}
function D(i) {
  return i?.PortalSubset?.orgUrl || i?.PortalUrl || "";
}
function W(i, e) {
  const t = new URL(i);
  return t.searchParams.set("token", e), t.toString();
}
class z extends L {
  constructor() {
    super(), this.deployedDate = "", this.description = "", this.diagramKey = "", this.heading = "", this.itemId = "", this.owner = "", this.thumbnail = "", this.updateAvailable = !1, this.templateInfos = [], this._isDeleteOpen = !1, this._isDiagramOpen = !1, this.isMobile = !1, this.templateInfoGraph = [], this._configureTitlesOpen = !1, this._thumbnailUrl = "", this._translations = k({ name: "solution-deployed-card", blocking: !0 }), this._configContextConsumer = _({
      context: $,
      subscribe: !0,
      callback: async (e) => {
        e && (this._isOrgAdmin = S(e.authentication), this._thumbnailUrl = `${this.thumbnail}&token=${e.userSession?.token}`);
      }
    }), this._deleteDialogRef = y(), this._diagramDialogRef = y(), this._isOrgAdmin = !1, this._isMobileContextConsumer = _({
      context: P,
      subscribe: !0,
      callback: (e) => this.isMobile = e
    }), this.deployedCardSelected = N(), this.listenOn(window, "sessionRefreshed", (e) => {
      this._updateThumbnailToken(e.detail);
    });
  }
  static {
    this.properties = { card: 0, deployedDate: 1, description: 1, diagramKey: 1, heading: 1, itemId: 1, owner: 1, thumbnail: 1, updateAvailable: 5, templateInfos: 0, _isDeleteOpen: 16, _isDiagramOpen: 16, isMobile: 16, templateInfoGraph: 16, _configureTitlesOpen: 16, _thumbnailUrl: 16, _translations: 16 };
  }
  static {
    this.styles = G;
  }
  get _telemetry() {
    return this._configContextConsumer.value?.telemetrySession;
  }
  async renderDeleteDialog() {
    return this._isDeleteOpen = !0, this._renderDeleteDialog(), this._deleteDialogRef.value;
  }
  async renderDiagramDialog(e) {
    return await this._viewDiagram(e), await this._renderDiagramDialog(), this._diagramDialogRef.value;
  }
  async getTemplates() {
    return this._processTemplates(this.card);
  }
  async load() {
    this._isMobileContextConsumer.value && (this.isMobile = this._isMobileContextConsumer.value);
  }
  render() {
    const e = this.card && this.card.typeKeywords?.includes("AIAssistant");
    return r`<calcite-card .label=${this.description} @click=${this._cardSelected} @keydown=${(t) => u(t, () => this._cardSelected())}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${e && this._getChips() || ""}${this.owner !== "" && this._getOwnerLabel() || ""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`;
  }
  _getImage() {
    return r`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading ?? m} class="thumbnail card-image" src=${this._thumbnailUrl ?? m}><div class="hover-text">${this._translations.openSolution}</div></div>`;
  }
  _getHeader() {
    return r`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`;
  }
  _getOwnerLabel() {
    return r`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile} @keydown=${(e) => u(e, () => this._openUserProfile(e))}>${this.owner}</calcite-link></calcite-label>`;
  }
  _getDeployedDate() {
    return r`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg aria-hidden=true height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${C`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}", this.deployedDate)}</calcite-label></div>`;
  }
  _getChips() {
    return r`<calcite-chip class="chipClass" icon=effects .label=${this._translations.builtWithAI} scale=s>${this._translations.builtWithAI}</calcite-chip>`;
  }
  _getConfigureButton() {
    const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, s = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = U(this._configContextConsumer.value), n = this.card?.owner === e || this._isOrgAdmin || t, c = this.card?.owner === e || this._isOrgAdmin || s, d = n ? "display-none" : "";
    return r`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution ?? m} dropdown-label=${this._translations.moreActions ?? m} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${(o) => o.stopPropagation()} @keydown=${(o) => o.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution ?? m} width=full><calcite-dropdown-group selection-mode=none>${!this.isMobile && r`<calcite-dropdown-item icon-start=model @click=${this._viewDiagram} @keydown=${(o) => u(o, () => this._viewDiagram(o))}>${this._translations.viewDiagram}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation} @keydown=${(o) => u(o, () => this._viewDocumentation(o))}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails} @keydown=${(o) => u(o, () => this._viewItemDetails(o))}>${this._translations.viewItemDetails}</calcite-dropdown-item>${!this.isMobile && n && r`<calcite-dropdown-item .disabled=${a} icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async () => {
      this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
    }} @keydown=${(o) => u(o, async () => {
      this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
    })}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile && c && r`<calcite-dropdown-item .disabled=${a} icon-start=trash @click=${this._deleteSolution} @keydown=${(o) => u(o, () => this._deleteSolution(o))}>${this._translations.deleteSolution}</calcite-dropdown-item>` || ""}</calcite-dropdown-group><calcite-tooltip class=${M(d)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`;
  }
  _renderDeleteDialog() {
    return this._isDeleteOpen ? r`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${(e) => {
      this._isDeleteOpen = e.detail;
    }} .open=${this._isDeleteOpen} source="Card Dropdown" ${E(this._deleteDialogRef)}></solution-delete-dialog>` : "";
  }
  _renderDiagramDialog() {
    return this._isDiagramOpen ? r`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramTitle.replace("{{solution}}", this.card?.title ?? "") ?? m} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
      this._isDiagramOpen = !1;
    }} outside-close-disabled scale=m width=l ${E(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>` : "";
  }
  _renderConfigureTitlesDialog() {
    return this._configureTitlesOpen ? r`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
      this._processTemplates(this.card).then((e) => {
        this.templateInfos = e;
      }), this._configureTitlesOpen = !1;
    }} @solutionItemsTitlesChanged=${async () => {
      this._processTemplates(this.card).then((e) => {
        this.templateInfos = e;
      });
    }} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>` : "";
  }
  _cardSelected() {
    this.deployedCardSelected.emit({
      card: this.card,
      cardRef: this.el
    });
  }
  async _viewDiagram(e) {
    e.stopPropagation(), this.card && (this._telemetry?.logEvent({
      category: b.DEPLOYMENTS,
      action: "View Diagram",
      dimensions: [
        this.card.title || "",
        this.card.deployCommonId || "",
        this.card.deployVersion || "",
        "Dropdown",
        T(this.card?.typeKeywords)
      ]
    }), this.templateInfoGraph = await this._processTemplates(this.card), this._isDiagramOpen = !0);
  }
  _viewDocumentation(e) {
    e.stopPropagation(), this._telemetry?.logEvent({
      category: b.DEPLOYMENTS,
      action: "Open Help",
      dimensions: [
        this.card?.title || "",
        this.card?.deployCommonId || "",
        this.card?.deployVersion || "",
        "Card Dropdown",
        T(this.card?.typeKeywords)
      ]
    }), window.open(this.card.learnMoreUrl, "_blank");
  }
  _viewItemDetails(e) {
    e.stopPropagation(), this._telemetry?.logEvent({
      category: b.DEPLOYMENTS,
      action: "Open Item Details",
      dimensions: [
        this.card?.title || "",
        this.card?.deployCommonId || "",
        this.card?.deployVersion || "",
        "Card Dropdown",
        T(this.card?.typeKeywords)
      ]
    }), window.open(this.card.itemUrl, "_blank");
  }
  _deleteSolution(e) {
    e.stopPropagation(), this._isDeleteOpen = !0;
  }
  _openUserProfile(e) {
    e.stopPropagation();
    const t = this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;
    t && window.open(`${t}/home/user.html?user=${this.owner}`, "_blank");
  }
  async _processTemplates(e) {
    return await B(e.id, this._configContextConsumer.value.userSession);
  }
  _updateThumbnailToken(e) {
    this._thumbnailUrl !== "" && (this._thumbnailUrl = W(this._thumbnailUrl, e));
  }
}
R("solution-deployed-card", z);
const Re = 500, ve = {
  AEC: "Architecture, Engineering, and Construction (AEC)",
  AIRPORTPORTRAIL: "Airports, Ports, and Rails",
  BUSINESS: "Business",
  CONSERVATION: "Conservation",
  DEFENSE: "Defense",
  FACILITIES: "Facilities",
  HEALTHANDHUMANSERVICES: "Health and Human Services",
  PIPELINE: "Pipeline",
  PUBLICSAFETY: "Public Safety",
  RENEWABLES: "Renewables",
  STATEANDLOCALGOVERNMENT: "State and Local Government",
  TELECOMMUNICATIONS: "Telecommunications",
  UTILITIES: "Utilities"
}, Ce = {
  AIRPORT: "Airports",
  AGRICULTURE: "Agriculture",
  ASSESSMENTANDTAXATION: "Assessment and Taxation",
  DISTRICTENERGY: "District Energy",
  ELECTIONS: "Elections",
  ELECTRIC: "Electric",
  EMERGENCYMANAGEMENT: "Emergency Management",
  ENVIRONMENTANDNATURALRESOURCES: "Environment and Natural Resources",
  FIRESERVICE: "Fire Service",
  FISHANDWILDLIFE: "Fish and Wildlife",
  GAS: "Gas",
  HEALTHANDHUMANSERVICES: "Health and Human Services",
  LAWENFORCEMENT: "Law Enforcement",
  NATURALRESOURCES: "Natural Resources",
  PARKS: "Parks",
  PLANNINGANDDEVELOPMENT: "Planning and Development",
  PROTECTEDAREAS: "Protected Areas",
  PUBLICWORKS: "Public Works",
  SEWER: "Sewer",
  STORMWATER: "Stormwater",
  TELECOMMUNICATIONS: "Telecommunications",
  TRANSPORTATION: "Transportation",
  WATER: "Water Distribution"
};
var l = /* @__PURE__ */ ((i) => (i.HUBPREMIUM = "solutions:hubPremium", i.NOTEBOOK = "solutions:notebook", i.TRACKINGBASE = "solutions:locationtracking", i.TRACKING = "solutions:locationtracking:tracking", i.TRACKINGADMIN = "solutions:locationtracking:admin", i.TRACKINGADMINANDTRACKING = "solutions:locationtracking:admin:tracking", i.VELOCITY = "solutions:velocity", i.WORKFLOW = "solutions:workflowManager", i))(l || {}), Y = /* @__PURE__ */ ((i) => (i.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", i.VELOCITYFEEDS = "portal:publisher:publishFeeds", i.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", i))(Y || {});
const ke = '((typekeywords:Deployed,"ArcGIS Solution") OR (typekeywords:Deployed,AIAssistant) OR ((typekeywords:Deployed) AND (created:[1577862000000 TO 1622576880000])))', Le = "(typekeywords:Solution,Template)", q = "portal:user:addExternalMembersToGroup", j = "portal:user:createItem", w = "portal:user:createGroup", X = "portal:publisher:publishBigDataAnalytics", A = "portal:publisher:publishFeatures", J = "portal:publisher:publishFeeds", Q = "portal:publisher:publishServerGPServices", Z = "portal:publisher:publishRealTimeAnalytics", O = "portal:user:shareToGroup", ee = "solutions:hubPremium", te = "solutions:notebook", ie = "solutions:locationtracking:admin:tracking", se = "solutions:locationtracking:tracking", ae = "solutions:locationtracking:admin", oe = "solutions:velocity", ne = "solutions:workflowManager", Ne = 250, Me = 256, b = {
  SOLUTION_DETAILS: "Solution Details",
  GLOBAL_NAVIGATION: "Global Nav",
  ALL_SOLUTIONS: "Solutions",
  DEPLOYMENTS: "Deployments",
  ASSISTANT: "Assistant",
  RESOURCES: "Resources",
  BUILDER: "Solution Builder"
}, $e = {
  MINE: "My deployments",
  ORG: "Organization"
}, Pe = {
  BOTH: "New,Suggested",
  NEW: "New",
  SUGGESTED: "Suggested"
}, xe = {
  NEW: "new",
  NUMVIEWS: "views",
  RELEVANCE: "relevance",
  SUGGESTED: "suggested",
  TITLE: "title",
  UPDATED: "updated",
  CREATED: "created"
}, Ue = {
  DEPLOY: "deploy",
  AIOPEN: "aiOpen"
};
export {
  W as A,
  ke as B,
  De as C,
  Me as D,
  l as E,
  Oe as F,
  Se as G,
  z as H,
  Ne as I,
  q as P,
  ee as S,
  b as T,
  Le as a,
  Re as b,
  $e as c,
  Ce as d,
  ve as e,
  Pe as f,
  Y as g,
  Ue as h,
  xe as i,
  w as j,
  j as k,
  X as l,
  A as m,
  J as n,
  Q as o,
  Z as p,
  O as q,
  te as r,
  se as s,
  ae as t,
  ie as u,
  oe as v,
  ne as w,
  B as x,
  S as y,
  Ie as z
};
