whatmore-react-assets 1.0.477 → 1.0.478

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.477",
3
+ "version": "1.0.478",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- .whatmore-ios-css-relative-fix{-webkit-transform:translateZ(0)}.whatmore-root{clip:auto;all:initial;-webkit-animation:none 0s ease 0s 1 normal none running;animation:none 0s ease 0s 1 normal none running;-webkit-backface-visibility:visible;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:none;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;color:#000;-moz-column-fill:balance;column-fill:balance;-moz-column-gap:normal;-moz-column-rule:medium none currentColor;column-rule:medium none currentColor;-moz-column-span:1;column-span:1;-moz-columns:auto;-moz-column-count:auto;column-gap:normal;-moz-column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;float:none;font-family:serif;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;-webkit-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc none outside;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;-moz-tab-size:8;-o-tab-size:8;tab-size:8;table-layout:auto;text-align:left;-moz-text-align-last:auto;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}.whatmore-video-player{display:inline!important}.whatmore-story-horizontal-flex{-ms-overflow-style:none;overflow-x:auto;scrollbar-width:none}.whatmore-story-horizontal-flex::-webkit-scrollbar{display:none}.whatmore-carousel-horizontal-flex{-ms-overflow-style:none;overflow-x:auto;scrollbar-width:none}.whatmore-carousel-horizontal-flex::-webkit-scrollbar{display:none}.whatmore-carousel-horizontal-flex:after,.whatmore-carousel-horizontal-flex:before{content:"";margin:auto}@-webkit-keyframes whatmoreEventTileScaleOut{0%{transform:scale(1)}to{transform:scale(1.05)}}@keyframes whatmoreEventTileScaleOut{0%{transform:scale(1)}to{transform:scale(1.05)}}@-webkit-keyframes whatmoreEventTileScaleIn{0%{transform:scale(1.05)}to{transform:scale(1)}}@keyframes whatmoreEventTileScaleIn{0%{transform:scale(1.05)}to{transform:scale(1)}}@-webkit-keyframes whatmoreProductOnEventTileSweepInandOut{0%{opacity:1;transform:translateY(100%)}10%{transform:translateY(0)}12%{transform:translateY(-5%)}20%{transform:translateY(0)}}@keyframes whatmoreProductOnEventTileSweepInandOut{0%{opacity:1;transform:translateY(100%)}10%{transform:translateY(0)}12%{transform:translateY(-5%)}20%{transform:translateY(0)}}@-webkit-keyframes whatmoreEventTileFadeInAnimation{0%{opacity:0}to{opacity:1}}@keyframes whatmoreEventTileFadeInAnimation{0%{opacity:0}to{opacity:1}}@-webkit-keyframes whatmoreEventTileFadeOutAnimation{0%{opacity:1}to{opacity:0}}@keyframes whatmoreEventTileFadeOutAnimation{0%{opacity:1}to{opacity:0}}@-webkit-keyframes whatmoreCarouselHorizontalSwipeNext{0%{opacity:1;transform:translateX(500%)}10%{transform:translateX(0)}12%{transform:translateX(-20%)}20%{transform:translateX(0)}}@keyframes whatmoreCarouselHorizontalSwipeNext{0%{opacity:1;transform:translateX(500%)}10%{transform:translateX(0)}12%{transform:translateX(-20%)}20%{transform:translateX(0)}}@-webkit-keyframes whatmoreCarouselHorizontalSwipePrev{0%{opacity:1;transform:translateX(-500%)}10%{transform:translateX(0)}12%{transform:translateX(20%)}20%{transform:translateX(0)}}@keyframes whatmoreCarouselHorizontalSwipePrev{0%{opacity:1;transform:translateX(-500%)}10%{transform:translateX(0)}12%{transform:translateX(20%)}20%{transform:translateX(0)}}.whatmore-event-tile-scale-out-animation{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileScaleOut;animation-name:whatmoreEventTileScaleOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.whatmore-event-tile-scale-in-animation,.whatmore-event-tile-scale-out-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.2s;animation-duration:.2s}.whatmore-event-tile-scale-in-animation{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileScaleIn;animation-name:whatmoreEventTileScaleIn;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.whatmore-event-tile-product-scale-in-and-out-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreProductOnEventTileSweepInandOut;animation-name:whatmoreProductOnEventTileSweepInandOut;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-component-fade-in-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileFadeInAnimation;animation-name:whatmoreEventTileFadeInAnimation;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-component-fade-out-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileFadeOutAnimation;animation-name:whatmoreEventTileFadeOutAnimation;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-horizontal-swipe-animation-next{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreCarouselHorizontalSwipeNext;animation-name:whatmoreCarouselHorizontalSwipeNext;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-horizontal-swipe-animation-next,.whatmore-event-tile-horizontal-swipe-animation-prev{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:2.3s;animation-duration:2.3s}.whatmore-event-tile-horizontal-swipe-animation-prev{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreCarouselHorizontalSwipePrev;animation-name:whatmoreCarouselHorizontalSwipePrev;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-loading-indicator{-webkit-animation:whatmore-loading-indicator-keyframe 1.1s ease infinite;animation:whatmore-loading-indicator-keyframe 1.1s ease infinite;border-radius:50%;font-size:10px;height:1em;position:relative;text-indent:-9999em;transform:translateZ(0);width:1em}@-webkit-keyframes whatmore-scale-on-tap-keyframe{0%{transform:scale(1)}50%{transform:scale(.9)}to{transform:scale(1)}}@keyframes whatmore-scale-on-tap-keyframe{0%{transform:scale(1)}50%{transform:scale(.9)}to{transform:scale(1)}}@-webkit-keyframes whatmore-rotate-indefinitely-keyframe{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes whatmore-rotate-indefinitely-keyframe{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@-webkit-keyframes whatmore-pulse-keyframe{0%{transform:scale(.8)}50%{transform:scale(1)}to{transform:scale(.8)}}@keyframes whatmore-pulse-keyframe{0%{transform:scale(.8)}50%{transform:scale(1)}to{transform:scale(.8)}}.whatmore-scale-on-tap{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmore-scale-on-tap-keyframe;animation-name:whatmore-scale-on-tap-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}.whatmore-rotate-indefinitely{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:whatmore-rotate-indefinitely-keyframe;animation-name:whatmore-rotate-indefinitely-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}.whatmore-rotate-for-a-while{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-name:whatmore-rotate-indefinitely-keyframe;animation-name:whatmore-rotate-indefinitely-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}.whatmore-pulse{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:4;animation-iteration-count:4;-webkit-animation-name:whatmore-pulse-keyframe;animation-name:whatmore-pulse-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes whatmore-shimmer-kf{0%{background:#fff}50%{background:#e0e0e0}to{background:#fff}}@keyframes whatmore-shimmer-kf{0%{background:#fff}50%{background:#e0e0e0}to{background:#fff}}.whatmore-shimmer{-webkit-animation:whatmore-shimmer-kf 1.4s ease-in-out infinite;animation:whatmore-shimmer-kf 1.4s ease-in-out infinite}.whatmore-landscape-modal{height:100%;height:100vh!important;left:0!important;position:fixed!important;top:0!important;width:100%;z-index:2147483627!important}.whatmore-landscape-modal .whatmore-landscape-modal-overlay{background-color:rgba(0,0,0,.45)!important;height:100%;left:0!important;position:absolute!important;top:0!important;width:100%;z-index:2147483637!important}.whatmore-landscape-modal .whatmore-landscape-modal-content{box-shadow:0 1px 5px rgba(0,0,0,.7);box-sizing:border-box;position:absolute!important;z-index:2147483647!important}.whatmore-video-player{height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;overflow:hidden!important;width:100%!important}.whatmore-landscape-modal{--swiper-theme-color:#303632!important}.whatmore-landscape-modal .swiper{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0!important;position:relative;z-index:1}.whatmore-landscape-modal .swiper-vertical>.swiper-wrapper{flex-direction:column}.whatmore-landscape-modal .swiper-wrapper{box-sizing:content-box;box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.whatmore-landscape-modal .swiper-android .swiper-slide,.whatmore-landscape-modal .swiper-wrapper{transform:translateZ(0)}.whatmore-landscape-modal .swiper-pointer-events{touch-action:pan-y}.whatmore-landscape-modal .swiper-pointer-events.swiper-vertical{touch-action:pan-x}.whatmore-landscape-modal .swiper-slide{display:block!important;flex-shrink:0;height:auto!important;position:relative;-webkit-transform:translateZ(0);transition-property:transform;width:100%}.whatmore-landscape-modal .swiper-slide-invisible-blank{visibility:hidden}.whatmore-landscape-modal .swiper-autoheight,.whatmore-landscape-modal .swiper-autoheight .swiper-slide{height:auto}.whatmore-landscape-modal .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.whatmore-landscape-modal .swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.whatmore-landscape-modal .swiper-3d,.whatmore-landscape-modal .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.whatmore-landscape-modal .swiper-3d .swiper-cube-shadow,.whatmore-landscape-modal .swiper-3d .swiper-slide,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-bottom,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-left,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-right,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-top,.whatmore-landscape-modal .swiper-3d .swiper-wrapper{transform-style:preserve-3d}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-bottom,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-left,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-right,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.whatmore-landscape-modal .swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.whatmore-landscape-modal .swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.whatmore-landscape-modal .swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.whatmore-landscape-modal .swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.whatmore-landscape-modal .swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.whatmore-landscape-modal .swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.whatmore-landscape-modal .swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.whatmore-landscape-modal .swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.whatmore-landscape-modal .swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.whatmore-landscape-modal .swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.whatmore-landscape-modal{--swiper-navigation-size:50px!important}.whatmore-landscape-modal .swiper-button-next,.whatmore-landscape-modal .swiper-button-prev{align-items:center!important;background-color:rgba(0,0,0,.7)!important;border-radius:5px!important;color:var(--swiper-theme-color)!important;color:var(--swiper-navigation-color,var(--swiper-theme-color))!important;cursor:pointer!important;display:flex!important;height:calc(var(--swiper-navigation-size)*2)!important;justify-content:center!important;opacity:1!important;position:absolute!important;top:45%!important;width:var(--swiper-navigation-size)!important;z-index:10!important}.whatmore-landscape-modal .swiper-button-next{right:25%!important}.whatmore-landscape-modal .swiper-button-prev{left:25%!important}.whatmore-landscape-modal .swiper-button-next.swiper-button-disabled,.whatmore-landscape-modal .swiper-button-next.swiper-button-hidden,.whatmore-landscape-modal .swiper-button-prev.swiper-button-disabled,.whatmore-landscape-modal .swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0!important;pointer-events:none}.whatmore-landscape-modal .swiper-navigation-disabled .whatmore-landscape-modal .swiper-button-next,.whatmore-landscape-modal .swiper-navigation-disabled .whatmore-landscape-modal .swiper-button-prev{display:none!important}.whatmore-landscape-modal .swiper-button-next:after,.whatmore-landscape-modal .swiper-button-prev:after{background-color:transparent!important;color:#fff;font-family:whatmore-swiper-icons!important;font-size:var(--swiper-navigation-size)!important;font-variant:normal!important;letter-spacing:0!important;line-height:1!important;margin:0;position:absolute;text-align:center!important;text-transform:none!important;top:50%;transform:translateY(-50%)}.whatmore-landscape-modal .swiper-button-prev,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-next{left:0;right:auto}.whatmore-landscape-modal .swiper-button-prev:after,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-next:after{content:"prev"}.whatmore-landscape-modal .swiper-button-next,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-prev{left:auto;right:0}.whatmore-landscape-modal .swiper-button-next:after,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-prev:after{content:"next"}.whatmore-landscape-modal .swiper-button-lock{display:none}.whatmore-landscape-modal .swiper-cube{overflow:visible}.whatmore-landscape-modal .swiper-cube .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.whatmore-landscape-modal .swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.whatmore-landscape-modal .swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.whatmore-landscape-modal .swiper-cube .swiper-slide-active,.whatmore-landscape-modal .swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.whatmore-landscape-modal .swiper-cube .swiper-slide-active,.whatmore-landscape-modal .swiper-cube .swiper-slide-next,.whatmore-landscape-modal .swiper-cube .swiper-slide-next+.swiper-slide,.whatmore-landscape-modal .swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-bottom,.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-left,.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-right,.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.whatmore-landscape-modal .swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.whatmore-landscape-modal .swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}
1
+ .whatmore-ios-css-relative-fix{-webkit-transform:translateZ(0)}.whatmore-root{clip:auto;all:initial;-webkit-animation:none 0s ease 0s 1 normal none running;animation:none 0s ease 0s 1 normal none running;-webkit-backface-visibility:visible;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:none;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;color:#000;-moz-column-fill:balance;column-fill:balance;-moz-column-gap:normal;-moz-column-rule:medium none currentColor;column-rule:medium none currentColor;-moz-column-span:1;column-span:1;-moz-columns:auto;-moz-column-count:auto;column-gap:normal;-moz-column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;float:none;font-family:serif;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;-webkit-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc none outside;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;-moz-tab-size:8;-o-tab-size:8;tab-size:8;table-layout:auto;text-align:left;-moz-text-align-last:auto;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}.whatmore-video-player{display:inline!important}.whatmore-story-horizontal-flex{-ms-overflow-style:none;overflow-x:auto;scrollbar-width:none}.whatmore-story-horizontal-flex::-webkit-scrollbar{display:none}.whatmore-carousel-horizontal-flex{-ms-overflow-style:none;overflow-x:auto;scrollbar-width:none}.whatmore-carousel-horizontal-flex::-webkit-scrollbar{display:none}.whatmore-carousel-horizontal-flex:after,.whatmore-carousel-horizontal-flex:before{content:"";margin:auto}@-webkit-keyframes whatmoreEventTileScaleOut{0%{transform:scale(1)}to{transform:scale(1.05)}}@keyframes whatmoreEventTileScaleOut{0%{transform:scale(1)}to{transform:scale(1.05)}}@-webkit-keyframes whatmoreEventTileScaleIn{0%{transform:scale(1.05)}to{transform:scale(1)}}@keyframes whatmoreEventTileScaleIn{0%{transform:scale(1.05)}to{transform:scale(1)}}@-webkit-keyframes whatmoreProductOnEventTileSweepInandOut{0%{opacity:1;transform:translateY(100%)}10%{transform:translateY(0)}12%{transform:translateY(-5%)}20%{transform:translateY(0)}}@keyframes whatmoreProductOnEventTileSweepInandOut{0%{opacity:1;transform:translateY(100%)}10%{transform:translateY(0)}12%{transform:translateY(-5%)}20%{transform:translateY(0)}}@-webkit-keyframes whatmoreEventTileFadeInAnimation{0%{opacity:0}to{opacity:1}}@keyframes whatmoreEventTileFadeInAnimation{0%{opacity:0}to{opacity:1}}@-webkit-keyframes whatmoreEventTileFadeOutAnimation{0%{opacity:1}to{opacity:0}}@keyframes whatmoreEventTileFadeOutAnimation{0%{opacity:1}to{opacity:0}}@-webkit-keyframes whatmoreCarouselHorizontalSwipeNext{0%{opacity:1;transform:translateX(500%)}10%{transform:translateX(0)}12%{transform:translateX(-20%)}20%{transform:translateX(0)}}@keyframes whatmoreCarouselHorizontalSwipeNext{0%{opacity:1;transform:translateX(500%)}10%{transform:translateX(0)}12%{transform:translateX(-20%)}20%{transform:translateX(0)}}@-webkit-keyframes whatmoreCarouselHorizontalSwipePrev{0%{opacity:1;transform:translateX(-500%)}10%{transform:translateX(0)}12%{transform:translateX(20%)}20%{transform:translateX(0)}}@keyframes whatmoreCarouselHorizontalSwipePrev{0%{opacity:1;transform:translateX(-500%)}10%{transform:translateX(0)}12%{transform:translateX(20%)}20%{transform:translateX(0)}}.whatmore-event-tile-scale-out-animation{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileScaleOut;animation-name:whatmoreEventTileScaleOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.whatmore-event-tile-scale-in-animation,.whatmore-event-tile-scale-out-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.2s;animation-duration:.2s}.whatmore-event-tile-scale-in-animation{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileScaleIn;animation-name:whatmoreEventTileScaleIn;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.whatmore-event-tile-product-scale-in-and-out-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreProductOnEventTileSweepInandOut;animation-name:whatmoreProductOnEventTileSweepInandOut;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-component-fade-in-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileFadeInAnimation;animation-name:whatmoreEventTileFadeInAnimation;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-component-fade-out-animation{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreEventTileFadeOutAnimation;animation-name:whatmoreEventTileFadeOutAnimation;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-horizontal-swipe-animation-next{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreCarouselHorizontalSwipeNext;animation-name:whatmoreCarouselHorizontalSwipeNext;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.whatmore-event-tile-horizontal-swipe-animation-next,.whatmore-event-tile-horizontal-swipe-animation-prev{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:2.3s;animation-duration:2.3s}.whatmore-event-tile-horizontal-swipe-animation-prev{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmoreCarouselHorizontalSwipePrev;animation-name:whatmoreCarouselHorizontalSwipePrev;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes whatmore-scale-on-tap-keyframe{0%{transform:scale(1)}50%{transform:scale(.9)}to{transform:scale(1)}}@keyframes whatmore-scale-on-tap-keyframe{0%{transform:scale(1)}50%{transform:scale(.9)}to{transform:scale(1)}}@-webkit-keyframes whatmore-rotate-indefinitely-keyframe{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes whatmore-rotate-indefinitely-keyframe{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@-webkit-keyframes whatmore-pulse-keyframe{0%{transform:scale(.8)}50%{transform:scale(1)}to{transform:scale(.8)}}@keyframes whatmore-pulse-keyframe{0%{transform:scale(.8)}50%{transform:scale(1)}to{transform:scale(.8)}}.whatmore-scale-on-tap{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmore-scale-on-tap-keyframe;animation-name:whatmore-scale-on-tap-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}.whatmore-rotate-indefinitely{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:whatmore-rotate-indefinitely-keyframe;animation-name:whatmore-rotate-indefinitely-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}.whatmore-rotate-for-a-while{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-name:whatmore-rotate-indefinitely-keyframe;animation-name:whatmore-rotate-indefinitely-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}.whatmore-pulse{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:4;animation-iteration-count:4;-webkit-animation-name:whatmore-pulse-keyframe;animation-name:whatmore-pulse-keyframe;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes whatmore-shimmer-kf{0%{background:#fff}50%{background:#e0e0e0}to{background:#fff}}@keyframes whatmore-shimmer-kf{0%{background:#fff}50%{background:#e0e0e0}to{background:#fff}}.whatmore-shimmer{-webkit-animation:whatmore-shimmer-kf 1.4s ease-in-out infinite;animation:whatmore-shimmer-kf 1.4s ease-in-out infinite}.whatmore-loading-indicator{-webkit-animation:whatmore-loading-indicator-keyframe 1.1s ease infinite;animation:whatmore-loading-indicator-keyframe 1.1s ease infinite;border-radius:50%;font-size:10px;height:1em;position:relative;text-indent:-9999em;transform:translateZ(0);width:1em}.whatmore-landscape-modal{height:100%;height:100vh!important;left:0!important;position:fixed!important;top:0!important;width:100%;z-index:2147483627!important}.whatmore-landscape-modal .whatmore-landscape-modal-overlay{background-color:rgba(0,0,0,.45)!important;height:100%;left:0!important;position:absolute!important;top:0!important;width:100%;z-index:2147483637!important}.whatmore-landscape-modal .whatmore-landscape-modal-content{box-shadow:0 1px 5px rgba(0,0,0,.7);box-sizing:border-box;position:absolute!important;z-index:2147483647!important}.whatmore-video-player{height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;overflow:hidden!important;width:100%!important}.whatmore-landscape-modal{--swiper-theme-color:#303632!important}.whatmore-landscape-modal .swiper{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0!important;position:relative;z-index:1}.whatmore-landscape-modal .swiper-vertical>.swiper-wrapper{flex-direction:column}.whatmore-landscape-modal .swiper-wrapper{box-sizing:content-box;box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.whatmore-landscape-modal .swiper-android .swiper-slide,.whatmore-landscape-modal .swiper-wrapper{transform:translateZ(0)}.whatmore-landscape-modal .swiper-pointer-events{touch-action:pan-y}.whatmore-landscape-modal .swiper-pointer-events.swiper-vertical{touch-action:pan-x}.whatmore-landscape-modal .swiper-slide{display:block!important;flex-shrink:0;height:auto!important;position:relative;-webkit-transform:translateZ(0);transition-property:transform;width:100%}.whatmore-landscape-modal .swiper-slide-invisible-blank{visibility:hidden}.whatmore-landscape-modal .swiper-autoheight,.whatmore-landscape-modal .swiper-autoheight .swiper-slide{height:auto}.whatmore-landscape-modal .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.whatmore-landscape-modal .swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.whatmore-landscape-modal .swiper-3d,.whatmore-landscape-modal .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.whatmore-landscape-modal .swiper-3d .swiper-cube-shadow,.whatmore-landscape-modal .swiper-3d .swiper-slide,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-bottom,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-left,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-right,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-top,.whatmore-landscape-modal .swiper-3d .swiper-wrapper{transform-style:preserve-3d}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-bottom,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-left,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-right,.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.whatmore-landscape-modal .swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.whatmore-landscape-modal .swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.whatmore-landscape-modal .swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.whatmore-landscape-modal .swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.whatmore-landscape-modal .swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.whatmore-landscape-modal .swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.whatmore-landscape-modal .swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.whatmore-landscape-modal .swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.whatmore-landscape-modal .swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.whatmore-landscape-modal .swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.whatmore-landscape-modal .swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.whatmore-landscape-modal{--swiper-navigation-size:50px!important}.whatmore-landscape-modal .swiper-button-next,.whatmore-landscape-modal .swiper-button-prev{align-items:center!important;background-color:rgba(0,0,0,.7)!important;border-radius:5px!important;color:var(--swiper-theme-color)!important;color:var(--swiper-navigation-color,var(--swiper-theme-color))!important;cursor:pointer!important;display:flex!important;height:calc(var(--swiper-navigation-size)*2)!important;justify-content:center!important;opacity:1!important;position:absolute!important;top:45%!important;width:var(--swiper-navigation-size)!important;z-index:10!important}.whatmore-landscape-modal .swiper-button-next{right:25%!important}.whatmore-landscape-modal .swiper-button-prev{left:25%!important}.whatmore-landscape-modal .swiper-button-next.swiper-button-disabled,.whatmore-landscape-modal .swiper-button-next.swiper-button-hidden,.whatmore-landscape-modal .swiper-button-prev.swiper-button-disabled,.whatmore-landscape-modal .swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0!important;pointer-events:none}.whatmore-landscape-modal .swiper-navigation-disabled .whatmore-landscape-modal .swiper-button-next,.whatmore-landscape-modal .swiper-navigation-disabled .whatmore-landscape-modal .swiper-button-prev{display:none!important}.whatmore-landscape-modal .swiper-button-next:after,.whatmore-landscape-modal .swiper-button-prev:after{background-color:transparent!important;color:#fff;font-family:whatmore-swiper-icons!important;font-size:var(--swiper-navigation-size)!important;font-variant:normal!important;letter-spacing:0!important;line-height:1!important;margin:0;position:absolute;text-align:center!important;text-transform:none!important;top:50%;transform:translateY(-50%)}.whatmore-landscape-modal .swiper-button-prev,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-next{left:0;right:auto}.whatmore-landscape-modal .swiper-button-prev:after,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-next:after{content:"prev"}.whatmore-landscape-modal .swiper-button-next,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-prev{left:auto;right:0}.whatmore-landscape-modal .swiper-button-next:after,.whatmore-landscape-modal .swiper-rtl .whatmore-landscape-modal .swiper-button-prev:after{content:"next"}.whatmore-landscape-modal .swiper-button-lock{display:none}.whatmore-landscape-modal .swiper-cube{overflow:visible}.whatmore-landscape-modal .swiper-cube .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.whatmore-landscape-modal .swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.whatmore-landscape-modal .swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.whatmore-landscape-modal .swiper-cube .swiper-slide-active,.whatmore-landscape-modal .swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.whatmore-landscape-modal .swiper-cube .swiper-slide-active,.whatmore-landscape-modal .swiper-cube .swiper-slide-next,.whatmore-landscape-modal .swiper-cube .swiper-slide-next+.swiper-slide,.whatmore-landscape-modal .swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-bottom,.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-left,.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-right,.whatmore-landscape-modal .swiper-cube .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.whatmore-landscape-modal .swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.whatmore-landscape-modal .swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[209],{4209:function(t,e,n){n.r(e),n.d(e,{EventClickComponentContext:function(){return pn},default:function(){return xn}});var i=n(4897),o=n(499),r=n(7313),a=n(2210),l=n(8486),d=n(5160),s=n(3271),c=n(9854),h=n(7753),u=n(7789),p=n(7053),x=n(1896),g=n(6417);var m=function(t){return(0,g.jsx)(x.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},f=n(5098),v=n(3437),w=n(3455),j=n(6422);var C,S,y,b,k=function(t){const[e,n]=(0,j.Z)(),[i,o,r,a]=(0,u.Z)(),l=.08*a;function d(){n(!e)}return(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.Cd,{cursor:"pointer",children:e?(0,g.jsx)(w.Z,{sx:{color:"white",fontSize:l,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{d()}}):(0,g.jsx)(v.Z,{sx:{color:"white",fontSize:l,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{d()}})})})},I=n(168),F=n(8449),_=n(686);const T=(0,_.F4)(C||(C=(0,I.Z)(["\n 0%,10%,15% {\n opacity: 0; \n }\n 25%{\n opacity: 0.25;\n transform: translateY(-25%);\n }\n 50%{\n opacity: 0.5;\n transform: translateY(0%);\n }\n 75% {\n opacity: 0.75;\n transform: translateY(-8%)\n }\n 100%{\n opacity: 1;\n transform: translateY(0%)\n }\n"]))),E="".concat(T," 0.5s linear"),O=(0,_.F4)(S||(S=(0,I.Z)(["\n 30% { transform: scale(1.2); }\n 40%, 60% { transform: rotate(-20deg) scale(1.2); }\n 50% { transform: rotate(20deg) scale(1.2); }\n 70% { transform: rotate(0deg) scale(1.2); }\n 100% { transform: scale(1); }\n"]))),P="\n ".concat(O," 1.5s linear;\n"),L=(0,_.F4)(y||(y=(0,I.Z)(["\n 3% { transform: scale(1.2); }\n 4%, 6% { transform: rotate(-20deg) scale(1.2); }\n 5%,7% { transform: rotate(20deg) scale(1.2); }\n 8% { transform: rotate(0deg) scale(1.2); }\n 10% { transform: scale(1); }\n"]))),z=("\n ".concat(L," 10s linear infinite;\n"),(0,_.F4)(b||(b=(0,I.Z)(["\n 0% { transform: scale(1); }\n 10% { transform: scale(1.2); }\n 20% { transform: scale(1); }\n"]))));"\n ".concat(z," 5s ease-in-out infinite;\n");var D,R=n(4937);const K=(0,_.F4)(D||(D=(0,I.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),M="\n ".concat(K," ").concat(3,"s ease-in-out;\n");function W(t){const[e,n,i,o]=(0,u.Z)(),[a]=(0,h.j1)("whatmoreSecondaryColor"),[l,d]=(0,r.useState)(0),c=t.event,p=t.onClick,x=c.products.length;t.isFirstProductsIconClickDone;(0,r.useEffect)((()=>{const t=setInterval((()=>{d((t=>(t+1)%x))}),3e3);return()=>{clearInterval(t)}}),[]);const m=.24,v=.024;var w=o*m+"px",j=o*m+"px",C=o*v*1.5+"px",S=o*v+"px",y=o*v*1.5+"px";if(void 0==c.products||0==c.products.length)return(0,g.jsx)(g.Fragment,{});var b=c.products;return(0,g.jsx)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,g.jsxs)(s.xu,{margin:"10px",width:w,height:j,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:E,onClick:()=>p(),children:[(0,g.jsx)(f.Ee,{width:"100%",height:"100%",src:b[l].thumbnail_image,objectFit:"cover",borderRadius:"lg",animation:M},l),(0,g.jsx)(s.xu,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,g.jsx)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:a,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,g.jsxs)(s.xv,{noOfLines:1,fontSize:S,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,g.jsx)(s.M5,{children:(0,g.jsx)(R.Z,{sx:{color:"white",fontSize:y}})})]})})})}),(0,g.jsx)(s.Kq,{direction:"row",height:"fit-content",width:w,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.Ct,{fontSize:C,variant:"subtle",textColor:a,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:x>1?x:""})})]})})}var q=function(t){const[e,n]=(0,h.j1)("isProductSwiperCatalogOpen"),[i,o,a,l]=(0,u.Z)(),[d,c]=(0,r.useState)(!1),p=t.onToggle,x=t.event,m=.07*l;return(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.bK,{style:{marginTop:"10px"},children:e?(0,g.jsx)(F.Z,{sx:{color:"white",fontSize:m,filter:"drop-shadow(0 0 5px black);",position:"relative",zIndex:2},onClick:()=>{p("minimize-button")}}):(0,g.jsx)(W,{event:x,onClick:()=>{p("products-button"),c(!0)},isFirstProductsIconClickDone:d})})})},A=n(2634),Z=n(8302);var H,N,B=function(t){const e=t.onCloseCallback,[n,i,o,r]=(0,u.Z)(),a=.08*r;return(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.Cd,{cursor:"pointer",children:(0,g.jsx)(Z.Z,{sx:{boxShadow:3,color:"white",fontSize:a,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e(t)}})})})},V=n(756),U=n(5428),Y=n(8022);var X=function(t){var e,n;const[i,o,a,l]=(0,u.Z)(),[d,c]=(0,r.useState)(!0),{slideDirection:h}=(0,r.useContext)(pn),p=null!==(e=t.showForSeconds)&&void 0!==e?e:3,x=null!==(n=t.delayInSeconds)&&void 0!==n?n:1;t.swipeUp,(0,r.useEffect)((()=>{const t=setTimeout((()=>{c(!1)}),1e3*p);return()=>{clearTimeout(t)}}),[]);const m=.15*l,f=.07*l,v=(0,_.F4)(H||(H=(0,I.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateY(-100%) translateX(+10%) rotate(+30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),w="".concat(v," infinite 1.5s linear"),j=(0,_.F4)(N||(N=(0,I.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateX(30%) translateY(20%) rotate(-30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),C="".concat(j," infinite 1.5s linear");return(0,g.jsx)(V.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:x,children:(0,g.jsx)(s.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,g.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,g.jsx)(s.M5,{animation:"vertical"===h?w:C,children:"vertical"===h?(0,g.jsx)(U.Z,{sx:{color:"white !important",fontSize:m,filter:"drop-shadow(0 0 20px black);"}}):(0,g.jsx)(Y.Z,{sx:{color:"white !important",fontSize:m,filter:"drop-shadow(0 0 20px black);"}})}),(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.xv,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var G=function(t){const[e,n]=(0,h.j1)("isFirstIndicatorRenderDone"),[i]=(0,h.j1)("indicatorRenderSeconds"),o=i,a=t.swipeUp;return(0,r.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),3e3+1e3*o);return()=>{clearTimeout(t)}}),[]),e?null:(0,g.jsx)(X,{showForSeconds:.8*o,delayInSeconds:3,swipeUp:a})},J=n(5180),$=n(9316),Q=n(5254);const tt="15px";var et=n(7376),nt=n(778),it=n(9039);var ot=function(t){const[e]=(0,h.j1)("isInDesignMode"),[n]=(0,h.j1)("isDemoBrand"),[i]=(0,h.j1)("whatmoreSecondaryColor"),[o]=(0,h.j1)("whatmorePrimaryFont"),[a]=(0,h.j1)("whatmoreShopId"),[l,p,x,m]=(0,u.Z)(),[f,v]=(0,r.useState)(!1),w=t.product,j=t.event,{whatmoreWidgetSourceDetails:C}=(0,r.useContext)(it.I),S=.1*x,y=.95*m,b=.05*m;return(0,g.jsx)(s.Kq,{direction:"row",width:m,height:S,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.800)",children:(0,g.jsx)(s.Kq,{direction:"column",width:"fit-content",height:S,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,g.jsx)(s.xu,{width:y+"px",height:"fit-content",padding:"6px",marginTop:tt,backgroundColor:i,borderRadius:"5px",animation:f?$.mT:null,onAnimationEnd:()=>{v(!1)},marginBottom:(0,c.pq)(a),onClick:()=>{v(!0),function(t,i){e||n||(async()=>{(0,d.wz)(t,i),(0,et.GF)({userInteractionType:nt.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:C,event:t,productList:[i],ctaList:t.cta})})()}(j,w),window.location.href=function(t){return(0,c.lj)(a)?t.product_link+"?"+(0,c.aw)(a)+"&"+(0,c.n9)(a)+"&"+(0,c.v)(a):t.product_link}(w)},_hover:{backgroundColor:(0,Q.lA)(i,8)},cursor:"pointer",children:(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*b+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:o+" !important",color:"white !important"},children:"Shop Now"})})})})})},rt=n(7009),at=n(5945),lt=n(5456),dt=n(6984),st=n(6227),ct=n(7329);n(9111);function ht(t){var e;const[n]=(0,h.j1)("whatmoreSecondaryColor"),[i]=(0,h.j1)("whatmorePrimaryFont"),[o]=(0,h.j1)("whatmoreShopId"),[a,l]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),u=t.onClick,p=t.width,x=t.height,m=t.title,f=t.showInProgressIcon;return(0,g.jsx)(s.xu,{width:p,height:x,padding:"2x",boxShadow:"lg",backgroundColor:f?(0,Q.lA)(n,8):n,onClick:t=>{t.stopPropagation(),u(),l(!0)},animation:a?$.mT:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:[(0,g.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,c.KC)(o)+" !important"},children:["\xa0",m,"\xa0"]}),f?(0,g.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,g.jsx)(ct.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,g.jsx)(g.Fragment,{})]})})}function ut(t){var e;const[n]=(0,h.j1)("whatmoreSecondaryColor"),[i]=(0,h.j1)("whatmorePrimaryFont"),[o]=(0,h.j1)("whatmoreShopId"),[a,l]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),u=t.onClick,p=t.width,x=t.height;return(0,g.jsx)(s.xu,{width:p,height:x,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),u(),l(!0)},animation:a?$.mT:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",children:(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.xv,{lineHeight:"100%",fontSize:1.4*d,fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,c.KC)(o)+" !important"},children:["\xa0",(0,c.t)(o),"\xa0"]})})})})}function pt(t){var e;const[n]=(0,h.j1)("whatmorePrimaryFont"),[i]=(0,h.j1)("whatmoreShopId"),o=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),r=t.width,a=t.height;return(0,g.jsx)(s.xu,{width:r,height:a,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,g.jsxs)(s.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o,fontWeight:"semibold",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function xt(t){var e;const[n]=(0,h.j1)("whatmoreSecondaryColor"),[i]=(0,h.j1)("whatmorePrimaryFont"),[o]=(0,h.j1)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),a=t.onClick,l=t.cartCount,d=t.width,c=t.height,u=t.onCartIconClick;return(0,g.jsx)(s.xu,{width:d,height:c,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,g.jsx)(s.M5,{paddingX:"5px",onClick:()=>{u()},children:(0,g.jsx)(st.Z,{sx:{color:n,fontSize:1.6*r}})}),(0,g.jsx)(s.xv,{color:n,fontSize:1.3*r,fontWeight:"semibold",sx:{fontFamily:i+" !important"},children:l}),(0,g.jsx)(s.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),a()},children:(0,g.jsx)(dt.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var gt=function(t){var e,n,i,o;const[r]=(0,h.j1)("whatmoreShopId"),a=t.event,l=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,u=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function m(){p()}const f=null!==(i=t.width)&&void 0!==i?i:"100%",v=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,g.jsx)(V.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:v,width:f},children:(0,g.jsx)(pt,{event:a,product:l,baseFontSize:d,width:f,height:v})}):"init"==c?0==u?(0,g.jsx)(ut,{onClick:m,event:a,product:l,baseFontSize:d,width:f,height:v}):s?(0,g.jsx)(V.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:v,width:f},children:(0,g.jsx)(xt,{onClick:m,event:a,product:l,baseFontSize:d,cartCount:u,width:f,height:v,onCartIconClick:x})}):(0,g.jsx)(ut,{onClick:m,event:a,product:l,baseFontSize:d,width:f,height:v}):(0,g.jsx)(ht,{onClick:m,event:a,product:l,baseFontSize:d,width:f,height:v,title:"awaitingVariantSelection"==c?"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})},mt=n(6163),ft=n(6967),vt=n(3462),wt=n(4844);const jt=(0,h.MO)("isInDesignMode"),Ct=(0,h.MO)("isDemoBrand");async function St(t,e,n,i,o,r){return"shopify"==n?(0,wt.wW)(t,e,i):(jt||Ct||(async()=>{(0,ft.FF)(o,r)})(),(0,vt.jg)(t,e,i))}function yt(t,e){return"shopify"==t?(0,wt.JL)(e):(0,vt.TE)(e)}var bt=function(t,e,n){const[i]=(0,h.j1)("whatmoreShopId"),[o]=(0,h.j1)("isInDesignMode"),[a]=(0,h.j1)("isDemoBrand"),[l,s]=(0,r.useState)(null),u=(0,r.useRef)(null),{closeClickComponent:x}=(0,r.useContext)(pn),[g,m]=(0,r.useState)({state:"init",cart_count:t});function f(t,e){m({state:t,cart_count:null!==e&&void 0!==e?e:g.cart_count}),"init"!=t&&"errored"!=t?(0,h.bU)("whatmoreAllowAutoSlide",!1):(0,h.bU)("whatmoreAllowAutoSlide",!0)}function v(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function w(t){const r=function(t){const e=u.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!r)return void f("init",g.cart_count);f("atcApiCallInProgress",null);St(r,1,(0,c.Ip)(i),i,n,e).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,n){o||a||(async()=>{(0,d.JX)(t,e,n)})()}(n,e,1),f("init",g.cart_count+1),(0,h.bU)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[g,l,function(){f("productVariantDetailsApiCallInProgress",null),(0,p.pO)(e,(0,c.Ip)(i),i).then((t=>{u.current=t.variants;const e=function(t){var e=[],n=[],i=[];return t.variants.forEach((o=>{var r,a,l;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(a=o.available)||void 0===a||a,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(l=o.available)||void 0===l||l,type:t.options[2].name})})),e=e.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),n=n.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),i=i.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),[e,n,i]}(t);s(e),!function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(e)?f("awaitingVariantSelection",null):!function(){if(u.current&&u.current.length>=1)return u.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):w([v(e[0]),v(e[1]),v(e[2])])})).catch((t=>{f("errored",null)}))},w,function(t){var e,n;const i=u.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==i.length?null:{price:(null!==(e=i[0].price)&&void 0!==e?e:0)/100,compare_price:(null!==(n=i[0].compare_at_price)&&void 0!==n?n:0)/100}},function(){"do_nothing"!==(0,c.v9)(i)&&("go_to_cart_page"!==(0,c.v9)(i)?"open_cart_slider"!==(0,c.v9)(i)||null!==x&&x():yt((0,c.Ip)(i),i))}]};var kt=function(t){var e,n,i,o;t.product,t.event;const a=t.productVariantOptions,l=null!==(e=t.width)&&void 0!==e?e:"100%",d=null!==(n=t.height)&&void 0!==n?n:"fit-content",p=null!==(i=t.baseFontSize)&&void 0!==i?i:10,x=t.onOptionSelected,m=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",[v]=(0,h.j1)("isInDesignMode"),[w]=(0,h.j1)("isDemoBrand"),[j]=(0,h.j1)("whatmoreSecondaryColor"),[C]=(0,h.j1)("whatmorePrimaryFont"),[S]=(0,h.j1)("whatmoreShopId"),[y,b,k,I]=(0,u.Z)();let F=[];for(let r=0;r<(null===t||void 0===t||null===(_=t.data)||void 0===_||null===(T=_.product)||void 0===T||null===(E=T.images)||void 0===E?void 0:E.length);r++){var _,T,E,O,P,L;(null===t||void 0===t||null===(O=t.data)||void 0===O||null===(P=O.product)||void 0===P||null===(L=P.images[r].variant_ids)||void 0===L?void 0:L.length)>0&&F.push(r)}function z(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[D,R]=(0,r.useState)([z(a[0]),z(a[1]),z(a[2])]);return(0,r.useEffect)((()=>{x(D)}),[D]),(0,g.jsx)(s.Kq,{direction:"column",width:l,height:d,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:a.map(((e,n)=>{if(0!=e.length)return(0,g.jsxs)(s.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,g.jsx)(s.M5,{width:"100%",children:(0,g.jsx)(s.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,g.jsxs)(s.xv,{as:"b",fontSize:1.2*p+"px",sx:{color:m+" !important",fontFamily:C+" !important"},align:"center",children:["\xa0",e[0].type,"\xa0"]}),(0,g.jsx)(s.Eq,{justify:"center",children:e.map(((i,o)=>{var r,a,l,d;return(0,g.jsx)(s.Uc,{children:(0,g.jsx)(s.xu,{borderRadius:"Colour"!==i.type&&"Color"!==i.type||F.length!==(null===e||void 0===e?void 0:e.length)?"2px":"50%",padding:"2px",onClick:t=>{t.stopPropagation(),i.available&&R([0==n?i.option:D[0],1==n?i.option:D[1],2==n?i.option:D[2]])},backgroundColor:i.option==D[n]?j:"white",_hover:{bg:i.option==D[n]?j:(0,Q.lA)(j,5)},cursor:"pointer",children:"Colour"!==i.type&&"Color"!==i.type||F.length!==(null===e||void 0===e?void 0:e.length)?(0,g.jsxs)(s.xv,{as:i.available?"samp":"s",fontSize:p+"px",sx:{color:(i.available?i.option==D[n]?"white":"black":"gray")+" !important",fontFamily:C+" !important"},align:"center",paddingX:(d=i.option,d.length>=3?"0px":.5*p+"px"),children:["\xa0",i.option,"\xa0"]}):(0,g.jsx)(f.Ee,{padding:"2px",borderRadius:(0,c.lm)(S),width:"58px",height:"58px",src:null===t||void 0===t||null===(r=t.data)||void 0===r||null===(a=r.product)||void 0===a||null===(l=a.images)||void 0===l?void 0:l[F[o]].src})})},i.option)}))},n)]},n)}))})},It=n(9219);var Ft=function(t){const[e]=(0,h.j1)("isInDesignMode"),[n]=(0,h.j1)("isDemoBrand"),[i]=(0,h.j1)("whatmoreSecondaryColor"),o=(0,h.MO)("whatmoreSecondaryColorShade900"),[a]=(0,h.j1)("whatmorePrimaryFont"),[l]=(0,h.j1)("whatmoreShopId"),[x,m,v,w]=(0,u.Z)(),[j,C]=(0,r.useState)(!1),[S,y]=(0,r.useState)(t.product),{whatmoreUITheme:b}=(0,r.useContext)(it.I),{whatmoreWidgetSourceDetails:k}=(0,r.useContext)(it.I),[I,F,_,T,E,O]=bt(0,S,t.event),[P,L]=(0,r.useState)(null),[z,D]=(0,r.useState)(parseFloat(S.price)),[R,K]=(0,r.useState)(parseFloat(S.compare_price)),[M,W]=(0,r.useState)(S.currency),[q,A]=(0,r.useState)(),Z=t.event,H=t.productClickHandler;(0,r.useEffect)((()=>{(0,c.N8)(l)&&(0,It.Rb)(S,(0,c.Ip)(l),l).then((t=>{y(t),D(parseFloat(t.price)),K(parseFloat(t.compare_price)),W(t.currency)}));(async()=>{const t=await(0,p.gK)(S,(0,c.Ip)(l),l);A(t)})()}),[]);var N=.68*w,B=.55*N,U=.4*N,Y=N*(.55-.4),X=N+"px",G=U+"px",J=Y+"px",ot=.12*U;const dt=(0,c.IT)(l);return(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:tt,marginBottom:(0,c.pq)(l),width:X,height:"fit-content",boxShadow:"round"==b?"dark-lg":null,onClick:()=>{!function(t,i){e||n||(async()=>{(0,d.wz)(t,i)})(),H(i),C(!0)}(Z,S)},backgroundColor:(0,Q.lA)("#ffffff",(0,c.U5)(l)),animation:j?$.mT:null,borderRadius:"round"==b?"xl":null,overflow:"hidden",onAnimationEnd:()=>{C(!1)},spacing:0,sx:{borderWidth:(0,c.al)(l),borderColor:(0,c.qP)(l)},children:[(0,g.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,g.jsx)(s.xu,{height:G,width:G,bgColor:o,children:(0,g.jsx)(f.Ee,{width:G,height:G,src:S.thumbnail_image,sx:{objectFit:(0,c.yO)(l)+" !important"}})}),(0,g.jsxs)(s.xu,{height:G,width:N-U+"px",children:[(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(l)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,g.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:2,fontSize:1.1*ot+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:a+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:(0,at.s)(null==S.title?"":S.title.toString())}),(0,c.is)(l)?(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==b?"lg":null,backgroundColor:"white",paddingX:"4px",paddingY:"6px",children:[(0,g.jsxs)(s.xv,{noOfLines:1,fontSize:ot*(0,c.Rq)(l)+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:["\xa0"," "+(0,It.jx)(z,"",l,M)," \xa0"]}),(0,g.jsx)(s.M5,{children:(0,lt.B)(z,R)?(0,g.jsxs)(s.xv,{noOfLines:1,fontSize:.9*ot*(0,c.Rq)(l)+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:"gray !important",padding:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,It.jx)(R,"",l,M)]}):(0,g.jsx)(g.Fragment,{})})]}):(0,g.jsx)(g.Fragment,{})]}),(0,c.Fr)(l)?(0,g.jsx)(s.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,g.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:o,sx:{borderRadius:"round"==b?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,g.jsx)(rt.Z,{sx:{color:i,fontSize:1.3*ot+"px"}})}),(0,g.jsx)(s.xu,{width:"2px"})]})}):(0,g.jsx)(g.Fragment,{})]})]}),(0,g.jsx)(V.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==I.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==I.state&&null!=F?(0,g.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*B+"px",marginBottom:.1*B+"px",overflowY:"auto",overflowX:"hidden",maxHeight:B*dt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,g.jsx)(kt,{width:X,height:"fit-conten",event:Z,product:S,data:q,productVariantOptions:F,baseFontSize:1.2*ot,onOptionSelected:t=>{!function(t){L(t);const e=E(t);e&&(D(e.price),K(e.compare_price))}(t)}})}):(0,g.jsx)(g.Fragment,{})}),(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:J,justifyContent:"center",alignItems:"center",children:(0,g.jsx)(gt,{baseFontSize:.3*Y,event:Z,product:S,cartState:I.state,cartCount:I.cart_count,onClickAtc:t=>{"init"==I.state?(_(),(0,et.GF)({userInteractionType:nt.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:k,event:Z,productList:[S],ctaList:Z.cta})):"awaitingVariantSelection"==I.state&&T(P)},onCartIconClick:()=>{O()}})})]})},_t=n(3867);var Tt=function(t){var e,n,i;const[o]=(0,h.j1)("isInDesignMode"),[r]=(0,h.j1)("isDemoBrand"),[a]=(0,h.j1)("whatmoreSecondaryColor"),[l]=(0,h.j1)("whatmorePrimaryFont"),c=t.event,u=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=null!==(n=t.width)&&void 0!==n?n:"fit-content",m=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,g.jsx)(s.rU,{href:u.product_link,color:a,onClick:()=>{!function(t,e){o||r||(async()=>{(0,d.$L)(t,e)})()}(c,u)},children:(0,g.jsx)(s.xu,{width:x,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:l+" !important",color:a+" !important"},children:" VIEW MORE "})}),(0,g.jsx)(s.M5,{children:(0,g.jsx)(rt.Z,{sx:{color:a,fontSize:1.4*p}})})]})})})},Et=n(7605);function Ot(t){var e;const[n]=(0,h.j1)("whatmoreSecondaryColor"),[i]=(0,h.j1)("whatmorePrimaryFont"),[o]=(0,h.j1)("whatmoreShopId"),[a,l]=(0,r.useState)(!1),d=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),u=t.onClick,p=t.width,x=t.height,m=t.title;return(0,g.jsx)(s.xu,{width:p,height:x,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),u(),l(!0)},animation:a?$.mT:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",children:(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,g.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*d+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,c.KC)(o)+" !important"},children:["\xa0",m,"\xa0"]})})})}var Pt=function(t){var e,n,i;const[o]=(0,h.j1)("whatmoreShopId"),r=t.event,a=t.product,l=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,g.jsx)(Ot,{onClick:function(){d()},event:r,product:a,baseFontSize:l,width:s,height:c,title:"SHOP NOW"})};var Lt=function(t){var e;const[n]=(0,h.j1)("isInDesignMode"),[i]=(0,h.j1)("isDemoBrand"),[o]=(0,h.j1)("whatmoreSecondaryColor"),[a]=(0,h.j1)("whatmorePrimaryFont"),[l]=(0,h.j1)("whatmoreShopId"),[p,x,m,v]=(0,u.Z)(),[w,j]=(0,r.useState)(!1),[C,S]=(0,r.useState)(t.product),{whatmoreWidgetSourceDetails:y}=(0,r.useContext)(it.I),[b,k,I,F,_,T]=bt(0,C,t.event),[E,O]=(0,r.useState)(null),[P,L]=(0,r.useState)(parseFloat(C.price)),[z,D]=(0,r.useState)(parseFloat(C.compare_price)),[R,K]=(0,r.useState)(C.currency),M=t.event,W=t.productClickHandler,q=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1;(0,r.useEffect)((()=>{(0,c.N8)(l)&&(0,It.Rb)(C,brandDomainContext(l),l).then((t=>{S(t),L(parseFloat(t.price)),D(parseFloat(t.compare_price)),K(t.currency)}))}),[]);var A=v*q,Z=.3*A,H=A+"px",N=.7*Z,B=.9*N,U=.12*Z;const Y=(0,c.IT)(l);function X(t,e){n||i||(async()=>{(0,d.wz)(t,e)})(),W(e),j(!0)}return(0,g.jsx)(s.Kq,{direction:"row",width:H,height:"fit-content",justifyContent:"center",children:(0,g.jsx)(s.xu,{marginTop:tt,marginBottom:(0,c.pq)(l),width:H,onClick:t=>{},animation:w?$.mT:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,g.jsxs)(s.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{X(M,C)},children:[(0,g.jsx)(s.xu,{height:N+"px",width:N+"px",children:(0,g.jsx)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,g.jsx)(s.xu,{height:B+"px",width:B+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,g.jsx)(f.Ee,{width:B+"px",height:B+"px",src:C.thumbnail_image,objectFit:"cover"})})})}),(0,g.jsx)(s.xu,{height:N+"px",width:A-N+"px",children:(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,g.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*U+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:a+" !important",color:"white !important"},children:(0,at.s)(C.title.toString())}),(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,c.is)(l)?(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",aligntItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[(0,g.jsxs)(s.xv,{noOfLines:1,fontSize:1*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:"white !important"},children:["\xa0"," ",(0,It.jx)(parseFloat(P),"",l,R)," \xa0"]}),(0,g.jsx)(s.M5,{children:(0,lt.B)(C.price,C.compare_price)?(0,g.jsxs)(s.xv,{noOfLines:1,fontSize:.8*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,It.jx)(parseFloat(z),"",l,R)]}):(0,g.jsx)(g.Fragment,{})})]}):(0,g.jsx)(g.Fragment,{}),(0,g.jsx)(s.M5,{children:(0,g.jsx)(_t.Z,{storeId:l,productId:C.client_product_id,productLink:C.product_link,fontSize:1*U,fontColor:"white"})})]})]})})]}),(0,g.jsx)(V.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==b.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==b.state&&null!=k?(0,g.jsx)(s.xu,{width:"100%",height:"fit-content",marginTop:.1*Z+"px",marginBottom:.1*Z+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Z*Y+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,g.jsx)(kt,{width:H,height:"fit-content",event:M,product:C,productVariantOptions:k,baseFontSize:1*U,onOptionSelected:t=>{!function(t){O(t);const e=_(t);e&&(L(e.price),D(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,g.jsx)(g.Fragment,{})}),(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,g.jsx)(s.xu,{width:"100%",height:"100%",children:(0,g.jsx)(Tt,{baseFontSize:.8*U,event:M,product:C,width:"100%",height:"100%"})}),(0,g.jsx)(s.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,c.Ib)(l)?(0,g.jsx)(Pt,{baseFontSize:.8*U,event:M,product:C,borderRadius:"md",onShopNowClick:t=>{X(M,C)}}):(0,g.jsx)(g.Fragment,{children:"form"===(0,c._5)(l)?(0,g.jsx)(mt.default,{baseFontSize:.8*U,event:M,product:C,width:"100%",height:"100%",showAddedToCart:!0}):(0,g.jsx)(gt,{baseFontSize:.8*U,event:M,product:C,cartState:b.state,cartCount:b.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==b.state?(I(),(0,et.GF)({userInteractionType:nt.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:y,event:M,productList:[C],ctaList:M.cta})):"awaitingVariantSelection"==b.state&&F(E)},onCartIconClick:()=>{T()}})})})]})]})})})};var zt=function(t){const[e]=(0,h.j1)("isInDesignMode"),[n]=(0,h.j1)("isDemoBrand"),[i]=(0,h.j1)("whatmoreSecondaryColor"),o=(0,h.MO)("whatmoreSecondaryColorShade900"),[a]=(0,h.j1)("whatmorePrimaryFont"),[l]=(0,h.j1)("whatmoreShopId"),[p,x,m,v]=(0,u.Z)(),[w,j]=(0,r.useState)(!1),[C,S]=(0,r.useState)(t.product),{whatmoreUITheme:y}=(0,r.useContext)(it.I),[b,k]=(0,r.useState)(parseFloat(C.price)),[I,F]=(0,r.useState)(parseFloat(C.compare_price)),[_,T]=(0,r.useState)(C.currency),E=t.event;t.productClickHandler,(0,r.useEffect)((()=>{(0,c.N8)(l)&&(0,It.Rb)(C,(0,c.Ip)(l),l).then((t=>{S(t),k(parseFloat(t.price)),F(parseFloat(t.compare_price)),T(t.currency)}))}),[]);var O=.68*v,P=.4*O,L=O+"px",z=P+"px",D=O*(.55-.4)+"px",R=.12*P;(0,c.IT)(l);const{whatmoreWidgetSourceDetails:K}=(0,r.useContext)(it.I);function M(t){return(0,c.lj)(l)?t.product_link+"?"+(0,c.aw)(l)+"&"+(0,c.n9)(l)+"&"+(0,c.v)(l):t.product_link}function W(t,i){e||n||(async()=>{(0,d.wz)(t,i),(0,et.GF)({userInteractionType:nt.K.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:K,event:t,productList:[i],ctaList:t.cta})})(),j(!0)}return(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:tt,marginBottom:(0,c.pq)(l),width:L,height:"fit-content",boxShadow:"round"==y?"dark-lg":null,onClick:()=>{W(E,C),window.location.href=M(C)},backgroundColor:(0,Q.lA)("#ffffff",(0,c.U5)(l)),animation:w?$.mT:null,borderRadius:"round"==y?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,c.al)(l),borderColor:(0,c.qP)(l)},children:[(0,g.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,g.jsx)(s.xu,{height:z,width:z,bgColor:o,children:(0,g.jsx)(f.Ee,{width:z,height:z,src:C.thumbnail_image,sx:{objectFit:(0,c.yO)(l)+" !important"}})}),(0,g.jsxs)(s.xu,{height:z,width:O-P+"px",children:[(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:(0,c.Fr)(l)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,g.jsx)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},style:{overflow:"hidden",textOverflow:"ellipsis"},sx:{fontFamily:a+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*R+"px !important",noOfLines:"2 !important"},children:(0,at.s)(null==C.title?"":C.title.toString())}),(0,c.is)(l)?(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==y?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,g.jsxs)(s.xv,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:1*R+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:"black !important"},children:["\xa0"," "+(0,It.jx)(b,"",l,_)," \xa0"]}),(0,g.jsx)(s.M5,{children:(0,lt.B)(b,I)?(0,g.jsxs)(s.xv,{as:"s",style:{minHeight:0},noOfLines:1,fontSize:.9*R+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:"gray !important"},children:[" ",(0,It.jx)(I,"",l,_)]}):(0,g.jsx)(g.Fragment,{})})]}):(0,g.jsx)(g.Fragment,{})]}),(0,c.Fr)(l)?(0,g.jsx)(s.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,g.jsx)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:o,sx:{borderRadius:"round"==y?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,g.jsx)(rt.Z,{sx:{color:i,fontSize:1.3*R+"px"}})}),(0,g.jsx)(s.xu,{width:"2px"})]})}):(0,g.jsx)(g.Fragment,{})]})]}),(0,c.pp)(l)&&(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:D,justifyContent:"center",alignItems:"center",children:(0,g.jsx)(Pt,{baseFontSize:.8*R,event:E,product:C,borderRadius:"md",onShopNowClick:t=>{W(E,C),window.location.href=M(C)}})})]})};var Dt=function(t){const[e]=(0,h.j1)("whatmoreShopId"),n=(0,c.ey)(e),i=t.event,o=t.product;return"broad-tile"==n?(0,g.jsx)(Ft,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,g.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,g.jsx)(ot,{product:t.product,event:t.event}):"narrow-tile"==n?(0,g.jsx)(Lt,{event:i,product:o,productClickHandler:t.productClickHandler,tileWidthFactor:i.products.length>1?.68:void 0}):(0,g.jsx)(Ft,{product:t.product,event:t.event,productClickHandler:t.productClickHandler})},Rt=n(6119),Kt=n(3388),Mt=n(7643);var Wt=function(t){const[e,n,i,o]=(0,u.Z)(),[r]=(0,h.j1)("whatmoreShopId"),d=(0,h.MO)("isInDesignMode"),p=(0,h.MO)("isDemoBrand"),x=t.event,m=t.productClickHandler,f=(0,c.ey)(r);if(!(0,Kt.kT)(x))return(0,g.jsx)(g.Fragment,{});if(1==x.products.length&&(void 0==x.cta||0==x.cta.length)){const t=x.products[0];return(0,c.rn)(r)?(0,g.jsx)(s.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,g.jsx)(Mt.u,{userInteractionType:nt.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,g.jsx)(s.M5,{children:(0,g.jsx)(Lt,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})}):(0,g.jsx)(s.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==f?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,g.jsx)(s.M5,{children:(0,g.jsx)(Mt.u,{userInteractionType:nt.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,g.jsx)(Dt,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})})}return(0,g.jsx)(s.M5,{children:(0,g.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,g.jsx)(s.xu,{width:o+"px",backgroundImage:"narrow-tile"==f?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,g.jsxs)(a.tq,{slidesPerView:1==x.products.length?1:1.4,initialSlide:x.products.length<=2?0:1,centeredSlides:!0,modules:[l.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[x.products.map((t=>(0,g.jsx)(a.o5,{children:(0,g.jsx)(Mt.u,{userInteractionType:nt.K.PRODUCT_CTA_VIEW,event:x,productList:[t],triggerFlag:!d&&!p,children:(0,g.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,g.jsx)(Dt,{event:x,product:t,productClickHandler:m},x.event_id+t.product_id)})})},x.event_id+t.product_id))),(0,c.pp)(r)&&void 0!=x.cta&&x.cta.map((t=>(0,g.jsx)(a.o5,{children:(0,g.jsx)(s.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,g.jsx)(Rt.Z,{event:x,cta:t},x.event_id+t.cta_id)})},x.event_id+t.cta_id)))]})})})})};var qt=function(t){const[e,n]=(0,h.j1)("isProductSwiperCatalogOpen"),i=t.event,o=t.productClickHandler;return(0,r.useContext)(pn).isIOS&&e?(0,g.jsx)(Wt,{event:i,productClickHandler:o},i.event_id):(0,g.jsx)(V.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,g.jsx)(Wt,{event:i,productClickHandler:o},i.event_id)})};function At(t){const e=t.event,[n,i,o,r]=(0,u.Z)(),[a]=(0,h.j1)("whatmorePrimaryFont");return(0,g.jsx)(s.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,g.jsx)(f.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,g.jsx)(s.xu,{width:"fit-content",height:"fit-content",children:(0,g.jsxs)(s.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,g.jsx)(s.xv,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:a+" !important"},children:e.presenter_name.substring(0,15)}),(0,g.jsx)(A.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var Zt,Ht=function(t){const[e]=(0,h.j1)("isInDesignMode"),[n]=(0,h.j1)("isDemoBrand"),[i,o]=(0,h.j1)("isProductSwiperCatalogOpen"),[a,l]=(0,j.Z)(),[d,u]=(0,h.j1)("isFirstIndicatorRenderDone"),p=(0,r.useContext)(pn),[x]=(0,h.j1)("whatmoreShopId"),m=t.event,f=t.isLast,v=t.onCloseCallback,w=t.focusRef,C=t.productClickHandler;return(0,g.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,g.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,g.jsx)(s.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,g.jsx)(At,{event:m}),(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,g.jsx)(k,{focusRef:w}),(0,g.jsx)(B,{event:m,onCloseCallback:v})]})]})}),(0,g.jsx)(s.xu,{width:"100%",height:"100%",onClick:()=>{l(!a)}}),(0,g.jsxs)(s.xu,{width:"full",height:"fit-content",children:[p.totalEvents>1&&!d&&p.showSwipeIndicator?(0,g.jsx)(s.xu,{width:"full",margin:"2px",children:(0,g.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,g.jsx)(G,{swipeUp:!f})})}):null,void 0!=m.products&&m.products.length>0?(0,g.jsxs)(s.xu,{width:"full",children:[(0,c.Jm)(x)?(0,g.jsx)(s.xu,{w:"100%",children:(0,g.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,g.jsx)(q,{event:m,onToggle:t=>{o("minimize-button"!==t)}})})}):(0,g.jsx)(g.Fragment,{}),(0,g.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,g.jsx)(qt,{event:m,productClickHandler:C})})]}):(0,g.jsx)("div",{})]})]})})};function Nt(t){var e;const[n]=(0,h.j1)("whatmorePrimaryFont"),i=t.setOpenShopNow,o=t.FONT_SIZE,r=t.setLockSwiper,a=null!==(e=t.headerText)&&void 0!==e?e:"Shop Now";return(0,g.jsxs)(s.kC,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",children:[(0,g.jsx)(s.kC,{width:"10%",display:"flex !important"}),(0,g.jsx)(s.kC,{width:"90%",justifyContent:"center",children:(0,g.jsx)(s.xv,{align:"center",fontSize:1.25*o,fontWeight:"semibold",sx:{color:"black !important",fontFamily:n+" !important"},as:"b",children:a})}),(0,g.jsx)(s.kC,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),r(!1)},cursor:"pointer",children:(0,g.jsx)(Z.Z,{sx:{boxShadow:3,color:"black !important",fontSize:1.2*o,filter:"drop-shadow(0 0 5px black);"}})})]})}function Bt(t){const[e,n,i,o]=(0,u.Z)(),[a]=(0,h.j1)("whatmorePrimaryFont"),[l]=(0,h.j1)("whatmoreShopId"),[d,p]=(0,r.useState)(""),x=t.data,m=(t.event,t.product,t.setShowOptionsChart);var v=.4*o*.8*.13;(0,r.useEffect)((()=>{var t,e,n;let i="vanyaclothing.myshopify.com";"1972174947"===l&&(i="vanyaclothing.myshopify.com");const o="https://app.kiwisizing.com/api/getSizingChart?shop=".concat(i,"&product=").concat(null===x||void 0===x||null===(t=x.product)||void 0===t||null===(e=t.image)||void 0===e?void 0:e.product_id,"&title=").concat(null===x||void 0===x||null===(n=x.product)||void 0===n?void 0:n.title,"&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19");fetch(o).then((t=>{if(!t.ok)throw new Error("HTTP error! Status: ".concat(t.status));return t.json()})).then((t=>{p(t.sizings[0].layout.data[0].data.url)})).catch((t=>{console.error("Error fetching data:",t)}))}),[]);const w=(0,_.F4)(Zt||(Zt=(0,I.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),j="".concat(w," 0.5s");return(0,g.jsx)(s.Kq,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:j,justifyContent:"center",alignItems:"center",children:(0,g.jsxs)(s.xu,{width:"100%",height:"100%",children:[(0,g.jsx)(f.Ee,{width:"100%",height:"auto",src:(0,c.Zb)(l)?d:(0,c.KM)(l),objectFit:"contain",borderTopRadius:"xl"}),(0,g.jsx)(s.Kq,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,g.jsx)(Z.Z,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*v,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Vt=n(9748),Ut=n(5630),Yt=(n(51),n(6665));function Xt(t){var e;const[n,i]=(0,r.useState)(null),o=t.product;return(0,r.useEffect)((()=>{(0,wt.bN)(o).then((t=>{i(t.variants)}))}),[]),null==n?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",overflow:"hidden",height:1.5*t.height,backgroundColor:"white"},children:(0,g.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,g.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,g.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,g.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,g.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,g.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,g.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(n).toString()})]})})}function Gt(t){const e=(0,h.MO)("whatmoreShopId"),n=t.product;return"63748341981"==e||"55845847231"==e||"47837511839"==e?(0,g.jsx)(Xt,{product:n,variantId:t.variantId,height:t.height,width:t.width}):(0,g.jsx)(g.Fragment,{})}function Jt(t){const[e]=(0,h.j1)("isInDesignMode"),[n]=(0,h.j1)("isDemoBrand"),[i]=(0,h.j1)("whatmoreShopId"),[o]=(0,h.j1)("whatmorePrimaryFont"),[a]=(0,h.j1)("whatmoreSecondaryColor"),{whatmoreUITheme:l}=(0,r.useContext)(it.I),{whatmoreWidgetSourceDetails:u}=(0,r.useContext)(it.I),[p,x]=(0,r.useState)(!1),{closeClickComponent:m}=(0,r.useContext)(pn),[f,v]=(0,r.useState)(!1),w=t.FONT_SIZE,j=t.data,C=t.event,S=t.selectedVariantId,y=t.product,b=t.itemQuantity,k=t.PRODUCT_TILE_WIDTH,I=t.cartItemCount,F=t.addToCartFlag,_=t.setAddToCartFlag,T=t.soldOutFlag,E=t.setSoldOutFlag;const O=t=>{!function(t,i){e||n||(async()=>{(0,d.$L)(t,i)})()}(C,y),"buy-now"==t&&(!function(t,e,n,i){"shopify"==n?(0,wt.bj)(t,e,i):(0,vt.rY)(t,e,i)}(void 0!==S?S:j.product.variants[0].id,b,(0,c.Ip)(i),i),(0,et.GF)({userInteractionType:nt.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:u,event:C,productList:[y],ctaList:C.cta})),"view-more"==t&&(window.location.href=y.product_link+"?"+(0,c.aw)(i)+"&"+(0,c.n9)(i)+"&"+(0,c.v)(i)+((0,c.C0)(i)?"&currency="+y.currency:""))};return(0,g.jsxs)(s.Kq,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",position:t.position,bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*w,children:[" ",T?(0,g.jsx)(Vt.zx,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*w,disabled:!0,sx:{borderRadius:"round"==l?"5px":"0px",borderWidth:(0,c.al)(i),borderColor:(0,c.qP)(i)},children:(0,g.jsx)(s.xv,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:o+" !important"},children:"Sold Out"})}):(0,g.jsxs)(s.Kq,{direction:"vertical"==(0,c.rc)(i)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*w,justifyContent:"center",children:[(0,c.$b)(i)?(0,g.jsx)(Vt.zx,{width:"90%",height:2.5*w,onClick:async t=>{if(t.stopPropagation(),x(!0),function(t,i,o){e||n||(async()=>{(0,d.JX)(t,i,o)})()}(C,y,b),(0,et.GF)({userInteractionType:nt.K.SHOPNOW_ATC_CLICKED,widgetSourceDetails:u,event:C,productList:[y],ctaList:C.cta}),void 0===S)return void console.log("ERROR ! Select the option.");const o=void 0!==S?S:j.product.variants[0].id,r=j.product.variants.filter((t=>t.id==o))[0].price;St(o,b,(0,c.Ip)(i),i,C,y).then((t=>{if(!t.ok)throw new Error(t.status);return x(!1),_(!0),t.json()})).then((t=>((0,h.bU)("whatmoreAddedToCart",!0),(0,c.k)(i)&&(e||(async()=>{const t=await(0,wt.Mj)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}));(0,Et.a)(i,window.location.hostname,"",C.event_id,y.product_id,o,r,b,"add-to-cart",t.token)})()),t))).catch((t=>{x(!1),E(!0),console.error("Error:",t)}))},sx:{paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:"#343434"===(0,c.Fd)(i)?a+" !important":(0,c.Fd)(i)+" !important",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,c.p5)(i),borderColor:"#343434"===(0,c.yx)(i)?a:(0,c.yx)(i),_hover:{backgroundColor:"transparent !important",borderWidth:(0,c.p5)(i),borderColor:"#343434"===(0,c.yx)(i)?a:(0,c.yx)(i)}},children:p?(0,g.jsx)(Ut.$,{display:"flex !important",color:"white"}):(0,g.jsx)(s.xv,{fontWeight:"extrabold",sx:{color:(0,c.eS)(i)+" !important",fontFamily:o+" !important"},fontSize:w,children:(0,c.t)(i)})}):(0,g.jsx)(g.Fragment,{}),(0,c.cD)(i)?(0,g.jsx)(g.Fragment,{children:(0,c.H$)(i)?(0,g.jsx)(Gt,{variantId:void 0!==S?S:j.product.variants[0].id,product:y,height:2.5*w,width:"90%",fontSize:w,fontFamily:o}):(0,g.jsx)(g.Fragment,{children:(0,c.St)(i)?(0,g.jsx)(Vt.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*w,onClick:()=>O("view-more"),sx:{backgroundColor:"white !important",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,c.al)(i),borderColor:(0,c.qP)(i)},children:(0,g.jsx)(s.xv,{fontWeight:"extrabold",sx:{color:a+"!important",fontFamily:o+" !important"},fontSize:w,children:(0,c.Z5)(i)})}):(0,g.jsx)(Vt.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*w,onClick:()=>O("buy-now"),sx:{backgroundColor:(0,c.II)(i)+" !important",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,c.p5)(i),borderColor:"#343434"===(0,c.yx)(i)?a:(0,c.yx)(i),_hover:{backgroundColor:"transparent !important"}},children:(0,g.jsx)(s.xv,{fontWeight:"extrabold",sx:{color:"#343434"===(0,c.iK)(i)?a+" !important":(0,c.iK)(i)+" !important",fontFamily:o+" !important"},fontSize:w,children:(0,c.Zu)(i)})})})}):(0,g.jsx)(g.Fragment,{})]}),(0,g.jsx)(g.Fragment,{children:(0,c.$b)(i)?(0,g.jsx)(g.Fragment,{children:f?(0,g.jsx)(s.kC,{width:"10%",spacing:"0",right:0,children:(0,g.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,g.jsx)(Yt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*w}})})}):(0,g.jsxs)(s.kC,{animation:F?P:"none",onAnimationEnd:()=>_(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,c.v9)(i)&&("go_to_cart_page"!==(0,c.v9)(i)?(v(!0),function(t){"open_cart_slider"!==(0,c.v9)(t)||null!==m&&m()}(i)):yt((0,c.Ip)(i),i))},cursor:"pointer",children:[(0,g.jsx)(st.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*w}}),I>0?(0,g.jsx)(s.Cd,{padding:"2px",bg:"white",size:1.1*w,top:.03*-k,verticalAlign:"top",position:"relative",left:.11*-k,zIndex:"1",children:(0,g.jsx)(s.xv,{sx:{color:"black !important",fontFamily:o+" !important"},fontWeight:"bold",fontSize:.7*w,children:I})}):(0,g.jsx)(g.Fragment,{})]})}):(0,g.jsx)(g.Fragment,{})})]})}function $t(t){const[e]=(0,h.j1)("whatmoreSecondaryColor"),[n]=(0,h.j1)("whatmorePrimaryFont"),i=t.FONT_SIZE,o=t.data;return(0,g.jsxs)(s.Kq,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,g.jsx)(s.Kq,{children:(0,g.jsx)(s.xv,{fontSize:i,fontWeight:"bold",justifyContent:"center",sx:{color:"black !important",fontFamily:n+" !important"},children:"Description"})}),(0,g.jsx)(s.Kq,{children:(0,g.jsx)(s.xu,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,g.jsx)(s.xv,{fontSize:.8*i,justifyContent:"normal",dangerouslySetInnerHTML:{__html:(r=o.product.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:n+" !important",lineHeight:"140% !important"}})})})]});var r}function Qt(t){var e;const[n,i]=(0,r.useState)(t.product),[o]=(0,h.j1)("whatmoreSecondaryColor"),[a]=(0,h.j1)("whatmorePrimaryFont"),[l]=(0,h.j1)("whatmoreShopId");(0,h.MO)("whatmoreSecondaryColorShade900");(0,r.useEffect)((()=>{(0,c.N8)(l)&&(0,It.Rb)(n,(0,c.Ip)(l),l).then((t=>{i(t)}))}),[]);const d=t.FONT_SIZE,u=t.data,p=t.itemPrice;const x=null===(e=t.data.product.variants.find((e=>e.id==t.selectedVariantId)))||void 0===e?void 0:e.compare_at_price,m=x&&0!=x&&x>p?Math.ceil((x-p)/x*100):NaN;return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(s.kC,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,g.jsx)(s.kC,{children:(0,g.jsx)(s.rU,{href:function(t){return(0,c.lj)(l)?t.product_link+"?"+(0,c.aw)(l)+"&"+(0,c.n9)(l)+"&"+(0,c.v)(l)+((0,c.C0)(l)?"&currency="+t.currency:""):t.product_link+((0,c.C0)(l)?"?currency="+t.currency:"")}(n),color:"white",children:(0,g.jsx)(s.xv,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:1.1*d,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:a+" !important"},as:"b",children:u.product.title})})}),(0,g.jsxs)(s.kC,{direction:"row",gap:"6px",paddingTop:"4px",children:[x&&x>p&&(0,g.jsx)(s.xv,{as:"s",padding:"2px",fontSize:1.2*d,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,It.jx)(parseFloat(x)," ",l,n.currency)}),(0,g.jsx)(s.xv,{as:"b",padding:"2px",fontSize:1.2*d,fontWeight:"semibold",sx:{color:"black !important",fontFamily:a+" !important"},children:(0,It.jx)(parseFloat(p)," ",l,n.currency)}),!isNaN(m)&&0!=m&&(0,g.jsx)(s.xu,{display:"flex",bg:(0,c.sT)(l)?(0,c.ZJ)(l):"white",alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,g.jsx)(s.xv,{fontSize:(0,c.sT)(l)?"14px":1.1*d,sx:{color:(0,c.ms)(l)+" !important",fontFamily:a+" !important"},children:(0,c.sT)(l)?"".concat(m,"% off"):"Save ".concat((0,It.jx)(parseFloat(x-p)," ",l,n.currency))})})]})]})})}function te(t){var e,n;const[i]=(0,h.j1)("whatmorePrimaryFont"),[o]=(0,h.j1)("whatmoreShopId"),{setShowOptionsChart:a}=(0,r.useContext)(ce),[l,d]=(0,r.useState)({}),u=(0,h.MO)("whatmoreSecondaryColorShade300"),p=((0,h.MO)("whatmoreSecondaryColorShade600"),(0,h.MO)("whatmoreSecondaryColorShade1200"),t.selectedColor),x=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,v=t.selectOptionThirdHandler,w=(t.PRODUCT_TILE_HEIGHT,t.PRODUCT_TILE_WIDTH,t.FONT_SIZE),j=t.data,C=(t.product,(t,e)=>{d((n=>({...n,[t]:e})))});(0,r.useEffect)((()=>{d((t=>{var e,n,i,o,r,a,l,d,s,c,h,u,p,x,g,m,f,v,w,C;return{...t,[null===j||void 0===j||null===(e=j.product)||void 0===e||null===(n=e.options)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.name]:null===(o=j.product.options)||void 0===o||null===(r=o[0])||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0],[null===j||void 0===j||null===(l=j.product)||void 0===l||null===(d=l.options)||void 0===d||null===(s=d[1])||void 0===s?void 0:s.name]:null===j||void 0===j||null===(c=j.product)||void 0===c||null===(h=c.options)||void 0===h||null===(u=h[1])||void 0===u||null===(p=u.values)||void 0===p?void 0:p[0],[null===j||void 0===j||null===(x=j.product)||void 0===x||null===(g=x.options)||void 0===g||null===(m=g[2])||void 0===m?void 0:m.name]:null===j||void 0===j||null===(f=j.product)||void 0===f||null===(v=f.options)||void 0===v||null===(w=v[2])||void 0===w||null===(C=w.values)||void 0===C?void 0:C[0]}}))}),[]);let S=[];for(let r=0;r<(null===j||void 0===j||null===(y=j.product)||void 0===y||null===(b=y.images)||void 0===b?void 0:b.length);r++){var y,b,k,I;(null===j||void 0===j||null===(k=j.product)||void 0===k||null===(I=k.images[r].variant_ids)||void 0===I?void 0:I.length)>0&&S.push(r)}return(0,g.jsx)(s.kC,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===j||void 0===j||null===(e=j.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.length)>0&&(0,g.jsx)(s.kC,{direction:"column",width:"100%",gap:"4px",children:j.product.options.map(((e,n)=>{var r,d;return(0,g.jsx)(g.Fragment,{children:(e.values.length>1||"Color"===e.name||"Colour"===e.name)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(s.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,g.jsx)(s.xv,{fontSize:1*w,sx:{color:"black !important",fontFamily:i+" !important",fontWeight:"bold"},children:e.name}),"Size"===e.name&&(0,c.eg)(o)?(0,g.jsx)(s.kC,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,g.jsx)(s.xv,{fontSize:.7*w,as:"u",sx:{color:"black !important",fontFamily:i+" !important"},onClick:()=>{null!==a&&a(!0)},children:(0,c.me)(o)})}):(0,g.jsx)(g.Fragment,{})]}),(0,g.jsx)(s.Ug,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:e.values.map(((t,r)=>{var a,d;return"Color"!==e.name&&"Colour"!==e.name||S.length!==(null===e||void 0===e||null===(a=e.values)||void 0===a?void 0:a.length)?(0,g.jsx)(s.kC,{paddingBottom:"8px",paddingRight:"8px",children:(0,g.jsx)(Vt.zx,{size:"sm",px:"8px !important",bg:l[e.name]===t?(null!==(d=(0,c.CP)(o))&&void 0!==d?d:u)+" !important":(0,c.bC)(o)+" !important",width:"fit-content !important",onClick:()=>{C(e.name,t),0===n&&x(t),1===n&&m(t),2===n&&v(t)},children:(0,g.jsx)(s.xv,{fontSize:.9*w,sx:{fontFamily:i+" !important",fontWeight:"normal",color:l[e.name]===t?(0,c.cY)(o)+" !important":(0,c.Fb)(o)+" !important"},children:t})})},t):(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(s.kC,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,g.jsx)(s.xu,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,c.lm)(o),size:"sm",border:l[e.name]===t?"2px solid ".concat((0,c.u)(o)," !important"):"",width:"fit-content !important",onClick:()=>{C(e.name,t);const i=e.values.indexOf(t);p(i),0===n&&x(t),1===n&&m(t),2===n&&v(t)},children:(0,g.jsx)(f.Ee,{padding:"2px",borderRadius:(0,c.lm)(o),width:"58px",height:"58px",src:j.product.images[S[r]].src})})},t)})}))}),n===(null===j||void 0===j||null===(r=j.product)||void 0===r||null===(d=r.options)||void 0===d?void 0:d.length)-1&&(0,g.jsx)(s.M5,{paddingTop:"8px",width:"100%",children:(0,g.jsx)(s.iz,{color:t.dividerColor,size:"xs"})})]})})}))})})}var ee,ne=n(8782);function ie(t){var e,n;const[i,o,a,l]=(0,u.Z)();var d=.4*l*.8,p=d*(16/9)*.6*.8;const x=1.1*d,m=x*(16/9)*.8;var v=.13*d;const[w,j]=(0,r.useState)(!1),C=t.data,S=t.event,y=t.product,b=t.setOpenShopNow,k=t.setLockSwiper,[F]=(0,h.j1)("whatmoreEmbedAppUseVariant"),[T,E]=(0,r.useState)((()=>{if("true"===F)return ae(C,y.client_product_id)})),[O,P]=(0,r.useState)((()=>{if("true"===F)return le(C,y.client_product_id)})),[L,z]=(0,r.useState)((()=>{if("true"===F)return de(C,y.client_product_id)})),[D,R]=(0,r.useState)(),[K,M]=(0,r.useState)(1),[W,q]=(0,r.useState)(),[A,Z]=(0,r.useState)(0),[H,N]=(0,r.useState)(!1),[B,V]=(0,r.useState)(!1),[U,Y]=(0,r.useState)(y.thumbnail_image),X=(0,r.useContext)(it.I),G=(0,h.MO)("whatmoreShopId"),$=((0,h.MO)("whatmoreSecondaryColorShade300"),(0,h.MO)("whatmoreSecondaryColorShade600"),(0,h.MO)("whatmoreSecondaryColorShade1200"),(0,r.useCallback)((t=>{E(t)}),[])),Q=(0,r.useCallback)((t=>{P(t)}),[]),tt=(0,r.useCallback)((t=>{z(t)}),[]);(0,r.useEffect)((()=>{const t=oe(C,T,O,L);R(t),q(re(C,t)),M(1),V(!1);const e=se(C,t);null!==e&&Y(e)}),[T,O,L]),(0,r.useEffect)((()=>{const t=void 0===D?C.product.variants[0].price:re(C,D);q(t*K)}),[K]),(0,r.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),n=document.getElementById("whatmore-size-chart");n&&n.contains(t.target)||!e||e.contains(t.target)||(b(!1),k(!1))}function e(t){t.preventDefault(),t.stopPropagation(),n.scrollTop+=t.deltaY}document.addEventListener("click",t);const n=document.getElementById("whatmore-shopnow-view");return null===n||void 0===n||n.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),document.removeEventListener("wheel",e)}}),[]),(0,r.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,wt.Bi)():(0,vt.OM)(e)}((0,c.Ip)(G),G);t.then((t=>t.json())).then((t=>{Z(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[H]);const[et,nt]=(0,r.useState)(0),ot=(0,_.F4)(ee||(ee=(0,I.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),rt="".concat(ot," 0.5s"),at=t.data.product.images;let lt=0,dt=at.length,st=0;for(let r=0,s=0;r<at.length;r++){var ct,ht;if((null===(ct=at[r])||void 0===ct||null===(ht=ct.variant_ids)||void 0===ht?void 0:ht.length)>0){if(s++,s===et+1){st=1,lt=r;continue}if(1==st){dt=r;break}}}return(0,g.jsxs)(s.kC,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===X||void 0===X?void 0:X.whatmoreUITheme)?"xl":null,animation:rt,children:[(0,g.jsx)(Nt,{setOpenShopNow:b,setLockSwiper:k,FONT_SIZE:v}),(0,g.jsx)(s.M5,{marginBottom:"10px",px:"20px",py:"5px",children:(0,g.jsx)(s.kC,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===X||void 0===X?void 0:X.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,c.al)(G),borderColor:(0,c.qP)(G)},children:(0,g.jsx)(s.kC,{width:"100%",children:(0,g.jsx)(ne.P,{renderElement:t=>(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(s.xu,{width:x+"px",height:m+"px",children:(0,g.jsx)(f.Ee,{width:x+"px",height:m+"px",borderRadius:"round"==(null===X||void 0===X?void 0:X.whatmoreUITheme)?"lg":null,src:t.eventData.src,alt:y.handle,sx:{objectFit:(0,c.yO)(G)+" !important"},fallback:(0,g.jsx)(J.Z,{width:x+"px",height:m+"px",borderRadius:"round"==(null===X||void 0===X?void 0:X.whatmoreUITheme)?"10px":"0px"})})})}),dataList:null===C||void 0===C||null===(e=C.product)||void 0===e?void 0:e.images.slice(lt,dt),spacing:10,defaultHeight:x+"px",defaultWidth:m+"px",retainAlreadyRenderedElements:!0,isScroll:!0})})})}),(0,g.jsx)(Qt,{data:C,product:y,PRODUCT_TILE_HEIGHT:p,PRODUCT_TILE_WIDTH:d,FONT_SIZE:v,getVariantPrice:re,selectedVariantId:D,itemPrice:W,itemQuantity:K,setItemQuantity:M,thumbnailImage:U}),C.product.variants.length>0&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(s.M5,{paddingTop:"4px",width:"100%",children:(0,g.jsx)(s.iz,{color:(0,c.W8)(G),size:"xs",width:"90%"})}),(0,g.jsx)(te,{data:C,dividerColor:(0,c.W8)(G),selectedColor:t=>{nt(t)},product:y,PRODUCT_TILE_HEIGHT:p,PRODUCT_TILE_WIDTH:d,FONT_SIZE:v,selectOptionFirstHandler:$,selectOptionSecondHandler:Q,selectOptionThirdHandler:tt,getVariantPrice:re,selectedOptionFirst:T,selectedOptionSecond:O,selectedOptionThird:L,selectedVariantId:D})]}),c.$2&&(null===C||void 0===C||null===(n=C.product)||void 0===n?void 0:n.body_html)&&(0,g.jsx)($t,{PRODUCT_TILE_HEIGHT:p,FONT_SIZE:v,data:C,handleToggle:()=>j(!w),show:w}),(0,g.jsx)(s.xu,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,g.jsx)(Jt,{position:"relative",data:C,FONT_SIZE:v,product:y})}),(0,g.jsx)(Jt,{position:"fixed",selectedVariantId:D,data:C,FONT_SIZE:v,PRODUCT_TILE_WIDTH:d,product:y,itemQuantity:K,cartItemCount:A,addToCartFlag:H,setAddToCartFlag:N,soldOutFlag:B,setSoldOutFlag:V,event:S})]})}const oe=(t,e,n,i)=>{if(void 0===e&&void 0===n&&void 0===i)return t.product.variants[0].id;if(void 0===i&&void 0===n)return t.product.variants.find((t=>t.option1===e)).id;if(void 0===i&&void 0===e)return t.product.variants.find((t=>t.option2===n)).id;if(void 0===n&&void 0===e)return t.product.variants.find((t=>t.option3===i)).id;if(void 0===n)return t.product.variants.find((t=>t.option1===e&&t.option3===i)).id;if(void 0===i)return t.product.variants.find((t=>t.option1===e&&t.option2===n)).id;if(void 0===e)return t.product.variants.find((t=>t.option2===n&&t.option3===i)).id;const o=t.product.variants.find((t=>t.option1===e&&t.option2===n&&t.option3===i));return void 0===o?t.product.variants[0].id:o.id},re=(t,e)=>t.product.variants.find((t=>t.id===e)).price,ae=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option1,le=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option2,de=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option3,se=(t,e)=>{const n=t.product.images.find((t=>t.variant_ids.find((t=>t===e))));return void 0===n?null:n.src},ce=(0,r.createContext)({setShowOptionsChart:null});var he=function(t){const e=t.event,n=t.data,i=t.currentProduct,o=t.setOpenShopNow,a=t.setLockSwiper,[l,d]=(t.isLast,t.onCloseCallback,t.focusRef,(0,r.useState)(!1));return(0,g.jsx)(ce.Provider,{value:{setShowOptionsChart:d},children:(0,g.jsxs)(s.xu,{width:"full",height:"full",borderRadius:"md",children:[(0,g.jsx)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,g.jsx)(s.xu,{width:"full",height:"fit-content",children:(0,g.jsx)(ie,{data:n,event:e,product:i,setOpenShopNow:o,setLockSwiper:a})})}),l?(0,g.jsx)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",id:"whatmore-size-chart",children:(0,g.jsx)(s.xu,{width:"full",height:"fit-content",children:(0,g.jsx)(Bt,{data:n,event:e,product:i,setShowOptionsChart:()=>{d(!1)}})})}):(0,g.jsx)(g.Fragment,{})]})})};var ue=function(t){var e,[n,i,o,a]=(0,u.Z)();const[l,d]=(0,r.useState)(!1),[x,f]=(0,r.useState)(),[v,w]=(0,r.useState)(),j=(0,h.MO)("whatmoreShopId"),C=t.event,S=t.onBack,y=r.useRef(),b=t.isPlaying,k=t.isLast,I=t.setLockSwiper,F=t.selectedVariantId,_=null===(e=t.showOverlay)||void 0===e||e,T="center";return(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.xu,{width:a,height:o,sx:{overflow:"hidden"},children:[(0,g.jsx)(s.Kq,{direction:"column",justifyContent:T,height:"full",width:"full",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"white",children:(0,g.jsx)(s.oM,{width:"full",ratio:a/o,children:(0,g.jsx)(m,{height:"100%",width:"100%",url:C.event_hls_url,isPlaying:b,event:C})})})}),_?(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,g.jsx)(Ht,{focusRef:y,event:t.event,isLast:k,onCloseCallback:S,productClickHandler:async t=>{const e=await(0,p.gK)(t,(0,c.Ip)(j),j);w(t),f(e),d(!0),I(!0)}})})}):(0,g.jsx)(g.Fragment,{}),!0===l?(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,g.jsx)(he,{focusRef:y,event:t.event,isLast:k,onCloseCallback:()=>S(),setLockSwiper:I,data:x,currentProduct:v,setOpenShopNow:d,selectedVariantId:F})})}):(0,g.jsx)("div",{})]})})};const pe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function xe(t){var e,n,[i,o,r,a]=(0,u.Z)();const[l]=(0,h.j1)("whatmoreSecondaryColor"),[d]=(0,h.j1)("whatmoreSecondaryColorShade900"),c=t.progress,p=null!==(e=t.totalSiblings)&&void 0!==e?e:1,x=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,g.jsx)(s.Kq,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(p).keys()].map((t=>(0,g.jsx)(s.Kq,{width:"100%",height:.004*r+"px",backgroundColor:t<x?l:d+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==x?(0,g.jsx)(s.xu,{height:"100%",width:c+"%",bgColor:l,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,g.jsx)(g.Fragment,{})},"event-progress-bar-slab-"+t)))})}var ge=n(868),me=n(442);n(1824);const fe=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t;var ve=function(t){var e,n,i,o=t.whatmoreShareTemplateId;const a=t.whatmoreShareStoryId,l=t.whatmoreShareEventId,p=t.event,x=null===(e=t.showShareText)||void 0===e||e,m=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,f=(0,h.MO)("whatmoreShopId"),v=(0,h.MO)("isInDesignMode"),w=(0,h.MO)("isDemoBrand"),j=(0,h.MO)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:C}=(0,r.useContext)(it.I),[S,y,b,k]=(0,u.Z)(),I=null!==(i=t.iconSize)&&void 0!==i?i:.1*k;function F(){const t=(0,h.MO)("whatmoreLandingLocationType");var e;!function(t){v||w||(async()=>{(0,d.x0)(t)})()}(p),(t.startsWith("product")||"embed"===t)&&(o="te"),e=(e="event_product_link"===(0,c.EE)(f)?p.products[0].product_link||"":window.location.pathname)+"?wtt="+o+"&wsid="+a+"&weid="+l,(0,c.lj)(f)&&(e=e+"&"+(0,c.aw)(f)+"&utm_campaign=video-share&utm_medium="+t);const n={title:(0,c.JN)(f),text:(0,c.QR)(f),url:e};navigator.share(n)}return(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.Cd,{cursor:"pointer",style:{marginBottom:m+"px"},children:(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,g.jsx)(me.Z,{sx:{boxShadow:3,rotate:"-30deg",color:"white",fontSize:I,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),F(),(0,et.GF)({userInteractionType:nt.K.VIDEO_SHARE_CTA_CLICKED,widgetSourceDetails:C,event:p,productList:p.products,ctaList:p.cta})}}),x&&(0,c.u8)(f)?(0,g.jsxs)(s.xv,{fontSize:.3*I+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:j+" !important",color:"white !important",paddingRight:"10%"},children:["\xa0",p.total_share>(0,c.LW)(f)?fe(p.total_share):"Share","\xa0"]}):(0,g.jsx)(g.Fragment,{})]})})})},we=n(6524),je=n(7933),Ce=n(2785);var Se=function(t){var e;const n=(0,h.MO)("whatmoreShopId"),i=(0,h.MO)("whatmorePrimaryFont"),o=(0,h.MO)("whatmoreLikedEvents"),a=((0,h.MO)("whatmoreSecondaryColor"),(0,h.MO)("isInDesignMode")),l=(0,h.MO)("isDemoBrand"),{whatmoreWidgetSourceDetails:p}=(0,r.useContext)(it.I),x=t.event,[m,f]=(0,r.useState)(null!==(e=o[x.event_id])&&void 0!==e&&e),[v,w,j,C]=(0,u.Z)(),S=.1*C;function y(t,e){a||l||(async()=>{(0,d.Z6)(t,e)})()}function b(){(0,h.bU)("whatmoreLikedEvents",{...o,[x.event_id]:!m}),m?(y(x,-1),(0,et.GF)({userInteractionType:nt.K.VIDEO_UNLIKED,widgetSourceDetails:p,event:x,productList:x.products,ctaList:x.cta})):(y(x,1),(0,et.GF)({userInteractionType:nt.K.VIDEO_LIKED,widgetSourceDetails:p,event:x,productList:x.products,ctaList:x.cta})),f(!m)}const k=x.total_like+(m?1:0);return(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.Cd,{cursor:"pointer",children:(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[m?(0,g.jsx)(Ce.Z,{sx:{boxShadow:3,color:(0,c.dm)(n),fontSize:S,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),b()}}):(0,g.jsx)(je.Z,{sx:{boxShadow:3,color:"white",fontSize:S,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),b()}}),(0,g.jsx)(g.Fragment,{children:(0,c.CE)(n)?(0,g.jsxs)(s.xv,{fontSize:.3*S+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:i+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",k>=(0,c.zK)(n)?fe(k):"Like","\xa0"]}):(0,g.jsx)(g.Fragment,{})})]})})})};const ye=t=>{let{iconSize:e}=t;return(0,g.jsx)("div",{style:{backgroundColor:"#25D366",borderRadius:"50%",padding:.3*e},children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"white",class:"bi bi-whatsapp",viewBox:"0 0 16 16",children:(0,g.jsx)("path",{d:"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"})})})};function be(t){var e;const n=t.event,[i,o,a,l]=(0,u.Z)(),[d]=(0,h.j1)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:p}=(0,r.useContext)(it.I),[x]=(0,h.j1)("whatmoreSecondaryColor"),[m]=(0,h.j1)("whatmoreShopId"),f=(0,c.f6)(m),v=null!==(e=(0,c.u2)(m))&&void 0!==e?e:[x,f,x,f,x];return(0,g.jsx)(g.Fragment,{children:p?(0,g.jsx)(s.xu,{width:"100%",height:"fit-content",padding:"5px",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.Cd,{overflow:"hidden",size:.14*l+"px",sx:{boxShadow:"0px 2px 1px 0px "+v[0]+"50, 0px -2px 1px 0px "+v[1]+"50, 2px 0px 1px 0px "+v[2]+"50, -2px 0px 1px 0px "+v[3]+"80, 2px -2px 1px 0px "+v[4]+"80, -2px 2px 1px 0px "+v[0]+"DA, 2px 2px 1px 0px "+v[1]+"DA, -2px -2px 1px 0px "+v[2]+"DA"},children:(0,g.jsx)("img",{src:(0,ge.V)(n.storyset_thumbnail_image),style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*l+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:d+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,g.jsx)(g.Fragment,{})})}var ke=function(t){const[e]=(0,h.j1)("isInDesignMode"),[n]=(0,h.j1)("isDemoBrand"),[i,o]=(0,h.j1)("isProductSwiperCatalogOpen"),[a,l]=(0,h.j1)("isFirstIndicatorRenderDone"),[p]=(0,h.j1)("whatmoreShopId"),x=(0,r.useContext)(pn),{whatmoreEventsBrowsingTemplate:m}=(0,r.useContext)(it.I),[f,v,w,j]=(0,u.Z)(),C=(0,h.MO)("whatmorePrimaryFont"),S=t.event,y=t.storySetId,b=t.isLast,I=t.onCloseCallback,F=t.focusRef,_=t.productClickHandler,T=t.videoPlayingData,E=t.totalSiblingEvents,O=t.indexAmongSiblings,P=t.leftOpenSpaceClickHandler,L=t.midOpenSpaceClickHandler,z=t.rightOpenSpaceClickHandler,{whatmoreWidgetSourceDetails:D}=(0,r.useContext)(it.I),R=.1*j;return(0,g.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",children:(0,g.jsxs)(s.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,g.jsxs)(s.Kq,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[x.showVideoPlayingData?(0,g.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,g.jsx)(xe,{progress:pe(T.current_time,T.video_duration),totalSiblings:E,indexAmongSiblings:O})}):(0,g.jsx)(g.Fragment,{}),(0,g.jsx)(s.xu,{width:"full",margin:"2px",marginTop:"5px",children:(0,g.jsxs)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,g.jsx)(be,{event:S}),(0,g.jsxs)(s.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,we.ZK)(m)?(0,g.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(m),whatmoreShareStoryId:y,whatmoreShareEventId:S.event_id,event:S,showShareText:!1,iconSize:.07*j,shareButtonBottomMargin:6}):(0,g.jsx)(g.Fragment,{}),(0,g.jsx)(k,{focusRef:F}),(0,g.jsx)(B,{event:S,onCloseCallback:I})]})]})})]}),(0,g.jsxs)(s.Kq,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,g.jsx)(s.xu,{width:"33%",height:"100%",onClick:()=>{P()},sx:{display:"block !important"}}),(0,g.jsx)(s.xu,{width:"34%",height:"100%",onClick:()=>{L()},sx:{display:"block !important"}}),(0,g.jsx)(s.xu,{width:"33%",height:"100%",onClick:()=>{z()},sx:{display:"block !important"}})]}),(0,g.jsxs)(s.xu,{width:"full",height:"fit-content",paddingX:"2%",children:[x.totalEvents>1&&!a&&x.showSwipeIndicator?(0,g.jsx)(s.xu,{width:"full",margin:"2px",children:(0,g.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,g.jsx)(G,{swipeUp:!b})})}):null,(0,c.sl)(p)&&!(0,we.ZK)(m)?(0,g.jsx)(s.xu,{ml:"auto",width:"fit-content",paddingY:"4%",children:(0,g.jsxs)(s.Kq,{gap:"4px",direction:"column",alignItems:"center",cursor:"pointer",onClick:function(){var t;e||n||(async()=>{(0,d.lY)(S,1)})(),(0,et.GF)({userInteractionType:nt.K.WHATSAPP_ICON_CLICKED,widgetSourceDetails:D,event:S,productList:null===S||void 0===S?void 0:S.products,ctaList:null===S||void 0===S?void 0:S.cta});const i=S.products.map((t=>"".concat(t.product_link," \n"))),o=(0,c.gt)(p),r="Hey, I am interested in ".concat(S.products.length>1?"these products":"this product"," I saw on ").concat(null===(t=S.products[0])||void 0===t?void 0:t.brand," store: \n").concat(i,". Could you please help me with some queries?");window.open(o+"&text=".concat(r,"&type=phone_number"),"_blank")},children:[(0,g.jsx)(ye,{iconSize:.7*R,style:{boxShadow:"8px 0px 8px rgba(0, 0, 0, 0.4)"}}),(0,g.jsx)(s.xv,{fontSize:R*(0,c.Xo)(p)+"px",fontWeight:"bold",align:"center",style:{marginTop:0},sx:{fontFamily:C+" !important",color:"white !important"},children:(0,c.Ui)(p)})]})}):(0,g.jsx)(g.Fragment,{}),(0,c.jY)(p)?(0,g.jsx)(s.xu,{width:"full",height:"fit-content",children:(0,g.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"1.4%",children:(0,g.jsx)(Se,{event:S})})}):(0,g.jsx)(g.Fragment,{}),(0,c.RO)(p)&&!(0,we.ZK)(m)?(0,g.jsx)(s.xu,{width:"full",height:"fit-content",children:(0,g.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"0.4%",children:(0,g.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(m),whatmoreShareStoryId:y,whatmoreShareEventId:S.event_id,event:S})})}):(0,g.jsx)(g.Fragment,{}),(0,Kt.kT)(S)?(0,g.jsxs)(s.xu,{width:"full",children:[(0,c.Jm)(p)?(0,g.jsx)(s.xu,{w:"100%",children:(0,g.jsx)(s.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,g.jsx)(q,{event:S,onToggle:t=>{o("minimize-button"!==t)}})})}):(0,g.jsx)(g.Fragment,{}),(0,g.jsx)(s.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,g.jsx)(qt,{event:S,productClickHandler:_})})]}):(0,g.jsx)(g.Fragment,{})]})]})})},Ie=n(2279),Fe=n.n(Ie),_e=n(342);var Te=function(t){var e,n,i,o,a,l,[d,m,f,v]=(0,u.Z)();const[w,j]=(0,r.useState)(!1),[C,S]=(0,r.useState)(),[y,b]=(0,r.useState)(),[k,I]=(0,r.useState)({current_time:0,video_duration:0,is_video_ended:!1}),F=(0,h.MO)("whatmoreShopId"),_=t.event,T=t.storyId,E=t.onBack,O=r.useRef(),P=t.isPlaying,L=t.isLast,z=t.setLockSwiper,D=t.onVideoEndedCallback,R=t.progressUpdateCallback,K=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,M=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,W=null===(i=t.showOverlay)||void 0===i||i,q=null!==(o=t.leftOpenSpaceClickHandler)&&void 0!==o?o:()=>{},A=null!==(a=t.midOpenSpaceClickHandler)&&void 0!==a?a:()=>{},Z=null!==(l=t.rightOpenSpaceClickHandler)&&void 0!==l?l:()=>{},{whatmoreWidgetSourceDetails:H}=(0,r.useContext)(it.I),N="center",B=Fe()((()=>{D()}),1e3,{leading:!0,trailing:!1});return(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.xu,{width:v,height:f,sx:{overflow:"hidden"},children:[(0,g.jsx)(s.Kq,{direction:"column",justifyContent:N,height:"full",width:"full",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"white",children:(0,g.jsx)(s.oM,{width:"full",ratio:v/f,children:(0,g.jsx)(x.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,_e.uv)(_)),isPlaying:P,timeUpdateCallback:function(t,e){const n=pe(t,e);R(n);const i=k.is_video_ended;n>=99&&P&&!i?(B(),I({current_time:t,video_duration:e,is_video_ended:!0})):I({current_time:t,video_duration:e,is_video_ended:i})},event:_})})})}),W?(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,g.jsx)(ke,{focusRef:O,event:t.event,isLast:L,onCloseCallback:()=>{E(),(0,et.Z2)({userInteractionType:nt.K.VIDEO_PLAYBACK,userInteractionMetadata:{watch_time:k.current_time},widgetSourceDetails:H,event:_,productList:_.products,ctaList:_.cta})},productClickHandler:async t=>{const e=await(0,p.gK)(t,(0,c.Ip)(F),F);b(t),S(e),j(!0),z(!0),(0,et.GF)({userInteractionType:nt.K.SHOPNOW_CLICKED,widgetSourceDetails:H,event:_,productList:_.products,ctaList:_.cta}),(0,h.bU)("whatmoreAllowAutoSlide",!1)},videoPlayingData:k,totalSiblingEvents:K,indexAmongSiblings:M,leftOpenSpaceClickHandler:q,midOpenSpaceClickHandler:A,rightOpenSpaceClickHandler:Z,storySetId:T})})}):(0,g.jsx)(g.Fragment,{}),!0===w?(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:N,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,g.jsx)(he,{focusRef:O,event:t.event,isLast:L,onCloseCallback:()=>E(),setLockSwiper:z,data:C,currentProduct:y,setOpenShopNow:t=>{j(t),(0,h.bU)("whatmoreAllowAutoSlide",!t)}})})}):(0,g.jsx)("div",{})]})})},Ee=n(7300),Oe=n(8984),Pe=n(58),Le=n(9723);var ze=function(t){var[e,n,i,o]=(0,u.Z)();const r=(0,h.MO)("whatmoreShopId"),a=t.event,l=t.isPlaying,d="center";return(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.xu,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,g.jsx)(s.Kq,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"white",children:(0,g.jsx)(s.oM,{width:"full",ratio:o/i,children:(0,g.jsx)(x.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,_e.uv)(a)),isPlaying:l,timeUpdateCallback:function(t,e){},event:a})})})}),(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,Pe.QV)()},children:(0,g.jsxs)(s.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,g.jsx)(Le.Z,{sx:{boxShadow:3,color:(0,c.Y)(r),fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,Pe.QV)()}}),(0,g.jsx)(s.xv,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})};var De=function(t){var e,n;const r=t.event,a=null===(e=t.isPlaying)||void 0===e||e,l=t.onBack,d=t.isLast,s=t.setLockSwiper,c=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),u=t.progressUpdateCallback,[p,x]=(0,j.Z)(),[m]=(0,h.j1)("whatmoreVideoPlayerPoolBlessed"),f=null===(n=t.showOverlay)||void 0===n||n;function v(){x(!p)}if((0,Oe.KE)()&&0==m)return(0,g.jsx)(ze,{event:r,onBack:l,isPlaying:a,isLast:d,setLockSwiper:s,onVideoEndedCallback:c,progressUpdateCallback:u,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{v()},midOpenSpaceClickHandler:()=>{v()},rightOpenSpaceClickHandler:()=>{v()},showOverlay:f},"shopping-video-view"+r.event_id);if((0,Ee.B6)(r)||(0,Ee.WJ)(r))return(0,g.jsx)(Te,{event:r,onBack:l,isPlaying:a,isLast:d,setLockSwiper:s,onVideoEndedCallback:c,progressUpdateCallback:u,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{v()},midOpenSpaceClickHandler:()=>{v()},rightOpenSpaceClickHandler:()=>{v()},showOverlay:f},"shopping-video-view"+r.event_id);if((0,Ee.yC)(r)){var{status:w,bannerText:C,timeToStartInMins:S}=i.Z.getEventStatus(r);if(w.name===o.Z.LIVE.name)return(0,g.jsx)(ue,{event:r,onBack:l,isPlaying:a,isLast:d,showOverlay:f},"shopping-live-view"+r.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,g.jsx)("div",{})},Re=n(9284),Ke=n.n(Re),Me=n(7463),We=n(2154);function qe(t){var e;const[n,i]=(0,r.useState)(!1),o=t.onClick,a=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,g.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,g.jsx)(We.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),o(t,"up")}}):(0,g.jsx)(Me.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),o(t,"down")}})})}var Ae=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",a=null!==(i=t.fontSize)&&void 0!==i?i:50,l=t.handleClick;return(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,g.jsx)(qe,{type:"left",onClick:l,fontSize:a}),(0,g.jsx)(qe,{type:"right",onClick:l,fontSize:a})]})})},Ze=n(2860),He=n(4669);var Ne=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const i=(0,r.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return i.current},function(t){i.current="right"==t?{prevIndex:n(i.current.activeIndex,e),activeIndex:n(i.current.activeIndex+1,e),nextIndex:n(i.current.activeIndex+2,e)}:{prevIndex:n(i.current.activeIndex-2,e),activeIndex:n(i.current.activeIndex-1,e),nextIndex:n(i.current.activeIndex,e)}},function(t){return n(i.current.activeIndex+t)}]};var Be=function(t,e){const n=(0,r.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var a=o-i.changedTouches[0].clientX,l=r-i.changedTouches[0].clientY;return"vertical"==t&&Math.abs(l)>e||"horizontal"==t&&Math.abs(a)>e?"vertical"==t?l>0?"right":"left":a>0?"right":"left":null}]};var Ve=function(t,e){const n=(0,r.useRef)(Fe()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const a=r>0?"right":"left";n.current(o,a)}]},Ue=n(5173);var Ye=function(t){const e=t.events,n=t.eventIndex,i=t.onBack;var[o,p,x,m]=(0,u.Z)();const[f]=(0,h.j1)("isInDesignMode"),[v]=(0,h.j1)("isDemoBrand"),[w,j]=(0,r.useState)(!0),[C,S]=(0,h.j1)("isFirstIndicatorRenderDone"),[y,b]=(0,r.useState)(!1),{setCloseClickComponent:k}=(0,r.useContext)(pn),{slideDirection:I}=(0,r.useContext)(pn),[F]=(0,h.j1)("whatmoreShopId"),[_]=(0,h.j1)("whatmoreLandingLocationType"),[T,E]=Ne(n,e.length),[O,P]=Be(I,50),[L]=Ve("vertical",30),[z,D]=(0,r.useState)(!1),[R,K]=(0,r.useState)(null),{whatmoreWidgetSourceDetails:M}=(0,r.useContext)(it.I);function W(){D(!1)}function q(){W(),setTimeout((()=>{i()}),500)}function A(){(0,h.MO)("whatmoreAllowAutoSlide")&&(E("right"),R.slideNext())}function Z(t,e){E(e),function(t,e){R&&("left"===e?R.slidePrev():R.slideNext())}(0,e)}(0,r.useEffect)((()=>(D(!0),()=>{})),[]),k(q);const H=Math.round(.05*x);return(0,g.jsx)(Ke(),{isOpen:z,onAfterOpen:function(){},onRequestClose:W,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,g.jsx)(Ue.Z,{children:(0,g.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,Q.lA)("#000000",13)},onTouchStart:t=>{O(t)},onTouchEnd:t=>{const e=P(t);e&&Z(0,e)},onWheel:t=>{L(t,(t=>{Z(0,t)}))},children:[(0,g.jsx)(a.tq,{speed:400,threshold:H,slidesPerView:1,direction:I,modules:[l.tl,l.Gk],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!y,allowSlidePrev:!y,allowTouchMove:!1,onSwiper:t=>{K(t)},onSlideChange:t=>{var n;w?j(!1):(C||S(!0),n=e[T().activeIndex],f||v||(async()=>{(0,d.wh)(n),"index"===_?((0,He.Tc)(F,Ze.Xh,Ze.pR),(0,ft.H4)(n.event_id,n.products,Ze.Xh,Ze.pR)):_.startsWith("product")||"embed"===_?((0,He.Tc)(F,Ze.h7,Ze.dU),(0,ft.H4)(n.event_id,n.products,Ze.h7,Ze.dU)):_.startsWith("collection")?((0,He.Tc)(F,Ze.U$,Ze.Pk),(0,ft.H4)(n.event_id,n.products,Ze.U$,Ze.Pk)):((0,He.Tc)(F,Ze.Xh,Ze.pR),(0,ft.H4)(n.event_id,n.products,Ze.Xh,Ze.pR))})(),(0,et.y4)({userInteractionType:nt.K.EVENT_VIEW,widgetSourceDetails:M,event:e[T().activeIndex],productList:e[T().activeIndex].products}))},children:[...Array(Math.min(e.length,3)).keys()].map((t=>(0,g.jsx)(a.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:r,isVisible:a,isDuplicate:l}=t;const d=n?"activeIndex":i?"prevIndex":"nextIndex";return(0,g.jsx)(s.Kq,{direction:"column",height:o,justifyContent:"center",children:(0,g.jsx)(De,{event:e[T()[d]],onBack:q,isPlaying:1==e.length||n&&a,isLast:!1,setLockSwiper:b,onVideoEndedCallback:A,progressUpdateCallback:t=>{}})})}},"event-vertical-scroll-slide-"+t)))}),e.length>1&&!y&&(0,c.h6)(F)&&"horizontal"===(0,c.e8)(F)&&"horizontal"===I?(0,g.jsx)(Ae,{relativeBottomPercentage:"50%",width:m,handleClick:(t,e)=>{Z(0,"down"==e?"right":"left")},fontSize:parseInt(.12*m)}):(0,g.jsx)(g.Fragment,{})]})})})},Xe=n(1168);n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811);const Ge=t=>{let{children:e,customClass:n,show:i,closeCallback:o}=t;return Xe.createPortal((0,g.jsxs)("div",{className:"whatmore-landscape-modal whatmore-root ".concat(n),style:{display:i?"block":"none"},children:[(0,g.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,g.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};Ge.defaultProps={children:(0,g.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var Je=Ge;var $e=function(t){var e;const[n]=(0,h.j1)("whatmorePrimaryFont"),i=null!==(e=t.fontSize)&&void 0!==e?e:"8";return(0,g.jsx)(s.rU,{href:"https://www.whatmore.live",isExternal:!0,children:(0,g.jsxs)(s.Kq,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"2px",paddingLeft:"2px",paddingRight:"2px",paddingBottom:"2px",marginBottom:"2px",children:[(0,g.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:n,fontWeight:"normal",fontSize:i+"px",margin:0,padding:0,lineHeight:"110%"},children:"powered by whatmore"}),(0,g.jsx)(s.xu,{width:"10px"}),(0,g.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px"}})]})})};var Qe=function(t){var[e,n,i,o]=(0,u.Z)();const[p]=(0,h.j1)("isInDesignMode"),[x]=(0,h.j1)("isDemoBrand"),[m,f]=(0,h.j1)("isFirstIndicatorRenderDone"),[v,w]=(0,r.useState)(0!=t.eventIndex),{setCloseClickComponent:j}=(0,r.useContext)(pn),[C,S]=(0,r.useState)(!1),[y]=(0,h.j1)("whatmoreShopId"),[b]=(0,h.j1)("whatmoreLandingLocationType"),{whatmoreUITheme:k}=(0,r.useContext)(it.I),{whatmoreWidgetSourceDetails:I}=(0,r.useContext)(it.I),[F,_]=(0,r.useState)(!1),[T,E]=(0,r.useState)(null);function O(){_(!1)}const P=t.events,L=t.eventIndex,z=t.onBack;function D(){O(),setTimeout((()=>{z()}),500)}function R(){T&&!T.isEnd&&(0,h.MO)("whatmoreAllowAutoSlide")&&T.slideNext()}(0,r.useEffect)((()=>(_(!0),()=>{})),[]),j(D);const K=parseInt(Math.min(5,P.length));return(0,g.jsx)(Je,{show:F,closeCallback:O,customClass:"whatmore-landscape-modal-swipe-view",children:(0,g.jsxs)(s.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:(0,Q.lA)("#000000",13),children:[(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.xu,{height:"fit-content",width:o*K,children:(0,g.jsx)(a.tq,{onInit:t=>{E(t)},slidesPerView:K,centeredSlides:!0,allowTouchMove:!1,initialSlide:L,modules:[l.lI,l.W_,l.Gk],navigation:K>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:o*K,watchSlidesProgress:!0,onSlideChange:t=>{var e;v?w(!1):(m||f(!0),e=P[t.activeIndex],p||x||(async()=>{(0,d.wh)(e),"index"===b?((0,He.Tc)(y,Ze.Xh,Ze.pR),(0,ft.H4)(e.event_id,e.products,Ze.Xh,Ze.pR)):b.startsWith("product")||"embed"===b?((0,He.Tc)(y,Ze.h7,Ze.dU),(0,ft.H4)(e.event_id,e.products,Ze.h7,Ze.dU)):b.startsWith("collection")?((0,He.Tc)(y,Ze.U$,Ze.Pk),(0,ft.H4)(e.event_id,e.products,Ze.U$,Ze.Pk)):((0,He.Tc)(y,Ze.Xh,Ze.pR),(0,ft.H4)(e.event_id,e.products,Ze.Xh,Ze.pR))})(),(0,et.y4)({userInteractionType:nt.K.EVENT_VIEW,widgetSourceDetails:I,event:P[t.activeIndex],productList:P[t.activeIndex].products,ctaList:P[t.activeIndex].cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:P.map(((t,e)=>(0,g.jsx)(a.o5,{children:t=>{let{isActive:n,isPrev:r,isNext:a,isVisible:l,isDuplicate:d}=t;return n?(0,g.jsx)(s.Kq,{direction:"column",height:i,width:1*o,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,g.jsx)(s.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,c.al)(y),borderColor:(0,c.qP)(y)},children:(0,g.jsx)(De,{event:P[e],onBack:D,isPlaying:!0,isLast:e===P.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:R,progressUpdateCallback:t=>{}})})}):a||r?(0,g.jsx)(s.Kq,{direction:"column",height:i,width:o,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{T.slideTo(e,300)},children:(0,g.jsx)(s.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,c.al)(y),borderColor:(0,c.qP)(y)},children:(0,g.jsx)(De,{event:P[e],onBack:D,isPlaying:!1,isLast:e===P.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:R,progressUpdateCallback:t=>{},showOverlay:!1})})}):(0,g.jsx)(g.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))})})}),(0,c.XF)(y)?(0,g.jsx)(s.M5,{children:(0,g.jsx)($e,{height:.04*i,width:.1*o,fontSize:.02*i})}):(0,g.jsx)(g.Fragment,{})]})})},tn=n(8866),en=n(6090),nn=n(7616),on=n(9302),rn=n(2575);var an=function(t){const[e,n,i,o]=(0,u.Z)(),[r]=(0,h.j1)("whatmorePrimaryColor"),[a]=(0,h.j1)("whatmoreSecondaryColor"),l="flex-end";return(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.xu,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,g.jsx)(s.Kq,{direction:"column",justifyContent:l,height:"full",width:"full",children:(0,g.jsx)(s.xu,{borderRadius:"md",backgroundColor:"transparent",children:(0,g.jsx)(s.oM,{width:"full",ratio:o/i,children:(0,g.jsx)(s.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+r+", gray, "+a+")"})})})}),(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:l,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,g.jsx)(s.oM,{width:"full",ratio:9/16,children:(0,g.jsx)(s.xu,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})};var ln=function(t){var e;const n=t.stories,i=t.onBack,o=t.onStoryCompleteCallback,l=t.isActive,c=(t.isNext,t.isPrev,null!==(e=t.initialEventIndex)&&void 0!==e?e:0),p=n.events;var[x,m,f,v]=(0,u.Z)();const[w,C]=(0,j.Z)(),[S]=(0,h.j1)("isInDesignMode"),[y]=(0,h.j1)("isDemoBrand"),[b]=(0,h.j1)("whatmoreShopId"),[k]=(0,h.j1)("whatmoreSecondaryColorShade900"),[I]=(0,h.j1)("whatmoreSecondaryColor"),[F,_]=(0,r.useState)(!0),[T,E]=(0,h.j1)("isFirstIndicatorRenderDone"),{setCloseClickComponent:O}=(0,r.useContext)(pn),{slideDirection:P}=(0,r.useContext)(pn),[L,z]=(0,r.useState)(null),[D,R]=(0,r.useState)(!1),[K,M]=(0,r.useState)(0),{whatmoreWidgetSourceDetails:W}=(0,r.useContext)(it.I),[q,A]=Ne(c,p.length);function Z(){i()}function H(){if(!(0,h.MO)("whatmoreAllowAutoSlide"))return;q().activeIndex+1>=p.length?o("right"):(A("right"),L&&L.slideNext())}function N(t){const e=q().activeIndex;"right"==t&&e+1>=p.length||"left"==t&&e-1<0?o(t):(A(t),L&&("left"==t?L.slidePrev():L.slideNext()))}return p[q().activeIndex],(0,g.jsx)("div",{children:(0,g.jsx)(a.tq,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:f,width:v,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{z(t)},onSlideChange:t=>{var e;F?_(!1):(T||E(!0),e=p[q().activeIndex],S||y||(async()=>{(0,d.wh)(e),(0,He.Tc)(b,Ze.Xh,Ze.OW),(0,ft.H4)(e.event_id,e.products,"homepage","stories")})(),(0,et.GF)({userInteractionType:nt.K.EVENT_VIEW,widgetSourceDetails:W,event:p[q().activeIndex],productList:p[q().activeIndex].products,ctaList:p[q().activeIndex].cta}))},children:[...Array(Math.min(p.length,3)).keys()].map((t=>(0,g.jsx)(a.o5,{children:t=>{let{isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;if(l){const t=e?"activeIndex":i?"prevIndex":"nextIndex",o=p[q()[t]];return(0,g.jsx)(s.Kq,{direction:"column",height:f,justifyContent:"center",children:(0,Ee.B6)(o)||(0,Ee.WJ)(o)?(0,g.jsx)(Te,{event:o,totalSiblingEvents:p.length,indexAmongSiblings:q()[t],onBack:Z,isPlaying:l&&e&&r,isLast:!1,setLockSwiper:R,onVideoEndedCallback:H,progressUpdateCallback:t=>{},leftOpenSpaceClickHandler:()=>{N("left")},midOpenSpaceClickHandler:()=>{C(!w)},rightOpenSpaceClickHandler:()=>{N("right")},storyId:n.id},"shopping-video-view"+o.event_id):(0,g.jsx)(g.Fragment,{})})}return(0,g.jsx)(s.Kq,{direction:"column",height:x,justifyContent:"center",children:(0,g.jsx)(an,{})})}},"event-story-view-slide-"+t)))})})};var dn=function(t){const e=t.onBack,n=t.eventsStories,i=t.initialStoryIndex;var[o,c,p,x]=(0,u.Z)();const[m]=(0,h.j1)("isInDesignMode"),[f]=(0,h.j1)("isDemoBrand"),[v,w]=(0,r.useState)(!0),[j,C]=(0,h.j1)("isFirstIndicatorRenderDone"),[S,y]=(0,r.useState)(!1),{setCloseClickComponent:b}=(0,r.useContext)(pn),{slideDirection:k}=(0,r.useContext)(pn),[I]=(0,h.j1)("whatmoreShopId"),[F,_]=Ne(i,n.length),[T,E]=Be("horizontal",50),[O]=Ve("vertical",30),P=t.eventIndex,[L,z]=(0,r.useState)(!1),[D,R]=(0,r.useState)(null),{whatmoreWidgetSourceDetails:K}=(0,r.useContext)(it.I);function M(){z(!1)}function W(){M(),setTimeout((()=>{e()}),500)}function q(t){D&&(0,h.MO)("whatmoreAllowAutoSlide")&&(_(t),"right"==t?D.slideNext():D.slidePrev())}function A(t,e){q(e)}return(0,r.useEffect)((()=>(z(!0),()=>{})),[]),b(W),(0,g.jsx)(Ke(),{isOpen:L,onAfterOpen:function(){},onRequestClose:M,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,g.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{T(t)},onTouchEnd:t=>{const e=E(t);e&&A(0,e)},onWheel:t=>{O(t,(t=>{A(0,t)}))},children:(0,g.jsx)(a.tq,{speed:1,slidesPerView:1,direction:"horizontal",modules:[l.SH,l.Gk],initialSlide:i,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{R(t)},onSlideChange:t=>{var e,i,o;v?w(!1):(o=n[F().activeIndex].events[0],m||f||(async()=>{(0,d.wh)(o),(0,He.Tc)(I,Ze.Xh,Ze.OW),(0,ft.H4)(o.event_id,o.products,"homepage","stories")})(),(0,et.GF)({userInteractionType:nt.K.EVENT_VIEW,widgetSourceDetails:K,event:n[F().activeIndex].events[0],productList:null===(e=n[F().activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(i=n[F().activeIndex].events[0])||void 0===i?void 0:i.cta}))},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map((t=>(0,g.jsx)(a.o5,{children:t=>{let{isActive:e,isPrev:r,isNext:a,isVisible:l,isDuplicate:d}=t;const c=e?"activeIndex":r?"prevIndex":"nextIndex";return(0,g.jsx)(s.Kq,{direction:"column",height:o,justifyContent:"center",children:(0,g.jsx)(ln,{stories:n[F()[c]],onBack:W,isActive:e&&l,isNext:a,isPrev:r,onStoryCompleteCallback:q,nextStories:n[F().nextIndex],prevStories:n[F().prevIndex],initialEventIndex:i==F()[c]?P:0},"event-story-view-"+n[F()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})},sn=n(4892);var cn=function(t){var e,n,i,[o,a,l,d]=(0,u.Z)();const[c]=(0,h.j1)("whatmorePrimaryColor"),[p]=(0,h.j1)("whatmoreSecondaryColor"),x=t.event,m=(t.onBack,r.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),v=null!==(n=t.heightFactor)&&void 0!==n?n:1,w="flex-end";return d*=null!==(i=t.widthFactor)&&void 0!==i?i:1,l*=v,(0,g.jsx)(s.M5,{children:(0,g.jsxs)(s.xu,{width:d,height:l,children:[(0,g.jsx)(s.Kq,{direction:"column",justifyContent:w,height:"full",width:"full",children:(0,g.jsx)(s.xu,{children:(0,g.jsx)(s.oM,{width:"full",ratio:9/16,children:m?(0,Ee.B6)(x)||(0,Ee.WJ)(x)?(0,g.jsx)(sn.Z,{height:"100%",width:"100%",url:x.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:x}):(0,g.jsx)(f.Ee,{width:"full",height:"full",src:x.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,g.jsx)(s.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+c+", gray, "+p+")"})})})}),(0,g.jsx)(s.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:w,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)(s.xu,{children:(0,g.jsx)(s.oM,{width:"full",ratio:9/16,children:(0,g.jsx)(s.xu,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})};var hn=function(t){var[e,n,i,o]=(0,u.Z)();const[p]=(0,h.j1)("isInDesignMode"),[x]=(0,h.j1)("isDemoBrand"),[m,f]=(0,h.j1)("isFirstIndicatorRenderDone"),[v,w]=(0,r.useState)(0!=t.eventIndex),{setCloseClickComponent:j}=(0,r.useContext)(pn),[C,S]=(0,r.useState)(!1),[y]=(0,h.j1)("whatmoreShopId"),{whatmoreWidgetSourceDetails:b}=(0,r.useContext)(it.I),[k,I]=(0,r.useState)(!1),[F,_]=(0,r.useState)(null);function T(){I(!1)}t.events;const E=t.eventIndex,O=t.onBack,P=t.eventsStories,L=t.initialStoryIndex;function z(){T(),setTimeout((()=>{O()}),500)}function D(t){F&&!F.isEnd&&("right"==t?F.slideNext():F.slidePrev())}(0,r.useEffect)((()=>(I(!0),()=>{})),[]),j(z);const R=parseInt(Math.min(5,P.length));return(0,g.jsx)(Je,{show:k,closeCallback:T,customClass:"whatmore-landscape-modal-stories-view",children:(0,g.jsxs)(s.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:"blackAlpha.800",children:[(0,g.jsx)(s.M5,{children:(0,g.jsx)(s.xu,{height:"fit-content",width:o*R,children:(0,g.jsx)(a.tq,{onInit:t=>{_(t)},slidesPerView:R,centeredSlides:!0,allowTouchMove:!1,initialSlide:L,modules:[l.lI,l.W_,l.Gk],navigation:R>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:o*R,watchSlidesProgress:!0,onSlideChange:t=>{var e,n,i;v?w(!1):(m||f(!0),i=P[t.activeIndex].events[0],p||x||(async()=>{(0,d.wh)(i),(0,He.Tc)(y,Ze.Xh,Ze.OW),(0,ft.H4)(i.event_id,i.products,"homepage","stories")})(),(0,et.GF)({userInteractionType:nt.K.EVENT_VIEW,widgetSourceDetails:b,event:P[t.activeIndex].events[0],productList:null===(e=P[t.activeIndex].events[0])||void 0===e?void 0:e.products,ctaList:null===(n=P[t.activeIndex].events[0])||void 0===n?void 0:n.cta}))},mousewheel:{invert:!1,thresholdDelta:20},children:P.map(((t,e)=>(0,g.jsx)(a.o5,{children:n=>{let{isActive:r,isPrev:a,isNext:l,isVisible:d,isDuplicate:c}=n;if(r){const n=1;return(0,g.jsx)(s.Kq,{direction:"column",height:i,width:o*n,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,g.jsx)(s.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,g.jsx)(ln,{stories:t,onBack:z,isActive:r&&d,isNext:!1,isPrev:!1,onStoryCompleteCallback:D,initialEventIndex:L==e?E:0},"event-story-view-"+t.id)})})}return a||l?(0,g.jsx)(s.Kq,{direction:"column",height:i,width:o,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{F.slideTo(e,300)},children:(0,g.jsx)(s.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,g.jsx)(cn,{showPausedVideo:!0,event:P[e].events[0],onBack:z,isPlaying:!1,setLockSwiper:S})})}):(0,g.jsx)(g.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))})})}),(0,c.XF)(y)?(0,g.jsx)(s.M5,{children:(0,g.jsx)($e,{height:.04*i,width:.1*o,fontSize:.02*i})}):(0,g.jsx)(g.Fragment,{})]})})};const un=(0,rn.Z)({key:"whatmore-css-sv"}),pn=(0,r.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0});var xn=function(t){var e,n;const[a,l,d]=(0,tn.Z)(),[s]=(0,h.j1)("whatmoreShopId"),{whatmoreRootId:u}=(0,r.useContext)(it.I),{whatmoreIsStoriesTemplate:p}=(0,r.useContext)(it.I);var x=t.events,m=t.index,f=t.onBack,v=t.eventsStories,w=t.initialStoryIndex,j=(0,c.cX)(s),C=x[m],S="portrait"===a?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:x.length>1?"horizontal":"vertical",y="portrait"===a?!(0,c.h6)(s)&&!p:(0,c.n8)(s),b=(C=x[m],[]);if((0,r.useLayoutEffect)((()=>{(0,c.TL)(s)&&(window.location.href.includes(j)?history.replaceState(null,"","#"+j):history.pushState(null,"","#"+j),window.addEventListener("popstate",(()=>{window.location.href.includes(j)||f()})))}),[]),(0,Ee.yC)(C)){var{status:k,bannerText:I,timeToStartInMins:F}=i.Z.getEventStatus(x[m]);if(k.name!=o.Z.LIVE.name)return(0,g.jsx)("div",{children:"// TODO : fix event registration view for live events"})}if(delete nn.ZP.styles.global,p)return(0,g.jsx)(on.C,{value:un,children:(0,g.jsx)(en.x,{theme:nn.ZP,cssVarsRoot:u,resetCSS:!1,children:(0,g.jsx)(pn.Provider,{value:{isIOS:(0,Oe.KE)(),totalEvents:x.length,closeClickComponent:f,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:S,showSwipeIndicator:y},children:"portrait"===a?(0,g.jsx)(dn,{eventsStories:v,initialStoryIndex:w,onBack:f,eventIndex:m}):x.length>1&&(0,c.Bb)(s)?(0,g.jsx)(hn,{eventsStories:v,initialStoryIndex:w,onBack:f,eventIndex:m}):(0,g.jsx)(dn,{eventsStories:v,initialStoryIndex:w,onBack:f,eventIndex:m})})})});b=[];for(var _=0;_<x.length;_++)if((0,Ee.B6)(x[_])||(0,Ee.WJ)(x[_]))b.push(x[_]);else if((0,Ee.yC)(x[_])){var{status:k,bannerText:I,timeToStartInMins:F}=i.Z.getEventStatus(x[_]);k.name===o.Z.LIVE.name&&b.push(x[_])}return(0,g.jsx)(on.C,{value:un,children:(0,g.jsx)(en.x,{theme:nn.ZP,cssVarsRoot:u,resetCSS:!1,children:(0,g.jsx)(pn.Provider,{value:{isIOS:(0,Oe.KE)(),totalEvents:x.length,closeClickComponent:f,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:S,showSwipeIndicator:y},children:"portrait"===a?(0,g.jsx)(Ye,{events:b,eventIndex:m,onBack:f}):x.length>1?(0,g.jsx)(Qe,{events:b,eventIndex:m,onBack:f}):(0,g.jsx)(Ye,{events:b,eventIndex:m,onBack:f})})})})}},9316:function(t,e,n){n.d(e,{mT:function(){return s}});var i,o,r,a=n(168),l=n(686);const d=(0,l.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(d," 0.2s linear;\n"),c=(0,l.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),h=("\n ".concat(c," 0.5s infinite linear;\n"),(0,l.F4)(r||(r=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(h," ").concat(3,"s ease-in-out;\n")},6163:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var i=n(3271),o=n(5427),r=n(7313),a=n(7753),l=n(756),d=(n(4844),n(5160));var s=n(9316),c=n(9748),h=n(4209),u=n(9854),p=(n(7605),n(7053)),x=n(9039),g=n(7376),m=n(778),f=n(6417);function v(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[r]=(0,a.j1)("whatmorePrimaryFont"),l=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.width,s=t.height;return(0,f.jsx)(i.xu,{width:d,height:s,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,f.jsxs)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,f.jsxs)(i.xv,{color:n,fontSize:1.3*l,fontWeight:"semibold",sx:{fontFamily:r+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,f.jsx)(i.M5,{paddingX:"5px",children:(0,f.jsx)(o.Z,{sx:{color:n,fontSize:1.5*l}})})]})})}var w=function(t){var e,n,o,w;const[j]=(0,a.j1)("whatmorePrimaryFont"),[C]=(0,a.j1)("isInDesignMode"),[S]=(0,a.j1)("isDemoBrand"),[y,b]=(0,a.j1)("appCartData"),[k]=(0,a.j1)("whatmoreShopId"),[I]=[(0,u.hm)(k)],F=(0,u.hm)(k),[_,T]=(0,r.useState)(!1),[E,O]=(0,r.useState)({state:"initial"}),[P,L]=(0,r.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:z}=(0,r.useContext)(h.EventClickComponentContext),{whatmoreWidgetSourceDetails:D}=(0,r.useContext)(x.I),R=t.event,K=t.product,M=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function W(t,e,n){C||S||(async()=>{(0,d.JX)(t,e,n)})()}(0,r.useEffect)((()=>{!async function(){const t=await(0,p.gK)(K,(0,u.Ip)(k),k);L({loaded:!0,client_product_id:K.client_product_id,variant_id:t.product.variants[0].id,variant_price:t.product.variants[0].price})}()}),[]);const q=null!==(n=t.width)&&void 0!==n?n:"fit-content",A=null!==(o=t.height)&&void 0!==o?o:"fit-content",Z=(null!==(w=(0,u.Jb)(k))&&void 0!==w?w:2)+"px";return P.loaded?(0,f.jsx)("div",{style:{width:q,height:A},children:(0,f.jsx)("a",{href:"javascript:void(0)","data-variant-id":P.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,f.jsx)(c.zx,{type:"submit",className:(0,u.Sl)(k),sx:{width:q,height:A,minHeight:A},onClick:t=>{T(!0),W(R,K,1),(0,g.GF)({userInteractionType:m.K.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:D,event:R,productList:[K],ctaList:R.cta}),null!==z&&setTimeout((()=>{z()}),2e3)},children:"initial"===E.state?(0,f.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:A,width:q},children:(0,f.jsx)(i.xu,{width:"100%",height:"100%",padding:Z,boxShadow:"lg",borderRadius:"md",backgroundColor:F,borderColor:F,borderWidth:"1px",animation:_?s.mT:null,onAnimationEnd:()=>{T(!1)},children:(0,f.jsx)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsx)(i.M5,{children:(0,f.jsxs)(i.xv,{lineHeight:"100%",fontSize:1.3*M,fontWeight:"semibold",sx:{fontFamily:j+" !important",color:(0,u.KC)(k)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,f.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:A,width:q},children:(0,f.jsx)(v,{event:R,product:K,baseFontSize:M,cartState:E,width:q,height:A})})})})}):(0,f.jsx)(f.Fragment,{})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),a=n(6417);e.Z=function(t){var e,n=t.event,l=t.fontSize,d=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:s,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(n);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:d,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"bold",color:"white",children:c})})}):(0,a.jsx)(i.xu,{maxWidth:d,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"medium",children:c})})})}},7605:function(t,e,n){n.d(e,{a:function(){return i}});n(5160);const i=async function(t,e,n,i,o,r,a,l,d,s){}},1896:function(t,e,n){n.d(e,{Z:function(){return g}});var i=n(7313),o=n(7300),r=n(6422),a=n(4209),l=n(3175),d=n(2887),s=n(7753),c=n(58),h=n(6417);function u(t){var e,n,o;const[a,d]=(0,r.Z)(),[u,p]=(0,i.useState)(i.useRef()),[x,g]=(0,s.j1)("whatmoreVideoPlayerPoolBlessed"),[m,f]=(0,i.useState)(!0),v=t.timeUpdateCallback,w=null!==(e=t.isVideoMuted)&&void 0!==e?e:a,j=null!==(n=t.height)&&void 0!==n?n:"100%",C=null!==(o=t.width)&&void 0!==o?o:"100%";return(0,i.useLayoutEffect)((()=>{var e;u.current&&x&&(0==u.current.children.length?((e=(0,c.Bi)(u.current,t.url,w||!t.isPlaying,t.isPlaying)).addEventListener("loadeddata",(()=>{f(!1)})),v&&e.addEventListener("timeupdate",(t=>{var n,i;e&&v(null!==(n=e.currentTime)&&void 0!==n?n:0,null!==(i=e.duration)&&void 0!==i?i:0)}))):((e=u.current.children[0]).muted=w||!t.isPlaying,t.isPlaying?e.play():e.pause()))}),[w,t.isPlaying,x]),(0,i.useLayoutEffect)((()=>()=>{u.current&&0!=u.current.children.length&&(0,c.P7)(u.current)}),[]),(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:C,height:j,overflow:"hidden"},children:[(0,h.jsx)("div",{ref:u,style:{width:m?"0px":"100%",height:m?"0px":"100%"},className:"whatmore-video-player-ios-holder"}),m?(0,h.jsx)(l.Z,{width:C,height:j}):(0,h.jsx)(h.Fragment,{})]})}var p=function(t){var e;return(0,h.jsx)(u,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null})};function x(t){var e,n,o;const[a,d]=(0,r.Z)(),[s,c]=(0,i.useState)(!1),u=t.setDuration,p=(0,i.useRef)(null),x=t.timeUpdateCallback,g=null!==(e=t.height)&&void 0!==e?e:"100%",m=null!==(n=t.width)&&void 0!==n?n:"100%",f=null!==(o=t.isVideoMuted)&&void 0!==o?o:a;return(0,i.useEffect)((()=>{p.current&&(t.isPlaying?p.current.paused&&p.current.play():p.current.pause(),x&&p.current.addEventListener("timeupdate",(t=>{var e,n;p.current&&x(null!==(e=p.current.currentTime)&&void 0!==e?e:0,null!==(n=p.current.duration)&&void 0!==n?n:0)})))}),[t.isPlaying]),(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:m,height:g,overflow:"hidden"},children:[(0,h.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,h.jsx)("video",{ref:p,className:"whatmore-video-player",width:m,height:g,preload:"auto",loop:!0,playsInline:!0,muted:!!f,src:t.url,onLoadedData:()=>{c(!0),t.isPlaying&&p.current&&p.current.play()},onLoadedMetadata:()=>{p.current&&u&&u(p.current.duration)}})}),s?(0,h.jsx)(h.Fragment,{}):(0,h.jsx)(l.Z,{width:m,height:g})]})}var g=function(t){var e,n;return(0,o.WJ)(t.event)?(0,h.jsx)(d.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,i.useContext)(a.EventClickComponentContext).isIOS&&1==(0,s.MO)("whatmoreVideoPlayerPoolBlessed")?(0,h.jsx)(p,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(n=t.isVideoMuted)&&void 0!==n?n:null}):(0,h.jsx)(x,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration})}},6119:function(t,e,n){var i,o=n(168),r=n(3271),a=n(7313),l=n(7789),d=n(7753),s=n(686),c=n(9854),h=n(9039),u=n(5160),p=n(6417);const x=(0,s.F4)(i||(i=(0,o.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),g=("\n ".concat(x," ").concat(3,"s ease-in-out;\n"),function(t,e){return(0,c.lj)(e)?t+"?"+(0,c.aw)(e)+"&"+(0,c.n9)(e)+"&"+(0,c.po)(e):t});e.Z=function(t){var e;const[n,i,o,s]=(0,l.Z)(),[x,m]=(0,a.useState)(!1),{whatmoreUITheme:f}=(0,a.useContext)(h.I),v=(0,d.MO)("isInDesignMode"),w=(0,d.MO)("isDemoBrand"),j=(0,d.MO)("whatmoreSecondaryColor"),C=(0,d.MO)("whatmoreSecondaryColorShade1200"),S=(0,d.MO)("whatmorePrimaryFont"),y=(0,d.MO)("whatmoreShopId"),b=(t.event,t.cta),k=.05*s;return(0,p.jsx)(r.M5,{children:(0,p.jsx)(r.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*s+"px",marginTop:.03*s+"px",children:(0,p.jsx)(r.rU,{href:g(b.cta_link,y),color:"white",onClick:()=>{v||w||(async()=>{(0,u.uD)(t)})()},children:(0,p.jsx)(r.xv,{fontSize:k*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",variant:"subtle",textColor:j,bgColor:C,sx:{borderRadius:"round"==f?"5px":"0px",borderWidth:(0,c.p5)(y),borderColor:"#343434"===(0,c.yx)(y)?j:(0,c.yx)(y),fontFamily:S+" !important",textAlign:"center!important",fontWeight:"bold"},paddingY:"8px",paddingX:.05*s+"px",children:b.cta_title})})})})}},8782:function(t,e,n){n.d(e,{P:function(){return l}});var i=n(3933),o=n(7313),r=(n(123),n(6417));function a(t){const{ref:e,inView:n,entry:o}=(0,i.YD)({triggerOnce:t.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:e,children:n?t.renderElement({eventData:t.data}):(0,r.jsx)("div",{style:{minWidth:t.defaultHeight,minHeight:t.defaultWidth}})})}function l(t){var e;return(0,o.useEffect)((()=>{const t=document.querySelector(".whatmore-carousel-horizontal-flex");let e,n=!1;function i(t){t.touches&&(null===t||void 0===t?void 0:t.touches.length)>0?(n=!0,e=t.touches[0].clientX):(n=!0,e=t.clientX)}function o(i){if(!n)return;const o=i.touches?i.touches[0].clientX:i.clientX;t.style.pointerEvents="none";const r=2*(e-o);t.scrollLeft+=r,e=o}function r(e){t.style.pointerEvents="auto",n=!1}return t&&("ontouchstart"in window&&(t.addEventListener("touchstart",i),t.addEventListener("touchmove",o),t.addEventListener("touchend",r)),t.addEventListener("mousedown",i),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{t&&("ontouchstart"in window&&(t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",r)),t.removeEventListener("mousedown",i),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3},className:"whatmore-carousel-horizontal-flex",children:t.dataList.map(((e,n)=>(0,r.jsx)(a,{renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n)))})}},342:function(t,e,n){n.d(e,{WN:function(){return o},uv:function(){return i}});const i=function(t){var e;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.portrait.content_image_original:"secondary"in t.event_media_urls?t.event_media_urls.secondary.portrait.content_video_1080p:null!==(e=t.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==e?e:null:t.event_hls_url},o=function(t){return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.landscape.content_image_original:"secondary"in t.event_media_urls?t.event_media_urls.secondary.landscape.content_video_1080p:t.event_media_urls.primary.landscape.content_video_1080p:t.event_hls_url}},6422:function(t,e,n){var i=n(7313),o=n(7753);e.Z=function(t){const[e,n]=(0,o.j1)("muted");return(0,i.useEffect)((()=>{}),[]),[e,n]}},7789:function(t,e,n){var i=n(8866);e.Z=function(t){const[e,n,o]=(0,i.Z)();var r="landscape"==e?n*(9/16):o;if("landscape"==e){const t=.85;return[n,r,n*t,r*t]}return[n,r,n,r]}},7053:function(t,e,n){n.d(e,{gK:function(){return r},pO:function(){return a}});var i=n(3462),o=n(4844);async function r(t,e,n){return"shopify"==e?(0,o.dg)(t):(0,i.Y4)(t,n)}async function a(t,e,n){return"shopify"==e?(0,o.bN)(t):(0,i.ln)(t,n)}},9111:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[364],{8675:function(t,e,n){n.d(e,{Z:function(){return v}});var i,o,r=n(3271),l=n(5098),a=n(7313),s=n(9821),d=n(2634),c=n(5180),h=n(168),p=n(686);const x=(0,p.F4)(i||(i=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),m=(0,p.F4)(o||(o=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),f="\n ".concat(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n"),g="\n ".concat(m,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var u=n(7753),w=n(7129),y=n(6417);var v=function(t){var e,n,[i,o]=(0,s.Z)();const[h]=(0,u.j1)("whatmorePrimaryFont");var p=(0,a.useContext)(w.V);const x=t.event,m=t.onClick,v=null===(e=t.isOnFocus)||void 0===e||e,j=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,y.jsxs)(r.xu,{animation:j?v?f:g:"none",marginTop:p.tileTopMargin,marginBottom:p.tileBottomMMargin,marginLeft:p.tileLeftMargin,marginRight:p.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{m(x)},cursor:"pointer",children:[(0,y.jsx)(l.Ee,{width:"full",height:"full",src:x.thumbnail_image,objectFit:"cover",fallback:(0,y.jsx)(c.Z,{width:o,height:i}),borderRadius:"lg"}),(0,y.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,y.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,y.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,y.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,y.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,y.jsx)(d.Z,{event:x,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,y.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,y.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,y.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,y.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,y.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,y.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:x.title.substring(0,40)}),(0,y.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:x.presenter_name.substring(0,15)})]})})})})]})})]})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),l=n(6417);e.Z=function(t){var e,n=t.event,a=t.fontSize,s=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:d,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(n);return d.name===r.Z.LIVE.name?(0,l.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"bold",color:"white",children:c})})}):(0,l.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"medium",children:c})})})}},1092:function(t,e,n){var i=n(237),o=n(9854),r=n(7753),l=n(9039),a=n(7313),s=n(6417);function d(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const{whatmoreUITheme:e}=(0,a.useContext)(l.I),n=(0,r.MO)("whatmoreShopId"),c=(0,r.MO)("whatmorePrimaryFont"),h=t.event,p=t.fontSize;if(h.total_views<=0)return(0,s.jsx)(s.Fragment,{});const x=(0,o.S_)(n);return"template-icon"==x?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XC)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.al)(n),borderColor:(0,o.qP)(n)},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(i.Z,{sx:{color:(0,o.aL)(n)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aL)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(h.total_views)+" "})})]})})}):"template-text"==x?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XC)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.al)(n),borderColor:(0,o.qP)(n)},children:(0,s.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aL)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",c,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+d(h.total_views)+" views"})})})})}):void 0}},7129:function(t,e,n){n.d(e,{V:function(){return i}});const i=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},4920:function(t,e,n){n.d(e,{Z:function(){return j}});var i=n(7313),o=n(9821),r=(n(3439),n(9723)),l=n(7753),a=n(4892),s=n(7129),d=n(6805),c=n(9854),h=n(1092),p=n(5945),x=n(9039),m=n(6417);var f=function(t){var[e,n]=(0,o.Z)();const{whatmoreUITheme:r}=(0,i.useContext)(x.I),[a]=(0,l.j1)("whatmorePrimaryFont"),[s,d]=(0,i.useState)(0),h=(0,l.MO)("whatmoreShopId"),f=t.event;if(0==f.products.length)return(0,m.jsx)(m.Fragment,{});const g=.3*n,u=g+"px",w=g+"px",y=.07*n+"px";return(0,m.jsx)("div",{style:{width:n+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,m.jsx)("div",{style:{width:u,height:w,boxShadow:"round"==r?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==r?"5px":"0px",borderWidth:(0,c.al)(h),borderColor:(0,c.qP)(h),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,m.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,c.yO)(h),"important")},src:f.products[s].thumbnail_image,style:{width:"100%",height:"100%",borderRadius:"round"==r?"5px":"0px"},alt:"product image"})}),(0,m.jsx)("div",{style:{width:n-5-g+"px",height:w,borderRadius:"round"==r?"5px":"0px",overflow:"visible"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",height:"100%",justifyContent:"center",alignItems:"center"},children:(0,m.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",y,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,p.s)(f.products[s].title)})})})]},s)})},g=n(3933),u=n(8984);function w(t){var e,[n,a]=(0,o.Z)();const[d]=(0,l.j1)("whatmoreShopId"),[h,p,x]=(0,g.YD)({triggerOnce:!0});var w=(0,i.useContext)(s.V);const y=t.event,v=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*a,b=(0,u.gE)()?t.isOnFocus:p;return(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)("p",{children:" "})}),w.showPlayButton&&!v?(0,m.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==y.event_type&&(0,m.jsx)(r.Z,{sx:{color:(0,c.Y)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,m.jsx)(m.Fragment,{}),(0,m.jsx)("div",{ref:h,children:b&&(0,c.PW)(d)?(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(f,{event:y})}):(0,m.jsx)("div",{height:"20px"})})]})})}function y(t){var[e,n]=(0,o.Z)();const[i]=(0,l.j1)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,m.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,m.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,m.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,m.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,m.jsx)(m.Fragment,{})}function v(t){const[e,n,i,r,a]=(0,o.Z)(),[s]=(0,l.j1)("whatmoreShowViews"),p=(0,l.MO)("whatmoreShopId"),x=t.event,f=t.isOnFocus;return(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,m.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===s&&"show"===(0,c.qc)(p)?(0,m.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,m.jsx)(h.Z,{event:x,fontSize:.07*n+"px"})})}):(0,m.jsx)(m.Fragment,{})})}),d.$w===a[d.YP]?(0,m.jsx)(m.Fragment,{}):f?(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,m.jsx)(y,{event:x})}):(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(y,{event:x})})]})})}var j=function(t){var e,n,r;const[h,p,f,g,u]=(0,o.Z)();var y=(0,i.useContext)(s.V);const{whatmoreUITheme:j}=(0,i.useContext)(x.I),b=(0,l.MO)("whatmoreShopId"),C=t.event,P=t.onClick,F=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,k=null!==(r=t.animateOnFocus&&(0,c.iW)(b))&&void 0!==r&&r,R=(0,c.nz)(b);return(0,m.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",y.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",y.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:p,height:h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j?R:null,borderWidth:(0,c.al)(b),borderColor:(0,c.qP)(b),overflow:"hidden",cursor:"pointer"},className:k?F?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(C)},children:[(0,m.jsx)(a.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:F||I,event:C}),(0,m.jsxs)("div",{style:{width:p,height:h},children:[(0,m.jsx)(v,{event:C,isOnFocus:F}),F||d.$w===u[d.YP]?(0,m.jsx)(w,{event:C,unfocusedDisplay:!F,isOnFocus:F}):null]})]})}},9723:function(t,e,n){var i=n(5318);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");e.Z=l},237:function(t,e,n){var i=n(5318);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");e.Z=l},3439:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{5523:function(n,t,e){e.r(t);var o=e(7313),r=e(8675),i=e(6090),a=e(7616),s=(e(6143),e(7244),e(123),e(9302)),c=e(2575),l=e(3271),h=e(9821),d=e(8866),u=e(7753),m=e(9316),f=e(7129),g=e(9854),x=e(9039),j=e(7300),p=e(4920),C=e(6417);const v=(0,c.Z)({key:"whatmore-css-hv"});function w(n,t){var e=[];const o=t;for(let r=0;r<n.length;r+=o){const t=n.slice(r,r+o);e.push(t)}return e}function F(n){var t;const[e,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[s]=(0,u.j1)("whatmoreSecondaryColorShade600"),[c]=(0,u.j1)("whatmoreSecondaryColorShade300"),[h]=(0,u.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,f=n.onClick;return(0,C.jsx)(l.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?c:s,animation:i?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),f()},sx:{cursor:"pointer"},onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:(0,C.jsx)(l.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,C.jsxs)(l.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function y(n){var t;const[e,i,a]=(0,h.Z)();var[s,c]=(0,o.useState)(0);const d=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=w(d,Math.floor(Math.min(a,d.length)));return(0,C.jsx)(l.M5,{children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:f.map(((n,t)=>t>s?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:s<f.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{s>=f.length-1||c((n=>n+m))}})}):(0,C.jsx)(C.Fragment,{})})]})})}function k(n){var t;const[e,i,a,s]=(0,h.Z)();var[c,d]=(0,o.useState)(0);const u=n.events,m=n.onClick,f=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,g=w(u,Math.floor(Math.min(a,u.length)));return(0,C.jsx)(l.M5,{paddingLeft:s+"px",paddingRight:s+"px",children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:g.map(((n,t)=>t>c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:c<g.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{c>=g.length-1||d((n=>n+f))}})}):(0,C.jsx)(C.Fragment,{})})]})})}t.default=function(n){var t;const[e,r,c]=(0,d.Z)(),[h]=(0,u.j1)("whatmoreShopId"),[m]=(0,u.j1)("whatmorePrimaryColor"),[j]=(0,u.j1)("whatmoreSecondaryColor"),[p]=(0,u.j1)("whatmoreTitleFont"),w="portrait"==e?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:F}=(0,o.useContext)(x.I),S=n.events,M=n.onClick,O=null!==(t=(0,g.aR)(h))&&void 0!==t?t:p;function b(n){M(n)}return delete a.ZP.styles.global,(0,C.jsx)(s.C,{value:v,children:(0,C.jsx)("div",{children:(0,C.jsx)(i.x,{theme:a.ZP,cssVarsRoot:F,resetCSS:!1,children:(0,C.jsxs)(f.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,C.jsx)(l.M5,{children:(0,C.jsx)(l.xv,{bgColor:m,bgClip:"text",fontSize:w,sx:{fontFamily:O+" !important"},align:"center",children:n.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(k,{events:S,onClick:b,seeMoreIncrement:1}):(0,C.jsx)(y,{events:S,onClick:b,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){e.d(t,{mT:function(){return l}});var o,r,i,a=e(168),s=e(686);const c=(0,s.F4)(o||(o=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),l="\n ".concat(c," 0.2s linear;\n"),h=(0,s.F4)(r||(r=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(h," 0.5s infinite linear;\n"),(0,s.F4)(i||(i=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(d," ").concat(3,"s ease-in-out;\n")},5945:function(n,t,e){function o(n){return"undefined"==typeof n||"undefined"==n||null==n?"":n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))}e.d(t,{s:function(){return o}})},6143:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[554],{9085:function(t,e,o){o.r(e),o.d(e,{default:function(){return I}});var n=o(7313),r=(o(3439),o(6090)),i=o(7616),a=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),l=o(2575),s=o(9821),c=o(8866),p=o(2279),d=o.n(p),h=o(7753),u=o(7129),m=o(1855),y=o(9854),x=o(9039),f=o(7376),v=o(778),g=o(4892),w=o(5945),j=o(9219),M=o(6805),P=o(6417);var S=function(t){var e,o,r,i,a,l,c,p,d,m;const[f,v,S,C,b]=(0,s.Z)(),O=(0,h.MO)("whatmoreShopId"),k="portrait"===b[M.YP],I=(k?1.076*v*(0,y.pE)(O):v*(0,y.H4)(O))+"px",E=(k?1.076*v*(0,y.pE)(O):v*(0,y.H4)(O))+"px",T=(k?.965*v*(0,y.pE)(O):.859*v*(0,y.H4)(O))+"px",W=t.event,F=(0,h.MO)("whatmoreSecondaryColor");var N=(0,n.useContext)(u.V);const R=null===(e=t.isOnFocus)||void 0===e||e,Z=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,z=t.onClick,{whatmoreUITheme:_}=(0,n.useContext)(x.I),D=((0,y.nz)(O),null!==(r=t.animateOnFocus&&(0,y.iW)(O))&&void 0!==r&&r),q=(0,h.MO)("whatmorePrimaryFont"),L=Math.round(+(null===(i=W.products[0])||void 0===i?void 0:i.price)),Y=Math.round(+(null===(a=W.products[0])||void 0===a?void 0:a.compare_price)),A=Y&&0!=Y&&Y>L?Math.ceil((Y-L)/Y*100):NaN;return(0,P.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",N.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",N.tileBottomMMargin+"px","important"))},className:D&&!k?R?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:v},onClick:()=>{z(W)},children:[(0,P.jsx)("div",{style:{borderRadius:"round"==_?"5%":"0px",boxShadow:"round"==_?"0px 0px 5px 0px #B0B0B0":null,height:f,borderWidth:(0,y.al)(O),borderColor:(0,y.qP)(O),overflow:"hidden"},children:(0,P.jsx)(g.Z,{height:"100%",width:"100%",url:W.thumbnail_image,isPlaying:R||Z,event:W})}),(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",padding:"12px 4px",gap:"5px"},children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",I,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",q,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,w.s)(null===(l=W.products[0])||void 0===l?void 0:l.title)}),(0,P.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",E,"important"),t.style.setProperty("font-family",q,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,j.jx)(parseFloat(null===(c=W.products[0])||void 0===c?void 0:c.price)," ",O,null===(p=W.products[0])||void 0===p?void 0:p.currency)}),!isNaN(Y)&&Y>L&&(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",E,"important"),t.style.setProperty("font-family",q,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,j.jx)(parseFloat(null===(d=W.products[0])||void 0===d?void 0:d.compare_price)," ",O,null===(m=W.products[0])||void 0===m?void 0:m.currency)})]}),!isNaN(A)&&0!=A&&(0,P.jsx)("div",{style:{display:"flex",backgroundColor:"#343434"==F?(0,y.ZJ)(O):F,alignItems:"center",borderRadius:"4px",width:"fit-content",padding:"3px 6px"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.ms)(O),"important"),t.style.setProperty("font-size",T,"important"),t.style.setProperty("font-family",q,"important"))},children:"".concat(A,"% Off")})})]})]})},C=o(7381);const b=(0,l.Z)({key:"whatmore-css-hv"});function O(t){const[e,o,r]=(0,s.Z)(),i=(0,h.MO)("whatmoreShopId"),a=t.events,l=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(x.I),p=Math.ceil(r),d=2*p,[u,g]=(0,n.useState)(d),[w,j]=(0,n.useState)(2*p),M=0===(0,y.WG)(i)?24:(0,y.WG)(i),[C,b]=(0,n.useState)({touchX:0,touchY:0}),O=t=>{if("next"===t){const t=2;j((t=>Math.min(t+Math.floor(r),a.length+p+1))),g((e=>Math.min(e+t,a.length+p+1)))}else j((t=>Math.max(t-Math.floor(r),d)));(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,P.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"flex-start",paddingLeft:"12px",overflow:"hidden"},onTouchStart:t=>{b({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,n,r;const i=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,a=(null===(n=t.changedTouches)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.clientY)-C.touchY;Math.sqrt(i**2+a**2)>10&&Math.abs(i)>Math.abs(a)&&O(i>0?"prev":"next")},children:(0,P.jsx)("div",{style:{display:"flex",gap:M,transform:"translateX(-".concat((w-d)*(o+M),"px)"),transition:"transform 0.4s ease-in-out"},children:a.map(((t,e)=>e<u?(0,P.jsx)("div",{children:(0,P.jsx)(S,{isOnFocus:e<=w-p-1&&e>=Math.max(0,w-d),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>l(t)})},"whatmore-carousel-tile-".concat(e)):(0,P.jsx)(m.Z,{})))})})}function k(t){const[e,o,r,i]=(0,s.Z)(),[a,l]=(0,n.useState)(-1),c=(0,h.MO)("whatmoreShopId"),[p,u]=(0,n.useState)("next"),m=t.onClick,g=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(x.I),j=Math.min(Math.ceil(r),g.length),[M,C]=(0,n.useState)(0),b=0===(0,y.WG)(c)?24:(0,y.WG)(c),O=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:T,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),k=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:E,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)((()=>{M<=j&&C((t=>t+j))}),[j]);const I=()=>{l(-1)},E=()=>{M!==j&&(u("prev"),C((t=>Math.max(Math.ceil(t-r),j))),(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},T=()=>{M>g.length+r||(u("next"),C((t=>Math.floor(t+r))),(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},W=M>g.length?g.length-j+1:M-j,F=M>=g.length?g.length:W+j,N=g.slice(W,F);return(0,P.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"".concat(i,"px"),paddingRight:"".concat(i,"px")},children:[(0,P.jsx)("div",{style:{position:"absolute",left:"0",zIndex:100,top:"50%",transform:"translateX(50%) translateY(-65%)"},children:M!==j&&(0,P.jsx)(k,{})}),(0,P.jsx)("div",{style:{display:"flex",gap:b+"px",width:"".concat(o*r*1.1,"px"),paddingLeft:"8px",overflow:"hidden"},children:N.map(((t,e)=>{const o="whatmore-event-tile-landscape-".concat(t.index).concat(e===j-1?"-last":""),n=e===a;return(0,P.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-".concat("next"===p?"next":"prev"),onMouseEnter:()=>(t=>{const e=d()((()=>l(t)),300);return e(),e.cancel})(e),onMouseLeave:I,children:(0,P.jsx)(S,{isOnFocus:n,playOnUnfocus:!0,animateOnFocus:!0,event:t,onClick:()=>(t=>{m(t)})(t)})},o)}))}),(0,P.jsx)("div",{style:{position:"absolute",zIndex:100,top:"50%",right:i+"px",transform:"translateY(-65%)"},children:M<=g.length&&(0,P.jsx)(O,{})})]})}var I=function(t){var e;const[o,l,s]=(0,c.Z)(),[p]=(0,h.j1)("whatmoreShopId"),[d]=(0,h.j1)("whatmorePrimaryColor"),[m]=(0,h.j1)("whatmoreSecondaryColor"),[f]=(0,h.j1)("whatmoreTitleFont"),v="portrait"==o?(0,h.MO)("whatmoreTitleFontSizePortrait"):(0,h.MO)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(x.I),w=t.events,j=t.onClick,M=null!==(e=(0,y.aR)(p))&&void 0!==e?e:f;function S(t){j(t)}return 0==w.length&&x.$.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-a"]')||t.querySelector('.whatmore-template-type[data-wh="template-b"]')||t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-a"]')||t.querySelector('.whatmore-template-type[data="template-b"]')||t.querySelector('.whatmore-template-type[data="template-f"]')))return;const o=t.querySelector(".whatmore-render-root");o&&(o.style.minHeight="0px")})),(0,n.useEffect)((()=>{(0,C.Oo)("Video shopping powered by Whatmore!")}),[]),delete i.ZP.styles.global,(0,P.jsx)(a.C,{value:b,children:(0,P.jsx)("div",{children:(0,P.jsx)(r.x,{theme:i.ZP,cssVarsRoot:g,resetCSS:!1,children:(0,P.jsxs)(u.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0?(0,P.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",M,"important"),t.style.setProperty("font-size",v+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.wO)(p),lineHeight:(0,y.vY)(p),letterSpacing:(0,y.X2)(p)},children:t.heading})}):(0,P.jsx)(P.Fragment,{}),"landscape"===o?(0,P.jsx)(k,{events:w,onClick:S}):(0,P.jsx)(O,{events:w,onClick:S})]})})})})}},7129:function(t,e,o){o.d(e,{V:function(){return n}});const n=(0,o(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},1855:function(t,e,o){var n=o(7313),r=o(9821),i=o(7129),a=o(6417);e.Z=function(t){var[e,o]=(0,r.Z)();return(0,n.useContext)(i.V),t.event,(0,a.jsx)("div",{style:{margin:"0 auto",width:o,height:e,overflow:"hidden"}})}},3439:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[692],{3388:function(e,t,n){n.d(t,{OC:function(){return l},e8:function(){return r},kT:function(){return i},kW:function(){return a},xg:function(){return o}});const i=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},o=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e,t){if(null!=e)return e.filter((e=>1==i(e)))},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const l=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const i=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return i?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(i):[]}},5380:function(e,t,n){n.d(t,{Z:function(){return v}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),l=n(7753),s=n(9821);var d=function(e){const[t,n,i,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,n*h,r]},c=n(9723),h=n(9461),p=n.n(h),u=n(1195),x=n(7108),f=(n(7244),n(123),n(9854)),g=n(9039),m=n(6417);var v=function(e){var t;const n=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:w}=(0,o.useContext)(g.I),[b]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[I]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,l.MO)("whatmoreShopId");var k=j,C=y,L=S;v[a.YP]===a.$w&&(k=E,C=I,L=z);const[O,M]=(0,o.useState)(["initial",window.pageYOffset]),[_,A]=(0,o.useState)(!1),T=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=v[a.YP]===a.$w?.7*(0,f.zG)(P):(0,f.zG)(P),B=T?V:1;s*=B,h*=B;const F=T?(0,f.G0)(P):k,R=T?(0,f.X8)(P):(0,f.lV)(P),[Z,D]=(0,o.useState)(!T&&(0,f.eX)(P));function N(e,t){M(e),e[1]<=100?A(!1):t!=_&&(A(t),D(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(N([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[O]),(0,i.O3)({ref:n,handler:()=>{N(["scrolled-up",O[1]],!0)}});const Y=e.event,G=e.inVideoClick,H=e.closeClick,W=.3*h,$=.6*h,K=.1*h,U=.1*(.5*h),X="round"==w?"10px":"0px",q=(0,f.Z$)(P);var J=!1,Q=0,ee=0;function te(e){J=e}return(0,m.jsx)("div",{children:Z&&!R?(0,m.jsx)(m.Fragment,{}):_&&R?(0,m.jsx)("div",{style:"left"===F?{left:"1px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q},children:(0,m.jsxs)("div",{onClick:()=>{N(["initial",O[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===F?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:X,overflow:"hidden"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,m.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,m.jsx)(u.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:W+"px"},style:{position:"relative",zIndex:1,left:U+"px",bottom:U+"px"},onClick:H})})}),(0,m.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,m.jsx)(x.Z,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,m.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,Q=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):G(Y)},children:(0,m.jsx)("div",{ref:n,style:"left"===F?{left:T?(0,f.$I)(P)+"px":C+"px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q}:{right:T?(0,f.$I)(P)+"px":C+"px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q},children:(0,m.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===F?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:X,overflow:"hidden",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,m.jsx)(u.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:W+"px"},onClick:H,style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"}})}),(0,m.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,m.jsx)(c.Z,{sx:{color:(0,f.Y)(P),fontSize:$+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,m.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:X,borderBottomRightRadius:X,backgroundImage:b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,m.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*W+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",b]})})]})})]})})})})}},2209:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),l=n(5160),s=n(6967),d=n(5380),c=n(58),h=n(8984),p=n(4669),u=n(941),x=n(9302),f=n(7381),g=n(2575),m=n(7300),v=n(6524),w=n(3388),b=n(7643),j=n(778),y=n(6417);const S=(0,g.Z)({key:"whatmore-css-wsv"}),E=i.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(210),n.e(803),n.e(926),n.e(303),n.e(171),n.e(708)]).then(n.bind(n,8171))));t.default=function(e){const[t,n]=(0,i.useState)(),[g,I]=(0,i.useState)(),[z]=(0,a.j1)("isInDesignMode"),[P]=(0,a.j1)("isDemoBrand"),[k,C]=(0,i.useState)(-2),[L]=(0,a.j1)("whatmoreShopId"),O=(0,a.MO)("isLandingSharedLink"),M=(0,a.MO)("whatmoreShareTemplateId"),_=((0,a.MO)("whatmoreShareStoryId"),(0,a.MO)("whatmoreShareEventId")),A=(0,a.MO)("whatmoreLandingLocationType"),T=(0,a.MO)("whatmoreLoggingActive");var V=(0,o.ef)(L)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/";(0,i.useEffect)((()=>{(0,s.hb)()}),[]),(0,i.useEffect)((()=>{(0,p.ll)(L)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||g||!(0,h.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,i.useEffect)((()=>{C(-1);const e=v.NX,t=(0,v.H1)(A),i=V.toString()+L.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+L;fetch(i).then((e=>e.json())).then((t=>(0,w.OC)(t,e))).then((e=>(n(e),e))).catch((e=>{I(e.message)}))}),[]),(0,i.useEffect)((()=>{C(-2)}),[t]),(0,i.useEffect)((()=>{null==t||0==t.length||g||O&&"template-embed"==(0,v.zv)(M)&&null!=_&&t.forEach(((e,t)=>{_==e.event_id&&B(e,!0,t)}))}),[t]);const B=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,h.KE)()&&!t&&(0,c.QV)(),(0,m.B6)(e)||(0,m.WJ)(e))return z||P||(async()=>{(0,l.wh)(e),(0,p.Tc)(L,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"spotlight","video_popup")})(),void C(n)};function F(){return(0,y.jsx)(y.Fragment,{})}return null==t||0==t.length||g?(0,y.jsx)("div",{}):(T&&(0,f.EI)(t),(0,y.jsx)(x.C,{value:S,children:-1===k||0===t.length?(0,y.jsx)(F,{}):-2===k&&t.length>0?(0,y.jsx)("div",{children:(0,y.jsx)(b.u,{userInteractionType:j.K.SPOTLIGHT_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!P,children:(0,y.jsx)(d.Z,{event:t[0],inVideoClick:B,closeClick:e=>{e.stopPropagation(),C(-1)},isSpotlight:!0})})}):(0,y.jsx)("div",{children:(0,y.jsx)(i.Suspense,{children:(0,y.jsx)(b.u,{userInteractionType:j.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!P,children:(0,y.jsx)(E,{events:t,index:k,onBack:function(){(0,o.n2)(L)&&(0,a.MO)("whatmoreAddedToCart")&&(0,u.D)(L,(()=>{}),100,window.location.hostname),C(-2)},template:"template-embed"})})})})}))}}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[692],{3388:function(e,t,n){n.d(t,{OC:function(){return l},e8:function(){return r},kT:function(){return i},kW:function(){return a},xg:function(){return o}});const i=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},o=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e,t){if(null!=e)return e.filter((e=>1==i(e)))},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const l=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const i=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return i?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(i):[]}},5380:function(e,t,n){n.d(t,{Z:function(){return v}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),l=n(7753),s=n(9821);var d=function(e){const[t,n,i,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,n*h,r]},c=n(9723),h=n(9461),p=n.n(h),u=n(1195),x=n(7108),f=(n(7244),n(123),n(9854)),g=n(9039),m=n(6417);var v=function(e){var t;const n=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:w}=(0,o.useContext)(g.I),[b]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[I]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,l.MO)("whatmoreShopId");var k=j,C=y,L=S;v[a.YP]===a.$w&&(k=E,C=I,L=z);const[O,M]=(0,o.useState)(["initial",window.pageYOffset]),[_,A]=(0,o.useState)(!1),T=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=v[a.YP]===a.$w?.7*(0,f.zG)(P):(0,f.zG)(P),B=T?V:1;s*=B,h*=B;const F=T?(0,f.G0)(P):k,R=T?(0,f.X8)(P):(0,f.lV)(P),[Z,D]=(0,o.useState)(!T&&(0,f.eX)(P));function N(e,t){M(e),e[1]<=100?A(!1):t!=_&&(A(t),D(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(N([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[O]),(0,i.O3)({ref:n,handler:()=>{N(["scrolled-up",O[1]],!0)}});const Y=e.event,G=e.inVideoClick,H=e.closeClick,W=.3*h,$=.6*h,K=.1*h,U=.1*(.5*h),X="round"==w?"10px":"0px",q=(0,f.Z$)(P);var J=!1,Q=0,ee=0;function te(e){J=e}return(0,m.jsx)("div",{children:Z&&!R?(0,m.jsx)(m.Fragment,{}):_&&R?(0,m.jsx)("div",{style:"left"===F?{left:"1px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q},children:(0,m.jsxs)("div",{onClick:()=>{N(["initial",O[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===F?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:X,overflow:"hidden"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,m.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,m.jsx)(u.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:W+"px"},style:{position:"relative",zIndex:1,left:U+"px",bottom:U+"px"},onClick:H})})}),(0,m.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,m.jsx)(x.Z,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,m.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,Q=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):G(Y)},children:(0,m.jsx)("div",{ref:n,style:"left"===F?{left:T?(0,f.$I)(P)+"px":C+"px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q}:{right:T?(0,f.$I)(P)+"px":C+"px",bottom:T?(0,f.vn)(P)+"px":L+"px",position:"fixed",zIndex:q},children:(0,m.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===F?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:X,overflow:"hidden",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,m.jsx)(u.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:W+"px"},onClick:H,style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"}})}),(0,m.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,m.jsx)(c.Z,{sx:{color:(0,f.Y)(P),fontSize:$+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,m.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:X,borderBottomRightRadius:X,backgroundImage:b?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,m.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*W+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",b]})})]})})]})})})})}},2209:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),l=n(5160),s=n(6967),d=n(5380),c=n(58),h=n(8984),p=n(4669),u=n(941),x=n(9302),f=n(7381),g=n(2575),m=n(7300),v=n(6524),w=n(3388),b=n(7643),j=n(778),y=n(6417);const S=(0,g.Z)({key:"whatmore-css-wsv"}),E=i.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(210),n.e(803),n.e(926),n.e(303),n.e(209),n.e(708)]).then(n.bind(n,4209))));t.default=function(e){const[t,n]=(0,i.useState)(),[g,I]=(0,i.useState)(),[z]=(0,a.j1)("isInDesignMode"),[P]=(0,a.j1)("isDemoBrand"),[k,C]=(0,i.useState)(-2),[L]=(0,a.j1)("whatmoreShopId"),O=(0,a.MO)("isLandingSharedLink"),M=(0,a.MO)("whatmoreShareTemplateId"),_=((0,a.MO)("whatmoreShareStoryId"),(0,a.MO)("whatmoreShareEventId")),A=(0,a.MO)("whatmoreLandingLocationType"),T=(0,a.MO)("whatmoreLoggingActive");var V=(0,o.ef)(L)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/";(0,i.useEffect)((()=>{(0,s.hb)()}),[]),(0,i.useEffect)((()=>{(0,p.ll)(L)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||g||!(0,h.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,i.useEffect)((()=>{C(-1);const e=v.NX,t=(0,v.H1)(A),i=V.toString()+L.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+L;fetch(i).then((e=>e.json())).then((t=>(0,w.OC)(t,e))).then((e=>(n(e),e))).catch((e=>{I(e.message)}))}),[]),(0,i.useEffect)((()=>{C(-2)}),[t]),(0,i.useEffect)((()=>{null==t||0==t.length||g||O&&"template-embed"==(0,v.zv)(M)&&null!=_&&t.forEach(((e,t)=>{_==e.event_id&&B(e,!0,t)}))}),[t]);const B=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,h.KE)()&&!t&&(0,c.QV)(),(0,m.B6)(e)||(0,m.WJ)(e))return z||P||(async()=>{(0,l.wh)(e),(0,p.Tc)(L,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"spotlight","video_popup")})(),void C(n)};function F(){return(0,y.jsx)(y.Fragment,{})}return null==t||0==t.length||g?(0,y.jsx)("div",{}):(T&&(0,f.EI)(t),(0,y.jsx)(x.C,{value:S,children:-1===k||0===t.length?(0,y.jsx)(F,{}):-2===k&&t.length>0?(0,y.jsx)("div",{children:(0,y.jsx)(b.u,{userInteractionType:j.K.SPOTLIGHT_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!P,children:(0,y.jsx)(d.Z,{event:t[0],inVideoClick:B,closeClick:e=>{e.stopPropagation(),C(-1)},isSpotlight:!0})})}):(0,y.jsx)("div",{children:(0,y.jsx)(i.Suspense,{children:(0,y.jsx)(b.u,{userInteractionType:j.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!P,children:(0,y.jsx)(E,{events:t,index:k,onBack:function(){(0,o.n2)(L)&&(0,a.MO)("whatmoreAddedToCart")&&(0,u.D)(L,(()=>{}),100,window.location.hostname),C(-2)},template:"template-embed"})})})})}))}}}]);