@pisell/private-materials 6.12.376 → 6.12.378
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +3 -3
- package/es/components/HDLKiosk/locales.js +10 -0
- package/es/components/HDLKiosk/slices/customization/PrimaryProductSelection/assets/order-background.svg +24 -0
- package/es/components/HDLKiosk/slices/customization/PrimaryProductSelection/index.js +55 -34
- package/es/components/HDLKiosk/slices/customization/PrimaryProductSelection/index.less +175 -125
- package/es/components/HDLKiosk/slices/customization/Screen/index.js +2 -2
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/ProductList/index.js +0 -1
- package/es/components/bigSale/components/TimeBar/index.js +0 -1
- package/es/components/bigSale/dialog.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleProductListConfig.js +1 -0
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
- package/es/components/bigSale/index.js +0 -1
- package/es/components/bigSale/templates/Kiosk/index.js +0 -1
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/es/index.js +0 -2
- package/es/plus/multiCurrencySettlement/index.js +1 -1
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/saleDetail/Base.js +0 -1
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/PrintAction.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/index.js +0 -1
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +0 -1
- package/es/plus/saleDetail/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/index.js +0 -1
- package/es/plus/salesSdk/context/SalesSdkProvider.js +3 -0
- package/es/plus/salesSdk/giftSelect/buildGiftOrderProducts.js +2 -2
- package/es/plus/salesSdk/giftSelect/createOpenGiftSelectHost.js +2 -2
- package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/private-materials/lowcode/authmodal/meta.d.ts +1 -0
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +2 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/lib/components/HDLKiosk/locales.js +10 -0
- package/lib/components/HDLKiosk/slices/customization/PrimaryProductSelection/assets/order-background.svg +24 -0
- package/lib/components/HDLKiosk/slices/customization/PrimaryProductSelection/index.js +54 -33
- package/lib/components/HDLKiosk/slices/customization/PrimaryProductSelection/index.less +175 -125
- package/lib/components/HDLKiosk/slices/customization/Screen/index.js +1 -1
- package/lib/plus/salesSdk/context/SalesSdkProvider.js +3 -0
- package/lib/plus/salesSdk/giftSelect/buildGiftOrderProducts.js +2 -2
- package/lib/plus/salesSdk/giftSelect/createOpenGiftSelectHost.js +2 -2
- package/package.json +4 -4
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -54
|
@@ -1,110 +1,140 @@
|
|
|
1
|
-
//
|
|
1
|
+
// The shell owns the header and floating cart bar; fill the space between them.
|
|
2
2
|
.pisell-hdl-kiosk .hdl-primary-selection {
|
|
3
|
+
container-type: inline-size;
|
|
3
4
|
display: flex;
|
|
5
|
+
flex: 1;
|
|
4
6
|
width: 100%;
|
|
5
7
|
min-width: 0;
|
|
6
8
|
min-height: 0;
|
|
7
|
-
flex: 1;
|
|
8
|
-
overflow: hidden;
|
|
9
9
|
padding-bottom: var(--hdl-bottom-bar-clearance);
|
|
10
|
-
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
background: #eee8dc url('./assets/order-background.svg') center top /
|
|
12
|
+
max(100%, 1080px) auto;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.hdl-ps-dialog {
|
|
14
|
-
--hdl-ps-red: #b20d12;
|
|
15
|
-
--hdl-ps-ink: #292523;
|
|
16
|
-
--hdl-ps-muted: #736b65;
|
|
17
16
|
display: flex;
|
|
18
|
-
|
|
17
|
+
flex: 1;
|
|
19
18
|
min-width: 0;
|
|
20
19
|
min-height: 0;
|
|
21
|
-
|
|
22
|
-
padding: 24px;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
color: var(--hdl-ps-ink);
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
line-height: 1.5;
|
|
20
|
+
color: #252323;
|
|
27
21
|
text-align: left;
|
|
28
|
-
animation: hdl-ps-dialog-enter 180ms ease-out both;
|
|
29
22
|
}
|
|
30
23
|
.hdl-ps-dialog button {
|
|
31
|
-
|
|
24
|
+
appearance: none;
|
|
25
|
+
font-family: inherit;
|
|
32
26
|
cursor: pointer;
|
|
33
27
|
touch-action: manipulation;
|
|
34
28
|
-webkit-tap-highlight-color: transparent;
|
|
35
29
|
}
|
|
36
|
-
.hdl-ps-dialog button:focus-visible {
|
|
37
|
-
outline: 3px solid #2563eb;
|
|
38
|
-
outline-offset: 4px;
|
|
39
|
-
}
|
|
40
30
|
.hdl-ps-content {
|
|
41
31
|
display: flex;
|
|
32
|
+
flex: 1;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: clamp(12px, 1.85cqw, 20px);
|
|
35
|
+
min-width: 0;
|
|
42
36
|
min-height: 0;
|
|
37
|
+
padding: clamp(12px, 1.67cqw, 18px) clamp(24px, 4.9cqw, 53px);
|
|
38
|
+
}
|
|
39
|
+
.hdl-ps-choices {
|
|
40
|
+
--hdl-ps-gap: clamp(24px, 3.7cqw, 40px);
|
|
41
|
+
display: flex;
|
|
43
42
|
flex: 1;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: var(--hdl-ps-gap);
|
|
45
|
+
min-height: 0;
|
|
44
46
|
overflow: auto;
|
|
45
47
|
overscroll-behavior: contain;
|
|
46
|
-
|
|
48
|
+
// Leave room for keyboard focus inside the scroll region.
|
|
49
|
+
padding: 4px;
|
|
50
|
+
margin: -4px;
|
|
47
51
|
}
|
|
48
|
-
.hdl-ps-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
.hdl-ps-group {
|
|
53
|
+
--hdl-ps-zone-ink: #963047;
|
|
54
|
+
--hdl-ps-zone-line: #d5bfa5;
|
|
55
|
+
position: relative;
|
|
56
|
+
display: flex;
|
|
57
|
+
// Every product keeps its own height; additional products scroll instead of shrinking.
|
|
51
58
|
flex: none;
|
|
52
|
-
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: clamp(4px, 0.74cqw, 8px);
|
|
61
|
+
min-width: 0;
|
|
62
|
+
padding: clamp(8px, 1.4cqw, 15px);
|
|
63
|
+
border: 1px solid #cfbda5;
|
|
64
|
+
border-radius: clamp(18px, 2.8cqw, 30px);
|
|
65
|
+
background: #faf4e8;
|
|
66
|
+
}
|
|
67
|
+
.hdl-ps-group[data-zone='standard'] {
|
|
68
|
+
--hdl-ps-zone-ink: #3f4b45;
|
|
69
|
+
--hdl-ps-zone-line: #c1c7bd;
|
|
70
|
+
border-color: #bfc6bc;
|
|
71
|
+
background: #f2f4ee;
|
|
72
|
+
}
|
|
73
|
+
.hdl-ps-group + .hdl-ps-group::before {
|
|
74
|
+
position: absolute;
|
|
75
|
+
inset: calc(var(--hdl-ps-gap) / -2) 0 auto;
|
|
76
|
+
height: 1px;
|
|
77
|
+
background: #cbbba6;
|
|
78
|
+
content: '';
|
|
79
|
+
pointer-events: none;
|
|
53
80
|
}
|
|
54
|
-
.hdl-ps-
|
|
55
|
-
|
|
56
|
-
|
|
81
|
+
.hdl-ps-marker {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex: none;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: clamp(12px, 1.8cqw, 20px);
|
|
86
|
+
min-height: clamp(26px, 3.9cqw, 42px);
|
|
87
|
+
padding-inline: clamp(4px, 0.74cqw, 8px);
|
|
57
88
|
}
|
|
58
|
-
.hdl-ps-
|
|
89
|
+
.hdl-ps-marker h3 {
|
|
90
|
+
flex: none;
|
|
59
91
|
margin: 0;
|
|
60
|
-
|
|
61
|
-
font-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
outline: none;
|
|
92
|
+
color: var(--hdl-ps-zone-ink);
|
|
93
|
+
font-size: clamp(18px, 3.15cqw, 34px);
|
|
94
|
+
font-weight: 650;
|
|
95
|
+
line-height: 1.2;
|
|
65
96
|
}
|
|
66
|
-
.hdl-ps-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
97
|
+
.hdl-ps-marker-line {
|
|
98
|
+
flex: 1;
|
|
99
|
+
height: 1px;
|
|
100
|
+
background: var(--hdl-ps-zone-line);
|
|
70
101
|
}
|
|
71
102
|
.hdl-ps-products {
|
|
72
|
-
--hdl-ps-product-height: 250px;
|
|
73
103
|
display: grid;
|
|
74
|
-
grid-template-columns:
|
|
75
|
-
gap: 20px;
|
|
104
|
+
grid-template-columns: minmax(0, 1fr);
|
|
105
|
+
gap: clamp(12px, 1.85cqw, 20px);
|
|
106
|
+
min-width: 0;
|
|
76
107
|
}
|
|
77
|
-
.hdl-ps-
|
|
78
|
-
|
|
79
|
-
|
|
108
|
+
.hdl-ps-image-area {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
min-width: 0;
|
|
112
|
+
min-height: 0;
|
|
113
|
+
padding: 4px;
|
|
80
114
|
}
|
|
81
|
-
.hdl-ps-
|
|
82
|
-
|
|
83
|
-
grid-template-columns: minmax(0, 24%) minmax(0, 1fr) auto;
|
|
84
|
-
align-items: center;
|
|
115
|
+
.hdl-ps-poster-area {
|
|
116
|
+
width: 100%;
|
|
85
117
|
min-width: 0;
|
|
86
|
-
min-height:
|
|
87
|
-
padding: 12px;
|
|
88
|
-
border: 1.5px solid #d8d1ca;
|
|
89
|
-
border-radius: 24px;
|
|
90
|
-
color: var(--hdl-ps-ink);
|
|
91
|
-
background: #fff;
|
|
92
|
-
text-align: left;
|
|
93
|
-
transition: border-color 160ms, background 160ms, box-shadow 160ms;
|
|
118
|
+
min-height: 0;
|
|
94
119
|
}
|
|
95
|
-
.hdl-ps-dialog .hdl-ps-
|
|
96
|
-
|
|
120
|
+
.hdl-ps-dialog .hdl-ps-product {
|
|
121
|
+
display: block;
|
|
122
|
+
width: 100%;
|
|
123
|
+
max-width: 100%;
|
|
124
|
+
margin: 0;
|
|
125
|
+
padding: 0;
|
|
126
|
+
border: 0;
|
|
127
|
+
border-radius: clamp(10px, 1.6cqw, 18px);
|
|
128
|
+
background: transparent;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
transition: transform 160ms ease, filter 160ms ease;
|
|
97
131
|
}
|
|
98
132
|
.hdl-ps-product-image {
|
|
99
133
|
position: relative;
|
|
100
|
-
display:
|
|
101
|
-
place-items: center;
|
|
134
|
+
display: block;
|
|
102
135
|
width: 100%;
|
|
103
|
-
|
|
104
|
-
aspect-ratio:
|
|
105
|
-
overflow: hidden;
|
|
106
|
-
border-radius: 14px;
|
|
107
|
-
background: #f1ece6;
|
|
136
|
+
// Keep every poster at the same display ratio, including square source images.
|
|
137
|
+
aspect-ratio: 16 / 10;
|
|
108
138
|
}
|
|
109
139
|
.hdl-ps-product-image img {
|
|
110
140
|
position: absolute;
|
|
@@ -113,86 +143,106 @@
|
|
|
113
143
|
width: 100%;
|
|
114
144
|
height: 100%;
|
|
115
145
|
object-fit: cover;
|
|
146
|
+
object-position: center;
|
|
147
|
+
user-select: none;
|
|
148
|
+
-webkit-user-drag: none;
|
|
116
149
|
}
|
|
117
150
|
.hdl-ps-image-fallback {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
text-align: center;
|
|
121
|
-
}
|
|
122
|
-
.hdl-ps-product-details {
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset: 0;
|
|
123
153
|
display: flex;
|
|
124
|
-
min-width: 0;
|
|
125
154
|
align-self: stretch;
|
|
126
|
-
|
|
155
|
+
align-items: center;
|
|
127
156
|
justify-content: center;
|
|
128
|
-
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
gap: 12px;
|
|
159
|
+
width: 100%;
|
|
160
|
+
height: 100%;
|
|
161
|
+
padding: 16px;
|
|
162
|
+
background: #ebe5da;
|
|
163
|
+
color: #645b52;
|
|
164
|
+
font-size: clamp(16px, 2.2cqw, 24px);
|
|
165
|
+
text-align: center;
|
|
129
166
|
}
|
|
130
|
-
.hdl-ps-
|
|
131
|
-
|
|
132
|
-
font-size: 32px;
|
|
133
|
-
font-weight: 800;
|
|
134
|
-
line-height: 1.3;
|
|
167
|
+
.hdl-ps-image-fallback strong {
|
|
168
|
+
color: #252323;
|
|
169
|
+
font-size: clamp(20px, 3cqw, 32px);
|
|
135
170
|
}
|
|
136
|
-
.hdl-ps-
|
|
137
|
-
|
|
171
|
+
.hdl-ps-unavailable {
|
|
172
|
+
flex: none;
|
|
138
173
|
margin-top: 8px;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
174
|
+
color: #645b52;
|
|
175
|
+
font-size: clamp(14px, 1.85cqw, 20px);
|
|
176
|
+
line-height: 1.4;
|
|
177
|
+
text-align: center;
|
|
142
178
|
}
|
|
143
|
-
.hdl-ps-
|
|
144
|
-
display:
|
|
145
|
-
|
|
146
|
-
width:
|
|
147
|
-
height: 64px;
|
|
148
|
-
margin
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
179
|
+
.hdl-ps-dialog .hdl-ps-skip {
|
|
180
|
+
display: block;
|
|
181
|
+
flex: none;
|
|
182
|
+
width: 100%;
|
|
183
|
+
min-height: clamp(64px, 10cqw, 108px);
|
|
184
|
+
margin: 0;
|
|
185
|
+
padding: 12px 20px;
|
|
186
|
+
border: 1px solid #cdbbb1;
|
|
187
|
+
border-radius: clamp(8px, 1.6cqw, 18px);
|
|
188
|
+
background: #faf7ef;
|
|
189
|
+
color: #b80020;
|
|
190
|
+
font-size: clamp(16px, 2.65cqw, 29px);
|
|
191
|
+
font-weight: 650;
|
|
192
|
+
line-height: 1.3;
|
|
193
|
+
text-align: center;
|
|
194
|
+
transition: background-color 160ms ease;
|
|
156
195
|
}
|
|
157
196
|
.hdl-ps-dialog .hdl-ps-product:not(:disabled):active {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
box-shadow: inset 0 0 0 1px var(--hdl-ps-red);
|
|
197
|
+
transform: scale(0.975);
|
|
198
|
+
filter: brightness(0.92);
|
|
161
199
|
}
|
|
162
200
|
@media (hover: hover) {
|
|
163
|
-
.hdl-ps-
|
|
164
|
-
|
|
165
|
-
|
|
201
|
+
.hdl-ps-product:not(:disabled):hover {
|
|
202
|
+
filter: brightness(0.97);
|
|
203
|
+
}
|
|
204
|
+
.hdl-ps-skip:not(:disabled):hover {
|
|
205
|
+
background: #f8eeee;
|
|
166
206
|
}
|
|
167
207
|
}
|
|
168
|
-
.hdl-ps-
|
|
169
|
-
|
|
170
|
-
color: var(--hdl-ps-muted);
|
|
171
|
-
font-size: 18px;
|
|
172
|
-
line-height: 1.5;
|
|
208
|
+
.hdl-ps-dialog .hdl-ps-skip:not(:disabled):active {
|
|
209
|
+
filter: brightness(0.96);
|
|
173
210
|
}
|
|
174
|
-
.hdl-ps-dialog
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
margin-top: 24px;
|
|
211
|
+
.hdl-ps-dialog button:focus-visible {
|
|
212
|
+
outline: 3px solid #b80020;
|
|
213
|
+
outline-offset: 4px;
|
|
178
214
|
}
|
|
179
|
-
.
|
|
180
|
-
background: #ebe6e1;
|
|
181
|
-
color: #847b75;
|
|
215
|
+
.hdl-ps-dialog button:disabled {
|
|
182
216
|
cursor: not-allowed;
|
|
183
217
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
218
|
+
.hdl-ps-dialog .hdl-ps-product:disabled {
|
|
219
|
+
filter: grayscale(0.65);
|
|
220
|
+
}
|
|
221
|
+
.hdl-ps-dialog .hdl-ps-skip:disabled {
|
|
222
|
+
color: #645b52;
|
|
223
|
+
}
|
|
224
|
+
.hdl-ps-empty {
|
|
225
|
+
margin: auto;
|
|
226
|
+
color: #645b52;
|
|
227
|
+
font-size: clamp(18px, 2.2cqw, 24px);
|
|
228
|
+
text-align: center;
|
|
229
|
+
}
|
|
230
|
+
.hdl-ps-sr-only {
|
|
231
|
+
position: absolute;
|
|
232
|
+
width: 1px;
|
|
233
|
+
height: 1px;
|
|
234
|
+
margin: -1px;
|
|
235
|
+
padding: 0;
|
|
236
|
+
border: 0;
|
|
237
|
+
overflow: hidden;
|
|
238
|
+
clip: rect(0, 0, 0, 0);
|
|
239
|
+
white-space: nowrap;
|
|
191
240
|
}
|
|
192
241
|
@media (prefers-reduced-motion: reduce) {
|
|
193
|
-
.hdl-ps-dialog
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
242
|
+
.hdl-ps-dialog button {
|
|
243
|
+
transition: none;
|
|
244
|
+
}
|
|
245
|
+
.hdl-ps-dialog .hdl-ps-product:not(:disabled):active {
|
|
246
|
+
transform: none;
|
|
197
247
|
}
|
|
198
248
|
}
|
|
@@ -446,7 +446,7 @@ function CustomizationScreen({ product, loading, errorReference, errorMessage, b
|
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
448
|
}) : null, /* @__PURE__ */ react.default.createElement("div", { className: "hdl-customization-hero" }, /* @__PURE__ */ react.default.createElement("article", { className: "hdl-customization-product" }, /* @__PURE__ */ react.default.createElement("div", { className: "hdl-customization-product__media" }, (productFacts === null || productFacts === void 0 ? void 0 : productFacts.imageUrl) ? /* @__PURE__ */ react.default.createElement("img", {
|
|
449
|
-
src: productFacts.imageUrl,
|
|
449
|
+
src: _pisell_utils.image.ali(productFacts.imageUrl, 540),
|
|
450
450
|
alt: ""
|
|
451
451
|
}) : /* @__PURE__ */ react.default.createElement(require_artwork.ProductFallback, null)), /* @__PURE__ */ react.default.createElement("div", { className: "hdl-customization-product__copy" }, /* @__PURE__ */ react.default.createElement("p", null, _pisell_utils.locales.getText("pisell2.hdl-kiosk.customization-product-eyebrow")), /* @__PURE__ */ react.default.createElement("h1", { id: "hdl-customization-title" }, (productFacts === null || productFacts === void 0 ? void 0 : productFacts.name) || _pisell_utils.locales.getText("pisell2.hdl-kiosk.primary-product-loading"), " ", /* @__PURE__ */ react.default.createElement("span", { className: "hdl-customization-product__price" }, productFacts ? require_model.formatMoney(unitPricePerStandardWeight, orderBar.currencySymbol) : "—", /* @__PURE__ */ react.default.createElement("small", null, "/", standardProduct ? _pisell_utils.locales.getText("pisell2.hdl-kiosk.primary-per-item") : STANDARD_WEIGHT_UNIT_LABEL))))), standardProduct ? /* @__PURE__ */ react.default.createElement("aside", { className: "hdl-customization-weight hdl-customization-description" }, /* @__PURE__ */ react.default.createElement("div", { className: "hdl-customization-description__content" }, productFacts.description ? /* @__PURE__ */ react.default.createElement("div", {
|
|
452
452
|
className: "hdl-customization-description__body",
|
|
@@ -1625,6 +1625,7 @@ const SalesSdkProvider = ({ osKey, enableMultiCurrencySettlement = false, soluti
|
|
|
1625
1625
|
const resolver = require_createOpenGiftSelectHost.createOpenGiftSelectHost(hostBridges.giftSelect, () => bookingTicketRef.current, {
|
|
1626
1626
|
getUiHosts: () => uiHostsValue,
|
|
1627
1627
|
apiPrefix: context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.constants) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.apiPrefix,
|
|
1628
|
+
autoSelectSingleGift: !(moduleOtherParams.businessCode === "venue_ticket" && productLoadChannel === "online_ordering"),
|
|
1628
1629
|
salesSettingsSource,
|
|
1629
1630
|
ensureSalesSettings
|
|
1630
1631
|
});
|
|
@@ -1639,6 +1640,8 @@ const SalesSdkProvider = ({ osKey, enableMultiCurrencySettlement = false, soluti
|
|
|
1639
1640
|
utils === null || utils === void 0 ? void 0 : utils.promotionEvaluator,
|
|
1640
1641
|
context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.constants) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.apiPrefix,
|
|
1641
1642
|
hostBridges.giftSelect,
|
|
1643
|
+
moduleOtherParams.businessCode,
|
|
1644
|
+
productLoadChannel,
|
|
1642
1645
|
uiHostsValue,
|
|
1643
1646
|
salesSettingsSource,
|
|
1644
1647
|
ensureSalesSettings
|
|
@@ -80,7 +80,7 @@ function buildGiftOrderProduct(choice, productData, ctx) {
|
|
|
80
80
|
product_bundle: [],
|
|
81
81
|
metadata: {
|
|
82
82
|
unique_identification_number: uid,
|
|
83
|
-
source_product_price:
|
|
83
|
+
source_product_price: finalOriginal,
|
|
84
84
|
main_product_original_price: finalOriginal,
|
|
85
85
|
main_product_selling_price: "0.00",
|
|
86
86
|
price_schema_version: 2,
|
|
@@ -139,7 +139,7 @@ function applyGiftMetadataToOrderProduct(orderLine, choice, productData, ctx) {
|
|
|
139
139
|
}],
|
|
140
140
|
metadata: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, metadata), {}, {
|
|
141
141
|
unique_identification_number: metadata.unique_identification_number || orderLine.unique_identification_number || createUuidV4(),
|
|
142
|
-
source_product_price:
|
|
142
|
+
source_product_price: finalOriginal,
|
|
143
143
|
main_product_original_price: finalOriginal,
|
|
144
144
|
main_product_selling_price: "0.00",
|
|
145
145
|
price_schema_version: 2,
|
|
@@ -130,7 +130,7 @@ function _resolveSingleBookingGiftChoice() {
|
|
|
130
130
|
* 行为:
|
|
131
131
|
* - 唯一且无规格/套餐的普通赠品:自动构造赠品行
|
|
132
132
|
* - 唯一且无规格/套餐的预约赠品:复用 sale 加车决策链补齐预约信息
|
|
133
|
-
* -
|
|
133
|
+
* - 关闭自动选择、有规格/套餐、多候选或购物车重选:通过 bridge 打开赠品弹窗
|
|
134
134
|
* - 用户取消:返回 null
|
|
135
135
|
*
|
|
136
136
|
* @example
|
|
@@ -148,7 +148,7 @@ function createOpenGiftSelectHost(bridge, getBookingTicket, options) {
|
|
|
148
148
|
if (!require_mapGiftSelectContext.shouldOpenGiftSelectModal(ctx)) return null;
|
|
149
149
|
yield require_giftSalesSettings.ensureGiftSalesSettings(options || {}, bookingTicket);
|
|
150
150
|
let choices = null;
|
|
151
|
-
if (ctx.giftOptions.length === 1 && ctx.mode !== "edit") {
|
|
151
|
+
if ((options === null || options === void 0 ? void 0 : options.autoSelectSingleGift) !== false && ctx.giftOptions.length === 1 && ctx.mode !== "edit") {
|
|
152
152
|
var _bookingTicket$getPro;
|
|
153
153
|
const option = ctx.giftOptions[0];
|
|
154
154
|
const products = yield (_bookingTicket$getPro = bookingTicket.getProductByIds) === null || _bookingTicket$getPro === void 0 ? void 0 : _bookingTicket$getPro.call(bookingTicket, [Number(option.product_id)]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.378",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"styled-components": "^6.0.0-rc.3",
|
|
75
75
|
"use-sync-external-store": "^1.6.0",
|
|
76
76
|
"@pisell/pi-payment-sdk": "0.0.4",
|
|
77
|
-
"@pisell/
|
|
78
|
-
"@pisell/date-picker": "3.0.12",
|
|
77
|
+
"@pisell/utils": "3.0.7",
|
|
79
78
|
"@pisell/icon": "0.0.11",
|
|
80
|
-
"@pisell/
|
|
79
|
+
"@pisell/materials": "6.12.88",
|
|
80
|
+
"@pisell/date-picker": "3.0.12"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": "^18.0.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./serve/formResourcePage.js";
|
|
2
|
-
import "./floorRoomCard/mapRowToFloorRoomCardData.js";
|
|
3
|
-
import "./floorRoomCard/ReservationFloorRoomCard.js";
|
|
4
|
-
import "./floorMap/reservationMock.js";
|
|
5
|
-
import "./floorMap/floorPlanApi.js";
|
|
6
|
-
import "./reservationConstants.js";
|
|
7
|
-
import "./data/bookingToReservationTables.js";
|
|
8
|
-
import "./data/formResourceToReservationTables.js";
|
|
9
|
-
import "./data/salesEmbeddedResourceToTableRows.js";
|
|
10
|
-
import "./floorMap/reservationCards.js";
|
|
11
|
-
import "./PisellReservation.js";
|
|
12
|
-
import "./PisellReservationBookingPage.js";
|
|
13
|
-
import "./PisellVenueControlPage.js";
|
|
14
|
-
import "./PisellVenueWallPage.js";
|
|
15
|
-
import "./PisellReservationTablePage.js";
|
|
16
|
-
import "./components/SelectFloorMapResourceDialog.js";
|
|
17
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import "./hosts/createInstanceHostBridge.js";
|
|
2
|
-
import "./holderConfirm/createHolderConfirmBridge.js";
|
|
3
|
-
import "./giftSelect/createGiftSelectBridge.js";
|
|
4
|
-
import "./context/SalesSdkHostBridgesContext.js";
|
|
5
|
-
import "./utils/formatHolderOptions.js";
|
|
6
|
-
import "./utils/enrichCartLineHolderDisplay.js";
|
|
7
|
-
import "./context/SalesSdkHolderContext.js";
|
|
8
|
-
import "../multiCurrencySettlement/index.js";
|
|
9
|
-
import "./utils/customerAuthGate.js";
|
|
10
|
-
import "./context/SalesSdkBusinessAvailabilityContext.js";
|
|
11
|
-
import "./utils/appendPromotionTags.js";
|
|
12
|
-
import "./utils/productSkuOptions.js";
|
|
13
|
-
import "./context/SalesSdkUIHostsContext.js";
|
|
14
|
-
import "./utils/runAddProductFlow.js";
|
|
15
|
-
import "./components/showAddToCartToast.js";
|
|
16
|
-
import "./utils/resolveAddProductDebounceKey.js";
|
|
17
|
-
import "./utils/identity.js";
|
|
18
|
-
import "./utils/resolveInCartQuantityForAddToast.js";
|
|
19
|
-
import "./utils/addProductWithFlowDebounced.js";
|
|
20
|
-
import "./utils/bookingDate.js";
|
|
21
|
-
import "./utils/holderSubmitValidation.js";
|
|
22
|
-
import "./utils/removeOrderProducts.js";
|
|
23
|
-
import "./selectors.js";
|
|
24
|
-
import "./utils/enrich.js";
|
|
25
|
-
import "./giftSelect/createOpenGiftSelectHost.js";
|
|
26
|
-
import "./utils/ensureHoldersBeforeSubmit.js";
|
|
27
|
-
import "./hooks/useSalesSdk.js";
|
|
28
|
-
import "./bookingEditService/BookingEditServiceDrawer.js";
|
|
29
|
-
import "./hosts/BookingEditHostRenderer.js";
|
|
30
|
-
import "./hosts/CustomerAuthHostRenderer.js";
|
|
31
|
-
import "./hooks/useSalesSdkCart.js";
|
|
32
|
-
import "./hooks/useSalesSdkCustomer.js";
|
|
33
|
-
import "./normalProductDetail/NormalProductDetailHostRenderer.js";
|
|
34
|
-
import "./hosts/createOpenBookingEditHost.js";
|
|
35
|
-
import "./hosts/createOpenMultiDaySelectHost.js";
|
|
36
|
-
import "./hosts/createOpenHolderSelectHost.js";
|
|
37
|
-
import "./hosts/createOpenCustomerAuthHost.js";
|
|
38
|
-
import "./demo/hosts/legacyOpenProductDetail.js";
|
|
39
|
-
import "./hosts/createCompositeOpenProductDetailHost.js";
|
|
40
|
-
import "./normalProductDetail/createOpenNormalProductDetailHost.js";
|
|
41
|
-
import "./normalProductDetail/createOpenBookingSelectionFlowHost.js";
|
|
42
|
-
import "./giftSelect/GiftSelectModal.js";
|
|
43
|
-
import "./giftSelect/GiftSelectHostRenderer.js";
|
|
44
|
-
import "./allergy/AllergySelectionModal.js";
|
|
45
|
-
import "./context/SalesSdkProvider.js";
|
|
46
|
-
import "./context/SalesSdkDishContext.js";
|
|
47
|
-
import "./context/SalesSdkBookingContext.js";
|
|
48
|
-
import "./hooks/useSalesSdkSummary.js";
|
|
49
|
-
import "./hooks/useSalesSdkProducts.js";
|
|
50
|
-
import "./demo/index.js";
|
|
51
|
-
import "./hooks/useSalesSdkDish.js";
|
|
52
|
-
import "./hooks/useCurrentSalesSdkDish.js";
|
|
53
|
-
import "./hooks/useSyncOsModule.js";
|
|
54
|
-
export {};
|