@stock-in-the-channel/sinch-vue-components 0.0.313 → 0.0.315
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -14696,13 +14696,12 @@ const OL = (e, t, n, r, o, a, i) => {
|
|
|
14696
14696
|
props: {
|
|
14697
14697
|
brands: {}
|
|
14698
14698
|
},
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
(W(!0), ue(rt, null, jt(n.brands, (i) => (W(), ue("div", {
|
|
14699
|
+
setup(e) {
|
|
14700
|
+
const t = e;
|
|
14701
|
+
return (n, r) => (W(), ue("div", hT, [
|
|
14702
|
+
(W(!0), ue(rt, null, jt(t.brands, (o) => (W(), ue("div", {
|
|
14704
14703
|
class: "col-xl-3 col-lg-3 col-md-4 col-sm-6 col-xs-12 q-ma-none q-pa-sm vendor-tile",
|
|
14705
|
-
key:
|
|
14704
|
+
key: o.name
|
|
14706
14705
|
}, [
|
|
14707
14706
|
A(q(rn), { flat: "" }, {
|
|
14708
14707
|
default: H(() => [
|
|
@@ -14711,24 +14710,24 @@ const OL = (e, t, n, r, o, a, i) => {
|
|
|
14711
14710
|
A(q(fn), {
|
|
14712
14711
|
clickable: "",
|
|
14713
14712
|
tag: "a",
|
|
14714
|
-
|
|
14713
|
+
href: `/search?brandId=${o.id}`
|
|
14715
14714
|
}, {
|
|
14716
14715
|
default: H(() => [
|
|
14717
14716
|
C("div", gT, [
|
|
14718
14717
|
C("div", yT, [
|
|
14719
|
-
|
|
14718
|
+
o.imageUrl ? (W(), He(q(va), {
|
|
14720
14719
|
key: 0,
|
|
14721
14720
|
class: "thumbnail-image",
|
|
14722
|
-
src:
|
|
14721
|
+
src: o.imageUrl,
|
|
14723
14722
|
"spinner-color": "primary",
|
|
14724
|
-
srcset: `${
|
|
14723
|
+
srcset: `${o.imageUrl} 200w`,
|
|
14725
14724
|
sizes: "(max-width: 200px) 200w"
|
|
14726
|
-
}, null, 8, ["src", "srcset"])) : (W(), ue("span", bT, V(
|
|
14725
|
+
}, null, 8, ["src", "srcset"])) : (W(), ue("span", bT, V(o.name), 1))
|
|
14727
14726
|
])
|
|
14728
14727
|
])
|
|
14729
14728
|
]),
|
|
14730
14729
|
_: 2
|
|
14731
|
-
}, 1032, ["
|
|
14730
|
+
}, 1032, ["href"])
|
|
14732
14731
|
]),
|
|
14733
14732
|
_: 2
|
|
14734
14733
|
}, 1024)
|
|
@@ -14757,62 +14756,63 @@ const OL = (e, t, n, r, o, a, i) => {
|
|
|
14757
14756
|
hasLoadingError: { type: Boolean },
|
|
14758
14757
|
categories: {}
|
|
14759
14758
|
},
|
|
14760
|
-
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
return (o, a) => (W(), ue("div", wT, [
|
|
14759
|
+
setup(e) {
|
|
14760
|
+
const t = e;
|
|
14761
|
+
return (n, r) => (W(), ue("div", wT, [
|
|
14764
14762
|
xe(C("div", ST, [
|
|
14765
14763
|
A(q(Zl), {
|
|
14766
14764
|
color: "primary",
|
|
14767
14765
|
size: "10em"
|
|
14768
14766
|
})
|
|
14769
14767
|
], 512), [
|
|
14770
|
-
[Ie,
|
|
14768
|
+
[Ie, t.isLoading]
|
|
14771
14769
|
]),
|
|
14772
|
-
Array.isArray(
|
|
14770
|
+
Array.isArray(n.categories) && n.categories.length > 0 ? (W(), ue("div", kT, [
|
|
14773
14771
|
C("div", CT, [
|
|
14774
|
-
(W(!0), ue(rt, null, jt(
|
|
14772
|
+
(W(!0), ue(rt, null, jt(n.categories, (o) => (W(), ue("div", {
|
|
14775
14773
|
class: "col-xl-3 col-lg-3 col-md-4 col-sm-6 col-xs-12 q-ma-none q-pa-sm",
|
|
14776
|
-
key:
|
|
14774
|
+
key: o.id
|
|
14777
14775
|
}, [
|
|
14778
14776
|
A(q(rn), { flat: "" }, {
|
|
14779
14777
|
default: H(() => [
|
|
14780
14778
|
A(q(bt), {
|
|
14781
14779
|
class: "cursor-pointer",
|
|
14782
|
-
|
|
14780
|
+
clickable: "",
|
|
14781
|
+
tag: "a",
|
|
14782
|
+
href: `/search?categoryId=${o.id}`
|
|
14783
14783
|
}, {
|
|
14784
14784
|
default: H(() => [
|
|
14785
14785
|
C("div", xT, [
|
|
14786
14786
|
C("div", ET, [
|
|
14787
|
-
|
|
14787
|
+
o.imageUrl ? (W(), ue("img", {
|
|
14788
14788
|
key: 0,
|
|
14789
|
-
src:
|
|
14790
|
-
alt:
|
|
14789
|
+
src: o.imageUrl,
|
|
14790
|
+
alt: o.name,
|
|
14791
14791
|
width: "72",
|
|
14792
14792
|
"spinner-color": "primary"
|
|
14793
14793
|
}, null, 8, TT)) : (W(), ue("img", {
|
|
14794
14794
|
key: 1,
|
|
14795
14795
|
src: "/img/placeholder.png",
|
|
14796
|
-
alt:
|
|
14796
|
+
alt: o.name,
|
|
14797
14797
|
width: "72",
|
|
14798
14798
|
"spinner-color": "primary"
|
|
14799
14799
|
}, null, 8, OT))
|
|
14800
14800
|
]),
|
|
14801
14801
|
C("div", IT, [
|
|
14802
|
-
C("div", qT, V(
|
|
14803
|
-
|
|
14802
|
+
C("div", qT, V(o.name), 1),
|
|
14803
|
+
o.description ? (W(), ue("div", PT, V(o.description), 1)) : Be("", !0)
|
|
14804
14804
|
])
|
|
14805
14805
|
])
|
|
14806
14806
|
]),
|
|
14807
14807
|
_: 2
|
|
14808
|
-
}, 1032, ["
|
|
14808
|
+
}, 1032, ["href"])
|
|
14809
14809
|
]),
|
|
14810
14810
|
_: 2
|
|
14811
14811
|
}, 1024)
|
|
14812
14812
|
]))), 128))
|
|
14813
14813
|
])
|
|
14814
|
-
])) :
|
|
14815
|
-
|
|
14814
|
+
])) : n.isLoading ? Be("", !0) : (W(), ue("div", $T, [
|
|
14815
|
+
t.hasLoadingError ? (W(), ue("div", RT, V(n.$t("Error loading categories")), 1)) : (W(), ue("div", NT, V(n.$t("No categories found")), 1))
|
|
14816
14816
|
]))
|
|
14817
14817
|
]));
|
|
14818
14818
|
}
|
|
@@ -16185,13 +16185,12 @@ const DT = { class: "list-row row q-pa-xs" }, MT = { class: "row" }, FT = { clas
|
|
|
16185
16185
|
props: {
|
|
16186
16186
|
providers: {}
|
|
16187
16187
|
},
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
(W(!0), ue(rt, null, jt(n.providers, (i) => (W(), ue("div", {
|
|
16188
|
+
setup(e) {
|
|
16189
|
+
const t = e;
|
|
16190
|
+
return (n, r) => (W(), ue("div", DT, [
|
|
16191
|
+
(W(!0), ue(rt, null, jt(t.providers, (o) => (W(), ue("div", {
|
|
16193
16192
|
class: "col-xl-3 col-lg-3 col-md-4 col-sm-6 col-xs-12 q-ma-none q-pa-sm vendor-tile",
|
|
16194
|
-
key:
|
|
16193
|
+
key: o.name
|
|
16195
16194
|
}, [
|
|
16196
16195
|
A(q(rn), { flat: "" }, {
|
|
16197
16196
|
default: H(() => [
|
|
@@ -16200,24 +16199,24 @@ const DT = { class: "list-row row q-pa-xs" }, MT = { class: "row" }, FT = { clas
|
|
|
16200
16199
|
A(q(fn), {
|
|
16201
16200
|
clickable: "",
|
|
16202
16201
|
tag: "a",
|
|
16203
|
-
|
|
16202
|
+
href: `/search?distributorId=${o.distributorId}`
|
|
16204
16203
|
}, {
|
|
16205
16204
|
default: H(() => [
|
|
16206
16205
|
C("div", MT, [
|
|
16207
16206
|
C("div", FT, [
|
|
16208
|
-
|
|
16207
|
+
o.imageUrl ? (W(), He(q(va), {
|
|
16209
16208
|
key: 0,
|
|
16210
16209
|
class: "thumbnail-image",
|
|
16211
|
-
src:
|
|
16210
|
+
src: o.imageUrl,
|
|
16212
16211
|
"spinner-color": "primary",
|
|
16213
|
-
srcset: `${
|
|
16212
|
+
srcset: `${o.imageUrl} 200w`,
|
|
16214
16213
|
sizes: "(max-width: 200px) 200w"
|
|
16215
|
-
}, null, 8, ["src", "srcset"])) : (W(), ue("span", VT, V(
|
|
16214
|
+
}, null, 8, ["src", "srcset"])) : (W(), ue("span", VT, V(o.name), 1))
|
|
16216
16215
|
])
|
|
16217
16216
|
])
|
|
16218
16217
|
]),
|
|
16219
16218
|
_: 2
|
|
16220
|
-
}, 1032, ["
|
|
16219
|
+
}, 1032, ["href"])
|
|
16221
16220
|
]),
|
|
16222
16221
|
_: 2
|
|
16223
16222
|
}, 1024)
|
|
@@ -24938,7 +24937,7 @@ const Yt = sy, d$ = { class: "text-center q-ma-xl spinner-overlay" }, f$ = { cla
|
|
|
24938
24937
|
distributorName: T.distributorName,
|
|
24939
24938
|
distributorId: T.distributorId,
|
|
24940
24939
|
margin: c.enabledDistributorIds.some((M) => M == T.distributorId) && T.rrp && T.rrp > 0 && T.clientPrice && T.clientPrice > 0 ? Math.round((T.rrp - T.clientPrice) * 100 / T.rrp) / 100 : null
|
|
24941
|
-
}))), I && I.sku && (a.value = await g(I.sku));
|
|
24940
|
+
}))), I && I.sku && (a.value = await g(I.sku)), document.title = r.value.title ? `${r.value.title} | Cloud in the Channel` : "Product Details | Cloud in the Channel";
|
|
24942
24941
|
} catch (O) {
|
|
24943
24942
|
console.error(O);
|
|
24944
24943
|
} finally {
|
|
@@ -3,15 +3,11 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
hasLoadingError: boolean;
|
|
5
5
|
categories: Category[];
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
onCategorySelected: (category: Category, evt: Event) => void;
|
|
8
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
7
|
isLoading: boolean;
|
|
10
8
|
hasLoadingError: boolean;
|
|
11
9
|
categories: Category[];
|
|
12
|
-
}
|
|
13
|
-
onOnCategorySelected?: ((category: Category, evt: Event) => any) | undefined;
|
|
14
|
-
}, {}, {}>;
|
|
10
|
+
}>>>, {}, {}>;
|
|
15
11
|
export default _default;
|
|
16
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
13
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { ProvidersCatalogProvider } from '@/types/ProvidersCatalogProvider';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
providers: ProvidersCatalogProvider[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
click: (e: Event, provider: ProvidersCatalogProvider) => void;
|
|
6
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
5
|
providers: ProvidersCatalogProvider[];
|
|
8
|
-
}
|
|
9
|
-
onClick?: ((e: Event, provider: ProvidersCatalogProvider) => any) | undefined;
|
|
10
|
-
}, {}, {}>;
|
|
6
|
+
}>>>, {}, {}>;
|
|
11
7
|
export default _default;
|
|
12
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
9
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Brand } from '@/components/BrandSearch/BrandStore';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
brands: Brand[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
click: (...args: any[]) => void;
|
|
6
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
5
|
brands: Brand[];
|
|
8
|
-
}
|
|
9
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
10
|
-
}, {}, {}>;
|
|
6
|
+
}>>>, {}, {}>;
|
|
11
7
|
export default _default;
|
|
12
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
9
|
type __VLS_TypePropsToRuntimeProps<T> = {
|