@thefittingroom/shop-ui 1.4.32 → 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.32 (2024-08-16T15:41:02.778Z)
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,7 +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>`;
26350
- const shouldAutoplay = isMobile ? 'autoplay' : '';
26352
+ const shouldAutoplay = isMobile ? 'autoplay playsinline' : '';
26351
26353
  const body = () => {
26352
26354
  return `
26353
26355
  <div tfr-element="true">