@instockng/storefront-ui 1.0.90 → 1.0.91
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/components/DeliveryConfirmation.d.ts +18 -0
- package/dist/components/DeliveryConfirmation.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +127 -121
- package/dist/index10.mjs +74 -190
- package/dist/index100.mjs +3 -5
- package/dist/index101.mjs +2 -5
- package/dist/index102.mjs +73 -169
- package/dist/index103.mjs +51 -50
- package/dist/index104.mjs +6 -69
- package/dist/index105.mjs +5 -34
- package/dist/index106.mjs +177 -41
- package/dist/index107.mjs +53 -2
- package/dist/index108.mjs +69 -28
- package/dist/index109.mjs +2 -18
- package/dist/index11.mjs +172 -107
- package/dist/index110.mjs +26 -213
- package/dist/index111.mjs +13 -175
- package/dist/index112.mjs +210 -17
- package/dist/index113.mjs +174 -17
- package/dist/index114.mjs +14 -25
- package/dist/index115.mjs +17 -150
- package/dist/index116.mjs +26 -13
- package/dist/index117.mjs +149 -24
- package/dist/index118.mjs +13 -77
- package/dist/index119.mjs +20 -27
- package/dist/index12.mjs +127 -90
- package/dist/index120.mjs +76 -137
- package/dist/index121.mjs +33 -50
- package/dist/index122.mjs +141 -19
- package/dist/index123.mjs +50 -22
- package/dist/index124.mjs +14 -14
- package/dist/index125.mjs +20 -18
- package/dist/index126.mjs +16 -14
- package/dist/index127.mjs +17 -14
- package/dist/index128.mjs +12 -12
- package/dist/index129.mjs +15 -58
- package/dist/index13.mjs +86 -90
- package/dist/index130.mjs +14 -11
- package/dist/index131.mjs +56 -30
- package/dist/index132.mjs +9 -15
- package/dist/index133.mjs +31 -26
- package/dist/index134.mjs +13 -16
- package/dist/index135.mjs +26 -11
- package/dist/index136.mjs +17 -11
- package/dist/index137.mjs +12 -40
- package/dist/index138.mjs +14 -16
- package/dist/index139.mjs +42 -263
- package/dist/index14.mjs +84 -149
- package/dist/index140.mjs +15 -62
- package/dist/index141.mjs +267 -7
- package/dist/index142.mjs +70 -2
- package/dist/index143.mjs +8 -2
- package/dist/index144.mjs +2 -33
- package/dist/index145.mjs +2 -2
- package/dist/index146.mjs +33 -2
- package/dist/index147.mjs +2 -2
- package/dist/index148.mjs +2 -2
- package/dist/index149.mjs +2 -2
- package/dist/index15.mjs +157 -216
- package/dist/index150.mjs +2 -18
- package/dist/index151.mjs +2 -32
- package/dist/index152.mjs +14 -34
- package/dist/index153.mjs +25 -11
- package/dist/index154.mjs +34 -14
- package/dist/index155.mjs +18 -2
- package/dist/index156.mjs +11 -13
- package/dist/index157.mjs +2 -46
- package/dist/index158.mjs +20 -2
- package/dist/index159.mjs +41 -25
- package/dist/index16.mjs +211 -107
- package/dist/index160.mjs +2 -18
- package/dist/index161.mjs +30 -2
- package/dist/index162.mjs +18 -2
- package/dist/index163.mjs +2 -2
- package/dist/index164.mjs +2 -2
- package/dist/index165.mjs +2 -72
- package/dist/index166.mjs +2 -2
- package/dist/index167.mjs +59 -40
- package/dist/index169.mjs +48 -31
- package/dist/index17.mjs +106 -86
- package/dist/index170.mjs +2 -152
- package/dist/index171.mjs +36 -2
- package/dist/index172.mjs +152 -2
- package/dist/index173.mjs +2 -19
- package/dist/index174.mjs +2 -2
- package/dist/index175.mjs +19 -2
- package/dist/index176.mjs +2 -26
- package/dist/index177.mjs +2 -2
- package/dist/index178.mjs +26 -2
- package/dist/index179.mjs +2 -24
- package/dist/index18.mjs +82 -733
- package/dist/index180.mjs +2 -23
- package/dist/index181.mjs +24 -2
- package/dist/index182.mjs +23 -2
- package/dist/index183.mjs +2 -2
- package/dist/index184.mjs +2 -23
- package/dist/index186.mjs +16 -16
- package/dist/index187.mjs +2 -2
- package/dist/index188.mjs +23 -2
- package/dist/index189.mjs +2 -2
- package/dist/index19.mjs +742 -53
- package/dist/index190.mjs +2 -23
- package/dist/index191.mjs +2 -2
- package/dist/index192.mjs +15 -15
- package/dist/index194.mjs +23 -2
- package/dist/index195.mjs +2 -2
- package/dist/index196.mjs +2 -2
- package/dist/index197.mjs +2 -2
- package/dist/index199.mjs +2 -2
- package/dist/index2.mjs +2 -2
- package/dist/index20.mjs +58 -60
- package/dist/index201.mjs +2 -127
- package/dist/index202.mjs +2 -2
- package/dist/index203.mjs +123 -70
- package/dist/index204.mjs +2 -74
- package/dist/index205.mjs +72 -19
- package/dist/index206.mjs +73 -55
- package/dist/index207.mjs +18 -26
- package/dist/index208.mjs +55 -6
- package/dist/index209.mjs +28 -51
- package/dist/index21.mjs +60 -22
- package/dist/index210.mjs +7 -6
- package/dist/index211.mjs +51 -11
- package/dist/index212.mjs +5 -6
- package/dist/index213.mjs +12 -28
- package/dist/index214.mjs +7 -2
- package/dist/index215.mjs +27 -69
- package/dist/index216.mjs +2 -167
- package/dist/index217.mjs +70 -2
- package/dist/index218.mjs +161 -102
- package/dist/index219.mjs +2 -2
- package/dist/index22.mjs +22 -107
- package/dist/index220.mjs +108 -2
- package/dist/index221.mjs +2 -2
- package/dist/index222.mjs +2 -2
- package/dist/index223.mjs +2 -2
- package/dist/index224.mjs +2 -2
- package/dist/index225.mjs +2 -37
- package/dist/index226.mjs +2 -2
- package/dist/index227.mjs +2 -2
- package/dist/index228.mjs +2 -2
- package/dist/index229.mjs +2 -2
- package/dist/index23.mjs +105 -38
- package/dist/index231.mjs +37 -2
- package/dist/index232.mjs +2 -2
- package/dist/index233.mjs +2 -2
- package/dist/index234.mjs +2 -2
- package/dist/index236.mjs +2 -2
- package/dist/index237.mjs +244 -2
- package/dist/index238.mjs +2 -2
- package/dist/index239.mjs +33 -2
- package/dist/index24.mjs +37 -37
- package/dist/index240.mjs +65 -2
- package/dist/index241.mjs +25 -4
- package/dist/index243.mjs +2 -244
- package/dist/index244.mjs +2 -2
- package/dist/index245.mjs +2 -33
- package/dist/index246.mjs +2 -65
- package/dist/index247.mjs +4 -25
- package/dist/index248.mjs +2 -13
- package/dist/index249.mjs +2 -7
- package/dist/index25.mjs +42 -89
- package/dist/index250.mjs +12 -30
- package/dist/index251.mjs +7 -11
- package/dist/index252.mjs +30 -3
- package/dist/index253.mjs +10 -3
- package/dist/index254.mjs +3 -11
- package/dist/index255.mjs +3 -4
- package/dist/index256.mjs +12 -33
- package/dist/index257.mjs +5 -31
- package/dist/index258.mjs +32 -27
- package/dist/index259.mjs +28 -58
- package/dist/index26.mjs +86 -29
- package/dist/index260.mjs +28 -2
- package/dist/index261.mjs +61 -2
- package/dist/index262.mjs +2 -18
- package/dist/index263.mjs +2 -47
- package/dist/index264.mjs +18 -2
- package/dist/index265.mjs +47 -2
- package/dist/index266.mjs +2 -2
- package/dist/index267.mjs +2 -2
- package/dist/index268.mjs +2 -2
- package/dist/index269.mjs +2 -91
- package/dist/index27.mjs +29 -6
- package/dist/index270.mjs +91 -3
- package/dist/index271.mjs +2 -2
- package/dist/index272.mjs +3 -2
- package/dist/index273.mjs +2 -17
- package/dist/index274.mjs +2 -13
- package/dist/index275.mjs +17 -6
- package/dist/index276.mjs +13 -30
- package/dist/index277.mjs +6 -2
- package/dist/index278.mjs +30 -2
- package/dist/index279.mjs +2 -2
- package/dist/index28.mjs +8 -21
- package/dist/index280.mjs +5 -0
- package/dist/index281.mjs +5 -0
- package/dist/index29.mjs +19 -34
- package/dist/index3.mjs +5 -5
- package/dist/index30.mjs +35 -37
- package/dist/index31.mjs +28 -103
- package/dist/index32.mjs +104 -20
- package/dist/index33.mjs +47 -9
- package/dist/index34.mjs +9 -9
- package/dist/index35.mjs +11 -116
- package/dist/index36.mjs +121 -25
- package/dist/index37.mjs +27 -81
- package/dist/index38.mjs +90 -112
- package/dist/index39.mjs +109 -8
- package/dist/index4.mjs +1 -1
- package/dist/index40.mjs +9 -33
- package/dist/index41.mjs +27 -20
- package/dist/index42.mjs +42 -7
- package/dist/index43.mjs +10 -122
- package/dist/index44.mjs +114 -380
- package/dist/index45.mjs +384 -20
- package/dist/index46.mjs +24 -31
- package/dist/index47.mjs +32 -7
- package/dist/index48.mjs +6 -1432
- package/dist/index49.mjs +1432 -69
- package/dist/index5.mjs +1 -1
- package/dist/index50.mjs +70 -2
- package/dist/index51.mjs +2 -60
- package/dist/index52.mjs +57 -48
- package/dist/index53.mjs +51 -33
- package/dist/index54.mjs +33 -15
- package/dist/index55.mjs +12 -2260
- package/dist/index56.mjs +2263 -36
- package/dist/index57.mjs +36 -44
- package/dist/index58.mjs +44 -99
- package/dist/index59.mjs +99 -81
- package/dist/index6.mjs +1 -1
- package/dist/index60.mjs +75 -13
- package/dist/index61.mjs +15 -125
- package/dist/index62.mjs +93 -89
- package/dist/index63.mjs +102 -56
- package/dist/index64.mjs +55 -89
- package/dist/index65.mjs +124 -70
- package/dist/index66.mjs +100 -13
- package/dist/index67.mjs +30 -89
- package/dist/index68.mjs +70 -56
- package/dist/index69.mjs +62 -44
- package/dist/index7.mjs +73 -73
- package/dist/index70.mjs +47 -46
- package/dist/index71.mjs +48 -121
- package/dist/index72.mjs +133 -22
- package/dist/index73.mjs +70 -2
- package/dist/index74.mjs +21 -20
- package/dist/index75.mjs +2 -153
- package/dist/index76.mjs +149 -71
- package/dist/index77.mjs +74 -14
- package/dist/index78.mjs +14 -62
- package/dist/index79.mjs +62 -4
- package/dist/index8.mjs +240 -99
- package/dist/index80.mjs +23 -2
- package/dist/index81.mjs +4 -5
- package/dist/index82.mjs +2 -1134
- package/dist/index83.mjs +5 -19
- package/dist/index84.mjs +1119 -40
- package/dist/index85.mjs +14 -27
- package/dist/index86.mjs +55 -2
- package/dist/index87.mjs +33 -2
- package/dist/index88.mjs +2 -235
- package/dist/index89.mjs +2 -6
- package/dist/index9.mjs +103 -73
- package/dist/index90.mjs +30 -130
- package/dist/index91.mjs +39 -64
- package/dist/index92.mjs +228 -80
- package/dist/index93.mjs +5 -28
- package/dist/index94.mjs +132 -7
- package/dist/index95.mjs +62 -69
- package/dist/index96.mjs +86 -3
- package/dist/index97.mjs +29 -2
- package/dist/index98.mjs +7 -81
- package/dist/index99.mjs +72 -51
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/DeliveryConfirmation.tsx +357 -0
- package/src/components/OrderConfirmation.tsx +24 -24
- package/src/index.ts +3 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeliveryConfirmation Component
|
|
3
|
+
*
|
|
4
|
+
* Customer-facing page for confirming or updating delivery details
|
|
5
|
+
* before an order is shipped.
|
|
6
|
+
*/
|
|
7
|
+
export interface DeliveryConfirmationProps {
|
|
8
|
+
orderId: string;
|
|
9
|
+
token: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
headerClassName?: string;
|
|
12
|
+
buttonClassName?: string;
|
|
13
|
+
cardClassName?: string;
|
|
14
|
+
whatsappHelpLink?: string;
|
|
15
|
+
whatsappHelpNumber?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function DeliveryConfirmation({ orderId, token, className, headerClassName, buttonClassName, cardClassName, whatsappHelpLink, whatsappHelpNumber, }: DeliveryConfirmationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=DeliveryConfirmation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeliveryConfirmation.d.ts","sourceRoot":"","sources":["../../src/components/DeliveryConfirmation.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,SAAS,EACT,eAAe,EACf,eAAe,EACf,aAAa,EACb,gBAAqC,EACrC,kBAAmD,GACpD,EAAE,yBAAyB,2CA4T3B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export { useTikTokPixel, TikTokPixelProvider } from './providers/TikTokPixelProv
|
|
|
12
12
|
export { usePageTracking } from './hooks/usePageTracking';
|
|
13
13
|
export { OrderConfirmation } from './components/OrderConfirmation';
|
|
14
14
|
export type { OrderConfirmationProps } from './components/OrderConfirmation';
|
|
15
|
+
export { DeliveryConfirmation } from './components/DeliveryConfirmation';
|
|
16
|
+
export type { DeliveryConfirmationProps } from './components/DeliveryConfirmation';
|
|
15
17
|
export { ProductCard } from './components/ProductCard';
|
|
16
18
|
export type { ProductCardProps, ProductCardProduct } from './components/ProductCard';
|
|
17
19
|
export { ProductGrid } from './components/ProductGrid';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG1F,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,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CAAgC,CAAC;AAE7E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC3I,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,cAAc,uBAAuB,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,134 +1,140 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { StorefrontProvider as m } from "./index2.mjs";
|
|
3
|
-
import { CartProvider as
|
|
4
|
-
import { MetaPixelProvider as
|
|
5
|
-
import { TikTokPixelProvider as f, useTikTokPixel as
|
|
6
|
-
import { usePageTracking as
|
|
3
|
+
import { CartProvider as a, useCart as d } from "./index3.mjs";
|
|
4
|
+
import { MetaPixelProvider as n, useMetaPixel as u } from "./index4.mjs";
|
|
5
|
+
import { TikTokPixelProvider as f, useTikTokPixel as c } from "./index5.mjs";
|
|
6
|
+
import { usePageTracking as x } from "./index6.mjs";
|
|
7
7
|
import { OrderConfirmation as P } from "./index7.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import * as
|
|
38
|
-
import
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
8
|
+
import { DeliveryConfirmation as D } from "./index8.mjs";
|
|
9
|
+
import { ProductCard as y } from "./index9.mjs";
|
|
10
|
+
import { ProductGrid as k } from "./index10.mjs";
|
|
11
|
+
import { ProductAddOns as R } from "./index11.mjs";
|
|
12
|
+
import { RecommendedProducts as I } from "./index12.mjs";
|
|
13
|
+
import { VariantPickerModal as B } from "./index13.mjs";
|
|
14
|
+
import { CartItem as T } from "./index14.mjs";
|
|
15
|
+
import { QuantitySelector as U } from "./index15.mjs";
|
|
16
|
+
import { ShoppingCart as H } from "./index16.mjs";
|
|
17
|
+
import { CartUpsellScreen as b } from "./index17.mjs";
|
|
18
|
+
import { DiscountCodeInput as z } from "./index18.mjs";
|
|
19
|
+
import { Checkout as Q } from "./index19.mjs";
|
|
20
|
+
import { Button as $ } from "./index20.mjs";
|
|
21
|
+
import { Card as w, CardContent as E, CardDescription as J, CardFooter as L, CardHeader as N, CardTitle as W } from "./index21.mjs";
|
|
22
|
+
import { Badge as Y } from "./index22.mjs";
|
|
23
|
+
import { Modal as ee } from "./index23.mjs";
|
|
24
|
+
import { FormInput as te } from "./index24.mjs";
|
|
25
|
+
import { FormSelect as me } from "./index25.mjs";
|
|
26
|
+
import { calculateDiscountedPrice as ae, cn as de, formatCurrency as pe, formatDate as ne, formatDateTime as ue, getDiscountPercent as se, getStatusColor as fe } from "./index26.mjs";
|
|
27
|
+
import { ApiClientProvider as Ce, useApiClientContext as xe } from "./index27.mjs";
|
|
28
|
+
import { useApiConfig as Pe } from "./index28.mjs";
|
|
29
|
+
import { getApiClient as De, initializeApiClient as ve, resetApiClient as ye } from "./index29.mjs";
|
|
30
|
+
import { authHeaders as ke, createAdminRpcClients as Ge, createRpcClients as Re } from "./index30.mjs";
|
|
31
|
+
import { fetchProductAddons as Ie, fetchProductBySlug as Oe, fetchProductRecommendations as Be, fetchProductsByBrand as Se } from "./index31.mjs";
|
|
32
|
+
import { addCartItem as Me, applyDiscount as Ue, checkoutCart as Fe, createCart as He, fetchCart as Ze, fetchCartRecommendations as be, initiateCheckout as qe, removeCartItem as ze, removeDiscount as Ke, updateCart as Qe, updateCartItem as Ve } from "./index32.mjs";
|
|
33
|
+
import { confirmDelivery as je, confirmOrder as we, fetchOrder as Ee, fetchOrderRecommendations as Je, updateDeliveryAddress as Le } from "./index33.mjs";
|
|
34
|
+
import { fetchDeliveryZones as We } from "./index34.mjs";
|
|
35
|
+
import { fetchBrandBySlug as Ye } from "./index35.mjs";
|
|
36
|
+
import { queryKeys as er } from "./index36.mjs";
|
|
37
|
+
import * as e from "./index37.mjs";
|
|
38
|
+
import * as r from "./index38.mjs";
|
|
39
|
+
import { useAddCartItem as tr, useApplyDiscount as or, useCheckoutCart as mr, useCreateCart as ir, useGetCart as ar, useGetCartRecommendations as dr, useInitiateCheckout as pr, useRemoveCartItem as nr, useRemoveDiscount as ur, useUpdateCart as sr, useUpdateCartItem as fr } from "./index39.mjs";
|
|
40
|
+
import { useGetBrand as Cr } from "./index40.mjs";
|
|
41
|
+
import { useGetProduct as lr, useGetProductAddOns as Pr, useGetProductRecommendations as hr, useGetProducts as Dr } from "./index41.mjs";
|
|
42
|
+
import { useConfirmDelivery as yr, useConfirmOrder as Ar, useGetOrder as kr, useGetOrderRecommendations as Gr, useUpdateDeliveryAddress as Rr } from "./index42.mjs";
|
|
43
|
+
import { useGetDeliveryZones as Ir } from "./index43.mjs";
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
te as
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
Ce as ApiClientProvider,
|
|
46
|
+
Y as Badge,
|
|
47
|
+
$ as Button,
|
|
48
|
+
w as Card,
|
|
49
|
+
E as CardContent,
|
|
50
|
+
J as CardDescription,
|
|
51
|
+
L as CardFooter,
|
|
52
|
+
N as CardHeader,
|
|
53
|
+
W as CardTitle,
|
|
54
|
+
T as CartItem,
|
|
55
|
+
a as CartProvider,
|
|
56
|
+
b as CartUpsellScreen,
|
|
57
|
+
Q as Checkout,
|
|
58
|
+
D as DeliveryConfirmation,
|
|
59
|
+
z as DiscountCodeInput,
|
|
60
|
+
te as FormInput,
|
|
61
|
+
me as FormSelect,
|
|
62
|
+
n as MetaPixelProvider,
|
|
63
|
+
ee as Modal,
|
|
62
64
|
P as OrderConfirmation,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
R as ProductAddOns,
|
|
66
|
+
y as ProductCard,
|
|
65
67
|
k as ProductGrid,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
U as QuantitySelector,
|
|
69
|
+
I as RecommendedProducts,
|
|
70
|
+
H as ShoppingCart,
|
|
69
71
|
m as StorefrontProvider,
|
|
70
72
|
f as TikTokPixelProvider,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
B as VariantPickerModal,
|
|
74
|
+
Me as addCartItem,
|
|
73
75
|
r as adminApi,
|
|
74
|
-
|
|
76
|
+
Ue as applyDiscount,
|
|
75
77
|
ke as authHeaders,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
78
|
+
ae as calculateDiscountedPrice,
|
|
79
|
+
Fe as checkoutCart,
|
|
80
|
+
de as cn,
|
|
81
|
+
je as confirmDelivery,
|
|
82
|
+
we as confirmOrder,
|
|
83
|
+
Ge as createAdminRpcClients,
|
|
84
|
+
He as createCart,
|
|
85
|
+
Re as createRpcClients,
|
|
86
|
+
Ye as fetchBrandBySlug,
|
|
87
|
+
Ze as fetchCart,
|
|
88
|
+
be as fetchCartRecommendations,
|
|
89
|
+
We as fetchDeliveryZones,
|
|
90
|
+
Ee as fetchOrder,
|
|
91
|
+
Je as fetchOrderRecommendations,
|
|
92
|
+
Ie as fetchProductAddons,
|
|
93
|
+
Oe as fetchProductBySlug,
|
|
94
|
+
Be as fetchProductRecommendations,
|
|
95
|
+
Se as fetchProductsByBrand,
|
|
96
|
+
pe as formatCurrency,
|
|
97
|
+
ne as formatDate,
|
|
98
|
+
ue as formatDateTime,
|
|
99
|
+
De as getApiClient,
|
|
100
|
+
se as getDiscountPercent,
|
|
101
|
+
fe as getStatusColor,
|
|
102
|
+
ve as initializeApiClient,
|
|
103
|
+
qe as initiateCheckout,
|
|
101
104
|
e as publicApi,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
er as queryKeys,
|
|
106
|
+
ze as removeCartItem,
|
|
107
|
+
Ke as removeDiscount,
|
|
108
|
+
ye as resetApiClient,
|
|
109
|
+
Qe as updateCart,
|
|
110
|
+
Ve as updateCartItem,
|
|
111
|
+
Le as updateDeliveryAddress,
|
|
112
|
+
tr as useAddCartItem,
|
|
113
|
+
xe as useApiClientContext,
|
|
114
|
+
Pe as useApiConfig,
|
|
115
|
+
or as useApplyDiscount,
|
|
112
116
|
d as useCart,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
117
|
+
mr as useCheckoutCart,
|
|
118
|
+
yr as useConfirmDelivery,
|
|
119
|
+
Ar as useConfirmOrder,
|
|
120
|
+
ir as useCreateCart,
|
|
121
|
+
Cr as useGetBrand,
|
|
122
|
+
ar as useGetCart,
|
|
123
|
+
dr as useGetCartRecommendations,
|
|
124
|
+
Ir as useGetDeliveryZones,
|
|
125
|
+
kr as useGetOrder,
|
|
126
|
+
Gr as useGetOrderRecommendations,
|
|
127
|
+
lr as useGetProduct,
|
|
128
|
+
Pr as useGetProductAddOns,
|
|
129
|
+
hr as useGetProductRecommendations,
|
|
130
|
+
Dr as useGetProducts,
|
|
131
|
+
pr as useInitiateCheckout,
|
|
132
|
+
u as useMetaPixel,
|
|
133
|
+
x as usePageTracking,
|
|
134
|
+
nr as useRemoveCartItem,
|
|
135
|
+
ur as useRemoveDiscount,
|
|
136
|
+
c as useTikTokPixel,
|
|
137
|
+
sr as useUpdateCart,
|
|
138
|
+
fr as useUpdateCartItem,
|
|
139
|
+
Rr as useUpdateDeliveryAddress
|
|
134
140
|
};
|
package/dist/index10.mjs
CHANGED
|
@@ -1,199 +1,83 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { ChevronLeft as U, ChevronRight as z } from "lucide-react";
|
|
5
|
-
import { Switch as G } from "./index46.mjs";
|
|
6
|
-
import { Badge as T } from "./index21.mjs";
|
|
7
|
-
import { cn as P, formatCurrency as k } from "./index25.mjs";
|
|
8
|
-
import { VariantPickerModal as _ } from "./index12.mjs";
|
|
9
|
-
import "./index26.mjs";
|
|
2
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import "./index27.mjs";
|
|
10
4
|
import "@tanstack/react-query";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
onProductClick:
|
|
5
|
+
import { useGetProducts as C } from "./index41.mjs";
|
|
6
|
+
import { ProductCard as k } from "./index9.mjs";
|
|
7
|
+
import { Loader2 as j, Package as d } from "lucide-react";
|
|
8
|
+
import { cn as P } from "./index26.mjs";
|
|
9
|
+
function q({
|
|
10
|
+
brandId: l,
|
|
11
|
+
onAddToCart: n,
|
|
12
|
+
onProductClick: t,
|
|
13
|
+
columns: o = 3,
|
|
14
|
+
showStock: m = !0,
|
|
19
15
|
className: p,
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
cardClassName: g,
|
|
17
|
+
showLoading: u = !0,
|
|
18
|
+
emptyMessage: x = "No products available at the moment.",
|
|
19
|
+
errorMessage: h = "Failed to load products. Please try again later.",
|
|
20
|
+
loadingVariantId: f
|
|
22
21
|
}) {
|
|
23
|
-
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
1
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
22
|
+
const { data: N, isLoading: v, error: b } = C(l);
|
|
23
|
+
if (v && u)
|
|
24
|
+
return /* @__PURE__ */ e("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
25
|
+
/* @__PURE__ */ e(j, { className: "mx-auto mb-4 h-12 w-12 animate-spin text-blue-600" }),
|
|
26
|
+
/* @__PURE__ */ e("p", { className: "text-gray-600", children: "Loading products..." })
|
|
27
|
+
] }) });
|
|
28
|
+
if (b)
|
|
29
|
+
return /* @__PURE__ */ e("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
30
|
+
/* @__PURE__ */ e(d, { className: "mx-auto mb-4 h-12 w-12 text-red-600" }),
|
|
31
|
+
/* @__PURE__ */ e("p", { className: "text-red-600", children: h })
|
|
32
|
+
] }) });
|
|
33
|
+
const a = N || [];
|
|
34
|
+
return a.length === 0 ? /* @__PURE__ */ e("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
35
|
+
/* @__PURE__ */ e(d, { className: "mx-auto mb-4 h-12 w-12 text-gray-400" }),
|
|
36
|
+
/* @__PURE__ */ e("p", { className: "text-gray-600", children: x })
|
|
37
|
+
] }) }) : /* @__PURE__ */ e(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: P(
|
|
41
|
+
"grid gap-6",
|
|
42
|
+
{
|
|
43
|
+
2: "grid-cols-1 sm:grid-cols-2",
|
|
44
|
+
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
45
|
+
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"
|
|
46
|
+
}[o],
|
|
47
|
+
p
|
|
48
|
+
),
|
|
49
|
+
children: a.map((i) => {
|
|
50
|
+
const c = {
|
|
51
|
+
id: i.id,
|
|
52
|
+
name: i.name,
|
|
53
|
+
description: i.description || void 0,
|
|
54
|
+
thumbnailUrl: i.thumbnailUrl || void 0,
|
|
55
|
+
brand: void 0,
|
|
56
|
+
// Brand info not included in product response
|
|
57
|
+
variants: i.variants.map((r) => ({
|
|
58
|
+
id: r.id,
|
|
59
|
+
name: r.name || r.sku,
|
|
60
|
+
price: typeof r.price == "string" ? parseFloat(r.price) : r.price,
|
|
61
|
+
sku: r.sku,
|
|
62
|
+
stock: r.stock || void 0
|
|
63
|
+
}))
|
|
64
|
+
}, y = i.variants.some((r) => r.id === f);
|
|
65
|
+
return /* @__PURE__ */ e(
|
|
66
|
+
k,
|
|
67
|
+
{
|
|
68
|
+
product: c,
|
|
69
|
+
onAddToCart: n,
|
|
70
|
+
onClick: t ? () => t(c) : void 0,
|
|
71
|
+
showStock: m,
|
|
72
|
+
className: g,
|
|
73
|
+
isAddingToCart: y
|
|
74
|
+
},
|
|
75
|
+
i.id
|
|
49
76
|
);
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
}, S = async (e, n) => {
|
|
53
|
-
b(!0);
|
|
54
|
-
try {
|
|
55
|
-
await v(
|
|
56
|
-
e.slug,
|
|
57
|
-
e.name,
|
|
58
|
-
n.price,
|
|
59
|
-
n.sku,
|
|
60
|
-
1
|
|
61
|
-
), m(null);
|
|
62
|
-
} finally {
|
|
63
|
-
b(!1);
|
|
77
|
+
})
|
|
64
78
|
}
|
|
65
|
-
|
|
66
|
-
if (o.current) {
|
|
67
|
-
const { scrollLeft: e, scrollWidth: n, clientWidth: r } = o.current, l = e / (n - r);
|
|
68
|
-
O(l || 0);
|
|
69
|
-
}
|
|
70
|
-
}, w = (e) => {
|
|
71
|
-
if (o.current) {
|
|
72
|
-
const { clientWidth: n } = o.current, r = n * 0.9;
|
|
73
|
-
o.current.scrollBy({
|
|
74
|
-
left: e === "left" ? -r : r,
|
|
75
|
-
behavior: "smooth"
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
return (!c || c.length === 0) && !N ? null : N ? /* @__PURE__ */ a("div", { className: P("w-full py-8 space-y-4 animate-pulse", p), style: { maxWidth: "calc(100vw - calc(var(--spacing) * 7))" }, children: [
|
|
80
|
-
/* @__PURE__ */ t("div", { className: "h-4 w-32 bg-gray-200 rounded px-1 mb-6" }),
|
|
81
|
-
/* @__PURE__ */ a("div", { className: "flex gap-4 overflow-x-hidden", children: [
|
|
82
|
-
/* @__PURE__ */ t("div", { className: "min-w-[90%] h-[90px] bg-gray-100 rounded-[2rem]" }),
|
|
83
|
-
/* @__PURE__ */ t("div", { className: "min-w-[90%] h-[90px] bg-gray-100 rounded-[2rem]" })
|
|
84
|
-
] })
|
|
85
|
-
] }) : /* @__PURE__ */ a(C, { children: [
|
|
86
|
-
/* @__PURE__ */ a("div", { className: p, children: [
|
|
87
|
-
/* @__PURE__ */ t("div", { className: "px-1 mb-3", children: /* @__PURE__ */ t("h3", { className: "text-lg font-bold tracking-tight text-gray-900", children: j }) }),
|
|
88
|
-
/* @__PURE__ */ t("div", { className: "relative", children: /* @__PURE__ */ t(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
ref: o,
|
|
92
|
-
onScroll: E,
|
|
93
|
-
className: "flex gap-4 overflow-x-auto scrollbar-hide snap-x snap-mandatory px-1",
|
|
94
|
-
style: { scrollbarWidth: "none", msOverflowStyle: "none", maxWidth: "calc(100vw - calc(var(--spacing) * 7))" },
|
|
95
|
-
children: c.map((e) => {
|
|
96
|
-
const n = W.includes(e.id), r = e.variants[0], l = (r == null ? void 0 : r.price) || 0, i = e.compareAtPrice || r.compareAtPrice, d = i && i > l, R = d ? Math.round((i - l) / i * 100) : 0;
|
|
97
|
-
return /* @__PURE__ */ a(
|
|
98
|
-
"div",
|
|
99
|
-
{
|
|
100
|
-
className: "relative flex min-w-[90%] md:min-w-[420px] snap-start items-center gap-4 rounded-xl bg-[#EBEBEB] p-3 transition-all",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ a(
|
|
103
|
-
"a",
|
|
104
|
-
{
|
|
105
|
-
href: `/product/${e.slug}`,
|
|
106
|
-
className: "flex flex-1 items-center gap-4 min-w-0",
|
|
107
|
-
children: [
|
|
108
|
-
/* @__PURE__ */ t("div", { className: "h-16 w-16 flex-shrink-0 overflow-hidden rounded-xl bg-white/40 flex items-center justify-center", children: e.thumbnailUrl ? /* @__PURE__ */ t(
|
|
109
|
-
"img",
|
|
110
|
-
{
|
|
111
|
-
src: e.thumbnailUrl,
|
|
112
|
-
alt: e.name,
|
|
113
|
-
className: "h-full w-full object-cover",
|
|
114
|
-
loading: "lazy"
|
|
115
|
-
}
|
|
116
|
-
) : /* @__PURE__ */ t("div", { className: "flex h-full w-full items-center justify-center text-[10px] text-gray-400", children: "No Img" }) }),
|
|
117
|
-
/* @__PURE__ */ a("div", { className: "flex flex-1 flex-col justify-center min-w-0", children: [
|
|
118
|
-
/* @__PURE__ */ t("h4", { className: "text-md font-bold text-[#333] truncate pr-2", title: e.name, children: e.name }),
|
|
119
|
-
e.addonDescription && /* @__PURE__ */ t("p", { className: "text-[11px] text-gray-500 line-clamp-3 italic mb-1", children: e.addonDescription }),
|
|
120
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 mt-1", children: [
|
|
121
|
-
/* @__PURE__ */ t("span", { className: "text-md font-bold text-[#333]", children: k(l) }),
|
|
122
|
-
d && /* @__PURE__ */ a(C, { children: [
|
|
123
|
-
/* @__PURE__ */ t("span", { className: "text-sm text-[#DC143C] line-through", children: k(i) }),
|
|
124
|
-
/* @__PURE__ */ a(T, { className: "bg-[#DC143C]/10 hover:bg-[#DC143C]/20 text-[#DC143C] border-none text-[10px] font-bold px-2 py-0.5 rounded-lg uppercase tracking-tight", children: [
|
|
125
|
-
R,
|
|
126
|
-
"% OFF"
|
|
127
|
-
] })
|
|
128
|
-
] })
|
|
129
|
-
] })
|
|
130
|
-
] })
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ t("div", { className: "pl-2", onClick: (h) => h.stopPropagation(), children: /* @__PURE__ */ t(
|
|
135
|
-
G,
|
|
136
|
-
{
|
|
137
|
-
checked: n,
|
|
138
|
-
onCheckedChange: (h) => F(e, h),
|
|
139
|
-
className: "scale-125"
|
|
140
|
-
}
|
|
141
|
-
) })
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
e.id
|
|
145
|
-
);
|
|
146
|
-
})
|
|
147
|
-
}
|
|
148
|
-
) }),
|
|
149
|
-
/* @__PURE__ */ a("div", { className: "flex items-center justify-between px-2 mt-2", children: [
|
|
150
|
-
/* @__PURE__ */ t("div", { className: "flex gap-1.5 focus:outline-none", children: Array.from({ length: Math.min(c.length, 6) }).map((e, n) => {
|
|
151
|
-
const r = Math.round(L * (Math.min(c.length, 6) - 1)) === n;
|
|
152
|
-
return /* @__PURE__ */ t(
|
|
153
|
-
"div",
|
|
154
|
-
{
|
|
155
|
-
className: P(
|
|
156
|
-
"h-2 w-2 rounded-full transition-all duration-300",
|
|
157
|
-
r ? "bg-gray-600 scale-110" : "bg-gray-300"
|
|
158
|
-
)
|
|
159
|
-
},
|
|
160
|
-
n
|
|
161
|
-
);
|
|
162
|
-
}) }),
|
|
163
|
-
/* @__PURE__ */ a("div", { className: "flex gap-4", children: [
|
|
164
|
-
/* @__PURE__ */ t(
|
|
165
|
-
"button",
|
|
166
|
-
{
|
|
167
|
-
onClick: () => w("left"),
|
|
168
|
-
className: "text-gray-400 hover:text-gray-900 transition-colors",
|
|
169
|
-
"aria-label": "Previous",
|
|
170
|
-
children: /* @__PURE__ */ t(U, { className: "h-6 w-6 stroke-[2.5px]" })
|
|
171
|
-
}
|
|
172
|
-
),
|
|
173
|
-
/* @__PURE__ */ t(
|
|
174
|
-
"button",
|
|
175
|
-
{
|
|
176
|
-
onClick: () => w("right"),
|
|
177
|
-
className: "text-gray-400 hover:text-gray-900 transition-colors",
|
|
178
|
-
"aria-label": "Next",
|
|
179
|
-
children: /* @__PURE__ */ t(z, { className: "h-6 w-6 stroke-[2.5px]" })
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
] })
|
|
183
|
-
] })
|
|
184
|
-
] }),
|
|
185
|
-
/* @__PURE__ */ t(
|
|
186
|
-
_,
|
|
187
|
-
{
|
|
188
|
-
isOpen: !!y,
|
|
189
|
-
onClose: () => m(null),
|
|
190
|
-
product: y,
|
|
191
|
-
onConfirm: S,
|
|
192
|
-
isLoading: B
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
] });
|
|
79
|
+
);
|
|
196
80
|
}
|
|
197
81
|
export {
|
|
198
|
-
|
|
82
|
+
q as ProductGrid
|
|
199
83
|
};
|
package/dist/index100.mjs
CHANGED