ordering-ui-external 14.0.11 → 14.0.12

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 (38) hide show
  1. package/_bundles/{7.ordering-ui.c91430c4672ec5b44b41.js → 7.ordering-ui.404d677b1657ca9f8da5.js} +1 -1
  2. package/_bundles/ordering-ui.404d677b1657ca9f8da5.js +2 -0
  3. package/_modules/components/Checkout/index.js +2 -1
  4. package/_modules/themes/callcenterOriginal/src/components/Header/index.js +4 -2
  5. package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +1 -3
  6. package/_modules/themes/callcenterOriginal/src/components/SignUpForm/index.js +16 -14
  7. package/_modules/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +3 -1
  8. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +36 -30
  9. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +2 -1
  10. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +17 -9
  11. package/_modules/themes/five/src/components/PageBanner/index.js +1 -3
  12. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/styles.js +1 -1
  13. package/_modules/themes/three/src/components/Checkout/index.js +2 -1
  14. package/_modules/themes/two/src/components/Checkout/index.js +2 -1
  15. package/package.json +2 -2
  16. package/src/components/Checkout/index.js +1 -0
  17. package/src/themes/callcenterOriginal/src/components/Header/index.js +2 -2
  18. package/src/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +1 -3
  19. package/src/themes/callcenterOriginal/src/components/SignUpForm/index.js +15 -17
  20. package/src/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +2 -1
  21. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +8 -1
  22. package/src/themes/five/src/components/BusinessProductsListing/index.js +2 -1
  23. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +9 -1
  24. package/src/themes/five/src/components/PageBanner/index.js +20 -26
  25. package/src/themes/five/src/components/SingleProductCard/layouts/original/styles.js +1 -1
  26. package/src/themes/three/src/components/Checkout/index.js +1 -0
  27. package/src/themes/two/src/components/Checkout/index.js +1 -0
  28. package/_bundles/ordering-ui.c91430c4672ec5b44b41.js +0 -2
  29. /package/_bundles/{0.ordering-ui.c91430c4672ec5b44b41.js → 0.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  30. /package/_bundles/{1.ordering-ui.c91430c4672ec5b44b41.js → 1.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  31. /package/_bundles/{2.ordering-ui.c91430c4672ec5b44b41.js → 2.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  32. /package/_bundles/{4.ordering-ui.c91430c4672ec5b44b41.js → 4.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  33. /package/_bundles/{5.ordering-ui.c91430c4672ec5b44b41.js → 5.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  34. /package/_bundles/{6.ordering-ui.c91430c4672ec5b44b41.js → 6.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  35. /package/_bundles/{7.ordering-ui.c91430c4672ec5b44b41.js.LICENSE.txt → 7.ordering-ui.404d677b1657ca9f8da5.js.LICENSE.txt} +0 -0
  36. /package/_bundles/{8.ordering-ui.c91430c4672ec5b44b41.js → 8.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  37. /package/_bundles/{9.ordering-ui.c91430c4672ec5b44b41.js → 9.ordering-ui.404d677b1657ca9f8da5.js} +0 -0
  38. /package/_bundles/{ordering-ui.c91430c4672ec5b44b41.js.LICENSE.txt → ordering-ui.404d677b1657ca9f8da5.js.LICENSE.txt} +0 -0
@@ -204,6 +204,12 @@ const BusinessesListingUI = (props) => {
204
204
  useEffect(() => {
205
205
  setActiveMap(false)
206
206
  if (!businessesList?.businesses?.length) return
207
+ if (businessesList?.businesses?.length === 1 && configs?.activate_single_store_automatically?.value === '1') {
208
+ onBusinessClick(businessesList?.businesses[0])
209
+ window.localStorage.setItem('single_business', true)
210
+ return
211
+ }
212
+ window.localStorage.removeItem('single_business')
207
213
  const ids = [...favoriteIds]
208
214
  businessesList.businesses.forEach(business => {
209
215
  if (business?.favorite) {
@@ -292,7 +298,9 @@ const BusinessesListingUI = (props) => {
292
298
  )}
293
299
  {(userCustomer && orderState?.options?.address?.address && isCustomerMode) && (
294
300
  <>
295
- <Title>{t('DELIVERY_TYPE', 'Delivery Type')}</Title>
301
+ {(configTypes.includes(1) || configTypes.some(type => pickupTypes.includes(type))) && (
302
+ <Title>{t('DELIVERY_TYPE', 'Delivery Type')}</Title>
303
+ )}
296
304
  <TypesContainer>
297
305
  {configTypes.includes(1) && (
298
306
  <TypeButton onClick={() => handleChangeType(1)} disabled={orderState?.loading} activated={!isPickupSelected}>
@@ -132,34 +132,28 @@ const PageBannerUI = (props) => {
132
132
 
133
133
  return (
134
134
  <>
135
- {pageBannerState.loading ? (
135
+ {pageBannerState.banner?.items?.length > 0 && (
136
136
  <BannerContainer>
137
- <Skeleton height={250} />
137
+ <Swiper
138
+ navigation={pageBannerState.banner?.items?.length > 1}
139
+ spaceBetween={0}
140
+ shortSwipes={false}
141
+ loop={pageBannerState.banner?.items.length > 1}
142
+ touchStartPreventDefault={false}
143
+ slidesPerView={1}
144
+ >
145
+ {pageBannerState.banner?.items.map((img, i) => (
146
+ <SwiperSlide
147
+ key={i}
148
+ onClick={() => handleGoToPage(img?.action)}
149
+ >
150
+ <ImageWrapper>
151
+ <img src={img.url} className='banner-img' alt='' />
152
+ </ImageWrapper>
153
+ </SwiperSlide>
154
+ ))}
155
+ </Swiper>
138
156
  </BannerContainer>
139
- ) : (
140
- pageBannerState.banner?.items?.length > 0 && (
141
- <BannerContainer>
142
- <Swiper
143
- navigation={pageBannerState.banner?.items?.length > 1}
144
- spaceBetween={0}
145
- shortSwipes={false}
146
- loop={pageBannerState.banner?.items.length > 1}
147
- touchStartPreventDefault={false}
148
- slidesPerView={1}
149
- >
150
- {pageBannerState.banner?.items.map((img, i) => (
151
- <SwiperSlide
152
- key={i}
153
- onClick={() => handleGoToPage(img?.action)}
154
- >
155
- <ImageWrapper>
156
- <img src={img.url} className='banner-img' alt='' />
157
- </ImageWrapper>
158
- </SwiperSlide>
159
- ))}
160
- </Swiper>
161
- </BannerContainer>
162
- )
163
157
  )}
164
158
  </>
165
159
  )
@@ -65,7 +65,7 @@ export const CardContainer = styled.div`
65
65
  `}
66
66
  }
67
67
  `}
68
-
68
+
69
69
  `}
70
70
  `
71
71
 
@@ -259,6 +259,7 @@ const CheckoutUI = (props) => {
259
259
  apiKey={configs?.google_maps_api_key?.value}
260
260
  mapConfigs={mapConfigs}
261
261
  isCustomerMode={isCustomerMode}
262
+ cart={cart}
262
263
  />
263
264
  )
264
265
  )}
@@ -254,6 +254,7 @@ const CheckoutUI = (props) => {
254
254
  apiKey={configState.configs?.google_maps_api_key?.value}
255
255
  mapConfigs={mapConfigs}
256
256
  isCustomerMode={isCustomerMode}
257
+ cart={cart}
257
258
  />
258
259
  )
259
260
  )}