flowrix 1.0.1-beta.14 → 1.0.1-beta.141
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/module.d.mts +1 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +169 -30
- package/dist/runtime/composables/Blog/useBlogIndex.d.ts +2 -5
- package/dist/runtime/composables/Blog/useBlogSingle.js +2 -4
- package/dist/runtime/composables/Brand/brand.d.ts +1 -1
- package/dist/runtime/composables/Brand/brand.js +30 -2
- package/dist/runtime/composables/Cart/useCart.d.ts +40 -0
- package/dist/runtime/composables/Cart/useCart.js +10 -0
- package/dist/runtime/composables/Cart/useCartComponent.d.ts +1 -0
- package/dist/runtime/composables/Cart/useCartComponent.js +11 -0
- package/dist/runtime/composables/Cart/useCartDetail.d.ts +15 -5
- package/dist/runtime/composables/Cart/useCartDetail.js +3 -0
- package/dist/runtime/composables/Category/useCategoryIndex.d.ts +25 -32
- package/dist/runtime/composables/Category/useCategoryIndex.js +63 -44
- package/dist/runtime/composables/Checkout/PaymentMethods/useDirectDeposit.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useEway.js +16 -6
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.d.ts +40 -1
- package/dist/runtime/composables/Checkout/PaymentMethods/useFlowrixpay.js +10 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.d.ts +40 -1
- package/dist/runtime/composables/Checkout/PaymentMethods/useOpayo.js +10 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaymentMethods.js +3 -14
- package/dist/runtime/composables/Checkout/PaymentMethods/usePaypal.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.d.ts +2 -2
- package/dist/runtime/composables/Checkout/PaymentMethods/useStripe.js +8 -0
- package/dist/runtime/composables/Checkout/PaymentMethods/useZippay.js +8 -0
- package/dist/runtime/composables/Checkout/useCheckout.d.ts +85 -73
- package/dist/runtime/composables/Checkout/useCheckout.js +84 -53
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.d.ts +43 -0
- package/dist/runtime/composables/Checkout/useCheckoutBillingAddress.js +84 -0
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.d.ts +55 -0
- package/dist/runtime/composables/Checkout/useCheckoutShippingAddress.js +196 -0
- package/dist/runtime/composables/Checkout/useCreateAccount.d.ts +7 -7
- package/dist/runtime/composables/Checkout/useCreateAccount.js +3 -1
- package/dist/runtime/composables/Checkout/useDeliveryMethod.d.ts +2 -2
- package/dist/runtime/composables/Checkout/useDeliveryMethod.js +18 -11
- package/dist/runtime/composables/Customer/useBillingAddress.d.ts +112 -0
- package/dist/runtime/composables/Customer/useBillingAddress.js +93 -0
- package/dist/runtime/composables/Customer/useLogin.d.ts +9 -0
- package/dist/runtime/composables/Customer/useLogin.js +34 -0
- package/dist/runtime/composables/Customer/useOrders.d.ts +29 -0
- package/dist/runtime/composables/Customer/useOrders.js +56 -0
- package/dist/runtime/composables/Customer/usePasswordReset.d.ts +26 -0
- package/dist/runtime/composables/Customer/usePasswordReset.js +258 -0
- package/dist/runtime/composables/Customer/useProfile.d.ts +75 -0
- package/dist/runtime/composables/Customer/useProfile.js +106 -0
- package/dist/runtime/composables/Customer/useQuotations.d.ts +32 -0
- package/dist/runtime/composables/Customer/useQuotations.js +40 -0
- package/dist/runtime/composables/Customer/useRegister.d.ts +121 -13
- package/dist/runtime/composables/Customer/useRegister.js +310 -35
- package/dist/runtime/composables/Customer/useShippingAddress.d.ts +121 -0
- package/dist/runtime/composables/Customer/useShippingAddress.js +145 -0
- package/dist/runtime/composables/Customer/useUpdatePassword.d.ts +21 -0
- package/dist/runtime/composables/Customer/useUpdatePassword.js +130 -0
- package/dist/runtime/composables/Customer/useUserCards.d.ts +22 -0
- package/dist/runtime/composables/Customer/useUserCards.js +65 -0
- package/dist/runtime/composables/{useWishlists.d.ts → Customer/useWishlists.d.ts} +7 -20
- package/dist/runtime/composables/{useWishlists.js → Customer/useWishlists.js} +21 -30
- package/dist/runtime/composables/Extras/useCountry.d.ts +11 -6
- package/dist/runtime/composables/Extras/useCountry.js +5 -4
- package/dist/runtime/composables/Footer/useFooter.d.ts +4 -4
- package/dist/runtime/composables/Footer/useFooter.js +12 -8
- package/dist/runtime/composables/Header/useHeader.d.ts +6 -20
- package/dist/runtime/composables/Header/useHeader.js +3 -2
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.js +4 -5
- package/dist/runtime/composables/Product/CustomProduct/useSteps.d.ts +1 -1
- package/dist/runtime/composables/Product/useProductComponent.js +110 -0
- package/dist/runtime/composables/Product/useProductSlug.d.ts +8 -1
- package/dist/runtime/composables/Product/useQuickView.d.ts +8 -0
- package/dist/runtime/composables/Product/useQuickView.js +27 -0
- package/dist/runtime/composables/Product/useService.d.ts +42 -15
- package/dist/runtime/composables/Product/useService.js +137 -48
- package/dist/runtime/composables/Samples/useSamples.d.ts +5 -6
- package/dist/runtime/composables/Samples/useSamples.js +19 -15
- package/dist/runtime/composables/SideBar/Filters/useFilters.d.ts +2 -2
- package/dist/runtime/composables/SideBar/Filters/useSorting.d.ts +2 -2
- package/dist/runtime/composables/index.d.ts +18 -12
- package/dist/runtime/composables/index.js +18 -12
- package/dist/runtime/composables/useAddresses.js +6 -6
- package/dist/runtime/composables/useApp.d.ts +1 -0
- package/dist/runtime/composables/useApp.js +88 -0
- package/dist/runtime/composables/useCards.js +2 -2
- package/dist/runtime/composables/useDataLayer.js +1 -1
- package/dist/runtime/composables/useDotDigital.d.ts +3 -0
- package/dist/runtime/composables/useDotDigital.js +122 -0
- package/dist/runtime/composables/useLocation.d.ts +61 -19
- package/dist/runtime/composables/useLocation.js +353 -25
- package/dist/runtime/composables/useMetaLayer.js +11 -11
- package/dist/runtime/composables/useQuotationCheckout.d.ts +78 -0
- package/dist/runtime/composables/useQuotationCheckout.js +137 -0
- package/dist/runtime/composables/useSubscriptions.d.ts +17 -10
- package/dist/runtime/composables/useSubscriptions.js +68 -33
- package/dist/runtime/composables/useTikTokDatalayer.js +7 -7
- package/dist/runtime/composables/useWebforms.d.ts +38 -9
- package/dist/runtime/composables/useWebforms.js +93 -60
- package/dist/runtime/middleware/flowrix.d.ts +5 -4
- package/dist/runtime/middleware/flowrix.js +40 -22
- package/dist/runtime/pages/404.d.vue.ts +3 -0
- package/dist/runtime/pages/404.vue +6 -0
- package/dist/runtime/pages/404.vue.d.ts +3 -0
- package/dist/runtime/pages/flowrix-default.d.vue.ts +3 -0
- package/dist/runtime/pages/flowrix-default.vue +42 -0
- package/dist/runtime/pages/flowrix-default.vue.d.ts +3 -0
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/plugins/router.d.ts +2 -0
- package/dist/runtime/plugins/router.js +11 -0
- package/dist/runtime/server/api/albums.d.ts +1 -0
- package/dist/runtime/server/api/albums.js +35 -7
- package/dist/runtime/server/api/auth/forgot.js +1 -2
- package/dist/runtime/server/api/auth/login.d.ts +7 -0
- package/dist/runtime/server/api/auth/login.js +4 -16
- package/dist/runtime/server/api/auth/logout.js +1 -2
- package/dist/runtime/server/api/auth/register.js +1 -2
- package/dist/runtime/server/api/auth/session.get.js +1 -3
- package/dist/runtime/server/api/auth/user/reset-password.js +1 -2
- package/dist/runtime/server/api/auth/user/session.js +1 -2
- package/dist/runtime/server/api/auth/user/verify-token.js +1 -2
- package/dist/runtime/server/api/banners.js +20 -15
- package/dist/runtime/server/api/brand/[...slug].js +55 -0
- package/dist/runtime/server/api/brand/index.d.ts +3 -0
- package/dist/runtime/server/api/brand/index.js +46 -0
- package/dist/runtime/server/api/cache/[...slug].delete.d.ts +4 -1
- package/dist/runtime/server/api/cache/[...slug].delete.js +4 -7
- package/dist/runtime/server/api/cache/clean.get.d.ts +5 -0
- package/dist/runtime/server/api/cache/clean.get.js +4 -7
- package/dist/runtime/server/api/cart/[slug]/add.d.ts +1 -1
- package/dist/runtime/server/api/cart/[slug]/add.js +11 -11
- package/dist/runtime/server/api/cart/[slug]/update.d.ts +1 -1
- package/dist/runtime/server/api/cart/[slug]/update.js +11 -11
- package/dist/runtime/server/api/{v2/[...slug].d.ts → cart/related.d.ts} +0 -1
- package/dist/runtime/server/api/cart/related.js +21 -0
- package/dist/runtime/server/api/cart/remove.d.ts +1 -1
- package/dist/runtime/server/api/cart/remove.js +10 -10
- package/dist/runtime/server/api/cart/service/[slug]/add.d.ts +1 -1
- package/dist/runtime/server/api/cart/service/[slug]/add.js +12 -12
- package/dist/runtime/server/api/catalog/brands.d.ts +3 -0
- package/dist/runtime/server/api/catalog/brands.js +52 -0
- package/dist/runtime/server/api/catalog/categories.js +28 -19
- package/dist/runtime/server/api/catalog/categoriesall.d.ts +3 -0
- package/dist/runtime/server/api/catalog/categoriesall.js +52 -0
- package/dist/runtime/server/api/catalog/featured.js +28 -17
- package/dist/runtime/server/api/catalog/posts.d.ts +3 -0
- package/dist/runtime/server/api/catalog/posts.js +52 -0
- package/dist/runtime/server/api/catalog/samples.js +28 -19
- package/dist/runtime/server/api/catalog/search.js +28 -19
- package/dist/runtime/server/api/category/[...slug].js +31 -20
- package/dist/runtime/server/api/check-404.d.ts +4 -0
- package/dist/runtime/server/api/check-404.js +8 -0
- package/dist/runtime/server/api/checkout/applyCoupon.d.ts +1 -1
- package/dist/runtime/server/api/checkout/applyCoupon.js +13 -13
- package/dist/runtime/server/api/checkout/configs.d.ts +1 -1
- package/dist/runtime/server/api/checkout/configs.js +11 -11
- package/dist/runtime/server/api/checkout/countries.d.ts +1 -1
- package/dist/runtime/server/api/checkout/countries.js +5 -9
- package/dist/runtime/server/api/checkout/paymentmethod.d.ts +1 -1
- package/dist/runtime/server/api/checkout/paymentmethod.js +16 -11
- package/dist/runtime/server/api/{blog/blog.d.ts → checkout/quotation/[slug].d.ts} +0 -1
- package/dist/runtime/server/api/checkout/quotation/[slug].js +20 -0
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].d.ts +2 -0
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].js +35 -0
- package/dist/runtime/server/api/checkout/quotation/guest/customer.d.ts +2 -0
- package/dist/runtime/server/api/checkout/quotation/guest/customer.js +20 -0
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].d.ts +2 -0
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].js +22 -0
- package/dist/runtime/server/api/checkvariables.d.ts +3 -0
- package/dist/runtime/server/api/checkvariables.js +37 -0
- package/dist/runtime/server/api/cmspost/[...slug].js +54 -0
- package/dist/runtime/server/api/cmspost/all.d.ts +3 -0
- package/dist/runtime/server/api/cmspost/all.js +52 -0
- package/dist/runtime/server/api/company/profile.d.ts +1 -1
- package/dist/runtime/server/api/company/profile.js +12 -7
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.d.ts +1 -1
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.js +50 -15
- package/dist/runtime/server/api/contact-center/webforms/create.d.ts +1 -1
- package/dist/runtime/server/api/contact-center/webforms/create.js +13 -9
- package/dist/runtime/server/api/countries.d.ts +2 -0
- package/dist/runtime/server/api/countries.js +44 -0
- package/dist/runtime/server/api/customer/address/add.js +1 -2
- package/dist/runtime/server/api/customer/address/delete.js +2 -3
- package/dist/runtime/server/api/customer/address/setshipping.js +1 -2
- package/dist/runtime/server/api/customer/address/update.js +1 -2
- package/dist/runtime/server/api/customer/cards/delete.js +2 -3
- package/dist/runtime/server/api/customer/cards/get.js +2 -3
- package/dist/runtime/server/api/customer/change-password.js +2 -3
- package/dist/runtime/server/api/customer/checkout.js +1 -2
- package/dist/runtime/server/api/customer/orders.js +2 -3
- package/dist/runtime/server/api/customer/profile/update.js +1 -2
- package/dist/runtime/server/api/customer/quotations.js +2 -3
- package/dist/runtime/server/api/customer/search.js +1 -2
- package/dist/runtime/server/api/customer/tax-invoice.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/add.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/createWishList.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/get.js +2 -3
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.js +1 -2
- package/dist/runtime/server/api/customer/wishlist/updateWishList.js +2 -3
- package/dist/runtime/server/api/featured.d.ts +3 -0
- package/dist/runtime/server/api/featured.js +52 -0
- package/dist/runtime/server/api/generate/robots.get.d.ts +2 -0
- package/dist/runtime/server/api/generate/robots.get.js +20 -0
- package/dist/runtime/server/api/generate/sitemap.get.d.ts +2 -0
- package/dist/runtime/server/api/generate/sitemap.get.js +32 -0
- package/dist/runtime/server/api/location.d.ts +1 -1
- package/dist/runtime/server/api/location.js +24 -12
- package/dist/runtime/server/api/nav/[id]/links.d.ts +1 -0
- package/dist/runtime/server/api/nav/[id]/links.js +46 -10
- package/dist/runtime/server/api/page/[...slug].js +54 -0
- package/dist/runtime/server/api/product/[...slug].js +28 -13
- package/dist/runtime/server/api/quickview/[slug].d.ts +2 -0
- package/dist/runtime/server/api/quickview/[slug].js +21 -0
- package/dist/runtime/server/api/reviews.d.ts +2 -0
- package/dist/runtime/server/api/reviews.js +23 -0
- package/dist/runtime/server/api/samples.d.ts +3 -0
- package/dist/runtime/server/api/samples.js +53 -0
- package/dist/runtime/server/api/search.d.ts +3 -0
- package/dist/runtime/server/api/search.js +53 -0
- package/dist/runtime/server/api/service/[slug].js +22 -16
- package/dist/runtime/server/api/service/availability.d.ts +1 -1
- package/dist/runtime/server/api/service/availability.js +14 -12
- package/dist/runtime/server/api/service/getall.d.ts +3 -0
- package/dist/runtime/server/api/service/getall.js +57 -0
- package/dist/runtime/server/api/shop.d.ts +3 -0
- package/dist/runtime/server/api/shop.js +53 -0
- package/dist/runtime/server/api/subscribe.d.ts +1 -1
- package/dist/runtime/server/api/subscribe.js +23 -14
- package/dist/runtime/server/api/v2/[...slug].get.d.ts +2 -0
- package/dist/runtime/server/api/v2/[...slug].get.js +32 -0
- package/dist/runtime/server/api/webform.d.ts +3 -0
- package/dist/runtime/server/api/webform.js +54 -0
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/stores/Cart.d.ts +12 -0
- package/dist/runtime/stores/Cart.js +62 -17
- package/dist/runtime/stores/Checkout.d.ts +9 -15
- package/dist/runtime/stores/Checkout.js +38 -45
- package/dist/runtime/stores/IpLocation.d.ts +95 -4
- package/dist/runtime/stores/IpLocation.js +93 -15
- package/dist/runtime/stores/Search.d.ts +1 -1
- package/dist/runtime/stores/Services.d.ts +5 -0
- package/dist/runtime/stores/Services.js +59 -8
- package/dist/runtime/stores/auth.d.ts +8 -11
- package/dist/runtime/stores/auth.js +385 -8
- package/dist/runtime/stores/countries.d.ts +1 -3
- package/dist/runtime/stores/countries.js +4 -8
- package/dist/runtime/stores/product/README.md +6 -6
- package/dist/runtime/stores/product/slug.d.ts +1 -17
- package/dist/runtime/stores/webforms.d.ts +24 -9
- package/dist/runtime/stores/webforms.js +105 -5
- package/dist/runtime/stores/wishlists.d.ts +125 -8
- package/dist/runtime/stores/wishlists.js +212 -20
- package/dist/runtime/utils/api.js +7 -13
- package/dist/runtime/utils/htmlCache.d.ts +2 -2
- package/dist/runtime/utils/htmlCache.js +23 -13
- package/dist/types.d.mts +6 -2
- package/package.json +16 -5
- package/dist/runtime/composables/Checkout/useBillingAddress.d.ts +0 -19
- package/dist/runtime/composables/Checkout/useBillingAddress.js +0 -82
- package/dist/runtime/composables/Checkout/useShippingAddress.d.ts +0 -9
- package/dist/runtime/composables/Checkout/useShippingAddress.js +0 -121
- package/dist/runtime/composables/useAuth.d.ts +0 -45
- package/dist/runtime/composables/useAuth.js +0 -180
- package/dist/runtime/composables/useCountries.d.ts +0 -12
- package/dist/runtime/composables/useCountries.js +0 -50
- package/dist/runtime/composables/useOrders.d.ts +0 -21
- package/dist/runtime/composables/useOrders.js +0 -82
- package/dist/runtime/composables/useQuotations.d.ts +0 -14
- package/dist/runtime/composables/useQuotations.js +0 -50
- package/dist/runtime/server/api/blog/[slug].js +0 -51
- package/dist/runtime/server/api/blog/blog.js +0 -17
- package/dist/runtime/server/api/brand/[slug].js +0 -58
- package/dist/runtime/server/api/page/[slug].js +0 -51
- package/dist/runtime/server/api/v2/[...slug].js +0 -9
- /package/dist/runtime/server/api/brand/{[slug].d.ts → [...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{blog/[slug].d.ts → cmspost/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/page/{[slug].d.ts → [...slug].d.ts} +0 -0
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent } from "vue";
|
|
2
|
+
import { useHead, useRequestEvent, useRoute } from "#imports";
|
|
3
|
+
import { getRequestURL } from "h3";
|
|
4
|
+
import { GTM_view_item } from "../useDataLayer.js";
|
|
5
|
+
import { META_view_item } from "../useMetaLayer.js";
|
|
6
|
+
import { TikTok_view_item } from "../useTikTokDatalayer.js";
|
|
7
|
+
import { useCompanyProfile } from "../../stores/useCompanyProfile.js";
|
|
2
8
|
export function useProductComponent(product) {
|
|
9
|
+
const route = useRoute();
|
|
3
10
|
const templateName = "Template-" + product.template;
|
|
11
|
+
const companyProfile = useCompanyProfile();
|
|
4
12
|
const components = import.meta.glob(
|
|
5
13
|
"~/components/Product/Template*/index.vue"
|
|
6
14
|
);
|
|
@@ -15,6 +23,108 @@ export function useProductComponent(product) {
|
|
|
15
23
|
}
|
|
16
24
|
}
|
|
17
25
|
});
|
|
26
|
+
let websiteurl = "";
|
|
27
|
+
if (process.server) {
|
|
28
|
+
const event = useRequestEvent();
|
|
29
|
+
websiteurl = getRequestURL(event).origin;
|
|
30
|
+
} else {
|
|
31
|
+
websiteurl = window.location.origin;
|
|
32
|
+
}
|
|
33
|
+
const ifPromotioned = () => {
|
|
34
|
+
if (product.rpfloat > product.pricefloat) {
|
|
35
|
+
return {
|
|
36
|
+
"priceSpecification": [
|
|
37
|
+
{
|
|
38
|
+
"@type": "UnitPriceSpecification",
|
|
39
|
+
"price": product.rpfloat,
|
|
40
|
+
"priceCurrency": companyProfile.profile?.data?.currencyCode || "",
|
|
41
|
+
"priceComponentType": "https://schema.org/ListPrice"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return [];
|
|
47
|
+
};
|
|
48
|
+
if (product?.faqs?.length) {
|
|
49
|
+
const faqSchema = {
|
|
50
|
+
"@context": "https://schema.org",
|
|
51
|
+
"@type": "FAQPage",
|
|
52
|
+
"name": `${product.name} - FAQs`,
|
|
53
|
+
"mainEntity": product?.faqs.map((faq) => ({
|
|
54
|
+
"@type": "Question",
|
|
55
|
+
"name": faq.question,
|
|
56
|
+
"acceptedAnswer": {
|
|
57
|
+
"@type": "Answer",
|
|
58
|
+
"text": faq.answer.replace(/<\/?p>/g, "")
|
|
59
|
+
// remove <p> tags
|
|
60
|
+
}
|
|
61
|
+
}))
|
|
62
|
+
};
|
|
63
|
+
useHead({
|
|
64
|
+
script: [
|
|
65
|
+
{
|
|
66
|
+
type: "application/ld+json",
|
|
67
|
+
id: "faq-schema",
|
|
68
|
+
children: JSON.stringify(faqSchema)
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
useHead({
|
|
74
|
+
title: product?.meta_title || product?.name || "",
|
|
75
|
+
meta: [
|
|
76
|
+
{
|
|
77
|
+
name: "robots",
|
|
78
|
+
content: product?.robots || ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "description",
|
|
82
|
+
content: product?.meta_description || ""
|
|
83
|
+
},
|
|
84
|
+
{ property: "og:title", content: product?.meta_title || product?.name || "" },
|
|
85
|
+
{ property: "og:description", content: product?.meta_description },
|
|
86
|
+
{ property: "og:type", content: "website" },
|
|
87
|
+
{ property: "og:url", content: `${websiteurl}${route.path}` },
|
|
88
|
+
{ property: "og:image", content: product?.image },
|
|
89
|
+
// Optional but recommended
|
|
90
|
+
{ name: "twitter:card", content: "summary_large_image" },
|
|
91
|
+
{ name: "twitter:title", content: product?.meta_title || product?.name || "" },
|
|
92
|
+
{ name: "twitter:description", content: product?.meta_description },
|
|
93
|
+
{ name: "twitter:image", content: product?.image }
|
|
94
|
+
],
|
|
95
|
+
script: [
|
|
96
|
+
{
|
|
97
|
+
type: "application/ld+json",
|
|
98
|
+
id: "product-schema",
|
|
99
|
+
children: JSON.stringify({
|
|
100
|
+
"@context": "https://schema.org/",
|
|
101
|
+
"@type": "Product",
|
|
102
|
+
"name": product?.name || "",
|
|
103
|
+
"image": [
|
|
104
|
+
product?.image || ""
|
|
105
|
+
],
|
|
106
|
+
"description": product?.description || "",
|
|
107
|
+
"sku": product?.sku || "",
|
|
108
|
+
"brand": {
|
|
109
|
+
"@type": "Brand",
|
|
110
|
+
"name": product?.brand || ""
|
|
111
|
+
},
|
|
112
|
+
"offers": {
|
|
113
|
+
"@type": "Offer",
|
|
114
|
+
"url": `${websiteurl}${route.path}`,
|
|
115
|
+
"priceCurrency": companyProfile.profile?.data?.currencyCode || "",
|
|
116
|
+
"price": product?.pricefloat || 0,
|
|
117
|
+
"availability": "https://schema.org/InStock",
|
|
118
|
+
"itemCondition": "https://schema.org/NewCondition",
|
|
119
|
+
...ifPromotioned()
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
GTM_view_item(product, product?.rrpfloat, product?.rpfloat);
|
|
126
|
+
META_view_item(product, product?.rrpfloat, product?.rpfloat);
|
|
127
|
+
TikTok_view_item(product, product?.rrpfloat, product?.rpfloat);
|
|
18
128
|
return {
|
|
19
129
|
Template
|
|
20
130
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useFetch } from "#imports";
|
|
2
|
+
import { readonly } from "vue";
|
|
3
|
+
export const useQuickView = (slug) => {
|
|
4
|
+
const { data, error, refresh, execute, pending } = useFetch(
|
|
5
|
+
`/api/quickview/${slug}`,
|
|
6
|
+
{
|
|
7
|
+
method: "POST",
|
|
8
|
+
body: { slug },
|
|
9
|
+
lazy: true,
|
|
10
|
+
server: false,
|
|
11
|
+
default: () => null
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
return {
|
|
15
|
+
data: readonly(data),
|
|
16
|
+
error: readonly(error),
|
|
17
|
+
refresh,
|
|
18
|
+
execute,
|
|
19
|
+
pending: readonly(pending)
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export const useSendQuickValues = async (attributes, slug) => {
|
|
23
|
+
return await $fetch(`/api/quickview/${slug}`, {
|
|
24
|
+
method: "POST",
|
|
25
|
+
body: attributes
|
|
26
|
+
});
|
|
27
|
+
};
|
|
@@ -1,17 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
getAllServices(): Promise<void>;
|
|
8
|
-
checkAvailability(data: any): Promise<any>;
|
|
9
|
-
}>;
|
|
10
|
-
CurrentService: import("vue").Ref<never[], never[]>;
|
|
11
|
-
findItemBySlug: (slug: string) => any;
|
|
1
|
+
interface ServiceAvailabilityPayload {
|
|
2
|
+
shipping_country: number;
|
|
3
|
+
shipping_state: number;
|
|
4
|
+
shipping_postcode: string | number;
|
|
5
|
+
}
|
|
6
|
+
export declare function useService(): {
|
|
12
7
|
servicesAvailability: import("vue").Ref<boolean, boolean>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
serviceSuccess: import("vue").Ref<string, string>;
|
|
9
|
+
checkingAvailability: import("vue").Ref<boolean, boolean>;
|
|
10
|
+
addingToCart: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
location: import("vue").ComputedRef<{
|
|
12
|
+
city?: string | undefined;
|
|
13
|
+
country_name?: string | undefined;
|
|
14
|
+
country_code?: string | undefined;
|
|
15
|
+
country_id?: number | undefined;
|
|
16
|
+
ip?: string | undefined;
|
|
17
|
+
proxy?: boolean | undefined;
|
|
18
|
+
region?: string | undefined;
|
|
19
|
+
region_short?: string | undefined;
|
|
20
|
+
region_id?: number | undefined;
|
|
21
|
+
zip_code?: string | undefined;
|
|
22
|
+
} | null>;
|
|
23
|
+
services: import("vue").ComputedRef<never[]>;
|
|
24
|
+
currentService: import("vue").ComputedRef<any>;
|
|
25
|
+
cart: import("vue").ComputedRef<{
|
|
26
|
+
items?: Record<string, import("../../stores/Cart.js").CartItem> | undefined;
|
|
27
|
+
totals?: Record<string, any> | undefined;
|
|
28
|
+
abndToken?: string | undefined;
|
|
29
|
+
fields?: Record<string, any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
loading: import("vue").ComputedRef<boolean>;
|
|
32
|
+
error: import("vue").ComputedRef<string | null>;
|
|
33
|
+
getServiceBySlug: (slug: string, query?: {}) => Promise<any>;
|
|
34
|
+
checkAvailability: (payload: ServiceAvailabilityPayload) => Promise<any>;
|
|
35
|
+
checkAvailabilityByLocation: () => Promise<any>;
|
|
36
|
+
addToCart: (service: any) => Promise<boolean>;
|
|
37
|
+
findItemBySlug: (slug: string) => string | false;
|
|
38
|
+
isServiceInCart: (slug: string) => boolean;
|
|
39
|
+
getAllServices: () => Promise<never[]>;
|
|
40
|
+
clearCurrentService: () => void;
|
|
41
|
+
clearSuccessMessage: () => void;
|
|
42
|
+
closeServiceModal: () => void;
|
|
17
43
|
};
|
|
44
|
+
export {};
|
|
@@ -1,67 +1,156 @@
|
|
|
1
|
-
import { ref,
|
|
1
|
+
import { ref, computed, watch } from "vue";
|
|
2
2
|
import { useServiceStore } from "../../stores/Services.js";
|
|
3
3
|
import { useCartStore } from "../../stores/Cart.js";
|
|
4
4
|
import { useIpLocation } from "../../stores/IpLocation.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
5
|
+
export function useService() {
|
|
6
|
+
const serviceStore = useServiceStore();
|
|
7
|
+
const cartStore = useCartStore();
|
|
8
|
+
const locationStore = useIpLocation();
|
|
9
9
|
const servicesAvailability = ref(false);
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const serviceSuccess = ref("");
|
|
11
|
+
const checkingAvailability = ref(false);
|
|
12
|
+
const addingToCart = ref(false);
|
|
13
|
+
const location = computed(() => locationStore.location);
|
|
14
|
+
const services = computed(() => serviceStore.services);
|
|
15
|
+
const currentService = computed(() => serviceStore.currentService);
|
|
16
|
+
const cart = computed(() => cartStore.cart);
|
|
17
|
+
const loading = computed(() => serviceStore.loading);
|
|
18
|
+
const error = computed(() => serviceStore.error);
|
|
19
|
+
const getServiceBySlug = async (slug, query = {}) => {
|
|
20
|
+
try {
|
|
21
|
+
const service = await serviceStore.getServiceBySlug(slug, query);
|
|
22
|
+
return service;
|
|
23
|
+
} catch (error2) {
|
|
24
|
+
console.error("Error fetching service by slug:", error2);
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
15
27
|
};
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
const checkAvailability = async (payload) => {
|
|
29
|
+
if (!payload.shipping_country || !payload.shipping_state || !payload.shipping_postcode) {
|
|
30
|
+
console.error("Invalid availability check payload:", payload);
|
|
31
|
+
return null;
|
|
20
32
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
checkingAvailability.value = true;
|
|
34
|
+
try {
|
|
35
|
+
const response = await serviceStore.checkAvailability(payload);
|
|
36
|
+
if (response?.service !== void 0) {
|
|
37
|
+
servicesAvailability.value = response.service;
|
|
38
|
+
}
|
|
39
|
+
return response;
|
|
40
|
+
} catch (error2) {
|
|
41
|
+
console.error("Error checking service availability:", error2);
|
|
42
|
+
return null;
|
|
43
|
+
} finally {
|
|
44
|
+
checkingAvailability.value = false;
|
|
26
45
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (
|
|
30
|
-
|
|
46
|
+
};
|
|
47
|
+
const checkAvailabilityByLocation = async () => {
|
|
48
|
+
if (!location.value) {
|
|
49
|
+
console.warn("No location available for availability check");
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
const payload = {
|
|
53
|
+
shipping_country: location.value.country_id,
|
|
54
|
+
shipping_state: location.value.region_id,
|
|
55
|
+
shipping_postcode: location.value.zip_code
|
|
56
|
+
};
|
|
57
|
+
return await checkAvailability(payload);
|
|
58
|
+
};
|
|
59
|
+
const addToCart = async (service) => {
|
|
60
|
+
if (!service) {
|
|
61
|
+
console.error("No service provided");
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
addingToCart.value = true;
|
|
65
|
+
serviceSuccess.value = "";
|
|
66
|
+
try {
|
|
67
|
+
await cartStore.addToCart("", 1, "", "", service);
|
|
68
|
+
if (cartStore.addedResponse === "success") {
|
|
69
|
+
serviceSuccess.value = "Service added to cart successfully.";
|
|
70
|
+
closeServiceModal();
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
return false;
|
|
74
|
+
} catch (error2) {
|
|
75
|
+
console.error("Error adding service to cart:", error2);
|
|
76
|
+
return false;
|
|
77
|
+
} finally {
|
|
78
|
+
addingToCart.value = false;
|
|
31
79
|
}
|
|
32
80
|
};
|
|
33
81
|
const findItemBySlug = (slug) => {
|
|
34
|
-
if (Object.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
82
|
+
if (!cart.value?.items || Object.keys(cart.value.items).length === 0) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
const entries = Object.values(cart.value.items);
|
|
86
|
+
const item = entries.find((entry) => entry.slug === slug);
|
|
87
|
+
return item ? item.rowId : false;
|
|
88
|
+
};
|
|
89
|
+
const isServiceInCart = (slug) => {
|
|
90
|
+
return findItemBySlug(slug) !== false;
|
|
91
|
+
};
|
|
92
|
+
const closeServiceModal = () => {
|
|
93
|
+
const modalEl = document.querySelector(".serviceModelSuccess");
|
|
94
|
+
if (modalEl && typeof bootstrap !== "undefined") {
|
|
95
|
+
const serviceModal = bootstrap.Modal.getInstance(modalEl);
|
|
96
|
+
if (serviceModal) {
|
|
97
|
+
serviceModal.hide();
|
|
41
98
|
}
|
|
42
99
|
}
|
|
43
|
-
return false;
|
|
44
100
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
101
|
+
const getAllServices = async () => {
|
|
102
|
+
try {
|
|
103
|
+
await serviceStore.getAllServices();
|
|
104
|
+
return services.value;
|
|
105
|
+
} catch (error2) {
|
|
106
|
+
console.error("Error fetching services:", error2);
|
|
107
|
+
return [];
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const clearCurrentService = () => {
|
|
111
|
+
serviceStore.clearCurrentService();
|
|
112
|
+
};
|
|
113
|
+
const clearSuccessMessage = () => {
|
|
114
|
+
serviceSuccess.value = "";
|
|
115
|
+
};
|
|
116
|
+
const autoClearSuccess = () => {
|
|
117
|
+
if (serviceSuccess.value) {
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
clearSuccessMessage();
|
|
120
|
+
}, 5e3);
|
|
50
121
|
}
|
|
51
|
-
});
|
|
52
|
-
const GetServiceLocations = async () => {
|
|
53
|
-
const { GetLocation } = LocationScript.setup();
|
|
54
|
-
GetLocation();
|
|
55
122
|
};
|
|
123
|
+
watch(location, async (newLocation) => {
|
|
124
|
+
if (newLocation) {
|
|
125
|
+
await checkAvailabilityByLocation();
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
watch(() => serviceSuccess.value, () => {
|
|
129
|
+
autoClearSuccess();
|
|
130
|
+
});
|
|
56
131
|
return {
|
|
57
|
-
|
|
58
|
-
ServiceStore,
|
|
59
|
-
CurrentService,
|
|
60
|
-
findItemBySlug,
|
|
132
|
+
// State
|
|
61
133
|
servicesAvailability,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
134
|
+
serviceSuccess,
|
|
135
|
+
checkingAvailability,
|
|
136
|
+
addingToCart,
|
|
137
|
+
// Computed
|
|
138
|
+
location,
|
|
139
|
+
services,
|
|
140
|
+
currentService,
|
|
141
|
+
cart,
|
|
142
|
+
loading,
|
|
143
|
+
error,
|
|
144
|
+
// Methods
|
|
145
|
+
getServiceBySlug,
|
|
146
|
+
checkAvailability,
|
|
147
|
+
checkAvailabilityByLocation,
|
|
148
|
+
addToCart,
|
|
149
|
+
findItemBySlug,
|
|
150
|
+
isServiceInCart,
|
|
151
|
+
getAllServices,
|
|
152
|
+
clearCurrentService,
|
|
153
|
+
clearSuccessMessage,
|
|
154
|
+
closeServiceModal
|
|
66
155
|
};
|
|
67
156
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export default function (props: any): {
|
|
2
2
|
filters: import("vue").Ref<{}, {}>;
|
|
3
3
|
samplesData: import("vue").ComputedRef<any>;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Services: any;
|
|
4
|
+
SideBar: new () => import("vue").ComponentPublicInstance;
|
|
5
|
+
TopBar: new () => import("vue").ComponentPublicInstance;
|
|
6
|
+
SampleCard: new () => import("vue").ComponentPublicInstance;
|
|
7
|
+
Pagination: new () => import("vue").ComponentPublicInstance;
|
|
8
|
+
Services: new () => import("vue").ComponentPublicInstance;
|
|
10
9
|
};
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { ref, computed, defineAsyncComponent } from "vue";
|
|
1
|
+
import { ref, computed, defineAsyncComponent, defineComponent } from "vue";
|
|
2
2
|
export default function(props) {
|
|
3
3
|
const filters = ref({});
|
|
4
4
|
const samplesData = computed(() => props);
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const EmptyComponent = defineComponent(() => null);
|
|
6
|
+
function asyncIfExists(path) {
|
|
7
|
+
const modules = import.meta.glob("@/components/**/*.vue");
|
|
8
|
+
return defineAsyncComponent(
|
|
9
|
+
modules[path] ? modules[path] : async () => EmptyComponent
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
const innerBanner = asyncIfExists("@/components/Others/InnerBanner.vue");
|
|
13
|
+
const SideBar = asyncIfExists(
|
|
14
|
+
"@/components/Samples/Template01/Sidebar.vue"
|
|
7
15
|
);
|
|
8
|
-
const
|
|
9
|
-
|
|
16
|
+
const TopBar = asyncIfExists(
|
|
17
|
+
"@/components/Samples/Template01/TopBar.vue"
|
|
10
18
|
);
|
|
11
|
-
const
|
|
12
|
-
|
|
19
|
+
const SampleCard = asyncIfExists(
|
|
20
|
+
"@/components/Product/SampleProductCard.vue"
|
|
13
21
|
);
|
|
14
|
-
const
|
|
15
|
-
|
|
22
|
+
const Pagination = asyncIfExists(
|
|
23
|
+
"@/components/Others/Pagination.vue"
|
|
16
24
|
);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
);
|
|
20
|
-
const Services = defineAsyncComponent(
|
|
21
|
-
() => import("@/components/Services/Template01/Services.vue")
|
|
25
|
+
const Services = asyncIfExists(
|
|
26
|
+
"@/components/Services/Template01/Services.vue"
|
|
22
27
|
);
|
|
23
28
|
return {
|
|
24
29
|
// pageData,
|
|
@@ -26,7 +31,6 @@ export default function(props) {
|
|
|
26
31
|
filters,
|
|
27
32
|
samplesData,
|
|
28
33
|
// updateFilters,
|
|
29
|
-
innerBanner,
|
|
30
34
|
SideBar,
|
|
31
35
|
TopBar,
|
|
32
36
|
SampleCard,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default function (): {
|
|
2
|
-
route:
|
|
3
|
-
router:
|
|
2
|
+
route: any;
|
|
3
|
+
router: any;
|
|
4
4
|
isChecked: (slug: any, dynamicQueryParam: any) => any;
|
|
5
5
|
toggleCheckbox: (slug: any, parent_slug: any) => void;
|
|
6
6
|
};
|
|
@@ -7,17 +7,16 @@ export * from './Blog/useMagazineCard.js';
|
|
|
7
7
|
export * from './Blog/useSingleBlogMain.js';
|
|
8
8
|
export * from './Brand/brand.js';
|
|
9
9
|
export * from './Cart/useCartDetail.js';
|
|
10
|
+
export * from './Cart/useCartComponent.js';
|
|
10
11
|
export * from './Category/useCategoryContent.js';
|
|
11
12
|
export * from './Category/useCategoryGrid.js';
|
|
12
13
|
export * from './Category/useCategoryIndex.js';
|
|
13
|
-
export * from './Category/useCategoryTemplate2.js';
|
|
14
|
-
export * from './Category/useCategoryTemplate3.js';
|
|
15
14
|
export * from './Category/useCategoryTop.js';
|
|
16
|
-
export * from './Checkout/
|
|
15
|
+
export * from './Checkout/useCheckoutBillingAddress.js';
|
|
17
16
|
export * from './Checkout/useCheckout.js';
|
|
18
17
|
export * from './Checkout/useCreateAccount.js';
|
|
19
18
|
export * from './Checkout/useDeliveryMethod.js';
|
|
20
|
-
export * from './Checkout/
|
|
19
|
+
export * from './Checkout/useCheckoutShippingAddress.js';
|
|
21
20
|
export * from './Checkout/PaymentMethods/useDirectDeposit.js';
|
|
22
21
|
export * from './Checkout/PaymentMethods/useEway.js';
|
|
23
22
|
export * from './Checkout/PaymentMethods/useFlowrixpay.js';
|
|
@@ -27,6 +26,16 @@ export * from './Checkout/PaymentMethods/usePaypal.js';
|
|
|
27
26
|
export * from './Checkout/PaymentMethods/useStripe.js';
|
|
28
27
|
export * from './Checkout/PaymentMethods/useZippay.js';
|
|
29
28
|
export * from './Customer/useRegister.js';
|
|
29
|
+
export * from './Customer/useLogin.js';
|
|
30
|
+
export * from './Customer/useProfile.js';
|
|
31
|
+
export * from './Customer/useOrders.js';
|
|
32
|
+
export * from './Customer/useQuotations.js';
|
|
33
|
+
export * from './Customer/useBillingAddress.js';
|
|
34
|
+
export * from './Customer/useShippingAddress.js';
|
|
35
|
+
export * from './Customer/useUpdatePassword.js';
|
|
36
|
+
export * from './Customer/useUserCards.js';
|
|
37
|
+
export * from './Customer/useWishlists.js';
|
|
38
|
+
export * from './Customer/usePasswordReset.js';
|
|
30
39
|
export * from './Extras/useCountry.js';
|
|
31
40
|
export * from './Extras/useDateFormatter.js';
|
|
32
41
|
export * from './Extras/useNumberOnly.js';
|
|
@@ -55,20 +64,17 @@ export * from './SideBar/useSideBar.js';
|
|
|
55
64
|
export * from './SideBar/Filters/useFilters.js';
|
|
56
65
|
export * from './SideBar/Filters/useSorting.js';
|
|
57
66
|
export { useAddresses } from './useAddresses.js';
|
|
67
|
+
export { useQuickView } from './Product/useQuickView.js';
|
|
68
|
+
export { useSendQuickValues } from './Product/useQuickView.js';
|
|
58
69
|
export { useAddToCart } from './useAddToCart.js';
|
|
59
|
-
export { useAuth } from './useAuth.js';
|
|
60
70
|
export { useCards } from './useCards.js';
|
|
61
71
|
export { useClientApi } from './useClientApi.js';
|
|
62
|
-
export {
|
|
63
|
-
export { useDataLayer } from './useDataLayer.js';
|
|
72
|
+
export { GTM_page_view, GTM_view_item, GTM_view_item_list, GTM_view_cart, GTM_add_to_cart, GTM_remove_from_cart, GTM_begin_checkout, GTM_add_shipping_info, GTM_add_payment_info, GTM_purchase, GTM_select_item_color, GTM_select_item_collection, GTM_Attribute_Content } from './useDataLayer.js';
|
|
64
73
|
export { useDynamicHtmlRenderer } from './useDynamicHtmlRenderer.js';
|
|
65
74
|
export { useLocation } from './useLocation.js';
|
|
66
75
|
export { useLocations } from './useLocations.js';
|
|
67
|
-
export {
|
|
68
|
-
export { useOrders } from './useOrders.js';
|
|
69
|
-
export { useQuotations } from './useQuotations.js';
|
|
76
|
+
export { useQuotationCheckout } from './useQuotationCheckout.js';
|
|
70
77
|
export { useSearch } from './useSearch.js';
|
|
71
78
|
export { useSubscriptions } from './useSubscriptions.js';
|
|
72
|
-
export { useTikTokDatalayer } from './useTikTokDatalayer.js';
|
|
73
79
|
export { useWebforms } from './useWebforms.js';
|
|
74
|
-
export {
|
|
80
|
+
export { useApp } from './useApp.js';
|
|
@@ -7,17 +7,16 @@ export * from "./Blog/useMagazineCard.js";
|
|
|
7
7
|
export * from "./Blog/useSingleBlogMain.js";
|
|
8
8
|
export * from "./Brand/brand.js";
|
|
9
9
|
export * from "./Cart/useCartDetail.js";
|
|
10
|
+
export * from "./Cart/useCartComponent.js";
|
|
10
11
|
export * from "./Category/useCategoryContent.js";
|
|
11
12
|
export * from "./Category/useCategoryGrid.js";
|
|
12
13
|
export * from "./Category/useCategoryIndex.js";
|
|
13
|
-
export * from "./Category/useCategoryTemplate2";
|
|
14
|
-
export * from "./Category/useCategoryTemplate3";
|
|
15
14
|
export * from "./Category/useCategoryTop.js";
|
|
16
|
-
export * from "./Checkout/
|
|
15
|
+
export * from "./Checkout/useCheckoutBillingAddress.js";
|
|
17
16
|
export * from "./Checkout/useCheckout.js";
|
|
18
17
|
export * from "./Checkout/useCreateAccount.js";
|
|
19
18
|
export * from "./Checkout/useDeliveryMethod.js";
|
|
20
|
-
export * from "./Checkout/
|
|
19
|
+
export * from "./Checkout/useCheckoutShippingAddress.js";
|
|
21
20
|
export * from "./Checkout/PaymentMethods/useDirectDeposit.js";
|
|
22
21
|
export * from "./Checkout/PaymentMethods/useEway.js";
|
|
23
22
|
export * from "./Checkout/PaymentMethods/useFlowrixpay.js";
|
|
@@ -27,6 +26,16 @@ export * from "./Checkout/PaymentMethods/usePaypal.js";
|
|
|
27
26
|
export * from "./Checkout/PaymentMethods/useStripe.js";
|
|
28
27
|
export * from "./Checkout/PaymentMethods/useZippay.js";
|
|
29
28
|
export * from "./Customer/useRegister.js";
|
|
29
|
+
export * from "./Customer/useLogin.js";
|
|
30
|
+
export * from "./Customer/useProfile.js";
|
|
31
|
+
export * from "./Customer/useOrders.js";
|
|
32
|
+
export * from "./Customer/useQuotations.js";
|
|
33
|
+
export * from "./Customer/useBillingAddress.js";
|
|
34
|
+
export * from "./Customer/useShippingAddress.js";
|
|
35
|
+
export * from "./Customer/useUpdatePassword.js";
|
|
36
|
+
export * from "./Customer/useUserCards.js";
|
|
37
|
+
export * from "./Customer/useWishlists.js";
|
|
38
|
+
export * from "./Customer/usePasswordReset.js";
|
|
30
39
|
export * from "./Extras/useCountry.js";
|
|
31
40
|
export * from "./Extras/useDateFormatter.js";
|
|
32
41
|
export * from "./Extras/useNumberOnly.js";
|
|
@@ -55,20 +64,17 @@ export * from "./SideBar/useSideBar.js";
|
|
|
55
64
|
export * from "./SideBar/Filters/useFilters.js";
|
|
56
65
|
export * from "./SideBar/Filters/useSorting.js";
|
|
57
66
|
export { useAddresses } from "./useAddresses.js";
|
|
67
|
+
export { useQuickView } from "./Product/useQuickView.js";
|
|
68
|
+
export { useSendQuickValues } from "./Product/useQuickView.js";
|
|
58
69
|
export { useAddToCart } from "./useAddToCart.js";
|
|
59
|
-
export { useAuth } from "./useAuth.js";
|
|
60
70
|
export { useCards } from "./useCards.js";
|
|
61
71
|
export { useClientApi } from "./useClientApi.js";
|
|
62
|
-
export {
|
|
63
|
-
export { useDataLayer } from "./useDataLayer.js";
|
|
72
|
+
export { GTM_page_view, GTM_view_item, GTM_view_item_list, GTM_view_cart, GTM_add_to_cart, GTM_remove_from_cart, GTM_begin_checkout, GTM_add_shipping_info, GTM_add_payment_info, GTM_purchase, GTM_select_item_color, GTM_select_item_collection, GTM_Attribute_Content } from "./useDataLayer.js";
|
|
64
73
|
export { useDynamicHtmlRenderer } from "./useDynamicHtmlRenderer.js";
|
|
65
74
|
export { useLocation } from "./useLocation.js";
|
|
66
75
|
export { useLocations } from "./useLocations.js";
|
|
67
|
-
export {
|
|
68
|
-
export { useOrders } from "./useOrders.js";
|
|
69
|
-
export { useQuotations } from "./useQuotations.js";
|
|
76
|
+
export { useQuotationCheckout } from "./useQuotationCheckout.js";
|
|
70
77
|
export { useSearch } from "./useSearch.js";
|
|
71
78
|
export { useSubscriptions } from "./useSubscriptions.js";
|
|
72
|
-
export { useTikTokDatalayer } from "./useTikTokDatalayer.js";
|
|
73
79
|
export { useWebforms } from "./useWebforms.js";
|
|
74
|
-
export {
|
|
80
|
+
export { useApp } from "./useApp.js";
|