whatmore-react-assets 1.0.320 → 1.0.322

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.320",
3
+ "version": "1.0.322",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ .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-loading-indicator-keyframe{0%,to{box-shadow:0 -2.6em 0 0 #fff,1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.5),-1.8em -1.8em 0 0 hsla(0,0%,100%,.7)}12.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.7),1.8em -1.8em 0 0 #fff,2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.5)}25%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.5),1.8em -1.8em 0 0 hsla(0,0%,100%,.7),2.5em 0 0 0 #fff,1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}37.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.5),2.5em 0 0 0 hsla(0,0%,100%,.7),1.75em 1.75em 0 0 #fff,0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}50%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.5),1.75em 1.75em 0 0 hsla(0,0%,100%,.7),0 2.5em 0 0 #fff,-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}62.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.5),0 2.5em 0 0 hsla(0,0%,100%,.7),-1.8em 1.8em 0 0 #fff,-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}75%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.5),-1.8em 1.8em 0 0 hsla(0,0%,100%,.7),-2.6em 0 0 0 #fff,-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}87.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.5),-2.6em 0 0 0 hsla(0,0%,100%,.7),-1.8em -1.8em 0 0 #fff}}@keyframes whatmore-loading-indicator-keyframe{0%,to{box-shadow:0 -2.6em 0 0 #fff,1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.5),-1.8em -1.8em 0 0 hsla(0,0%,100%,.7)}12.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.7),1.8em -1.8em 0 0 #fff,2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.5)}25%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.5),1.8em -1.8em 0 0 hsla(0,0%,100%,.7),2.5em 0 0 0 #fff,1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}37.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.5),2.5em 0 0 0 hsla(0,0%,100%,.7),1.75em 1.75em 0 0 #fff,0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}50%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.5),1.75em 1.75em 0 0 hsla(0,0%,100%,.7),0 2.5em 0 0 #fff,-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}62.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.5),0 2.5em 0 0 hsla(0,0%,100%,.7),-1.8em 1.8em 0 0 #fff,-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}75%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.5),-1.8em 1.8em 0 0 hsla(0,0%,100%,.7),-2.6em 0 0 0 #fff,-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}87.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.5),-2.6em 0 0 0 hsla(0,0%,100%,.7),-1.8em -1.8em 0 0 #fff}}@-webkit-keyframes whatmore-transform-to-minimized{0%{transform:scaleX(var(--ultraminimized-scale-factor)) scaleY(calc(var(--ultraminimized-scale-factor)*var(--portrait-to-square-factor)));transform-origin:center var(--direction)}to{transform:scale(1)}}@keyframes whatmore-transform-to-minimized{0%{transform:scaleX(var(--ultraminimized-scale-factor)) scaleY(calc(var(--ultraminimized-scale-factor)*var(--portrait-to-square-factor)));transform-origin:center var(--direction)}to{transform:scale(1)}}@-webkit-keyframes whatmore-transform-to-ultraminimized{0%{transform:scale(1)}to{transform:scaleX(var(--ultraminimized-scale-factor)) scaleY(calc(var(--ultraminimized-scale-factor)*var(--portrait-to-square-factor)));transform-origin:center var(--direction)}}@keyframes whatmore-transform-to-ultraminimized{0%{transform:scale(1)}to{transform:scaleX(var(--ultraminimized-scale-factor)) scaleY(calc(var(--ultraminimized-scale-factor)*var(--portrait-to-square-factor)));transform-origin:center var(--direction)}}@-webkit-keyframes whatmore-ultraminimized-content-scale-out-keyframe{0%{transform:scale(1)}to{transform:scale(calc(1 + var(--ultraminimized-scale-factor)))}}@keyframes whatmore-ultraminimized-content-scale-out-keyframe{0%{transform:scale(1)}to{transform:scale(calc(1 + var(--ultraminimized-scale-factor)))}}.whatmore-minimized-video-view-left{--ultraminimized-scale-factor:0.5;--animation-duration-to-ultra-minimized:0.4s;--animation-duration-to-minimized:0.4s;--animation-curve:cubic-bezier(.06,.92,.59,1.32);--ultra-minimized-scale-factor:0.5;--portrait-to-square-factor:1;--direction:left;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmore-transform-to-minimized;animation-name:whatmore-transform-to-minimized;-webkit-animation-timing-function:var(--animation-curve);animation-timing-function:var(--animation-curve)}.whatmore-minimized-video-view-left,.whatmore-minimized-video-view-right{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:var(--animation-duration-to-minimized);animation-duration:var(--animation-duration-to-minimized)}.whatmore-minimized-video-view-right{--ultraminimized-scale-factor:0.5;--animation-duration-to-ultra-minimized:0.4s;--animation-duration-to-minimized:0.4s;--animation-curve:cubic-bezier(.06,.92,.59,1.32);--ultra-minimized-scale-factor:0.5;--portrait-to-square-factor:1;--direction:right;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmore-transform-to-minimized-left;animation-name:whatmore-transform-to-minimized-left;-webkit-animation-timing-function:var(--animation-curve);animation-timing-function:var(--animation-curve)}.whatmore-ultraminimized-video-view-left{--ultraminimized-scale-factor:0.5;--animation-duration-to-ultra-minimized:0.4s;--animation-duration-to-minimized:0.4s;--animation-curve:cubic-bezier(.06,.92,.59,1.32);--ultra-minimized-scale-factor:0.5;--portrait-to-square-factor:1;--direction:left}.whatmore-ultraminimized-video-view-left,.whatmore-ultraminimized-video-view-right{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:var(--animation-duration-to-ultra-minimized);animation-duration:var(--animation-duration-to-ultra-minimized);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmore-transform-to-ultraminimized;animation-name:whatmore-transform-to-ultraminimized;-webkit-animation-timing-function:var(--animation-curve);animation-timing-function:var(--animation-curve)}.whatmore-ultraminimized-content-scale-out,.whatmore-ultraminimized-video-view-right{--ultraminimized-scale-factor:0.5;--animation-duration-to-ultra-minimized:0.4s;--animation-duration-to-minimized:0.4s;--animation-curve:cubic-bezier(.06,.92,.59,1.32);--ultra-minimized-scale-factor:0.5;--portrait-to-square-factor:1;--direction:right}.whatmore-ultraminimized-content-scale-out{-webkit-animation-direction:linear;animation-direction:linear;-webkit-animation-duration:var(--animation-duration-to-ultra-minimized);animation-duration:var(--animation-duration-to-ultra-minimized);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:whatmore-ultraminimized-content-scale-out-keyframe;animation-name:whatmore-ultraminimized-content-scale-out-keyframe;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.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;height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;overflow:hidden!important;width:100%!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}
@@ -0,0 +1 @@
1
+ @-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}.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!important;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
+ .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;height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;overflow:hidden!important;width:100%!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}@-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}}.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-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-loading-indicator-keyframe{0%,to{box-shadow:0 -2.6em 0 0 #fff,1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.5),-1.8em -1.8em 0 0 hsla(0,0%,100%,.7)}12.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.7),1.8em -1.8em 0 0 #fff,2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.5)}25%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.5),1.8em -1.8em 0 0 hsla(0,0%,100%,.7),2.5em 0 0 0 #fff,1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}37.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.5),2.5em 0 0 0 hsla(0,0%,100%,.7),1.75em 1.75em 0 0 #fff,0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}50%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.5),1.75em 1.75em 0 0 hsla(0,0%,100%,.7),0 2.5em 0 0 #fff,-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}62.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.5),0 2.5em 0 0 hsla(0,0%,100%,.7),-1.8em 1.8em 0 0 #fff,-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}75%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.5),-1.8em 1.8em 0 0 hsla(0,0%,100%,.7),-2.6em 0 0 0 #fff,-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}87.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.5),-2.6em 0 0 0 hsla(0,0%,100%,.7),-1.8em -1.8em 0 0 #fff}}@keyframes whatmore-loading-indicator-keyframe{0%,to{box-shadow:0 -2.6em 0 0 #fff,1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.5),-1.8em -1.8em 0 0 hsla(0,0%,100%,.7)}12.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.7),1.8em -1.8em 0 0 #fff,2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.5)}25%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.5),1.8em -1.8em 0 0 hsla(0,0%,100%,.7),2.5em 0 0 0 #fff,1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}37.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.5),2.5em 0 0 0 hsla(0,0%,100%,.7),1.75em 1.75em 0 0 #fff,0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}50%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.5),1.75em 1.75em 0 0 hsla(0,0%,100%,.7),0 2.5em 0 0 #fff,-1.8em 1.8em 0 0 hsla(0,0%,100%,.2),-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}62.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.5),0 2.5em 0 0 hsla(0,0%,100%,.7),-1.8em 1.8em 0 0 #fff,-2.6em 0 0 0 hsla(0,0%,100%,.2),-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}75%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.5),-1.8em 1.8em 0 0 hsla(0,0%,100%,.7),-2.6em 0 0 0 #fff,-1.8em -1.8em 0 0 hsla(0,0%,100%,.2)}87.5%{box-shadow:0 -2.6em 0 0 hsla(0,0%,100%,.2),1.8em -1.8em 0 0 hsla(0,0%,100%,.2),2.5em 0 0 0 hsla(0,0%,100%,.2),1.75em 1.75em 0 0 hsla(0,0%,100%,.2),0 2.5em 0 0 hsla(0,0%,100%,.2),-1.8em 1.8em 0 0 hsla(0,0%,100%,.5),-2.6em 0 0 0 hsla(0,0%,100%,.7),-1.8em -1.8em 0 0 #fff}}
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[143],{4284:function(e,t,n){n.r(t);var o=n(7313),i=n(9854),a=n(2860),r=n(7753),c=n(5160),s=(n(4844),n(6967)),d=n(5380),l=n(58),h=n(8984),u=(n(7247),n(1824),n(4669)),p=n(941),w=n(9302),f=n(2575),v=n(7300),m=n(6524),g=n(6417);const E=(0,f.Z)({key:"whatmore-css-ppv"}),S=o.lazy((()=>Promise.all([n.e(648),n.e(576),n.e(853),n.e(843),n.e(926),n.e(310),n.e(282),n.e(204)]).then(n.bind(n,1862))));function j(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,o.useState)(),[f,y]=(0,o.useState)(),[_]=(0,r.j1)("isInDesignMode"),[k]=(0,r.j1)("isDemoBrand"),[b]=(0,r.j1)("whatmoreEmbedAppUseVariant"),[x,I]=(0,o.useState)(-2),[C]=(0,r.j1)("whatmoreVariantId"),[M]=(0,r.j1)("whatmoreShopId");var[O]=(0,r.j1)("whatmoreProductId");const P=(0,r.MO)("isLandingSharedLink"),T=(0,r.MO)("whatmoreShareTemplateId"),V=((0,r.MO)("whatmoreShareStoryId"),(0,r.MO)("whatmoreShareEventId"));O=(0,i.iX)(M)?j(window.location.href):O;const[D,L]=(0,o.useState)((()=>"true"===b?C:O));var U=a.Gc+"/v1/brand/"+M+"/product-events";(0,o.useEffect)((()=>{(0,s.hb)()}),[]),(0,o.useEffect)((()=>{(0,u.ll)(M)}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||f||!(0,h.KE)()||(0,r.MO)("whatmoreVideoPlayerPoolInitiated")||(0,l.b5)(l.UD)}),[t]),(0,o.useEffect)((()=>{I(-1),fetch(U.toString()+"?client_product_id="+D.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>(n(e),e))).then((e=>((0,i.yo)(M)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==j(window.location.href))return;const o={product_id:n.product_id,product_link:j(window.location.href)};fetch(a.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})}),500)}(e,D),e))).catch((e=>{y(e.message)}))}),[D]),(0,o.useEffect)((()=>{I(-2)}),[t]),(0,o.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===b){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var o=t[n].split("=");if(o[0]==e)return o[1]}return!1}("variant");e&&""!==e&&L(e)}}))}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||f||P&&"template-embed"==(0,m.zv)(T)&&null!=V&&t.forEach(((e,t)=>{V==e.event_id&&A(e,!0,t)}))}),[t]);const A=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,l.QV)(),(0,v.B6)(e)||(0,v.WJ)(e))return _||k||(async()=>{(0,c.wh)(e),(0,u.Tc)(M,a.h7,a.dU),(0,s.H4)(e.event_id,e.products,"product_page","video_popup")})(),void I(n)};function B(){return(0,g.jsx)(g.Fragment,{})}return null==t||0==t.length||f?(0,g.jsx)("div",{}):(0,g.jsx)(w.C,{value:E,children:"no-product"===D||-1===x||0===t.length?(0,g.jsx)(B,{}):-2===x&&t.length>0?(0,g.jsx)("div",{children:(0,g.jsx)(d.Z,{event:t[0],inVideoClick:A,closeClick:e=>{e.stopPropagation(),I(-1)}})}):(0,g.jsx)("div",{children:(0,g.jsx)(o.Suspense,{children:(0,g.jsx)(S,{events:t,index:x,onBack:function(){(0,i.n2)(M)&&(0,r.MO)("whatmoreAddedToCart")&&(0,p.D)(M,(()=>{}),100,window.location.hostname),I(-2)},template:"template-product-page"})})})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[184],{7381:function(e,t,n){function o(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200";const o=null!==(t=localStorage.getItem("whatmoreActivateLogs"))&&void 0!==t&&t;o&&(console.debug("###=======Whatmore Log start.======####"),console.debug("Fetched Events from Whatmore"),console.debug("response status code : "+n.status),console.debug("total events received : "+(e&&e.length)),o&&console.debug("events data : "+JSON.stringify(e)),console.debug("###=======Whatmore Log end.======####"))}n.d(t,{E:function(){return o}})},3388:function(e,t,n){n.d(t,{OC:function(){return u},e8:function(){return s},kT:function(){return o},kW:function(){return i},xg:function(){return r}});const o=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},r=function(e,t){return!(void 0==e.products||0==e.products.length)},s=function(e,t){if(null!=e)return e.filter((e=>1==o(e)))},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e[0].events:e};const u=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const o=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return o?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(o):[]}},2209:function(e,t,n){n.r(t);var o=n(7313),r=n(9854),s=n(2860),i=n(7753),u=n(5160),c=n(6967),l=n(5380),a=n(58),d=n(8984),h=n(4669),f=n(941),g=n(9302),v=n(7381),m=n(2575),p=n(7300),w=n(6524),E=n(3388),S=n(6417);const b=(0,m.Z)({key:"whatmore-css-wsv"}),j=o.lazy((()=>Promise.all([n.e(648),n.e(576),n.e(853),n.e(843),n.e(926),n.e(310),n.e(282),n.e(26)]).then(n.bind(n,1862))));t.default=function(e){const[t,n]=(0,o.useState)(),[m,k]=(0,o.useState)(),[x]=(0,i.j1)("isInDesignMode"),[O]=(0,i.j1)("isDemoBrand"),[M,_]=(0,o.useState)(-2),[y]=(0,i.j1)("whatmoreShopId"),C=(0,i.MO)("isLandingSharedLink"),L=(0,i.MO)("whatmoreShareTemplateId"),I=((0,i.MO)("whatmoreShareStoryId"),(0,i.MO)("whatmoreShareEventId")),D=(0,i.MO)("whatmoreLandingLocationType"),T=(0,i.MO)("whatmoreLoggingActive");var W=(0,r.ef)(y)?s.Dm+"/get_eventset/":s.Gc+"/get_eventset/";(0,o.useEffect)((()=>{(0,c.hb)()}),[]),(0,o.useEffect)((()=>{(0,h.ll)(y)}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||m||!(0,d.KE)()||(0,i.MO)("whatmoreVideoPlayerPoolInitiated")||(0,a.b5)(a.UD)}),[t]),(0,o.useEffect)((()=>{_(-1);const e=w.NX,t=(0,w.H1)(D),o=W.toString()+y.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+y;fetch(o).then((e=>e.json())).then((t=>(0,E.OC)(t,e))).then((e=>(n(e),e))).catch((e=>{k(e.message)}))}),[]),(0,o.useEffect)((()=>{_(-2)}),[t]),(0,o.useEffect)((()=>{null==t||0==t.length||m||C&&"template-embed"==(0,w.zv)(L)&&null!=I&&t.forEach(((e,t)=>{I==e.event_id&&P(e,!0,t)}))}),[t]);const P=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,d.KE)()&&!t&&(0,a.QV)(),(0,p.B6)(e)||(0,p.WJ)(e))return x||O||(async()=>{(0,u.wh)(e),(0,h.Tc)(y,s.h7,s.dU),(0,c.H4)(e.event_id,e.products,"spotlight","video_popup")})(),void _(n)};function A(){return(0,S.jsx)(S.Fragment,{})}return null==t||0==t.length||m?(0,S.jsx)("div",{}):(T&&(0,v.E)(t),(0,S.jsx)(g.C,{value:b,children:-1===M||0===t.length?(0,S.jsx)(A,{}):-2===M&&t.length>0?(0,S.jsx)("div",{children:(0,S.jsx)(l.Z,{event:t[0],inVideoClick:P,closeClick:e=>{e.stopPropagation(),_(-1)}})}):(0,S.jsx)("div",{children:(0,S.jsx)(o.Suspense,{children:(0,S.jsx)(j,{events:t,index:M,onBack:function(){(0,r.n2)(y)&&(0,i.MO)("whatmoreAddedToCart")&&(0,f.D)(y,(()=>{}),100,window.location.hostname),_(-2)},template:"template-embed"})})})}))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[204,26],{499:function(t,n){n.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(t,n,e){var r=e(499);n.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var n=t.start_time+":00",e=t.end_time,a=t.scheduled_date,s=t.status,u=t.time_zone;if(s.toUpperCase()==r.Z.LIVE.name)return{status:r.Z.LIVE,bannerText:" "+r.Z.LIVE.name+" ",timeToStartInMins:0};if(s.toUpperCase()==r.Z.UPCOMING.name){var i=new Date(a+" "+n+" "+u),o=(new Date(a+" "+e+" "+u),function(t){var n=new Date,e=(t.getTime()-n.getTime())/1e3,a=e/60,s=a/60,u=s/24;return e<=0?{status:r.Z.COMPLETED,bannerText:" "+r.Z.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:a<60?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(a)+" min ",timeToStartInMins:a}:s<24?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(s)+" hr ",timeToStartInMins:60*s}:u<7?{status:r.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*u*24}:{status:r.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(i));return{status:o.status,bannerText:o.bannerText,timeToStartInMins:o.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(t,n,e){e.d(n,{OC:function(){return i},e8:function(){return s},kT:function(){return r},kW:function(){return u},xg:function(){return a}});const r=function(t,n){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},a=function(t,n){return!(void 0==t.products||0==t.products.length)},s=function(t,n){if(null!=t)return t.filter((t=>1==r(t)))},u=function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=t)return n?t[0].events:t};const i=function(t,n){var e;if(null==t)return[];if(!("eventsets"in t))return[];const r=null!==(e=t.eventsets[n])&&void 0!==e?e:null;return r?function(t){if(null==t||0==t.length)return[];let n=[];return t.forEach((t=>{t.events.forEach((t=>{n.push(t)}))})),n}(r):[]}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[244],{51:function(e,t,n){n.d(t,{Z:function(){return i}});n(7313);var o=n(6417);var i=function(e){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("span",{className:"whatmore-loading-indicator"})})}},3175:function(e,t,n){var o=n(208),i=n(51),r=n(6417);t.Z=function(e){var t,n;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.jsxs)("div",{style:{width:s,height:a,overflow:"hidden"},children:[(0,r.jsx)(o.Od,{height:"100%",width:"100%",speed:0,startColor:"#202020",endColor:"#606060"}),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,r.jsx)(i.Z,{})})})]})}},941:function(e,t,n){n.d(t,{D:function(){return o}});const o=async function(e,t,n,o){if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){var i=await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if("27358003275"==e||"63748341981"==e||"68237558034"==e)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{cart:i,openMiniCart:!0}}));else if("19506115"==e)window.PXUTheme.jsAjaxCart.showDrawer(),window.PXUTheme.jsAjaxCart.updateView();else if("54465429691"==e)refreshCart(i),window.setTimeout((function(){$.fancybox.close(),$(".cart-button").click()}),500);else if("25427564"==e||"4243849314"==e){(new theme.CartDrawer).open()}else"62602182872"==e||"57362710572"==e?(CartJS.getCart(),$(".block-cart").addClass("active")):"60492578980"==e||"12183765088"==e||"58546946211"==e||"42070737058"==e||"71321583919"==e||"68492624171"==e||"74541891876"==e?(document.documentElement.dispatchEvent(new CustomEvent("ajaxProduct:added",{bubbles:!0,detail:{}})),document.documentElement.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0,detail:{}}))):"36300750986"==e||"2665447536"==e?fetch("/?section_id=cart-drawer").then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").getElementById("cart-drawer").innerHTML;$("#cart-drawer").html(t),$('[aria-controls="cart-drawer"]')[0].click(),$(".header__cart-count .count-bubble ").html(cart.item_count).css("opacity",1)})):"57824805033"==e?fetch("/cart.json").then((e=>e.json())).then((e=>{fetch("/cart?view=item").then((e=>e.text())).then((t=>{const n=(new DOMParser).parseFromString(t,"text/html"),o=n.getElementById("CartDrawer"),i=document.getElementById("CartDrawer");o&&i&&(i.innerHTML=o.innerHTML),n.querySelector("#CartDrawer .totals__subtotal-value");const r=document.querySelector("cart-drawer");r&&r.classList.remove("is-empty");const a=document.querySelector("cart-drawer-items");a&&a.classList.remove("is-empty");const s=document.getElementById("cart-icon-bubble");if(s.querySelector(".cart-count-bubble"))s.querySelectorAll('.cart-count-bubble span[aria-hidden="true"]').forEach((t=>{t.textContent=e.item_count}));else{const t=document.createElement("div");t.className="cart-count-bubble",t.innerHTML='\n <span aria-hidden="true">'.concat(e.item_count,'</span>\n <span class="visually-hidden">').concat(e.item_count," items</span>\n "),s.appendChild(t)}s.click(),document.getElementById("CartDrawer-Overlay").addEventListener("click",(()=>{const e=document.querySelector("cart-drawer");e&&e.classList.remove("active"),document.body.classList.remove("overflow-hidden")}))}))})):"61094723750"==e?SLIDECART&&(SLIDECART_UPDATE(),SLIDECART_OPEN()):document.documentElement.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{}}));setTimeout(t,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},2887:function(e,t,n){var o=n(7313),i=(n(6422),n(3175)),r=n(6417);t.Z=function(e){var t,n,a;const[s,d]=(0,o.useState)(!1),c=o.useRef(0),u=(0,o.useRef)(null),l=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},h=null!==(n=e.height)&&void 0!==n?n:"100%",p=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,o.useEffect)((()=>{c.current=0;const e=setInterval((()=>{c.current=c.current+.03,u.current&&l(c.current,5),c.current>=5&&(c.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,r.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:p,height:h,overflow:"hidden"},children:[(0,r.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,r.jsx)("img",{ref:u,src:e.url,style:{objectFit:"cover",height:h,width:p,backgroundColor:"white"},alt:"image player",onLoad:()=>{d(!0)}})}),s?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(i.Z,{width:"100%",height:"100%"})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(7313),i=n(3933),r=n(868),a=n(8984),s=n(7300),d=(n(6422),n(2887)),c=n(6417);var u=function(e){var t,n;const r=(0,o.useRef)(null),[a,s,d]=(0,i.YD)({triggerOnce:!0}),u=null!==(t=e.height)&&void 0!==t?t:"100%",l=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{r.current&&(e.isPlaying?r.current.play():r.current.pause())}),[e.isPlaying,s]),(0,c.jsx)("div",{ref:a,style:{width:u,height:l,overflow:"hidden"},children:s?(0,c.jsx)("video",{ref:r,className:"whatmore-video-player",width:l,height:u,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:e.url,style:{backgroundColor:"white"}}):(0,c.jsx)("div",{width:l,height:u,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var l=function(e){var t,n,l;const[h,p,f]=(0,i.YD)({triggerOnce:!0});if((0,s.WJ)(e.event))return(0,c.jsx)(d.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const v=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;if((0,a.KE)())return(0,c.jsx)(u,{height:"100%",width:"100%",url:(0,r.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:v});const m=(0,o.useRef)(null),g=null!==(n=e.height)&&void 0!==n?n:"100%",w=null!==(l=e.width)&&void 0!==l?l:"100%";return(0,o.useEffect)((()=>{m.current&&(e.isPlaying?m.current.play():m.current.pause())}),[e.isPlaying,p]),(0,c.jsx)("div",{ref:h,style:{width:g,height:w,overflow:"hidden"},children:p?(0,c.jsx)("video",{ref:m,className:"whatmore-video-player",width:w,height:g,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,r.V)(e.url),style:{backgroundColor:"white"}}):(0,c.jsx)("div",{width:w,height:g,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},5380:function(e,t,n){n.d(t,{Z:function(){return g}});var o=n(4959),i=n(7313),r=n(4892),a=n(6805),s=n(7753),d=n(9821);var c=function(e){const[t,n,o,i,r]=(0,d.Z)(),[c]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[u]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),l=r[a.YP]===a.$w?u/100:c/100*1.2;return[t*l,n*l,r]},u=n(9723),l=n(9461),h=n.n(l),p=n(1195),f=n(7108),v=(n(7244),n(123),n(9854)),m=n(6417);var g=function(e){const t=i.useRef(null);var[n,d,l]=c();const[g]=(0,s.j1)("whatmoreEmbedAppVideoTitle"),[w]=(0,s.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[y]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[x]=(0,s.j1)("whatmoreEmbedAppPositionLandscape"),[j]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[P]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),_=(0,s.MO)("whatmoreShopId");var C=w,E=b,S=y;l[a.YP]===a.$w&&(C=x,E=j,S=P);const[T,k]=(0,i.useState)(["initial",window.pageYOffset]),[I,z]=(0,i.useState)(!1);function A(e,t){k(e),e[1]<=100?z(!1):t!=I&&z(t)}(0,i.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(A([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},o=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)}),[T]),(0,o.O3)({ref:t,handler:()=>{A(["scrolled-up",T[1]],!0)}});const O=e.event,L=e.inVideoClick,N=e.closeClick,D=.3*d,Z=.6*d,R=.1*d,M=.1*(.5*d),H="10px",J=(0,v.Z$)(_);var B=!1,V=0,F=0;function q(e){B=e}return(0,m.jsx)("div",{children:I&&(0,v.lV)(_)?(0,m.jsx)("div",{style:"left"===C?{left:"1px",bottom:S+"px",position:"fixed",zIndex:J}:{right:"5px",bottom:S+"px",position:"fixed",zIndex:J},children:(0,m.jsxs)("div",{onClick:()=>{A(["initial",T[1]],!1)},style:{margin:"1px",width:d+"px",height:n+"px"},className:"left"===C?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:H,overflow:"hidden"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:O.thumbnail_image,isPlaying:!1,event:O})})}),(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)(p.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:D+"px"},style:{position:"relative",zIndex:1,left:M+"px",bottom:M+"px"},onClick:N})})}),(0,m.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,m.jsx)(f.Z,{sx:{color:"white",fontSize:2*D+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,m.jsx)(h(),{nodeRef:t,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,o;n=t.x,o=t.y,V=n,F=o},onDrag:(e,t)=>{q(!0)},onStop:(e,t)=>{B&&(Math.abs(t.x-V)>5||Math.abs(t.y-F)>5)?q(!1):L(O)},children:(0,m.jsx)("div",{ref:t,style:"left"===C?{left:E+"px",bottom:S+"px",position:"fixed",zIndex:J}:{right:E+"px",bottom:S+"px",position:"fixed",zIndex:J},children:(0,m.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:d+"px",height:n+"px"}),className:"left"===C?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:H,overflow:"hidden",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:O.thumbnail_image,isMuted:!0,isPlaying:!0,event:O})})}),(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)(p.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:D+"px"},onClick:N,style:{position:"relative",zIndex:1,left:R+"px",bottom:R+"px"}})}),(0,m.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,m.jsx)(u.Z,{sx:{color:"white",fontSize:Z+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,m.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:H,borderBottomRightRadius:H,backgroundImage:g?"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*D+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",g]})})]})})]})})})})}},868:function(e,t,n){n.d(t,{V:function(){return s}});var o=n(9854),i=n(7753);const r={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,o.zp)(t))return e;if("AZURECDN"==(0,o.zp)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(r))if(e.includes(t))return e.replace(t,r[t]);return e}}if("BUNNYCDN"==(0,o.zp)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},7300:function(e,t,n){n.d(t,{B6:function(){return o},WJ:function(){return i},yC:function(){return r}});const o=function(e){return"video"===e.event_type},i=function(e){return"image"===e.event_type},r=function(e){return"livestream"===e.event_type}},6805:function(e,t,n){n.d(t,{$I:function(){return s},$w:function(){return c},AK:function(){return r},AL:function(){return a},YP:function(){return i},me:function(){return o},rE:function(){return d}});const o="device_type",i="device_mode",r="mobile",a="tablet",s="desktop",d="portrait",c="landscape"},6422:function(e,t,n){var o=n(7313),i=n(7753);t.Z=function(e){const[t,n]=(0,i.j1)("muted");return(0,o.useEffect)((()=>{}),[]),[t,n]}},8866:function(e,t,n){var o=n(7313);function i(){return[window.innerHeight,window.innerWidth]}t.Z=function(e){var[t,n]=i();const[r,a]=(0,o.useState)(["portrait",t,n]);return(0,o.useLayoutEffect)((()=>{function e(){var[e,t]=i();a(e>t?["portrait",e,t]:["landscape",e,t])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),r}},9821:function(e,t,n){var o=n(6367),i=n(7753),r=n(8866),a=n(6805);t.Z=function(e){const[t,n,s]=(0,r.Z)(),[d]=(0,i.j1)("whatmoreLandscapePadding"),[c]=(0,i.j1)("whatmoreVideoTileSize"),u=(0,o.useMediaQuery)({query:"(min-width: 1025px)"}),l=(0,o.useMediaQuery)({query:"(min-width: 481px)"}),h=!("portrait"!=t||!l),p=c/100*1.3*.5,f=c/100;var v=Math.min(s,n),[m,g,w,b]=[.6*v*(16/9),.6*v,1.4,0];function y(e){return Math.round(10*e)/10}var x={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(u){const e=g*p,t=m*p;[m,g,w,b]=[t,e,(s-2*d)/(1.1*e),d],x[a.me]=a.$I,x[a.YP]=a.$w}else if(h){var j=.8*g,P=.8*m;"portrait"==t?(j*=f,P*=f,[m,g,w,b]=[P,j,y(s/(1.2*j)),0],x[a.me]=a.AL,x[a.YP]=a.rE):([m,g,w,b]=[P,j,(s-2*d)/(1.1*j),d],x[a.me]=a.AL,x[a.YP]=a.$w)}else{j=g,P=m;"portrait"==t?(j*=f,P*=f,[m,g,w,b]=[P,j,y(s/(1.15*j)),0],x[a.me]=a.AK,x[a.YP]=a.rE):(j=.7*g,P=.7*m,[m,g,w,b]=[P,j,(s-2*d)/(1.1*j),d],x[a.me]=a.AK,x[a.YP]=a.$w)}return[m,g,w,b,x]}},5160:function(e,t,n){n.d(t,{$L:function(){return c},JX:function(){return d},Z6:function(){return r},rp:function(){return u},wh:function(){return i},wz:function(){return s},x0:function(){return a}});var o=n(2860);n(7753);function i(e){console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(o.Gc+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(console.debug("updating user view count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating user view count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating user view count user for event : ",e)}))}function r(e,t){console.debug("updating like count for event.");const n={event_id:e.event_id,increase_by:t};fetch(o.Gc+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(console.debug("updating like count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating like count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating like count user for event : ",e)}))}function a(e){console.debug("updating share count for event.");const t={event_id:e.event_id,increase_by:1};fetch(o.Gc+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>(console.debug("updating share count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating share count response : "+JSON.stringify(e))})).catch((e=>{console.error("error updating share count user for event : ",e)}))}function s(e,t){console.debug("updating event-product click count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(o.Gc+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(console.debug("updating user event-product click count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating user event-product click count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product click count for event {} : ",e.event_id,t)}))}function d(e,t,n){console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const i={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(o.Gc+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)}).then((e=>(console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating user event-product add to cart count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product add to cart count for event {} : ",e.event_id,t)}))}function c(e,t){console.debug("updating event-product buy now count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(o.Gc+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then((e=>(console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json()))).then((e=>{console.debug("updating user event-product buy now count response : "+JSON.stringify(e))})).catch((t=>{console.error("error updating user event-product buy now count for event {} : ",e.event_id,t)}))}async function u(){let{storeId:e="",eventId:t=0,productId:n="",variantId:i="",cartToken:r="",checkoutToken:a="",quantity:s=0,price:d="",actionType:c="",trackingId:u=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l={event_id:t,product_id:n,cart_token:r,checkout_token:a,quantity:s,price:d,variant_id:i,action_type:c,tracking_id:u};console.debug("initiating ATC metadata event for eventId {}, productId {}, variantId {} ",t,n,i);const h=await fetch(o.Gc+"/cart-metadata/"+e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(l)}).then((e=>(console.debug("initiating ATC metadata event for eventId {}, productId {}, variantId {} : HTTP "+e.status),e.json()))).catch((e=>{console.error("error initiating ATC metadata event for eventId {}, productId {}, variantId {} : ",t,n,i)}));return h}},4669:function(e,t,n){n.d(t,{Tc:function(){return l},ll:function(){return u}});var o=n(1824),i=n(7786),r=n(9854);n(7753);const a="Whatmore Video Shopping",s="Video View",d={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},c={homepage:"Home Page",product_page:"Product Page"};async function u(e){if((0,r.Dv)(e)&&null!==(0,r.hf)(e)&&(i.ZP.initialize((0,r.hf)(e)),console.debug("Whatmore: initialized GA4")),(0,r.hv)(e)&&null!==(0,r.BH)(e)){const t=(0,r.OQ)(e);o.ZP.initialize((0,r.BH)(e),{useExistingGa:t}),console.debug("Whatmore: initialized GA3")}}async function l(e,t,n){(0,r.hv)(e)&&null!==(0,r.BH)(e)&&(o.ZP.event({category:a,action:s,label:c[t]+":"+d[n]}),console.debug("Whatmore: pushed view event to GA3")),(0,r.Dv)(e)&&null!==(0,r.hf)(e)&&(i.ZP.event({category:a,action:s+":"+c[t]+":"+d[n],value:1,nonInteraction:!1}),console.debug("Whatmore: pushed view event to GA4"))}},123:function(){},7244:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[26],{499:function(t,e){e.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(t,e,n){var a=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,r=t.scheduled_date,s=t.status,i=t.time_zone;if(s.toUpperCase()==a.Z.LIVE.name)return{status:a.Z.LIVE,bannerText:" "+a.Z.LIVE.name+" ",timeToStartInMins:0};if(s.toUpperCase()==a.Z.UPCOMING.name){var o=new Date(r+" "+e+" "+i),u=(new Date(r+" "+n+" "+i),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,r=n/60,s=r/60,i=s/24;return n<=0?{status:a.Z.COMPLETED,bannerText:" "+a.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:a.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:r<60?{status:a.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" min ",timeToStartInMins:r}:s<24?{status:a.Z.UPCOMING,bannerText:"Starts in "+Math.round(s)+" hr ",timeToStartInMins:60*s}:i<7?{status:a.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*i*24}:{status:a.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(o));return{status:u.status,bannerText:u.bannerText,timeToStartInMins:u.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:a.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[310],{1862:function(t,e,n){n.r(e),n.d(e,{EventClickComponentContext:function(){return wn},default:function(){return jn}});var i=n(4897),o=n(7313),r=n(5160),a=n(7753),l=n(6417);var s=n(499),d=n(6422),c=n(2210),h=n(8486),u=n(3271),x=n(9854),p=n(8866);var g=function(t){const[e,n,i]=(0,p.Z)();var o="landscape"==e?n*(9/16):i;if("landscape"==e){const t=.85;return[n,o,n*t,o*t]}return[n,o,n,o]},f=n(7053),m=n(4844);var w=function(t){const[e,n,i,o]=g(),[r]=(0,d.Z)(),[s]=(0,a.j1)("whatmorePrimaryColor"),[c]=(0,a.j1)("whatmoreSecondaryColor"),h="flex-end";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:o,height:i,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:h,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",children:(0,l.jsx)(u.oM,{width:"full",ratio:o/i,children:(0,l.jsx)(u.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+s+", gray, "+c+")"})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:h,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})},j=n(3175),v=n(58);function C(t){var e,n;const[i,r]=(0,d.Z)(),[s,c]=(0,o.useState)(o.useRef()),[h,u]=(0,a.j1)("whatmoreVideoPlayerPoolBlessed"),[x,p]=(0,o.useState)(!0),g=t.timeUpdateCallback,f=null!==(e=t.height)&&void 0!==e?e:"100%",m=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useLayoutEffect)((()=>{var e;s.current&&h&&(0==s.current.children.length?((e=(0,v.Bi)(s.current,t.url,i||!t.isPlaying,t.isPlaying)).addEventListener("loadeddata",(()=>{p(!1)})),g&&e.addEventListener("timeupdate",(t=>{var n,i;e&&g(null!==(n=e.currentTime)&&void 0!==n?n:0,null!==(i=e.duration)&&void 0!==i?i:0)}))):((e=s.current.children[0]).muted=i||!t.isPlaying,t.isPlaying?e.play():e.pause()))}),[i,t.isPlaying,h]),(0,o.useLayoutEffect)((()=>()=>{s.current&&0!=s.current.children.length&&(0,v.P7)(s.current)}),[]),(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:m,height:f,overflow:"hidden"},children:[(0,l.jsx)("div",{ref:s,style:{width:x?"0px":"100%",height:x?"0px":"100%"},className:"whatmore-video-player-ios-holder"}),x?(0,l.jsx)(j.Z,{width:"100%",height:"100%"}):(0,l.jsx)(l.Fragment,{})]})}var b=function(t){return(0,l.jsx)(C,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback})},S=n(7300),y=n(2887),k=n(868);function I(t){var e,n;const[i,r]=(0,d.Z)(),[a,s]=(0,o.useState)(!1),c=(0,o.useRef)(null),h=t.timeUpdateCallback,u=null!==(e=t.height)&&void 0!==e?e:"100%",x=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{c.current&&(t.isPlaying?c.current.paused&&c.current.play():c.current.pause(),h&&c.current.addEventListener("timeupdate",(t=>{var e,n;c.current&&h(null!==(e=c.current.currentTime)&&void 0!==e?e:0,null!==(n=c.current.duration)&&void 0!==n?n:0)})))}),[t.isPlaying]),(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:x,height:u,overflow:"hidden"},children:[(0,l.jsx)("div",{style:{width:a?"100%":"0px",height:a?"100%":"0px"},children:(0,l.jsx)("video",{ref:c,className:"whatmore-video-player",width:x,height:u,preload:"auto",loop:!0,playsInline:!0,muted:!!i,src:t.url,onLoadedData:()=>{s(!0)}})}),a?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(j.Z,{width:"100%",height:"100%"})]})}var F=function(t){return(0,S.WJ)(t.event)?(0,l.jsx)(y.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,o.useContext)(wn).isIOS&&1==(0,a.MO)("whatmoreVideoPlayerPoolBlessed")?(0,l.jsx)(b,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):(0,l.jsx)(I,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback})};var _=function(t){return(0,l.jsx)(F,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},T=n(5098),O=n(3437),P=n(3455);var z,R,E,M,q=function(t){const[e,n]=(0,d.Z)(),[i,o,r,a]=g(),s=.08*a;function c(){n(!e)}return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:e?(0,l.jsx)(P.Z,{sx:{color:"white",fontSize:s,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}}):(0,l.jsx)(O.Z,{sx:{color:"white",fontSize:s,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}})})})},K=n(168),H=n(8449),D=(n(5180),n(686));const L=(0,D.F4)(z||(z=(0,K.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"]))),A="".concat(L," 0.5s linear"),W=(0,D.F4)(R||(R=(0,K.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"]))),Z="\n ".concat(W," 1.5s linear;\n"),B=(0,D.F4)(E||(E=(0,K.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"]))),N=("\n ".concat(B," 10s linear infinite;\n"),(0,D.F4)(M||(M=(0,K.Z)(["\n 0% { transform: scale(1); }\n 10% { transform: scale(1.2); }\n 20% { transform: scale(1); }\n"]))));"\n ".concat(N," 5s ease-in-out infinite;\n");var U,V=n(4937);const Y=(0,D.F4)(U||(U=(0,K.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),X="\n ".concat(Y," ").concat(3,"s ease-in-out;\n");function G(t){const[e,n,i,r]=g(),[s]=(0,a.j1)("whatmoreSecondaryColor"),[d,c]=(0,o.useState)(0),h=t.event,x=t.onClick,p=h.products.length;t.isFirstProductsIconClickDone;(0,o.useEffect)((()=>{const t=setInterval((()=>{c((t=>(t+1)%p))}),3e3);return()=>{clearInterval(t)}}),[]);const f=.24,m=.024;var w=r*f+"px",j=r*f+"px",v=r*m*1.5+"px",C=r*m+"px",b=r*m*1.5+"px";if(void 0==h.products||0==h.products.length)return(0,l.jsx)(l.Fragment,{});var S=h.products;return(0,l.jsx)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,l.jsxs)(u.xu,{margin:"10px",width:w,height:j,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:A,onClick:()=>x(),children:[(0,l.jsx)(T.Ee,{width:"100%",height:"100%",src:S[d].thumbnail_image,objectFit:"cover",borderRadius:"lg",animation:X},d),(0,l.jsx)(u.xu,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,l.jsx)(u.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:s,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:C,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(V.Z,{sx:{color:"white",fontSize:b}})})]})})})}),(0,l.jsx)(u.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,l.jsx)(u.Ct,{fontSize:v,variant:"subtle",textColor:s,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:p>1?p:""})})]})})}var J=function(t){const[e,n]=(0,a.j1)("isProductSwiperCatalogOpen"),[i,r,s,d]=g(),[c,h]=(0,o.useState)(!1),x=t.onToggle,p=t.event,f=.07*d;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.bK,{style:{marginTop:"10px"},children:e?(0,l.jsx)(H.Z,{sx:{color:"white",fontSize:f,filter:"drop-shadow(0 0 5px black);",position:"relative",zIndex:2},onClick:()=>{x("minimize-button")}}):(0,l.jsx)(G,{event:p,onClick:()=>{x("products-button"),h(!0)},isFirstProductsIconClickDone:c})})})},Q=n(2634),$=n(8302);var tt,et,nt=function(t){const e=t.onCloseCallback,[n,i,o,r]=g(),a=.08*r;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:(0,l.jsx)($.Z,{sx:{boxShadow:3,color:"white",fontSize:a,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e(t)}})})})},it=n(6336),ot=n(5428),rt=n(8022);var at=function(t){var e,n;const[i,r,a,s]=g(),[d,c]=(0,o.useState)(!0),{slideDirection:h}=(0,o.useContext)(wn),x=null!==(e=t.showForSeconds)&&void 0!==e?e:3,p=null!==(n=t.delayInSeconds)&&void 0!==n?n:1;t.swipeUp,(0,o.useEffect)((()=>{const t=setTimeout((()=>{c(!1)}),1e3*x);return()=>{clearTimeout(t)}}),[]);const f=.15*s,m=.07*s,w=(0,D.F4)(tt||(tt=(0,K.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 "]))),j="".concat(w," infinite 1.5s linear"),v=(0,D.F4)(et||(et=(0,K.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(v," infinite 1.5s linear");return(0,l.jsx)(it.MT,{unmountOnExit:!0,initialScale:.2,in:d,reverse:!0,delay:p,children:(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,l.jsx)(u.M5,{animation:"vertical"===h?j:C,children:"vertical"===h?(0,l.jsx)(ot.Z,{sx:{color:"white !important",fontSize:f,filter:"drop-shadow(0 0 20px black);"}}):(0,l.jsx)(rt.Z,{sx:{color:"white !important",fontSize:f,filter:"drop-shadow(0 0 20px black);"}})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{textShadow:"dark-lg",fontSize:m+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var lt=function(t){const[e,n]=(0,a.j1)("isFirstIndicatorRenderDone"),[i]=(0,a.j1)("indicatorRenderSeconds"),r=i,s=t.swipeUp;return(0,o.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,l.jsx)(at,{showForSeconds:.8*r,delayInSeconds:.3,swipeUp:s})},st=n(9316),dt=n(5254);const ct="15px";var ht=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),[s]=(0,a.j1)("whatmorePrimaryFont"),[d]=(0,a.j1)("whatmoreShopId"),[c,h,p,f]=g(),[m,w]=(0,o.useState)(!1),j=t.product,v=t.event,C=.1*p,b=.95*f,S=.05*f;return(0,l.jsx)(u.Kq,{direction:"row",width:f,height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.800)",children:(0,l.jsx)(u.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,l.jsx)(u.xu,{width:b+"px",height:"fit-content",padding:"6px",marginTop:ct,backgroundColor:i,borderRadius:"5px",animation:m?st.mT:null,onAnimationEnd:()=>{w(!1)},marginBottom:(0,x.pq)(d),onClick:()=>{w(!0),function(t,i){e||n||(async()=>{(0,r.wz)(t,i)})()}(v,j),window.location.href=function(t){return(0,x.lj)(d)?t.product_link+"?"+(0,x.aw)(d)+"&"+(0,x.n9)(d)+"&"+(0,x.v)(d):t.product_link}(j)},_hover:{backgroundColor:(0,dt.l)(i,8)},cursor:"pointer",children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*S+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:s+" !important",color:"white !important"},children:"Shop Now"})})})})})},ut=n(7009),xt=n(5945),pt=n(5456),gt=n(6984),ft=n(6227),mt=n(7329);n(9111);function wt(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[s,d]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,g=t.height,f=t.title,m=t.showInProgressIcon;return(0,l.jsx)(u.xu,{width:p,height:g,padding:"2x",boxShadow:"lg",backgroundColor:m?(0,dt.l)(n,8):n,onClick:t=>{t.stopPropagation(),h(),d(!0)},animation:s?st.mT:null,onAnimationEnd:()=>{d(!1)},cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:[(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,x.KC)(r)+" !important"},children:["\xa0",f,"\xa0"]}),m?(0,l.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,l.jsx)(mt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,l.jsx)(l.Fragment,{})]})})}function jt(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[s,d]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,g=t.height;return(0,l.jsx)(u.xu,{width:p,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),d(!0)},animation:s?st.mT:null,onAnimationEnd:()=>{d(!1)},cursor:"pointer",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c,fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,x.KC)(r)+" !important"},children:["\xa0",(0,x.t)(r),"\xa0"]})})})})}function vt(t){var e;const[n]=(0,a.j1)("whatmorePrimaryFont"),[i]=(0,a.j1)("whatmoreShopId"),o=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),r=t.width,s=t.height;return(0,l.jsx)(u.xu,{width:r,height:s,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,l.jsxs)(u.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o,fontWeight:"semibold",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Ct(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[o]=(0,a.j1)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),s=t.onClick,d=t.cartCount,c=t.width,h=t.height,x=t.onCartIconClick;return(0,l.jsx)(u.xu,{width:c,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,l.jsx)(u.M5,{paddingX:"5px",onClick:()=>{x()},children:(0,l.jsx)(ft.Z,{sx:{color:n,fontSize:1.6*r}})}),(0,l.jsx)(u.xv,{color:n,fontSize:1.3*r,fontWeight:"semibold",sx:{fontFamily:i+" !important"},children:d}),(0,l.jsx)(u.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),s()},children:(0,l.jsx)(gt.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var bt=function(t){var e,n,i,o;const[r]=(0,a.j1)("whatmoreShopId"),s=t.event,d=t.product,c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,x=t.cartCount,p=t.onClickAtc,g=t.onCartIconClick;function f(){p()}const m=null!==(i=t.width)&&void 0!==i?i:"100%",w=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,l.jsx)(it.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:m},children:(0,l.jsx)(vt,{event:s,product:d,baseFontSize:c,width:m,height:w})}):"init"==u?0==x?(0,l.jsx)(jt,{onClick:f,event:s,product:d,baseFontSize:c,width:m,height:w}):h?(0,l.jsx)(it.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:w,width:m},children:(0,l.jsx)(Ct,{onClick:f,event:s,product:d,baseFontSize:c,cartCount:x,width:m,height:w,onCartIconClick:g})}):(0,l.jsx)(jt,{onClick:f,event:s,product:d,baseFontSize:c,width:m,height:w}):(0,l.jsx)(wt,{onClick:f,event:s,product:d,baseFontSize:c,width:m,height:w,title:"awaitingVariantSelection"==u?"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u})},St=n(6163),yt=n(6967),kt=n(6233);const It=(0,a.MO)("isInDesignMode"),Ft=(0,a.MO)("isDemoBrand");async function _t(t,e,n,i,o,r){return"shopify"==n?(0,m.wW)(t,e,i):(It||Ft||(async()=>{(0,yt.FF)(o,r)})(),(0,kt.jg)(t,e,i))}function Tt(t,e){return"shopify"==t?(0,m.JL)(e):(0,kt.TE)(e)}var Ot=function(t,e,n){const[i]=(0,a.j1)("whatmoreShopId"),[l]=(0,a.j1)("isInDesignMode"),[s]=(0,a.j1)("isDemoBrand"),[d,c]=(0,o.useState)(null),h=(0,o.useRef)(null),{closeClickComponent:u}=(0,o.useContext)(wn),[p,g]=(0,o.useState)({state:"init",cart_count:t});function m(t,e){g({state:t,cart_count:null!==e&&void 0!==e?e:p.cart_count}),"init"!=t&&"errored"!=t?(0,a.bU)("whatmoreAllowAutoSlide",!1):(0,a.bU)("whatmoreAllowAutoSlide",!0)}function w(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function j(t){const o=function(t){const e=h.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(!o)return void m("init",p.cart_count);m("atcApiCallInProgress",null);_t(o,1,(0,x.Ip)(i),i,n,e).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,n){l||s||(async()=>{(0,r.JX)(t,e,n)})()}(n,e,1),m("init",p.cart_count+1),(0,a.bU)("whatmoreAddedToCart",!0),t))).catch((t=>{m("errored",null),console.error("Error while adding to cart:",t)}))}return[p,d,function(){m("productVariantDetailsApiCallInProgress",null),(0,f.pO)(e,(0,x.Ip)(i),i).then((t=>{h.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)=>0==t.filter((t=>t.option==e.option)).length?[...t,e]:t),[]),n=n.reduce(((t,e,n)=>0==t.filter((t=>t.option==e.option)).length?[...t,e]:t),[]),i=i.reduce(((t,e,n)=>0==t.filter((t=>t.option==e.option)).length?[...t,e]:t),[]),[e,n,i]}(t);c(e),!function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(e)?m("awaitingVariantSelection",null):!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?m("errored",null):j([w(e[0]),w(e[1]),w(e[2])])})).catch((t=>{m("errored",null)}))},j,function(t){var e,n;const i=h.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,x.v9)(i)&&("go_to_cart_page"!==(0,x.v9)(i)?"open_cart_slider"!==(0,x.v9)(i)||null!==u&&u():Tt((0,x.Ip)(i),i))}]};var Pt=function(t){var e,n,i,r;t.product,t.event;const s=t.productVariantOptions,d=null!==(e=t.width)&&void 0!==e?e:"100%",c=null!==(n=t.height)&&void 0!==n?n:"fit-content",h=null!==(i=t.baseFontSize)&&void 0!==i?i:10,x=t.onOptionSelected,p=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",[f]=(0,a.j1)("isInDesignMode"),[m]=(0,a.j1)("isDemoBrand"),[w]=(0,a.j1)("whatmoreSecondaryColor"),[j]=(0,a.j1)("whatmorePrimaryFont"),[v]=(0,a.j1)("whatmoreShopId"),[C,b,S,y]=g();function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[I,F]=(0,o.useState)([k(s[0]),k(s[1]),k(s[2])]);return(0,o.useEffect)((()=>{x(I)}),[I]),(0,l.jsx)(u.Kq,{direction:"column",width:d,height:c,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:s.map(((t,e)=>{if(0!=t.length)return(0,l.jsxs)(u.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,l.jsx)(u.M5,{width:"100%",children:(0,l.jsx)(u.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,l.jsxs)(u.xv,{as:"b",fontSize:1.2*h+"px",sx:{color:p+" !important",fontFamily:j+" !important"},align:"center",children:["\xa0",t[0].type,"\xa0"]}),(0,l.jsx)(u.Eq,{justify:"center",children:t.map((t=>{return(0,l.jsx)(u.Uc,{children:(0,l.jsx)(u.xu,{borderRadius:"2px",padding:"2px",onClick:n=>{n.stopPropagation(),t.available&&F([0==e?t.option:I[0],1==e?t.option:I[1],2==e?t.option:I[2]])},backgroundColor:t.option==I[e]?w:"white",_hover:{bg:t.option==I[e]?w:(0,dt.l)(w,5)},cursor:"pointer",children:(0,l.jsxs)(u.xv,{as:t.available?"samp":"s",fontSize:h+"px",sx:{color:(t.available?t.option==I[e]?"white":"black":"gray")+" !important",fontFamily:j+" !important"},align:"center",paddingX:(n=t.option,n.length>=3?"0px":.5*h+"px"),children:["\xa0",t.option,"\xa0"]})})},t.option);var n}))},e)]},e)}))})},zt=n(9219);var Rt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),s=(0,a.MO)("whatmoreSecondaryColorShade900"),[d]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,p,f,m]=g(),[w,j]=(0,o.useState)(!1),v=(0,a.MO)("whatmoreUITheme"),[C,b]=(0,o.useState)(t.product),[S,y,k,I,F,_]=Ot(0,C,t.event),[O,P]=(0,o.useState)(null),[z,R]=(0,o.useState)(parseFloat(C.price)),[E,M]=(0,o.useState)(parseFloat(C.compare_price)),[q,K]=(0,o.useState)(C.currency),H=t.event,D=t.productClickHandler;(0,o.useEffect)((()=>{(0,x.N8)(c)&&(0,zt.Rb)(C,(0,x.Ip)(c),c).then((t=>{b(t),R(parseFloat(t.price)),M(parseFloat(t.compare_price)),K(t.currency)}))}),[]);var L=.68*m,A=.55*L,W=.4*L,Z=L*(.55-.4),B=L+"px",N=W+"px",U=Z+"px",V=.12*W;const Y=(0,x.IT)(c);return(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:ct,marginBottom:(0,x.pq)(c),width:B,height:"fit-content",boxShadow:"round"==v?"dark-lg":null,onClick:()=>{!function(t,i){e||n||(async()=>{(0,r.wz)(t,i)})(),D(i),j(!0)}(H,C)},backgroundColor:(0,dt.l)("#ffffff",(0,x.U5)(c)),animation:w?st.mT:null,borderRadius:"round"==v?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,x.al)(c),borderColor:(0,x.qP)(c)},children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(u.xu,{height:N,width:N,bgColor:s,children:(0,l.jsx)(T.Ee,{width:N,height:N,src:C.thumbnail_image,sx:{objectFit:(0,x.yO)(c)+" !important"}})}),(0,l.jsxs)(u.xu,{height:N,width:L-W+"px",children:[(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:(0,x.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:2,fontSize:1.1*V+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:d+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:(0,xt.s)(null==C.title?"":C.title.toString())}),(0,x.Q)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==v?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*V+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:d+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:["\xa0"," "+(0,zt.jx)(z,"",c,q)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,pt.B)(z,E)?(0,l.jsxs)(u.xv,{as:"s",noOfLines:1,fontSize:.9*V+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:d+" !important",color:"gray !important",padding:"0px !important",letterSpacing:"normal !important"},children:[" ",(0,zt.jx)(E,"",c,q)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,x.Fr)(c)?(0,l.jsx)(u.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,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:s,sx:{borderRadius:"round"==v?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(ut.Z,{sx:{color:i,fontSize:1.3*V+"px"}})}),(0,l.jsx)(u.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,l.jsx)(it.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==S.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==S.state&&null!=y?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",marginTop:.1*A+"px",marginBottom:.1*A+"px",overflowY:"auto",overflowX:"hidden",maxHeight:A*Y+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(Pt,{width:B,height:"fit-conten",event:H,product:C,productVariantOptions:y,baseFontSize:1.2*V,onOptionSelected:t=>{!function(t){P(t);const e=F(t);e&&(R(e.price),M(e.compare_price))}(t)}})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:U,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(bt,{baseFontSize:.3*Z,event:H,product:C,cartState:S.state,cartCount:S.cart_count,onClickAtc:t=>{"init"==S.state?k():"awaitingVariantSelection"==S.state&&I(O)},onCartIconClick:()=>{_()}})})]})},Et=n(3867);var Mt=function(t){var e,n,i;const[o]=(0,a.j1)("isInDesignMode"),[s]=(0,a.j1)("isDemoBrand"),[d]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmorePrimaryFont"),h=t.event,x=t.product,p=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=null!==(n=t.width)&&void 0!==n?n:"fit-content",f=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,l.jsx)(u.rU,{href:x.product_link,color:d,onClick:()=>{!function(t,e){o||s||(async()=>{(0,r.$L)(t,e)})()}(h,x)},children:(0,l.jsx)(u.xu,{width:g,height:f,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{lineHeight:"100%",fontSize:1.4*p,fontWeight:"semibold",sx:{fontFamily:c+" !important",color:d+" !important"},children:" VIEW MORE "})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(ut.Z,{sx:{color:d,fontSize:1.4*p}})})]})})})},qt=n(7605);function Kt(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[s,d]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,p=t.width,g=t.height,f=t.title;return(0,l.jsx)(u.xu,{width:p,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),d(!0)},animation:s?st.mT:null,onAnimationEnd:()=>{d(!1)},cursor:"pointer",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,x.KC)(r)+" !important"},children:["\xa0",f,"\xa0"]})})})}var Ht=function(t){var e,n,i;const[o]=(0,a.j1)("whatmoreShopId"),r=t.event,s=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=t.onShopNowClick,h=null!==(n=t.width)&&void 0!==n?n:"100%",u=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,l.jsx)(Kt,{onClick:function(){c()},event:r,product:s,baseFontSize:d,width:h,height:u,title:"SHOP NOW"})};var Dt=function(t){var e;const[n]=(0,a.j1)("isInDesignMode"),[i]=(0,a.j1)("isDemoBrand"),[s]=(0,a.j1)("whatmoreSecondaryColor"),[d]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,p,f,m]=g(),[w,j]=(0,o.useState)(!1),[v,C]=(0,o.useState)(t.product),[b,S,y,k,I,F]=Ot(0,v,t.event),[_,O]=(0,o.useState)(null),[P,z]=(0,o.useState)(parseFloat(v.price)),[R,E]=(0,o.useState)(parseFloat(v.compare_price)),[M,q]=(0,o.useState)(v.currency),K=t.event,H=t.productClickHandler,D=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1;(0,o.useEffect)((()=>{(0,x.N8)(c)&&(0,zt.Rb)(v,brandDomainContext(c),c).then((t=>{C(t),z(parseFloat(t.price)),E(parseFloat(t.compare_price)),q(t.currency)}))}),[]);var L=m*D,A=.3*L,W=L+"px",Z=.7*A,B=.9*Z,N=.12*A;const U=(0,x.IT)(c);function V(t,e){n||i||(async()=>{(0,r.wz)(t,e)})(),H(e),j(!0)}return(0,l.jsx)(u.Kq,{direction:"row",width:W,height:"fit-content",justifyContent:"center",children:(0,l.jsx)(u.xu,{marginTop:ct,marginBottom:(0,x.pq)(c),width:W,onClick:t=>{},animation:w?st.mT:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,l.jsxs)(u.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{V(K,v)},children:[(0,l.jsx)(u.xu,{height:Z+"px",width:Z+"px",children:(0,l.jsx)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,l.jsx)(u.xu,{height:B+"px",width:B+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,l.jsx)(T.Ee,{width:B+"px",height:B+"px",src:v.thumbnail_image,objectFit:"cover"})})})}),(0,l.jsx)(u.xu,{height:Z+"px",width:L-Z+"px",children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*N+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:d+" !important",color:"white !important"},children:(0,xt.s)(v.title.toString())}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,x.Q)(c)?(0,l.jsxs)(u.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,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*N+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:d+" !important",color:"white !important"},children:["\xa0"," ",(0,zt.jx)(parseFloat(P),"",c,M)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,pt.B)(v.price,v.compare_price)?(0,l.jsxs)(u.xv,{as:"s",noOfLines:1,fontSize:.8*N+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:d+" !important",color:"#F9F6EE !important"},children:[" ",(0,zt.jx)(parseFloat(R),"",c,M)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(Et.Z,{storeId:c,productId:v.client_product_id,productLink:v.product_link,fontSize:1*N,fontColor:"white"})})]})]})})]}),(0,l.jsx)(it.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==b.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==b.state&&null!=S?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",marginTop:.1*A+"px",marginBottom:.1*A+"px",overflowY:"auto",overflowX:"hidden",maxHeight:A*U+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(Pt,{width:W,height:"fit-content",event:K,product:v,productVariantOptions:S,baseFontSize:1*N,onOptionSelected:t=>{!function(t){O(t);const e=I(t);e&&(z(e.price),E(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,l.jsx)(u.xu,{width:"100%",height:"100%",children:(0,l.jsx)(Mt,{baseFontSize:.8*N,event:K,product:v,width:"100%",height:"100%"})}),(0,l.jsx)(u.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,x.Ib)(c)?(0,l.jsx)(Ht,{baseFontSize:.8*N,event:K,product:v,borderRadius:"md",onShopNowClick:t=>{V(K,v)}}):(0,l.jsx)(l.Fragment,{children:"form"===(0,x._5)(c)?(0,l.jsx)(St.default,{baseFontSize:.8*N,event:K,product:v,width:"100%",height:"100%",showAddedToCart:!0}):(0,l.jsx)(bt,{baseFontSize:.8*N,event:K,product:v,cartState:b.state,cartCount:b.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==b.state?y():"awaitingVariantSelection"==b.state&&k(_)},onCartIconClick:()=>{F()}})})})]})]})})})};var Lt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),s=(0,a.MO)("whatmoreSecondaryColorShade900"),[d]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,p,f,m]=g(),[w,j]=(0,o.useState)(!1),v=(0,a.MO)("whatmoreUITheme"),[C,b]=(0,o.useState)(t.product),[S,y]=(0,o.useState)(parseFloat(C.price)),[k,I]=(0,o.useState)(parseFloat(C.compare_price)),[F,_]=(0,o.useState)(C.currency),O=t.event;t.productClickHandler,(0,o.useEffect)((()=>{(0,x.N8)(c)&&(0,zt.Rb)(C,(0,x.Ip)(c),c).then((t=>{b(t),y(parseFloat(t.price)),I(parseFloat(t.compare_price)),_(t.currency)}))}),[]);var P=.68*m,z=.4*P,R=P+"px",E=z+"px",M=P*(.55-.4)+"px",q=.12*z;function K(t){return(0,x.lj)(c)?t.product_link+"?"+(0,x.aw)(c)+"&"+(0,x.n9)(c)+"&"+(0,x.v)(c):t.product_link}function H(t,i){e||n||(async()=>{(0,r.wz)(t,i)})(),j(!0)}return(0,x.IT)(c),(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:ct,marginBottom:(0,x.pq)(c),width:R,height:"fit-content",boxShadow:"round"==v?"dark-lg":null,onClick:()=>{H(O,C),window.location.href=K(C)},backgroundColor:(0,dt.l)("#ffffff",(0,x.U5)(c)),animation:w?st.mT:null,borderRadius:"round"==v?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,x.al)(c),borderColor:(0,x.qP)(c)},children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(u.xu,{height:E,width:E,bgColor:s,children:(0,l.jsx)(T.Ee,{width:E,height:E,src:C.thumbnail_image,sx:{objectFit:(0,x.yO)(c)+" !important"}})}),(0,l.jsxs)(u.xu,{height:E,width:P-z+"px",children:[(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:(0,x.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},sx:{fontFamily:d+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*q+"px !important",noOfLines:"2 !important"},children:(0,xt.s)(null==C.title?"":C.title.toString())}),(0,x.Q)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==v?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*q+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:d+" !important",color:"black !important"},children:["\xa0"," "+(0,zt.jx)(S,"",c,F)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,pt.B)(S,k)?(0,l.jsxs)(u.xv,{as:"s",noOfLines:1,fontSize:.9*q+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:d+" !important",color:"gray !important"},children:[" ",(0,zt.jx)(k,"",c,F)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,x.Fr)(c)?(0,l.jsx)(u.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,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:s,sx:{borderRadius:"round"==v?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(ut.Z,{sx:{color:i,fontSize:1.3*q+"px"}})}),(0,l.jsx)(u.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:M,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(Ht,{baseFontSize:.8*q,event:O,product:C,borderRadius:"md",onShopNowClick:t=>{H(O,C),window.location.href=K(C)}})})]})};var At,Wt=function(t){const[e]=(0,a.j1)("whatmoreShopId"),n=(0,x.ey)(e),i=t.event,o=t.product;return"broad-tile"==n?(0,l.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,l.jsx)(Lt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,l.jsx)(ht,{product:t.product,event:t.event}):"narrow-tile"==n?(0,l.jsx)(Dt,{event:i,product:o,productClickHandler:t.productClickHandler,tileWidthFactor:i.products.length>1?.68:void 0}):(0,l.jsx)(Rt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler})};const Zt=(0,D.F4)(At||(At=(0,K.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),Bt=("\n ".concat(Zt," ").concat(3,"s ease-in-out;\n"),function(t,e){return(0,x.lj)(e)?t+"?"+(0,x.aw)(e)+"&"+(0,x.n9)(e)+"&"+(0,x.po)(e):t});var Nt=function(t){const[e,n,i,r]=g(),[s,d]=(0,o.useState)(!1),c=(0,a.MO)("whatmoreSecondaryColor"),h=(0,a.MO)("whatmoreSecondaryColorShade1200"),p=(0,a.MO)("whatmorePrimaryFont"),f=(0,a.MO)("whatmoreShopId"),m=(0,a.MO)("whatmoreUITheme"),w=(t.event,t.cta),j=.05*r;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*r+"px",marginTop:.03*r+"px",children:(0,l.jsx)(u.rU,{href:Bt(w.cta_link,f),color:"white",children:(0,l.jsx)(u.xv,{fontSize:j+"px",variant:"subtle",textColor:c,bgColor:h,sx:{boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,x.al)(f),borderColor:(0,x.qP)(f),fontFamily:p+" !important",textAlign:"center!important"},paddingY:"3px",paddingX:.05*r+"px",children:w.cta_title})})})})},Ut=n(3388);var Vt=function(t){const[e,n,i,o]=g(),[r]=(0,a.j1)("whatmoreShopId"),s=t.event,d=t.productClickHandler,p=(0,x.ey)(r);if(!(0,Ut.kT)(s))return(0,l.jsx)(l.Fragment,{});if(1==s.products.length&&(void 0==s.cta||0==s.cta.length)){const t=s.products[0];return(0,x.rn)(r)?(0,l.jsx)(u.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,l.jsx)(u.M5,{children:(0,l.jsx)(Dt,{event:s,product:t,productClickHandler:d},s.event_id+t.product_id)})}):(0,l.jsx)(u.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==p?"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,l.jsx)(u.M5,{children:(0,l.jsx)(Wt,{event:s,product:t,productClickHandler:d},s.event_id+t.product_id)})})}return(0,l.jsx)(u.M5,{children:(0,l.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(u.xu,{width:o+"px",backgroundImage:"narrow-tile"==p?"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,l.jsxs)(c.tq,{slidesPerView:1==s.products.length?1:1.4,initialSlide:s.products.length<=2?0:1,centeredSlides:!0,modules:[h.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[s.products.map((t=>(0,l.jsx)(c.o5,{children:(0,l.jsx)(u.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(Wt,{event:s,product:t,productClickHandler:d},s.event_id+t.product_id)})},s.event_id+t.product_id))),void 0!=s.cta&&s.cta.map((t=>(0,l.jsx)(c.o5,{children:(0,l.jsx)(u.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(Nt,{event:s,cta:t},s.event_id+t.cta_id)})},s.event_id+t.cta_id)))]})})})})};var Yt=function(t){const[e,n]=(0,a.j1)("isProductSwiperCatalogOpen"),i=t.event,r=t.productClickHandler;return(0,o.useContext)(wn).isIOS&&e?(0,l.jsx)(Vt,{event:i,productClickHandler:r},i.event_id):(0,l.jsx)(it.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,l.jsx)(Vt,{event:i,productClickHandler:r},i.event_id)})};function Xt(t){const e=t.event,[n,i,o,r]=g(),[s]=(0,a.j1)("whatmorePrimaryFont");return(0,l.jsx)(u.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,l.jsx)(T.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,l.jsx)(u.xu,{width:"fit-content",height:"fit-content",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(u.xv,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:s+" !important"},children:e.presenter_name.substring(0,15)}),(0,l.jsx)(Q.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var Gt,Jt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i,r]=(0,a.j1)("isProductSwiperCatalogOpen"),[s,c]=(0,d.Z)(),[h,p]=(0,a.j1)("isFirstIndicatorRenderDone"),g=(0,o.useContext)(wn),[f]=(0,a.j1)("whatmoreShopId"),m=t.event,w=t.isLast,j=t.onCloseCallback,v=t.focusRef,C=t.productClickHandler;return(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsx)(u.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(Xt,{event:m}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,l.jsx)(q,{focusRef:v}),(0,l.jsx)(nt,{event:m,onCloseCallback:j})]})]})}),(0,l.jsx)(u.xu,{width:"100%",height:"100%",onClick:()=>{c(!s)}}),(0,l.jsxs)(u.xu,{width:"full",height:"fit-content",children:[g.totalEvents>1&&!h&&g.showSwipeIndicator?(0,l.jsx)(u.xu,{width:"full",margin:"2px",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)(lt,{swipeUp:!w})})}):null,void 0!=m.products&&m.products.length>0?(0,l.jsxs)(u.xu,{width:"full",children:[(0,x.Jm)(f)?(0,l.jsx)(u.xu,{w:"100%",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(J,{event:m,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Yt,{event:m,productClickHandler:C})})]}):(0,l.jsx)("div",{})]})]})})};function Qt(t){var e;const[n]=(0,a.j1)("whatmorePrimaryFont"),i=t.setOpenShopNow,o=t.FONT_SIZE,r=t.setLockSwiper,s=null!==(e=t.headerText)&&void 0!==e?e:"Shop Now";return(0,l.jsxs)(u.kC,{justifyContent:"center",paddingTop:"10px",paddingBottom:"2px",width:"100%",children:[(0,l.jsx)(u.kC,{width:"10%",display:"flex !important"}),(0,l.jsx)(u.kC,{width:"90%",justifyContent:"center",children:(0,l.jsx)(u.xv,{align:"center",fontSize:1*o,fontWeight:"semibold",sx:{color:"white !important",fontFamily:n+" !important"},children:s})}),(0,l.jsx)(u.kC,{justifyContent:"center",width:"10%",align:"center",onClick:()=>{i(!1),r(!1)},cursor:"pointer",children:(0,l.jsx)($.Z,{sx:{boxShadow:3,color:"white !important",fontSize:1.2*o,filter:"drop-shadow(0 0 5px black);"}})})]})}function $t(t){const[e,n,i,o]=g(),[r]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreShopId"),d=(t.data,t.event,t.product,t.setShowOptionsChart);var c=.4*o*.8*.13;const h=(0,D.F4)(Gt||(Gt=(0,K.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),p="".concat(h," 0.5s");return(0,l.jsx)(u.Kq,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:p,justifyContent:"center",alignItems:"center",children:(0,l.jsxs)(u.xu,{width:"100%",height:"100%",children:[(0,l.jsx)(u.xu,{width:"100%",height:"100%",children:(0,l.jsx)(T.Ee,{width:"100%",height:"100%",src:(0,x.KM)(s),objectFit:"cover",borderTopRadius:"xl"})}),(0,l.jsx)(u.Kq,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:()=>{d(!1)},cursor:"pointer",padding:"10px",children:(0,l.jsx)($.Z,{sx:{boxShadow:3,color:"white !important",fontSize:2*c,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var te=n(9748),ee=n(5630),ne=(n(51),n(6665));function ie(t){var e;const[n,i]=(0,o.useState)(null),r=t.product;return(0,o.useEffect)((()=>{(0,m.bN)(r).then((t=>{i(t.variants)}))}),[]),null==n?(0,l.jsx)(l.Fragment,{}):(0,l.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,l.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,l.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,l.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,l.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,l.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,l.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,l.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(n).toString()})]})})}function oe(t){const e=(0,a.MO)("whatmoreShopId"),n=t.product;return"63748341981"==e||"55845847231"==e||"47837511839"==e?(0,l.jsx)(ie,{product:n,variantId:t.variantId,height:t.height,width:t.width}):(0,l.jsx)(l.Fragment,{})}function re(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreShopId"),[s]=(0,a.j1)("whatmorePrimaryFont"),[d]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmoreSecondaryColorShade300"),h=(0,a.MO)("whatmoreUITheme"),[p,g]=(0,o.useState)(!1),{closeClickComponent:f}=(0,o.useContext)(wn),[w,j]=(0,o.useState)(!1),v=t.FONT_SIZE,C=t.data,b=t.event,S=t.selectedVariantId,y=t.product,k=t.itemQuantity,I=t.PRODUCT_TILE_WIDTH,F=t.cartItemCount,_=t.addToCartFlag,T=t.setAddToCartFlag,O=t.soldOutFlag,P=t.setSoldOutFlag;const z=async()=>{if(g(!0),function(t,i,o){e||n||(async()=>{(0,r.JX)(t,i,o)})()}(b,y,k),void 0===S)return void console.log("ERROR ! Select the option.");const t=void 0!==S?S:C.product.variants[0].id,o=C.product.variants.filter((e=>e.id==t))[0].price;_t(t,k,(0,x.Ip)(i),i,b,y).then((t=>{if(!t.ok)throw new Error(t.status);return g(!1),T(!0),t.json()})).then((n=>((0,a.bU)("whatmoreAddedToCart",!0),(0,x.k)(i)&&(e||(async()=>{const e=await(0,m.Mj)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}));(0,qt.a)(i,window.location.hostname,"",b.event_id,y.product_id,t,o,k,"add-to-cart",e.token)})()),n))).catch((t=>{g(!1),P(!0),console.error("Error:",t)}))},R=t=>{!function(t,i){e||n||(async()=>{(0,r.$L)(t,i)})()}(b,y),"buy-now"==t&&function(t,e,n,i){"shopify"==n?(0,m.bj)(t,e,i):(0,kt.rY)(t,e,i)}(void 0!==S?S:C.product.variants[0].id,k,(0,x.Ip)(i),i),"view-more"==t&&(window.location.href=y.product_link+"?"+(0,x.aw)(i)+"&"+(0,x.n9)(i)+"&"+(0,x.v)(i)+((0,x.C0)(i)?"&currency="+y.currency:""))};return(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*v,justifyContent:"center",alignItems:"center",children:[O?(0,l.jsx)(te.zx,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*v,disabled:!0,sx:{borderRadius:"round"==h?"5px":"0px",borderWidth:(0,x.al)(i),borderColor:(0,x.qP)(i)},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:s+" !important"},children:"Sold Out"})}):(0,l.jsxs)(u.Kq,{direction:"vertical"==(0,x.rc)(i)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*v,justifyContent:"center",children:[(0,x.$b)(i)?(0,l.jsx)(te.zx,{width:"90%",height:2.5*v,_hover:{bg:c},onClick:()=>z(),sx:{backgroundColor:d+" !important",borderRadius:"round"==h?"5px":"0px",borderWidth:(0,x.al)(i),borderColor:(0,x.qP)(i),_hover:{backgroundColor:"transparent !important",border:"1px solid #ffffff !important"}},children:p?(0,l.jsx)(ee.$,{display:"flex !important",color:"white"}):(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:(0,x.KC)(i)+" !important",fontFamily:s+" !important"},fontSize:v,children:(0,x.t)(i)})}):(0,l.jsx)(l.Fragment,{}),(0,x.cD)(i)?(0,l.jsx)(l.Fragment,{children:(0,x.H$)(i)?(0,l.jsx)(oe,{variantId:void 0!==S?S:C.product.variants[0].id,product:y,height:2.5*v,width:"90%",fontSize:v,fontFamily:s}):(0,l.jsx)(l.Fragment,{children:(0,x.St)(i)?(0,l.jsx)(te.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*v,onClick:()=>R("view-more"),sx:{backgroundColor:"white !important",borderRadius:"round"==h?"5px":"0px",borderWidth:(0,x.al)(i),borderColor:(0,x.qP)(i)},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:d+"!important",fontFamily:s+" !important"},fontSize:v,children:(0,x.Z5)(i)})}):(0,l.jsx)(te.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*v,onClick:()=>R("buy-now"),sx:{backgroundColor:"white !important",borderRadius:"round"==h?"5px":"0px",borderWidth:(0,x.al)(i),borderColor:(0,x.qP)(i),_hover:{backgroundColor:"transparent !important",border:"1px solid #ffffff !important"}},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:d+"!important",fontFamily:s+" !important"},fontSize:v,children:(0,x.Zu)(i)})})})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(l.Fragment,{children:(0,x.$b)(i)?(0,l.jsx)(l.Fragment,{children:w?(0,l.jsx)(u.kC,{width:"10%",spacing:"0",right:0,children:(0,l.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,l.jsx)(ne.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*v}})})}):(0,l.jsxs)(u.kC,{animation:_?Z:"none",onAnimationEnd:()=>T(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,x.v9)(i)&&("go_to_cart_page"!==(0,x.v9)(i)?(j(!0),function(t){"open_cart_slider"!==(0,x.v9)(t)||null!==f&&f()}(i)):Tt((0,x.Ip)(i),i))},cursor:"pointer",children:[(0,l.jsx)(ft.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*v}}),F>0?(0,l.jsx)(u.Cd,{padding:"2px",bg:"white",size:1.1*v,top:.03*-I,verticalAlign:"top",position:"relative",left:.11*-I,zIndex:"1",children:(0,l.jsx)(u.xv,{sx:{color:"black !important",fontFamily:s+" !important"},fontWeight:"bold",fontSize:.7*v,children:F})}):(0,l.jsx)(l.Fragment,{})]})}):(0,l.jsx)(l.Fragment,{})})]})}function ae(t){const[e]=(0,a.j1)("whatmoreSecondaryColor"),[n]=(0,a.j1)("whatmorePrimaryFont"),i=t.FONT_SIZE,o=t.data,r=t.handleToggle,s=t.show,d=t.PRODUCT_TILE_HEIGHT;return(0,l.jsxs)(u.Kq,{direction:"column",paddingX:"20px",height:"fit-content",paddingTop:"5px",children:[(0,l.jsx)(u.Kq,{children:(0,l.jsx)(u.xv,{fontSize:i,fontWeight:"semibold",justifyContent:"center",sx:{color:"white !important",fontFamily:n+" !important"},children:"Description"})}),(0,l.jsx)(u.Kq,{children:(0,l.jsx)(u.xu,{height:s?1.8*d:d,overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,l.jsx)(u.xv,{isTruncated:!0,noOfLines:s?10:5,fontSize:.8*i,justifyContent:"normal",dangerouslySetInnerHTML:{__html:(c=o.product.body_html,c.replace(/<[^>]+>/g,"").replace(/\n{2,}/g,"\n\n").replace(/^\n+|\n$/g,"").replace(/\n/g,"<br/>").replace(/^\s+Description\b/g,""))},sx:{color:"#D3D3D3 !important",fontFamily:n+" !important",lineHeight:"140% !important"}})})}),(0,l.jsx)(te.zx,{bg:"transparent",size:"sx",onClick:r,mt:"1rem",variant:"unstyled",_focus:{boxShadow:"none",outline:"none",bg:"transparent"},children:(0,l.jsxs)(u.xv,{fontSize:.8*i,sx:{color:"white !important",fontFamily:n+" !important"},children:["Show ",s?"Less":"More"]})})]});var c}var le=n(5551),se=n(8819);function de(t){const[e,n]=(0,o.useState)(t.product),[i]=(0,a.j1)("whatmoreSecondaryColor"),[r]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreShopId"),d=(0,a.MO)("whatmoreUITheme"),c=(0,a.MO)("whatmoreSecondaryColorShade900");(0,o.useEffect)((()=>{(0,x.N8)(s)&&(0,zt.Rb)(e,(0,x.Ip)(s),s).then((t=>{n(t)}))}),[]);t.selectOptionHandler,t.getVariantPrice;const h=t.PRODUCT_TILE_HEIGHT,p=t.PRODUCT_TILE_WIDTH,g=t.FONT_SIZE,f=t.data,m=(t.selectedOption,t.selectedVariantId,t.itemPrice),w=t.itemQuantity,j=t.setItemQuantity,v=t.thumbnailImage;return(0,l.jsxs)(u.kC,{direction:"row",spacing:"5px",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:[(0,l.jsx)(u.kC,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==d?"lg":null,overflow:"hidden",sx:{borderWidth:(0,x.al)(s),borderColor:(0,x.qP)(s)},bgColor:c,children:(0,l.jsx)(T.Ee,{width:p+"px",height:h+"px",src:v,sx:{objectFit:(0,x.yO)(s)+" !important"}})}),(0,l.jsxs)(u.kC,{direction:"column",marginLeft:"10px",w:"80%",children:[(0,l.jsx)(u.kC,{children:(0,l.jsx)(u.rU,{href:function(t){return(0,x.lj)(s)?t.product_link+"?"+(0,x.aw)(s)+"&"+(0,x.n9)(s)+"&"+(0,x.v)(s)+((0,x.C0)(s)?"&currency="+t.currency:""):t.product_link+((0,x.C0)(s)?"?currency="+t.currency:"")}(e),color:"white",children:(0,l.jsx)(u.xv,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:1*g,sx:{color:"white !important",lineHeight:"140% !important",fontFamily:r+" !important"},children:f.product.title})})}),(0,l.jsx)(u.LZ,{display:"flex !important"}),(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",justifyContent:"space-around",alignItems:"center",children:[(0,l.jsx)(u.xv,{padding:"2px",fontSize:1.2*g,fontWeight:"semibold",sx:{color:"white !important",fontFamily:r+" !important"},children:(0,zt.jx)(parseFloat(m)," ",s,e.currency)}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(se.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5 !important",fontSize:1.5*g},onClick:()=>j(Math.max(w-1,1))}),(0,l.jsx)(u.xu,{width:"fit-content",alignItems:"center",textAlign:"center",justifyContent:"center",children:(0,l.jsx)(u.xv,{fontSize:1.1*g,fontWeight:"bold",padding:"2px",sx:{color:"white !important"},children:w})}),(0,l.jsx)(le.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5 !important",fontSize:1.5*g},onClick:()=>j(w+1)})]})]})]})]})}var ce,he=n(6306),ue=n(1278);function xe(t){const[e]=(0,a.j1)("whatmorePrimaryFont"),[n]=(0,a.j1)("whatmoreShopId"),{setShowOptionsChart:i}=(0,o.useContext)(ve),r=(0,a.MO)("whatmoreUITheme"),s=t.selectOptionFirstHandler,d=t.selectOptionSecondHandler,c=(t.getVariantPrice,t.PRODUCT_TILE_HEIGHT),h=t.PRODUCT_TILE_WIDTH,p=t.FONT_SIZE,g=t.data,f=(t.product,t.selectedOptionFirst),m=t.selectedOptionSecond;return(0,l.jsxs)(u.kC,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,l.jsx)(u.kC,{direction:"column",justifyContent:"center",alignItems:"left",children:(0,l.jsx)(u.xv,{fontSize:p,fontWeight:"semibold",justifyContent:"center",sx:{color:"white !important",fontFamily:e+" !important"},children:"Options"})}),(0,l.jsx)(u.kC,{display:"flex !important",flexGrow:1}),g.product.variants.length>1&&(0,l.jsxs)(u.kC,{direction:"column",w:"fit-content",justifyContent:"flex-end",children:[(0,l.jsx)(u.kC,{justifyContent:"center",paddingBottom:"5px",children:(0,l.jsx)(u.xv,{fontSize:.9*p,sx:{color:"white !important",fontFamily:e+" !important"},children:g.product.options[0].name})}),(0,l.jsx)(u.kC,{justifyContent:"right",children:(0,l.jsxs)(ue.v2,{children:[(0,l.jsx)(ue.j2,{overflow:"hidden",h:.24*c,w:"fit-content",maxW:h,transition:"all 0.2s",_hover:{bg:"white"},_expanded:{bg:"white"},_focus:{boxShadow:"outline"},sx:{backgroundColor:"white !important",borderRadius:"round"==r?"5px":"0px"},as:te.zx,rightIcon:(0,l.jsx)(he.Z,{sx:{color:"black!important",fill:"black!important",fontSize:1.3*p}}),children:(0,l.jsx)(u.xv,{textOverflow:"ellipsis",overflow:"hidden",padding:"5px",fontSize:.9*p,sx:{color:"black !important",fontFamily:e+" !important",lineHeight:"100% !important"},children:void 0===f?g.product.variants[0].option1:f})}),(0,l.jsx)(ue.qy,{overflowY:"auto",maxHeight:2*c+"px",bg:"white",_focus:{bg:"white"},_hover:{bg:"white"},_expanded:{bg:"white"},children:g.product.options[0].values.map((t=>(0,l.jsx)(ue.sN,{bg:"white",_hover:{bg:"white"},_focus:{bg:"white"},onClick:()=>s(t),children:(0,l.jsx)(u.xv,{paddingX:"10px",paddingY:"4px",sx:{color:"black !important",fontFamily:e+" !important",lineHeight:"100% !important"},fontSize:p,children:t})})))})]})}),(0,x.eg)(n)?(0,l.jsx)(u.kC,{justifyContent:"center",marginTop:"10px",children:(0,l.jsx)(u.xv,{fontSize:.7*p,as:"u",sx:{color:"white !important",fontFamily:e+" !important"},onClick:()=>{null!==i&&i(!0)},children:(0,x.me)(n)})}):(0,l.jsx)(l.Fragment,{})]}),g.product.options.length>=2&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.kC,{display:"flex !important",flexGrow:1}),(0,l.jsxs)(u.kC,{direction:"column",w:"fit-content",overflow:"hidden",justifyContent:"flex-end",children:[(0,l.jsx)(u.kC,{justifyContent:"center",paddingBottom:"5px",children:(0,l.jsx)(u.xv,{fontSize:.9*p,sx:{color:"white !important",fontFamily:e+" !important"},children:g.product.options[1].name})}),(0,l.jsx)(u.kC,{justifyContent:"right",children:(0,l.jsxs)(ue.v2,{children:[(0,l.jsx)(ue.j2,{h:.24*c,maxW:h,transition:"all 0.2s",borderRadius:"round"==r?"md":null,sx:{backgroundColor:"white !important",borderRadius:"round"==r?"5px":"0px"},_hover:{bg:"gray.400"},_expanded:{bg:"gray.400"},_focus:{boxShadow:"outline"},as:te.zx,rightIcon:(0,l.jsx)(u.xu,{justifyContent:"center",alignItems:"center",children:(0,l.jsx)(he.Z,{sx:{color:"black!important",fill:"black!important",fontSize:1.3*p}})}),children:(0,l.jsx)(u.xv,{textOverflow:"ellipsis",overflow:"hidden",padding:"5px",fontSize:.9*p,sx:{color:"black !important",fontFamily:e+" !important"},children:void 0===m?g.product.variants[0].option2:m})}),(0,l.jsx)(ue.qy,{overflowY:"auto",maxHeight:2*c+"px",bg:"white",_focus:{bg:"white"},_hover:{bg:"white"},_expanded:{bg:"white"},children:g.product.options[1].values.map((t=>(0,l.jsxs)(ue.sN,{bg:"white",_hover:{bg:"white"},_focus:{bg:"white"},onClick:()=>d(t),children:[" ",(0,l.jsxs)(u.xv,{paddingX:"10px",paddingY:"4px",sx:{color:"black !important",fontFamily:e+" !important"},fontSize:p,children:[" ",t," "]})," "]})))})]})})]})]})]})}function pe(t){const[e,n,i,r]=g();var s=.4*r*.8,d=s*(16/9)*.6*.8;var c=.13*s;const[h,p]=(0,o.useState)(!1),f=t.data,w=t.event,j=t.product,v=t.setOpenShopNow,C=t.setLockSwiper,[b]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[S,y]=(0,o.useState)((()=>{if("true"===b)return me(f,j.client_product_id)})),[k,I]=(0,o.useState)((()=>{if("true"===b)return we(f,j.client_product_id)})),[F,_]=(0,o.useState)(),[T,O]=(0,o.useState)(1),[P,z]=(0,o.useState)(),[R,E]=(0,o.useState)(0),[M,q]=(0,o.useState)(!1),[H,L]=(0,o.useState)(!1),[A,W]=(0,o.useState)(j.thumbnail_image),Z=(0,a.MO)("whatmoreUITheme"),B=(0,a.MO)("whatmoreShopId"),N=(0,o.useCallback)((t=>{y(t)}),[]),U=(0,o.useCallback)((t=>{I(t)}),[]);(0,o.useEffect)((()=>{const t=ge(f,S,k);_(t),z(fe(f,t)),O(1),L(!1);const e=je(f,t);null!==e&&W(e)}),[S,k]),(0,o.useEffect)((()=>{const t=void 0===F?f.product.variants[0].price:fe(f,F);z(t*T)}),[T]),(0,o.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,m.Bi)():(0,kt.OM)(e)}((0,x.Ip)(B),B);t.then((t=>t.json())).then((t=>{E(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[M]);const V=(0,D.F4)(ce||(ce=(0,K.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),Y="".concat(V," 0.5s");return(0,l.jsxs)(u.Kq,{overscrollBehaviorY:"none",bg:"#252324",height:"fit-content",opacity:"95%",width:"full",borderTopRadius:"round"==Z?"xl":null,animation:Y,children:[(0,l.jsx)(Qt,{setOpenShopNow:v,setLockSwiper:C,FONT_SIZE:c}),(0,l.jsx)(u.M5,{width:"100%",children:(0,l.jsx)(u.iz,{color:"whiteAlpha.500",size:"xs",width:"90%"})}),(0,l.jsx)(de,{data:f,product:j,PRODUCT_TILE_HEIGHT:d,PRODUCT_TILE_WIDTH:s,FONT_SIZE:c,getVariantPrice:fe,selectedVariantId:F,itemPrice:P,itemQuantity:T,setItemQuantity:O,thumbnailImage:A}),f.product.variants.length>1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.M5,{width:"100%",children:(0,l.jsx)(u.iz,{color:"whiteAlpha.500",size:"xs",width:"90%"})}),(0,l.jsx)(xe,{data:f,product:j,PRODUCT_TILE_HEIGHT:d,PRODUCT_TILE_WIDTH:s,FONT_SIZE:c,selectOptionFirstHandler:N,selectOptionSecondHandler:U,getVariantPrice:fe,selectedOptionFirst:S,selectedOptionSecond:k,selectedVariantId:F})]}),(0,l.jsx)(u.M5,{width:"100%",children:(0,l.jsx)(u.iz,{color:"whiteAlpha.500",size:"xs",width:"90%"})}),(0,l.jsx)(ae,{PRODUCT_TILE_HEIGHT:d,FONT_SIZE:c,data:f,handleToggle:()=>p(!h),show:h}),(0,l.jsx)(re,{selectedVariantId:F,data:f,FONT_SIZE:c,PRODUCT_TILE_WIDTH:s,product:j,itemQuantity:T,cartItemCount:R,addToCartFlag:M,setAddToCartFlag:q,soldOutFlag:H,setSoldOutFlag:L,event:w})]})}const ge=(t,e,n)=>{if(void 0===e&&void 0===n)return t.product.variants[0].id;if(void 0===n)return t.product.variants.find((t=>t.option1===e)).id;if(void 0===e)return t.product.variants.find((t=>t.option2===n)).id;const i=t.product.variants.find((t=>t.option1===e&&t.option2===n));return void 0===i?t.product.variants[0].id:i.id},fe=(t,e)=>t.product.variants.find((t=>t.id===e)).price,me=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option1,we=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option2,je=(t,e)=>{const n=t.product.images.find((t=>t.variant_ids.find((t=>t===e))));return void 0===n?null:n.src},ve=(0,o.createContext)({setShowOptionsChart:null});var Ce=function(t){const e=t.event,n=t.data,i=t.currentProduct,r=t.setOpenShopNow,a=t.setLockSwiper,[s,d]=(t.isLast,t.onCloseCallback,t.focusRef,(0,o.useState)(!1));return(0,l.jsx)(ve.Provider,{value:{setShowOptionsChart:d},children:(0,l.jsxs)(u.xu,{width:"full",height:"full",borderRadius:"md",children:[(0,l.jsx)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(pe,{data:n,event:e,product:i,setOpenShopNow:r,setLockSwiper:a})})}),s?(0,l.jsx)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)($t,{data:n,event:e,product:i,setShowOptionsChart:()=>{d(!1)}})})}):(0,l.jsx)(l.Fragment,{})]})})};var be=function(t){var e,[n,i,r,s]=g();const[d,c]=(0,o.useState)(!1),[h,p]=(0,o.useState)(),[m,w]=(0,o.useState)(),j=(0,a.MO)("whatmoreShopId"),v=t.event,C=t.onBack,b=o.useRef(),S=t.isPlaying,y=t.isLast,k=t.setLockSwiper,I=t.selectedVariantId,F=null===(e=t.showOverlay)||void 0===e||e,T="center";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:s,height:r,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:T,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:s/r,children:(0,l.jsx)(_,{height:"100%",width:"100%",url:v.event_hls_url,isPlaying:S,event:v})})})}),F?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(Jt,{focusRef:b,event:t.event,isLast:y,onCloseCallback:C,productClickHandler:async t=>{const e=await(0,f.gK)(t,(0,x.Ip)(j),j);w(t),p(e),c(!0),k(!0)}})})}):(0,l.jsx)(l.Fragment,{}),!0===d?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(Ce,{focusRef:b,event:t.event,isLast:y,onCloseCallback:()=>C(),setLockSwiper:k,data:h,currentProduct:m,setOpenShopNow:c,selectedVariantId:I})})}):(0,l.jsx)("div",{})]})})};const Se=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function ye(t){var e,n,[i,o,r,s]=g();const[d]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmoreSecondaryColorShade900"),[h]=(0,a.j1)("whatmoreShopId"),x=t.progress,p=null!==(e=t.totalSiblings)&&void 0!==e?e:1,f=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,l.jsx)(u.Kq,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(p).keys()].map((t=>(0,l.jsx)(u.Kq,{width:"100%",height:.004*r+"px",backgroundColor:t<f?d:c+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==f?(0,l.jsx)(u.xu,{height:"100%",width:x+"%",bgColor:d,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,l.jsx)(l.Fragment,{})},"event-progress-bar-slab-"+t)))})}var ke=n(4136),Ie=n(442);n(1824);const Fe=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t;var _e=function(t){var e,n,i,o=t.whatmoreShareTemplateId;const s=t.whatmoreShareStoryId,d=t.whatmoreShareEventId,c=t.event,h=null===(e=t.showShareText)||void 0===e||e,p=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,f=(0,a.MO)("whatmoreShopId"),m=(0,a.MO)("isInDesignMode"),w=(0,a.MO)("isDemoBrand"),j=(0,a.MO)("whatmorePrimaryFont"),[v,C,b,S]=g(),y=null!==(i=t.iconSize)&&void 0!==i?i:.1*S;function k(){const t=(0,a.MO)("whatmoreLandingLocationType");!function(t){m||w||(async()=>{(0,r.x0)(t)})()}(c),(t.startsWith("product")||"embed"===t)&&(o="te");var e=window.location.pathname+"?wtt="+o+"&wsid="+s+"&weid="+d;(0,x.lj)(f)&&(e=e+"&"+(0,x.aw)(f)+"&utm_campaign=video-share&utm_medium="+t);const n={title:(0,x.JN)(f),text:(0,x.QR)(f),url:e};navigator.share(n)}return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",style:{marginBottom:p+"px"},children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,l.jsx)(Ie.Z,{sx:{boxShadow:3,rotate:"-30deg",color:"white",fontSize:y,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),k()}}),h&&(0,x.u8)(f)?(0,l.jsxs)(u.xv,{fontSize:.3*y+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:j+" !important",color:"white !important",paddingRight:"10%"},children:["\xa0",c.total_share>(0,x.LW)(f)?Fe(c.total_share):"Share","\xa0"]}):(0,l.jsx)(l.Fragment,{})]})})})},Te=n(6524),Oe=n(7933),Pe=n(2785);var ze=function(t){var e;const n=(0,a.MO)("whatmoreShopId"),i=(0,a.MO)("whatmorePrimaryFont"),s=(0,a.MO)("whatmoreLikedEvents"),d=((0,a.MO)("whatmoreSecondaryColor"),(0,a.MO)("isInDesignMode")),c=(0,a.MO)("isDemoBrand"),h=t.event,[p,f]=(0,o.useState)(null!==(e=s[h.event_id])&&void 0!==e&&e),[m,w,j,v]=g(),C=.1*v;function b(t,e){d||c||(async()=>{(0,r.Z6)(t,e)})()}function S(){(0,a.bU)("whatmoreLikedEvents",{...s,[h.event_id]:!p}),b(h,p?-1:1),f(!p)}const y=h.total_like+(p?1:0);return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[p?(0,l.jsx)(Pe.Z,{sx:{boxShadow:3,color:"red",fontSize:C,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),S()}}):(0,l.jsx)(Oe.Z,{sx:{boxShadow:3,color:"white",fontSize:C,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),S()}}),(0,l.jsx)(l.Fragment,{children:(0,x.CE)(n)?(0,l.jsxs)(u.xv,{fontSize:.3*C+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:i+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",y>=(0,x.zK)(n)?Fe(y):"Like","\xa0"]}):(0,l.jsx)(l.Fragment,{})})]})})})};function Re(t){var e;const n=t.event,[i,r,s,d]=g(),[c]=(0,a.j1)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,o.useContext)(ke.I),[p]=(0,a.j1)("whatmoreSecondaryColor"),[f]=(0,a.j1)("whatmoreShopId"),m=(0,x.f6)(f),w=null!==(e=(0,x.u2)(f))&&void 0!==e?e:[p,m,p,m,p];return(0,l.jsx)(l.Fragment,{children:h?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",padding:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{overflow:"hidden",size:.14*d+"px",sx:{boxShadow:"0px 2px 1px 0px "+w[0]+"50, 0px -2px 1px 0px "+w[1]+"50, 2px 0px 1px 0px "+w[2]+"50, -2px 0px 1px 0px "+w[3]+"80, 2px -2px 1px 0px "+w[4]+"80, -2px 2px 1px 0px "+w[0]+"DA, 2px 2px 1px 0px "+w[1]+"DA, -2px -2px 1px 0px "+w[2]+"DA"},children:(0,l.jsx)("img",{src:(0,k.V)(n.storyset_thumbnail_image),style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*d+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:c+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,l.jsx)(l.Fragment,{})})}var Ee=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i,r]=(0,a.j1)("isProductSwiperCatalogOpen"),[s,c]=(0,d.Z)(),[h,p]=(0,a.j1)("isFirstIndicatorRenderDone"),[f]=(0,a.j1)("whatmoreSecondaryColor"),[m]=(0,a.j1)("whatmoreSecondaryColorShade900"),[w]=(0,a.j1)("whatmoreShopId"),j=(0,o.useContext)(wn),{whatmoreIsStoriesTemplate:v}=(0,o.useContext)(ke.I),{whatmoreEventsBrowsingTemplate:C}=(0,o.useContext)(ke.I),[b,S,y,k]=g(),I=t.event,F=t.storySetId,_=t.isLast,T=t.onCloseCallback,O=t.focusRef,P=t.productClickHandler,z=t.videoPlayingData,R=t.totalSiblingEvents,E=t.indexAmongSiblings,M=t.leftOpenSpaceClickHandler,K=t.midOpenSpaceClickHandler,H=t.rightOpenSpaceClickHandler;return(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsxs)(u.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:[j.showVideoPlayingData?(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,l.jsx)(ye,{progress:Se(z.current_time,z.video_duration),totalSiblings:R,indexAmongSiblings:E})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{width:"full",margin:"2px",marginTop:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(Re,{event:I}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,Te.ZK)(C)?(0,l.jsx)(_e,{whatmoreShareTemplateId:(0,Te.QN)(C),whatmoreShareStoryId:F,whatmoreShareEventId:I.event_id,event:I,showShareText:!1,iconSize:.07*k,shareButtonBottomMargin:6}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(q,{focusRef:O}),(0,l.jsx)(nt,{event:I,onCloseCallback:T})]})]})})]}),(0,l.jsxs)(u.Kq,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,l.jsx)(u.xu,{width:"33%",height:"100%",onClick:()=>{M()},sx:{display:"block !important"}}),(0,l.jsx)(u.xu,{width:"34%",height:"100%",onClick:()=>{K()},sx:{display:"block !important"}}),(0,l.jsx)(u.xu,{width:"33%",height:"100%",onClick:()=>{H()},sx:{display:"block !important"}})]}),(0,l.jsxs)(u.xu,{width:"full",height:"fit-content",children:[j.totalEvents>1&&!h&&j.showSwipeIndicator?(0,l.jsx)(u.xu,{width:"full",margin:"2px",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)(lt,{swipeUp:!_})})}):null,(0,x.jY)(w)?(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"2%",children:(0,l.jsx)(ze,{event:I})})}):(0,l.jsx)(l.Fragment,{}),(0,x.RO)(w)&&!(0,Te.ZK)(C)?(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"1%",children:(0,l.jsx)(_e,{whatmoreShareTemplateId:(0,Te.QN)(C),whatmoreShareStoryId:F,whatmoreShareEventId:I.event_id,event:I})})}):(0,l.jsx)(l.Fragment,{}),(0,Ut.kT)(I)?(0,l.jsxs)(u.xu,{width:"full",children:[(0,x.Jm)(w)?(0,l.jsx)(u.xu,{w:"100%",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(J,{event:I,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Yt,{event:I,productClickHandler:P})})]}):(0,l.jsx)(l.Fragment,{})]})]})})},Me=n(2279),qe=n.n(Me),Ke=n(342);var He=function(t){var e,n,i,r,s,d,[c,h,p,m]=g();const[w,j]=(0,o.useState)(!1),[v,C]=(0,o.useState)(),[b,S]=(0,o.useState)(),[y,I]=(0,o.useState)({current_time:0,video_duration:0,is_video_ended:!1}),_=(0,a.MO)("whatmoreShopId"),T=t.event,O=t.storyId,P=t.onBack,z=o.useRef(),R=t.isPlaying,E=t.isLast,M=t.setLockSwiper,q=t.onVideoEndedCallback,K=t.progressUpdateCallback,H=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,D=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,L=null===(i=t.showOverlay)||void 0===i||i,A=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},W=null!==(s=t.midOpenSpaceClickHandler)&&void 0!==s?s:()=>{},Z=null!==(d=t.rightOpenSpaceClickHandler)&&void 0!==d?d:()=>{},B="center",N=qe()((()=>{q()}),1e3,{leading:!0,trailing:!1});return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:m,height:p,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:B,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:m/p,children:(0,l.jsx)(F,{height:"100%",width:"100%",url:(0,k.V)((0,Ke.uv)(T)),isPlaying:R,timeUpdateCallback:function(t,e){const n=Se(t,e);K(n);const i=y.is_video_ended;n>=99&&R&&!i?(N(),I({current_time:t,video_duration:e,is_video_ended:!0})):I({current_time:t,video_duration:e,is_video_ended:i})},event:T})})})}),L?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:B,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(Ee,{focusRef:z,event:t.event,isLast:E,onCloseCallback:()=>P(),productClickHandler:async t=>{const e=await(0,f.gK)(t,(0,x.Ip)(_),_);S(t),C(e),j(!0),M(!0),(0,a.bU)("whatmoreAllowAutoSlide",!1)},videoPlayingData:y,totalSiblingEvents:H,indexAmongSiblings:D,leftOpenSpaceClickHandler:A,midOpenSpaceClickHandler:W,rightOpenSpaceClickHandler:Z,storySetId:O})})}):(0,l.jsx)(l.Fragment,{}),!0===w?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:B,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(Ce,{focusRef:z,event:t.event,isLast:E,onCloseCallback:()=>P(),setLockSwiper:M,data:v,currentProduct:b,setOpenShopNow:t=>{j(t),(0,a.bU)("whatmoreAllowAutoSlide",!t)}})})}):(0,l.jsx)("div",{})]})})},De=n(8984),Le=n(9723);var Ae=function(t){var[e,n,i,o]=g();(0,a.MO)("whatmoreShopId");const r=t.event,s=t.isPlaying,d="center";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:d,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:o/i,children:(0,l.jsx)(F,{height:"100%",width:"100%",url:(0,k.V)((0,Ke.uv)(r)),isPlaying:s,timeUpdateCallback:function(t,e){},event:r})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:d,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,v.QV)()},children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,l.jsx)(Le.Z,{sx:{boxShadow:3,color:"white",fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,v.QV)()}}),(0,l.jsx)(u.xv,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})};var We=function(t){var e,n;const o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,c=t.onBack,h=t.isLast,u=t.setLockSwiper,x=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),p=t.progressUpdateCallback,[g,f]=(0,d.Z)(),[m]=(0,a.j1)("whatmoreVideoPlayerPoolBlessed"),w=null===(n=t.showOverlay)||void 0===n||n;function j(){f(!g)}if((0,De.KE)()&&0==m)return(0,l.jsx)(Ae,{event:o,onBack:c,isPlaying:r,isLast:h,setLockSwiper:u,onVideoEndedCallback:x,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{j()},midOpenSpaceClickHandler:()=>{j()},rightOpenSpaceClickHandler:()=>{j()},showOverlay:w},"shopping-video-view"+o.event_id);if((0,S.B6)(o)||(0,S.WJ)(o))return(0,l.jsx)(He,{event:o,onBack:c,isPlaying:r,isLast:h,setLockSwiper:u,onVideoEndedCallback:x,progressUpdateCallback:p,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{j()},midOpenSpaceClickHandler:()=>{j()},rightOpenSpaceClickHandler:()=>{j()},showOverlay:w},"shopping-video-view"+o.event_id);if((0,S.yC)(o)){var{status:v,bannerText:C,timeToStartInMins:b}=i.Z.getEventStatus(o);if(v.name===s.Z.LIVE.name)return(0,l.jsx)(be,{event:o,onBack:c,isPlaying:r,isLast:h,showOverlay:w},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,l.jsx)("div",{})},Ze=n(9284),Be=n.n(Ze),Ne=n(7463),Ue=n(2154);function Ve(t){var e;const[n,i]=(0,o.useState)(!1),r=t.onClick,a=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,l.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,l.jsx)(Ue.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),r(t,"up")}}):(0,l.jsx)(Ne.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),r(t,"down")}})})}var Ye=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,s=t.handleClick;return(0,l.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,l.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,l.jsx)(Ve,{type:"left",onClick:s,fontSize:a}),(0,l.jsx)(Ve,{type:"right",onClick:s,fontSize:a})]})})},Xe=n(2860),Ge=n(4669);var Je=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const i=(0,o.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 Qe=function(t,e){const n=(0,o.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 $e=function(t,e){const n=(0,o.useRef)(qe()(((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)}]},tn=n(5173);var en=function(t){const e=t.events,n=t.eventIndex,i=t.onBack;var[s,p,f,m]=g();const[w,j]=(0,d.Z)(),[v]=(0,a.j1)("isInDesignMode"),[C]=(0,a.j1)("isDemoBrand"),[b,S]=(0,o.useState)(!0),[y,k]=(0,a.j1)("isFirstIndicatorRenderDone"),[I,F]=(0,o.useState)(!1),{setCloseClickComponent:_}=(0,o.useContext)(wn),{slideDirection:T}=(0,o.useContext)(wn),[O]=(0,a.j1)("whatmoreShopId"),[P]=(0,a.j1)("whatmoreLandingLocationType"),[z,R]=Je(n,e.length),[E,M]=Qe(T,50),[q]=$e("vertical",30),[K,H]=(0,o.useState)(!1),[D,L]=(0,o.useState)(null);function A(){H(!1)}function W(){A(),setTimeout((()=>{i()}),500)}function Z(){(0,a.MO)("whatmoreAllowAutoSlide")&&(R("right"),D.slideNext())}function B(t,e){R(e),function(t,e){D&&("left"===e?D.slidePrev():D.slideNext())}(0,e)}(0,o.useEffect)((()=>(H(!0),()=>{})),[]),_(W);const N=Math.round(.05*f);return(0,l.jsx)(Be(),{isOpen:K,onAfterOpen:function(){},onRequestClose:A,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,l.jsx)(tn.Z,{children:(0,l.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,dt.l)("#000000",13)},onTouchStart:t=>{E(t)},onTouchEnd:t=>{const e=M(t);e&&B(0,e)},onWheel:t=>{q(t,(t=>{B(0,t)}))},children:[(0,l.jsx)(c.tq,{speed:400,threshold:N,slidesPerView:1,direction:T,modules:[h.tl,h.Gk],initialSlide:n,loop:!0,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!I,allowSlidePrev:!I,allowTouchMove:!1,onSwiper:t=>{L(t)},onSlideChange:t=>{var n;b?S(!1):(y||k(!0),n=e[z().activeIndex],v||C||(async()=>{(0,r.wh)(n),"index"===P?((0,Ge.Tc)(O,Xe.Xh,Xe.pR),(0,yt.H4)(n.event_id,n.products,Xe.Xh,Xe.pR)):P.startsWith("product")||"embed"===P?((0,Ge.Tc)(O,Xe.h7,Xe.dU),(0,yt.H4)(n.event_id,n.products,Xe.h7,Xe.dU)):P.startsWith("collection")?((0,Ge.Tc)(O,Xe.U$,Xe.Pk),(0,yt.H4)(n.event_id,n.products,Xe.U$,Xe.Pk)):((0,Ge.Tc)(O,Xe.Xh,Xe.pR),(0,yt.H4)(n.event_id,n.products,Xe.Xh,Xe.pR))})())},children:[...Array(Math.min(e.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;const d=n?"activeIndex":i?"prevIndex":"nextIndex";return(0,l.jsx)(u.Kq,{direction:"column",height:s,justifyContent:"center",children:(0,l.jsx)(We,{event:e[z()[d]],onBack:W,isPlaying:n&&r,isLast:!1,setLockSwiper:F,onVideoEndedCallback:Z,progressUpdateCallback:t=>{}})})}},"event-vertical-scroll-slide-"+t)))}),e.length>1&&!I&&(0,x.h6)(O)&&"horizontal"===(0,x.e8)(O)&&"horizontal"===T?(0,l.jsx)(Ye,{relativeBottomPercentage:"50%",width:m,handleClick:(t,e)=>{B(0,"down"==e?"right":"left")},fontSize:parseInt(.12*m)}):(0,l.jsx)(l.Fragment,{})]})})})},nn=n(4892);var on=function(t){var e,n,i,[r,s,c,h]=g();const[x]=(0,d.Z)(),[p]=(0,a.j1)("whatmorePrimaryColor"),[f]=(0,a.j1)("whatmoreSecondaryColor"),m=t.event,w=(t.onBack,o.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(n=t.heightFactor)&&void 0!==n?n:1,v="flex-end";return h*=null!==(i=t.widthFactor)&&void 0!==i?i:1,c*=j,(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:h,height:c,children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:v,height:"full",width:"full",children:(0,l.jsx)(u.xu,{children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:w?(0,S.B6)(m)||(0,S.WJ)(m)?(0,l.jsx)(nn.Z,{height:"100%",width:"100%",url:m.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:m}):(0,l.jsx)(T.Ee,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,l.jsx)(u.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+p+", gray, "+f+")"})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:v,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(u.xu,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})},rn=n(1168);n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811);const an=t=>{let{children:e,customClass:n,show:i,closeCallback:o}=t;return rn.createPortal((0,l.jsxs)("div",{className:"whatmore-landscape-modal whatmore-root ".concat(n),style:{display:i?"block":"none"},children:[(0,l.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,l.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};an.defaultProps={children:(0,l.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var ln=an;var sn=function(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),o=(t.height,t.width,null!==(e=t.fontSize)&&void 0!==e?e:"8");return(0,l.jsx)(u.rU,{href:"https://www.whatmore.live",isExternal:!0,children:(0,l.jsxs)(u.Kq,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"2px",paddingLeft:"2px",paddingRight:"2px",paddingBottom:"2px",marginBottom:"2px",children:[(0,l.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:i,fontWeight:"normal",fontSize:o+"px",margin:0,padding:0,lineHeight:"110%"},children:"powered by whatmore"}),(0,l.jsx)(u.xu,{width:"10px"}),(0,l.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px"}})]})})};var dn=function(t){var[e,n,i,s]=g();const[d]=(0,a.j1)("isInDesignMode"),[p]=(0,a.j1)("isDemoBrand"),[f,m]=(0,a.j1)("isFirstIndicatorRenderDone"),[w,j]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:v}=(0,o.useContext)(wn),[C,b]=(0,o.useState)(!1),[S]=(0,a.j1)("whatmoreShopId"),[y]=(0,a.j1)("whatmoreLandingLocationType"),k=(0,a.MO)("whatmoreUITheme"),[I,F]=(0,o.useState)(!1),[_,T]=(0,o.useState)(null);function O(){F(!1)}const P=t.events,z=t.eventIndex,R=t.onBack;function E(){O(),setTimeout((()=>{R()}),500)}function M(){_&&!_.isEnd&&(0,a.MO)("whatmoreAllowAutoSlide")&&_.slideNext()}(0,o.useEffect)((()=>(F(!0),()=>{})),[]),v(E);const q=parseInt(Math.min(5,P.length));return(0,l.jsx)(ln,{show:I,closeCallback:O,customClass:"whatmore-landscape-modal-swipe-view",children:(0,l.jsxs)(u.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:(0,dt.l)("#000000",13),children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xu,{height:"fit-content",width:s*q,children:(0,l.jsx)(c.tq,{onInit:t=>{T(t)},slidesPerView:q,centeredSlides:!0,allowTouchMove:!1,initialSlide:z,modules:[h.lI,h.W_,h.Gk],navigation:q>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:s*q,watchSlidesProgress:!0,onSlideChange:t=>{var e;w?j(!1):(f||m(!0),e=P[t.activeIndex],d||p||(async()=>{(0,r.wh)(e),"index"===y?((0,Ge.Tc)(S,Xe.Xh,Xe.pR),(0,yt.H4)(e.event_id,e.products,Xe.Xh,Xe.pR)):y.startsWith("product")||"embed"===y?((0,Ge.Tc)(S,Xe.h7,Xe.dU),(0,yt.H4)(e.event_id,e.products,Xe.h7,Xe.dU)):y.startsWith("collection")?((0,Ge.Tc)(S,Xe.U$,Xe.Pk),(0,yt.H4)(e.event_id,e.products,Xe.U$,Xe.Pk)):((0,Ge.Tc)(S,Xe.Xh,Xe.pR),(0,yt.H4)(e.event_id,e.products,Xe.Xh,Xe.pR))})())},mousewheel:{invert:!1,thresholdDelta:20},children:P.map(((t,e)=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:n,isPrev:o,isNext:r,isVisible:a,isDuplicate:d}=t;return n?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:1*s,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(u.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,x.al)(S),borderColor:(0,x.qP)(S)},children:(0,l.jsx)(We,{event:P[e],onBack:E,isPlaying:!0,isLast:e===P.length-1,setLockSwiper:b,widthFactor:1,heightFactor:1,onVideoEndedCallback:M,progressUpdateCallback:t=>{}})})}):r||o?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:s,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{_.slideTo(e,300)},children:(0,l.jsx)(u.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,x.al)(S),borderColor:(0,x.qP)(S)},children:(0,l.jsx)(We,{event:P[e],onBack:E,isPlaying:!1,isLast:e===P.length-1,setLockSwiper:b,widthFactor:1,heightFactor:1,onVideoEndedCallback:M,progressUpdateCallback:t=>{},showOverlay:!1})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))})})}),(0,x.XF)(S)?(0,l.jsx)(u.M5,{children:(0,l.jsx)(sn,{height:.04*i,width:.1*s,fontSize:.02*i})}):(0,l.jsx)(l.Fragment,{})]})})},cn=n(4664),hn=n(7616),un=n(9302),xn=n(2575);var pn=function(t){var e;const n=t.stories,i=t.onBack,s=t.onStoryCompleteCallback,h=t.isActive,x=(t.isNext,t.isPrev,null!==(e=t.initialEventIndex)&&void 0!==e?e:0),p=n.events;var[f,m,j,v]=g();const[C,b]=(0,d.Z)(),[y]=(0,a.j1)("isInDesignMode"),[k]=(0,a.j1)("isDemoBrand"),[I]=(0,a.j1)("whatmoreShopId"),[F]=(0,a.j1)("whatmoreSecondaryColorShade900"),[_]=(0,a.j1)("whatmoreSecondaryColor"),[T,O]=(0,o.useState)(!0),[P,z]=(0,a.j1)("isFirstIndicatorRenderDone"),{setCloseClickComponent:R}=(0,o.useContext)(wn),{slideDirection:E}=(0,o.useContext)(wn),[M,q]=(0,o.useState)(null),[K,H]=(0,o.useState)(!1),[D,L]=(0,o.useState)(0),[A,W]=Je(x,p.length);function Z(){i()}function B(){if(!(0,a.MO)("whatmoreAllowAutoSlide"))return;A().activeIndex+1>=p.length?s("right"):(W("right"),M&&M.slideNext())}function N(t){const e=A().activeIndex;"right"==t&&e+1>=p.length||"left"==t&&e-1<0?s(t):(W(t),M&&("left"==t?M.slidePrev():M.slideNext()))}return p[A().activeIndex],(0,l.jsx)("div",{children:(0,l.jsx)(c.tq,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:j,width:v,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{q(t)},onSlideChange:t=>{var e;T?O(!1):(P||z(!0),e=p[A().activeIndex],y||k||(async()=>{(0,r.wh)(e),(0,Ge.Tc)(I,Xe.Xh,Xe.OW),(0,yt.H4)(e.event_id,e.products,"homepage","stories")})())},children:[...Array(Math.min(p.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;if(h){const t=e?"activeIndex":i?"prevIndex":"nextIndex",o=p[A()[t]];return(0,l.jsx)(u.Kq,{direction:"column",height:j,justifyContent:"center",children:(0,S.B6)(o)||(0,S.WJ)(o)?(0,l.jsx)(He,{event:o,totalSiblingEvents:p.length,indexAmongSiblings:A()[t],onBack:Z,isPlaying:h&&e&&r,isLast:!1,setLockSwiper:H,onVideoEndedCallback:B,progressUpdateCallback:t=>{},leftOpenSpaceClickHandler:()=>{N("left")},midOpenSpaceClickHandler:()=>{b(!C)},rightOpenSpaceClickHandler:()=>{N("right")},storyId:n.id},"shopping-video-view"+o.event_id):(0,l.jsx)(l.Fragment,{})})}return(0,l.jsx)(u.Kq,{direction:"column",height:f,justifyContent:"center",children:(0,l.jsx)(w,{})})}},"event-story-view-slide-"+t)))})})};var gn=function(t){const e=t.onBack,n=t.eventsStories,i=t.initialStoryIndex;var[s,x,p,f]=g();const[m,w]=(0,d.Z)(),[j]=(0,a.j1)("isInDesignMode"),[v]=(0,a.j1)("isDemoBrand"),[C,b]=(0,o.useState)(!0),[S,y]=(0,a.j1)("isFirstIndicatorRenderDone"),[k,I]=(0,o.useState)(!1),{setCloseClickComponent:F}=(0,o.useContext)(wn),{slideDirection:_}=(0,o.useContext)(wn),[T]=(0,a.j1)("whatmoreShopId"),[O,P]=Je(i,n.length),[z,R]=Qe("horizontal",50),[E]=$e("vertical",30),M=t.eventIndex,[q,K]=(0,o.useState)(!1),[H,D]=(0,o.useState)(null);function L(){K(!1)}function A(){L(),setTimeout((()=>{e()}),500)}function W(t){H&&(0,a.MO)("whatmoreAllowAutoSlide")&&(P(t),"right"==t?H.slideNext():H.slidePrev())}function Z(t,e){W(e)}return(0,o.useEffect)((()=>(K(!0),()=>{})),[]),F(A),(0,l.jsx)(Be(),{isOpen:q,onAfterOpen:function(){},onRequestClose:L,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,l.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{z(t)},onTouchEnd:t=>{const e=R(t);e&&Z(0,e)},onWheel:t=>{E(t,(t=>{Z(0,t)}))},children:(0,l.jsx)(c.tq,{speed:1,slidesPerView:1,direction:"horizontal",modules:[h.SH,h.Gk],initialSlide:i,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{D(t)},onSlideChange:t=>{var e;C?b(!1):(e=n[O().activeIndex].events[0],j||v||(async()=>{(0,r.wh)(e),(0,Ge.Tc)(T,Xe.Xh,Xe.OW),(0,yt.H4)(e.event_id,e.products,"homepage","stories")})())},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:e,isPrev:o,isNext:r,isVisible:a,isDuplicate:d}=t;const c=e?"activeIndex":o?"prevIndex":"nextIndex";return(0,l.jsx)(u.Kq,{direction:"column",height:s,justifyContent:"center",children:(0,l.jsx)(pn,{stories:n[O()[c]],onBack:A,isActive:e&&a,isNext:r,isPrev:o,onStoryCompleteCallback:W,nextStories:n[O().nextIndex],prevStories:n[O().prevIndex],initialEventIndex:i==O()[c]?M:0},"event-story-view-"+n[O()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var fn=function(t){var[e,n,i,s]=g();const[d]=(0,a.j1)("isInDesignMode"),[p]=(0,a.j1)("isDemoBrand"),[f,m]=(0,a.j1)("isFirstIndicatorRenderDone"),[w,j]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:v}=(0,o.useContext)(wn),[C,b]=(0,o.useState)(!1),[S]=(0,a.j1)("whatmoreShopId"),[y,k]=(0,o.useState)(!1),[I,F]=(0,o.useState)(null);function _(){k(!1)}t.events;const T=t.eventIndex,O=t.onBack,P=t.eventsStories,z=t.initialStoryIndex;function R(){_(),setTimeout((()=>{O()}),500)}function E(t){I&&!I.isEnd&&("right"==t?I.slideNext():I.slidePrev())}(0,o.useEffect)((()=>(k(!0),()=>{})),[]),v(R);const M=parseInt(Math.min(5,P.length));return(0,l.jsx)(ln,{show:y,closeCallback:_,customClass:"whatmore-landscape-modal-stories-view",children:(0,l.jsxs)(u.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:"blackAlpha.800",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xu,{height:"fit-content",width:s*M,children:(0,l.jsx)(c.tq,{onInit:t=>{F(t)},slidesPerView:M,centeredSlides:!0,allowTouchMove:!1,initialSlide:z,modules:[h.lI,h.W_,h.Gk],navigation:M>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:s*M,watchSlidesProgress:!0,onSlideChange:t=>{var e;w?j(!1):(f||m(!0),e=P[t.activeIndex].events[0],d||p||(async()=>{(0,r.wh)(e),(0,Ge.Tc)(S,Xe.Xh,Xe.OW),(0,yt.H4)(e.event_id,e.products,"homepage","stories")})())},mousewheel:{invert:!1,thresholdDelta:20},children:P.map(((t,e)=>(0,l.jsx)(c.o5,{children:n=>{let{isActive:o,isPrev:r,isNext:a,isVisible:d,isDuplicate:c}=n;if(o){const n=1;return(0,l.jsx)(u.Kq,{direction:"column",height:i,width:s*n,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(u.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(pn,{stories:t,onBack:R,isActive:o&&d,isNext:!1,isPrev:!1,onStoryCompleteCallback:E,initialEventIndex:z==e?T:0},"event-story-view-"+t.id)})})}return r||a?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:s,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{I.slideTo(e,300)},children:(0,l.jsx)(u.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(on,{showPausedVideo:!0,event:P[e].events[0],onBack:R,isPlaying:!1,setLockSwiper:b})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))})})}),(0,x.XF)(S)?(0,l.jsx)(u.M5,{children:(0,l.jsx)(sn,{height:.04*i,width:.1*s,fontSize:.02*i})}):(0,l.jsx)(l.Fragment,{})]})})};const mn=(0,xn.Z)({key:"whatmore-css-sv"}),wn=(0,o.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0});var jn=function(t){var e,n;const[r,c,h]=(0,p.Z)(),[u,g]=(0,d.Z)(),[f]=(0,a.j1)("whatmoreShopId"),{whatmoreRootId:m}=(0,o.useContext)(ke.I),{whatmoreIsStoriesTemplate:w}=(0,o.useContext)(ke.I);var j=t.events,v=t.index,C=t.onBack,b=t.eventsStories,y=t.initialStoryIndex,k=(t.template,(0,x.cX)(f)),I=j[v],F="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:j.length>1?"horizontal":"vertical",_="portrait"===r?!(0,x.h6)(f)&&!w:(0,x.n8)(f),T=(I=j[v],[]);if((0,o.useLayoutEffect)((()=>{(0,x.TL)(f)&&(window.location.href.includes(k)?history.replaceState(null,"","#"+k):history.pushState(null,"","#"+k),window.addEventListener("popstate",(()=>{window.location.href.includes(k)||C()})))}),[]),(0,S.yC)(I)){var{status:O,bannerText:P,timeToStartInMins:z}=i.Z.getEventStatus(j[v]);if(O.name!=s.Z.LIVE.name)return(0,l.jsx)("div",{children:"// TODO : fix event registration view for live events"})}if(delete hn.ZP.styles.global,w)return(0,l.jsx)(un.C,{value:mn,children:(0,l.jsx)(cn.x,{theme:hn.ZP,cssVarsRoot:m,resetCSS:!1,children:(0,l.jsx)(wn.Provider,{value:{isIOS:(0,De.KE)(),totalEvents:j.length,closeClickComponent:C,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:F,showSwipeIndicator:_},children:"portrait"===r?(0,l.jsx)(gn,{eventsStories:b,initialStoryIndex:y,onBack:C,eventIndex:v}):j.length>1&&(0,x.Bb)(f)?(0,l.jsx)(fn,{eventsStories:b,initialStoryIndex:y,onBack:C,eventIndex:v}):(0,l.jsx)(gn,{eventsStories:b,initialStoryIndex:y,onBack:C,eventIndex:v})})})});T=[];for(var R=0;R<j.length;R++)if((0,S.B6)(j[R])||(0,S.WJ)(j[R]))T.push(j[R]);else if((0,S.yC)(j[R])){var{status:O,bannerText:P,timeToStartInMins:z}=i.Z.getEventStatus(j[R]);O.name===s.Z.LIVE.name&&T.push(j[R])}return(0,l.jsx)(un.C,{value:mn,children:(0,l.jsx)(cn.x,{theme:hn.ZP,cssVarsRoot:m,resetCSS:!1,children:(0,l.jsx)(wn.Provider,{value:{isIOS:(0,De.KE)(),totalEvents:j.length,closeClickComponent:C,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:F,showSwipeIndicator:_},children:"portrait"===r?(0,l.jsx)(en,{events:T,eventIndex:v,onBack:C}):j.length>1?(0,l.jsx)(dn,{events:T,eventIndex:v,onBack:C}):(0,l.jsx)(en,{events:T,eventIndex:v,onBack:C})})})})}},9316:function(t,e,n){n.d(e,{mT:function(){return d}});var i,o,r,a=n(168),l=n(686);const s=(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"]))),d="\n ".concat(s," 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 f}});var i=n(3271),o=n(5427),r=n(7313),a=n(7753),l=n(6336),s=(n(4844),n(5160));var d=n(9316),c=n(9748),h=n(1862),u=n(9854),x=(n(7605),n(7053)),p=n(6417);function g(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[r]=(0,a.j1)("whatmorePrimaryFont"),l=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.width,d=t.height;return(0,p.jsx)(i.xu,{width:s,height:d,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,p.jsxs)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,p.jsxs)(i.xv,{color:n,fontSize:1.3*l,fontWeight:"semibold",sx:{fontFamily:r+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,p.jsx)(i.M5,{paddingX:"5px",children:(0,p.jsx)(o.Z,{sx:{color:n,fontSize:1.5*l}})})]})})}var f=function(t){var e,n,o,f;const[m]=(0,a.j1)("whatmorePrimaryFont"),[w]=(0,a.j1)("isInDesignMode"),[j]=(0,a.j1)("isDemoBrand"),[v,C]=(0,a.j1)("appCartData"),[b]=(0,a.j1)("whatmoreShopId"),[S]=[(0,u.hm)(b)],y=(0,u.hm)(b),[k,I]=(0,r.useState)(!1),[F,_]=(0,r.useState)({state:"initial"}),[T,O]=(0,r.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:P}=(0,r.useContext)(h.EventClickComponentContext),z=t.event,R=t.product,E=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function M(t,e,n){w||j||(async()=>{(0,s.JX)(t,e,n)})()}(0,r.useEffect)((()=>{!async function(){const t=await(0,x.gK)(R,(0,u.Ip)(b),b);O({loaded:!0,client_product_id:R.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",K=null!==(o=t.height)&&void 0!==o?o:"fit-content",H=(null!==(f=(0,u.Jb)(b))&&void 0!==f?f:2)+"px";return T.loaded?(0,p.jsx)("div",{style:{width:q,height:K},children:(0,p.jsx)("a",{href:"javascript:void(0)","data-variant-id":T.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,p.jsx)(c.zx,{type:"submit",className:(0,u.Sl)(b),sx:{width:q,height:K,minHeight:K},onClick:t=>{I(!0),M(z,R,1),null!==P&&setTimeout((()=>{P()}),2e3)},children:"initial"===F.state?(0,p.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:K,width:q},children:(0,p.jsx)(i.xu,{width:"100%",height:"100%",padding:H,boxShadow:"lg",borderRadius:"md",backgroundColor:y,borderColor:y,borderWidth:"1px",animation:k?d.mT:null,onAnimationEnd:()=>{I(!1)},children:(0,p.jsx)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,p.jsx)(i.M5,{children:(0,p.jsxs)(i.xv,{lineHeight:"100%",fontSize:1.3*E,fontWeight:"semibold",sx:{fontFamily:m+" !important",color:(0,u.KC)(b)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,p.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:K,width:q},children:(0,p.jsx)(g,{event:z,product:R,baseFontSize:E,cartState:F,width:q,height:K})})})})}):(0,p.jsx)(p.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,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,a.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.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:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.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})})})}},5180:function(t,e,n){var i=n(3271),o=n(208),r=n(6417);e.Z=function(t){var e,n,a;const l=null!==(e=t.height)&&void 0!==e?e:"100%",s=null!==(n=t.width)&&void 0!==n?n:"100%",d=null!==(a=t.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:d,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:l,width:s,speed:.5,startColor:"gray.400",endColor:"white"})})}},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,s,d){}},342:function(t,e,n){n.d(e,{WN:function(){return o},uv:function(){return i}});const i=function(t){return"event_media_urls"in t?"secondary"in t.event_media_urls?t.event_media_urls.secondary.portrait[720]:t.event_media_urls.primary.portrait[720]:t.event_hls_url},o=function(t){return"event_media_urls"in t?"secondary"in t.event_media_urls?t.event_media_urls.secondary.landscape[720]:t.event_media_urls.primary.landscape[720]:t.event_hls_url}},7053:function(t,e,n){n.d(e,{gK:function(){return r},pO:function(){return a}});var i=n(6233),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([[516],{51:function(t,e,n){n.d(e,{Z:function(){return r}});n(7313);var i=n(6417);var r=function(t){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{className:"whatmore-loading-indicator"})})}},1092:function(t,e,n){var i=n(237),r=n(9854),o=n(7753),s=n(6417);function a(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const e=(0,o.MO)("whatmoreShopId"),n=(0,o.MO)("whatmoreUITheme"),l=(0,o.MO)("whatmorePrimaryFont"),d=t.event,c=t.fontSize;if(d.total_views<=0)return(0,s.jsx)(s.Fragment,{});const h=(0,r.S_)(e);return"template-icon"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,r.XC)(e),color:"white",borderRadius:"round"==n?"5px":"0px",borderWidth:(0,r.al)(e),borderColor:(0,r.qP)(e)},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,r.aL)(e)+" !important",fontSize:c,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,r.aL)(e),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",l,"important"),t.style.setProperty("font-size",c,"important"))},style:{fontWeight:"normal"},children:" "+a(d.total_views)+" "})})]})})}):"template-text"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,r.XC)(e),color:"white",borderRadius:"round"==n?"5px":"0px",borderWidth:(0,r.al)(e),borderColor:(0,r.qP)(e)},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,r.aL)(e),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",l,"important"))},style:{fontSize:c,fontWeight:"bold"},children:" "+a(d.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})},3175:function(t,e,n){var i=n(208),r=n(51),o=n(6417);e.Z=function(t){var e,n;const s=null!==(e=t.height)&&void 0!==e?e:"100%",a=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.jsxs)("div",{style:{width:a,height:s,overflow:"hidden"},children:[(0,o.jsx)(i.Od,{height:"100%",width:"100%",speed:0,startColor:"#202020",endColor:"#606060"}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(r.Z,{})})})]})}},5945:function(t,e,n){function i(t){return"undefined"==typeof t||"undefined"==t||null==t?"":t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}n.d(e,{s:function(){return i}})},2887:function(t,e,n){var i=n(7313),r=(n(6422),n(3175)),o=n(6417);e.Z=function(t){var e,n,s;const[a,l]=(0,i.useState)(!1),d=i.useRef(0),c=(0,i.useRef)(null),h=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},u=null!==(n=t.height)&&void 0!==n?n:"100%",p=null!==(s=t.width)&&void 0!==s?s:"100%";return(0,i.useEffect)((()=>{d.current=0;const t=setInterval((()=>{d.current=d.current+.03,c.current&&h(d.current,5),d.current>=5&&(d.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:p,height:u,overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:a?"100%":"0px",height:a?"100%":"0px"},children:(0,o.jsx)("img",{ref:c,src:t.url,style:{objectFit:"cover",height:u,width:p,backgroundColor:"white"},alt:"image player",onLoad:()=>{l(!0)}})}),a?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(r.Z,{width:"100%",height:"100%"})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return h}});var i=n(7313),r=n(3933),o=n(868),s=n(8984),a=n(7300),l=(n(6422),n(2887)),d=n(6417);var c=function(t){var e,n;const o=(0,i.useRef)(null),[s,a,l]=(0,r.YD)({triggerOnce:!0}),c=null!==(e=t.height)&&void 0!==e?e:"100%",h=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,i.useEffect)((()=>{o.current&&(t.isPlaying?o.current.play():o.current.pause())}),[t.isPlaying,a]),(0,d.jsx)("div",{ref:s,style:{width:c,height:h,overflow:"hidden"},children:a?(0,d.jsx)("video",{ref:o,className:"whatmore-video-player",width:h,height:c,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:t.url,style:{backgroundColor:"white"}}):(0,d.jsx)("div",{width:h,height:c,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var h=function(t){var e,n,h;const[u,p,f]=(0,r.YD)({triggerOnce:!0});if((0,a.WJ)(t.event))return(0,d.jsx)(l.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const m=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,s.KE)())return(0,d.jsx)(c,{height:"100%",width:"100%",url:(0,o.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:m});const x=(0,i.useRef)(null),w=null!==(n=t.height)&&void 0!==n?n:"100%",g=null!==(h=t.width)&&void 0!==h?h:"100%";return(0,i.useEffect)((()=>{x.current&&(t.isPlaying?x.current.play():x.current.pause())}),[t.isPlaying,p]),(0,d.jsx)("div",{ref:u,style:{width:w,height:g,overflow:"hidden"},children:p?(0,d.jsx)("video",{ref:x,className:"whatmore-video-player",width:g,height:w,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,o.V)(t.url),style:{backgroundColor:"white"}}):(0,d.jsx)("div",{width:g,height:w,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},4920:function(t,e,n){n.d(e,{Z:function(){return y}});var i=n(7313),r=n(9821),o=(n(3439),n(9723)),s=n(7753),a=n(4892),l=n(7129),d=n(6805),c=n(9854),h=n(1092),u=n(5945),p=n(6417);var f=function(t){var[e,n]=(0,r.Z)();const[o]=(0,s.j1)("whatmorePrimaryFont"),[a]=(0,s.j1)("whatmorePrimaryColor"),[l]=(0,s.j1)("whatmoreSecondaryColor"),[d,h]=(0,i.useState)(0),f=(0,s.MO)("whatmoreShopId"),m=(0,s.MO)("whatmoreUITheme"),x=t.event,w=x.products.length;if(0==w)return(0,p.jsx)(p.Fragment,{});(0,i.useEffect)((()=>{const t=setInterval((()=>{h((t=>(t+1)%w))}),3e3);return()=>{clearInterval(t)}}),[]);const g=.3*n,y=g+"px",v=g+"px",j=.07*n+"px";return(0,p.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,p.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,p.jsx)("div",{style:{width:y,height:v,boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,c.al)(f),borderColor:(0,c.qP)(f),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,p.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,c.yO)(f),"important")},src:x.products[d].thumbnail_image,style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,p.jsx)("div",{style:{width:n-5-g+"px",height:v,borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",height:"100%",justifyContent:"center",alignItems:"center"},children:(0,p.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",j,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",o,"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,u.s)(x.products[d].title)})})})]},d)})},m=n(3933);function x(t){var e,[n,a]=(0,r.Z)();const[d]=(0,s.j1)("whatmoreShopId"),[h,u,x]=(0,m.YD)({triggerOnce:!0});var w=(0,i.useContext)(l.V);const g=t.event,y=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,v=.5*a;return(0,p.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,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,p.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,p.jsx)("p",{children:" "})}),w.showPlayButton&&!y?(0,p.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,p.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,p.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,p.jsx)(o.Z,{sx:{color:"#F5F5F5 !important",opacity:.8,fontSize:v,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,p.jsx)(p.Fragment,{}),(0,p.jsx)("div",{ref:h,children:u&&(0,c.PW)(d)?(0,p.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,p.jsx)(f,{event:g})}):(0,p.jsx)("div",{height:"20px"})})]})})}function w(t){var[e,n]=(0,r.Z)();const[i]=(0,s.j1)("whatmorePrimaryFont"),o=t.event;return o.title.trim().length?(0,p.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,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,p.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,p.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,p.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:o.title.substring(0,60)})]})})})}):(0,p.jsx)(p.Fragment,{})}function g(t){const[e,n,i,o,a]=(0,r.Z)(),[l]=(0,s.j1)("whatmoreShowViews"),c=t.event,u=t.isOnFocus;return(0,p.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,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,p.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,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===l?(0,p.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,p.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,p.jsx)(h.Z,{event:c,fontSize:.07*n+"px"})})}):(0,p.jsx)(p.Fragment,{})})}),d.$w===a[d.YP]?(0,p.jsx)(p.Fragment,{}):u?(0,p.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,p.jsx)(w,{event:c})}):(0,p.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,p.jsx)(w,{event:c})})]})})}var y=function(t){var e,n,o;const[h,u,f,m,w]=(0,r.Z)();var y=(0,i.useContext)(l.V);const v=(0,s.MO)("whatmoreShopId"),j=(0,s.MO)("whatmoreUITheme"),b=t.event,P=t.onClick,C=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,I=null!==(o=t.animateOnFocus&&(0,c.iW)(v))&&void 0!==o&&o,z=(0,c.nz)(v);return(0,p.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:u,height:h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j?z:null,borderWidth:(0,c.al)(v),borderColor:(0,c.qP)(v),overflow:"hidden",cursor:"pointer"},className:I?C?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(b)},children:[(0,p.jsx)(a.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:C||F,event:b}),(0,p.jsxs)("div",{style:{width:u,height:h},children:[(0,p.jsx)(g,{event:b,isOnFocus:C}),C||d.$w===w[d.YP]?(0,p.jsx)(x,{event:b,unfocusedDisplay:!C}):null]})]})}},868:function(t,e,n){n.d(e,{V:function(){return a}});var i=n(9854),r=n(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},s={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},a=function(t){const e=(0,r.MO)("whatmoreShopId");if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,i.zp)(e))return t;if("AZURECDN"==(0,i.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(o))if(t.includes(e))return t.replace(e,o[e]);return t}}if("BUNNYCDN"==(0,i.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(s))if(t.includes(e))return t.replace(e,s[e]);return t}}return t}},6805:function(t,e,n){n.d(e,{$I:function(){return a},$w:function(){return d},AK:function(){return o},AL:function(){return s},YP:function(){return r},me:function(){return i},rE:function(){return l}});const i="device_type",r="device_mode",o="mobile",s="tablet",a="desktop",l="portrait",d="landscape"},6422:function(t,e,n){var i=n(7313),r=n(7753);e.Z=function(t){const[e,n]=(0,r.j1)("muted");return(0,i.useEffect)((()=>{}),[]),[e,n]}},8866:function(t,e,n){var i=n(7313);function r(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=r();const[o,s]=(0,i.useState)(["portrait",e,n]);return(0,i.useLayoutEffect)((()=>{function t(){var[t,e]=r();s(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}}),[]),o}},9821:function(t,e,n){var i=n(6367),r=n(7753),o=n(8866),s=n(6805);e.Z=function(t){const[e,n,a]=(0,o.Z)(),[l]=(0,r.j1)("whatmoreLandscapePadding"),[d]=(0,r.j1)("whatmoreVideoTileSize"),c=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),u=!("portrait"!=e||!h),p=d/100*1.3*.5,f=d/100;var m=Math.min(a,n),[x,w,g,y]=[.6*m*(16/9),.6*m,1.4,0];function v(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:s.AK,DEVICE_MODE:s.rE};if(c){const t=w*p,e=x*p;[x,w,g,y]=[e,t,(a-2*l)/(1.1*t),l],j[s.me]=s.$I,j[s.YP]=s.$w}else if(u){var b=.8*w,P=.8*x;"portrait"==e?(b*=f,P*=f,[x,w,g,y]=[P,b,v(a/(1.2*b)),0],j[s.me]=s.AL,j[s.YP]=s.rE):([x,w,g,y]=[P,b,(a-2*l)/(1.1*b),l],j[s.me]=s.AL,j[s.YP]=s.$w)}else{b=w,P=x;"portrait"==e?(b*=f,P*=f,[x,w,g,y]=[P,b,v(a/(1.15*b)),0],j[s.me]=s.AK,j[s.YP]=s.rE):(b=.7*w,P=.7*x,[x,w,g,y]=[P,b,(a-2*l)/(1.1*b),l],j[s.me]=s.AK,j[s.YP]=s.$w)}return[x,w,g,y,j]}},9723:function(t,e,n){var i=n(5318);e.Z=void 0;var r=i(n(5045)),o=n(6417),s=(0,r.default)((0,o.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=s},237:function(t,e,n){var i=n(5318);e.Z=void 0;var r=i(n(5045)),o=n(6417),s=(0,r.default)((0,o.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=s},3439:function(){},123:function(){},7244:function(){},6143:function(){}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[517],{8675:function(n,t,e){"use strict";e.d(t,{Z:function(){return w}});var i,o,r=e(3271),a=e(5098),c=e(7313),l=e(9821),s=e(2634),u=e(5180),d=e(168),f=e(686);const h=(0,f.F4)(i||(i=(0,d.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),x=(0,f.F4)(o||(o=(0,d.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),m="\n ".concat(h,"; \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(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),v=e(7129),j=e(6417);var w=function(n){var t,e,[i,o]=(0,l.Z)();const[d]=(0,p.j1)("whatmorePrimaryFont");var f=(0,c.useContext)(v.V);const h=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,b=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,j.jsxs)(r.xu,{animation:b?w?m:g:"none",marginTop:f.tileTopMargin,marginBottom:f.tileBottomMMargin,marginLeft:f.tileLeftMargin,marginRight:f.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(h)},cursor:"pointer",children:[(0,j.jsx)(a.Ee,{width:"full",height:"full",src:h.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(u.Z,{width:o,height:i}),borderRadius:"lg"}),(0,j.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,j.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,j.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,j.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,j.jsx)(s.Z,{event:h,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,j.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,j.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,j.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.title.substring(0,40)}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.presenter_name.substring(0,15)})]})})})})]})})]})}},5523:function(n,t,e){"use strict";e.r(t);var i=e(7313),o=e(8675),r=e(4664),a=e(7616),c=(e(6143),e(7244),e(123),e(9302)),l=e(2575),s=e(3271),u=e(9821),d=e(8866),f=(e(2279),e(7753)),h=e(9316),x=e(7129),m=e(9854),g=e(4136),p=e(7300),v=e(4920),j=e(6417);const w=(0,l.Z)({key:"whatmore-css-hv"});function b(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}function y(n){var t;const[e,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1),[c]=(0,f.j1)("whatmoreSecondaryColorShade600"),[l]=(0,f.j1)("whatmoreSecondaryColorShade300"),[u]=(0,f.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,x=n.onClick;return(0,j.jsx)(s.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?l:c,animation:r?h.mT:null,onClick:n=>{n.stopPropagation(),a(!0),x()},sx:{cursor:"pointer"},onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:(0,j.jsx)(s.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,j.jsxs)(s.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:u+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function C(n){var t;const[e,r,a]=(0,u.Z)();var[c,l]=(0,i.useState)(0);const d=n.events,f=n.onClick,h=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=b(d,Math.floor(Math.min(a,d.length)));return(0,j.jsx)(s.M5,{children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:x.map(((n,t)=>t>c?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:c<x.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{c>=x.length-1||l((n=>n+h))}})}):(0,j.jsx)(j.Fragment,{})})]})})}function F(n){var t;const[e,r,a,c]=(0,u.Z)();var[l,d]=(0,i.useState)(0);const f=n.events,h=n.onClick,x=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,m=b(f,Math.floor(Math.min(a,f.length)));return(0,j.jsx)(s.M5,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:m.map(((n,t)=>t>l?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:l<m.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{l>=m.length-1||d((n=>n+x))}})}):(0,j.jsx)(j.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,l]=(0,d.Z)(),[u]=(0,f.j1)("whatmoreShopId"),[h]=(0,f.j1)("whatmorePrimaryColor"),[p]=(0,f.j1)("whatmoreSecondaryColor"),[v]=(0,f.j1)("whatmoreTitleFont"),b="portrait"==e?(0,f.MO)("whatmoreTitleFontSizePortrait"):(0,f.MO)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,i.useContext)(g.I),S=n.events,k=n.onClick,M=null!==(t=(0,m.aR)(u))&&void 0!==t?t:v;function O(n){k(n)}return delete a.ZP.styles.global,(0,j.jsx)(c.C,{value:w,children:(0,j.jsx)("div",{children:(0,j.jsx)(r.x,{theme:a.ZP,cssVarsRoot:y,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,j.jsx)(s.M5,{children:(0,j.jsx)(s.xv,{bgColor:h,bgClip:"text",fontSize:b,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,j.jsx)(j.Fragment,{}),"landscape"===e?(0,j.jsx)(F,{events:S,onClick:O,seeMoreIncrement:1}):(0,j.jsx)(C,{events:S,onClick:O,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){"use strict";e.d(t,{mT:function(){return s}});var i,o,r,a=e(168),c=e(686);const l=(0,c.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(l," 0.2s linear;\n"),u=(0,c.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(u," 0.5s infinite linear;\n"),(0,c.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(d," ").concat(3,"s ease-in-out;\n")},2634:function(n,t,e){"use strict";var i=e(3271),o=e(4897),r=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,c=n.fontSize,l=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:s,bannerText:u,timeToStartInMins:d}=o.Z.getEventStatus(e);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,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:c,fontWeight:"bold",color:"white",children:u})})}):(0,a.jsx)(i.xu,{maxWidth:l,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:c,fontWeight:"medium",children:u})})})}},5180:function(n,t,e){"use strict";var i=e(3271),o=e(208),r=e(6417);t.Z=function(n){var t,e,a;const c=null!==(t=n.height)&&void 0!==t?t:"100%",l=null!==(e=n.width)&&void 0!==e?e:"100%",s=null!==(a=n.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:s,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:c,width:l,speed:.5,startColor:"gray.400",endColor:"white"})})}},8624:function(n,t,e){var i=e(7289).Symbol;n.exports=i},8665:function(n,t,e){var i=e(8624),o=e(3596),r=e(8186),a=i?i.toStringTag:void 0;n.exports=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":a&&a in Object(n)?o(n):r(n)}},2306:function(n,t,e){var i=e(5510),o=/^\s+/;n.exports=function(n){return n?n.slice(0,i(n)+1).replace(o,""):n}},2692:function(n,t,e){var i="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;n.exports=i},3596:function(n,t,e){var i=e(8624),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,c=i?i.toStringTag:void 0;n.exports=function(n){var t=r.call(n,c),e=n[c];try{n[c]=void 0;var i=!0}catch(l){}var o=a.call(n);return i&&(t?n[c]=e:delete n[c]),o}},8186:function(n){var t=Object.prototype.toString;n.exports=function(n){return t.call(n)}},7289:function(n,t,e){var i=e(2692),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();n.exports=r},5510:function(n){var t=/\s/;n.exports=function(n){for(var e=n.length;e--&&t.test(n.charAt(e)););return e}},2279:function(n,t,e){var i=e(1845),o=e(6170),r=e(7923),a=Math.max,c=Math.min;n.exports=function(n,t,e){var l,s,u,d,f,h,x=0,m=!1,g=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function v(t){var e=l,i=s;return l=s=void 0,x=t,d=n.apply(i,e)}function j(n){return x=n,f=setTimeout(b,t),m?v(n):d}function w(n){var e=n-h;return void 0===h||e>=t||e<0||g&&n-x>=u}function b(){var n=o();if(w(n))return y(n);f=setTimeout(b,function(n){var e=t-(n-h);return g?c(e,u-(n-x)):e}(n))}function y(n){return f=void 0,p&&l?v(n):(l=s=void 0,d)}function C(){var n=o(),e=w(n);if(l=arguments,s=this,h=n,e){if(void 0===f)return j(h);if(g)return clearTimeout(f),f=setTimeout(b,t),v(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=r(t)||0,i(e)&&(m=!!e.leading,u=(g="maxWait"in e)?a(r(e.maxWait)||0,t):u,p="trailing"in e?!!e.trailing:p),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,l=h=s=f=void 0},C.flush=function(){return void 0===f?d:y(o())},C}},1845:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},9752:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},2060:function(n,t,e){var i=e(8665),o=e(9752);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==i(n)}},6170:function(n,t,e){var i=e(7289);n.exports=function(){return i.Date.now()}},7923:function(n,t,e){var i=e(2306),o=e(1845),r=e(2060),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(r(n))return NaN;if(o(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=i(n);var e=c.test(n);return e||l.test(n)?s(n.slice(2),e?2:8):a.test(n)?NaN:+n}}}]);