@esri/solutions-components 1.2.0-next.184 → 1.2.0-next.186
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/{T4BABRET.js → 2Z4TOYVC.js} +1 -1
- package/dist/cdn/{UJRIZPZV.js → 3A7PC2RZ.js} +1 -1
- package/dist/cdn/{AHSUDDTV.js → 3HWKU2CT.js} +1 -1
- package/dist/cdn/{3OBXQOE4.js → 4CPDEFIT.js} +1 -1
- package/dist/cdn/{GXGL7E5C.js → 6TJ6HIGG.js} +1 -1
- package/dist/cdn/{2J5B4RQM.js → 7M3GJY6J.js} +1 -1
- package/dist/cdn/AS6FGEVT.js +2 -0
- package/dist/cdn/BEC6A65P.js +2 -0
- package/dist/cdn/BHSNNVIL.js +2 -0
- package/dist/cdn/{FYIT6WMR.js → BT66JT22.js} +1 -1
- package/dist/cdn/{WSU4ELZX.js → C7DWPTJL.js} +1 -1
- package/dist/cdn/{HUWZTPMY.js → CN4TSLTZ.js} +1 -1
- package/dist/cdn/{IZAAOTKA.js → DOFNBU4Q.js} +1 -1
- package/dist/cdn/{D4YDAIIJ.js → EERFOEDZ.js} +1 -1
- package/dist/cdn/{RSJOED5F.js → FP5UBHCW.js} +1 -1
- package/dist/cdn/{KNOAIRGH.js → FWFL23CM.js} +1 -1
- package/dist/cdn/FY4GDFB5.js +2 -0
- package/dist/cdn/{YUXRMEUI.js → HEW273HR.js} +1 -1
- package/dist/cdn/{G7PIGNB5.js → I3ERNQTX.js} +1 -1
- package/dist/cdn/{TQ6UUSC6.js → LN36O3EB.js} +1 -1
- package/dist/cdn/MVNKOMSZ.js +2 -0
- package/dist/cdn/OQVULF2Q.js +2 -0
- package/dist/cdn/{UPCW6ZJC.js → OUH4HVG4.js} +28 -24
- package/dist/cdn/{YJCIONLF.js → PFQDRDKQ.js} +1 -1
- package/dist/cdn/{FQDOIGWN.js → PJ2IZ77K.js} +1 -1
- package/dist/cdn/{DPOINX2J.js → QPEQNTE2.js} +1 -1
- package/dist/cdn/{6KZ7BPYY.js → R6QJKOAM.js} +1 -1
- package/dist/cdn/RG6FVRCW.js +2 -0
- package/dist/cdn/RYK5PICU.js +2 -0
- package/dist/cdn/{G6YTMDRE.js → U3MPHGGT.js} +1 -1
- package/dist/cdn/{VCNW2JFC.js → V25NUVVQ.js} +1 -1
- package/dist/cdn/{VWSBR3EG.js → VHA56S7W.js} +1 -1
- package/dist/cdn/{JZEB6HZ4.js → W4DGTEPL.js} +1 -1
- package/dist/cdn/{YN3QQTPJ.js → WI7VFPQ3.js} +1 -1
- package/dist/cdn/Y2S3AB43.js +2 -0
- package/dist/cdn/{YOUPERBP.js → YBZ4RYD3.js} +1 -1
- package/dist/cdn/{SYHSZMOM.js → ZVLL5DZC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +66 -58
- package/dist/chunks/cardsHelpers.js +2 -2
- package/dist/chunks/interfaces.js +295 -293
- package/dist/chunks/solutions-deploy-app-nav.js +10 -10
- package/dist/components/arcgis-solutions-assistant/customElement.js +79 -69
- package/dist/components/solution-details-card/customElement.js +8 -8
- package/dist/components/solution-details-panel/customElement.js +50 -50
- package/dist/components/solution-resource-card/customElement.js +11 -11
- package/dist/components/solution-snapshot-gallery/customElement.js +17 -17
- package/dist/components/solution-social-share/customElement.js +5 -5
- package/dist/components/solutions-all-panel/customElement.js +22 -21
- package/dist/components/solutions-deploy-app/customElement.js +12 -11
- package/dist/components/solutions-deployed-panel/customElement.d.ts +2 -2
- package/dist/components/solutions-deployed-panel/customElement.js +42 -27
- 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/solutions-components_commit.txt +7 -7
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/5HY4G5MJ.js +0 -2
- package/dist/cdn/7QFCHNYA.js +0 -2
- package/dist/cdn/BU24GNCR.js +0 -2
- package/dist/cdn/EMCLBWJH.js +0 -2
- package/dist/cdn/ETZI55AM.js +0 -2
- package/dist/cdn/EVTIE353.js +0 -2
- package/dist/cdn/K3V6XHE4.js +0 -2
- package/dist/cdn/LEBOMHXU.js +0 -2
- package/dist/cdn/QAT4TZD4.js +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { css as
|
|
2
|
+
import { c as $e } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as ne } from "lit/directives/ref.js";
|
|
4
|
+
import { u as Te } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as Re, createEvent as Ae, nothing as ie, safeClassMap as re } from "@arcgis/lumina";
|
|
6
|
+
import { css as Ie, html as m } from "lit";
|
|
7
7
|
import { render as I } from "lit-html";
|
|
8
|
-
import { unsafeHTML as
|
|
9
|
-
import { useContextConsumer as
|
|
10
|
-
import { c as
|
|
11
|
-
import { U as
|
|
12
|
-
const
|
|
13
|
-
function
|
|
8
|
+
import { unsafeHTML as ae } from "lit/directives/unsafe-html.js";
|
|
9
|
+
import { useContextConsumer as Ce } from "@arcgis/lumina/context";
|
|
10
|
+
import { c as ze } from "../../chunks/deployAppContexts.js";
|
|
11
|
+
import { U as Le, T as Pe, G as Z } from "../../chunks/interfaces.js";
|
|
12
|
+
const qe = Ie`: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-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);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-background);--calcite-dialog-header-action-text-color: var(--calcite-color-background);--calcite-dialog-header-action-text-color-press: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-background, 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-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);color:var(--calcite-color-inverse);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.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-foreground-3)}.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}.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-background)}@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)}`;
|
|
13
|
+
function W() {
|
|
14
14
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
15
15
|
}
|
|
16
|
-
var A =
|
|
17
|
-
function
|
|
16
|
+
var A = W();
|
|
17
|
+
function de(i) {
|
|
18
18
|
A = i;
|
|
19
19
|
}
|
|
20
20
|
var T = { exec: () => null };
|
|
@@ -25,21 +25,21 @@ function d(i, e = "") {
|
|
|
25
25
|
}, getRegex: () => new RegExp(t, e) };
|
|
26
26
|
return n;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Be = (() => {
|
|
29
29
|
try {
|
|
30
30
|
return !!new RegExp("(?<=1)(?<!1)");
|
|
31
31
|
} catch {
|
|
32
32
|
return !1;
|
|
33
33
|
}
|
|
34
|
-
})(), b = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (i) => new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}#`), htmlBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}>`) },
|
|
35
|
-
]`).replace("lheading",
|
|
34
|
+
})(), b = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (i) => new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}#`), htmlBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}>`) }, Ee = /^(?:[ \t]*(?:\n|$))+/, Me = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ne = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, B = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, X = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ge = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, fe = d(ge).replace(/bull/g, X).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), De = d(ge).replace(/bull/g, X).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), K = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Fe = /^[^\n]+/, J = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ue = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", J).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Oe = d(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, X).getRegex(), U = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Y = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ze = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Y).replace("tag", U).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ke = d(K).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", U).getRegex(), je = d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ke).getRegex(), V = { blockquote: je, code: Me, def: Ue, fences: Ne, heading: Qe, hr: B, html: Ze, lheading: fe, list: Oe, newline: Ee, paragraph: ke, table: T, text: Fe }, oe = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", U).getRegex(), Ge = { ...V, lheading: De, table: oe, paragraph: d(K).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", oe).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", U).getRegex() }, He = { ...V, html: d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Y).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: T, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d(K).replace("hr", B).replace("heading", ` *#{1,6} *[^
|
|
35
|
+
]`).replace("lheading", fe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, We = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, me = /^( {2,}|\\)\n(?!\s*$)/, Ke = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, O = /[\p{P}\p{S}]/u, ee = /[\s\p{P}\p{S}]/u, xe = /[^\s\p{P}\p{S}]/u, Je = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ee).getRegex(), be = /(?!~)[\p{P}\p{S}]/u, Ye = /(?!~)[\s\p{P}\p{S}]/u, Ve = /(?:[^\s\p{P}\p{S}]|~)/u, we = /(?![*_])[\p{P}\p{S}]/u, et = /(?![*_])[\s\p{P}\p{S}]/u, tt = /(?:[^\s\p{P}\p{S}]|[*_])/u, st = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), _e = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, nt = d(_e, "u").replace(/punct/g, O).getRegex(), it = d(_e, "u").replace(/punct/g, be).getRegex(), ve = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", rt = d(ve, "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, ee).replace(/punct/g, O).getRegex(), at = d(ve, "gu").replace(/notPunctSpace/g, Ve).replace(/punctSpace/g, Ye).replace(/punct/g, be).getRegex(), ot = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, ee).replace(/punct/g, O).getRegex(), lt = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, we).getRegex(), ct = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ht = d(ct, "gu").replace(/notPunctSpace/g, tt).replace(/punctSpace/g, et).replace(/punct/g, we).getRegex(), pt = d(/\\(punct)/, "gu").replace(/punct/g, O).getRegex(), ut = d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), dt = d(Y).replace("(?:-->|$)", "-->").getRegex(), gt = d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", dt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ft = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ye = d(/^!?\[(label)\]\[(ref)\]/).replace("label", Q).replace("ref", J).getRegex(), Se = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", J).getRegex(), kt = d("reflink|nolink(?!\\()", "g").replace("reflink", ye).replace("nolink", Se).getRegex(), le = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, te = { _backpedal: T, anyPunctuation: pt, autolink: ut, blockSkip: st, br: me, code: Xe, del: T, delLDelim: T, delRDelim: T, emStrongLDelim: nt, emStrongRDelimAst: rt, emStrongRDelimUnd: ot, escape: We, link: ft, nolink: Se, punctuation: Je, reflink: ye, reflinkSearch: kt, tag: gt, text: Ke, url: T }, mt = { ...te, link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", Q).getRegex(), reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Q).getRegex() }, j = { ...te, emStrongRDelimAst: at, emStrongLDelim: it, delLDelim: lt, delRDelim: ht, url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", le).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", le).getRegex() }, xt = { ...j, br: d(me).replace("{2,}", "*").getRegex(), text: d(j.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, N = { normal: V, gfm: Ge, pedantic: He }, L = { normal: te, gfm: j, breaks: xt, pedantic: mt }, bt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ce = (i) => bt[i];
|
|
36
36
|
function S(i, e) {
|
|
37
37
|
if (e) {
|
|
38
|
-
if (b.escapeTest.test(i)) return i.replace(b.escapeReplace,
|
|
39
|
-
} else if (b.escapeTestNoEncode.test(i)) return i.replace(b.escapeReplaceNoEncode,
|
|
38
|
+
if (b.escapeTest.test(i)) return i.replace(b.escapeReplace, ce);
|
|
39
|
+
} else if (b.escapeTestNoEncode.test(i)) return i.replace(b.escapeReplaceNoEncode, ce);
|
|
40
40
|
return i;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function he(i) {
|
|
43
43
|
try {
|
|
44
44
|
i = encodeURI(i).replace(b.percentDecode, "%");
|
|
45
45
|
} catch {
|
|
@@ -47,7 +47,7 @@ function ce(i) {
|
|
|
47
47
|
}
|
|
48
48
|
return i;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function pe(i, e) {
|
|
51
51
|
let t = i.replace(b.findPipe, (a, r, l) => {
|
|
52
52
|
let o = !1, h = r;
|
|
53
53
|
for (; --h >= 0 && l[h] === "\\"; ) o = !o;
|
|
@@ -66,7 +66,7 @@ function P(i, e, t) {
|
|
|
66
66
|
s++;
|
|
67
67
|
return i.slice(0, n - s);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function wt(i, e) {
|
|
70
70
|
if (i.indexOf(e[1]) === -1) return -1;
|
|
71
71
|
let t = 0;
|
|
72
72
|
for (let n = 0; n < i.length; n++) if (i[n] === "\\") n++;
|
|
@@ -74,7 +74,7 @@ function bt(i, e) {
|
|
|
74
74
|
else if (i[n] === e[1] && (t--, t < 0)) return n;
|
|
75
75
|
return t > 0 ? -2 : -1;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function _t(i, e = 0) {
|
|
78
78
|
let t = e, n = "";
|
|
79
79
|
for (let s of i) if (s === " ") {
|
|
80
80
|
let a = 4 - t % 4;
|
|
@@ -82,13 +82,13 @@ function wt(i, e = 0) {
|
|
|
82
82
|
} else n += s, t++;
|
|
83
83
|
return n;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ue(i, e, t, n, s) {
|
|
86
86
|
let a = e.href, r = e.title || null, l = i[1].replace(s.other.outputLinkReplace, "$1");
|
|
87
87
|
n.state.inLink = !0;
|
|
88
88
|
let o = { type: i[0].charAt(0) === "!" ? "image" : "link", raw: t, href: a, title: r, text: l, tokens: n.inlineTokens(l) };
|
|
89
89
|
return n.state.inLink = !1, o;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function vt(i, e, t) {
|
|
92
92
|
let n = i.match(t.other.indentCodeCompensation);
|
|
93
93
|
if (n === null) return e;
|
|
94
94
|
let s = n[1];
|
|
@@ -123,7 +123,7 @@ var D = class {
|
|
|
123
123
|
fences(i) {
|
|
124
124
|
let e = this.rules.block.fences.exec(i);
|
|
125
125
|
if (e) {
|
|
126
|
-
let t = e[0], n =
|
|
126
|
+
let t = e[0], n = vt(t, e[3] || "", this.rules);
|
|
127
127
|
return { type: "code", raw: t, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: n };
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -193,7 +193,7 @@ ${c}` : c;
|
|
|
193
193
|
let o = !1, h = "", c = "";
|
|
194
194
|
if (!(e = a.exec(i)) || this.rules.block.hr.test(i)) break;
|
|
195
195
|
h = e[0], i = i.substring(h.length);
|
|
196
|
-
let p =
|
|
196
|
+
let p = _t(e[2].split(`
|
|
197
197
|
`, 1)[0], e[1].length), u = i.split(`
|
|
198
198
|
`, 1)[0], g = !p.trim(), k = 0;
|
|
199
199
|
if (this.options.pedantic ? (k = 2, c = p.trimStart()) : g ? k = e[1].length + 1 : (k = p.search(this.rules.other.nonSpaceChar), k = k > 4 ? 1 : k, c = p.slice(k), k += e[1].length), g && this.rules.other.blankLine.test(u) && (h += u + `
|
|
@@ -261,12 +261,12 @@ ${c}` : c;
|
|
|
261
261
|
table(i) {
|
|
262
262
|
let e = this.rules.block.table.exec(i);
|
|
263
263
|
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
264
|
-
let t =
|
|
264
|
+
let t = pe(e[1]), n = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), s = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
265
265
|
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
266
266
|
if (t.length === n.length) {
|
|
267
267
|
for (let r of n) this.rules.other.tableAlignRight.test(r) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(r) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(r) ? a.align.push("left") : a.align.push(null);
|
|
268
268
|
for (let r = 0; r < t.length; r++) a.header.push({ text: t[r], tokens: this.lexer.inline(t[r]), header: !0, align: a.align[r] });
|
|
269
|
-
for (let r of s) a.rows.push(
|
|
269
|
+
for (let r of s) a.rows.push(pe(r, a.header.length).map((l, o) => ({ text: l, tokens: this.lexer.inline(l), header: !1, align: a.align[o] })));
|
|
270
270
|
return a;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -303,7 +303,7 @@ ${c}` : c;
|
|
|
303
303
|
let a = P(t.slice(0, -1), "\\");
|
|
304
304
|
if ((t.length - a.length) % 2 === 0) return;
|
|
305
305
|
} else {
|
|
306
|
-
let a =
|
|
306
|
+
let a = wt(e[2], "()");
|
|
307
307
|
if (a === -2) return;
|
|
308
308
|
if (a > -1) {
|
|
309
309
|
let r = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
@@ -315,7 +315,7 @@ ${c}` : c;
|
|
|
315
315
|
let a = this.rules.other.pedanticHrefTitle.exec(n);
|
|
316
316
|
a && (n = a[1], s = a[3]);
|
|
317
317
|
} else s = e[3] ? e[3].slice(1, -1) : "";
|
|
318
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? n = n.slice(1) : n = n.slice(1, -1)),
|
|
318
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? n = n.slice(1) : n = n.slice(1, -1)), ue(e, { href: n && n.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
reflink(i, e) {
|
|
@@ -326,7 +326,7 @@ ${c}` : c;
|
|
|
326
326
|
let a = t[0].charAt(0);
|
|
327
327
|
return { type: "text", raw: a, text: a };
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return ue(t, s, t[0], this.lexer, this.rules);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
emStrong(i, e, t = "") {
|
|
@@ -411,7 +411,7 @@ ${c}` : c;
|
|
|
411
411
|
return { type: "text", raw: e[0], text: e[0], escaped: t };
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
}, v = class
|
|
414
|
+
}, v = class G {
|
|
415
415
|
tokens;
|
|
416
416
|
options;
|
|
417
417
|
state;
|
|
@@ -426,10 +426,10 @@ ${c}` : c;
|
|
|
426
426
|
return { block: N, inline: L };
|
|
427
427
|
}
|
|
428
428
|
static lex(e, t) {
|
|
429
|
-
return new
|
|
429
|
+
return new G(t).lex(e);
|
|
430
430
|
}
|
|
431
431
|
static lexInline(e, t) {
|
|
432
|
-
return new
|
|
432
|
+
return new G(t).inlineTokens(e);
|
|
433
433
|
}
|
|
434
434
|
lex(e) {
|
|
435
435
|
e = e.replace(b.carriageReturn, `
|
|
@@ -618,7 +618,7 @@ ${c}` : c;
|
|
|
618
618
|
}
|
|
619
619
|
return t;
|
|
620
620
|
}
|
|
621
|
-
},
|
|
621
|
+
}, F = class {
|
|
622
622
|
options;
|
|
623
623
|
parser;
|
|
624
624
|
constructor(i) {
|
|
@@ -718,7 +718,7 @@ ${i}</tr>
|
|
|
718
718
|
return `<del>${this.parser.parseInline(i)}</del>`;
|
|
719
719
|
}
|
|
720
720
|
link({ href: i, title: e, tokens: t }) {
|
|
721
|
-
let n = this.parser.parseInline(t), s =
|
|
721
|
+
let n = this.parser.parseInline(t), s = he(i);
|
|
722
722
|
if (s === null) return n;
|
|
723
723
|
i = s;
|
|
724
724
|
let a = '<a href="' + i + '"';
|
|
@@ -726,7 +726,7 @@ ${i}</tr>
|
|
|
726
726
|
}
|
|
727
727
|
image({ href: i, title: e, text: t, tokens: n }) {
|
|
728
728
|
n && (t = this.parser.parseInline(n, this.parser.textRenderer));
|
|
729
|
-
let s =
|
|
729
|
+
let s = he(i);
|
|
730
730
|
if (s === null) return S(t);
|
|
731
731
|
i = s;
|
|
732
732
|
let a = `<img src="${i}" alt="${t}"`;
|
|
@@ -735,7 +735,7 @@ ${i}</tr>
|
|
|
735
735
|
text(i) {
|
|
736
736
|
return "tokens" in i && i.tokens ? this.parser.parseInline(i.tokens) : "escaped" in i && i.escaped ? i.text : S(i.text);
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, se = class {
|
|
739
739
|
strong({ text: i }) {
|
|
740
740
|
return i;
|
|
741
741
|
}
|
|
@@ -771,7 +771,7 @@ ${i}</tr>
|
|
|
771
771
|
renderer;
|
|
772
772
|
textRenderer;
|
|
773
773
|
constructor(e) {
|
|
774
|
-
this.options = e || A, this.options.renderer = this.options.renderer || new
|
|
774
|
+
this.options = e || A, this.options.renderer = this.options.renderer || new F(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new se();
|
|
775
775
|
}
|
|
776
776
|
static parse(e, t) {
|
|
777
777
|
return new H(t).parse(e);
|
|
@@ -941,14 +941,14 @@ ${i}</tr>
|
|
|
941
941
|
provideParser() {
|
|
942
942
|
return this.block ? y.parse : y.parseInline;
|
|
943
943
|
}
|
|
944
|
-
},
|
|
945
|
-
defaults =
|
|
944
|
+
}, yt = class {
|
|
945
|
+
defaults = W();
|
|
946
946
|
options = this.setOptions;
|
|
947
947
|
parse = this.parseMarkdown(!0);
|
|
948
948
|
parseInline = this.parseMarkdown(!1);
|
|
949
949
|
Parser = y;
|
|
950
|
-
Renderer =
|
|
951
|
-
TextRenderer =
|
|
950
|
+
Renderer = F;
|
|
951
|
+
TextRenderer = se;
|
|
952
952
|
Lexer = v;
|
|
953
953
|
Tokenizer = D;
|
|
954
954
|
Hooks = q;
|
|
@@ -999,7 +999,7 @@ ${i}</tr>
|
|
|
999
999
|
}
|
|
1000
1000
|
"childTokens" in s && s.childTokens && (e.childTokens[s.name] = s.childTokens);
|
|
1001
1001
|
}), n.extensions = e), t.renderer) {
|
|
1002
|
-
let s = this.defaults.renderer || new
|
|
1002
|
+
let s = this.defaults.renderer || new F(this.defaults);
|
|
1003
1003
|
for (let a in t.renderer) {
|
|
1004
1004
|
if (!(a in s)) throw new Error(`renderer '${a}' does not exist`);
|
|
1005
1005
|
if (["options", "parser"].includes(a)) continue;
|
|
@@ -1101,17 +1101,17 @@ Please report this to https://github.com/markedjs/marked.`, i) {
|
|
|
1101
1101
|
throw t;
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
}, R = new
|
|
1104
|
+
}, R = new yt();
|
|
1105
1105
|
function f(i, e) {
|
|
1106
1106
|
return R.parse(i, e);
|
|
1107
1107
|
}
|
|
1108
1108
|
f.options = f.setOptions = function(i) {
|
|
1109
|
-
return R.setOptions(i), f.defaults = R.defaults,
|
|
1109
|
+
return R.setOptions(i), f.defaults = R.defaults, de(f.defaults), f;
|
|
1110
1110
|
};
|
|
1111
|
-
f.getDefaults =
|
|
1111
|
+
f.getDefaults = W;
|
|
1112
1112
|
f.defaults = A;
|
|
1113
1113
|
f.use = function(...i) {
|
|
1114
|
-
return R.use(...i), f.defaults = R.defaults,
|
|
1114
|
+
return R.use(...i), f.defaults = R.defaults, de(f.defaults), f;
|
|
1115
1115
|
};
|
|
1116
1116
|
f.walkTokens = function(i, e) {
|
|
1117
1117
|
return R.walkTokens(i, e);
|
|
@@ -1119,8 +1119,8 @@ f.walkTokens = function(i, e) {
|
|
|
1119
1119
|
f.parseInline = R.parseInline;
|
|
1120
1120
|
f.Parser = y;
|
|
1121
1121
|
f.parser = y.parse;
|
|
1122
|
-
f.Renderer =
|
|
1123
|
-
f.TextRenderer =
|
|
1122
|
+
f.Renderer = F;
|
|
1123
|
+
f.TextRenderer = se;
|
|
1124
1124
|
f.Lexer = v;
|
|
1125
1125
|
f.lexer = v.lex;
|
|
1126
1126
|
f.Tokenizer = D;
|
|
@@ -1133,7 +1133,7 @@ f.walkTokens;
|
|
|
1133
1133
|
f.parseInline;
|
|
1134
1134
|
y.parse;
|
|
1135
1135
|
v.lex;
|
|
1136
|
-
class
|
|
1136
|
+
class St {
|
|
1137
1137
|
constructor(e = "") {
|
|
1138
1138
|
this._text = "", this._displayedText = "", this._pendingText = "", this._text = e, this._pendingText = e;
|
|
1139
1139
|
}
|
|
@@ -1199,8 +1199,8 @@ class yt {
|
|
|
1199
1199
|
return null;
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
-
const
|
|
1203
|
-
class
|
|
1202
|
+
const $t = "https://links.esri.com/solutions/agol-organizational-account", Tt = "https://links.esri.com/solutions/configure-assistants";
|
|
1203
|
+
class Rt extends Re {
|
|
1204
1204
|
constructor() {
|
|
1205
1205
|
super(), this.serverRoot = "https://aiservices-beta.arcgis.com", this.open = !1, this.userFirstName = "", this.conversationStore = {
|
|
1206
1206
|
conversationId: null,
|
|
@@ -1210,13 +1210,13 @@ class Tt extends Te {
|
|
|
1210
1210
|
aiAssistantsEnabled: !1,
|
|
1211
1211
|
blockBetaApps: !0,
|
|
1212
1212
|
colocateCompute: !1
|
|
1213
|
-
}, this._translations =
|
|
1214
|
-
context:
|
|
1213
|
+
}, this._translations = Te({ name: "arcgis-solutions-assistant", blocking: !0 }), this._isTyping = !1, this._configContextConsumer = Ce({
|
|
1214
|
+
context: ze,
|
|
1215
1215
|
subscribe: !0,
|
|
1216
1216
|
callback: (e) => {
|
|
1217
1217
|
e?.userSession && !this.userFirstName && this._loadUserFirstName(), e?.authentication?.PortalSubset?.orgSettings && (this._orgSettings = e?.authentication?.PortalSubset?.orgSettings, this._getAIServiceUrl());
|
|
1218
1218
|
}
|
|
1219
|
-
}), this.closeAssistant =
|
|
1219
|
+
}), this.closeAssistant = Ae(), this._resetConversation = () => {
|
|
1220
1220
|
this.conversationStore.conversationId = null, this.conversationStore.inquiryId = null, this.conversationStore.ackSequenceNumber = null;
|
|
1221
1221
|
}, this._setMessageContainerRef = (e) => {
|
|
1222
1222
|
this._chatContainer = e;
|
|
@@ -1240,7 +1240,7 @@ class Tt extends Te {
|
|
|
1240
1240
|
this.properties = { serverRoot: 1, open: 5, userFirstName: 1, conversationStore: 16, _currentResponse: 16, _isAutoScroll: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _orgSettings: 16, _translations: 16, _isTyping: 16 };
|
|
1241
1241
|
}
|
|
1242
1242
|
static {
|
|
1243
|
-
this.styles =
|
|
1243
|
+
this.styles = qe;
|
|
1244
1244
|
}
|
|
1245
1245
|
get _telemetry() {
|
|
1246
1246
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -1292,7 +1292,7 @@ class Tt extends Te {
|
|
|
1292
1292
|
l.classList.add("display-none");
|
|
1293
1293
|
const o = document.createElement("div");
|
|
1294
1294
|
o.classList.add("display-none");
|
|
1295
|
-
const h = e.conversationId + Date.now(), c = this._renderResponseBlock(r, l, o, h), p = new
|
|
1295
|
+
const h = e.conversationId + Date.now(), c = this._renderResponseBlock(r, l, o, h), p = new St(this._currentResponse), u = {
|
|
1296
1296
|
author: "ai",
|
|
1297
1297
|
conversationId: e.conversationId,
|
|
1298
1298
|
message: e.message ?? "",
|
|
@@ -1328,9 +1328,9 @@ class Tt extends Te {
|
|
|
1328
1328
|
e = await this.requestAIServer(x, a);
|
|
1329
1329
|
}
|
|
1330
1330
|
this._isLoading = !1;
|
|
1331
|
-
const { context: g } = this.conversationStore, k = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", w = typeof k == "string" ? "" : k?.message ?? "", E =
|
|
1331
|
+
const { context: g } = this.conversationStore, k = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", w = typeof k == "string" ? "" : k?.message ?? "", E = Le(n), M = s || g?.intent || "Unknown";
|
|
1332
1332
|
if (this._telemetry?.logEvent({
|
|
1333
|
-
category:
|
|
1333
|
+
category: Pe.ASSISTANT,
|
|
1334
1334
|
action: "Chat",
|
|
1335
1335
|
dimensions: [M],
|
|
1336
1336
|
metrics: [E]
|
|
@@ -1497,8 +1497,12 @@ class Tt extends Te {
|
|
|
1497
1497
|
class='chip-content cursor-pointer assistant-followup-chip'
|
|
1498
1498
|
kind='brand'
|
|
1499
1499
|
label=${t}
|
|
1500
|
+
tabindex='0'
|
|
1500
1501
|
@click=${() => {
|
|
1501
1502
|
this._submitFollowupQuestion(t);
|
|
1503
|
+
}}
|
|
1504
|
+
@keydown=${(n) => {
|
|
1505
|
+
Z(n, () => this._submitFollowupQuestion(t));
|
|
1502
1506
|
}}
|
|
1503
1507
|
>
|
|
1504
1508
|
${t}
|
|
@@ -1540,7 +1544,11 @@ class Tt extends Te {
|
|
|
1540
1544
|
<a
|
|
1541
1545
|
class='solution-card'
|
|
1542
1546
|
id='${e.id}'
|
|
1547
|
+
tabindex='0'
|
|
1543
1548
|
@click=${() => this._emitItemIdFromAI(e.id)}
|
|
1549
|
+
@keydown=${(t) => {
|
|
1550
|
+
Z(t, () => this._emitItemIdFromAI(e.id));
|
|
1551
|
+
}}
|
|
1544
1552
|
>
|
|
1545
1553
|
<calcite-card thumbnail-position='inline-start'>
|
|
1546
1554
|
<div slot='thumbnail'>
|
|
@@ -1558,11 +1566,11 @@ class Tt extends Te {
|
|
|
1558
1566
|
`;
|
|
1559
1567
|
}
|
|
1560
1568
|
_renderResponseBlock(e, t, n, s) {
|
|
1561
|
-
return m`<calcite-card id=${s ??
|
|
1569
|
+
return m`<calcite-card id=${s ?? ie} class="system-message display-none">${e}${t}${n}</calcite-card>`;
|
|
1562
1570
|
}
|
|
1563
1571
|
_renderSimpleTextMessage(e, t, n, s, a, r, l) {
|
|
1564
1572
|
const o = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", h = typeof o == "string" ? "" : o?.message ?? "";
|
|
1565
|
-
return t === "system" ? m`<div class="message-content message-content-alignment">${a && m`<calcite-icon .icon=${a}></calcite-icon>` || ""}${e}</div>` : m`<calcite-card class=${
|
|
1573
|
+
return t === "system" ? m`<div class="message-content message-content-alignment">${a && m`<calcite-icon .icon=${a}></calcite-icon>` || ""}${e}</div>` : m`<calcite-card class=${re(t === "human" ? "user-message" : "system-message")}><div class=${re(l ? `${l} message-content` : "message-content")}>${ae(e)}${r}${t === "ai" && n !== "" && this._renderFeedback(e, h, n, s) || ""}</div></calcite-card>`;
|
|
1566
1574
|
}
|
|
1567
1575
|
_renderSuggestedSolutions(e) {
|
|
1568
1576
|
const t = e.map((n) => this._renderSolutionCard(n));
|
|
@@ -1573,21 +1581,23 @@ class Tt extends Te {
|
|
|
1573
1581
|
`;
|
|
1574
1582
|
}
|
|
1575
1583
|
_renderNoSign() {
|
|
1576
|
-
return m`<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 ??
|
|
1584
|
+
return m`<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 ?? ie} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`;
|
|
1577
1585
|
}
|
|
1578
1586
|
_renderNoPermission() {
|
|
1579
|
-
return m`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${
|
|
1587
|
+
return m`<calcite-notice open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${ae(this._translations.noPermissionMessage.replace("{{orgUrl}}", $t).replace("{{configAI}}", Tt))}</div></calcite-notice>`;
|
|
1580
1588
|
}
|
|
1581
1589
|
render() {
|
|
1582
1590
|
return m`<calcite-dialog class="chat-panel" .open=${this.open} .heading=${this._translations.solutionAssistantTitle} placement=bottom-start @calciteDialogClose=${() => {
|
|
1583
1591
|
this.closeAssistant.emit(!0), this.open = !1;
|
|
1584
|
-
}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length > 1 ? m`<calcite-button appearance=transparent class="icon-color-background" .disabled=${!!this._isLoading || this._isTyping} id=newChatButton icon-end=speech-bubble-plus kind=neutral label="New conversation" @click=${this.resetChat} scale=l slot=header-actions-end></calcite-button><calcite-tooltip placement=bottom reference-element=newChatButton><span>${this._translations.tooltips.newConversation}</span></calcite-tooltip>` : ""}<div class="chat-messages" ${
|
|
1592
|
+
}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length > 1 ? m`<calcite-button appearance=transparent class="icon-color-background" .disabled=${!!this._isLoading || this._isTyping} id=newChatButton icon-end=speech-bubble-plus kind=neutral label="New conversation" @click=${this.resetChat} scale=l slot=header-actions-end></calcite-button><calcite-tooltip placement=bottom reference-element=newChatButton><span>${this._translations.tooltips.newConversation}</span></calcite-tooltip>` : ""}<div class="chat-messages" ${ne(this._setMessageContainerRef)}>${this.messages.map((e) => e.render)}${this._isLoading && m`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText != "" && m`<div class="padding-left-10">${this._isLoadingText}</div>` || ""}</div></calcite-card>` || ""}${this._chatContainer && !this._isAtBottom(this._chatContainer) && !this._isAutoScroll && m`<calcite-fab icon=arrow-down @click=${() => {
|
|
1585
1593
|
this._isAutoScroll = !0, this._scrollToBottom(), setTimeout(() => {
|
|
1586
1594
|
this.requestUpdate();
|
|
1587
1595
|
}, 100);
|
|
1588
|
-
}} scale=m></calcite-fab>` || ""}${this._configContextConsumer.value?.userSession?.token ? this._configContextConsumer.value?.authentication?.CanUseAI ? "" : this._renderNoPermission() : this._renderNoSign()}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area .disabled=${!this._configContextConsumer.value?.userSession?.token || !this._configContextConsumer.value?.authentication?.CanUseAI} resize=none rows=3 .placeholder=${this._translations.sendMessage} value ${
|
|
1596
|
+
}} scale=m></calcite-fab>` || ""}${this._configContextConsumer.value?.userSession?.token ? this._configContextConsumer.value?.authentication?.CanUseAI ? "" : this._renderNoPermission() : this._renderNoSign()}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area .disabled=${!this._configContextConsumer.value?.userSession?.token || !this._configContextConsumer.value?.authentication?.CanUseAI} resize=none rows=3 .placeholder=${this._translations.sendMessage} value ${ne(this._setInputRef)}></calcite-text-area><calcite-button appearance=outline .disabled=${!!this._isLoading || this._isTyping || !this._configContextConsumer.value?.userSession?.token || !this._configContextConsumer.value?.authentication?.CanUseAI} icon-start=send id=sendQuestion kind=neutral icon-flip-rtl=start @click=${() => {
|
|
1597
|
+
this._inputRef && (this.handleSendMessage(this._inputRef.value.trim()), this._inputRef.value = "");
|
|
1598
|
+
}} @keydown=${(e) => Z(e, () => {
|
|
1589
1599
|
this._inputRef && (this.handleSendMessage(this._inputRef.value.trim()), this._inputRef.value = "");
|
|
1590
|
-
}}></calcite-button><calcite-tooltip placement=bottom reference-element=sendQuestion><span>${this._translations.tooltips.sendQuestion}</span></calcite-tooltip></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://links.esri.com/solutions/security-concern target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`;
|
|
1600
|
+
})}></calcite-button><calcite-tooltip placement=bottom reference-element=sendQuestion><span>${this._translations.tooltips.sendQuestion}</span></calcite-tooltip></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://links.esri.com/solutions/security-concern target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`;
|
|
1591
1601
|
}
|
|
1592
1602
|
_scrollToBottom() {
|
|
1593
1603
|
this._chatContainer && this._isAutoScroll && setTimeout(() => {
|
|
@@ -1659,7 +1669,7 @@ class Tt extends Te {
|
|
|
1659
1669
|
}
|
|
1660
1670
|
}
|
|
1661
1671
|
}
|
|
1662
|
-
|
|
1672
|
+
$e("arcgis-solutions-assistant", Rt);
|
|
1663
1673
|
export {
|
|
1664
|
-
|
|
1674
|
+
Rt as ArcgisSolutionsAssistant
|
|
1665
1675
|
};
|
|
@@ -3,15 +3,15 @@ import { c as h } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as p, html as o } from "lit";
|
|
4
4
|
import { u as m } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as u, createEvent as f, nothing as r, safeClassMap as g } from "@arcgis/lumina";
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
6
|
+
import { useContextConsumer as x } from "@arcgis/lumina/context";
|
|
7
|
+
import { c as v } from "../../chunks/deployAppContexts.js";
|
|
8
|
+
import { T as b, G as y } from "../../chunks/interfaces.js";
|
|
9
9
|
import { c as $ } from "../../chunks/cardsHelpers.js";
|
|
10
10
|
const _ = p`calcite-card{height:100%;padding-bottom:2px}@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:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.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:1.2rem}.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)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.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}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`;
|
|
11
11
|
class C extends u {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._translations = m({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer =
|
|
14
|
-
context:
|
|
13
|
+
super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._translations = m({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer = x({
|
|
14
|
+
context: v,
|
|
15
15
|
subscribe: !0
|
|
16
16
|
}), this.detailsCardSelected = f();
|
|
17
17
|
}
|
|
@@ -26,7 +26,7 @@ class C extends u {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const e = $(this.card.title);
|
|
29
|
-
return o`<a href=${e ?? r} @click=${this._anchorClick}
|
|
29
|
+
return o`<a href=${e ?? r} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`;
|
|
30
30
|
}
|
|
31
31
|
_anchorClick(e) {
|
|
32
32
|
e.preventDefault();
|
|
@@ -42,7 +42,7 @@ class C extends u {
|
|
|
42
42
|
this.card?.deployVersion || ""
|
|
43
43
|
];
|
|
44
44
|
this._telemetry?.logEvent({
|
|
45
|
-
category:
|
|
45
|
+
category: b.SOLUTION_DETAILS,
|
|
46
46
|
action: "Related Solution",
|
|
47
47
|
dimensions: t
|
|
48
48
|
});
|
|
@@ -58,7 +58,7 @@ class C extends u {
|
|
|
58
58
|
}
|
|
59
59
|
_renderCard() {
|
|
60
60
|
const e = this.card;
|
|
61
|
-
return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title ?? r} class="thumbnail card-image" src=${e.thumbnailUrl ?? r}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips && e.chips.length > 0 ? o`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>` : void 0}<div slot=footer-start></div></calcite-card>`;
|
|
61
|
+
return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${(t) => y(t, () => this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title ?? r} class="thumbnail card-image" src=${e.thumbnailUrl ?? r}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips && e.chips.length > 0 ? o`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>` : void 0}<div slot=footer-start></div></calcite-card>`;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
h("solution-details-card", C);
|