whatmore-react-assets 1.0.1803 → 1.0.1805
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 +1 -1
- package/static/css/{carousel-template-ai.a071b185.chunk.css → carousel-template-ai.c21dbf63.chunk.css} +1 -1
- package/static/js/{688.e4083a3a.chunk.js → 688.67099d57.chunk.js} +1 -1
- package/static/js/carousel-template-ai.67222398.chunk.js +2 -0
- package/static/js/carousel-template-f.374be5b9.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/carousel-template-ai.266ad0d1.chunk.js +0 -2
- package/static/js/carousel-template-f.86742bd3.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.whatmore-root{--swiper-theme-color:#303632!important}.whatmore-root .swiper{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0!important;position:relative;z-index:1}.whatmore-root .swiper-vertical>.swiper-wrapper{flex-direction:column}.whatmore-root .swiper-wrapper{box-sizing:content-box;box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.whatmore-root .swiper-android .swiper-slide,.whatmore-root .swiper-wrapper{transform:translateZ(0)}.whatmore-root .swiper-pointer-events{touch-action:pan-y}.whatmore-root .swiper-pointer-events.swiper-vertical{touch-action:pan-x}.whatmore-root .swiper-slide{background:transparent;flex-shrink:0;height:100%;overflow:visible!important;position:relative;-webkit-transform:translateZ(0);transition-property:transform;width:100%}.whatmore-root .swiper-slide-invisible-blank{visibility:hidden}.whatmore-root .swiper-autoheight,.whatmore-root .swiper-autoheight .swiper-slide{height:auto}.whatmore-root .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.whatmore-root .swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.whatmore-root .swiper-3d,.whatmore-root .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.whatmore-root .swiper-3d .swiper-slide-shadow,.whatmore-root .swiper-3d .swiper-slide-shadow-bottom,.whatmore-root .swiper-3d .swiper-slide-shadow-left,.whatmore-root .swiper-3d .swiper-slide-shadow-right,.whatmore-root .swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.whatmore-root .swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.whatmore-root .swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.whatmore-root .swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.whatmore-root .swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.whatmore-root .swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.whatmore-root .swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.whatmore-root .swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.whatmore-root .swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.whatmore-root .swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.whatmore-root .swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.whatmore-root .swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.whatmore-root .swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}@font-face{font-family:whatmore-swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}.whatmore-root{--swiper-navigation-size:44px}.whatmore-root .swiper-button-next,.whatmore-root .swiper-button-prev{align-items:center!important;background-color:#fff!important;background-image:none!important;border:1.3px solid #000;border-radius:50%!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));justify-content:center!important;opacity:1!important;position:absolute!important;top:42%!important;width:var(--swiper-navigation-size);z-index:1!important}.whatmore-root .swiper-button-next.swiper-button-disabled,.whatmore-root .swiper-button-next.swiper-button-hidden,.whatmore-root .swiper-button-prev.swiper-button-disabled,.whatmore-root .swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0!important;pointer-events:none}.whatmore-root .swiper-navigation-disabled .whatmore-root .swiper-button-next,.whatmore-root .swiper-navigation-disabled .whatmore-root .swiper-button-prev{display:none!important}.whatmore-root .swiper-button-next:after,.whatmore-root .swiper-button-prev:after{background-color:transparent!important;color:#fff;font-family:whatmore-swiper-icons!important;font-size:0;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-root .swiper-button-prev,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-next{left:0;right:auto}.whatmore-root .swiper-button-prev:after,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-next:after{content:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27black%27 stroke=%27currentColor%27 stroke-width=%270.5%27 class=%27bi bi-arrow-left%27 viewBox=%270 0 16 16%27><path fill-rule=%27evenodd%27 d=%27M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8%27/></svg>")!important}.whatmore-root .swiper-button-next,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-prev{left:auto;right:0}.whatmore-root .swiper-button-next:after,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-prev:after{content:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27black%27 stroke=%27currentColor%27 stroke-width=%270.5%27 class=%27bi bi-arrow-right%27 viewBox=%270 0 16 16%27><path fill-rule=%27evenodd%27 d=%27M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8%27/></svg>")!important}.whatmore-root .swiper-button-lock{display:none}.wht-3d-temp .swiper-button-next,.wht-3d-temp .swiper-button-prev{margin:0 120px!important}@media (orientation:portrait){.whatmore-root .swiper-button-next,.whatmore-root .swiper-button-prev{border-radius:50%!important;height:calc(var(--swiper-navigation-size));width:calc(var(--swiper-navigation-size))}.whatmore-root .swiper-button-next:after,.whatmore-root .swiper-button-prev:after{font-size:25px!important}}@layer wtmr-base, wtmr-user;@layer wtmr-base{.wtmr-carousel{--wtmr-spacing-xs:clamp(3px,0.5cqw,5px);--wtmr-spacing-sm:clamp(6px,1cqw,8px);--wtmr-spacing-md:clamp(8px,1.5cqw,12px);--wtmr-spacing-lg:clamp(10px,2cqw,14px);--wtmr-spacing-xl:clamp(14px,3cqw,20px);--wtmr-letter-spacing-tight:clamp(0.1px,0.02cqw,0.15px);--wtmr-letter-spacing-normal:clamp(0.15px,0.05cqw,0.3px);--wtmr-letter-spacing-wide:clamp(0.2px,0.1cqw,0.5px);--wtmr-product-image-size:clamp(32px,8cqw,44px);--wtmr-radius-sm:clamp(3px,0.5cqw,4px);--wtmr-radius-md:clamp(5px,1cqw,7px);--wtmr-radius-lg:clamp(8px,1.5cqw,10px);--wtmr-bg-tile:#fafafa;--wtmr-bg-video:#000;--wtmr-text-primary:#000;--wtmr-text-secondary:#666;--wtmr-text-muted:#999;--wtmr-discount-bg:#4f46e5;--wtmr-discount-text:#fff;--wtmr-shadow-sm:0 1px 3px rgba(0,0,0,.05);--wtmr-shadow-md:0 2px 8px rgba(0,0,0,.08);--wtmr-shadow-lg:0 4px 16px rgba(0,0,0,.12);--wtmr-transition-fast:0.15s ease;--wtmr-transition-normal:0.3s ease;--wtmr-font-size-xs:clamp(7px,1.8cqw,9px);--wtmr-font-size-sm:clamp(8px,2cqw,10px);--wtmr-font-size-base:clamp(9px,2.2cqw,12px);--wtmr-font-size-md:clamp(10px,2.4cqw,13px);--wtmr-font-size-lg:clamp(12px,2.8cqw,15px);--wtmr-font-size-xl:clamp(14px,3.2cqw,18px);background:transparent;max-width:100%;overflow-x:hidden;position:relative;width:100%}.wtmr-carousel,.wtmr-carousel *{box-sizing:border-box}.wtmr-carousel-header{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:var(--wtmr-spacing-lg) 0}.wtmr-carousel-title{color:var(--wtmr-text-primary);font-size:var(--wtmr-font-size-xl);font-weight:600;margin:0;text-align:center}.wtmr-carousel-container-landscape,.wtmr-carousel-container-portrait{align-items:center;background:transparent;container-name:wtmr-carousel;container-type:inline-size;display:flex;justify-content:center;max-width:100%;overflow:visible}.wtmr-carousel-container-portrait{padding:var(--wtmr-spacing-md)}.wtmr-carousel-container-landscape{height:100%;padding:var(--wtmr-spacing-lg) var(--wtmr-spacing-xl)}.wtmr-carousel__slide-container{display:flex;height:100%;max-width:100%}.wtmr-carousel__slide-container .wtmr-carousel-tile{flex:1 1;min-width:0}.wtmr-carousel-tile{grid-gap:0;background:transparent;border-radius:0;cursor:pointer;display:grid;gap:0;grid-template-columns:1fr;grid-template-rows:[video] auto [video-end product-info] auto [product-info-end pricing] auto [pricing-end];isolation:isolate;max-width:100%;min-width:0;overflow:visible;position:relative;transition:transform var(--wtmr-transition-normal)}.wtmr-carousel-tile:hover{transform:none}.wtmr-carousel-tile__video-container{aspect-ratio:9/16;background:var(--wtmr-bg-tile);border-radius:0;grid-row:video;max-width:100%;overflow:hidden;position:relative;width:100%}.wtmr-carousel-tile__video,.wtmr-carousel-tile__video-container video{display:block;height:100%!important;-o-object-fit:cover;object-fit:cover;width:100%!important}.whatmore-video-player-muted{border-radius:0!important}.wtmr-carousel-tile__add-to-cart-overlay{align-items:center;background:rgba(0,0,0,.6);bottom:0;cursor:pointer;display:none;justify-content:center;left:0;padding:var(--wtmr-spacing-md);position:absolute;right:0;transition:all var(--wtmr-transition-normal);z-index:10}.wtmr-carousel-tile__add-to-cart-overlay:hover{background:rgba(0,0,0,.7)}.wtmr-carousel-tile__add-to-cart-label{color:#fff;font-size:var(--wtmr-font-size-sm);font-weight:600;letter-spacing:var(--wtmr-letter-spacing-normal);text-transform:uppercase}.wtmr-carousel-tile__discount-percentage-badge{align-items:center;background:var(--wtmr-discount-bg);border-radius:0;display:inline-flex;grid-column:3;grid-row:1;justify-content:center;justify-self:end;padding:var(--wtmr-spacing-xs) var(--wtmr-spacing-sm);white-space:nowrap}.wtmr-carousel-tile__discount-percentage-value{color:var(--wtmr-discount-text);display:block;font-size:calc(var(--wtmr-font-size-xs)*1.2);font-size:var(--discount-font-size,calc(var(--wtmr-font-size-xs)*1.2));font-weight:600;letter-spacing:var(--wtmr-letter-spacing-normal);line-height:1.2;margin:0;text-transform:uppercase}.wtmr-carousel-tile__product-details-container{grid-gap:0;background:transparent;display:grid;gap:0;grid-row:product-info/pricing-end;grid-template-columns:1fr;grid-template-rows:subgrid;min-width:0;padding:0 var(--wtmr-spacing-xs)}.wtmr-carousel-tile__product-information-section{grid-gap:var(--wtmr-spacing-md);align-items:start;background:transparent;display:grid;gap:var(--wtmr-spacing-md);grid-row:1;grid-template-columns:var(--wtmr-product-image-size) 1fr;grid-template-rows:auto;min-width:0;padding:var(--wtmr-spacing-md) 0 var(--wtmr-spacing-sm) 0}.wtmr-carousel-tile__product-image-container{background:#f8f8f8;border-radius:0;flex-shrink:0;grid-column:1;grid-row:1;height:var(--wtmr-product-image-size);overflow:hidden;width:var(--wtmr-product-image-size)}.wtmr-carousel-tile__product-image{opacity:0;transition:opacity var(--wtmr-transition-fast)}.wtmr-carousel-tile__product-image,.wtmr-carousel-tile__product-image-container img{height:100%!important;-o-object-fit:contain;object-fit:contain;width:100%!important}.wtmr-carousel-tile__product-image--loaded{opacity:1}.wtmr-carousel-tile__product-text-container{display:flex;flex-direction:column;gap:var(--wtmr-spacing-xs);grid-column:2;grid-row:1;min-width:0;overflow:hidden}.wtmr-carousel-tile__product-category-label{color:var(--wtmr-text-muted);display:block;font-size:var(--wtmr-font-size-xs);font-size:var(--category-font-size,var(--wtmr-font-size-xs));letter-spacing:var(--wtmr-letter-spacing-wide);line-height:1;margin:0;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.wtmr-carousel-tile__product-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--wtmr-text-primary);display:-webkit-box;font-size:var(--wtmr-font-size-base);font-size:var(--name-font-size,var(--wtmr-font-size-base));font-weight:400;hyphens:auto;letter-spacing:var(--wtmr-letter-spacing-normal);line-height:1.3;margin:0;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;word-break:break-word}.wtmr-carousel-tile__product-pricing-section{grid-gap:var(--wtmr-spacing-md);align-items:center;background:transparent;border-radius:0;display:grid;gap:var(--wtmr-spacing-md);grid-row:2;grid-template-columns:auto auto 1fr;grid-template-rows:auto;margin-top:var(--wtmr-spacing-sm);min-width:0;padding:0}.wtmr-carousel-tile__price-selling{color:var(--wtmr-text-primary);font-size:var(--wtmr-font-size-md);font-size:var(--price-font-size,var(--wtmr-font-size-md));font-weight:500;grid-column:1;grid-row:1;line-height:1;margin:0;white-space:nowrap}.wtmr-carousel-tile__price-original{color:var(--wtmr-text-muted);font-size:calc(var(--wtmr-font-size-md)*.9);font-size:calc(var(--price-font-size, var(--wtmr-font-size-md))*.9);grid-column:2;grid-row:1;line-height:1;margin:0;text-decoration:line-through;text-decoration-color:#ccc;white-space:nowrap}@media (max-width:640px){.wtmr-carousel{--wtmr-font-size-xs:clamp(6px,1.6cqw,8px);--wtmr-font-size-sm:clamp(7px,1.8cqw,9px);--wtmr-font-size-base:clamp(8px,2cqw,10px);--wtmr-font-size-md:clamp(9px,2.2cqw,11px);--wtmr-font-size-lg:clamp(11px,2.5cqw,13px);--wtmr-font-size-xl:clamp(13px,3cqw,15px);--wtmr-product-image-size:clamp(30px,7cqw,36px);--wtmr-spacing-xs:clamp(2px,0.4cqw,3px);--wtmr-spacing-sm:clamp(3px,0.8cqw,5px);--wtmr-spacing-md:clamp(5px,1.2cqw,7px);--wtmr-letter-spacing-tight:clamp(0.05px,0.01cqw,0.08px);--wtmr-letter-spacing-normal:clamp(0.08px,0.02cqw,0.15px);--wtmr-letter-spacing-wide:clamp(0.15px,0.05cqw,0.25px)}.wtmr-carousel-tile__product-name{-webkit-line-clamp:2;line-height:1.25}}@media (min-width:641px) and (max-width:1024px){.wtmr-carousel{--wtmr-product-image-size:clamp(36px,7.5cqw,40px)}}@media (min-width:1025px){.wtmr-carousel{--wtmr-font-size-xs:clamp(8px,1.5cqw,9px);--wtmr-font-size-sm:clamp(9px,1.8cqw,11px);--wtmr-font-size-base:clamp(10px,2cqw,13px);--wtmr-font-size-md:clamp(11px,2.2cqw,14px);--wtmr-font-size-lg:clamp(13px,2.5cqw,16px);--wtmr-font-size-xl:clamp(15px,3cqw,18px);--wtmr-product-image-size:clamp(38px,8cqw,44px)}}@media (max-width:375px){.wtmr-carousel{--wtmr-font-size-xs:clamp(5px,1.5cqw,7px);--wtmr-font-size-sm:clamp(6px,1.7cqw,8px);--wtmr-font-size-base:clamp(7px,1.9cqw,9px);--wtmr-font-size-md:clamp(8px,2.1cqw,10px);--wtmr-font-size-lg:clamp(10px,2.3cqw,11px);--wtmr-font-size-xl:clamp(11px,2.7cqw,13px);--wtmr-product-image-size:clamp(28px,6.5cqw,32px);--wtmr-spacing-xs:clamp(2px,0.3cqw,3px);--wtmr-spacing-sm:clamp(3px,0.6cqw,4px);--wtmr-spacing-md:clamp(4px,1cqw,6px);--wtmr-letter-spacing-tight:clamp(0.05px,0.01cqw,0.08px);--wtmr-letter-spacing-normal:clamp(0.08px,0.015cqw,0.1px);--wtmr-letter-spacing-wide:clamp(0.12px,0.03cqw,0.18px)}.wtmr-carousel-tile__product-name{-webkit-line-clamp:2;line-height:1.3}}}.whatmore-loading-indicator{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}@keyframes fadeInFromNoneAnimation{0%{display:none;opacity:.3}1%{display:block;opacity:.3}to{display:block;opacity:.8}}
|
|
1
|
+
.whatmore-root{--swiper-theme-color:#303632!important}.whatmore-root .swiper{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0!important;position:relative;z-index:1}.whatmore-root .swiper-vertical>.swiper-wrapper{flex-direction:column}.whatmore-root .swiper-wrapper{box-sizing:content-box;box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.whatmore-root .swiper-android .swiper-slide,.whatmore-root .swiper-wrapper{transform:translateZ(0)}.whatmore-root .swiper-pointer-events{touch-action:pan-y}.whatmore-root .swiper-pointer-events.swiper-vertical{touch-action:pan-x}.whatmore-root .swiper-slide{background:transparent;flex-shrink:0;height:100%;overflow:visible!important;position:relative;-webkit-transform:translateZ(0);transition-property:transform;width:100%}.whatmore-root .swiper-slide-invisible-blank{visibility:hidden}.whatmore-root .swiper-autoheight,.whatmore-root .swiper-autoheight .swiper-slide{height:auto}.whatmore-root .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.whatmore-root .swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.whatmore-root .swiper-3d,.whatmore-root .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.whatmore-root .swiper-3d .swiper-slide-shadow,.whatmore-root .swiper-3d .swiper-slide-shadow-bottom,.whatmore-root .swiper-3d .swiper-slide-shadow-left,.whatmore-root .swiper-3d .swiper-slide-shadow-right,.whatmore-root .swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.whatmore-root .swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.whatmore-root .swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.whatmore-root .swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.whatmore-root .swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.whatmore-root .swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.whatmore-root .swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.whatmore-root .swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.whatmore-root .swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.whatmore-root .swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.whatmore-root .swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.whatmore-root .swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.whatmore-root .swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.whatmore-root .swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}@font-face{font-family:whatmore-swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}.whatmore-root{--swiper-navigation-size:44px}.whatmore-root .swiper-button-next,.whatmore-root .swiper-button-prev{align-items:center!important;background-color:#fff!important;background-image:none!important;border:1.3px solid #000;border-radius:50%!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));justify-content:center!important;opacity:1!important;position:absolute!important;top:42%!important;width:var(--swiper-navigation-size);z-index:1!important}.whatmore-root .swiper-button-next.swiper-button-disabled,.whatmore-root .swiper-button-next.swiper-button-hidden,.whatmore-root .swiper-button-prev.swiper-button-disabled,.whatmore-root .swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0!important;pointer-events:none}.whatmore-root .swiper-navigation-disabled .whatmore-root .swiper-button-next,.whatmore-root .swiper-navigation-disabled .whatmore-root .swiper-button-prev{display:none!important}.whatmore-root .swiper-button-next:after,.whatmore-root .swiper-button-prev:after{background-color:transparent!important;color:#fff;font-family:whatmore-swiper-icons!important;font-size:0;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-root .swiper-button-prev,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-next{left:0;right:auto}.whatmore-root .swiper-button-prev:after,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-next:after{content:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27black%27 stroke=%27currentColor%27 stroke-width=%270.5%27 class=%27bi bi-arrow-left%27 viewBox=%270 0 16 16%27><path fill-rule=%27evenodd%27 d=%27M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8%27/></svg>")!important}.whatmore-root .swiper-button-next,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-prev{left:auto;right:0}.whatmore-root .swiper-button-next:after,.whatmore-root .swiper-rtl .whatmore-root .swiper-button-prev:after{content:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27black%27 stroke=%27currentColor%27 stroke-width=%270.5%27 class=%27bi bi-arrow-right%27 viewBox=%270 0 16 16%27><path fill-rule=%27evenodd%27 d=%27M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8%27/></svg>")!important}.whatmore-root .swiper-button-lock{display:none}.wht-3d-temp .swiper-button-next,.wht-3d-temp .swiper-button-prev{margin:0 120px!important}@media (orientation:portrait){.whatmore-root .swiper-button-next,.whatmore-root .swiper-button-prev{border-radius:50%!important;height:calc(var(--swiper-navigation-size));width:calc(var(--swiper-navigation-size))}.whatmore-root .swiper-button-next:after,.whatmore-root .swiper-button-prev:after{font-size:25px!important}}@layer wtmr-base, wtmr-user;@layer wtmr-base{.wtmr-carousel{--wtmr-spacing-xs:clamp(3px,0.5cqw,5px);--wtmr-spacing-sm:clamp(6px,1cqw,8px);--wtmr-spacing-md:clamp(8px,1.5cqw,12px);--wtmr-spacing-lg:clamp(10px,2cqw,14px);--wtmr-spacing-xl:clamp(14px,3cqw,20px);--wtmr-letter-spacing-tight:clamp(0.1px,0.02cqw,0.15px);--wtmr-letter-spacing-normal:clamp(0.15px,0.05cqw,0.3px);--wtmr-letter-spacing-wide:clamp(0.2px,0.1cqw,0.5px);--wtmr-product-image-size:clamp(32px,8cqw,44px);--wtmr-radius-sm:clamp(3px,0.5cqw,4px);--wtmr-radius-md:clamp(5px,1cqw,7px);--wtmr-radius-lg:clamp(8px,1.5cqw,10px);--wtmr-bg-tile:#fafafa;--wtmr-bg-video:#000;--wtmr-text-primary:#000;--wtmr-text-secondary:#666;--wtmr-text-muted:#999;--wtmr-discount-bg:#4f46e5;--wtmr-discount-text:#fff;--wtmr-shadow-sm:0 1px 3px rgba(0,0,0,.05);--wtmr-shadow-md:0 2px 8px rgba(0,0,0,.08);--wtmr-shadow-lg:0 4px 16px rgba(0,0,0,.12);--wtmr-transition-fast:0.15s ease;--wtmr-transition-normal:0.3s ease;--wtmr-header-display:flex;--wtmr-price-selling-display:block;--wtmr-price-original-display:block;--wtmr-discount-badge-display:inline-flex;--wtmr-badge-padding-vertical:0.27em;--wtmr-badge-padding-horizontal:0.54em;--wtmr-product-info-gap:6px;--wtmr-pricing-margin-top:4px;--wtmr-border-radius:0;--wtmr-product-image-column:30%;--wtmr-product-name-line-clamp:2;--wtmr-price-original-font-scale:0.9;--wtmr-price-strikethrough-color:#ccc;--wtmr-name-font-scale-portrait:1.25;--wtmr-price-font-scale-portrait:1.4;--wtmr-category-font-scale-portrait:1.0;--wtmr-discount-font-scale-portrait:1.1;--wtmr-name-font-scale-landscape:1.15;--wtmr-price-font-scale-landscape:1.3;--wtmr-category-font-scale-landscape:0.9;--wtmr-discount-font-scale-landscape:1.0;--wtmr-add-to-cart-text:"ADD TO CART";--wtmr-product-info-align:start;--wtmr-font-size-xs:clamp(7px,1.8cqw,9px);--wtmr-font-size-sm:clamp(8px,2cqw,10px);--wtmr-font-size-base:clamp(9px,2.2cqw,12px);--wtmr-font-size-md:clamp(10px,2.4cqw,13px);--wtmr-font-size-lg:clamp(12px,2.8cqw,15px);--wtmr-font-size-xl:clamp(14px,3.2cqw,18px);background:transparent;max-width:100%;overflow-x:hidden;position:relative;width:100%}.wtmr-carousel,.wtmr-carousel *{box-sizing:border-box}.wtmr-carousel-header{align-items:center;display:flex;display:var(--wtmr-header-display,flex);flex-direction:column;justify-content:center;padding:var(--wtmr-spacing-lg) 0}.wtmr-carousel-title{color:var(--wtmr-text-primary);font-size:var(--wtmr-font-size-xl);font-weight:600;margin:0;text-align:center}.wtmr-carousel-container-landscape,.wtmr-carousel-container-portrait{align-items:center;background:transparent;container-name:wtmr-carousel;container-type:inline-size;display:flex;justify-content:center;max-width:100%;overflow:visible}.wtmr-carousel-container-portrait{padding:var(--wtmr-spacing-md)}.wtmr-carousel-container-landscape{height:100%;padding:var(--wtmr-spacing-lg) var(--wtmr-spacing-xl)}.wtmr-carousel__slide-container{display:flex;height:100%;max-width:100%}.wtmr-carousel__slide-container .wtmr-carousel-tile{flex:1 1;min-width:0}.wtmr-carousel-tile{grid-gap:0;background:transparent;border-radius:var(--wtmr-border-radius);cursor:pointer;display:grid;gap:0;grid-template-columns:1fr;grid-template-rows:[video] auto [video-end product-info] auto [product-info-end pricing] auto [pricing-end];isolation:isolate;max-width:100%;min-width:0;overflow:visible;position:relative;transition:transform var(--wtmr-transition-normal)}.wtmr-carousel-tile:hover{transform:none}.wtmr-carousel-tile__video-container{aspect-ratio:9/16;background:var(--wtmr-bg-tile);border-radius:var(--wtmr-border-radius);grid-row:video;max-width:100%;overflow:hidden;position:relative;width:100%}.wtmr-carousel-tile__video,.wtmr-carousel-tile__video-container video{display:block;height:100%!important;-o-object-fit:cover;object-fit:cover;width:100%!important}.whatmore-video-player-muted{border-radius:0!important}.wtmr-carousel-tile__add-to-cart-overlay{align-items:center;background:rgba(0,0,0,.6);bottom:0;cursor:pointer;display:none;justify-content:center;left:0;padding:var(--wtmr-spacing-md);position:absolute;right:0;transition:all var(--wtmr-transition-normal);z-index:10}.wtmr-carousel-tile__add-to-cart-overlay:hover{background:rgba(0,0,0,.7)}.wtmr-carousel-tile__add-to-cart-label{color:#fff;font-size:var(--wtmr-font-size-sm);font-size:0;font-weight:600;letter-spacing:var(--wtmr-letter-spacing-normal);text-transform:uppercase}.wtmr-carousel-tile__add-to-cart-label:before{content:var(--wtmr-add-to-cart-text);font-size:var(--wtmr-font-size-sm)}.wtmr-carousel-tile__discount-percentage-badge{align-items:center;background:var(--wtmr-discount-bg);border-radius:var(--wtmr-border-radius);display:inline-flex;display:var(--wtmr-discount-badge-display,inline-flex);grid-column:3;grid-row:1;justify-content:center;justify-self:end;padding:var(--wtmr-badge-padding-vertical) var(--wtmr-badge-padding-horizontal);white-space:nowrap}.wtmr-carousel-tile__discount-percentage-value{color:var(--wtmr-discount-text);display:block;font-size:1px;font-size:calc(var(--wtmr-tile-width, 100px)*var(--wtmr-discount-font-scale, 1)*var(--wtmr-font-multiplier, .01));font-weight:600;letter-spacing:var(--wtmr-letter-spacing-normal);line-height:1.2;margin:0;text-transform:uppercase}.wtmr-carousel-tile__product-details-container{grid-gap:0;background:transparent;display:grid;gap:0;grid-row:product-info/pricing-end;grid-template-columns:1fr;grid-template-rows:subgrid;min-width:0;padding:0 var(--wtmr-spacing-xs)}.wtmr-carousel-tile__product-information-section{grid-gap:var(--wtmr-product-info-gap);align-items:var(--wtmr-product-info-align);background:transparent;display:grid;gap:var(--wtmr-product-info-gap);grid-row:1;grid-template-columns:var(--wtmr-product-image-column) 1fr;grid-template-rows:auto;min-width:0;padding:var(--wtmr-spacing-md) 0 var(--wtmr-spacing-sm) 0}.wtmr-carousel-tile__product-image-container{aspect-ratio:1;background:#f8f8f8;border-radius:var(--wtmr-border-radius);flex-shrink:0;grid-column:1;grid-row:1;overflow:hidden;width:100%}.wtmr-carousel-tile__product-image{opacity:0;transition:opacity var(--wtmr-transition-fast)}.wtmr-carousel-tile__product-image,.wtmr-carousel-tile__product-image-container img{height:100%!important;-o-object-fit:contain;object-fit:contain;width:100%!important}.wtmr-carousel-tile__product-image--loaded{opacity:1}.wtmr-carousel-tile__product-text-container{display:flex;flex-direction:column;gap:var(--wtmr-spacing-xs);grid-column:2;grid-row:1;min-width:0;overflow:hidden}.wtmr-carousel-tile__product-category-label{color:var(--wtmr-text-muted);display:block;font-size:1px;font-size:calc(var(--wtmr-tile-width, 100px)*var(--wtmr-category-font-scale, 1)*var(--wtmr-font-multiplier, .01));letter-spacing:var(--wtmr-letter-spacing-wide);line-height:1;margin:0;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.wtmr-carousel-tile__product-name{-webkit-line-clamp:var(--wtmr-product-name-line-clamp);-webkit-box-orient:vertical;color:var(--wtmr-text-primary);display:-webkit-box;font-size:1.15px;font-size:calc(var(--wtmr-tile-width, 100px)*var(--wtmr-name-font-scale, 1.15)*var(--wtmr-font-multiplier, .01));font-weight:400;hyphens:auto;letter-spacing:var(--wtmr-letter-spacing-normal);line-height:1.3;margin:0;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;word-break:break-word}.wtmr-carousel-tile__product-pricing-section{grid-gap:var(--wtmr-spacing-md);align-items:center;background:transparent;border-radius:var(--wtmr-border-radius);display:grid;gap:var(--wtmr-spacing-md);grid-row:2;grid-template-columns:auto auto 1fr;grid-template-rows:auto;margin-top:var(--wtmr-pricing-margin-top);min-height:2.002px;min-height:calc(var(--wtmr-tile-width, 100px)*var(--wtmr-price-font-scale, 1.3)*var(--wtmr-font-multiplier, .01)*1.54);min-width:0;padding:0}.wtmr-carousel-tile__price-selling{color:var(--wtmr-text-primary);display:block;display:var(--wtmr-price-selling-display,block);font-size:1.3px;font-size:calc(var(--wtmr-tile-width, 100px)*var(--wtmr-price-font-scale, 1.3)*var(--wtmr-font-multiplier, .01));font-weight:500;grid-column:1;grid-row:1;line-height:1;margin:0;white-space:nowrap}.wtmr-carousel-tile__price-original{color:var(--wtmr-text-muted);display:block;display:var(--wtmr-price-original-display,block);font-size:calc(1.3px*var(--wtmr-price-original-font-scale));font-size:calc(var(--wtmr-tile-width, 100px)*var(--wtmr-price-font-scale, 1.3)*var(--wtmr-font-multiplier, .01)*var(--wtmr-price-original-font-scale));grid-column:2;grid-row:1;line-height:1;margin:0;text-decoration:line-through;text-decoration-color:var(--wtmr-price-strikethrough-color);white-space:nowrap}@media (max-width:640px){.wtmr-carousel{--wtmr-font-size-xs:clamp(6px,1.6cqw,8px);--wtmr-font-size-sm:clamp(7px,1.8cqw,9px);--wtmr-font-size-base:clamp(8px,2cqw,10px);--wtmr-font-size-md:clamp(9px,2.2cqw,11px);--wtmr-font-size-lg:clamp(11px,2.5cqw,13px);--wtmr-font-size-xl:clamp(13px,3cqw,15px);--wtmr-product-image-size:clamp(30px,7cqw,36px);--wtmr-spacing-xs:clamp(2px,0.4cqw,3px);--wtmr-spacing-sm:clamp(3px,0.8cqw,5px);--wtmr-spacing-md:clamp(5px,1.2cqw,7px);--wtmr-letter-spacing-tight:clamp(0.05px,0.01cqw,0.08px);--wtmr-letter-spacing-normal:clamp(0.08px,0.02cqw,0.15px);--wtmr-letter-spacing-wide:clamp(0.15px,0.05cqw,0.25px)}.wtmr-carousel-tile__product-name{-webkit-line-clamp:var(--wtmr-product-name-line-clamp);line-height:1.25}}@media (min-width:641px) and (max-width:1024px){.wtmr-carousel{--wtmr-product-image-size:clamp(36px,7.5cqw,40px)}}@media (min-width:1025px){.wtmr-carousel{--wtmr-font-size-xs:clamp(8px,1.5cqw,9px);--wtmr-font-size-sm:clamp(9px,1.8cqw,11px);--wtmr-font-size-base:clamp(10px,2cqw,13px);--wtmr-font-size-md:clamp(11px,2.2cqw,14px);--wtmr-font-size-lg:clamp(13px,2.5cqw,16px);--wtmr-font-size-xl:clamp(15px,3cqw,18px);--wtmr-product-image-size:clamp(38px,8cqw,44px)}}@media (max-width:375px){.wtmr-carousel{--wtmr-font-size-xs:clamp(5px,1.5cqw,7px);--wtmr-font-size-sm:clamp(6px,1.7cqw,8px);--wtmr-font-size-base:clamp(7px,1.9cqw,9px);--wtmr-font-size-md:clamp(8px,2.1cqw,10px);--wtmr-font-size-lg:clamp(10px,2.3cqw,11px);--wtmr-font-size-xl:clamp(11px,2.7cqw,13px);--wtmr-product-image-size:clamp(28px,6.5cqw,32px);--wtmr-spacing-xs:clamp(2px,0.3cqw,3px);--wtmr-spacing-sm:clamp(3px,0.6cqw,4px);--wtmr-spacing-md:clamp(4px,1cqw,6px);--wtmr-letter-spacing-tight:clamp(0.05px,0.01cqw,0.08px);--wtmr-letter-spacing-normal:clamp(0.08px,0.015cqw,0.1px);--wtmr-letter-spacing-wide:clamp(0.12px,0.03cqw,0.18px)}.wtmr-carousel-tile__product-name{-webkit-line-clamp:var(--wtmr-product-name-line-clamp);line-height:1.3}}}.whatmore-loading-indicator{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}@keyframes fadeInFromNoneAnimation{0%{display:none;opacity:.3}1%{display:block;opacity:.3}to{display:block;opacity:.8}}
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
100% {
|
|
77
77
|
transform: translateY(0%) rotate(0deg);
|
|
78
78
|
}
|
|
79
|
-
`} infinite 1.5s linear`;return(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===d?m:w,children:"vertical"===d?(0,f.jsx)(L.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(B.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{textShadow:"dark-lg",fontSize:g+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===O.m||void 0===O.m||null===(n=O.m[h])||void 0===n?void 0:n.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var R=function(t){const[e,n]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,i.useEffect)(()=>{const t=setTimeout(()=>{n(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,f.jsx)(D,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},W=n(8781),V=n(5144),Q=n(4459);const M="15px";var H=n(1351),X=n(6157),U=n(5551);var Y=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,m]=(0,x.A)(),[w,b]=(0,i.useState)(!1),j=t.product,y=t.event,{whatmoreWidgetSourceDetails:S}=(0,i.useContext)(U.B),k=.1*g,I=.95*m,_=.05*m;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:M,backgroundColor:o,borderRadius:"5px",animation:w?V.jd:null,onAnimationEnd:()=>{b(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{b(!0),function(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[i],ctaList:t.cta})})()}(y,j),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(j)},_hover:{backgroundColor:(0,Q.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},$=n(4892),q=n(8538),K=n(7458),G=n(2159),Z=n(9537),J=n(173),tt=(n(6125),n(4905));function et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2x",boxShadow:"lg",animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function nt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function it(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ot(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var rt=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){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,f.jsx)(it,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(ot,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},lt=n(6305),at=n(2720),dt=n(3755),st=n(7973);var ct=function(t){var e,n,o;const r=t.productVariantOptions,l=null!==(e=t.width)&&void 0!==e?e:"100%",a=(t.height,t.maxHeight),d=null!==(n=t.baseFontSize)&&void 0!==n?n:10,h=t.onOptionSelected,p=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",x=t.data,[g]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("websiteLanguage"),w=(0,i.useRef)(null),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(0),[I,_]=(0,i.useState)(0);function z(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[E,T]=(0,i.useState)([z(r[0]),z(r[1]),z(r[2])]);return(0,i.useEffect)(()=>{h(E)},[E]),(0,f.jsx)(u.B,{ref:w,direction:"column",width:l,maxHeight:a,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",overflowY:"auto",onTouchStart:t=>{w.current&&(y(!0),k(t.touches[0].clientY),_(w.current.scrollTop))},onTouchMove:t=>{if(!j||!w.current)return;const e=t.touches[0].clientY,n=1.5*(S-e);w.current.scrollTop=I+n,t.preventDefault()},onTouchEnd:()=>{y(!1)},onWheel:t=>{if(!w.current)return;let e=0===t.deltaMode?1:15;w.current.scrollTop+=t.deltaY*e},sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{width:"6px",background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"24px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"},"overflow-y":"scroll !important","-webkit-overflow-scrolling":"touch"},children:r.map((e,n)=>{var i,o,r,l;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.type))return;const a=e.every(e=>{var n,i,o,r,l,a;return(null===t||void 0===t||null===(n=t.finalArr)||void 0===n||null===(i=n.finalArr)||void 0===i||null===(o=i.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===o?void 0:o.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(C.E,{as:"b",fontSize:1.2*d+"px",sx:{color:p+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==o?o:e[0].type,"\xa0"]}),(0,f.jsx)(dt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map((e,i)=>{var o,r,l,s,u,h,p,v;return(0==n||(null===x||void 0===x||null===(o=x.variants)||void 0===o?void 0:o.find(t=>t[`option${n}`]==(null===E||void 0===E?void 0:E[n-1])&&t[`option${n+1}`]==(null===e||void 0===e?void 0:e.option))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)T([E[0],E[1],t]);else if(1==e){var n,i;T([E[0],t,null===x||void 0===x||null===(n=x.variants)||void 0===n||null===(i=n.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===i?void 0:i.option3])}else{var o,r,l,a,d,s;const e=null===x||void 0===x||null===(o=x.variants)||void 0===o||null===(r=o.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;T([t,null===x||void 0===x||null===(l=x.variants)||void 0===l||null===(a=l.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===a?void 0:a.option2,null===x||void 0===x||null===(d=x.variants)||void 0===d||null===(s=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===s?void 0:s.option3])}}(e.option,n)},backgroundColor:e.option===E[n]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===E[n]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===E[n]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:a?"0px":"8px",borderRadius:a?"50%":"0",children:[!a&&(0,f.jsxs)(C.E,{as:e.available?"samp":"s",fontSize:.8*d+"px",sx:{color:e.option===E[n]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(m=e.option,m.length>=3?"0px":.5*d+"px"),children:["\xa0",e.option,"\xa0"]}),a&&(0,f.jsx)(b._,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:a?"50%":"100%"},src:(0,st.b)(null!==(r=null===t||void 0===t||null===(l=t.finalArr)||void 0===l||null===(s=l.finalArr)||void 0===s||null===(u=s.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===u?void 0:u.src)&&void 0!==r?r:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(v=p.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]},i);var m})},n)]},n)})})},ut=n(6594),ht=n(4833),pt=n(3161);var vt=function(t){var e,n,o,r,a,d,s,h;const[m]=(0,v.QN)("isInDesignMode"),[w]=(0,v.QN)("isDemoBrand"),[j]=(0,v.QN)("whatmoreSecondaryColor"),y=(0,v.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,v.QN)("whatmorePrimaryFont"),[k]=(0,v.QN)("whatmoreShopId"),[I,_,z,E]=(0,x.A)(),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(t.product),P=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:L}=(0,i.useContext)(U.B),[B,O]=(0,i.useState)(null),[D,R]=(0,i.useState)(parseFloat(N.price)),[W,Y]=(0,i.useState)(parseFloat(N.compare_price)),[G,Z]=(0,i.useState)(null===N||void 0===N?void 0:N.title),[et,nt]=(0,i.useState)(N.currency),[it,ot]=(0,i.useState)(null),lt=t.event,at=t.productClickHandler,{whatmoreIsPreviewMode:dt}=(0,i.useContext)(U.B),[vt,xt]=(0,i.useState)(null),[gt,mt]=(0,i.useState)(!1),[ft,wt]=(0,i.useState)(!1),[Ct,bt,jt,yt,St,kt,It,_t]=t.useAddToCartStatesInstance,zt=t.productCartCounts&&t.productCartCounts[N.product_id]?t.productCartCounts[N.product_id]:Ct.cart_count;if((0,i.useEffect)(()=>{(0,p.w4b)(k)?(0,ut.ck)(N,(0,p.NCy)(k),k).then(t=>{F(t),R(parseFloat(t.price)),Y(parseFloat(t.compare_price)),nt(t.currency),mt(!0)}).catch(t=>{mt(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(N,(0,p.NCy)(k),k);ot(l),R((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Y((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),mt(!0)}catch(l){mt(!0)}})(),!(0,p.E8r)(k)||!("in_stock"in lt)||null!==lt&&void 0!==lt&<.in_stock||jt("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=it?null===it||void 0===it||null===(t=it.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,i=-1!==n?null===it||void 0===it||null===(e=it.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===it||void 0===it||null===(r=it.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));xt({position:n,finalArr:i,finalArrExternal:o})},[it]),!gt)return(0,f.jsx)(f.Fragment,{});var Et=.68*E,Tt=.55*Et,At=.4*Et,Nt=Et*(.55-.4),Ft=Et+"px",Pt=At+"px",Lt=Nt+"px",Bt=.12*At;const Ot=(0,p.XQu)(k);function Dt(){window.location.href=function(t){return(0,p.BLb)(k)?t.product_link+"?"+(0,p.VCz)(k)+"&"+(0,p.Spk)(k)+"&"+(0,p.$lz)(k):t.product_link}(N)}const Rt=L.landingLocationType,Wt=L.templateType,Vt=(0,ht.Wd)(Rt)+(0,ht.gf)(Wt)+(null!==lt&&void 0!==lt&<.isRelatedEvent?"R":"E")+"_"+(null===lt||void 0===lt?void 0:lt.event_id),Qt=(0,p.HKH)(k)&&t.activeProductsCount>1&&"init"==Ct.state&&0==Ct.cart_count;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(k),width:Ft,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{!function(t,e){m||w||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==k?Dt():at(e),A(!0)}(lt,N)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(k)),animation:T?V.jd:V.so,borderRadius:"round"==P?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(k),borderColor:(0,p.Fwt)(k)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Pt,width:Pt,children:(0,f.jsx)(b._,{className:"product-tile-image",width:Pt,height:Pt,src:(0,st.b)(null!==(e=null!==(n=null===vt||void 0===vt||null===(o=vt.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===vt||void 0===vt||null===(a=vt.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:N.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(k)+" !important"}})}),(0,f.jsxs)(c.az,{height:Pt,width:Et-At+"px",children:[(0,f.jsxs)(u.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,p.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(k),"important"),t.style.setProperty("font-size",1.1*Bt*(0,p.rh$)(k)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",S,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"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"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,q.v)("58396311733"===k?(0,pt.$)(G):G,"prod-tile")}),(0,p.Nzx)(k)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(k)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[gt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.uoB)(k)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,ut.Sb)("70756368633"===k?parseFloat(null===lt||void 0===lt||null===(s=lt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price):null!==D&&void 0!==D?D:null===N||void 0===N?void 0:N.price,"",k,et)," \xa0"]}),(0,K.P)(D,W)&>?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.gld)(k)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,ut.Sb)(null!==W&&void 0!==W?W:null===N||void 0===N?void 0:N.compare_price,"",k,et)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(C.E,{fontSize:.82*Bt*(0,p.rh$)(k)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:S+" !important",color:(0,p.Br1)(k)+" !important"},children:dt?(0,p.p6A)(k):(0,p.i2h)(k)})]}),(0,p.UlM)(k)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:y,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(k)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:j},sx:{bg:j},children:(0,f.jsx)(C.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)($.A,{sx:{color:j,fontSize:1.3*Bt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),"awaitingVariantSelection"==Ct.state&&null!=yt?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*Tt+"px",marginBottom:.1*Tt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Tt*Ot+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{maxHeight:Tt*Ot*.5+"px",width:Ft,height:"fit-content",event:lt,product:N,finalArr:vt,data:it,productVariantOptions:yt,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(R(e.price/100),Y(e.compare_price/100),e.title.includes(" ")&&Z(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,f.jsx)(rt,{baseFontSize:Qt?.2*Nt:.3*Nt,setProductVariantTitle:Z,product:N,cartState:Ct.state,cartCount:zt,updateCartState:jt,onClickAtc:t=>{"init"==Ct.state?(St(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:[N],ctaList:lt.cta})):"awaitingVariantSelection"==Ct.state&&(kt(B,Vt),Z(null===N||void 0===N?void 0:N.title))},onCartIconClick:()=>{_t()}})}),Qt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Nt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(tt.$,{disabled:ft,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${S} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{wt(!0),bt(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:lt.products,ctaList:lt.cta}),wt(!1)}catch(e){console.error("Failed to add items:",e),wt(!1)}},children:ft?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Nt*2.5+"px"}})}):(0,f.jsx)(C.E,{fontFamily:S,children:"ADD ALL ITEMS"})})})]})]})},xt=n(2835),gt=n(8397);var mt=function(t){var e,n,i,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[g]=(0,v.QN)("whatmoreShopId"),[m]=(0,v.QN)("websiteLanguage"),w=t.event,b=t.product,j=null!==(e=t.baseFontSize)&&void 0!==e?e:10,y=null!==(n=t.width)&&void 0!==n?n:"fit-content",S=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,f.jsx)(gt.N,{href:b.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,b)},children:(0,f.jsx)(c.az,{width:y,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.4*j,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(g)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)($.A,{sx:{color:h,fontSize:1.4*j}})})]})})})},ft=n(9408);function wt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d]=(0,v.QN)("websiteLanguage"),[s,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height,b=t.title;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:s?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*x+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","SHOP NOW"==b&&null!==(n=null===O.m||void 0===O.m||null===(o=O.m[d])||void 0===o?void 0:o.shop_now)&&void 0!==n?n:b,"\xa0"]})})})}var Ct=function(t){var e,n,i;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,f.jsx)(wt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var bt=function(t){var e,n,o,r,a;const[d]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(null),[F,P,L,B,O,D,R,W]=t.useAddToCartStatesInstance,[Q,Y]=(0,i.useState)(parseFloat(z.price)),[$,G]=(0,i.useState)(parseFloat(z.compare_price)),[Z,J]=(0,i.useState)(z.currency),[tt,et]=(0,i.useState)(!1),nt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:F.cart_count,it=t.event,ot=t.productClickHandler,lt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,at=T.landingLocationType,dt=T.templateType,st=(0,ht.Wd)(at)+(0,ht.gf)(dt)+(null!==it&&void 0!==it&&it.isRelatedEvent?"R":"E")+"_"+(null===it||void 0===it?void 0:it.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),Y(parseFloat(t.price)),G(parseFloat(t.compare_price)),J(t.currency)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),G((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})()},[]);var pt=k*lt,vt=.3*pt,gt=pt+"px",wt=.7*vt,bt=.9*wt,jt=.12*vt;const yt=(0,p.XQu)(w);function St(t,e){d||h||(async()=>{(0,l.Pb)(t,e)})(),ot(e),_(!0)}return(0,f.jsx)(u.B,{direction:"row",width:gt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:M,marginBottom:(0,p.qw1)(w),width:gt,onClick:t=>{},animation:I?V.jd:null,borderRadius:"lg",onAnimationEnd:()=>{_(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{St(it,z)},children:[(0,f.jsx)(c.az,{height:wt+"px",width:wt+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:bt+"px",width:bt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(b._,{width:bt+"px",height:bt+"px",src:z.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:wt+"px",width:pt-wt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*jt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:m+" !important",color:"white !important"},children:(0,q.v)(z.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[tt&&(0,f.jsx)(C.E,{noOfLines:1,fontSize:1*jt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"white !important"},children:" "+(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(n=it.products)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.price):null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,Z)}),(0,f.jsx)(s.o,{children:(0,K.P)(z.price,z.compare_price)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.8*jt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(r=it.products)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.compare_price):null!==$&&void 0!==$?$:null===z||void 0===z?void 0:z.compare_price,"",w,Z)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(xt.A,{storeId:w,productId:z.client_product_id,productLink:z.product_link,fontSize:1*jt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==F.state&&null!=B?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*vt+"px",marginBottom:.1*vt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:vt*yt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{width:gt,height:"fit-content",event:it,product:z,productVariantOptions:B,baseFontSize:1*jt,onOptionSelected:t=>{!function(t){N(t);const e=R(t);e&&(Y(e.price/100),G(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(mt,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(w)?(0,f.jsx)(Ct,{baseFontSize:.8*jt,event:it,product:z,borderRadius:"md",onShopNowClick:t=>{St(it,z)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(w)?(0,f.jsx)(ft.default,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(rt,{baseFontSize:.8*jt,event:it,product:z,cartState:F.state,cartCount:nt,borderRadius:"md",onClickAtc:t=>{"init"==F.state?(O(st),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:T,event:it,productList:[z],ctaList:it.cta})):"awaitingVariantSelection"==F.state&&D(A,st)},onCartIconClick:()=>{W()}})})})]})]})})})};var jt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),r=(0,v.Xd)("whatmoreSecondaryColorShade900"),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s,h,m,w]=(0,x.A)(),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(t.product),I=(0,v.Xd)("whatmoreUITheme"),[_,z]=(0,i.useState)(!1),[E,T]=(0,i.useState)(parseFloat(S.price)),[A,N]=(0,i.useState)(parseFloat(S.compare_price)),[P,L]=(0,i.useState)(S.currency),[B,O]=(0,i.useState)(!0),D=t.event,[R,W]=(0,i.useState)();if((0,i.useEffect)(()=>{if("6573064236"===d&&null!==S&&void 0!==S&&S.product_link){const t=parseFloat(S.price);return N(t),S.product_link.includes("flo-ergo-memory-foam-mattress")?T(.6*t):S.product_link.includes("flo-latex-mattress")?T(.58*t):S.product_link.includes("flo-orthopedic-mattress")?T(.56*t):T(t),void z(!0)}(0,p.w4b)(d)?(0,ut.ck)(S,(0,p.NCy)(d),d).then(t=>{k(t),T(parseFloat(t.price)),N(parseFloat(t.compare_price)),L(t.currency),z(!0)}).catch(t=>z(!0)):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(S,(0,p.NCy)(d),d);W(l),T((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),N((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),z(!0)}catch(l){z(!0)}})()},[]),!_)return(0,f.jsx)(f.Fragment,{});var Y=.68*w,G=.4*Y,Z=Y+"px",J=G+"px",tt=Y*(.55-.4)+"px",et=.12*G;(0,p.XQu)(d);const{whatmoreWidgetSourceDetails:nt}=(0,i.useContext)(U.B);function it(t){return(0,p.BLb)(d)?t.product_link+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d):t.product_link}function ot(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:nt,event:t,productList:[i],ctaList:t.cta})})(),y(!0)}return B?(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(d),width:Z,height:"fit-content",boxShadow:"round"==I?"dark-lg":null,onClick:()=>{ot(D,S),window.location.href=it(S)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(d)),animation:j?V.jd:V.so,borderRadius:"round"==I?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(d),borderColor:(0,p.Fwt)(d)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:J,width:J,children:(0,f.jsx)(b._,{width:J,height:J,src:(0,st.b)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(d)+" !important"}})}),(0,f.jsxs)(c.az,{height:J,width:Y-G+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(d)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(C.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:a+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*et+"px !important"},children:(0,q.v)(null==S.title?"":S.title.toString(),"prod-tile")}),(0,p.Nzx)(d)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(d)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==I?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*et+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.uoB)(d)+" !important",margin:"0px !important"},children:[" "+(0,ut.Sb)(null!==E&&void 0!==E?E:null===S||void 0===S?void 0:S.price,"",d,P)," \xa0"]}),(0,K.P)(E,A)&&_?(0,f.jsxs)(C.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*et+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.gld)(d)+" !important",margin:"0px !important"},children:[" ",(0,ut.Sb)(null!==A&&void 0!==A?A:null===S||void 0===S?void 0:S.compare_price,"",d,P)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(d)&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*et+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(d)+" !important",color:(0,p._zx)(d)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(d)," \xa0"]})]}),(0,p.UlM)(d)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==I?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==d||"STRNUBH0VYQ"==d||"STRAPB3KXSR"==d?(0,f.jsx)(F.A,{sx:{boxShadow:3,fontSize:1.3*et,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),O(!1)}}):(0,f.jsx)($.A,{sx:{color:o,fontSize:1.3*et+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(d)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:tt,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Ct,{baseFontSize:.8*et,event:D,product:S,borderRadius:"md",onShopNowClick:t=>{ot(D,S),window.location.href=it(S)}})})]}):(0,f.jsx)(f.Fragment,{})};function yt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,i.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(St,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?V.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:m?(0,Q.YU)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function St(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,i.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?V.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${n} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function kt(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.2*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function It(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}}):(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var _t=function(t){var e,n,i,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",m=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(kt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==c?0==u?(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):s?(0,f.jsx)(It,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:g,height:m,onCartIconClick:p}):(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,f.jsx)(yt,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:m,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var zt=function(t){var e,n,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(U.B),[N,F]=(0,i.useState)(null),[P,L]=(0,i.useState)(parseFloat(z.price)),[B,O]=(0,i.useState)(parseFloat(z.compare_price)),[D,R]=(0,i.useState)(z.currency),[W,Y]=(0,i.useState)(null),$=t.event,G=t.productClickHandler,[Z,J]=(0,i.useState)(null),[tt,et]=(0,i.useState)(!1),[nt,it,ot,rt,lt,at,dt,ct]=t.useAddToCartStatesInstance,pt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:nt.cart_count,vt=A.landingLocationType,xt=A.templateType,gt=(0,ht.Wd)(vt)+(0,ht.gf)(xt)+"_"+(null===$||void 0===$?void 0:$.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),R(t.currency),et(!0)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y(l),L((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})(),!(0,p.E8r)(w)||null!==$&&void 0!==$&&$.in_stock||ot("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=W?null===W||void 0===W||null===(t=W.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,i=-1!==n?null===W||void 0===W||null===(e=W.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===W||void 0===W||null===(r=W.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:n,finalArr:i,finalArrExternal:o})},[W]);var mt=.72*k,ft=.37*mt,wt=mt*(.48-.37),Ct=.95*mt+"px",bt=ft+"px",jt=.12*ft;function yt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:"24px",width:Ct,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?yt():G(e),_(!0)}($,z)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(w)),animation:I?V.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:bt,width:bt,children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:(0,st.b)(null!==(e=null!==(n=null===Z||void 0===Z||null===(o=Z.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===Z||void 0===Z||null===(a=Z.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:bt,width:mt-ft+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",jt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",m,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,q.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*jt+"px"},children:[tt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:m+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,ut.Sb)(null!==P&&void 0!==P?P:null===z||void 0===z?void 0:z.price,"",w,D)," \xa0"]}),(0,K.P)(P,B)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)(null!==B&&void 0!==B?B:null===z||void 0===z?void 0:z.compare_price,"",w,D)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(_t,{baseFontSize:.3*wt,event:$,product:z,cartState:nt.state,cartCount:pt,updateCartState:ot,onClickAtc:t=>{"init"===nt.state?(lt(gt,!0),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:$,productList:[z],ctaList:$.cta})):"awaitingVariantSelection"===nt.state&&G(z)},onCartIconClick:t=>{ct()}})]})})]})})};function Et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon,j="12px";return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2px",boxShadow:"lg",borderRadius:j,animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",backgroundColor:"white",borderRadius:j,onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",borderRadius:j,onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Tt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),borderRadius:"7px",onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"10px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.2*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function At(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Nt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var Ft=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){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,f.jsx)(At,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(Nt,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(Et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})};var Pt=function(t){var e;const[n]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s,c,u]=(0,x.A)(),[h,m]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(U.B),[C,b]=(0,i.useState)(null),[j,y]=(0,i.useState)(parseFloat(h.price)),[S,k]=(0,i.useState)(parseFloat(h.compare_price)),[I,_]=(0,i.useState)(null===h||void 0===h?void 0:h.title),[z,E]=(0,i.useState)(h.currency),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(!1),[P]=(0,v.QN)("whatmoreSecondaryColor"),[L,B,O,D,R,W,V,Q]=t.useAddToCartStatesInstance,M=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:L.cart_count,Y=t.event,$=t.productClickHandler;if((0,i.useEffect)(()=>{(0,p.w4b)(a)?(0,ut.ck)(h,(0,p.NCy)(a),a).then(t=>{m(t),y(parseFloat(t.price)),k(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(h,(0,p.NCy)(a),a);y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),k((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),A(!0)}catch(l){A(!0)}})()},[]),!T)return(0,f.jsx)(f.Fragment,{});const G=.765*u,Z=(null===Y||void 0===Y||null===(e=Y.products)||void 0===e?void 0:e.length)>1?.85*G:G,J=.198*Z,tt=.0315*u,et=1.05*tt,nt=Number((0,p.rh$)(a)),it=.85*tt*(isNaN(nt)||0===nt?1:nt),ot=.75*tt,rt=(0,p.XQu)(a),lt=(()=>{if((0,K.P)(j,S)){const t=(S-j)/S*100;return Math.round(t)}return null})(),at=P,dt=(pt=at,vt=.15,`rgba(${parseInt(pt.slice(1,3),16)}, ${parseInt(pt.slice(3,5),16)}, ${parseInt(pt.slice(5,7),16)}, ${vt})`);var pt,vt;function xt(){window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(h)}function gt(t,e){n||o||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==a?xt():$(e)}const mt=w.landingLocationType,ft=w.templateType,wt=(0,ht.Wd)(mt)+(0,ht.gf)(ft)+(null!==Y&&void 0!==Y&&Y.isRelatedEvent?"R":"E")+"_"+(null===Y||void 0===Y?void 0:Y.event_id);return(0,f.jsx)("div",{style:{width:Z+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",transition:"all 0.3s ease-out",transform:N?"translateY(-2.7px) scale(1.018)":"translateY(0) scale(1)",boxShadow:N?"0 10.8px 31.5px rgba(0, 0, 0, 0.2)":"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:N?10:1},onClick:()=>{if("22907887"===a)return console.log("product.product_link : ",h.product_link),void(window.location.href=h.product_link);gt(Y,h)},onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,f.jsx)("div",{style:{width:J+"px",height:J+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,f.jsx)("img",{src:(0,st.b)(h.thumbnail_image),alt:h.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,f.jsxs)("div",{style:{flex:1},children:[(0,f.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*et+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:(0,q.v)(I,"prod-tile")}),(0,p.Nzx)(a)&&(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*it+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,ut.Sb)(null!==j&&void 0!==j?j:null===h||void 0===h?void 0:h.price,"",a,z)}),(0,K.P)(j,S)&&T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.gld)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:it+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,ut.Sb)(null!==S&&void 0!==S?S:null===h||void 0===h?void 0:h.compare_price,"",a,z)}),lt&&(0,p.mOK)(a)&&(0,f.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",at,"important"),t.style.setProperty("background-color",dt,"important"))},style:{fontSize:.9*it+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[lt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==L.state&&null!=D&&(0,f.jsx)("div",{style:{width:"100%",maxHeight:.3*Z*rt+"px",overflowY:"auto",overflowX:"hidden",marginTop:"10px",marginBottom:"10px",padding:"8px",backgroundColor:"rgba(248, 248, 248, 0.8)",borderRadius:"8px",border:"1px solid #e0e0e0"},children:(0,f.jsx)(ct,{width:"100%",height:"fit-content",event:Y,product:h,productVariantOptions:D,baseFontSize:.9*tt,onOptionSelected:t=>{!function(t){b(t);const e=V(t);e&&(y(e.price/100),k(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,f.jsx)("div",{style:{width:"100%"},children:(0,f.jsx)(Ft,{baseFontSize:1.1*ot,setProductVariantTitle:_,product:h,cartState:L.state,cartCount:M,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==a?"init"==L.state?(R(wt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:Y,productList:[h],ctaList:Y.cta})):"awaitingVariantSelection"==L.state&&(W(C,wt),_(null===h||void 0===h?void 0:h.title)):gt(Y,h)},onCartIconClick:()=>{Q()}})})]})})};var Lt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[n]=(0,v.QN)("isWhatmoreWebsite"),o=(0,p.Vpi)(e),r=t.event,l=t.product,a=t.productCartCounts,d=t.onCartCountChange,[s,...c]=(0,lt.A)(0,l,t.event),u=[s,...c];return(0,i.useEffect)(()=>{let t=s.cart_count;a>s.cart_count&&(t=a+1),d&&d(l.product_id,t)},[s.cart_count]),n?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,f.jsx)(Pt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile"==o?(0,f.jsx)(vt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile-no-cta"==o?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,f.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"link_only"==o?(0,f.jsx)(Y,{product:t.product,event:t.event}):"narrow-tile"==o?(0,f.jsx)(bt,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):(0,f.jsx)(f.Fragment,{})},Bt=n(1079),Ot=n(7802),Dt=n(2979);var Rt=function(t){var e,n,i;const[l,a,d,h]=(0,x.A)(),[g]=(0,v.QN)("whatmoreShopId"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),C=t.event,b=t.productClickHandler,j=t.productCartCounts,y=t.onCartCountChange,S=(0,p.Vpi)(g),k=null!==(e=null===(n=C.products)||void 0===n||null===(i=n.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===i?void 0:i.length)&&void 0!==e?e:0;if(!(0,Ot.Z_)(C))return(0,f.jsx)(f.Fragment,{});if(1==C.products.length&&(void 0==C.cta||0==C.cta.length)){const t=C.products[0];return(0,p.uJl)(g)?(0,f.jsx)(u.B,{direction:"horizontal",width:h,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,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(bt,{event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==S?"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,f.jsx)(s.o,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(Lt,{activeProductsCount:1,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==S?"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,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==C.products.length?1:1.4,initialSlide:0,centeredSlides:!(0,p.TYM)(g),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===g?[C.products[0]]:C.products).map(t=>("oos"!=t.product_status||(0,p.$7F)(g))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Lt,{activeProductsCount:k,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})},C.event_id+t.product_id)),(0,p.Woi)(g)&&void 0!=C.cta&&C.cta.map(t=>{var e;return(0,f.jsx)(f.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Bt.A,{fontFactor:.75,cta:t},C.event_id+t.cta_id)})},C.event_id+t.cta_id)})})]})})})})};var Wt=function(t){const[e,n]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange;return(0,i.useContext)(Pn).isIOS,(0,f.jsx)(Rt,{event:o,productClickHandler:r,productCartCounts:l,onCartCountChange:a},o.event_id)},Vt=n(6670);function Qt(t){const e=t.event,[n,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(C.E,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,f.jsx)(N.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Mt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,Vt.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),g=t.event,m=t.isLast,w=t.onCloseCallback,C=t.focusRef,b=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Qt,{event:g}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(j.A,{focusRef:C}),(0,f.jsx)(P,{event:g,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!m})})}):null,void 0!=g.products&&g.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:g,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:g,productClickHandler:b})})]}):(0,f.jsx)("div",{})]})]})})};function Ht(t){const[e,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(""),h=t.data,g=(t.event,t.product,t.setShowOptionsChart);var m=.4*r*.8*.13;(0,i.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,n,i,o,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const w=`${k.i7`
|
|
79
|
+
`} infinite 1.5s linear`;return(0,f.jsx)(c.az,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"0px",justifyContent:"flex-end",children:[(0,f.jsx)(s.o,{animation:"vertical"===d?m:w,children:"vertical"===d?(0,f.jsx)(L.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}}):(0,f.jsx)(B.A,{sx:{color:"white !important",fontSize:p,filter:"drop-shadow(0 0 20px black);"}})}),(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{textShadow:"dark-lg",fontSize:g+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:null!==(e=null===O.m||void 0===O.m||null===(n=O.m[h])||void 0===n?void 0:n.swipe_more)&&void 0!==e?e:"swipe for more"})})]})})};var R=function(t){const[e,n]=(0,v.QN)("isFirstIndicatorRenderDone"),[o]=(0,v.QN)("indicatorRenderSeconds"),r=o,l=t.swipeUp;return(0,i.useEffect)(()=>{const t=setTimeout(()=>{n(!0)},3e3+1e3*r);return()=>{clearTimeout(t)}},[]),e?null:(0,f.jsx)(D,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:l})},W=n(8781),V=n(5144),Q=n(4459);const M="15px";var H=n(1351),X=n(6157),U=n(5551);var Y=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h,g,m]=(0,x.A)(),[w,b]=(0,i.useState)(!1),j=t.product,y=t.event,{whatmoreWidgetSourceDetails:S}=(0,i.useContext)(U.B),k=.1*g,I=.95*m,_=.05*m;return(0,f.jsx)(u.B,{direction:"row",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.600)",children:(0,f.jsx)(u.B,{direction:"column",width:"fit-content",height:k,justifyContent:"center",alignItems:"center",alignContent:"center",children:(0,f.jsx)(c.az,{width:I+"px",height:"fit-content",padding:"6px",marginTop:M,backgroundColor:o,borderRadius:"5px",animation:w?V.jd:null,onAnimationEnd:()=>{b(!1)},marginBottom:(0,p.qw1)(a),onClick:()=>{b(!0),function(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:S,event:t,productList:[i],ctaList:t.cta})})()}(y,j),window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(j)},_hover:{backgroundColor:(0,Q.YU)(o,8)},cursor:"pointer",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*_+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:r+" !important",color:"white !important"},children:(0,p.Qed)(a)})})})})})},$=n(4892),q=n(8538),K=n(7458),G=n(2159),Z=n(9537),J=n(173),tt=(n(6125),n(4905));function et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon;return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2x",boxShadow:"lg",animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function nt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function it(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ot(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var rt=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){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,f.jsx)(it,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(ot,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(nt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})},lt=n(6305),at=n(2720),dt=n(3755),st=n(7973);var ct=function(t){var e,n,o;const r=t.productVariantOptions,l=null!==(e=t.width)&&void 0!==e?e:"100%",a=(t.height,t.maxHeight),d=null!==(n=t.baseFontSize)&&void 0!==n?n:10,h=t.onOptionSelected,p=null!==(o=t.optionTitleColor)&&void 0!==o?o:"black",x=t.data,[g]=(0,v.QN)("whatmorePrimaryFont"),[m]=(0,v.QN)("websiteLanguage"),w=(0,i.useRef)(null),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(0),[I,_]=(0,i.useState)(0);function z(t){if(0==t.length)return null;const e=t.filter(t=>t.available);return 0==e.length?null:e[0].option}const[E,T]=(0,i.useState)([z(r[0]),z(r[1]),z(r[2])]);return(0,i.useEffect)(()=>{h(E)},[E]),(0,f.jsx)(u.B,{ref:w,direction:"column",width:l,maxHeight:a,justifyContent:"flex-start",alignItems:"center",spacing:"2px",paddingY:"2px",overflowY:"auto",onTouchStart:t=>{w.current&&(y(!0),k(t.touches[0].clientY),_(w.current.scrollTop))},onTouchMove:t=>{if(!j||!w.current)return;const e=t.touches[0].clientY,n=1.5*(S-e);w.current.scrollTop=I+n,t.preventDefault()},onTouchEnd:()=>{y(!1)},onWheel:t=>{if(!w.current)return;let e=0===t.deltaMode?1:15;w.current.scrollTop+=t.deltaY*e},sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{width:"6px",background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"24px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"},"overflow-y":"scroll !important","-webkit-overflow-scrolling":"touch"},children:r.map((e,n)=>{var i,o,r,l;if(0==e.length||"mlveda_country"==(null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.type))return;const a=e.every(e=>{var n,i,o,r,l,a;return(null===t||void 0===t||null===(n=t.finalArr)||void 0===n||null===(i=n.finalArr)||void 0===i||null===(o=i.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===o?void 0:o.src)||(null===t||void 0===t||null===(r=t.finalArr)||void 0===r||null===(l=r.finalArrExternal)||void 0===l||null===(a=l.find(t=>(null===t||void 0===t?void 0:t.color)===(null===e||void 0===e?void 0:e.option)))||void 0===a?void 0:a.optionsrc)});return(0,f.jsxs)(u.B,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",paddingY:"2px",children:[(0,f.jsx)(s.o,{width:"100%",children:(0,f.jsx)(at.c,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,f.jsxs)(C.E,{as:"b",fontSize:1.2*d+"px",sx:{color:p+" !important",fontFamily:g+" !important"},align:"center",marginY:"2px",children:["\xa0",null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r[null===(l=e[0].type)||void 0===l?void 0:l.toLowerCase()])&&void 0!==o?o:e[0].type,"\xa0"]}),(0,f.jsx)(dt.s,{gap:"6px",wrap:"wrap",justify:"center",paddingY:"2px",children:e.map((e,i)=>{var o,r,l,s,u,h,p,v;return(0==n||(null===x||void 0===x||null===(o=x.variants)||void 0===o?void 0:o.find(t=>t[`option${n}`]==(null===E||void 0===E?void 0:E[n-1])&&t[`option${n+1}`]==(null===e||void 0===e?void 0:e.option))))&&(0,f.jsxs)(c.az,{onClick:t=>{t.stopPropagation(),e.available&&function(t,e){if(2==e)T([E[0],E[1],t]);else if(1==e){var n,i;T([E[0],t,null===x||void 0===x||null===(n=x.variants)||void 0===n||null===(i=n.find(e=>(null===e||void 0===e?void 0:e.option2)==t))||void 0===i?void 0:i.option3])}else{var o,r,l,a,d,s;const e=null===x||void 0===x||null===(o=x.variants)||void 0===o||null===(r=o.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===r?void 0:r.option2;T([t,null===x||void 0===x||null===(l=x.variants)||void 0===l||null===(a=l.find(e=>(null===e||void 0===e?void 0:e.option1)==t))||void 0===a?void 0:a.option2,null===x||void 0===x||null===(d=x.variants)||void 0===d||null===(s=d.find(t=>(null===t||void 0===t?void 0:t.option2)==e))||void 0===s?void 0:s.option3])}}(e.option,n)},backgroundColor:e.option===E[n]?"rgba(0, 0, 0, 0.7)":"white",border:e.option===E[n]?"1px solid #ffffff":"1px solid black",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e.option===E[n]?"0 0 8px rgba(0, 0, 0, 0.8)":"none",marginY:"2px",width:"fit-content",padding:a?"0px":"8px",borderRadius:a?"50%":"0",children:[!a&&(0,f.jsxs)(C.E,{as:e.available?"samp":"s",fontSize:.8*d+"px",sx:{color:e.option===E[n]?"white":(e.available?"black":"gray")+" !important",fontFamily:g+" !important"},align:"center",paddingX:(m=e.option,m.length>=3?"0px":.5*d+"px"),children:["\xa0",e.option,"\xa0"]}),a&&(0,f.jsx)(b._,{width:"58px",height:"58px",style:{cursor:null!==e&&void 0!==e&&e.available?"pointer":"not-allowed",opacity:null!==e&&void 0!==e&&e.available?1:.5,filter:null!==e&&void 0!==e&&e.available?"none":"grayscale(100%)",borderRadius:a?"50%":"100%"},src:(0,st.b)(null!==(r=null===t||void 0===t||null===(l=t.finalArr)||void 0===l||null===(s=l.finalArr)||void 0===s||null===(u=s.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===u?void 0:u.src)&&void 0!==r?r:null===t||void 0===t||null===(h=t.finalArr)||void 0===h||null===(p=h.finalArrExternal)||void 0===p||null===(v=p.find(t=>(null===t||void 0===t?void 0:t.color)==(null===e||void 0===e?void 0:e.option)))||void 0===v?void 0:v.optionsrc,"?width=400&height=400")})]},i);var m})},n)]},n)})})},ut=n(6594),ht=n(4833),pt=n(3161);var vt=function(t){var e,n,o,r,a,d,s,h;const[m]=(0,v.QN)("isInDesignMode"),[w]=(0,v.QN)("isDemoBrand"),[j]=(0,v.QN)("whatmoreSecondaryColor"),y=(0,v.Xd)("whatmoreSecondaryColorShade900"),[S]=(0,v.QN)("whatmorePrimaryFont"),[k]=(0,v.QN)("whatmoreShopId"),[I,_,z,E]=(0,x.A)(),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(t.product),P=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:L}=(0,i.useContext)(U.B),[B,O]=(0,i.useState)(null),[D,R]=(0,i.useState)(parseFloat(N.price)),[W,Y]=(0,i.useState)(parseFloat(N.compare_price)),[G,Z]=(0,i.useState)(null===N||void 0===N?void 0:N.title),[et,nt]=(0,i.useState)(N.currency),[it,ot]=(0,i.useState)(null),lt=t.event,at=t.productClickHandler,{whatmoreIsPreviewMode:dt}=(0,i.useContext)(U.B),[vt,xt]=(0,i.useState)(null),[gt,mt]=(0,i.useState)(!1),[ft,wt]=(0,i.useState)(!1),[Ct,bt,jt,yt,St,kt,It,_t]=t.useAddToCartStatesInstance,zt=t.productCartCounts&&t.productCartCounts[N.product_id]?t.productCartCounts[N.product_id]:Ct.cart_count;if((0,i.useEffect)(()=>{(0,p.w4b)(k)?(0,ut.ck)(N,(0,p.NCy)(k),k).then(t=>{F(t),R(parseFloat(t.price)),Y(parseFloat(t.compare_price)),nt(t.currency),mt(!0)}).catch(t=>{mt(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(N,(0,p.NCy)(k),k);ot(l),R((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),Y((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),mt(!0)}catch(l){mt(!0)}})(),!(0,p.E8r)(k)||!("in_stock"in lt)||null!==lt&&void 0!==lt&<.in_stock||jt("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=it?null===it||void 0===it||null===(t=it.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,i=-1!==n?null===it||void 0===it||null===(e=it.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===it||void 0===it||null===(r=it.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));xt({position:n,finalArr:i,finalArrExternal:o})},[it]),!gt)return(0,f.jsx)(f.Fragment,{});var Et=.68*E,Tt=.55*Et,At=.4*Et,Nt=Et*(.55-.4),Ft=Et+"px",Pt=At+"px",Lt=Nt+"px",Bt=.12*At;const Ot=(0,p.XQu)(k);function Dt(){window.location.href=function(t){return(0,p.BLb)(k)?t.product_link+"?"+(0,p.VCz)(k)+"&"+(0,p.Spk)(k)+"&"+(0,p.$lz)(k):t.product_link}(N)}const Rt=L.landingLocationType,Wt=L.templateType,Vt=(0,ht.Wd)(Rt)+(0,ht.gf)(Wt)+(null!==lt&&void 0!==lt&<.isRelatedEvent?"R":"E")+"_"+(null===lt||void 0===lt?void 0:lt.event_id),Qt=(0,p.HKH)(k)&&t.activeProductsCount>1&&"init"==Ct.state&&0==Ct.cart_count;return(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(k),width:Ft,height:"fit-content",boxShadow:"round"==P?"dark-lg":null,onClick:()=>{!function(t,e){m||w||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==k?Dt():at(e),A(!0)}(lt,N)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(k)),animation:T?V.jd:V.so,borderRadius:"round"==P?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(k),borderColor:(0,p.Fwt)(k)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:Pt,width:Pt,children:(0,f.jsx)(b._,{className:"product-tile-image",width:Pt,height:Pt,src:(0,st.b)(null!==(e=null!==(n=null===vt||void 0===vt||null===(o=vt.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===vt||void 0===vt||null===(a=vt.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===B||void 0===B?void 0:B[null===vt||void 0===vt?void 0:vt.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:N.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(k)+" !important"}})}),(0,f.jsxs)(c.az,{height:Pt,width:Et-At+"px",children:[(0,f.jsxs)(u.B,{direction:"column",className:"wht-pr-title",justifyContent:(0,p.UlM)(k)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"4px",paddingY:"10px",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(k),"important"),t.style.setProperty("font-size",1.1*Bt*(0,p.rh$)(k)+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",S,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"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"),t.style.setProperty("padding","0","important"),t.style.setProperty("margin-bottom","4px","important"),t.style.setProperty("font-weight","normal"))},children:(0,q.v)("58396311733"===k?(0,pt.$)(G):G,"prod-tile")}),(0,p.Nzx)(k)?(0,f.jsxs)(u.B,{className:"whatmore-product-atc-price",direction:(0,p.vw2)(k)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",borderRadius:"round"==P?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"4px",sx:{margin:"0px !important",marginBottom:"4px !important"},children:[gt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.uoB)(k)+" !important",padding:"0px !important",letterSpacing:"normal !important",margin:"0px !important"},children:["\xa0"," "+(0,ut.Sb)("70756368633"===k?parseFloat(null===lt||void 0===lt||null===(s=lt.products)||void 0===s||null===(h=s[0])||void 0===h?void 0:h.price):null!==D&&void 0!==D?D:null===N||void 0===N?void 0:N.price,"",k,et)," \xa0"]}),(0,K.P)(D,W)&>?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*Bt*(0,p.rh$)(k)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:S+" !important",color:(0,p.gld)(k)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:0===D?"":"line-through !important"},children:[" ",(0,ut.Sb)(null!==W&&void 0!==W?W:null===N||void 0===N?void 0:N.compare_price,"",k,et)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(C.E,{fontSize:.82*Bt*(0,p.rh$)(k)+"px",fontWeight:"medium",lineHeight:"110%",sx:{margin:"0px !important",fontFamily:S+" !important",color:(0,p.Br1)(k)+" !important"},children:dt?(0,p.p6A)(k):(0,p.i2h)(k)})]}),(0,p.UlM)(k)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:y,sx:{borderRadius:"round"==P?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,p.SK$)(k)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:j},sx:{bg:j},children:(0,f.jsx)(C.E,{color:"white",paddingX:"6px",fontSize:.8*Bt+"px",children:"VIEW PRODUCT"})}):(0,f.jsx)($.A,{sx:{color:j,fontSize:1.3*Bt+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),"awaitingVariantSelection"==Ct.state&&null!=yt?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*Tt+"px",marginBottom:.1*Tt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:Tt*Ot+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{maxHeight:Tt*Ot*.5+"px",width:Ft,height:"fit-content",event:lt,product:N,finalArr:vt,data:it,productVariantOptions:yt,baseFontSize:1.2*Bt,onOptionSelected:t=>{!function(t){O(t);const e=It(t);e&&(R(e.price/100),Y(e.compare_price/100),e.title.includes(" ")&&Z(e.title))}(t)}})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:Lt,spacing:0,children:[(0,f.jsx)(u.B,{className:"whatmore-add-to-cart",direction:"row",width:"100%",height:Lt,children:(0,f.jsx)(rt,{baseFontSize:Qt?.2*Nt:.3*Nt,setProductVariantTitle:Z,product:N,cartState:Ct.state,cartCount:zt,updateCartState:jt,onClickAtc:t=>{"init"==Ct.state?(St(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:[N],ctaList:lt.cta})):"awaitingVariantSelection"==Ct.state&&(kt(B,Vt),Z(null===N||void 0===N?void 0:N.title))},onCartIconClick:()=>{_t()}})}),Qt&&(0,f.jsx)(u.B,{width:"100%",className:"wht-all-atc",sx:{fontSize:.28*Nt,flexDirection:"row",height:"100%",justifyContent:"center",alignItems:"center",bg:"white"},children:(0,f.jsx)(tt.$,{disabled:ft,sx:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",fontFamily:`${S} !important`,color:"black"},onClick:async t=>{t.stopPropagation();try{wt(!0),bt(Vt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ALL_ATC_CLICKED,widgetSourceDetails:L,event:lt,productList:lt.products,ctaList:lt.cta}),wt(!1)}catch(e){console.error("Failed to add items:",e),wt(!1)}},children:ft?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black)",color:"#F5F5F5",fontSize:.3*Nt*2.5+"px"}})}):(0,f.jsx)(C.E,{fontFamily:S,children:"ADD ALL ITEMS"})})})]})]})},xt=n(2835),gt=n(8397);var mt=function(t){var e,n,i,o,r;const[a]=(0,v.QN)("isInDesignMode"),[d]=(0,v.QN)("isDemoBrand"),[h]=(0,v.QN)("whatmoreSecondaryColor"),[x]=(0,v.QN)("whatmorePrimaryFont"),[g]=(0,v.QN)("whatmoreShopId"),[m]=(0,v.QN)("websiteLanguage"),w=t.event,b=t.product,j=null!==(e=t.baseFontSize)&&void 0!==e?e:10,y=null!==(n=t.width)&&void 0!==n?n:"fit-content",S=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,f.jsx)(gt.N,{href:b.product_link,color:h,onClick:()=>{!function(t,e){a||d||(async()=>{(0,l.TJ)(t,e)})()}(w,b)},children:(0,f.jsx)(c.az,{width:y,height:S,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.4*j,fontWeight:"semibold",sx:{fontFamily:x+" !important",color:h+" !important"},children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(o=null===O.m||void 0===O.m||null===(r=O.m[m])||void 0===r?void 0:r.more_info)&&void 0!==o?o:(0,p.KnH)(g)})}),(0,f.jsx)(s.o,{children:(0,f.jsx)($.A,{sx:{color:h,fontSize:1.4*j}})})]})})})},ft=n(9408);function wt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d]=(0,v.QN)("websiteLanguage"),[s,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height,b=t.title;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:s?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},lineHeight:"100%",fontSize:1.4*x+"px",fontWeight:"semibold",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0","SHOP NOW"==b&&null!==(n=null===O.m||void 0===O.m||null===(o=O.m[d])||void 0===o?void 0:o.shop_now)&&void 0!==n?n:b,"\xa0"]})})})}var Ct=function(t){var e,n,i;const[o]=(0,v.QN)("whatmoreShopId"),r=t.event,l=t.product,a=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.onShopNowClick,s=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,f.jsx)(wt,{onClick:function(){d()},event:r,product:l,baseFontSize:a,width:s,height:c,title:(0,p.Qed)(o)})};var bt=function(t){var e,n,o,r,a;const[d]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:T}=(0,i.useContext)(U.B),[A,N]=(0,i.useState)(null),[F,P,L,B,O,D,R,W]=t.useAddToCartStatesInstance,[Q,Y]=(0,i.useState)(parseFloat(z.price)),[$,G]=(0,i.useState)(parseFloat(z.compare_price)),[Z,J]=(0,i.useState)(z.currency),[tt,et]=(0,i.useState)(!1),nt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:F.cart_count,it=t.event,ot=t.productClickHandler,lt=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1,at=T.landingLocationType,dt=T.templateType,st=(0,ht.Wd)(at)+(0,ht.gf)(dt)+(null!==it&&void 0!==it&&it.isRelatedEvent?"R":"E")+"_"+(null===it||void 0===it?void 0:it.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),Y(parseFloat(t.price)),G(parseFloat(t.compare_price)),J(t.currency)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),G((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})()},[]);var pt=k*lt,vt=.3*pt,gt=pt+"px",wt=.7*vt,bt=.9*wt,jt=.12*vt;const yt=(0,p.XQu)(w);function St(t,e){d||h||(async()=>{(0,l.Pb)(t,e)})(),ot(e),_(!0)}return(0,f.jsx)(u.B,{direction:"row",width:gt,height:"fit-content",justifyContent:"center",children:(0,f.jsx)(c.az,{marginTop:M,marginBottom:(0,p.qw1)(w),width:gt,onClick:t=>{},animation:I?V.jd:null,borderRadius:"lg",onAnimationEnd:()=>{_(!1)},children:(0,f.jsxs)(u.B,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{St(it,z)},children:[(0,f.jsx)(c.az,{height:wt+"px",width:wt+"px",children:(0,f.jsx)(u.B,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,f.jsx)(c.az,{height:bt+"px",width:bt+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,f.jsx)(b._,{width:bt+"px",height:bt+"px",src:z.thumbnail_image,objectFit:"cover"})})})}),(0,f.jsx)(c.az,{height:wt+"px",width:pt-wt+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,f.jsx)(C.E,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*jt+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:m+" !important",color:"white !important"},children:(0,q.v)(z.title.toString())}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",marginTop:"5px",children:[(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[tt&&(0,f.jsx)(C.E,{noOfLines:1,fontSize:1*jt+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"white !important"},children:" "+(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(n=it.products)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.price):null!==Q&&void 0!==Q?Q:null===z||void 0===z?void 0:z.price,"",w,Z)}),(0,f.jsx)(s.o,{children:(0,K.P)(z.price,z.compare_price)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.8*jt+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)("28849832033"===w?parseFloat(null===it||void 0===it||null===(r=it.products)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.compare_price):null!==$&&void 0!==$?$:null===z||void 0===z?void 0:z.compare_price,"",w,Z)]}):(0,f.jsx)(f.Fragment,{})})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(s.o,{children:(0,f.jsx)(xt.A,{storeId:w,productId:z.client_product_id,productLink:z.product_link,fontSize:1*jt,fontColor:"white"})})]})]})})]}),"awaitingVariantSelection"==F.state&&null!=B?(0,f.jsx)(c.az,{width:"100%",height:"fit-content",marginTop:.1*vt+"px",marginBottom:.1*vt+"px",overflowY:"auto",overflowX:"hidden",maxHeight:vt*yt+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(ct,{width:gt,height:"fit-content",event:it,product:z,productVariantOptions:B,baseFontSize:1*jt,onOptionSelected:t=>{!function(t){N(t);const e=R(t);e&&(Y(e.price/100),G(e.compare_price/100))}(t)},optionTitleColor:"white"})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,f.jsx)(c.az,{width:"100%",height:"100%",children:(0,f.jsx)(mt,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%"})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.ZzM)(w)?(0,f.jsx)(Ct,{baseFontSize:.8*jt,event:it,product:z,borderRadius:"md",onShopNowClick:t=>{St(it,z)}}):(0,f.jsx)(f.Fragment,{children:"form"===(0,p.nWM)(w)?(0,f.jsx)(ft.default,{baseFontSize:.8*jt,event:it,product:z,width:"100%",height:"100%",showAddedToCart:!0}):(0,f.jsx)(rt,{baseFontSize:.8*jt,event:it,product:z,cartState:F.state,cartCount:nt,borderRadius:"md",onClickAtc:t=>{"init"==F.state?(O(st),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:T,event:it,productList:[z],ctaList:it.cta})):"awaitingVariantSelection"==F.state&&D(A,st)},onCartIconClick:()=>{W()}})})})]})]})})})};var jt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o]=(0,v.QN)("whatmoreSecondaryColor"),r=(0,v.Xd)("whatmoreSecondaryColorShade900"),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s,h,m,w]=(0,x.A)(),[j,y]=(0,i.useState)(!1),[S,k]=(0,i.useState)(t.product),I=(0,v.Xd)("whatmoreUITheme"),[_,z]=(0,i.useState)(!1),[E,T]=(0,i.useState)(parseFloat(S.price)),[A,N]=(0,i.useState)(parseFloat(S.compare_price)),[P,L]=(0,i.useState)(S.currency),[B,O]=(0,i.useState)(!0),D=t.event,[R,W]=(0,i.useState)();if((0,i.useEffect)(()=>{if("6573064236"===d&&null!==S&&void 0!==S&&S.product_link){const t=parseFloat(S.price);return N(t),S.product_link.includes("flo-ergo-memory-foam-mattress")?T(.6*t):S.product_link.includes("flo-latex-mattress")?T(.58*t):S.product_link.includes("flo-orthopedic-mattress")?T(.56*t):T(t),void z(!0)}(0,p.w4b)(d)?(0,ut.ck)(S,(0,p.NCy)(d),d).then(t=>{k(t),T(parseFloat(t.price)),N(parseFloat(t.compare_price)),L(t.currency),z(!0)}).catch(t=>z(!0)):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(S,(0,p.NCy)(d),d);W(l),T((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),N((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),z(!0)}catch(l){z(!0)}})()},[]),!_)return(0,f.jsx)(f.Fragment,{});var Y=.68*w,G=.4*Y,Z=Y+"px",J=G+"px",tt=Y*(.55-.4)+"px",et=.12*G;(0,p.XQu)(d);const{whatmoreWidgetSourceDetails:nt}=(0,i.useContext)(U.B);function it(t){return(0,p.BLb)(d)?t.product_link+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d):t.product_link}function ot(t,i){e||n||(async()=>{(0,l.Pb)(t,i),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_SHOPNOW_CLICKED,widgetSourceDetails:nt,event:t,productList:[i],ctaList:t.cta})})(),y(!0)}return B?(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:(0,p.qw1)(d),width:Z,height:"fit-content",boxShadow:"round"==I?"dark-lg":null,onClick:()=>{ot(D,S),window.location.href=it(S)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(d)),animation:j?V.jd:V.so,borderRadius:"round"==I?"xl":null,overflow:"hidden",spacing:0,sx:{borderWidth:(0,p.YcK)(d),borderColor:(0,p.Fwt)(d)},children:[(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,f.jsx)(c.az,{height:J,width:J,children:(0,f.jsx)(b._,{width:J,height:J,src:(0,st.b)(S.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(d)+" !important"}})}),(0,f.jsxs)(c.az,{height:J,width:Y-G+"px",children:[(0,f.jsxs)(u.B,{direction:"column",justifyContent:(0,p.UlM)(d)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingTop:"10px",paddingBottom:"16px",children:[(0,f.jsx)(C.E,{as:"p",ref:t=>{t&&(t.style.setProperty("min-height","0","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("-webkit-box-orient","vertical","important"))},sx:{paddingLeft:"8px",fontFamily:a+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*et+"px !important"},children:(0,q.v)(null==S.title?"":S.title.toString(),"prod-tile")}),(0,p.Nzx)(d)?(0,f.jsxs)(u.B,{className:"whatmore-product-shopnow-price",direction:(0,p.vw2)(d)?"row":"row-reverse",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==I?"lg":null,backgroundColor:"white",paddingX:"8px",paddingY:"5px",children:[_&&(0,f.jsxs)(C.E,{as:"p",ref:t=>{t&&t.style.setProperty("min-height","0","important")},noOfLines:1,fontSize:.9*et+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.uoB)(d)+" !important",margin:"0px !important"},children:[" "+(0,ut.Sb)(null!==E&&void 0!==E?E:null===S||void 0===S?void 0:S.price,"",d,P)," \xa0"]}),(0,K.P)(E,A)&&_?(0,f.jsxs)(C.E,{as:"s",style:{minHeight:0,textDecoration:"line-through"},noOfLines:1,fontSize:.9*et+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:a+" !important",color:(0,p.gld)(d)+" !important",margin:"0px !important"},children:[" ",(0,ut.Sb)(null!==A&&void 0!==A?A:null===S||void 0===S?void 0:S.compare_price,"",d,P)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),""!=(0,p.rsz)(d)&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*et+"px",lineHeight:"100%",paddingTop:"6px",sx:{fontFamily:(0,p.ogW)(d)+" !important",color:(0,p._zx)(d)+" !important",margin:"0px !important"},children:["\xa0",(0,p.rsz)(d)," \xa0"]})]}),(0,p.UlM)(d)?(0,f.jsx)(u.B,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,f.jsx)(u.B,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:r,sx:{borderRadius:"round"==I?"5px":"0px",padding:"2px"},spacing:"0px",children:"STRI2XC0BMX"==d||"STRNUBH0VYQ"==d||"STRAPB3KXSR"==d?(0,f.jsx)(F.A,{sx:{boxShadow:3,fontSize:1.3*et,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),O(!1)}}):(0,f.jsx)($.A,{sx:{color:o,fontSize:1.3*et+"px"}})}),(0,f.jsx)(c.az,{width:"2px"})]})}):(0,f.jsx)(f.Fragment,{})]})]}),(0,p.Woi)(d)&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:tt,justifyContent:"center",alignItems:"center",children:(0,f.jsx)(Ct,{baseFontSize:.8*et,event:D,product:S,borderRadius:"md",onShopNowClick:t=>{ot(D,S),window.location.href=it(S)}})})]}):(0,f.jsx)(f.Fragment,{})};function yt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),[l,a]=(0,i.useState)(!1),d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=t.onClick,h=t.width,x=t.height,g=t.title,m=t.showInProgressIcon;return"awaitingVariantSelection"==t.cartState||"productVariantDetailsApiCallInProgress"==t.cartState?(0,f.jsx)(St,{onClick:()=>t.onClick(),event:t.event,product:t.product,baseFontSize:d,width:h,height:x}):(0,f.jsxs)(c.az,{display:"flex",width:"fit-content",minWidth:"75%",padding:"2x",boxShadow:"lg",animation:l?V.jd:null,onAnimationEnd:()=>{a(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",alignItems:"center",justifyContent:"center",paddingY:"2px",backgroundColor:"white",onClick:e=>{e.stopPropagation(),t.updateCartState("init"),a(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:"#343434 !important"},children:["\xa0","63064310011"==r?"Annuler":"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:m?(0,Q.YU)(n,8):n,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",onClick:t=>{t.stopPropagation(),s(),a(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*d+"px !important",fontWeight:"semibold !important",sx:{fontFamily:o+" !important",color:(0,p.Hfu)(r)+" !important"},children:["\xa0",g,"\xa0"]}),m?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*d+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function St(t){const[e]=(0,v.QN)("whatmoreSecondaryColor"),[n]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),[r,l]=(0,i.useState)(!1),a=t.onClick,d=t.baseFontSize;return(0,f.jsx)(u.B,{direction:"row",paddingBottom:"3%",position:"relative",children:(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",boxShadow:"lg",padding:"6px 12px",borderRadius:"6px",backgroundColor:e,onClick:t=>{t.stopPropagation(),a(),l(!0)},animation:r?V.jd:null,onAnimationEnd:()=>{l(!1)},cursor:"pointer",zIndex:"1000",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,f.jsx)(s.o,{children:(0,f.jsx)(C.E,{lineHeight:"100%",fontSize:1.3*d+"px",fontWeight:"semibold",sx:{fontFamily:`${n} !important`,color:`${(0,p.Hfu)(o)} !important`},children:(0,p.KPq)(o)})})})})})}function kt(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10;t.width,t.height;return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content !important",minWidth:"75%",boxShadow:"lg",backgroundColor:"white",borderRadius:"6px",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",alignItems:"center",paddingX:"4px",paddingY:"3px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.2*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function It(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),l=t.onClick,a=t.cartCount,d=(t.width,t.height,t.onCartIconClick);return(0,f.jsx)(c.az,{width:"fit-content",minWidth:"75%",borderRadius:"6px",padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{d()},children:"1972174947"!=o&&"55194878152"!=o&&"12181504100"!=o?(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}}):(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var _t=function(t){var e,n,i,o;const[r]=(0,v.QN)("whatmoreShopId"),l=t.event,a=t.product,d=null!==(e=t.baseFontSize)&&void 0!==e?e:10,s=null===(n=t.showAddedToCart)||void 0===n||n,c=t.cartState,u=t.cartCount,h=t.onClickAtc,p=t.onCartIconClick;function x(){h()}const g=null!==(i=t.width)&&void 0!==i?i:"100%",m=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==c?(0,f.jsx)(kt,{event:l,product:a,baseFontSize:d,width:g,height:m}):"init"==c?0==u?(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):s?(0,f.jsx)(It,{onClick:x,event:l,product:a,baseFontSize:d,cartCount:u,width:g,height:m,onCartIconClick:p}):(0,f.jsx)(St,{onClick:x,event:l,product:a,baseFontSize:d,width:g,height:m}):(0,f.jsx)(yt,{onClick:x,cartState:c,updateCartState:t.updateCartState,event:l,product:a,baseFontSize:d,width:g,height:m,title:"awaitingVariantSelection"==c?"63064310011"==r?"Valider":"Done":"",showInProgressIcon:"atcApiCallInProgress"==c||"productVariantDetailsApiCallInProgress"==c})};var zt=function(t){var e,n,o,r,a,d;const[s]=(0,v.QN)("isInDesignMode"),[h]=(0,v.QN)("isDemoBrand"),[m]=(0,v.QN)("whatmorePrimaryFont"),[w]=(0,v.QN)("whatmoreShopId"),[j,y,S,k]=(0,x.A)(),[I,_]=(0,i.useState)(!1),[z,E]=(0,i.useState)(t.product),T=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(U.B),[N,F]=(0,i.useState)(null),[P,L]=(0,i.useState)(parseFloat(z.price)),[B,O]=(0,i.useState)(parseFloat(z.compare_price)),[D,R]=(0,i.useState)(z.currency),[W,Y]=(0,i.useState)(null),$=t.event,G=t.productClickHandler,[Z,J]=(0,i.useState)(null),[tt,et]=(0,i.useState)(!1),[nt,it,ot,rt,lt,at,dt,ct]=t.useAddToCartStatesInstance,pt=t.productCartCounts&&t.productCartCounts[z.product_id]?t.productCartCounts[z.product_id]:nt.cart_count,vt=A.landingLocationType,xt=A.templateType,gt=(0,ht.Wd)(vt)+(0,ht.gf)(xt)+"_"+(null===$||void 0===$?void 0:$.event_id);(0,i.useEffect)(()=>{(0,p.w4b)(w)?(0,ut.ck)(z,(0,p.NCy)(w),w).then(t=>{E(t),L(parseFloat(t.price)),O(parseFloat(t.compare_price)),R(t.currency),et(!0)}):(async()=>{var t,e,n,i,o,r;const l=await(0,g.M)(z,(0,p.NCy)(w),w);Y(l),L((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),O((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),et(!0)})(),!(0,p.E8r)(w)||null!==$&&void 0!==$&&$.in_stock||ot("errored")},[]),(0,i.useEffect)(()=>{var t,e;const n=null!=W?null===W||void 0===W||null===(t=W.options)||void 0===t?void 0:t.findIndex(t=>{var e;return"Colour"==(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t||null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes("color"))}):-1,i=-1!==n?null===W||void 0===W||null===(e=W.variants)||void 0===e?void 0:e.map(t=>{var e,i;const o=null===t||void 0===t?void 0:t[`option${n+1}`];return null!==t&&void 0!==t&&null!==(e=t.featured_image)&&void 0!==e&&e.src?{color:o,src:null===t||void 0===t||null===(i=t.featured_image)||void 0===i?void 0:i.src}:null}):[];let o=[];var r;-1!==n&&(o=null===W||void 0===W||null===(r=W.images)||void 0===r?void 0:r.map(t=>({color:t.color,src:t.src,optionsrc:t.optionsrc})));J({position:n,finalArr:i,finalArrExternal:o})},[W]);var mt=.72*k,ft=.37*mt,wt=mt*(.48-.37),Ct=.95*mt+"px",bt=ft+"px",jt=.12*ft;function yt(){window.location.href=function(t){return(0,p.BLb)(w)?t.product_link+"?"+(0,p.VCz)(w)+"&"+(0,p.Spk)(w)+"&"+(0,p.$lz)(w):t.product_link}(z)}return(0,f.jsx)(u.B,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:M,marginBottom:"24px",width:Ct,boxShadow:"round"==T?"dark-lg":null,onClick:()=>{!function(t,e){s||h||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==w?yt():G(e),_(!0)}($,z)},backgroundColor:(0,Q.YU)("#ffffff",(0,p.p2R)(w)),animation:I?V.jd:null,borderRadius:"round"==T?"xl":null,overflow:"hidden",onAnimationEnd:()=>{_(!1)},spacing:0,sx:{borderWidth:(0,p.YcK)(w),borderColor:(0,p.Fwt)(w)},children:(0,f.jsxs)(u.B,{display:"flex",direction:"row",width:"full",height:"fit-content",justifyContent:"center",alignContent:"center",cursor:"pointer",alignItems:"center",gap:"8px",children:[(0,f.jsx)(c.az,{height:bt,width:bt,children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:(0,st.b)(null!==(e=null!==(n=null===Z||void 0===Z||null===(o=Z.finalArr)||void 0===o||null===(r=o.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===r?void 0:r.src)&&void 0!==n?n:null===Z||void 0===Z||null===(a=Z.finalArrExternal)||void 0===a||null===(d=a.find(t=>(null===t||void 0===t?void 0:t.color)==(null===N||void 0===N?void 0:N[null===Z||void 0===Z?void 0:Z.position])))||void 0===d?void 0:d.src)&&void 0!==e?e:z.thumbnail_image,"&width=400&height=400"),sx:{objectFit:(0,p.KZe)(w)+" !important"}})}),(0,f.jsx)(c.az,{height:bt,width:mt-ft+"px",children:(0,f.jsxs)(u.B,{direction:"column",justifyContent:"flex-start",height:"100%",gap:"4px",paddingTop:"12px",width:"100%",children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",jt+"px","important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",m,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("font-weight","normal","important"))},children:(0,q.v)(null==z.title?"":z.title.toString())}),(0,p.Nzx)(w)?(0,f.jsxs)(u.B,{direction:(0,p.vw2)(w)?"row":"row-reverse",sx:{margin:"0px !important",minHeight:1.1*jt+"px"},children:[tt&&(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",lineHeight:"100%",sx:{fontFamily:m+" !important",color:(0,p.uoB)(w)+" !important",fontWeight:"bold"},children:[" "+(0,ut.Sb)(null!==P&&void 0!==P?P:null===z||void 0===z?void 0:z.price,"",w,D)," \xa0"]}),(0,K.P)(P,B)&&tt?(0,f.jsxs)(C.E,{noOfLines:1,fontSize:.9*jt*(0,p.rh$)(w)+"px !important",fontWeight:"medium !important",lineHeight:"100%",textAlign:"center",sx:{fontFamily:m+" !important",color:(0,p.gld)(w)+" !important",margin:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,ut.Sb)(null!==B&&void 0!==B?B:null===z||void 0===z?void 0:z.compare_price,"",w,D)]}):(0,f.jsx)(f.Fragment,{})]}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(_t,{baseFontSize:.3*wt,event:$,product:z,cartState:nt.state,cartCount:pt,updateCartState:ot,onClickAtc:t=>{"init"===nt.state?(lt(gt,!0),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:A,event:$,productList:[z],ctaList:$.cta})):"awaitingVariantSelection"===nt.state&&G(z)},onCartIconClick:t=>{ct()}})]})})]})})};function Et(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(!1),h=null!==(e=t.baseFontSize)&&void 0!==e?e:10,x=t.onClick,g=t.width,m=t.height,w=t.title,b=t.showInProgressIcon,j="12px";return(0,f.jsxs)(c.az,{display:"flex",width:g,height:m,padding:"2px",boxShadow:"lg",borderRadius:j,animation:d?V.jd:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:["awaitingVariantSelection"==t.cartState&&(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",backgroundColor:"white",borderRadius:j,onClick:e=>{e.stopPropagation(),t.updateCartState("init"),t.setProductVariantTitle(t.productTitle),s(!0)},children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:"#343434 !important"},children:["\xa0",null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.cancel)&&void 0!==n?n:"Cancel","\xa0"]})}),(0,f.jsxs)(u.B,{direction:"row",backgroundColor:b?(0,Q.YU)(r,8):r,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"8px",paddingX:"12px",borderRadius:j,onClick:t=>{t.stopPropagation(),x(),s(!0)},children:[(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.4*h+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important"},children:["\xa0",w,"\xa0"]}),b?(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(J.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*h+"px"}})}):(0,f.jsx)(f.Fragment,{})]})]})}function Tt(t){var e,n,o;const[r]=(0,v.QN)("whatmoreSecondaryColor"),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,h]=(0,i.useState)(!1),x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=t.onClick,m=t.width,w=t.height;return(0,f.jsx)(c.az,{width:m,height:w,padding:"2x",boxShadow:"lg",backgroundColor:"#000000"==(0,p.Wc_)(a)?r:(0,p.Wc_)(a),borderRadius:"7px",onClick:t=>{t.stopPropagation(),g(),h(!0)},animation:d?V.jd:null,onAnimationEnd:()=>{h(!1)},cursor:"pointer",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"10px",children:(0,f.jsx)(s.o,{maxWidth:"90%",children:(0,f.jsxs)(C.E,{lineHeight:"100%",fontSize:1.2*x+"px !important",fontWeight:"semibold !important",sx:{fontFamily:l+" !important",color:(0,p.Hfu)(a)+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["\xa0","ADD TO CART"!=(0,p.KPq)(a)?(0,p.KPq)(a):null!==(n=null===O.m||void 0===O.m||null===(o=O.m[null===t||void 0===t?void 0:t.websiteLanguage])||void 0===o?void 0:o.add_to_cart)&&void 0!==n?n:(0,p.KPq)(a),"\xa0"]})})})})}function At(t){var e;const[n]=(0,v.QN)("whatmorePrimaryFont"),i=null!==(e=t.baseFontSize)&&void 0!==e?e:10,o=t.width,r=t.height;return(0,f.jsx)(c.az,{width:o,height:r,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,f.jsxs)(C.E,{color:"gray",lineHeight:"100%",fontSize:1.3*i+"px !important",fontWeight:"semibold !important",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function Nt(t){var e;const[n]=(0,v.QN)("whatmoreSecondaryColor"),[i]=(0,v.QN)("whatmorePrimaryFont"),[o]=(0,v.QN)("whatmoreShopId"),r=null!==(e=t.baseFontSize)&&void 0!==e?e:10,l=t.onClick,a=t.cartCount,d=t.width,h=t.height,x=t.onCartIconClick;return(0,f.jsx)(c.az,{width:d,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,f.jsxs)(u.B,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,f.jsx)(s.o,{paddingX:"5px",onClick:()=>{x()},children:(0,p.DiI)(o)?(0,f.jsx)(tt.$,{size:"sm",_hover:{bg:n},sx:{bg:n},children:(0,f.jsx)(C.E,{paddingX:"6px",color:"white",sx:{fontSize:.85*r},children:"GO TO CART"})}):(0,f.jsx)(Z.A,{sx:{color:n,fontSize:1.6*r}})}),(0,f.jsx)(C.E,{color:n,fontSize:1.3*r+"px !important",fontWeight:"semibold !important",sx:{fontFamily:i+" !important"},children:a}),(0,f.jsx)(s.o,{paddingX:"5px",onClick:t=>{t.stopPropagation(),l()},children:(0,f.jsx)(G.A,{sx:{color:n,fontSize:1.6*r}})})]})})}var Ft=function(t){var e,n,i,o,r,l,a;const[d]=(0,v.QN)("websiteLanguage"),s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,h=t.cartCount,p=t.onClickAtc,x=t.onCartIconClick;function g(){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,f.jsx)(At,{baseFontSize:s,width:m,height:w}):"init"==u?0==h?(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):c?(0,f.jsx)(Nt,{onClick:g,baseFontSize:s,cartCount:h,width:m,height:w,onCartIconClick:x}):(0,f.jsx)(Tt,{onClick:g,baseFontSize:s,width:m,height:w,websiteLanguage:d}):(0,f.jsx)(Et,{onClick:g,setProductVariantTitle:t.setProductVariantTitle,cartState:u,productTitle:null===(r=t.product)||void 0===r?void 0:r.title,updateCartState:t.updateCartState,baseFontSize:s,width:m,height:w,title:"awaitingVariantSelection"==u?null!==(l=null===O.m||void 0===O.m||null===(a=O.m[d])||void 0===a?void 0:a.done)&&void 0!==l?l:"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u,websiteLanguage:d})};var Pt=function(t){var e;const[n]=(0,v.QN)("isInDesignMode"),[o]=(0,v.QN)("isDemoBrand"),[r]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s,c,u]=(0,x.A)(),[h,m]=(0,i.useState)(t.product),{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(U.B),[C,b]=(0,i.useState)(null),[j,y]=(0,i.useState)(parseFloat(h.price)),[S,k]=(0,i.useState)(parseFloat(h.compare_price)),[I,_]=(0,i.useState)(null===h||void 0===h?void 0:h.title),[z,E]=(0,i.useState)(h.currency),[T,A]=(0,i.useState)(!1),[N,F]=(0,i.useState)(!1),[P]=(0,v.QN)("whatmoreSecondaryColor"),[L,B,O,D,R,W,V,Q]=t.useAddToCartStatesInstance,M=t.productCartCounts&&t.productCartCounts[h.product_id]?t.productCartCounts[h.product_id]:L.cart_count,Y=t.event,$=t.productClickHandler;if((0,i.useEffect)(()=>{(0,p.w4b)(a)?(0,ut.ck)(h,(0,p.NCy)(a),a).then(t=>{m(t),y(parseFloat(t.price)),k(parseFloat(t.compare_price)),E(t.currency),A(!0)}).catch(t=>{A(!0)}):(async()=>{try{var t,e,n,i,o,r;const l=await(0,g.M)(h,(0,p.NCy)(a),a);y((null!==(t=null===l||void 0===l||null===(e=l.variants)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)&&void 0!==t?t:null===l||void 0===l?void 0:l.price)/100),k((null!==(i=null===l||void 0===l||null===(o=l.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_at_price)&&void 0!==i?i:null===l||void 0===l?void 0:l.compare_at_price)/100),A(!0)}catch(l){A(!0)}})()},[]),!T)return(0,f.jsx)(f.Fragment,{});const G=.765*u,Z=(null===Y||void 0===Y||null===(e=Y.products)||void 0===e?void 0:e.length)>1?.85*G:G,J=.198*Z,tt=.0315*u,et=1.05*tt,nt=Number((0,p.rh$)(a)),it=.85*tt*(isNaN(nt)||0===nt?1:nt),ot=.75*tt,rt=(0,p.XQu)(a),lt=(()=>{if((0,K.P)(j,S)){const t=(S-j)/S*100;return Math.round(t)}return null})(),at=P,dt=(pt=at,vt=.15,`rgba(${parseInt(pt.slice(1,3),16)}, ${parseInt(pt.slice(3,5),16)}, ${parseInt(pt.slice(5,7),16)}, ${vt})`);var pt,vt;function xt(){window.location.href=function(t){return(0,p.BLb)(a)?t.product_link+"?"+(0,p.VCz)(a)+"&"+(0,p.Spk)(a)+"&"+(0,p.$lz)(a):t.product_link}(h)}function gt(t,e){n||o||(async()=>{(0,l.Pb)(t,e)})(),"72550089015"==a?xt():$(e)}const mt=w.landingLocationType,ft=w.templateType,wt=(0,ht.Wd)(mt)+(0,ht.gf)(ft)+(null!==Y&&void 0!==Y&&Y.isRelatedEvent?"R":"E")+"_"+(null===Y||void 0===Y?void 0:Y.event_id);return(0,f.jsx)("div",{style:{width:Z+"px",marginTop:"7.2px",marginBottom:"7.2px",marginLeft:"4px",marginRight:"4px",cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(12px)",border:"none",borderRadius:"14.4px",overflow:"hidden",transition:"all 0.2s ease-out",transform:N?"scale(1.009)":"scale(1)",boxShadow:N?"0 10.8px 31.5px rgba(0, 0, 0, 0.2)":"0 3.6px 13.5px rgba(0, 0, 0, 0.1)",padding:"12px 18px 18px 18px",position:"relative",zIndex:10},onClick:()=>{if("22907887"===a)return console.log("product.product_link : ",h.product_link),void(window.location.href=h.product_link);gt(Y,h)},onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",gap:"14.4px"},children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14.4px",width:"100%"},children:[(0,f.jsx)("div",{style:{width:J+"px",height:J+"px",flexShrink:0,overflow:"hidden",backgroundColor:"#f8f8f8",borderRadius:"10.8px",border:"1px solid #f0f0f0"},children:(0,f.jsx)("img",{src:(0,st.b)(h.thumbnail_image),alt:h.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"10.8px"}})}),(0,f.jsxs)("div",{style:{flex:1},children:[(0,f.jsx)("h3",{ref:t=>{t&&t.style.setProperty("font-family",r,"important")},style:{fontSize:1*et+"px",fontWeight:"500",lineHeight:"1.3",color:"#1a1a1a",margin:0,marginBottom:"7.2px",letterSpacing:"0.3px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:(0,q.v)(I,"prod-tile")}),(0,p.Nzx)(a)&&(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"},children:[T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.uoB)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:1.2*it+"px",fontWeight:"700",letterSpacing:"0.3px"},children:(0,ut.Sb)(null!==j&&void 0!==j?j:null===h||void 0===h?void 0:h.price,"",a,z)}),(0,K.P)(j,S)&&T&&(0,f.jsx)("span",{ref:t=>{t&&(t.style.setProperty("color",(0,p.gld)(a),"important"),t.style.setProperty("font-family",r,"important"))},style:{fontSize:it+"px",fontWeight:"400",textDecoration:"line-through",letterSpacing:"0.2px"},children:(0,ut.Sb)(null!==S&&void 0!==S?S:null===h||void 0===h?void 0:h.compare_price,"",a,z)}),lt&&(0,p.mOK)(a)&&(0,f.jsxs)("span",{ref:t=>{t&&(t.style.setProperty("font-family",r,"important"),t.style.setProperty("color",at,"important"),t.style.setProperty("background-color",dt,"important"))},style:{fontSize:.9*it+"px",fontWeight:"600",padding:"2px 6px",borderRadius:"4px",letterSpacing:"0.2px"},children:[lt,"% OFF"]})]})]})]}),"awaitingVariantSelection"==L.state&&null!=D&&(0,f.jsx)("div",{style:{width:"100%",maxHeight:.3*Z*rt+"px",overflowY:"auto",overflowX:"hidden",marginTop:"10px",marginBottom:"10px",padding:"8px",backgroundColor:"rgba(248, 248, 248, 0.8)",borderRadius:"8px",border:"1px solid #e0e0e0"},children:(0,f.jsx)(ct,{width:"100%",height:"fit-content",event:Y,product:h,productVariantOptions:D,baseFontSize:.9*tt,onOptionSelected:t=>{!function(t){b(t);const e=V(t);e&&(y(e.price/100),k(e.compare_price/100),e.title.includes(" ")&&_(e.title))}(t)},optionTitleColor:"#1a1a1a"})}),(0,f.jsx)("div",{style:{width:"100%"},children:(0,f.jsx)(Ft,{baseFontSize:1.1*ot,setProductVariantTitle:_,product:h,cartState:L.state,cartCount:M,updateCartState:O,isPremium:!0,onClickAtc:t=>{t&&t.stopPropagation&&t.stopPropagation(),"22907887"!==a?"init"==L.state?(R(wt),(0,H.kz)({userInteractionType:X.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:w,event:Y,productList:[h],ctaList:Y.cta})):"awaitingVariantSelection"==L.state&&(W(C,wt),_(null===h||void 0===h?void 0:h.title)):gt(Y,h)},onCartIconClick:()=>{Q()}})})]})})};var Lt=function(t){const[e]=(0,v.QN)("whatmoreShopId"),[n]=(0,v.QN)("isWhatmoreWebsite"),o=(0,p.Vpi)(e),r=t.event,l=t.product,a=t.productCartCounts,d=t.onCartCountChange,[s,...c]=(0,lt.A)(0,l,t.event),u=[s,...c];return(0,i.useEffect)(()=>{let t=s.cart_count;a>s.cart_count&&(t=a+1),d&&d(l.product_id,t)},[s.cart_count]),n?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"premium-tile"==o?(0,f.jsx)(Pt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile"==o?(0,f.jsx)(vt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,activeProductsCount:t.activeProductsCount,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"broad-tile-no-cta"==o?(0,f.jsx)(jt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-new-atc"==o?(0,f.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):"link_only"==o?(0,f.jsx)(Y,{product:t.product,event:t.event}):"narrow-tile"==o?(0,f.jsx)(bt,{event:r,product:l,productClickHandler:t.productClickHandler,tileWidthFactor:r.products.length>1?.68:void 0,productCartCounts:a,onCartCountChange:d,useAddToCartStatesInstance:u}):(0,f.jsx)(f.Fragment,{})},Bt=n(1079),Ot=n(7802),Dt=n(2979);var Rt=function(t){var e,n,i;const[l,a,d,h]=(0,x.A)(),[g]=(0,v.QN)("whatmoreShopId"),m=(0,v.Xd)("isInDesignMode"),w=(0,v.Xd)("isDemoBrand"),C=t.event,b=t.productClickHandler,j=t.productCartCounts,y=t.onCartCountChange,S=(0,p.Vpi)(g),k=null!==(e=null===(n=C.products)||void 0===n||null===(i=n.filter(t=>"active"==(null===t||void 0===t?void 0:t.product_status)))||void 0===i?void 0:i.length)&&void 0!==e?e:0;if(!(0,Ot.Z_)(C))return(0,f.jsx)(f.Fragment,{});if(1==C.products.length&&(void 0==C.cta||0==C.cta.length)){const t=C.products[0];return(0,p.uJl)(g)?(0,f.jsx)(u.B,{direction:"horizontal",width:h,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,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(s.o,{children:(0,f.jsx)(bt,{event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})}):(0,f.jsx)(u.B,{direction:"horizontal",width:h,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==S?"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,f.jsx)(s.o,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(Lt,{activeProductsCount:1,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})})}return(0,f.jsx)(s.o,{children:(0,f.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,f.jsx)(c.az,{width:h+"px",backgroundImage:"narrow-tile"==S?"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,f.jsxs)(o.RC,{className:"product-tile swiper-slide",slidesPerView:1==C.products.length?1:1.4,initialSlide:0,centeredSlides:!(0,p.TYM)(g),modules:[r.FJ],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[("STRDOIDF6O7"===g?[C.products[0]]:C.products).map(t=>("oos"!=t.product_status||(0,p.$7F)(g))&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(Dt.S,{userInteractionType:X.O.PRODUCT_CTA_VIEW,event:C,productList:[t],triggerFlag:!m&&!w,children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,f.jsx)(Lt,{activeProductsCount:k,event:C,product:t,productClickHandler:b,productCartCounts:j,onCartCountChange:y},C.event_id+t.product_id)})})},C.event_id+t.product_id)),(0,p.Woi)(g)&&void 0!=C.cta&&C.cta.map(t=>{var e;return(0,f.jsx)(f.Fragment,{children:""!==(null!==(e=t.cta_title)&&void 0!==e?e:"").trim()&&(0,f.jsx)(o.qr,{children:(0,f.jsx)(u.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",paddingBottom:"12px",alignItems:"center",children:(0,f.jsx)(Bt.A,{fontFactor:.75,cta:t},C.event_id+t.cta_id)})},C.event_id+t.cta_id)})})]})})})})};var Wt=function(t){const[e,n]=(0,v.QN)("isProductSwiperCatalogOpen"),o=t.event,r=t.productClickHandler,l=t.productCartCounts,a=t.onCartCountChange;return(0,i.useContext)(Pn).isIOS,(0,f.jsx)(Rt,{event:o,productClickHandler:r,productCartCounts:l,onCartCountChange:a},o.event_id)},Vt=n(6670);function Qt(t){const e=t.event,[n,i,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont");return(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(s.o,{children:(0,f.jsx)(c.jl,{overflow:"hidden",size:.15*r+"px",children:(0,f.jsx)(b._,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,f.jsx)(c.az,{width:"fit-content",height:"fit-content",children:(0,f.jsxs)(u.B,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,f.jsx)(C.E,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:l+" !important"},children:e.presenter_name.substring(0,15)}),(0,f.jsx)(N.A,{event:e,fontSize:.03*r+"px"})]})})]})})}var Mt=function(t){const[e]=(0,v.QN)("isInDesignMode"),[n]=(0,v.QN)("isDemoBrand"),[o,r]=(0,v.QN)("isProductSwiperCatalogOpen"),[l,a]=(0,Vt.A)(),[d,s]=(0,v.QN)("isFirstIndicatorRenderDone"),h=(0,i.useContext)(Pn),[x]=(0,v.QN)("whatmoreShopId"),g=t.event,m=t.isLast,w=t.onCloseCallback,C=t.focusRef,b=t.productClickHandler;return(0,f.jsx)(c.az,{width:"full",height:"full",borderRadius:"md",children:(0,f.jsxs)(u.B,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,f.jsx)(c.az,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,f.jsxs)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,f.jsx)(Qt,{event:g}),(0,f.jsxs)(u.B,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,f.jsx)(j.A,{focusRef:C}),(0,f.jsx)(P,{event:g,onCloseCallback:w})]})]})}),(0,f.jsx)(c.az,{width:"100%",height:"100%",onClick:()=>{a(!l)}}),(0,f.jsxs)(c.az,{width:"full",height:"fit-content",children:[h.totalEvents>1&&!d&&h.showSwipeIndicator?(0,f.jsx)(c.az,{width:"full",margin:"2px",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,f.jsx)(R,{swipeUp:!m})})}):null,void 0!=g.products&&g.products.length>0?(0,f.jsxs)(c.az,{width:"full",children:[(0,p.ek9)(x)?(0,f.jsx)(c.az,{w:"100%",children:(0,f.jsx)(u.B,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,f.jsx)(A,{event:g,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)(c.az,{display:"flex",width:"100%",height:"fit-content",children:(0,f.jsx)(Wt,{event:g,productClickHandler:b})})]}):(0,f.jsx)("div",{})]})]})})};function Ht(t){const[e,n,o,r]=(0,x.A)(),[l]=(0,v.QN)("whatmorePrimaryFont"),[a]=(0,v.QN)("whatmoreShopId"),[d,s]=(0,i.useState)(""),h=t.data,g=(t.event,t.product,t.setShowOptionsChart);var m=.4*r*.8*.13;(0,i.useEffect)(()=>{let t="vanyaclothing.myshopify.com";"1972174947"===a?t="vanyaclothing.myshopify.com":"57415434338"===a&&(t="usvanya.myshopify.com");const e=`https://app.kiwisizing.com/api/getSizingChart?shop=${t}&product=${null===h||void 0===h?void 0:h.id}&title=${null===h||void 0===h?void 0:h.title}&tags=&cacheSettingsUpdateAt=2020-08-11T15%3A19%3A49.000Z&settingsVersion=19`;fetch(e).then(t=>{if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return t.json()}).then(t=>{var e,n,i,o,r,l;s(null===t||void 0===t||null===(e=t.sizings)||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.layout)||void 0===i||null===(o=i.data)||void 0===o||null===(r=o[0])||void 0===r||null===(l=r.data)||void 0===l?void 0:l.url)}).catch(t=>{console.error("Error fetching data:",t)})},[]);const w=`${k.i7`
|
|
80
80
|
0% {
|
|
81
81
|
transform: translateY(100%);
|
|
82
82
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see carousel-template-ai.67222398.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[151],{22:function(e,t,r){"use strict";r.d(t,{$S:function(){return s},_:function(){return o},b4:function(){return n},dl:function(){return i},nN:function(){return c},tn:function(){return l},vF:function(){return a}});const o="device_type",i="device_mode",n="mobile",a="tablet",s="desktop",l="portrait",c="landscape"},932:function(e,t,r){"use strict";var o=r(5830),i=r(1941),n=r(22),a=r(1348);t.A=function(e){const[t,r,s]=(0,i.A)(),[l]=(0,o.QN)("whatmoreLandscapePadding"),[c]=(0,o.QN)("whatmoreShopId"),[u]=(0,o.QN)("whatmoreVideoTileSize"),[d]=(0,o.QN)("whatmoreVideoTileSizePortrait"),p=s>r,m="portrait"==t?d:u,h=!("portrait"!=t||!(s>=481)),v=m/100*1.3*.5,f=m/100;var w=Math.min(s,r),[S,g,y,C]=[.6*w*(16/9),.6*w,1.4,0];function x(e){return Math.round(10*e)/10}var N={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(p){const e=g*v,t=S*v;[S,g,y,C]=[t,e,(s-2*l-2*(0,a.$du)(c))/(1.1*e),l],N[n._]=n.$S,N[n.dl]=n.nN}else if(h){var D=.8*g,M=.8*S;"portrait"==t?(D*=f,M*=f,[S,g,y,C]=[M,D,x(s/(1.2*D)),0],N[n._]=n.vF,N[n.dl]=n.tn):([S,g,y,C]=[M,D,(s-2*l)/(1.1*D),l],N[n._]=n.vF,N[n.dl]=n.nN)}else{D=g,M=S;"portrait"==t?(D=D*f*.9,M=M*f*.9,[S,g,y,C]=[M,D,x(s/(1.15*D)),0],N[n._]=n.b4,N[n.dl]=n.tn):(D=.7*g,M=.7*S,[S,g,y,C]=[M,D,(s-2*l)/(1.1*D),l],N[n._]=n.b4,N[n.dl]=n.nN)}return[S,g,y,C,N]}},2173:function(e,t,r){const o=r(8558);e.exports=function(e){if("string"!==typeof e)return;const t=e.toUpperCase();return Object.prototype.hasOwnProperty.call(o,t)?o[t]:void 0},e.exports.currencySymbolMap=o},7136:function(e,t,r){"use strict";var o=r(9950),i=r(932),n=r(7509),a=r(5830),s=r(4414);t.A=function(e){var[t,r]=(0,i.A)();(0,o.useContext)(n.h);const l=(0,a.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==l?void 0:r,aspectRatio:"8968077397"==l?9/16:void 0,height:"8968077397"==l?"100%":t,overflow:"hidden"}})}},7509:function(e,t,r){"use strict";r.d(t,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8558:function(e){e.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9112:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var o=r(9950),i=r(340),n=r(5089),a=r(5873),s=r(572),l=r(8603),c=r(9946),u=r(9094),d=(r(9130),r(932)),p=r(1941),m=r(5491),h=r.n(m),v=r(5830),f=r(7509),w=r(7136),S=r(1348),g=r(5551),y=r(1351),C=r(6157),x=(r(6641),r(9879)),N=r(22),D=r(6594),M=r(8149),R=r(7740),_=r(4414);var P=function(e){var t,r,i,n,a,s,l,c,u,p,m,h,f,w,g;const y=(0,o.useRef)(null),[C,P,A,T,B]=(0,d.A)(),b=1*P,F=1*C,U=((0,v.Xd)("whatmoreUITheme"),(0,v.Xd)("whatmoreShopId")),$="portrait"===B[N.dl],j=$?(0,S.HWj)(U):(0,S.N_4)(U),E=(0,v.Xd)("whatmorePrimaryFont"),I=(0,v.Xd)("whatmoreSecondaryColor"),L=e.onClick,O=null===(t=e.isOnFocus)||void 0===t||t,K=null!==(r=e.playOnUnfocus)&&void 0!==r&&r,[k,G]=(0,o.useState)(e.event),[V,H]=(0,o.useState)(),[W,X]=(0,o.useState)(!1),Y=null!==(i=null===(n=k.products)||void 0===n?void 0:n.find(e=>"active"==e.product_status))&&void 0!==i?i:null===(a=k.products)||void 0===a?void 0:a[0],Z=Math.round(+(null===Y||void 0===Y?void 0:Y.price)),z=Math.round(+(null===Y||void 0===Y?void 0:Y.compare_price)),Q=z&&0!=z&&z>Z?Math.round((z-Z)/z*100):NaN,[J,q]=(0,o.useState)(Q),[ee,te]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{(0,S.w4b)(U)?(0,D.fu)(k,(0,S.NCy)(U),U).then(e=>{var t,r,o;G(e);const i=Math.round(null===(t=e.products)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.price),n=Math.round(null===e||void 0===e||null===(o=e.products[0])||void 0===o?void 0:o.compare_price),a=n&&0!=n&&n>i?Math.round((n-i)/n*100):NaN;q(a),te(!0)}).catch(e=>{console.warn("Whatmore AI Template: Failed to enrich event with price data, using fallback",e),te(!0)}):(async()=>{try{const e=await(0,M.M)(Y,(0,S.NCy)(U),U);H(e),te(!0)}catch(e){console.warn("Whatmore AI Template: Failed to fetch product details, using fallback data",e),te(!0)}})()},[]),(0,o.useEffect)(()=>{if(y.current){const e=y.current,t=$?"portrait":"landscape",r=getComputedStyle(e),o=parseFloat(r.getPropertyValue(`--wtmr-name-font-scale-${t}`))||($?1.25:1.15),i=parseFloat(r.getPropertyValue(`--wtmr-price-font-scale-${t}`))||($?1.4:1.3),n=parseFloat(r.getPropertyValue(`--wtmr-category-font-scale-${t}`))||($?1:.9),a=parseFloat(r.getPropertyValue(`--wtmr-discount-font-scale-${t}`))||($?1.1:1);e.style.setProperty("--wtmr-font-family",E),e.style.setProperty("--wtmr-discount-badge-bg",I),e.style.setProperty("--wtmr-tile-width",P+"px"),e.style.setProperty("--wtmr-font-multiplier",j),e.style.setProperty("--wtmr-name-font-scale",o),e.style.setProperty("--wtmr-price-font-scale",i),e.style.setProperty("--wtmr-category-font-scale",n),e.style.setProperty("--wtmr-discount-font-scale",a)}},[E,I,P,j,$]),(0,_.jsxs)("div",{ref:y,className:"wtmr-carousel-tile",style:{maxWidth:b},onClick:()=>L(k),children:[(0,_.jsxs)("div",{className:"wtmr-carousel-tile__video-container",style:{maxHeight:F},children:[(0,_.jsx)(x.A,{className:"wtmr-carousel-tile__video",height:(0,S.u06)(U)+" !important",width:"100%",url:k.thumbnail_image,isPlaying:O||K,event:k}),Y&&(0,_.jsx)("div",{className:"wtmr-carousel-tile__add-to-cart-overlay",onClick:e=>e.stopPropagation(),children:(0,_.jsx)("span",{className:"wtmr-carousel-tile__add-to-cart-label",children:"ADD TO CART"})})]}),Y&&(0,_.jsxs)("div",{className:"wtmr-carousel-tile__product-details-container",children:[(0,_.jsxs)("div",{className:"wtmr-carousel-tile__product-information-section",children:[(null===Y||void 0===Y?void 0:Y.thumbnail_image)&&(0,_.jsx)("div",{className:"wtmr-carousel-tile__product-image-container",children:(0,_.jsx)("img",{className:"wtmr-carousel-tile__product-image "+(W?"wtmr-carousel-tile__product-image--loaded":""),src:(null===Y||void 0===Y||null===(s=Y.thumbnail_image)||void 0===s||null===(l=s.split("?"))||void 0===l?void 0:l[0])+"?width=400&height=400",alt:"thumbnail",onLoad:()=>X(!0)})}),(0,_.jsxs)("div",{className:"wtmr-carousel-tile__product-text-container",children:[(null===Y||void 0===Y?void 0:Y.product_type)&&(0,_.jsx)("p",{className:"wtmr-carousel-tile__product-category-label",children:null===Y||void 0===Y?void 0:Y.product_type}),(null===Y||void 0===Y?void 0:Y.title)&&(0,_.jsx)("p",{className:"wtmr-carousel-tile__product-name",children:null===Y||void 0===Y?void 0:Y.title})]})]}),ee&&(0,_.jsxs)("div",{className:"wtmr-carousel-tile__product-pricing-section",children:[(0,_.jsx)("p",{className:"wtmr-carousel-tile__price-selling",children:(0,D.Sb)(parseFloat((0,R.U)()?(null!==(c=null===V||void 0===V||null===(u=V.variants)||void 0===u||null===(p=u[0])||void 0===p?void 0:p.price)&&void 0!==c?c:null===V||void 0===V?void 0:V.price)/100:null===Y||void 0===Y?void 0:Y.price)," ",U,null===(m=k.products[0])||void 0===m?void 0:m.currency)}),!isNaN(z)&&z>Z&&(0,_.jsx)("p",{className:"wtmr-carousel-tile__price-original",children:(0,D.Sb)(parseFloat((0,R.U)()?(null!==(h=null===V||void 0===V||null===(f=V.variants)||void 0===f||null===(w=f[0])||void 0===w?void 0:w.compare_at_price)&&void 0!==h?h:null===V||void 0===V?void 0:V.compare_at_price)/100:null===Y||void 0===Y?void 0:Y.compare_price)," ",U,null===(g=k.products[0])||void 0===g?void 0:g.currency)}),!isNaN(J)&&0!=J&&(0,_.jsx)("div",{className:"wtmr-carousel-tile__discount-percentage-badge",children:(0,_.jsxs)("p",{className:"wtmr-carousel-tile__discount-percentage-value",children:[J,"%"]})})]})]})]})};const A=(0,l.A)({key:"whatmore-css-ai"});function T(e){const[t,r,i]=(0,d.A)(),[n,a,s]=(0,p.A)(),l=(0,v.Xd)("whatmoreShopId"),m=e.events,h=e.onClick,f=i*(0,S.kcl)(l),x=(0,S.cbh)(l),[N,D]=(0,o.useState)(x?m.length:f),{whatmoreWidgetSourceDetails:M}=(0,o.useContext)(g.B);return(0,o.useEffect)(()=>{N<=f&&D(e=>e+f)},[f]),(0,_.jsx)("div",{className:"wtmr-carousel-container-portrait whatmore-events-carousel-portrait ai-carousel-portrait",style:{width:s-48,zIndex:1},children:(0,_.jsx)(c.RC,{slidesPerView:m.length>1?f:1,initialSlide:m.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,modules:[u.U1],spaceBetween:12,freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.7,momentumBounce:!1,momentumVelocityRatio:.9},touchRatio:1.2,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:400,onSlideChange:e=>{(0,y.UM)({userInteractionType:C.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:M}),e.realIndex>e.previousIndex&&D(e=>e+f)},loop:x,style:{paddingTop:"8px",paddingBottom:"8px"},children:m.map((e,t)=>t<=N&&(0,_.jsx)(c.qr,{children:({isActive:t,isPrev:r,isNext:o,isVisible:i})=>r||o||t?(0,_.jsx)("div",{className:"wm-carousel__slide-wrapper "+(t?"wtmr-carousel__slide-wrapper--active":"wtmr-carousel__slide-wrapper--inactive"),children:(0,_.jsx)(P,{isOnFocus:t&&i,playOnUnfocus:!1,event:e,onClick:()=>{h(e)}})}):(0,_.jsx)(w.A,{})},"whatmore-event-tile-ai-portrait-"+e.index))})})}function B(e){const[t,r,i,n]=(0,d.A)(),[a,s,l]=(0,p.A)(),[m,f]=(0,o.useState)(-1),x=(0,v.Xd)("whatmoreShopId"),N=e.onClick,D=e.events,M=(0,S.cbh)(x),[R,A]=(0,o.useState)(M?D.length:i),T=Math.min(i,D.length),{whatmoreWidgetSourceDetails:B}=(0,o.useContext)(g.B),b=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(b.current){const e=r*T*(0,S.fHt)(x)+"px";D.length<4?b.current.style.setProperty("width",e,"important"):b.current.style.width=e}},[r,T,x,R,D.length]),(0,o.useEffect)(()=>{R<=i&&A(e=>e+i)},[i]),(0,_.jsx)("div",{className:"wtmr-carousel-container-landscape whatmore-events-carousel-landscape ai-carousel-landscape",style:{width:l,paddingLeft:n+"px",paddingRight:n+"px"},children:(0,_.jsx)("div",{ref:b,style:{zIndex:1},children:(0,_.jsx)(c.RC,{slidesPerView:T,watchSlidesProgress:!0,modules:[u.FJ,u.U1],freeMode:{enabled:!0,sticky:!1,momentum:!0,momentumRatio:.5,momentumBounce:!1,momentumVelocityRatio:.7},onSlideChange:e=>{(0,y.UM)({userInteractionType:C.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:B}),e.realIndex>e.previousIndex&&A(e=>e+i)},spaceBetween:0,loop:!1,touchRatio:1,simulateTouch:!0,allowTouchMove:!0,grabCursor:!0,resistance:!0,resistanceRatio:.75,speed:500,mousewheel:{forceToAxis:!0,sensitivity:.6,releaseOnEdges:!0,invert:!1},children:D.map((e,t)=>{const r=h()(()=>f(t),50);return t<=R&&(0,_.jsx)(c.qr,{onMouseEnter:()=>{r()},onMouseLeave:()=>{r.cancel(),f(-1)},style:{height:"100%"},children:({isActive:r,isPrev:o,isNext:i,isVisible:n})=>n||o||i?(0,_.jsx)("div",{style:{height:"100%",transform:t===m?"translate3d(0, -1px, 0)":"translate3d(0, 0, 0)",transition:"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease-out, opacity 0.3s ease-out",filter:t===m?"brightness(1.02)":"none",opacity:t===m?1:.98,willChange:"transform, filter, opacity"},children:(0,_.jsx)(P,{isOnFocus:t==m,playOnUnfocus:!(0,S.aO7)(x)||t==parseInt(T/2)&&-1==m,event:e,onClick:()=>{N(e)}})}):(0,_.jsx)(w.A,{})},"wht-event-tile-ai-landscape-"+e.index)})})})})}var b=function(e){const[t,r,l]=(0,p.A)(),[c]=(0,v.QN)("whatmoreShopId"),[u]=(0,v.QN)("whatmorePrimaryColor"),[d]=(0,v.QN)("whatmoreTitleFont"),m="portrait"==t?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,o.useContext)(g.B),{whatmoreCollectionHeading:w}=(0,o.useContext)(g.B),{whatmoreIsCollectionsTemplate:S}=(0,o.useContext)(g.B),y=e.events,C=e.onClick,x=d,N=(0,o.useRef)(null);function D(e){C(e)}return(0,o.useEffect)(()=>{a.Sn.forEach(e=>{var t;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-ai"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-ai"]');if(!r)return;r&&e&&(e.style.minHeight="0px")})},[]),(0,o.useEffect)(()=>{if(N.current){const e=N.current;e.style.setProperty("--wtmr-font-family",x),e.setAttribute("data-mode",t)}},[x,t]),delete n.Ay.styles.global,(0,_.jsx)(s.C,{value:A,children:(0,_.jsx)("div",{ref:N,className:"wtmr-carousel whatmore-carousel-events ai-carousel-container",style:{height:"100%",background:"transparent",position:"relative"},children:(0,_.jsx)(i.s,{theme:n.Ay,cssVarsRoot:h,resetCSS:!1,children:(0,_.jsxs)(f.h.Provider,{value:{tileTopMargin:8,tileBottomMMargin:8,tileLeftMargin:2,tileRightMargin:2,showPlayButton:!0},children:[console.log("test",e.heading.trim())&&(e.heading.trim().length>0||S)&&(0,_.jsx)("div",{className:"wtmr-carousel-header",children:(0,_.jsx)("h2",{className:"wtmr-carousel-title",style:{fontSize:m+"px"},children:S?"W"!==w?w:"":e.heading})}),"landscape"===t?(0,_.jsx)(B,{events:y,onClick:D}):(0,_.jsx)(T,{events:y,onClick:D})]})})})})}},9211:function(e,t,r){"use strict";function o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)e[o]=r[o]}return e}r.d(t,{A:function(){return i}});var i=function e(t,r){function i(e,i,n){if("undefined"!==typeof document){"number"===typeof(n=o({},r,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in n)n[s]&&(a+="; "+s,!0!==n[s]&&(a+="="+n[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],o={},i=0;i<r.length;i++){var n=r[i].split("="),a=n.slice(1).join("=");try{var s=decodeURIComponent(n[0]);if(o[s]=t.read(a,s),e===s)break}catch(l){}}return e?o[e]:o}},remove:function(e,t){i(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|