@strands.gg/accui 2.3.1 → 2.3.2
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/strands-auth-ui.cjs.js +1 -1
- package/dist/strands-auth-ui.es.js +202 -197
- package/package.json +1 -1
|
@@ -1626,7 +1626,7 @@ const _hoisted_16$e = { class: "controls" };
|
|
|
1626
1626
|
const _hoisted_17$d = { class: "zoom-control" };
|
|
1627
1627
|
const _hoisted_18$d = ["min", "max"];
|
|
1628
1628
|
const _hoisted_19$c = { class: "action-buttons" };
|
|
1629
|
-
const _hoisted_20$
|
|
1629
|
+
const _hoisted_20$a = { class: "preview-section" };
|
|
1630
1630
|
const _hoisted_21$9 = { class: "preview-container" };
|
|
1631
1631
|
const _hoisted_22$9 = ["width", "height"];
|
|
1632
1632
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
@@ -2081,7 +2081,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2081
2081
|
])
|
|
2082
2082
|
])
|
|
2083
2083
|
]),
|
|
2084
|
-
createElementVNode("div", _hoisted_20$
|
|
2084
|
+
createElementVNode("div", _hoisted_20$a, [
|
|
2085
2085
|
_cache[9] || (_cache[9] = createElementVNode("h3", { class: "preview-title" }, "Preview", -1)),
|
|
2086
2086
|
createElementVNode("div", _hoisted_21$9, [
|
|
2087
2087
|
createElementVNode("canvas", {
|
|
@@ -2683,7 +2683,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
2685
|
});
|
|
2686
|
-
const
|
|
2686
|
+
const UiLevelProgress = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-410a88ab"]]);
|
|
2687
2687
|
const _hoisted_1$x = { class: "ui-modal-header-content" };
|
|
2688
2688
|
const _hoisted_2$r = { class: "ui-modal-title" };
|
|
2689
2689
|
const _hoisted_3$q = { key: 0 };
|
|
@@ -3539,7 +3539,7 @@ const _hoisted_16$d = { class: "ui-color-picker-contrast-levels" };
|
|
|
3539
3539
|
const _hoisted_17$c = { class: "ui-color-picker-contrast-level-value" };
|
|
3540
3540
|
const _hoisted_18$c = { class: "ui-color-picker-contrast-level-value" };
|
|
3541
3541
|
const _hoisted_19$b = { class: "ui-color-picker-contrast-graph" };
|
|
3542
|
-
const _hoisted_20$
|
|
3542
|
+
const _hoisted_20$9 = {
|
|
3543
3543
|
viewBox: "0 0 280 40",
|
|
3544
3544
|
class: "ui-color-picker-contrast-svg"
|
|
3545
3545
|
};
|
|
@@ -5158,7 +5158,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5158
5158
|
], 2)
|
|
5159
5159
|
]),
|
|
5160
5160
|
createElementVNode("div", _hoisted_19$b, [
|
|
5161
|
-
(openBlock(), createElementBlock("svg", _hoisted_20$
|
|
5161
|
+
(openBlock(), createElementBlock("svg", _hoisted_20$9, [
|
|
5162
5162
|
_cache[13] || (_cache[13] = createStaticVNode('<defs data-v-e9e45931><linearGradient id="contrastGradientDefault" x1="0%" y1="0%" x2="100%" y2="0%" data-v-e9e45931><stop offset="0%" stop-color="#ef4444" data-v-e9e45931></stop><stop offset="21.4%" stop-color="#ef4444" data-v-e9e45931></stop><stop offset="21.4%" stop-color="#f59e0b" data-v-e9e45931></stop><stop offset="64.3%" stop-color="#f59e0b" data-v-e9e45931></stop><stop offset="64.3%" stop-color="#22c55e" data-v-e9e45931></stop><stop offset="100%" stop-color="#22c55e" data-v-e9e45931></stop></linearGradient></defs><rect x="0" y="15" width="280" height="10" fill="url(#contrastGradientDefault)" rx="5" data-v-e9e45931></rect><line x1="60" y1="10" x2="60" y2="30" stroke="#666" stroke-width="1" opacity="0.5" data-v-e9e45931></line><line x1="180" y1="10" x2="180" y2="30" stroke="#666" stroke-width="1" opacity="0.5" data-v-e9e45931></line>', 4)),
|
|
5163
5163
|
createElementVNode("circle", {
|
|
5164
5164
|
cx: Math.min(270, Math.max(10, Math.min(contrastData.value.ratio, 14) / 14 * 260 + 10)),
|
|
@@ -5822,7 +5822,7 @@ const _hoisted_16$c = { class: "ui-table-body" };
|
|
|
5822
5822
|
const _hoisted_17$b = { class: "ui-table-group-content" };
|
|
5823
5823
|
const _hoisted_18$b = { class: "ui-table-group-name" };
|
|
5824
5824
|
const _hoisted_19$a = { class: "ui-table-group-count" };
|
|
5825
|
-
const _hoisted_20$
|
|
5825
|
+
const _hoisted_20$8 = ["onClick"];
|
|
5826
5826
|
const _hoisted_21$7 = ["onClick"];
|
|
5827
5827
|
const _hoisted_22$7 = { class: "ui-table-subrow-content" };
|
|
5828
5828
|
const _hoisted_23$6 = { class: "ui-table-subrow-default" };
|
|
@@ -6264,7 +6264,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6264
6264
|
], true)
|
|
6265
6265
|
], 14, _hoisted_21$7);
|
|
6266
6266
|
}), 128))
|
|
6267
|
-
], 10, _hoisted_20$
|
|
6267
|
+
], 10, _hoisted_20$8)),
|
|
6268
6268
|
expandedRows.value.has(rowIndex) ? (openBlock(), createElementBlock("div", {
|
|
6269
6269
|
key: 2,
|
|
6270
6270
|
class: "ui-table-subrow",
|
|
@@ -7075,7 +7075,7 @@ const _hoisted_18$a = {
|
|
|
7075
7075
|
class: "mfa-hardware-section"
|
|
7076
7076
|
};
|
|
7077
7077
|
const _hoisted_19$9 = { class: "mfa-hardware-prompt" };
|
|
7078
|
-
const _hoisted_20$
|
|
7078
|
+
const _hoisted_20$7 = { class: "mfa-hardware-prompt-content" };
|
|
7079
7079
|
const _hoisted_21$6 = { class: "mfa-hardware-prompt-icon" };
|
|
7080
7080
|
const _hoisted_22$6 = { class: "mfa-hardware-prompt-text" };
|
|
7081
7081
|
const _hoisted_23$5 = { class: "mfa-hardware-prompt-title" };
|
|
@@ -7579,7 +7579,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7579
7579
|
])) : createCommentVNode("", true),
|
|
7580
7580
|
selectedMethod.value?.device_type === "hardware" || selectedMethod.value?.device_type === "passkey" ? (openBlock(), createElementBlock("div", _hoisted_18$a, [
|
|
7581
7581
|
createElementVNode("div", _hoisted_19$9, [
|
|
7582
|
-
createElementVNode("div", _hoisted_20$
|
|
7582
|
+
createElementVNode("div", _hoisted_20$7, [
|
|
7583
7583
|
createElementVNode("div", _hoisted_21$6, [
|
|
7584
7584
|
(openBlock(), createBlock(resolveDynamicComponent(selectedMethod.value.device_type === "passkey" ? IconShield : IconKeyRound), {
|
|
7585
7585
|
size: 24,
|
|
@@ -8075,7 +8075,7 @@ const _hoisted_18$9 = {
|
|
|
8075
8075
|
class: "auth-divider"
|
|
8076
8076
|
};
|
|
8077
8077
|
const _hoisted_19$8 = { class: "auth-divider-text" };
|
|
8078
|
-
const _hoisted_20$
|
|
8078
|
+
const _hoisted_20$6 = {
|
|
8079
8079
|
key: 0,
|
|
8080
8080
|
class: "auth-password-field"
|
|
8081
8081
|
};
|
|
@@ -8507,7 +8507,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8507
8507
|
onAfterLeave
|
|
8508
8508
|
}, {
|
|
8509
8509
|
default: withCtx(() => [
|
|
8510
|
-
!isPasswordReset.value && !isSignUp.value ? (openBlock(), createElementBlock("div", _hoisted_20$
|
|
8510
|
+
!isPasswordReset.value && !isSignUp.value ? (openBlock(), createElementBlock("div", _hoisted_20$6, [
|
|
8511
8511
|
createElementVNode("div", _hoisted_21$5, [
|
|
8512
8512
|
_cache[10] || (_cache[10] = createElementVNode("span", { class: "auth-password-label" }, "Password", -1)),
|
|
8513
8513
|
createVNode(unref(StrandsUiLink), {
|
|
@@ -9025,7 +9025,7 @@ const _hoisted_19$6 = {
|
|
|
9025
9025
|
key: 3,
|
|
9026
9026
|
class: "oauth-icon-fallback"
|
|
9027
9027
|
};
|
|
9028
|
-
const _hoisted_20$
|
|
9028
|
+
const _hoisted_20$5 = { class: "oauth-icon-fallback-text" };
|
|
9029
9029
|
const _hoisted_21$4 = { class: "oauth-button-text" };
|
|
9030
9030
|
const _hoisted_22$4 = {
|
|
9031
9031
|
key: 1,
|
|
@@ -9245,7 +9245,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9245
9245
|
])])) : provider.id === "github" ? (openBlock(), createElementBlock("svg", _hoisted_18$7, [..._cache[7] || (_cache[7] = [
|
|
9246
9246
|
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)
|
|
9247
9247
|
])])) : (openBlock(), createElementBlock("div", _hoisted_19$6, [
|
|
9248
|
-
createElementVNode("span", _hoisted_20$
|
|
9248
|
+
createElementVNode("span", _hoisted_20$5, toDisplayString((provider.displayName || provider.name).charAt(0).toUpperCase()), 1)
|
|
9249
9249
|
]))
|
|
9250
9250
|
]),
|
|
9251
9251
|
createElementVNode("span", _hoisted_21$4, "Continue with " + toDisplayString(provider.displayName || provider.name), 1)
|
|
@@ -9736,7 +9736,7 @@ const _hoisted_16$7 = { class: "totp-setup-backup-codes" };
|
|
|
9736
9736
|
const _hoisted_17$6 = { class: "totp-setup-backup-grid-wrapper" };
|
|
9737
9737
|
const _hoisted_18$6 = { class: "totp-setup-backup-grid" };
|
|
9738
9738
|
const _hoisted_19$5 = { class: "totp-setup-backup-actions" };
|
|
9739
|
-
const _hoisted_20$
|
|
9739
|
+
const _hoisted_20$4 = { class: "totp-setup-final-actions" };
|
|
9740
9740
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
9741
9741
|
__name: "StrandsTotpSetupModal",
|
|
9742
9742
|
props: {
|
|
@@ -10040,7 +10040,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
10040
10040
|
})
|
|
10041
10041
|
])
|
|
10042
10042
|
]),
|
|
10043
|
-
createElementVNode("div", _hoisted_20$
|
|
10043
|
+
createElementVNode("div", _hoisted_20$4, [
|
|
10044
10044
|
createVNode(unref(StrandsUiButton), {
|
|
10045
10045
|
variant: "primary",
|
|
10046
10046
|
onClick: finish
|
|
@@ -10413,7 +10413,7 @@ const _hoisted_19$4 = {
|
|
|
10413
10413
|
key: 4,
|
|
10414
10414
|
class: "hardware-key-setup-step"
|
|
10415
10415
|
};
|
|
10416
|
-
const _hoisted_20$
|
|
10416
|
+
const _hoisted_20$3 = { class: "hardware-key-setup-error" };
|
|
10417
10417
|
const _hoisted_21$3 = { class: "hardware-key-setup-error-message" };
|
|
10418
10418
|
const _hoisted_22$3 = { class: "hardware-key-setup-actions" };
|
|
10419
10419
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -10896,7 +10896,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
10896
10896
|
])
|
|
10897
10897
|
])) : createCommentVNode("", true),
|
|
10898
10898
|
step.value === 5 ? (openBlock(), createElementBlock("div", _hoisted_19$4, [
|
|
10899
|
-
createElementVNode("div", _hoisted_20$
|
|
10899
|
+
createElementVNode("div", _hoisted_20$3, [
|
|
10900
10900
|
_cache[25] || (_cache[25] = createElementVNode("div", { class: "hardware-key-setup-error-icon" }, [
|
|
10901
10901
|
createElementVNode("svg", {
|
|
10902
10902
|
class: "hardware-key-setup-error-x",
|
|
@@ -11329,7 +11329,7 @@ const _hoisted_16$4 = { class: "mfa-device-option-content" };
|
|
|
11329
11329
|
const _hoisted_17$4 = { class: "mfa-device-option-icon" };
|
|
11330
11330
|
const _hoisted_18$4 = { class: "mfa-device-option" };
|
|
11331
11331
|
const _hoisted_19$3 = { class: "mfa-device-option-content" };
|
|
11332
|
-
const _hoisted_20$
|
|
11332
|
+
const _hoisted_20$2 = { class: "mfa-device-option-icon" };
|
|
11333
11333
|
const _hoisted_21$2 = { class: "mfa-device-option" };
|
|
11334
11334
|
const _hoisted_22$2 = { class: "mfa-device-option-content" };
|
|
11335
11335
|
const _hoisted_23$2 = { class: "mfa-device-option-icon" };
|
|
@@ -11621,7 +11621,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11621
11621
|
]),
|
|
11622
11622
|
createElementVNode("div", _hoisted_18$4, [
|
|
11623
11623
|
createElementVNode("div", _hoisted_19$3, [
|
|
11624
|
-
createElementVNode("div", _hoisted_20$
|
|
11624
|
+
createElementVNode("div", _hoisted_20$2, [
|
|
11625
11625
|
createVNode(Key, { size: 24 })
|
|
11626
11626
|
]),
|
|
11627
11627
|
_cache[18] || (_cache[18] = createElementVNode("div", { class: "mfa-device-option-info" }, [
|
|
@@ -12078,7 +12078,7 @@ const _hoisted_18$3 = {
|
|
|
12078
12078
|
class: "session-actions"
|
|
12079
12079
|
};
|
|
12080
12080
|
const _hoisted_19$2 = { class: "session-details" };
|
|
12081
|
-
const _hoisted_20$
|
|
12081
|
+
const _hoisted_20$1 = { class: "detail-row" };
|
|
12082
12082
|
const _hoisted_21$1 = { class: "detail-icon" };
|
|
12083
12083
|
const _hoisted_22$1 = { class: "detail-text" };
|
|
12084
12084
|
const _hoisted_23$1 = { class: "detail-row" };
|
|
@@ -12370,7 +12370,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12370
12370
|
])) : createCommentVNode("", true)
|
|
12371
12371
|
]),
|
|
12372
12372
|
createElementVNode("div", _hoisted_19$2, [
|
|
12373
|
-
createElementVNode("div", _hoisted_20$
|
|
12373
|
+
createElementVNode("div", _hoisted_20$1, [
|
|
12374
12374
|
createElementVNode("span", _hoisted_21$1, [
|
|
12375
12375
|
createVNode(Monitor2, { size: 14 })
|
|
12376
12376
|
]),
|
|
@@ -12457,7 +12457,7 @@ const _hoisted_16$2 = {
|
|
|
12457
12457
|
const _hoisted_17$2 = { class: "profile-field-section" };
|
|
12458
12458
|
const _hoisted_18$2 = { class: "profile-field-header" };
|
|
12459
12459
|
const _hoisted_19$1 = { class: "profile-field-subtitle" };
|
|
12460
|
-
const _hoisted_20
|
|
12460
|
+
const _hoisted_20 = {
|
|
12461
12461
|
key: 0,
|
|
12462
12462
|
class: "profile-change-form"
|
|
12463
12463
|
};
|
|
@@ -13185,7 +13185,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
13185
13185
|
createElementVNode("div", _hoisted_3$6, [
|
|
13186
13186
|
createElementVNode("div", _hoisted_4$5, [
|
|
13187
13187
|
createElementVNode("div", _hoisted_5$4, [
|
|
13188
|
-
createVNode(unref(
|
|
13188
|
+
createVNode(unref(UiLevelProgress), {
|
|
13189
13189
|
size: 140,
|
|
13190
13190
|
value: currentUser.value?.xp || 0,
|
|
13191
13191
|
max: currentUser.value?.next_level_xp || 1,
|
|
@@ -13339,7 +13339,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
13339
13339
|
]),
|
|
13340
13340
|
createVNode(Transition, { name: "expand" }, {
|
|
13341
13341
|
default: withCtx(() => [
|
|
13342
|
-
showUsernameChange.value ? (openBlock(), createElementBlock("div", _hoisted_20
|
|
13342
|
+
showUsernameChange.value ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
13343
13343
|
createVNode(unref(StrandsUiInput), {
|
|
13344
13344
|
modelValue: usernameForm.username,
|
|
13345
13345
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => usernameForm.username = $event),
|
|
@@ -14112,37 +14112,36 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
14112
14112
|
}
|
|
14113
14113
|
});
|
|
14114
14114
|
const _hoisted_1$3 = { key: 0 };
|
|
14115
|
-
const _hoisted_2$2 =
|
|
14116
|
-
const _hoisted_3$2 = {
|
|
14117
|
-
const _hoisted_4$2 = {
|
|
14115
|
+
const _hoisted_2$2 = { class: "user-button-content" };
|
|
14116
|
+
const _hoisted_3$2 = {
|
|
14118
14117
|
key: 0,
|
|
14119
14118
|
class: "user-info"
|
|
14120
14119
|
};
|
|
14121
|
-
const
|
|
14122
|
-
const
|
|
14123
|
-
const
|
|
14124
|
-
const
|
|
14125
|
-
const
|
|
14120
|
+
const _hoisted_4$2 = { class: "user-name" };
|
|
14121
|
+
const _hoisted_5$1 = { class: "avatar-container" };
|
|
14122
|
+
const _hoisted_6$1 = { class: "avatar-wrapper" };
|
|
14123
|
+
const _hoisted_7$1 = ["src", "alt"];
|
|
14124
|
+
const _hoisted_8$1 = {
|
|
14126
14125
|
key: 1,
|
|
14127
14126
|
class: "avatar-default"
|
|
14128
14127
|
};
|
|
14129
|
-
const
|
|
14130
|
-
const
|
|
14131
|
-
const
|
|
14132
|
-
const
|
|
14128
|
+
const _hoisted_9$1 = ["onKeydown"];
|
|
14129
|
+
const _hoisted_10$1 = { class: "dropdown-content" };
|
|
14130
|
+
const _hoisted_11$1 = { class: "dropdown-header" };
|
|
14131
|
+
const _hoisted_12$1 = {
|
|
14133
14132
|
key: 0,
|
|
14134
14133
|
class: "dropdown-avatar-container"
|
|
14135
14134
|
};
|
|
14136
|
-
const
|
|
14137
|
-
const
|
|
14135
|
+
const _hoisted_13$1 = ["src", "alt"];
|
|
14136
|
+
const _hoisted_14$1 = {
|
|
14138
14137
|
key: 1,
|
|
14139
14138
|
class: "dropdown-avatar-default"
|
|
14140
14139
|
};
|
|
14141
|
-
const
|
|
14142
|
-
const
|
|
14143
|
-
const
|
|
14144
|
-
const
|
|
14145
|
-
const
|
|
14140
|
+
const _hoisted_15$1 = { class: "dropdown-user-details" };
|
|
14141
|
+
const _hoisted_16$1 = { class: "dropdown-user-name" };
|
|
14142
|
+
const _hoisted_17$1 = { class: "dropdown-user-email" };
|
|
14143
|
+
const _hoisted_18$1 = { key: 1 };
|
|
14144
|
+
const _hoisted_19 = { class: "sign-in-auth-wrapper" };
|
|
14146
14145
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
14147
14146
|
__name: "StrandsUserButton",
|
|
14148
14147
|
props: {
|
|
@@ -14250,7 +14249,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14250
14249
|
ref: containerRef
|
|
14251
14250
|
}, [
|
|
14252
14251
|
user.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
14253
|
-
|
|
14252
|
+
createVNode(unref(StrandsUiButton), {
|
|
14253
|
+
color: "secondary",
|
|
14254
|
+
active: showDropdown.value,
|
|
14254
14255
|
onClick: toggleDropdown,
|
|
14255
14256
|
onKeydown: [
|
|
14256
14257
|
withKeys(toggleDropdown, ["enter"]),
|
|
@@ -14258,141 +14259,143 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14258
14259
|
withKeys(closeDropdown, ["escape"]),
|
|
14259
14260
|
withKeys(withModifiers(openDropdown, ["prevent"]), ["arrow-down"])
|
|
14260
14261
|
],
|
|
14261
|
-
class: normalizeClass(["user-button", { "user-button-active": showDropdown.value }]),
|
|
14262
14262
|
"aria-haspopup": "true",
|
|
14263
14263
|
"aria-expanded": showDropdown.value,
|
|
14264
14264
|
"aria-label": "User menu"
|
|
14265
|
-
},
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
createElementVNode("div",
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
"
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
], -1)
|
|
14292
|
-
])]))
|
|
14293
|
-
])
|
|
14294
|
-
]),
|
|
14295
|
-
(openBlock(), createElementBlock("svg", {
|
|
14296
|
-
class: normalizeClass(["dropdown-arrow", { "dropdown-arrow-open": showDropdown.value }]),
|
|
14297
|
-
fill: "none",
|
|
14298
|
-
stroke: "currentColor",
|
|
14299
|
-
viewBox: "0 0 24 24"
|
|
14300
|
-
}, [..._cache[3] || (_cache[3] = [
|
|
14301
|
-
createElementVNode("path", {
|
|
14302
|
-
"stroke-linecap": "round",
|
|
14303
|
-
"stroke-linejoin": "round",
|
|
14304
|
-
"stroke-width": "2",
|
|
14305
|
-
d: "M19 9l-7 7-7-7"
|
|
14306
|
-
}, null, -1)
|
|
14307
|
-
])], 2))
|
|
14308
|
-
]),
|
|
14309
|
-
createVNode(Transition, { name: "dropdown" }, {
|
|
14310
|
-
default: withCtx(() => [
|
|
14311
|
-
showDropdown.value ? (openBlock(), createElementBlock("div", {
|
|
14312
|
-
key: 0,
|
|
14313
|
-
class: normalizeClass([
|
|
14314
|
-
"dropdown-menu",
|
|
14315
|
-
`dropdown-menu-align-${props.menuAlign}`,
|
|
14316
|
-
`dropdown-menu-vertical-${props.menuVerticalAlign}`
|
|
14317
|
-
]),
|
|
14318
|
-
role: "menu",
|
|
14319
|
-
"aria-orientation": "vertical",
|
|
14320
|
-
onKeydown: [
|
|
14321
|
-
withKeys(closeDropdown, ["escape"]),
|
|
14322
|
-
withKeys(withModifiers(focusPrevious, ["prevent"]), ["arrow-up"]),
|
|
14323
|
-
withKeys(withModifiers(focusNext, ["prevent"]), ["arrow-down"]),
|
|
14324
|
-
withKeys(withModifiers(focusFirst, ["prevent"]), ["home"]),
|
|
14325
|
-
withKeys(withModifiers(focusLast, ["prevent"]), ["end"])
|
|
14326
|
-
]
|
|
14327
|
-
}, [
|
|
14328
|
-
createElementVNode("div", _hoisted_11$1, [
|
|
14329
|
-
createElementVNode("div", _hoisted_12$1, [
|
|
14330
|
-
user.value ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
14331
|
-
createVNode(unref(StrandsUiLevelProgress), {
|
|
14332
|
-
size: 80,
|
|
14333
|
-
value: user.value.xp,
|
|
14334
|
-
max: user.value.next_level_xp,
|
|
14335
|
-
level: user.value.level,
|
|
14336
|
-
"level-label": `LEVEL ${user.value.level}`,
|
|
14337
|
-
"user-settings": user.value.settings,
|
|
14338
|
-
class: "level-progress-overlay"
|
|
14339
|
-
}, null, 8, ["value", "max", "level", "level-label", "user-settings"]),
|
|
14340
|
-
user.value?.avatar ? (openBlock(), createElementBlock("img", {
|
|
14341
|
-
key: 0,
|
|
14342
|
-
src: user.value.avatar,
|
|
14343
|
-
alt: `${user.value.firstName || user.value.email}'s avatar`,
|
|
14344
|
-
class: "dropdown-avatar-image",
|
|
14345
|
-
width: "64",
|
|
14346
|
-
height: "64"
|
|
14347
|
-
}, null, 8, _hoisted_14$1)) : (openBlock(), createElementBlock("div", _hoisted_15$1, [..._cache[4] || (_cache[4] = [
|
|
14348
|
-
createElementVNode("svg", {
|
|
14349
|
-
class: "dropdown-avatar-icon",
|
|
14350
|
-
fill: "currentColor",
|
|
14351
|
-
viewBox: "0 0 20 20"
|
|
14352
|
-
}, [
|
|
14353
|
-
createElementVNode("path", {
|
|
14354
|
-
"fill-rule": "evenodd",
|
|
14355
|
-
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
14356
|
-
"clip-rule": "evenodd"
|
|
14357
|
-
})
|
|
14358
|
-
], -1)
|
|
14359
|
-
])]))
|
|
14360
|
-
])) : createCommentVNode("", true),
|
|
14361
|
-
createElementVNode("div", _hoisted_16$1, [
|
|
14362
|
-
createElementVNode("div", _hoisted_17$1, toDisplayString(displayName.value), 1),
|
|
14363
|
-
createElementVNode("div", _hoisted_18$1, toDisplayString(user.value?.email), 1)
|
|
14364
|
-
])
|
|
14365
|
-
]),
|
|
14366
|
-
_cache[7] || (_cache[7] = createElementVNode("div", { class: "dropdown-divider" }, null, -1)),
|
|
14367
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
14368
|
-
_cache[8] || (_cache[8] = createElementVNode("div", { class: "dropdown-divider" }, null, -1)),
|
|
14369
|
-
createVNode(unref(StrandsNav), null, {
|
|
14370
|
-
default: withCtx(() => [
|
|
14371
|
-
createVNode(unref(StrandsNav).Item, { onClick: openProfile }, {
|
|
14372
|
-
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
14373
|
-
createTextVNode("Profile", -1)
|
|
14374
|
-
])]),
|
|
14375
|
-
_: 1
|
|
14376
|
-
}),
|
|
14377
|
-
createVNode(unref(StrandsNav).Item, {
|
|
14378
|
-
onClick: handleSignOut,
|
|
14379
|
-
color: "danger"
|
|
14380
|
-
}, {
|
|
14381
|
-
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
14382
|
-
createTextVNode("Sign Out", -1)
|
|
14383
|
-
])]),
|
|
14384
|
-
_: 1
|
|
14265
|
+
}, {
|
|
14266
|
+
default: withCtx(() => [
|
|
14267
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
14268
|
+
!_ctx.hideUser ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
14269
|
+
createElementVNode("div", _hoisted_4$2, toDisplayString(displayName.value), 1)
|
|
14270
|
+
])) : createCommentVNode("", true),
|
|
14271
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
14272
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
14273
|
+
user.value?.avatar ? (openBlock(), createElementBlock("img", {
|
|
14274
|
+
key: 0,
|
|
14275
|
+
src: user.value.avatar,
|
|
14276
|
+
alt: `${user.value.firstName || user.value.email}'s avatar`,
|
|
14277
|
+
class: "avatar-image",
|
|
14278
|
+
width: "32",
|
|
14279
|
+
height: "32",
|
|
14280
|
+
loading: "eager"
|
|
14281
|
+
}, null, 8, _hoisted_7$1)) : (openBlock(), createElementBlock("div", _hoisted_8$1, [..._cache[2] || (_cache[2] = [
|
|
14282
|
+
createElementVNode("svg", {
|
|
14283
|
+
class: "avatar-icon",
|
|
14284
|
+
fill: "currentColor",
|
|
14285
|
+
viewBox: "0 0 20 20"
|
|
14286
|
+
}, [
|
|
14287
|
+
createElementVNode("path", {
|
|
14288
|
+
"fill-rule": "evenodd",
|
|
14289
|
+
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
14290
|
+
"clip-rule": "evenodd"
|
|
14385
14291
|
})
|
|
14386
|
-
])
|
|
14387
|
-
|
|
14388
|
-
})
|
|
14292
|
+
], -1)
|
|
14293
|
+
])]))
|
|
14389
14294
|
])
|
|
14390
|
-
]
|
|
14295
|
+
]),
|
|
14296
|
+
(openBlock(), createElementBlock("svg", {
|
|
14297
|
+
class: normalizeClass(["dropdown-arrow", { "dropdown-arrow-open": showDropdown.value }]),
|
|
14298
|
+
fill: "none",
|
|
14299
|
+
stroke: "currentColor",
|
|
14300
|
+
viewBox: "0 0 24 24"
|
|
14301
|
+
}, [..._cache[3] || (_cache[3] = [
|
|
14302
|
+
createElementVNode("path", {
|
|
14303
|
+
"stroke-linecap": "round",
|
|
14304
|
+
"stroke-linejoin": "round",
|
|
14305
|
+
"stroke-width": "2",
|
|
14306
|
+
d: "M19 9l-7 7-7-7"
|
|
14307
|
+
}, null, -1)
|
|
14308
|
+
])], 2))
|
|
14391
14309
|
]),
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14310
|
+
createVNode(Transition, { name: "dropdown" }, {
|
|
14311
|
+
default: withCtx(() => [
|
|
14312
|
+
showDropdown.value ? (openBlock(), createElementBlock("div", {
|
|
14313
|
+
key: 0,
|
|
14314
|
+
class: normalizeClass([
|
|
14315
|
+
"dropdown-menu",
|
|
14316
|
+
`dropdown-menu-align-${props.menuAlign}`,
|
|
14317
|
+
`dropdown-menu-vertical-${props.menuVerticalAlign}`
|
|
14318
|
+
]),
|
|
14319
|
+
role: "menu",
|
|
14320
|
+
"aria-orientation": "vertical",
|
|
14321
|
+
onKeydown: [
|
|
14322
|
+
withKeys(closeDropdown, ["escape"]),
|
|
14323
|
+
withKeys(withModifiers(focusPrevious, ["prevent"]), ["arrow-up"]),
|
|
14324
|
+
withKeys(withModifiers(focusNext, ["prevent"]), ["arrow-down"]),
|
|
14325
|
+
withKeys(withModifiers(focusFirst, ["prevent"]), ["home"]),
|
|
14326
|
+
withKeys(withModifiers(focusLast, ["prevent"]), ["end"])
|
|
14327
|
+
]
|
|
14328
|
+
}, [
|
|
14329
|
+
createElementVNode("div", _hoisted_10$1, [
|
|
14330
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
14331
|
+
user.value ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
14332
|
+
createVNode(unref(UiLevelProgress), {
|
|
14333
|
+
size: 80,
|
|
14334
|
+
value: user.value.xp,
|
|
14335
|
+
max: user.value.next_level_xp,
|
|
14336
|
+
level: user.value.level,
|
|
14337
|
+
"level-label": `LEVEL ${user.value.level}`,
|
|
14338
|
+
"user-settings": user.value.settings,
|
|
14339
|
+
class: "level-progress-overlay"
|
|
14340
|
+
}, null, 8, ["value", "max", "level", "level-label", "user-settings"]),
|
|
14341
|
+
user.value?.avatar ? (openBlock(), createElementBlock("img", {
|
|
14342
|
+
key: 0,
|
|
14343
|
+
src: user.value.avatar,
|
|
14344
|
+
alt: `${user.value.firstName || user.value.email}'s avatar`,
|
|
14345
|
+
class: "dropdown-avatar-image",
|
|
14346
|
+
width: "64",
|
|
14347
|
+
height: "64"
|
|
14348
|
+
}, null, 8, _hoisted_13$1)) : (openBlock(), createElementBlock("div", _hoisted_14$1, [..._cache[4] || (_cache[4] = [
|
|
14349
|
+
createElementVNode("svg", {
|
|
14350
|
+
class: "dropdown-avatar-icon",
|
|
14351
|
+
fill: "currentColor",
|
|
14352
|
+
viewBox: "0 0 20 20"
|
|
14353
|
+
}, [
|
|
14354
|
+
createElementVNode("path", {
|
|
14355
|
+
"fill-rule": "evenodd",
|
|
14356
|
+
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
14357
|
+
"clip-rule": "evenodd"
|
|
14358
|
+
})
|
|
14359
|
+
], -1)
|
|
14360
|
+
])]))
|
|
14361
|
+
])) : createCommentVNode("", true),
|
|
14362
|
+
createElementVNode("div", _hoisted_15$1, [
|
|
14363
|
+
createElementVNode("div", _hoisted_16$1, toDisplayString(displayName.value), 1),
|
|
14364
|
+
createElementVNode("div", _hoisted_17$1, toDisplayString(user.value?.email), 1)
|
|
14365
|
+
])
|
|
14366
|
+
]),
|
|
14367
|
+
_cache[7] || (_cache[7] = createElementVNode("div", { class: "dropdown-divider" }, null, -1)),
|
|
14368
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
14369
|
+
_cache[8] || (_cache[8] = createElementVNode("div", { class: "dropdown-divider" }, null, -1)),
|
|
14370
|
+
createVNode(unref(StrandsNav), null, {
|
|
14371
|
+
default: withCtx(() => [
|
|
14372
|
+
createVNode(unref(StrandsNav).Item, { onClick: openProfile }, {
|
|
14373
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
14374
|
+
createTextVNode("Profile", -1)
|
|
14375
|
+
])]),
|
|
14376
|
+
_: 1
|
|
14377
|
+
}),
|
|
14378
|
+
createVNode(unref(StrandsNav).Item, {
|
|
14379
|
+
onClick: handleSignOut,
|
|
14380
|
+
color: "danger"
|
|
14381
|
+
}, {
|
|
14382
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
14383
|
+
createTextVNode("Sign Out", -1)
|
|
14384
|
+
])]),
|
|
14385
|
+
_: 1
|
|
14386
|
+
})
|
|
14387
|
+
]),
|
|
14388
|
+
_: 1
|
|
14389
|
+
})
|
|
14390
|
+
])
|
|
14391
|
+
], 42, _hoisted_9$1)) : createCommentVNode("", true)
|
|
14392
|
+
]),
|
|
14393
|
+
_: 3
|
|
14394
|
+
})
|
|
14395
|
+
]),
|
|
14396
|
+
_: 3
|
|
14397
|
+
}, 8, ["active", "onKeydown", "aria-expanded"]),
|
|
14398
|
+
createVNode(unref(UiModal), {
|
|
14396
14399
|
modelValue: showProfileModal.value,
|
|
14397
14400
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showProfileModal.value = $event),
|
|
14398
14401
|
"fullscreen-on-mobile": false
|
|
@@ -14407,34 +14410,36 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14407
14410
|
]),
|
|
14408
14411
|
_: 1
|
|
14409
14412
|
}, 8, ["modelValue"])
|
|
14410
|
-
])) : (openBlock(), createElementBlock("div",
|
|
14411
|
-
|
|
14413
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
14414
|
+
createVNode(unref(StrandsUiButton), {
|
|
14412
14415
|
onClick: openSignIn,
|
|
14413
|
-
class: "sign-in-button",
|
|
14414
14416
|
"aria-label": "Sign in"
|
|
14415
|
-
},
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
"
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14417
|
+
}, {
|
|
14418
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
14419
|
+
createElementVNode("svg", {
|
|
14420
|
+
class: "sign-in-icon",
|
|
14421
|
+
fill: "none",
|
|
14422
|
+
stroke: "currentColor",
|
|
14423
|
+
viewBox: "0 0 24 24"
|
|
14424
|
+
}, [
|
|
14425
|
+
createElementVNode("path", {
|
|
14426
|
+
"stroke-linecap": "round",
|
|
14427
|
+
"stroke-linejoin": "round",
|
|
14428
|
+
"stroke-width": "2",
|
|
14429
|
+
d: "M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
|
|
14430
|
+
})
|
|
14431
|
+
], -1),
|
|
14432
|
+
createElementVNode("span", null, "Sign In", -1)
|
|
14433
|
+
])]),
|
|
14434
|
+
_: 1
|
|
14435
|
+
}),
|
|
14436
|
+
createVNode(unref(UiModal), {
|
|
14432
14437
|
modelValue: showSignInModal.value,
|
|
14433
14438
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showSignInModal.value = $event),
|
|
14434
14439
|
"fullscreen-on-mobile": false
|
|
14435
14440
|
}, {
|
|
14436
14441
|
default: withCtx(() => [
|
|
14437
|
-
createElementVNode("div",
|
|
14442
|
+
createElementVNode("div", _hoisted_19, [
|
|
14438
14443
|
createVNode(unref(StrandsAuth), {
|
|
14439
14444
|
onSignedIn: handleSignedIn,
|
|
14440
14445
|
onError: handleSignInError,
|
|
@@ -14450,7 +14455,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14450
14455
|
};
|
|
14451
14456
|
}
|
|
14452
14457
|
});
|
|
14453
|
-
const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
14458
|
+
const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ad5e5542"]]);
|
|
14454
14459
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
14455
14460
|
__name: "StrandsNav",
|
|
14456
14461
|
props: {
|
|
@@ -15388,7 +15393,7 @@ export {
|
|
|
15388
15393
|
UiDivider as StrandsUiDivider,
|
|
15389
15394
|
UiHero as StrandsUiHero,
|
|
15390
15395
|
StrandsUiInput,
|
|
15391
|
-
StrandsUiLevelProgress,
|
|
15396
|
+
UiLevelProgress as StrandsUiLevelProgress,
|
|
15392
15397
|
StrandsUiLink,
|
|
15393
15398
|
StrandsUiLoader,
|
|
15394
15399
|
UiModal as StrandsUiModal,
|
|
@@ -15410,7 +15415,7 @@ export {
|
|
|
15410
15415
|
UiDivider,
|
|
15411
15416
|
UiHero,
|
|
15412
15417
|
StrandsUiInput as UiInput,
|
|
15413
|
-
|
|
15418
|
+
UiLevelProgress,
|
|
15414
15419
|
StrandsUiLink as UiLink,
|
|
15415
15420
|
StrandsUiLoader as UiLoader,
|
|
15416
15421
|
UiModal,
|