@propeller-commerce/propeller-v2-vue-ui 0.3.31 → 0.3.33
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 +37 -0
- package/dist/components/DeliveryDate.vue.d.ts +8 -0
- package/dist/components/SearchBar.vue.d.ts +19 -1
- package/dist/index.cjs +159 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +159 -127
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3084,11 +3084,11 @@ const _hoisted_14$t = {
|
|
|
3084
3084
|
viewBox: "0 0 24 24",
|
|
3085
3085
|
class: "propeller-login-form__spinner animate-spin -ml-1 mr-2 h-4 w-4 text-primary-foreground"
|
|
3086
3086
|
};
|
|
3087
|
-
const _hoisted_15$
|
|
3087
|
+
const _hoisted_15$t = {
|
|
3088
3088
|
key: 1,
|
|
3089
3089
|
class: "propeller-login-form__footer mt-6 border-t pt-6 space-y-3"
|
|
3090
3090
|
};
|
|
3091
|
-
const _hoisted_16$
|
|
3091
|
+
const _hoisted_16$s = { class: "propeller-login-form__register text-center" };
|
|
3092
3092
|
const _hoisted_17$r = { class: "propeller-login-form__register-prompt text-sm text-muted-foreground mb-2" };
|
|
3093
3093
|
const _hoisted_18$p = { class: "propeller-login-form__guest text-center" };
|
|
3094
3094
|
const _hoisted_19$p = {
|
|
@@ -3322,13 +3322,13 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3322
3322
|
], 8, _hoisted_13$t)
|
|
3323
3323
|
])
|
|
3324
3324
|
], 32),
|
|
3325
|
-
(showRegister.value || showGuestCheckout.value) && !__props.accountHeaderLoginForm ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
3325
|
+
(showRegister.value || showGuestCheckout.value) && !__props.accountHeaderLoginForm ? (openBlock(), createElementBlock("div", _hoisted_15$t, [
|
|
3326
3326
|
__props.displayRegisterLink !== false ? renderSlot(_ctx.$slots, "registerLink", {
|
|
3327
3327
|
key: 0,
|
|
3328
3328
|
onClick: (e) => __props.onRegisterClick?.(e),
|
|
3329
3329
|
labels: __props.labels
|
|
3330
3330
|
}, () => [
|
|
3331
|
-
createElementVNode("div", _hoisted_16$
|
|
3331
|
+
createElementVNode("div", _hoisted_16$s, [
|
|
3332
3332
|
createElementVNode("p", _hoisted_17$r, toDisplayString(registerText.value), 1),
|
|
3333
3333
|
createElementVNode("button", {
|
|
3334
3334
|
type: "button",
|
|
@@ -3419,8 +3419,8 @@ const _hoisted_13$s = {
|
|
|
3419
3419
|
class: "propeller-account-menu__greeting hidden md:block font-normal"
|
|
3420
3420
|
};
|
|
3421
3421
|
const _hoisted_14$s = { class: "propeller-account-menu__user pb-3 mb-3 border-b border-border" };
|
|
3422
|
-
const _hoisted_15$
|
|
3423
|
-
const _hoisted_16$
|
|
3422
|
+
const _hoisted_15$s = { class: "propeller-account-menu__user-label text-xs text-muted-foreground uppercase tracking-wider font-semibold mb-1" };
|
|
3423
|
+
const _hoisted_16$r = { class: "propeller-account-menu__user-name font-medium text-foreground truncate" };
|
|
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"];
|
|
@@ -3645,8 +3645,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3645
3645
|
isMounted.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3646
3646
|
!!user.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
3647
3647
|
createElementVNode("div", _hoisted_14$s, [
|
|
3648
|
-
createElementVNode("p", _hoisted_15$
|
|
3649
|
-
createElementVNode("p", _hoisted_16$
|
|
3648
|
+
createElementVNode("p", _hoisted_15$s, toDisplayString(getLabel$1("signedInAs", "Signed in as")), 1),
|
|
3649
|
+
createElementVNode("p", _hoisted_16$r, toDisplayString(getUserName()), 1)
|
|
3650
3650
|
]),
|
|
3651
3651
|
createElementVNode("nav", _hoisted_17$q, [
|
|
3652
3652
|
createElementVNode("ul", _hoisted_18$o, [
|
|
@@ -3936,8 +3936,8 @@ const _hoisted_14$r = {
|
|
|
3936
3936
|
key: 1,
|
|
3937
3937
|
class: "propeller-add-to-cart__modal fixed inset-0 z-50 flex items-center justify-center px-4"
|
|
3938
3938
|
};
|
|
3939
|
-
const _hoisted_15$
|
|
3940
|
-
const _hoisted_16$
|
|
3939
|
+
const _hoisted_15$r = { class: "propeller-add-to-cart__modal-content relative w-full max-w-lg bg-card rounded-[var(--radius-container)] shadow-2xl overflow-hidden" };
|
|
3940
|
+
const _hoisted_16$q = { class: "propeller-add-to-cart__modal-header flex items-center gap-3 px-6 py-4 border-b border-border-subtle" };
|
|
3941
3941
|
const _hoisted_17$p = {
|
|
3942
3942
|
fill: "none",
|
|
3943
3943
|
viewBox: "0 0 24 24",
|
|
@@ -4320,8 +4320,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4320
4320
|
class: "propeller-add-to-cart__modal-backdrop fixed inset-0 bg-foreground/20",
|
|
4321
4321
|
onClick: _cache[6] || (_cache[6] = async (event) => closeModal())
|
|
4322
4322
|
}),
|
|
4323
|
-
createElementVNode("div", _hoisted_15$
|
|
4324
|
-
createElementVNode("div", _hoisted_16$
|
|
4323
|
+
createElementVNode("div", _hoisted_15$r, [
|
|
4324
|
+
createElementVNode("div", _hoisted_16$q, [
|
|
4325
4325
|
(openBlock(), createElementBlock("svg", _hoisted_17$p, [..._cache[15] || (_cache[15] = [
|
|
4326
4326
|
createElementVNode("path", {
|
|
4327
4327
|
strokeLinecap: "round",
|
|
@@ -4477,8 +4477,8 @@ const _hoisted_14$q = {
|
|
|
4477
4477
|
key: 1,
|
|
4478
4478
|
class: "propeller-add-to-favorite__add-form space-y-3"
|
|
4479
4479
|
};
|
|
4480
|
-
const _hoisted_15$
|
|
4481
|
-
const _hoisted_16$
|
|
4480
|
+
const _hoisted_15$q = { class: "space-y-1" };
|
|
4481
|
+
const _hoisted_16$p = { class: "propeller-add-to-favorite__select-label text-xs text-muted-foreground" };
|
|
4482
4482
|
const _hoisted_17$o = ["value"];
|
|
4483
4483
|
const _hoisted_18$m = ["value"];
|
|
4484
4484
|
const _hoisted_19$m = ["disabled"];
|
|
@@ -4723,8 +4723,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4723
4723
|
_cache[9] || (_cache[9] = createElementVNode("div", { class: "propeller-add-to-favorite__divider border-t border-border" }, null, -1))
|
|
4724
4724
|
], 64)) : createCommentVNode("", true),
|
|
4725
4725
|
getNonMemberLists().length > 0 ? (openBlock(), createElementBlock("div", _hoisted_14$q, [
|
|
4726
|
-
createElementVNode("div", _hoisted_15$
|
|
4727
|
-
createElementVNode("label", _hoisted_16$
|
|
4726
|
+
createElementVNode("div", _hoisted_15$q, [
|
|
4727
|
+
createElementVNode("label", _hoisted_16$p, toDisplayString(getLabel$1("chooseList", "Choose a favorites list*")), 1),
|
|
4728
4728
|
createElementVNode("select", {
|
|
4729
4729
|
class: "propeller-add-to-favorite__select block w-full rounded-[var(--radius-control)] border border-input px-3 py-2.5 text-sm focus:border-primary focus:ring-primary",
|
|
4730
4730
|
value: selectedListId.value,
|
|
@@ -4793,11 +4793,11 @@ const _hoisted_11$r = {
|
|
|
4793
4793
|
const _hoisted_12$r = { class: "mt-2" };
|
|
4794
4794
|
const _hoisted_13$p = { class: "propeller-address-card__default-badge bg-secondary/10 text-secondary text-xs px-2 py-1 rounded-full" };
|
|
4795
4795
|
const _hoisted_14$p = { class: "propeller-address-card__actions mt-4 pt-4 border-t border-border-subtle flex flex-wrap gap-2" };
|
|
4796
|
-
const _hoisted_15$
|
|
4796
|
+
const _hoisted_15$p = {
|
|
4797
4797
|
key: 1,
|
|
4798
4798
|
class: "propeller-address-card__form bg-card p-6 rounded-[var(--radius-container)] border"
|
|
4799
4799
|
};
|
|
4800
|
-
const _hoisted_16$
|
|
4800
|
+
const _hoisted_16$o = {
|
|
4801
4801
|
key: 0,
|
|
4802
4802
|
class: "text-xl font-bold mb-4"
|
|
4803
4803
|
};
|
|
@@ -5205,11 +5205,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5205
5205
|
])
|
|
5206
5206
|
]) : createCommentVNode("", true)
|
|
5207
5207
|
], 8, _hoisted_2$J)) : createCommentVNode("", true),
|
|
5208
|
-
__props.inline && showEditModal.value ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
5208
|
+
__props.inline && showEditModal.value ? (openBlock(), createElementBlock("div", _hoisted_15$p, [
|
|
5209
5209
|
createElementVNode("form", {
|
|
5210
5210
|
onSubmit: _cache[19] || (_cache[19] = async (e) => handleSaveEdit(e))
|
|
5211
5211
|
}, [
|
|
5212
|
-
!!formTitle.value ? (openBlock(), createElementBlock("h3", _hoisted_16$
|
|
5212
|
+
!!formTitle.value ? (openBlock(), createElementBlock("h3", _hoisted_16$o, toDisplayString(formTitle.value), 1)) : createCommentVNode("", true),
|
|
5213
5213
|
createElementVNode("div", _hoisted_17$n, [
|
|
5214
5214
|
createElementVNode("div", _hoisted_18$l, [
|
|
5215
5215
|
createElementVNode("div", null, [
|
|
@@ -6127,11 +6127,11 @@ const _hoisted_11$q = { class: "font-medium" };
|
|
|
6127
6127
|
const _hoisted_12$q = { class: "propeller-cart-item__surcharges-list mt-0.5" };
|
|
6128
6128
|
const _hoisted_13$o = { class: "mt-1" };
|
|
6129
6129
|
const _hoisted_14$o = { class: "propeller-cart-item__bundle mt-3 space-y-1.5 border-l-2 border-border pl-3" };
|
|
6130
|
-
const _hoisted_15$
|
|
6130
|
+
const _hoisted_15$o = {
|
|
6131
6131
|
key: 0,
|
|
6132
6132
|
class: "propeller-cart-item__bundle-leader flex flex-wrap gap-x-2 text-sm text-muted-foreground"
|
|
6133
6133
|
};
|
|
6134
|
-
const _hoisted_16$
|
|
6134
|
+
const _hoisted_16$n = { 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" };
|
|
@@ -6605,8 +6605,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
6605
6605
|
nonLeaders: getBundleNonLeaders()
|
|
6606
6606
|
}, () => [
|
|
6607
6607
|
createElementVNode("div", _hoisted_14$o, [
|
|
6608
|
-
!!getBundleLeaderName() ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
6609
|
-
createElementVNode("span", _hoisted_16$
|
|
6608
|
+
!!getBundleLeaderName() ? (openBlock(), createElementBlock("div", _hoisted_15$o, [
|
|
6609
|
+
createElementVNode("span", _hoisted_16$n, toDisplayString(getBundleLeaderName()), 1),
|
|
6610
6610
|
!!getBundleLeaderPrice() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
6611
6611
|
_cache[8] || (_cache[8] = createElementVNode("div", { class: "flex-1 border-b border-dotted border-input mx-1 mb-1" }, null, -1)),
|
|
6612
6612
|
createElementVNode("span", _hoisted_17$m, toDisplayString(getBundleLeaderPrice()), 1)
|
|
@@ -6864,8 +6864,8 @@ const _hoisted_14$n = {
|
|
|
6864
6864
|
class: "w-5 h-5 text-muted-foreground",
|
|
6865
6865
|
strokeWidth: 1.5
|
|
6866
6866
|
};
|
|
6867
|
-
const _hoisted_15$
|
|
6868
|
-
const _hoisted_16$
|
|
6867
|
+
const _hoisted_15$n = { class: "propeller-cart-icon__sidebar-title text-base font-semibold text-foreground" };
|
|
6868
|
+
const _hoisted_16$m = { class: "propeller-cart-icon__sidebar-count inline-flex items-center justify-center h-5 min-w-[20px] px-1.5 rounded-full bg-secondary/10 text-secondary text-xs font-bold" };
|
|
6869
6869
|
const _hoisted_17$l = ["aria-label"];
|
|
6870
6870
|
const _hoisted_18$j = {
|
|
6871
6871
|
fill: "none",
|
|
@@ -6976,8 +6976,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
6976
6976
|
function getTotalItems() {
|
|
6977
6977
|
return getCartItems().reduce((sum, item) => sum + (item.quantity || 0), 0);
|
|
6978
6978
|
}
|
|
6979
|
+
const useTax = computed(() => !!infra.includeTax);
|
|
6979
6980
|
function getTotalPrice() {
|
|
6980
|
-
const total = props.cart?.total?.totalNet;
|
|
6981
|
+
const total = useTax.value ? props.cart?.total?.totalNet : props.cart?.total?.totalGross;
|
|
6981
6982
|
return formatPrice(total ?? 0, { symbol: infra.currency ?? "€" });
|
|
6982
6983
|
}
|
|
6983
6984
|
function getItems() {
|
|
@@ -7125,8 +7126,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7125
7126
|
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"
|
|
7126
7127
|
}, null, -1)
|
|
7127
7128
|
])])),
|
|
7128
|
-
createElementVNode("h2", _hoisted_15$
|
|
7129
|
-
createElementVNode("span", _hoisted_16$
|
|
7129
|
+
createElementVNode("h2", _hoisted_15$n, toDisplayString(getSidebarTitle()), 1),
|
|
7130
|
+
createElementVNode("span", _hoisted_16$m, toDisplayString(getTotalItems()), 1)
|
|
7130
7131
|
]),
|
|
7131
7132
|
createElementVNode("button", {
|
|
7132
7133
|
type: "button",
|
|
@@ -7176,7 +7177,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7176
7177
|
showCartItemNotesField: false,
|
|
7177
7178
|
showCrossupsells: false,
|
|
7178
7179
|
showStockComponent: false,
|
|
7179
|
-
includeTax:
|
|
7180
|
+
includeTax: useTax.value,
|
|
7180
7181
|
className: "propeller-cart-icon__item"
|
|
7181
7182
|
}, {
|
|
7182
7183
|
image: withCtx(({ cartItem: rowCartItem }) => [
|
|
@@ -7206,13 +7207,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7206
7207
|
}, toDisplayString(name), 9, _hoisted_27$f)) : createCommentVNode("", true)
|
|
7207
7208
|
]),
|
|
7208
7209
|
_: 1
|
|
7209
|
-
}, 40, ["cartItem", "cartId", "graphqlClient", "user", "language", "configuration", "companyId", "onTitleClick"]);
|
|
7210
|
+
}, 40, ["cartItem", "cartId", "graphqlClient", "user", "language", "configuration", "companyId", "onTitleClick", "includeTax"]);
|
|
7210
7211
|
}), 128)) : createCommentVNode("", true),
|
|
7211
7212
|
(openBlock(), createBlock(resolveDynamicComponent(CartBonusItemsImpl.value), {
|
|
7212
7213
|
cart: __props.cart,
|
|
7213
|
-
includeTax:
|
|
7214
|
+
includeTax: useTax.value,
|
|
7214
7215
|
className: "mt-4"
|
|
7215
|
-
}, null, 8, ["cart"]))
|
|
7216
|
+
}, null, 8, ["cart", "includeTax"]))
|
|
7216
7217
|
]),
|
|
7217
7218
|
getItems().length > 0 ? (openBlock(), createElementBlock("div", _hoisted_28$e, [
|
|
7218
7219
|
createElementVNode("div", _hoisted_29$e, [
|
|
@@ -7306,8 +7307,8 @@ const _hoisted_14$m = {
|
|
|
7306
7307
|
key: 2,
|
|
7307
7308
|
class: "propeller-cart-overview__address-email text-muted-foreground"
|
|
7308
7309
|
};
|
|
7309
|
-
const _hoisted_15$
|
|
7310
|
-
const _hoisted_16$
|
|
7310
|
+
const _hoisted_15$m = { class: "propeller-cart-overview__info-panel bg-surface-hover p-4 rounded-[var(--radius-control)] border border-border space-y-2 text-sm" };
|
|
7311
|
+
const _hoisted_16$l = {
|
|
7311
7312
|
key: 0,
|
|
7312
7313
|
class: "flex justify-between"
|
|
7313
7314
|
};
|
|
@@ -7485,8 +7486,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7485
7486
|
])) : createCommentVNode("", true)
|
|
7486
7487
|
])
|
|
7487
7488
|
]),
|
|
7488
|
-
createElementVNode("div", _hoisted_15$
|
|
7489
|
-
paymentMethod.value ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
7489
|
+
createElementVNode("div", _hoisted_15$m, [
|
|
7490
|
+
paymentMethod.value ? (openBlock(), createElementBlock("div", _hoisted_16$l, [
|
|
7490
7491
|
createElementVNode("span", _hoisted_17$k, toDisplayString(getLabel$1("payment", "Payment:")), 1),
|
|
7491
7492
|
createElementVNode("span", null, toDisplayString(paymentMethod.value), 1)
|
|
7492
7493
|
])) : createCommentVNode("", true),
|
|
@@ -7716,8 +7717,8 @@ const _hoisted_12$n = {
|
|
|
7716
7717
|
};
|
|
7717
7718
|
const _hoisted_13$l = { class: "propeller-cart-summary__label" };
|
|
7718
7719
|
const _hoisted_14$l = { class: "propeller-cart-summary__value" };
|
|
7719
|
-
const _hoisted_15$
|
|
7720
|
-
const _hoisted_16$
|
|
7720
|
+
const _hoisted_15$l = { class: "propeller-cart-summary__label" };
|
|
7721
|
+
const _hoisted_16$k = { class: "propeller-cart-summary__value" };
|
|
7721
7722
|
const _hoisted_17$j = {
|
|
7722
7723
|
key: 5,
|
|
7723
7724
|
class: "propeller-cart-summary__row flex justify-between text-muted-foreground text-sm",
|
|
@@ -7905,8 +7906,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
7905
7906
|
class: "propeller-cart-summary__row flex justify-between text-muted-foreground text-sm",
|
|
7906
7907
|
"data-row": "vat-line"
|
|
7907
7908
|
}, [
|
|
7908
|
-
createElementVNode("span", _hoisted_15$
|
|
7909
|
-
createElementVNode("span", _hoisted_16$
|
|
7909
|
+
createElementVNode("span", _hoisted_15$l, toDisplayString(tax.taxPercentage) + "% " + toDisplayString(getLabel$1("vat", "VAT")) + ":", 1),
|
|
7910
|
+
createElementVNode("span", _hoisted_16$k, toDisplayString(formatItemPrice(Number(tax.price))), 1)
|
|
7910
7911
|
]);
|
|
7911
7912
|
}), 128)) : createCommentVNode("", true),
|
|
7912
7913
|
showTotalVat.value && totalVat.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_17$j, [
|
|
@@ -8150,8 +8151,8 @@ const _hoisted_11$m = ["href"];
|
|
|
8150
8151
|
const _hoisted_12$m = { class: "flex flex-col gap-0.5" };
|
|
8151
8152
|
const _hoisted_13$k = { class: "propeller-cluster-card__manufacturer text-xs text-muted-foreground" };
|
|
8152
8153
|
const _hoisted_14$k = { class: "propeller-cluster-card__description line-clamp-2 text-xs text-muted-foreground" };
|
|
8153
|
-
const _hoisted_15$
|
|
8154
|
-
const _hoisted_16$
|
|
8154
|
+
const _hoisted_15$k = { class: "propeller-cluster-card__footer w-full md:w-auto flex flex-col gap-2 md:flex-row md:items-center md:gap-3 px-4 py-2 md:py-0 border-t md:border-t-0 border-border-subtle" };
|
|
8155
|
+
const _hoisted_16$j = { class: "propeller-cluster-card__footer-meta flex items-center justify-between gap-3 md:contents" };
|
|
8155
8156
|
const _hoisted_17$i = {
|
|
8156
8157
|
key: 1,
|
|
8157
8158
|
class: "propeller-cluster-card__price font-bold text-foreground text-sm whitespace-nowrap"
|
|
@@ -8495,8 +8496,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8495
8496
|
]) : createCommentVNode("", true)
|
|
8496
8497
|
])
|
|
8497
8498
|
]),
|
|
8498
|
-
createElementVNode("div", _hoisted_15$
|
|
8499
|
-
createElementVNode("div", _hoisted_16$
|
|
8499
|
+
createElementVNode("div", _hoisted_15$k, [
|
|
8500
|
+
createElementVNode("div", _hoisted_16$j, [
|
|
8500
8501
|
__props.showStock && !!__props.cluster.defaultProduct?.inventory ? renderSlot(_ctx.$slots, "stock", {
|
|
8501
8502
|
key: 0,
|
|
8502
8503
|
cluster: __props.cluster,
|
|
@@ -8730,8 +8731,8 @@ const _hoisted_14$j = {
|
|
|
8730
8731
|
key: 4,
|
|
8731
8732
|
class: "propeller-cluster-configurator__options flex flex-wrap gap-3"
|
|
8732
8733
|
};
|
|
8733
|
-
const _hoisted_15$
|
|
8734
|
-
const _hoisted_16$
|
|
8734
|
+
const _hoisted_15$j = ["disabled", "onClick", "data-selected"];
|
|
8735
|
+
const _hoisted_16$i = ["src", "alt"];
|
|
8735
8736
|
const _hoisted_17$h = {
|
|
8736
8737
|
key: 0,
|
|
8737
8738
|
class: "propeller-cluster-configurator__image-check absolute inset-0 bg-secondary bg-opacity-20 flex items-center justify-center"
|
|
@@ -9108,7 +9109,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
9108
9109
|
class: "propeller-cluster-configurator__image w-full h-full object-cover",
|
|
9109
9110
|
src: val,
|
|
9110
9111
|
alt: val
|
|
9111
|
-
}, null, 8, _hoisted_16$
|
|
9112
|
+
}, null, 8, _hoisted_16$i),
|
|
9112
9113
|
setting.selectedValue === val ? (openBlock(), createElementBlock("div", _hoisted_17$h, [..._cache[0] || (_cache[0] = [
|
|
9113
9114
|
createElementVNode("svg", {
|
|
9114
9115
|
fill: "currentColor",
|
|
@@ -9122,7 +9123,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
9122
9123
|
})
|
|
9123
9124
|
], -1)
|
|
9124
9125
|
])])) : createCommentVNode("", true)
|
|
9125
|
-
], 10, _hoisted_15$
|
|
9126
|
+
], 10, _hoisted_15$j);
|
|
9126
9127
|
}), 128))
|
|
9127
9128
|
])) : createCommentVNode("", true),
|
|
9128
9129
|
setting.displayType !== "DROPDOWN" && setting.displayType !== "RADIO" && setting.displayType !== "COLOR" && setting.displayType !== "IMAGE" ? (openBlock(), createElementBlock("div", _hoisted_18$f, [
|
|
@@ -9305,7 +9306,7 @@ const _hoisted_12$k = {
|
|
|
9305
9306
|
};
|
|
9306
9307
|
const _hoisted_13$i = { class: "min-w-0 flex-1" };
|
|
9307
9308
|
const _hoisted_14$i = { class: "propeller-cluster-options__preview-name truncate text-sm font-medium text-foreground" };
|
|
9308
|
-
const _hoisted_15$
|
|
9309
|
+
const _hoisted_15$i = { class: "propeller-cluster-options__preview-price text-sm font-semibold text-secondary" };
|
|
9309
9310
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
9310
9311
|
__name: "ClusterOptions",
|
|
9311
9312
|
props: {
|
|
@@ -9459,7 +9460,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
9459
9460
|
])])) : createCommentVNode("", true),
|
|
9460
9461
|
createElementVNode("div", _hoisted_13$i, [
|
|
9461
9462
|
createElementVNode("p", _hoisted_14$i, toDisplayString(option.previewName), 1),
|
|
9462
|
-
createElementVNode("p", _hoisted_15$
|
|
9463
|
+
createElementVNode("p", _hoisted_15$i, toDisplayString(option.previewPrice), 1)
|
|
9463
9464
|
])
|
|
9464
9465
|
])) : createCommentVNode("", true)
|
|
9465
9466
|
], 8, _hoisted_2$w);
|
|
@@ -9639,7 +9640,7 @@ const _hoisted_6$q = {
|
|
|
9639
9640
|
const _hoisted_7$q = { class: "propeller-delivery-date__modal-content bg-card rounded-xl shadow-xl p-6 w-full max-w-sm mx-4" };
|
|
9640
9641
|
const _hoisted_8$o = { class: "propeller-delivery-date__modal-header flex justify-between items-center mb-4" };
|
|
9641
9642
|
const _hoisted_9$n = { class: "propeller-delivery-date__modal-title text-lg font-semibold" };
|
|
9642
|
-
const _hoisted_10$l = ["min", "value"];
|
|
9643
|
+
const _hoisted_10$l = ["lang", "min", "value"];
|
|
9643
9644
|
const _hoisted_11$j = {
|
|
9644
9645
|
key: 0,
|
|
9645
9646
|
class: "propeller-delivery-date__input-error text-sm text-destructive mt-2",
|
|
@@ -9657,10 +9658,15 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9657
9658
|
formatDateDisplay: {},
|
|
9658
9659
|
labels: {},
|
|
9659
9660
|
containerClass: {},
|
|
9660
|
-
initialDate: {}
|
|
9661
|
+
initialDate: {},
|
|
9662
|
+
language: {}
|
|
9661
9663
|
},
|
|
9662
9664
|
setup(__props) {
|
|
9663
9665
|
const props = __props;
|
|
9666
|
+
const infra = useInfraProps(props);
|
|
9667
|
+
const inputLang = computed(
|
|
9668
|
+
() => infra.language ? String(infra.language).toLowerCase() : void 0
|
|
9669
|
+
);
|
|
9664
9670
|
const selectedDate = ref("");
|
|
9665
9671
|
const modalOpen = ref(false);
|
|
9666
9672
|
const customDateValue = ref("");
|
|
@@ -9710,9 +9716,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9710
9716
|
if (props.initialDate && !selectedDate.value) {
|
|
9711
9717
|
const dot = props.initialDate.lastIndexOf(".");
|
|
9712
9718
|
const normalized = dot !== -1 ? props.initialDate.substring(0, dot) + "Z" : props.initialDate;
|
|
9713
|
-
|
|
9719
|
+
const parsed = new Date(normalized);
|
|
9720
|
+
const isWeekend = !isNaN(parsed.getTime()) && (parsed.getDay() === 0 || parsed.getDay() === 6);
|
|
9721
|
+
const tiles = upcomingDates.value;
|
|
9722
|
+
const adopt = skipWeekends.value && isWeekend && tiles.length > 0 ? tiles[0] : normalized;
|
|
9723
|
+
selectedDate.value = adopt;
|
|
9714
9724
|
if (props.onDateSelect) {
|
|
9715
|
-
props.onDateSelect(
|
|
9725
|
+
props.onDateSelect(adopt);
|
|
9716
9726
|
}
|
|
9717
9727
|
}
|
|
9718
9728
|
},
|
|
@@ -9743,8 +9753,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9743
9753
|
if (!isoDate) return "";
|
|
9744
9754
|
const date = new Date(isoDate);
|
|
9745
9755
|
if (isNaN(date.getTime())) return "";
|
|
9746
|
-
const
|
|
9747
|
-
const
|
|
9756
|
+
const WEEKDAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
9757
|
+
const MONTHS = [
|
|
9748
9758
|
"Jan",
|
|
9749
9759
|
"Feb",
|
|
9750
9760
|
"Mar",
|
|
@@ -9758,7 +9768,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9758
9768
|
"Nov",
|
|
9759
9769
|
"Dec"
|
|
9760
9770
|
];
|
|
9761
|
-
|
|
9771
|
+
const weekday = getLabel$1(`day_${date.getDay()}`, WEEKDAYS[date.getDay()]);
|
|
9772
|
+
const month = getLabel$1(`month_${date.getMonth()}`, MONTHS[date.getMonth()]);
|
|
9773
|
+
return weekday + ", " + month + " " + date.getDate();
|
|
9762
9774
|
}
|
|
9763
9775
|
function handleSelect(isoDate) {
|
|
9764
9776
|
selectedDate.value = isoDate;
|
|
@@ -9863,6 +9875,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9863
9875
|
]),
|
|
9864
9876
|
createElementVNode("input", {
|
|
9865
9877
|
type: "date",
|
|
9878
|
+
lang: inputLang.value,
|
|
9866
9879
|
class: normalizeClass(["propeller-delivery-date__input w-full border border-input rounded-[var(--radius-container)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-secondary focus:border-secondary", customDateError.value ? "border-destructive focus:ring-destructive focus:border-destructive" : ""]),
|
|
9867
9880
|
min: minDate.value,
|
|
9868
9881
|
value: customDateValue.value,
|
|
@@ -9914,12 +9927,12 @@ const _hoisted_14$h = {
|
|
|
9914
9927
|
key: 0,
|
|
9915
9928
|
class: "propeller-favorite-list-item__stock flex-shrink-0"
|
|
9916
9929
|
};
|
|
9917
|
-
const _hoisted_15$
|
|
9930
|
+
const _hoisted_15$h = {
|
|
9918
9931
|
key: 0,
|
|
9919
9932
|
class: "propeller-favorite-list-item__stock-badge inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium text-success bg-success/10",
|
|
9920
9933
|
"data-stock": "in"
|
|
9921
9934
|
};
|
|
9922
|
-
const _hoisted_16$
|
|
9935
|
+
const _hoisted_16$h = {
|
|
9923
9936
|
key: 1,
|
|
9924
9937
|
class: "propeller-favorite-list-item__stock-badge inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium text-warning bg-warning/10",
|
|
9925
9938
|
"data-stock": "low"
|
|
@@ -10141,8 +10154,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
10141
10154
|
])) : createCommentVNode("", true),
|
|
10142
10155
|
!isProduct() ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
10143
10156
|
getCluster()?.defaultProduct?.inventory?.totalQuantity !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
|
|
10144
|
-
(getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) > 5 ? (openBlock(), createElementBlock("span", _hoisted_15$
|
|
10145
|
-
(getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) > 0 && (getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) <= 5 ? (openBlock(), createElementBlock("span", _hoisted_16$
|
|
10157
|
+
(getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) > 5 ? (openBlock(), createElementBlock("span", _hoisted_15$h, toDisplayString(getLabel$1("inStock", "In stock")), 1)) : createCommentVNode("", true),
|
|
10158
|
+
(getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) > 0 && (getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) <= 5 ? (openBlock(), createElementBlock("span", _hoisted_16$h, toDisplayString(getLabel$1("lowStock", "Low stock")), 1)) : createCommentVNode("", true),
|
|
10146
10159
|
(getCluster()?.defaultProduct?.inventory?.totalQuantity || 0) === 0 ? (openBlock(), createElementBlock("span", _hoisted_17$g, toDisplayString(getLabel$1("outOfStock", "Out of stock")), 1)) : createCommentVNode("", true)
|
|
10147
10160
|
])) : createCommentVNode("", true)
|
|
10148
10161
|
], 64)) : createCommentVNode("", true)
|
|
@@ -10410,11 +10423,11 @@ const _hoisted_12$h = {
|
|
|
10410
10423
|
};
|
|
10411
10424
|
const _hoisted_13$g = { class: "propeller-favorite-list-details__empty-title text-lg font-medium" };
|
|
10412
10425
|
const _hoisted_14$g = { class: "propeller-favorite-list-details__empty-message text-muted-foreground" };
|
|
10413
|
-
const _hoisted_15$
|
|
10426
|
+
const _hoisted_15$g = {
|
|
10414
10427
|
key: 2,
|
|
10415
10428
|
class: "propeller-favorite-list-details__floating-bar fixed bottom-0 left-0 right-0 z-40 border-t border-border bg-card shadow-lg"
|
|
10416
10429
|
};
|
|
10417
|
-
const _hoisted_16$
|
|
10430
|
+
const _hoisted_16$g = { class: "propeller-favorite-list-details__floating-bar-inner flex items-center justify-between gap-4 px-6 py-4" };
|
|
10418
10431
|
const _hoisted_17$f = { class: "propeller-favorite-list-details__floating-bar-status flex items-center gap-2" };
|
|
10419
10432
|
const _hoisted_18$d = ["checked"];
|
|
10420
10433
|
const _hoisted_19$d = {
|
|
@@ -10948,8 +10961,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
10948
10961
|
])
|
|
10949
10962
|
])) : createCommentVNode("", true)
|
|
10950
10963
|
], 64)) : createCommentVNode("", true),
|
|
10951
|
-
selectedIds.value.size > 0 ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
10952
|
-
createElementVNode("div", _hoisted_16$
|
|
10964
|
+
selectedIds.value.size > 0 ? (openBlock(), createElementBlock("div", _hoisted_15$g, [
|
|
10965
|
+
createElementVNode("div", _hoisted_16$g, [
|
|
10953
10966
|
createElementVNode("div", _hoisted_17$f, [
|
|
10954
10967
|
createElementVNode("input", {
|
|
10955
10968
|
id: "favorite-list-select-all-floating",
|
|
@@ -11166,8 +11179,8 @@ const _hoisted_11$g = { class: "flex items-center space-x-2" };
|
|
|
11166
11179
|
const _hoisted_12$g = ["id", "checked"];
|
|
11167
11180
|
const _hoisted_13$f = ["for"];
|
|
11168
11181
|
const _hoisted_14$f = { class: "flex gap-2" };
|
|
11169
|
-
const _hoisted_15$
|
|
11170
|
-
const _hoisted_16$
|
|
11182
|
+
const _hoisted_15$f = ["onClick", "disabled"];
|
|
11183
|
+
const _hoisted_16$f = {
|
|
11171
11184
|
key: 1,
|
|
11172
11185
|
class: "propeller-favorite-lists__display space-y-2"
|
|
11173
11186
|
};
|
|
@@ -11439,14 +11452,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
11439
11452
|
class: "propeller-favorite-lists__save-btn inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-[var(--radius-control)] text-primary-foreground bg-primary hover:bg-primary/80 disabled:opacity-50",
|
|
11440
11453
|
onClick: async (event) => handleUpdateList(String(list.id)),
|
|
11441
11454
|
disabled: !unref(editListName).trim()
|
|
11442
|
-
}, toDisplayString(getLabel$1("editSave", "Save")), 9, _hoisted_15$
|
|
11455
|
+
}, toDisplayString(getLabel$1("editSave", "Save")), 9, _hoisted_15$f),
|
|
11443
11456
|
createElementVNode("button", {
|
|
11444
11457
|
class: "propeller-favorite-lists__cancel-btn inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-[var(--radius-control)] border border-input text-muted-foreground bg-card hover:bg-surface-hover",
|
|
11445
11458
|
onClick: _cache[3] || (_cache[3] = async (event) => handleCancelEdit())
|
|
11446
11459
|
}, toDisplayString(getLabel$1("editCancel", "Cancel")), 1)
|
|
11447
11460
|
])
|
|
11448
11461
|
])) : createCommentVNode("", true),
|
|
11449
|
-
unref(editingListId) !== String(list.id) ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
11462
|
+
unref(editingListId) !== String(list.id) ? (openBlock(), createElementBlock("div", _hoisted_16$f, [
|
|
11450
11463
|
createElementVNode("div", _hoisted_17$e, [
|
|
11451
11464
|
createElementVNode("span", _hoisted_18$c, toDisplayString(list.name), 1),
|
|
11452
11465
|
__props.showDefaultIndicator !== false && list.isDefault ? (openBlock(), createElementBlock("span", _hoisted_19$c, toDisplayString(getLabel$1("defaultBadge", "Default")), 1)) : createCommentVNode("", true)
|
|
@@ -11879,8 +11892,8 @@ const _hoisted_12$e = {
|
|
|
11879
11892
|
};
|
|
11880
11893
|
const _hoisted_13$e = ["data-expanded"];
|
|
11881
11894
|
const _hoisted_14$e = ["onClick"];
|
|
11882
|
-
const _hoisted_15$
|
|
11883
|
-
const _hoisted_16$
|
|
11895
|
+
const _hoisted_15$e = { class: "propeller-grid-filters__group-title text-sm font-semibold text-muted-foreground truncate" };
|
|
11896
|
+
const _hoisted_16$e = {
|
|
11884
11897
|
key: 0,
|
|
11885
11898
|
class: "propeller-grid-filters__options pt-2 space-y-1.5"
|
|
11886
11899
|
};
|
|
@@ -12185,7 +12198,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12185
12198
|
class: "propeller-grid-filters__group-toggle w-full flex items-center justify-between gap-2 text-left py-1 hover:text-secondary transition-colors",
|
|
12186
12199
|
onClick: async (event) => toggleAccordion(getFilterName(filter))
|
|
12187
12200
|
}, [
|
|
12188
|
-
createElementVNode("span", _hoisted_15$
|
|
12201
|
+
createElementVNode("span", _hoisted_15$e, toDisplayString(getFilterTitle(filter)), 1),
|
|
12189
12202
|
(openBlock(), createElementBlock("svg", {
|
|
12190
12203
|
fill: "none",
|
|
12191
12204
|
stroke: "currentColor",
|
|
@@ -12200,7 +12213,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
12200
12213
|
}, null, -1)
|
|
12201
12214
|
])], 2))
|
|
12202
12215
|
], 8, _hoisted_14$e),
|
|
12203
|
-
isExpanded(getFilterName(filter)) ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
12216
|
+
isExpanded(getFilterName(filter)) ? (openBlock(), createElementBlock("div", _hoisted_16$e, [
|
|
12204
12217
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getValidOptions(filter), (option, index2) => {
|
|
12205
12218
|
return openBlock(), createElementBlock("label", {
|
|
12206
12219
|
key: option.value,
|
|
@@ -12387,7 +12400,7 @@ const _hoisted_14$d = {
|
|
|
12387
12400
|
strokeLinecap: "round",
|
|
12388
12401
|
strokeLinejoin: "round"
|
|
12389
12402
|
};
|
|
12390
|
-
const _hoisted_15$
|
|
12403
|
+
const _hoisted_15$d = {
|
|
12391
12404
|
key: 1,
|
|
12392
12405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12393
12406
|
width: "16",
|
|
@@ -12399,7 +12412,7 @@ const _hoisted_15$c = {
|
|
|
12399
12412
|
strokeLinecap: "round",
|
|
12400
12413
|
strokeLinejoin: "round"
|
|
12401
12414
|
};
|
|
12402
|
-
const _hoisted_16$
|
|
12415
|
+
const _hoisted_16$d = {
|
|
12403
12416
|
key: 0,
|
|
12404
12417
|
class: "propeller-grid-toolbar__active-filters flex flex-wrap gap-2 mb-4"
|
|
12405
12418
|
};
|
|
@@ -12605,7 +12618,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
12605
12618
|
currentViewMode.value === "grid" ? (openBlock(), createElementBlock("svg", _hoisted_14$d, [..._cache[6] || (_cache[6] = [
|
|
12606
12619
|
createStaticVNode('<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>', 6)
|
|
12607
12620
|
])])) : createCommentVNode("", true),
|
|
12608
|
-
currentViewMode.value === "list" ? (openBlock(), createElementBlock("svg", _hoisted_15$
|
|
12621
|
+
currentViewMode.value === "list" ? (openBlock(), createElementBlock("svg", _hoisted_15$d, [..._cache[7] || (_cache[7] = [
|
|
12609
12622
|
createElementVNode("rect", {
|
|
12610
12623
|
x: "3",
|
|
12611
12624
|
y: "3",
|
|
@@ -12634,7 +12647,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
12634
12647
|
], 8, _hoisted_13$d)
|
|
12635
12648
|
])
|
|
12636
12649
|
]),
|
|
12637
|
-
hasActiveFilters() ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
12650
|
+
hasActiveFilters() ? (openBlock(), createElementBlock("div", _hoisted_16$d, [
|
|
12638
12651
|
createElementVNode("button", {
|
|
12639
12652
|
type: "button",
|
|
12640
12653
|
class: "propeller-grid-toolbar__clear-all h-7 px-2 text-xs rounded-[var(--radius-control)] hover:bg-accent hover:text-accent-foreground transition-colors",
|
|
@@ -12727,8 +12740,8 @@ const _hoisted_14$c = {
|
|
|
12727
12740
|
key: 0,
|
|
12728
12741
|
class: "text-muted-foreground whitespace-nowrap ml-2"
|
|
12729
12742
|
};
|
|
12730
|
-
const _hoisted_15$
|
|
12731
|
-
const _hoisted_16$
|
|
12743
|
+
const _hoisted_15$c = { class: "line-clamp-1" };
|
|
12744
|
+
const _hoisted_16$c = {
|
|
12732
12745
|
key: 0,
|
|
12733
12746
|
class: "text-foreground-subtle whitespace-nowrap ml-2"
|
|
12734
12747
|
};
|
|
@@ -12951,8 +12964,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
12951
12964
|
key: idx,
|
|
12952
12965
|
class: "propeller-items-overview__item-bundle-item flex justify-between items-center text-xs text-muted-foreground"
|
|
12953
12966
|
}, [
|
|
12954
|
-
createElementVNode("span", _hoisted_15$
|
|
12955
|
-
!!getBundleItemPrice(bundleItem) ? (openBlock(), createElementBlock("span", _hoisted_16$
|
|
12967
|
+
createElementVNode("span", _hoisted_15$c, toDisplayString(getBundleItemName(bundleItem)), 1),
|
|
12968
|
+
!!getBundleItemPrice(bundleItem) ? (openBlock(), createElementBlock("span", _hoisted_16$c, toDisplayString(getBundleItemPrice(bundleItem)), 1)) : createCommentVNode("", true)
|
|
12956
12969
|
]);
|
|
12957
12970
|
}), 128))
|
|
12958
12971
|
])
|
|
@@ -13050,14 +13063,14 @@ const _hoisted_11$b = {
|
|
|
13050
13063
|
const _hoisted_12$b = ["data-active", "onMouseenter"];
|
|
13051
13064
|
const _hoisted_13$b = ["href", "onClick"];
|
|
13052
13065
|
const _hoisted_14$b = { class: "propeller-menu__label truncate" };
|
|
13053
|
-
const _hoisted_15$
|
|
13066
|
+
const _hoisted_15$b = {
|
|
13054
13067
|
key: 0,
|
|
13055
13068
|
fill: "none",
|
|
13056
13069
|
stroke: "currentColor",
|
|
13057
13070
|
viewBox: "0 0 24 24",
|
|
13058
13071
|
class: "propeller-menu__chevron w-4 h-4 text-muted-foreground"
|
|
13059
13072
|
};
|
|
13060
|
-
const _hoisted_16$
|
|
13073
|
+
const _hoisted_16$b = {
|
|
13061
13074
|
key: 0,
|
|
13062
13075
|
class: "propeller-menu__list w-64 py-1 flex-shrink-0",
|
|
13063
13076
|
"data-level": "3"
|
|
@@ -13258,7 +13271,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13258
13271
|
class: normalizeClass(`propeller-menu__link flex items-center justify-between px-4 py-2.5 text-sm transition-colors ${hoveredL2Id.value === l2.categoryId ? "bg-accent text-accent-foreground" : "text-foreground hover:bg-accent/50"}`)
|
|
13259
13272
|
}, [
|
|
13260
13273
|
createElementVNode("span", _hoisted_14$b, toDisplayString(getCategoryName(l2)), 1),
|
|
13261
|
-
getSubCategories(l2).length > 0 ? (openBlock(), createElementBlock("svg", _hoisted_15$
|
|
13274
|
+
getSubCategories(l2).length > 0 ? (openBlock(), createElementBlock("svg", _hoisted_15$b, [..._cache[3] || (_cache[3] = [
|
|
13262
13275
|
createElementVNode("path", {
|
|
13263
13276
|
strokeLinecap: "round",
|
|
13264
13277
|
strokeLinejoin: "round",
|
|
@@ -13276,7 +13289,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
13276
13289
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
13277
13290
|
hoveredL1Id.value === l1.categoryId ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(getSubCategories(l1), (l2, index2) => {
|
|
13278
13291
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
13279
|
-
hoveredL2Id.value === l2.categoryId && getSubCategories(l2).length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_16$
|
|
13292
|
+
hoveredL2Id.value === l2.categoryId && getSubCategories(l2).length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_16$b, [
|
|
13280
13293
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getSubCategories(l2), (l3, idx3) => {
|
|
13281
13294
|
return openBlock(), createElementBlock("li", {
|
|
13282
13295
|
key: `l3-${l3.categoryId}-${idx3}`,
|
|
@@ -13731,8 +13744,8 @@ const _hoisted_14$a = {
|
|
|
13731
13744
|
key: 2,
|
|
13732
13745
|
class: "flex space-x-2 w-full"
|
|
13733
13746
|
};
|
|
13734
|
-
const _hoisted_15$
|
|
13735
|
-
const _hoisted_16$
|
|
13747
|
+
const _hoisted_15$a = ["placeholder", "value"];
|
|
13748
|
+
const _hoisted_16$a = ["placeholder", "value"];
|
|
13736
13749
|
const _hoisted_17$9 = {
|
|
13737
13750
|
key: 3,
|
|
13738
13751
|
class: "flex space-x-2 w-full"
|
|
@@ -14055,7 +14068,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14055
14068
|
}
|
|
14056
14069
|
};
|
|
14057
14070
|
})
|
|
14058
|
-
}, null, 40, _hoisted_15$
|
|
14071
|
+
}, null, 40, _hoisted_15$a),
|
|
14059
14072
|
createElementVNode("input", {
|
|
14060
14073
|
type: "number",
|
|
14061
14074
|
placeholder: getLabel$1("priceMaxPlaceholder", "Max"),
|
|
@@ -14071,7 +14084,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14071
14084
|
}
|
|
14072
14085
|
};
|
|
14073
14086
|
})
|
|
14074
|
-
}, null, 40, _hoisted_16$
|
|
14087
|
+
}, null, 40, _hoisted_16$a)
|
|
14075
14088
|
])) : createCommentVNode("", true),
|
|
14076
14089
|
field === "sortInput" ? (openBlock(), createElementBlock("div", _hoisted_17$9, [
|
|
14077
14090
|
createElementVNode("select", {
|
|
@@ -14300,8 +14313,8 @@ const _hoisted_14$9 = {
|
|
|
14300
14313
|
key: 1,
|
|
14301
14314
|
class: "text-muted-foreground"
|
|
14302
14315
|
};
|
|
14303
|
-
const _hoisted_15$
|
|
14304
|
-
const _hoisted_16$
|
|
14316
|
+
const _hoisted_15$9 = { class: "px-4 py-3 text-muted-foreground" };
|
|
14317
|
+
const _hoisted_16$9 = { class: "px-4 py-3 text-muted-foreground" };
|
|
14305
14318
|
const _hoisted_17$8 = { class: "px-4 py-3 text-muted-foreground" };
|
|
14306
14319
|
const _hoisted_18$7 = { class: "px-4 py-3 text-right" };
|
|
14307
14320
|
const _hoisted_19$7 = ["onClick"];
|
|
@@ -14418,8 +14431,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14418
14431
|
!!shipment.status ? (openBlock(), createElementBlock("span", _hoisted_13$9, toDisplayString(shipment.status), 1)) : createCommentVNode("", true),
|
|
14419
14432
|
!shipment.status ? (openBlock(), createElementBlock("span", _hoisted_14$9, "-")) : createCommentVNode("", true)
|
|
14420
14433
|
]),
|
|
14421
|
-
createElementVNode("td", _hoisted_15$
|
|
14422
|
-
createElementVNode("td", _hoisted_16$
|
|
14434
|
+
createElementVNode("td", _hoisted_15$9, toDisplayString(formatDate(shipment.createdAt)), 1),
|
|
14435
|
+
createElementVNode("td", _hoisted_16$9, [
|
|
14423
14436
|
!!shipment.expectedDeliveryAt ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
14424
14437
|
createTextVNode(toDisplayString(formatDate(shipment.expectedDeliveryAt)), 1)
|
|
14425
14438
|
], 64)) : createCommentVNode("", true),
|
|
@@ -14685,8 +14698,8 @@ const _hoisted_13$8 = {
|
|
|
14685
14698
|
strokeWidth: 2.5
|
|
14686
14699
|
};
|
|
14687
14700
|
const _hoisted_14$8 = { class: "propeller-product-bundles__summary flex-shrink-0 w-full lg:w-72 pl-0 lg:pl-6" };
|
|
14688
|
-
const _hoisted_15$
|
|
14689
|
-
const _hoisted_16$
|
|
14701
|
+
const _hoisted_15$8 = { class: "propeller-product-bundles__title text-xl font-bold text-foreground mb-1" };
|
|
14702
|
+
const _hoisted_16$8 = {
|
|
14690
14703
|
key: 0,
|
|
14691
14704
|
class: "propeller-product-bundles__description text-sm text-muted-foreground mb-3"
|
|
14692
14705
|
};
|
|
@@ -15007,8 +15020,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15007
15020
|
])]))
|
|
15008
15021
|
]),
|
|
15009
15022
|
createElementVNode("div", _hoisted_14$8, [
|
|
15010
|
-
createElementVNode("h3", _hoisted_15$
|
|
15011
|
-
bundle.description ? (openBlock(), createElementBlock("p", _hoisted_16$
|
|
15023
|
+
createElementVNode("h3", _hoisted_15$8, toDisplayString(bundle.name || getLabel$1("title", "Combo deal")), 1),
|
|
15024
|
+
bundle.description ? (openBlock(), createElementBlock("p", _hoisted_16$8, toDisplayString(bundle.description), 1)) : createCommentVNode("", true),
|
|
15012
15025
|
bundle.condition ? (openBlock(), createElementBlock("p", _hoisted_17$7, [
|
|
15013
15026
|
bundle.condition === unref(BundleCondition).ALL ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15014
15027
|
createTextVNode(toDisplayString(getLabel$1("condition_ALL", "Discount on all items")), 1)
|
|
@@ -15201,8 +15214,8 @@ const _hoisted_11$7 = { class: "propeller-product-card__labels flex flex-col gap
|
|
|
15201
15214
|
const _hoisted_12$7 = { class: "propeller-product-card__manufacturer text-xs text-muted-foreground" };
|
|
15202
15215
|
const _hoisted_13$7 = { class: "propeller-product-card__description line-clamp-2 text-xs text-muted-foreground" };
|
|
15203
15216
|
const _hoisted_14$7 = { class: "propeller-product-card__footer w-full md:w-auto flex flex-col gap-2 md:flex-row md:items-center md:gap-3 px-4 py-2 md:py-0 border-t md:border-t-0 border-border-subtle" };
|
|
15204
|
-
const _hoisted_15$
|
|
15205
|
-
const _hoisted_16$
|
|
15217
|
+
const _hoisted_15$7 = { class: "propeller-product-card__footer-meta flex items-center justify-between gap-3 md:contents" };
|
|
15218
|
+
const _hoisted_16$7 = { class: "propeller-product-card__price" };
|
|
15206
15219
|
const _hoisted_17$6 = { class: "propeller-product-card__cta w-full md:w-auto md:flex-shrink-0 md:ml-auto" };
|
|
15207
15220
|
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
15221
|
const _hoisted_19$5 = { class: "propeller-product-card__sku font-mono text-xs text-foreground-subtle" };
|
|
@@ -15557,7 +15570,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15557
15570
|
])
|
|
15558
15571
|
]),
|
|
15559
15572
|
createElementVNode("div", _hoisted_14$7, [
|
|
15560
|
-
createElementVNode("div", _hoisted_15$
|
|
15573
|
+
createElementVNode("div", _hoisted_15$7, [
|
|
15561
15574
|
props.showStock && !!props.product.inventory ? renderSlot(_ctx.$slots, "stock", {
|
|
15562
15575
|
key: 0,
|
|
15563
15576
|
product: __props.product,
|
|
@@ -15587,7 +15600,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15587
15600
|
currency: __props.currency,
|
|
15588
15601
|
labels: props.priceLabels
|
|
15589
15602
|
}, () => [
|
|
15590
|
-
createElementVNode("div", _hoisted_16$
|
|
15603
|
+
createElementVNode("div", _hoisted_16$7, [
|
|
15591
15604
|
props.priceComponent ? (openBlock(), createBlock(resolveDynamicComponent(PriceImpl.value), {
|
|
15592
15605
|
key: 0,
|
|
15593
15606
|
price: __props.product.price,
|
|
@@ -17240,11 +17253,11 @@ const _hoisted_14$6 = {
|
|
|
17240
17253
|
key: 1,
|
|
17241
17254
|
class: "mb-6 space-y-3"
|
|
17242
17255
|
};
|
|
17243
|
-
const _hoisted_15$
|
|
17256
|
+
const _hoisted_15$6 = {
|
|
17244
17257
|
key: 0,
|
|
17245
17258
|
class: "text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2"
|
|
17246
17259
|
};
|
|
17247
|
-
const _hoisted_16$
|
|
17260
|
+
const _hoisted_16$6 = {
|
|
17248
17261
|
key: 1,
|
|
17249
17262
|
class: "overflow-hidden rounded-[var(--radius-container)] border border-border"
|
|
17250
17263
|
};
|
|
@@ -17422,8 +17435,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
17422
17435
|
key: group,
|
|
17423
17436
|
class: "mb-6"
|
|
17424
17437
|
}, [
|
|
17425
|
-
!!group ? (openBlock(), createElementBlock("h4", _hoisted_15$
|
|
17426
|
-
__props.layout !== "list" ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
17438
|
+
!!group ? (openBlock(), createElementBlock("h4", _hoisted_15$6, toDisplayString(group), 1)) : createCommentVNode("", true),
|
|
17439
|
+
__props.layout !== "list" ? (openBlock(), createElementBlock("div", _hoisted_16$6, [
|
|
17427
17440
|
createElementVNode("table", _hoisted_17$5, [
|
|
17428
17441
|
createElementVNode("tbody", _hoisted_18$4, [
|
|
17429
17442
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getAttributesByGroup(group), (attr, i2) => {
|
|
@@ -17487,11 +17500,11 @@ const _hoisted_13$5 = {
|
|
|
17487
17500
|
class: "propeller-product-tabs__accordion-panel px-4 pb-4"
|
|
17488
17501
|
};
|
|
17489
17502
|
const _hoisted_14$5 = { key: 2 };
|
|
17490
|
-
const _hoisted_15$
|
|
17503
|
+
const _hoisted_15$5 = {
|
|
17491
17504
|
key: 0,
|
|
17492
17505
|
class: "propeller-product-tabs__accordion-panel px-4 pb-4"
|
|
17493
17506
|
};
|
|
17494
|
-
const _hoisted_16$
|
|
17507
|
+
const _hoisted_16$5 = { key: 3 };
|
|
17495
17508
|
const _hoisted_17$4 = {
|
|
17496
17509
|
key: 0,
|
|
17497
17510
|
class: "propeller-product-tabs__accordion-panel px-4 pb-4"
|
|
@@ -17793,7 +17806,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
17793
17806
|
createElementVNode("path", { d: "m6 9 6 6 6-6" }, null, -1)
|
|
17794
17807
|
])], 2))
|
|
17795
17808
|
]),
|
|
17796
|
-
isActive("downloads") ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
17809
|
+
isActive("downloads") ? (openBlock(), createElementBlock("div", _hoisted_15$5, [
|
|
17797
17810
|
(openBlock(), createBlock(resolveDynamicComponent(ProductDownloadsImpl.value), {
|
|
17798
17811
|
downloads: __props.product.media?.documents,
|
|
17799
17812
|
language: __props.language || "NL",
|
|
@@ -17801,7 +17814,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
17801
17814
|
}, null, 8, ["downloads", "language", "labels"]))
|
|
17802
17815
|
])) : createCommentVNode("", true)
|
|
17803
17816
|
])) : createCommentVNode("", true),
|
|
17804
|
-
isTabVisible("videos") ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
17817
|
+
isTabVisible("videos") ? (openBlock(), createElementBlock("div", _hoisted_16$5, [
|
|
17805
17818
|
createElementVNode("button", {
|
|
17806
17819
|
type: "button",
|
|
17807
17820
|
class: "propeller-product-tabs__accordion-trigger flex items-center justify-between w-full px-4 py-3 text-sm font-medium text-left",
|
|
@@ -17855,8 +17868,8 @@ const _hoisted_11$4 = { class: "text-left px-4 py-3 font-medium text-muted-foreg
|
|
|
17855
17868
|
const _hoisted_12$4 = { class: "text-left px-4 py-3 font-medium text-muted-foreground" };
|
|
17856
17869
|
const _hoisted_13$4 = { class: "divide-y divide-border" };
|
|
17857
17870
|
const _hoisted_14$4 = { class: "px-4 py-3 text-muted-foreground" };
|
|
17858
|
-
const _hoisted_15$
|
|
17859
|
-
const _hoisted_16$
|
|
17871
|
+
const _hoisted_15$4 = { class: "px-4 py-3" };
|
|
17872
|
+
const _hoisted_16$4 = { class: "font-medium" };
|
|
17860
17873
|
const _hoisted_17$3 = { class: "text-xs text-muted-foreground mt-0.5" };
|
|
17861
17874
|
const _hoisted_18$3 = { class: "px-4 py-3" };
|
|
17862
17875
|
const _hoisted_19$3 = ["value", "disabled", "onChange"];
|
|
@@ -18037,8 +18050,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
18037
18050
|
class: "hover:bg-surface-hover/30 transition-colors"
|
|
18038
18051
|
}, [
|
|
18039
18052
|
createElementVNode("td", _hoisted_14$4, toDisplayString(contact.contactId), 1),
|
|
18040
|
-
createElementVNode("td", _hoisted_15$
|
|
18041
|
-
createElementVNode("div", _hoisted_16$
|
|
18053
|
+
createElementVNode("td", _hoisted_15$4, [
|
|
18054
|
+
createElementVNode("div", _hoisted_16$4, toDisplayString([
|
|
18042
18055
|
contact.firstName,
|
|
18043
18056
|
contact.middleName,
|
|
18044
18057
|
contact.lastName
|
|
@@ -18305,8 +18318,8 @@ const _hoisted_11$3 = { class: "text-left px-4 py-3 font-medium text-muted-foreg
|
|
|
18305
18318
|
const _hoisted_12$3 = { class: "text-left px-4 py-3 font-medium text-muted-foreground" };
|
|
18306
18319
|
const _hoisted_13$3 = { class: "divide-y divide-border" };
|
|
18307
18320
|
const _hoisted_14$3 = { class: "px-4 py-3 text-muted-foreground" };
|
|
18308
|
-
const _hoisted_15$
|
|
18309
|
-
const _hoisted_16$
|
|
18321
|
+
const _hoisted_15$3 = { class: "px-4 py-3" };
|
|
18322
|
+
const _hoisted_16$3 = { class: "px-4 py-3 font-medium" };
|
|
18310
18323
|
const _hoisted_17$2 = { class: "px-4 py-3" };
|
|
18311
18324
|
const _hoisted_18$2 = { class: "font-medium" };
|
|
18312
18325
|
const _hoisted_19$2 = { class: "text-xs text-muted-foreground mt-0.5" };
|
|
@@ -18479,8 +18492,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
18479
18492
|
class: "hover:bg-surface-hover/30 transition-colors"
|
|
18480
18493
|
}, [
|
|
18481
18494
|
createElementVNode("td", _hoisted_14$3, toDisplayString(formatDate(cart.lastModifiedAt ?? "")), 1),
|
|
18482
|
-
createElementVNode("td", _hoisted_15$
|
|
18483
|
-
createElementVNode("td", _hoisted_16$
|
|
18495
|
+
createElementVNode("td", _hoisted_15$3, toDisplayString(unref(getTotalQuantity)(cart)), 1),
|
|
18496
|
+
createElementVNode("td", _hoisted_16$3, toDisplayString(formatPrice$1(cart.total?.totalNet ?? 0)), 1),
|
|
18484
18497
|
createElementVNode("td", _hoisted_17$2, [
|
|
18485
18498
|
createElementVNode("div", _hoisted_18$2, toDisplayString(unref(getContactName)(cart.contact)), 1),
|
|
18486
18499
|
createElementVNode("div", _hoisted_19$2, toDisplayString(cart.contact?.email), 1)
|
|
@@ -18791,8 +18804,8 @@ const _hoisted_11$2 = { class: "text-sm font-medium leading-none" };
|
|
|
18791
18804
|
const _hoisted_12$2 = { class: "flex gap-4" };
|
|
18792
18805
|
const _hoisted_13$2 = { class: "flex items-center gap-2 text-sm" };
|
|
18793
18806
|
const _hoisted_14$2 = ["checked", "disabled"];
|
|
18794
|
-
const _hoisted_15$
|
|
18795
|
-
const _hoisted_16$
|
|
18807
|
+
const _hoisted_15$2 = { class: "flex items-center gap-2 text-sm" };
|
|
18808
|
+
const _hoisted_16$2 = ["checked", "disabled"];
|
|
18796
18809
|
const _hoisted_17$1 = { class: "flex items-center gap-2 text-sm" };
|
|
18797
18810
|
const _hoisted_18$1 = ["checked", "disabled"];
|
|
18798
18811
|
const _hoisted_19$1 = { class: "space-y-2" };
|
|
@@ -19293,7 +19306,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19293
19306
|
}, null, 40, _hoisted_14$2),
|
|
19294
19307
|
createTextVNode(" " + toDisplayString(genderMrLabel.value), 1)
|
|
19295
19308
|
]),
|
|
19296
|
-
createElementVNode("label", _hoisted_15$
|
|
19309
|
+
createElementVNode("label", _hoisted_15$2, [
|
|
19297
19310
|
createElementVNode("input", {
|
|
19298
19311
|
type: "radio",
|
|
19299
19312
|
name: "gender",
|
|
@@ -19304,7 +19317,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19304
19317
|
gender.value = unref(Gender).F;
|
|
19305
19318
|
}),
|
|
19306
19319
|
disabled: unref(loading)
|
|
19307
|
-
}, null, 40, _hoisted_16$
|
|
19320
|
+
}, null, 40, _hoisted_16$2),
|
|
19308
19321
|
createTextVNode(" " + toDisplayString(genderMrsLabel.value), 1)
|
|
19309
19322
|
]),
|
|
19310
19323
|
createElementVNode("label", _hoisted_17$1, [
|
|
@@ -19859,9 +19872,11 @@ const _hoisted_12$1 = {
|
|
|
19859
19872
|
};
|
|
19860
19873
|
const _hoisted_13$1 = {
|
|
19861
19874
|
key: 1,
|
|
19862
|
-
class: "propeller-search-bar__result-price text-sm font-semibold text-foreground flex-shrink-0"
|
|
19875
|
+
class: "propeller-search-bar__result-price text-sm font-semibold text-foreground flex-shrink-0 text-right"
|
|
19863
19876
|
};
|
|
19864
|
-
const _hoisted_14$1 = {
|
|
19877
|
+
const _hoisted_14$1 = { class: "propeller-search-bar__result-price-value" };
|
|
19878
|
+
const _hoisted_15$1 = { class: "propeller-search-bar__result-price-label block text-xs font-normal text-muted-foreground" };
|
|
19879
|
+
const _hoisted_16$1 = {
|
|
19865
19880
|
key: 1,
|
|
19866
19881
|
class: "propeller-search-bar__empty p-4 text-center text-muted-foreground"
|
|
19867
19882
|
};
|
|
@@ -19882,6 +19897,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
19882
19897
|
onViewAllClick: { type: Function },
|
|
19883
19898
|
formatPrice: { type: Function },
|
|
19884
19899
|
labels: {},
|
|
19900
|
+
includeTax: { type: Boolean },
|
|
19901
|
+
priceLabels: {},
|
|
19885
19902
|
containerClassName: {},
|
|
19886
19903
|
taxZone: {},
|
|
19887
19904
|
companyId: {},
|
|
@@ -19971,6 +19988,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
19971
19988
|
}
|
|
19972
19989
|
return formatPrice(price || 0, { symbol: infra.currency ?? "€" });
|
|
19973
19990
|
}
|
|
19991
|
+
const useTax = computed(() => !!infra.includeTax);
|
|
19992
|
+
function leadingPrice(result) {
|
|
19993
|
+
return useTax.value ? result.priceNet ?? result.price ?? 0 : result.priceGross ?? result.price ?? 0;
|
|
19994
|
+
}
|
|
19995
|
+
function priceTaxLabel() {
|
|
19996
|
+
return useTax.value ? getLabel(props.priceLabels, "inclTax", "incl. VAT") : getLabel(props.priceLabels, "exclTax", "excl. VAT");
|
|
19997
|
+
}
|
|
19974
19998
|
function mapProductToResult(item) {
|
|
19975
19999
|
const isCluster = "clusterId" in item;
|
|
19976
20000
|
const displayItem = isCluster ? item.defaultProduct : item;
|
|
@@ -19979,11 +20003,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
19979
20003
|
const urls = infra.configuration?.urls;
|
|
19980
20004
|
const builder = isCluster ? urls?.getClusterUrl : urls?.getProductUrl;
|
|
19981
20005
|
const url = typeof builder === "function" ? builder(item, infra.language) : isCluster ? "/cluster/" + id + "/" + slug : "/product/" + id + "/" + slug;
|
|
20006
|
+
const priceNet = displayItem?.price?.net || 0;
|
|
20007
|
+
const priceGross = displayItem?.price?.gross || 0;
|
|
19982
20008
|
return {
|
|
19983
20009
|
id,
|
|
19984
20010
|
name: item.names?.[0]?.value || "Product",
|
|
19985
20011
|
sku: item.sku || displayItem?.sku || "",
|
|
19986
|
-
price
|
|
20012
|
+
// `price` stays gross for back-compat; the row picks net/gross per toggle.
|
|
20013
|
+
price: priceGross,
|
|
20014
|
+
priceNet,
|
|
20015
|
+
priceGross,
|
|
19987
20016
|
imageUrl: displayItem?.media?.images?.items?.[0]?.imageVariants?.[0]?.url || "",
|
|
19988
20017
|
url,
|
|
19989
20018
|
isCluster
|
|
@@ -20081,7 +20110,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
20081
20110
|
createElementVNode("div", _hoisted_11$1, toDisplayString(result.name), 1),
|
|
20082
20111
|
result.sku ? (openBlock(), createElementBlock("div", _hoisted_12$1, "SKU: " + toDisplayString(result.sku), 1)) : createCommentVNode("", true)
|
|
20083
20112
|
]),
|
|
20084
|
-
result.price !== void 0 && result.price !== null ? (openBlock(), createElementBlock("div", _hoisted_13$1,
|
|
20113
|
+
result.price !== void 0 && result.price !== null ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
20114
|
+
createElementVNode("span", _hoisted_14$1, toDisplayString(formatItemPrice(leadingPrice(result))), 1),
|
|
20115
|
+
createElementVNode("span", _hoisted_15$1, toDisplayString(priceTaxLabel()), 1)
|
|
20116
|
+
])) : createCommentVNode("", true)
|
|
20085
20117
|
], 8, _hoisted_7$1);
|
|
20086
20118
|
}), 128))
|
|
20087
20119
|
]),
|
|
@@ -20091,7 +20123,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
20091
20123
|
onClick: _cache[2] || (_cache[2] = async (event) => handleViewAllClick())
|
|
20092
20124
|
}, toDisplayString(getLabel$1("viewAll", "View all results")) + " (" + toDisplayString(itemsFound.value) + ") ", 1)) : createCommentVNode("", true)
|
|
20093
20125
|
], 64)) : createCommentVNode("", true),
|
|
20094
|
-
results.value.length === 0 && searchTerm.value.length >= minLength.value && !unref(isLoading) ? (openBlock(), createElementBlock("div",
|
|
20126
|
+
results.value.length === 0 && searchTerm.value.length >= minLength.value && !unref(isLoading) ? (openBlock(), createElementBlock("div", _hoisted_16$1, toDisplayString(getLabel$1("noResults", "No products found for")) + ' "' + toDisplayString(searchTerm.value) + '" ', 1)) : createCommentVNode("", true)
|
|
20095
20127
|
])) : createCommentVNode("", true)
|
|
20096
20128
|
], 10, _hoisted_1$1);
|
|
20097
20129
|
};
|