@juspay/svelte-ui-components 2.135.0 → 2.136.0
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/Chat/Chat.svelte +12 -0
- package/dist/Chat/properties.d.ts +7 -0
- package/dist/ChatMessageList/ChatMessageList.svelte +54 -1
- package/dist/CheckListItem/CheckListItem.svelte +4 -1
- package/dist/ChipInput/ChipInput.svelte +150 -10
- package/dist/ChipInput/properties.d.ts +18 -1
- package/dist/CommandMenu/CommandMenu.svelte +7 -3
- package/dist/EmptyState/EmptyState.svelte +17 -3
- package/dist/Input/Input.svelte +1 -0
- package/dist/ListItem/ListItem.svelte +14 -12
- package/dist/ListItem/properties.d.ts +7 -0
- package/dist/Menu/Menu.svelte +2 -1
- package/dist/Menu/properties.d.ts +2 -0
- package/dist/Modal/Modal.svelte +3 -3
- package/dist/Pill/Pill.svelte +2 -0
- package/dist/Pill/properties.d.ts +1 -0
- package/dist/Sheet/Sheet.svelte +3 -23
- package/dist/StatCard/StatCard.svelte +64 -1
- package/dist/StatCard/properties.d.ts +44 -2
- package/dist/Status/Status.svelte +2 -1
- package/dist/Status/properties.d.ts +10 -0
- package/dist/Stepper/Step.svelte +95 -2
- package/dist/Stepper/Stepper.svelte +52 -7
- package/dist/Stepper/properties.d.ts +34 -1
- package/dist/Table/BuiltinCell.svelte +46 -23
- package/dist/Table/Table.svelte +63 -40
- package/dist/Table/cellData.js +3 -0
- package/dist/Table/properties.d.ts +70 -0
- package/dist/TypewriterText/TypewriterText.svelte +67 -2
- package/dist/TypewriterText/properties.d.ts +97 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +30 -0
- package/dist-wc/index.js +1186 -926
- package/package.json +1 -1
package/dist-wc/index.js
CHANGED
|
@@ -5766,6 +5766,79 @@ customElements.define("sui-checkbox", create_custom_element(Checkbox_wc, {
|
|
|
5766
5766
|
onclick: { type: "Object" }
|
|
5767
5767
|
}, ["checked-icon", "indeterminate-icon"], [], { mode: "open" }));
|
|
5768
5768
|
//#endregion
|
|
5769
|
+
//#region src/lib/utils.ts
|
|
5770
|
+
function validateInput(e, t, n, i, a) {
|
|
5771
|
+
let o = "Valid";
|
|
5772
|
+
switch (t) {
|
|
5773
|
+
case "email":
|
|
5774
|
+
o = validateEmailInput(e);
|
|
5775
|
+
break;
|
|
5776
|
+
case "tel":
|
|
5777
|
+
o = n === null ? validatePhoneNumber(e) : validateTextWithPattern(e, n, i);
|
|
5778
|
+
break;
|
|
5779
|
+
case "password":
|
|
5780
|
+
o = validatePassword(e, n, i);
|
|
5781
|
+
break;
|
|
5782
|
+
case "text":
|
|
5783
|
+
o = validateTextWithPattern(e, n, i);
|
|
5784
|
+
break;
|
|
5785
|
+
}
|
|
5786
|
+
return a.forEach((t) => {
|
|
5787
|
+
let n = t(e, o);
|
|
5788
|
+
o = n === "Invalid" ? "Invalid" : n === "InProgress" ? "InProgress" : o === "Valid" && n === "Valid" ? "Valid" : o;
|
|
5789
|
+
}), o;
|
|
5790
|
+
}
|
|
5791
|
+
function validateTextWithPattern(e, t, n) {
|
|
5792
|
+
return t === null || t.test(e) ? "Valid" : n !== null && n.test(e) || e.length === 0 ? "InProgress" : "Invalid";
|
|
5793
|
+
}
|
|
5794
|
+
function validatePassword(e, t, n) {
|
|
5795
|
+
return t === null || t.test(e) ? "Valid" : n !== null && n.test(e) && e.length === 0 ? "InProgress" : "Invalid";
|
|
5796
|
+
}
|
|
5797
|
+
function validateEmailInput(e) {
|
|
5798
|
+
try {
|
|
5799
|
+
let t = /* @__PURE__ */ new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/), n = /* @__PURE__ */ new RegExp(/[^ ]{1,}[\w0-9.,_,@]{0,}/);
|
|
5800
|
+
return t.test(e) ? "Valid" : n.test(e) || e.length === 0 ? "InProgress" : "Invalid";
|
|
5801
|
+
} catch (e) {
|
|
5802
|
+
console.error("Email Regex creation failed: ", e);
|
|
5803
|
+
}
|
|
5804
|
+
return "Valid";
|
|
5805
|
+
}
|
|
5806
|
+
function validatePhoneNumber(e) {
|
|
5807
|
+
try {
|
|
5808
|
+
let t = /* @__PURE__ */ RegExp("^[6-9]{1}[0-9]{9}$"), n = /* @__PURE__ */ RegExp("^[6-9]{1}[0-9]{0,9}$");
|
|
5809
|
+
return t.test(e) ? "Valid" : n.test(e) || e.length === 0 ? "InProgress" : "Invalid";
|
|
5810
|
+
} catch (e) {
|
|
5811
|
+
console.error("Phone Regex creation failed", e);
|
|
5812
|
+
}
|
|
5813
|
+
return e.length === 10 ? "Valid" : e.length > 10 ? "InProgress" : "Invalid";
|
|
5814
|
+
}
|
|
5815
|
+
function getStorageItem(e) {
|
|
5816
|
+
try {
|
|
5817
|
+
return localStorage.getItem(e);
|
|
5818
|
+
} catch {
|
|
5819
|
+
return null;
|
|
5820
|
+
}
|
|
5821
|
+
}
|
|
5822
|
+
function setStorageItem(e, t) {
|
|
5823
|
+
try {
|
|
5824
|
+
localStorage.setItem(e, t);
|
|
5825
|
+
} catch {}
|
|
5826
|
+
}
|
|
5827
|
+
function createDebouncer(e) {
|
|
5828
|
+
let t = 0;
|
|
5829
|
+
return function(n, ...i) {
|
|
5830
|
+
let a = Date.now();
|
|
5831
|
+
a - t > e && (t = a, n(...i));
|
|
5832
|
+
};
|
|
5833
|
+
}
|
|
5834
|
+
var bodyScrollLockCount = 0;
|
|
5835
|
+
function lockBodyScroll() {
|
|
5836
|
+
typeof document > "u" || (bodyScrollLockCount === 0 && (document.body.style.overflow = "hidden"), bodyScrollLockCount += 1);
|
|
5837
|
+
}
|
|
5838
|
+
function unlockBodyScroll() {
|
|
5839
|
+
typeof document > "u" || (bodyScrollLockCount = Math.max(0, bodyScrollLockCount - 1), bodyScrollLockCount === 0 && (document.body.style.overflow = ""));
|
|
5840
|
+
}
|
|
5841
|
+
//#endregion
|
|
5769
5842
|
//#region src/lib/assets/search.svg?raw
|
|
5770
5843
|
var search_default = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"11\" cy=\"11\" r=\"8\"></circle>\n <line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"></line>\n</svg>\n", root$71 = /* @__PURE__ */ from_html("<span class=\"command-menu-search-icon svelte-rk55q\"></span>"), root_1$59 = /* @__PURE__ */ from_html("<div class=\"command-menu-empty svelte-rk55q\"> </div>"), root_2$44 = /* @__PURE__ */ from_html("<div class=\"command-menu-group-heading svelte-rk55q\"> </div>"), root_3$39 = /* @__PURE__ */ from_html("<span class=\"command-menu-item-icon svelte-rk55q\"><!></span>"), root_4$31 = /* @__PURE__ */ from_html("<div class=\"command-menu-item-icon-img-wrapper svelte-rk55q\"><!></div>"), root_5$24 = /* @__PURE__ */ from_html("<kbd class=\"command-menu-kbd svelte-rk55q\"> </kbd>"), root_6$21 = /* @__PURE__ */ from_html("<span class=\"command-menu-item-shortcut svelte-rk55q\"></span>"), root_7$18 = /* @__PURE__ */ from_html("<button type=\"button\" role=\"option\" tabindex=\"-1\"><!> <span class=\"command-menu-item-label svelte-rk55q\"> </span> <!></button>"), root_8$16 = /* @__PURE__ */ from_html("<!> <!>", 1), root_9$11 = /* @__PURE__ */ from_html("<div role=\"dialog\" aria-modal=\"true\" aria-label=\"Command menu\" tabindex=\"-1\"><div class=\"command-menu-dialog svelte-rk55q\"><div class=\"command-menu-input-wrapper svelte-rk55q\"><!> <input type=\"text\" class=\"command-menu-input svelte-rk55q\" autocomplete=\"off\" spellcheck=\"false\"/></div> <div class=\"command-menu-separator svelte-rk55q\"></div> <div class=\"command-menu-list svelte-rk55q\" role=\"listbox\"><!></div></div></div>"), $$css$69 = {
|
|
5771
5844
|
hash: "svelte-rk55q",
|
|
@@ -5851,16 +5924,16 @@ function CommandMenu(e, t) {
|
|
|
5851
5924
|
(e.metaKey || e.ctrlKey) && e.key === "k" && (e.preventDefault(), i() ? x() : i(!0));
|
|
5852
5925
|
}
|
|
5853
5926
|
function O(e) {
|
|
5854
|
-
return
|
|
5927
|
+
return lockBodyScroll(), tick().then(() => {
|
|
5855
5928
|
get(h) !== null && get(h).focus();
|
|
5856
5929
|
}), { destroy() {
|
|
5857
|
-
|
|
5930
|
+
unlockBodyScroll();
|
|
5858
5931
|
} };
|
|
5859
5932
|
}
|
|
5860
5933
|
onMount(() => {
|
|
5861
5934
|
window.addEventListener("keydown", D);
|
|
5862
5935
|
}), onDestroy(() => {
|
|
5863
|
-
typeof window < "u" &&
|
|
5936
|
+
typeof window < "u" && window.removeEventListener("keydown", D);
|
|
5864
5937
|
});
|
|
5865
5938
|
var k = {
|
|
5866
5939
|
get items() {
|
|
@@ -6678,81 +6751,15 @@ customElements.define("sui-img", create_custom_element(Img_wc, {
|
|
|
6678
6751
|
onerror: { type: "Object" }
|
|
6679
6752
|
}, [], [], { mode: "open" }));
|
|
6680
6753
|
//#endregion
|
|
6681
|
-
//#region src/lib/utils.ts
|
|
6682
|
-
function validateInput(e, t, n, i, a) {
|
|
6683
|
-
let o = "Valid";
|
|
6684
|
-
switch (t) {
|
|
6685
|
-
case "email":
|
|
6686
|
-
o = validateEmailInput(e);
|
|
6687
|
-
break;
|
|
6688
|
-
case "tel":
|
|
6689
|
-
o = n === null ? validatePhoneNumber(e) : validateTextWithPattern(e, n, i);
|
|
6690
|
-
break;
|
|
6691
|
-
case "password":
|
|
6692
|
-
o = validatePassword(e, n, i);
|
|
6693
|
-
break;
|
|
6694
|
-
case "text":
|
|
6695
|
-
o = validateTextWithPattern(e, n, i);
|
|
6696
|
-
break;
|
|
6697
|
-
}
|
|
6698
|
-
return a.forEach((t) => {
|
|
6699
|
-
let n = t(e, o);
|
|
6700
|
-
o = n === "Invalid" ? "Invalid" : n === "InProgress" ? "InProgress" : o === "Valid" && n === "Valid" ? "Valid" : o;
|
|
6701
|
-
}), o;
|
|
6702
|
-
}
|
|
6703
|
-
function validateTextWithPattern(e, t, n) {
|
|
6704
|
-
return t === null || t.test(e) ? "Valid" : n !== null && n.test(e) || e.length === 0 ? "InProgress" : "Invalid";
|
|
6705
|
-
}
|
|
6706
|
-
function validatePassword(e, t, n) {
|
|
6707
|
-
return t === null || t.test(e) ? "Valid" : n !== null && n.test(e) && e.length === 0 ? "InProgress" : "Invalid";
|
|
6708
|
-
}
|
|
6709
|
-
function validateEmailInput(e) {
|
|
6710
|
-
try {
|
|
6711
|
-
let t = /* @__PURE__ */ new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/), n = /* @__PURE__ */ new RegExp(/[^ ]{1,}[\w0-9.,_,@]{0,}/);
|
|
6712
|
-
return t.test(e) ? "Valid" : n.test(e) || e.length === 0 ? "InProgress" : "Invalid";
|
|
6713
|
-
} catch (e) {
|
|
6714
|
-
console.error("Email Regex creation failed: ", e);
|
|
6715
|
-
}
|
|
6716
|
-
return "Valid";
|
|
6717
|
-
}
|
|
6718
|
-
function validatePhoneNumber(e) {
|
|
6719
|
-
try {
|
|
6720
|
-
let t = /* @__PURE__ */ RegExp("^[6-9]{1}[0-9]{9}$"), n = /* @__PURE__ */ RegExp("^[6-9]{1}[0-9]{0,9}$");
|
|
6721
|
-
return t.test(e) ? "Valid" : n.test(e) || e.length === 0 ? "InProgress" : "Invalid";
|
|
6722
|
-
} catch (e) {
|
|
6723
|
-
console.error("Phone Regex creation failed", e);
|
|
6724
|
-
}
|
|
6725
|
-
return e.length === 10 ? "Valid" : e.length > 10 ? "InProgress" : "Invalid";
|
|
6726
|
-
}
|
|
6727
|
-
function getStorageItem(e) {
|
|
6728
|
-
try {
|
|
6729
|
-
return localStorage.getItem(e);
|
|
6730
|
-
} catch {
|
|
6731
|
-
return null;
|
|
6732
|
-
}
|
|
6733
|
-
}
|
|
6734
|
-
function setStorageItem(e, t) {
|
|
6735
|
-
try {
|
|
6736
|
-
localStorage.setItem(e, t);
|
|
6737
|
-
} catch {}
|
|
6738
|
-
}
|
|
6739
|
-
function createDebouncer(e) {
|
|
6740
|
-
let t = 0;
|
|
6741
|
-
return function(n, ...i) {
|
|
6742
|
-
let a = Date.now();
|
|
6743
|
-
a - t > e && (t = a, n(...i));
|
|
6744
|
-
};
|
|
6745
|
-
}
|
|
6746
|
-
//#endregion
|
|
6747
6754
|
//#region src/lib/Input/Input.svelte
|
|
6748
6755
|
var root$65 = /* @__PURE__ */ from_html("<textarea></textarea>"), root_1$54 = /* @__PURE__ */ from_html("<input/>"), root_2$41 = /* @__PURE__ */ from_html("<span class=\"input-mandatory-asterisk svelte-1h0c2oe\" aria-hidden=\"true\">*</span>"), root_3$37 = /* @__PURE__ */ from_html("<label class=\"label svelte-1h0c2oe\"> <!></label>"), root_4$30 = /* @__PURE__ */ from_html("<button type=\"button\" class=\"input-icon input-icon-left input-icon-button svelte-1h0c2oe\"><!></button>"), root_5$23 = /* @__PURE__ */ from_html("<span class=\"input-icon input-icon-left svelte-1h0c2oe\"><!></span>"), root_6$20 = /* @__PURE__ */ from_html("<button type=\"button\" class=\"input-icon input-icon-right input-icon-button svelte-1h0c2oe\"><!></button>"), root_7$17 = /* @__PURE__ */ from_html("<span class=\"input-icon input-icon-right svelte-1h0c2oe\"><!></span>"), root_8$15 = /* @__PURE__ */ from_html("<div><!> <!> <!></div>"), root_9$10 = /* @__PURE__ */ from_html("<div role=\"alert\" class=\"error-message svelte-1h0c2oe\"> </div>"), root_10$9 = /* @__PURE__ */ from_html("<div class=\"info-message svelte-1h0c2oe\"> </div>"), root_11$8 = /* @__PURE__ */ from_html("<div> </div>"), root_12$8 = /* @__PURE__ */ from_html("<div><!> <!> <!> <!> <!></div>"), $$css$63 = {
|
|
6749
6756
|
hash: "svelte-1h0c2oe",
|
|
6750
|
-
code: "textarea.svelte-1h0c2oe,\n input.svelte-1h0c2oe {box-sizing:var(--input-box-sizing, border-box);height:var(--input-height, fit-content);\n\n /* Both default to the CSS initial value, so a consumer that sets neither is\n byte-identical to before. A textarea that grows with its content needs a\n ceiling before it can scroll, and one used as a paste target needs a floor;\n neither was reachable through the --input-* surface. */min-height:var(--input-min-height, auto);max-height:var(--input-max-height, none);background-color:var(--input-background, white);font-size:var(--input-font-size, 16px) !important;font-family:var(--input-font-family, inherit);border-radius:var(--input-radius, var(--radius, 4px));outline:none;padding:var(--input-padding, 16px);font-weight:var(--input-font-weight, 500);\n\n /* `normal` is what a textarea/input computes today regardless of any inherited\n value — the UA sheet sets it, and inheritance loses to a UA declaration on the\n element itself. So the default here is byte-identical for existing consumers,\n and this is the only way a consumer can set it at all. */line-height:var(--input-line-height, normal);width:var(--input-width, fit-content);margin:var(--input-margin, 0);appearance:none !important;-webkit-appearance:none !important; /* For Safari MWeb */box-shadow:var(--input-box-shadow, 0px 1px 8px #2f537733);border:var(--input-border, 1px solid transparent);resize:none;visibility:var(--input-visibility, visible);text-align:var(--input-text-align, left);text-transform:var(--input-text-transform, none);color:var(--input-text-color);}textarea.svelte-1h0c2oe:focus,\n input.svelte-1h0c2oe:focus {border:var(--input-focus-border, 1px solid transparent);}.input-error.svelte-1h0c2oe {--input-focus-border: var(\n --input-error-border,\n 1px solid var(--input-error-msg-text-color, #fa1405)\n ) !important;--input-border: var(\n --input-error-border,\n 1px solid var(--input-error-msg-text-color, #fa1405)\n ) !important;}.action-input.svelte-1h0c2oe {border-radius:var(--input-radius, var(--radius, 4px) 0 0 var(--radius, 4px));box-shadow:var(--input-box-shadow, 0px 0px 0px #ffffff);margin-bottom:0;}.input-container.svelte-1h0c2oe {display:flex;flex-direction:column;margin:var(--input-container-margin, 0);padding:var(--input-container-padding, 0);width:var(--input-container-width, fit-content);}.label.svelte-1h0c2oe {font-weight:var(--input-label-msg-text-weight, 400);font-size:var(--input-label-msg-text-size, 12px);color:var(--input-label-msg-text-color, #637c95);margin:var(--input-label-msg-margin, 0px 0px 6px 0px);padding:var(--input-label-msg-padding);}.input-mandatory-asterisk.svelte-1h0c2oe {color:var(--input-mandatory-color, var(--input-error-msg-text-color, #fa1405));margin-left:var(--input-mandatory-gap, 2px);}\n\n /* Icon wrapper: only rendered when leftIcon/rightIcon is supplied, so non-icon\n consumers keep the exact prior DOM. The field's bottom margin moves to the\n wrap so the absolutely-positioned icons centre on the field, not the margin. */.input-field-wrap.svelte-1h0c2oe {position:relative;display:block;margin:var(--input-margin, 0);}.input-field-wrap.svelte-1h0c2oe > textarea,\n .input-field-wrap.svelte-1h0c2oe > input {margin:0 !important;width:var(--input-width, 100%);}.input-icon.svelte-1h0c2oe {position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:var(--input-icon-size, 20px);height:var(--input-icon-size, 20px);color:var(--input-icon-color, inherit);pointer-events:none;}.input-icon-button.svelte-1h0c2oe {background:none;border:none;padding:0;cursor:pointer;pointer-events:auto;}.input-icon-button.svelte-1h0c2oe:focus-visible {outline:var(--input-icon-focus-outline, 2px solid var(--input-focus-border-color, #005fcc));outline-offset:var(--input-icon-focus-outline-offset, 2px);border-radius:var(--input-icon-focus-radius, var(--radius, 4px));}.input-icon-left.svelte-1h0c2oe {left:var(--input-icon-gap, 12px);}.input-icon-right.svelte-1h0c2oe {right:var(--input-icon-gap, 12px);}.input-field-wrap.has-left-icon.svelte-1h0c2oe > textarea,\n .input-field-wrap.has-left-icon.svelte-1h0c2oe > input {padding-left:calc(var(--input-icon-size, 20px) + var(--input-icon-gap, 12px) * 2);}.input-field-wrap.has-right-icon.svelte-1h0c2oe > textarea,\n .input-field-wrap.has-right-icon.svelte-1h0c2oe > input {padding-right:calc(var(--input-icon-size, 20px) + var(--input-icon-gap, 12px) * 2);}.error-message.svelte-1h0c2oe {font-weight:var(--input-error-msg-text-weight, 400);font-size:var(--input-error-msg-text-size, 12px);color:var(--input-error-msg-text-color, #fa1405);margin:var(--input-error-msg-margin);padding:var(--input-error-msg-padding);}.info-message.svelte-1h0c2oe {font-weight:var(--input-info-msg-text-weight, 400);font-size:var(--input-info-msg-text-size, 12px);color:var(--input-info-msg-text-color, #fa1405);margin:var(--input-info-msg-margin);padding:var(--input-info-msg-padding);}.input-char-count.svelte-1h0c2oe {align-self:flex-end;font-size:var(--input-char-count-size, 12px);color:var(--input-char-count-color, #98a2b3);margin:var(--input-char-count-margin, 4px 0 0);font-variant-numeric:tabular-nums;}.input-char-count.at-limit.svelte-1h0c2oe {color:var(--input-char-count-limit-color, var(--input-error-msg-text-color, #fa1405));}.svelte-1h0c2oe::placeholder {color:var(--input-placeholder-color);}"
|
|
6757
|
+
code: "textarea.svelte-1h0c2oe,\n input.svelte-1h0c2oe {box-sizing:var(--input-box-sizing, border-box);height:var(--input-height, fit-content);\n\n /* Both default to the CSS initial value, so a consumer that sets neither is\n byte-identical to before. A textarea that grows with its content needs a\n ceiling before it can scroll, and one used as a paste target needs a floor;\n neither was reachable through the --input-* surface. */min-height:var(--input-min-height, auto);max-height:var(--input-max-height, none);background-color:var(--input-background, white);font-size:var(--input-font-size, 16px) !important;font-family:var(--input-font-family, inherit);border-radius:var(--input-radius, var(--radius, 4px));outline:none;padding:var(--input-padding, 16px);font-weight:var(--input-font-weight, 500);\n\n /* `normal` is what a textarea/input computes today regardless of any inherited\n value — the UA sheet sets it, and inheritance loses to a UA declaration on the\n element itself. So the default here is byte-identical for existing consumers,\n and this is the only way a consumer can set it at all. */line-height:var(--input-line-height, normal);width:var(--input-width, fit-content);margin:var(--input-margin, 0);appearance:none !important;-webkit-appearance:none !important; /* For Safari MWeb */box-shadow:var(--input-box-shadow, 0px 1px 8px #2f537733);border:var(--input-border, 1px solid transparent);resize:none;visibility:var(--input-visibility, visible);text-align:var(--input-text-align, left);text-transform:var(--input-text-transform, none);color:var(--input-text-color);}textarea.svelte-1h0c2oe:focus,\n input.svelte-1h0c2oe:focus {border:var(--input-focus-border, 1px solid transparent);}.input-error.svelte-1h0c2oe {--input-focus-border: var(\n --input-error-border,\n 1px solid var(--input-error-msg-text-color, #fa1405)\n ) !important;--input-border: var(\n --input-error-border,\n 1px solid var(--input-error-msg-text-color, #fa1405)\n ) !important;}.action-input.svelte-1h0c2oe {border-radius:var(--input-radius, var(--radius, 4px) 0 0 var(--radius, 4px));box-shadow:var(--input-box-shadow, 0px 0px 0px #ffffff);margin-bottom:0;}.input-container.svelte-1h0c2oe {display:flex;flex-direction:column;margin:var(--input-container-margin, 0);padding:var(--input-container-padding, 0);width:var(--input-container-width, fit-content);}.label.svelte-1h0c2oe {font-weight:var(--input-label-msg-text-weight, 400);font-size:var(--input-label-msg-text-size, 12px);color:var(--input-label-msg-text-color, #637c95);margin:var(--input-label-msg-margin, 0px 0px 6px 0px);padding:var(--input-label-msg-padding);}.input-mandatory-asterisk.svelte-1h0c2oe {color:var(--input-mandatory-color, var(--input-error-msg-text-color, #fa1405));margin-left:var(--input-mandatory-gap, 2px);}\n\n /* Icon wrapper: only rendered when leftIcon/rightIcon is supplied, so non-icon\n consumers keep the exact prior DOM. The field's bottom margin moves to the\n wrap so the absolutely-positioned icons centre on the field, not the margin. */.input-field-wrap.svelte-1h0c2oe {position:relative;display:block;margin:var(--input-margin, 0);}.input-field-wrap.svelte-1h0c2oe > textarea,\n .input-field-wrap.svelte-1h0c2oe > input {margin:0 !important;width:var(--input-width, 100%);}.input-icon.svelte-1h0c2oe {position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:var(--input-icon-size, 20px);height:var(--input-icon-size, 20px);color:var(--input-icon-color, inherit);pointer-events:none;}.input-icon-button.svelte-1h0c2oe {background:none;border:none;padding:0;cursor:pointer;pointer-events:auto;}.input-icon-button.svelte-1h0c2oe:focus-visible {outline:var(--input-icon-focus-outline, 2px solid var(--input-focus-border-color, #005fcc));outline-offset:var(--input-icon-focus-outline-offset, 2px);border-radius:var(--input-icon-focus-radius, var(--radius, 4px));}.input-icon-left.svelte-1h0c2oe {left:var(--input-icon-gap, 12px);color:var(--input-left-icon-color, var(--input-icon-color, inherit));}.input-icon-right.svelte-1h0c2oe {right:var(--input-icon-gap, 12px);}.input-field-wrap.has-left-icon.svelte-1h0c2oe > textarea,\n .input-field-wrap.has-left-icon.svelte-1h0c2oe > input {padding-left:calc(var(--input-icon-size, 20px) + var(--input-icon-gap, 12px) * 2);}.input-field-wrap.has-right-icon.svelte-1h0c2oe > textarea,\n .input-field-wrap.has-right-icon.svelte-1h0c2oe > input {padding-right:calc(var(--input-icon-size, 20px) + var(--input-icon-gap, 12px) * 2);}.error-message.svelte-1h0c2oe {font-weight:var(--input-error-msg-text-weight, 400);font-size:var(--input-error-msg-text-size, 12px);color:var(--input-error-msg-text-color, #fa1405);margin:var(--input-error-msg-margin);padding:var(--input-error-msg-padding);}.info-message.svelte-1h0c2oe {font-weight:var(--input-info-msg-text-weight, 400);font-size:var(--input-info-msg-text-size, 12px);color:var(--input-info-msg-text-color, #fa1405);margin:var(--input-info-msg-margin);padding:var(--input-info-msg-padding);}.input-char-count.svelte-1h0c2oe {align-self:flex-end;font-size:var(--input-char-count-size, 12px);color:var(--input-char-count-color, #98a2b3);margin:var(--input-char-count-margin, 4px 0 0);font-variant-numeric:tabular-nums;}.input-char-count.at-limit.svelte-1h0c2oe {color:var(--input-char-count-limit-color, var(--input-error-msg-text-color, #fa1405));}.svelte-1h0c2oe::placeholder {color:var(--input-placeholder-color);}"
|
|
6751
6758
|
};
|
|
6752
6759
|
function Input(e, t) {
|
|
6753
6760
|
let n = props_id();
|
|
6754
6761
|
push(t, !0), append_styles$1(e, $$css$63);
|
|
6755
|
-
let i = prop(t, "value", 15, ""), a = prop(t, "placeholder", 7, ""), o = prop(t, "dataType", 7, "text"), s = prop(t, "label", 7, ""), c = prop(t, "onErrorMessage", 7, ""), l = prop(t, "infoMessage", 7, ""), u = prop(t, "validators", 23, () => []), d = prop(t, "disable", 7, !1), f = prop(t, "readonly", 7, !1), p = prop(t, "spellcheck", 7, null), m = prop(t, "validationPattern", 7, null), h = prop(t, "inProgressPattern", 7, null), g = prop(t, "addFocusColor", 7, !1), _ = prop(t, "maxLength", 7, 1e3), v = prop(t, "minLength", 7, 0), y = prop(t, "min", 7), b = prop(t, "max", 7), x = prop(t, "actionInput", 7, !1), S = prop(t, "useTextArea", 7, !1), C = prop(t, "autoComplete", 7, "on"), w = prop(t, "inputMode", 7), T = prop(t, "name", 7, ""), E = prop(t, "id", 7), D = prop(t, "testId", 7, ""), O = prop(t, "textTransformers", 23, () => []), k = prop(t, "textViewPresentation", 23, () => []), A = prop(t, "onFocus", 7, () => {}), j = prop(t, "onFocusout", 7, () => {}), M = prop(t, "onBlur", 7, () => {}), N = prop(t, "onInput", 7, () => {}), P = prop(t, "onPaste", 7, () => {}), F = prop(t, "onStateChange", 7, () => {}), I = prop(t, "onClick", 7, () => {}), L = prop(t, "onKeyDown", 7, () => {}), R = prop(t, "classes", 7), z = prop(t, "role", 7), B = prop(t, "ariaLabel", 7), V = prop(t, "ariaExpanded", 7), H = prop(t, "ariaAutocomplete", 7), U = prop(t, "ariaControls", 7), W = prop(t, "ariaActivedescendant", 7), G = prop(t, "leftIcon", 7), K = prop(t, "rightIcon", 7), q = prop(t, "onLeftIconClick", 7), J = prop(t, "onRightIconClick", 7), Y = prop(t, "leftIconLabel", 7, "Leading action"), X = prop(t, "rightIconLabel", 7, "Trailing action"), Z = prop(t, "mandatory", 7, !1), Q = prop(t, "forceError", 7, !1),
|
|
6762
|
+
let i = prop(t, "value", 15, ""), a = prop(t, "placeholder", 7, ""), o = prop(t, "dataType", 7, "text"), s = prop(t, "label", 7, ""), c = prop(t, "onErrorMessage", 7, ""), l = prop(t, "infoMessage", 7, ""), u = prop(t, "validators", 23, () => []), d = prop(t, "disable", 7, !1), f = prop(t, "readonly", 7, !1), p = prop(t, "spellcheck", 7, null), m = prop(t, "validationPattern", 7, null), h = prop(t, "inProgressPattern", 7, null), g = prop(t, "addFocusColor", 7, !1), _ = prop(t, "maxLength", 7, 1e3), v = prop(t, "minLength", 7, 0), y = prop(t, "min", 7), b = prop(t, "max", 7), x = prop(t, "actionInput", 7, !1), S = prop(t, "useTextArea", 7, !1), C = prop(t, "autoComplete", 7, "on"), w = prop(t, "inputMode", 7), T = prop(t, "name", 7, ""), E = prop(t, "id", 7), D = prop(t, "testId", 7, ""), O = prop(t, "textTransformers", 23, () => []), k = prop(t, "textViewPresentation", 23, () => []), A = prop(t, "onFocus", 7, () => {}), j = prop(t, "onFocusout", 7, () => {}), M = prop(t, "onBlur", 7, () => {}), N = prop(t, "onInput", 7, () => {}), P = prop(t, "onPaste", 7, () => {}), F = prop(t, "onStateChange", 7, () => {}), I = prop(t, "onClick", 7, () => {}), L = prop(t, "onKeyDown", 7, () => {}), R = prop(t, "classes", 7), z = prop(t, "role", 7), B = prop(t, "ariaLabel", 7), V = prop(t, "ariaExpanded", 7), H = prop(t, "ariaAutocomplete", 7), U = prop(t, "ariaControls", 7), W = prop(t, "ariaActivedescendant", 7), G = prop(t, "leftIcon", 7), K = prop(t, "rightIcon", 7), q = prop(t, "onLeftIconClick", 7), J = prop(t, "onRightIconClick", 7), Y = prop(t, "leftIconLabel", 7, "Leading action"), X = prop(t, "rightIconLabel", 7, "Trailing action"), Z = prop(t, "mandatory", 7, !1), Q = prop(t, "forceError", 7, !1), ee = prop(t, "rows", 7), $ = prop(t, "autoResize", 7, !1), te = prop(t, "minRows", 7), ne = prop(t, "maxRows", 7), re = prop(t, "resize", 7, "none"), ie = prop(t, "showCount", 7, !1), ae = /* @__PURE__ */ user_derived(() => E() || (T() === "" ? n : `${T()}-${n}`)), oe = /* @__PURE__ */ user_derived(() => typeof s() == "string" && s() !== "" && !x());
|
|
6756
6763
|
function se() {
|
|
6757
6764
|
try {
|
|
6758
6765
|
get(ue)?.focus(), get(ue)?.scrollIntoView({
|
|
@@ -6780,16 +6787,16 @@ function Input(e, t) {
|
|
|
6780
6787
|
user_effect(() => {
|
|
6781
6788
|
F()(get(de));
|
|
6782
6789
|
});
|
|
6783
|
-
let fe = /* @__PURE__ */ user_derived(() => get(de) === "Invalid"), pe = /* @__PURE__ */ user_derived(() => get(fe) || Q()), me = /* @__PURE__ */ user_derived(() => `${get(ae)}-error`), he = /* @__PURE__ */ user_derived(() => c() != null && c() !== "" && get(pe) && !x()), ge = /* @__PURE__ */ user_derived(() => `${get(ae)}-info`), _e = /* @__PURE__ */ user_derived(() => l() !== "" && !x()), ve = /* @__PURE__ */ user_derived(() => [get(he) ? get(me) : null, get(_e) ? get(ge) : null].filter(Boolean).join(" ")), ye = /* @__PURE__ */ user_derived(() => typeof G() == "function"), be = /* @__PURE__ */ user_derived(() => typeof K() == "function"), xe = /* @__PURE__ */ user_derived(() => i()?.length ?? 0), Se = /* @__PURE__ */ user_derived(() => _() ?? 1e3), Ce = /* @__PURE__ */ user_derived(() =>
|
|
6790
|
+
let fe = /* @__PURE__ */ user_derived(() => get(de) === "Invalid"), pe = /* @__PURE__ */ user_derived(() => get(fe) || Q()), me = /* @__PURE__ */ user_derived(() => `${get(ae)}-error`), he = /* @__PURE__ */ user_derived(() => c() != null && c() !== "" && get(pe) && !x()), ge = /* @__PURE__ */ user_derived(() => `${get(ae)}-info`), _e = /* @__PURE__ */ user_derived(() => l() !== "" && !x()), ve = /* @__PURE__ */ user_derived(() => [get(he) ? get(me) : null, get(_e) ? get(ge) : null].filter(Boolean).join(" ")), ye = /* @__PURE__ */ user_derived(() => typeof G() == "function"), be = /* @__PURE__ */ user_derived(() => typeof K() == "function"), xe = /* @__PURE__ */ user_derived(() => i()?.length ?? 0), Se = /* @__PURE__ */ user_derived(() => _() ?? 1e3), Ce = /* @__PURE__ */ user_derived(() => $() ? "none" : re());
|
|
6784
6791
|
function we() {
|
|
6785
6792
|
let e = get(ue);
|
|
6786
|
-
if (!e || !S() ||
|
|
6793
|
+
if (!e || !S() || !$()) return;
|
|
6787
6794
|
e.style.height = "auto";
|
|
6788
|
-
let t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 20, i = parseFloat(t.paddingTop) + parseFloat(t.paddingBottom), a = parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth), o = (te() ??
|
|
6795
|
+
let t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 20, i = parseFloat(t.paddingTop) + parseFloat(t.paddingBottom), a = parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth), o = (te() ?? ee() ?? 2) * n + i + a, s = ne() == null ? Infinity : ne() * n + i + a, c = parseFloat(t.maxHeight), l = Math.min(s, Number.isFinite(c) ? c : Infinity), u = Math.min(Math.max(e.scrollHeight, o), l);
|
|
6789
6796
|
e.style.height = `${u}px`, e.style.overflowY = e.scrollHeight > l ? "auto" : "hidden";
|
|
6790
6797
|
}
|
|
6791
6798
|
user_effect(() => {
|
|
6792
|
-
i(), S() &&
|
|
6799
|
+
i(), S() && $() && we();
|
|
6793
6800
|
});
|
|
6794
6801
|
function Te(e) {
|
|
6795
6802
|
if (get(ue) === null) return;
|
|
@@ -7131,16 +7138,16 @@ function Input(e, t) {
|
|
|
7131
7138
|
Q(e), flushSync();
|
|
7132
7139
|
},
|
|
7133
7140
|
get rows() {
|
|
7134
|
-
return
|
|
7141
|
+
return ee();
|
|
7135
7142
|
},
|
|
7136
7143
|
set rows(e) {
|
|
7137
|
-
|
|
7144
|
+
ee(e), flushSync();
|
|
7138
7145
|
},
|
|
7139
7146
|
get autoResize() {
|
|
7140
|
-
return
|
|
7147
|
+
return $();
|
|
7141
7148
|
},
|
|
7142
7149
|
set autoResize(e = !1) {
|
|
7143
|
-
|
|
7150
|
+
$(e), flushSync();
|
|
7144
7151
|
},
|
|
7145
7152
|
get minRows() {
|
|
7146
7153
|
return te();
|
|
@@ -7175,7 +7182,7 @@ function Input(e, t) {
|
|
|
7175
7182
|
remove_textarea_child(t);
|
|
7176
7183
|
let n, s;
|
|
7177
7184
|
bind_this(t, (e) => set(ue, e), () => get(ue)), template_effect(() => {
|
|
7178
|
-
set_attribute(t, "id", get(ae)), set_value(t, i()), set_attribute(t, "placeholder", a()), set_attribute(t, "aria-label", get(oe) ? null : B() ?? null), set_attribute(t, "autocomplete", C()), set_attribute(t, "inputmode", w()), set_attribute(t, "name", T()), set_attribute(t, "role", z()), set_attribute(t, "aria-expanded", V()), set_attribute(t, "aria-autocomplete", H()), set_attribute(t, "aria-controls", U()), set_attribute(t, "aria-activedescendant", W()), set_attribute(t, "aria-required", Z() || null), set_attribute(t, "aria-invalid", get(pe) ? "true" : null), set_attribute(t, "aria-describedby", get(ve) || null), t.required = Z() || null, set_attribute(t, "data-pw", D()), set_attribute(t, "testid", D()), n = set_style(t, `--focus-border: ${+!!g()}px;`, n, { resize: get(Ce) }), set_attribute(t, "rows",
|
|
7185
|
+
set_attribute(t, "id", get(ae)), set_value(t, i()), set_attribute(t, "placeholder", a()), set_attribute(t, "aria-label", get(oe) ? null : B() ?? null), set_attribute(t, "autocomplete", C()), set_attribute(t, "inputmode", w()), set_attribute(t, "name", T()), set_attribute(t, "role", z()), set_attribute(t, "aria-expanded", V()), set_attribute(t, "aria-autocomplete", H()), set_attribute(t, "aria-controls", U()), set_attribute(t, "aria-activedescendant", W()), set_attribute(t, "aria-required", Z() || null), set_attribute(t, "aria-invalid", get(pe) ? "true" : null), set_attribute(t, "aria-describedby", get(ve) || null), t.required = Z() || null, set_attribute(t, "data-pw", D()), set_attribute(t, "testid", D()), n = set_style(t, `--focus-border: ${+!!g()}px;`, n, { resize: get(Ce) }), set_attribute(t, "rows", ee() ?? null), t.disabled = d(), t.readOnly = f() || null, set_attribute(t, "spellcheck", p()), set_attribute(t, "maxlength", o() === "tel" ? null : _()), set_attribute(t, "minlength", v()), s = set_class(t, 1, "svelte-1h0c2oe", null, s, { "action-input": x() });
|
|
7179
7186
|
}), event("focus", t, function(...e) {
|
|
7180
7187
|
A()?.apply(this, e);
|
|
7181
7188
|
}), delegated("focusout", t, Oe), delegated("input", t, Te), event("paste", t, Ee), delegated("click", t, function(...e) {
|
|
@@ -7893,17 +7900,17 @@ var close_default = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=
|
|
|
7893
7900
|
};
|
|
7894
7901
|
function Pill(e, t) {
|
|
7895
7902
|
push(t, !0), append_styles$1(e, $$css$59);
|
|
7896
|
-
let n = prop(t, "text", 7), i = prop(t, "dismissible", 7, !1), a = prop(t, "disabled", 7, !1), o = prop(t, "testId", 7), s = prop(t, "
|
|
7897
|
-
function p(e) {
|
|
7898
|
-
a() || l()?.(e);
|
|
7899
|
-
}
|
|
7903
|
+
let n = prop(t, "text", 7), i = prop(t, "dismissible", 7, !1), a = prop(t, "disabled", 7, !1), o = prop(t, "testId", 7), s = prop(t, "title", 7), c = prop(t, "dismissIcon", 7), l = prop(t, "leadingIcon", 7), u = prop(t, "onclick", 7), d = prop(t, "ondismiss", 7), f = prop(t, "classes", 7), p = /* @__PURE__ */ user_derived(() => typeof u() == "function");
|
|
7900
7904
|
function m(e) {
|
|
7901
|
-
(
|
|
7905
|
+
a() || u()?.(e);
|
|
7902
7906
|
}
|
|
7903
7907
|
function h(e) {
|
|
7904
|
-
e.
|
|
7908
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget instanceof HTMLElement && e.currentTarget.click());
|
|
7905
7909
|
}
|
|
7906
|
-
|
|
7910
|
+
function g(e) {
|
|
7911
|
+
e.stopPropagation(), !a() && d()?.();
|
|
7912
|
+
}
|
|
7913
|
+
var _ = {
|
|
7907
7914
|
get text() {
|
|
7908
7915
|
return n();
|
|
7909
7916
|
},
|
|
@@ -7928,86 +7935,93 @@ function Pill(e, t) {
|
|
|
7928
7935
|
set testId(e) {
|
|
7929
7936
|
o(e), flushSync();
|
|
7930
7937
|
},
|
|
7931
|
-
get
|
|
7938
|
+
get title() {
|
|
7932
7939
|
return s();
|
|
7933
7940
|
},
|
|
7934
|
-
set
|
|
7941
|
+
set title(e) {
|
|
7935
7942
|
s(e), flushSync();
|
|
7936
7943
|
},
|
|
7937
|
-
get
|
|
7944
|
+
get dismissIcon() {
|
|
7938
7945
|
return c();
|
|
7939
7946
|
},
|
|
7940
|
-
set
|
|
7947
|
+
set dismissIcon(e) {
|
|
7941
7948
|
c(e), flushSync();
|
|
7942
7949
|
},
|
|
7943
|
-
get
|
|
7950
|
+
get leadingIcon() {
|
|
7944
7951
|
return l();
|
|
7945
7952
|
},
|
|
7946
|
-
set
|
|
7953
|
+
set leadingIcon(e) {
|
|
7947
7954
|
l(e), flushSync();
|
|
7948
7955
|
},
|
|
7949
|
-
get
|
|
7956
|
+
get onclick() {
|
|
7950
7957
|
return u();
|
|
7951
7958
|
},
|
|
7952
|
-
set
|
|
7959
|
+
set onclick(e) {
|
|
7953
7960
|
u(e), flushSync();
|
|
7954
7961
|
},
|
|
7955
|
-
get
|
|
7962
|
+
get ondismiss() {
|
|
7956
7963
|
return d();
|
|
7957
7964
|
},
|
|
7958
|
-
set
|
|
7965
|
+
set ondismiss(e) {
|
|
7959
7966
|
d(e), flushSync();
|
|
7967
|
+
},
|
|
7968
|
+
get classes() {
|
|
7969
|
+
return f();
|
|
7970
|
+
},
|
|
7971
|
+
set classes(e) {
|
|
7972
|
+
f(e), flushSync();
|
|
7960
7973
|
}
|
|
7961
|
-
},
|
|
7962
|
-
let
|
|
7963
|
-
var
|
|
7974
|
+
}, v = root_2$38();
|
|
7975
|
+
let y;
|
|
7976
|
+
var b = child(v), x = (e) => {
|
|
7964
7977
|
var t = root$61();
|
|
7965
|
-
snippet(child(t),
|
|
7978
|
+
snippet(child(t), l), reset(t), append(e, t);
|
|
7966
7979
|
};
|
|
7967
|
-
if_block(
|
|
7968
|
-
typeof
|
|
7980
|
+
if_block(b, (e) => {
|
|
7981
|
+
typeof l() == "function" && e(x);
|
|
7969
7982
|
});
|
|
7970
|
-
var
|
|
7971
|
-
reset(
|
|
7972
|
-
var
|
|
7983
|
+
var S = sibling(b, 2), C = child(S, !0);
|
|
7984
|
+
reset(S);
|
|
7985
|
+
var w = sibling(S, 2), T = (e) => {
|
|
7973
7986
|
var t = root_1$50();
|
|
7974
7987
|
Button(child(t), spread_props({
|
|
7975
7988
|
get disabled() {
|
|
7976
7989
|
return a();
|
|
7977
7990
|
},
|
|
7978
|
-
onclick:
|
|
7991
|
+
onclick: g,
|
|
7979
7992
|
ariaLabel: "Dismiss"
|
|
7980
7993
|
}, () => typeof o() == "string" ? { testId: `${o()}-dismiss` } : {}, {
|
|
7981
7994
|
children: (e, t) => {
|
|
7982
7995
|
var n = comment(), i = first_child(n), a = (e) => {
|
|
7983
7996
|
var t = comment();
|
|
7984
|
-
snippet(first_child(t),
|
|
7997
|
+
snippet(first_child(t), c), append(e, t);
|
|
7985
7998
|
}, o = (e) => {
|
|
7986
7999
|
var t = comment();
|
|
7987
8000
|
html(first_child(t), () => close_default), append(e, t);
|
|
7988
8001
|
};
|
|
7989
8002
|
if_block(i, (e) => {
|
|
7990
|
-
typeof
|
|
8003
|
+
typeof c() == "function" ? e(a) : e(o, -1);
|
|
7991
8004
|
}), append(e, n);
|
|
7992
8005
|
},
|
|
7993
8006
|
$$slots: { default: !0 }
|
|
7994
8007
|
})), reset(t), append(e, t);
|
|
7995
8008
|
};
|
|
7996
|
-
return if_block(
|
|
7997
|
-
i() && e(
|
|
7998
|
-
}), reset(
|
|
7999
|
-
|
|
8000
|
-
}), delegated("click",
|
|
8001
|
-
(get(
|
|
8002
|
-
}), delegated("keydown",
|
|
8003
|
-
(get(
|
|
8004
|
-
}), append(e,
|
|
8009
|
+
return if_block(w, (e) => {
|
|
8010
|
+
i() && e(T);
|
|
8011
|
+
}), reset(v), template_effect(() => {
|
|
8012
|
+
y = set_class(v, 1, `pill ${f() ?? "" ?? ""}`, "svelte-13eug5u", y, { disabled: a() }), set_attribute(v, "role", get(p) ? "button" : null), set_attribute(v, "tabindex", get(p) ? 0 : null), set_attribute(v, "aria-disabled", get(p) && a() ? !0 : null), set_attribute(v, "data-pw", typeof o() == "string" ? o() : null), set_attribute(v, "title", s() ?? null), set_attribute(v, "testid", typeof o() == "string" ? o() : null), set_text(C, n());
|
|
8013
|
+
}), delegated("click", v, function(...e) {
|
|
8014
|
+
(get(p) ? m : null)?.apply(this, e);
|
|
8015
|
+
}), delegated("keydown", v, function(...e) {
|
|
8016
|
+
(get(p) ? h : null)?.apply(this, e);
|
|
8017
|
+
}), append(e, v), pop(_);
|
|
8005
8018
|
}
|
|
8006
8019
|
delegate(["click", "keydown"]), create_custom_element(Pill, {
|
|
8007
8020
|
text: {},
|
|
8008
8021
|
dismissible: {},
|
|
8009
8022
|
disabled: {},
|
|
8010
8023
|
testId: {},
|
|
8024
|
+
title: {},
|
|
8011
8025
|
dismissIcon: {},
|
|
8012
8026
|
leadingIcon: {},
|
|
8013
8027
|
onclick: {},
|
|
@@ -8056,6 +8070,10 @@ customElements.define("sui-pill", create_custom_element(Pill_wc, {
|
|
|
8056
8070
|
attribute: "test-id",
|
|
8057
8071
|
type: "String"
|
|
8058
8072
|
},
|
|
8073
|
+
title: {
|
|
8074
|
+
reflect: !0,
|
|
8075
|
+
type: "String"
|
|
8076
|
+
},
|
|
8059
8077
|
leadingIcon: { type: "Object" },
|
|
8060
8078
|
dismissIcon: { type: "Object" },
|
|
8061
8079
|
classes: { type: "String" },
|
|
@@ -8899,14 +8917,14 @@ customElements.define("sui-slider", create_custom_element(Slider_wc, {
|
|
|
8899
8917
|
}, [], [], { mode: "open" }));
|
|
8900
8918
|
//#endregion
|
|
8901
8919
|
//#region src/lib/Status/Status.svelte
|
|
8902
|
-
var root$54 = /* @__PURE__ */ from_html("<div><div class=\"order-status svelte-19qpx1s\"><div class=\"status-image svelte-19qpx1s\"><!></div>
|
|
8920
|
+
var root$54 = /* @__PURE__ */ from_html("<div><div class=\"order-status svelte-19qpx1s\"><div class=\"status-image svelte-19qpx1s\"><!></div> <!> <div class=\"status-description svelte-19qpx1s\"><!></div> <!> <!></div></div>"), $$css$52 = {
|
|
8903
8921
|
hash: "svelte-19qpx1s",
|
|
8904
8922
|
code: ".status-text.svelte-19qpx1s {font-weight:var(--status-font-weight, 600);color:var(--status-description-font-color, #2f3841);margin-bottom:8px;}.status-description.svelte-19qpx1s {font-weight:var(--status-font-weight, 400);color:var(--status-description-font-color, #436484cc);padding:0px 42px;margin-bottom:25px;}.status-image.svelte-19qpx1s {color:var(--status-icon-color, inherit);display:flex;margin-bottom:25px;}.background.svelte-19qpx1s {min-height:var(--status-min-height, 100vh);display:flex;justify-content:center;align-items:center;}.order-status.svelte-19qpx1s {flex-direction:column;display:flex;font-family:var(--order-font, inherit);font-size:var(--order-font-size, 14px);text-align:center;}\n @supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {.order-status.svelte-19qpx1s {background-color:var(--status-panel-background, rgba(255, 255, 255, 0.6));-webkit-backdrop-filter:var(--status-panel-backdrop-filter, blur(60px));backdrop-filter:var(--status-panel-backdrop-filter, blur(60px));}\n }"
|
|
8905
8923
|
};
|
|
8906
8924
|
function Status(e, t) {
|
|
8907
8925
|
push(t, !0), append_styles$1(e, $$css$52);
|
|
8908
|
-
let n = prop(t, "statusIcon", 7, "icons/order-success-icon.svg"), i = prop(t, "statusText", 7, ""), a = prop(t, "
|
|
8909
|
-
var
|
|
8926
|
+
let n = prop(t, "statusIcon", 7, "icons/order-success-icon.svg"), i = prop(t, "statusText", 7, ""), a = prop(t, "statusTextTag", 7, "div"), o = prop(t, "statusDescription", 7, ""), s = prop(t, "buttonProperties", 7), c = prop(t, "classes", 7), l = prop(t, "onbuttonClick", 7), u = prop(t, "icon", 7), d = prop(t, "descriptionSnippet", 7), f = prop(t, "children", 7), p = prop(t, "testId", 7);
|
|
8927
|
+
var m = {
|
|
8910
8928
|
get statusIcon() {
|
|
8911
8929
|
return n();
|
|
8912
8930
|
},
|
|
@@ -8919,58 +8937,64 @@ function Status(e, t) {
|
|
|
8919
8937
|
set statusText(e = "") {
|
|
8920
8938
|
i(e), flushSync();
|
|
8921
8939
|
},
|
|
8922
|
-
get
|
|
8940
|
+
get statusTextTag() {
|
|
8923
8941
|
return a();
|
|
8924
8942
|
},
|
|
8925
|
-
set
|
|
8943
|
+
set statusTextTag(e = "div") {
|
|
8926
8944
|
a(e), flushSync();
|
|
8927
8945
|
},
|
|
8928
|
-
get
|
|
8946
|
+
get statusDescription() {
|
|
8929
8947
|
return o();
|
|
8930
8948
|
},
|
|
8931
|
-
set
|
|
8949
|
+
set statusDescription(e = "") {
|
|
8932
8950
|
o(e), flushSync();
|
|
8933
8951
|
},
|
|
8934
|
-
get
|
|
8952
|
+
get buttonProperties() {
|
|
8935
8953
|
return s();
|
|
8936
8954
|
},
|
|
8937
|
-
set
|
|
8955
|
+
set buttonProperties(e) {
|
|
8938
8956
|
s(e), flushSync();
|
|
8939
8957
|
},
|
|
8940
|
-
get
|
|
8958
|
+
get classes() {
|
|
8941
8959
|
return c();
|
|
8942
8960
|
},
|
|
8943
|
-
set
|
|
8961
|
+
set classes(e) {
|
|
8944
8962
|
c(e), flushSync();
|
|
8945
8963
|
},
|
|
8946
|
-
get
|
|
8964
|
+
get onbuttonClick() {
|
|
8947
8965
|
return l();
|
|
8948
8966
|
},
|
|
8949
|
-
set
|
|
8967
|
+
set onbuttonClick(e) {
|
|
8950
8968
|
l(e), flushSync();
|
|
8951
8969
|
},
|
|
8952
|
-
get
|
|
8970
|
+
get icon() {
|
|
8953
8971
|
return u();
|
|
8954
8972
|
},
|
|
8955
|
-
set
|
|
8973
|
+
set icon(e) {
|
|
8956
8974
|
u(e), flushSync();
|
|
8957
8975
|
},
|
|
8958
|
-
get
|
|
8976
|
+
get descriptionSnippet() {
|
|
8959
8977
|
return d();
|
|
8960
8978
|
},
|
|
8961
|
-
set
|
|
8979
|
+
set descriptionSnippet(e) {
|
|
8962
8980
|
d(e), flushSync();
|
|
8963
8981
|
},
|
|
8964
|
-
get
|
|
8982
|
+
get children() {
|
|
8965
8983
|
return f();
|
|
8966
8984
|
},
|
|
8967
|
-
set
|
|
8985
|
+
set children(e) {
|
|
8968
8986
|
f(e), flushSync();
|
|
8987
|
+
},
|
|
8988
|
+
get testId() {
|
|
8989
|
+
return p();
|
|
8990
|
+
},
|
|
8991
|
+
set testId(e) {
|
|
8992
|
+
p(e), flushSync();
|
|
8969
8993
|
}
|
|
8970
|
-
},
|
|
8994
|
+
}, h = root$54(), g = child(h), _ = child(g), v = child(_), y = (e) => {
|
|
8971
8995
|
var t = comment();
|
|
8972
|
-
snippet(first_child(t),
|
|
8973
|
-
},
|
|
8996
|
+
snippet(first_child(t), u), append(e, t);
|
|
8997
|
+
}, b = (e) => {
|
|
8974
8998
|
Img(e, {
|
|
8975
8999
|
inlineSvg: !0,
|
|
8976
9000
|
get src() {
|
|
@@ -8979,42 +9003,47 @@ function Status(e, t) {
|
|
|
8979
9003
|
alt: "status"
|
|
8980
9004
|
});
|
|
8981
9005
|
};
|
|
8982
|
-
if_block(
|
|
8983
|
-
|
|
8984
|
-
}), reset(
|
|
8985
|
-
var
|
|
8986
|
-
|
|
8987
|
-
|
|
9006
|
+
if_block(v, (e) => {
|
|
9007
|
+
u() ? e(y) : e(b, -1);
|
|
9008
|
+
}), reset(_);
|
|
9009
|
+
var x = sibling(_, 2);
|
|
9010
|
+
element(x, a, !1, (e, t) => {
|
|
9011
|
+
set_class(e, 0, "status-text svelte-19qpx1s");
|
|
9012
|
+
var n = text();
|
|
9013
|
+
template_effect(() => set_text(n, i())), append(t, n);
|
|
9014
|
+
});
|
|
9015
|
+
var S = sibling(x, 2), C = child(S), w = (e) => {
|
|
8988
9016
|
var t = comment();
|
|
8989
|
-
snippet(first_child(t),
|
|
9017
|
+
snippet(first_child(t), d), append(e, t);
|
|
8990
9018
|
}, T = (e) => {
|
|
8991
9019
|
var t = comment();
|
|
8992
|
-
html(first_child(t),
|
|
9020
|
+
html(first_child(t), o), append(e, t);
|
|
8993
9021
|
};
|
|
8994
9022
|
if_block(C, (e) => {
|
|
8995
|
-
typeof
|
|
9023
|
+
typeof d() == "function" ? e(w) : e(T, -1);
|
|
8996
9024
|
}), reset(S);
|
|
8997
9025
|
var E = sibling(S, 2), D = (e) => {
|
|
8998
|
-
Button(e, spread_props(
|
|
8999
|
-
return
|
|
9026
|
+
Button(e, spread_props(s, { get onclick() {
|
|
9027
|
+
return l();
|
|
9000
9028
|
} }));
|
|
9001
9029
|
};
|
|
9002
9030
|
if_block(E, (e) => {
|
|
9003
|
-
typeof
|
|
9031
|
+
typeof s() == "object" && e(D);
|
|
9004
9032
|
});
|
|
9005
9033
|
var O = sibling(E, 2), k = (e) => {
|
|
9006
9034
|
var t = comment();
|
|
9007
|
-
snippet(first_child(t),
|
|
9035
|
+
snippet(first_child(t), f), append(e, t);
|
|
9008
9036
|
};
|
|
9009
9037
|
return if_block(O, (e) => {
|
|
9010
|
-
typeof
|
|
9011
|
-
}), reset(
|
|
9012
|
-
set_class(
|
|
9013
|
-
}), append(e,
|
|
9038
|
+
typeof f() == "function" && e(k);
|
|
9039
|
+
}), reset(g), reset(h), template_effect(() => {
|
|
9040
|
+
set_class(h, 1, `background ${c() ?? "" ?? ""}`, "svelte-19qpx1s"), set_attribute(h, "data-pw", typeof p() == "string" ? p() : null), set_attribute(h, "testid", typeof p() == "string" ? p() : null);
|
|
9041
|
+
}), append(e, h), pop(m);
|
|
9014
9042
|
}
|
|
9015
9043
|
create_custom_element(Status, {
|
|
9016
9044
|
statusIcon: {},
|
|
9017
9045
|
statusText: {},
|
|
9046
|
+
statusTextTag: {},
|
|
9018
9047
|
statusDescription: {},
|
|
9019
9048
|
buttonProperties: {},
|
|
9020
9049
|
classes: {},
|
|
@@ -9058,22 +9087,22 @@ customElements.define("sui-status", create_custom_element(Status_wc, {
|
|
|
9058
9087
|
}, [], [], { mode: "open" }));
|
|
9059
9088
|
//#endregion
|
|
9060
9089
|
//#region src/lib/Stepper/Step.svelte
|
|
9061
|
-
var root$53 = /* @__PURE__ */ from_html("<div class=\"step-icon-container svelte-z5hug7\"><img class=\"step-icon svelte-z5hug7\" alt=\"\"/></div>"), root_1$45 = /* @__PURE__ */ from_html("<div class=\"step-index-container svelte-z5hug7\"><svg class=\"step-spinner svelte-z5hug7\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\" stroke=\"currentColor\" stroke-opacity=\"0.25\" stroke-width=\"3\"></circle><path d=\"M12 3a9 9 0 0 1 9 9\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\"></path></svg></div>"), root_2$36 = /* @__PURE__ */ from_html("<div class=\"step-index-container svelte-z5hug7\"><div class=\"step-index-text svelte-z5hug7\"> </div></div>"), root_3$34 = /* @__PURE__ */ from_html("<div class=\"step-badge svelte-z5hug7\"><!></div>"), root_4$28 = /* @__PURE__ */ from_html("<div
|
|
9090
|
+
var root$53 = /* @__PURE__ */ from_html("<div class=\"step-icon-container svelte-z5hug7\"><img class=\"step-icon svelte-z5hug7\" alt=\"\"/></div>"), root_1$45 = /* @__PURE__ */ from_html("<div class=\"step-index-container svelte-z5hug7\"><svg class=\"step-spinner svelte-z5hug7\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\" stroke=\"currentColor\" stroke-opacity=\"0.25\" stroke-width=\"3\"></circle><path d=\"M12 3a9 9 0 0 1 9 9\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\"></path></svg></div>"), root_2$36 = /* @__PURE__ */ from_html("<div class=\"step-index-container svelte-z5hug7\"><div class=\"step-index-text svelte-z5hug7\"> </div></div>"), root_3$34 = /* @__PURE__ */ from_html("<div class=\"step-badge svelte-z5hug7\"><!></div>"), root_4$28 = /* @__PURE__ */ from_html("<div><!> <div class=\"step-text svelte-z5hug7\"> </div> <!> <div class=\"separator svelte-z5hug7\"></div></div>"), $$css$51 = {
|
|
9062
9091
|
hash: "svelte-z5hug7",
|
|
9063
|
-
code: ".step.svelte-z5hug7 {display:flex;flex-direction:var(--step-flex-direction, row);align-items:center;}.step-vertical.svelte-z5hug7 {--step-flex-direction: column;align-items:flex-start;}.step-index-container.svelte-z5hug7 {display:flex;justify-content:center;align-items:center;height:var(--step-index-container-height, 30px);width:var(--step-index-container-width, 30px);border-radius:var(--step-index-container-radius, 50%);background-color:var(--step-index-container-background-color, #798fa5cc);color:var(--step-index-color, white);flex-shrink:0;}.step-icon-container.svelte-z5hug7 {display:flex;justify-content:center;align-items:center;height:var(--step-index-container-height, 30px);width:var(--step-index-container-width, 30px);border-radius:var(--step-index-container-radius, 50%);background-color:var(--step-index-container-background-color, #798fa5cc);flex-shrink:0;overflow:hidden;}.step-icon.svelte-z5hug7 {width:var(--step-icon-size, 18px);height:var(--step-icon-size, 18px);object-fit:contain;}.step-spinner.svelte-z5hug7 {width:var(--step-spinner-size, 18px);height:var(--step-spinner-size, 18px);\n animation: svelte-z5hug7-stepper-spin 0.8s linear infinite;}\n\n @keyframes svelte-z5hug7-stepper-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }.separator.svelte-z5hug7 {display:var(--stepper-separator-display, var(--separator-display, block));height:var(--stepper-separator-height, var(--separator-height, 1px));width:var(--stepper-separator-width, var(--separator-width, 50px));margin:var(--stepper-separator-margin, var(--separator-margin, 0px 12px 0px 12px));background-image:var(\n --stepper-separator-background-image,\n var(\n --separator-background-image,\n repeating-linear-gradient(\n to right,\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n ),\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n )\n 6px,\n transparent 6px,\n transparent 10px\n )\n )\n );}.step-vertical.svelte-z5hug7 .separator:where(.svelte-z5hug7) {height:var(--stepper-separator-vertical-height, 32px);width:var(--stepper-separator-vertical-width, 1px);margin:var(--stepper-separator-vertical-margin, 4px 0px 4px 14px);background-image:repeating-linear-gradient(\n to bottom,\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n ),\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n )\n 6px,\n transparent 6px,\n transparent 10px\n );}.step-text.svelte-z5hug7 {margin:var(--step-text-margin, 0px 0px 0px 12px);font-size:var(--step-text-font-size, 12px);color:var(--step-text-color, #798fa5cc);}.step-vertical.svelte-z5hug7 .step-text:where(.svelte-z5hug7) {margin:var(--step-text-vertical-margin, 4px 0px 0px 0px);}.step-index-text.svelte-z5hug7 {font-size:var(--step-index-font-size, 14px);color:var(--step-index-color, white);}.step-badge.svelte-z5hug7 {margin:var(--step-badge-margin, 0 0 0 4px);}.step-vertical.svelte-z5hug7 .step-badge:where(.svelte-z5hug7) {margin:var(--step-badge-vertical-margin, 4px 0 0 0);}"
|
|
9092
|
+
code: ".step.svelte-z5hug7 {display:flex;flex-direction:var(--step-flex-direction, row);align-items:center;\n /* Lets a step's own box grow to fill a --step-container-flex share of the\n Stepper row — a prerequisite for the separator below to have any free\n space to grow into. Default 0 keeps a step sized to its content. */flex-grow:var(--step-flex-grow, 0);}.step-vertical.svelte-z5hug7 {--step-flex-direction: column;align-items:flex-start;}\n\n /* Mirrors Stepper.svelte's per-status remapping so a bare Step themes itself. Only the\n tokens Step actually renders are set here; the separator is Stepper's to draw. Each\n chain terminates in the same literal Stepper uses, so the two agree by construction. */.status-completed.svelte-z5hug7 {--step-text-color: var(--step-text-completed-color, #24aa5a);--step-index-container-background-color: var(\n --step-index-container-completed-background-color,\n #24aa5a\n );--step-index-container-border: var(--step-index-container-completed-border, none);}.status-active.svelte-z5hug7 {--step-text-color: var(--step-text-active-color, #2f3841);--step-index-container-background-color: var(\n --step-index-container-active-background-color,\n #2f3841\n );--step-index-container-border: var(--step-index-container-active-border, none);}.status-failure.svelte-z5hug7 {--step-text-color: var(--step-text-failure-color, #e53935);--step-index-container-background-color: var(\n --step-index-container-failure-background-color,\n var(--stepper-status-failure-color, #e53935)\n );--step-index-container-border: var(--step-index-container-failure-border, none);}.status-in-progress.svelte-z5hug7 {--step-text-color: var(--step-text-in-progress-color, #f59e0b);--step-index-container-background-color: var(\n --step-index-container-in-progress-background-color,\n var(--stepper-status-in-progress-color, #f59e0b)\n );--step-index-container-border: var(--step-index-container-in-progress-border, none);}.status-muted.svelte-z5hug7 {--step-text-color: var(--step-text-muted-color, #667080);--step-index-container-background-color: var(\n --step-index-container-muted-background-color,\n #c9d2db\n );\n /* The circle is pale, so the numeral cannot inherit the white used on every other\n status — that measured 1.53:1. #2f3841 is the same literal the active status\n already uses for text, and reads at 7.79:1 here. */--step-index-color: var(--step-index-muted-color, #2f3841);--step-index-container-border: var(--step-index-container-muted-border, none);--step-index-container-height: var(--step-index-container-muted-height, 20px);--step-index-container-width: var(--step-index-container-muted-width, 20px);--step-index-font-size: var(--step-index-muted-font-size, 10px);}\n\n /* status-pending sets nothing — it is the neutral default already in .step-index-container. */.step-index-container.svelte-z5hug7 {display:flex;justify-content:center;align-items:center;height:var(--step-index-container-height, 30px);width:var(--step-index-container-width, 30px);border-radius:var(--step-index-container-radius, 50%);background-color:var(--step-index-container-background-color, #798fa5cc);\n /* No border today, so the fallback is `none` — an existing consumer that sets\n nothing renders byte-identically. Shared with .step-icon-container below so\n a status override (see Stepper.svelte) themes the circle whichever of the\n two mutually-exclusive renders is showing. */border:var(--step-index-container-border, none);color:var(--step-index-color, white);flex-shrink:0;}.step-icon-container.svelte-z5hug7 {display:flex;justify-content:center;align-items:center;height:var(--step-index-container-height, 30px);width:var(--step-index-container-width, 30px);border-radius:var(--step-index-container-radius, 50%);background-color:var(--step-index-container-background-color, #798fa5cc);border:var(--step-index-container-border, none);flex-shrink:0;overflow:hidden;}.step-icon.svelte-z5hug7 {width:var(--step-icon-size, 18px);height:var(--step-icon-size, 18px);object-fit:contain;}.step-spinner.svelte-z5hug7 {width:var(--step-spinner-size, 18px);height:var(--step-spinner-size, 18px);\n animation: svelte-z5hug7-stepper-spin 0.8s linear infinite;}\n\n @keyframes svelte-z5hug7-stepper-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }.separator.svelte-z5hug7 {display:var(--stepper-separator-display, var(--separator-display, block));height:var(--stepper-separator-height, var(--separator-height, 1px));width:var(--stepper-separator-width, var(--separator-width, 50px));\n /* 0 keeps the separator pinned to its width above; set alongside --step-flex-grow\n and --step-container-flex to let it stretch into a card's remaining width. */flex-grow:var(--stepper-separator-flex-grow, 0);margin:var(--stepper-separator-margin, var(--separator-margin, 0px 12px 0px 12px));background-image:var(\n --stepper-separator-background-image,\n var(\n --separator-background-image,\n repeating-linear-gradient(\n to right,\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n ),\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n )\n 6px,\n transparent 6px,\n transparent 10px\n )\n )\n );}.step-vertical.svelte-z5hug7 .separator:where(.svelte-z5hug7) {height:var(--stepper-separator-vertical-height, 32px);width:var(--stepper-separator-vertical-width, 1px);margin:var(--stepper-separator-vertical-margin, 4px 0px 4px 14px);background-image:repeating-linear-gradient(\n to bottom,\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n ),\n var(\n --stepper-separator-background-image-color,\n var(--separator-background-image-color, #798fa5cc)\n )\n 6px,\n transparent 6px,\n transparent 10px\n );}.step-text.svelte-z5hug7 {margin:var(--step-text-margin, 0px 0px 0px 12px);font-size:var(--step-text-font-size, 12px);\n /* No font-weight is set today, so the div inherits the browser default\n `normal` — that is the literal fallback, keeping an existing consumer\n byte-identical. */font-weight:var(--step-text-font-weight, normal);color:var(--step-text-color, #798fa5cc);}.step-vertical.svelte-z5hug7 .step-text:where(.svelte-z5hug7) {margin:var(--step-text-vertical-margin, 4px 0px 0px 0px);}.step-index-text.svelte-z5hug7 {font-size:var(--step-index-font-size, 14px);color:var(--step-index-color, white);}.step-badge.svelte-z5hug7 {margin:var(--step-badge-margin, 0 0 0 4px);}.step-vertical.svelte-z5hug7 .step-badge:where(.svelte-z5hug7) {margin:var(--step-badge-vertical-margin, 4px 0 0 0);}"
|
|
9064
9093
|
};
|
|
9065
9094
|
function Step(e, t) {
|
|
9066
9095
|
push(t, !0), append_styles$1(e, $$css$51);
|
|
9067
|
-
let n = prop(t, "stepIndex", 7), i = prop(t, "label", 7), a = prop(t, "icon", 7), o = prop(t, "status", 7), s = prop(t, "badge", 7), c = prop(t, "orientation", 7, "horizontal"), l = prop(t, "classes", 7), u = prop(t, "ariaLabel", 7), d = prop(t, "
|
|
9068
|
-
|
|
9069
|
-
},
|
|
9070
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
9071
|
-
},
|
|
9096
|
+
let n = prop(t, "stepIndex", 7), i = prop(t, "label", 7), a = prop(t, "icon", 7), o = prop(t, "status", 7), s = prop(t, "badge", 7), c = prop(t, "orientation", 7, "horizontal"), l = prop(t, "classes", 7), u = prop(t, "ariaLabel", 7), d = prop(t, "testId", 7), f = prop(t, "suppressRoleAndTabindex", 7), p = prop(t, "onclick", 7), m = prop(t, "onkeydown", 7), h = () => {
|
|
9097
|
+
p()?.({ selectedIndex: n() });
|
|
9098
|
+
}, g = (e) => {
|
|
9099
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), h()), m()?.(e);
|
|
9100
|
+
}, _ = /* @__PURE__ */ user_derived(() => c() === "vertical"), v = /* @__PURE__ */ user_derived(() => [
|
|
9072
9101
|
"step",
|
|
9073
|
-
get(
|
|
9102
|
+
get(_) ? "step-vertical" : "",
|
|
9074
9103
|
l() ?? ""
|
|
9075
9104
|
].filter((e) => e.length > 0).join(" "));
|
|
9076
|
-
var
|
|
9105
|
+
var y = {
|
|
9077
9106
|
get stepIndex() {
|
|
9078
9107
|
return n();
|
|
9079
9108
|
},
|
|
@@ -9122,41 +9151,61 @@ function Step(e, t) {
|
|
|
9122
9151
|
set ariaLabel(e) {
|
|
9123
9152
|
u(e), flushSync();
|
|
9124
9153
|
},
|
|
9125
|
-
get
|
|
9154
|
+
get testId() {
|
|
9126
9155
|
return d();
|
|
9127
9156
|
},
|
|
9128
|
-
set
|
|
9157
|
+
set testId(e) {
|
|
9129
9158
|
d(e), flushSync();
|
|
9130
9159
|
},
|
|
9131
|
-
get
|
|
9160
|
+
get suppressRoleAndTabindex() {
|
|
9132
9161
|
return f();
|
|
9133
9162
|
},
|
|
9134
|
-
set
|
|
9163
|
+
set suppressRoleAndTabindex(e) {
|
|
9135
9164
|
f(e), flushSync();
|
|
9165
|
+
},
|
|
9166
|
+
get onclick() {
|
|
9167
|
+
return p();
|
|
9168
|
+
},
|
|
9169
|
+
set onclick(e) {
|
|
9170
|
+
p(e), flushSync();
|
|
9171
|
+
},
|
|
9172
|
+
get onkeydown() {
|
|
9173
|
+
return m();
|
|
9174
|
+
},
|
|
9175
|
+
set onkeydown(e) {
|
|
9176
|
+
m(e), flushSync();
|
|
9136
9177
|
}
|
|
9137
|
-
},
|
|
9178
|
+
}, b = root_4$28();
|
|
9179
|
+
let x;
|
|
9180
|
+
var S = child(b), C = (e) => {
|
|
9138
9181
|
var t = root$53(), n = child(t);
|
|
9139
9182
|
reset(t), template_effect(() => set_attribute(n, "src", a())), append(e, t);
|
|
9140
|
-
},
|
|
9183
|
+
}, w = (e) => {
|
|
9141
9184
|
append(e, root_1$45());
|
|
9142
|
-
},
|
|
9185
|
+
}, T = (e) => {
|
|
9143
9186
|
var t = root_2$36(), i = child(t), a = child(i, !0);
|
|
9144
9187
|
reset(i), reset(t), template_effect(() => set_text(a, n())), append(e, t);
|
|
9145
9188
|
};
|
|
9146
|
-
if_block(
|
|
9147
|
-
typeof a() == "string" && a().length > 0 ? e(
|
|
9189
|
+
if_block(S, (e) => {
|
|
9190
|
+
typeof a() == "string" && a().length > 0 ? e(C) : o() === "in-progress" ? e(w, 1) : e(T, -1);
|
|
9148
9191
|
});
|
|
9149
|
-
var
|
|
9150
|
-
reset(
|
|
9151
|
-
var
|
|
9192
|
+
var E = sibling(S, 2), D = child(E, !0);
|
|
9193
|
+
reset(E);
|
|
9194
|
+
var O = sibling(E, 2), k = (e) => {
|
|
9152
9195
|
var t = root_3$34();
|
|
9153
9196
|
snippet(child(t), s), reset(t), append(e, t);
|
|
9154
9197
|
};
|
|
9155
|
-
return if_block(
|
|
9156
|
-
typeof s() == "function" && e(
|
|
9157
|
-
}), next(2), reset(
|
|
9158
|
-
set_class(
|
|
9159
|
-
|
|
9198
|
+
return if_block(O, (e) => {
|
|
9199
|
+
typeof s() == "function" && e(k);
|
|
9200
|
+
}), next(2), reset(b), template_effect(() => {
|
|
9201
|
+
x = set_class(b, 1, clsx(get(v)), "svelte-z5hug7", x, {
|
|
9202
|
+
"status-completed": o() === "completed",
|
|
9203
|
+
"status-active": o() === "active",
|
|
9204
|
+
"status-failure": o() === "failure",
|
|
9205
|
+
"status-in-progress": o() === "in-progress",
|
|
9206
|
+
"status-muted": o() === "muted"
|
|
9207
|
+
}), set_attribute(b, "data-pw", typeof d() == "string" ? d() : null), set_attribute(b, "testid", typeof d() == "string" ? d() : null), set_attribute(b, "role", f() ? null : "button"), set_attribute(b, "tabindex", f() ? null : 0), set_attribute(b, "aria-label", u() ?? null), set_attribute(b, "aria-labelledby", u() ? null : `step-label-${n()}`), set_attribute(b, "aria-current", o() === "active" ? "step" : null), set_attribute(E, "id", `step-label-${n() ?? ""}`), set_text(D, i());
|
|
9208
|
+
}), delegated("click", b, h), delegated("keydown", b, g), append(e, b), pop(y);
|
|
9160
9209
|
}
|
|
9161
9210
|
delegate(["click", "keydown"]), create_custom_element(Step, {
|
|
9162
9211
|
stepIndex: {},
|
|
@@ -9167,6 +9216,8 @@ delegate(["click", "keydown"]), create_custom_element(Step, {
|
|
|
9167
9216
|
orientation: {},
|
|
9168
9217
|
classes: {},
|
|
9169
9218
|
ariaLabel: {},
|
|
9219
|
+
testId: {},
|
|
9220
|
+
suppressRoleAndTabindex: {},
|
|
9170
9221
|
onclick: {},
|
|
9171
9222
|
onkeydown: {}
|
|
9172
9223
|
}, [], [], { mode: "open" });
|
|
@@ -9174,16 +9225,16 @@ delegate(["click", "keydown"]), create_custom_element(Step, {
|
|
|
9174
9225
|
//#region src/lib/Stepper/Stepper.svelte
|
|
9175
9226
|
var root$52 = /* @__PURE__ */ from_html("<div role=\"listitem\"><!></div>"), root_1$44 = /* @__PURE__ */ from_html("<div role=\"list\"></div>"), $$css$50 = {
|
|
9176
9227
|
hash: "svelte-k2df9q",
|
|
9177
|
-
code: ".container.svelte-k2df9q {display:flex;flex-direction:var(--container-flex-direction, row);align-items:center;}.container-vertical.svelte-k2df9q {--container-flex-direction: column;align-items:flex-start;}.step-container.svelte-k2df9q:last-child {--stepper-separator-display: none;}.step-container.svelte-k2df9q {display:flex;align-items:center;}\n\n /* status-completed */.status-completed.svelte-k2df9q {--step-text-color: var(--step-text-completed-color, #24aa5a);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-completed-color,\n #24aa5a\n );--step-index-container-background-color: var(\n --step-index-container-completed-background-color,\n #24aa5a\n );}\n\n /* status-active */.status-active.svelte-k2df9q {--step-text-color: var(--step-text-active-color, #2f3841);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-active-color,\n #2f3841\n );--step-index-container-background-color: var(\n --step-index-container-active-background-color,\n #2f3841\n );}\n\n /* status-pending: no override — falls through to #798fa5cc grey default in Step.svelte */\n\n /* status-failure */.status-failure.svelte-k2df9q {--step-text-color: var(--step-text-failure-color, #e53935);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-failure-color,\n #e53935\n );--step-index-container-background-color: var(\n --step-index-container-failure-background-color,\n var(--stepper-status-failure-color, #e53935)\n );}\n\n /* status-in-progress */.status-in-progress.svelte-k2df9q {--step-text-color: var(--step-text-in-progress-color, #f59e0b);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-in-progress-color,\n #f59e0b\n );--step-index-container-background-color: var(\n --step-index-container-in-progress-background-color,\n var(--stepper-status-in-progress-color, #f59e0b)\n );}[theme='dark'] .status-failure.svelte-k2df9q {--step-text-color: var(--step-text-failure-color, #ef5350);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-failure-color,\n #ef5350\n );--step-index-container-background-color: var(\n --step-index-container-failure-background-color,\n var(--stepper-status-failure-color, #ef5350)\n );}[theme='dark'] .status-in-progress.svelte-k2df9q {--step-text-color: var(--step-text-in-progress-color, #fbbf24);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-in-progress-color,\n #fbbf24\n );--step-index-container-background-color: var(\n --step-index-container-in-progress-background-color,\n var(--stepper-status-in-progress-color, #fbbf24)\n );}"
|
|
9228
|
+
code: ".container.svelte-k2df9q {display:flex;flex-direction:var(--container-flex-direction, row);flex-wrap:var(--container-flex-wrap, nowrap);align-items:center;}.container-vertical.svelte-k2df9q {--container-flex-direction: column;align-items:flex-start;}.step-container.svelte-k2df9q:last-child {--stepper-separator-display: none;}.step-container.svelte-k2df9q {display:flex;align-items:center;flex:var(--step-container-flex, 0 1 auto);}\n\n /* status-completed */.status-completed.svelte-k2df9q {--step-text-color: var(--step-text-completed-color, #24aa5a);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-completed-color,\n #24aa5a\n );--step-index-container-background-color: var(\n --step-index-container-completed-background-color,\n #24aa5a\n );\n /* No border existed for any status before this, so every one of these\n per-status hooks falls back to `none` — byte-identical for a consumer\n that sets nothing. */--step-index-container-border: var(--step-index-container-completed-border, none);}\n\n /* status-active */.status-active.svelte-k2df9q {--step-text-color: var(--step-text-active-color, #2f3841);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-active-color,\n #2f3841\n );--step-index-container-background-color: var(\n --step-index-container-active-background-color,\n #2f3841\n );--step-index-container-border: var(--step-index-container-active-border, none);}\n\n /* status-pending: no override — falls through to #798fa5cc grey (and no border) default in Step.svelte */\n\n /* status-failure */.status-failure.svelte-k2df9q {--step-text-color: var(--step-text-failure-color, #e53935);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-failure-color,\n #e53935\n );--step-index-container-background-color: var(\n --step-index-container-failure-background-color,\n var(--stepper-status-failure-color, #e53935)\n );--step-index-container-border: var(--step-index-container-failure-border, none);}\n\n /* status-in-progress */.status-in-progress.svelte-k2df9q {--step-text-color: var(--step-text-in-progress-color, #f59e0b);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-in-progress-color,\n #f59e0b\n );--step-index-container-background-color: var(\n --step-index-container-in-progress-background-color,\n var(--stepper-status-in-progress-color, #f59e0b)\n );--step-index-container-border: var(--step-index-container-in-progress-border, none);}\n\n /* status-muted: a smaller, subtly-tinted marker for a de-emphasized or\n supplementary step (e.g. an informational marker riding alongside a\n primary rail). New opt-in status value — none of the statuses above are\n touched, and a step only reaches these rules by setting status:'muted'\n explicitly (resolveStatus never derives it). Reuses the same\n --step-index-container-height/-width/-background-color, --step-text-color,\n --stepper-separator-background-image-color and --step-index-container-border\n hooks the other statuses already theme through, so a call site can further\n override any of them the same way. */.status-muted.svelte-k2df9q {--step-text-color: var(--step-text-muted-color, #667080);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-muted-color,\n #c9d2db\n );--step-index-container-background-color: var(\n --step-index-container-muted-background-color,\n #c9d2db\n );\n /* The circle is pale, so the numeral cannot inherit the white used on every other\n status — that measured 1.53:1. #2f3841 is the same literal the active status\n already uses for text, and reads at 7.79:1 here. */--step-index-color: var(--step-index-muted-color, #2f3841);--step-index-container-border: var(--step-index-container-muted-border, none);--step-index-container-height: var(--step-index-container-muted-height, 20px);--step-index-container-width: var(--step-index-container-muted-width, 20px);--step-index-font-size: var(--step-index-muted-font-size, 10px);}[theme='dark'] .status-failure.svelte-k2df9q {--step-text-color: var(--step-text-failure-color, #ef5350);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-failure-color,\n #ef5350\n );--step-index-container-background-color: var(\n --step-index-container-failure-background-color,\n var(--stepper-status-failure-color, #ef5350)\n );}[theme='dark'] .status-in-progress.svelte-k2df9q {--step-text-color: var(--step-text-in-progress-color, #fbbf24);--stepper-separator-background-image-color: var(\n --stepper-separator-background-image-in-progress-color,\n #fbbf24\n );--step-index-container-background-color: var(\n --step-index-container-in-progress-background-color,\n var(--stepper-status-in-progress-color, #fbbf24)\n );}"
|
|
9178
9229
|
};
|
|
9179
9230
|
function Stepper(e, t) {
|
|
9180
9231
|
push(t, !0), append_styles$1(e, $$css$50);
|
|
9181
|
-
let n = prop(t, "steps", 7), i = prop(t, "currentStepIndex", 7), a = prop(t, "orientation", 7, "horizontal"), o = prop(t, "classes", 7), s = prop(t, "testId", 7), c = prop(t, "
|
|
9232
|
+
let n = prop(t, "steps", 7), i = prop(t, "currentStepIndex", 7), a = prop(t, "orientation", 7, "horizontal"), o = prop(t, "classes", 7), s = prop(t, "testId", 7), c = prop(t, "suppressRoleAndTabindex", 7), l = prop(t, "suppressContainerTestId", 7), u = prop(t, "onstepclick", 7), d = prop(t, "onhandleStepClick", 7), f = (e, t) => t === null ? e < i() ? "completed" : e === i() ? "active" : "pending" : t, p = /* @__PURE__ */ user_derived(() => u() ?? d()), m = /* @__PURE__ */ user_derived(() => typeof s() == "string" && !l() ? s() : null), h = /* @__PURE__ */ user_derived(() => [
|
|
9182
9233
|
"container",
|
|
9183
9234
|
a() === "vertical" ? "container-vertical" : "",
|
|
9184
9235
|
o() ?? ""
|
|
9185
9236
|
].filter((e) => e.length > 0).join(" "));
|
|
9186
|
-
var
|
|
9237
|
+
var g = {
|
|
9187
9238
|
get steps() {
|
|
9188
9239
|
return n();
|
|
9189
9240
|
},
|
|
@@ -9214,25 +9265,37 @@ function Stepper(e, t) {
|
|
|
9214
9265
|
set testId(e) {
|
|
9215
9266
|
s(e), flushSync();
|
|
9216
9267
|
},
|
|
9217
|
-
get
|
|
9268
|
+
get suppressRoleAndTabindex() {
|
|
9218
9269
|
return c();
|
|
9219
9270
|
},
|
|
9220
|
-
set
|
|
9271
|
+
set suppressRoleAndTabindex(e) {
|
|
9221
9272
|
c(e), flushSync();
|
|
9222
9273
|
},
|
|
9223
|
-
get
|
|
9274
|
+
get suppressContainerTestId() {
|
|
9224
9275
|
return l();
|
|
9225
9276
|
},
|
|
9226
|
-
set
|
|
9277
|
+
set suppressContainerTestId(e) {
|
|
9227
9278
|
l(e), flushSync();
|
|
9279
|
+
},
|
|
9280
|
+
get onstepclick() {
|
|
9281
|
+
return u();
|
|
9282
|
+
},
|
|
9283
|
+
set onstepclick(e) {
|
|
9284
|
+
u(e), flushSync();
|
|
9285
|
+
},
|
|
9286
|
+
get onhandleStepClick() {
|
|
9287
|
+
return d();
|
|
9288
|
+
},
|
|
9289
|
+
set onhandleStepClick(e) {
|
|
9290
|
+
d(e), flushSync();
|
|
9228
9291
|
}
|
|
9229
|
-
},
|
|
9230
|
-
return each(
|
|
9231
|
-
let i = /* @__PURE__ */ user_derived(() =>
|
|
9232
|
-
var
|
|
9233
|
-
Step(child(
|
|
9292
|
+
}, _ = root_1$44();
|
|
9293
|
+
return each(_, 21, n, index, (e, t, n) => {
|
|
9294
|
+
let i = /* @__PURE__ */ user_derived(() => f(n, get(t).status ?? null)), o = /* @__PURE__ */ user_derived(() => get(t).testId ?? (typeof s() == "string" ? `${s()}-step-${n + 1}` : null));
|
|
9295
|
+
var l = root$52();
|
|
9296
|
+
Step(child(l), {
|
|
9234
9297
|
get onclick() {
|
|
9235
|
-
return get(
|
|
9298
|
+
return get(p);
|
|
9236
9299
|
},
|
|
9237
9300
|
get label() {
|
|
9238
9301
|
return get(t).label;
|
|
@@ -9247,13 +9310,19 @@ function Stepper(e, t) {
|
|
|
9247
9310
|
get badge() {
|
|
9248
9311
|
return get(t).badge;
|
|
9249
9312
|
},
|
|
9313
|
+
get testId() {
|
|
9314
|
+
return get(o);
|
|
9315
|
+
},
|
|
9250
9316
|
get orientation() {
|
|
9251
9317
|
return a();
|
|
9318
|
+
},
|
|
9319
|
+
get suppressRoleAndTabindex() {
|
|
9320
|
+
return c();
|
|
9252
9321
|
}
|
|
9253
|
-
}), reset(
|
|
9254
|
-
}), reset(
|
|
9255
|
-
set_class(
|
|
9256
|
-
}), append(e,
|
|
9322
|
+
}), reset(l), template_effect(() => set_class(l, 1, `step-container status-${get(i) ?? ""} ${get(i) === "active" ? "active-step" : ""} ${get(i) === "completed" ? "completed-step" : ""}`, "svelte-k2df9q")), append(e, l);
|
|
9323
|
+
}), reset(_), template_effect(() => {
|
|
9324
|
+
set_class(_, 1, clsx(get(h)), "svelte-k2df9q"), set_attribute(_, "data-pw", get(m)), set_attribute(_, "testid", get(m));
|
|
9325
|
+
}), append(e, _), pop(g);
|
|
9257
9326
|
}
|
|
9258
9327
|
create_custom_element(Stepper, {
|
|
9259
9328
|
steps: {},
|
|
@@ -9261,6 +9330,8 @@ create_custom_element(Stepper, {
|
|
|
9261
9330
|
orientation: {},
|
|
9262
9331
|
classes: {},
|
|
9263
9332
|
testId: {},
|
|
9333
|
+
suppressRoleAndTabindex: {},
|
|
9334
|
+
suppressContainerTestId: {},
|
|
9264
9335
|
onstepclick: {},
|
|
9265
9336
|
onhandleStepClick: {}
|
|
9266
9337
|
}, [], [], { mode: "open" });
|
|
@@ -10630,7 +10701,7 @@ customElements.define("sui-button", create_custom_element(Button_wc, {
|
|
|
10630
10701
|
//#region src/lib/CheckListItem/CheckListItem.svelte
|
|
10631
10702
|
var root$45 = /* @__PURE__ */ from_html("<span> </span>"), root_1$38 = /* @__PURE__ */ from_html("<div><div class=\"checkbox-wrapper svelte-1el64om\"><!></div> <!></div>"), $$css$43 = {
|
|
10632
10703
|
hash: "svelte-1el64om",
|
|
10633
|
-
code: ".container.svelte-1el64om {display:var(--check-list-item-display, flex);align-items:var(--check-list-item-align-items, center);width:var(--check-list-item-width, 100%);padding:var(--check-list-item-padding);gap:var(--check-list-item-gap, 8px);}.container.disabled.svelte-1el64om {
|
|
10704
|
+
code: ".container.svelte-1el64om {display:var(--check-list-item-display, flex);align-items:var(--check-list-item-align-items, center);width:var(--check-list-item-width, 100%);padding:var(--check-list-item-padding);gap:var(--check-list-item-gap, 8px);}.container.disabled.svelte-1el64om {cursor:not-allowed;}.checkbox-wrapper.svelte-1el64om {flex-shrink:0;}.container.disabled.svelte-1el64om .checkbox-wrapper:where(.svelte-1el64om) {--checkbox-disabled-opacity: var(--check-list-item-disabled-opacity, 0.4);}.text.svelte-1el64om {font-size:var(--check-list-item-text-size, 14px);color:var(--check-list-item-text-color);}.text.checked.svelte-1el64om {color:var(--check-list-item-checked-text-color);font-weight:var(--check-list-item-checked-font-weight);}"
|
|
10634
10705
|
};
|
|
10635
10706
|
function CheckListItem(e, t) {
|
|
10636
10707
|
push(t, !0), append_styles$1(e, $$css$43);
|
|
@@ -11196,10 +11267,14 @@ function EmptyState(e, t) {
|
|
|
11196
11267
|
}), reset(h);
|
|
11197
11268
|
var y = sibling(h, 2), b = (e) => {
|
|
11198
11269
|
var t = root_1$36();
|
|
11199
|
-
snippet(child(t), u), reset(t),
|
|
11270
|
+
snippet(child(t), u), reset(t), template_effect(() => {
|
|
11271
|
+
set_attribute(t, "data-pw", typeof c() == "string" ? `${c()}-description` : null), set_attribute(t, "testid", typeof c() == "string" ? `${c()}-description` : null);
|
|
11272
|
+
}), append(e, t);
|
|
11200
11273
|
}, x = (e) => {
|
|
11201
11274
|
var t = root_2$30(), n = child(t, !0);
|
|
11202
|
-
reset(t), template_effect(() =>
|
|
11275
|
+
reset(t), template_effect(() => {
|
|
11276
|
+
set_attribute(t, "data-pw", typeof c() == "string" ? `${c()}-description` : null), set_attribute(t, "testid", typeof c() == "string" ? `${c()}-description` : null), set_text(n, i());
|
|
11277
|
+
}), append(e, t);
|
|
11203
11278
|
};
|
|
11204
11279
|
if_block(y, (e) => {
|
|
11205
11280
|
typeof u() == "function" ? e(b) : typeof i() == "string" && i().length > 0 && e(x, 1);
|
|
@@ -11211,7 +11286,7 @@ function EmptyState(e, t) {
|
|
|
11211
11286
|
return if_block(S, (e) => {
|
|
11212
11287
|
typeof o() == "function" && e(C);
|
|
11213
11288
|
}), reset(f), template_effect(() => {
|
|
11214
|
-
set_class(f, 1, `empty-state ${s() ?? "" ?? ""}`, "svelte-vmfces"), set_attribute(f, "data-pw", typeof c() == "string" ? c() : null), set_attribute(f, "testid", typeof c() == "string" ? c() : null);
|
|
11289
|
+
set_class(f, 1, `empty-state ${s() ?? "" ?? ""}`, "svelte-vmfces"), set_attribute(f, "data-pw", typeof c() == "string" ? c() : null), set_attribute(f, "testid", typeof c() == "string" ? c() : null), set_attribute(h, "data-pw", typeof c() == "string" ? `${c()}-title` : null), set_attribute(h, "testid", typeof c() == "string" ? `${c()}-title` : null);
|
|
11215
11290
|
}), append(e, f), pop(d);
|
|
11216
11291
|
}
|
|
11217
11292
|
create_custom_element(EmptyState, {
|
|
@@ -11268,7 +11343,11 @@ customElements.define("sui-empty-state", create_custom_element(EmptyState_wc, {
|
|
|
11268
11343
|
reflect: !0,
|
|
11269
11344
|
type: "String"
|
|
11270
11345
|
},
|
|
11271
|
-
classes: { type: "String" }
|
|
11346
|
+
classes: { type: "String" },
|
|
11347
|
+
testId: {
|
|
11348
|
+
attribute: "test-id",
|
|
11349
|
+
type: "String"
|
|
11350
|
+
}
|
|
11272
11351
|
}, [
|
|
11273
11352
|
"icon",
|
|
11274
11353
|
"title-snippet",
|
|
@@ -11974,29 +12053,29 @@ customElements.define("sui-input-button", create_custom_element(InputButton_wc,
|
|
|
11974
12053
|
}, ["left-icon", "right-icon"], [], { mode: "open" }));
|
|
11975
12054
|
//#endregion
|
|
11976
12055
|
//#region src/lib/ListItem/ListItem.svelte
|
|
11977
|
-
var root$37 = /* @__PURE__ */ from_html("<div class=\"item-loader svelte-d2pqbq\"></div>"), root_1$33 = /* @__PURE__ */ from_html("<div
|
|
12056
|
+
var root$37 = /* @__PURE__ */ from_html("<div class=\"item-loader svelte-d2pqbq\"></div>"), root_1$33 = /* @__PURE__ */ from_html("<div><!></div>"), root_2$27 = /* @__PURE__ */ from_html("<div></div>"), root_3$25 = /* @__PURE__ */ from_html("<div><div class=\"right-img-wrapper svelte-d2pqbq\"><!></div></div>"), root_4$21 = /* @__PURE__ */ from_html("<div class=\"right-content-loader svelte-d2pqbq\"><!></div>"), root_5$17 = /* @__PURE__ */ from_html("<span class=\"right-content-text svelte-d2pqbq\"> </span>"), root_6$16 = /* @__PURE__ */ from_html("<div><!> <div><div><div class=\"left-content svelte-d2pqbq\"><!> <!></div> <div class=\"center-content svelte-d2pqbq\"><!> <!></div> <div class=\"right-content svelte-d2pqbq\"><!> <!> <!> <!></div></div> <div class=\"bottom-section svelte-d2pqbq\"><!></div></div></div>"), $$css$36 = {
|
|
11978
12057
|
hash: "svelte-d2pqbq",
|
|
11979
12058
|
code: ".item-container.svelte-d2pqbq {position:relative;--loader-foreground: var(--list-item-loader-foreground, #86898d);--loader-background: var(--list-item-loader-background, #ffffff);--loader-foreground-end: var(--list-item-loader-foreground-end, #ffffff);}.item-loader.svelte-d2pqbq {position:absolute;height:100%;width:100%;background:var(--list-item-loader-background-color, #00000030);z-index:20;\n animation: svelte-d2pqbq-fill-loader ease-in-out var(--list-item-loader-duration, 8s);}\n\n @keyframes svelte-d2pqbq-fill-loader {\n 0% {\n width: 0;\n }\n\n 100% {\n width: 100%;\n }\n }.item.svelte-d2pqbq {display:flex;flex-direction:column;background-color:var(--list-item-background-color, transparent);-webkit-tap-highlight-color:transparent;cursor:var(--list-item-cursor, pointer);-moz-box-shadow:var(--list-item-box-shadow, none);-webkit-box-shadow:var(--list-item-box-shadow, none);box-shadow:var(--list-item-box-shadow, none);width:var(--list-item-box-width);border-radius:var(--list-item-border-radius, 0px);margin:var(--list-item-margin);padding:var(--list-item-padding);border:var(--list-item-border);transition:var(--list-item-transition);}.item.svelte-d2pqbq:hover {background-color:var(--list-item-hover-background-color, var(--list-item-background-color));border:var(--list-item-hover-border, var(--list-item-border));}.top-section.svelte-d2pqbq {display:flex;flex-direction:row;align-items:var(--list-item-top-section-align-items);gap:var(--list-item-top-section-gap);margin-bottom:0;}.left-content.svelte-d2pqbq {display:var(--list-item-left-content-display, flex);--image-height: var(--list-item-left-image-height, 24px);--image-width: var(--list-item-left-image-width, 24px);--image-padding: var(--list-item-left-image-padding, 0px);--image-border-radius: var(--list-item-left-image-border-radius, 0px);--image-margin: var(--list-item-left-image-margin, 0px);--image-filter: var(--list-item-left-image-filter, none);--image-background: var(--list-item-left-image-background);--image-border: var(--list-item-left-image-border);--image-transition: var(--list-item-transition);--image-object-fit: var(--list-item-left-image-object-fit);--image-hover-background: var(\n --list-item-left-image-hover-background,\n var(--list-item-left-image-background)\n );--image-hover-border: var(\n --list-item-left-image-hover-border,\n var(--list-item-left-image-border)\n );}.center-text.svelte-d2pqbq {display:flex;flex-direction:column;justify-content:var(--list-item-center-text-justify-content, flex-start);padding:var(--list-item-center-text-padding, 0px 20px);color:var(--list-item-center-text-color, #2f3841);font-size:var(--list-item-center-text-font-size, 12px);font-weight:var(--list-item-center-text-font-weight, 300);align-items:var(--list-item-center-text-vertical-align);margin:var(--list-item-center-text-margin);border:var(--list-item-center-text-border);cursor:var(--list-item-center-text-cursor, pointer);font-family:var(--list-item-center-text-font-family);}.center-content.svelte-d2pqbq {display:flex;flex:1;min-width:0;}.right-content.svelte-d2pqbq {display:var(--list-item-right-content-display, flex);flex:var(--list-item-right-content-flex);}.right-content-loader.svelte-d2pqbq {margin:var(--list-item-right-content-loader-margin);}.bottom-section.svelte-d2pqbq {flex-direction:row;margin-top:0;}.right-img-wrapper.svelte-d2pqbq {--image-height: var(--list-item-right-image-height, 18px);--image-width: var(--list-item-right-image-width, 18px);--image-padding: var(--list-item-right-image-padding, 0px);--image-border-radius: var(--list-item-right-image-border-radius, 0px);--image-margin: var(--list-item-right-image-margin, 0px);--image-filter: var(--list-item-right-image-filter);--image-background: var(--list-item-right-image-background);--image-border: var(--list-item-right-image-border);--image-transition: var(--list-item-transition);--image-hover-background: var(\n --list-item-right-image-hover-background,\n var(--list-item-right-image-background)\n );--image-hover-border: var(\n --list-item-right-image-hover-border,\n var(--list-item-right-image-border)\n );}.right-content-text.svelte-d2pqbq {color:var(--list-item-right-content-text-color, #2f3841);font-size:var(--list-item-right-content-text-font-size, 12px);font-weight:var(--list-item-right-content-text-font-weight, 300);display:var(--list-item-right-content-display, flex);align-items:var(--list-item-right-content-text-vertical-align);padding:var(--list-item-right-content-text-padding, 0px);margin:var(--list-item-right-content-text-margin, 0px);border:var(--list-item-right-content-text-border);cursor:var(--list-item-right-content-text-cursor, pointer);font-family:var(--list-item-right-content-text-font-family);justify-content:var(--list-item-right-content-text-justify-content);}.prevent-focus.svelte-d2pqbq:focus {outline:none;}"
|
|
11980
12059
|
};
|
|
11981
12060
|
function ListItem(e, t) {
|
|
11982
12061
|
push(t, !0), append_styles$1(e, $$css$36);
|
|
11983
|
-
let n = prop(t, "leftImageUrl", 7), i = prop(t, "leftImageFallbackUrl", 7), a = prop(t, "rightImageUrl", 7), o = prop(t, "label", 7), s = prop(t, "useAccordion", 7, !1), c = prop(t, "rightContentText", 7), l = prop(t, "testId", 7), u = prop(t, "topSectionTestId", 7), d = prop(t, "rightImageTestId", 7), f = prop(t, "leftImageTestId", 7), p = prop(t, "centerTextTestId", 7), m = prop(t, "showLoader", 7, !1), h = prop(t, "showRightContentLoader", 7, !1), g = prop(t, "expand", 15, !1), _ = prop(t, "preventFocus", 7, !1), v = prop(t, "
|
|
11984
|
-
function
|
|
11985
|
-
S()?.(e);
|
|
11986
|
-
}
|
|
11987
|
-
function N(e) {
|
|
12062
|
+
let n = prop(t, "leftImageUrl", 7), i = prop(t, "leftImageFallbackUrl", 7), a = prop(t, "rightImageUrl", 7), o = prop(t, "label", 7), s = prop(t, "useAccordion", 7, !1), c = prop(t, "rightContentText", 7), l = prop(t, "testId", 7), u = prop(t, "topSectionTestId", 7), d = prop(t, "rightImageTestId", 7), f = prop(t, "leftImageTestId", 7), p = prop(t, "centerTextTestId", 7), m = prop(t, "showLoader", 7, !1), h = prop(t, "showRightContentLoader", 7, !1), g = prop(t, "expand", 15, !1), _ = prop(t, "preventFocus", 7, !1), v = prop(t, "suppressRoleAndTabindex", 7, !1), y = prop(t, "leftContent", 7), b = prop(t, "centerContent", 7), x = prop(t, "rightContent", 7), S = prop(t, "bottomContent", 7), C = prop(t, "onleftImageClick", 7), w = prop(t, "onrightImageClick", 7), T = prop(t, "oncenterTextClick", 7), E = prop(t, "onitemClick", 7), D = prop(t, "ontopSectionClick", 7), O = prop(t, "onkeydown", 7), k = prop(t, "classes", 7), A = prop(t, "transformSvg", 7), j = prop(t, "role", 7), M = prop(t, "ariaSelected", 7), N = prop(t, "id", 7);
|
|
12063
|
+
function P(e) {
|
|
11988
12064
|
C()?.(e);
|
|
11989
12065
|
}
|
|
11990
|
-
function
|
|
12066
|
+
function F(e) {
|
|
11991
12067
|
w()?.(e);
|
|
11992
12068
|
}
|
|
11993
|
-
function
|
|
12069
|
+
function I(e) {
|
|
11994
12070
|
T()?.(e);
|
|
11995
12071
|
}
|
|
11996
|
-
function
|
|
12072
|
+
function L(e) {
|
|
11997
12073
|
E()?.(e);
|
|
11998
12074
|
}
|
|
11999
|
-
|
|
12075
|
+
function R(e) {
|
|
12076
|
+
D()?.(e);
|
|
12077
|
+
}
|
|
12078
|
+
var z = {
|
|
12000
12079
|
get leftImageUrl() {
|
|
12001
12080
|
return n();
|
|
12002
12081
|
},
|
|
@@ -12087,102 +12166,114 @@ function ListItem(e, t) {
|
|
|
12087
12166
|
set preventFocus(e = !1) {
|
|
12088
12167
|
_(e), flushSync();
|
|
12089
12168
|
},
|
|
12090
|
-
get
|
|
12169
|
+
get suppressRoleAndTabindex() {
|
|
12091
12170
|
return v();
|
|
12092
12171
|
},
|
|
12093
|
-
set
|
|
12172
|
+
set suppressRoleAndTabindex(e = !1) {
|
|
12094
12173
|
v(e), flushSync();
|
|
12095
12174
|
},
|
|
12096
|
-
get
|
|
12175
|
+
get leftContent() {
|
|
12097
12176
|
return y();
|
|
12098
12177
|
},
|
|
12099
|
-
set
|
|
12178
|
+
set leftContent(e) {
|
|
12100
12179
|
y(e), flushSync();
|
|
12101
12180
|
},
|
|
12102
|
-
get
|
|
12181
|
+
get centerContent() {
|
|
12103
12182
|
return b();
|
|
12104
12183
|
},
|
|
12105
|
-
set
|
|
12184
|
+
set centerContent(e) {
|
|
12106
12185
|
b(e), flushSync();
|
|
12107
12186
|
},
|
|
12108
|
-
get
|
|
12187
|
+
get rightContent() {
|
|
12109
12188
|
return x();
|
|
12110
12189
|
},
|
|
12111
|
-
set
|
|
12190
|
+
set rightContent(e) {
|
|
12112
12191
|
x(e), flushSync();
|
|
12113
12192
|
},
|
|
12114
|
-
get
|
|
12193
|
+
get bottomContent() {
|
|
12115
12194
|
return S();
|
|
12116
12195
|
},
|
|
12117
|
-
set
|
|
12196
|
+
set bottomContent(e) {
|
|
12118
12197
|
S(e), flushSync();
|
|
12119
12198
|
},
|
|
12120
|
-
get
|
|
12199
|
+
get onleftImageClick() {
|
|
12121
12200
|
return C();
|
|
12122
12201
|
},
|
|
12123
|
-
set
|
|
12202
|
+
set onleftImageClick(e) {
|
|
12124
12203
|
C(e), flushSync();
|
|
12125
12204
|
},
|
|
12126
|
-
get
|
|
12205
|
+
get onrightImageClick() {
|
|
12127
12206
|
return w();
|
|
12128
12207
|
},
|
|
12129
|
-
set
|
|
12208
|
+
set onrightImageClick(e) {
|
|
12130
12209
|
w(e), flushSync();
|
|
12131
12210
|
},
|
|
12132
|
-
get
|
|
12211
|
+
get oncenterTextClick() {
|
|
12133
12212
|
return T();
|
|
12134
12213
|
},
|
|
12135
|
-
set
|
|
12214
|
+
set oncenterTextClick(e) {
|
|
12136
12215
|
T(e), flushSync();
|
|
12137
12216
|
},
|
|
12138
|
-
get
|
|
12217
|
+
get onitemClick() {
|
|
12139
12218
|
return E();
|
|
12140
12219
|
},
|
|
12141
|
-
set
|
|
12220
|
+
set onitemClick(e) {
|
|
12142
12221
|
E(e), flushSync();
|
|
12143
12222
|
},
|
|
12144
|
-
get
|
|
12223
|
+
get ontopSectionClick() {
|
|
12145
12224
|
return D();
|
|
12146
12225
|
},
|
|
12147
|
-
set
|
|
12226
|
+
set ontopSectionClick(e) {
|
|
12148
12227
|
D(e), flushSync();
|
|
12149
12228
|
},
|
|
12150
|
-
get
|
|
12229
|
+
get onkeydown() {
|
|
12151
12230
|
return O();
|
|
12152
12231
|
},
|
|
12153
|
-
set
|
|
12232
|
+
set onkeydown(e) {
|
|
12154
12233
|
O(e), flushSync();
|
|
12155
12234
|
},
|
|
12156
|
-
get
|
|
12235
|
+
get classes() {
|
|
12157
12236
|
return k();
|
|
12158
12237
|
},
|
|
12159
|
-
set
|
|
12238
|
+
set classes(e) {
|
|
12160
12239
|
k(e), flushSync();
|
|
12161
12240
|
},
|
|
12162
|
-
get
|
|
12241
|
+
get transformSvg() {
|
|
12163
12242
|
return A();
|
|
12164
12243
|
},
|
|
12165
|
-
set
|
|
12244
|
+
set transformSvg(e) {
|
|
12166
12245
|
A(e), flushSync();
|
|
12167
12246
|
},
|
|
12168
|
-
get
|
|
12247
|
+
get role() {
|
|
12169
12248
|
return j();
|
|
12170
12249
|
},
|
|
12171
|
-
set
|
|
12250
|
+
set role(e) {
|
|
12172
12251
|
j(e), flushSync();
|
|
12252
|
+
},
|
|
12253
|
+
get ariaSelected() {
|
|
12254
|
+
return M();
|
|
12255
|
+
},
|
|
12256
|
+
set ariaSelected(e) {
|
|
12257
|
+
M(e), flushSync();
|
|
12258
|
+
},
|
|
12259
|
+
get id() {
|
|
12260
|
+
return N();
|
|
12261
|
+
},
|
|
12262
|
+
set id(e) {
|
|
12263
|
+
N(e), flushSync();
|
|
12173
12264
|
}
|
|
12174
|
-
},
|
|
12175
|
-
var t = root_6$16(),
|
|
12265
|
+
}, B = comment(), V = first_child(B), H = (e) => {
|
|
12266
|
+
var t = root_6$16(), C = child(t), w = (e) => {
|
|
12176
12267
|
append(e, root$37());
|
|
12177
12268
|
};
|
|
12178
|
-
if_block(
|
|
12179
|
-
m() && e(
|
|
12269
|
+
if_block(C, (e) => {
|
|
12270
|
+
m() && e(w);
|
|
12180
12271
|
});
|
|
12181
|
-
var
|
|
12182
|
-
let
|
|
12183
|
-
var
|
|
12184
|
-
let
|
|
12185
|
-
var
|
|
12272
|
+
var T = sibling(C, 2);
|
|
12273
|
+
let E;
|
|
12274
|
+
var D = child(T);
|
|
12275
|
+
let z;
|
|
12276
|
+
var B = child(D), V = child(B), H = (e) => {
|
|
12186
12277
|
var t = root_1$33();
|
|
12187
12278
|
let a;
|
|
12188
12279
|
Img(child(t), {
|
|
@@ -12192,50 +12283,53 @@ function ListItem(e, t) {
|
|
|
12192
12283
|
alt: "",
|
|
12193
12284
|
get fallback() {
|
|
12194
12285
|
return i();
|
|
12286
|
+
},
|
|
12287
|
+
get transformSvg() {
|
|
12288
|
+
return A();
|
|
12195
12289
|
}
|
|
12196
12290
|
}), reset(t), template_effect(() => {
|
|
12197
|
-
set_attribute(t, "data-pw", f()), set_attribute(t, "testid", f()), a = set_class(t, 1, "svelte-d2pqbq", null, a, { "prevent-focus": _() });
|
|
12198
|
-
}), delegated("click", t,
|
|
12199
|
-
|
|
12291
|
+
set_attribute(t, "role", v() ? null : "button"), set_attribute(t, "tabindex", v() ? null : 0), set_attribute(t, "data-pw", f()), set_attribute(t, "testid", f()), a = set_class(t, 1, "svelte-d2pqbq", null, a, { "prevent-focus": _() });
|
|
12292
|
+
}), delegated("click", t, P), delegated("keydown", t, function(...e) {
|
|
12293
|
+
O()?.apply(this, e);
|
|
12200
12294
|
}), append(e, t);
|
|
12201
12295
|
};
|
|
12202
|
-
if_block(
|
|
12203
|
-
typeof n() == "string" && n().length > 0 && e(
|
|
12296
|
+
if_block(V, (e) => {
|
|
12297
|
+
typeof n() == "string" && n().length > 0 && e(H);
|
|
12204
12298
|
});
|
|
12205
|
-
var
|
|
12299
|
+
var U = sibling(V, 2), W = (e) => {
|
|
12206
12300
|
var t = comment();
|
|
12207
|
-
snippet(first_child(t), () =>
|
|
12301
|
+
snippet(first_child(t), () => y() ?? noop), append(e, t);
|
|
12208
12302
|
};
|
|
12209
|
-
if_block(
|
|
12210
|
-
typeof
|
|
12211
|
-
}), reset(
|
|
12212
|
-
var
|
|
12303
|
+
if_block(U, (e) => {
|
|
12304
|
+
typeof y() == "function" && e(W);
|
|
12305
|
+
}), reset(B);
|
|
12306
|
+
var G = sibling(B, 2), K = child(G), q = (e) => {
|
|
12213
12307
|
var t = root_2$27();
|
|
12214
12308
|
let n;
|
|
12215
12309
|
html(t, o, !0), reset(t), template_effect(() => {
|
|
12216
|
-
n = set_class(t, 1, "center-text svelte-d2pqbq", null, n, { "prevent-focus": _() }), set_attribute(t, "data-pw", p()), set_attribute(t, "testid", p());
|
|
12217
|
-
}), delegated("click", t,
|
|
12218
|
-
|
|
12310
|
+
n = set_class(t, 1, "center-text svelte-d2pqbq", null, n, { "prevent-focus": _() }), set_attribute(t, "role", v() ? null : "button"), set_attribute(t, "tabindex", v() ? null : 0), set_attribute(t, "data-pw", p()), set_attribute(t, "testid", p());
|
|
12311
|
+
}), delegated("click", t, I), delegated("keydown", t, function(...e) {
|
|
12312
|
+
O()?.apply(this, e);
|
|
12219
12313
|
}), append(e, t);
|
|
12220
12314
|
};
|
|
12221
|
-
if_block(
|
|
12222
|
-
typeof o() == "string" && o().length > 0 && e(
|
|
12315
|
+
if_block(K, (e) => {
|
|
12316
|
+
typeof o() == "string" && o().length > 0 && e(q);
|
|
12223
12317
|
});
|
|
12224
|
-
var
|
|
12318
|
+
var J = sibling(K, 2), Y = (e) => {
|
|
12225
12319
|
var t = comment();
|
|
12226
|
-
snippet(first_child(t), () =>
|
|
12320
|
+
snippet(first_child(t), () => b() ?? noop), append(e, t);
|
|
12227
12321
|
};
|
|
12228
|
-
if_block(
|
|
12229
|
-
typeof
|
|
12230
|
-
}), reset(
|
|
12231
|
-
var
|
|
12322
|
+
if_block(J, (e) => {
|
|
12323
|
+
typeof b() == "function" && e(Y);
|
|
12324
|
+
}), reset(G);
|
|
12325
|
+
var X = sibling(G, 2), Z = child(X), Q = (e) => {
|
|
12232
12326
|
var t = comment();
|
|
12233
|
-
snippet(first_child(t), () =>
|
|
12327
|
+
snippet(first_child(t), () => x() ?? noop), append(e, t);
|
|
12234
12328
|
};
|
|
12235
|
-
if_block(
|
|
12236
|
-
typeof
|
|
12329
|
+
if_block(Z, (e) => {
|
|
12330
|
+
typeof x() == "function" && e(Q);
|
|
12237
12331
|
});
|
|
12238
|
-
var
|
|
12332
|
+
var ee = sibling(Z, 2), $ = (e) => {
|
|
12239
12333
|
var t = root_3$25();
|
|
12240
12334
|
let n;
|
|
12241
12335
|
var i = child(t);
|
|
@@ -12243,55 +12337,58 @@ function ListItem(e, t) {
|
|
|
12243
12337
|
get src() {
|
|
12244
12338
|
return a();
|
|
12245
12339
|
},
|
|
12246
|
-
alt: ""
|
|
12340
|
+
alt: "",
|
|
12341
|
+
get transformSvg() {
|
|
12342
|
+
return A();
|
|
12343
|
+
}
|
|
12247
12344
|
}), reset(i), reset(t), template_effect(() => {
|
|
12248
|
-
set_attribute(t, "data-pw", d()), set_attribute(t, "testid", d()), n = set_class(t, 1, "svelte-d2pqbq", null, n, { "prevent-focus": _() });
|
|
12249
|
-
}), delegated("click", t,
|
|
12250
|
-
|
|
12345
|
+
set_attribute(t, "role", v() ? null : "button"), set_attribute(t, "tabindex", v() ? null : 0), set_attribute(t, "data-pw", d()), set_attribute(t, "testid", d()), n = set_class(t, 1, "svelte-d2pqbq", null, n, { "prevent-focus": _() });
|
|
12346
|
+
}), delegated("click", t, F), delegated("keydown", t, function(...e) {
|
|
12347
|
+
O()?.apply(this, e);
|
|
12251
12348
|
}), append(e, t);
|
|
12252
12349
|
};
|
|
12253
|
-
if_block(
|
|
12254
|
-
typeof a() == "string" && a().length > 0 && e(
|
|
12350
|
+
if_block(ee, (e) => {
|
|
12351
|
+
typeof a() == "string" && a().length > 0 && e($);
|
|
12255
12352
|
});
|
|
12256
|
-
var
|
|
12353
|
+
var te = sibling(ee, 2), ne = (e) => {
|
|
12257
12354
|
var t = root_4$21();
|
|
12258
12355
|
Loader(child(t), {}), reset(t), append(e, t);
|
|
12259
12356
|
};
|
|
12260
|
-
if_block(
|
|
12261
|
-
h() && e(
|
|
12357
|
+
if_block(te, (e) => {
|
|
12358
|
+
h() && e(ne);
|
|
12262
12359
|
});
|
|
12263
|
-
var
|
|
12360
|
+
var re = sibling(te, 2), ie = (e) => {
|
|
12264
12361
|
var t = root_5$17(), n = child(t, !0);
|
|
12265
12362
|
reset(t), template_effect(() => set_text(n, c())), append(e, t);
|
|
12266
12363
|
};
|
|
12267
|
-
if_block(
|
|
12268
|
-
typeof c() == "string" && c().length > 0 && e(
|
|
12269
|
-
}), reset(
|
|
12270
|
-
var
|
|
12364
|
+
if_block(re, (e) => {
|
|
12365
|
+
typeof c() == "string" && c().length > 0 && e(ie);
|
|
12366
|
+
}), reset(X), reset(D);
|
|
12367
|
+
var ae = sibling(D, 2), oe = child(ae), se = (e) => {
|
|
12271
12368
|
Accordion(e, {
|
|
12272
12369
|
get expand() {
|
|
12273
12370
|
return g();
|
|
12274
12371
|
},
|
|
12275
12372
|
children: (e, t) => {
|
|
12276
12373
|
var n = comment();
|
|
12277
|
-
snippet(first_child(n),
|
|
12374
|
+
snippet(first_child(n), S), append(e, n);
|
|
12278
12375
|
},
|
|
12279
12376
|
$$slots: { default: !0 }
|
|
12280
12377
|
});
|
|
12281
12378
|
};
|
|
12282
|
-
if_block(
|
|
12283
|
-
typeof
|
|
12284
|
-
}), reset(
|
|
12285
|
-
set_class(t, 1, `item-container ${
|
|
12286
|
-
}), delegated("click",
|
|
12287
|
-
|
|
12288
|
-
}), delegated("click",
|
|
12289
|
-
|
|
12379
|
+
if_block(oe, (e) => {
|
|
12380
|
+
typeof S() == "function" && s() && e(se);
|
|
12381
|
+
}), reset(ae), reset(T), reset(t), template_effect(() => {
|
|
12382
|
+
set_class(t, 1, `item-container ${k() ?? "" ?? ""}`, "svelte-d2pqbq"), E = set_class(T, 1, "item svelte-d2pqbq", null, E, { "prevent-focus": _() }), set_attribute(T, "role", v() ? null : j() ?? "button"), set_attribute(T, "tabindex", v() ? null : j() === "option" ? -1 : 0), set_attribute(T, "aria-selected", M()), set_attribute(T, "id", N()), set_attribute(T, "data-pw", l()), set_attribute(T, "testid", l()), z = set_class(D, 1, "top-section svelte-d2pqbq", null, z, { "prevent-focus": _() }), set_attribute(D, "role", v() ? null : "button"), set_attribute(D, "tabindex", v() ? null : 0), set_attribute(D, "data-pw", u()), set_attribute(D, "testid", u());
|
|
12383
|
+
}), delegated("click", T, L), delegated("keydown", T, function(...e) {
|
|
12384
|
+
O()?.apply(this, e);
|
|
12385
|
+
}), delegated("click", D, R), delegated("keydown", D, function(...e) {
|
|
12386
|
+
O()?.apply(this, e);
|
|
12290
12387
|
}), append(e, t);
|
|
12291
12388
|
};
|
|
12292
|
-
return if_block(
|
|
12293
|
-
(typeof n() == "string" && n().length > 0 || typeof a() == "string" && a().length > 0 || typeof o() == "string" && o().length > 0 || typeof
|
|
12294
|
-
}), append(e,
|
|
12389
|
+
return if_block(V, (e) => {
|
|
12390
|
+
(typeof n() == "string" && n().length > 0 || typeof a() == "string" && a().length > 0 || typeof o() == "string" && o().length > 0 || typeof y() == "function" || typeof b() == "function" || typeof x() == "function" || typeof S() == "function") && e(H);
|
|
12391
|
+
}), append(e, B), pop(z);
|
|
12295
12392
|
}
|
|
12296
12393
|
delegate(["click", "keydown"]), create_custom_element(ListItem, {
|
|
12297
12394
|
leftImageUrl: {},
|
|
@@ -12309,6 +12406,7 @@ delegate(["click", "keydown"]), create_custom_element(ListItem, {
|
|
|
12309
12406
|
showRightContentLoader: {},
|
|
12310
12407
|
expand: {},
|
|
12311
12408
|
preventFocus: {},
|
|
12409
|
+
suppressRoleAndTabindex: {},
|
|
12312
12410
|
leftContent: {},
|
|
12313
12411
|
centerContent: {},
|
|
12314
12412
|
rightContent: {},
|
|
@@ -12320,6 +12418,7 @@ delegate(["click", "keydown"]), create_custom_element(ListItem, {
|
|
|
12320
12418
|
ontopSectionClick: {},
|
|
12321
12419
|
onkeydown: {},
|
|
12322
12420
|
classes: {},
|
|
12421
|
+
transformSvg: {},
|
|
12323
12422
|
role: {},
|
|
12324
12423
|
ariaSelected: {},
|
|
12325
12424
|
id: {}
|
|
@@ -12424,6 +12523,11 @@ customElements.define("sui-list-item", create_custom_element(ListItem_wc, {
|
|
|
12424
12523
|
attribute: "prevent-focus",
|
|
12425
12524
|
type: "Boolean"
|
|
12426
12525
|
},
|
|
12526
|
+
suppressRoleAndTabindex: {
|
|
12527
|
+
attribute: "suppress-role-and-tabindex",
|
|
12528
|
+
type: "Boolean"
|
|
12529
|
+
},
|
|
12530
|
+
transformSvg: { type: "Object" },
|
|
12427
12531
|
classes: { type: "String" },
|
|
12428
12532
|
onleftImageClick: { type: "Object" },
|
|
12429
12533
|
onrightImageClick: { type: "Object" },
|
|
@@ -12454,18 +12558,18 @@ var root$36 = /* @__PURE__ */ from_html("<div class=\"menu-trigger svelte-ahcnny
|
|
|
12454
12558
|
};
|
|
12455
12559
|
function Menu(e, t) {
|
|
12456
12560
|
push(t, !0), append_styles$1(e, $$css$35);
|
|
12457
|
-
let n = prop(t, "items", 7), i = prop(t, "open", 15, !1), a = prop(t, "testId", 7), o = prop(t, "trigger", 7), s = prop(t, "interactiveTrigger", 7, !1), c = prop(t, "onselect", 7), l = prop(t, "onopen", 7), u = prop(t, "onclose", 7), d = prop(t, "classes", 7), f = prop(t, "selectedValue", 7, null),
|
|
12458
|
-
function
|
|
12459
|
-
if (get(
|
|
12460
|
-
let e = get(
|
|
12561
|
+
let n = prop(t, "items", 7), i = prop(t, "open", 15, !1), a = prop(t, "testId", 7), o = prop(t, "trigger", 7), s = prop(t, "interactiveTrigger", 7, !1), c = prop(t, "onselect", 7), l = prop(t, "onopen", 7), u = prop(t, "onclose", 7), d = prop(t, "classes", 7), f = prop(t, "transformSvg", 7), p = prop(t, "selectedValue", 7, null), m = prop(t, "role", 7, "menu"), h = prop(t, "ariaLabel", 7), g = prop(t, "triggerAriaLabel", 7), _ = prop(t, "id", 7), v = prop(t, "placement", 7, "bottom-left"), y = prop(t, "usePortal", 7, !1), b = /* @__PURE__ */ user_derived(() => m() === "listbox" ? "option" : "menuitem"), x = /* @__PURE__ */ state(null), S = /* @__PURE__ */ state(null), C = /* @__PURE__ */ state(null), w = /* @__PURE__ */ state(0), T = /* @__PURE__ */ state(0), E = /* @__PURE__ */ state(0), D = /* @__PURE__ */ state(-1), O = /* @__PURE__ */ state(""), k = /* @__PURE__ */ state(null), A = /* @__PURE__ */ state("bottom-left"), j = /* @__PURE__ */ state(!1), M = 8;
|
|
12562
|
+
function N() {
|
|
12563
|
+
if (get(x) === null || get(S) === null) return "bottom-left";
|
|
12564
|
+
let e = get(x).getBoundingClientRect(), t = get(S).getBoundingClientRect(), n = window.innerWidth, i = window.innerHeight, a = e.left + t.width > n - 8, o = e.right - t.width >= 8, s = a && o ? "right" : "left", c = e.bottom + t.height > i - 8, l = e.top - t.height >= 8;
|
|
12461
12565
|
return `${c && l ? "top" : "bottom"}-${s}`;
|
|
12462
12566
|
}
|
|
12463
|
-
let
|
|
12567
|
+
let P = 4;
|
|
12464
12568
|
user_effect(() => {
|
|
12465
|
-
if (!
|
|
12569
|
+
if (!y() || !i() || typeof window > "u") return;
|
|
12466
12570
|
let e = null, t = () => {
|
|
12467
12571
|
e === null && (e = requestAnimationFrame(() => {
|
|
12468
|
-
e = null, set(
|
|
12572
|
+
e = null, set(E, get(E) + 1);
|
|
12469
12573
|
}));
|
|
12470
12574
|
};
|
|
12471
12575
|
return window.addEventListener("scroll", t, {
|
|
@@ -12475,12 +12579,12 @@ function Menu(e, t) {
|
|
|
12475
12579
|
window.removeEventListener("scroll", t, { capture: !0 }), window.removeEventListener("resize", t), e !== null && cancelAnimationFrame(e);
|
|
12476
12580
|
};
|
|
12477
12581
|
});
|
|
12478
|
-
let
|
|
12479
|
-
if (
|
|
12480
|
-
},
|
|
12481
|
-
if (!
|
|
12482
|
-
get(
|
|
12483
|
-
let e = get(
|
|
12582
|
+
let F = (e) => {
|
|
12583
|
+
if (y()) return document.body.appendChild(e), { destroy: () => e.remove() };
|
|
12584
|
+
}, I = /* @__PURE__ */ user_derived(() => {
|
|
12585
|
+
if (!y() || !i() || get(x) === null) return "";
|
|
12586
|
+
get(E);
|
|
12587
|
+
let e = get(x).getBoundingClientRect(), t = typeof window > "u" ? {
|
|
12484
12588
|
width: Infinity,
|
|
12485
12589
|
height: Infinity
|
|
12486
12590
|
} : {
|
|
@@ -12494,109 +12598,109 @@ function Menu(e, t) {
|
|
|
12494
12598
|
bottom: e.bottom
|
|
12495
12599
|
},
|
|
12496
12600
|
dropdown: {
|
|
12497
|
-
width: get(
|
|
12498
|
-
height: get(
|
|
12601
|
+
width: get(w),
|
|
12602
|
+
height: get(T)
|
|
12499
12603
|
},
|
|
12500
|
-
placement: get(
|
|
12604
|
+
placement: get(A),
|
|
12501
12605
|
gap: 4,
|
|
12502
12606
|
viewport: t
|
|
12503
12607
|
});
|
|
12504
12608
|
return `position:fixed;left:${n}px;top:${a}px;right:auto;bottom:auto;margin:0;z-index:var(--menu-z-index,1000);`;
|
|
12505
|
-
}),
|
|
12506
|
-
function
|
|
12507
|
-
i() ?
|
|
12508
|
-
}
|
|
12509
|
-
function
|
|
12510
|
-
i(!0),
|
|
12511
|
-
let t =
|
|
12512
|
-
set(
|
|
12513
|
-
|
|
12609
|
+
}), L = /* @__PURE__ */ user_derived(() => n().filter((e) => e.separator !== !0 && e.disabled !== !0)), R = /* @__PURE__ */ user_derived(() => new SvelteMap(get(L).map((e, t) => [e, t])));
|
|
12610
|
+
function z() {
|
|
12611
|
+
i() ? V() : B();
|
|
12612
|
+
}
|
|
12613
|
+
function B(e = null) {
|
|
12614
|
+
i(!0), v() === "auto" ? (set(A, "bottom-left"), set(j, !0)) : (set(A, v()), set(j, !1));
|
|
12615
|
+
let t = p() == null ? null : n().find((e) => e.value === p() && e.disabled !== !0) ?? null, a = e ?? (t === null ? 0 : G(t));
|
|
12616
|
+
set(D, a, !0), l()?.(), tick().then(() => {
|
|
12617
|
+
v() === "auto" && (set(A, N(), !0), set(j, !1)), W(a);
|
|
12514
12618
|
});
|
|
12515
12619
|
}
|
|
12516
|
-
function B() {
|
|
12517
|
-
i(!1), set(E, -1), set(D, ""), u()?.(), V();
|
|
12518
|
-
}
|
|
12519
12620
|
function V() {
|
|
12520
|
-
|
|
12621
|
+
i(!1), set(D, -1), set(O, ""), u()?.(), H();
|
|
12622
|
+
}
|
|
12623
|
+
function H() {
|
|
12624
|
+
if (get(C) !== null) {
|
|
12521
12625
|
if (s()) {
|
|
12522
|
-
let e = get(
|
|
12626
|
+
let e = get(C).querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
|
|
12523
12627
|
if (e instanceof HTMLElement) {
|
|
12524
12628
|
e.focus({ preventScroll: !0 });
|
|
12525
12629
|
return;
|
|
12526
12630
|
}
|
|
12527
12631
|
}
|
|
12528
|
-
get(
|
|
12632
|
+
get(C).focus({ preventScroll: !0 });
|
|
12529
12633
|
}
|
|
12530
12634
|
}
|
|
12531
|
-
function H(e) {
|
|
12532
|
-
e.disabled !== !0 && (c()?.(e), B());
|
|
12533
|
-
}
|
|
12534
12635
|
function U(e) {
|
|
12535
|
-
|
|
12536
|
-
let t = get(x).querySelectorAll(`[role="${get(y)}"]:not([aria-disabled="true"])`), n = t.item(e);
|
|
12537
|
-
e >= 0 && e < t.length && n instanceof HTMLElement && n.focus();
|
|
12636
|
+
e.disabled !== !0 && (c()?.(e), V());
|
|
12538
12637
|
}
|
|
12539
12638
|
function W(e) {
|
|
12540
|
-
|
|
12639
|
+
if (get(S) === null) return;
|
|
12640
|
+
let t = get(S).querySelectorAll(`[role="${get(b)}"]:not([aria-disabled="true"])`), n = t.item(e);
|
|
12641
|
+
e >= 0 && e < t.length && n instanceof HTMLElement && n.focus();
|
|
12541
12642
|
}
|
|
12542
12643
|
function G(e) {
|
|
12543
|
-
|
|
12644
|
+
return get(R).get(e) ?? -1;
|
|
12544
12645
|
}
|
|
12545
12646
|
function K(e) {
|
|
12546
|
-
e.key === "ArrowDown" ? (e.preventDefault(),
|
|
12647
|
+
e.key === "Enter" || e.key === " " || e.key === "ArrowDown" ? (e.preventDefault(), B()) : e.key === "ArrowUp" && (e.preventDefault(), B(get(L).length - 1));
|
|
12547
12648
|
}
|
|
12548
12649
|
function q(e) {
|
|
12650
|
+
e.key === "ArrowDown" ? (e.preventDefault(), B()) : e.key === "ArrowUp" && (e.preventDefault(), B(get(L).length - 1));
|
|
12651
|
+
}
|
|
12652
|
+
function J(e) {
|
|
12549
12653
|
switch (e.key) {
|
|
12550
12654
|
case "ArrowDown": {
|
|
12551
12655
|
e.preventDefault();
|
|
12552
|
-
let t = get(
|
|
12553
|
-
set(
|
|
12656
|
+
let t = get(D) + 1;
|
|
12657
|
+
set(D, t >= get(L).length ? 0 : t, !0), W(get(D));
|
|
12554
12658
|
break;
|
|
12555
12659
|
}
|
|
12556
12660
|
case "ArrowUp": {
|
|
12557
12661
|
e.preventDefault();
|
|
12558
|
-
let t = get(
|
|
12559
|
-
set(
|
|
12662
|
+
let t = get(D) - 1;
|
|
12663
|
+
set(D, t < 0 ? get(L).length - 1 : t, !0), W(get(D));
|
|
12560
12664
|
break;
|
|
12561
12665
|
}
|
|
12562
12666
|
case "Home":
|
|
12563
|
-
e.preventDefault(), set(
|
|
12667
|
+
e.preventDefault(), set(D, 0), W(get(D));
|
|
12564
12668
|
break;
|
|
12565
12669
|
case "End":
|
|
12566
|
-
e.preventDefault(), set(
|
|
12670
|
+
e.preventDefault(), set(D, get(L).length - 1), W(get(D));
|
|
12567
12671
|
break;
|
|
12568
12672
|
case "Enter":
|
|
12569
12673
|
case " ": {
|
|
12570
12674
|
e.preventDefault();
|
|
12571
|
-
let t = get(
|
|
12572
|
-
get(
|
|
12675
|
+
let t = get(L).at(get(D));
|
|
12676
|
+
get(D) >= 0 && t !== void 0 && U(t);
|
|
12573
12677
|
break;
|
|
12574
12678
|
}
|
|
12575
12679
|
case "Escape":
|
|
12576
|
-
e.preventDefault(),
|
|
12680
|
+
e.preventDefault(), V();
|
|
12577
12681
|
break;
|
|
12578
12682
|
case "Tab":
|
|
12579
|
-
|
|
12683
|
+
V();
|
|
12580
12684
|
break;
|
|
12581
12685
|
default:
|
|
12582
|
-
e.key.length === 1 && !e.ctrlKey && !e.metaKey && (e.preventDefault(),
|
|
12686
|
+
e.key.length === 1 && !e.ctrlKey && !e.metaKey && (e.preventDefault(), Y(e.key));
|
|
12583
12687
|
break;
|
|
12584
12688
|
}
|
|
12585
12689
|
}
|
|
12586
|
-
function
|
|
12587
|
-
get(
|
|
12588
|
-
set(
|
|
12690
|
+
function Y(e) {
|
|
12691
|
+
get(k) !== null && clearTimeout(get(k)), set(O, get(O) + e.toLowerCase()), set(k, setTimeout(() => {
|
|
12692
|
+
set(O, "");
|
|
12589
12693
|
}, 500), !0);
|
|
12590
|
-
let t = get(
|
|
12591
|
-
t >= 0 && (set(
|
|
12694
|
+
let t = get(L).findIndex((e) => e.label.toLowerCase().startsWith(get(O)));
|
|
12695
|
+
t >= 0 && (set(D, t, !0), W(get(D)));
|
|
12592
12696
|
}
|
|
12593
|
-
function
|
|
12594
|
-
i() && e.target instanceof Node && get(
|
|
12697
|
+
function X(e) {
|
|
12698
|
+
i() && e.target instanceof Node && get(x) !== null && !get(x).contains(e.target) && !(get(S) !== null && get(S).contains(e.target)) && V();
|
|
12595
12699
|
}
|
|
12596
|
-
onMount(() => (document.addEventListener("click",
|
|
12597
|
-
document.removeEventListener("click",
|
|
12700
|
+
onMount(() => (document.addEventListener("click", X), () => {
|
|
12701
|
+
document.removeEventListener("click", X), get(k) !== null && clearTimeout(get(k));
|
|
12598
12702
|
}));
|
|
12599
|
-
var
|
|
12703
|
+
var Z = {
|
|
12600
12704
|
get items() {
|
|
12601
12705
|
return n();
|
|
12602
12706
|
},
|
|
@@ -12651,81 +12755,87 @@ function Menu(e, t) {
|
|
|
12651
12755
|
set classes(e) {
|
|
12652
12756
|
d(e), flushSync();
|
|
12653
12757
|
},
|
|
12654
|
-
get
|
|
12758
|
+
get transformSvg() {
|
|
12655
12759
|
return f();
|
|
12656
12760
|
},
|
|
12657
|
-
set
|
|
12761
|
+
set transformSvg(e) {
|
|
12658
12762
|
f(e), flushSync();
|
|
12659
12763
|
},
|
|
12660
|
-
get
|
|
12764
|
+
get selectedValue() {
|
|
12661
12765
|
return p();
|
|
12662
12766
|
},
|
|
12663
|
-
set
|
|
12767
|
+
set selectedValue(e = null) {
|
|
12664
12768
|
p(e), flushSync();
|
|
12665
12769
|
},
|
|
12666
|
-
get
|
|
12770
|
+
get role() {
|
|
12667
12771
|
return m();
|
|
12668
12772
|
},
|
|
12669
|
-
set
|
|
12773
|
+
set role(e = "menu") {
|
|
12670
12774
|
m(e), flushSync();
|
|
12671
12775
|
},
|
|
12672
|
-
get
|
|
12776
|
+
get ariaLabel() {
|
|
12673
12777
|
return h();
|
|
12674
12778
|
},
|
|
12675
|
-
set
|
|
12779
|
+
set ariaLabel(e) {
|
|
12676
12780
|
h(e), flushSync();
|
|
12677
12781
|
},
|
|
12678
|
-
get
|
|
12782
|
+
get triggerAriaLabel() {
|
|
12679
12783
|
return g();
|
|
12680
12784
|
},
|
|
12681
|
-
set
|
|
12785
|
+
set triggerAriaLabel(e) {
|
|
12682
12786
|
g(e), flushSync();
|
|
12683
12787
|
},
|
|
12684
|
-
get
|
|
12788
|
+
get id() {
|
|
12685
12789
|
return _();
|
|
12686
12790
|
},
|
|
12687
|
-
set
|
|
12791
|
+
set id(e) {
|
|
12688
12792
|
_(e), flushSync();
|
|
12689
12793
|
},
|
|
12690
|
-
get
|
|
12794
|
+
get placement() {
|
|
12691
12795
|
return v();
|
|
12692
12796
|
},
|
|
12693
|
-
set
|
|
12797
|
+
set placement(e = "bottom-left") {
|
|
12694
12798
|
v(e), flushSync();
|
|
12799
|
+
},
|
|
12800
|
+
get usePortal() {
|
|
12801
|
+
return y();
|
|
12802
|
+
},
|
|
12803
|
+
set usePortal(e = !1) {
|
|
12804
|
+
y(e), flushSync();
|
|
12695
12805
|
}
|
|
12696
|
-
},
|
|
12806
|
+
}, Q = root_6$15(), ee = child(Q), $ = (e) => {
|
|
12697
12807
|
var t = root$36(), n = child(t), a = (e) => {
|
|
12698
12808
|
var t = comment();
|
|
12699
12809
|
snippet(first_child(t), o, () => ({
|
|
12700
|
-
onclick:
|
|
12701
|
-
onkeydown:
|
|
12810
|
+
onclick: z,
|
|
12811
|
+
onkeydown: q,
|
|
12702
12812
|
ariaHaspopup: "menu",
|
|
12703
12813
|
ariaExpanded: i()
|
|
12704
12814
|
})), append(e, t);
|
|
12705
12815
|
};
|
|
12706
12816
|
if_block(n, (e) => {
|
|
12707
12817
|
typeof o() == "function" && e(a);
|
|
12708
|
-
}), reset(t), bind_this(t, (e) => set(
|
|
12709
|
-
},
|
|
12818
|
+
}), reset(t), bind_this(t, (e) => set(C, e), () => get(C)), append(e, t);
|
|
12819
|
+
}, te = (e) => {
|
|
12710
12820
|
var t = root_1$32(), n = child(t), a = (e) => {
|
|
12711
12821
|
var t = comment();
|
|
12712
12822
|
snippet(first_child(t), o, () => ({
|
|
12713
|
-
onclick:
|
|
12714
|
-
onkeydown:
|
|
12823
|
+
onclick: z,
|
|
12824
|
+
onkeydown: K,
|
|
12715
12825
|
ariaHaspopup: "menu",
|
|
12716
12826
|
ariaExpanded: i()
|
|
12717
12827
|
})), append(e, t);
|
|
12718
12828
|
};
|
|
12719
12829
|
if_block(n, (e) => {
|
|
12720
12830
|
typeof o() == "function" && e(a);
|
|
12721
|
-
}), reset(t), bind_this(t, (e) => set(
|
|
12722
|
-
set_attribute(t, "aria-expanded", i()), set_attribute(t, "aria-label",
|
|
12723
|
-
}), delegated("click", t,
|
|
12831
|
+
}), reset(t), bind_this(t, (e) => set(C, e), () => get(C)), template_effect(() => {
|
|
12832
|
+
set_attribute(t, "aria-expanded", i()), set_attribute(t, "aria-label", g() ?? null);
|
|
12833
|
+
}), delegated("click", t, z), delegated("keydown", t, K), append(e, t);
|
|
12724
12834
|
};
|
|
12725
|
-
if_block(
|
|
12726
|
-
s() ? e($) : e(
|
|
12835
|
+
if_block(ee, (e) => {
|
|
12836
|
+
s() ? e($) : e(te, -1);
|
|
12727
12837
|
});
|
|
12728
|
-
var
|
|
12838
|
+
var ne = sibling(ee, 2), re = (e) => {
|
|
12729
12839
|
var t = root_5$16();
|
|
12730
12840
|
let i;
|
|
12731
12841
|
each(t, 21, n, (e) => e.value, (e, t) => {
|
|
@@ -12742,7 +12852,10 @@ function Menu(e, t) {
|
|
|
12742
12852
|
return get(t).icon;
|
|
12743
12853
|
},
|
|
12744
12854
|
alt: "",
|
|
12745
|
-
fallback: ""
|
|
12855
|
+
fallback: "",
|
|
12856
|
+
get transformSvg() {
|
|
12857
|
+
return f();
|
|
12858
|
+
}
|
|
12746
12859
|
}), reset(n), append(e, n);
|
|
12747
12860
|
};
|
|
12748
12861
|
if_block(o, (e) => {
|
|
@@ -12753,24 +12866,24 @@ function Menu(e, t) {
|
|
|
12753
12866
|
i = set_class(n, 1, "menu-item svelte-ahcnny", null, i, {
|
|
12754
12867
|
"menu-item-danger": get(t).danger === !0,
|
|
12755
12868
|
"menu-item-disabled": get(t).disabled === !0,
|
|
12756
|
-
"menu-item-selected":
|
|
12757
|
-
}), set_attribute(n, "role", get(
|
|
12758
|
-
}, [() =>
|
|
12759
|
-
get(t).disabled !== !0 && set(
|
|
12869
|
+
"menu-item-selected": p() != null && get(t).value === p()
|
|
12870
|
+
}), set_attribute(n, "role", get(b)), set_attribute(n, "id", get(t).id), set_attribute(n, "tabindex", get(t).disabled === !0 || m() === "listbox" ? -1 : 0), set_attribute(n, "aria-disabled", get(t).disabled === !0 ? "true" : null), set_attribute(n, "aria-selected", e), set_attribute(n, "data-pw", typeof a() == "string" ? `${a()}-item-${get(t).value}` : null), set_attribute(n, "testid", typeof a() == "string" ? `${a()}-item-${get(t).value}` : null), set_text(l, get(t).label);
|
|
12871
|
+
}, [() => m() === "listbox" ? p() == null ? get(D) === G(get(t)) ? !0 : null : get(t).value === p() : null]), delegated("click", n, () => U(get(t))), event("focus", n, () => {
|
|
12872
|
+
get(t).disabled !== !0 && set(D, G(get(t)), !0);
|
|
12760
12873
|
}), append(e, n);
|
|
12761
12874
|
};
|
|
12762
12875
|
if_block(i, (e) => {
|
|
12763
12876
|
get(t).separator === !0 ? e(o) : e(s, -1);
|
|
12764
12877
|
}), append(e, n);
|
|
12765
|
-
}), reset(t), bind_this(t, (e) => set(
|
|
12766
|
-
i = set_class(t, 1, `menu-dropdown menu-dropdown-${(
|
|
12767
|
-
}), delegated("keydown", t,
|
|
12878
|
+
}), reset(t), bind_this(t, (e) => set(S, e), () => get(S)), effect(() => bind_element_size(t, "clientWidth", (e) => set(w, e))), effect(() => bind_element_size(t, "clientHeight", (e) => set(T, e))), action(t, (e) => F?.(e)), template_effect(() => {
|
|
12879
|
+
i = set_class(t, 1, `menu-dropdown menu-dropdown-${(v() === "auto" ? get(A) : v()) ?? ""}`, "svelte-ahcnny", i, { "menu-dropdown-measuring": get(j) }), set_attribute(t, "role", m()), set_attribute(t, "id", _()), set_attribute(t, "aria-label", h()), set_style(t, get(I));
|
|
12880
|
+
}), delegated("keydown", t, J), append(e, t);
|
|
12768
12881
|
};
|
|
12769
|
-
return if_block(
|
|
12770
|
-
i() && e(
|
|
12771
|
-
}), reset(
|
|
12772
|
-
set_class(
|
|
12773
|
-
}), append(e,
|
|
12882
|
+
return if_block(ne, (e) => {
|
|
12883
|
+
i() && e(re);
|
|
12884
|
+
}), reset(Q), bind_this(Q, (e) => set(x, e), () => get(x)), template_effect(() => {
|
|
12885
|
+
set_class(Q, 1, `menu-container ${d() ?? "" ?? ""}`, "svelte-ahcnny"), set_attribute(Q, "data-pw", typeof a() == "string" ? a() : null), set_attribute(Q, "testid", typeof a() == "string" ? a() : null);
|
|
12886
|
+
}), append(e, Q), pop(Z);
|
|
12774
12887
|
}
|
|
12775
12888
|
delegate(["click", "keydown"]), create_custom_element(Menu, {
|
|
12776
12889
|
items: {},
|
|
@@ -12782,6 +12895,7 @@ delegate(["click", "keydown"]), create_custom_element(Menu, {
|
|
|
12782
12895
|
onopen: {},
|
|
12783
12896
|
onclose: {},
|
|
12784
12897
|
classes: {},
|
|
12898
|
+
transformSvg: {},
|
|
12785
12899
|
selectedValue: {},
|
|
12786
12900
|
role: {},
|
|
12787
12901
|
ariaLabel: {},
|
|
@@ -12819,6 +12933,7 @@ customElements.define("sui-menu", create_custom_element(Menu_wc, {
|
|
|
12819
12933
|
type: "String"
|
|
12820
12934
|
},
|
|
12821
12935
|
classes: { type: "String" },
|
|
12936
|
+
transformSvg: { type: "Object" },
|
|
12822
12937
|
triggerAriaLabel: {
|
|
12823
12938
|
attribute: "trigger-aria-label",
|
|
12824
12939
|
type: "String"
|
|
@@ -13024,9 +13139,9 @@ function Modal(e, t) {
|
|
|
13024
13139
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), x()?.(new MouseEvent("click")));
|
|
13025
13140
|
};
|
|
13026
13141
|
onMount(() => {
|
|
13027
|
-
j() && (
|
|
13142
|
+
j() && lockBodyScroll(), typeof M() == "number" && (N = setTimeout(() => b()?.(), M())), c() && (history.pushState(null, "", window.location.href), window.addEventListener("popstate", I));
|
|
13028
13143
|
}), onDestroy(() => {
|
|
13029
|
-
N !== null && clearTimeout(N), typeof window < "u" && (j() && (
|
|
13144
|
+
N !== null && clearTimeout(N), typeof window < "u" && (j() && unlockBodyScroll(), c() && (get(i) || history.back(), window.removeEventListener("popstate", I)));
|
|
13030
13145
|
});
|
|
13031
13146
|
var G = {
|
|
13032
13147
|
get size() {
|
|
@@ -14005,11 +14120,11 @@ function Select(e, t) {
|
|
|
14005
14120
|
async function Q() {
|
|
14006
14121
|
c() || x() || (x(!0), v()?.(), set(A, -1), set(k, ""), o() && (await tick(), get(M) !== null && get(M).focus()));
|
|
14007
14122
|
}
|
|
14008
|
-
function
|
|
14123
|
+
function ee() {
|
|
14009
14124
|
x(!1), y()?.(), set(k, ""), set(A, -1);
|
|
14010
14125
|
}
|
|
14011
|
-
function
|
|
14012
|
-
c() || (a() ? i(i().includes(e) ? i().filter((t) => t !== e) : [...i(), e]) : (i([e]),
|
|
14126
|
+
function $(e) {
|
|
14127
|
+
c() || (a() ? i(i().includes(e) ? i().filter((t) => t !== e) : [...i(), e]) : (i([e]), ee()), _()?.(i()));
|
|
14013
14128
|
}
|
|
14014
14129
|
function te(e) {
|
|
14015
14130
|
c() || (i(i().filter((t) => t !== e)), _()?.(i()));
|
|
@@ -14020,7 +14135,7 @@ function Select(e, t) {
|
|
|
14020
14135
|
function re() {
|
|
14021
14136
|
if (get(A) < 0 || get(A) >= get(K).length) return;
|
|
14022
14137
|
let e = get(K).at(get(A));
|
|
14023
|
-
typeof e != "object" || !e || (e.kind === "select-all" ? ne() :
|
|
14138
|
+
typeof e != "object" || !e || (e.kind === "select-all" ? ne() : $(e.item.id));
|
|
14024
14139
|
}
|
|
14025
14140
|
async function ie(e) {
|
|
14026
14141
|
let t = get(A) + e;
|
|
@@ -14034,7 +14149,7 @@ function Select(e, t) {
|
|
|
14034
14149
|
x() || Q();
|
|
14035
14150
|
return;
|
|
14036
14151
|
}
|
|
14037
|
-
x() ?
|
|
14152
|
+
x() ? ee() : Q();
|
|
14038
14153
|
}
|
|
14039
14154
|
function oe(e) {
|
|
14040
14155
|
if (!c()) switch (e.key) {
|
|
@@ -14051,7 +14166,7 @@ function Select(e, t) {
|
|
|
14051
14166
|
e.preventDefault(), ie(-1);
|
|
14052
14167
|
break;
|
|
14053
14168
|
case "Escape":
|
|
14054
|
-
x() && (
|
|
14169
|
+
x() && (ee(), !o() && get(N) !== null && get(N).focus());
|
|
14055
14170
|
break;
|
|
14056
14171
|
case "Backspace":
|
|
14057
14172
|
if (a() && get(k) === "" && i().length > 0) {
|
|
@@ -14060,7 +14175,7 @@ function Select(e, t) {
|
|
|
14060
14175
|
}
|
|
14061
14176
|
break;
|
|
14062
14177
|
case "Tab":
|
|
14063
|
-
x() &&
|
|
14178
|
+
x() && ee();
|
|
14064
14179
|
break;
|
|
14065
14180
|
}
|
|
14066
14181
|
}
|
|
@@ -14071,7 +14186,7 @@ function Select(e, t) {
|
|
|
14071
14186
|
x() || Q();
|
|
14072
14187
|
}
|
|
14073
14188
|
function le(e) {
|
|
14074
|
-
e.target instanceof Node && get(j) !== null && !get(j).contains(e.target) && !(get(P) !== null && get(P).contains(e.target)) &&
|
|
14189
|
+
e.target instanceof Node && get(j) !== null && !get(j).contains(e.target) && !(get(P) !== null && get(P).contains(e.target)) && ee();
|
|
14075
14190
|
}
|
|
14076
14191
|
onMount(() => (document.addEventListener("click", le), () => {
|
|
14077
14192
|
document.removeEventListener("click", le), x() && y()?.();
|
|
@@ -14387,7 +14502,7 @@ function Select(e, t) {
|
|
|
14387
14502
|
var l = sibling(o);
|
|
14388
14503
|
reset(t), template_effect(() => set_text(l, ` ${f() ?? ""}`)), append(e, t);
|
|
14389
14504
|
}, l = (e) => {
|
|
14390
|
-
var o = root_10$8(), s = () =>
|
|
14505
|
+
var o = root_10$8(), s = () => $(get(t).item.id), c = () => set(A, get(n), !0);
|
|
14391
14506
|
attribute_effect(o, (e, i) => ({
|
|
14392
14507
|
class: "select-option",
|
|
14393
14508
|
role: "option",
|
|
@@ -14595,13 +14710,6 @@ customElements.define("sui-select", create_custom_element(Select_wc, {
|
|
|
14595
14710
|
}, ["bottom-content"], [], { mode: "open" }));
|
|
14596
14711
|
//#endregion
|
|
14597
14712
|
//#region src/lib/Sheet/Sheet.svelte
|
|
14598
|
-
var scrollLockCount = 0;
|
|
14599
|
-
function lockScroll() {
|
|
14600
|
-
scrollLockCount === 0 && (document.body.style.overflow = "hidden"), scrollLockCount += 1;
|
|
14601
|
-
}
|
|
14602
|
-
function unlockScroll() {
|
|
14603
|
-
scrollLockCount = Math.max(0, scrollLockCount - 1), scrollLockCount === 0 && (document.body.style.overflow = "");
|
|
14604
|
-
}
|
|
14605
14713
|
var root$29 = /* @__PURE__ */ from_html("<span class=\"sheet-title svelte-1dln6bq\"> </span>"), root_1$27 = /* @__PURE__ */ from_html("<div class=\"sheet-close-button svelte-1dln6bq\"><!></div>"), root_2$21 = /* @__PURE__ */ from_html("<div class=\"sheet-header svelte-1dln6bq\"><!> <!></div>"), root_3$19 = /* @__PURE__ */ from_html("<div class=\"sheet-footer svelte-1dln6bq\"><!></div>"), root_4$15 = /* @__PURE__ */ from_html("<div role=\"button\" tabindex=\"-1\"><div role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><!> <div class=\"sheet-content svelte-1dln6bq\"><!></div> <!></div></div>"), $$css$30 = {
|
|
14606
14714
|
hash: "svelte-1dln6bq",
|
|
14607
14715
|
code: ".sheet-overlay.svelte-1dln6bq {position:fixed;top:0;left:0;right:0;bottom:0;z-index:var(--sheet-overlay-z-index, 15);-webkit-tap-highlight-color:transparent;}.overlay-visible.svelte-1dln6bq {background-color:var(--sheet-overlay-background, #00000066);}.overlay-invisible.svelte-1dln6bq {background-color:transparent;}.overlay-interactive.svelte-1dln6bq {pointer-events:auto;}.overlay-noninteractive.svelte-1dln6bq {pointer-events:none;}.sheet-panel.svelte-1dln6bq {position:fixed;display:flex;flex-direction:column;background-color:var(--sheet-background, #ffffff);box-shadow:var(--sheet-box-shadow, -2px 0 8px rgba(0, 0, 0, 0.15));z-index:var(--sheet-z-index, 16);pointer-events:auto;outline:none;}\n\n /* --sheet-top/-right/-bottom/-left all default to the previous hardcoded\n edge-to-edge values below, so an unconfigured Sheet renders unchanged.\n Overriding one (e.g. --sheet-top to clear a fixed header, or --sheet-bottom:\n auto to size to content) turns the panel from an edge-to-edge slide-in into\n an anchored floating panel, without needing a different component. */.sheet-panel.left.svelte-1dln6bq,\n .sheet-panel.right.svelte-1dln6bq {top:var(--sheet-top, 0);bottom:var(--sheet-bottom, 0);width:var(--sheet-width, 400px);max-width:var(--sheet-max-width, 100vw);}.sheet-panel.left.svelte-1dln6bq {left:var(--sheet-left, 0);border-right:var(--sheet-border, none);}.sheet-panel.right.svelte-1dln6bq {right:var(--sheet-right, 0);border-left:var(--sheet-border, none);}.sheet-panel.top.svelte-1dln6bq,\n .sheet-panel.bottom.svelte-1dln6bq {left:var(--sheet-left, 0);right:var(--sheet-right, 0);height:var(--sheet-height, 300px);max-height:var(--sheet-max-height, 100vh);}.sheet-panel.top.svelte-1dln6bq {top:var(--sheet-top, 0);border-bottom:var(--sheet-border, none);}.sheet-panel.bottom.svelte-1dln6bq {bottom:var(--sheet-bottom, 0);border-top:var(--sheet-border, none);}.sheet-header.svelte-1dln6bq {display:flex;align-items:center;padding:var(--sheet-header-padding, 16px 20px);background-color:var(--sheet-header-background, inherit);border-bottom:var(--sheet-header-border-bottom, 1px solid #e0e0e0);flex-shrink:0;}.sheet-title.svelte-1dln6bq {flex:1;font-size:var(--sheet-title-font-size, 18px);font-weight:var(--sheet-title-font-weight, 600);font-family:var(--sheet-title-font-family, inherit);color:var(--sheet-title-color, #1a1a1a);line-height:var(--sheet-title-line-height, 1.4);}.sheet-close-button.svelte-1dln6bq {--button-width: var(--sheet-close-button-size, 32px);--button-height: var(--sheet-close-button-size, 32px);--button-border: none;--button-border-radius: var(--sheet-close-button-border-radius, var(--radius, 4px));--button-color: var(--sheet-close-button-background, transparent);--button-text-color: var(--sheet-close-button-color, #666666);--button-font-size: var(--sheet-close-button-font-size, 16px);--button-padding: 0;--button-hover-color: var(--sheet-close-button-hover-background, #f0f0f0);flex-shrink:0;display:flex;align-items:center;justify-content:center;}.sheet-content.svelte-1dln6bq {flex:1;overflow-y:var(--sheet-content-overflow-y, auto);padding:var(--sheet-content-padding, 20px);scrollbar-width:var(--sheet-scrollbar-width, none);}.sheet-content.svelte-1dln6bq::-webkit-scrollbar {display:none;}.sheet-footer.svelte-1dln6bq {padding:var(--sheet-footer-padding, 16px 20px);background-color:var(--sheet-footer-background, inherit);border-top:var(--sheet-footer-border-top, 1px solid #e0e0e0);flex-shrink:0;}"
|
|
@@ -14650,10 +14758,10 @@ function Sheet(e, t) {
|
|
|
14650
14758
|
}
|
|
14651
14759
|
}
|
|
14652
14760
|
function S(e) {
|
|
14653
|
-
return
|
|
14761
|
+
return lockBodyScroll(), tick().then(() => {
|
|
14654
14762
|
get(_) !== null && get(_).focus();
|
|
14655
14763
|
}), { destroy() {
|
|
14656
|
-
|
|
14764
|
+
unlockBodyScroll();
|
|
14657
14765
|
} };
|
|
14658
14766
|
}
|
|
14659
14767
|
function C() {
|
|
@@ -15171,7 +15279,7 @@ var normalizeColumns = (e, t) => ({
|
|
|
15171
15279
|
let e = asJsonObject(n);
|
|
15172
15280
|
if (e === null || typeof e.text != "string") return null;
|
|
15173
15281
|
let i = { text: e.text };
|
|
15174
|
-
typeof e.classes == "string" && (i.classes = e.classes), t.push(i);
|
|
15282
|
+
typeof e.classes == "string" && (i.classes = e.classes), typeof e.testId == "string" && (i.testId = e.testId), t.push(i);
|
|
15175
15283
|
}
|
|
15176
15284
|
return t;
|
|
15177
15285
|
}, asAvatarStackData = (e) => {
|
|
@@ -15281,24 +15389,42 @@ var normalizeColumns = (e, t) => ({
|
|
|
15281
15389
|
};
|
|
15282
15390
|
function BuiltinCell(e, t) {
|
|
15283
15391
|
push(t, !0), append_styles$1(e, $$css$27);
|
|
15284
|
-
let n = prop(t, "column", 7), i = prop(t, "value", 7), a = prop(t, "rowIndex", 7), o = prop(t, "originalIndex", 7), s = prop(t, "usePortal", 7, !1), c = /* @__PURE__ */ user_derived(() => n().align === "right" ? "builtin-align-end" : n().align === "center" ? "builtin-align-center" : ""), l =
|
|
15392
|
+
let n = prop(t, "column", 7), i = prop(t, "value", 7), a = prop(t, "rowIndex", 7), o = prop(t, "originalIndex", 7), s = prop(t, "usePortal", 7, !1), c = /* @__PURE__ */ user_derived(() => n().align === "right" ? "builtin-align-end" : n().align === "center" ? "builtin-align-center" : ""), l = {
|
|
15393
|
+
icon: "icon",
|
|
15394
|
+
thumbnail: "thumb",
|
|
15395
|
+
thumbnailPlaceholder: "thumb-placeholder",
|
|
15396
|
+
tag: "tag",
|
|
15397
|
+
trendUp: "trend-up",
|
|
15398
|
+
trendDown: "trend-down",
|
|
15399
|
+
menu: "menu",
|
|
15400
|
+
menuTrigger: "menu-trigger",
|
|
15401
|
+
popup: "popup",
|
|
15402
|
+
popupTrigger: "popup-trigger",
|
|
15403
|
+
link: "link",
|
|
15404
|
+
copy: "copy",
|
|
15405
|
+
linkCopied: "link-copied"
|
|
15406
|
+
}, u = (e, t) => {
|
|
15407
|
+
if (!n().testId) return;
|
|
15408
|
+
let i = n().testIdSuffixes?.[e] ?? l[e];
|
|
15409
|
+
return typeof t == "number" ? `${n().testId}-${i}-${t}` : `${n().testId}-${i}`;
|
|
15410
|
+
}, d = /* @__PURE__ */ state(!1), f = null;
|
|
15285
15411
|
onDestroy(() => {
|
|
15286
|
-
|
|
15412
|
+
f && clearTimeout(f);
|
|
15287
15413
|
});
|
|
15288
|
-
let
|
|
15414
|
+
let p = (e) => {
|
|
15289
15415
|
e.stopPropagation();
|
|
15290
|
-
},
|
|
15416
|
+
}, m = (e) => {
|
|
15291
15417
|
e.stopPropagation();
|
|
15292
|
-
},
|
|
15418
|
+
}, h = async (e) => {
|
|
15293
15419
|
if (!(typeof navigator > "u" || !navigator.clipboard)) try {
|
|
15294
|
-
await navigator.clipboard.writeText(e), set(
|
|
15295
|
-
set(
|
|
15420
|
+
await navigator.clipboard.writeText(e), set(d, !0), f && clearTimeout(f), f = setTimeout(() => {
|
|
15421
|
+
set(d, !1);
|
|
15296
15422
|
}, 2e3);
|
|
15297
15423
|
} catch {
|
|
15298
|
-
set(
|
|
15424
|
+
set(d, !1);
|
|
15299
15425
|
}
|
|
15300
15426
|
};
|
|
15301
|
-
var
|
|
15427
|
+
var g = {
|
|
15302
15428
|
get column() {
|
|
15303
15429
|
return n();
|
|
15304
15430
|
},
|
|
@@ -15329,7 +15455,7 @@ function BuiltinCell(e, t) {
|
|
|
15329
15455
|
set usePortal(e = !1) {
|
|
15330
15456
|
s(e), flushSync();
|
|
15331
15457
|
}
|
|
15332
|
-
},
|
|
15458
|
+
}, _ = comment(), v = first_child(_), y = (e) => {
|
|
15333
15459
|
let t = /* @__PURE__ */ user_derived(() => asTagCellData(i()));
|
|
15334
15460
|
var n = comment(), a = first_child(n), o = (e) => {
|
|
15335
15461
|
{
|
|
@@ -15356,7 +15482,7 @@ function BuiltinCell(e, t) {
|
|
|
15356
15482
|
if_block(a, (e) => {
|
|
15357
15483
|
get(t) ? e(o) : e(s, -1);
|
|
15358
15484
|
}), append(e, n);
|
|
15359
|
-
},
|
|
15485
|
+
}, b = (e) => {
|
|
15360
15486
|
let t = /* @__PURE__ */ user_derived(() => asJsonObject(i()) ?? {}), n = /* @__PURE__ */ user_derived(() => asTagCellData(get(t).tag ?? null));
|
|
15361
15487
|
var a = root$26(), o = child(a), s = child(o, !0);
|
|
15362
15488
|
reset(o);
|
|
@@ -15384,7 +15510,7 @@ function BuiltinCell(e, t) {
|
|
|
15384
15510
|
}), reset(a), template_effect((e) => {
|
|
15385
15511
|
set_class(a, 1, `builtin-text-tag ${get(c) ?? ""}`, "svelte-4boxsj"), set_text(s, e);
|
|
15386
15512
|
}, [() => typeof get(t).text == "string" ? get(t).text : cellValueToText(i())]), append(e, a);
|
|
15387
|
-
},
|
|
15513
|
+
}, x = (e) => {
|
|
15388
15514
|
let t = /* @__PURE__ */ user_derived(() => asJsonObject(i()) ?? {});
|
|
15389
15515
|
var n = root_1$24(), a = child(n), o = child(a, !0);
|
|
15390
15516
|
reset(a);
|
|
@@ -15392,14 +15518,14 @@ function BuiltinCell(e, t) {
|
|
|
15392
15518
|
reset(s), reset(n), template_effect(() => {
|
|
15393
15519
|
set_class(n, 1, `builtin-two-line ${get(c) ?? ""}`, "svelte-4boxsj"), set_text(o, typeof get(t).text1 == "string" ? get(t).text1 : "-"), set_text(l, typeof get(t).text2 == "string" ? get(t).text2 : "-");
|
|
15394
15520
|
}), append(e, n);
|
|
15395
|
-
},
|
|
15396
|
-
let t = /* @__PURE__ */ user_derived(() => asJsonObject(i()) ?? {}),
|
|
15397
|
-
var
|
|
15398
|
-
each(
|
|
15399
|
-
var
|
|
15521
|
+
}, S = (e) => {
|
|
15522
|
+
let t = /* @__PURE__ */ user_derived(() => asJsonObject(i()) ?? {}), n = /* @__PURE__ */ user_derived(() => Array.isArray(get(t).icons) ? get(t).icons.filter((e) => typeof e == "string") : []);
|
|
15523
|
+
var a = root_3$17(), o = child(a);
|
|
15524
|
+
each(o, 19, () => get(n), (e, t) => `${t}-${e}`, (e, t, n) => {
|
|
15525
|
+
var i = root_2$19(), a = child(i);
|
|
15400
15526
|
{
|
|
15401
15527
|
let e = /* @__PURE__ */ user_derived(() => String(get(t)));
|
|
15402
|
-
Img(
|
|
15528
|
+
Img(a, {
|
|
15403
15529
|
inlineSvg: !0,
|
|
15404
15530
|
get src() {
|
|
15405
15531
|
return get(e);
|
|
@@ -15408,21 +15534,21 @@ function BuiltinCell(e, t) {
|
|
|
15408
15534
|
fallback: ""
|
|
15409
15535
|
});
|
|
15410
15536
|
}
|
|
15411
|
-
reset(
|
|
15412
|
-
set_attribute(
|
|
15413
|
-
}), append(e,
|
|
15537
|
+
reset(i), template_effect((e, t) => {
|
|
15538
|
+
set_attribute(i, "data-pw", e), set_attribute(i, "testid", t);
|
|
15539
|
+
}, [() => u("icon", get(n)), () => u("icon", get(n))]), append(e, i);
|
|
15414
15540
|
});
|
|
15415
|
-
var
|
|
15416
|
-
reset(
|
|
15417
|
-
set_class(
|
|
15418
|
-
}), append(e,
|
|
15419
|
-
},
|
|
15541
|
+
var s = sibling(o, 2), l = child(s, !0);
|
|
15542
|
+
reset(s), reset(a), template_effect(() => {
|
|
15543
|
+
set_class(a, 1, `builtin-icon-label ${get(c) ?? ""}`, "svelte-4boxsj"), set_text(l, typeof get(t).label == "string" ? get(t).label : "-");
|
|
15544
|
+
}), append(e, a);
|
|
15545
|
+
}, C = (e) => {
|
|
15420
15546
|
let t = /* @__PURE__ */ user_derived(() => asJsonObject(i()) ?? {});
|
|
15421
|
-
var
|
|
15422
|
-
var
|
|
15547
|
+
var n = root_6$12(), a = child(n), o = (e) => {
|
|
15548
|
+
var n = root_4$14(), i = child(n);
|
|
15423
15549
|
{
|
|
15424
15550
|
let e = /* @__PURE__ */ user_derived(() => typeof get(t).text1 == "string" ? get(t).text1 : "");
|
|
15425
|
-
Img(
|
|
15551
|
+
Img(i, {
|
|
15426
15552
|
get src() {
|
|
15427
15553
|
return get(t).imageUrl;
|
|
15428
15554
|
},
|
|
@@ -15432,52 +15558,56 @@ function BuiltinCell(e, t) {
|
|
|
15432
15558
|
fallback: ""
|
|
15433
15559
|
});
|
|
15434
15560
|
}
|
|
15435
|
-
reset(
|
|
15436
|
-
set_attribute(
|
|
15437
|
-
}), append(e,
|
|
15438
|
-
},
|
|
15439
|
-
var
|
|
15440
|
-
reset(
|
|
15441
|
-
set_attribute(
|
|
15442
|
-
}, [
|
|
15561
|
+
reset(n), template_effect((e, t) => {
|
|
15562
|
+
set_attribute(n, "data-pw", e), set_attribute(n, "testid", t);
|
|
15563
|
+
}, [() => u("thumbnail"), () => u("thumbnail")]), append(e, n);
|
|
15564
|
+
}, s = (e) => {
|
|
15565
|
+
var n = root_5$12(), i = child(n, !0);
|
|
15566
|
+
reset(n), template_effect((e, t, a) => {
|
|
15567
|
+
set_attribute(n, "data-pw", e), set_attribute(n, "testid", t), set_text(i, a);
|
|
15568
|
+
}, [
|
|
15569
|
+
() => u("thumbnailPlaceholder"),
|
|
15570
|
+
() => u("thumbnailPlaceholder"),
|
|
15571
|
+
() => typeof get(t).text1 == "string" && get(t).text1 ? get(t).text1.charAt(0).toUpperCase() : ""
|
|
15572
|
+
]), append(e, n);
|
|
15443
15573
|
};
|
|
15444
|
-
if_block(
|
|
15445
|
-
typeof get(t).imageUrl == "string" && get(t).imageUrl ? e(
|
|
15574
|
+
if_block(a, (e) => {
|
|
15575
|
+
typeof get(t).imageUrl == "string" && get(t).imageUrl ? e(o) : e(s, -1);
|
|
15446
15576
|
});
|
|
15447
|
-
var
|
|
15577
|
+
var l = sibling(a, 2), d = child(l), f = child(d, !0);
|
|
15448
15578
|
reset(d);
|
|
15449
15579
|
var p = sibling(d, 2), m = child(p, !0);
|
|
15450
|
-
reset(p), reset(
|
|
15451
|
-
set_class(
|
|
15452
|
-
}), append(e,
|
|
15453
|
-
},
|
|
15580
|
+
reset(p), reset(l), reset(n), template_effect(() => {
|
|
15581
|
+
set_class(n, 1, `builtin-image-two-line ${get(c) ?? ""}`, "svelte-4boxsj"), set_class(l, 1, `builtin-two-line ${get(c) ?? ""}`, "svelte-4boxsj"), set_text(f, typeof get(t).text1 == "string" ? get(t).text1 : "-"), set_text(m, typeof get(t).text2 == "string" ? get(t).text2 : "-");
|
|
15582
|
+
}), append(e, n);
|
|
15583
|
+
}, w = (e) => {
|
|
15454
15584
|
let t = /* @__PURE__ */ user_derived(() => asTagArrayItems(i()));
|
|
15455
|
-
var
|
|
15456
|
-
var
|
|
15457
|
-
each(
|
|
15585
|
+
var n = comment(), a = first_child(n), o = (e) => {
|
|
15586
|
+
var n = root_7$11();
|
|
15587
|
+
each(n, 23, () => get(t), (e, t) => `${t}-${e.text}`, (e, t, n) => {
|
|
15458
15588
|
{
|
|
15459
|
-
let
|
|
15589
|
+
let i = /* @__PURE__ */ user_derived(() => get(t).classes ?? ""), a = /* @__PURE__ */ user_derived(() => get(t).testId ?? u("tag", get(n)));
|
|
15460
15590
|
Pill(e, {
|
|
15461
15591
|
get text() {
|
|
15462
15592
|
return get(t).text;
|
|
15463
15593
|
},
|
|
15464
15594
|
get classes() {
|
|
15465
|
-
return get(
|
|
15595
|
+
return get(i);
|
|
15466
15596
|
},
|
|
15467
15597
|
get testId() {
|
|
15468
|
-
return get(
|
|
15598
|
+
return get(a);
|
|
15469
15599
|
}
|
|
15470
15600
|
});
|
|
15471
15601
|
}
|
|
15472
|
-
}), reset(
|
|
15473
|
-
},
|
|
15602
|
+
}), reset(n), template_effect(() => set_class(n, 1, `builtin-tag-array ${get(c) ?? ""}`, "svelte-4boxsj")), append(e, n);
|
|
15603
|
+
}, s = (e) => {
|
|
15474
15604
|
var t = text();
|
|
15475
15605
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15476
15606
|
};
|
|
15477
|
-
if_block(
|
|
15478
|
-
get(t) ? e(
|
|
15479
|
-
}), append(e,
|
|
15480
|
-
},
|
|
15607
|
+
if_block(a, (e) => {
|
|
15608
|
+
get(t) ? e(o) : e(s, -1);
|
|
15609
|
+
}), append(e, n);
|
|
15610
|
+
}, T = (e) => {
|
|
15481
15611
|
let t = /* @__PURE__ */ user_derived(() => asAvatarStackData(i()));
|
|
15482
15612
|
var n = comment(), a = first_child(n), o = (e) => {
|
|
15483
15613
|
let n = /* @__PURE__ */ user_derived(() => buildAvatarStack(get(t)));
|
|
@@ -15499,67 +15629,67 @@ function BuiltinCell(e, t) {
|
|
|
15499
15629
|
if_block(a, (e) => {
|
|
15500
15630
|
get(t) ? e(o) : e(s, -1);
|
|
15501
15631
|
}), append(e, n);
|
|
15502
|
-
},
|
|
15503
|
-
var t = comment(),
|
|
15632
|
+
}, E = (e) => {
|
|
15633
|
+
var t = comment(), n = first_child(t), a = (e) => {
|
|
15504
15634
|
var t = text();
|
|
15505
15635
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15506
|
-
},
|
|
15636
|
+
}, o = (e) => {
|
|
15507
15637
|
let t = /* @__PURE__ */ user_derived(() => asCompareCellData(i()));
|
|
15508
|
-
var
|
|
15509
|
-
var
|
|
15638
|
+
var n = comment(), a = first_child(n), o = (e) => {
|
|
15639
|
+
var n = root_16$5(), i = child(n), a = (e) => {
|
|
15510
15640
|
var n = root_10$7(), i = child(n, !0);
|
|
15511
15641
|
reset(n), template_effect(() => set_text(i, get(t).primary)), append(e, n);
|
|
15512
15642
|
};
|
|
15513
|
-
if_block(
|
|
15514
|
-
typeof get(t).primary == "string" && e(
|
|
15643
|
+
if_block(i, (e) => {
|
|
15644
|
+
typeof get(t).primary == "string" && e(a);
|
|
15515
15645
|
});
|
|
15516
|
-
var
|
|
15646
|
+
var o = sibling(i, 2), s = (e) => {
|
|
15517
15647
|
var n = root_11$6(), i = child(n, !0);
|
|
15518
15648
|
reset(n), template_effect(() => set_text(i, get(t).comparison)), append(e, n);
|
|
15519
15649
|
};
|
|
15520
|
-
if_block(
|
|
15521
|
-
typeof get(t).comparison == "string" && e(
|
|
15650
|
+
if_block(o, (e) => {
|
|
15651
|
+
typeof get(t).comparison == "string" && e(s);
|
|
15522
15652
|
});
|
|
15523
|
-
var
|
|
15524
|
-
var
|
|
15525
|
-
var
|
|
15526
|
-
html(
|
|
15527
|
-
var
|
|
15528
|
-
reset(
|
|
15529
|
-
set_attribute(
|
|
15530
|
-
}), append(e,
|
|
15653
|
+
var l = sibling(o, 2), d = (e) => {
|
|
15654
|
+
var n = comment(), i = first_child(n), a = (e) => {
|
|
15655
|
+
var n = root_12$6(), i = child(n);
|
|
15656
|
+
html(i, () => trend_up_default, !0), reset(i);
|
|
15657
|
+
var a = sibling(i);
|
|
15658
|
+
reset(n), template_effect((e, i) => {
|
|
15659
|
+
set_attribute(n, "data-pw", e), set_attribute(n, "testid", i), set_text(a, ` ${get(t).trendPercent ?? ""}%`);
|
|
15660
|
+
}, [() => u("trendUp"), () => u("trendUp")]), append(e, n);
|
|
15661
|
+
}, o = (e) => {
|
|
15662
|
+
var n = root_13$6(), i = child(n);
|
|
15663
|
+
html(i, () => trend_down_default, !0), reset(i);
|
|
15664
|
+
var a = sibling(i);
|
|
15665
|
+
reset(n), template_effect((e, i) => {
|
|
15666
|
+
set_attribute(n, "data-pw", e), set_attribute(n, "testid", i), set_text(a, ` ${get(t).trendPercent ?? ""}%`);
|
|
15667
|
+
}, [() => u("trendDown"), () => u("trendDown")]), append(e, n);
|
|
15531
15668
|
}, s = (e) => {
|
|
15532
|
-
var i = root_13$6(), a = child(i);
|
|
15533
|
-
html(a, () => trend_down_default, !0), reset(a);
|
|
15534
|
-
var o = sibling(a);
|
|
15535
|
-
reset(i), template_effect(() => {
|
|
15536
|
-
set_attribute(i, "data-pw", n().testId ? `${n().testId}-trend-down` : null), set_attribute(i, "testid", n().testId ? `${n().testId}-trend-down` : null), set_text(o, ` ${get(t).trendPercent ?? ""}%`);
|
|
15537
|
-
}), append(e, i);
|
|
15538
|
-
}, c = (e) => {
|
|
15539
15669
|
append(e, root_14$6());
|
|
15540
15670
|
};
|
|
15541
|
-
if_block(
|
|
15542
|
-
get(t).trendPercent > 0 ? e(
|
|
15543
|
-
}), append(e,
|
|
15671
|
+
if_block(i, (e) => {
|
|
15672
|
+
get(t).trendPercent > 0 ? e(a) : get(t).trendPercent < 0 ? e(o, 1) : e(s, -1);
|
|
15673
|
+
}), append(e, n);
|
|
15544
15674
|
}, f = (e) => {
|
|
15545
15675
|
var n = root_15$6(), i = child(n, !0);
|
|
15546
15676
|
reset(n), template_effect(() => set_text(i, get(t).trendLabel)), append(e, n);
|
|
15547
15677
|
};
|
|
15548
|
-
if_block(
|
|
15678
|
+
if_block(l, (e) => {
|
|
15549
15679
|
typeof get(t).trendPercent == "number" ? e(d) : typeof get(t).trendLabel == "string" && e(f, 1);
|
|
15550
|
-
}), reset(
|
|
15551
|
-
},
|
|
15680
|
+
}), reset(n), template_effect(() => set_class(n, 1, `builtin-compare ${get(c) ?? ""}`, "svelte-4boxsj")), append(e, n);
|
|
15681
|
+
}, s = (e) => {
|
|
15552
15682
|
var t = text();
|
|
15553
15683
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15554
15684
|
};
|
|
15555
|
-
if_block(
|
|
15556
|
-
get(t) ? e(
|
|
15557
|
-
}), append(e,
|
|
15685
|
+
if_block(a, (e) => {
|
|
15686
|
+
get(t) ? e(o) : e(s, -1);
|
|
15687
|
+
}), append(e, n);
|
|
15558
15688
|
};
|
|
15559
|
-
if_block(
|
|
15560
|
-
typeof i() == "string" || typeof i() == "number" || typeof i() == "boolean" || i() === null ? e(
|
|
15689
|
+
if_block(n, (e) => {
|
|
15690
|
+
typeof i() == "string" || typeof i() == "number" || typeof i() == "boolean" || i() === null ? e(a) : e(o, -1);
|
|
15561
15691
|
}), append(e, t);
|
|
15562
|
-
},
|
|
15692
|
+
}, D = (e) => {
|
|
15563
15693
|
let t = /* @__PURE__ */ user_derived(() => asJsonObject(i()) ?? {}), s = /* @__PURE__ */ user_derived(() => get(t).checked === !0);
|
|
15564
15694
|
var c = root_17$4();
|
|
15565
15695
|
set_attribute(c, "tabindex", -1), Toggle(child(c), {
|
|
@@ -15570,8 +15700,8 @@ function BuiltinCell(e, t) {
|
|
|
15570
15700
|
onclick: (e) => n().onToggle?.(a(), e, o())
|
|
15571
15701
|
}), reset(c), template_effect(() => {
|
|
15572
15702
|
set_attribute(c, "aria-checked", get(s) ? "true" : "false"), set_attribute(c, "aria-label", typeof get(t).ariaLabel == "string" ? get(t).ariaLabel : null), set_attribute(c, "data-pw", typeof get(t).testId == "string" ? get(t).testId : null), set_attribute(c, "testid", typeof get(t).testId == "string" ? get(t).testId : null);
|
|
15573
|
-
}), delegated("click", c,
|
|
15574
|
-
},
|
|
15703
|
+
}), delegated("click", c, p), delegated("keydown", c, m), append(e, c);
|
|
15704
|
+
}, O = (e) => {
|
|
15575
15705
|
let t = /* @__PURE__ */ user_derived(() => asSelectCellData(i()));
|
|
15576
15706
|
var c = comment(), l = first_child(c), u = (e) => {
|
|
15577
15707
|
var i = root_18$4(), c = child(i);
|
|
@@ -15604,15 +15734,15 @@ function BuiltinCell(e, t) {
|
|
|
15604
15734
|
}
|
|
15605
15735
|
});
|
|
15606
15736
|
}
|
|
15607
|
-
reset(i), delegated("click", i,
|
|
15608
|
-
},
|
|
15737
|
+
reset(i), delegated("click", i, p), delegated("keydown", i, m), append(e, i);
|
|
15738
|
+
}, d = (e) => {
|
|
15609
15739
|
var t = text();
|
|
15610
15740
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15611
15741
|
};
|
|
15612
15742
|
if_block(l, (e) => {
|
|
15613
|
-
get(t) ? e(u) : e(
|
|
15743
|
+
get(t) ? e(u) : e(d, -1);
|
|
15614
15744
|
}), append(e, c);
|
|
15615
|
-
},
|
|
15745
|
+
}, k = (e) => {
|
|
15616
15746
|
let t = /* @__PURE__ */ user_derived(() => asInputCellData(i()));
|
|
15617
15747
|
var s = comment(), c = first_child(s), l = (e) => {
|
|
15618
15748
|
let i = (e) => {
|
|
@@ -15651,7 +15781,7 @@ function BuiltinCell(e, t) {
|
|
|
15651
15781
|
onInput: (e) => n().onInput?.(a(), e, o())
|
|
15652
15782
|
}, () => get(t).iconUrl ? { leftIcon: i } : {}));
|
|
15653
15783
|
}
|
|
15654
|
-
reset(s), delegated("click", s,
|
|
15784
|
+
reset(s), delegated("click", s, p), delegated("keydown", s, m), append(e, s);
|
|
15655
15785
|
}, u = (e) => {
|
|
15656
15786
|
var t = text();
|
|
15657
15787
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
@@ -15659,7 +15789,7 @@ function BuiltinCell(e, t) {
|
|
|
15659
15789
|
if_block(c, (e) => {
|
|
15660
15790
|
get(t) ? e(l) : e(u, -1);
|
|
15661
15791
|
}), append(e, s);
|
|
15662
|
-
},
|
|
15792
|
+
}, A = (e) => {
|
|
15663
15793
|
let t = /* @__PURE__ */ user_derived(() => asButtonCellData(i()));
|
|
15664
15794
|
var s = comment(), c = first_child(s), l = (e) => {
|
|
15665
15795
|
let i = (e) => {
|
|
@@ -15696,7 +15826,7 @@ function BuiltinCell(e, t) {
|
|
|
15696
15826
|
onclick: () => n().onButtonClick?.(a(), o())
|
|
15697
15827
|
});
|
|
15698
15828
|
}
|
|
15699
|
-
},
|
|
15829
|
+
}, d = (e) => {
|
|
15700
15830
|
{
|
|
15701
15831
|
let i = /* @__PURE__ */ user_derived(() => get(t).disabled ?? !1), s = /* @__PURE__ */ user_derived(() => get(t).classes ?? "");
|
|
15702
15832
|
Button(e, {
|
|
@@ -15720,8 +15850,8 @@ function BuiltinCell(e, t) {
|
|
|
15720
15850
|
}
|
|
15721
15851
|
};
|
|
15722
15852
|
if_block(l, (e) => {
|
|
15723
|
-
get(t).iconUrl ? e(u) : e(
|
|
15724
|
-
}), reset(s), template_effect(() => c = set_class(s, 1, "builtin-interactive svelte-4boxsj", null, c, { "builtin-icon-button": get(t).iconUrl && !get(t).text })), delegated("click", s,
|
|
15853
|
+
get(t).iconUrl ? e(u) : e(d, -1);
|
|
15854
|
+
}), reset(s), template_effect(() => c = set_class(s, 1, "builtin-interactive svelte-4boxsj", null, c, { "builtin-icon-button": get(t).iconUrl && !get(t).text })), delegated("click", s, p), delegated("keydown", s, m), append(e, s);
|
|
15725
15855
|
}, u = (e) => {
|
|
15726
15856
|
var t = text();
|
|
15727
15857
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
@@ -15729,9 +15859,9 @@ function BuiltinCell(e, t) {
|
|
|
15729
15859
|
if_block(c, (e) => {
|
|
15730
15860
|
get(t) ? e(l) : e(u, -1);
|
|
15731
15861
|
}), append(e, s);
|
|
15732
|
-
},
|
|
15862
|
+
}, j = (e) => {
|
|
15733
15863
|
let t = /* @__PURE__ */ user_derived(() => asActionGroupCellData(i()));
|
|
15734
|
-
var c = comment(), l = first_child(c),
|
|
15864
|
+
var c = comment(), l = first_child(c), d = (e) => {
|
|
15735
15865
|
var i = root_24$3(), c = child(i), l = (e) => {
|
|
15736
15866
|
let i = (e) => {
|
|
15737
15867
|
var t = root_20$3();
|
|
@@ -15795,16 +15925,16 @@ function BuiltinCell(e, t) {
|
|
|
15795
15925
|
if_block(c, (e) => {
|
|
15796
15926
|
get(t).primaryButton && e(l);
|
|
15797
15927
|
});
|
|
15798
|
-
var
|
|
15928
|
+
var d = sibling(c, 2), f = (e) => {
|
|
15799
15929
|
{
|
|
15800
15930
|
let i = (e) => {
|
|
15801
|
-
var t = root_23$3(),
|
|
15931
|
+
var t = root_23$3(), n = child(t);
|
|
15802
15932
|
{
|
|
15803
15933
|
let e = (e) => {
|
|
15804
15934
|
var t = root_22$3();
|
|
15805
15935
|
html(t, () => dots_vertical_default, !0), reset(t), append(e, t);
|
|
15806
|
-
}, t = /* @__PURE__ */ user_derived(() =>
|
|
15807
|
-
Button(
|
|
15936
|
+
}, t = /* @__PURE__ */ user_derived(() => u("menuTrigger", a()));
|
|
15937
|
+
Button(n, {
|
|
15808
15938
|
ariaLabel: "More actions",
|
|
15809
15939
|
get testId() {
|
|
15810
15940
|
return get(t);
|
|
@@ -15819,7 +15949,7 @@ function BuiltinCell(e, t) {
|
|
|
15819
15949
|
label: e.label ?? e.id,
|
|
15820
15950
|
danger: e.danger,
|
|
15821
15951
|
separator: e.separator
|
|
15822
|
-
}))), l = /* @__PURE__ */ user_derived(() =>
|
|
15952
|
+
}))), l = /* @__PURE__ */ user_derived(() => u("menu", a()));
|
|
15823
15953
|
Menu(e, {
|
|
15824
15954
|
get items() {
|
|
15825
15955
|
return get(c);
|
|
@@ -15836,46 +15966,46 @@ function BuiltinCell(e, t) {
|
|
|
15836
15966
|
});
|
|
15837
15967
|
}
|
|
15838
15968
|
};
|
|
15839
|
-
if_block(
|
|
15840
|
-
get(t).menuItems && get(t).menuItems.length > 0 && e(
|
|
15841
|
-
}), reset(i), delegated("click", i,
|
|
15842
|
-
},
|
|
15969
|
+
if_block(d, (e) => {
|
|
15970
|
+
get(t).menuItems && get(t).menuItems.length > 0 && e(f);
|
|
15971
|
+
}), reset(i), delegated("click", i, p), delegated("keydown", i, m), append(e, i);
|
|
15972
|
+
}, f = (e) => {
|
|
15843
15973
|
var t = text();
|
|
15844
15974
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15845
15975
|
};
|
|
15846
15976
|
if_block(l, (e) => {
|
|
15847
|
-
get(t) ? e(
|
|
15977
|
+
get(t) ? e(d) : e(f, -1);
|
|
15848
15978
|
}), append(e, c);
|
|
15849
|
-
},
|
|
15979
|
+
}, M = (e) => {
|
|
15850
15980
|
let t = /* @__PURE__ */ user_derived(() => asPopupMenuCellData(i()));
|
|
15851
|
-
var c = comment(), l = first_child(c),
|
|
15981
|
+
var c = comment(), l = first_child(c), d = (e) => {
|
|
15852
15982
|
var i = root_18$4(), c = child(i);
|
|
15853
15983
|
{
|
|
15854
15984
|
let e = (e) => {
|
|
15855
|
-
var
|
|
15985
|
+
var n = root_23$3(), i = child(n);
|
|
15856
15986
|
{
|
|
15857
15987
|
let e = (e) => {
|
|
15858
15988
|
var t = root_22$3();
|
|
15859
15989
|
html(t, () => dots_vertical_default, !0), reset(t), append(e, t);
|
|
15860
|
-
},
|
|
15861
|
-
Button(
|
|
15990
|
+
}, n = /* @__PURE__ */ user_derived(() => get(t).ariaLabel ?? "More actions"), o = /* @__PURE__ */ user_derived(() => u("popupTrigger", a()));
|
|
15991
|
+
Button(i, {
|
|
15862
15992
|
get ariaLabel() {
|
|
15863
|
-
return get(
|
|
15993
|
+
return get(n);
|
|
15864
15994
|
},
|
|
15865
15995
|
get testId() {
|
|
15866
|
-
return get(
|
|
15996
|
+
return get(o);
|
|
15867
15997
|
},
|
|
15868
15998
|
icon: e,
|
|
15869
15999
|
$$slots: { icon: !0 }
|
|
15870
16000
|
});
|
|
15871
16001
|
}
|
|
15872
|
-
reset(
|
|
16002
|
+
reset(n), append(e, n);
|
|
15873
16003
|
}, i = /* @__PURE__ */ user_derived(() => get(t).items.map((e) => ({
|
|
15874
16004
|
value: e.id,
|
|
15875
16005
|
label: e.label ?? e.id,
|
|
15876
16006
|
danger: e.danger,
|
|
15877
16007
|
separator: e.separator
|
|
15878
|
-
}))), l = /* @__PURE__ */ user_derived(() =>
|
|
16008
|
+
}))), l = /* @__PURE__ */ user_derived(() => u("popup", a()));
|
|
15879
16009
|
Menu(c, {
|
|
15880
16010
|
get items() {
|
|
15881
16011
|
return get(i);
|
|
@@ -15891,68 +16021,68 @@ function BuiltinCell(e, t) {
|
|
|
15891
16021
|
$$slots: { trigger: !0 }
|
|
15892
16022
|
});
|
|
15893
16023
|
}
|
|
15894
|
-
reset(i), delegated("click", i,
|
|
15895
|
-
},
|
|
16024
|
+
reset(i), delegated("click", i, p), delegated("keydown", i, m), append(e, i);
|
|
16025
|
+
}, f = (e) => {
|
|
15896
16026
|
var t = text();
|
|
15897
16027
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15898
16028
|
};
|
|
15899
16029
|
if_block(l, (e) => {
|
|
15900
|
-
get(t) ? e(
|
|
16030
|
+
get(t) ? e(d) : e(f, -1);
|
|
15901
16031
|
}), append(e, c);
|
|
15902
|
-
},
|
|
16032
|
+
}, N = (e) => {
|
|
15903
16033
|
let t = /* @__PURE__ */ user_derived(() => asLinkCellData(i()));
|
|
15904
|
-
var
|
|
15905
|
-
var
|
|
15906
|
-
reset(
|
|
15907
|
-
var
|
|
15908
|
-
var
|
|
16034
|
+
var n = comment(), o = first_child(n), s = (e) => {
|
|
16035
|
+
var n = root_28$1(), i = child(n), o = child(i, !0);
|
|
16036
|
+
reset(i);
|
|
16037
|
+
var s = sibling(i, 2), c = (e) => {
|
|
16038
|
+
var n = root_27$1(), i = first_child(n), o = child(i);
|
|
15909
16039
|
{
|
|
15910
16040
|
let e = (e) => {
|
|
15911
16041
|
var t = root_25$2();
|
|
15912
16042
|
html(t, () => copy_default, !0), reset(t), append(e, t);
|
|
15913
|
-
},
|
|
15914
|
-
Button(
|
|
16043
|
+
}, n = /* @__PURE__ */ user_derived(() => get(d) ? "Link copied" : "Copy link"), i = /* @__PURE__ */ user_derived(() => u("copy", a()));
|
|
16044
|
+
Button(o, {
|
|
15915
16045
|
get ariaLabel() {
|
|
15916
|
-
return get(
|
|
16046
|
+
return get(n);
|
|
15917
16047
|
},
|
|
15918
16048
|
get testId() {
|
|
15919
|
-
return get(
|
|
16049
|
+
return get(i);
|
|
15920
16050
|
},
|
|
15921
|
-
onclick: () =>
|
|
16051
|
+
onclick: () => h(get(t).url),
|
|
15922
16052
|
icon: e,
|
|
15923
16053
|
$$slots: { icon: !0 }
|
|
15924
16054
|
});
|
|
15925
16055
|
}
|
|
15926
|
-
reset(
|
|
15927
|
-
var
|
|
16056
|
+
reset(i);
|
|
16057
|
+
var s = sibling(i, 2), c = (e) => {
|
|
15928
16058
|
var t = root_26$2();
|
|
15929
|
-
template_effect(() => {
|
|
15930
|
-
set_attribute(t, "data-pw",
|
|
15931
|
-
}), append(e, t);
|
|
16059
|
+
template_effect((e, n) => {
|
|
16060
|
+
set_attribute(t, "data-pw", e), set_attribute(t, "testid", n);
|
|
16061
|
+
}, [() => u("linkCopied"), () => u("linkCopied")]), append(e, t);
|
|
15932
16062
|
};
|
|
15933
|
-
if_block(
|
|
15934
|
-
get(
|
|
15935
|
-
}), append(e,
|
|
16063
|
+
if_block(s, (e) => {
|
|
16064
|
+
get(d) && e(c);
|
|
16065
|
+
}), append(e, n);
|
|
15936
16066
|
};
|
|
15937
|
-
if_block(
|
|
15938
|
-
get(t).copyable !== !1 && e(
|
|
15939
|
-
}), reset(
|
|
15940
|
-
set_attribute(
|
|
15941
|
-
}), delegated("click",
|
|
15942
|
-
},
|
|
16067
|
+
if_block(s, (e) => {
|
|
16068
|
+
get(t).copyable !== !1 && e(c);
|
|
16069
|
+
}), reset(n), template_effect((e, n) => {
|
|
16070
|
+
set_attribute(i, "href", get(t).url), set_attribute(i, "data-pw", e), set_attribute(i, "testid", n), set_text(o, get(t).label ?? get(t).url);
|
|
16071
|
+
}, [() => u("link", a()), () => u("link", a())]), delegated("click", n, p), delegated("keydown", n, m), append(e, n);
|
|
16072
|
+
}, c = (e) => {
|
|
15943
16073
|
var t = text();
|
|
15944
16074
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15945
16075
|
};
|
|
15946
|
-
if_block(
|
|
15947
|
-
get(t) ? e(
|
|
15948
|
-
}), append(e,
|
|
15949
|
-
},
|
|
16076
|
+
if_block(o, (e) => {
|
|
16077
|
+
get(t) ? e(s) : e(c, -1);
|
|
16078
|
+
}), append(e, n);
|
|
16079
|
+
}, P = (e) => {
|
|
15950
16080
|
var t = text();
|
|
15951
16081
|
template_effect((e) => set_text(t, e), [() => cellValueToText(i())]), append(e, t);
|
|
15952
16082
|
};
|
|
15953
|
-
return if_block(
|
|
15954
|
-
n().type === "tag" ? e(
|
|
15955
|
-
}), append(e,
|
|
16083
|
+
return if_block(v, (e) => {
|
|
16084
|
+
n().type === "tag" ? e(y) : n().type === "text-tag" ? e(b, 1) : n().type === "two-line-text" ? e(x, 2) : n().type === "icon-label" ? e(S, 3) : n().type === "image-two-line-text" ? e(C, 4) : n().type === "tag-array" ? e(w, 5) : n().type === "avatar-stack" ? e(T, 6) : n().type === "compare" ? e(E, 7) : n().type === "toggle" ? e(D, 8) : n().type === "select" ? e(O, 9) : n().type === "input" ? e(k, 10) : n().type === "button" ? e(A, 11) : n().type === "action-group" ? e(j, 12) : n().type === "popup-menu" ? e(M, 13) : n().type === "link" ? e(N, 14) : e(P, -1);
|
|
16085
|
+
}), append(e, _), pop(g);
|
|
15956
16086
|
}
|
|
15957
16087
|
delegate(["click", "keydown"]), create_custom_element(BuiltinCell, {
|
|
15958
16088
|
column: {},
|
|
@@ -15963,7 +16093,7 @@ delegate(["click", "keydown"]), create_custom_element(BuiltinCell, {
|
|
|
15963
16093
|
}, [], [], { mode: "open" });
|
|
15964
16094
|
//#endregion
|
|
15965
16095
|
//#region src/lib/assets/sort-default.svg?raw
|
|
15966
|
-
var sort_default_default = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64645 1.64645C5.84171 1.45118 6.15829 1.45118 6.35355 1.64645L8.85355 4.14645C9.04882 4.34171 9.04882 4.65829 8.85355 4.85355C8.65829 5.04882 8.34171 5.04882 8.14645 4.85355L6 2.70711L3.85355 4.85355C3.65829 5.04882 3.34171 5.04882 3.14645 4.85355C2.95118 4.65829 2.95118 4.34171 3.14645 4.14645L5.64645 1.64645Z\" fill=\"currentColor\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.14645 7.14645C3.34171 6.95118 3.65829 6.95118 3.85355 7.14645L6 9.29289L8.14645 7.14645C8.34171 6.95118 8.65829 6.95118 8.85355 7.14645C9.04882 7.34171 9.04882 7.65829 8.85355 7.85355L6.35355 10.3536C6.15829 10.5488 5.84171 10.5488 5.64645 10.3536L3.14645 7.85355C2.95118 7.65829 2.95118 7.34171 3.14645 7.14645Z\" fill=\"currentColor\"/>\n</svg>\n", root$25 = /* @__PURE__ */ from_html("<div class=\"table-title svelte-171ci2i\"> </div>"), root_1$23 = /* @__PURE__ */ from_html("<button class=\"table-search-clear svelte-171ci2i\" type=\"button\" aria-label=\"Clear search\"></button>"), root_2$18 = /* @__PURE__ */ from_html("<div class=\"table-search svelte-171ci2i\"><span class=\"table-search-icon svelte-171ci2i\"></span> <input class=\"table-search-input svelte-171ci2i\" type=\"search\" autocomplete=\"off\"/> <!></div>"), root_3$16 = /* @__PURE__ */ from_html("<div class=\"table-toolbar svelte-171ci2i\"><!></div>"), root_4$13 = /* @__PURE__ */ from_html("<caption class=\"sr-only svelte-171ci2i\"> </caption>"), root_5$11 = /* @__PURE__ */ from_html("<span class=\"table-checkbox-icon svelte-171ci2i\"></span>"), root_6$11 = /* @__PURE__ */ from_html("<th><span><!></span></th>"), root_7$10 = /* @__PURE__ */ from_html("<th></th>"), root_8$9 = /* @__PURE__ */ from_html("<th> </th>"), root_9$7 = /* @__PURE__ */ from_html("<span> </span>"), root_10$6 = /* @__PURE__ */ from_html("<span class=\"table-header-filter-icon svelte-171ci2i\"></span>"), root_11$5 = /* @__PURE__ */ from_html("<span><!></span>"), root_12$5 = /* @__PURE__ */ from_html("<span class=\"table-header-filter svelte-171ci2i\"><!></span>"), root_13$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-asc\"></span>"), root_14$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-desc\"></span>"), root_15$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-idle\"></span>"), root_16$4 = /* @__PURE__ */ from_html("<div class=\"sort-button svelte-171ci2i\"><!></div>"), root_17$3 = /* @__PURE__ */ from_html("<!> <span class=\"table-inline-search-clear svelte-171ci2i\"><!></span>", 1), root_18$3 = /* @__PURE__ */ from_html("<span class=\"table-inline-search-trigger svelte-171ci2i\"><!></span>"), root_19$3 = /* @__PURE__ */ from_html("<span class=\"table-header-inline-search svelte-171ci2i\"><!></span>"), root_20$2 = /* @__PURE__ */ from_html("<th><span class=\"table-header-content svelte-171ci2i\"><!> <!> <!> <!></span></th>"), root_21$2 = /* @__PURE__ */ from_html("<tr><td class=\"table-empty svelte-171ci2i\"><!></td></tr>"), root_22$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-checkbox-col svelte-171ci2i\"><span><!></span></td>"), root_23$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-row-number-col svelte-171ci2i\"> </td>"), root_24$2 = /* @__PURE__ */ from_html("<td><div><!></div></td>"), root_25$1 = /* @__PURE__ */ from_html("<tr><!><!><!></tr>"), root_26$1 = /* @__PURE__ */ from_html("<div class=\"table-footer svelte-171ci2i\"><!></div>"), root_27 = /* @__PURE__ */ from_html("<span class=\"table-paginator-size svelte-171ci2i\"><!></span>"), root_28 = /* @__PURE__ */ from_html("<
|
|
16096
|
+
var sort_default_default = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64645 1.64645C5.84171 1.45118 6.15829 1.45118 6.35355 1.64645L8.85355 4.14645C9.04882 4.34171 9.04882 4.65829 8.85355 4.85355C8.65829 5.04882 8.34171 5.04882 8.14645 4.85355L6 2.70711L3.85355 4.85355C3.65829 5.04882 3.34171 5.04882 3.14645 4.85355C2.95118 4.65829 2.95118 4.34171 3.14645 4.14645L5.64645 1.64645Z\" fill=\"currentColor\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.14645 7.14645C3.34171 6.95118 3.65829 6.95118 3.85355 7.14645L6 9.29289L8.14645 7.14645C8.34171 6.95118 8.65829 6.95118 8.85355 7.14645C9.04882 7.34171 9.04882 7.65829 8.85355 7.85355L6.35355 10.3536C6.15829 10.5488 5.84171 10.5488 5.64645 10.3536L3.14645 7.85355C2.95118 7.65829 2.95118 7.34171 3.14645 7.14645Z\" fill=\"currentColor\"/>\n</svg>\n", root$25 = /* @__PURE__ */ from_html("<div class=\"table-title svelte-171ci2i\"> </div>"), root_1$23 = /* @__PURE__ */ from_html("<button class=\"table-search-clear svelte-171ci2i\" type=\"button\" aria-label=\"Clear search\"></button>"), root_2$18 = /* @__PURE__ */ from_html("<div class=\"table-search svelte-171ci2i\"><span class=\"table-search-icon svelte-171ci2i\"></span> <input class=\"table-search-input svelte-171ci2i\" type=\"search\" autocomplete=\"off\"/> <!></div>"), root_3$16 = /* @__PURE__ */ from_html("<div class=\"table-toolbar svelte-171ci2i\"><!></div>"), root_4$13 = /* @__PURE__ */ from_html("<caption class=\"sr-only svelte-171ci2i\"> </caption>"), root_5$11 = /* @__PURE__ */ from_html("<span class=\"table-checkbox-icon svelte-171ci2i\"></span>"), root_6$11 = /* @__PURE__ */ from_html("<th><span><!></span></th>"), root_7$10 = /* @__PURE__ */ from_html("<th></th>"), root_8$9 = /* @__PURE__ */ from_html("<th> </th>"), root_9$7 = /* @__PURE__ */ from_html("<span> </span>"), root_10$6 = /* @__PURE__ */ from_html("<span class=\"table-header-filter-icon svelte-171ci2i\"></span>"), root_11$5 = /* @__PURE__ */ from_html("<span><!></span>"), root_12$5 = /* @__PURE__ */ from_html("<span class=\"table-header-filter svelte-171ci2i\"><!></span>"), root_13$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-asc\"></span>"), root_14$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-desc\"></span>"), root_15$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-idle\"></span>"), root_16$4 = /* @__PURE__ */ from_html("<div class=\"sort-button svelte-171ci2i\"><!></div>"), root_17$3 = /* @__PURE__ */ from_html("<!> <span class=\"table-inline-search-clear svelte-171ci2i\"><!></span>", 1), root_18$3 = /* @__PURE__ */ from_html("<span class=\"table-inline-search-trigger svelte-171ci2i\"><!></span>"), root_19$3 = /* @__PURE__ */ from_html("<span class=\"table-header-inline-search svelte-171ci2i\"><!></span>"), root_20$2 = /* @__PURE__ */ from_html("<th><span class=\"table-header-content svelte-171ci2i\"><!> <!> <!> <!></span></th>"), root_21$2 = /* @__PURE__ */ from_html("<tr><td class=\"table-empty svelte-171ci2i\"><!></td></tr>"), root_22$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-checkbox-col svelte-171ci2i\"><span><!></span></td>"), root_23$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-row-number-col svelte-171ci2i\"> </td>"), root_24$2 = /* @__PURE__ */ from_html("<td><div><!></div></td>"), root_25$1 = /* @__PURE__ */ from_html("<tr><!><!><!></tr>"), root_26$1 = /* @__PURE__ */ from_html("<div class=\"table-footer svelte-171ci2i\"><!></div>"), root_27 = /* @__PURE__ */ from_html("<span class=\"table-paginator-size svelte-171ci2i\"><!></span>"), root_28 = /* @__PURE__ */ from_html("<span class=\"table-paginator-controls svelte-171ci2i\"><!> <!></span>"), root_29 = /* @__PURE__ */ from_html("<div class=\"table-footer table-paginator svelte-171ci2i\"><span class=\"table-paginator-range svelte-171ci2i\"> </span> <!></div>"), root_30 = /* @__PURE__ */ from_html("<div><div><div class=\"table-scroll svelte-171ci2i\"><table class=\"svelte-171ci2i\"><!><thead><tr><!><!><!></tr></thead><tbody><!></tbody></table></div></div> <!></div>"), root_31 = /* @__PURE__ */ from_html("<!> <!> <!> <!>", 1), $$css$26 = {
|
|
15967
16097
|
hash: "svelte-171ci2i",
|
|
15968
16098
|
code: "\n /* ── Title ─────────────────────────────────────────────────────────────── */.table-title.svelte-171ci2i {margin:var(--table-title-margin, 0px 0px 12px 0px);font-size:var(--table-title-font-size, var(--table-tile-font-size, 18px));font-weight:var(--table-title-font-weight, 600);color:var(--table-title-color, #111827);font-family:var(--table-title-font-family);padding:var(--table-title-padding);}\n\n /* ── C2-3 Search bar ────────────────────────────────────────────────────── */.table-search.svelte-171ci2i {display:flex;align-items:center;gap:var(--table-search-gap, 8px);padding:var(--table-search-padding, 8px 12px);border:var(--table-search-border, 1px solid #e5e7eb);border-radius:var(--table-search-border-radius, var(--radius, 4px));background-color:var(--table-search-background, #ffffff);margin-bottom:var(--table-search-margin-bottom, 8px);}.table-search-icon.svelte-171ci2i {display:inline-flex;align-items:center;color:var(--table-search-icon-color, #9ca3af);flex-shrink:0;}.table-search-icon.svelte-171ci2i svg {width:var(--table-search-icon-size, 16px);height:var(--table-search-icon-size, 16px);}.table-search-input.svelte-171ci2i {flex:1;border:none;outline:none;background:transparent;font-size:var(--table-search-font-size, 14px);color:var(--table-search-color, #111827);min-width:0;}.table-search-input.svelte-171ci2i:focus-visible {outline:2px solid var(--table-focus-outline-color, #3b82f6);outline-offset:2px;border-radius:var(--table-search-focus-border-radius, var(--radius, 4px));}.table-search-input.svelte-171ci2i::placeholder {color:var(--table-search-placeholder-color, #9ca3af);}\n\n /* Hide browser-default clear button on search inputs */.table-search-input.svelte-171ci2i::-webkit-search-cancel-button {display:none;}.table-search-clear.svelte-171ci2i {display:inline-flex;align-items:center;padding:2px;border:none;background:transparent;color:var(--table-search-clear-color, #6b7280);cursor:pointer;border-radius:4px;flex-shrink:0;}.table-search-clear.svelte-171ci2i:hover {color:var(--table-search-clear-hover-color, #111827);background-color:var(--table-search-clear-hover-background, rgba(0, 0, 0, 0.05));}.table-search-clear.svelte-171ci2i svg {width:var(--table-search-clear-icon-size, 14px);height:var(--table-search-clear-icon-size, 14px);}.table-header-inline-search.svelte-171ci2i {display:inline-flex;align-items:center;gap:var(--table-inline-search-gap, 6px);margin-left:auto;}.table-inline-search-trigger.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: var(--table-inline-search-trigger-padding, 4px);--button-text-color: var(--table-inline-search-icon-color, #9ca3af);}.table-inline-search-trigger.svelte-171ci2i svg {width:var(--table-inline-search-icon-size, 16px);height:var(--table-inline-search-icon-size, 16px);display:block;}.table-inline-search-input.svelte-171ci2i {--input-margin: 0;width:var(--table-inline-search-input-width, 160px);}.table-inline-search-clear.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: var(--table-inline-search-clear-padding, 2px);--button-text-color: var(--table-inline-search-clear-color, #6b7280);}.table-inline-search-clear.svelte-171ci2i svg {width:var(--table-inline-search-clear-icon-size, 14px);height:var(--table-inline-search-clear-icon-size, 14px);}\n\n /* ── Container ──────────────────────────────────────────────────────────── */.table-container.svelte-171ci2i {border:var(--table-border, 1px solid #e5e7eb);border-radius:var(--table-border-radius, var(--radius, 4px));width:var(--table-container-width, 100%);overflow:hidden;}.scrollable-table.svelte-171ci2i {height:var(--table-container-height, 143px);overflow-y:auto;}.table-scroll-shell.svelte-171ci2i {position:relative;min-width:0;}\n\n /* Edge scrims: fade the clipped side of the table into its background so\n hidden columns read as \"more content this way\". Class-driven from live\n scroll state — never shown when the table fits. pointer-events: none\n keeps cells under the fade clickable; z-index 2 paints above sticky\n headers (z-index 1). */.table-scroll-shell.svelte-171ci2i::before,\n .table-scroll-shell.svelte-171ci2i::after {content:'';position:absolute;top:0;bottom:0;width:var(--table-scroll-scrim-width, 32px);opacity:0;pointer-events:none;transition:opacity 0.2s ease;z-index:2;}.table-scroll-shell.svelte-171ci2i::before {left:0;border-radius:var(--table-border-radius, var(--radius, 4px)) 0 0\n var(--table-border-radius, var(--radius, 4px));background:linear-gradient(to right, var(--table-scroll-scrim-color, #ffffff), transparent);}.table-scroll-shell.svelte-171ci2i::after {right:0;border-radius:0 var(--table-border-radius, var(--radius, 4px))\n var(--table-border-radius, var(--radius, 4px)) 0;background:linear-gradient(to left, var(--table-scroll-scrim-color, #ffffff), transparent);}.table-scroll-shell.scrollable-left.svelte-171ci2i::before {opacity:1;}.table-scroll-shell.scrollable-right.svelte-171ci2i::after {opacity:1;}.table-scroll.svelte-171ci2i {overflow-x:auto;min-width:0;scrollbar-width:thin;}table.svelte-171ci2i {width:var(--table-width, 100%);border-collapse:var(--table-border-collapse, collapse);}.table-header.svelte-171ci2i,\n .table-content.svelte-171ci2i {border:var(--table-inner-border, none);padding:var(--table-padding, 12px 16px);text-align:var(--table-text-align, left);width:var(--table-column-width);\n /* Wrap at word boundaries; only a single word wider than the column may\n split as a last resort. break-word (not anywhere) keeps each column's\n min-content width at its longest word, so ordinary labels never split\n mid-word — the old break-all default did. Opt back in per consumer via\n --table-word-break / --table-overflow-wrap. */word-break:var(--table-word-break, normal);overflow-wrap:var(--table-overflow-wrap, break-word);}.scrollable-content.svelte-171ci2i {overflow-y:auto;height:var(--scrollable-column-height, 20px);}.table-header.svelte-171ci2i {background-color:var(--table-header-background, var(--table-header-border-bgcolor, #f9fafb));font-size:var(--table-header-font-size, 13px);font-family:var(--table-header-font-family);font-weight:var(--table-header-font-weight, 600);letter-spacing:var(--table-header-letter-spacing, 0.02em);text-transform:var(--table-header-text-transform);color:var(--table-header-color, var(--table-header-font-color, #6b7280));border-bottom:var(--table-header-border, var(--table-inner-border, none));}.table-header-content.svelte-171ci2i {display:flex;align-items:center;gap:4px;justify-content:var(--table-header-justify, flex-start);}.table-header-label.svelte-171ci2i {text-decoration:var(--table-header-tooltip-underline, underline dotted);text-underline-offset:2px;cursor:help;}.table-header-label-plain.svelte-171ci2i {text-decoration:none;}.table-header-filter.svelte-171ci2i {display:inline-flex;align-items:center;}.table-header-filter-trigger.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: 2px;--button-margin: 0;--button-width: fit-content;--button-height: fit-content;--button-text-color: var(--table-sort-button-color, inherit);--button-border-radius: 4px;--button-hover-color: var(--table-sort-button-hover-background, rgba(0, 0, 0, 0.05));display:inline-flex;align-items:center;opacity:var(--table-sort-idle-opacity, 0.5);}.table-header-filter-trigger.svelte-171ci2i:hover {opacity:var(--table-sort-idle-hover-opacity, 0.85);}.table-header-filter-active.svelte-171ci2i {opacity:1;color:var(--table-filter-active-color, #2563eb);}.table-header-filter-icon.svelte-171ci2i svg {width:var(--table-sort-icon-size, 14px);height:var(--table-sort-icon-size, 14px);display:block;}.table-cell-clamp.svelte-171ci2i {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.table-header-sticky.svelte-171ci2i {position:sticky;top:var(--table-header-sticky-top, 0);z-index:1;}.table-content.svelte-171ci2i {background-color:var(--table-content-background, var(--table-content-border-bgcolor));font-size:var(--table-content-font-size, 14px);font-family:var(--table-content-font-family);color:var(--table-content-color, var(--table-content-font-color, #111827));}\n\n /* Column highlight (TableColumn.highlighted). Row hover keeps higher\n specificity and row selection is declared later at equal specificity, so\n both row states paint over the column wash. */.table-header.table-col-highlighted.svelte-171ci2i {background-color:var(\n --table-col-highlight-header-background,\n var(--table-col-highlight-background, #f3f9ff)\n );}.table-content.table-col-highlighted.svelte-171ci2i {background-color:var(--table-col-highlight-background, #f3f9ff);}.table-row.svelte-171ci2i {border-bottom:var(--table-row-border, 1px solid #f3f4f6);background-color:var(--table-row-background);}.table-row.svelte-171ci2i:last-child {border-bottom:var(--table-row-last-border, none);}.table-row.svelte-171ci2i:nth-child(even) {background-color:var(--table-row-alt-background, var(--table-row-background));}.table-row.svelte-171ci2i:hover {background-color:var(--table-row-hover-background);}.table-row.svelte-171ci2i:hover > .table-content:where(.svelte-171ci2i) {background-color:var(\n --table-row-hover-background,\n var(--table-content-background, var(--table-content-border-bgcolor))\n );}.table-row-clickable.svelte-171ci2i {cursor:pointer;}.table-row-clickable.svelte-171ci2i:focus-visible {outline:2px solid var(--table-focus-outline-color, #3b82f6);outline-offset:-2px;}\n\n /* C2-1: Selected row highlight */.table-row-selected.svelte-171ci2i {background-color:var(--table-row-selected-background, #eff6ff);}.table-row-selected.svelte-171ci2i > .table-content:where(.svelte-171ci2i) {background-color:var(--table-row-selected-background, #eff6ff);}\n\n /* Summary/period-total row (summaryRowIndex): both the row and its cells,\n since a themed --table-content-background would otherwise paint over a\n row-level background. Falls back to the regular cell background. */.table-summary-row.svelte-171ci2i {background-color:var(--table-summary-row-background, var(--table-content-background));}.table-summary-row.svelte-171ci2i > .table-content:where(.svelte-171ci2i) {background-color:var(--table-summary-row-background, var(--table-content-background));}\n\n /* ── C2-1 Checkbox column ───────────────────────────────────────────────── */.table-checkbox-col.svelte-171ci2i {width:var(--table-checkbox-col-width, 44px);padding:var(--table-checkbox-col-padding, 12px 12px);}.table-checkbox-box.svelte-171ci2i {display:inline-flex;align-items:center;justify-content:center;width:var(--table-checkbox-size, 18px);height:var(--table-checkbox-size, 18px);border:var(--table-checkbox-border, 2px solid #9ca3af);border-radius:var(--table-checkbox-border-radius, var(--radius, 4px));background-color:var(--table-checkbox-background, transparent);cursor:pointer;flex-shrink:0;transition:background-color 0.15s,\n border-color 0.15s;user-select:none;}.table-checkbox-box.svelte-171ci2i:focus-visible {outline:none;box-shadow:var(--table-checkbox-focus-ring, 0 0 0 3px rgba(59, 130, 246, 0.3));}.table-checkbox-box.svelte-171ci2i:not(.disabled):hover {border-color:var(--table-checkbox-hover-border-color, #6b7280);}.table-checkbox-box.checked.svelte-171ci2i {background-color:var(--table-checkbox-checked-background, #2563eb);border-color:var(--table-checkbox-checked-border-color, #2563eb);}.table-checkbox-box.indeterminate.svelte-171ci2i {background-color:var(--table-checkbox-indeterminate-background, #2563eb);border-color:var(--table-checkbox-indeterminate-border-color, #2563eb);}.table-checkbox-box.disabled.svelte-171ci2i {opacity:var(--table-checkbox-disabled-opacity, 0.4);cursor:not-allowed;}.table-checkbox-icon.svelte-171ci2i {display:inline-flex;align-items:center;justify-content:center;width:var(--table-checkbox-icon-size, 12px);height:var(--table-checkbox-icon-size, 12px);color:var(--table-checkbox-icon-color, #ffffff);}.table-checkbox-icon.svelte-171ci2i svg {width:100%;height:100%;}\n\n /* ── Sort button ────────────────────────────────────────────────────────── */.sort-button.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: 2px;--button-margin: 0;--button-text-color: var(--table-sort-button-color, inherit);--button-border-radius: 4px;--button-width: fit-content;--button-height: fit-content;--button-hover-color: var(--table-sort-button-hover-background, rgba(0, 0, 0, 0.05));--button-hover-text-color: var(\n --table-sort-button-hover-color,\n var(--table-sort-button-color, inherit)\n );display:inline-flex;align-items:center;line-height:1;}.sort-button.svelte-171ci2i .sort-icon {display:inline-flex;align-items:center;}\n\n /* The sorted-direction half paints via currentColor; without an explicit\n color it inherits the Button's text color (white on the default button\n theme), which disappears on light headers. Default to the design\n system's active blue. */.sort-button.svelte-171ci2i .sort-icon:not(.sort-icon-idle) {color:var(--table-sort-active-color, #1b85ff);}.sort-button.svelte-171ci2i .sort-icon svg {width:var(--table-sort-icon-size, 14px);height:var(--table-sort-icon-size, 14px);display:block;}\n\n /* Two-tone state painting. The shared sort-default.svg asset stays\n color-agnostic (fill=\"currentColor\", like every other icon asset); the\n state colors live here. All halves default to the inactive fill, then\n the sorted direction's half is released back to currentColor (the\n active color above). Path order in the asset is up-chevron first,\n down-chevron second. */.sort-button.svelte-171ci2i .sort-icon svg path {fill:var(--table-sort-inactive-color, #c7c7c7);}.sort-button.svelte-171ci2i .sort-icon-asc svg path:first-child,\n .sort-button.svelte-171ci2i .sort-icon-desc svg path:last-child {fill:currentColor;}\n\n /* The design system draws every sort state fully opaque — faintness comes\n from the glyph fills (inactive halves #C7C7C7, active direction\n currentColor), never from transparency. The opacity vars remain for\n consumers that prefer a fade but now default to solid; hover steps the\n inactive halves to the design system's hover gray. */.sort-button.svelte-171ci2i .sort-icon-idle {opacity:var(--table-sort-idle-opacity, 1);}.sort-button.svelte-171ci2i:hover .sort-icon-idle {opacity:var(--table-sort-idle-hover-opacity, 1);--table-sort-inactive-color: var(--table-sort-hover-color, #797979);}\n\n /* ── Empty ──────────────────────────────────────────────────────────────── */.table-empty.svelte-171ci2i {padding:var(--table-empty-padding, 32px 24px);text-align:center;color:var(--table-empty-color, #9ca3af);}\n\n /* ── Footer ─────────────────────────────────────────────────────────────── */.table-footer.svelte-171ci2i {border-top:var(--table-footer-border, 1px solid #e5e7eb);padding:var(--table-footer-padding, 8px 16px);background-color:var(--table-footer-background, transparent);}.table-paginator.svelte-171ci2i {display:flex;align-items:center;justify-content:space-between;gap:var(--table-paginator-gap, 12px);flex-wrap:wrap;}.table-paginator-range.svelte-171ci2i {font-size:var(--table-paginator-range-font-size, 13px);color:var(--table-paginator-range-color, #6b7280);font-variant-numeric:tabular-nums;}.table-paginator-controls.svelte-171ci2i {display:flex;align-items:center;gap:var(--table-paginator-gap, 12px);}.table-paginator-size.svelte-171ci2i {display:inline-flex;min-width:var(--table-paginator-size-width, 72px);}\n\n /* ── Toolbar (bulk actions) ─────────────────────────────────────────────── */.table-toolbar.svelte-171ci2i {display:flex;align-items:center;gap:var(--table-toolbar-gap, 12px);padding:var(--table-toolbar-padding, 8px 12px);border:var(--table-toolbar-border, 1px solid #e5e7eb);border-radius:var(--table-toolbar-border-radius, var(--radius, 4px));background-color:var(--table-toolbar-background, #f9fafb);margin-bottom:var(--table-toolbar-margin-bottom, 8px);}\n\n /* ── Row-number column ──────────────────────────────────────────────────── */.table-row-number-col.svelte-171ci2i {width:var(--table-row-number-col-width, 48px);color:var(--table-row-number-color, #6b7280);font-variant-numeric:tabular-nums;text-align:var(--table-row-number-align, var(--table-text-align, left));}\n\n /* ── Accessibility ──────────────────────────────────────────────────────── */.sr-only.svelte-171ci2i {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border-width:0;}"
|
|
15969
16099
|
};
|
|
@@ -15975,9 +16105,9 @@ function Table(e, t) {
|
|
|
15975
16105
|
x()?.(e, t, n);
|
|
15976
16106
|
}, X = (e, t, n, i) => {
|
|
15977
16107
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), x()?.(t, n, i));
|
|
15978
|
-
}, Z = /* @__PURE__ */ user_derived(() => typeof x() == "function"), Q = /* @__PURE__ */ user_derived(() => d() || f()),
|
|
16108
|
+
}, Z = /* @__PURE__ */ user_derived(() => typeof x() == "function"), Q = /* @__PURE__ */ user_derived(() => d() || f()), ee = /* @__PURE__ */ state(!1), $ = /* @__PURE__ */ state(!1), te = (e) => {
|
|
15979
16109
|
let t = () => {
|
|
15980
|
-
set(
|
|
16110
|
+
set(ee, e.scrollLeft > 2), set($, e.scrollLeft + e.clientWidth < e.scrollWidth - 2);
|
|
15981
16111
|
};
|
|
15982
16112
|
t(), e.addEventListener("scroll", t, { passive: !0 });
|
|
15983
16113
|
let n = new ResizeObserver(t);
|
|
@@ -16043,51 +16173,51 @@ function Table(e, t) {
|
|
|
16043
16173
|
25,
|
|
16044
16174
|
50,
|
|
16045
16175
|
100
|
|
16046
|
-
]), ke = (e) => {
|
|
16176
|
+
]), ke = /* @__PURE__ */ user_derived(() => (j()?.hideControls || j()?.hidePageSizeSelector) ?? !1), Ae = /* @__PURE__ */ user_derived(() => (j()?.hideControls || j()?.hideSteppers) ?? !1), je = (e) => {
|
|
16047
16177
|
set(ye, e, !0), j()?.onPageChange?.(e);
|
|
16048
|
-
},
|
|
16178
|
+
}, Me = (e) => {
|
|
16049
16179
|
set(be, e, !0), set(ye, 1), j()?.onPageSizeChange?.(e);
|
|
16050
|
-
},
|
|
16180
|
+
}, Ne = (e) => j() ? (get(Ce) - 1) * get(Se) + e + 1 : e + 1, Pe = /* @__PURE__ */ user_derived(() => j() && (j().mode ?? "client") === "client" ? (get(Ce) - 1) * get(Se) : 0), Fe = (e, t, n, i) => e.getRowId ? e.getRowId(t, n, i) : String(n), Ie = new SvelteSet(), Le = /* @__PURE__ */ user_derived(() => O()?.selectedIds ?? null), Re = /* @__PURE__ */ user_derived(() => get(Le) ?? Ie), ze = (e) => O()?.disabledRowIds?.has(e) ?? !1, Be = (e) => get(Re).has(e), Ve = /* @__PURE__ */ user_derived(() => {
|
|
16051
16181
|
let e = new Map(get(_e).map((e, t) => [e, t]));
|
|
16052
16182
|
return get(ve).map((t, n) => {
|
|
16053
16183
|
let i = e.get(t) ?? -1, a = i === -1 ? n : i;
|
|
16054
|
-
return O() && O().enabled !== !1 ?
|
|
16184
|
+
return O() && O().enabled !== !1 ? Fe(O(), t, a, get(H).get(t) ?? a) : String(a);
|
|
16055
16185
|
});
|
|
16056
|
-
}),
|
|
16057
|
-
let t = get(
|
|
16058
|
-
return t !== null && !
|
|
16059
|
-
})),
|
|
16060
|
-
if (!O() || O().enabled === !1 || get(
|
|
16061
|
-
let e = get(
|
|
16062
|
-
return e === 0 ? "none" : e === get(
|
|
16063
|
-
}),
|
|
16064
|
-
if (!(!O() || O().enabled === !1 ||
|
|
16065
|
-
if (get(
|
|
16066
|
-
let t = get(
|
|
16186
|
+
}), He = /* @__PURE__ */ user_derived(() => new Map(get(ve).map((e, t) => [e, get(Ve)[t]]))), Ue = /* @__PURE__ */ user_derived(() => !O() || O().enabled === !1 ? [] : get(Ee).flatMap((e) => {
|
|
16187
|
+
let t = get(He).get(e) ?? null;
|
|
16188
|
+
return t !== null && !ze(t) ? [t] : [];
|
|
16189
|
+
})), We = /* @__PURE__ */ user_derived(() => {
|
|
16190
|
+
if (!O() || O().enabled === !1 || get(Ue).length === 0) return "none";
|
|
16191
|
+
let e = get(Ue).filter((e) => get(Re).has(e)).length;
|
|
16192
|
+
return e === 0 ? "none" : e === get(Ue).length ? "all" : "some";
|
|
16193
|
+
}), Ge = (e) => {
|
|
16194
|
+
if (!(!O() || O().enabled === !1 || ze(e))) {
|
|
16195
|
+
if (get(Le)) {
|
|
16196
|
+
let t = get(Le).has(e), n = O().selectionMode === "single" ? new Set(t ? [] : [e]) : t ? new Set([...get(Le)].filter((t) => t !== e)) : new Set([...get(Le), e]);
|
|
16067
16197
|
O().onSelectionChange?.(n);
|
|
16068
16198
|
return;
|
|
16069
16199
|
}
|
|
16070
16200
|
if (O().selectionMode === "single") {
|
|
16071
|
-
let t =
|
|
16072
|
-
|
|
16073
|
-
} else
|
|
16074
|
-
O().onSelectionChange?.(new Set(
|
|
16201
|
+
let t = Ie.has(e);
|
|
16202
|
+
Ie.clear(), t || Ie.add(e);
|
|
16203
|
+
} else Ie.has(e) ? Ie.delete(e) : Ie.add(e);
|
|
16204
|
+
O().onSelectionChange?.(new Set(Ie));
|
|
16075
16205
|
}
|
|
16076
|
-
},
|
|
16206
|
+
}, Ke = () => {
|
|
16077
16207
|
if (!(!O() || O().enabled === !1)) {
|
|
16078
|
-
if (get(
|
|
16079
|
-
let e = new Set(get(
|
|
16208
|
+
if (get(Le)) {
|
|
16209
|
+
let e = new Set(get(Ue)), t = get(We) === "all" ? new Set([...get(Le)].filter((t) => !e.has(t))) : new Set([...get(Le), ...get(Ue)]);
|
|
16080
16210
|
O().onSelectionChange?.(t);
|
|
16081
16211
|
return;
|
|
16082
16212
|
}
|
|
16083
|
-
if (get(
|
|
16084
|
-
else for (let e of get(
|
|
16085
|
-
O().onSelectionChange?.(new Set(
|
|
16213
|
+
if (get(We) === "all") for (let e of get(Ue)) Ie.delete(e);
|
|
16214
|
+
else for (let e of get(Ue)) Ie.add(e);
|
|
16215
|
+
O().onSelectionChange?.(new Set(Ie));
|
|
16086
16216
|
}
|
|
16087
|
-
},
|
|
16217
|
+
}, qe = (e, t) => {
|
|
16088
16218
|
(e.key === " " || e.key === "Enter") && (e.preventDefault(), t());
|
|
16089
|
-
},
|
|
16090
|
-
var
|
|
16219
|
+
}, Je = /* @__PURE__ */ user_derived(() => !!O() && O().enabled !== !1), Ye = /* @__PURE__ */ user_derived(() => O()?.selectionMode === "single");
|
|
16220
|
+
var Xe = {
|
|
16091
16221
|
get tableTitle() {
|
|
16092
16222
|
return n();
|
|
16093
16223
|
},
|
|
@@ -16304,14 +16434,14 @@ function Table(e, t) {
|
|
|
16304
16434
|
set usePortal(e = !1) {
|
|
16305
16435
|
R(e), flushSync();
|
|
16306
16436
|
}
|
|
16307
|
-
},
|
|
16437
|
+
}, Ze = root_31(), Qe = first_child(Ze), $e = (e) => {
|
|
16308
16438
|
var t = root$25(), i = child(t, !0);
|
|
16309
16439
|
reset(t), template_effect(() => set_text(i, n())), append(e, t);
|
|
16310
16440
|
};
|
|
16311
|
-
if_block(
|
|
16312
|
-
typeof n() == "string" && n().length > 0 && e(
|
|
16441
|
+
if_block(Qe, (e) => {
|
|
16442
|
+
typeof n() == "string" && n().length > 0 && e($e);
|
|
16313
16443
|
});
|
|
16314
|
-
var
|
|
16444
|
+
var et = sibling(Qe, 2), tt = (e) => {
|
|
16315
16445
|
var t = root_2$18(), n = child(t);
|
|
16316
16446
|
html(n, () => search_default, !0), reset(n);
|
|
16317
16447
|
var i = sibling(n, 2);
|
|
@@ -16326,18 +16456,18 @@ function Table(e, t) {
|
|
|
16326
16456
|
set_attribute(i, "placeholder", k()?.placeholder ?? "Search…"), set_value(i, get(ne)), set_attribute(i, "data-pw", k()?.testId ?? null), set_attribute(i, "testid", k()?.testId ?? null), set_attribute(i, "aria-label", k()?.placeholder ?? "Search");
|
|
16327
16457
|
}), delegated("input", i, de), append(e, t);
|
|
16328
16458
|
};
|
|
16329
|
-
if_block(
|
|
16330
|
-
get(re) && !get(ce) && e(
|
|
16459
|
+
if_block(et, (e) => {
|
|
16460
|
+
get(re) && !get(ce) && e(tt);
|
|
16331
16461
|
});
|
|
16332
|
-
var
|
|
16462
|
+
var nt = sibling(et, 2), rt = (e) => {
|
|
16333
16463
|
var t = root_3$16();
|
|
16334
|
-
snippet(child(t), M, () => ({ selectedIds: new Set(get(
|
|
16464
|
+
snippet(child(t), M, () => ({ selectedIds: new Set(get(Re)) })), reset(t), append(e, t);
|
|
16335
16465
|
};
|
|
16336
|
-
if_block(
|
|
16337
|
-
typeof M() == "function" && get(
|
|
16466
|
+
if_block(nt, (e) => {
|
|
16467
|
+
typeof M() == "function" && get(Je) && get(Re).size > 0 && e(rt);
|
|
16338
16468
|
});
|
|
16339
|
-
var
|
|
16340
|
-
var t =
|
|
16469
|
+
var it = sibling(nt, 2), at = (e) => {
|
|
16470
|
+
var t = root_30(), n = child(t);
|
|
16341
16471
|
let i;
|
|
16342
16472
|
var a = child(n), s = child(a), c = child(s), l = (e) => {
|
|
16343
16473
|
var t = root_4$13(), n = child(t, !0);
|
|
@@ -16349,24 +16479,24 @@ function Table(e, t) {
|
|
|
16349
16479
|
var u = sibling(c), d = child(u), x = child(d), S = (e) => {
|
|
16350
16480
|
var t = root_6$11();
|
|
16351
16481
|
let n;
|
|
16352
|
-
var i = child(t), a = (e) =>
|
|
16482
|
+
var i = child(t), a = (e) => qe(e, Ke);
|
|
16353
16483
|
attribute_effect(i, (e, t) => ({
|
|
16354
16484
|
class: "table-checkbox-box",
|
|
16355
16485
|
role: "checkbox",
|
|
16356
16486
|
tabindex: 0,
|
|
16357
|
-
"aria-checked": get(
|
|
16487
|
+
"aria-checked": get(We) === "some" ? "mixed" : get(We) === "all",
|
|
16358
16488
|
"aria-label": "Select all rows",
|
|
16359
16489
|
"data-pw": typeof m() == "string" ? `${m()}-select-all` : null,
|
|
16360
16490
|
testID: typeof m() == "string" ? `${m()}-select-all` : null,
|
|
16361
16491
|
...e,
|
|
16362
16492
|
"aria-controls": t,
|
|
16363
|
-
onclick:
|
|
16493
|
+
onclick: Ke,
|
|
16364
16494
|
onkeydown: a,
|
|
16365
16495
|
[CLASS]: {
|
|
16366
|
-
checked: get(
|
|
16367
|
-
indeterminate: get(
|
|
16496
|
+
checked: get(We) === "all",
|
|
16497
|
+
indeterminate: get(We) === "some"
|
|
16368
16498
|
}
|
|
16369
|
-
}), [() => O()?.getRowAttributes ? O().getRowAttributes("__header__", -1) : {}, () => get(
|
|
16499
|
+
}), [() => O()?.getRowAttributes ? O().getRowAttributes("__header__", -1) : {}, () => get(Ue).map((e) => `row-checkbox-${e}`).join(" ")], void 0, void 0, "svelte-171ci2i");
|
|
16370
16500
|
var o = child(i), s = (e) => {
|
|
16371
16501
|
var t = root_5$11();
|
|
16372
16502
|
html(t, () => checkmark_default, !0), reset(t), append(e, t);
|
|
@@ -16375,7 +16505,7 @@ function Table(e, t) {
|
|
|
16375
16505
|
html(t, () => minus_default, !0), reset(t), append(e, t);
|
|
16376
16506
|
};
|
|
16377
16507
|
if_block(o, (e) => {
|
|
16378
|
-
get(
|
|
16508
|
+
get(We) === "all" ? e(s) : get(We) === "some" && e(c, 1);
|
|
16379
16509
|
}), reset(i), reset(t), template_effect(() => n = set_class(t, 1, "table-header table-checkbox-col svelte-171ci2i", null, n, { "table-header-sticky": get(Q) })), append(e, t);
|
|
16380
16510
|
}, C = (e) => {
|
|
16381
16511
|
var t = root_7$10();
|
|
@@ -16383,7 +16513,7 @@ function Table(e, t) {
|
|
|
16383
16513
|
template_effect(() => n = set_class(t, 1, "table-header table-checkbox-col svelte-171ci2i", null, n, { "table-header-sticky": get(Q) })), append(e, t);
|
|
16384
16514
|
};
|
|
16385
16515
|
if_block(x, (e) => {
|
|
16386
|
-
get(
|
|
16516
|
+
get(Je) && !get(Ye) ? e(S) : get(Je) && get(Ye) && e(C, 1);
|
|
16387
16517
|
});
|
|
16388
16518
|
var A = sibling(x), M = (e) => {
|
|
16389
16519
|
var t = root_8$9();
|
|
@@ -16599,24 +16729,25 @@ function Table(e, t) {
|
|
|
16599
16729
|
"table-col-highlighted": get(i)?.highlighted === !0
|
|
16600
16730
|
}), set_attribute(a, "data-pw", get(i)?.testId ?? null), set_attribute(a, "testid", get(i)?.testId ?? null), c = set_style(a, "", c, {
|
|
16601
16731
|
"text-align": get(i)?.align ?? null,
|
|
16732
|
+
width: get(i)?.width ?? null,
|
|
16602
16733
|
"max-width": get(i)?.maxWidth ?? null
|
|
16603
16734
|
}), u = set_style(l, "", u, { "justify-content": get(i)?.align === "right" ? "flex-end" : get(i)?.align === "center" ? "center" : null });
|
|
16604
16735
|
}), append(e, a);
|
|
16605
16736
|
}), reset(d), reset(u);
|
|
16606
16737
|
var z = sibling(u), V = child(z), U = (e) => {
|
|
16607
16738
|
var t = root_21$2(), n = child(t);
|
|
16608
|
-
snippet(child(n), b), reset(n), reset(t), template_effect(() => set_attribute(n, "colspan", get(B).length + +!!get(
|
|
16739
|
+
snippet(child(n), b), reset(n), reset(t), template_effect(() => set_attribute(n, "colspan", get(B).length + +!!get(Je) + +!!N())), append(e, t);
|
|
16609
16740
|
}, ie = (e) => {
|
|
16610
16741
|
var t = comment();
|
|
16611
|
-
each(first_child(t), 19, () => get(Ee), (e, t) => get(
|
|
16612
|
-
let i = /* @__PURE__ */ user_derived(() => get(n) + get(
|
|
16742
|
+
each(first_child(t), 19, () => get(Ee), (e, t) => get(He).get(e) ?? t, (e, t, n) => {
|
|
16743
|
+
let i = /* @__PURE__ */ user_derived(() => get(n) + get(Pe)), a = /* @__PURE__ */ user_derived(() => get(H).get(get(t)) ?? get(i)), s = /* @__PURE__ */ user_derived(() => get(He).get(get(t)) ?? String(get(i))), c = /* @__PURE__ */ user_derived(() => get(Je) && ze(get(s))), l = /* @__PURE__ */ user_derived(() => get(Je) && Be(get(s)));
|
|
16613
16744
|
var u = root_25$1();
|
|
16614
16745
|
let d;
|
|
16615
16746
|
var f = child(u), h = (e) => {
|
|
16616
16747
|
var t = root_22$2(), n = child(t), a = (e) => {
|
|
16617
|
-
e.stopPropagation(),
|
|
16748
|
+
e.stopPropagation(), Ge(get(s));
|
|
16618
16749
|
}, o = (e) => {
|
|
16619
|
-
e.stopPropagation(),
|
|
16750
|
+
e.stopPropagation(), qe(e, () => Ge(get(s)));
|
|
16620
16751
|
};
|
|
16621
16752
|
attribute_effect(n, (e) => ({
|
|
16622
16753
|
class: "table-checkbox-box",
|
|
@@ -16645,11 +16776,11 @@ function Table(e, t) {
|
|
|
16645
16776
|
}), reset(n), reset(t), append(e, t);
|
|
16646
16777
|
};
|
|
16647
16778
|
if_block(f, (e) => {
|
|
16648
|
-
get(
|
|
16779
|
+
get(Je) && e(h);
|
|
16649
16780
|
});
|
|
16650
16781
|
var g = sibling(f), _ = (e) => {
|
|
16651
16782
|
var t = root_23$2(), i = child(t, !0);
|
|
16652
|
-
reset(t), template_effect((e) => set_text(i, e), [() =>
|
|
16783
|
+
reset(t), template_effect((e) => set_text(i, e), [() => Ne(get(n))]), append(e, t);
|
|
16653
16784
|
};
|
|
16654
16785
|
if_block(g, (e) => {
|
|
16655
16786
|
N() && e(_);
|
|
@@ -16692,6 +16823,7 @@ function Table(e, t) {
|
|
|
16692
16823
|
}), reset(h), reset(d), template_effect((e, t, n) => {
|
|
16693
16824
|
f = set_class(d, 1, "table-content svelte-171ci2i", null, f, { "table-col-highlighted": get(c)?.highlighted === !0 }), set_attribute(d, "data-pw", e), set_attribute(d, "testid", t), set_attribute(d, "title", n), m = set_style(d, "", m, {
|
|
16694
16825
|
"text-align": get(c)?.align ?? null,
|
|
16826
|
+
width: get(c)?.width ?? null,
|
|
16695
16827
|
"max-width": get(c)?.maxWidth ?? null
|
|
16696
16828
|
}), g = set_class(h, 1, clsx(p() ? "scrollable-content" : ""), "svelte-171ci2i", g, { "table-cell-clamp": get(c)?.maxWidth && get(u) }), set_attribute(h, "data-pw", get(c)?.testId ? `${get(c).testId}-cell-${get(i)}` : null), set_attribute(h, "testid", get(c)?.testId ? `${get(c).testId}-cell-${get(i)}` : null);
|
|
16697
16829
|
}, [
|
|
@@ -16719,80 +16851,94 @@ function Table(e, t) {
|
|
|
16719
16851
|
var t = root_26$1();
|
|
16720
16852
|
snippet(child(t), T), reset(t), append(e, t);
|
|
16721
16853
|
}, me = (e) => {
|
|
16722
|
-
var t =
|
|
16854
|
+
var t = root_29(), n = child(t), i = child(n, !0);
|
|
16723
16855
|
reset(n);
|
|
16724
|
-
var a = sibling(n, 2), o =
|
|
16725
|
-
var t =
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
16738
|
-
|
|
16739
|
-
|
|
16740
|
-
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
|
|
16745
|
-
|
|
16746
|
-
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
reset(t), append(e, t);
|
|
16751
|
-
};
|
|
16752
|
-
if_block(o, (e) => {
|
|
16753
|
-
get(Oe).length > 0 && e(s);
|
|
16754
|
-
});
|
|
16755
|
-
var c = sibling(o, 2);
|
|
16756
|
-
{
|
|
16757
|
-
let e = /* @__PURE__ */ user_derived(() => j().hasMore ?? !1), t = /* @__PURE__ */ user_derived(() => j().isLoading ?? !1), n = /* @__PURE__ */ user_derived(() => j().testId && `${j().testId}-pages`);
|
|
16758
|
-
Pagination(c, {
|
|
16759
|
-
get totalPages() {
|
|
16760
|
-
return get(Te);
|
|
16761
|
-
},
|
|
16762
|
-
get currentPage() {
|
|
16763
|
-
return get(Ce);
|
|
16764
|
-
},
|
|
16765
|
-
get hasMore() {
|
|
16766
|
-
return get(e);
|
|
16767
|
-
},
|
|
16768
|
-
get disabled() {
|
|
16769
|
-
return get(t);
|
|
16770
|
-
},
|
|
16771
|
-
get testId() {
|
|
16772
|
-
return get(n);
|
|
16773
|
-
},
|
|
16774
|
-
onchange: ke,
|
|
16775
|
-
get onLoadMore() {
|
|
16776
|
-
return j().onLoadMore;
|
|
16856
|
+
var a = sibling(n, 2), o = (e) => {
|
|
16857
|
+
var t = root_28(), n = child(t), i = (e) => {
|
|
16858
|
+
var t = root_27(), n = child(t);
|
|
16859
|
+
{
|
|
16860
|
+
let e = /* @__PURE__ */ user_derived(() => get(Oe).map((e) => ({
|
|
16861
|
+
id: String(e),
|
|
16862
|
+
label: String(e)
|
|
16863
|
+
}))), t = /* @__PURE__ */ user_derived(() => [String(get(Se))]), i = /* @__PURE__ */ user_derived(() => j().isLoading ?? !1), a = /* @__PURE__ */ user_derived(() => j().testId && `${j().testId}-page-size`);
|
|
16864
|
+
Select(n, {
|
|
16865
|
+
get items() {
|
|
16866
|
+
return get(e);
|
|
16867
|
+
},
|
|
16868
|
+
get value() {
|
|
16869
|
+
return get(t);
|
|
16870
|
+
},
|
|
16871
|
+
get disabled() {
|
|
16872
|
+
return get(i);
|
|
16873
|
+
},
|
|
16874
|
+
usePortal: !0,
|
|
16875
|
+
get testId() {
|
|
16876
|
+
return get(a);
|
|
16877
|
+
},
|
|
16878
|
+
onchange: (e) => {
|
|
16879
|
+
e.length > 0 && Me(Number(e[0]));
|
|
16880
|
+
}
|
|
16881
|
+
});
|
|
16777
16882
|
}
|
|
16883
|
+
reset(t), append(e, t);
|
|
16884
|
+
};
|
|
16885
|
+
if_block(n, (e) => {
|
|
16886
|
+
!get(ke) && get(Oe).length > 0 && e(i);
|
|
16778
16887
|
});
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16888
|
+
var a = sibling(n, 2), o = (e) => {
|
|
16889
|
+
{
|
|
16890
|
+
let t = /* @__PURE__ */ user_derived(() => j().hasMore ?? !1), n = /* @__PURE__ */ user_derived(() => j().isLoading ?? !1), i = /* @__PURE__ */ user_derived(() => j().testId && `${j().testId}-pages`);
|
|
16891
|
+
Pagination(e, {
|
|
16892
|
+
get totalPages() {
|
|
16893
|
+
return get(Te);
|
|
16894
|
+
},
|
|
16895
|
+
get currentPage() {
|
|
16896
|
+
return get(Ce);
|
|
16897
|
+
},
|
|
16898
|
+
get hasMore() {
|
|
16899
|
+
return get(t);
|
|
16900
|
+
},
|
|
16901
|
+
get disabled() {
|
|
16902
|
+
return get(n);
|
|
16903
|
+
},
|
|
16904
|
+
get testId() {
|
|
16905
|
+
return get(i);
|
|
16906
|
+
},
|
|
16907
|
+
get prevButtonTestId() {
|
|
16908
|
+
return j().prevButtonTestId;
|
|
16909
|
+
},
|
|
16910
|
+
get nextButtonTestId() {
|
|
16911
|
+
return j().nextButtonTestId;
|
|
16912
|
+
},
|
|
16913
|
+
onchange: je,
|
|
16914
|
+
get onLoadMore() {
|
|
16915
|
+
return j().onLoadMore;
|
|
16916
|
+
}
|
|
16917
|
+
});
|
|
16918
|
+
}
|
|
16919
|
+
};
|
|
16920
|
+
if_block(a, (e) => {
|
|
16921
|
+
get(Ae) || e(o);
|
|
16922
|
+
}), reset(t), append(e, t);
|
|
16923
|
+
};
|
|
16924
|
+
if_block(a, (e) => {
|
|
16925
|
+
(!get(ke) || !get(Ae)) && e(o);
|
|
16926
|
+
}), reset(t), template_effect(() => {
|
|
16927
|
+
set_attribute(t, "data-pw", j().testId ?? null), set_attribute(t, "testid", j().testId ?? null), set_attribute(n, "data-pw", j().rangeTestId ?? (typeof m() == "string" ? `${m()}-paginator-range` : j()?.testId ? `${j().testId}-range` : null)), set_attribute(n, "testid", j().rangeTestId ?? (typeof m() == "string" ? `${m()}-paginator-range` : j()?.testId ? `${j().testId}-range` : null)), set_text(i, get(De));
|
|
16782
16928
|
}), append(e, t);
|
|
16783
16929
|
};
|
|
16784
16930
|
if_block(ae, (e) => {
|
|
16785
|
-
typeof T() == "function" ? e(de) : j() && (get(Te) > 1 || j().hasMore) && e(me, 1);
|
|
16931
|
+
typeof T() == "function" ? e(de) : j() && (get(Te) > 1 || j().hasMore || j().showFooterOnSinglePage || get(ke) && get(Ae)) && e(me, 1);
|
|
16786
16932
|
}), reset(t), template_effect(() => {
|
|
16787
16933
|
set_class(t, 1, `table-container ${f() ? "scrollable-table" : ""} ${w() ?? "" ?? ""}`, "svelte-171ci2i"), set_attribute(t, "data-pw", m()), set_attribute(t, "testid", m()), i = set_class(n, 1, "table-scroll-shell svelte-171ci2i", null, i, {
|
|
16788
|
-
"scrollable-left": get(
|
|
16789
|
-
"scrollable-right": get(
|
|
16934
|
+
"scrollable-left": get(ee),
|
|
16935
|
+
"scrollable-right": get($)
|
|
16790
16936
|
});
|
|
16791
16937
|
}), append(e, t);
|
|
16792
16938
|
};
|
|
16793
|
-
return if_block(
|
|
16794
|
-
(get(B).length !== 0 || get(V).length !== 0) && e(
|
|
16795
|
-
}), append(e,
|
|
16939
|
+
return if_block(it, (e) => {
|
|
16940
|
+
(get(B).length !== 0 || get(V).length !== 0) && e(at);
|
|
16941
|
+
}), append(e, Ze), pop(Xe);
|
|
16796
16942
|
}
|
|
16797
16943
|
delegate([
|
|
16798
16944
|
"input",
|
|
@@ -17601,7 +17747,7 @@ var TIME_DISPLAY_PATTERN = /^(1[0-2]|0?[1-9]):([0-5][0-9])\s?(AM|PM)$/i, pad = (
|
|
|
17601
17747
|
};
|
|
17602
17748
|
function DateRangePicker(e, t) {
|
|
17603
17749
|
push(t, !0), append_styles$1(e, $$css$23);
|
|
17604
|
-
let n = "<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"6.25\" stroke=\"currentColor\" stroke-width=\"1.5\"/><path d=\"M8 4.5V8l2.25 1.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", i = prop(t, "rangeStart", 15, null), a = prop(t, "rangeEnd", 15, null), o = prop(t, "value", 15, null), s = prop(t, "mode", 7, "range"), c = prop(t, "minDate", 7, null), l = prop(t, "maxDate", 7, null), u = prop(t, "disabledDates", 23, () => []), d = prop(t, "maxRangeDays", 7, null), f = prop(t, "presets", 7, null), p = prop(t, "presetCheckmark", 7, !1), m = prop(t, "showDateInputs", 7, !1), h = prop(t, "showTimeSelection", 7, !1), g = prop(t, "timeSelectionLayout", 7, "toggle"), _ = prop(t, "presetToggle", 7, !1), v = prop(t, "placeholder", 7, "Select date"), y = prop(t, "dualMonth", 7), b = prop(t, "timePicker", 7), x = prop(t, "align", 7, "left"), S = prop(t, "compareStart", 15, null), C = prop(t, "compareEnd", 15, null), w = prop(t, "compareCalendar", 7), T = prop(t, "weekStartsOn", 7, 0), E = prop(t, "locale", 7), D = prop(t, "testId", 7), O = prop(t, "classes", 7), k = prop(t, "triggerSnippet", 7), A = prop(t, "triggerIcon", 7), j = prop(t, "clearable", 7, !1), M = prop(t, "initialPresetLabel", 7), N = prop(t, "compareTrigger", 7), P = prop(t, "openCompare", 15, !1), F = prop(t, "onapply", 7), I = prop(t, "onapplysingle", 7), L = prop(t, "onapplycompare", 7), R = prop(t, "oncancel", 7), z = prop(t, "onopentoggle", 7), B = prop(t, "onclear", 7), V = /* @__PURE__ */ user_derived(() => typeof y() == "boolean" ? y() : s() === "range"), H = /* @__PURE__ */ state(null), U = /* @__PURE__ */ state(null), W = /* @__PURE__ */ state(null), G = /* @__PURE__ */ state(null), K = /* @__PURE__ */ state(null), q = /* @__PURE__ */ state(null), J = /* @__PURE__ */ state("12:00 AM"), Y = /* @__PURE__ */ state("11:59 PM"), X = /* @__PURE__ */ state(!1), Z = /* @__PURE__ */ state(null), Q = /* @__PURE__ */ state(null),
|
|
17750
|
+
let n = "<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"6.25\" stroke=\"currentColor\" stroke-width=\"1.5\"/><path d=\"M8 4.5V8l2.25 1.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", i = prop(t, "rangeStart", 15, null), a = prop(t, "rangeEnd", 15, null), o = prop(t, "value", 15, null), s = prop(t, "mode", 7, "range"), c = prop(t, "minDate", 7, null), l = prop(t, "maxDate", 7, null), u = prop(t, "disabledDates", 23, () => []), d = prop(t, "maxRangeDays", 7, null), f = prop(t, "presets", 7, null), p = prop(t, "presetCheckmark", 7, !1), m = prop(t, "showDateInputs", 7, !1), h = prop(t, "showTimeSelection", 7, !1), g = prop(t, "timeSelectionLayout", 7, "toggle"), _ = prop(t, "presetToggle", 7, !1), v = prop(t, "placeholder", 7, "Select date"), y = prop(t, "dualMonth", 7), b = prop(t, "timePicker", 7), x = prop(t, "align", 7, "left"), S = prop(t, "compareStart", 15, null), C = prop(t, "compareEnd", 15, null), w = prop(t, "compareCalendar", 7), T = prop(t, "weekStartsOn", 7, 0), E = prop(t, "locale", 7), D = prop(t, "testId", 7), O = prop(t, "classes", 7), k = prop(t, "triggerSnippet", 7), A = prop(t, "triggerIcon", 7), j = prop(t, "clearable", 7, !1), M = prop(t, "initialPresetLabel", 7), N = prop(t, "compareTrigger", 7), P = prop(t, "openCompare", 15, !1), F = prop(t, "onapply", 7), I = prop(t, "onapplysingle", 7), L = prop(t, "onapplycompare", 7), R = prop(t, "oncancel", 7), z = prop(t, "onopentoggle", 7), B = prop(t, "onclear", 7), V = /* @__PURE__ */ user_derived(() => typeof y() == "boolean" ? y() : s() === "range"), H = /* @__PURE__ */ state(null), U = /* @__PURE__ */ state(null), W = /* @__PURE__ */ state(null), G = /* @__PURE__ */ state(null), K = /* @__PURE__ */ state(null), q = /* @__PURE__ */ state(null), J = /* @__PURE__ */ state("12:00 AM"), Y = /* @__PURE__ */ state("11:59 PM"), X = /* @__PURE__ */ state(!1), Z = /* @__PURE__ */ state(null), Q = /* @__PURE__ */ state(null), ee = /* @__PURE__ */ user_derived(() => get(Z) ?? (get(H) === null ? "" : Ce(get(H)))), $ = /* @__PURE__ */ user_derived(() => get(Q) ?? (get(U) === null ? "" : Ce(get(U)))), te = /* @__PURE__ */ user_derived(() => h() && g() === "inline" && s() === "range"), ne = 1440 * 60 * 1e3;
|
|
17605
17751
|
function re(e) {
|
|
17606
17752
|
return typeof u() == "function" ? u()(e) : u().some((t) => at(t, e));
|
|
17607
17753
|
}
|
|
@@ -17756,12 +17902,12 @@ function DateRangePicker(e, t) {
|
|
|
17756
17902
|
return n === null ? !0 : !((e === "start" ? t.getTime() > n.getTime() : t.getTime() < n.getTime()) || d() !== null && Math.abs(Math.round((t.getTime() - n.getTime()) / ne)) + 1 > d());
|
|
17757
17903
|
}
|
|
17758
17904
|
let qe = /* @__PURE__ */ user_derived(() => {
|
|
17759
|
-
if (get($).trim() === "") return !0;
|
|
17760
|
-
let e = parseDateDisplay(get($));
|
|
17761
|
-
return e !== null && Ke("start", e);
|
|
17762
|
-
}), Je = /* @__PURE__ */ user_derived(() => {
|
|
17763
17905
|
if (get(ee).trim() === "") return !0;
|
|
17764
17906
|
let e = parseDateDisplay(get(ee));
|
|
17907
|
+
return e !== null && Ke("start", e);
|
|
17908
|
+
}), Je = /* @__PURE__ */ user_derived(() => {
|
|
17909
|
+
if (get($).trim() === "") return !0;
|
|
17910
|
+
let e = parseDateDisplay(get($));
|
|
17765
17911
|
return e !== null && Ke("end", e);
|
|
17766
17912
|
});
|
|
17767
17913
|
function Ye(e) {
|
|
@@ -18214,7 +18360,7 @@ function DateRangePicker(e, t) {
|
|
|
18214
18360
|
html(y, () => n, !0), reset(y);
|
|
18215
18361
|
var b = sibling(y, 2);
|
|
18216
18362
|
remove_input_defaults(b), reset(_), reset(p), template_effect(() => {
|
|
18217
|
-
o = set_class(a, 1, "drp-date-input svelte-gpybdi", null, o, { "drp-date-input-invalid": !get(qe) }), set_value(s, get(
|
|
18363
|
+
o = set_class(a, 1, "drp-date-input svelte-gpybdi", null, o, { "drp-date-input-invalid": !get(qe) }), set_value(s, get(ee)), set_attribute(s, "aria-invalid", !get(qe)), set_attribute(s, "data-pw", D() ? `${D()}-start-date` : null), set_attribute(s, "testid", D() ? `${D()}-start-date` : null), l = set_class(c, 1, "drp-time-input drp-time-input-inline svelte-gpybdi", null, l, { "drp-time-input-invalid": !get(we) }), set_attribute(d, "aria-invalid", !get(we)), set_attribute(d, "data-pw", D() ? `${D()}-start-time` : null), set_attribute(d, "testid", D() ? `${D()}-start-time` : null), h = set_class(m, 1, "drp-date-input svelte-gpybdi", null, h, { "drp-date-input-invalid": !get(Je) }), set_value(g, get($)), set_attribute(g, "aria-invalid", !get(Je)), set_attribute(g, "data-pw", D() ? `${D()}-end-date` : null), set_attribute(g, "testid", D() ? `${D()}-end-date` : null), v = set_class(_, 1, "drp-time-input drp-time-input-inline svelte-gpybdi", null, v, { "drp-time-input-invalid": !get(Te) }), set_attribute(b, "aria-invalid", !get(Te)), set_attribute(b, "data-pw", D() ? `${D()}-end-time` : null), set_attribute(b, "testid", D() ? `${D()}-end-time` : null);
|
|
18218
18364
|
}), delegated("input", s, (e) => Qe(e, "start")), event("blur", s, () => $e("start")), delegated("keydown", s, (e) => et(e, "start")), bind_value(d, () => get(J), (e) => set(J, e)), delegated("input", g, (e) => Qe(e, "end")), event("blur", g, () => $e("end")), delegated("keydown", g, (e) => et(e, "end")), bind_value(b, () => get(Y), (e) => set(Y, e)), append(e, t);
|
|
18219
18365
|
}, c = (e) => {
|
|
18220
18366
|
var t = root_11$4(), i = first_child(t);
|
|
@@ -18238,7 +18384,7 @@ function DateRangePicker(e, t) {
|
|
|
18238
18384
|
if_block(d, (e) => {
|
|
18239
18385
|
h() && e(f);
|
|
18240
18386
|
}), template_effect(() => {
|
|
18241
|
-
a = set_class(i, 1, "drp-date-input svelte-gpybdi", null, a, { "drp-date-input-invalid": !get(qe) }), set_value(o, get(
|
|
18387
|
+
a = set_class(i, 1, "drp-date-input svelte-gpybdi", null, a, { "drp-date-input-invalid": !get(qe) }), set_value(o, get(ee)), set_attribute(o, "aria-invalid", !get(qe)), set_attribute(o, "data-pw", D() ? `${D()}-start-date` : null), set_attribute(o, "testid", D() ? `${D()}-start-date` : null), l = set_class(c, 1, "drp-date-input svelte-gpybdi", null, l, { "drp-date-input-invalid": !get(Je) }), set_value(u, get($)), set_attribute(u, "aria-invalid", !get(Je)), set_attribute(u, "data-pw", D() ? `${D()}-end-date` : null), set_attribute(u, "testid", D() ? `${D()}-end-date` : null);
|
|
18242
18388
|
}), delegated("input", o, (e) => Qe(e, "start")), event("blur", o, () => $e("start")), delegated("keydown", o, (e) => et(e, "start")), delegated("input", u, (e) => Qe(e, "end")), event("blur", u, () => $e("end")), delegated("keydown", u, (e) => et(e, "end")), append(e, t);
|
|
18243
18389
|
};
|
|
18244
18390
|
if_block(o, (e) => {
|
|
@@ -22633,7 +22779,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22633
22779
|
S = C[b].points, x = S[y - 1], g = S[y], w = g.partialLength;
|
|
22634
22780
|
}
|
|
22635
22781
|
f = p.length, l = 0, u = 0;
|
|
22636
|
-
var j = e.finalSize * 1.2 * .714, M = !0, N, P, F, I = i.length, L, R, z = -1, B, V, H, U = h, W = b, G = y, K = -1, q, J, Y, X, Z, Q,
|
|
22782
|
+
var j = e.finalSize * 1.2 * .714, M = !0, N, P, F, I = i.length, L, R, z = -1, B, V, H, U = h, W = b, G = y, K = -1, q, J, Y, X, Z, Q, ee, $, te = "", ne = this.defaultPropsArray, re;
|
|
22637
22783
|
if (e.j === 2 || e.j === 1) {
|
|
22638
22784
|
var ie = 0, ae = 0, oe = e.j === 2 ? -.5 : -1, se = 0, ce = !0;
|
|
22639
22785
|
for (d = 0; d < f; d += 1) if (p[d].n) {
|
|
@@ -22646,7 +22792,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22646
22792
|
for (ie && (ie += ae); se < d;) p[se].animatorJustifyOffset = ie, se += 1;
|
|
22647
22793
|
}
|
|
22648
22794
|
for (d = 0; d < f; d += 1) {
|
|
22649
|
-
if (o.reset(), q = 1, p[d].n) l = 0, u += e.yOffset, u += +!!M, h = U, M = !1, this._hasMaskedPath && (b = W, y = G, S = C[b].points, x = S[y - 1], g = S[y], w = g.partialLength, _ = 0), te = "",
|
|
22795
|
+
if (o.reset(), q = 1, p[d].n) l = 0, u += e.yOffset, u += +!!M, h = U, M = !1, this._hasMaskedPath && (b = W, y = G, S = C[b].points, x = S[y - 1], g = S[y], w = g.partialLength, _ = 0), te = "", $ = "", Q = "", re = "", ne = this.defaultPropsArray;
|
|
22650
22796
|
else {
|
|
22651
22797
|
if (this._hasMaskedPath) {
|
|
22652
22798
|
if (K !== p[d].line) {
|
|
@@ -22690,7 +22836,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22690
22836
|
}
|
|
22691
22837
|
}
|
|
22692
22838
|
for (F = 0; F < I; F += 1) N = i[F].a, N.p.propType && (P = i[F].s, R = P.getMult(p[d].anIndexes[F], a.a[F].s.totalChars), this._hasMaskedPath ? R.length ? o.translate(0, N.p.v[1] * R[0], -N.p.v[2] * R[1]) : o.translate(0, N.p.v[1] * R, -N.p.v[2] * R) : R.length ? o.translate(N.p.v[0] * R[0], N.p.v[1] * R[1], -N.p.v[2] * R[2]) : o.translate(N.p.v[0] * R, N.p.v[1] * R, -N.p.v[2] * R));
|
|
22693
|
-
if (e.strokeWidthAnim && (Q = Y < 0 ? 0 : Y), e.strokeColorAnim && (
|
|
22839
|
+
if (e.strokeWidthAnim && (Q = Y < 0 ? 0 : Y), e.strokeColorAnim && (ee = "rgb(" + Math.round(J[0] * 255) + "," + Math.round(J[1] * 255) + "," + Math.round(J[2] * 255) + ")"), e.fillColorAnim && e.fc && ($ = "rgb(" + Math.round(X[0] * 255) + "," + Math.round(X[1] * 255) + "," + Math.round(X[2] * 255) + ")"), this._hasMaskedPath) {
|
|
22694
22840
|
if (o.translate(0, -e.ls), o.translate(0, n[1] * j * .01 + u, 0), this._pathData.p.v) {
|
|
22695
22841
|
D = (g.point[1] - x.point[1]) / (g.point[0] - x.point[0]);
|
|
22696
22842
|
var ue = Math.atan(D) * 180 / Math.PI;
|
|
@@ -22728,7 +22874,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22728
22874
|
o.props[15]
|
|
22729
22875
|
], re = q;
|
|
22730
22876
|
}
|
|
22731
|
-
c <= d ? (L = new LetterProps(re, Q,
|
|
22877
|
+
c <= d ? (L = new LetterProps(re, Q, ee, $, te, ne), this.renderedLetters.push(L), c += 1, this.lettersChangedFlag = !0) : (L = this.renderedLetters[d], this.lettersChangedFlag = L.update(re, Q, ee, $, te, ne) || this.lettersChangedFlag);
|
|
22732
22878
|
}
|
|
22733
22879
|
}
|
|
22734
22880
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -25925,9 +26071,9 @@ create_custom_element(DeltaIndicator, {
|
|
|
25925
26071
|
}, [], [], { mode: "open" });
|
|
25926
26072
|
//#endregion
|
|
25927
26073
|
//#region src/lib/StatCard/StatCard.svelte
|
|
25928
|
-
var root$19 = /* @__PURE__ */ from_html("<span class=\"statcard-title-tooltip-trigger svelte-pfmus\"><span class=\"statcard-title statcard-title-tooltip svelte-pfmus\"> </span> <span class=\"statcard-tooltip-icon svelte-pfmus\" aria-hidden=\"true\"><svg viewBox=\"0 0 16 16\" fill=\"none\" class=\"svelte-pfmus\"><circle cx=\"8\" cy=\"8\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.2\"></circle><rect x=\"7.25\" y=\"6.9\" width=\"1.5\" height=\"4.1\" rx=\"0.75\" fill=\"currentColor\"></rect><circle cx=\"8\" cy=\"4.8\" r=\"0.9\" fill=\"currentColor\"></circle></svg></span></span>"), root_1$18 = /* @__PURE__ */ from_html("<div class=\"statcard-title svelte-pfmus\"> </div>"), root_2$13 = /* @__PURE__ */ from_html("<div class=\"statcard-header-checkbox svelte-pfmus\"><!></div>"), root_3$12 = /* @__PURE__ */ from_html("<div class=\"statcard-header-right svelte-pfmus\"><!></div>"), root_4$10 = /* @__PURE__ */ from_html("<div class=\"statcard-header svelte-pfmus\"><div class=\"statcard-header-left svelte-pfmus\"><!> <!></div> <!></div>"), root_5$9 = /* @__PURE__ */ from_html("<div class=\"statcard-row-divider svelte-pfmus\"></div>"), root_6$9 = /* @__PURE__ */ from_html("<div class=\"statcard-row-heading statcard-row-heading-tooltip svelte-pfmus\"> </div>"), root_7$8 = /* @__PURE__ */ from_html("<div class=\"statcard-row-heading svelte-pfmus\"> </div>"), root_8$7 = /* @__PURE__ */ from_html("<div class=\"statcard-row-heading-wrap svelte-pfmus\"><!></div>"), root_9$5 = /* @__PURE__ */ from_html("<div class=\"statcard-comparison-value svelte-pfmus\"> </div>"), root_10$4 = /* @__PURE__ */ from_html("<div class=\"statcard-delta statcard-delta-na svelte-pfmus\">N/A</div>"), root_11$3 = /* @__PURE__ */ from_html("<div class=\"statcard-row-
|
|
26074
|
+
var root$19 = /* @__PURE__ */ from_html("<span class=\"statcard-title-tooltip-trigger svelte-pfmus\"><span class=\"statcard-title statcard-title-tooltip svelte-pfmus\"> </span> <span class=\"statcard-tooltip-icon svelte-pfmus\" aria-hidden=\"true\"><svg viewBox=\"0 0 16 16\" fill=\"none\" class=\"svelte-pfmus\"><circle cx=\"8\" cy=\"8\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.2\"></circle><rect x=\"7.25\" y=\"6.9\" width=\"1.5\" height=\"4.1\" rx=\"0.75\" fill=\"currentColor\"></rect><circle cx=\"8\" cy=\"4.8\" r=\"0.9\" fill=\"currentColor\"></circle></svg></span></span>"), root_1$18 = /* @__PURE__ */ from_html("<div class=\"statcard-title svelte-pfmus\"> </div>"), root_2$13 = /* @__PURE__ */ from_html("<div class=\"statcard-header-checkbox svelte-pfmus\"><!></div>"), root_3$12 = /* @__PURE__ */ from_html("<div class=\"statcard-header-right svelte-pfmus\"><!></div>"), root_4$10 = /* @__PURE__ */ from_html("<div class=\"statcard-header svelte-pfmus\"><div class=\"statcard-header-left svelte-pfmus\"><!> <!></div> <!></div>"), root_5$9 = /* @__PURE__ */ from_html("<div class=\"statcard-row-divider svelte-pfmus\"></div>"), root_6$9 = /* @__PURE__ */ from_html("<div class=\"statcard-row-heading statcard-row-heading-tooltip svelte-pfmus\"> </div>"), root_7$8 = /* @__PURE__ */ from_html("<div class=\"statcard-row-heading svelte-pfmus\"> </div>"), root_8$7 = /* @__PURE__ */ from_html("<div class=\"statcard-row-heading-wrap svelte-pfmus\"><!></div>"), root_9$5 = /* @__PURE__ */ from_html("<div class=\"statcard-comparison-value svelte-pfmus\"> </div>"), root_10$4 = /* @__PURE__ */ from_html("<div class=\"statcard-delta statcard-delta-na svelte-pfmus\">N/A</div>"), root_11$3 = /* @__PURE__ */ from_html("<div> </div>"), root_12$3 = /* @__PURE__ */ from_html("<div class=\"statcard-row-subtitle svelte-pfmus\"> </div>"), root_13$3 = /* @__PURE__ */ from_html("<div class=\"statcard-breakdown-heading svelte-pfmus\"> </div>"), root_14$3 = /* @__PURE__ */ from_html("<div class=\"statcard-breakdown-item svelte-pfmus\"><div class=\"statcard-breakdown-label svelte-pfmus\"> </div> <div class=\"statcard-breakdown-value-line svelte-pfmus\"><div class=\"statcard-breakdown-value svelte-pfmus\"> </div> <!></div></div>"), root_15$3 = /* @__PURE__ */ from_html("<!> <div class=\"statcard-breakdown-grid svelte-pfmus\"></div>", 1), root_16$2 = /* @__PURE__ */ from_html("<!> <div class=\"statcard-row svelte-pfmus\"><!> <div class=\"statcard-row-value-line svelte-pfmus\"><div> </div> <!> <!> <!></div> <!> <!></div>", 1), root_17$1 = /* @__PURE__ */ from_html("<div></div>"), root_18$1 = /* @__PURE__ */ from_html("<div class=\"statcard-value svelte-pfmus\"><!></div>"), root_19$1 = /* @__PURE__ */ from_html("<div class=\"statcard-value svelte-pfmus\"> </div>"), root_20$1 = /* @__PURE__ */ from_html("<div class=\"statcard-value-row svelte-pfmus\"><!> <!></div>"), root_21$1 = /* @__PURE__ */ from_html("<div class=\"statcard-subtitle svelte-pfmus\"> </div>"), root_22$1 = /* @__PURE__ */ from_html("<div class=\"statcard-children svelte-pfmus\"><!></div>"), root_23$1 = /* @__PURE__ */ from_html("<div class=\"statcard-footer svelte-pfmus\"><!></div>"), root_24$1 = /* @__PURE__ */ from_html("<div><!> <!> <!> <!> <!></div>"), $$css$20 = {
|
|
25929
26075
|
hash: "svelte-pfmus",
|
|
25930
|
-
code: ".statcard.svelte-pfmus {display:flex;flex-direction:column;gap:var(--statcard-gap, 4px);padding:var(--statcard-padding, 16px);background:var(--statcard-background, #ffffff);border:var(--statcard-border, 1px solid #e5e7eb);border-radius:var(--statcard-border-radius, var(--radius, 4px));box-shadow:var(--statcard-box-shadow, none);width:var(--statcard-width, auto);min-width:var(--statcard-min-width, 0);max-width:var(--statcard-max-width, none);height:var(--statcard-height, auto);color:var(--statcard-color, inherit);cursor:var(--statcard-cursor, default);box-sizing:border-box;}.statcard-interactive.svelte-pfmus {cursor:var(--statcard-cursor, pointer);}.statcard-interactive.svelte-pfmus:focus-visible {outline:var(--statcard-focus-outline, 2px solid currentColor);outline-offset:var(--statcard-focus-outline-offset, 2px);}.statcard-header.svelte-pfmus {order:var(--statcard-header-order, 0);display:flex;align-items:center;justify-content:space-between;gap:var(--statcard-header-gap, 8px);}.statcard-header-left.svelte-pfmus {display:flex;align-items:center;gap:var(--statcard-header-left-gap, 8px);flex:1;min-width:0;}.statcard-header-right.svelte-pfmus {display:flex;align-items:center;flex-shrink:0;}\n\n /* Wrapper keeps the checkbox in the event path (to stop bubbling to the card\n action). `margin-left: auto` pushes it to the header's right edge so the title\n stays left and the checkbox reads as a right-aligned control. (A previous\n `display: contents` here removed the box, which silently defeated the flex\n alignment.) */.statcard-header-checkbox.svelte-pfmus {display:flex;align-items:center;margin-left:auto;}.statcard-title.svelte-pfmus {font-size:var(--statcard-title-font-size, 12px);font-weight:var(--statcard-title-font-weight, 500);color:var(--statcard-title-color, #6b7280);line-height:var(--statcard-title-line-height, 1.4);white-space:var(--statcard-title-white-space, nowrap);overflow:hidden;text-overflow:ellipsis;}.statcard-title-tooltip-trigger.svelte-pfmus {display:inline-flex;align-items:center;gap:var(--statcard-tooltip-icon-gap, 4px);min-width:0;}.statcard-title-tooltip.svelte-pfmus {cursor:default;\n /* Default surface (Euler) uses the ⓘ icon as the tooltip affordance, so the\n title carries no underline. The Shopify theme flips both tokens — dotted\n underline on, icon off — via its own stylesheet. */text-decoration:var(--statcard-title-tooltip-decoration, none);text-underline-offset:2px;}.statcard-tooltip-icon.svelte-pfmus {display:var(--statcard-tooltip-icon-display, inline-flex);align-items:center;justify-content:center;width:var(--statcard-tooltip-icon-size, 14px);height:var(--statcard-tooltip-icon-size, 14px);flex-shrink:0;color:var(--statcard-tooltip-icon-color, currentColor);cursor:default;}.statcard-tooltip-icon.svelte-pfmus svg:where(.svelte-pfmus) {width:100%;height:100%;}.statcard-value-row.svelte-pfmus {order:var(--statcard-value-row-order, 0);display:flex;align-items:var(--statcard-value-row-align, baseline);gap:var(--statcard-value-row-gap, 8px);flex-wrap:wrap;}.statcard-value.svelte-pfmus {font-size:var(--statcard-value-font-size, 24px);font-weight:var(--statcard-value-font-weight, 600);color:var(--statcard-value-color, inherit);line-height:var(--statcard-value-line-height, 1.2);}.statcard-delta.svelte-pfmus {font-size:var(--statcard-delta-font-size, 13px);font-weight:var(--statcard-delta-font-weight, 500);color:var(--statcard-delta-color, #6b7280);line-height:var(--statcard-delta-line-height, 1.4);}.statcard-delta-positive.svelte-pfmus {color:var(--statcard-delta-positive-color, #16a34a);}.statcard-delta-negative.svelte-pfmus {color:var(--statcard-delta-negative-color, #dc2626);}.statcard-delta-na.svelte-pfmus {color:var(--statcard-delta-na-color, var(--statcard-delta-color, #6b7280));}\n\n /* Inline comparison denominator (\"₹60k / ₹10L\") — a muted, slightly smaller\n companion to the metric value, baseline-aligned by the value row. */.statcard-comparison-value.svelte-pfmus {font-size:var(--statcard-comparison-font-size, 16px);font-weight:var(--statcard-comparison-font-weight, 700);color:var(--statcard-comparison-color, #c7c7c7);line-height:var(--statcard-comparison-line-height, 1.4);white-space:nowrap;}.statcard-subtitle.svelte-pfmus {order:var(--statcard-subtitle-order, 0);font-size:var(--statcard-subtitle-font-size, 12px);font-weight:var(--statcard-subtitle-font-weight, 400);color:var(--statcard-subtitle-color, #9ca3af);line-height:var(--statcard-subtitle-line-height, 1.4);}\n\n /* Multi-row layout */.statcard-rows.svelte-pfmus {order:var(--statcard-rows-order, 0);display:flex;flex-direction:column;gap:var(--statcard-rows-gap, 0px);}.statcard-row-divider.svelte-pfmus {height:var(--statcard-row-divider-height, 1px);background:var(--statcard-row-divider-color, #e5e7eb);margin:var(--statcard-row-divider-margin, 8px 0);}\n\n /* Horizontal layout: lay the metric sections side by side with vertical\n dividers. Each section flexes to share the available width equally. */.statcard-rows-horizontal.svelte-pfmus {flex-direction:row;}.statcard-rows-horizontal.svelte-pfmus .statcard-row:where(.svelte-pfmus) {flex:1;min-width:0;}.statcard-rows-horizontal.svelte-pfmus .statcard-row-divider:where(.svelte-pfmus) {align-self:stretch;flex-shrink:0;width:var(--statcard-row-divider-height, 1px);height:auto;margin:var(--statcard-row-divider-margin-horizontal, 0 16px);}.statcard-row.svelte-pfmus {display:flex;flex-direction:column;gap:var(--statcard-row-gap, 4px);}.statcard-row-heading-wrap.svelte-pfmus {display:flex;align-items:center;}.statcard-row-heading.svelte-pfmus {font-size:var(--statcard-row-heading-font-size, 12px);font-weight:var(--statcard-row-heading-font-weight, 500);color:var(--statcard-row-heading-color, #6b7280);line-height:var(--statcard-row-heading-line-height, 1.4);}.statcard-row-heading-tooltip.svelte-pfmus {cursor:default;text-decoration:underline dotted;text-underline-offset:2px;}.statcard-row-value-line.svelte-pfmus {display:flex;align-items:baseline;gap:var(--statcard-row-value-gap, 8px);flex-wrap:wrap;}.statcard-row-additional.svelte-pfmus {font-size:var(--statcard-row-additional-font-size, 12px);font-weight:var(--statcard-row-additional-font-weight, 400);color:var(--statcard-row-additional-color, #9ca3af);line-height:1.4;}\n\n /* Breakdown grid */.statcard-breakdown-heading.svelte-pfmus {font-size:var(--statcard-breakdown-heading-font-size, 11px);font-weight:var(--statcard-breakdown-heading-font-weight, 600);color:var(--statcard-breakdown-heading-color, #6b7280);letter-spacing:0.04em;text-transform:var(--statcard-breakdown-heading-text-transform, uppercase);margin-top:var(--statcard-breakdown-heading-margin-top, 6px);}.statcard-breakdown-grid.svelte-pfmus {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--statcard-breakdown-col-min, 100px), 1fr));gap:var(--statcard-breakdown-gap, 8px);margin-top:var(--statcard-breakdown-margin-top, 4px);}.statcard-breakdown-item.svelte-pfmus {display:flex;flex-direction:var(--statcard-breakdown-item-flex-direction, column);align-items:var(--statcard-breakdown-item-align-items, stretch);flex-wrap:var(--statcard-breakdown-item-flex-wrap, nowrap);gap:var(--statcard-breakdown-item-gap, 2px);}\n\n /* The metric value and its change indicator share one line (label sits above\n as the caption). Previously the delta was a third stacked child, so it\n rendered on its own line beneath the number. */.statcard-breakdown-value-line.svelte-pfmus {order:var(--statcard-breakdown-value-line-order, 0);display:flex;align-items:baseline;gap:var(--statcard-breakdown-value-gap, 6px);flex-wrap:wrap;}.statcard-breakdown-label.svelte-pfmus {font-size:var(--statcard-breakdown-label-font-size, 11px);font-weight:var(--statcard-breakdown-label-font-weight, 400);color:var(--statcard-breakdown-label-color, #9ca3af);line-height:1.4;}.statcard-breakdown-value.svelte-pfmus {font-size:var(--statcard-breakdown-value-font-size, 14px);font-weight:var(--statcard-breakdown-value-font-weight, 600);color:var(--statcard-breakdown-value-color, inherit);line-height:1.2;}.statcard-children.svelte-pfmus {margin-top:var(--statcard-children-margin-top, 4px);}.statcard-footer.svelte-pfmus {margin-top:var(--statcard-footer-margin-top, 8px);padding-top:var(--statcard-footer-padding-top, 8px);border-top:var(--statcard-footer-border-top, 1px solid #e5e7eb);}"
|
|
26076
|
+
code: ".statcard.svelte-pfmus {display:flex;flex-direction:column;gap:var(--statcard-gap, 4px);padding:var(--statcard-padding, 16px);background:var(--statcard-background, #ffffff);border:var(--statcard-border, 1px solid #e5e7eb);border-radius:var(--statcard-border-radius, var(--radius, 4px));box-shadow:var(--statcard-box-shadow, none);width:var(--statcard-width, auto);min-width:var(--statcard-min-width, 0);max-width:var(--statcard-max-width, none);height:var(--statcard-height, auto);color:var(--statcard-color, inherit);cursor:var(--statcard-cursor, default);box-sizing:border-box;}.statcard-interactive.svelte-pfmus {cursor:var(--statcard-cursor, pointer);}.statcard-interactive.svelte-pfmus:focus-visible {outline:var(--statcard-focus-outline, 2px solid currentColor);outline-offset:var(--statcard-focus-outline-offset, 2px);}.statcard-header.svelte-pfmus {order:var(--statcard-header-order, 0);display:flex;align-items:center;justify-content:space-between;gap:var(--statcard-header-gap, 8px);}.statcard-header-left.svelte-pfmus {display:flex;align-items:center;gap:var(--statcard-header-left-gap, 8px);flex:1;min-width:0;}.statcard-header-right.svelte-pfmus {display:flex;align-items:center;flex-shrink:0;}\n\n /* Wrapper keeps the checkbox in the event path (to stop bubbling to the card\n action). `margin-left: auto` pushes it to the header's right edge so the title\n stays left and the checkbox reads as a right-aligned control. (A previous\n `display: contents` here removed the box, which silently defeated the flex\n alignment.) */.statcard-header-checkbox.svelte-pfmus {display:flex;align-items:center;margin-left:auto;}.statcard-title.svelte-pfmus {font-size:var(--statcard-title-font-size, 12px);font-weight:var(--statcard-title-font-weight, 500);color:var(--statcard-title-color, #6b7280);line-height:var(--statcard-title-line-height, 1.4);white-space:var(--statcard-title-white-space, nowrap);overflow:hidden;text-overflow:ellipsis;}.statcard-title-tooltip-trigger.svelte-pfmus {display:inline-flex;align-items:center;gap:var(--statcard-tooltip-icon-gap, 4px);min-width:0;}.statcard-title-tooltip.svelte-pfmus {cursor:default;\n /* Default surface (Euler) uses the ⓘ icon as the tooltip affordance, so the\n title carries no underline. The Shopify theme flips both tokens — dotted\n underline on, icon off — via its own stylesheet. */text-decoration:var(--statcard-title-tooltip-decoration, none);text-underline-offset:2px;}.statcard-tooltip-icon.svelte-pfmus {display:var(--statcard-tooltip-icon-display, inline-flex);align-items:center;justify-content:center;width:var(--statcard-tooltip-icon-size, 14px);height:var(--statcard-tooltip-icon-size, 14px);flex-shrink:0;color:var(--statcard-tooltip-icon-color, currentColor);cursor:default;}.statcard-tooltip-icon.svelte-pfmus svg:where(.svelte-pfmus) {width:100%;height:100%;}.statcard-value-row.svelte-pfmus {order:var(--statcard-value-row-order, 0);display:flex;align-items:var(--statcard-value-row-align, baseline);gap:var(--statcard-value-row-gap, 8px);flex-wrap:wrap;}.statcard-value.svelte-pfmus {font-size:var(--statcard-value-font-size, 24px);font-weight:var(--statcard-value-font-weight, 600);color:var(--statcard-value-color, inherit);line-height:var(--statcard-value-line-height, 1.2);}.statcard-value-success.svelte-pfmus {color:var(--statcard-value-success-color, #16a34a);}.statcard-value-warning.svelte-pfmus {color:var(--statcard-value-warning-color, #f59e0b);}\n\n /* Per-row value typography override — falls back to the card-level value\n tokens so an unset row matches today's shared appearance exactly, then to\n the same literals as the last resort. Scoped to the row's value line so\n the single (non-rows) card value is unaffected. Mirrors the fallback\n shape of --statcard-row-subtitle-font-size below. */.statcard-row-value-line.svelte-pfmus .statcard-value:where(.svelte-pfmus) {font-size:var(--statcard-row-value-font-size, var(--statcard-value-font-size, 24px));font-weight:var(--statcard-row-value-font-weight, var(--statcard-value-font-weight, 600));}.statcard-delta.svelte-pfmus {font-size:var(--statcard-delta-font-size, 13px);font-weight:var(--statcard-delta-font-weight, 500);color:var(--statcard-delta-color, #6b7280);line-height:var(--statcard-delta-line-height, 1.4);}.statcard-delta-positive.svelte-pfmus {color:var(--statcard-delta-positive-color, #16a34a);}.statcard-delta-negative.svelte-pfmus {color:var(--statcard-delta-negative-color, #dc2626);}.statcard-delta-na.svelte-pfmus {color:var(--statcard-delta-na-color, var(--statcard-delta-color, #6b7280));}\n\n /* Inline comparison denominator (\"₹60k / ₹10L\") — a muted, slightly smaller\n companion to the metric value, baseline-aligned by the value row. */.statcard-comparison-value.svelte-pfmus {font-size:var(--statcard-comparison-font-size, 16px);font-weight:var(--statcard-comparison-font-weight, 700);color:var(--statcard-comparison-color, #c7c7c7);line-height:var(--statcard-comparison-line-height, 1.4);white-space:nowrap;}.statcard-subtitle.svelte-pfmus {order:var(--statcard-subtitle-order, 0);font-size:var(--statcard-subtitle-font-size, 12px);font-weight:var(--statcard-subtitle-font-weight, 400);color:var(--statcard-subtitle-color, #9ca3af);line-height:var(--statcard-subtitle-line-height, 1.4);}\n\n /* Per-row subtitle — falls back to the card-level subtitle tokens so a\n consumer that already themes `.statcard-subtitle` gets a matching look\n with no extra wiring, then to the same literals as the last resort. */.statcard-row-subtitle.svelte-pfmus {order:var(--statcard-row-subtitle-order, 0);font-size:var(--statcard-row-subtitle-font-size, var(--statcard-subtitle-font-size, 12px));font-weight:var(\n --statcard-row-subtitle-font-weight,\n var(--statcard-subtitle-font-weight, 400)\n );color:var(--statcard-row-subtitle-color, var(--statcard-subtitle-color, #9ca3af));line-height:var(\n --statcard-row-subtitle-line-height,\n var(--statcard-subtitle-line-height, 1.4)\n );}\n\n /* Multi-row layout */.statcard-rows.svelte-pfmus {order:var(--statcard-rows-order, 0);display:flex;flex-direction:column;gap:var(--statcard-rows-gap, 0px);}.statcard-row-divider.svelte-pfmus {height:var(--statcard-row-divider-height, 1px);background:var(--statcard-row-divider-color, #e5e7eb);margin:var(--statcard-row-divider-margin, 8px 0);}\n\n /* Horizontal layout: lay the metric sections side by side with vertical\n dividers. Each section flexes to share the available width equally. */.statcard-rows-horizontal.svelte-pfmus {flex-direction:row;}.statcard-rows-horizontal.svelte-pfmus .statcard-row:where(.svelte-pfmus) {flex:1;min-width:0;}.statcard-rows-horizontal.svelte-pfmus .statcard-row-divider:where(.svelte-pfmus) {align-self:stretch;flex-shrink:0;width:var(--statcard-row-divider-height, 1px);height:auto;margin:var(--statcard-row-divider-margin-horizontal, 0 16px);}.statcard-row.svelte-pfmus {display:flex;flex-direction:column;gap:var(--statcard-row-gap, 4px);}.statcard-row-heading-wrap.svelte-pfmus {order:var(--statcard-row-heading-order, 0);display:flex;align-items:center;}.statcard-row-heading.svelte-pfmus {font-size:var(--statcard-row-heading-font-size, 12px);font-weight:var(--statcard-row-heading-font-weight, 500);color:var(--statcard-row-heading-color, #6b7280);line-height:var(--statcard-row-heading-line-height, 1.4);}.statcard-row-heading-tooltip.svelte-pfmus {cursor:default;text-decoration:underline dotted;text-underline-offset:2px;}.statcard-row-value-line.svelte-pfmus {order:var(--statcard-row-value-line-order, 0);display:flex;align-items:baseline;gap:var(--statcard-row-value-gap, 8px);flex-wrap:wrap;}.statcard-row-additional.svelte-pfmus {\n /* Default: flows inline in the wrapping flex row and only breaks if it\n does not fit — matches short unit suffixes like \"%\" or \"ms\". */font-size:var(--statcard-row-additional-font-size, 12px);font-weight:var(--statcard-row-additional-font-weight, 400);color:var(--statcard-row-additional-color, #9ca3af);line-height:1.4;}.statcard-row-additional-break.svelte-pfmus {\n /* Opt-in: forces its own line regardless of available width, for\n descriptive text that should never sit beside the value/delta. */flex-basis:var(--statcard-row-additional-flex-basis, 100%);}\n\n /* Breakdown grid */.statcard-breakdown-heading.svelte-pfmus {font-size:var(--statcard-breakdown-heading-font-size, 11px);font-weight:var(--statcard-breakdown-heading-font-weight, 600);color:var(--statcard-breakdown-heading-color, #6b7280);letter-spacing:0.04em;text-transform:var(--statcard-breakdown-heading-text-transform, uppercase);margin-top:var(--statcard-breakdown-heading-margin-top, 6px);}.statcard-breakdown-grid.svelte-pfmus {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--statcard-breakdown-col-min, 100px), 1fr));gap:var(--statcard-breakdown-gap, 8px);margin-top:var(--statcard-breakdown-margin-top, 4px);}.statcard-breakdown-item.svelte-pfmus {display:flex;flex-direction:var(--statcard-breakdown-item-flex-direction, column);align-items:var(--statcard-breakdown-item-align-items, stretch);flex-wrap:var(--statcard-breakdown-item-flex-wrap, nowrap);gap:var(--statcard-breakdown-item-gap, 2px);}\n\n /* The metric value and its change indicator share one line (label sits above\n as the caption). Previously the delta was a third stacked child, so it\n rendered on its own line beneath the number. */.statcard-breakdown-value-line.svelte-pfmus {order:var(--statcard-breakdown-value-line-order, 0);display:flex;align-items:baseline;gap:var(--statcard-breakdown-value-gap, 6px);flex-wrap:wrap;}.statcard-breakdown-label.svelte-pfmus {font-size:var(--statcard-breakdown-label-font-size, 11px);font-weight:var(--statcard-breakdown-label-font-weight, 400);color:var(--statcard-breakdown-label-color, #9ca3af);line-height:1.4;}.statcard-breakdown-value.svelte-pfmus {font-size:var(--statcard-breakdown-value-font-size, 14px);font-weight:var(--statcard-breakdown-value-font-weight, 600);color:var(--statcard-breakdown-value-color, inherit);line-height:1.2;}.statcard-children.svelte-pfmus {margin-top:var(--statcard-children-margin-top, 4px);}.statcard-footer.svelte-pfmus {margin-top:var(--statcard-footer-margin-top, 8px);padding-top:var(--statcard-footer-padding-top, 8px);border-top:var(--statcard-footer-border-top, 1px solid #e5e7eb);}"
|
|
25931
26077
|
};
|
|
25932
26078
|
function StatCard(e, t) {
|
|
25933
26079
|
push(t, !0), append_styles$1(e, $$css$20);
|
|
@@ -26111,10 +26257,10 @@ function StatCard(e, t) {
|
|
|
26111
26257
|
get(T) && e(N);
|
|
26112
26258
|
});
|
|
26113
26259
|
var P = sibling(M, 2), F = (e) => {
|
|
26114
|
-
var t =
|
|
26260
|
+
var t = root_17$1();
|
|
26115
26261
|
let n;
|
|
26116
26262
|
each(t, 21, u, index, (e, t, n) => {
|
|
26117
|
-
var i =
|
|
26263
|
+
var i = root_16$2(), a = first_child(i), o = (e) => {
|
|
26118
26264
|
var t = root_5$9();
|
|
26119
26265
|
template_effect(() => {
|
|
26120
26266
|
set_attribute(t, "data-pw", typeof g() == "string" ? `${g()}-row-divider-${n}` : null), set_attribute(t, "testid", typeof g() == "string" ? `${g()}-row-divider-${n}` : null);
|
|
@@ -26155,18 +26301,20 @@ function StatCard(e, t) {
|
|
|
26155
26301
|
if_block(c, (e) => {
|
|
26156
26302
|
typeof get(t).heading == "string" && get(t).heading.length > 0 && e(l);
|
|
26157
26303
|
});
|
|
26158
|
-
var u = sibling(c, 2), d = child(u)
|
|
26304
|
+
var u = sibling(c, 2), d = child(u);
|
|
26305
|
+
let f;
|
|
26306
|
+
var p = child(d, !0);
|
|
26159
26307
|
reset(d);
|
|
26160
|
-
var
|
|
26308
|
+
var m = sibling(d, 2), h = (e) => {
|
|
26161
26309
|
var i = root_9$5(), a = child(i);
|
|
26162
26310
|
reset(i), template_effect(() => {
|
|
26163
26311
|
set_attribute(i, "data-pw", typeof g() == "string" ? `${g()}-comparison-${n}` : null), set_attribute(i, "testid", typeof g() == "string" ? `${g()}-comparison-${n}` : null), set_text(a, `/ ${get(t).comparisonValue ?? ""}`);
|
|
26164
26312
|
}), append(e, i);
|
|
26165
26313
|
};
|
|
26166
|
-
if_block(
|
|
26167
|
-
typeof get(t).comparisonValue == "string" && get(t).comparisonValue.length > 0 && e(
|
|
26314
|
+
if_block(m, (e) => {
|
|
26315
|
+
typeof get(t).comparisonValue == "string" && get(t).comparisonValue.length > 0 && e(h);
|
|
26168
26316
|
});
|
|
26169
|
-
var
|
|
26317
|
+
var _ = sibling(m, 2), v = (e) => {
|
|
26170
26318
|
{
|
|
26171
26319
|
let i = /* @__PURE__ */ user_derived(() => get(t).invertChangeColors ?? !1), a = /* @__PURE__ */ user_derived(() => g() ? `${g()}-delta-${n}` : null);
|
|
26172
26320
|
DeltaIndicator(e, {
|
|
@@ -26181,25 +26329,38 @@ function StatCard(e, t) {
|
|
|
26181
26329
|
}
|
|
26182
26330
|
});
|
|
26183
26331
|
}
|
|
26184
|
-
},
|
|
26332
|
+
}, y = (e) => {
|
|
26185
26333
|
var t = root_10$4();
|
|
26186
26334
|
template_effect(() => {
|
|
26187
26335
|
set_attribute(t, "data-pw", typeof g() == "string" ? `${g()}-delta-na-${n}` : null), set_attribute(t, "testid", typeof g() == "string" ? `${g()}-delta-na-${n}` : null);
|
|
26188
26336
|
}), append(e, t);
|
|
26189
26337
|
};
|
|
26190
|
-
if_block(
|
|
26191
|
-
typeof get(t).change == "number" ? e(
|
|
26338
|
+
if_block(_, (e) => {
|
|
26339
|
+
typeof get(t).change == "number" ? e(v) : get(t).change === null && e(y, 1);
|
|
26192
26340
|
});
|
|
26193
|
-
var
|
|
26194
|
-
var
|
|
26195
|
-
|
|
26341
|
+
var b = sibling(_, 2), x = (e) => {
|
|
26342
|
+
var i = root_11$3();
|
|
26343
|
+
let a;
|
|
26344
|
+
var o = child(i, !0);
|
|
26345
|
+
reset(i), template_effect(() => {
|
|
26346
|
+
a = set_class(i, 1, "statcard-row-additional svelte-pfmus", null, a, { "statcard-row-additional-break": get(t).additionalContentBreak === !0 }), set_attribute(i, "data-pw", typeof g() == "string" ? `${g()}-additional-${n}` : null), set_attribute(i, "testid", typeof g() == "string" ? `${g()}-additional-${n}` : null), set_text(o, get(t).additionalContent);
|
|
26347
|
+
}), append(e, i);
|
|
26196
26348
|
};
|
|
26197
|
-
if_block(
|
|
26198
|
-
typeof get(t).additionalContent == "string" && get(t).additionalContent.length > 0 && e(
|
|
26349
|
+
if_block(b, (e) => {
|
|
26350
|
+
typeof get(t).additionalContent == "string" && get(t).additionalContent.length > 0 && e(x);
|
|
26199
26351
|
}), reset(u);
|
|
26200
|
-
var
|
|
26201
|
-
var i =
|
|
26202
|
-
|
|
26352
|
+
var S = sibling(u, 2), C = (e) => {
|
|
26353
|
+
var i = root_12$3(), a = child(i, !0);
|
|
26354
|
+
reset(i), template_effect(() => {
|
|
26355
|
+
set_attribute(i, "data-pw", typeof g() == "string" ? `${g()}-subtitle-${n}` : null), set_attribute(i, "testid", typeof g() == "string" ? `${g()}-subtitle-${n}` : null), set_text(a, get(t).subtitle);
|
|
26356
|
+
}), append(e, i);
|
|
26357
|
+
};
|
|
26358
|
+
if_block(S, (e) => {
|
|
26359
|
+
typeof get(t).subtitle == "string" && get(t).subtitle.length > 0 && e(C);
|
|
26360
|
+
});
|
|
26361
|
+
var w = sibling(S, 2), T = (e) => {
|
|
26362
|
+
var i = root_15$3(), a = first_child(i), o = (e) => {
|
|
26363
|
+
var n = root_13$3(), i = child(n, !0);
|
|
26203
26364
|
reset(n), template_effect(() => set_text(i, get(t).breakdownHeading)), append(e, n);
|
|
26204
26365
|
};
|
|
26205
26366
|
if_block(a, (e) => {
|
|
@@ -26207,7 +26368,7 @@ function StatCard(e, t) {
|
|
|
26207
26368
|
});
|
|
26208
26369
|
var s = sibling(a, 2);
|
|
26209
26370
|
each(s, 21, () => get(t).breakdown, index, (e, t, i) => {
|
|
26210
|
-
var a =
|
|
26371
|
+
var a = root_14$3(), o = child(a), s = child(o, !0);
|
|
26211
26372
|
reset(o);
|
|
26212
26373
|
var c = sibling(o, 2), l = child(c), u = child(l, !0);
|
|
26213
26374
|
reset(l);
|
|
@@ -26230,23 +26391,26 @@ function StatCard(e, t) {
|
|
|
26230
26391
|
set_attribute(a, "data-pw", typeof g() == "string" ? `${g()}-breakdown-item-${n}-${i}` : null), set_attribute(a, "testid", typeof g() == "string" ? `${g()}-breakdown-item-${n}-${i}` : null), set_text(s, get(t).label), set_text(u, get(t).value);
|
|
26231
26392
|
}), append(e, a);
|
|
26232
26393
|
}), reset(s), append(e, i);
|
|
26233
|
-
},
|
|
26234
|
-
if_block(
|
|
26235
|
-
get(
|
|
26394
|
+
}, E = /* @__PURE__ */ user_derived(() => Array.isArray(get(t).breakdown) && get(t).breakdown.length > 0);
|
|
26395
|
+
if_block(w, (e) => {
|
|
26396
|
+
get(E) && e(T);
|
|
26236
26397
|
}), reset(s), template_effect(() => {
|
|
26237
|
-
set_attribute(s, "data-pw", typeof get(t).testId == "string" ? get(t).testId : null), set_attribute(s, "testid", typeof get(t).testId == "string" ? get(t).testId : null),
|
|
26398
|
+
set_attribute(s, "data-pw", typeof get(t).testId == "string" ? get(t).testId : null), set_attribute(s, "testid", typeof get(t).testId == "string" ? get(t).testId : null), f = set_class(d, 1, "statcard-value svelte-pfmus", null, f, {
|
|
26399
|
+
"statcard-value-success": get(t).valueVariant === "success",
|
|
26400
|
+
"statcard-value-warning": get(t).valueVariant === "warning"
|
|
26401
|
+
}), set_attribute(d, "data-pw", typeof g() == "string" ? `${g()}-value-${n}` : null), set_attribute(d, "testid", typeof g() == "string" ? `${g()}-value-${n}` : null), set_text(p, get(t).value);
|
|
26238
26402
|
}), append(e, i);
|
|
26239
26403
|
}), reset(t), template_effect(() => {
|
|
26240
26404
|
n = set_class(t, 1, "statcard-rows svelte-pfmus", null, n, { "statcard-rows-horizontal": d() === "row" }), set_attribute(t, "data-pw", typeof g() == "string" ? `${g()}-rows` : null), set_attribute(t, "testid", typeof g() == "string" ? `${g()}-rows` : null);
|
|
26241
26405
|
}), append(e, t);
|
|
26242
26406
|
}, I = (e) => {
|
|
26243
26407
|
var t = root_20$1(), n = child(t), o = (e) => {
|
|
26244
|
-
var t =
|
|
26408
|
+
var t = root_18$1();
|
|
26245
26409
|
snippet(child(t), l), reset(t), template_effect(() => {
|
|
26246
26410
|
set_attribute(t, "data-pw", typeof g() == "string" ? `${g()}-value` : null), set_attribute(t, "testid", typeof g() == "string" ? `${g()}-value` : null);
|
|
26247
26411
|
}), append(e, t);
|
|
26248
26412
|
}, s = (e) => {
|
|
26249
|
-
var t =
|
|
26413
|
+
var t = root_19$1(), n = child(t, !0);
|
|
26250
26414
|
reset(t), template_effect(() => {
|
|
26251
26415
|
set_attribute(t, "data-pw", typeof g() == "string" ? `${g()}-value` : null), set_attribute(t, "testid", typeof g() == "string" ? `${g()}-value` : null), set_text(n, i());
|
|
26252
26416
|
}), append(e, t);
|
|
@@ -26255,7 +26419,7 @@ function StatCard(e, t) {
|
|
|
26255
26419
|
typeof l() == "function" ? e(o) : typeof i() == "string" && i().length > 0 && e(s, 1);
|
|
26256
26420
|
});
|
|
26257
26421
|
var c = sibling(n, 2), u = (e) => {
|
|
26258
|
-
var t =
|
|
26422
|
+
var t = root_11$3();
|
|
26259
26423
|
let n;
|
|
26260
26424
|
var i = child(t, !0);
|
|
26261
26425
|
reset(t), template_effect(() => {
|
|
@@ -27790,7 +27954,7 @@ function MediaUpload(e, t) {
|
|
|
27790
27954
|
p() || e(f);
|
|
27791
27955
|
}), reset(i), template_effect(() => a = set_class(i, 1, "card svelte-nabf7u", null, a, { "is-file": !get(t).isImage })), append(e, i);
|
|
27792
27956
|
});
|
|
27793
|
-
var Q = sibling(Z, 2),
|
|
27957
|
+
var Q = sibling(Z, 2), ee = (e) => {
|
|
27794
27958
|
var t = root_14$2();
|
|
27795
27959
|
let i;
|
|
27796
27960
|
var a = child(t), c = child(a), u = (e) => {
|
|
@@ -27823,13 +27987,13 @@ function MediaUpload(e, t) {
|
|
|
27823
27987
|
}), event("dragover", t, B), event("dragleave", t, V), event("drop", t, z), delegated("change", y, R), append(e, t);
|
|
27824
27988
|
};
|
|
27825
27989
|
if_block(Q, (e) => {
|
|
27826
|
-
get(j) && e(
|
|
27990
|
+
get(j) && e(ee);
|
|
27827
27991
|
}), reset(X);
|
|
27828
|
-
var
|
|
27992
|
+
var $ = sibling(X, 2), te = (e) => {
|
|
27829
27993
|
var t = root_15$2(), n = child(t, !0);
|
|
27830
27994
|
reset(t), template_effect(() => set_text(n, get(O))), append(e, t);
|
|
27831
27995
|
};
|
|
27832
|
-
return if_block(
|
|
27996
|
+
return if_block($, (e) => {
|
|
27833
27997
|
get(O).length > 0 && e(te);
|
|
27834
27998
|
}), reset(W), template_effect(() => {
|
|
27835
27999
|
G = set_class(W, 1, `media-upload ${E() ?? "" ?? ""}`, "svelte-nabf7u", G, { disabled: p() }), set_attribute(W, "data-pw", typeof T() == "string" ? T() : null);
|
|
@@ -28473,8 +28637,8 @@ function Gallery(e, t) {
|
|
|
28473
28637
|
set classes(e) {
|
|
28474
28638
|
E(e), flushSync();
|
|
28475
28639
|
}
|
|
28476
|
-
},
|
|
28477
|
-
each(
|
|
28640
|
+
}, ee = root_15$1(), $ = first_child(ee);
|
|
28641
|
+
each($, 21, i, index, (e, t, a) => {
|
|
28478
28642
|
var o = root_8$5(), s = child(o), l = (e) => {
|
|
28479
28643
|
var o = root_4$7();
|
|
28480
28644
|
n(child(o), () => get(t), () => a), reset(o), template_effect(() => set_attribute(o, "aria-label", c() ? `View image ${a + 1} of ${i().length}: ${get(t).alt}` : get(t).alt)), delegated("click", o, (e) => K(a, e)), append(e, o);
|
|
@@ -28530,8 +28694,8 @@ function Gallery(e, t) {
|
|
|
28530
28694
|
if_block(d, (e) => {
|
|
28531
28695
|
get(z) && e(f);
|
|
28532
28696
|
}), reset(o), append(e, o);
|
|
28533
|
-
}), reset(
|
|
28534
|
-
var te = sibling(
|
|
28697
|
+
}), reset($);
|
|
28698
|
+
var te = sibling($, 2), ne = (e) => {
|
|
28535
28699
|
var t = root_14$1(), n = child(t);
|
|
28536
28700
|
Button(child(n), {
|
|
28537
28701
|
ariaLabel: "Close gallery",
|
|
@@ -28606,8 +28770,8 @@ function Gallery(e, t) {
|
|
|
28606
28770
|
return if_block(te, (e) => {
|
|
28607
28771
|
o() && e(ne);
|
|
28608
28772
|
}), template_effect(() => {
|
|
28609
|
-
set_class(
|
|
28610
|
-
}), append(e,
|
|
28773
|
+
set_class($, 1, `gallery ${a() ?? ""} ${get(I) ? "has-item-footer" : ""} ${E() ?? "" ?? ""}`, "svelte-14wkit2"), set_attribute($, "data-pw", typeof v() == "string" ? v() : null);
|
|
28774
|
+
}), append(e, ee), pop(Q);
|
|
28611
28775
|
}
|
|
28612
28776
|
delegate(["click", "keydown"]), create_custom_element(Gallery, {
|
|
28613
28777
|
images: {},
|
|
@@ -29066,7 +29230,7 @@ function ChatMessage(e, t) {
|
|
|
29066
29230
|
if_block(Z, (e) => {
|
|
29067
29231
|
typeof d() == "function" && e(Q);
|
|
29068
29232
|
});
|
|
29069
|
-
var
|
|
29233
|
+
var ee = sibling(Z, 2), $ = (e) => {
|
|
29070
29234
|
var t = root_9$2(), n = child(t), i = (e) => {
|
|
29071
29235
|
var t = root_7$4();
|
|
29072
29236
|
Button(child(t), {
|
|
@@ -29146,8 +29310,8 @@ function ChatMessage(e, t) {
|
|
|
29146
29310
|
typeof p() == "function" && e(u);
|
|
29147
29311
|
}), reset(t), append(e, t);
|
|
29148
29312
|
};
|
|
29149
|
-
return if_block(
|
|
29150
|
-
get(M) && e(
|
|
29313
|
+
return if_block(ee, (e) => {
|
|
29314
|
+
get(M) && e($);
|
|
29151
29315
|
}), reset(V), reset(R), reset(I), template_effect(() => {
|
|
29152
29316
|
L = set_class(I, 1, `chat-message party-${get(C) ?? ""} role-${n() ?? ""} ${S() ?? "" ?? ""}`, "svelte-ivh8u", L, {
|
|
29153
29317
|
streaming: s(),
|
|
@@ -29185,39 +29349,39 @@ var root$8 = /* @__PURE__ */ from_html("<div class=\"jump svelte-qpm4dm\"><!></d
|
|
|
29185
29349
|
};
|
|
29186
29350
|
function ChatMessageList(e, t) {
|
|
29187
29351
|
push(t, !0), append_styles$1(e, $$css$9);
|
|
29188
|
-
let n = 80, i = prop(t, "messages", 7), a = prop(t, "autoscroll", 7, !0), o = prop(t, "scrollPolicy", 7, "near-bottom"), s = prop(t, "pinHold", 7, !1), c = prop(t, "jump", 7, !0), l = prop(t, "message", 7), u = prop(t, "messageBody", 7), d = prop(t, "messageAttachments", 7), f = prop(t, "empty", 7), p = prop(t, "jumpLabel", 7, "Jump to latest"), m = prop(t, "jumpIcon", 7), h = prop(t, "allowCopy", 7, !1), g = prop(t, "onscrollstate", 7), _ = prop(t, "onretry", 7), v = prop(t, "onfeedback", 7), y = prop(t, "testId", 7), b = prop(t, "classes", 7), x = /* @__PURE__ */ state(null), S = /* @__PURE__ */ state(null), C = /* @__PURE__ */ state(!0), w = /* @__PURE__ */ state(!1), T = !1, E = /* @__PURE__ */ user_derived(() => `${i().length}:${i().at(-1)?.content.length ?? 0}`),
|
|
29352
|
+
let n = 80, i = prop(t, "messages", 7), a = prop(t, "autoscroll", 7, !0), o = prop(t, "scrollPolicy", 7, "near-bottom"), s = prop(t, "pinHold", 7, !1), c = prop(t, "jump", 7, !0), l = prop(t, "message", 7), u = prop(t, "messageBody", 7), d = prop(t, "messageAttachments", 7), f = prop(t, "empty", 7), p = prop(t, "jumpLabel", 7, "Jump to latest"), m = prop(t, "jumpIcon", 7), h = prop(t, "allowCopy", 7, !1), g = prop(t, "onscrollstate", 7), _ = prop(t, "onretry", 7), v = prop(t, "onfeedback", 7), y = prop(t, "testId", 7), b = prop(t, "classes", 7), x = /* @__PURE__ */ state(null), S = /* @__PURE__ */ state(null), C = /* @__PURE__ */ state(!0), w = /* @__PURE__ */ state(!1), T = !1, E = !1, D = 0, O = /* @__PURE__ */ user_derived(() => `${i().length}:${i().at(-1)?.content.length ?? 0}`), k = /* @__PURE__ */ user_derived(() => !get(C) && i().length > 0), A = /* @__PURE__ */ user_derived(() => {
|
|
29189
29353
|
for (let e = i().length - 1; e >= 0; --e) {
|
|
29190
29354
|
let t = i().at(e);
|
|
29191
29355
|
if (t && partyOf(t.role) === "responder") return t.id;
|
|
29192
29356
|
}
|
|
29193
29357
|
return null;
|
|
29194
29358
|
});
|
|
29195
|
-
function
|
|
29196
|
-
return typeof _() == "function" && partyOf(e.role) === "responder" && e.id === get(
|
|
29359
|
+
function j(e) {
|
|
29360
|
+
return typeof _() == "function" && partyOf(e.role) === "responder" && e.id === get(A) ? _() : null;
|
|
29197
29361
|
}
|
|
29198
|
-
function
|
|
29362
|
+
function M(e) {
|
|
29199
29363
|
return typeof v() == "function" && partyOf(e.role) === "responder" ? (t) => v()?.(t, e) : null;
|
|
29200
29364
|
}
|
|
29201
|
-
function
|
|
29365
|
+
function N(e) {
|
|
29202
29366
|
return e.scrollHeight - e.scrollTop - e.clientHeight < 80;
|
|
29203
29367
|
}
|
|
29204
|
-
function
|
|
29205
|
-
set(C,
|
|
29368
|
+
function P(e) {
|
|
29369
|
+
set(C, N(e), !0), set(w, e.scrollHeight - e.clientHeight > 80), g()?.({
|
|
29206
29370
|
atBottom: get(C),
|
|
29207
29371
|
scrollable: get(w)
|
|
29208
29372
|
});
|
|
29209
29373
|
}
|
|
29210
|
-
function
|
|
29211
|
-
|
|
29374
|
+
function F(e) {
|
|
29375
|
+
P(e.currentTarget);
|
|
29212
29376
|
}
|
|
29213
|
-
function
|
|
29214
|
-
get(x) !== null && (get(x).scrollTop = get(x).scrollHeight,
|
|
29377
|
+
function I() {
|
|
29378
|
+
get(x) !== null && (get(x).scrollTop = get(x).scrollHeight, P(get(x)));
|
|
29215
29379
|
}
|
|
29216
|
-
function
|
|
29380
|
+
function L() {
|
|
29217
29381
|
for (let e = i().length - 1; e >= 0; --e) if (partyOf(i()[e].role) === "sender") return i()[e].id;
|
|
29218
29382
|
return null;
|
|
29219
29383
|
}
|
|
29220
|
-
function
|
|
29384
|
+
function R() {
|
|
29221
29385
|
if (get(x) === null || get(S) === null) return;
|
|
29222
29386
|
let e = -1;
|
|
29223
29387
|
for (let t = i().length - 1; t >= 0; --t) if (partyOf(i()[t].role) === "sender") {
|
|
@@ -29230,44 +29394,62 @@ function ChatMessageList(e, t) {
|
|
|
29230
29394
|
let a = get(S).getBoundingClientRect(), o = n.getBoundingClientRect(), s = o.top - a.top;
|
|
29231
29395
|
get(S).style.minHeight = `${Math.ceil(s + get(x).clientHeight)}px`, T = !0;
|
|
29232
29396
|
let c = get(x).getBoundingClientRect(), l = Number.parseFloat(getComputedStyle(get(x)).paddingTop) || 0;
|
|
29233
|
-
get(x).scrollTop
|
|
29397
|
+
D = get(x).scrollTop + (o.top - c.top - l), get(x).scrollTo({
|
|
29398
|
+
top: D,
|
|
29399
|
+
behavior: "instant"
|
|
29400
|
+
}), P(get(x));
|
|
29234
29401
|
}
|
|
29235
|
-
function
|
|
29236
|
-
get(S) !== null && (get(S).style.minHeight = ""), T = !1, get(x) !== null &&
|
|
29402
|
+
function z() {
|
|
29403
|
+
get(S) !== null && (get(S).style.minHeight = ""), T = !1, E = !1, get(x) !== null && P(get(x));
|
|
29404
|
+
}
|
|
29405
|
+
function B() {
|
|
29406
|
+
if (!E || get(x) === null || get(S) === null) return;
|
|
29407
|
+
let e = get(S).style.minHeight;
|
|
29408
|
+
if (get(S).style.minHeight = "", get(x).scrollHeight - get(x).clientHeight >= D) {
|
|
29409
|
+
get(x).scrollTo({
|
|
29410
|
+
top: D,
|
|
29411
|
+
behavior: "instant"
|
|
29412
|
+
}), T = !1, E = !1, P(get(x));
|
|
29413
|
+
return;
|
|
29414
|
+
}
|
|
29415
|
+
get(S).style.minHeight = e, get(x).scrollTo({
|
|
29416
|
+
top: D,
|
|
29417
|
+
behavior: "instant"
|
|
29418
|
+
});
|
|
29237
29419
|
}
|
|
29238
|
-
let
|
|
29239
|
-
let t = i().length, n =
|
|
29240
|
-
function
|
|
29241
|
-
let
|
|
29420
|
+
let V = (e) => {
|
|
29421
|
+
let t = i().length, n = L();
|
|
29422
|
+
function c() {
|
|
29423
|
+
let c = i().length > t;
|
|
29242
29424
|
if (t = i().length, o() === "pin-sender-turn") {
|
|
29243
|
-
let e =
|
|
29244
|
-
|
|
29245
|
-
|
|
29425
|
+
let e = L();
|
|
29426
|
+
c && e !== null && e !== n && queueMicrotask(() => {
|
|
29427
|
+
R(), s() || (E = !0, B());
|
|
29246
29428
|
}), n = e;
|
|
29247
29429
|
return;
|
|
29248
29430
|
}
|
|
29249
|
-
a() && (get(C) ||
|
|
29431
|
+
a() && (get(C) || c) && queueMicrotask(() => {
|
|
29250
29432
|
e.scrollTop = e.scrollHeight;
|
|
29251
29433
|
});
|
|
29252
29434
|
}
|
|
29253
|
-
return
|
|
29254
|
-
},
|
|
29435
|
+
return c(), { update: c };
|
|
29436
|
+
}, H = (e) => {
|
|
29255
29437
|
if (typeof ResizeObserver > "u") return;
|
|
29256
29438
|
let t = new ResizeObserver(() => {
|
|
29257
|
-
get(x) !== null && (o() === "near-bottom" && a() && get(C) && (get(x).scrollTop = get(x).scrollHeight),
|
|
29439
|
+
get(x) !== null && (o() === "near-bottom" && a() && get(C) && (get(x).scrollTop = get(x).scrollHeight), B(), P(get(x)));
|
|
29258
29440
|
});
|
|
29259
29441
|
return t.observe(e), { destroy() {
|
|
29260
29442
|
t.disconnect();
|
|
29261
29443
|
} };
|
|
29262
|
-
},
|
|
29444
|
+
}, U = () => {
|
|
29263
29445
|
let e = s();
|
|
29264
29446
|
function t() {
|
|
29265
|
-
e && !s() && T &&
|
|
29447
|
+
e && !s() && T && z(), e = s();
|
|
29266
29448
|
}
|
|
29267
29449
|
return t(), { update: t };
|
|
29268
29450
|
};
|
|
29269
|
-
var
|
|
29270
|
-
scrollToBottom:
|
|
29451
|
+
var W = {
|
|
29452
|
+
scrollToBottom: I,
|
|
29271
29453
|
get messages() {
|
|
29272
29454
|
return i();
|
|
29273
29455
|
},
|
|
@@ -29370,15 +29552,15 @@ function ChatMessageList(e, t) {
|
|
|
29370
29552
|
set classes(e) {
|
|
29371
29553
|
b(e), flushSync();
|
|
29372
29554
|
}
|
|
29373
|
-
},
|
|
29555
|
+
}, G = root_1$8(), K = child(G), q = child(K), J = (e) => {
|
|
29374
29556
|
var t = comment();
|
|
29375
29557
|
snippet(first_child(t), f), append(e, t);
|
|
29376
29558
|
};
|
|
29377
|
-
if_block(
|
|
29378
|
-
i().length === 0 && typeof f() == "function" && e(
|
|
29559
|
+
if_block(q, (e) => {
|
|
29560
|
+
i().length === 0 && typeof f() == "function" && e(J);
|
|
29379
29561
|
});
|
|
29380
|
-
var
|
|
29381
|
-
each(
|
|
29562
|
+
var Y = sibling(q, 2);
|
|
29563
|
+
each(Y, 17, i, (e) => e.id, (e, t) => {
|
|
29382
29564
|
var n = comment(), i = first_child(n), a = (e) => {
|
|
29383
29565
|
var n = comment();
|
|
29384
29566
|
snippet(first_child(n), l, () => get(t)), append(e, n);
|
|
@@ -29391,7 +29573,7 @@ function ChatMessageList(e, t) {
|
|
|
29391
29573
|
snippet(first_child(n), () => u() ?? noop, () => get(t)), append(e, n);
|
|
29392
29574
|
};
|
|
29393
29575
|
{
|
|
29394
|
-
let a = /* @__PURE__ */ user_derived(() => typeof u() == "function" ? i : null), o = /* @__PURE__ */ user_derived(() => h() && partyOf(get(t).role) === "responder"), s = /* @__PURE__ */ user_derived(() => typeof d() == "function" ? n : null), c = /* @__PURE__ */ user_derived(() =>
|
|
29576
|
+
let a = /* @__PURE__ */ user_derived(() => typeof u() == "function" ? i : null), o = /* @__PURE__ */ user_derived(() => h() && partyOf(get(t).role) === "responder"), s = /* @__PURE__ */ user_derived(() => typeof d() == "function" ? n : null), c = /* @__PURE__ */ user_derived(() => j(get(t))), l = /* @__PURE__ */ user_derived(() => M(get(t)));
|
|
29395
29577
|
ChatMessage(e, {
|
|
29396
29578
|
get role() {
|
|
29397
29579
|
return get(t).role;
|
|
@@ -29430,10 +29612,10 @@ function ChatMessageList(e, t) {
|
|
|
29430
29612
|
typeof l() == "function" ? e(a) : e(o, -1);
|
|
29431
29613
|
}), append(e, n);
|
|
29432
29614
|
});
|
|
29433
|
-
var
|
|
29615
|
+
var X = sibling(Y, 2), Z = (e) => {
|
|
29434
29616
|
var t = root$8();
|
|
29435
29617
|
Button(child(t), {
|
|
29436
|
-
onclick:
|
|
29618
|
+
onclick: I,
|
|
29437
29619
|
get ariaLabel() {
|
|
29438
29620
|
return p();
|
|
29439
29621
|
},
|
|
@@ -29452,11 +29634,11 @@ function ChatMessageList(e, t) {
|
|
|
29452
29634
|
$$slots: { default: !0 }
|
|
29453
29635
|
}), reset(t), append(e, t);
|
|
29454
29636
|
};
|
|
29455
|
-
return if_block(
|
|
29456
|
-
get(
|
|
29457
|
-
}), reset(
|
|
29458
|
-
set_class(
|
|
29459
|
-
}), event("scroll",
|
|
29637
|
+
return if_block(X, (e) => {
|
|
29638
|
+
get(k) && c() && e(Z);
|
|
29639
|
+
}), reset(K), bind_this(K, (e) => set(S, e), () => get(S)), action(K, (e) => H?.(e)), reset(G), bind_this(G, (e) => set(x, e), () => get(x)), action(G, (e, t) => V?.(e, t), () => get(O)), action(G, (e, t) => U?.(e, t), s), template_effect(() => {
|
|
29640
|
+
set_class(G, 1, `chat-message-list ${b() ?? "" ?? ""}`, "svelte-qpm4dm"), set_attribute(G, "data-pw", typeof y() == "string" ? y() : null), set_attribute(G, "testid", typeof y() == "string" ? y() : null);
|
|
29641
|
+
}), event("scroll", G, F), append(e, G), pop(W);
|
|
29460
29642
|
}
|
|
29461
29643
|
create_custom_element(ChatMessageList, {
|
|
29462
29644
|
messages: {},
|
|
@@ -29868,7 +30050,7 @@ var send_default = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentCol
|
|
|
29868
30050
|
};
|
|
29869
30051
|
function ChatComposer(e, t) {
|
|
29870
30052
|
push(t, !0), append_styles$1(e, $$css$7);
|
|
29871
|
-
let n = prop(t, "value", 15, ""), i = prop(t, "placeholder", 7, ""), a = prop(t, "disabled", 7, !1), o = prop(t, "submitOnEnter", 7, !0), s = prop(t, "maxLength", 7, 0), c = prop(t, "streaming", 7, !1), l = prop(t, "recording", 7, !1), u = prop(t, "attachments", 31, () => proxy([])), d = prop(t, "attachmentsPreview", 7), f = prop(t, "richImages", 23, () => []), p = prop(t, "richFiles", 23, () => []), m = prop(t, "richVideos", 23, () => []), h = prop(t, "richImageTooltip", 7), g = prop(t, "richVideoTooltip", 7), _ = prop(t, "richRemoveIcon", 7), v = prop(t, "richFileIcon", 7), y = prop(t, "onremoverichimage", 7), b = prop(t, "onremoverichfile", 7), x = prop(t, "onremoverichvideo", 7), S = prop(t, "onopenrichimage", 7), C = prop(t, "onopenrichvideo", 7), w = prop(t, "onopenrichfile", 7), T = prop(t, "sendable", 7, null), E = prop(t, "accept", 7, ""), D = prop(t, "multiple", 7, !1), O = prop(t, "sendLabel", 7, "Send message"), k = prop(t, "stopLabel", 7, "Stop generating"), A = prop(t, "voiceLabel", 7, "Voice input"), j = prop(t, "attachLabel", 7, "Attach files"), M = prop(t, "sendIcon", 7), N = prop(t, "stopIcon", 7), P = prop(t, "voiceIcon", 7), F = prop(t, "attachIcon", 7), I = prop(t, "actionIcon", 7), L = prop(t, "actionLabel", 7, "Voice conversation"), R = prop(t, "leading", 7), z = prop(t, "onsubmit", 7), B = prop(t, "oninput", 7), V = prop(t, "onkeydown", 7), H = prop(t, "onpaste", 7), U = prop(t, "onstop", 7), W = prop(t, "onvoice", 7), G = prop(t, "onattach", 7), K = prop(t, "onattachclick", 7), q = prop(t, "onaction", 7), J = prop(t, "testId", 7), Y = prop(t, "inputTestId", 7), X = prop(t, "inputAriaLabel", 7), Z = prop(t, "sendTestId", 7), Q = prop(t, "sendSlotTestId", 7),
|
|
30053
|
+
let n = prop(t, "value", 15, ""), i = prop(t, "placeholder", 7, ""), a = prop(t, "disabled", 7, !1), o = prop(t, "submitOnEnter", 7, !0), s = prop(t, "maxLength", 7, 0), c = prop(t, "streaming", 7, !1), l = prop(t, "recording", 7, !1), u = prop(t, "attachments", 31, () => proxy([])), d = prop(t, "attachmentsPreview", 7), f = prop(t, "richImages", 23, () => []), p = prop(t, "richFiles", 23, () => []), m = prop(t, "richVideos", 23, () => []), h = prop(t, "richImageTooltip", 7), g = prop(t, "richVideoTooltip", 7), _ = prop(t, "richRemoveIcon", 7), v = prop(t, "richFileIcon", 7), y = prop(t, "onremoverichimage", 7), b = prop(t, "onremoverichfile", 7), x = prop(t, "onremoverichvideo", 7), S = prop(t, "onopenrichimage", 7), C = prop(t, "onopenrichvideo", 7), w = prop(t, "onopenrichfile", 7), T = prop(t, "sendable", 7, null), E = prop(t, "accept", 7, ""), D = prop(t, "multiple", 7, !1), O = prop(t, "sendLabel", 7, "Send message"), k = prop(t, "stopLabel", 7, "Stop generating"), A = prop(t, "voiceLabel", 7, "Voice input"), j = prop(t, "attachLabel", 7, "Attach files"), M = prop(t, "sendIcon", 7), N = prop(t, "stopIcon", 7), P = prop(t, "voiceIcon", 7), F = prop(t, "attachIcon", 7), I = prop(t, "actionIcon", 7), L = prop(t, "actionLabel", 7, "Voice conversation"), R = prop(t, "leading", 7), z = prop(t, "onsubmit", 7), B = prop(t, "oninput", 7), V = prop(t, "onkeydown", 7), H = prop(t, "onpaste", 7), U = prop(t, "onstop", 7), W = prop(t, "onvoice", 7), G = prop(t, "onattach", 7), K = prop(t, "onattachclick", 7), q = prop(t, "onaction", 7), J = prop(t, "testId", 7), Y = prop(t, "inputTestId", 7), X = prop(t, "inputAriaLabel", 7), Z = prop(t, "sendTestId", 7), Q = prop(t, "sendSlotTestId", 7), ee = prop(t, "stopTestId", 7), $ = prop(t, "voiceTestId", 7), te = prop(t, "attachTestId", 7), ne = prop(t, "actionTestId", 7), re = prop(t, "classes", 7), ie = /* @__PURE__ */ state(null), ae = /* @__PURE__ */ user_derived(() => typeof W() == "function"), oe = /* @__PURE__ */ user_derived(() => typeof G() == "function" || typeof K() == "function"), se = /* @__PURE__ */ user_derived(() => f().length > 0 || m().length > 0 || p().length > 0), ce = /* @__PURE__ */ user_derived(() => !a() && (T() ?? (n().trim().length > 0 || u().length > 0 || get(se))));
|
|
29872
30054
|
function le() {
|
|
29873
30055
|
get(ce) && (z()?.(n(), u()), n(""), u([]));
|
|
29874
30056
|
}
|
|
@@ -30193,16 +30375,16 @@ function ChatComposer(e, t) {
|
|
|
30193
30375
|
Q(e), flushSync();
|
|
30194
30376
|
},
|
|
30195
30377
|
get stopTestId() {
|
|
30196
|
-
return
|
|
30378
|
+
return ee();
|
|
30197
30379
|
},
|
|
30198
30380
|
set stopTestId(e) {
|
|
30199
|
-
|
|
30381
|
+
ee(e), flushSync();
|
|
30200
30382
|
},
|
|
30201
30383
|
get voiceTestId() {
|
|
30202
|
-
return
|
|
30384
|
+
return $();
|
|
30203
30385
|
},
|
|
30204
30386
|
set voiceTestId(e) {
|
|
30205
|
-
|
|
30387
|
+
$(e), flushSync();
|
|
30206
30388
|
},
|
|
30207
30389
|
get attachTestId() {
|
|
30208
30390
|
return te();
|
|
@@ -30354,7 +30536,7 @@ function ChatComposer(e, t) {
|
|
|
30354
30536
|
return A();
|
|
30355
30537
|
},
|
|
30356
30538
|
get testId() {
|
|
30357
|
-
return
|
|
30539
|
+
return $();
|
|
30358
30540
|
},
|
|
30359
30541
|
children: (e, t) => {
|
|
30360
30542
|
var n = comment(), i = first_child(n), a = (e) => {
|
|
@@ -30382,7 +30564,7 @@ function ChatComposer(e, t) {
|
|
|
30382
30564
|
return k();
|
|
30383
30565
|
},
|
|
30384
30566
|
get testId() {
|
|
30385
|
-
return
|
|
30567
|
+
return ee();
|
|
30386
30568
|
},
|
|
30387
30569
|
children: (e, t) => {
|
|
30388
30570
|
var n = comment(), i = first_child(n), a = (e) => {
|
|
@@ -31134,7 +31316,7 @@ function ThinkingIndicator(e, t) {
|
|
|
31134
31316
|
reset(c), reset(t), template_effect(() => {
|
|
31135
31317
|
set_class(t, 1, `thinking-indicator-chip ${h() ?? "" ?? ""}`, "svelte-uzfrw6"), set_attribute(t, "data-pw", typeof d() == "string" ? d() : null), set_attribute(t, "testid", typeof d() == "string" ? d() : null), u = set_class(c, 1, "chip-label svelte-uzfrw6", null, u, { "static-label": !get(k) }), set_attribute(c, "data-pw", m() ?? null), set_text(f, n());
|
|
31136
31318
|
}), append(e, t);
|
|
31137
|
-
},
|
|
31319
|
+
}, ee = (e) => {
|
|
31138
31320
|
var t = root_26(), i = child(t), a = child(i), o = child(a), c = (e) => {
|
|
31139
31321
|
var t = comment();
|
|
31140
31322
|
snippet(first_child(t), l), append(e, t);
|
|
@@ -31161,7 +31343,7 @@ function ThinkingIndicator(e, t) {
|
|
|
31161
31343
|
}), append(e, t);
|
|
31162
31344
|
};
|
|
31163
31345
|
return if_block(Y, (e) => {
|
|
31164
|
-
get(O) ? e(X) : o() === "bare" ? e(Z, 1) : o() === "chip" ? e(Q, 2) : e(
|
|
31346
|
+
get(O) ? e(X) : o() === "bare" ? e(Z, 1) : o() === "chip" ? e(Q, 2) : e(ee, -1);
|
|
31165
31347
|
}), append(e, J), pop(q);
|
|
31166
31348
|
}
|
|
31167
31349
|
delegate(["click"]), create_custom_element(ThinkingIndicator, {
|
|
@@ -31197,15 +31379,15 @@ var root$3 = /* @__PURE__ */ from_html("<div class=\"tool-status svelte-2jkbfk\"
|
|
|
31197
31379
|
};
|
|
31198
31380
|
function Chat(e, t) {
|
|
31199
31381
|
push(t, !0), append_styles$1(e, $$css$4);
|
|
31200
|
-
let n = prop(t, "messages", 7), i = prop(t, "value", 15, ""), a = prop(t, "title", 7, ""), o = prop(t, "subtitle", 7, ""), s = prop(t, "image", 7), c = prop(t, "imageAlt", 7, ""), l = prop(t, "placeholder", 7, ""), u = prop(t, "disabled", 7, !1), d = prop(t, "streaming", 7, !1), f = prop(t, "recording", 7, !1), p = prop(t, "autoscroll", 7, !0), m = prop(t, "toolStatus", 7, null),
|
|
31201
|
-
function
|
|
31202
|
-
if (typeof
|
|
31203
|
-
|
|
31382
|
+
let n = prop(t, "messages", 7), i = prop(t, "value", 15, ""), a = prop(t, "title", 7, ""), o = prop(t, "subtitle", 7, ""), s = prop(t, "image", 7), c = prop(t, "imageAlt", 7, ""), l = prop(t, "placeholder", 7, ""), u = prop(t, "disabled", 7, !1), d = prop(t, "streaming", 7, !1), f = prop(t, "recording", 7, !1), p = prop(t, "autoscroll", 7, !0), m = prop(t, "scrollPolicy", 7, "near-bottom"), h = prop(t, "pinHold", 7, !1), g = prop(t, "jump", 7, !0), _ = prop(t, "jumpLabel", 7, "Jump to latest"), v = prop(t, "jumpIcon", 7), y = prop(t, "toolStatus", 7, null), b = prop(t, "suggestions", 23, () => []), x = prop(t, "attachments", 31, () => proxy([])), S = prop(t, "accept", 7, ""), C = prop(t, "multiple", 7, !1), w = prop(t, "allowCopy", 7, !1), T = prop(t, "closeLabel", 7, "Close"), E = prop(t, "showClose", 7), D = prop(t, "headerAvatar", 7), O = prop(t, "headerActions", 7), k = prop(t, "headerContent", 7), A = prop(t, "message", 7), j = prop(t, "messageBody", 7), M = prop(t, "messageAttachments", 7), N = prop(t, "empty", 7), P = prop(t, "composerLeading", 7), F = prop(t, "sendIcon", 7), I = prop(t, "stopIcon", 7), L = prop(t, "voiceIcon", 7), R = prop(t, "attachIcon", 7), z = prop(t, "onsend", 7), B = prop(t, "onsuggestion", 7), V = prop(t, "onclose", 7), H = prop(t, "onstop", 7), U = prop(t, "onvoice", 7), W = prop(t, "onattach", 7), G = prop(t, "onretry", 7), K = prop(t, "onfeedback", 7), q = prop(t, "onscrollstate", 7), J = prop(t, "testId", 7), Y = prop(t, "classes", 7), X = /* @__PURE__ */ user_derived(() => a().length > 0 || o().length > 0 || typeof s() == "string" && s().length > 0 || typeof V() == "function" || typeof D() == "function" || typeof O() == "function"), Z = /* @__PURE__ */ user_derived(() => b().length > 0 && n().length === 0);
|
|
31383
|
+
function Q(e, t) {
|
|
31384
|
+
if (typeof B() == "function") {
|
|
31385
|
+
B()(e, t);
|
|
31204
31386
|
return;
|
|
31205
31387
|
}
|
|
31206
|
-
|
|
31388
|
+
z()?.(e, []);
|
|
31207
31389
|
}
|
|
31208
|
-
var
|
|
31390
|
+
var ee = {
|
|
31209
31391
|
get messages() {
|
|
31210
31392
|
return n();
|
|
31211
31393
|
},
|
|
@@ -31272,187 +31454,223 @@ function Chat(e, t) {
|
|
|
31272
31454
|
set autoscroll(e = !0) {
|
|
31273
31455
|
p(e), flushSync();
|
|
31274
31456
|
},
|
|
31275
|
-
get
|
|
31457
|
+
get scrollPolicy() {
|
|
31276
31458
|
return m();
|
|
31277
31459
|
},
|
|
31278
|
-
set
|
|
31460
|
+
set scrollPolicy(e = "near-bottom") {
|
|
31279
31461
|
m(e), flushSync();
|
|
31280
31462
|
},
|
|
31281
|
-
get
|
|
31463
|
+
get pinHold() {
|
|
31282
31464
|
return h();
|
|
31283
31465
|
},
|
|
31284
|
-
set
|
|
31466
|
+
set pinHold(e = !1) {
|
|
31285
31467
|
h(e), flushSync();
|
|
31286
31468
|
},
|
|
31287
|
-
get
|
|
31469
|
+
get jump() {
|
|
31288
31470
|
return g();
|
|
31289
31471
|
},
|
|
31290
|
-
set
|
|
31472
|
+
set jump(e = !0) {
|
|
31291
31473
|
g(e), flushSync();
|
|
31292
31474
|
},
|
|
31293
|
-
get
|
|
31475
|
+
get jumpLabel() {
|
|
31294
31476
|
return _();
|
|
31295
31477
|
},
|
|
31296
|
-
set
|
|
31478
|
+
set jumpLabel(e = "Jump to latest") {
|
|
31297
31479
|
_(e), flushSync();
|
|
31298
31480
|
},
|
|
31299
|
-
get
|
|
31481
|
+
get jumpIcon() {
|
|
31300
31482
|
return v();
|
|
31301
31483
|
},
|
|
31302
|
-
set
|
|
31484
|
+
set jumpIcon(e) {
|
|
31303
31485
|
v(e), flushSync();
|
|
31304
31486
|
},
|
|
31305
|
-
get
|
|
31487
|
+
get toolStatus() {
|
|
31306
31488
|
return y();
|
|
31307
31489
|
},
|
|
31308
|
-
set
|
|
31490
|
+
set toolStatus(e = null) {
|
|
31309
31491
|
y(e), flushSync();
|
|
31310
31492
|
},
|
|
31311
|
-
get
|
|
31493
|
+
get suggestions() {
|
|
31312
31494
|
return b();
|
|
31313
31495
|
},
|
|
31314
|
-
set
|
|
31496
|
+
set suggestions(e = []) {
|
|
31315
31497
|
b(e), flushSync();
|
|
31316
31498
|
},
|
|
31317
|
-
get
|
|
31499
|
+
get attachments() {
|
|
31318
31500
|
return x();
|
|
31319
31501
|
},
|
|
31320
|
-
set
|
|
31502
|
+
set attachments(e = []) {
|
|
31321
31503
|
x(e), flushSync();
|
|
31322
31504
|
},
|
|
31323
|
-
get
|
|
31505
|
+
get accept() {
|
|
31324
31506
|
return S();
|
|
31325
31507
|
},
|
|
31326
|
-
set
|
|
31508
|
+
set accept(e = "") {
|
|
31327
31509
|
S(e), flushSync();
|
|
31328
31510
|
},
|
|
31329
|
-
get
|
|
31511
|
+
get multiple() {
|
|
31330
31512
|
return C();
|
|
31331
31513
|
},
|
|
31332
|
-
set
|
|
31514
|
+
set multiple(e = !1) {
|
|
31333
31515
|
C(e), flushSync();
|
|
31334
31516
|
},
|
|
31335
|
-
get
|
|
31517
|
+
get allowCopy() {
|
|
31336
31518
|
return w();
|
|
31337
31519
|
},
|
|
31338
|
-
set
|
|
31520
|
+
set allowCopy(e = !1) {
|
|
31339
31521
|
w(e), flushSync();
|
|
31340
31522
|
},
|
|
31341
|
-
get
|
|
31523
|
+
get closeLabel() {
|
|
31342
31524
|
return T();
|
|
31343
31525
|
},
|
|
31344
|
-
set
|
|
31526
|
+
set closeLabel(e = "Close") {
|
|
31345
31527
|
T(e), flushSync();
|
|
31346
31528
|
},
|
|
31347
|
-
get
|
|
31529
|
+
get showClose() {
|
|
31348
31530
|
return E();
|
|
31349
31531
|
},
|
|
31350
|
-
set
|
|
31532
|
+
set showClose(e) {
|
|
31351
31533
|
E(e), flushSync();
|
|
31352
31534
|
},
|
|
31353
|
-
get
|
|
31535
|
+
get headerAvatar() {
|
|
31354
31536
|
return D();
|
|
31355
31537
|
},
|
|
31356
|
-
set
|
|
31538
|
+
set headerAvatar(e) {
|
|
31357
31539
|
D(e), flushSync();
|
|
31358
31540
|
},
|
|
31359
|
-
get
|
|
31541
|
+
get headerActions() {
|
|
31360
31542
|
return O();
|
|
31361
31543
|
},
|
|
31362
|
-
set
|
|
31544
|
+
set headerActions(e) {
|
|
31363
31545
|
O(e), flushSync();
|
|
31364
31546
|
},
|
|
31365
|
-
get
|
|
31547
|
+
get headerContent() {
|
|
31366
31548
|
return k();
|
|
31367
31549
|
},
|
|
31368
|
-
set
|
|
31550
|
+
set headerContent(e) {
|
|
31369
31551
|
k(e), flushSync();
|
|
31370
31552
|
},
|
|
31371
|
-
get
|
|
31553
|
+
get message() {
|
|
31372
31554
|
return A();
|
|
31373
31555
|
},
|
|
31374
|
-
set
|
|
31556
|
+
set message(e) {
|
|
31375
31557
|
A(e), flushSync();
|
|
31376
31558
|
},
|
|
31377
|
-
get
|
|
31559
|
+
get messageBody() {
|
|
31378
31560
|
return j();
|
|
31379
31561
|
},
|
|
31380
|
-
set
|
|
31562
|
+
set messageBody(e) {
|
|
31381
31563
|
j(e), flushSync();
|
|
31382
31564
|
},
|
|
31383
|
-
get
|
|
31565
|
+
get messageAttachments() {
|
|
31384
31566
|
return M();
|
|
31385
31567
|
},
|
|
31386
|
-
set
|
|
31568
|
+
set messageAttachments(e) {
|
|
31387
31569
|
M(e), flushSync();
|
|
31388
31570
|
},
|
|
31389
|
-
get
|
|
31571
|
+
get empty() {
|
|
31390
31572
|
return N();
|
|
31391
31573
|
},
|
|
31392
|
-
set
|
|
31574
|
+
set empty(e) {
|
|
31393
31575
|
N(e), flushSync();
|
|
31394
31576
|
},
|
|
31395
|
-
get
|
|
31577
|
+
get composerLeading() {
|
|
31396
31578
|
return P();
|
|
31397
31579
|
},
|
|
31398
|
-
set
|
|
31580
|
+
set composerLeading(e) {
|
|
31399
31581
|
P(e), flushSync();
|
|
31400
31582
|
},
|
|
31401
|
-
get
|
|
31583
|
+
get sendIcon() {
|
|
31402
31584
|
return F();
|
|
31403
31585
|
},
|
|
31404
|
-
set
|
|
31586
|
+
set sendIcon(e) {
|
|
31405
31587
|
F(e), flushSync();
|
|
31406
31588
|
},
|
|
31407
|
-
get
|
|
31589
|
+
get stopIcon() {
|
|
31408
31590
|
return I();
|
|
31409
31591
|
},
|
|
31410
|
-
set
|
|
31592
|
+
set stopIcon(e) {
|
|
31411
31593
|
I(e), flushSync();
|
|
31412
31594
|
},
|
|
31413
|
-
get
|
|
31595
|
+
get voiceIcon() {
|
|
31414
31596
|
return L();
|
|
31415
31597
|
},
|
|
31416
|
-
set
|
|
31598
|
+
set voiceIcon(e) {
|
|
31417
31599
|
L(e), flushSync();
|
|
31418
31600
|
},
|
|
31419
|
-
get
|
|
31601
|
+
get attachIcon() {
|
|
31420
31602
|
return R();
|
|
31421
31603
|
},
|
|
31422
|
-
set
|
|
31604
|
+
set attachIcon(e) {
|
|
31423
31605
|
R(e), flushSync();
|
|
31424
31606
|
},
|
|
31425
|
-
get
|
|
31607
|
+
get onsend() {
|
|
31426
31608
|
return z();
|
|
31427
31609
|
},
|
|
31428
|
-
set
|
|
31610
|
+
set onsend(e) {
|
|
31429
31611
|
z(e), flushSync();
|
|
31430
31612
|
},
|
|
31431
|
-
get
|
|
31613
|
+
get onsuggestion() {
|
|
31432
31614
|
return B();
|
|
31433
31615
|
},
|
|
31434
|
-
set
|
|
31616
|
+
set onsuggestion(e) {
|
|
31435
31617
|
B(e), flushSync();
|
|
31436
31618
|
},
|
|
31437
|
-
get
|
|
31619
|
+
get onclose() {
|
|
31438
31620
|
return V();
|
|
31439
31621
|
},
|
|
31440
|
-
set
|
|
31622
|
+
set onclose(e) {
|
|
31441
31623
|
V(e), flushSync();
|
|
31442
31624
|
},
|
|
31443
|
-
get
|
|
31625
|
+
get onstop() {
|
|
31444
31626
|
return H();
|
|
31445
31627
|
},
|
|
31446
|
-
set
|
|
31628
|
+
set onstop(e) {
|
|
31447
31629
|
H(e), flushSync();
|
|
31448
31630
|
},
|
|
31449
|
-
get
|
|
31631
|
+
get onvoice() {
|
|
31450
31632
|
return U();
|
|
31451
31633
|
},
|
|
31452
|
-
set
|
|
31634
|
+
set onvoice(e) {
|
|
31453
31635
|
U(e), flushSync();
|
|
31636
|
+
},
|
|
31637
|
+
get onattach() {
|
|
31638
|
+
return W();
|
|
31639
|
+
},
|
|
31640
|
+
set onattach(e) {
|
|
31641
|
+
W(e), flushSync();
|
|
31642
|
+
},
|
|
31643
|
+
get onretry() {
|
|
31644
|
+
return G();
|
|
31645
|
+
},
|
|
31646
|
+
set onretry(e) {
|
|
31647
|
+
G(e), flushSync();
|
|
31648
|
+
},
|
|
31649
|
+
get onfeedback() {
|
|
31650
|
+
return K();
|
|
31651
|
+
},
|
|
31652
|
+
set onfeedback(e) {
|
|
31653
|
+
K(e), flushSync();
|
|
31654
|
+
},
|
|
31655
|
+
get onscrollstate() {
|
|
31656
|
+
return q();
|
|
31657
|
+
},
|
|
31658
|
+
set onscrollstate(e) {
|
|
31659
|
+
q(e), flushSync();
|
|
31660
|
+
},
|
|
31661
|
+
get testId() {
|
|
31662
|
+
return J();
|
|
31663
|
+
},
|
|
31664
|
+
set testId(e) {
|
|
31665
|
+
J(e), flushSync();
|
|
31666
|
+
},
|
|
31667
|
+
get classes() {
|
|
31668
|
+
return Y();
|
|
31669
|
+
},
|
|
31670
|
+
set classes(e) {
|
|
31671
|
+
Y(e), flushSync();
|
|
31454
31672
|
}
|
|
31455
|
-
},
|
|
31673
|
+
}, $ = root_1$3(), te = child($), ne = (e) => {
|
|
31456
31674
|
ChatHeader(e, {
|
|
31457
31675
|
get title() {
|
|
31458
31676
|
return a();
|
|
@@ -31467,84 +31685,102 @@ function Chat(e, t) {
|
|
|
31467
31685
|
return c();
|
|
31468
31686
|
},
|
|
31469
31687
|
get closeLabel() {
|
|
31470
|
-
return
|
|
31688
|
+
return T();
|
|
31471
31689
|
},
|
|
31472
31690
|
get showClose() {
|
|
31473
|
-
return
|
|
31691
|
+
return E();
|
|
31474
31692
|
},
|
|
31475
31693
|
get onclose() {
|
|
31476
|
-
return
|
|
31694
|
+
return V();
|
|
31477
31695
|
},
|
|
31478
31696
|
get avatar() {
|
|
31479
|
-
return
|
|
31697
|
+
return D();
|
|
31480
31698
|
},
|
|
31481
31699
|
get actions() {
|
|
31482
|
-
return
|
|
31700
|
+
return O();
|
|
31483
31701
|
},
|
|
31484
31702
|
get children() {
|
|
31485
|
-
return
|
|
31703
|
+
return k();
|
|
31486
31704
|
}
|
|
31487
31705
|
});
|
|
31488
31706
|
};
|
|
31489
|
-
if_block(
|
|
31490
|
-
get(
|
|
31707
|
+
if_block(te, (e) => {
|
|
31708
|
+
get(X) && e(ne);
|
|
31491
31709
|
});
|
|
31492
|
-
var
|
|
31493
|
-
ChatMessageList(
|
|
31710
|
+
var re = sibling(te, 2);
|
|
31711
|
+
ChatMessageList(re, {
|
|
31494
31712
|
get messages() {
|
|
31495
31713
|
return n();
|
|
31496
31714
|
},
|
|
31497
31715
|
get autoscroll() {
|
|
31498
31716
|
return p();
|
|
31499
31717
|
},
|
|
31718
|
+
get scrollPolicy() {
|
|
31719
|
+
return m();
|
|
31720
|
+
},
|
|
31721
|
+
get pinHold() {
|
|
31722
|
+
return h();
|
|
31723
|
+
},
|
|
31724
|
+
get jump() {
|
|
31725
|
+
return g();
|
|
31726
|
+
},
|
|
31727
|
+
get jumpLabel() {
|
|
31728
|
+
return _();
|
|
31729
|
+
},
|
|
31730
|
+
get jumpIcon() {
|
|
31731
|
+
return v();
|
|
31732
|
+
},
|
|
31500
31733
|
get message() {
|
|
31501
|
-
return
|
|
31734
|
+
return A();
|
|
31502
31735
|
},
|
|
31503
31736
|
get messageBody() {
|
|
31504
|
-
return
|
|
31737
|
+
return j();
|
|
31505
31738
|
},
|
|
31506
31739
|
get messageAttachments() {
|
|
31507
|
-
return
|
|
31740
|
+
return M();
|
|
31508
31741
|
},
|
|
31509
31742
|
get empty() {
|
|
31510
|
-
return
|
|
31743
|
+
return N();
|
|
31511
31744
|
},
|
|
31512
31745
|
get allowCopy() {
|
|
31513
|
-
return
|
|
31746
|
+
return w();
|
|
31514
31747
|
},
|
|
31515
31748
|
get onretry() {
|
|
31516
|
-
return
|
|
31749
|
+
return G();
|
|
31517
31750
|
},
|
|
31518
31751
|
get onfeedback() {
|
|
31519
|
-
return
|
|
31752
|
+
return K();
|
|
31753
|
+
},
|
|
31754
|
+
get onscrollstate() {
|
|
31755
|
+
return q();
|
|
31520
31756
|
}
|
|
31521
31757
|
});
|
|
31522
|
-
var
|
|
31758
|
+
var ie = sibling(re, 2), ae = child(ie), oe = (e) => {
|
|
31523
31759
|
ChatSuggestions(e, {
|
|
31524
31760
|
get items() {
|
|
31525
|
-
return
|
|
31761
|
+
return b();
|
|
31526
31762
|
},
|
|
31527
31763
|
get disabled() {
|
|
31528
31764
|
return u();
|
|
31529
31765
|
},
|
|
31530
|
-
onselect:
|
|
31766
|
+
onselect: Q
|
|
31531
31767
|
});
|
|
31532
31768
|
};
|
|
31533
|
-
if_block(
|
|
31534
|
-
get(
|
|
31769
|
+
if_block(ae, (e) => {
|
|
31770
|
+
get(Z) && e(oe);
|
|
31535
31771
|
});
|
|
31536
|
-
var
|
|
31772
|
+
var se = sibling(ae, 2), ce = (e) => {
|
|
31537
31773
|
var t = root$3();
|
|
31538
31774
|
ThinkingIndicator(child(t), {
|
|
31539
31775
|
get label() {
|
|
31540
|
-
return
|
|
31776
|
+
return y().label;
|
|
31541
31777
|
},
|
|
31542
31778
|
variant: "chip"
|
|
31543
31779
|
}), reset(t), append(e, t);
|
|
31544
31780
|
};
|
|
31545
|
-
return if_block(
|
|
31546
|
-
|
|
31547
|
-
}), ChatComposer(sibling(
|
|
31781
|
+
return if_block(se, (e) => {
|
|
31782
|
+
y() !== null && e(ce);
|
|
31783
|
+
}), ChatComposer(sibling(se, 2), {
|
|
31548
31784
|
get placeholder() {
|
|
31549
31785
|
return l();
|
|
31550
31786
|
},
|
|
@@ -31558,37 +31794,37 @@ function Chat(e, t) {
|
|
|
31558
31794
|
return f();
|
|
31559
31795
|
},
|
|
31560
31796
|
get accept() {
|
|
31561
|
-
return
|
|
31797
|
+
return S();
|
|
31562
31798
|
},
|
|
31563
31799
|
get multiple() {
|
|
31564
|
-
return
|
|
31800
|
+
return C();
|
|
31565
31801
|
},
|
|
31566
31802
|
get onsubmit() {
|
|
31567
|
-
return
|
|
31803
|
+
return z();
|
|
31568
31804
|
},
|
|
31569
31805
|
get onstop() {
|
|
31570
|
-
return
|
|
31806
|
+
return H();
|
|
31571
31807
|
},
|
|
31572
31808
|
get onvoice() {
|
|
31573
|
-
return
|
|
31809
|
+
return U();
|
|
31574
31810
|
},
|
|
31575
31811
|
get onattach() {
|
|
31576
|
-
return
|
|
31812
|
+
return W();
|
|
31577
31813
|
},
|
|
31578
31814
|
get leading() {
|
|
31579
|
-
return
|
|
31815
|
+
return P();
|
|
31580
31816
|
},
|
|
31581
31817
|
get sendIcon() {
|
|
31582
|
-
return
|
|
31818
|
+
return F();
|
|
31583
31819
|
},
|
|
31584
31820
|
get stopIcon() {
|
|
31585
|
-
return
|
|
31821
|
+
return I();
|
|
31586
31822
|
},
|
|
31587
31823
|
get voiceIcon() {
|
|
31588
|
-
return
|
|
31824
|
+
return L();
|
|
31589
31825
|
},
|
|
31590
31826
|
get attachIcon() {
|
|
31591
|
-
return
|
|
31827
|
+
return R();
|
|
31592
31828
|
},
|
|
31593
31829
|
get value() {
|
|
31594
31830
|
return i();
|
|
@@ -31597,14 +31833,14 @@ function Chat(e, t) {
|
|
|
31597
31833
|
i(e);
|
|
31598
31834
|
},
|
|
31599
31835
|
get attachments() {
|
|
31600
|
-
return
|
|
31836
|
+
return x();
|
|
31601
31837
|
},
|
|
31602
31838
|
set attachments(e) {
|
|
31603
|
-
|
|
31839
|
+
x(e);
|
|
31604
31840
|
}
|
|
31605
|
-
}), reset(
|
|
31606
|
-
set_class(
|
|
31607
|
-
}), append(e,
|
|
31841
|
+
}), reset(ie), reset($), template_effect(() => {
|
|
31842
|
+
set_class($, 1, `chat ${Y() ?? "" ?? ""}`, "svelte-2jkbfk"), set_attribute($, "data-pw", typeof J() == "string" ? J() : null), set_attribute($, "testid", typeof J() == "string" ? J() : null);
|
|
31843
|
+
}), append(e, $), pop(ee);
|
|
31608
31844
|
}
|
|
31609
31845
|
create_custom_element(Chat, {
|
|
31610
31846
|
messages: {},
|
|
@@ -31618,6 +31854,11 @@ create_custom_element(Chat, {
|
|
|
31618
31854
|
streaming: {},
|
|
31619
31855
|
recording: {},
|
|
31620
31856
|
autoscroll: {},
|
|
31857
|
+
scrollPolicy: {},
|
|
31858
|
+
pinHold: {},
|
|
31859
|
+
jump: {},
|
|
31860
|
+
jumpLabel: {},
|
|
31861
|
+
jumpIcon: {},
|
|
31621
31862
|
toolStatus: {},
|
|
31622
31863
|
suggestions: {},
|
|
31623
31864
|
attachments: {},
|
|
@@ -31646,6 +31887,7 @@ create_custom_element(Chat, {
|
|
|
31646
31887
|
onattach: {},
|
|
31647
31888
|
onretry: {},
|
|
31648
31889
|
onfeedback: {},
|
|
31890
|
+
onscrollstate: {},
|
|
31649
31891
|
testId: {},
|
|
31650
31892
|
classes: {}
|
|
31651
31893
|
}, [], [], { mode: "open" });
|
|
@@ -31700,6 +31942,23 @@ customElements.define("sui-chat", create_custom_element(Chat_wc, {
|
|
|
31700
31942
|
reflect: !0,
|
|
31701
31943
|
type: "Boolean"
|
|
31702
31944
|
},
|
|
31945
|
+
scrollPolicy: {
|
|
31946
|
+
attribute: "scroll-policy",
|
|
31947
|
+
type: "String"
|
|
31948
|
+
},
|
|
31949
|
+
pinHold: {
|
|
31950
|
+
attribute: "pin-hold",
|
|
31951
|
+
type: "Boolean"
|
|
31952
|
+
},
|
|
31953
|
+
jump: {
|
|
31954
|
+
reflect: !0,
|
|
31955
|
+
type: "Boolean"
|
|
31956
|
+
},
|
|
31957
|
+
jumpLabel: {
|
|
31958
|
+
attribute: "jump-label",
|
|
31959
|
+
type: "String"
|
|
31960
|
+
},
|
|
31961
|
+
jumpIcon: { type: "Object" },
|
|
31703
31962
|
toolStatus: {
|
|
31704
31963
|
attribute: "tool-status",
|
|
31705
31964
|
type: "Object"
|
|
@@ -31749,7 +32008,8 @@ customElements.define("sui-chat", create_custom_element(Chat_wc, {
|
|
|
31749
32008
|
onvoice: { type: "Object" },
|
|
31750
32009
|
onattach: { type: "Object" },
|
|
31751
32010
|
onretry: { type: "Object" },
|
|
31752
|
-
onfeedback: { type: "Object" }
|
|
32011
|
+
onfeedback: { type: "Object" },
|
|
32012
|
+
onscrollstate: { type: "Object" }
|
|
31753
32013
|
}, [], [], { mode: "open" }));
|
|
31754
32014
|
//#endregion
|
|
31755
32015
|
//#region src/wc/components/ChatHeader.wc.svelte
|
|
@@ -32252,7 +32512,7 @@ function ChatBubble(e, t) {
|
|
|
32252
32512
|
y: a
|
|
32253
32513
|
};
|
|
32254
32514
|
}
|
|
32255
|
-
function
|
|
32515
|
+
function ee(e) {
|
|
32256
32516
|
if (get(M) === null) return;
|
|
32257
32517
|
let t = e.clientX - get(M).startX, i = e.clientY - get(M).startY;
|
|
32258
32518
|
if (!get(M).moved && Math.hypot(t, i) < 4) return;
|
|
@@ -32263,7 +32523,7 @@ function ChatBubble(e, t) {
|
|
|
32263
32523
|
q(e, t, e + get(M).width, t + get(M).height, get(N), get(P));
|
|
32264
32524
|
}
|
|
32265
32525
|
}
|
|
32266
|
-
function
|
|
32526
|
+
function $() {
|
|
32267
32527
|
if (get(M) === null) return;
|
|
32268
32528
|
let e = get(M);
|
|
32269
32529
|
if (set(M, null), !e.moved || (L = !0, typeof window > "u")) return;
|
|
@@ -32423,7 +32683,7 @@ function ChatBubble(e, t) {
|
|
|
32423
32683
|
E(e), flushSync();
|
|
32424
32684
|
}
|
|
32425
32685
|
}, re = root_3$2();
|
|
32426
|
-
event("pointermove", $window,
|
|
32686
|
+
event("pointermove", $window, ee), event("pointerup", $window, $);
|
|
32427
32687
|
let ie, ae;
|
|
32428
32688
|
var oe = child(re), se = (e) => {
|
|
32429
32689
|
var t = root_2$2();
|