flowrix 1.0.1-beta.156 → 1.0.1-beta.158
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.json +1 -1
- package/dist/module.mjs +23 -192
- package/dist/runtime/components/Types/page/index.d.vue.ts +5 -4
- package/dist/runtime/components/Types/page/index.vue +7 -11
- package/dist/runtime/components/Types/page/index.vue.d.ts +5 -4
- package/dist/runtime/composables/Blog/useBlogSingle.js +4 -5
- package/dist/runtime/composables/Category/useCategoryIndex.js +5 -5
- package/dist/runtime/composables/Checkout/useCheckout.d.ts +4 -0
- package/dist/runtime/composables/Checkout/useCheckout.js +11 -3
- package/dist/runtime/composables/Customer/useBillingAddress.d.ts +3 -0
- package/dist/runtime/composables/Customer/useBillingAddress.js +2 -0
- package/dist/runtime/composables/Customer/useShippingAddress.d.ts +3 -0
- package/dist/runtime/composables/Customer/useShippingAddress.js +2 -1
- package/dist/runtime/composables/Customer/useWishlists.d.ts +1 -1
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.d.ts +4 -0
- package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.js +5 -11
- package/dist/runtime/composables/Product/useProductCard.d.ts +90 -9
- package/dist/runtime/composables/Product/useProductCard.js +257 -55
- package/dist/runtime/composables/Product/useProductComponent.js +3 -10
- package/dist/runtime/composables/Product/useQuickView.d.ts +1 -1
- package/dist/runtime/composables/Product/useService.d.ts +1 -12
- package/dist/runtime/composables/Product/useService.js +2 -2
- package/dist/runtime/composables/SideBar/Filters/useFilters.js +3 -3
- package/dist/runtime/composables/index.d.ts +1 -1
- package/dist/runtime/composables/index.js +1 -1
- package/dist/runtime/composables/useAddresses.js +27 -6
- package/dist/runtime/composables/useApp.js +3 -4
- package/dist/runtime/composables/useCards.js +0 -1
- package/dist/runtime/composables/useClientApi.d.ts +8 -8
- package/dist/runtime/composables/useClientApi.js +74 -30
- package/dist/runtime/composables/useLocation.d.ts +3 -15
- package/dist/runtime/composables/useLocation.js +6 -27
- package/dist/runtime/composables/usePriceCalculation.d.ts +33 -0
- package/dist/runtime/composables/usePriceCalculation.js +107 -0
- package/dist/runtime/composables/useQuotationCheckout.d.ts +1 -1
- package/dist/runtime/middleware/flowrix.d.ts +5 -5
- package/dist/runtime/middleware/flowrix.js +2 -2
- package/dist/runtime/middleware/flowrixs3.d.ts +3 -0
- package/dist/runtime/middleware/flowrixs3.js +65 -0
- package/dist/runtime/pages/flowrix-default.vue +62 -15
- package/dist/runtime/plugins/full-reload.client.d.ts +2 -0
- package/dist/runtime/plugins/full-reload.client.js +28 -0
- package/dist/runtime/server/api/albums.d.ts +0 -1
- package/dist/runtime/server/api/albums.js +13 -40
- package/dist/runtime/server/api/auth/login.d.ts +0 -18
- package/dist/runtime/server/api/auth/login.js +0 -57
- package/dist/runtime/server/api/banners.d.ts +0 -1
- package/dist/runtime/server/api/banners.js +13 -40
- package/dist/runtime/server/api/brand/[...slug].d.ts +0 -1
- package/dist/runtime/server/api/brand/[...slug].js +14 -43
- package/dist/runtime/server/api/brand/index.d.ts +0 -1
- package/dist/runtime/server/api/brand/index.js +13 -39
- package/dist/runtime/server/api/cache/[...slug].delete.js +1 -2
- package/dist/runtime/server/api/cache/clean.get.js +1 -2
- package/dist/runtime/server/api/cart/[slug]/add.d.ts +0 -2
- package/dist/runtime/server/api/cart/[slug]/add.js +0 -21
- package/dist/runtime/server/api/cart/[slug]/update.d.ts +0 -2
- package/dist/runtime/server/api/cart/[slug]/update.js +0 -21
- package/dist/runtime/server/api/cart/related.d.ts +0 -2
- package/dist/runtime/server/api/cart/related.js +0 -34
- package/dist/runtime/server/api/cart/remove.d.ts +0 -2
- package/dist/runtime/server/api/cart/remove.js +0 -21
- package/dist/runtime/server/api/catalog/brands.d.ts +0 -1
- package/dist/runtime/server/api/catalog/brands.js +13 -45
- package/dist/runtime/server/api/catalog/categories.d.ts +0 -1
- package/dist/runtime/server/api/catalog/categories.js +13 -45
- package/dist/runtime/server/api/catalog/categoriesall.d.ts +0 -1
- package/dist/runtime/server/api/catalog/categoriesall.js +13 -45
- package/dist/runtime/server/api/catalog/featured.d.ts +0 -1
- package/dist/runtime/server/api/catalog/featured.js +13 -45
- package/dist/runtime/server/api/catalog/posts.d.ts +0 -1
- package/dist/runtime/server/api/catalog/posts.js +13 -45
- package/dist/runtime/server/api/catalog/samples.d.ts +0 -1
- package/dist/runtime/server/api/catalog/samples.js +13 -46
- package/dist/runtime/server/api/catalog/search.d.ts +0 -1
- package/dist/runtime/server/api/catalog/search.js +13 -46
- package/dist/runtime/server/api/category/[...slug].d.ts +1 -2
- package/dist/runtime/server/api/category/[...slug].js +34 -49
- package/dist/runtime/server/api/checkout/applyCoupon.d.ts +0 -2
- package/dist/runtime/server/api/checkout/applyCoupon.js +0 -20
- package/dist/runtime/server/api/checkout/configs.d.ts +0 -2
- package/dist/runtime/server/api/checkout/configs.js +0 -20
- package/dist/runtime/server/api/checkout/countries.d.ts +0 -2
- package/dist/runtime/server/api/checkout/countries.js +0 -13
- package/dist/runtime/server/api/checkout/paymentmethod.d.ts +0 -2
- package/dist/runtime/server/api/checkout/paymentmethod.js +0 -25
- package/dist/runtime/server/api/checkout/quotation/guest/customer.d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/guest/customer.js +0 -20
- package/dist/runtime/server/api/checkvariables.js +1 -2
- package/dist/runtime/server/api/cmspost/[...slug].d.ts +0 -1
- package/dist/runtime/server/api/cmspost/[...slug].js +14 -44
- package/dist/runtime/server/api/cmspost/all.js +1 -2
- package/dist/runtime/server/api/company/profile.d.ts +1 -1
- package/dist/runtime/server/api/company/profile.js +13 -17
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.d.ts +0 -3
- package/dist/runtime/server/api/contact-center/webforms/[id]/details.js +0 -54
- package/dist/runtime/server/api/countries.js +13 -38
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.js +0 -45
- package/dist/runtime/server/api/featured.d.ts +0 -3
- package/dist/runtime/server/api/featured.js +0 -52
- package/dist/runtime/server/api/generate/robots.get.js +0 -2
- package/dist/runtime/server/api/generate/sitemap.get.d.ts +1 -1
- package/dist/runtime/server/api/generate/sitemap.get.js +8 -12
- package/dist/runtime/server/api/global/[...slug].js +20 -0
- package/dist/runtime/server/api/location.d.ts +0 -2
- package/dist/runtime/server/api/location.js +0 -25
- package/dist/runtime/server/api/nav/[id]/links.d.ts +0 -1
- package/dist/runtime/server/api/nav/[id]/links.js +13 -43
- package/dist/runtime/server/api/page/[...slug].d.ts +0 -1
- package/dist/runtime/server/api/page/[...slug].js +14 -44
- package/dist/runtime/server/api/permalink/[...slug].get.js +31 -0
- package/dist/runtime/server/api/product/[...slug].d.ts +0 -1
- package/dist/runtime/server/api/product/[...slug].js +14 -49
- package/dist/runtime/server/api/quickview/[slug].d.ts +1 -1
- package/dist/runtime/server/api/quickview/[slug].js +15 -16
- package/dist/runtime/server/api/reviews.d.ts +1 -1
- package/dist/runtime/server/api/reviews.js +1 -2
- package/dist/runtime/server/api/reviews3.js +19 -0
- package/dist/runtime/server/api/samples.d.ts +0 -1
- package/dist/runtime/server/api/samples.js +13 -46
- package/dist/runtime/server/api/search.d.ts +0 -1
- package/dist/runtime/server/api/search.js +13 -46
- package/dist/runtime/server/api/service/[slug].d.ts +0 -1
- package/dist/runtime/server/api/service/[slug].js +13 -44
- package/dist/runtime/server/api/service/availability.d.ts +1 -1
- package/dist/runtime/server/api/service/getall.d.ts +0 -1
- package/dist/runtime/server/api/service/getall.js +13 -51
- package/dist/runtime/server/api/shop.d.ts +0 -1
- package/dist/runtime/server/api/shop.js +13 -46
- package/dist/runtime/server/api/subscribe.d.ts +0 -2
- package/dist/runtime/server/api/subscribe.js +0 -25
- package/dist/runtime/server/api/webform.d.ts +0 -3
- package/dist/runtime/server/api/webform.js +0 -54
- package/dist/runtime/server/middleware/powertools.d.ts +9 -0
- package/dist/runtime/server/middleware/powertools.js +30 -0
- package/dist/runtime/stores/Booking.js +23 -7
- package/dist/runtime/stores/Cart.js +18 -3
- package/dist/runtime/stores/Checkout.js +14 -3
- package/dist/runtime/stores/NavMenu.js +2 -4
- package/dist/runtime/stores/Search.js +9 -3
- package/dist/runtime/stores/auth.d.ts +28 -1
- package/dist/runtime/stores/auth.js +0 -5
- package/dist/runtime/stores/countries.js +1 -1
- package/dist/runtime/stores/index.d.ts +0 -1
- package/dist/runtime/stores/index.js +0 -1
- package/dist/runtime/stores/locations.d.ts +1 -5
- package/dist/runtime/stores/locations.js +8 -5
- package/dist/runtime/stores/product.js +9 -3
- package/dist/runtime/stores/promotions.d.ts +51 -0
- package/dist/runtime/stores/promotions.js +65 -0
- package/dist/runtime/stores/useCompanyProfile.js +5 -2
- package/dist/runtime/stores/wishlists.d.ts +1 -1
- package/dist/runtime/stores/wishlists.js +1 -1
- package/package.json +11 -3
- package/dist/runtime/composables/useLocations.d.ts +0 -12
- package/dist/runtime/composables/useLocations.js +0 -53
- package/dist/runtime/server/api/auth/forgot.d.ts +0 -5
- package/dist/runtime/server/api/auth/forgot.js +0 -43
- package/dist/runtime/server/api/auth/logout.d.ts +0 -5
- package/dist/runtime/server/api/auth/logout.js +0 -22
- package/dist/runtime/server/api/auth/register.js +0 -50
- package/dist/runtime/server/api/auth/session.get.js +0 -44
- package/dist/runtime/server/api/auth/user/reset-password.d.ts +0 -5
- package/dist/runtime/server/api/auth/user/reset-password.js +0 -39
- package/dist/runtime/server/api/auth/user/session.js +0 -42
- package/dist/runtime/server/api/auth/user/verify-token.d.ts +0 -6
- package/dist/runtime/server/api/auth/user/verify-token.js +0 -49
- package/dist/runtime/server/api/cart/service/[slug]/add.d.ts +0 -2
- package/dist/runtime/server/api/cart/service/[slug]/add.js +0 -16
- package/dist/runtime/server/api/check-404.d.ts +0 -4
- package/dist/runtime/server/api/check-404.js +0 -8
- package/dist/runtime/server/api/checkout/quotation/[slug].d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/[slug].js +0 -20
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/guest/[slug].js +0 -35
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].d.ts +0 -2
- package/dist/runtime/server/api/checkout/quotation/submit/[slug].js +0 -22
- package/dist/runtime/server/api/contact-center/webforms/create.d.ts +0 -2
- package/dist/runtime/server/api/contact-center/webforms/create.js +0 -20
- package/dist/runtime/server/api/customer/address/add.d.ts +0 -14
- package/dist/runtime/server/api/customer/address/add.js +0 -32
- package/dist/runtime/server/api/customer/address/delete.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/delete.js +0 -36
- package/dist/runtime/server/api/customer/address/setshipping.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/setshipping.js +0 -40
- package/dist/runtime/server/api/customer/address/update.d.ts +0 -20
- package/dist/runtime/server/api/customer/address/update.js +0 -41
- package/dist/runtime/server/api/customer/cards/delete.d.ts +0 -2
- package/dist/runtime/server/api/customer/cards/delete.js +0 -22
- package/dist/runtime/server/api/customer/cards/get.d.ts +0 -2
- package/dist/runtime/server/api/customer/cards/get.js +0 -16
- package/dist/runtime/server/api/customer/change-password.d.ts +0 -14
- package/dist/runtime/server/api/customer/change-password.js +0 -33
- package/dist/runtime/server/api/customer/checkout.d.ts +0 -2
- package/dist/runtime/server/api/customer/checkout.js +0 -19
- package/dist/runtime/server/api/customer/orders.d.ts +0 -2
- package/dist/runtime/server/api/customer/orders.js +0 -16
- package/dist/runtime/server/api/customer/profile/update.d.ts +0 -14
- package/dist/runtime/server/api/customer/profile/update.js +0 -33
- package/dist/runtime/server/api/customer/quotations.d.ts +0 -2
- package/dist/runtime/server/api/customer/quotations.js +0 -16
- package/dist/runtime/server/api/customer/search.d.ts +0 -2
- package/dist/runtime/server/api/customer/search.js +0 -14
- package/dist/runtime/server/api/customer/tax-invoice.d.ts +0 -8
- package/dist/runtime/server/api/customer/tax-invoice.js +0 -35
- package/dist/runtime/server/api/customer/wishlist/add.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/add.js +0 -29
- package/dist/runtime/server/api/customer/wishlist/createWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/createWishList.js +0 -28
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/deleteWishList.js +0 -29
- package/dist/runtime/server/api/customer/wishlist/get.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/get.js +0 -16
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/getWishListItems.js +0 -20
- package/dist/runtime/server/api/customer/wishlist/updateWishList.d.ts +0 -2
- package/dist/runtime/server/api/customer/wishlist/updateWishList.js +0 -29
- package/dist/runtime/server/api/v2/[...slug].get.d.ts +0 -2
- package/dist/runtime/server/api/v2/[...slug].get.js +0 -34
- package/dist/runtime/stores/IpLocation.d.ts +0 -109
- package/dist/runtime/stores/IpLocation.js +0 -107
- package/dist/runtime/utils/api.d.ts +0 -13
- package/dist/runtime/utils/api.js +0 -96
- /package/dist/runtime/server/api/{auth/register.d.ts → global/[...slug].d.ts} +0 -0
- /package/dist/runtime/server/api/{auth/session.get.d.ts → permalink/[...slug].get.d.ts} +0 -0
- /package/dist/runtime/server/api/{auth/user/session.d.ts → reviews3.d.ts} +0 -0
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -9,19 +9,26 @@ const module$1 = defineNuxtModule({
|
|
|
9
9
|
async setup(_options, nuxt) {
|
|
10
10
|
const env = process.env;
|
|
11
11
|
const runtimeConfig = nuxt.options.runtimeConfig;
|
|
12
|
+
nuxt.options.nitro = nuxt.options.nitro || {};
|
|
13
|
+
nuxt.options.nitro.externals = nuxt.options.nitro.externals || {};
|
|
14
|
+
nuxt.options.nitro.externals.inline = nuxt.options.nitro.externals.inline || [];
|
|
15
|
+
nuxt.options.nitro.externals.inline.push("@aws-sdk/client-s3", "tslib");
|
|
12
16
|
runtimeConfig.FLOWRIX_API_KEY = env.KEY || "";
|
|
13
17
|
runtimeConfig.FLOWRIX_API_SECRET = env.SECRET || "";
|
|
14
18
|
runtimeConfig.FLOWRIX_API_ORIGIN = env.ORIGIN || "";
|
|
15
19
|
runtimeConfig.FLOWRIX_API_BASE = env.BASE || "";
|
|
16
20
|
runtimeConfig.FLOWRIX_CACHE = env.CACHE || "false";
|
|
17
21
|
runtimeConfig.FLOWRIX_CDN = env.CDN || "";
|
|
22
|
+
runtimeConfig.S3_ACCESS_KEY_ID = env.S3_ACCESS_KEY_ID || "";
|
|
23
|
+
runtimeConfig.S3_SECRET_ACCESS_KEY = env.S3_SECRET_ACCESS_KEY || "";
|
|
24
|
+
runtimeConfig.S3_REGION = env.S3_REGION || "us-east-1";
|
|
25
|
+
runtimeConfig.S3_BUCKET = env.S3_BUCKET || "";
|
|
26
|
+
runtimeConfig.S3_TENANT = env.S3_TENANT || "";
|
|
27
|
+
runtimeConfig.WEBSITE_URL = env.WEBSITE_URL || "";
|
|
18
28
|
Object.assign(runtimeConfig.public, {
|
|
19
29
|
...runtimeConfig.public,
|
|
20
30
|
FLOWRIX_API_KEY: env.KEY || runtimeConfig.FLOWRIX_API_KEY || runtimeConfig.public.FLOWRIX_API_KEY || "",
|
|
21
|
-
|
|
22
|
-
FLOWRIX_API_BASE: env.BASE || runtimeConfig.FLOWRIX_API_BASE || runtimeConfig.public.FLOWRIX_API_BASE || "",
|
|
23
|
-
FLOWRIX_CACHE: env.CACHE || runtimeConfig.FLOWRIX_CACHE || runtimeConfig.public.FLOWRIX_CACHE || "false",
|
|
24
|
-
FLOWRIX_CDN: env.FCDN || runtimeConfig.FLOWRIX_CDN || runtimeConfig.public.FLOWRIX_CDN || ""
|
|
31
|
+
FLOWRIX_API_BASE: runtimeConfig.public.FLOWRIX_API_BASE || ""
|
|
25
32
|
});
|
|
26
33
|
const resolver = createResolver(import.meta.url);
|
|
27
34
|
await installModule("@pinia/nuxt");
|
|
@@ -35,6 +42,10 @@ const module$1 = defineNuxtModule({
|
|
|
35
42
|
addPlugin({
|
|
36
43
|
src: resolver.resolve("./runtime/plugins/router")
|
|
37
44
|
});
|
|
45
|
+
addServerHandler({
|
|
46
|
+
middleware: true,
|
|
47
|
+
handler: resolver.resolve("./runtime/server/middleware/powertools")
|
|
48
|
+
});
|
|
38
49
|
addServerHandler({
|
|
39
50
|
middleware: true,
|
|
40
51
|
handler: resolver.resolve("./runtime/utils/htmlCache")
|
|
@@ -49,6 +60,10 @@ const module$1 = defineNuxtModule({
|
|
|
49
60
|
from: resolver.resolve("./runtime/middleware/flowrix"),
|
|
50
61
|
name: "flowrixApi"
|
|
51
62
|
});
|
|
63
|
+
addImports({
|
|
64
|
+
from: resolver.resolve("./runtime/middleware/s3api"),
|
|
65
|
+
name: "s3Api"
|
|
66
|
+
});
|
|
52
67
|
addServerHandler({
|
|
53
68
|
route: "/api/albums",
|
|
54
69
|
handler: resolver.resolve("./runtime/server/api/albums")
|
|
@@ -61,46 +76,6 @@ const module$1 = defineNuxtModule({
|
|
|
61
76
|
route: "/api/banners",
|
|
62
77
|
handler: resolver.resolve("./runtime/server/api/banners")
|
|
63
78
|
});
|
|
64
|
-
addServerHandler({
|
|
65
|
-
route: "/api/location",
|
|
66
|
-
handler: resolver.resolve("./runtime/server/api/location")
|
|
67
|
-
});
|
|
68
|
-
addServerHandler({
|
|
69
|
-
route: "/api/subscribe",
|
|
70
|
-
handler: resolver.resolve("./runtime/server/api/subscribe")
|
|
71
|
-
});
|
|
72
|
-
addServerHandler({
|
|
73
|
-
route: "/api/auth/forgot",
|
|
74
|
-
handler: resolver.resolve("./runtime/server/api/auth/forgot")
|
|
75
|
-
});
|
|
76
|
-
addServerHandler({
|
|
77
|
-
route: "/api/auth/login",
|
|
78
|
-
handler: resolver.resolve("./runtime/server/api/auth/login")
|
|
79
|
-
});
|
|
80
|
-
addServerHandler({
|
|
81
|
-
route: "/api/auth/logout",
|
|
82
|
-
handler: resolver.resolve("./runtime/server/api/auth/logout")
|
|
83
|
-
});
|
|
84
|
-
addServerHandler({
|
|
85
|
-
route: "/api/auth/register",
|
|
86
|
-
handler: resolver.resolve("./runtime/server/api/auth/register")
|
|
87
|
-
});
|
|
88
|
-
addServerHandler({
|
|
89
|
-
route: "/api/auth/session",
|
|
90
|
-
handler: resolver.resolve("./runtime/server/api/auth/session.get")
|
|
91
|
-
});
|
|
92
|
-
addServerHandler({
|
|
93
|
-
route: "/api/auth/user/reset-password",
|
|
94
|
-
handler: resolver.resolve("./runtime/server/api/auth/user/reset-password")
|
|
95
|
-
});
|
|
96
|
-
addServerHandler({
|
|
97
|
-
route: "/api/auth/user/session",
|
|
98
|
-
handler: resolver.resolve("./runtime/server/api/auth/user/session")
|
|
99
|
-
});
|
|
100
|
-
addServerHandler({
|
|
101
|
-
route: "/api/auth/user/verify-token",
|
|
102
|
-
handler: resolver.resolve("./runtime/server/api/auth/user/verify-token")
|
|
103
|
-
});
|
|
104
79
|
addServerHandler({
|
|
105
80
|
route: "/api/cmspost/**",
|
|
106
81
|
handler: resolver.resolve("./runtime/server/api/cmspost/[...slug]")
|
|
@@ -117,26 +92,6 @@ const module$1 = defineNuxtModule({
|
|
|
117
92
|
route: "/api/brand/**",
|
|
118
93
|
handler: resolver.resolve("./runtime/server/api/brand/[...slug]")
|
|
119
94
|
});
|
|
120
|
-
addServerHandler({
|
|
121
|
-
route: "/api/cart/remove",
|
|
122
|
-
handler: resolver.resolve("./runtime/server/api/cart/remove")
|
|
123
|
-
});
|
|
124
|
-
addServerHandler({
|
|
125
|
-
route: "/api/cart/:slug/add",
|
|
126
|
-
handler: resolver.resolve("./runtime/server/api/cart/[slug]/add")
|
|
127
|
-
});
|
|
128
|
-
addServerHandler({
|
|
129
|
-
route: "/api/cart/:slug/update",
|
|
130
|
-
handler: resolver.resolve("./runtime/server/api/cart/[slug]/update")
|
|
131
|
-
});
|
|
132
|
-
addServerHandler({
|
|
133
|
-
route: "/api/cart/service/:slug/add",
|
|
134
|
-
handler: resolver.resolve("./runtime/server/api/cart/service/[slug]/add")
|
|
135
|
-
});
|
|
136
|
-
addServerHandler({
|
|
137
|
-
route: "/api/cart/related",
|
|
138
|
-
handler: resolver.resolve("./runtime/server/api/cart/related")
|
|
139
|
-
});
|
|
140
95
|
addServerHandler({
|
|
141
96
|
route: "/api/catalog/categories",
|
|
142
97
|
handler: resolver.resolve("./runtime/server/api/catalog/categories")
|
|
@@ -161,34 +116,6 @@ const module$1 = defineNuxtModule({
|
|
|
161
116
|
route: "/api/category/**",
|
|
162
117
|
handler: resolver.resolve("./runtime/server/api/category/[...slug]")
|
|
163
118
|
});
|
|
164
|
-
addServerHandler({
|
|
165
|
-
route: "/api/checkout/applyCoupon",
|
|
166
|
-
handler: resolver.resolve("./runtime/server/api/checkout/applyCoupon")
|
|
167
|
-
});
|
|
168
|
-
addServerHandler({
|
|
169
|
-
route: "/api/checkout/configs",
|
|
170
|
-
handler: resolver.resolve("./runtime/server/api/checkout/configs")
|
|
171
|
-
});
|
|
172
|
-
addServerHandler({
|
|
173
|
-
route: "/api/checkout/countries",
|
|
174
|
-
handler: resolver.resolve("./runtime/server/api/checkout/countries")
|
|
175
|
-
});
|
|
176
|
-
addServerHandler({
|
|
177
|
-
route: "/api/checkout/paymentmethod",
|
|
178
|
-
handler: resolver.resolve("./runtime/server/api/checkout/paymentmethod")
|
|
179
|
-
});
|
|
180
|
-
addServerHandler({
|
|
181
|
-
route: "/api/checkout/quotation/guest/:slug",
|
|
182
|
-
handler: resolver.resolve("./runtime/server/api/checkout/quotation/guest/[slug]")
|
|
183
|
-
});
|
|
184
|
-
addServerHandler({
|
|
185
|
-
route: "/api/checkout/quotation/submit/:slug",
|
|
186
|
-
handler: resolver.resolve("./runtime/server/api/checkout/quotation/submit/[slug]")
|
|
187
|
-
});
|
|
188
|
-
addServerHandler({
|
|
189
|
-
route: "/api/checkout/quotation/:slug",
|
|
190
|
-
handler: resolver.resolve("./runtime/server/api/checkout/quotation/[slug]")
|
|
191
|
-
});
|
|
192
119
|
addServerHandler({
|
|
193
120
|
route: "/api/company/profile",
|
|
194
121
|
handler: resolver.resolve("./runtime/server/api/company/profile")
|
|
@@ -197,94 +124,6 @@ const module$1 = defineNuxtModule({
|
|
|
197
124
|
route: "/api/countries",
|
|
198
125
|
handler: resolver.resolve("./runtime/server/api/countries")
|
|
199
126
|
});
|
|
200
|
-
addServerHandler({
|
|
201
|
-
route: "/api/contact-center/webforms/create",
|
|
202
|
-
handler: resolver.resolve("./runtime/server/api/contact-center/webforms/create")
|
|
203
|
-
});
|
|
204
|
-
addServerHandler({
|
|
205
|
-
route: "/api/contact-center/webforms/:id/details",
|
|
206
|
-
handler: resolver.resolve("./runtime/server/api/contact-center/webforms/[id]/details")
|
|
207
|
-
});
|
|
208
|
-
addServerHandler({
|
|
209
|
-
route: "/api/customer/change-password",
|
|
210
|
-
handler: resolver.resolve("./runtime/server/api/customer/change-password")
|
|
211
|
-
});
|
|
212
|
-
addServerHandler({
|
|
213
|
-
route: "/api/customer/checkout",
|
|
214
|
-
handler: resolver.resolve("./runtime/server/api/customer/checkout")
|
|
215
|
-
});
|
|
216
|
-
addServerHandler({
|
|
217
|
-
route: "/api/customer/orders",
|
|
218
|
-
handler: resolver.resolve("./runtime/server/api/customer/orders")
|
|
219
|
-
});
|
|
220
|
-
addServerHandler({
|
|
221
|
-
route: "/api/customer/quotations",
|
|
222
|
-
handler: resolver.resolve("./runtime/server/api/customer/quotations")
|
|
223
|
-
});
|
|
224
|
-
addServerHandler({
|
|
225
|
-
route: "/api/customer/search",
|
|
226
|
-
handler: resolver.resolve("./runtime/server/api/customer/search")
|
|
227
|
-
});
|
|
228
|
-
addServerHandler({
|
|
229
|
-
route: "/api/customer/tax-invoice",
|
|
230
|
-
handler: resolver.resolve("./runtime/server/api/customer/tax-invoice")
|
|
231
|
-
});
|
|
232
|
-
addServerHandler({
|
|
233
|
-
route: "/api/customer/address/add",
|
|
234
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/add")
|
|
235
|
-
});
|
|
236
|
-
addServerHandler({
|
|
237
|
-
route: "/api/customer/address/delete",
|
|
238
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/delete")
|
|
239
|
-
});
|
|
240
|
-
addServerHandler({
|
|
241
|
-
route: "/api/customer/address/setshipping",
|
|
242
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/setshipping")
|
|
243
|
-
});
|
|
244
|
-
addServerHandler({
|
|
245
|
-
route: "/api/customer/address/update",
|
|
246
|
-
handler: resolver.resolve("./runtime/server/api/customer/address/update")
|
|
247
|
-
});
|
|
248
|
-
addServerHandler({
|
|
249
|
-
route: "/api/customer/cards/delete",
|
|
250
|
-
handler: resolver.resolve("./runtime/server/api/customer/cards/delete")
|
|
251
|
-
});
|
|
252
|
-
addServerHandler({
|
|
253
|
-
route: "/api/customer/cards/get",
|
|
254
|
-
handler: resolver.resolve("./runtime/server/api/customer/cards/get")
|
|
255
|
-
});
|
|
256
|
-
addServerHandler({
|
|
257
|
-
route: "/api/customer/profile/update",
|
|
258
|
-
handler: resolver.resolve("./runtime/server/api/customer/profile/update")
|
|
259
|
-
});
|
|
260
|
-
addServerHandler({
|
|
261
|
-
route: "/api/customer/wishlist/add",
|
|
262
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/add")
|
|
263
|
-
});
|
|
264
|
-
addServerHandler({
|
|
265
|
-
route: "/api/customer/wishlist/createWishList",
|
|
266
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/createWishList")
|
|
267
|
-
});
|
|
268
|
-
addServerHandler({
|
|
269
|
-
route: "/api/customer/wishlist/deleteFromWishList",
|
|
270
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/deleteFromWishList")
|
|
271
|
-
});
|
|
272
|
-
addServerHandler({
|
|
273
|
-
route: "/api/customer/wishlist/deleteWishList",
|
|
274
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/deleteWishList")
|
|
275
|
-
});
|
|
276
|
-
addServerHandler({
|
|
277
|
-
route: "/api/customer/wishlist/get",
|
|
278
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/get")
|
|
279
|
-
});
|
|
280
|
-
addServerHandler({
|
|
281
|
-
route: "/api/customer/wishlist/getWishListItems",
|
|
282
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/getWishListItems")
|
|
283
|
-
});
|
|
284
|
-
addServerHandler({
|
|
285
|
-
route: "/api/customer/wishlist/updateWishList",
|
|
286
|
-
handler: resolver.resolve("./runtime/server/api/customer/wishlist/updateWishList")
|
|
287
|
-
});
|
|
288
127
|
addServerHandler({
|
|
289
128
|
route: "/api/nav/:id/links",
|
|
290
129
|
handler: resolver.resolve("./runtime/server/api/nav/[id]/links")
|
|
@@ -314,24 +153,20 @@ const module$1 = defineNuxtModule({
|
|
|
314
153
|
handler: resolver.resolve("./runtime/server/api/service/availability")
|
|
315
154
|
});
|
|
316
155
|
addServerHandler({
|
|
317
|
-
route: "/api/
|
|
318
|
-
handler: resolver.resolve("./runtime/server/api/
|
|
156
|
+
route: "/api/permalink/**",
|
|
157
|
+
handler: resolver.resolve("./runtime/server/api/permalink/[...slug].get")
|
|
319
158
|
});
|
|
320
159
|
addServerHandler({
|
|
321
160
|
route: "/api/shop",
|
|
322
161
|
handler: resolver.resolve("./runtime/server/api/shop")
|
|
323
162
|
});
|
|
324
|
-
addServerHandler({
|
|
325
|
-
route: "/api/featured",
|
|
326
|
-
handler: resolver.resolve("./runtime/server/api/featured")
|
|
327
|
-
});
|
|
328
163
|
addServerHandler({
|
|
329
164
|
route: "/api/samples",
|
|
330
165
|
handler: resolver.resolve("./runtime/server/api/samples")
|
|
331
166
|
});
|
|
332
167
|
addServerHandler({
|
|
333
|
-
route: "/api/
|
|
334
|
-
handler: resolver.resolve("./runtime/server/api/
|
|
168
|
+
route: "/api/global/**",
|
|
169
|
+
handler: resolver.resolve("./runtime/server/api/global/[...slug]")
|
|
335
170
|
});
|
|
336
171
|
addServerHandler({
|
|
337
172
|
route: "/api/cache/clean",
|
|
@@ -413,10 +248,6 @@ const module$1 = defineNuxtModule({
|
|
|
413
248
|
route: "/api/faizancheck",
|
|
414
249
|
handler: resolver.resolve("./runtime/server/api/checkvariables")
|
|
415
250
|
});
|
|
416
|
-
addServerHandler({
|
|
417
|
-
route: "/api/check-404",
|
|
418
|
-
handler: resolver.resolve("./runtime/server/api/check-404")
|
|
419
|
-
});
|
|
420
251
|
}
|
|
421
252
|
});
|
|
422
253
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
data
|
|
3
|
-
}
|
|
4
|
-
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
|
+
data?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
data?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
6
|
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
|
@@ -3,12 +3,8 @@ import { defineAsyncComponent } from "vue";
|
|
|
3
3
|
import { useRoute } from "vue-router";
|
|
4
4
|
import { useHead } from "#app";
|
|
5
5
|
const route = useRoute();
|
|
6
|
-
const slug = route.params.slug || "home";
|
|
7
6
|
const DynamicComponent = defineAsyncComponent(() => import("../dynamic.vue"));
|
|
8
|
-
const { data
|
|
9
|
-
defineProps({
|
|
10
|
-
data: { type: null, required: true }
|
|
11
|
-
});
|
|
7
|
+
const { data } = defineProps(["data"]);
|
|
12
8
|
const fullPath = ((fullUrl = "") => {
|
|
13
9
|
if (process.server) {
|
|
14
10
|
const headers = useRequestHeaders();
|
|
@@ -21,19 +17,19 @@ const fullPath = ((fullUrl = "") => {
|
|
|
21
17
|
return fullUrl;
|
|
22
18
|
});
|
|
23
19
|
useHead({
|
|
24
|
-
title:
|
|
20
|
+
title: data?.meta_title,
|
|
25
21
|
meta: [
|
|
26
22
|
{
|
|
27
23
|
name: "description",
|
|
28
|
-
content:
|
|
24
|
+
content: data?.meta_description
|
|
29
25
|
},
|
|
30
26
|
{
|
|
31
27
|
name: "og:title",
|
|
32
|
-
content:
|
|
28
|
+
content: data?.meta_title
|
|
33
29
|
},
|
|
34
30
|
{
|
|
35
31
|
name: "og:description",
|
|
36
|
-
content:
|
|
32
|
+
content: data?.meta_description
|
|
37
33
|
},
|
|
38
34
|
{
|
|
39
35
|
name: "og:url",
|
|
@@ -44,8 +40,8 @@ useHead({
|
|
|
44
40
|
</script>
|
|
45
41
|
|
|
46
42
|
<template>
|
|
47
|
-
<!-- <pre>{{
|
|
43
|
+
<!-- <pre>{{ fetchDatadata.content }}</pre> -->
|
|
48
44
|
<div class="page-wraper">
|
|
49
|
-
<DynamicComponent :data="
|
|
45
|
+
<DynamicComponent :data="data.content"/>
|
|
50
46
|
</div>
|
|
51
47
|
</template>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
data
|
|
3
|
-
}
|
|
4
|
-
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
|
+
data?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
data?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
6
|
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed } from "vue";
|
|
2
|
-
import { useRoute,
|
|
2
|
+
import { useRoute, useHead, useRuntimeConfig } from "#imports";
|
|
3
3
|
export const useBlogSingle = (props) => {
|
|
4
4
|
const route = useRoute();
|
|
5
5
|
const magazineCards = ref([
|
|
@@ -27,10 +27,9 @@ export const useBlogSingle = (props) => {
|
|
|
27
27
|
};
|
|
28
28
|
const fullPath = computed(() => {
|
|
29
29
|
if (process.server) {
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
return `${protocol}://${host}${route.fullPath}`;
|
|
30
|
+
const config = useRuntimeConfig();
|
|
31
|
+
const websiteurl = config.WEBSITE_URL || "";
|
|
32
|
+
return `${websiteurl}${route.fullPath}`;
|
|
34
33
|
} else {
|
|
35
34
|
return `${window.location.origin}${route.fullPath}`;
|
|
36
35
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useHead, useRoute,
|
|
1
|
+
import { useHead, useRoute, useFetch } from "#imports";
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
export const useCategoryIndex = (props, ProductTypesFilter = []) => {
|
|
4
4
|
const route = useRoute();
|
|
@@ -25,10 +25,10 @@ export const useCategoryIndex = (props, ProductTypesFilter = []) => {
|
|
|
25
25
|
query.sample = "true";
|
|
26
26
|
}
|
|
27
27
|
query.ProductTypesFilter = ["custom", "simple", "bundle", "sample"];
|
|
28
|
-
const { data: catData, pending, error, refresh } =
|
|
29
|
-
`category-${slug}-${JSON.stringify(route.query)}`,
|
|
30
|
-
|
|
31
|
-
);
|
|
28
|
+
const { data: catData, pending, error, refresh } = useFetch(`/api/category/${slug}`, {
|
|
29
|
+
key: `category-${slug}-${JSON.stringify(route.query)}`,
|
|
30
|
+
query
|
|
31
|
+
});
|
|
32
32
|
const meta = computed(() => {
|
|
33
33
|
const category = catData.value?.category || {};
|
|
34
34
|
return {
|
|
@@ -5,6 +5,7 @@ export default function (): {
|
|
|
5
5
|
deliverymethod: string | number | undefined;
|
|
6
6
|
billing_address: string | number | undefined;
|
|
7
7
|
billing_country: any;
|
|
8
|
+
mobile_country_id: any;
|
|
8
9
|
shippingasbilling: boolean;
|
|
9
10
|
isCustomer: boolean;
|
|
10
11
|
billing_state: string | number | undefined;
|
|
@@ -56,6 +57,7 @@ export default function (): {
|
|
|
56
57
|
deliverymethod: string | number | undefined;
|
|
57
58
|
billing_address: string | number | undefined;
|
|
58
59
|
billing_country: any;
|
|
60
|
+
mobile_country_id: any;
|
|
59
61
|
shippingasbilling: boolean;
|
|
60
62
|
isCustomer: boolean;
|
|
61
63
|
billing_state: string | number | undefined;
|
|
@@ -107,6 +109,7 @@ export default function (): {
|
|
|
107
109
|
deliverymethod: string | number | undefined;
|
|
108
110
|
billing_address: string | number | undefined;
|
|
109
111
|
billing_country: any;
|
|
112
|
+
mobile_country_id: any;
|
|
110
113
|
shippingasbilling: boolean;
|
|
111
114
|
isCustomer: boolean;
|
|
112
115
|
billing_state: string | number | undefined;
|
|
@@ -196,4 +199,5 @@ export default function (): {
|
|
|
196
199
|
ipLocation: import("vue").Ref<any, any>;
|
|
197
200
|
isAuthenticated: false;
|
|
198
201
|
fireShippingInfoEvent: () => void;
|
|
202
|
+
AllCheckoutErrors: import("vue").Ref<{}, {}>;
|
|
199
203
|
};
|
|
@@ -27,6 +27,7 @@ export default function() {
|
|
|
27
27
|
const isCustomer = ref(false);
|
|
28
28
|
const countries = useCountry().data;
|
|
29
29
|
const ipLocation = ref();
|
|
30
|
+
const AllCheckoutErrors = ref({});
|
|
30
31
|
const cartData = computed(() => {
|
|
31
32
|
const cartItems = checkoutStore.config;
|
|
32
33
|
return cartItems;
|
|
@@ -41,6 +42,7 @@ export default function() {
|
|
|
41
42
|
deliverymethod: sessiondata.value.fields ? sessiondata.value.fields.deliverymethod : "",
|
|
42
43
|
billing_address: sessiondata.value.fields ? sessiondata.value.fields.billing_address : "",
|
|
43
44
|
billing_country: sessiondata.value.fields ? sessiondata.value.fields.billing_country : companyCountryId.value,
|
|
45
|
+
mobile_country_id: sessiondata.value.fields ? sessiondata.value.fields.billing_country : companyCountryId.value,
|
|
44
46
|
shippingasbilling: shippingFormEnabled.value,
|
|
45
47
|
isCustomer: isCustomer.value,
|
|
46
48
|
billing_state: sessiondata.value.fields ? sessiondata.value.fields.billing_state : "",
|
|
@@ -158,8 +160,6 @@ export default function() {
|
|
|
158
160
|
shippingInfoFired = true;
|
|
159
161
|
if (delivery_method.id == 1) {
|
|
160
162
|
if (shipping_method) {
|
|
161
|
-
GTM_add_shipping_info(cartStore?.cart, shipping_method);
|
|
162
|
-
META_add_shipping_info(cartStore?.cart, shipping_method);
|
|
163
163
|
}
|
|
164
164
|
} else if (delivery_method.id == 2) {
|
|
165
165
|
shipping_method = {
|
|
@@ -315,9 +315,11 @@ export default function() {
|
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
if (error2.type === "card_error" || error2.type === "validation_error") {
|
|
318
|
+
AllCheckoutErrors.value = error2;
|
|
318
319
|
showMessage(error2.message);
|
|
319
320
|
}
|
|
320
321
|
} else {
|
|
322
|
+
AllCheckoutErrors.value = error;
|
|
321
323
|
showMessage(error.message);
|
|
322
324
|
}
|
|
323
325
|
} else if (chckoutResponse.data.url) {
|
|
@@ -328,9 +330,14 @@ export default function() {
|
|
|
328
330
|
}
|
|
329
331
|
removeLoading();
|
|
330
332
|
} else if (checkoutStore.errorResponseData.status == "Error") {
|
|
333
|
+
console.log("dddd", checkoutStore.errorResponseData);
|
|
334
|
+
showMessage(checkoutStore.errorResponseData.message);
|
|
335
|
+
AllCheckoutErrors.value = checkoutStore.errorResponseData;
|
|
331
336
|
removeLoading();
|
|
332
337
|
}
|
|
333
338
|
} catch (error2) {
|
|
339
|
+
console.log("dddd", error2);
|
|
340
|
+
showMessage(error2.message);
|
|
334
341
|
removeLoading();
|
|
335
342
|
} finally {
|
|
336
343
|
removeLoading();
|
|
@@ -417,6 +424,7 @@ export default function() {
|
|
|
417
424
|
PaymentMethods,
|
|
418
425
|
ipLocation,
|
|
419
426
|
isAuthenticated,
|
|
420
|
-
fireShippingInfoEvent
|
|
427
|
+
fireShippingInfoEvent,
|
|
428
|
+
AllCheckoutErrors
|
|
421
429
|
};
|
|
422
430
|
}
|
|
@@ -3,6 +3,7 @@ export interface BillingForm {
|
|
|
3
3
|
firstname: string;
|
|
4
4
|
lastname: string;
|
|
5
5
|
saddress: string;
|
|
6
|
+
saddress2: string;
|
|
6
7
|
suburb: string;
|
|
7
8
|
state: string;
|
|
8
9
|
state_id: string | number;
|
|
@@ -19,6 +20,7 @@ export declare function useBillingAddress(): {
|
|
|
19
20
|
firstname: string;
|
|
20
21
|
lastname: string;
|
|
21
22
|
saddress: string;
|
|
23
|
+
saddress2: string;
|
|
22
24
|
suburb: string;
|
|
23
25
|
state: string;
|
|
24
26
|
state_id: string | number;
|
|
@@ -33,6 +35,7 @@ export declare function useBillingAddress(): {
|
|
|
33
35
|
firstname: string;
|
|
34
36
|
lastname: string;
|
|
35
37
|
saddress: string;
|
|
38
|
+
saddress2: string;
|
|
36
39
|
suburb: string;
|
|
37
40
|
state: string;
|
|
38
41
|
state_id: string | number;
|
|
@@ -11,6 +11,7 @@ export function useBillingAddress() {
|
|
|
11
11
|
firstname: userBillingAddress.value?.firstname || "",
|
|
12
12
|
lastname: userBillingAddress.value?.lastname || "",
|
|
13
13
|
saddress: userBillingAddress.value?.address || "",
|
|
14
|
+
saddress2: userBillingAddress.value?.address || "",
|
|
14
15
|
suburb: userBillingAddress.value?.suburb || "",
|
|
15
16
|
state: userBillingAddress.value?.state || "",
|
|
16
17
|
state_id: userBillingAddress.value?.state_id || "",
|
|
@@ -37,6 +38,7 @@ export function useBillingAddress() {
|
|
|
37
38
|
firstname: userBillingAddress.value?.firstname || "",
|
|
38
39
|
lastname: userBillingAddress.value?.lastname || "",
|
|
39
40
|
saddress: userBillingAddress.value?.address || "",
|
|
41
|
+
saddress2: userBillingAddress.value?.address || "",
|
|
40
42
|
suburb: userBillingAddress.value?.suburb || "",
|
|
41
43
|
state: userBillingAddress.value?.state || "",
|
|
42
44
|
state_id: userBillingAddress.value?.state_id || "",
|
|
@@ -4,6 +4,7 @@ export interface ShippingAddress {
|
|
|
4
4
|
lastname: string;
|
|
5
5
|
address: string;
|
|
6
6
|
saddress?: string;
|
|
7
|
+
saddress2?: string;
|
|
7
8
|
suburb: string;
|
|
8
9
|
state: string;
|
|
9
10
|
state_id: string | number | null;
|
|
@@ -24,6 +25,7 @@ export declare function useShippingAddress(): {
|
|
|
24
25
|
lastname: string;
|
|
25
26
|
address: string;
|
|
26
27
|
saddress?: string | undefined;
|
|
28
|
+
saddress2?: string | undefined;
|
|
27
29
|
suburb: string;
|
|
28
30
|
state: string;
|
|
29
31
|
state_id: string | number | null;
|
|
@@ -39,6 +41,7 @@ export declare function useShippingAddress(): {
|
|
|
39
41
|
lastname: string;
|
|
40
42
|
address: string;
|
|
41
43
|
saddress?: string | undefined;
|
|
44
|
+
saddress2?: string | undefined;
|
|
42
45
|
suburb: string;
|
|
43
46
|
state: string;
|
|
44
47
|
state_id: string | number | null;
|
|
@@ -10,7 +10,7 @@ export declare function useWishlists(): {
|
|
|
10
10
|
}>>;
|
|
11
11
|
createWishlist: (data: CreateWishlistData) => Promise<ApiResponse<Wishlist>>;
|
|
12
12
|
addToWishlist: (listId: number, productSlug: string, data?: AddToWishlistData) => Promise<ApiResponse<WishlistProduct>>;
|
|
13
|
-
removeFromWishlist: (listId: number, itemId:
|
|
13
|
+
removeFromWishlist: (listId: number, itemId: number) => Promise<ApiResponse<void>>;
|
|
14
14
|
updateWishlist: (id: number, data: UpdateWishlistData) => Promise<ApiResponse<Wishlist>>;
|
|
15
15
|
deleteWishlist: (id: number) => Promise<ApiResponse<void>>;
|
|
16
16
|
wishlists: import("vue").ComputedRef<{
|
|
@@ -4,6 +4,9 @@ export interface SelectedOptions {
|
|
|
4
4
|
export interface attributeIdz {
|
|
5
5
|
name: Object;
|
|
6
6
|
}
|
|
7
|
+
export interface productId {
|
|
8
|
+
name: String;
|
|
9
|
+
}
|
|
7
10
|
export interface lookupprices {
|
|
8
11
|
name: Object;
|
|
9
12
|
}
|
|
@@ -54,6 +57,7 @@ export interface With_this_selection_following_selections_will_be_changed {
|
|
|
54
57
|
}
|
|
55
58
|
export interface State {
|
|
56
59
|
SelectedOptions: Record<string, string> | any;
|
|
60
|
+
productId: String | any;
|
|
57
61
|
attributeIdz: object | any;
|
|
58
62
|
lookupprices: lookupprices | null;
|
|
59
63
|
servicePriceSetting: object | any;
|
|
@@ -2002,17 +2002,11 @@ export const useCustomScript = defineStore("CustomScript", {
|
|
|
2002
2002
|
discount = parseFloat(total) * parseFloat(discount) / 100;
|
|
2003
2003
|
}
|
|
2004
2004
|
let promotionDiscount = discount + parseFloat(this.total_values_discount);
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
let new_total = parseFloat(total) - parseFloat(this.exclude_from_promo_total);
|
|
2011
|
-
promotionDiscount += this.calculateDiscount(rule.discounttype, rule.discount, new_total);
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2005
|
+
let new_total = parseFloat(total) - parseFloat(this.exclude_from_promo_total);
|
|
2006
|
+
const { calculatePrice } = usePriceCalculation();
|
|
2007
|
+
const promotionsStore = usePromotions();
|
|
2008
|
+
const priceResult = calculatePrice(this.product, new_total, promotionsStore.promotions || []);
|
|
2009
|
+
promotionDiscount += priceResult.totalDiscount;
|
|
2016
2010
|
if (parseFloat(total) - parseFloat(promotionDiscount) > 0 && promotionDiscount > 0) {
|
|
2017
2011
|
promotionDiscount = this.customRoundUp(promotionDiscount);
|
|
2018
2012
|
total = parseFloat(total) - parseFloat(promotionDiscount);
|