@propeller-commerce/propeller-v2-vue-ui 0.3.26 → 0.3.27
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/CHANGELOG.md +15 -0
- package/dist/components/ProductSpecifications.vue.d.ts +39 -1
- package/dist/components/ProductTabs.vue.d.ts +19 -1
- package/dist/index.cjs +372 -291
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +373 -292
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h as createServices, H as isContact, J as isCustomer, M as ok, j as err
|
|
|
2
2
|
import { C, a, f, i, m, t, u, A, F, G, I, K, L, N, P, Q, R, S, T } from "./index-BN8nyGRL.js";
|
|
3
3
|
import { u as useInfraProps, n as usePropellerDeps, a as PropellerScopeKey, j as _sfc_main$W, d as _sfc_main$X, e as _sfc_main$Y, m as usePropellerContext, h as _sfc_main$Z, i as _sfc_main$_, l as _sfc_main$$ } from "./ProductVideos.vue_vue_type_script_setup_true_lang-BSXOpWBD.js";
|
|
4
4
|
import { _, b, c, f as f2, g, k, P as P2, p, t as t2, o, q } from "./ProductVideos.vue_vue_type_script_setup_true_lang-BSXOpWBD.js";
|
|
5
|
-
import { provide, inject, ref, unref, computed, watch, markRaw, defineComponent, reactive, renderSlot, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, Fragment, createTextVNode, onMounted, onUnmounted, withModifiers, renderList, normalizeClass, createBlock, resolveDynamicComponent, withCtx, normalizeStyle, createVNode, createStaticVNode, withKeys, mergeProps, nextTick } from "vue";
|
|
5
|
+
import { provide, inject, ref, unref, computed, watch, markRaw, defineComponent, reactive, renderSlot, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, Fragment, createTextVNode, onMounted, onUnmounted, withModifiers, renderList, normalizeClass, createBlock, resolveDynamicComponent, withCtx, normalizeStyle, createVNode, createStaticVNode, withKeys, mergeProps, nextTick, createSlots, normalizeProps, guardReactiveProps } from "vue";
|
|
6
6
|
import { YesNo, AddressType, CartService, CartStatus, CartAddressType, Gender, PurchaseRole, CrossupsellType, PaymentStatuses, OrderSearchFields, OrderItemClass, ProductSortField, ProductSearchableField, ProductStatus, SortOrder, AttributeType, OrderSortField, OrderType, BundleCondition } from "@propeller-commerce/propeller-sdk-v2";
|
|
7
7
|
const ProductGridInjectionKey = /* @__PURE__ */ Symbol("propeller-product-grid");
|
|
8
8
|
function provideProductGridConfig(value) {
|
|
@@ -3095,7 +3095,7 @@ const _hoisted_19$p = {
|
|
|
3095
3095
|
key: 2,
|
|
3096
3096
|
class: "propeller-login-form__footer flex flex-col gap-2 text-sm pt-3 text-center"
|
|
3097
3097
|
};
|
|
3098
|
-
const _hoisted_20$
|
|
3098
|
+
const _hoisted_20$n = { class: "propeller-login-form__register text-xs text-muted-foreground" };
|
|
3099
3099
|
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
3100
3100
|
__name: "LoginForm",
|
|
3101
3101
|
props: {
|
|
@@ -3369,7 +3369,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3369
3369
|
})
|
|
3370
3370
|
}, toDisplayString(getLabel$1("forgotPassword", "Forgot Password?")), 1)
|
|
3371
3371
|
]) : createCommentVNode("", true),
|
|
3372
|
-
createElementVNode("div", _hoisted_20$
|
|
3372
|
+
createElementVNode("div", _hoisted_20$n, [
|
|
3373
3373
|
createTextVNode(toDisplayString(getLabel$1("noAccount", "Don't have an account?")), 1),
|
|
3374
3374
|
__props.displayRegisterLink !== false ? renderSlot(_ctx.$slots, "registerLink", {
|
|
3375
3375
|
key: 0,
|
|
@@ -3424,13 +3424,13 @@ const _hoisted_16$q = { class: "propeller-account-menu__user-name font-medium te
|
|
|
3424
3424
|
const _hoisted_17$q = { class: "propeller-account-menu__nav" };
|
|
3425
3425
|
const _hoisted_18$o = { class: "propeller-account-menu__list space-y-0.5" };
|
|
3426
3426
|
const _hoisted_19$o = ["onClick"];
|
|
3427
|
-
const _hoisted_20$
|
|
3428
|
-
const _hoisted_21$
|
|
3427
|
+
const _hoisted_20$m = { class: "propeller-account-menu__logout-wrapper mt-3 pt-3 border-t border-border" };
|
|
3428
|
+
const _hoisted_21$k = {
|
|
3429
3429
|
key: 1,
|
|
3430
3430
|
class: "propeller-account-menu__login-cta text-center py-4"
|
|
3431
3431
|
};
|
|
3432
|
-
const _hoisted_22$
|
|
3433
|
-
const _hoisted_23$
|
|
3432
|
+
const _hoisted_22$k = { class: "propeller-account-menu__login-title text-lg font-semibold mb-2" };
|
|
3433
|
+
const _hoisted_23$k = { class: "propeller-account-menu__login-subtitle text-sm text-muted-foreground mb-4" };
|
|
3434
3434
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
3435
3435
|
__name: "AccountIconAndMenu",
|
|
3436
3436
|
props: {
|
|
@@ -3664,7 +3664,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3664
3664
|
}), 128))
|
|
3665
3665
|
])
|
|
3666
3666
|
]),
|
|
3667
|
-
createElementVNode("div", _hoisted_20$
|
|
3667
|
+
createElementVNode("div", _hoisted_20$m, [
|
|
3668
3668
|
createElementVNode("button", {
|
|
3669
3669
|
type: "button",
|
|
3670
3670
|
class: "propeller-account-menu__logout-btn flex w-full items-center gap-3 px-3 py-2 text-sm font-medium text-primary hover:bg-secondary/5 rounded-[var(--radius-control)] transition-colors",
|
|
@@ -3694,9 +3694,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3694
3694
|
onGuestCheckoutClick: (event) => handleGuestCheckoutClick(),
|
|
3695
3695
|
accountHeaderLoginForm: __props.accountHeaderLoginForm
|
|
3696
3696
|
}, null, 40, ["graphqlClient", "cart", "title", "subtitle", "buttonText", "displayForgotPasswordLink", "displayRegisterLink", "displayGuestCheckoutLink", "labels", "onLoginSubmit", "loginLoading", "loginError", "beforeLogin", "afterLogin", "onForgotPasswordClick", "onRegisterClick", "onGuestCheckoutClick", "accountHeaderLoginForm"])) : createCommentVNode("", true),
|
|
3697
|
-
__props.accountHeaderLoginForm === false ? (openBlock(), createElementBlock("div", _hoisted_21$
|
|
3698
|
-
createElementVNode("h4", _hoisted_22$
|
|
3699
|
-
createElementVNode("p", _hoisted_23$
|
|
3697
|
+
__props.accountHeaderLoginForm === false ? (openBlock(), createElementBlock("div", _hoisted_21$k, [
|
|
3698
|
+
createElementVNode("h4", _hoisted_22$k, toDisplayString(getMenuTitle()), 1),
|
|
3699
|
+
createElementVNode("p", _hoisted_23$k, toDisplayString(getLabel$1("loginSubtitle", "Login to access your account")), 1),
|
|
3700
3700
|
createElementVNode("button", {
|
|
3701
3701
|
type: "button",
|
|
3702
3702
|
class: "propeller-account-menu__login-btn w-full inline-flex justify-center items-center px-4 py-2 rounded-[var(--radius-control)] bg-secondary text-primary-foreground text-sm font-medium hover:bg-secondary/90 transition-colors",
|
|
@@ -3953,23 +3953,23 @@ const _hoisted_19$n = {
|
|
|
3953
3953
|
class: "h-5 w-5",
|
|
3954
3954
|
strokeWidth: 2
|
|
3955
3955
|
};
|
|
3956
|
-
const _hoisted_20$
|
|
3957
|
-
const _hoisted_21$
|
|
3958
|
-
const _hoisted_22$
|
|
3959
|
-
const _hoisted_23$
|
|
3956
|
+
const _hoisted_20$l = { class: "propeller-add-to-cart__modal-body px-6 py-5" };
|
|
3957
|
+
const _hoisted_21$j = { class: "propeller-add-to-cart__modal-product flex items-start gap-4" };
|
|
3958
|
+
const _hoisted_22$j = ["src", "alt"];
|
|
3959
|
+
const _hoisted_23$j = {
|
|
3960
3960
|
key: 1,
|
|
3961
3961
|
class: "propeller-add-to-cart__modal-image-placeholder w-16 h-16 flex items-center justify-center rounded border border-border-subtle flex-shrink-0 bg-surface-hover"
|
|
3962
3962
|
};
|
|
3963
|
-
const _hoisted_24$
|
|
3963
|
+
const _hoisted_24$i = {
|
|
3964
3964
|
fill: "none",
|
|
3965
3965
|
viewBox: "0 0 24 24",
|
|
3966
3966
|
stroke: "currentColor",
|
|
3967
3967
|
class: "w-8 h-8 text-foreground-subtle",
|
|
3968
3968
|
strokeWidth: 1.5
|
|
3969
3969
|
};
|
|
3970
|
-
const _hoisted_25$
|
|
3971
|
-
const _hoisted_26$
|
|
3972
|
-
const _hoisted_27$
|
|
3970
|
+
const _hoisted_25$i = { class: "flex-1 min-w-0" };
|
|
3971
|
+
const _hoisted_26$i = ["href"];
|
|
3972
|
+
const _hoisted_27$i = {
|
|
3973
3973
|
key: 0,
|
|
3974
3974
|
class: "propeller-add-to-cart__modal-sku text-xs text-foreground-subtle mt-0.5"
|
|
3975
3975
|
};
|
|
@@ -4344,16 +4344,16 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4344
4344
|
])]))
|
|
4345
4345
|
])
|
|
4346
4346
|
]),
|
|
4347
|
-
createElementVNode("div", _hoisted_20$
|
|
4348
|
-
createElementVNode("div", _hoisted_21$
|
|
4347
|
+
createElementVNode("div", _hoisted_20$l, [
|
|
4348
|
+
createElementVNode("div", _hoisted_21$j, [
|
|
4349
4349
|
!!getModalImageUrl() ? (openBlock(), createElementBlock("img", {
|
|
4350
4350
|
key: 0,
|
|
4351
4351
|
class: "propeller-add-to-cart__modal-image w-16 h-16 object-contain rounded border border-border-subtle flex-shrink-0",
|
|
4352
4352
|
src: getModalImageUrl(),
|
|
4353
4353
|
alt: getModalName()
|
|
4354
|
-
}, null, 8, _hoisted_22$
|
|
4355
|
-
!getModalImageUrl() ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
4356
|
-
(openBlock(), createElementBlock("svg", _hoisted_24$
|
|
4354
|
+
}, null, 8, _hoisted_22$j)) : createCommentVNode("", true),
|
|
4355
|
+
!getModalImageUrl() ? (openBlock(), createElementBlock("div", _hoisted_23$j, [
|
|
4356
|
+
(openBlock(), createElementBlock("svg", _hoisted_24$i, [..._cache[17] || (_cache[17] = [
|
|
4357
4357
|
createElementVNode("path", {
|
|
4358
4358
|
strokeLinecap: "round",
|
|
4359
4359
|
strokeLinejoin: "round",
|
|
@@ -4361,12 +4361,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4361
4361
|
}, null, -1)
|
|
4362
4362
|
])]))
|
|
4363
4363
|
])) : createCommentVNode("", true),
|
|
4364
|
-
createElementVNode("div", _hoisted_25$
|
|
4364
|
+
createElementVNode("div", _hoisted_25$i, [
|
|
4365
4365
|
createElementVNode("a", {
|
|
4366
4366
|
class: "propeller-add-to-cart__modal-product-title text-sm font-medium text-secondary leading-tight hover:underline line-clamp-2",
|
|
4367
4367
|
href: getProductUrl()
|
|
4368
|
-
}, toDisplayString(getModalName()), 9, _hoisted_26$
|
|
4369
|
-
!!getModalSku() ? (openBlock(), createElementBlock("p", _hoisted_27$
|
|
4368
|
+
}, toDisplayString(getModalName()), 9, _hoisted_26$i),
|
|
4369
|
+
!!getModalSku() ? (openBlock(), createElementBlock("p", _hoisted_27$i, " SKU: " + toDisplayString(getModalSku()), 1)) : createCommentVNode("", true),
|
|
4370
4370
|
getModalSurcharges().length > 0 ? (openBlock(), createElementBlock("div", _hoisted_28$h, [
|
|
4371
4371
|
createElementVNode("span", _hoisted_29$h, toDisplayString(getLabel$1("surcharges", "Additional surcharges:")), 1),
|
|
4372
4372
|
createElementVNode("ul", _hoisted_30$g, [
|
|
@@ -4482,7 +4482,7 @@ const _hoisted_16$o = { class: "propeller-add-to-favorite__select-label text-xs
|
|
|
4482
4482
|
const _hoisted_17$o = ["value"];
|
|
4483
4483
|
const _hoisted_18$m = ["value"];
|
|
4484
4484
|
const _hoisted_19$m = ["disabled"];
|
|
4485
|
-
const _hoisted_20$
|
|
4485
|
+
const _hoisted_20$k = {
|
|
4486
4486
|
key: 2,
|
|
4487
4487
|
class: "propeller-add-to-favorite__empty py-4 text-center text-muted-foreground text-sm"
|
|
4488
4488
|
};
|
|
@@ -4753,7 +4753,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4753
4753
|
], 64))
|
|
4754
4754
|
], 8, _hoisted_19$m)
|
|
4755
4755
|
])) : createCommentVNode("", true),
|
|
4756
|
-
getMemberLists().length === 0 && getNonMemberLists().length === 0 ? (openBlock(), createElementBlock("div", _hoisted_20$
|
|
4756
|
+
getMemberLists().length === 0 && getNonMemberLists().length === 0 ? (openBlock(), createElementBlock("div", _hoisted_20$k, toDisplayString(getLabel$1(
|
|
4757
4757
|
"noLists",
|
|
4758
4758
|
"You have no favorite lists. Create one in your account first."
|
|
4759
4759
|
)), 1)) : createCommentVNode("", true)
|
|
@@ -4804,14 +4804,14 @@ const _hoisted_16$n = {
|
|
|
4804
4804
|
const _hoisted_17$n = { class: "space-y-4" };
|
|
4805
4805
|
const _hoisted_18$l = { class: "grid grid-cols-2 gap-4" };
|
|
4806
4806
|
const _hoisted_19$l = { class: "block text-sm font-medium mb-1" };
|
|
4807
|
-
const _hoisted_20$
|
|
4808
|
-
const _hoisted_21$
|
|
4809
|
-
const _hoisted_22$
|
|
4810
|
-
const _hoisted_23$
|
|
4811
|
-
const _hoisted_24$
|
|
4812
|
-
const _hoisted_25$
|
|
4813
|
-
const _hoisted_26$
|
|
4814
|
-
const _hoisted_27$
|
|
4807
|
+
const _hoisted_20$j = ["value"];
|
|
4808
|
+
const _hoisted_21$i = { value: "M" };
|
|
4809
|
+
const _hoisted_22$i = { value: "F" };
|
|
4810
|
+
const _hoisted_23$i = { value: "U" };
|
|
4811
|
+
const _hoisted_24$h = { class: "block text-sm font-medium mb-1" };
|
|
4812
|
+
const _hoisted_25$h = ["value"];
|
|
4813
|
+
const _hoisted_26$h = { class: "grid grid-cols-3 gap-4" };
|
|
4814
|
+
const _hoisted_27$h = { class: "block text-sm font-medium mb-1" };
|
|
4815
4815
|
const _hoisted_28$g = ["value"];
|
|
4816
4816
|
const _hoisted_29$g = { class: "block text-sm font-medium mb-1" };
|
|
4817
4817
|
const _hoisted_30$f = ["value"];
|
|
@@ -5221,13 +5221,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5221
5221
|
editGender.value = e.target.value;
|
|
5222
5222
|
})
|
|
5223
5223
|
}, [
|
|
5224
|
-
createElementVNode("option", _hoisted_21$
|
|
5225
|
-
createElementVNode("option", _hoisted_22$
|
|
5226
|
-
createElementVNode("option", _hoisted_23$
|
|
5227
|
-
], 40, _hoisted_20$
|
|
5224
|
+
createElementVNode("option", _hoisted_21$i, toDisplayString(getLabel$1("genderMale", "Male")), 1),
|
|
5225
|
+
createElementVNode("option", _hoisted_22$i, toDisplayString(getLabel$1("genderFemale", "Female")), 1),
|
|
5226
|
+
createElementVNode("option", _hoisted_23$i, toDisplayString(getLabel$1("genderOther", "Other")), 1)
|
|
5227
|
+
], 40, _hoisted_20$j)
|
|
5228
5228
|
]),
|
|
5229
5229
|
createElementVNode("div", null, [
|
|
5230
|
-
createElementVNode("label", _hoisted_24$
|
|
5230
|
+
createElementVNode("label", _hoisted_24$h, toDisplayString(getLabel$1("company", "Company")), 1),
|
|
5231
5231
|
createElementVNode("input", {
|
|
5232
5232
|
type: "text",
|
|
5233
5233
|
class: "propeller-address-card__input w-full h-10 px-3 rounded-[var(--radius-control)] border border-input",
|
|
@@ -5235,12 +5235,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5235
5235
|
onChange: _cache[4] || (_cache[4] = async (e) => {
|
|
5236
5236
|
editCompany.value = e.target.value;
|
|
5237
5237
|
})
|
|
5238
|
-
}, null, 40, _hoisted_25$
|
|
5238
|
+
}, null, 40, _hoisted_25$h)
|
|
5239
5239
|
])
|
|
5240
5240
|
]),
|
|
5241
|
-
createElementVNode("div", _hoisted_26$
|
|
5241
|
+
createElementVNode("div", _hoisted_26$h, [
|
|
5242
5242
|
createElementVNode("div", null, [
|
|
5243
|
-
createElementVNode("label", _hoisted_27$
|
|
5243
|
+
createElementVNode("label", _hoisted_27$h, toDisplayString(getLabel$1("firstName", "First Name")) + " *", 1),
|
|
5244
5244
|
createElementVNode("input", {
|
|
5245
5245
|
type: "text",
|
|
5246
5246
|
class: "propeller-address-card__input w-full h-10 px-3 rounded-[var(--radius-control)] border border-input",
|
|
@@ -6135,14 +6135,14 @@ const _hoisted_16$m = { class: "font-semibold text-foreground" };
|
|
|
6135
6135
|
const _hoisted_17$m = { class: "font-semibold text-foreground" };
|
|
6136
6136
|
const _hoisted_18$k = { class: "font-medium" };
|
|
6137
6137
|
const _hoisted_19$k = { class: "font-semibold text-foreground" };
|
|
6138
|
-
const _hoisted_20$
|
|
6139
|
-
const _hoisted_21$
|
|
6140
|
-
const _hoisted_22$
|
|
6141
|
-
const _hoisted_23$
|
|
6142
|
-
const _hoisted_24$
|
|
6143
|
-
const _hoisted_25$
|
|
6144
|
-
const _hoisted_26$
|
|
6145
|
-
const _hoisted_27$
|
|
6138
|
+
const _hoisted_20$i = { class: "propeller-cart-item__options mt-3 space-y-1.5 border-l-2 border-border pl-3" };
|
|
6139
|
+
const _hoisted_21$h = { class: "propeller-cart-item__options-label text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1" };
|
|
6140
|
+
const _hoisted_22$h = { class: "font-medium" };
|
|
6141
|
+
const _hoisted_23$h = { class: "text-foreground-subtle text-xs self-center" };
|
|
6142
|
+
const _hoisted_24$g = { class: "font-semibold text-foreground" };
|
|
6143
|
+
const _hoisted_25$g = { class: "propeller-cart-item__notes mt-3" };
|
|
6144
|
+
const _hoisted_26$g = { class: "propeller-cart-item__notes-label text-xs font-medium text-muted-foreground block mb-1" };
|
|
6145
|
+
const _hoisted_27$g = ["value", "placeholder"];
|
|
6146
6146
|
const _hoisted_28$f = { class: "propeller-cart-item__crossupsells mt-3 pt-3 border-t border-border" };
|
|
6147
6147
|
const _hoisted_29$f = { class: "propeller-cart-item__crossupsells-label text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-2" };
|
|
6148
6148
|
const _hoisted_30$e = { class: "flex flex-col gap-2" };
|
|
@@ -6631,18 +6631,18 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6631
6631
|
cartItem: __props.cartItem,
|
|
6632
6632
|
childItems: __props.cartItem.childItems
|
|
6633
6633
|
}, () => [
|
|
6634
|
-
createElementVNode("div", _hoisted_20$
|
|
6635
|
-
createElementVNode("p", _hoisted_21$
|
|
6634
|
+
createElementVNode("div", _hoisted_20$i, [
|
|
6635
|
+
createElementVNode("p", _hoisted_21$h, toDisplayString(getLabel$1("includedOptions", "Included Options:")), 1),
|
|
6636
6636
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.cartItem.childItems || [], (child, idx) => {
|
|
6637
6637
|
return openBlock(), createElementBlock("div", {
|
|
6638
6638
|
key: idx,
|
|
6639
6639
|
class: "propeller-cart-item__option flex flex-wrap gap-x-2 text-sm text-muted-foreground"
|
|
6640
6640
|
}, [
|
|
6641
|
-
createElementVNode("span", _hoisted_22$
|
|
6641
|
+
createElementVNode("span", _hoisted_22$h, toDisplayString(child.product.names?.[0]?.value || "Option"), 1),
|
|
6642
6642
|
_cache[10] || (_cache[10] = createElementVNode("span", { class: "text-foreground-subtle hidden sm:inline" }, "-", -1)),
|
|
6643
|
-
createElementVNode("span", _hoisted_23$
|
|
6643
|
+
createElementVNode("span", _hoisted_23$h, toDisplayString(child.product.sku), 1),
|
|
6644
6644
|
_cache[11] || (_cache[11] = createElementVNode("div", { class: "flex-1 border-b border-dotted border-input mx-1 mb-1" }, null, -1)),
|
|
6645
|
-
createElementVNode("span", _hoisted_24$
|
|
6645
|
+
createElementVNode("span", _hoisted_24$g, toDisplayString(getChildItemPrice(child)), 1)
|
|
6646
6646
|
]);
|
|
6647
6647
|
}), 128))
|
|
6648
6648
|
])
|
|
@@ -6653,15 +6653,15 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6653
6653
|
notes: notes.value,
|
|
6654
6654
|
onNoteChange: (value) => handleNoteChange(value)
|
|
6655
6655
|
}, () => [
|
|
6656
|
-
createElementVNode("div", _hoisted_25$
|
|
6657
|
-
createElementVNode("label", _hoisted_26$
|
|
6656
|
+
createElementVNode("div", _hoisted_25$g, [
|
|
6657
|
+
createElementVNode("label", _hoisted_26$g, toDisplayString(getLabel$1("notes", "Notes")), 1),
|
|
6658
6658
|
createElementVNode("textarea", {
|
|
6659
6659
|
class: "propeller-cart-item__notes-input w-full text-sm border border-input rounded-[var(--radius-control)] px-3 py-2 focus:ring-2 focus:ring-secondary focus:border-transparent resize-none",
|
|
6660
6660
|
value: notes.value,
|
|
6661
6661
|
onChange: _cache[1] || (_cache[1] = async (e) => handleNoteChange(e.target.value)),
|
|
6662
6662
|
placeholder: getLabel$1("notesPlaceholder", "Add a note for this item..."),
|
|
6663
6663
|
rows: 2
|
|
6664
|
-
}, null, 40, _hoisted_27$
|
|
6664
|
+
}, null, 40, _hoisted_27$g)
|
|
6665
6665
|
])
|
|
6666
6666
|
]) : createCommentVNode("", true),
|
|
6667
6667
|
getVisibleCrossupsells().length > 0 ? renderSlot(_ctx.$slots, "crossupsells", {
|
|
@@ -6875,21 +6875,21 @@ const _hoisted_18$j = {
|
|
|
6875
6875
|
strokeWidth: 2
|
|
6876
6876
|
};
|
|
6877
6877
|
const _hoisted_19$j = { class: "propeller-cart-icon__sidebar-body flex-1 overflow-y-auto px-5 py-4 space-y-4" };
|
|
6878
|
-
const _hoisted_20$
|
|
6878
|
+
const _hoisted_20$h = {
|
|
6879
6879
|
key: 0,
|
|
6880
6880
|
class: "propeller-cart-icon__empty flex flex-col items-center justify-center h-full text-center space-y-4 py-16"
|
|
6881
6881
|
};
|
|
6882
|
-
const _hoisted_21$
|
|
6882
|
+
const _hoisted_21$g = {
|
|
6883
6883
|
fill: "none",
|
|
6884
6884
|
stroke: "currentColor",
|
|
6885
6885
|
viewBox: "0 0 24 24",
|
|
6886
6886
|
class: "propeller-cart-icon__empty-icon w-12 h-12 text-foreground-subtle",
|
|
6887
6887
|
strokeWidth: 1.5
|
|
6888
6888
|
};
|
|
6889
|
-
const _hoisted_22$
|
|
6890
|
-
const _hoisted_23$
|
|
6891
|
-
const _hoisted_24$
|
|
6892
|
-
const _hoisted_25$
|
|
6889
|
+
const _hoisted_22$g = { class: "propeller-cart-icon__empty-message text-sm text-muted-foreground" };
|
|
6890
|
+
const _hoisted_23$g = { class: "propeller-cart-icon__item-media w-20 h-20 flex-shrink-0 bg-surface-hover rounded-[var(--radius-control)] overflow-hidden border border-border-subtle flex items-center justify-center" };
|
|
6891
|
+
const _hoisted_24$f = ["src", "alt"];
|
|
6892
|
+
const _hoisted_25$f = {
|
|
6893
6893
|
key: 1,
|
|
6894
6894
|
fill: "none",
|
|
6895
6895
|
viewBox: "0 0 24 24",
|
|
@@ -6897,11 +6897,11 @@ const _hoisted_25$e = {
|
|
|
6897
6897
|
class: "w-8 h-8 text-foreground-subtle",
|
|
6898
6898
|
strokeWidth: 1.5
|
|
6899
6899
|
};
|
|
6900
|
-
const _hoisted_26$
|
|
6900
|
+
const _hoisted_26$f = {
|
|
6901
6901
|
key: 0,
|
|
6902
6902
|
class: "propeller-cart-icon__item-name text-sm font-medium line-clamp-2"
|
|
6903
6903
|
};
|
|
6904
|
-
const _hoisted_27$
|
|
6904
|
+
const _hoisted_27$f = ["href"];
|
|
6905
6905
|
const _hoisted_28$e = {
|
|
6906
6906
|
key: 0,
|
|
6907
6907
|
class: "propeller-cart-icon__sidebar-footer px-5 py-4 border-t border-border space-y-3 bg-surface-hover"
|
|
@@ -7144,15 +7144,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7144
7144
|
], 8, _hoisted_17$l)
|
|
7145
7145
|
]),
|
|
7146
7146
|
createElementVNode("div", _hoisted_19$j, [
|
|
7147
|
-
getItems().length === 0 ? (openBlock(), createElementBlock("div", _hoisted_20$
|
|
7148
|
-
(openBlock(), createElementBlock("svg", _hoisted_21$
|
|
7147
|
+
getItems().length === 0 ? (openBlock(), createElementBlock("div", _hoisted_20$h, [
|
|
7148
|
+
(openBlock(), createElementBlock("svg", _hoisted_21$g, [..._cache[14] || (_cache[14] = [
|
|
7149
7149
|
createElementVNode("path", {
|
|
7150
7150
|
strokeLinecap: "round",
|
|
7151
7151
|
strokeLinejoin: "round",
|
|
7152
7152
|
d: "M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007z"
|
|
7153
7153
|
}, null, -1)
|
|
7154
7154
|
])])),
|
|
7155
|
-
createElementVNode("p", _hoisted_22$
|
|
7155
|
+
createElementVNode("p", _hoisted_22$g, toDisplayString(getLabel$1("emptyCart", "Your cart is empty.")), 1),
|
|
7156
7156
|
createElementVNode("button", {
|
|
7157
7157
|
type: "button",
|
|
7158
7158
|
class: "propeller-cart-icon__empty-action text-sm text-secondary hover:underline",
|
|
@@ -7180,14 +7180,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7180
7180
|
className: "propeller-cart-icon__item"
|
|
7181
7181
|
}, {
|
|
7182
7182
|
image: withCtx(({ cartItem: rowCartItem }) => [
|
|
7183
|
-
createElementVNode("div", _hoisted_23$
|
|
7183
|
+
createElementVNode("div", _hoisted_23$g, [
|
|
7184
7184
|
!!rowCartItem.product?.media?.images?.items?.[0]?.imageVariants?.[0]?.url ? (openBlock(), createElementBlock("img", {
|
|
7185
7185
|
key: 0,
|
|
7186
7186
|
class: "propeller-cart-icon__item-image w-full h-full object-contain p-2",
|
|
7187
7187
|
src: rowCartItem.product?.media?.images?.items?.[0]?.imageVariants?.[0]?.url,
|
|
7188
7188
|
alt: rowCartItem.product?.names?.[0]?.value || "Product"
|
|
7189
|
-
}, null, 8, _hoisted_24$
|
|
7190
|
-
!rowCartItem.product?.media?.images?.items?.[0]?.imageVariants?.[0]?.url ? (openBlock(), createElementBlock("svg", _hoisted_25$
|
|
7189
|
+
}, null, 8, _hoisted_24$f)) : createCommentVNode("", true),
|
|
7190
|
+
!rowCartItem.product?.media?.images?.items?.[0]?.imageVariants?.[0]?.url ? (openBlock(), createElementBlock("svg", _hoisted_25$f, [..._cache[15] || (_cache[15] = [
|
|
7191
7191
|
createElementVNode("path", {
|
|
7192
7192
|
strokeLinecap: "round",
|
|
7193
7193
|
strokeLinejoin: "round",
|
|
@@ -7197,13 +7197,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7197
7197
|
])
|
|
7198
7198
|
]),
|
|
7199
7199
|
title: withCtx(({ isBundle, name, bundleName, productUrl }) => [
|
|
7200
|
-
isBundle ? (openBlock(), createElementBlock("span", _hoisted_26$
|
|
7200
|
+
isBundle ? (openBlock(), createElementBlock("span", _hoisted_26$f, toDisplayString(bundleName), 1)) : createCommentVNode("", true),
|
|
7201
7201
|
!isBundle ? (openBlock(), createElementBlock("a", {
|
|
7202
7202
|
key: 1,
|
|
7203
7203
|
class: "propeller-cart-icon__item-name text-sm font-medium hover:text-primary line-clamp-2",
|
|
7204
7204
|
href: productUrl,
|
|
7205
7205
|
onClick: _cache[6] || (_cache[6] = (_e) => closeSidebar())
|
|
7206
|
-
}, toDisplayString(name), 9, _hoisted_27$
|
|
7206
|
+
}, toDisplayString(name), 9, _hoisted_27$f)) : createCommentVNode("", true)
|
|
7207
7207
|
]),
|
|
7208
7208
|
_: 1
|
|
7209
7209
|
}, 40, ["cartItem", "cartId", "graphqlClient", "user", "language", "configuration", "companyId", "onTitleClick"]);
|
|
@@ -7317,23 +7317,23 @@ const _hoisted_18$i = {
|
|
|
7317
7317
|
class: "flex justify-between"
|
|
7318
7318
|
};
|
|
7319
7319
|
const _hoisted_19$i = { class: "font-medium" };
|
|
7320
|
-
const _hoisted_20$
|
|
7320
|
+
const _hoisted_20$g = {
|
|
7321
7321
|
key: 2,
|
|
7322
7322
|
class: "flex justify-between"
|
|
7323
7323
|
};
|
|
7324
|
-
const _hoisted_21$
|
|
7325
|
-
const _hoisted_22$
|
|
7326
|
-
const _hoisted_23$
|
|
7324
|
+
const _hoisted_21$f = { class: "font-medium" };
|
|
7325
|
+
const _hoisted_22$f = { class: "space-y-4 mt-6" };
|
|
7326
|
+
const _hoisted_23$f = {
|
|
7327
7327
|
key: 0,
|
|
7328
7328
|
class: "space-y-2"
|
|
7329
7329
|
};
|
|
7330
|
-
const _hoisted_24$
|
|
7331
|
-
const _hoisted_25$
|
|
7332
|
-
const _hoisted_26$
|
|
7330
|
+
const _hoisted_24$e = { class: "text-sm font-medium" };
|
|
7331
|
+
const _hoisted_25$e = ["value", "placeholder"];
|
|
7332
|
+
const _hoisted_26$e = {
|
|
7333
7333
|
key: 1,
|
|
7334
7334
|
class: "space-y-2"
|
|
7335
7335
|
};
|
|
7336
|
-
const _hoisted_27$
|
|
7336
|
+
const _hoisted_27$e = { class: "text-sm font-medium" };
|
|
7337
7337
|
const _hoisted_28$d = ["value", "placeholder"];
|
|
7338
7338
|
const _hoisted_29$d = {
|
|
7339
7339
|
key: 2,
|
|
@@ -7494,14 +7494,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7494
7494
|
createElementVNode("span", _hoisted_19$i, toDisplayString(getLabel$1("carrier", "Carrier:")), 1),
|
|
7495
7495
|
createElementVNode("span", null, toDisplayString(carrierName.value), 1)
|
|
7496
7496
|
])) : createCommentVNode("", true),
|
|
7497
|
-
requestDate.value ? (openBlock(), createElementBlock("div", _hoisted_20$
|
|
7498
|
-
createElementVNode("span", _hoisted_21$
|
|
7497
|
+
requestDate.value ? (openBlock(), createElementBlock("div", _hoisted_20$g, [
|
|
7498
|
+
createElementVNode("span", _hoisted_21$f, toDisplayString(getLabel$1("deliveryDate", "Delivery Date:")), 1),
|
|
7499
7499
|
createElementVNode("span", null, toDisplayString(requestDate.value), 1)
|
|
7500
7500
|
])) : createCommentVNode("", true)
|
|
7501
7501
|
]),
|
|
7502
|
-
createElementVNode("div", _hoisted_22$
|
|
7503
|
-
showReference.value ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
7504
|
-
createElementVNode("label", _hoisted_24$
|
|
7502
|
+
createElementVNode("div", _hoisted_22$f, [
|
|
7503
|
+
showReference.value ? (openBlock(), createElementBlock("div", _hoisted_23$f, [
|
|
7504
|
+
createElementVNode("label", _hoisted_24$e, toDisplayString(getLabel$1("referenceLabel", "Reference (Optional)")), 1),
|
|
7505
7505
|
createElementVNode("input", {
|
|
7506
7506
|
type: "text",
|
|
7507
7507
|
class: "propeller-cart-overview__input flex w-full rounded-[var(--radius-control)] border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-foreground-subtle focus:outline-none focus:ring-1 focus:ring-secondary",
|
|
@@ -7511,10 +7511,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7511
7511
|
)),
|
|
7512
7512
|
placeholder: getLabel$1("referencePlaceholder", "Your reference number"),
|
|
7513
7513
|
maxLength: 255
|
|
7514
|
-
}, null, 40, _hoisted_25$
|
|
7514
|
+
}, null, 40, _hoisted_25$e)
|
|
7515
7515
|
])) : createCommentVNode("", true),
|
|
7516
|
-
showNotes.value ? (openBlock(), createElementBlock("div", _hoisted_26$
|
|
7517
|
-
createElementVNode("label", _hoisted_27$
|
|
7516
|
+
showNotes.value ? (openBlock(), createElementBlock("div", _hoisted_26$e, [
|
|
7517
|
+
createElementVNode("label", _hoisted_27$e, toDisplayString(getLabel$1("notesLabel", "Order Notes (Optional)")), 1),
|
|
7518
7518
|
createElementVNode("textarea", {
|
|
7519
7519
|
class: "propeller-cart-overview__textarea flex w-full rounded-[var(--radius-control)] border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-foreground-subtle focus:outline-none focus:ring-1 focus:ring-secondary min-h-[80px]",
|
|
7520
7520
|
value: notes.value,
|
|
@@ -7725,13 +7725,13 @@ const _hoisted_17$j = {
|
|
|
7725
7725
|
};
|
|
7726
7726
|
const _hoisted_18$h = { class: "propeller-cart-summary__label" };
|
|
7727
7727
|
const _hoisted_19$h = { class: "propeller-cart-summary__value" };
|
|
7728
|
-
const _hoisted_20$
|
|
7728
|
+
const _hoisted_20$f = {
|
|
7729
7729
|
class: "propeller-cart-summary__row propeller-cart-summary__row--total flex justify-between text-xl font-bold pt-4 border-t text-foreground mt-2",
|
|
7730
7730
|
"data-row": "total"
|
|
7731
7731
|
};
|
|
7732
|
-
const _hoisted_21$
|
|
7733
|
-
const _hoisted_22$
|
|
7734
|
-
const _hoisted_23$
|
|
7732
|
+
const _hoisted_21$e = { class: "propeller-cart-summary__label" };
|
|
7733
|
+
const _hoisted_22$e = { class: "propeller-cart-summary__value" };
|
|
7734
|
+
const _hoisted_23$e = ["disabled"];
|
|
7735
7735
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
7736
7736
|
__name: "CartSummary",
|
|
7737
7737
|
props: {
|
|
@@ -7913,9 +7913,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
7913
7913
|
createElementVNode("span", _hoisted_18$h, toDisplayString(getLabel$1("totalVat", "Total VAT:")), 1),
|
|
7914
7914
|
createElementVNode("span", _hoisted_19$h, toDisplayString(formatItemPrice(totalVat.value)), 1)
|
|
7915
7915
|
])) : createCommentVNode("", true),
|
|
7916
|
-
createElementVNode("div", _hoisted_20$
|
|
7917
|
-
createElementVNode("span", _hoisted_21$
|
|
7918
|
-
createElementVNode("span", _hoisted_22$
|
|
7916
|
+
createElementVNode("div", _hoisted_20$f, [
|
|
7917
|
+
createElementVNode("span", _hoisted_21$e, toDisplayString(getLabel$1("total", "Total:")), 1),
|
|
7918
|
+
createElementVNode("span", _hoisted_22$e, toDisplayString(formatItemPrice(totalInclVat.value)), 1)
|
|
7919
7919
|
]),
|
|
7920
7920
|
showCheckoutButton.value && !showRequestAuthorizationButton.value ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
7921
7921
|
createElementVNode("button", {
|
|
@@ -7943,7 +7943,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
7943
7943
|
!requestLoading.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
7944
7944
|
createTextVNode(toDisplayString(getLabel$1("requestAuthorizationButton", "Request Authorization")), 1)
|
|
7945
7945
|
], 64)) : createCommentVNode("", true)
|
|
7946
|
-
], 8, _hoisted_23$
|
|
7946
|
+
], 8, _hoisted_23$e)) : createCommentVNode("", true)
|
|
7947
7947
|
]);
|
|
7948
7948
|
};
|
|
7949
7949
|
}
|
|
@@ -8158,17 +8158,17 @@ const _hoisted_17$i = {
|
|
|
8158
8158
|
};
|
|
8159
8159
|
const _hoisted_18$g = { class: "propeller-cluster-card__cta w-full md:w-auto md:flex-shrink-0 md:ml-auto" };
|
|
8160
8160
|
const _hoisted_19$g = ["href"];
|
|
8161
|
-
const _hoisted_20$
|
|
8162
|
-
const _hoisted_21$
|
|
8163
|
-
const _hoisted_22$
|
|
8164
|
-
const _hoisted_23$
|
|
8161
|
+
const _hoisted_20$e = { class: "propeller-cluster-card__body flex flex-1 flex-col gap-1.5 p-3 sm:gap-2 sm:p-4" };
|
|
8162
|
+
const _hoisted_21$d = { class: "propeller-cluster-card__sku font-mono text-xs text-foreground-subtle" };
|
|
8163
|
+
const _hoisted_22$d = ["href"];
|
|
8164
|
+
const _hoisted_23$d = {
|
|
8165
8165
|
key: 2,
|
|
8166
8166
|
class: "hidden md:block"
|
|
8167
8167
|
};
|
|
8168
|
-
const _hoisted_24$
|
|
8169
|
-
const _hoisted_25$
|
|
8170
|
-
const _hoisted_26$
|
|
8171
|
-
const _hoisted_27$
|
|
8168
|
+
const _hoisted_24$d = { class: "propeller-cluster-card__labels flex flex-col gap-0.5" };
|
|
8169
|
+
const _hoisted_25$d = { class: "propeller-cluster-card__manufacturer text-xs text-muted-foreground" };
|
|
8170
|
+
const _hoisted_26$d = { class: "propeller-cluster-card__description line-clamp-2 text-xs text-muted-foreground" };
|
|
8171
|
+
const _hoisted_27$d = {
|
|
8172
8172
|
key: 6,
|
|
8173
8173
|
class: "mt-auto hidden md:block"
|
|
8174
8174
|
};
|
|
@@ -8552,13 +8552,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8552
8552
|
])
|
|
8553
8553
|
], 64)) : createCommentVNode("", true),
|
|
8554
8554
|
!isRow() ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
8555
|
-
createElementVNode("div", _hoisted_20$
|
|
8555
|
+
createElementVNode("div", _hoisted_20$e, [
|
|
8556
8556
|
__props.showSku !== false && !!getClusterSku$1() ? renderSlot(_ctx.$slots, "sku", {
|
|
8557
8557
|
key: 0,
|
|
8558
8558
|
cluster: __props.cluster,
|
|
8559
8559
|
sku: getClusterSku$1()
|
|
8560
8560
|
}, () => [
|
|
8561
|
-
createElementVNode("div", _hoisted_21$
|
|
8561
|
+
createElementVNode("div", _hoisted_21$d, toDisplayString(getClusterSku$1()), 1)
|
|
8562
8562
|
]) : createCommentVNode("", true),
|
|
8563
8563
|
__props.showName !== false ? renderSlot(_ctx.$slots, getClusterName(), {
|
|
8564
8564
|
key: 1,
|
|
@@ -8571,9 +8571,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8571
8571
|
class: "propeller-cluster-card__title text-sm font-medium leading-tight text-foreground transition-colors hover:text-primary line-clamp-2",
|
|
8572
8572
|
href: getClusterUrl(),
|
|
8573
8573
|
onClick: _cache[4] || (_cache[4] = async (e) => handleClusterClick(e))
|
|
8574
|
-
}, toDisplayString(getClusterName()), 9, _hoisted_22$
|
|
8574
|
+
}, toDisplayString(getClusterName()), 9, _hoisted_22$d)
|
|
8575
8575
|
]) : createCommentVNode("", true),
|
|
8576
|
-
__props.showStock && !!__props.cluster.defaultProduct?.inventory ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
8576
|
+
__props.showStock && !!__props.cluster.defaultProduct?.inventory ? (openBlock(), createElementBlock("div", _hoisted_23$d, [
|
|
8577
8577
|
renderSlot(_ctx.$slots, "stock", {
|
|
8578
8578
|
cluster: __props.cluster,
|
|
8579
8579
|
inventory: __props.cluster.defaultProduct?.inventory,
|
|
@@ -8600,7 +8600,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8600
8600
|
cluster: __props.cluster,
|
|
8601
8601
|
values: computedTextLabels()
|
|
8602
8602
|
}, () => [
|
|
8603
|
-
createElementVNode("div", _hoisted_24$
|
|
8603
|
+
createElementVNode("div", _hoisted_24$d, [
|
|
8604
8604
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedTextLabels(), (item, index) => {
|
|
8605
8605
|
return openBlock(), createElementBlock("div", {
|
|
8606
8606
|
key: index,
|
|
@@ -8614,16 +8614,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8614
8614
|
cluster: __props.cluster,
|
|
8615
8615
|
manufacturer: getClusterManufacturer()
|
|
8616
8616
|
}, () => [
|
|
8617
|
-
createElementVNode("div", _hoisted_25$
|
|
8617
|
+
createElementVNode("div", _hoisted_25$d, toDisplayString(getClusterManufacturer()), 1)
|
|
8618
8618
|
]) : createCommentVNode("", true),
|
|
8619
8619
|
__props.showShortDescription && !!getClusterShortDescription() ? renderSlot(_ctx.$slots, "shortDescription", {
|
|
8620
8620
|
key: 5,
|
|
8621
8621
|
cluster: __props.cluster,
|
|
8622
8622
|
text: getClusterShortDescription()
|
|
8623
8623
|
}, () => [
|
|
8624
|
-
createElementVNode("p", _hoisted_26$
|
|
8624
|
+
createElementVNode("p", _hoisted_26$d, toDisplayString(getClusterShortDescription()), 1)
|
|
8625
8625
|
]) : createCommentVNode("", true),
|
|
8626
|
-
!!getClusterPrice() ? (openBlock(), createElementBlock("div", _hoisted_27$
|
|
8626
|
+
!!getClusterPrice() ? (openBlock(), createElementBlock("div", _hoisted_27$d, [
|
|
8627
8627
|
renderSlot(_ctx.$slots, "price", {
|
|
8628
8628
|
cluster: __props.cluster,
|
|
8629
8629
|
price: __props.cluster.defaultProduct?.price,
|
|
@@ -9931,7 +9931,7 @@ const _hoisted_17$g = {
|
|
|
9931
9931
|
};
|
|
9932
9932
|
const _hoisted_18$e = { class: "propeller-favorite-list-item__price text-base font-bold text-foreground whitespace-nowrap flex-shrink-0" };
|
|
9933
9933
|
const _hoisted_19$e = ["href"];
|
|
9934
|
-
const _hoisted_20$
|
|
9934
|
+
const _hoisted_20$d = ["title"];
|
|
9935
9935
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
9936
9936
|
__name: "FavoriteListItem",
|
|
9937
9937
|
props: {
|
|
@@ -10214,7 +10214,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
10214
10214
|
createElementVNode("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
|
|
10215
10215
|
createElementVNode("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
|
|
10216
10216
|
], -1)
|
|
10217
|
-
])], 8, _hoisted_20$
|
|
10217
|
+
])], 8, _hoisted_20$d)) : createCommentVNode("", true)
|
|
10218
10218
|
])
|
|
10219
10219
|
])
|
|
10220
10220
|
], 10, _hoisted_1$t);
|
|
@@ -10421,14 +10421,14 @@ const _hoisted_19$d = {
|
|
|
10421
10421
|
for: "favorite-list-select-all-floating",
|
|
10422
10422
|
class: "text-sm font-medium cursor-pointer select-none"
|
|
10423
10423
|
};
|
|
10424
|
-
const _hoisted_20$
|
|
10425
|
-
const _hoisted_21$
|
|
10426
|
-
const _hoisted_22$
|
|
10427
|
-
const _hoisted_23$
|
|
10428
|
-
const _hoisted_24$
|
|
10429
|
-
const _hoisted_25$
|
|
10430
|
-
const _hoisted_26$
|
|
10431
|
-
const _hoisted_27$
|
|
10424
|
+
const _hoisted_20$c = { class: "propeller-favorite-list-details__floating-bar-count text-sm text-foreground-subtle ml-3" };
|
|
10425
|
+
const _hoisted_21$c = { class: "propeller-favorite-list-details__floating-bar-actions flex items-center gap-3" };
|
|
10426
|
+
const _hoisted_22$c = ["disabled"];
|
|
10427
|
+
const _hoisted_23$c = ["disabled"];
|
|
10428
|
+
const _hoisted_24$c = { class: "propeller-favorite-list-details__modal-header border-b border-border px-6 py-4" };
|
|
10429
|
+
const _hoisted_25$c = { class: "propeller-favorite-list-details__modal-title text-lg font-bold" };
|
|
10430
|
+
const _hoisted_26$c = { class: "propeller-favorite-list-details__modal-body px-6 py-4 space-y-4" };
|
|
10431
|
+
const _hoisted_27$c = { class: "propeller-favorite-list-details__search-input-wrapper relative" };
|
|
10432
10432
|
const _hoisted_28$b = ["placeholder", "value"];
|
|
10433
10433
|
const _hoisted_29$b = ["aria-label"];
|
|
10434
10434
|
const _hoisted_30$a = { class: "propeller-favorite-list-details__search-results max-h-80 overflow-y-auto" };
|
|
@@ -10959,15 +10959,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
10959
10959
|
onChange: _cache[2] || (_cache[2] = ($event) => togglePageSelectAll())
|
|
10960
10960
|
}, null, 40, _hoisted_18$d),
|
|
10961
10961
|
createElementVNode("label", _hoisted_19$d, toDisplayString(getLabel$1("selectAll", "Select all")), 1),
|
|
10962
|
-
createElementVNode("span", _hoisted_20$
|
|
10962
|
+
createElementVNode("span", _hoisted_20$c, toDisplayString(selectedIds.value.size) + " " + toDisplayString(getLabel$1("ofWord", "of")) + " " + toDisplayString(allItems.value.length) + " " + toDisplayString(getLabel$1("itemsSelected", "items selected")), 1)
|
|
10963
10963
|
]),
|
|
10964
|
-
createElementVNode("div", _hoisted_21$
|
|
10964
|
+
createElementVNode("div", _hoisted_21$c, [
|
|
10965
10965
|
createElementVNode("button", {
|
|
10966
10966
|
type: "button",
|
|
10967
10967
|
class: "propeller-favorite-list-details__bulk-remove-btn inline-flex items-center justify-center rounded-[var(--radius-control)] border border-border bg-transparent px-4 py-2 text-sm font-medium text-secondary transition-colors hover:bg-surface-hover disabled:opacity-50",
|
|
10968
10968
|
disabled: bulkBusy.value,
|
|
10969
10969
|
onClick: _cache[3] || (_cache[3] = ($event) => handleBulkRemove())
|
|
10970
|
-
}, toDisplayString(getLabel$1("removeFromList", "Remove from this list")), 9, _hoisted_22$
|
|
10970
|
+
}, toDisplayString(getLabel$1("removeFromList", "Remove from this list")), 9, _hoisted_22$c),
|
|
10971
10971
|
createElementVNode("button", {
|
|
10972
10972
|
type: "button",
|
|
10973
10973
|
class: "propeller-favorite-list-details__bulk-add-btn inline-flex items-center justify-center gap-2 rounded-[var(--radius-control)] bg-secondary px-6 py-2 text-sm font-medium text-secondary-foreground transition-colors hover:bg-secondary/90 disabled:opacity-50",
|
|
@@ -10998,7 +10998,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
10998
10998
|
createElementVNode("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })
|
|
10999
10999
|
], -1)),
|
|
11000
11000
|
createTextVNode(" " + toDisplayString(getLabel$1("addToCart", "Add to cart")), 1)
|
|
11001
|
-
], 8, _hoisted_23$
|
|
11001
|
+
], 8, _hoisted_23$c)
|
|
11002
11002
|
])
|
|
11003
11003
|
])
|
|
11004
11004
|
])) : createCommentVNode("", true),
|
|
@@ -11012,11 +11012,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
11012
11012
|
onClick: _cache[8] || (_cache[8] = withModifiers(() => {
|
|
11013
11013
|
}, ["stop"]))
|
|
11014
11014
|
}, [
|
|
11015
|
-
createElementVNode("div", _hoisted_24$
|
|
11016
|
-
createElementVNode("h2", _hoisted_25$
|
|
11015
|
+
createElementVNode("div", _hoisted_24$c, [
|
|
11016
|
+
createElementVNode("h2", _hoisted_25$c, toDisplayString(getLabel$1("addProductModalTitle", "Add product to list")), 1)
|
|
11017
11017
|
]),
|
|
11018
|
-
createElementVNode("div", _hoisted_26$
|
|
11019
|
-
createElementVNode("div", _hoisted_27$
|
|
11018
|
+
createElementVNode("div", _hoisted_26$c, [
|
|
11019
|
+
createElementVNode("div", _hoisted_27$c, [
|
|
11020
11020
|
_cache[14] || (_cache[14] = createElementVNode("svg", {
|
|
11021
11021
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11022
11022
|
width: "16",
|
|
@@ -11177,26 +11177,26 @@ const _hoisted_19$c = {
|
|
|
11177
11177
|
key: 0,
|
|
11178
11178
|
class: "propeller-favorite-lists__default-badge inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-primary/10 text-primary"
|
|
11179
11179
|
};
|
|
11180
|
-
const _hoisted_20$
|
|
11181
|
-
const _hoisted_21$
|
|
11180
|
+
const _hoisted_20$b = { class: "propeller-favorite-lists__meta flex items-center gap-4 text-sm text-muted-foreground" };
|
|
11181
|
+
const _hoisted_21$b = {
|
|
11182
11182
|
key: 0,
|
|
11183
11183
|
class: "flex items-center gap-1"
|
|
11184
11184
|
};
|
|
11185
|
-
const _hoisted_22$
|
|
11185
|
+
const _hoisted_22$b = {
|
|
11186
11186
|
key: 1,
|
|
11187
11187
|
class: "flex items-center gap-1"
|
|
11188
11188
|
};
|
|
11189
|
-
const _hoisted_23$
|
|
11189
|
+
const _hoisted_23$b = {
|
|
11190
11190
|
key: 0,
|
|
11191
11191
|
class: "propeller-favorite-lists__actions flex gap-2"
|
|
11192
11192
|
};
|
|
11193
|
-
const _hoisted_24$
|
|
11194
|
-
const _hoisted_25$
|
|
11195
|
-
const _hoisted_26$
|
|
11193
|
+
const _hoisted_24$b = ["title", "onClick"];
|
|
11194
|
+
const _hoisted_25$b = ["title", "onClick"];
|
|
11195
|
+
const _hoisted_26$b = {
|
|
11196
11196
|
key: 1,
|
|
11197
11197
|
class: "propeller-favorite-lists__empty border border-border rounded-[var(--radius-container)] p-12 text-center space-y-4"
|
|
11198
11198
|
};
|
|
11199
|
-
const _hoisted_27$
|
|
11199
|
+
const _hoisted_27$b = { class: "propeller-favorite-lists__empty-title text-lg font-medium" };
|
|
11200
11200
|
const _hoisted_28$a = { class: "propeller-favorite-lists__empty-message text-muted-foreground" };
|
|
11201
11201
|
const _hoisted_29$a = {
|
|
11202
11202
|
key: 3,
|
|
@@ -11451,8 +11451,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11451
11451
|
createElementVNode("span", _hoisted_18$c, toDisplayString(list.name), 1),
|
|
11452
11452
|
__props.showDefaultIndicator !== false && list.isDefault ? (openBlock(), createElementBlock("span", _hoisted_19$c, toDisplayString(getLabel$1("defaultBadge", "Default")), 1)) : createCommentVNode("", true)
|
|
11453
11453
|
]),
|
|
11454
|
-
createElementVNode("div", _hoisted_20$
|
|
11455
|
-
__props.showLastModified !== false ? (openBlock(), createElementBlock("div", _hoisted_21$
|
|
11454
|
+
createElementVNode("div", _hoisted_20$b, [
|
|
11455
|
+
__props.showLastModified !== false ? (openBlock(), createElementBlock("div", _hoisted_21$b, [
|
|
11456
11456
|
_cache[15] || (_cache[15] = createElementVNode("svg", {
|
|
11457
11457
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11458
11458
|
width: "16",
|
|
@@ -11493,7 +11493,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11493
11493
|
], -1)),
|
|
11494
11494
|
createTextVNode(toDisplayString(getLabel$1("lastModified", "Last modified")) + ": " + toDisplayString(formatDate(list.updatedAt)), 1)
|
|
11495
11495
|
])) : createCommentVNode("", true),
|
|
11496
|
-
__props.showItemsCount !== false ? (openBlock(), createElementBlock("div", _hoisted_22$
|
|
11496
|
+
__props.showItemsCount !== false ? (openBlock(), createElementBlock("div", _hoisted_22$b, [
|
|
11497
11497
|
_cache[16] || (_cache[16] = createElementVNode("svg", {
|
|
11498
11498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11499
11499
|
width: "16",
|
|
@@ -11520,7 +11520,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11520
11520
|
])
|
|
11521
11521
|
])) : createCommentVNode("", true)
|
|
11522
11522
|
]),
|
|
11523
|
-
__props.showActions !== false && unref(editingListId) !== String(list.id) ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
11523
|
+
__props.showActions !== false && unref(editingListId) !== String(list.id) ? (openBlock(), createElementBlock("div", _hoisted_23$b, [
|
|
11524
11524
|
createElementVNode("button", {
|
|
11525
11525
|
title: getLabel$1("editTooltip", "Edit"),
|
|
11526
11526
|
class: "propeller-favorite-lists__edit-btn h-8 w-8 p-0 inline-flex items-center justify-center rounded-[var(--radius-control)] text-muted-foreground hover:text-muted-foreground hover:bg-surface-hover",
|
|
@@ -11543,7 +11543,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11543
11543
|
createElementVNode("path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" }),
|
|
11544
11544
|
createElementVNode("path", { d: "m15 5 4 4" })
|
|
11545
11545
|
], -1)
|
|
11546
|
-
])], 8, _hoisted_24$
|
|
11546
|
+
])], 8, _hoisted_24$b),
|
|
11547
11547
|
createElementVNode("button", {
|
|
11548
11548
|
title: getLabel$1("deleteTooltip", "Delete"),
|
|
11549
11549
|
class: "propeller-favorite-lists__delete-btn h-8 w-8 p-0 inline-flex items-center justify-center rounded-[var(--radius-control)] text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
@@ -11567,13 +11567,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11567
11567
|
createElementVNode("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
|
|
11568
11568
|
createElementVNode("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
|
|
11569
11569
|
], -1)
|
|
11570
|
-
])], 8, _hoisted_25$
|
|
11570
|
+
])], 8, _hoisted_25$b)
|
|
11571
11571
|
])) : createCommentVNode("", true)
|
|
11572
11572
|
])
|
|
11573
11573
|
], 10, _hoisted_5$n);
|
|
11574
11574
|
}), 128))
|
|
11575
11575
|
])) : createCommentVNode("", true),
|
|
11576
|
-
displayedLists.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_26$
|
|
11576
|
+
displayedLists.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_26$b, [
|
|
11577
11577
|
_cache[19] || (_cache[19] = createElementVNode("div", { class: "propeller-favorite-lists__empty-icon-wrapper bg-surface-hover p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto" }, [
|
|
11578
11578
|
createElementVNode("svg", {
|
|
11579
11579
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11591,7 +11591,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11591
11591
|
])
|
|
11592
11592
|
], -1)),
|
|
11593
11593
|
createElementVNode("div", null, [
|
|
11594
|
-
createElementVNode("p", _hoisted_27$
|
|
11594
|
+
createElementVNode("p", _hoisted_27$b, toDisplayString(getLabel$1("noLists", "No favorite lists")), 1),
|
|
11595
11595
|
createElementVNode("p", _hoisted_28$a, toDisplayString(getLabel$1(
|
|
11596
11596
|
"noListsDescription",
|
|
11597
11597
|
"Start by creating a new list to save your items."
|
|
@@ -12735,29 +12735,29 @@ const _hoisted_16$b = {
|
|
|
12735
12735
|
const _hoisted_17$b = { class: "propeller-items-overview__item-qty flex items-center text-xs text-foreground-subtle mt-1" };
|
|
12736
12736
|
const _hoisted_18$a = { class: "flex justify-between items-start gap-2" };
|
|
12737
12737
|
const _hoisted_19$a = ["onClick"];
|
|
12738
|
-
const _hoisted_20$
|
|
12738
|
+
const _hoisted_20$a = {
|
|
12739
12739
|
key: 1,
|
|
12740
12740
|
class: "propeller-items-overview__item-title font-medium text-sm leading-tight line-clamp-2"
|
|
12741
12741
|
};
|
|
12742
|
-
const _hoisted_21$
|
|
12742
|
+
const _hoisted_21$a = {
|
|
12743
12743
|
key: 2,
|
|
12744
12744
|
class: "propeller-items-overview__item-price font-semibold text-sm text-foreground whitespace-nowrap"
|
|
12745
12745
|
};
|
|
12746
|
-
const _hoisted_22$
|
|
12746
|
+
const _hoisted_22$a = {
|
|
12747
12747
|
key: 0,
|
|
12748
12748
|
class: "propeller-items-overview__item-sku text-xs text-muted-foreground mt-0.5"
|
|
12749
12749
|
};
|
|
12750
|
-
const _hoisted_23$
|
|
12750
|
+
const _hoisted_23$a = {
|
|
12751
12751
|
key: 1,
|
|
12752
12752
|
class: "propeller-items-overview__item-surcharges mt-1 text-xs text-muted-foreground"
|
|
12753
12753
|
};
|
|
12754
|
-
const _hoisted_24$
|
|
12755
|
-
const _hoisted_25$
|
|
12756
|
-
const _hoisted_26$
|
|
12754
|
+
const _hoisted_24$a = { class: "font-medium" };
|
|
12755
|
+
const _hoisted_25$a = { class: "propeller-items-overview__item-surcharges-list mt-0.5" };
|
|
12756
|
+
const _hoisted_26$a = {
|
|
12757
12757
|
key: 2,
|
|
12758
12758
|
class: "propeller-items-overview__item-options mt-1.5 space-y-1 border-l-2 border-border-subtle pl-2"
|
|
12759
12759
|
};
|
|
12760
|
-
const _hoisted_27$
|
|
12760
|
+
const _hoisted_27$a = { class: "line-clamp-1" };
|
|
12761
12761
|
const _hoisted_28$9 = { class: "text-foreground-subtle whitespace-nowrap ml-2" };
|
|
12762
12762
|
const _hoisted_29$9 = { class: "propeller-items-overview__item-qty flex items-center text-xs text-foreground-subtle mt-1" };
|
|
12763
12763
|
const _hoisted_30$8 = ["data-in-stock"];
|
|
@@ -12969,13 +12969,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
12969
12969
|
class: "propeller-items-overview__item-title font-medium text-sm leading-tight cursor-pointer hover:text-secondary transition-colors line-clamp-2",
|
|
12970
12970
|
onClick: async (event) => handleItemNameClick(item)
|
|
12971
12971
|
}, toDisplayString(getItemName(item)), 9, _hoisted_19$a)) : createCommentVNode("", true),
|
|
12972
|
-
!itemNameClickable.value ? (openBlock(), createElementBlock("p", _hoisted_20$
|
|
12973
|
-
showPrice.value ? (openBlock(), createElementBlock("span", _hoisted_21$
|
|
12972
|
+
!itemNameClickable.value ? (openBlock(), createElementBlock("p", _hoisted_20$a, toDisplayString(getItemName(item)), 1)) : createCommentVNode("", true),
|
|
12973
|
+
showPrice.value ? (openBlock(), createElementBlock("span", _hoisted_21$a, toDisplayString(formatItemPrice(getItemTotalPrice(item))), 1)) : createCommentVNode("", true)
|
|
12974
12974
|
]),
|
|
12975
|
-
showSku.value && getItemSku(item) ? (openBlock(), createElementBlock("p", _hoisted_22$
|
|
12976
|
-
getItemSurcharges(item).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
12977
|
-
createElementVNode("span", _hoisted_24$
|
|
12978
|
-
createElementVNode("ul", _hoisted_25$
|
|
12975
|
+
showSku.value && getItemSku(item) ? (openBlock(), createElementBlock("p", _hoisted_22$a, " SKU: " + toDisplayString(getItemSku(item)), 1)) : createCommentVNode("", true),
|
|
12976
|
+
getItemSurcharges(item).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_23$a, [
|
|
12977
|
+
createElementVNode("span", _hoisted_24$a, toDisplayString(getLabel$1("surcharges", "Additional surcharges:")), 1),
|
|
12978
|
+
createElementVNode("ul", _hoisted_25$a, [
|
|
12979
12979
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getItemSurcharges(item), (line, idx) => {
|
|
12980
12980
|
return openBlock(), createElementBlock("li", {
|
|
12981
12981
|
key: idx,
|
|
@@ -12984,13 +12984,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
12984
12984
|
}), 128))
|
|
12985
12985
|
])
|
|
12986
12986
|
])) : createCommentVNode("", true),
|
|
12987
|
-
getItemChildItems(item).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_26$
|
|
12987
|
+
getItemChildItems(item).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_26$a, [
|
|
12988
12988
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getItemChildItems(item), (child, idx) => {
|
|
12989
12989
|
return openBlock(), createElementBlock("div", {
|
|
12990
12990
|
key: idx,
|
|
12991
12991
|
class: "propeller-items-overview__item-option flex justify-between items-center text-xs text-muted-foreground"
|
|
12992
12992
|
}, [
|
|
12993
|
-
createElementVNode("span", _hoisted_27$
|
|
12993
|
+
createElementVNode("span", _hoisted_27$a, toDisplayString(child.product?.names?.[0]?.value || "Option"), 1),
|
|
12994
12994
|
createElementVNode("span", _hoisted_28$9, toDisplayString(formatItemPrice(child.totalSum || 0)), 1)
|
|
12995
12995
|
]);
|
|
12996
12996
|
}), 128))
|
|
@@ -13065,18 +13065,18 @@ const _hoisted_16$a = {
|
|
|
13065
13065
|
const _hoisted_17$a = ["href", "onClick"];
|
|
13066
13066
|
const _hoisted_18$9 = { class: "propeller-menu__label" };
|
|
13067
13067
|
const _hoisted_19$9 = { class: "propeller-menu__tabs flex items-center border-b border-border" };
|
|
13068
|
-
const _hoisted_20$
|
|
13069
|
-
const _hoisted_21$
|
|
13070
|
-
const _hoisted_22$
|
|
13071
|
-
const _hoisted_23$
|
|
13072
|
-
const _hoisted_24$
|
|
13073
|
-
const _hoisted_25$
|
|
13074
|
-
const _hoisted_26$
|
|
13068
|
+
const _hoisted_20$9 = ["data-active", "onMouseenter", "onClick"];
|
|
13069
|
+
const _hoisted_21$9 = { class: "propeller-menu__label" };
|
|
13070
|
+
const _hoisted_22$9 = ["onMouseenter"];
|
|
13071
|
+
const _hoisted_23$9 = { class: "propeller-menu__panel-grid grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6" };
|
|
13072
|
+
const _hoisted_24$9 = ["href", "onClick"];
|
|
13073
|
+
const _hoisted_25$9 = { class: "propeller-menu__label" };
|
|
13074
|
+
const _hoisted_26$9 = {
|
|
13075
13075
|
key: 0,
|
|
13076
13076
|
class: "propeller-menu__list mt-2 space-y-1",
|
|
13077
13077
|
"data-level": "3"
|
|
13078
13078
|
};
|
|
13079
|
-
const _hoisted_27$
|
|
13079
|
+
const _hoisted_27$9 = ["href", "onClick"];
|
|
13080
13080
|
const _hoisted_28$8 = { class: "propeller-menu__label" };
|
|
13081
13081
|
const _hoisted_29$8 = {
|
|
13082
13082
|
class: "propeller-menu__list divide-y divide-border",
|
|
@@ -13313,8 +13313,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13313
13313
|
onClick: async (e) => handleItemClick(l1, e),
|
|
13314
13314
|
class: normalizeClass(`propeller-menu__tab px-5 py-3 text-sm font-medium transition-colors border-b-2 ${hoveredL1Id.value === l1.categoryId ? "border-primary text-primary" : "border-transparent text-foreground hover:text-primary hover:border-primary/50"}`)
|
|
13315
13315
|
}, [
|
|
13316
|
-
createElementVNode("span", _hoisted_21$
|
|
13317
|
-
], 42, _hoisted_20$
|
|
13316
|
+
createElementVNode("span", _hoisted_21$9, toDisplayString(getCategoryName(l1)), 1)
|
|
13317
|
+
], 42, _hoisted_20$9);
|
|
13318
13318
|
}), 128))
|
|
13319
13319
|
]),
|
|
13320
13320
|
(openBlock(true), createElementBlock(Fragment, null, renderList(menuCategories.value, (l1, idx) => {
|
|
@@ -13325,7 +13325,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13325
13325
|
onMouseenter: async (event) => setHoveredL1(l1.categoryId),
|
|
13326
13326
|
onMouseleave: _cache[0] || (_cache[0] = async (event) => setHoveredL1(null))
|
|
13327
13327
|
}, [
|
|
13328
|
-
createElementVNode("div", _hoisted_23$
|
|
13328
|
+
createElementVNode("div", _hoisted_23$9, [
|
|
13329
13329
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getSubCategories(l1), (l2, idx2) => {
|
|
13330
13330
|
return openBlock(), createElementBlock("div", {
|
|
13331
13331
|
key: `l2-${l2.categoryId}-${idx2}`,
|
|
@@ -13337,9 +13337,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13337
13337
|
href: getCategoryUrl(l2),
|
|
13338
13338
|
onClick: async (e) => handleItemClick(l2, e)
|
|
13339
13339
|
}, [
|
|
13340
|
-
createElementVNode("span", _hoisted_25$
|
|
13341
|
-
], 8, _hoisted_24$
|
|
13342
|
-
getSubCategories(l2).length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_26$
|
|
13340
|
+
createElementVNode("span", _hoisted_25$9, toDisplayString(getCategoryName(l2)), 1)
|
|
13341
|
+
], 8, _hoisted_24$9),
|
|
13342
|
+
getSubCategories(l2).length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_26$9, [
|
|
13343
13343
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getSubCategories(l2), (l3, idx3) => {
|
|
13344
13344
|
return openBlock(), createElementBlock("li", {
|
|
13345
13345
|
key: `l3-${l3.categoryId}-${idx3}`,
|
|
@@ -13352,14 +13352,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13352
13352
|
onClick: async (e) => handleItemClick(l3, e)
|
|
13353
13353
|
}, [
|
|
13354
13354
|
createElementVNode("span", _hoisted_28$8, toDisplayString(getCategoryName(l3)), 1)
|
|
13355
|
-
], 8, _hoisted_27$
|
|
13355
|
+
], 8, _hoisted_27$9)
|
|
13356
13356
|
]);
|
|
13357
13357
|
}), 128))
|
|
13358
13358
|
])) : createCommentVNode("", true)
|
|
13359
13359
|
]);
|
|
13360
13360
|
}), 128))
|
|
13361
13361
|
])
|
|
13362
|
-
], 40, _hoisted_22$
|
|
13362
|
+
], 40, _hoisted_22$9)) : createCommentVNode("", true)
|
|
13363
13363
|
], 64);
|
|
13364
13364
|
}), 128))
|
|
13365
13365
|
], 2)) : createCommentVNode("", true),
|
|
@@ -13739,17 +13739,17 @@ const _hoisted_17$9 = {
|
|
|
13739
13739
|
};
|
|
13740
13740
|
const _hoisted_18$8 = ["value"];
|
|
13741
13741
|
const _hoisted_19$8 = { value: "" };
|
|
13742
|
-
const _hoisted_20$
|
|
13743
|
-
const _hoisted_21$
|
|
13744
|
-
const _hoisted_22$
|
|
13745
|
-
const _hoisted_23$
|
|
13746
|
-
const _hoisted_24$
|
|
13742
|
+
const _hoisted_20$8 = ["value"];
|
|
13743
|
+
const _hoisted_21$8 = ["value"];
|
|
13744
|
+
const _hoisted_22$8 = { value: "" };
|
|
13745
|
+
const _hoisted_23$8 = ["value"];
|
|
13746
|
+
const _hoisted_24$8 = {
|
|
13747
13747
|
key: 4,
|
|
13748
13748
|
class: "flex space-x-2"
|
|
13749
13749
|
};
|
|
13750
|
-
const _hoisted_25$
|
|
13751
|
-
const _hoisted_26$
|
|
13752
|
-
const _hoisted_27$
|
|
13750
|
+
const _hoisted_25$8 = ["value"];
|
|
13751
|
+
const _hoisted_26$8 = { value: "" };
|
|
13752
|
+
const _hoisted_27$8 = ["value"];
|
|
13753
13753
|
const _hoisted_28$7 = { class: "propeller-order-list__filter-actions flex justify-end space-x-2" };
|
|
13754
13754
|
const _hoisted_29$7 = {
|
|
13755
13755
|
key: 0,
|
|
@@ -14095,7 +14095,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14095
14095
|
return openBlock(), createElementBlock("option", {
|
|
14096
14096
|
key: sortField,
|
|
14097
14097
|
value: sortField
|
|
14098
|
-
}, toDisplayString(getLabel$1(sortField, sortField)), 9, _hoisted_20$
|
|
14098
|
+
}, toDisplayString(getLabel$1(sortField, sortField)), 9, _hoisted_20$8);
|
|
14099
14099
|
}), 128))
|
|
14100
14100
|
], 40, _hoisted_18$8),
|
|
14101
14101
|
createElementVNode("select", {
|
|
@@ -14112,16 +14112,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14112
14112
|
};
|
|
14113
14113
|
})
|
|
14114
14114
|
}, [
|
|
14115
|
-
createElementVNode("option", _hoisted_22$
|
|
14115
|
+
createElementVNode("option", _hoisted_22$8, toDisplayString(getLabel$1("sortOrderOption", "Order")), 1),
|
|
14116
14116
|
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(SortOrder)), (order, index2) => {
|
|
14117
14117
|
return openBlock(), createElementBlock("option", {
|
|
14118
14118
|
key: order,
|
|
14119
14119
|
value: order
|
|
14120
|
-
}, toDisplayString(getLabel$1(order, order)), 9, _hoisted_23$
|
|
14120
|
+
}, toDisplayString(getLabel$1(order, order)), 9, _hoisted_23$8);
|
|
14121
14121
|
}), 128))
|
|
14122
|
-
], 40, _hoisted_21$
|
|
14122
|
+
], 40, _hoisted_21$8)
|
|
14123
14123
|
])) : createCommentVNode("", true),
|
|
14124
|
-
field === "type" ? (openBlock(), createElementBlock("div", _hoisted_24$
|
|
14124
|
+
field === "type" ? (openBlock(), createElementBlock("div", _hoisted_24$8, [
|
|
14125
14125
|
createElementVNode("select", {
|
|
14126
14126
|
class: "propeller-order-list__filter-input block w-full rounded-[var(--radius-control)] border-input shadow-sm focus:border-primary focus:ring-primary sm:text-sm p-2 border",
|
|
14127
14127
|
value: unref(searchForm).type || "",
|
|
@@ -14132,14 +14132,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14132
14132
|
};
|
|
14133
14133
|
})
|
|
14134
14134
|
}, [
|
|
14135
|
-
createElementVNode("option", _hoisted_26$
|
|
14135
|
+
createElementVNode("option", _hoisted_26$8, toDisplayString(getLabel$1("typeOption", "Type")), 1),
|
|
14136
14136
|
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(OrderType)), (type, index2) => {
|
|
14137
14137
|
return openBlock(), createElementBlock("option", {
|
|
14138
14138
|
key: type,
|
|
14139
14139
|
value: type
|
|
14140
|
-
}, toDisplayString(getLabel$1(type, type)), 9, _hoisted_27$
|
|
14140
|
+
}, toDisplayString(getLabel$1(type, type)), 9, _hoisted_27$8);
|
|
14141
14141
|
}), 128))
|
|
14142
|
-
], 40, _hoisted_25$
|
|
14142
|
+
], 40, _hoisted_25$8)
|
|
14143
14143
|
])) : createCommentVNode("", true)
|
|
14144
14144
|
]);
|
|
14145
14145
|
}), 128))
|
|
@@ -14305,20 +14305,20 @@ const _hoisted_16$8 = { class: "px-4 py-3 text-muted-foreground" };
|
|
|
14305
14305
|
const _hoisted_17$8 = { class: "px-4 py-3 text-muted-foreground" };
|
|
14306
14306
|
const _hoisted_18$7 = { class: "px-4 py-3 text-right" };
|
|
14307
14307
|
const _hoisted_19$7 = ["onClick"];
|
|
14308
|
-
const _hoisted_20$
|
|
14309
|
-
const _hoisted_21$
|
|
14310
|
-
const _hoisted_22$
|
|
14308
|
+
const _hoisted_20$7 = { class: "flex items-center justify-between px-6 py-4 border-b" };
|
|
14309
|
+
const _hoisted_21$7 = { class: "text-lg font-semibold" };
|
|
14310
|
+
const _hoisted_22$7 = {
|
|
14311
14311
|
fill: "none",
|
|
14312
14312
|
viewBox: "0 0 24 24",
|
|
14313
14313
|
stroke: "currentColor",
|
|
14314
14314
|
class: "h-5 w-5",
|
|
14315
14315
|
strokeWidth: 2
|
|
14316
14316
|
};
|
|
14317
|
-
const _hoisted_23$
|
|
14318
|
-
const _hoisted_24$
|
|
14319
|
-
const _hoisted_25$
|
|
14320
|
-
const _hoisted_26$
|
|
14321
|
-
const _hoisted_27$
|
|
14317
|
+
const _hoisted_23$7 = { class: "px-6 py-4 space-y-4" };
|
|
14318
|
+
const _hoisted_24$7 = { class: "grid grid-cols-2 gap-4 text-sm" };
|
|
14319
|
+
const _hoisted_25$7 = { class: "font-medium text-muted-foreground" };
|
|
14320
|
+
const _hoisted_26$7 = { class: "mt-0.5" };
|
|
14321
|
+
const _hoisted_27$7 = {
|
|
14322
14322
|
key: 0,
|
|
14323
14323
|
class: "propeller-order-shipments__status inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-primary/10 text-primary"
|
|
14324
14324
|
};
|
|
@@ -14451,14 +14451,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14451
14451
|
class: "propeller-order-shipments__modal-content relative z-10 w-full max-w-2xl max-h-[80vh] overflow-y-auto bg-card rounded-[var(--radius-container)] shadow-xl",
|
|
14452
14452
|
onClick: _cache[2] || (_cache[2] = async (e) => e.stopPropagation())
|
|
14453
14453
|
}, [
|
|
14454
|
-
createElementVNode("div", _hoisted_20$
|
|
14455
|
-
createElementVNode("h3", _hoisted_21$
|
|
14454
|
+
createElementVNode("div", _hoisted_20$7, [
|
|
14455
|
+
createElementVNode("h3", _hoisted_21$7, toDisplayString(getLabel$1("modalTitle", "Shipment details")), 1),
|
|
14456
14456
|
createElementVNode("button", {
|
|
14457
14457
|
type: "button",
|
|
14458
14458
|
class: "text-muted-foreground hover:text-foreground transition-colors",
|
|
14459
14459
|
onClick: _cache[0] || (_cache[0] = async (event) => closeModal())
|
|
14460
14460
|
}, [
|
|
14461
|
-
(openBlock(), createElementBlock("svg", _hoisted_22$
|
|
14461
|
+
(openBlock(), createElementBlock("svg", _hoisted_22$7, [..._cache[4] || (_cache[4] = [
|
|
14462
14462
|
createElementVNode("path", {
|
|
14463
14463
|
strokeLinecap: "round",
|
|
14464
14464
|
strokeLinejoin: "round",
|
|
@@ -14467,12 +14467,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14467
14467
|
])]))
|
|
14468
14468
|
])
|
|
14469
14469
|
]),
|
|
14470
|
-
createElementVNode("div", _hoisted_23$
|
|
14471
|
-
createElementVNode("div", _hoisted_24$
|
|
14470
|
+
createElementVNode("div", _hoisted_23$7, [
|
|
14471
|
+
createElementVNode("div", _hoisted_24$7, [
|
|
14472
14472
|
createElementVNode("div", null, [
|
|
14473
|
-
createElementVNode("span", _hoisted_25$
|
|
14474
|
-
createElementVNode("p", _hoisted_26$
|
|
14475
|
-
!!activeShipment.value?.status ? (openBlock(), createElementBlock("span", _hoisted_27$
|
|
14473
|
+
createElementVNode("span", _hoisted_25$7, toDisplayString(getLabel$1("labelStatus", "Status")), 1),
|
|
14474
|
+
createElementVNode("p", _hoisted_26$7, [
|
|
14475
|
+
!!activeShipment.value?.status ? (openBlock(), createElementBlock("span", _hoisted_27$7, toDisplayString(activeShipment.value?.status), 1)) : createCommentVNode("", true),
|
|
14476
14476
|
!activeShipment.value?.status ? (openBlock(), createElementBlock("span", _hoisted_28$6, "-")) : createCommentVNode("", true)
|
|
14477
14477
|
])
|
|
14478
14478
|
]),
|
|
@@ -14699,20 +14699,20 @@ const _hoisted_19$6 = {
|
|
|
14699
14699
|
key: 0,
|
|
14700
14700
|
class: "propeller-product-bundles__original-price text-foreground-subtle line-through text-sm"
|
|
14701
14701
|
};
|
|
14702
|
-
const _hoisted_20$
|
|
14703
|
-
const _hoisted_21$
|
|
14704
|
-
const _hoisted_22$
|
|
14705
|
-
const _hoisted_23$
|
|
14702
|
+
const _hoisted_20$6 = { class: "flex items-baseline gap-2" };
|
|
14703
|
+
const _hoisted_21$6 = { class: "propeller-product-bundles__price text-2xl font-bold text-foreground" };
|
|
14704
|
+
const _hoisted_22$6 = { class: "text-xs text-muted-foreground" };
|
|
14705
|
+
const _hoisted_23$6 = {
|
|
14706
14706
|
key: 1,
|
|
14707
14707
|
class: "propeller-product-bundles__savings mt-2 inline-block bg-success/10 text-success text-sm font-medium px-3 py-1 rounded-[var(--radius-control)]"
|
|
14708
14708
|
};
|
|
14709
|
-
const _hoisted_24$
|
|
14710
|
-
const _hoisted_25$
|
|
14709
|
+
const _hoisted_24$6 = ["onClick", "disabled", "data-loading"];
|
|
14710
|
+
const _hoisted_25$6 = {
|
|
14711
14711
|
key: 3,
|
|
14712
14712
|
class: "propeller-product-bundles__login-prompt text-center text-sm text-muted-foreground py-2"
|
|
14713
14713
|
};
|
|
14714
|
-
const _hoisted_26$
|
|
14715
|
-
const _hoisted_27$
|
|
14714
|
+
const _hoisted_26$6 = ["data-toast-type"];
|
|
14715
|
+
const _hoisted_27$6 = {
|
|
14716
14716
|
key: 0,
|
|
14717
14717
|
fill: "none",
|
|
14718
14718
|
viewBox: "0 0 24 24",
|
|
@@ -15019,9 +15019,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15019
15019
|
!getHidePrices() ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15020
15020
|
createElementVNode("div", _hoisted_18$6, [
|
|
15021
15021
|
hasDiscount(bundle) ? (openBlock(), createElementBlock("span", _hoisted_19$6, toDisplayString(formatPrice$1(getOriginalPrice(bundle))), 1)) : createCommentVNode("", true),
|
|
15022
|
-
createElementVNode("div", _hoisted_20$
|
|
15023
|
-
createElementVNode("span", _hoisted_21$
|
|
15024
|
-
createElementVNode("span", _hoisted_22$
|
|
15022
|
+
createElementVNode("div", _hoisted_20$6, [
|
|
15023
|
+
createElementVNode("span", _hoisted_21$6, toDisplayString(formatPrice$1(getBundlePrice(bundle))), 1),
|
|
15024
|
+
createElementVNode("span", _hoisted_22$6, [
|
|
15025
15025
|
getIncludeTax() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15026
15026
|
createTextVNode(toDisplayString(getLabel$1("inclTax", "incl. VAT")), 1)
|
|
15027
15027
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -15029,7 +15029,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15029
15029
|
], 64))
|
|
15030
15030
|
])
|
|
15031
15031
|
]),
|
|
15032
|
-
hasDiscount(bundle) ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
15032
|
+
hasDiscount(bundle) ? (openBlock(), createElementBlock("div", _hoisted_23$6, toDisplayString(getLabel$1("youSave", "Your savings: ")) + toDisplayString(formatPrice$1(
|
|
15033
15033
|
getOriginalPrice(bundle) - getBundlePrice(bundle)
|
|
15034
15034
|
)), 1)) : createCommentVNode("", true)
|
|
15035
15035
|
]),
|
|
@@ -15044,9 +15044,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15044
15044
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
15045
15045
|
createTextVNode(toDisplayString(getLabel$1("addToCart", "In cart")), 1)
|
|
15046
15046
|
], 64))
|
|
15047
|
-
], 8, _hoisted_24$
|
|
15047
|
+
], 8, _hoisted_24$6)
|
|
15048
15048
|
], 64)) : createCommentVNode("", true),
|
|
15049
|
-
getHidePrices() ? (openBlock(), createElementBlock("div", _hoisted_25$
|
|
15049
|
+
getHidePrices() ? (openBlock(), createElementBlock("div", _hoisted_25$6, toDisplayString(getLabel$1(
|
|
15050
15050
|
"loginToSeePrices",
|
|
15051
15051
|
"Log in to see prices and add to cart"
|
|
15052
15052
|
)), 1)) : createCommentVNode("", true)
|
|
@@ -15062,7 +15062,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15062
15062
|
createElementVNode("div", {
|
|
15063
15063
|
class: normalizeClass(`propeller-product-bundles__toast-icon flex-shrink-0 w-5 h-5 mt-0.5 ${toastType.value === "success" ? "text-success-foreground" : "text-destructive-foreground"}`)
|
|
15064
15064
|
}, [
|
|
15065
|
-
toastType.value === "success" ? (openBlock(), createElementBlock("svg", _hoisted_27$
|
|
15065
|
+
toastType.value === "success" ? (openBlock(), createElementBlock("svg", _hoisted_27$6, [..._cache[7] || (_cache[7] = [
|
|
15066
15066
|
createElementVNode("path", {
|
|
15067
15067
|
strokeLinecap: "round",
|
|
15068
15068
|
strokeLinejoin: "round",
|
|
@@ -15093,7 +15093,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15093
15093
|
}, null, -1)
|
|
15094
15094
|
])]))
|
|
15095
15095
|
], 2)
|
|
15096
|
-
], 10, _hoisted_26$
|
|
15096
|
+
], 10, _hoisted_26$6)) : createCommentVNode("", true),
|
|
15097
15097
|
modalVisible.value ? (openBlock(), createElementBlock("div", _hoisted_30$4, [
|
|
15098
15098
|
createElementVNode("div", {
|
|
15099
15099
|
class: "propeller-product-bundles__modal-backdrop fixed inset-0 bg-foreground/20",
|
|
@@ -15206,23 +15206,23 @@ const _hoisted_16$6 = { class: "propeller-product-card__price" };
|
|
|
15206
15206
|
const _hoisted_17$6 = { class: "propeller-product-card__cta w-full md:w-auto md:flex-shrink-0 md:ml-auto" };
|
|
15207
15207
|
const _hoisted_18$5 = { class: "propeller-product-card__body flex flex-1 flex-col gap-1.5 p-3 sm:gap-2 sm:p-4" };
|
|
15208
15208
|
const _hoisted_19$5 = { class: "propeller-product-card__sku font-mono text-xs text-foreground-subtle" };
|
|
15209
|
-
const _hoisted_20$
|
|
15209
|
+
const _hoisted_20$5 = {
|
|
15210
15210
|
key: 0,
|
|
15211
15211
|
class: "propeller-product-card__below-name"
|
|
15212
15212
|
};
|
|
15213
|
-
const _hoisted_21$
|
|
15214
|
-
const _hoisted_22$
|
|
15213
|
+
const _hoisted_21$5 = { class: "propeller-product-card__labels flex flex-col gap-0.5" };
|
|
15214
|
+
const _hoisted_22$5 = {
|
|
15215
15215
|
key: 3,
|
|
15216
15216
|
class: "hidden md:block"
|
|
15217
15217
|
};
|
|
15218
|
-
const _hoisted_23$
|
|
15219
|
-
const _hoisted_24$
|
|
15220
|
-
const _hoisted_25$
|
|
15218
|
+
const _hoisted_23$5 = { class: "propeller-product-card__manufacturer text-xs text-muted-foreground" };
|
|
15219
|
+
const _hoisted_24$5 = { class: "propeller-product-card__description line-clamp-2 text-xs text-muted-foreground" };
|
|
15220
|
+
const _hoisted_25$5 = {
|
|
15221
15221
|
key: 6,
|
|
15222
15222
|
class: "mt-auto hidden md:block"
|
|
15223
15223
|
};
|
|
15224
|
-
const _hoisted_26$
|
|
15225
|
-
const _hoisted_27$
|
|
15224
|
+
const _hoisted_26$5 = { class: "propeller-product-card__price pt-1" };
|
|
15225
|
+
const _hoisted_27$5 = {
|
|
15226
15226
|
key: 0,
|
|
15227
15227
|
class: "propeller-product-card__footer-meta flex flex-wrap items-center justify-between gap-x-2 gap-y-1 px-3 pt-1 sm:px-4 md:hidden"
|
|
15228
15228
|
};
|
|
@@ -15672,7 +15672,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15672
15672
|
}, toDisplayString(getProductName()), 1)
|
|
15673
15673
|
]) : createCommentVNode("", true),
|
|
15674
15674
|
renderSlot(_ctx.$slots, "belowName", { product: __props.product }, () => [
|
|
15675
|
-
BelowNameImpl.value ? (openBlock(), createElementBlock("div", _hoisted_20$
|
|
15675
|
+
BelowNameImpl.value ? (openBlock(), createElementBlock("div", _hoisted_20$5, [
|
|
15676
15676
|
(openBlock(), createBlock(resolveDynamicComponent(BelowNameImpl.value), { product: __props.product }, null, 8, ["product"]))
|
|
15677
15677
|
])) : createCommentVNode("", true)
|
|
15678
15678
|
]),
|
|
@@ -15681,7 +15681,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15681
15681
|
product: __props.product,
|
|
15682
15682
|
values: computedTextLabels()
|
|
15683
15683
|
}, () => [
|
|
15684
|
-
createElementVNode("div", _hoisted_21$
|
|
15684
|
+
createElementVNode("div", _hoisted_21$5, [
|
|
15685
15685
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedTextLabels(), (item, index) => {
|
|
15686
15686
|
return openBlock(), createElementBlock("div", {
|
|
15687
15687
|
key: index,
|
|
@@ -15690,7 +15690,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15690
15690
|
}), 128))
|
|
15691
15691
|
])
|
|
15692
15692
|
]) : createCommentVNode("", true),
|
|
15693
|
-
props.showStock && !!props.product.inventory ? (openBlock(), createElementBlock("div", _hoisted_22$
|
|
15693
|
+
props.showStock && !!props.product.inventory ? (openBlock(), createElementBlock("div", _hoisted_22$5, [
|
|
15694
15694
|
renderSlot(_ctx.$slots, "stock", {
|
|
15695
15695
|
product: __props.product,
|
|
15696
15696
|
inventory: __props.product.inventory,
|
|
@@ -15717,16 +15717,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15717
15717
|
product: __props.product,
|
|
15718
15718
|
manufacturer: getProductManufacturer()
|
|
15719
15719
|
}, () => [
|
|
15720
|
-
createElementVNode("div", _hoisted_23$
|
|
15720
|
+
createElementVNode("div", _hoisted_23$5, toDisplayString(getProductManufacturer()), 1)
|
|
15721
15721
|
]) : createCommentVNode("", true),
|
|
15722
15722
|
__props.showShortDescription && !!getProductShortDescription() ? renderSlot(_ctx.$slots, "shortDescription", {
|
|
15723
15723
|
key: 5,
|
|
15724
15724
|
product: __props.product,
|
|
15725
15725
|
text: getProductShortDescription()
|
|
15726
15726
|
}, () => [
|
|
15727
|
-
createElementVNode("p", _hoisted_24$
|
|
15727
|
+
createElementVNode("p", _hoisted_24$5, toDisplayString(getProductShortDescription()), 1)
|
|
15728
15728
|
]) : createCommentVNode("", true),
|
|
15729
|
-
__props.showPrice !== false && !!__props.product?.price ? (openBlock(), createElementBlock("div", _hoisted_25$
|
|
15729
|
+
__props.showPrice !== false && !!__props.product?.price ? (openBlock(), createElementBlock("div", _hoisted_25$5, [
|
|
15730
15730
|
renderSlot(_ctx.$slots, "price", {
|
|
15731
15731
|
product: __props.product,
|
|
15732
15732
|
price: __props.product.price,
|
|
@@ -15734,7 +15734,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15734
15734
|
currency: __props.currency,
|
|
15735
15735
|
labels: props.priceLabels
|
|
15736
15736
|
}, () => [
|
|
15737
|
-
createElementVNode("div", _hoisted_26$
|
|
15737
|
+
createElementVNode("div", _hoisted_26$5, [
|
|
15738
15738
|
props.priceComponent ? (openBlock(), createBlock(resolveDynamicComponent(PriceImpl.value), {
|
|
15739
15739
|
key: 0,
|
|
15740
15740
|
price: __props.product.price,
|
|
@@ -15752,7 +15752,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15752
15752
|
])
|
|
15753
15753
|
])) : createCommentVNode("", true)
|
|
15754
15754
|
]),
|
|
15755
|
-
props.showStock && !!props.product.inventory || __props.showPrice !== false && !!__props.product?.price ? (openBlock(), createElementBlock("div", _hoisted_27$
|
|
15755
|
+
props.showStock && !!props.product.inventory || __props.showPrice !== false && !!__props.product?.price ? (openBlock(), createElementBlock("div", _hoisted_27$5, [
|
|
15756
15756
|
props.showStock && !!props.product.inventory ? renderSlot(_ctx.$slots, "stock", {
|
|
15757
15757
|
key: 0,
|
|
15758
15758
|
product: __props.product,
|
|
@@ -17231,23 +17231,43 @@ const _hoisted_8$6 = {
|
|
|
17231
17231
|
const _hoisted_9$6 = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wide" };
|
|
17232
17232
|
const _hoisted_10$6 = { class: "text-sm text-foreground" };
|
|
17233
17233
|
const _hoisted_11$6 = {
|
|
17234
|
+
key: 0,
|
|
17235
|
+
class: "mb-6 overflow-hidden rounded-[var(--radius-container)] border border-border"
|
|
17236
|
+
};
|
|
17237
|
+
const _hoisted_12$6 = { class: "w-full text-sm" };
|
|
17238
|
+
const _hoisted_13$6 = { class: "divide-y divide-border" };
|
|
17239
|
+
const _hoisted_14$6 = {
|
|
17240
|
+
key: 1,
|
|
17241
|
+
class: "mb-6 space-y-3"
|
|
17242
|
+
};
|
|
17243
|
+
const _hoisted_15$5 = {
|
|
17234
17244
|
key: 0,
|
|
17235
17245
|
class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2"
|
|
17236
17246
|
};
|
|
17237
|
-
const
|
|
17247
|
+
const _hoisted_16$5 = {
|
|
17238
17248
|
key: 1,
|
|
17239
17249
|
class: "overflow-hidden rounded-[var(--radius-container)] border border-border"
|
|
17240
17250
|
};
|
|
17241
|
-
const
|
|
17242
|
-
const
|
|
17243
|
-
const
|
|
17244
|
-
const
|
|
17245
|
-
const
|
|
17251
|
+
const _hoisted_17$5 = { class: "w-full text-sm" };
|
|
17252
|
+
const _hoisted_18$4 = { class: "divide-y divide-border" };
|
|
17253
|
+
const _hoisted_19$4 = { class: "px-4 py-2 font-medium text-foreground w-1/2" };
|
|
17254
|
+
const _hoisted_20$4 = { class: "px-4 py-2 text-muted-foreground" };
|
|
17255
|
+
const _hoisted_21$4 = {
|
|
17246
17256
|
key: 2,
|
|
17247
17257
|
class: "space-y-3"
|
|
17248
17258
|
};
|
|
17249
|
-
const
|
|
17250
|
-
const
|
|
17259
|
+
const _hoisted_22$4 = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wide" };
|
|
17260
|
+
const _hoisted_23$4 = { class: "text-sm text-foreground" };
|
|
17261
|
+
const _hoisted_24$4 = {
|
|
17262
|
+
key: 0,
|
|
17263
|
+
class: "mb-6 overflow-hidden rounded-[var(--radius-container)] border border-border"
|
|
17264
|
+
};
|
|
17265
|
+
const _hoisted_25$4 = { class: "w-full text-sm" };
|
|
17266
|
+
const _hoisted_26$4 = { class: "divide-y divide-border" };
|
|
17267
|
+
const _hoisted_27$4 = {
|
|
17268
|
+
key: 1,
|
|
17269
|
+
class: "space-y-3"
|
|
17270
|
+
};
|
|
17251
17271
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
17252
17272
|
__name: "ProductSpecifications",
|
|
17253
17273
|
props: {
|
|
@@ -17264,6 +17284,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
17264
17284
|
const props = __props;
|
|
17265
17285
|
const infra = useInfraProps(props);
|
|
17266
17286
|
const langRef = computed(() => infra.language || "NL");
|
|
17287
|
+
const layoutMode = computed(
|
|
17288
|
+
() => props.layout === "list" ? "list" : "table"
|
|
17289
|
+
);
|
|
17267
17290
|
const { attributes, loading, fetchSpecs } = useProductSpecs({
|
|
17268
17291
|
graphqlClient: infra.graphqlClient,
|
|
17269
17292
|
language: langRef
|
|
@@ -17343,7 +17366,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
17343
17366
|
return getAttributes().length > 0;
|
|
17344
17367
|
}
|
|
17345
17368
|
return (_ctx, _cache) => {
|
|
17346
|
-
return !unref(loading) && (hasPublicAttributes() || __props.packageDescription) ? (openBlock(), createElementBlock("div", {
|
|
17369
|
+
return !unref(loading) && (hasPublicAttributes() || __props.packageDescription || !!_ctx.$slots.beforeSpecs || !!_ctx.$slots.afterSpecs) ? (openBlock(), createElementBlock("div", {
|
|
17347
17370
|
key: 0,
|
|
17348
17371
|
class: normalizeClass(`propeller-product-specifications ${__props.className || ""}`),
|
|
17349
17372
|
"data-layout": __props.layout === "list" ? "list" : "table",
|
|
@@ -17354,6 +17377,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
17354
17377
|
__props.layout !== "list" ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
17355
17378
|
createElementVNode("table", _hoisted_4$7, [
|
|
17356
17379
|
createElementVNode("tbody", _hoisted_5$7, [
|
|
17380
|
+
renderSlot(_ctx.$slots, "beforeSpecs", { layout: layoutMode.value }),
|
|
17357
17381
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getAttributes(), (attr, i2) => {
|
|
17358
17382
|
return openBlock(), createElementBlock("tr", {
|
|
17359
17383
|
key: i2,
|
|
@@ -17362,11 +17386,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
17362
17386
|
createElementVNode("td", _hoisted_6$7, toDisplayString(getAttributeLabel(attr)), 1),
|
|
17363
17387
|
createElementVNode("td", _hoisted_7$7, toDisplayString(getAttributeValue(attr)), 1)
|
|
17364
17388
|
]);
|
|
17365
|
-
}), 128))
|
|
17389
|
+
}), 128)),
|
|
17390
|
+
renderSlot(_ctx.$slots, "afterSpecs", { layout: layoutMode.value })
|
|
17366
17391
|
])
|
|
17367
17392
|
])
|
|
17368
17393
|
])) : createCommentVNode("", true),
|
|
17369
17394
|
__props.layout === "list" ? (openBlock(), createElementBlock("div", _hoisted_8$6, [
|
|
17395
|
+
renderSlot(_ctx.$slots, "beforeSpecs", { layout: layoutMode.value }),
|
|
17370
17396
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getAttributes(), (attr, i2) => {
|
|
17371
17397
|
return openBlock(), createElementBlock("div", {
|
|
17372
17398
|
key: i2,
|
|
@@ -17375,43 +17401,68 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
17375
17401
|
createElementVNode("span", _hoisted_9$6, toDisplayString(getAttributeLabel(attr)), 1),
|
|
17376
17402
|
createElementVNode("span", _hoisted_10$6, toDisplayString(getAttributeValue(attr)), 1)
|
|
17377
17403
|
]);
|
|
17378
|
-
}), 128))
|
|
17404
|
+
}), 128)),
|
|
17405
|
+
renderSlot(_ctx.$slots, "afterSpecs", { layout: layoutMode.value })
|
|
17379
17406
|
])) : createCommentVNode("", true)
|
|
17380
17407
|
], 64)) : createCommentVNode("", true),
|
|
17381
|
-
!!__props.grouping ? (openBlock(
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
__props.layout !== "list" ? (openBlock(), createElementBlock("div", _hoisted_12$6, [
|
|
17388
|
-
createElementVNode("table", _hoisted_13$6, [
|
|
17389
|
-
createElementVNode("tbody", _hoisted_14$6, [
|
|
17390
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(getAttributesByGroup(group), (attr, i2) => {
|
|
17391
|
-
return openBlock(), createElementBlock("tr", {
|
|
17392
|
-
key: i2,
|
|
17393
|
-
class: "propeller-product-specifications__row odd:bg-card even:bg-surface-hover/20"
|
|
17394
|
-
}, [
|
|
17395
|
-
createElementVNode("td", _hoisted_15$5, toDisplayString(getAttributeLabel(attr)), 1),
|
|
17396
|
-
createElementVNode("td", _hoisted_16$5, toDisplayString(getAttributeValue(attr)), 1)
|
|
17397
|
-
]);
|
|
17398
|
-
}), 128))
|
|
17408
|
+
!!__props.grouping ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
17409
|
+
!!_ctx.$slots.beforeSpecs ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
17410
|
+
layoutMode.value === "table" ? (openBlock(), createElementBlock("div", _hoisted_11$6, [
|
|
17411
|
+
createElementVNode("table", _hoisted_12$6, [
|
|
17412
|
+
createElementVNode("tbody", _hoisted_13$6, [
|
|
17413
|
+
renderSlot(_ctx.$slots, "beforeSpecs", { layout: layoutMode.value })
|
|
17399
17414
|
])
|
|
17400
17415
|
])
|
|
17401
|
-
])) :
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17416
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_14$6, [
|
|
17417
|
+
renderSlot(_ctx.$slots, "beforeSpecs", { layout: layoutMode.value })
|
|
17418
|
+
]))
|
|
17419
|
+
], 64)) : createCommentVNode("", true),
|
|
17420
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroups(), (group, index) => {
|
|
17421
|
+
return openBlock(), createElementBlock("div", {
|
|
17422
|
+
key: group,
|
|
17423
|
+
class: "mb-6"
|
|
17424
|
+
}, [
|
|
17425
|
+
!!group ? (openBlock(), createElementBlock("h4", _hoisted_15$5, toDisplayString(group), 1)) : createCommentVNode("", true),
|
|
17426
|
+
__props.layout !== "list" ? (openBlock(), createElementBlock("div", _hoisted_16$5, [
|
|
17427
|
+
createElementVNode("table", _hoisted_17$5, [
|
|
17428
|
+
createElementVNode("tbody", _hoisted_18$4, [
|
|
17429
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getAttributesByGroup(group), (attr, i2) => {
|
|
17430
|
+
return openBlock(), createElementBlock("tr", {
|
|
17431
|
+
key: i2,
|
|
17432
|
+
class: "propeller-product-specifications__row odd:bg-card even:bg-surface-hover/20"
|
|
17433
|
+
}, [
|
|
17434
|
+
createElementVNode("td", _hoisted_19$4, toDisplayString(getAttributeLabel(attr)), 1),
|
|
17435
|
+
createElementVNode("td", _hoisted_20$4, toDisplayString(getAttributeValue(attr)), 1)
|
|
17436
|
+
]);
|
|
17437
|
+
}), 128))
|
|
17438
|
+
])
|
|
17439
|
+
])
|
|
17440
|
+
])) : createCommentVNode("", true),
|
|
17441
|
+
__props.layout === "list" ? (openBlock(), createElementBlock("div", _hoisted_21$4, [
|
|
17442
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getAttributesByGroup(group), (attr, i2) => {
|
|
17443
|
+
return openBlock(), createElementBlock("div", {
|
|
17444
|
+
key: i2,
|
|
17445
|
+
class: "flex flex-col gap-0.5"
|
|
17446
|
+
}, [
|
|
17447
|
+
createElementVNode("span", _hoisted_22$4, toDisplayString(getAttributeLabel(attr)), 1),
|
|
17448
|
+
createElementVNode("span", _hoisted_23$4, toDisplayString(getAttributeValue(attr)), 1)
|
|
17449
|
+
]);
|
|
17450
|
+
}), 128))
|
|
17451
|
+
])) : createCommentVNode("", true)
|
|
17452
|
+
]);
|
|
17453
|
+
}), 128)),
|
|
17454
|
+
!!_ctx.$slots.afterSpecs ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
17455
|
+
layoutMode.value === "table" ? (openBlock(), createElementBlock("div", _hoisted_24$4, [
|
|
17456
|
+
createElementVNode("table", _hoisted_25$4, [
|
|
17457
|
+
createElementVNode("tbody", _hoisted_26$4, [
|
|
17458
|
+
renderSlot(_ctx.$slots, "afterSpecs", { layout: layoutMode.value })
|
|
17459
|
+
])
|
|
17460
|
+
])
|
|
17461
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_27$4, [
|
|
17462
|
+
renderSlot(_ctx.$slots, "afterSpecs", { layout: layoutMode.value })
|
|
17463
|
+
]))
|
|
17464
|
+
], 64)) : createCommentVNode("", true)
|
|
17465
|
+
], 64)) : createCommentVNode("", true)
|
|
17415
17466
|
], 10, _hoisted_1$7)) : createCommentVNode("", true);
|
|
17416
17467
|
};
|
|
17417
17468
|
}
|
|
@@ -17599,7 +17650,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
17599
17650
|
layout: __props.specificationsLayout,
|
|
17600
17651
|
grouping: __props.specificationsGrouping,
|
|
17601
17652
|
"package-description": __props.specificationsPackageDescription
|
|
17602
|
-
},
|
|
17653
|
+
}, createSlots({ _: 2 }, [
|
|
17654
|
+
_ctx.$slots.specificationsBefore ? {
|
|
17655
|
+
name: "beforeSpecs",
|
|
17656
|
+
fn: withCtx((slotProps) => [
|
|
17657
|
+
renderSlot(_ctx.$slots, "specificationsBefore", normalizeProps(guardReactiveProps(slotProps)))
|
|
17658
|
+
]),
|
|
17659
|
+
key: "0"
|
|
17660
|
+
} : void 0,
|
|
17661
|
+
_ctx.$slots.specificationsAfter ? {
|
|
17662
|
+
name: "afterSpecs",
|
|
17663
|
+
fn: withCtx((slotProps) => [
|
|
17664
|
+
renderSlot(_ctx.$slots, "specificationsAfter", normalizeProps(guardReactiveProps(slotProps)))
|
|
17665
|
+
]),
|
|
17666
|
+
key: "1"
|
|
17667
|
+
} : void 0
|
|
17668
|
+
]), 1032, ["attributes", "language", "layout", "grouping", "package-description"]))
|
|
17603
17669
|
], 2)) : createCommentVNode("", true),
|
|
17604
17670
|
isActive("downloads") && isTabVisible("downloads") ? (openBlock(), createBlock(resolveDynamicComponent(ProductDownloadsImpl.value), {
|
|
17605
17671
|
key: 2,
|
|
@@ -17685,7 +17751,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
17685
17751
|
layout: __props.specificationsLayout,
|
|
17686
17752
|
grouping: __props.specificationsGrouping,
|
|
17687
17753
|
"package-description": __props.specificationsPackageDescription
|
|
17688
|
-
},
|
|
17754
|
+
}, createSlots({ _: 2 }, [
|
|
17755
|
+
_ctx.$slots.specificationsBefore ? {
|
|
17756
|
+
name: "beforeSpecs",
|
|
17757
|
+
fn: withCtx((slotProps) => [
|
|
17758
|
+
renderSlot(_ctx.$slots, "specificationsBefore", normalizeProps(guardReactiveProps(slotProps)))
|
|
17759
|
+
]),
|
|
17760
|
+
key: "0"
|
|
17761
|
+
} : void 0,
|
|
17762
|
+
_ctx.$slots.specificationsAfter ? {
|
|
17763
|
+
name: "afterSpecs",
|
|
17764
|
+
fn: withCtx((slotProps) => [
|
|
17765
|
+
renderSlot(_ctx.$slots, "specificationsAfter", normalizeProps(guardReactiveProps(slotProps)))
|
|
17766
|
+
]),
|
|
17767
|
+
key: "1"
|
|
17768
|
+
} : void 0
|
|
17769
|
+
]), 1032, ["attributes", "language", "layout", "grouping", "package-description"]))
|
|
17689
17770
|
])) : createCommentVNode("", true)
|
|
17690
17771
|
])) : createCommentVNode("", true),
|
|
17691
17772
|
isTabVisible("downloads") ? (openBlock(), createElementBlock("div", _hoisted_14$5, [
|