@storepecker/storefront-core 2.3.6 → 2.4.1

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.
Files changed (91) hide show
  1. package/dist/api/index.cjs +28 -24
  2. package/dist/api/index.d.cts +8 -5
  3. package/dist/api/index.d.ts +8 -5
  4. package/dist/api/index.js +1 -1
  5. package/dist/{booking-CG6tul9l.d.ts → booking-BVWe8HHh.d.ts} +1 -1
  6. package/dist/{booking-DNVf5ZAS.d.cts → booking-DX9SU_qm.d.cts} +1 -1
  7. package/dist/cart-kJoawc_Z.d.cts +126 -0
  8. package/dist/cart-y-7RPmnQ.d.ts +126 -0
  9. package/dist/checkout/index.cjs +22 -22
  10. package/dist/checkout/index.d.cts +3 -1
  11. package/dist/checkout/index.d.ts +3 -1
  12. package/dist/checkout/index.js +2 -2
  13. package/dist/{chunk-BTT3XQ32.cjs → chunk-33TWVRZE.cjs} +6 -6
  14. package/dist/chunk-3YRSHPM6.cjs +34 -0
  15. package/dist/chunk-6DXB4O6P.cjs +121 -0
  16. package/dist/{chunk-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
  17. package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
  18. package/dist/chunk-B3BXKMQA.cjs +271 -0
  19. package/dist/chunk-BTR3HLL4.js +14 -0
  20. package/dist/chunk-EGFOTJPC.js +22 -0
  21. package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
  22. package/dist/chunk-HAQWCNDY.cjs +24 -0
  23. package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
  24. package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
  25. package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
  26. package/dist/chunk-L43KF3AC.js +269 -0
  27. package/dist/chunk-LHF5BSWO.cjs +16 -0
  28. package/dist/chunk-LJUGNSQQ.cjs +149 -0
  29. package/dist/chunk-LLRSKDH5.js +115 -0
  30. package/dist/chunk-OSM73ETC.js +139 -0
  31. package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
  32. package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
  33. package/dist/chunk-U7EXLQCT.js +32 -0
  34. package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
  35. package/dist/chunk-V447PVRV.cjs +308 -0
  36. package/dist/chunk-YK4M3SFP.js +301 -0
  37. package/dist/{collections-Bz9KD7Na.d.cts → collections-BDSVfRNo.d.ts} +1 -1
  38. package/dist/{collections-CkEUi3BR.d.ts → collections-WzvTO0OQ.d.cts} +1 -1
  39. package/dist/components/address-form.cjs +17 -0
  40. package/dist/components/address-form.css +329 -0
  41. package/dist/components/address-form.d.cts +33 -0
  42. package/dist/components/address-form.d.ts +33 -0
  43. package/dist/components/address-form.js +11 -0
  44. package/dist/components/digital-product-download-modal.cjs +8 -0
  45. package/dist/components/digital-product-download-modal.d.cts +15 -0
  46. package/dist/components/digital-product-download-modal.d.ts +15 -0
  47. package/dist/components/digital-product-download-modal.js +2 -0
  48. package/dist/components/index.cjs +35 -695
  49. package/dist/components/index.d.cts +14 -87
  50. package/dist/components/index.d.ts +14 -87
  51. package/dist/components/index.js +11 -688
  52. package/dist/components/search-dropdown.cjs +7 -0
  53. package/dist/components/search-dropdown.css +200 -0
  54. package/dist/components/search-dropdown.d.cts +28 -0
  55. package/dist/components/search-dropdown.d.ts +28 -0
  56. package/dist/components/search-dropdown.js +1 -0
  57. package/dist/components/share-button.cjs +9 -0
  58. package/dist/components/share-button.d.cts +11 -0
  59. package/dist/components/share-button.d.ts +11 -0
  60. package/dist/components/share-button.js +3 -0
  61. package/dist/components/share-icon.cjs +7 -0
  62. package/dist/components/share-icon.d.cts +9 -0
  63. package/dist/components/share-icon.d.ts +9 -0
  64. package/dist/components/share-icon.js +1 -0
  65. package/dist/components/theme-data-initializer.cjs +8 -0
  66. package/dist/components/theme-data-initializer.d.cts +12 -0
  67. package/dist/components/theme-data-initializer.d.ts +12 -0
  68. package/dist/components/theme-data-initializer.js +2 -0
  69. package/dist/hooks/index.cjs +18 -17
  70. package/dist/hooks/index.d.cts +4 -2
  71. package/dist/hooks/index.d.ts +4 -2
  72. package/dist/hooks/index.js +6 -5
  73. package/dist/models/index.d.cts +6 -4
  74. package/dist/models/index.d.ts +6 -4
  75. package/dist/orders-CjNmCY5I.d.cts +144 -0
  76. package/dist/orders-L_8eIkUS.d.ts +144 -0
  77. package/dist/{pixelEvents-OVIkPw-J.d.ts → pixelEvents-Bo-VjAx8.d.ts} +4 -2
  78. package/dist/{pixelEvents-DYkiTkb2.d.cts → pixelEvents-C1rFPOwb.d.cts} +4 -2
  79. package/dist/{orders-fIdANHSl.d.ts → product-DJMdi4D4.d.cts} +1 -265
  80. package/dist/{orders-fIdANHSl.d.cts → product-DJMdi4D4.d.ts} +1 -265
  81. package/dist/store/index.cjs +5 -5
  82. package/dist/store/index.d.cts +6 -4
  83. package/dist/store/index.d.ts +6 -4
  84. package/dist/store/index.js +2 -2
  85. package/dist/utils/index.cjs +44 -43
  86. package/dist/utils/index.d.cts +7 -5
  87. package/dist/utils/index.d.ts +7 -5
  88. package/dist/utils/index.js +3 -2
  89. package/dist/{wishlist-stNzfvIP.d.cts → wishlist-CUuCTSVJ.d.cts} +1 -1
  90. package/dist/{wishlist-_bd4gLyQ.d.ts → wishlist-DKYFZR0s.d.ts} +1 -1
  91. package/package.json +50 -6
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var chunkV447PVRV_cjs = require('../chunk-V447PVRV.cjs');
4
+
5
+
6
+
7
+ module.exports = chunkV447PVRV_cjs.search_dropdown_default;
@@ -0,0 +1,200 @@
1
+ /* src/components/search-dropdown/search-dropdown.module.css */
2
+ .searchDropdown {
3
+ position: relative;
4
+ width: 100%;
5
+ font-family: var(--body-font, "Inter", sans-serif);
6
+ }
7
+ .label {
8
+ display: block;
9
+ margin-bottom: var(--sm, 8px);
10
+ font-size: var(--fs-md, 14px);
11
+ color: var(--text-secondary, #666);
12
+ font-weight: 400;
13
+ }
14
+ .dropdownContainer {
15
+ position: relative;
16
+ }
17
+ .dropdownButton {
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ width: 100%;
22
+ padding: 0 var(--smd, 12px);
23
+ font-size: var(--fs-md, 14px);
24
+ color: var(--text-primary, #000);
25
+ background-color: transparent;
26
+ border-radius: var(--xs, 4px);
27
+ cursor: pointer;
28
+ transition: var(--transition-all, all 0.25s ease);
29
+ text-align: left;
30
+ min-height: 38px;
31
+ border: none !important;
32
+ outline: none !important;
33
+ box-shadow: 0px 0px 0px 1px var(--bg-border, #d0d0d0);
34
+ }
35
+ .dropdownButton:focus {
36
+ outline: none;
37
+ box-shadow: 0px 0px 0px 1.5px var(--bg-dark, #3d3b40);
38
+ }
39
+ .dropdownButton:disabled {
40
+ cursor: not-allowed;
41
+ opacity: 0.6;
42
+ background-color: var(--bg-secondary, rgb(243 244 246));
43
+ }
44
+ .selectedValue {
45
+ flex: 1;
46
+ overflow: hidden;
47
+ text-overflow: ellipsis;
48
+ white-space: nowrap;
49
+ color: var(--text-primary, #000);
50
+ font-weight: 500;
51
+ }
52
+ .chevron {
53
+ flex-shrink: 0;
54
+ margin-left: var(--sm, 8px);
55
+ color: var(--text-secondary, #666);
56
+ transition: transform 0.25s ease;
57
+ }
58
+ .chevronOpen {
59
+ transform: rotate(180deg);
60
+ }
61
+ .dropdownMenu {
62
+ position: absolute;
63
+ top: calc(100% + var(--xs, 4px));
64
+ left: 0;
65
+ right: 0;
66
+ z-index: 1000;
67
+ background-color: var(--bg-primary, #fefefe);
68
+ border: 1px solid var(--bg-border, #d0d0d0);
69
+ border-radius: var(--xs, 4px);
70
+ box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
71
+ overflow: hidden;
72
+ animation: slideDown 0.2s ease-out;
73
+ min-width: 260px;
74
+ }
75
+ @keyframes slideDown {
76
+ from {
77
+ opacity: 0;
78
+ transform: translateY(-8px);
79
+ }
80
+ to {
81
+ opacity: 1;
82
+ transform: translateY(0);
83
+ }
84
+ }
85
+ .searchContainer {
86
+ position: relative;
87
+ padding: var(--sm, 8px);
88
+ border-bottom: 1px solid var(--bg-border, #d0d0d0);
89
+ background-color: var(--bg-primary-smoke, #efefef);
90
+ }
91
+ .searchIcon {
92
+ position: absolute;
93
+ left: var(--md, 16px);
94
+ top: 50%;
95
+ transform: translateY(-50%);
96
+ color: var(--text-secondary, #666);
97
+ pointer-events: none;
98
+ }
99
+ .searchInput {
100
+ width: 100%;
101
+ padding: var(--sm, 8px) var(--sm, 8px) var(--sm, 8px) var(--xl, 32px);
102
+ font-size: var(--fs-md, 14px);
103
+ color: var(--text-primary, #000);
104
+ background-color: var(--bg-primary, #fefefe);
105
+ border: 1px solid var(--bg-border, #d0d0d0);
106
+ border-radius: var(--xs, 4px);
107
+ outline: none;
108
+ transition: var(--transition-all, all 0.25s ease);
109
+ }
110
+ .searchInput:focus {
111
+ border-color: var(--bg-dark, #3d3b40);
112
+ box-shadow: 0px 0px 0px 1.5px var(--bg-dark, #3d3b40);
113
+ }
114
+ .searchInput::placeholder {
115
+ color: var(--text-secondary, #666);
116
+ }
117
+ .optionsList {
118
+ list-style: none;
119
+ padding: 0;
120
+ margin: 0;
121
+ overflow-y: auto;
122
+ max-height: inherit;
123
+ }
124
+ .option {
125
+ padding: var(--smd, 12px) var(--md, 16px);
126
+ font-size: var(--fs-md, 14px);
127
+ color: var(--text-primary, #000);
128
+ cursor: pointer;
129
+ transition: var(--transition-all, all 0.25s ease);
130
+ border-bottom: 1px solid var(--bg-border, #d0d0d0);
131
+ }
132
+ .option:last-child {
133
+ border-bottom: none;
134
+ }
135
+ .option:hover:not(.optionDisabled) {
136
+ background-color: var(--bg-primary-smoke, #efefef);
137
+ color: var(--text-primary, #000);
138
+ }
139
+ .optionFocused:not(.optionDisabled) {
140
+ background-color: var(--primary-lighter, #f0f4f8);
141
+ color: var(--text-primary, #000);
142
+ }
143
+ .optionSelected {
144
+ background-color: var(--primary-lighter2, #d8e4f0);
145
+ color: var(--primary, #003d29);
146
+ font-weight: 500;
147
+ }
148
+ .optionDisabled {
149
+ opacity: 0.5;
150
+ cursor: not-allowed;
151
+ background-color: var(--bg-secondary, rgb(243 244 246));
152
+ }
153
+ .emptyMessage {
154
+ padding: var(--md, 16px);
155
+ text-align: center;
156
+ color: var(--text-secondary, #666);
157
+ font-size: var(--fs-md, 14px);
158
+ font-style: italic;
159
+ }
160
+ .errorMessage {
161
+ display: block;
162
+ margin-top: var(--xs, 4px);
163
+ font-size: var(--fs-sm, 12px);
164
+ color: var(--error, #bc3232);
165
+ position: absolute;
166
+ bottom: -20px;
167
+ left: 0;
168
+ }
169
+ .error .dropdownButton {
170
+ border-color: var(--error, #bc3232);
171
+ }
172
+ .error .dropdownButton:focus {
173
+ border-color: var(--error, #bc3232);
174
+ box-shadow: 0px 0px 0px 1.5px var(--error, #bc3232);
175
+ }
176
+ .disabled {
177
+ opacity: 0.6;
178
+ pointer-events: none;
179
+ }
180
+ .open .dropdownButton {
181
+ border-color: var(--bg-dark, #3d3b40);
182
+ box-shadow: 0px 0px 0px 1.5px var(--bg-dark, #3d3b40);
183
+ }
184
+ .countryCodeDropdown .label {
185
+ display: none;
186
+ }
187
+ .countryCodeDropdown .dropdownButton {
188
+ min-height: auto;
189
+ padding: 0.5rem 0.625rem;
190
+ font-size: var(--fs-md, 14px);
191
+ }
192
+ .countryCodeDropdown .selectedValue {
193
+ font-size: var(--fs-md, 14px);
194
+ font-weight: 500;
195
+ }
196
+ @media screen and (max-width: 768px) {
197
+ .dropdownMenu {
198
+ max-height: 250px;
199
+ }
200
+ }
@@ -0,0 +1,28 @@
1
+ import React__default from 'react';
2
+
3
+ interface SearchDropdownOption {
4
+ value: string | number;
5
+ label: string;
6
+ disabled?: boolean;
7
+ [key: string]: any;
8
+ }
9
+ interface SearchDropdownProps {
10
+ options: SearchDropdownOption[];
11
+ value?: string | number;
12
+ onChange?: (value: string | number, option: SearchDropdownOption) => void;
13
+ placeholder?: string;
14
+ searchPlaceholder?: string;
15
+ className?: string;
16
+ disabled?: boolean;
17
+ error?: string;
18
+ label?: string;
19
+ name?: string;
20
+ renderOption?: (option: SearchDropdownOption) => React__default.ReactNode;
21
+ renderSelected?: (option: SearchDropdownOption | null) => React__default.ReactNode;
22
+ filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
23
+ emptyMessage?: string;
24
+ maxHeight?: string;
25
+ }
26
+ declare const SearchDropdown: React__default.FC<SearchDropdownProps>;
27
+
28
+ export { type SearchDropdownOption, type SearchDropdownProps, SearchDropdown as default };
@@ -0,0 +1,28 @@
1
+ import React__default from 'react';
2
+
3
+ interface SearchDropdownOption {
4
+ value: string | number;
5
+ label: string;
6
+ disabled?: boolean;
7
+ [key: string]: any;
8
+ }
9
+ interface SearchDropdownProps {
10
+ options: SearchDropdownOption[];
11
+ value?: string | number;
12
+ onChange?: (value: string | number, option: SearchDropdownOption) => void;
13
+ placeholder?: string;
14
+ searchPlaceholder?: string;
15
+ className?: string;
16
+ disabled?: boolean;
17
+ error?: string;
18
+ label?: string;
19
+ name?: string;
20
+ renderOption?: (option: SearchDropdownOption) => React__default.ReactNode;
21
+ renderSelected?: (option: SearchDropdownOption | null) => React__default.ReactNode;
22
+ filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
23
+ emptyMessage?: string;
24
+ maxHeight?: string;
25
+ }
26
+ declare const SearchDropdown: React__default.FC<SearchDropdownProps>;
27
+
28
+ export { type SearchDropdownOption, type SearchDropdownProps, SearchDropdown as default };
@@ -0,0 +1 @@
1
+ export { search_dropdown_default as default } from '../chunk-YK4M3SFP.js';
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var chunkHAQWCNDY_cjs = require('../chunk-HAQWCNDY.cjs');
4
+ require('../chunk-3YRSHPM6.cjs');
5
+ require('../chunk-OTMTHA5C.cjs');
6
+
7
+
8
+
9
+ module.exports = chunkHAQWCNDY_cjs.share_button_default;
@@ -0,0 +1,11 @@
1
+ import { f as ProductDetail } from '../product-DJMdi4D4.cjs';
2
+ import 'react-toastify';
3
+
4
+ interface ShareButtonProps {
5
+ product: ProductDetail.Root;
6
+ className?: string;
7
+ iconSize?: number;
8
+ }
9
+ declare const ShareButton: React.FC<ShareButtonProps>;
10
+
11
+ export { type ShareButtonProps, ShareButton as default };
@@ -0,0 +1,11 @@
1
+ import { f as ProductDetail } from '../product-DJMdi4D4.js';
2
+ import 'react-toastify';
3
+
4
+ interface ShareButtonProps {
5
+ product: ProductDetail.Root;
6
+ className?: string;
7
+ iconSize?: number;
8
+ }
9
+ declare const ShareButton: React.FC<ShareButtonProps>;
10
+
11
+ export { type ShareButtonProps, ShareButton as default };
@@ -0,0 +1,3 @@
1
+ export { share_button_default as default } from '../chunk-EGFOTJPC.js';
2
+ import '../chunk-U7EXLQCT.js';
3
+ import '../chunk-F45S7UWC.js';
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var chunk3YRSHPM6_cjs = require('../chunk-3YRSHPM6.cjs');
4
+
5
+
6
+
7
+ module.exports = chunk3YRSHPM6_cjs.ShareIcon;
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function ShareIcon({ width, height, className, }: {
4
+ width?: number;
5
+ height?: number;
6
+ className?: string;
7
+ }): react_jsx_runtime.JSX.Element;
8
+
9
+ export { ShareIcon as default };
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function ShareIcon({ width, height, className, }: {
4
+ width?: number;
5
+ height?: number;
6
+ className?: string;
7
+ }): react_jsx_runtime.JSX.Element;
8
+
9
+ export { ShareIcon as default };
@@ -0,0 +1 @@
1
+ export { ShareIcon as default } from '../chunk-U7EXLQCT.js';
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var chunkLHF5BSWO_cjs = require('../chunk-LHF5BSWO.cjs');
4
+ require('../chunk-DODFO744.cjs');
5
+
6
+
7
+
8
+ module.exports = chunkLHF5BSWO_cjs.ThemeDataInitializer;
@@ -0,0 +1,12 @@
1
+ import { P as PageHeaderProps } from '../pixelEvents-C1rFPOwb.cjs';
2
+ import '../cart-kJoawc_Z.cjs';
3
+ import '../product-DJMdi4D4.cjs';
4
+ import 'react-toastify';
5
+ import '../collections-WzvTO0OQ.cjs';
6
+ import '../orders-CjNmCY5I.cjs';
7
+
8
+ declare function ThemeDataInitializer({ themeData, }: {
9
+ themeData: PageHeaderProps;
10
+ }): null;
11
+
12
+ export { ThemeDataInitializer as default };
@@ -0,0 +1,12 @@
1
+ import { P as PageHeaderProps } from '../pixelEvents-Bo-VjAx8.js';
2
+ import '../cart-y-7RPmnQ.js';
3
+ import '../product-DJMdi4D4.js';
4
+ import 'react-toastify';
5
+ import '../collections-BDSVfRNo.js';
6
+ import '../orders-L_8eIkUS.js';
7
+
8
+ declare function ThemeDataInitializer({ themeData, }: {
9
+ themeData: PageHeaderProps;
10
+ }): null;
11
+
12
+ export { ThemeDataInitializer as default };
@@ -0,0 +1,2 @@
1
+ export { ThemeDataInitializer as default } from '../chunk-BTR3HLL4.js';
2
+ import '../chunk-5NUDTIQ2.js';
@@ -2,16 +2,17 @@
2
2
 
3
3
  var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
4
4
  var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
5
- var chunkJH4JJBXE_cjs = require('../chunk-JH4JJBXE.cjs');
5
+ var chunkTTIQRDHX_cjs = require('../chunk-TTIQRDHX.cjs');
6
6
  var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
7
7
  var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
8
- var chunkBTT3XQ32_cjs = require('../chunk-BTT3XQ32.cjs');
8
+ var chunk33TWVRZE_cjs = require('../chunk-33TWVRZE.cjs');
9
9
  var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
10
10
  require('../chunk-K44JZ5NL.cjs');
11
- var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
12
- var chunkJCOOINQF_cjs = require('../chunk-JCOOINQF.cjs');
11
+ var chunk7UK3E7SL_cjs = require('../chunk-7UK3E7SL.cjs');
12
+ var chunkKLNKIQQM_cjs = require('../chunk-KLNKIQQM.cjs');
13
13
  var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
14
- var chunk4CVKE6CC_cjs = require('../chunk-4CVKE6CC.cjs');
14
+ require('../chunk-LJUGNSQQ.cjs');
15
+ var chunkOTMTHA5C_cjs = require('../chunk-OTMTHA5C.cjs');
15
16
  require('../chunk-TB72NPRM.cjs');
16
17
  require('../chunk-ECHV2JSY.cjs');
17
18
  require('../chunk-BBRXE57K.cjs');
@@ -89,7 +90,7 @@ var useOrders = (filters) => {
89
90
  try {
90
91
  setIsLoading(true);
91
92
  const url = `/customer/order/?${queryString}`;
92
- const result = await chunkHTFVROIV_cjs.getOrders(url);
93
+ const result = await chunk7UK3E7SL_cjs.getOrders(url);
93
94
  setData(result);
94
95
  setError(null);
95
96
  } catch (err) {
@@ -320,7 +321,7 @@ function useCheckoutPayment(options) {
320
321
  const [isConfirmingPayment, setIsConfirmingPayment] = react.useState(false);
321
322
  const [showSuccessModal, setShowSuccessModal] = react.useState(false);
322
323
  const [showFailureModal, setShowFailureModal] = react.useState(false);
323
- const resetCartCount = chunkJH4JJBXE_cjs.useCartStore((s) => s.resetCartCount);
324
+ const resetCartCount = chunkTTIQRDHX_cjs.useCartStore((s) => s.resetCartCount);
324
325
  const callbacks = {
325
326
  onSuccess: (order) => {
326
327
  setOrderSummary(order);
@@ -343,7 +344,7 @@ function useCheckoutPayment(options) {
343
344
  try {
344
345
  setIsPlacingOrder(true);
345
346
  const isCod = paymentMethod === "cod";
346
- const response = await chunkHTFVROIV_cjs.placeOrder(
347
+ const response = await chunk7UK3E7SL_cjs.placeOrder(
347
348
  addressId,
348
349
  options.phonepeRedirectUrl,
349
350
  isCod,
@@ -352,7 +353,7 @@ function useCheckoutPayment(options) {
352
353
  );
353
354
  const order = response.data;
354
355
  setOrderSummary(order);
355
- chunkBTT3XQ32_cjs.processPayment(order, paymentMethod, callbacks);
356
+ chunk33TWVRZE_cjs.processPayment(order, paymentMethod, callbacks);
356
357
  } catch {
357
358
  setShowFailureModal(true);
358
359
  } finally {
@@ -382,7 +383,7 @@ function useCheckoutCoupon(options) {
382
383
  const refreshCoupons = react.useCallback(async () => {
383
384
  setIsLoading(true);
384
385
  try {
385
- const coupons = await chunkBTT3XQ32_cjs.fetchAvailableCoupons();
386
+ const coupons = await chunk33TWVRZE_cjs.fetchAvailableCoupons();
386
387
  setAvailableCoupons(coupons);
387
388
  } catch {
388
389
  } finally {
@@ -394,7 +395,7 @@ function useCheckoutCoupon(options) {
394
395
  setError(null);
395
396
  setIsApplying(true);
396
397
  try {
397
- const coupon = await chunkBTT3XQ32_cjs.applyCheckoutCoupon(code, callbacks);
398
+ const coupon = await chunk33TWVRZE_cjs.applyCheckoutCoupon(code, callbacks);
398
399
  setAppliedCoupon(coupon);
399
400
  } catch (err) {
400
401
  setError(err instanceof Error ? err.message : "Failed to apply coupon");
@@ -407,7 +408,7 @@ function useCheckoutCoupon(options) {
407
408
  const removeCouponHandler = react.useCallback(async () => {
408
409
  if (!appliedCoupon) return;
409
410
  try {
410
- await chunkBTT3XQ32_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
411
+ await chunk33TWVRZE_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
411
412
  setAppliedCoupon(null);
412
413
  setError(null);
413
414
  } catch {
@@ -506,8 +507,8 @@ function useVariantSelector(options) {
506
507
  }
507
508
  function useShopCheckout(options) {
508
509
  const { product, onNavigateToCart, onToast } = options;
509
- const { addToCart, setCart } = chunkJH4JJBXE_cjs.useCartStore();
510
- const isUserAuthenticated = chunkJH4JJBXE_cjs.useAuthStore((s) => s.isAuthenticated);
510
+ const { addToCart, setCart } = chunkTTIQRDHX_cjs.useCartStore();
511
+ const isUserAuthenticated = chunkTTIQRDHX_cjs.useAuthStore((s) => s.isAuthenticated);
511
512
  const [isWishlisted, setIsWishlisted] = react.useState(product.is_wishlisted);
512
513
  const [isAddedToCart, setIsAddedToCart] = react.useState(false);
513
514
  const [loading, setLoading] = react.useState(false);
@@ -613,8 +614,8 @@ function useShopCheckout(options) {
613
614
  setQuantity(value);
614
615
  }, []);
615
616
  const handleShare = react.useCallback(() => {
616
- chunk4CVKE6CC_cjs.shareLink(
617
- `Buy ${product.name} at ${chunk4CVKE6CC_cjs.convertToCurrency(
617
+ chunkOTMTHA5C_cjs.shareLink(
618
+ `Buy ${product.name} at ${chunkOTMTHA5C_cjs.convertToCurrency(
618
619
  Number(product.selling_price)
619
620
  )}`,
620
621
  product.name
@@ -767,7 +768,7 @@ function useCoupon(options = {}) {
767
768
 
768
769
  Object.defineProperty(exports, "useAddressForm", {
769
770
  enumerable: true,
770
- get: function () { return chunkJCOOINQF_cjs.useAddressForm; }
771
+ get: function () { return chunkKLNKIQQM_cjs.useAddressForm; }
771
772
  });
772
773
  exports.useAddress = useAddress;
773
774
  exports.useCart = useCart;
@@ -1,7 +1,9 @@
1
1
  import { A as Address } from '../address-DwBZHzbI.cjs';
2
2
  import * as React from 'react';
3
- import { C as Cart, l as Order, m as Product, f as Category, U as User, g as Coupon, o as ProductDetail, n as ProductAttribute, a as Attributes } from '../orders-fIdANHSl.cjs';
4
- import { W as Wishlist } from '../wishlist-stNzfvIP.cjs';
3
+ import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-kJoawc_Z.cjs';
4
+ import { O as Order } from '../orders-CjNmCY5I.cjs';
5
+ import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-DJMdi4D4.cjs';
6
+ import { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
5
7
  export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
6
8
  import 'react-toastify';
7
9
  import 'formik';
@@ -1,7 +1,9 @@
1
1
  import { A as Address } from '../address-DwBZHzbI.js';
2
2
  import * as React from 'react';
3
- import { C as Cart, l as Order, m as Product, f as Category, U as User, g as Coupon, o as ProductDetail, n as ProductAttribute, a as Attributes } from '../orders-fIdANHSl.js';
4
- import { W as Wishlist } from '../wishlist-_bd4gLyQ.js';
3
+ import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-y-7RPmnQ.js';
4
+ import { O as Order } from '../orders-L_8eIkUS.js';
5
+ import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-DJMdi4D4.js';
6
+ import { W as Wishlist } from '../wishlist-DKYFZR0s.js';
5
7
  export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
6
8
  import 'react-toastify';
7
9
  import 'formik';
@@ -1,15 +1,16 @@
1
1
  import { getUserDetails } from '../chunk-WYXT5AAG.js';
2
2
  import { findMatchingVariant, findSimilarVariant, isVariantCombinationAvailable, isColorVariantType } from '../chunk-HEFA67WK.js';
3
- import { useCartStore, useAuthStore } from '../chunk-TF2KMTB6.js';
3
+ import { useCartStore, useAuthStore } from '../chunk-JRYWZMNT.js';
4
4
  import { getCart, getProductList, getProductDetail, getWishlist, notifyProductStock, getProductCategories, getCategories } from '../chunk-U25T7M6S.js';
5
5
  import { cart_default } from '../chunk-QAC72HKO.js';
6
- import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-Y4NGR42Z.js';
6
+ import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-HUIT4JCR.js';
7
7
  import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
8
8
  import '../chunk-WFDKKOO7.js';
9
- import { getOrders, placeOrder } from '../chunk-LW3V53WJ.js';
10
- export { useAddressForm } from '../chunk-ILVGYHNI.js';
9
+ import { getOrders, placeOrder } from '../chunk-UVU7H4E6.js';
10
+ export { useAddressForm } from '../chunk-6Q7QMPOQ.js';
11
11
  import { getAddresses } from '../chunk-ZGMLOLTC.js';
12
- import { shareLink, convertToCurrency } from '../chunk-YUPBTD4M.js';
12
+ import '../chunk-OSM73ETC.js';
13
+ import { shareLink, convertToCurrency } from '../chunk-F45S7UWC.js';
13
14
  import '../chunk-ELP23UGF.js';
14
15
  import '../chunk-3SYYP3XV.js';
15
16
  import '../chunk-WEMNXIRS.js';
@@ -1,9 +1,11 @@
1
1
  export { A as Address } from '../address-DwBZHzbI.cjs';
2
- export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-DNVf5ZAS.cjs';
3
- export { A as ApplicableTarget, a as Attributes, B as BaseProduct, b as BookingService, c as BookingServiceDate, d as Brand, C as Cart, e as CartState, f as Category, g as Coupon, h as CouponResponse, i as CouponStatus, j as Coupons, k as CustomField, D as DiscountType, O as OperatingHours, l as Order, P as Photos, m as Product, n as ProductAttribute, o as ProductDetail, S as SpecialHours, T as TimeSlot, U as User, V as ValueType, W as WishlistState } from '../orders-fIdANHSl.cjs';
4
- export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-Bz9KD7Na.cjs';
2
+ export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-DX9SU_qm.cjs';
3
+ export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-kJoawc_Z.cjs';
4
+ export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-WzvTO0OQ.cjs';
5
+ export { O as Order } from '../orders-CjNmCY5I.cjs';
5
6
  export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.cjs';
6
- export { W as Wishlist } from '../wishlist-stNzfvIP.cjs';
7
+ export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-DJMdi4D4.cjs';
8
+ export { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
7
9
  import 'react-toastify';
8
10
 
9
11
  declare namespace CountryModel {
@@ -1,9 +1,11 @@
1
1
  export { A as Address } from '../address-DwBZHzbI.js';
2
- export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-CG6tul9l.js';
3
- export { A as ApplicableTarget, a as Attributes, B as BaseProduct, b as BookingService, c as BookingServiceDate, d as Brand, C as Cart, e as CartState, f as Category, g as Coupon, h as CouponResponse, i as CouponStatus, j as Coupons, k as CustomField, D as DiscountType, O as OperatingHours, l as Order, P as Photos, m as Product, n as ProductAttribute, o as ProductDetail, S as SpecialHours, T as TimeSlot, U as User, V as ValueType, W as WishlistState } from '../orders-fIdANHSl.js';
4
- export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-CkEUi3BR.js';
2
+ export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-BVWe8HHh.js';
3
+ export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-y-7RPmnQ.js';
4
+ export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-BDSVfRNo.js';
5
+ export { O as Order } from '../orders-L_8eIkUS.js';
5
6
  export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.js';
6
- export { W as Wishlist } from '../wishlist-_bd4gLyQ.js';
7
+ export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-DJMdi4D4.js';
8
+ export { W as Wishlist } from '../wishlist-DKYFZR0s.js';
7
9
  import 'react-toastify';
8
10
 
9
11
  declare namespace CountryModel {