@strands.gg/accui 2.12.1 → 2.14.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/accui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +289 -204
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -290,13 +290,13 @@ const _hoisted_12$k = ["cx", "cy", "r"];
|
|
|
290
290
|
const _hoisted_13$i = ["width", "height"];
|
|
291
291
|
const _hoisted_14$i = { class: "crop-svg" };
|
|
292
292
|
const _hoisted_15$f = ["cx", "cy", "r"];
|
|
293
|
-
const _hoisted_16$
|
|
294
|
-
const _hoisted_17$
|
|
295
|
-
const _hoisted_18$
|
|
296
|
-
const _hoisted_19$
|
|
297
|
-
const _hoisted_20$
|
|
298
|
-
const _hoisted_21$
|
|
299
|
-
const _hoisted_22$
|
|
293
|
+
const _hoisted_16$f = { class: "controls" };
|
|
294
|
+
const _hoisted_17$e = { class: "zoom-control" };
|
|
295
|
+
const _hoisted_18$e = ["min", "max"];
|
|
296
|
+
const _hoisted_19$d = { class: "action-buttons" };
|
|
297
|
+
const _hoisted_20$b = { class: "preview-section" };
|
|
298
|
+
const _hoisted_21$b = { class: "preview-container" };
|
|
299
|
+
const _hoisted_22$8 = ["width", "height"];
|
|
300
300
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
301
301
|
__name: "UiAvatarEditor",
|
|
302
302
|
props: {
|
|
@@ -665,8 +665,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
665
665
|
]))
|
|
666
666
|
])
|
|
667
667
|
]),
|
|
668
|
-
createElementVNode("div", _hoisted_16$
|
|
669
|
-
createElementVNode("div", _hoisted_17$
|
|
668
|
+
createElementVNode("div", _hoisted_16$f, [
|
|
669
|
+
createElementVNode("div", _hoisted_17$e, [
|
|
670
670
|
createVNode(StrandsUiButton, {
|
|
671
671
|
onClick: _cache[2] || (_cache[2] = ($event) => {
|
|
672
672
|
zoom.value = Math.max(minZoom.value, zoom.value - 0.1);
|
|
@@ -695,7 +695,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
695
695
|
constrainImagePosition();
|
|
696
696
|
updateCanvas();
|
|
697
697
|
})
|
|
698
|
-
}, null, 40, _hoisted_18$
|
|
698
|
+
}, null, 40, _hoisted_18$e), [
|
|
699
699
|
[
|
|
700
700
|
vModelText,
|
|
701
701
|
zoom.value,
|
|
@@ -721,7 +721,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
721
721
|
_: 1
|
|
722
722
|
})
|
|
723
723
|
]),
|
|
724
|
-
createElementVNode("div", _hoisted_19$
|
|
724
|
+
createElementVNode("div", _hoisted_19$d, [
|
|
725
725
|
createVNode(StrandsUiButton, {
|
|
726
726
|
onClick: resetImage,
|
|
727
727
|
variant: "outline",
|
|
@@ -757,16 +757,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
757
757
|
])
|
|
758
758
|
])
|
|
759
759
|
]),
|
|
760
|
-
createElementVNode("div", _hoisted_20$
|
|
760
|
+
createElementVNode("div", _hoisted_20$b, [
|
|
761
761
|
_cache[9] || (_cache[9] = createElementVNode("h3", { class: "preview-title" }, "Preview", -1)),
|
|
762
|
-
createElementVNode("div", _hoisted_21$
|
|
762
|
+
createElementVNode("div", _hoisted_21$b, [
|
|
763
763
|
createElementVNode("canvas", {
|
|
764
764
|
ref_key: "previewCanvas",
|
|
765
765
|
ref: previewCanvas,
|
|
766
766
|
width: previewSize.value,
|
|
767
767
|
height: previewSize.value,
|
|
768
768
|
class: "preview-canvas"
|
|
769
|
-
}, null, 8, _hoisted_22$
|
|
769
|
+
}, null, 8, _hoisted_22$8)
|
|
770
770
|
]),
|
|
771
771
|
_cache[10] || (_cache[10] = createElementVNode("p", { class: "preview-instructions" }, [
|
|
772
772
|
createTextVNode(" Drag image to reposition"),
|
|
@@ -2427,16 +2427,16 @@ const _hoisted_12$i = { class: "ui-color-picker-contrast-header" };
|
|
|
2427
2427
|
const _hoisted_13$h = { class: "ui-color-picker-contrast-colors" };
|
|
2428
2428
|
const _hoisted_14$h = { class: "ui-color-picker-contrast-color-demo" };
|
|
2429
2429
|
const _hoisted_15$e = { class: "ui-color-picker-contrast-ratio" };
|
|
2430
|
-
const _hoisted_16$
|
|
2431
|
-
const _hoisted_17$
|
|
2432
|
-
const _hoisted_18$
|
|
2433
|
-
const _hoisted_19$
|
|
2434
|
-
const _hoisted_20$
|
|
2430
|
+
const _hoisted_16$e = { class: "ui-color-picker-contrast-levels" };
|
|
2431
|
+
const _hoisted_17$d = { class: "ui-color-picker-contrast-level-value" };
|
|
2432
|
+
const _hoisted_18$d = { class: "ui-color-picker-contrast-level-value" };
|
|
2433
|
+
const _hoisted_19$c = { class: "ui-color-picker-contrast-graph" };
|
|
2434
|
+
const _hoisted_20$a = {
|
|
2435
2435
|
viewBox: "0 0 280 40",
|
|
2436
2436
|
class: "ui-color-picker-contrast-svg"
|
|
2437
2437
|
};
|
|
2438
|
-
const _hoisted_21$
|
|
2439
|
-
const _hoisted_22$
|
|
2438
|
+
const _hoisted_21$a = ["cx", "fill"];
|
|
2439
|
+
const _hoisted_22$7 = { class: "ui-color-picker-inputs" };
|
|
2440
2440
|
const _hoisted_23$5 = {
|
|
2441
2441
|
key: 0,
|
|
2442
2442
|
class: "ui-color-picker-input-row"
|
|
@@ -4233,7 +4233,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4233
4233
|
createElementVNode("div", _hoisted_15$e, toDisplayString(contrastData.value.ratio.toFixed(2)) + ":1 ", 1)
|
|
4234
4234
|
])
|
|
4235
4235
|
]),
|
|
4236
|
-
createElementVNode("div", _hoisted_16$
|
|
4236
|
+
createElementVNode("div", _hoisted_16$e, [
|
|
4237
4237
|
createElementVNode("div", {
|
|
4238
4238
|
class: normalizeClass(["ui-color-picker-contrast-level", {
|
|
4239
4239
|
"ui-color-picker-contrast-level--pass": contrastData.value.normalText !== "FAIL",
|
|
@@ -4244,7 +4244,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4244
4244
|
createElementVNode("div", { class: "ui-color-picker-contrast-level-line ui-color-picker-contrast-level-line--solid" }),
|
|
4245
4245
|
createElementVNode("span", { class: "ui-color-picker-contrast-level-label" }, "Normal Text")
|
|
4246
4246
|
], -1)),
|
|
4247
|
-
createElementVNode("span", _hoisted_17$
|
|
4247
|
+
createElementVNode("span", _hoisted_17$d, toDisplayString(contrastData.value.normalText), 1)
|
|
4248
4248
|
], 2),
|
|
4249
4249
|
createElementVNode("div", {
|
|
4250
4250
|
class: normalizeClass(["ui-color-picker-contrast-level", {
|
|
@@ -4256,11 +4256,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4256
4256
|
createElementVNode("div", { class: "ui-color-picker-contrast-level-line ui-color-picker-contrast-level-line--dashed" }),
|
|
4257
4257
|
createElementVNode("span", { class: "ui-color-picker-contrast-level-label" }, "Large Text")
|
|
4258
4258
|
], -1)),
|
|
4259
|
-
createElementVNode("span", _hoisted_18$
|
|
4259
|
+
createElementVNode("span", _hoisted_18$d, toDisplayString(contrastData.value.largeText), 1)
|
|
4260
4260
|
], 2)
|
|
4261
4261
|
]),
|
|
4262
|
-
createElementVNode("div", _hoisted_19$
|
|
4263
|
-
(openBlock(), createElementBlock("svg", _hoisted_20$
|
|
4262
|
+
createElementVNode("div", _hoisted_19$c, [
|
|
4263
|
+
(openBlock(), createElementBlock("svg", _hoisted_20$a, [
|
|
4264
4264
|
_cache[21] || (_cache[21] = createStaticVNode('<defs data-v-24473a61><linearGradient id="contrastGradientDefault" x1="0%" y1="0%" x2="100%" y2="0%" data-v-24473a61><stop offset="0%" stop-color="#ef4444" data-v-24473a61></stop><stop offset="21.4%" stop-color="#ef4444" data-v-24473a61></stop><stop offset="21.4%" stop-color="#f59e0b" data-v-24473a61></stop><stop offset="64.3%" stop-color="#f59e0b" data-v-24473a61></stop><stop offset="64.3%" stop-color="#22c55e" data-v-24473a61></stop><stop offset="100%" stop-color="#22c55e" data-v-24473a61></stop></linearGradient></defs><rect x="0" y="15" width="280" height="10" fill="url(#contrastGradientDefault)" rx="5" data-v-24473a61></rect><line x1="60" y1="10" x2="60" y2="30" stroke="#666" stroke-width="1" opacity="0.5" data-v-24473a61></line><line x1="180" y1="10" x2="180" y2="30" stroke="#666" stroke-width="1" opacity="0.5" data-v-24473a61></line>', 4)),
|
|
4265
4265
|
createElementVNode("circle", {
|
|
4266
4266
|
cx: Math.min(270, Math.max(10, Math.min(contrastData.value.ratio, 14) / 14 * 260 + 10)),
|
|
@@ -4269,7 +4269,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4269
4269
|
fill: contrastData.value.normalText === "FAIL" ? "#ef4444" : "#22c55e",
|
|
4270
4270
|
stroke: "white",
|
|
4271
4271
|
"stroke-width": "2"
|
|
4272
|
-
}, null, 8, _hoisted_21$
|
|
4272
|
+
}, null, 8, _hoisted_21$a)
|
|
4273
4273
|
])),
|
|
4274
4274
|
_cache[22] || (_cache[22] = createStaticVNode('<div class="ui-color-picker-contrast-labels" data-v-24473a61><span class="ui-color-picker-contrast-label" data-v-24473a61>1:1</span><span class="ui-color-picker-contrast-label" style="left:60px;" data-v-24473a61>3:1</span><span class="ui-color-picker-contrast-label" style="left:180px;" data-v-24473a61>4.5:1</span><span class="ui-color-picker-contrast-label" style="right:0;" data-v-24473a61>14:1+</span></div>', 1))
|
|
4275
4275
|
])
|
|
@@ -4295,7 +4295,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4295
4295
|
style: normalizeStyle({ left: `${alpha.value * 100}%` })
|
|
4296
4296
|
}, null, 4)
|
|
4297
4297
|
], 544)) : createCommentVNode("", true),
|
|
4298
|
-
createElementVNode("div", _hoisted_22$
|
|
4298
|
+
createElementVNode("div", _hoisted_22$7, [
|
|
4299
4299
|
currentColorFormat.value === "hex" ? (openBlock(), createElementBlock("div", _hoisted_23$5, [
|
|
4300
4300
|
createElementVNode("div", _hoisted_24$5, [
|
|
4301
4301
|
_cache[24] || (_cache[24] = createElementVNode("label", { class: "ui-color-picker-label" }, "Hex", -1)),
|
|
@@ -4888,16 +4888,16 @@ const _hoisted_12$h = { class: "ui-table-body" };
|
|
|
4888
4888
|
const _hoisted_13$g = { class: "ui-table-group-content" };
|
|
4889
4889
|
const _hoisted_14$g = { class: "ui-table-group-name" };
|
|
4890
4890
|
const _hoisted_15$d = { class: "ui-table-group-count" };
|
|
4891
|
-
const _hoisted_16$
|
|
4892
|
-
const _hoisted_17$
|
|
4893
|
-
const _hoisted_18$
|
|
4894
|
-
const _hoisted_19$
|
|
4895
|
-
const _hoisted_20$
|
|
4896
|
-
const _hoisted_21$
|
|
4891
|
+
const _hoisted_16$d = ["onClick"];
|
|
4892
|
+
const _hoisted_17$c = ["onClick"];
|
|
4893
|
+
const _hoisted_18$c = { key: 1 };
|
|
4894
|
+
const _hoisted_19$b = { class: "ui-table-subrow-content" };
|
|
4895
|
+
const _hoisted_20$9 = { class: "ui-table-subrow-default" };
|
|
4896
|
+
const _hoisted_21$9 = {
|
|
4897
4897
|
key: 0,
|
|
4898
4898
|
class: "ui-table-empty"
|
|
4899
4899
|
};
|
|
4900
|
-
const _hoisted_22$
|
|
4900
|
+
const _hoisted_22$6 = {
|
|
4901
4901
|
key: 1,
|
|
4902
4902
|
class: "ui-table-footer"
|
|
4903
4903
|
};
|
|
@@ -5422,22 +5422,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
5422
5422
|
]),
|
|
5423
5423
|
key: "1"
|
|
5424
5424
|
} : void 0
|
|
5425
|
-
]), 1032, ["modelValue", "type", "options", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_18$
|
|
5425
|
+
]), 1032, ["modelValue", "type", "options", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_18$c, toDisplayString(getCellValue(row, column.key, column)), 1))
|
|
5426
5426
|
], true)
|
|
5427
|
-
], 14, _hoisted_17$
|
|
5427
|
+
], 14, _hoisted_17$c);
|
|
5428
5428
|
}), 128))
|
|
5429
|
-
], 10, _hoisted_16$
|
|
5429
|
+
], 10, _hoisted_16$d)),
|
|
5430
5430
|
expandedRows.value.has(rowIndex) ? (openBlock(), createElementBlock("div", {
|
|
5431
5431
|
key: 2,
|
|
5432
5432
|
class: "ui-table-subrow",
|
|
5433
5433
|
style: normalizeStyle(subrowStyle.value)
|
|
5434
5434
|
}, [
|
|
5435
|
-
createElementVNode("div", _hoisted_19$
|
|
5435
|
+
createElementVNode("div", _hoisted_19$b, [
|
|
5436
5436
|
renderSlot(_ctx.$slots, "expanded-row", {
|
|
5437
5437
|
row,
|
|
5438
5438
|
rowIndex
|
|
5439
5439
|
}, () => [
|
|
5440
|
-
createElementVNode("div", _hoisted_20$
|
|
5440
|
+
createElementVNode("div", _hoisted_20$9, [
|
|
5441
5441
|
createElementVNode("pre", null, toDisplayString(JSON.stringify(row, null, 2)), 1)
|
|
5442
5442
|
])
|
|
5443
5443
|
], true)
|
|
@@ -5445,7 +5445,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
5445
5445
|
], 4)) : createCommentVNode("", true)
|
|
5446
5446
|
], 64);
|
|
5447
5447
|
}), 128)),
|
|
5448
|
-
processedRows.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_21$
|
|
5448
|
+
processedRows.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_21$9, [
|
|
5449
5449
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
5450
5450
|
_cache[5] || (_cache[5] = createElementVNode("div", { class: "ui-table-empty-content" }, [
|
|
5451
5451
|
createElementVNode("span", null, "No data available")
|
|
@@ -5453,7 +5453,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
5453
5453
|
], true)
|
|
5454
5454
|
])) : createCommentVNode("", true)
|
|
5455
5455
|
]),
|
|
5456
|
-
hasFooterSlots.value ? (openBlock(), createElementBlock("div", _hoisted_22$
|
|
5456
|
+
hasFooterSlots.value ? (openBlock(), createElementBlock("div", _hoisted_22$6, [
|
|
5457
5457
|
(openBlock(true), createElementBlock(Fragment, null, renderList(internalColumns.value, (column, index) => {
|
|
5458
5458
|
return openBlock(), createElementBlock("div", {
|
|
5459
5459
|
key: `footer-${index}`,
|
|
@@ -6394,28 +6394,28 @@ const _hoisted_13$e = {
|
|
|
6394
6394
|
};
|
|
6395
6395
|
const _hoisted_14$e = ["id", "checked", "indeterminate"];
|
|
6396
6396
|
const _hoisted_15$c = { class: "checkbox-button" };
|
|
6397
|
-
const _hoisted_16$
|
|
6397
|
+
const _hoisted_16$c = {
|
|
6398
6398
|
key: 0,
|
|
6399
6399
|
class: "checkbox-check",
|
|
6400
6400
|
viewBox: "0 0 20 20",
|
|
6401
6401
|
fill: "currentColor"
|
|
6402
6402
|
};
|
|
6403
|
-
const _hoisted_17$
|
|
6403
|
+
const _hoisted_17$b = {
|
|
6404
6404
|
key: 1,
|
|
6405
6405
|
class: "checkbox-indeterminate",
|
|
6406
6406
|
viewBox: "0 0 20 20",
|
|
6407
6407
|
fill: "currentColor"
|
|
6408
6408
|
};
|
|
6409
|
-
const _hoisted_18$
|
|
6410
|
-
const _hoisted_19$
|
|
6409
|
+
const _hoisted_18$b = ["for"];
|
|
6410
|
+
const _hoisted_19$a = {
|
|
6411
6411
|
key: 3,
|
|
6412
6412
|
class: "checkbox-help"
|
|
6413
6413
|
};
|
|
6414
|
-
const _hoisted_20$
|
|
6414
|
+
const _hoisted_20$8 = {
|
|
6415
6415
|
key: 0,
|
|
6416
6416
|
class: "checkbox-error-text"
|
|
6417
6417
|
};
|
|
6418
|
-
const _hoisted_21$
|
|
6418
|
+
const _hoisted_21$8 = {
|
|
6419
6419
|
key: 1,
|
|
6420
6420
|
class: "checkbox-help-text"
|
|
6421
6421
|
};
|
|
@@ -6592,13 +6592,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6592
6592
|
onChange: handleSelectAll
|
|
6593
6593
|
}, null, 40, _hoisted_14$e),
|
|
6594
6594
|
createElementVNode("div", _hoisted_15$c, [
|
|
6595
|
-
isAllSelected.value ? (openBlock(), createElementBlock("svg", _hoisted_16$
|
|
6595
|
+
isAllSelected.value ? (openBlock(), createElementBlock("svg", _hoisted_16$c, [..._cache[2] || (_cache[2] = [
|
|
6596
6596
|
createElementVNode("path", {
|
|
6597
6597
|
"fill-rule": "evenodd",
|
|
6598
6598
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
6599
6599
|
"clip-rule": "evenodd"
|
|
6600
6600
|
}, null, -1)
|
|
6601
|
-
])])) : isSomeSelected.value ? (openBlock(), createElementBlock("svg", _hoisted_17$
|
|
6601
|
+
])])) : isSomeSelected.value ? (openBlock(), createElementBlock("svg", _hoisted_17$b, [..._cache[3] || (_cache[3] = [
|
|
6602
6602
|
createElementVNode("path", {
|
|
6603
6603
|
"fill-rule": "evenodd",
|
|
6604
6604
|
d: "M4 10a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1z",
|
|
@@ -6609,11 +6609,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6609
6609
|
createElementVNode("label", {
|
|
6610
6610
|
for: `${_ctx.fieldId}-select-all`,
|
|
6611
6611
|
class: "checkbox-label"
|
|
6612
|
-
}, toDisplayString(_ctx.selectAllLabel), 9, _hoisted_18$
|
|
6612
|
+
}, toDisplayString(_ctx.selectAllLabel), 9, _hoisted_18$b)
|
|
6613
6613
|
], 2)
|
|
6614
6614
|
])) : createCommentVNode("", true),
|
|
6615
|
-
_ctx.helpText || _ctx.error ? (openBlock(), createElementBlock("div", _hoisted_19$
|
|
6616
|
-
_ctx.error ? (openBlock(), createElementBlock("p", _hoisted_20$
|
|
6615
|
+
_ctx.helpText || _ctx.error ? (openBlock(), createElementBlock("div", _hoisted_19$a, [
|
|
6616
|
+
_ctx.error ? (openBlock(), createElementBlock("p", _hoisted_20$8, toDisplayString(_ctx.error), 1)) : _ctx.helpText ? (openBlock(), createElementBlock("p", _hoisted_21$8, toDisplayString(_ctx.helpText), 1)) : createCommentVNode("", true)
|
|
6617
6617
|
])) : createCommentVNode("", true)
|
|
6618
6618
|
], 2);
|
|
6619
6619
|
};
|
|
@@ -6998,19 +6998,19 @@ const _hoisted_13$d = {
|
|
|
6998
6998
|
};
|
|
6999
6999
|
const _hoisted_14$d = { class: "mfa-single-method-content" };
|
|
7000
7000
|
const _hoisted_15$b = { class: "mfa-single-method-name" };
|
|
7001
|
-
const _hoisted_16$
|
|
7002
|
-
const _hoisted_17$
|
|
7001
|
+
const _hoisted_16$b = { class: "mfa-single-method-type" };
|
|
7002
|
+
const _hoisted_17$a = {
|
|
7003
7003
|
key: 2,
|
|
7004
7004
|
class: "mfa-email-request"
|
|
7005
7005
|
};
|
|
7006
|
-
const _hoisted_18$
|
|
7006
|
+
const _hoisted_18$a = {
|
|
7007
7007
|
key: 3,
|
|
7008
7008
|
class: "mfa-hardware-section"
|
|
7009
7009
|
};
|
|
7010
|
-
const _hoisted_19$
|
|
7011
|
-
const _hoisted_20$
|
|
7012
|
-
const _hoisted_21$
|
|
7013
|
-
const _hoisted_22$
|
|
7010
|
+
const _hoisted_19$9 = { class: "mfa-hardware-prompt" };
|
|
7011
|
+
const _hoisted_20$7 = { class: "mfa-hardware-prompt-content" };
|
|
7012
|
+
const _hoisted_21$7 = { class: "mfa-hardware-prompt-icon" };
|
|
7013
|
+
const _hoisted_22$5 = { class: "mfa-hardware-prompt-text" };
|
|
7014
7014
|
const _hoisted_23$4 = { class: "mfa-hardware-prompt-title" };
|
|
7015
7015
|
const _hoisted_24$4 = { class: "mfa-hardware-prompt-description" };
|
|
7016
7016
|
const _hoisted_25$4 = { class: "mfa-backup-option" };
|
|
@@ -7487,11 +7487,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7487
7487
|
})),
|
|
7488
7488
|
createElementVNode("div", null, [
|
|
7489
7489
|
createElementVNode("h3", _hoisted_15$b, toDisplayString(selectedMethod.value.device_name), 1),
|
|
7490
|
-
createElementVNode("p", _hoisted_16$
|
|
7490
|
+
createElementVNode("p", _hoisted_16$b, toDisplayString(unref(getDeviceTypeName)(selectedMethod.value.device_type)), 1)
|
|
7491
7491
|
])
|
|
7492
7492
|
])
|
|
7493
7493
|
])) : createCommentVNode("", true),
|
|
7494
|
-
selectedMethod.value?.device_type === "email" && !emailCodeSent.value ? (openBlock(), createElementBlock("div", _hoisted_17$
|
|
7494
|
+
selectedMethod.value?.device_type === "email" && !emailCodeSent.value ? (openBlock(), createElementBlock("div", _hoisted_17$a, [
|
|
7495
7495
|
_cache[10] || (_cache[10] = createElementVNode("p", { class: "mfa-email-request-text" }, "Click below to receive your verification code", -1)),
|
|
7496
7496
|
createVNode(unref(CompoundUiButton), {
|
|
7497
7497
|
variant: "primary",
|
|
@@ -7505,16 +7505,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7505
7505
|
_: 1
|
|
7506
7506
|
}, 8, ["disabled", "loading"])
|
|
7507
7507
|
])) : createCommentVNode("", true),
|
|
7508
|
-
selectedMethod.value?.device_type === "hardware" || selectedMethod.value?.device_type === "passkey" ? (openBlock(), createElementBlock("div", _hoisted_18$
|
|
7509
|
-
createElementVNode("div", _hoisted_19$
|
|
7510
|
-
createElementVNode("div", _hoisted_20$
|
|
7511
|
-
createElementVNode("div", _hoisted_21$
|
|
7508
|
+
selectedMethod.value?.device_type === "hardware" || selectedMethod.value?.device_type === "passkey" ? (openBlock(), createElementBlock("div", _hoisted_18$a, [
|
|
7509
|
+
createElementVNode("div", _hoisted_19$9, [
|
|
7510
|
+
createElementVNode("div", _hoisted_20$7, [
|
|
7511
|
+
createElementVNode("div", _hoisted_21$7, [
|
|
7512
7512
|
(openBlock(), createBlock(resolveDynamicComponent(selectedMethod.value.device_type === "passkey" ? IconShield : IconKeyRound), {
|
|
7513
7513
|
size: 24,
|
|
7514
7514
|
class: "mfa-hardware-icon-svg"
|
|
7515
7515
|
}))
|
|
7516
7516
|
]),
|
|
7517
|
-
createElementVNode("div", _hoisted_22$
|
|
7517
|
+
createElementVNode("div", _hoisted_22$5, [
|
|
7518
7518
|
createElementVNode("h4", _hoisted_23$4, toDisplayString(selectedMethod.value.device_type === "passkey" ? "Use your passkey" : "Touch your hardware key"), 1),
|
|
7519
7519
|
createElementVNode("p", _hoisted_24$4, toDisplayString(selectedMethod.value.device_type === "passkey" ? "Use biometrics, PIN, or device security to authenticate" : "Insert and touch your hardware key to authenticate"), 1)
|
|
7520
7520
|
])
|
|
@@ -7983,21 +7983,21 @@ const _hoisted_14$c = {
|
|
|
7983
7983
|
class: "auth-oauth-generic-icon"
|
|
7984
7984
|
};
|
|
7985
7985
|
const _hoisted_15$a = { class: "auth-oauth-generic-text" };
|
|
7986
|
-
const _hoisted_16$
|
|
7987
|
-
const _hoisted_17$
|
|
7986
|
+
const _hoisted_16$a = { class: "auth-oauth-text" };
|
|
7987
|
+
const _hoisted_17$9 = {
|
|
7988
7988
|
key: 0,
|
|
7989
7989
|
class: "auth-divider"
|
|
7990
7990
|
};
|
|
7991
|
-
const _hoisted_18$
|
|
7992
|
-
const _hoisted_19$
|
|
7991
|
+
const _hoisted_18$9 = { class: "auth-divider-text" };
|
|
7992
|
+
const _hoisted_19$8 = {
|
|
7993
7993
|
key: 0,
|
|
7994
7994
|
class: "auth-password-field"
|
|
7995
7995
|
};
|
|
7996
|
-
const _hoisted_20$
|
|
7996
|
+
const _hoisted_20$6 = {
|
|
7997
7997
|
key: 0,
|
|
7998
7998
|
class: "auth-back-link-container"
|
|
7999
7999
|
};
|
|
8000
|
-
const _hoisted_21$
|
|
8000
|
+
const _hoisted_21$6 = { class: "auth-support-text" };
|
|
8001
8001
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
8002
8002
|
__name: "StrandsAuth",
|
|
8003
8003
|
props: {
|
|
@@ -8369,7 +8369,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8369
8369
|
createElementVNode("span", _hoisted_15$a, toDisplayString((provider.displayName || provider.name).charAt(0).toUpperCase()), 1)
|
|
8370
8370
|
]))
|
|
8371
8371
|
]),
|
|
8372
|
-
createElementVNode("span", _hoisted_16$
|
|
8372
|
+
createElementVNode("span", _hoisted_16$a, " Continue with " + toDisplayString(provider.displayName || provider.name.charAt(0).toUpperCase() + provider.name.slice(1)), 1)
|
|
8373
8373
|
]),
|
|
8374
8374
|
_: 2
|
|
8375
8375
|
}, 1032, ["disabled", "onClick"]);
|
|
@@ -8387,8 +8387,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8387
8387
|
onAfterLeave
|
|
8388
8388
|
}, {
|
|
8389
8389
|
default: withCtx(() => [
|
|
8390
|
-
!isPasswordReset.value && displayProviders.value?.length ? (openBlock(), createElementBlock("div", _hoisted_17$
|
|
8391
|
-
createElementVNode("span", _hoisted_18$
|
|
8390
|
+
!isPasswordReset.value && displayProviders.value?.length ? (openBlock(), createElementBlock("div", _hoisted_17$9, [
|
|
8391
|
+
createElementVNode("span", _hoisted_18$9, "Or " + toDisplayString(isSignUp.value ? "create account" : "sign in") + " with email", 1)
|
|
8392
8392
|
])) : createCommentVNode("", true)
|
|
8393
8393
|
]),
|
|
8394
8394
|
_: 1
|
|
@@ -8421,7 +8421,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8421
8421
|
onAfterLeave
|
|
8422
8422
|
}, {
|
|
8423
8423
|
default: withCtx(() => [
|
|
8424
|
-
!isPasswordReset.value && !isSignUp.value ? (openBlock(), createElementBlock("div", _hoisted_19$
|
|
8424
|
+
!isPasswordReset.value && !isSignUp.value ? (openBlock(), createElementBlock("div", _hoisted_19$8, [
|
|
8425
8425
|
createVNode(unref(StrandsUiInput), {
|
|
8426
8426
|
modelValue: form.password,
|
|
8427
8427
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.password = $event),
|
|
@@ -8488,7 +8488,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8488
8488
|
onAfterLeave
|
|
8489
8489
|
}, {
|
|
8490
8490
|
default: withCtx(() => [
|
|
8491
|
-
isPasswordReset.value ? (openBlock(), createElementBlock("div", _hoisted_20$
|
|
8491
|
+
isPasswordReset.value ? (openBlock(), createElementBlock("div", _hoisted_20$6, [
|
|
8492
8492
|
createVNode(unref(StrandsUiLink), {
|
|
8493
8493
|
onClick: _cache[4] || (_cache[4] = ($event) => currentMode.value = "signin"),
|
|
8494
8494
|
class: "auth-back-link"
|
|
@@ -8532,7 +8532,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8532
8532
|
name: "support-fade"
|
|
8533
8533
|
}, {
|
|
8534
8534
|
default: withCtx(() => [
|
|
8535
|
-
createElementVNode("p", _hoisted_21$
|
|
8535
|
+
createElementVNode("p", _hoisted_21$6, [
|
|
8536
8536
|
_cache[12] || (_cache[12] = createTextVNode(" Need help? ", -1)),
|
|
8537
8537
|
createVNode(unref(StrandsUiLink), {
|
|
8538
8538
|
variant: "primary",
|
|
@@ -8636,10 +8636,10 @@ const _hoisted_13$b = {
|
|
|
8636
8636
|
};
|
|
8637
8637
|
const _hoisted_14$b = { class: "accui-form-group" };
|
|
8638
8638
|
const _hoisted_15$9 = { class: "accui-input-wrapper" };
|
|
8639
|
-
const _hoisted_16$
|
|
8640
|
-
const _hoisted_17$
|
|
8641
|
-
const _hoisted_18$
|
|
8642
|
-
const _hoisted_19$
|
|
8639
|
+
const _hoisted_16$9 = { class: "accui-form-group" };
|
|
8640
|
+
const _hoisted_17$8 = { class: "accui-input-wrapper" };
|
|
8641
|
+
const _hoisted_18$8 = { class: "accui-auth-links" };
|
|
8642
|
+
const _hoisted_19$7 = { class: "accui-auth-link-text" };
|
|
8643
8643
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
8644
8644
|
__name: "StrandsSignIn",
|
|
8645
8645
|
props: {
|
|
@@ -8807,9 +8807,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8807
8807
|
])
|
|
8808
8808
|
])
|
|
8809
8809
|
]),
|
|
8810
|
-
createElementVNode("div", _hoisted_16$
|
|
8810
|
+
createElementVNode("div", _hoisted_16$9, [
|
|
8811
8811
|
_cache[11] || (_cache[11] = createElementVNode("label", { class: "accui-form-label" }, "Password", -1)),
|
|
8812
|
-
createElementVNode("div", _hoisted_17$
|
|
8812
|
+
createElementVNode("div", _hoisted_17$8, [
|
|
8813
8813
|
_cache[10] || (_cache[10] = createElementVNode("svg", {
|
|
8814
8814
|
class: "accui-input-icon",
|
|
8815
8815
|
viewBox: "0 0 20 20",
|
|
@@ -8857,8 +8857,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8857
8857
|
dismissible: "",
|
|
8858
8858
|
onDismiss: _cache[4] || (_cache[4] = ($event) => error.value = "")
|
|
8859
8859
|
}, null, 8, ["message"])) : createCommentVNode("", true),
|
|
8860
|
-
createElementVNode("div", _hoisted_18$
|
|
8861
|
-
createElementVNode("p", _hoisted_19$
|
|
8860
|
+
createElementVNode("div", _hoisted_18$8, [
|
|
8861
|
+
createElementVNode("p", _hoisted_19$7, [
|
|
8862
8862
|
_cache[14] || (_cache[14] = createTextVNode(" Don't have an account? ", -1)),
|
|
8863
8863
|
createVNode(unref(StrandsUiLink), {
|
|
8864
8864
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("switch-to-signup")),
|
|
@@ -8926,24 +8926,24 @@ const _hoisted_15$8 = {
|
|
|
8926
8926
|
key: 0,
|
|
8927
8927
|
class: "oauth-icon"
|
|
8928
8928
|
};
|
|
8929
|
-
const _hoisted_16$
|
|
8930
|
-
const _hoisted_17$
|
|
8929
|
+
const _hoisted_16$8 = ["src", "alt"];
|
|
8930
|
+
const _hoisted_17$7 = {
|
|
8931
8931
|
key: 1,
|
|
8932
8932
|
viewBox: "0 0 24 24",
|
|
8933
8933
|
class: "oauth-icon"
|
|
8934
8934
|
};
|
|
8935
|
-
const _hoisted_18$
|
|
8935
|
+
const _hoisted_18$7 = {
|
|
8936
8936
|
key: 2,
|
|
8937
8937
|
class: "oauth-icon oauth-icon-github",
|
|
8938
8938
|
viewBox: "0 0 24 24"
|
|
8939
8939
|
};
|
|
8940
|
-
const _hoisted_19$
|
|
8940
|
+
const _hoisted_19$6 = {
|
|
8941
8941
|
key: 3,
|
|
8942
8942
|
class: "oauth-icon-fallback"
|
|
8943
8943
|
};
|
|
8944
|
-
const _hoisted_20$
|
|
8945
|
-
const _hoisted_21$
|
|
8946
|
-
const _hoisted_22$
|
|
8944
|
+
const _hoisted_20$5 = { class: "oauth-icon-fallback-text" };
|
|
8945
|
+
const _hoisted_21$5 = { class: "oauth-button-text" };
|
|
8946
|
+
const _hoisted_22$4 = {
|
|
8947
8947
|
key: 1,
|
|
8948
8948
|
class: "divider-with-text"
|
|
8949
8949
|
};
|
|
@@ -9140,8 +9140,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9140
9140
|
class: "oauth-icon-image",
|
|
9141
9141
|
width: "20",
|
|
9142
9142
|
height: "20"
|
|
9143
|
-
}, null, 8, _hoisted_16$
|
|
9144
|
-
])) : provider.id === "google" ? (openBlock(), createElementBlock("svg", _hoisted_17$
|
|
9143
|
+
}, null, 8, _hoisted_16$8)
|
|
9144
|
+
])) : provider.id === "google" ? (openBlock(), createElementBlock("svg", _hoisted_17$7, [..._cache[6] || (_cache[6] = [
|
|
9145
9145
|
createElementVNode("path", {
|
|
9146
9146
|
fill: "#4285F4",
|
|
9147
9147
|
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
@@ -9158,19 +9158,19 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9158
9158
|
fill: "#EA4335",
|
|
9159
9159
|
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
9160
9160
|
}, null, -1)
|
|
9161
|
-
])])) : provider.id === "github" ? (openBlock(), createElementBlock("svg", _hoisted_18$
|
|
9161
|
+
])])) : provider.id === "github" ? (openBlock(), createElementBlock("svg", _hoisted_18$7, [..._cache[7] || (_cache[7] = [
|
|
9162
9162
|
createElementVNode("path", { d: "M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" }, null, -1)
|
|
9163
|
-
])])) : (openBlock(), createElementBlock("div", _hoisted_19$
|
|
9164
|
-
createElementVNode("span", _hoisted_20$
|
|
9163
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_19$6, [
|
|
9164
|
+
createElementVNode("span", _hoisted_20$5, toDisplayString((provider.displayName || provider.name).charAt(0).toUpperCase()), 1)
|
|
9165
9165
|
]))
|
|
9166
9166
|
]),
|
|
9167
|
-
createElementVNode("span", _hoisted_21$
|
|
9167
|
+
createElementVNode("span", _hoisted_21$5, "Continue with " + toDisplayString(provider.displayName || provider.name), 1)
|
|
9168
9168
|
]),
|
|
9169
9169
|
_: 2
|
|
9170
9170
|
}, 1032, ["disabled", "onClick"]);
|
|
9171
9171
|
}), 128))
|
|
9172
9172
|
])) : createCommentVNode("", true),
|
|
9173
|
-
unref(enabledProviders)?.length ? (openBlock(), createElementBlock("div", _hoisted_22$
|
|
9173
|
+
unref(enabledProviders)?.length ? (openBlock(), createElementBlock("div", _hoisted_22$4, [..._cache[8] || (_cache[8] = [
|
|
9174
9174
|
createElementVNode("span", { class: "divider-text" }, "Or create account with email", -1)
|
|
9175
9175
|
])])) : createCommentVNode("", true),
|
|
9176
9176
|
createElementVNode("form", {
|
|
@@ -9648,10 +9648,10 @@ const _hoisted_14$8 = {
|
|
|
9648
9648
|
class: "totp-setup-step"
|
|
9649
9649
|
};
|
|
9650
9650
|
const _hoisted_15$7 = { class: "totp-setup-backup-codes" };
|
|
9651
|
-
const _hoisted_16$
|
|
9652
|
-
const _hoisted_17$
|
|
9653
|
-
const _hoisted_18$
|
|
9654
|
-
const _hoisted_19$
|
|
9651
|
+
const _hoisted_16$7 = { class: "totp-setup-backup-grid-wrapper" };
|
|
9652
|
+
const _hoisted_17$6 = { class: "totp-setup-backup-grid" };
|
|
9653
|
+
const _hoisted_18$6 = { class: "totp-setup-backup-actions" };
|
|
9654
|
+
const _hoisted_19$5 = { class: "totp-setup-final-actions" };
|
|
9655
9655
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
9656
9656
|
__name: "StrandsTotpSetupModal",
|
|
9657
9657
|
props: {
|
|
@@ -9934,8 +9934,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9934
9934
|
createElementVNode("p", { class: "totp-setup-backup-header-description" }, " Store these codes in a safe place. Each code can only be used once. ")
|
|
9935
9935
|
])
|
|
9936
9936
|
], -1)),
|
|
9937
|
-
createElementVNode("div", _hoisted_16$
|
|
9938
|
-
createElementVNode("div", _hoisted_17$
|
|
9937
|
+
createElementVNode("div", _hoisted_16$7, [
|
|
9938
|
+
createElementVNode("div", _hoisted_17$6, [
|
|
9939
9939
|
(openBlock(true), createElementBlock(Fragment, null, renderList(totpSetupData.value?.backup_codes, (code, index) => {
|
|
9940
9940
|
return openBlock(), createElementBlock("div", {
|
|
9941
9941
|
key: index,
|
|
@@ -9944,7 +9944,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9944
9944
|
}), 128))
|
|
9945
9945
|
])
|
|
9946
9946
|
]),
|
|
9947
|
-
createElementVNode("div", _hoisted_18$
|
|
9947
|
+
createElementVNode("div", _hoisted_18$6, [
|
|
9948
9948
|
createVNode(unref(CompoundUiButton), {
|
|
9949
9949
|
variant: "secondary",
|
|
9950
9950
|
size: "sm",
|
|
@@ -9957,7 +9957,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9957
9957
|
})
|
|
9958
9958
|
])
|
|
9959
9959
|
]),
|
|
9960
|
-
createElementVNode("div", _hoisted_19$
|
|
9960
|
+
createElementVNode("div", _hoisted_19$5, [
|
|
9961
9961
|
createVNode(unref(CompoundUiButton), {
|
|
9962
9962
|
variant: "primary",
|
|
9963
9963
|
onClick: finish
|
|
@@ -10325,15 +10325,15 @@ const _hoisted_12$7 = {
|
|
|
10325
10325
|
const _hoisted_13$7 = { class: "hardware-key-setup-backup-codes" };
|
|
10326
10326
|
const _hoisted_14$7 = { class: "hardware-key-setup-codes-container" };
|
|
10327
10327
|
const _hoisted_15$6 = { class: "hardware-key-setup-codes-grid" };
|
|
10328
|
-
const _hoisted_16$
|
|
10329
|
-
const _hoisted_17$
|
|
10330
|
-
const _hoisted_18$
|
|
10328
|
+
const _hoisted_16$6 = { class: "hardware-key-setup-copy-action" };
|
|
10329
|
+
const _hoisted_17$5 = { class: "hardware-key-setup-final-action" };
|
|
10330
|
+
const _hoisted_18$5 = {
|
|
10331
10331
|
key: 4,
|
|
10332
10332
|
class: "hardware-key-setup-step"
|
|
10333
10333
|
};
|
|
10334
|
-
const _hoisted_19$
|
|
10335
|
-
const _hoisted_20$
|
|
10336
|
-
const _hoisted_21$
|
|
10334
|
+
const _hoisted_19$4 = { class: "hardware-key-setup-error" };
|
|
10335
|
+
const _hoisted_20$4 = { class: "hardware-key-setup-error-message" };
|
|
10336
|
+
const _hoisted_21$4 = { class: "hardware-key-setup-actions" };
|
|
10337
10337
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
10338
10338
|
__name: "StrandsHardwareKeySetupModal",
|
|
10339
10339
|
props: {
|
|
@@ -10787,7 +10787,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10787
10787
|
}), 128))
|
|
10788
10788
|
])
|
|
10789
10789
|
]),
|
|
10790
|
-
createElementVNode("div", _hoisted_16$
|
|
10790
|
+
createElementVNode("div", _hoisted_16$6, [
|
|
10791
10791
|
createVNode(unref(CompoundUiButton), {
|
|
10792
10792
|
variant: "secondary",
|
|
10793
10793
|
size: "sm",
|
|
@@ -10800,7 +10800,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10800
10800
|
})
|
|
10801
10801
|
])
|
|
10802
10802
|
]),
|
|
10803
|
-
createElementVNode("div", _hoisted_17$
|
|
10803
|
+
createElementVNode("div", _hoisted_17$5, [
|
|
10804
10804
|
createVNode(unref(CompoundUiButton), {
|
|
10805
10805
|
variant: "primary",
|
|
10806
10806
|
onClick: finish
|
|
@@ -10812,8 +10812,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10812
10812
|
})
|
|
10813
10813
|
])
|
|
10814
10814
|
])) : createCommentVNode("", true),
|
|
10815
|
-
step.value === 5 ? (openBlock(), createElementBlock("div", _hoisted_18$
|
|
10816
|
-
createElementVNode("div", _hoisted_19$
|
|
10815
|
+
step.value === 5 ? (openBlock(), createElementBlock("div", _hoisted_18$5, [
|
|
10816
|
+
createElementVNode("div", _hoisted_19$4, [
|
|
10817
10817
|
_cache[25] || (_cache[25] = createElementVNode("div", { class: "hardware-key-setup-error-icon" }, [
|
|
10818
10818
|
createElementVNode("svg", {
|
|
10819
10819
|
class: "hardware-key-setup-error-x",
|
|
@@ -10830,9 +10830,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10830
10830
|
])
|
|
10831
10831
|
], -1)),
|
|
10832
10832
|
_cache[26] || (_cache[26] = createElementVNode("h3", { class: "hardware-key-setup-step-title" }, "Registration Failed", -1)),
|
|
10833
|
-
createElementVNode("p", _hoisted_20$
|
|
10833
|
+
createElementVNode("p", _hoisted_20$4, toDisplayString(errorMessage.value), 1)
|
|
10834
10834
|
]),
|
|
10835
|
-
createElementVNode("div", _hoisted_21$
|
|
10835
|
+
createElementVNode("div", _hoisted_21$4, [
|
|
10836
10836
|
createVNode(unref(CompoundUiButton), {
|
|
10837
10837
|
variant: "secondary",
|
|
10838
10838
|
onClick: _cache[2] || (_cache[2] = ($event) => step.value = 1)
|
|
@@ -10887,7 +10887,7 @@ const _hoisted_14$6 = {
|
|
|
10887
10887
|
class: "backup-codes-regenerate-warning"
|
|
10888
10888
|
};
|
|
10889
10889
|
const _hoisted_15$5 = { class: "backup-codes-regenerate-content" };
|
|
10890
|
-
const _hoisted_16$
|
|
10890
|
+
const _hoisted_16$5 = { class: "backup-codes-regenerate-actions" };
|
|
10891
10891
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
10892
10892
|
__name: "StrandsBackupCodesModal",
|
|
10893
10893
|
props: {
|
|
@@ -11098,7 +11098,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11098
11098
|
createElementVNode("div", null, [
|
|
11099
11099
|
_cache[11] || (_cache[11] = createElementVNode("p", { class: "backup-codes-regenerate-title" }, "Regenerate Backup Codes?", -1)),
|
|
11100
11100
|
_cache[12] || (_cache[12] = createElementVNode("p", { class: "backup-codes-regenerate-description" }, " This will invalidate all current backup codes. Make sure to save the new ones. ", -1)),
|
|
11101
|
-
createElementVNode("div", _hoisted_16$
|
|
11101
|
+
createElementVNode("div", _hoisted_16$5, [
|
|
11102
11102
|
createVNode(unref(CompoundUiButton), {
|
|
11103
11103
|
variant: "primary",
|
|
11104
11104
|
size: "sm",
|
|
@@ -11241,13 +11241,13 @@ const _hoisted_12$5 = { class: "mfa-device-option" };
|
|
|
11241
11241
|
const _hoisted_13$5 = { class: "mfa-device-option-content" };
|
|
11242
11242
|
const _hoisted_14$5 = { class: "mfa-device-option-icon" };
|
|
11243
11243
|
const _hoisted_15$4 = { class: "mfa-device-option" };
|
|
11244
|
-
const _hoisted_16$
|
|
11245
|
-
const _hoisted_17$
|
|
11246
|
-
const _hoisted_18$
|
|
11247
|
-
const _hoisted_19$
|
|
11248
|
-
const _hoisted_20$
|
|
11249
|
-
const _hoisted_21$
|
|
11250
|
-
const _hoisted_22$
|
|
11244
|
+
const _hoisted_16$4 = { class: "mfa-device-option-content" };
|
|
11245
|
+
const _hoisted_17$4 = { class: "mfa-device-option-icon" };
|
|
11246
|
+
const _hoisted_18$4 = { class: "mfa-device-option" };
|
|
11247
|
+
const _hoisted_19$3 = { class: "mfa-device-option-content" };
|
|
11248
|
+
const _hoisted_20$3 = { class: "mfa-device-option-icon" };
|
|
11249
|
+
const _hoisted_21$3 = { class: "mfa-device-option" };
|
|
11250
|
+
const _hoisted_22$3 = { class: "mfa-device-option-content" };
|
|
11251
11251
|
const _hoisted_23$2 = { class: "mfa-device-option-icon" };
|
|
11252
11252
|
const _hoisted_24$2 = {
|
|
11253
11253
|
key: 1,
|
|
@@ -11515,8 +11515,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
11515
11515
|
})
|
|
11516
11516
|
]),
|
|
11517
11517
|
createElementVNode("div", _hoisted_15$4, [
|
|
11518
|
-
createElementVNode("div", _hoisted_16$
|
|
11519
|
-
createElementVNode("div", _hoisted_17$
|
|
11518
|
+
createElementVNode("div", _hoisted_16$4, [
|
|
11519
|
+
createElementVNode("div", _hoisted_17$4, [
|
|
11520
11520
|
createVNode(Mail, { size: 24 })
|
|
11521
11521
|
]),
|
|
11522
11522
|
_cache[16] || (_cache[16] = createElementVNode("div", { class: "mfa-device-option-info" }, [
|
|
@@ -11535,9 +11535,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
11535
11535
|
_: 1
|
|
11536
11536
|
})
|
|
11537
11537
|
]),
|
|
11538
|
-
createElementVNode("div", _hoisted_18$
|
|
11539
|
-
createElementVNode("div", _hoisted_19$
|
|
11540
|
-
createElementVNode("div", _hoisted_20$
|
|
11538
|
+
createElementVNode("div", _hoisted_18$4, [
|
|
11539
|
+
createElementVNode("div", _hoisted_19$3, [
|
|
11540
|
+
createElementVNode("div", _hoisted_20$3, [
|
|
11541
11541
|
createVNode(Key, { size: 24 })
|
|
11542
11542
|
]),
|
|
11543
11543
|
_cache[18] || (_cache[18] = createElementVNode("div", { class: "mfa-device-option-info" }, [
|
|
@@ -11556,8 +11556,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
11556
11556
|
_: 1
|
|
11557
11557
|
})
|
|
11558
11558
|
]),
|
|
11559
|
-
createElementVNode("div", _hoisted_21$
|
|
11560
|
-
createElementVNode("div", _hoisted_22$
|
|
11559
|
+
createElementVNode("div", _hoisted_21$3, [
|
|
11560
|
+
createElementVNode("div", _hoisted_22$3, [
|
|
11561
11561
|
createElementVNode("div", _hoisted_23$2, [
|
|
11562
11562
|
createVNode(Fingerprint, { size: 24 })
|
|
11563
11563
|
]),
|
|
@@ -11984,19 +11984,19 @@ const _hoisted_12$3 = { class: "sessions-list" };
|
|
|
11984
11984
|
const _hoisted_13$3 = { class: "session-header" };
|
|
11985
11985
|
const _hoisted_14$3 = { class: "session-device-info" };
|
|
11986
11986
|
const _hoisted_15$3 = { class: "session-device-name" };
|
|
11987
|
-
const _hoisted_16$
|
|
11987
|
+
const _hoisted_16$3 = {
|
|
11988
11988
|
key: 0,
|
|
11989
11989
|
class: "session-current-badge"
|
|
11990
11990
|
};
|
|
11991
|
-
const _hoisted_17$
|
|
11992
|
-
const _hoisted_18$
|
|
11991
|
+
const _hoisted_17$3 = { class: "session-location" };
|
|
11992
|
+
const _hoisted_18$3 = {
|
|
11993
11993
|
key: 0,
|
|
11994
11994
|
class: "session-actions"
|
|
11995
11995
|
};
|
|
11996
|
-
const _hoisted_19$
|
|
11997
|
-
const _hoisted_20$
|
|
11998
|
-
const _hoisted_21$
|
|
11999
|
-
const _hoisted_22$
|
|
11996
|
+
const _hoisted_19$2 = { class: "session-details" };
|
|
11997
|
+
const _hoisted_20$2 = { class: "detail-row" };
|
|
11998
|
+
const _hoisted_21$2 = { class: "detail-icon" };
|
|
11999
|
+
const _hoisted_22$2 = { class: "detail-text" };
|
|
12000
12000
|
const _hoisted_23$1 = { class: "detail-row" };
|
|
12001
12001
|
const _hoisted_24$1 = { class: "detail-icon" };
|
|
12002
12002
|
const _hoisted_25$1 = { class: "detail-text" };
|
|
@@ -12264,14 +12264,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12264
12264
|
createElementVNode("div", _hoisted_14$3, [
|
|
12265
12265
|
createElementVNode("h4", _hoisted_15$3, [
|
|
12266
12266
|
createTextVNode(toDisplayString(getDeviceName(session)) + " ", 1),
|
|
12267
|
-
session.is_current ? (openBlock(), createElementBlock("span", _hoisted_16$
|
|
12267
|
+
session.is_current ? (openBlock(), createElementBlock("span", _hoisted_16$3, " Current ")) : createCommentVNode("", true)
|
|
12268
12268
|
]),
|
|
12269
|
-
createElementVNode("div", _hoisted_17$
|
|
12269
|
+
createElementVNode("div", _hoisted_17$3, [
|
|
12270
12270
|
createVNode(MapPin, { size: 14 }),
|
|
12271
12271
|
createElementVNode("span", null, toDisplayString(getLocationString(session)), 1)
|
|
12272
12272
|
])
|
|
12273
12273
|
]),
|
|
12274
|
-
!session.is_current ? (openBlock(), createElementBlock("div", _hoisted_18$
|
|
12274
|
+
!session.is_current ? (openBlock(), createElementBlock("div", _hoisted_18$3, [
|
|
12275
12275
|
createVNode(unref(CompoundUiButton), {
|
|
12276
12276
|
variant: "outline",
|
|
12277
12277
|
size: "xs",
|
|
@@ -12285,12 +12285,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12285
12285
|
}, 1032, ["onClick", "disabled"])
|
|
12286
12286
|
])) : createCommentVNode("", true)
|
|
12287
12287
|
]),
|
|
12288
|
-
createElementVNode("div", _hoisted_19$
|
|
12289
|
-
createElementVNode("div", _hoisted_20$
|
|
12290
|
-
createElementVNode("span", _hoisted_21$
|
|
12288
|
+
createElementVNode("div", _hoisted_19$2, [
|
|
12289
|
+
createElementVNode("div", _hoisted_20$2, [
|
|
12290
|
+
createElementVNode("span", _hoisted_21$2, [
|
|
12291
12291
|
createVNode(Monitor2, { size: 14 })
|
|
12292
12292
|
]),
|
|
12293
|
-
createElementVNode("span", _hoisted_22$
|
|
12293
|
+
createElementVNode("span", _hoisted_22$2, toDisplayString(session.user_agent || "Unknown device"), 1)
|
|
12294
12294
|
]),
|
|
12295
12295
|
createElementVNode("div", _hoisted_23$1, [
|
|
12296
12296
|
createElementVNode("span", _hoisted_24$1, [
|
|
@@ -12366,19 +12366,19 @@ const _hoisted_12$2 = { class: "profile-section" };
|
|
|
12366
12366
|
const _hoisted_13$2 = { class: "profile-setting-card" };
|
|
12367
12367
|
const _hoisted_14$2 = { class: "profile-setting-header" };
|
|
12368
12368
|
const _hoisted_15$2 = { class: "profile-setting-subtitle" };
|
|
12369
|
-
const _hoisted_16$
|
|
12369
|
+
const _hoisted_16$2 = {
|
|
12370
12370
|
key: 0,
|
|
12371
12371
|
class: "profile-change-form"
|
|
12372
12372
|
};
|
|
12373
|
-
const _hoisted_17$
|
|
12374
|
-
const _hoisted_18$
|
|
12375
|
-
const _hoisted_19 = { class: "profile-field-subtitle" };
|
|
12376
|
-
const _hoisted_20 = {
|
|
12373
|
+
const _hoisted_17$2 = { class: "profile-field-section" };
|
|
12374
|
+
const _hoisted_18$2 = { class: "profile-field-header" };
|
|
12375
|
+
const _hoisted_19$1 = { class: "profile-field-subtitle" };
|
|
12376
|
+
const _hoisted_20$1 = {
|
|
12377
12377
|
key: 0,
|
|
12378
12378
|
class: "profile-change-form"
|
|
12379
12379
|
};
|
|
12380
|
-
const _hoisted_21 = { class: "profile-password-section" };
|
|
12381
|
-
const _hoisted_22 = { class: "profile-field-section" };
|
|
12380
|
+
const _hoisted_21$1 = { class: "profile-password-section" };
|
|
12381
|
+
const _hoisted_22$1 = { class: "profile-field-section" };
|
|
12382
12382
|
const _hoisted_23 = { class: "profile-field-header" };
|
|
12383
12383
|
const _hoisted_24 = { class: "profile-field-subtitle" };
|
|
12384
12384
|
const _hoisted_25 = {
|
|
@@ -13202,7 +13202,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13202
13202
|
]),
|
|
13203
13203
|
createVNode(Transition, { name: "expand" }, {
|
|
13204
13204
|
default: withCtx(() => [
|
|
13205
|
-
showEmailChange.value ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
13205
|
+
showEmailChange.value ? (openBlock(), createElementBlock("div", _hoisted_16$2, [
|
|
13206
13206
|
createVNode(unref(StrandsUiInput), {
|
|
13207
13207
|
modelValue: emailChangeForm.newEmail,
|
|
13208
13208
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emailChangeForm.newEmail = $event),
|
|
@@ -13235,11 +13235,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13235
13235
|
_: 1
|
|
13236
13236
|
})
|
|
13237
13237
|
]),
|
|
13238
|
-
createElementVNode("div", _hoisted_17$
|
|
13239
|
-
createElementVNode("div", _hoisted_18$
|
|
13238
|
+
createElementVNode("div", _hoisted_17$2, [
|
|
13239
|
+
createElementVNode("div", _hoisted_18$2, [
|
|
13240
13240
|
createElementVNode("div", null, [
|
|
13241
13241
|
_cache[16] || (_cache[16] = createElementVNode("h4", { class: "profile-field-title" }, "Username", -1)),
|
|
13242
|
-
createElementVNode("p", _hoisted_19, toDisplayString(currentUser.value?.username || "No username set"), 1)
|
|
13242
|
+
createElementVNode("p", _hoisted_19$1, toDisplayString(currentUser.value?.username || "No username set"), 1)
|
|
13243
13243
|
]),
|
|
13244
13244
|
createVNode(unref(CompoundUiButton), {
|
|
13245
13245
|
color: "secondary",
|
|
@@ -13255,7 +13255,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13255
13255
|
]),
|
|
13256
13256
|
createVNode(Transition, { name: "expand" }, {
|
|
13257
13257
|
default: withCtx(() => [
|
|
13258
|
-
showUsernameChange.value ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
13258
|
+
showUsernameChange.value ? (openBlock(), createElementBlock("div", _hoisted_20$1, [
|
|
13259
13259
|
createVNode(unref(StrandsUiInput), {
|
|
13260
13260
|
modelValue: usernameForm.username,
|
|
13261
13261
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => usernameForm.username = $event),
|
|
@@ -13285,9 +13285,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13285
13285
|
})
|
|
13286
13286
|
])
|
|
13287
13287
|
]),
|
|
13288
|
-
createElementVNode("div", _hoisted_21, [
|
|
13288
|
+
createElementVNode("div", _hoisted_21$1, [
|
|
13289
13289
|
_cache[23] || (_cache[23] = createElementVNode("h3", { class: "profile-section-title" }, "Security Settings", -1)),
|
|
13290
|
-
createElementVNode("div", _hoisted_22, [
|
|
13290
|
+
createElementVNode("div", _hoisted_22$1, [
|
|
13291
13291
|
createElementVNode("div", _hoisted_23, [
|
|
13292
13292
|
createElementVNode("div", null, [
|
|
13293
13293
|
_cache[18] || (_cache[18] = createElementVNode("h4", { class: "profile-field-title" }, "Password", -1)),
|
|
@@ -13949,36 +13949,62 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
13949
13949
|
});
|
|
13950
13950
|
const _hoisted_1$3 = {
|
|
13951
13951
|
key: 0,
|
|
13952
|
-
class: "
|
|
13952
|
+
class: "mini-profile-avatar-wrapper"
|
|
13953
13953
|
};
|
|
13954
|
-
const _hoisted_2$2 =
|
|
13955
|
-
const _hoisted_3$2 = {
|
|
13956
|
-
|
|
13957
|
-
|
|
13954
|
+
const _hoisted_2$2 = ["src", "alt", "width", "height"];
|
|
13955
|
+
const _hoisted_3$2 = {
|
|
13956
|
+
key: 1,
|
|
13957
|
+
class: "mini-profile-avatar-default"
|
|
13958
|
+
};
|
|
13959
|
+
const _hoisted_4$2 = {
|
|
13960
|
+
key: 1,
|
|
13961
|
+
class: "avatar-wrapper"
|
|
13962
|
+
};
|
|
13963
|
+
const _hoisted_5$1 = ["src", "alt", "width", "height"];
|
|
13964
|
+
const _hoisted_6$1 = {
|
|
13958
13965
|
key: 1,
|
|
13959
13966
|
class: "avatar-default"
|
|
13960
13967
|
};
|
|
13961
|
-
const
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13968
|
+
const _hoisted_7$1 = {
|
|
13969
|
+
key: 0,
|
|
13970
|
+
class: "mini-profile-content"
|
|
13971
|
+
};
|
|
13972
|
+
const _hoisted_8$1 = { class: "mini-profile-name" };
|
|
13973
|
+
const _hoisted_9$1 = { class: "mini-profile-email" };
|
|
13974
|
+
const _hoisted_10$1 = {
|
|
13975
|
+
key: 1,
|
|
13976
|
+
class: "user-info"
|
|
13977
|
+
};
|
|
13978
|
+
const _hoisted_11$1 = { class: "user-name" };
|
|
13979
|
+
const _hoisted_12$1 = ["onKeydown"];
|
|
13980
|
+
const _hoisted_13$1 = { class: "dropdown-content" };
|
|
13981
|
+
const _hoisted_14$1 = {
|
|
13982
|
+
key: 0,
|
|
13983
|
+
class: "dropdown-header"
|
|
13984
|
+
};
|
|
13985
|
+
const _hoisted_15$1 = {
|
|
13965
13986
|
key: 0,
|
|
13966
13987
|
class: "dropdown-avatar-container"
|
|
13967
13988
|
};
|
|
13968
|
-
const
|
|
13969
|
-
const
|
|
13989
|
+
const _hoisted_16$1 = ["src", "alt"];
|
|
13990
|
+
const _hoisted_17$1 = {
|
|
13970
13991
|
key: 1,
|
|
13971
13992
|
class: "dropdown-avatar-default"
|
|
13972
13993
|
};
|
|
13973
|
-
const
|
|
13974
|
-
const
|
|
13975
|
-
const
|
|
13976
|
-
const
|
|
13994
|
+
const _hoisted_18$1 = { class: "dropdown-user-details" };
|
|
13995
|
+
const _hoisted_19 = { class: "dropdown-user-name" };
|
|
13996
|
+
const _hoisted_20 = { class: "dropdown-user-email" };
|
|
13997
|
+
const _hoisted_21 = {
|
|
13998
|
+
key: 1,
|
|
13999
|
+
class: "dropdown-divider"
|
|
14000
|
+
};
|
|
14001
|
+
const _hoisted_22 = { class: "sign-in-auth-wrapper" };
|
|
13977
14002
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
13978
14003
|
__name: "StrandsUserButton",
|
|
13979
14004
|
props: {
|
|
13980
14005
|
hideUser: { type: Boolean, default: false },
|
|
13981
14006
|
variant: { default: "minimal" },
|
|
14007
|
+
size: { default: "md" },
|
|
13982
14008
|
redirectUrl: { default: "/" },
|
|
13983
14009
|
user: { default: void 0 },
|
|
13984
14010
|
menuAlign: { default: "right" },
|
|
@@ -14012,6 +14038,30 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14012
14038
|
handler: () => closeDropdown()
|
|
14013
14039
|
}
|
|
14014
14040
|
});
|
|
14041
|
+
const avatarSize = computed(() => {
|
|
14042
|
+
switch (props.size) {
|
|
14043
|
+
case "sm":
|
|
14044
|
+
return 24;
|
|
14045
|
+
case "md":
|
|
14046
|
+
return 32;
|
|
14047
|
+
case "lg":
|
|
14048
|
+
return 40;
|
|
14049
|
+
default:
|
|
14050
|
+
return 32;
|
|
14051
|
+
}
|
|
14052
|
+
});
|
|
14053
|
+
const avatarSizeWithProgress = computed(() => {
|
|
14054
|
+
switch (props.size) {
|
|
14055
|
+
case "sm":
|
|
14056
|
+
return 48;
|
|
14057
|
+
case "md":
|
|
14058
|
+
return 64;
|
|
14059
|
+
case "lg":
|
|
14060
|
+
return 80;
|
|
14061
|
+
default:
|
|
14062
|
+
return 64;
|
|
14063
|
+
}
|
|
14064
|
+
});
|
|
14015
14065
|
const user = computed(() => {
|
|
14016
14066
|
if (props.user) return props.user;
|
|
14017
14067
|
return isAuthenticated.value ? currentUser.value : null;
|
|
@@ -14118,7 +14168,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14118
14168
|
"fullscreen-on-mobile": false
|
|
14119
14169
|
}, {
|
|
14120
14170
|
default: withCtx(() => [
|
|
14121
|
-
createElementVNode("div",
|
|
14171
|
+
createElementVNode("div", _hoisted_22, [
|
|
14122
14172
|
createVNode(unref(StrandsAuth), {
|
|
14123
14173
|
onSignedIn: handleSignedIn,
|
|
14124
14174
|
onError: handleSignInError,
|
|
@@ -14142,6 +14192,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14142
14192
|
ref: triggerRef,
|
|
14143
14193
|
color: "secondary",
|
|
14144
14194
|
active: showDropdown.value,
|
|
14195
|
+
class: normalizeClass([`user-button-size-${_ctx.size}`, _ctx.variant === "mini-profile" && "user-button-mini-profile"]),
|
|
14145
14196
|
onClick: toggleDropdown,
|
|
14146
14197
|
onKeydown: [
|
|
14147
14198
|
withKeys(toggleDropdown, ["enter"]),
|
|
@@ -14154,16 +14205,47 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14154
14205
|
"aria-label": "User menu"
|
|
14155
14206
|
}, {
|
|
14156
14207
|
"leading-icon": withCtx(() => [
|
|
14157
|
-
|
|
14208
|
+
_ctx.variant === "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
14209
|
+
createVNode(unref(UiLevelProgress), {
|
|
14210
|
+
size: avatarSizeWithProgress.value,
|
|
14211
|
+
value: user.value?.xp || 0,
|
|
14212
|
+
max: user.value?.next_level_xp || 100,
|
|
14213
|
+
level: user.value?.level || 1,
|
|
14214
|
+
"level-label": `${user.value?.level || 1}`,
|
|
14215
|
+
"user-settings": user.value?.settings,
|
|
14216
|
+
class: "mini-profile-level-progress"
|
|
14217
|
+
}, null, 8, ["size", "value", "max", "level", "level-label", "user-settings"]),
|
|
14218
|
+
user.value?.avatar ? (openBlock(), createElementBlock("img", {
|
|
14219
|
+
key: 0,
|
|
14220
|
+
src: user.value.avatar,
|
|
14221
|
+
alt: `${user.value?.firstName || user.value?.email}'s avatar`,
|
|
14222
|
+
class: "mini-profile-avatar-image",
|
|
14223
|
+
width: avatarSize.value,
|
|
14224
|
+
height: avatarSize.value,
|
|
14225
|
+
loading: "eager"
|
|
14226
|
+
}, null, 8, _hoisted_2$2)) : (openBlock(), createElementBlock("div", _hoisted_3$2, [..._cache[2] || (_cache[2] = [
|
|
14227
|
+
createElementVNode("svg", {
|
|
14228
|
+
class: "mini-profile-avatar-icon",
|
|
14229
|
+
fill: "currentColor",
|
|
14230
|
+
viewBox: "0 0 20 20"
|
|
14231
|
+
}, [
|
|
14232
|
+
createElementVNode("path", {
|
|
14233
|
+
"fill-rule": "evenodd",
|
|
14234
|
+
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
14235
|
+
"clip-rule": "evenodd"
|
|
14236
|
+
})
|
|
14237
|
+
], -1)
|
|
14238
|
+
])]))
|
|
14239
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
14158
14240
|
user.value?.avatar ? (openBlock(), createElementBlock("img", {
|
|
14159
14241
|
key: 0,
|
|
14160
14242
|
src: user.value.avatar,
|
|
14161
|
-
alt: `${user.value
|
|
14243
|
+
alt: `${user.value?.firstName || user.value?.email}'s avatar`,
|
|
14162
14244
|
class: "avatar-image",
|
|
14163
|
-
width:
|
|
14164
|
-
height:
|
|
14245
|
+
width: avatarSize.value,
|
|
14246
|
+
height: avatarSize.value,
|
|
14165
14247
|
loading: "eager"
|
|
14166
|
-
}, null, 8,
|
|
14248
|
+
}, null, 8, _hoisted_5$1)) : (openBlock(), createElementBlock("div", _hoisted_6$1, [..._cache[3] || (_cache[3] = [
|
|
14167
14249
|
createElementVNode("svg", {
|
|
14168
14250
|
class: "avatar-icon",
|
|
14169
14251
|
fill: "currentColor",
|
|
@@ -14176,7 +14258,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14176
14258
|
})
|
|
14177
14259
|
], -1)
|
|
14178
14260
|
])]))
|
|
14179
|
-
])
|
|
14261
|
+
]))
|
|
14180
14262
|
]),
|
|
14181
14263
|
"trailing-icon": withCtx(() => [
|
|
14182
14264
|
(openBlock(), createElementBlock("svg", {
|
|
@@ -14184,7 +14266,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14184
14266
|
fill: "none",
|
|
14185
14267
|
stroke: "currentColor",
|
|
14186
14268
|
viewBox: "0 0 24 24"
|
|
14187
|
-
}, [..._cache[
|
|
14269
|
+
}, [..._cache[4] || (_cache[4] = [
|
|
14188
14270
|
createElementVNode("path", {
|
|
14189
14271
|
"stroke-linecap": "round",
|
|
14190
14272
|
"stroke-linejoin": "round",
|
|
@@ -14194,12 +14276,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14194
14276
|
])], 2))
|
|
14195
14277
|
]),
|
|
14196
14278
|
default: withCtx(() => [
|
|
14197
|
-
|
|
14198
|
-
createElementVNode("div",
|
|
14279
|
+
_ctx.variant === "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
14280
|
+
createElementVNode("div", _hoisted_8$1, toDisplayString(displayName.value), 1),
|
|
14281
|
+
createElementVNode("div", _hoisted_9$1, toDisplayString(user.value?.email), 1)
|
|
14282
|
+
])) : !_ctx.hideUser ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
14283
|
+
createElementVNode("div", _hoisted_11$1, toDisplayString(displayName.value), 1)
|
|
14199
14284
|
])) : createCommentVNode("", true)
|
|
14200
14285
|
]),
|
|
14201
14286
|
_: 1
|
|
14202
|
-
}, 8, ["active", "onKeydown", "aria-expanded"]),
|
|
14287
|
+
}, 8, ["active", "class", "onKeydown", "aria-expanded"]),
|
|
14203
14288
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
14204
14289
|
showDropdown.value ? (openBlock(), createElementBlock("div", {
|
|
14205
14290
|
key: 0,
|
|
@@ -14217,9 +14302,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14217
14302
|
withKeys(withModifiers(focusLast, ["prevent"]), ["end"])
|
|
14218
14303
|
]
|
|
14219
14304
|
}, [
|
|
14220
|
-
createElementVNode("div",
|
|
14221
|
-
|
|
14222
|
-
user.value ? (openBlock(), createElementBlock("div",
|
|
14305
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
14306
|
+
_ctx.variant !== "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
14307
|
+
user.value ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
|
|
14223
14308
|
createVNode(unref(UiLevelProgress), {
|
|
14224
14309
|
size: 80,
|
|
14225
14310
|
value: user.value.xp,
|
|
@@ -14236,7 +14321,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14236
14321
|
class: "dropdown-avatar-image",
|
|
14237
14322
|
width: "64",
|
|
14238
14323
|
height: "64"
|
|
14239
|
-
}, null, 8,
|
|
14324
|
+
}, null, 8, _hoisted_16$1)) : (openBlock(), createElementBlock("div", _hoisted_17$1, [..._cache[5] || (_cache[5] = [
|
|
14240
14325
|
createElementVNode("svg", {
|
|
14241
14326
|
class: "dropdown-avatar-icon",
|
|
14242
14327
|
fill: "currentColor",
|
|
@@ -14250,20 +14335,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14250
14335
|
], -1)
|
|
14251
14336
|
])]))
|
|
14252
14337
|
])) : createCommentVNode("", true),
|
|
14253
|
-
createElementVNode("div",
|
|
14254
|
-
createElementVNode("div",
|
|
14255
|
-
createElementVNode("div",
|
|
14338
|
+
createElementVNode("div", _hoisted_18$1, [
|
|
14339
|
+
createElementVNode("div", _hoisted_19, toDisplayString(displayName.value), 1),
|
|
14340
|
+
createElementVNode("div", _hoisted_20, toDisplayString(user.value?.email), 1)
|
|
14256
14341
|
])
|
|
14257
|
-
]),
|
|
14342
|
+
])) : createCommentVNode("", true),
|
|
14258
14343
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
14259
|
-
|
|
14344
|
+
_ctx.variant !== "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_21)) : createCommentVNode("", true),
|
|
14260
14345
|
createVNode(unref(StrandsNav), null, {
|
|
14261
14346
|
default: withCtx(() => [
|
|
14262
14347
|
createVNode(unref(StrandsNav).Item, {
|
|
14263
14348
|
color: "secondary",
|
|
14264
14349
|
onClick: openProfile
|
|
14265
14350
|
}, {
|
|
14266
|
-
default: withCtx(() => [..._cache[
|
|
14351
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
14267
14352
|
createTextVNode("Profile", -1)
|
|
14268
14353
|
])]),
|
|
14269
14354
|
_: 1
|
|
@@ -14272,7 +14357,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14272
14357
|
color: "danger",
|
|
14273
14358
|
onClick: handleSignOut
|
|
14274
14359
|
}, {
|
|
14275
|
-
default: withCtx(() => [..._cache[
|
|
14360
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
14276
14361
|
createTextVNode("Sign Out", -1)
|
|
14277
14362
|
])]),
|
|
14278
14363
|
_: 1
|
|
@@ -14281,7 +14366,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14281
14366
|
_: 1
|
|
14282
14367
|
})
|
|
14283
14368
|
])
|
|
14284
|
-
], 44,
|
|
14369
|
+
], 44, _hoisted_12$1)) : createCommentVNode("", true)
|
|
14285
14370
|
])),
|
|
14286
14371
|
createVNode(unref(UiModal), {
|
|
14287
14372
|
modelValue: showProfileModal.value,
|
|
@@ -14304,7 +14389,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14304
14389
|
};
|
|
14305
14390
|
}
|
|
14306
14391
|
});
|
|
14307
|
-
const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
14392
|
+
const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-19537c80"]]);
|
|
14308
14393
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
14309
14394
|
__name: "StrandsNav",
|
|
14310
14395
|
props: {
|