@thefittingroom/shop-ui 1.4.31 → 1.4.33

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/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v1.4.31 (2024-08-14T18:34:31.560Z)
2
+ * thefittingroom v1.4.33 (2024-08-16T18:41:24.286Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  function loadImageRecursive(imageURL, imageURLs) {
@@ -26313,12 +26313,14 @@ const ScanCodeModal = (props) => {
26313
26313
  window.open('https://play.google.com/store/apps/details?id=com.thefittingroom.marketplace', '_blank');
26314
26314
  };
26315
26315
  const onHook = () => {
26316
- var _a, _b, _c;
26316
+ var _a, _b, _c, _d;
26317
26317
  if (!isMobile)
26318
26318
  document.getElementById('tfr-sign-in-nav').style.marginBottom = '0';
26319
- (_a = document.getElementById('tfr-sign-in-nav')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', onSignInNav);
26320
- (_b = document.getElementById('tfr-app-store')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', onCtaClickApple);
26321
- (_c = document.getElementById('tfr-google-play')) === null || _c === void 0 ? void 0 : _c.addEventListener('click', onCtaClickGoogle);
26319
+ if (isMobile)
26320
+ (_a = document.getElementById('tfr-video')) === null || _a === void 0 ? void 0 : _a.pause();
26321
+ (_b = document.getElementById('tfr-sign-in-nav')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', onSignInNav);
26322
+ (_c = document.getElementById('tfr-app-store')) === null || _c === void 0 ? void 0 : _c.addEventListener('click', onCtaClickApple);
26323
+ (_d = document.getElementById('tfr-google-play')) === null || _d === void 0 ? void 0 : _d.addEventListener('click', onCtaClickGoogle);
26322
26324
  };
26323
26325
  const onUnhook = () => {
26324
26326
  var _a, _b, _c;
@@ -26347,6 +26349,7 @@ const ScanCodeModal = (props) => {
26347
26349
 
26348
26350
  <div id="tfr-sign-in-nav" tfr-element="true" class="tfr-body-font tfr-mt-20 tfr-16-default tfr-c-black-o5 tfr-underline tfr-cursor">${L.HaveAcc}</div>
26349
26351
  </div>`;
26352
+ const shouldAutoplay = isMobile ? 'autoplay playsinline' : '';
26350
26353
  const body = () => {
26351
26354
  return `
26352
26355
  <div tfr-element="true">
@@ -26354,7 +26357,7 @@ const ScanCodeModal = (props) => {
26354
26357
 
26355
26358
  </div>
26356
26359
  <div tfr-element="true" class="tfr-logo-box">
26357
- <video id="tfr-video" controls loop>
26360
+ <video id="tfr-video" controls loop ${shouldAutoplay}>
26358
26361
  <source src="https://assets.dev.thefittingroom.xyz/videos/the-fitting-room.mp4" />
26359
26362
  </video>
26360
26363