whatmore-react-assets 1.0.784 → 1.0.786
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.whatmore-root{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"kern";font-family:system-ui,sans-serif;line-height:1.5;min-height:100%;position:relative;touch-action:manipulation}.whatmore-root *{border-style:solid;border-width:0;box-sizing:border-box}.whatmore-root hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible}.whatmore-root abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.whatmore-root b,.whatmore-root strong{font-weight:700}.whatmore-root small{font-size:80%}.whatmore-root sub,.whatmore-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.whatmore-root sub{bottom:-.25em}.whatmore-root sup{top:-.5em}.whatmore-root img{border-style:none}.whatmore-root button,.whatmore-root input,.whatmore-root optgroup,.whatmore-root select,.whatmore-root textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.whatmore-root button,.whatmore-root input{overflow:visible}.whatmore-root button,.whatmore-root select{text-transform:none}.whatmore-root [type=button]::-moz-focus-inner,.whatmore-root [type=reset]::-moz-focus-inner,.whatmore-root [type=submit]::-moz-focus-inner,.whatmore-root button::-moz-focus-inner{border-style:none;padding:0}.whatmore-root fieldset{padding:.35em .75em .625em}.whatmore-root legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.whatmore-root progress{vertical-align:baseline}.whatmore-root textarea{overflow:auto}.whatmore-root [type=checkbox],.whatmore-root [type=radio]{box-sizing:border-box;padding:0}.whatmore-root [type=number]::-webkit-inner-spin-button,.whatmore-root [type=number]::-webkit-outer-spin-button{-webkit-appearance:none!important}.whatmore-root input[type=number]{-moz-appearance:textfield}.whatmore-root [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.whatmore-root [type=search]::-webkit-search-decoration{-webkit-appearance:none!important}.whatmore-root ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.whatmore-root details{display:block}.whatmore-root summary{display:list-item}.whatmore-root template{display:none}.whatmore-root [hidden]{display:none!important}.whatmore-root,.whatmore-root blockquote,.whatmore-root dd,.whatmore-root dl,.whatmore-root figure,.whatmore-root h1,.whatmore-root h2,.whatmore-root h3,.whatmore-root h4,.whatmore-root h5,.whatmore-root h6,.whatmore-root hr,.whatmore-root p,.whatmore-root pre{margin:0}.whatmore-root button{padding:0}.whatmore-root fieldset,.whatmore-root ol,.whatmore-root ul{margin:0;padding:0}.whatmore-root textarea{resize:vertical}.whatmore-root button,[role=button]{cursor:pointer}.whatmore-root button::-moz-focus-inner{border:0!important}.whatmore-root table{border-collapse:collapse}.whatmore-root h1,.whatmore-root h2,.whatmore-root h3,.whatmore-root h4,.whatmore-root h5,.whatmore-root h6{font-size:inherit;font-weight:inherit}.whatmore-root button,.whatmore-root input,.whatmore-root optgroup,.whatmore-root select,.whatmore-root textarea{color:inherit;line-height:inherit;padding:0}.whatmore-root audio,.whatmore-root canvas,.whatmore-root embed,.whatmore-root iframe,.whatmore-root img,.whatmore-root object,.whatmore-root svg,.whatmore-root video{display:block}.whatmore-root p{display:inline!important}.whatmore-root img,.whatmore-root video{max-width:100%}.whatmore-root [data-js-focus-visible] .whatmore-root :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]){box-shadow:none;outline:none}.whatmore-root select::-ms-expand{display:none}.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{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{-webkit-backface-visibility:hidden;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{-webkit-margin-start:var(--swiper-centered-offset-before);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{-webkit-margin-before:var(--swiper-centered-offset-before);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:50px}.whatmore-root .swiper-button-next,.whatmore-root .swiper-button-prev{align-items:center!important;background-color:rgba(0,0,0,.3)!important;background-image:none!important;border-radius:5px!important;color:var(--swiper-theme-color)!important;color:var(--swiper-navigation-color,var(--swiper-theme-color))!important;cursor:pointer!important;display:flex!important;height:calc(var(--swiper-navigation-size)*2);justify-content:center!important;opacity:1!important;position:absolute!important;top:40%!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:var(--swiper-navigation-size);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:"prev"}.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:"next"}.whatmore-root .swiper-button-lock{display:none}.whatmore-arrow-left .whatmore-arrow-right .whatmore-arrow-left-portrait .whatmore-arrow-right-portrait{opacity:1!important;position:relative}.whatmore-arrow-left:before{border-left:3px solid #fff;transform:translateX(50%) rotate(45deg)}.whatmore-arrow-left:before,.whatmore-arrow-right:before{border-bottom:3px solid #fff;content:"";height:30px;width:30px}.whatmore-arrow-right:before{border-right:3px solid #fff;transform:rotate(-45deg)}.whatmore-arrow-left-portrait:before{border-bottom:3px solid #fff;border-left:3px solid #fff;content:"";height:15px;transform:translateX(130%) translateY(110%) rotate(45deg);width:15px}.whatmore-arrow-right-portrait:before{border-bottom:3px solid #fff;border-right:3px solid #fff;content:"";height:15px;transform:translateX(90%) translateY(110%) rotate(-45deg);width:15px}.whatmore-modal{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"kern";font-family:system-ui,sans-serif;line-height:1.5;min-height:100%;position:relative!important;position:relative;touch-action:manipulation;z-index:2147483647!important}.whatmore-modal *{border-style:solid;border-width:0;box-sizing:border-box}.whatmore-modal hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible}.whatmore-modal abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.whatmore-modal b,.whatmore-modal strong{font-weight:700}.whatmore-modal small{font-size:80%}.whatmore-modal sub,.whatmore-modal sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.whatmore-modal sub{bottom:-.25em}.whatmore-modal sup{top:-.5em}.whatmore-modal img{border-style:none}.whatmore-modal button,.whatmore-modal input,.whatmore-modal optgroup,.whatmore-modal select,.whatmore-modal textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.whatmore-modal button,.whatmore-modal input{overflow:visible}.whatmore-modal button,.whatmore-modal select{text-transform:none}.whatmore-modal [type=button]::-moz-focus-inner,.whatmore-modal [type=reset]::-moz-focus-inner,.whatmore-modal [type=submit]::-moz-focus-inner,.whatmore-modal button::-moz-focus-inner{border-style:none;padding:0}.whatmore-modal fieldset{padding:.35em .75em .625em}.whatmore-modal legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.whatmore-modal progress{vertical-align:baseline}.whatmore-modal textarea{overflow:auto}.whatmore-modal [type=checkbox],.whatmore-modal [type=radio]{box-sizing:border-box;padding:0}.whatmore-modal [type=number]::-webkit-inner-spin-button,.whatmore-modal [type=number]::-webkit-outer-spin-button{-webkit-appearance:none!important}.whatmore-modal input[type=number]{-moz-appearance:textfield}.whatmore-modal [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.whatmore-modal [type=search]::-webkit-search-decoration{-webkit-appearance:none!important}.whatmore-modal ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.whatmore-modal details{display:block}.whatmore-modal summary{display:list-item}.whatmore-modal template{display:none}.whatmore-modal [hidden]{display:none!important}.whatmore-modal,.whatmore-modal blockquote,.whatmore-modal dd,.whatmore-modal dl,.whatmore-modal figure,.whatmore-modal h1,.whatmore-modal h2,.whatmore-modal h3,.whatmore-modal h4,.whatmore-modal h5,.whatmore-modal h6,.whatmore-modal hr,.whatmore-modal p,.whatmore-modal pre{margin:0}.whatmore-modal button{background:gray.100;padding:10px}.whatmore-modal fieldset,.whatmore-modal ol,.whatmore-modal ul{margin:0;padding:0}.whatmore-modal textarea{resize:vertical}.whatmore-modal button,[role=button]{cursor:pointer}.whatmore-modal button::-moz-focus-inner{border:0!important}.whatmore-modal table{border-collapse:collapse}.whatmore-modal h1,.whatmore-modal h2,.whatmore-modal h3,.whatmore-modal h4,.whatmore-modal h5,.whatmore-modal h6{font-size:inherit;font-weight:inherit}.whatmore-modal button,.whatmore-modal input,.whatmore-modal optgroup,.whatmore-modal select,.whatmore-modal textarea{line-height:inherit;padding:0}.whatmore-modal audio,.whatmore-modal canvas,.whatmore-modal embed,.whatmore-modal iframe,.whatmore-modal img,.whatmore-modal object,.whatmore-modal svg,.whatmore-modal video{display:block}.whatmore-modal img,.whatmore-modal video{max-width:100%}.whatmore-modal [data-js-focus-visible] .whatmore-modal :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]){box-shadow:none;outline:none}.whatmore-modal select::-ms-expand{display:none}@-webkit-keyframes whatmore-modal-open-transform{0%{transform:scaleY(0) scaleX(0)}50%{transform:scaleY(0) scaleX(1)}to{transform:scaleY(1) scaleX(1)}}@keyframes whatmore-modal-open-transform{0%{transform:scaleY(0) scaleX(0)}50%{transform:scaleY(0) scaleX(1)}to{transform:scaleY(1) scaleX(1)}}.whatmore-modal{clip:auto;all:initial;-webkit-animation:none 0s ease 0s 1 normal none running;animation:none 0s ease 0s 1 normal none running;-webkit-backface-visibility:visible;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:none;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;bottom:0;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;color:#000;-moz-column-fill:balance;column-fill:balance;-moz-column-gap:normal;-moz-column-rule:medium none currentColor;column-rule:medium none currentColor;-moz-column-span:1;column-span:1;-moz-columns:auto;-moz-column-count:auto;column-gap:normal;-moz-column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;float:none;font-family:serif;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;height:100vh!important;-webkit-hyphens:none;hyphens:none;left:auto;left:0;letter-spacing:normal;line-height:normal;list-style:disc none outside;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;position:absolute;right:auto;right:0;-moz-tab-size:8;-o-tab-size:8;tab-size:8;table-layout:auto;text-align:left;-moz-text-align-last:auto;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;top:0;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}.whatmore-video-player{height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;overflow:hidden!important;width:100%!important}.whatmore-modal-content{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);bottom:0;left:0;position:fixed;right:0;top:0}.whatmore-modal{--swiper-theme-color:#303632!important}.whatmore-modal .swiper{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0!important;position:relative;z-index:1}.whatmore-modal .swiper-vertical>.swiper-wrapper{flex-direction:column}.whatmore-modal .swiper-wrapper{box-sizing:content-box;box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.whatmore-modal .swiper-android .swiper-slide,.whatmore-modal .swiper-wrapper{transform:translateZ(0)}.whatmore-modal .swiper-pointer-events{touch-action:pan-y}.whatmore-modal .swiper-pointer-events.swiper-vertical{touch-action:pan-x}.whatmore-modal .swiper-slide{display:block;flex-shrink:0;height:auto!important;overflow:visible!important;position:relative;-webkit-transform:translateZ(0);transition-property:transform;width:100%}.product-tile .swiper-slide{display:flex!important;justify-content:center}.whatmore-modal .swiper-slide-invisible-blank{visibility:hidden}.whatmore-modal .swiper-autoheight,.whatmore-modal .swiper-autoheight .swiper-slide{height:auto}.whatmore-modal .swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.whatmore-modal .swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.whatmore-modal .swiper-3d,.whatmore-modal .swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.whatmore-modal .swiper-3d .swiper-cube-shadow,.whatmore-modal .swiper-3d .swiper-slide,.whatmore-modal .swiper-3d .swiper-slide-shadow,.whatmore-modal .swiper-3d .swiper-slide-shadow-bottom,.whatmore-modal .swiper-3d .swiper-slide-shadow-left,.whatmore-modal .swiper-3d .swiper-slide-shadow-right,.whatmore-modal .swiper-3d .swiper-slide-shadow-top,.whatmore-modal .swiper-3d .swiper-wrapper{transform-style:preserve-3d}.whatmore-modal .swiper-3d .swiper-slide-shadow,.whatmore-modal .swiper-3d .swiper-slide-shadow-bottom,.whatmore-modal .swiper-3d .swiper-slide-shadow-left,.whatmore-modal .swiper-3d .swiper-slide-shadow-right,.whatmore-modal .swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.whatmore-modal .swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.whatmore-modal .swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.whatmore-modal .swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.whatmore-modal .swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.whatmore-modal .swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.whatmore-modal .swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.whatmore-modal .swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.whatmore-modal .swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.whatmore-modal .swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.whatmore-modal .swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.whatmore-modal .swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.whatmore-modal .swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.whatmore-modal .swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.whatmore-modal .swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.whatmore-modal .swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.whatmore-modal .swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.whatmore-modal{--swiper-navigation-size:50px!important}.whatmore-modal .swiper-button-next,.whatmore-modal .swiper-button-prev{align-items:center!important;background-color:rgba(0,0,0,.7)!important;background-image:none!important;border-radius:5px!important;color:var(--swiper-theme-color)!important;color:var(--swiper-navigation-color,var(--swiper-theme-color))!important;cursor:pointer!important;display:flex!important;height:calc(var(--swiper-navigation-size)*2)!important;justify-content:center!important;opacity:1!important;position:absolute!important;top:45%!important;width:var(--swiper-navigation-size)!important;z-index:10!important}.whatmore-modal .swiper-button-next{right:25%!important}.whatmore-modal .swiper-button-prev{left:25%!important}.whatmore-modal .swiper-button-next.swiper-button-disabled,.whatmore-modal .swiper-button-next.swiper-button-hidden,.whatmore-modal .swiper-button-prev.swiper-button-disabled,.whatmore-modal .swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0!important;pointer-events:none}.whatmore-modal .swiper-navigation-disabled .whatmore-modal .swiper-button-next,.whatmore-modal .swiper-navigation-disabled .whatmore-modal .swiper-button-prev{display:none!important}.whatmore-modal .swiper-button-next:after,.whatmore-modal .swiper-button-prev:after{background-color:transparent!important;color:#fff!important;font-family:whatmore-swiper-icons!important;font-size:var(--swiper-navigation-size)!important;font-variant:normal!important;letter-spacing:0!important;line-height:1!important;margin:0;position:absolute;text-align:center!important;text-transform:none!important;top:50%;transform:translateY(-50%)}.whatmore-modal .swiper-button-prev,.whatmore-modal .swiper-rtl .whatmore-modal .swiper-button-next{left:0;right:auto}.whatmore-modal .swiper-button-prev:after,.whatmore-modal .swiper-rtl .whatmore-modal .swiper-button-next:after{content:"prev"}.whatmore-modal .swiper-button-next,.whatmore-modal .swiper-rtl .whatmore-modal .swiper-button-prev{left:auto;right:0}.whatmore-modal .swiper-button-next:after,.whatmore-modal .swiper-rtl .whatmore-modal .swiper-button-prev:after{content:"next"}.whatmore-modal .swiper-button-lock{display:none}.whatmore-modal .swiper-cube{overflow:visible}.whatmore-modal .swiper-cube .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.whatmore-modal .swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.whatmore-modal .swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.whatmore-modal .swiper-cube .swiper-slide-active,.whatmore-modal .swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.whatmore-modal .swiper-cube .swiper-slide-active,.whatmore-modal .swiper-cube .swiper-slide-next,.whatmore-modal .swiper-cube .swiper-slide-next+.swiper-slide,.whatmore-modal .swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.whatmore-modal .swiper-cube .swiper-slide-shadow-bottom,.whatmore-modal .swiper-cube .swiper-slide-shadow-left,.whatmore-modal .swiper-cube .swiper-slide-shadow-right,.whatmore-modal .swiper-cube .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.whatmore-modal .swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.whatmore-modal .swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[582],{5582:function(e,t,a){a.r(t),a.d(t,{default:function(){return z}});var n=a(7753),i=a(7313),s=a(2860),r=a(499),o=a(4897),l=a(5160),c=a(9854),d=a(6967),u=a(8984),_=a(58),p=a(4669),m=a(513),h=a(9852),v=a(7300),f=a(6524),g=a(7643),y=a(778),w=a(6417);const b=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(351),a.e(926),a.e(950),a.e(303),a.e(891)]).then(a.bind(a,4095)))),S=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(576),a.e(950),a.e(364),a.e(530)]).then(a.bind(a,5523)))),I=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(249),a.e(622)]).then(a.bind(a,3827)))),k=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(249),a.e(965)]).then(a.bind(a,6071)))),T=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(708)]).then(a.bind(a,1291)))),x=i.lazy((()=>Promise.all([a.e(302),a.e(580)]).then(a.bind(a,3580)))),E=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(576),a.e(351),a.e(955),a.e(926),a.e(303),a.e(218),a.e(790)]).then(a.bind(a,3218)))),j=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(351),a.e(926),a.e(950),a.e(303),a.e(197)]).then(a.bind(a,1492)))),L=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(367),a.e(926),a.e(950),a.e(303),a.e(189)]).then(a.bind(a,9085)))),C=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(576),a.e(950),a.e(303),a.e(364),a.e(299)]).then(a.bind(a,4362)))),M=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(576),a.e(351),a.e(955),a.e(926),a.e(303),a.e(218),a.e(196)]).then(a.bind(a,4658)))),O=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(84)]).then(a.bind(a,8767))));var A=function(e){const[t]=(0,n.j1)("isInDesignMode"),[a]=(0,n.j1)("isDemoBrand"),[A]=(0,n.j1)("whatmoreTopBottomPadding"),[D]=(0,n.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:N}=(0,i.useContext)(h.I),[P]=(0,n.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:R}=(0,i.useContext)(h.I),W=(0,n.MO)("isLandingSharedLink"),q=(0,n.MO)("whatmoreShareTemplateId"),G=(0,n.MO)("whatmoreShareStoryId"),K=(0,n.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:z}=(0,i.useContext)(h.I),[V,B]=(0,i.useState)(-1),[H,U]=(0,i.useState)(null);let F=e.events,Z=[];if("template-banner-a"!==R){let e=0;for(let t=0;t<(null===F||void 0===F?void 0:F.length);t++){var Y,J,X,Q;const a=(null===F||void 0===F||null===(Y=F[t])||void 0===Y||null===(J=Y.products)||void 0===J?void 0:J.length)>0&&(null===F||void 0===F||null===(X=F[t])||void 0===X||null===(Q=X.products)||void 0===Q?void 0:Q.every((e=>"oos"===(null===e||void 0===e?void 0:e.product_status))));if(!(0,v.B6)(F[t])&&!(0,v.WJ)(F[t])||a){if((0,v.yC)(null===F||void 0===F?void 0:F[t])){var{status:$,bannerText:ee,timeToStartInMins:te}=o.Z.getEventStatus(F[t]);$.name===r.Z.LIVE.name&&(Z.push({...null===F||void 0===F?void 0:F[t],index:e}),e++)}}else Z.push({...null===F||void 0===F?void 0:F[t],index:e}),e++}}var ae=null;N&&!ae&&(ae=function(e){var t=e.reduce(((e,t,a)=>{var n=t.storyset_id;return n in e?(e[n].total_events=e[n].total_events+1,e[n].events.push(t)):e[n]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:a,events:[t]},e}),{}),a=Object.values(t);return a.sort(((e,t)=>e.start_event_index-t.start_event_index)),a}(Z));const ne=z.landingLocationType,ie=z.templateType;function se(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,u.KE)()&&!n&&(0,_.QV)(),t||a||(async()=>{const t=ae[e].events[0],a=(0,f.NY)(ne)+(0,f.dS)(ie)+"_"+(null===t||void 0===t?void 0:t.event_id);(0,l.wh)(t),(0,p.Tc)(P,s.Xh,s.OW),(0,d.H4)(t.event_id,t.products,"homepage","stories",a)})();var r=0;null!=i&&ae[e].events.map(((e,t)=>{e.event_id==i&&(r=t)})),B(r),U(e)}function re(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,u.KE)()&&!n&&(0,_.QV)(),(0,v.B6)(e)||(0,v.WJ)(e))return t||a||(async()=>{const t=(0,f.NY)(ne)+(0,f.dS)(ie)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),(0,p.Tc)(P,s.Xh,s.pR),(0,d.H4)(e.event_id,e.products,"homepage","carousel",t)})(),void B(e.index);const i=20;var{status:c,bannerText:m,timeToStartInMins:h}=o.Z.getEventStatus(e);h<=i&&c.name!==r.Z.LIVE.name?console.debug(" TODO : show toast on upcoming live event."):B(e.index)}function oe(e){return(0,w.jsx)(w.Fragment,{})}return(0,i.useEffect)((()=>{W&&R==(0,f.zv)(q)&&(null!=G&&N?ae.forEach(((e,t)=>{G==e.id&&se(t,!0,K)})):null!=K&&Z.forEach(((e,t)=>{K==e.event_id&&re(e,!0)})))}),[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{style:{marginTop:(N?D:A)+"px",marginBottom:(N?D:A)+"px"},children:"template-b"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(b,{events:Z,onClick:re,heading:e.heading})}):"template-a-1"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(S,{events:Z,onClick:re,heading:e.heading})}):"template-feed-a"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(C,{events:Z,onClick:re,heading:e.heading})}):"template-collections-a"===R||"template-c"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(I,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-b"===R||"template-d"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(k,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-c"===R||"template-e"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(T,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-d"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(b,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-e"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(j,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-stories"===R||"template-stories"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(O,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-f"===R||"template-collections-f"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(L,{events:Z,onClick:re,heading:e.heading})})}):"template-banner-a"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.BANNER_WIDGET_VIEW,event:F[0],triggerFlag:!t&&!a,children:(0,w.jsx)(M,{events:F})})}):N?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(x,{eventsStories:ae,onClick:se,template:R})})}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(j,{events:Z,onClick:re,heading:e.heading})})})}),-1==V||-2==V?(0,w.jsx)(oe,{}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.EVENT_VIEW,event:F[V],productList:F[V].products,cta:F[V].cta,triggerFlag:!t&&!a,children:(0,w.jsx)(E,{events:Z,index:V,onBack:function(e){(0,c.n2L)(P)&&(0,n.MO)("whatmoreAddedToCart")&&(0,m.D)(P,(()=>{}),100,window.location.hostname),B(-1)},slideDirection:N||"horizontal"===(0,c.e8z)(P)?"horizontal":"vertical",eventsStories:ae,initialStoryIndex:H,template:R})})})]})};const D=function(e,t,a){const i=(0,n.MO)("whatmoreShopId");var s=t.reduce(((e,t,a)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),r=Object.keys(s);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var o={};fera.getRatings(r,(e=>{new Promise(((t,a)=>{e.forEach((e=>{o[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(o)})).then((e=>a(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";o={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+r.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{o[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),o))).then((e=>a(e))).catch((e=>console.error(e)))}};var N=a(3388),P=a(7381),R=a(7376),W=a(7008);const q=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}];var G=function(e){const[t,a]=(0,i.useState)(),[r,o]=(0,i.useState)(),{whatmoreIsStoriesTemplate:l}=(0,i.useContext)(h.I),{whatmoreIsCollectionsTemplate:p}=(0,i.useContext)(h.I),{whatmoreIsBannerTemplate:m}=(0,i.useContext)(h.I),[v]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionId"),b=(0,n.MO)("whatmoreLandingLocationType"),S=(0,n.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(h.I),{whatmoreCollectionUrl:k}=(0,i.useContext)(h.I),[T]=(0,n.j1)("isInDesignMode"),[x]=(0,n.j1)("isDemoBrand"),E=(0,c.cZT)(v)?(0,c._uv)(v)?k:window.location.href.split(/[?#]/)[0]:g,[j,L]=(0,n.j1)("productRatings"),[C,M]=(0,i.useState)(!1);var O=(0,c.efR)(v)?s.Dm+"/v2/events/":s.Gc+"/v2/events/",G=(0,c.efR)(v)?s.Dm+"/get_eventset/":s.Gc+"/get_eventset/",K=(0,c.efR)(v)?s.Dm+"/v2/collection":s.Gc+"/v2/collection",z=(0,c.efR)(v)?s.Dm+"/v2/brand/"+v+"/product-events":s.Gc+"/v2/brand/"+v+"/product-events",V=e.shopId,B="live,upcoming",H="true";return(0,i.useEffect)((()=>{(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,W.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||r||!(0,u.KE)()||(0,n.MO)("whatmoreVideoPlayerPoolInitiated")||(0,_.b5)(_.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(b.startsWith("product"))if("66969960758"==v||"68934762745"==v)e=O.toString()+V.toString()+"?status="+B.toString()+"&is_active="+H.toString();else{var t=(0,n.MO)("whatmoreProductId");t=(0,c.iXA)(v)?function(e){return e.split(/[?#]/)[0]}(window.location.href):t,e=z.toString()+"?client_product_id="+t.toString()+"&status="+B.toString()+"&event_type=video"}else if(p||"invalid-url"!==k)e="".concat(K.toString(),"?store_id=").concat(V.toString(),"&client_collection_id=").concat("index"==b&&(0,c.igW)(v).length>0?(0,c.igW)(v)[0]:E);else if(m){const t=f.ls,a=(0,f.H1)(b);e=G.toString()+V.toString()+"?eventset_type="+t+"&source="+a+"&source_id="+v}else e=O.toString()+V.toString()+"?status="+B.toString()+"&is_active="+H.toString()+(l?"&template_type=stories":"");fetch(e).then((e=>e.json())).then((e=>{if(m){const t=f.ls;return(0,N.OC)(e,t)}return(0,N.kW)(e,p||"invalid-url"!==k)})).then((e=>(S&&console.debug("initial received events size : "+e.length),l||p||m?e:(0,N.e8)(e,V)))).then((e=>(null!=e&&0!=e.length&&(0,c.LUY)(v)&&function(e,t,a){const i=setInterval((()=>{null===(0,n.MO)("productRatings")&&D(e,t,a)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(v,e,(e=>{L(e)})),e))).then((e=>{null==e||0==e.length||l||m||(0,c.NOv)(V,e),a((x||T)&&null==e?q:e),M(!0)})).catch((e=>{o(e.message)}))}),[]),(0,i.useEffect)((()=>{"index"===b?t&&t.length>0&&(0,R.PB)({userInteractionType:y.K.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===b&&(t&&t.length>0||(0,c.miB)(v))&&(0,R.PB)({userInteractionType:y.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:I})}),[t]),(C&&(null==t||0==t.length)||r)&&h.$.forEach((e=>{var t,a,n,i;const s=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),r=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]'),o=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]'),l=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;(l||o||r||s)&&(r&&c||s&&c||l&&c||o&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||r?(0,w.jsx)("div",{}):(S&&(0,P.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),S&&console.debug("final transformed events data : "+JSON.stringify(t)),S&&console.debug("valid events size : "+t.length),(0,w.jsx)(A,{heading:e.heading,events:t}))},K=a(3933);var z=function(e){const[t]=(0,n.j1)("whatmoreShopId"),[a]=(0,n.j1)("whatmoreHeading"),[s,r]=(0,i.useState)(["initial",window.pageYOffset]),[o,l]=(0,i.useState)(!1),d=(0,n.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,p.ll)(t),!(0,c.wc0)(t))return;let e=window.pageYOffset,a=!1;const n=()=>{const t=window.pageYOffset;var n,i;Math.abs(t-e)<10?a=!1:(i=!0,r(n=[t>e?"scrolled-down":"scrolled-up",t]),n[1]>10&&l(i),e=t>0?t:0,a=!1)},i=()=>{a||(window.requestAnimationFrame(n),a=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[]);const[u,_,m]=(0,K.YD)({triggerOnce:!0});return(0,w.jsx)("div",{ref:u,style:{display:"block"},children:o||_||d||!(0,c.wc0)(t)?(0,w.jsx)(G,{heading:a,shopId:t}):(0,w.jsx)("div",{})})}},499:function(e,t){t.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(e,t,a){var n=a(499);t.Z=class{static getEventStatus(e){e.time_zone="GMT+5:30";var t=e.start_time+":00",a=e.end_time,i=e.scheduled_date,s=e.status,r=e.time_zone;if(s.toUpperCase()==n.Z.LIVE.name)return{status:n.Z.LIVE,bannerText:" "+n.Z.LIVE.name+" ",timeToStartInMins:0};if(s.toUpperCase()==n.Z.UPCOMING.name){var o=new Date(i+" "+t+" "+r),l=(new Date(i+" "+a+" "+r),function(e){var t=new Date,a=(e.getTime()-t.getTime())/1e3,i=a/60,s=i/60,r=s/24;return a<=0?{status:n.Z.COMPLETED,bannerText:" "+n.Z.COMPLETED.name+" ",timeToStartInMins:0}:a>=1&&a<=30?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(a)+" sec ",timeToStartInMins:a/60}:i<60?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:s<24?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(s)+" hr ",timeToStartInMins:60*s}:r<7?{status:n.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+" ",timeToStartInMins:60*r*24}:{status:n.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(o));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+e.event_id+", status : "+e.status),{status:n.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(e,t,a){a.d(t,{OC:function(){return o},e8:function(){return s},kT:function(){return n},kW:function(){return r},xg:function(){return i}});const n=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},s=function(e,t){if(null!=e)return e.filter((e=>1==n(e)))},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const o=function(e,t){var a;if(null==e)return[];if(!("eventsets"in e))return[];const n=null!==(a=e.eventsets[t])&&void 0!==a?a:null;return n?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(n):[]}},7376:function(e,t,a){a.d(t,{GF:function(){return i},PB:function(){return o},Z2:function(){return s},y4:function(){return r}});var n=a(733);function i(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function s(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function r(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function o(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[582],{5582:function(e,t,a){a.r(t),a.d(t,{default:function(){return z}});var n=a(7753),i=a(7313),s=a(2860),r=a(499),o=a(4897),l=a(5160),c=a(9854),d=a(6967),u=a(8984),_=a(58),p=a(4669),m=a(513),h=a(9852),v=a(7300),f=a(6524),g=a(7643),y=a(778),w=a(6417);const b=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(351),a.e(926),a.e(950),a.e(303),a.e(891)]).then(a.bind(a,4095)))),S=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(576),a.e(950),a.e(364),a.e(530)]).then(a.bind(a,5523)))),I=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(249),a.e(622)]).then(a.bind(a,3827)))),k=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(249),a.e(965)]).then(a.bind(a,6071)))),T=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(708)]).then(a.bind(a,1291)))),x=i.lazy((()=>Promise.all([a.e(302),a.e(580)]).then(a.bind(a,3580)))),E=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(576),a.e(351),a.e(955),a.e(926),a.e(303),a.e(218),a.e(790)]).then(a.bind(a,3218)))),j=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(351),a.e(926),a.e(950),a.e(303),a.e(197)]).then(a.bind(a,1492)))),L=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(367),a.e(926),a.e(950),a.e(303),a.e(189)]).then(a.bind(a,9085)))),C=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(576),a.e(950),a.e(303),a.e(364),a.e(299)]).then(a.bind(a,4362)))),M=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(576),a.e(351),a.e(955),a.e(926),a.e(303),a.e(218),a.e(196)]).then(a.bind(a,4658)))),O=i.lazy((()=>Promise.all([a.e(302),a.e(819),a.e(13),a.e(240),a.e(367),a.e(423),a.e(926),a.e(950),a.e(84)]).then(a.bind(a,8767))));var A=function(e){const[t]=(0,n.j1)("isInDesignMode"),[a]=(0,n.j1)("isDemoBrand"),[A]=(0,n.j1)("whatmoreTopBottomPadding"),[D]=(0,n.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:N}=(0,i.useContext)(h.I),[P]=(0,n.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:R}=(0,i.useContext)(h.I),q=(0,n.MO)("isLandingSharedLink"),W=(0,n.MO)("whatmoreShareTemplateId"),G=(0,n.MO)("whatmoreShareStoryId"),K=(0,n.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:z}=(0,i.useContext)(h.I),[V,B]=(0,i.useState)(-1),[H,U]=(0,i.useState)(null);let F=e.events,Z=[];if("template-banner-a"!==R){let e=0;for(let t=0;t<(null===F||void 0===F?void 0:F.length);t++){var Y,J,X,Q;const a=(null===F||void 0===F||null===(Y=F[t])||void 0===Y||null===(J=Y.products)||void 0===J?void 0:J.length)>0&&(null===F||void 0===F||null===(X=F[t])||void 0===X||null===(Q=X.products)||void 0===Q?void 0:Q.every((e=>"oos"===(null===e||void 0===e?void 0:e.product_status))));if(!(0,v.B6)(F[t])&&!(0,v.WJ)(F[t])||a){if((0,v.yC)(null===F||void 0===F?void 0:F[t])){var{status:$,bannerText:ee,timeToStartInMins:te}=o.Z.getEventStatus(F[t]);$.name===r.Z.LIVE.name&&(Z.push({...null===F||void 0===F?void 0:F[t],index:e}),e++)}}else Z.push({...null===F||void 0===F?void 0:F[t],index:e}),e++}}var ae=null;N&&!ae&&(ae=function(e){var t=e.reduce(((e,t,a)=>{var n=t.storyset_id;return n in e?(e[n].total_events=e[n].total_events+1,e[n].events.push(t)):e[n]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:a,events:[t]},e}),{}),a=Object.values(t);return a.sort(((e,t)=>e.start_event_index-t.start_event_index)),a}(Z));const ne=z.landingLocationType,ie=z.templateType;function se(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,u.KE)()&&!n&&(0,_.QV)(),t||a||(async()=>{const t=ae[e].events[0],a=(0,f.NY)(ne)+(0,f.dS)(ie)+"_"+(null===t||void 0===t?void 0:t.event_id);(0,l.wh)(t),(0,p.Tc)(P,s.Xh,s.OW),(0,d.H4)(t.event_id,t.products,"homepage","stories",a)})();var r=0;null!=i&&ae[e].events.map(((e,t)=>{e.event_id==i&&(r=t)})),B(r),U(e)}function re(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,u.KE)()&&!n&&(0,_.QV)(),(0,v.B6)(e)||(0,v.WJ)(e))return t||a||(async()=>{const t=(0,f.NY)(ne)+(0,f.dS)(ie)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),(0,p.Tc)(P,s.Xh,s.pR),(0,d.H4)(e.event_id,e.products,"homepage","carousel",t)})(),void B(e.index);const i=20;var{status:c,bannerText:m,timeToStartInMins:h}=o.Z.getEventStatus(e);h<=i&&c.name!==r.Z.LIVE.name?console.debug(" TODO : show toast on upcoming live event."):B(e.index)}function oe(e){return(0,w.jsx)(w.Fragment,{})}return(0,i.useEffect)((()=>{q&&R==(0,f.zv)(W)&&(null!=G&&N?ae.forEach(((e,t)=>{G==e.id&&se(t,!0,K)})):null!=K&&Z.forEach(((e,t)=>{K==e.event_id&&re(e,!0)})))}),[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{style:{marginTop:(N?D:A)+"px",marginBottom:(N?D:A)+"px"},children:"template-b"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(b,{events:Z,onClick:re,heading:e.heading})}):"template-a-1"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(S,{events:Z,onClick:re,heading:e.heading})}):"template-feed-a"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(C,{events:Z,onClick:re,heading:e.heading})}):"template-collections-a"===R||"template-c"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(I,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-b"===R||"template-d"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(k,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-c"===R||"template-e"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(T,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-d"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(b,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-e"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(j,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-collections-stories"===R||"template-stories"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(O,{events:Z,index:V,setScreen:B,onClick:re,heading:e.heading})})}):"template-f"===R||"template-collections-f"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(L,{events:Z,onClick:re,heading:e.heading})})}):"template-banner-a"===R?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.BANNER_WIDGET_VIEW,event:F[0],triggerFlag:!t&&!a,children:(0,w.jsx)(M,{events:F})})}):N?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(x,{eventsStories:ae,onClick:se,template:R})})}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!a,children:(0,w.jsx)(j,{events:Z,onClick:re,heading:e.heading})})})}),-1==V||-2==V?(0,w.jsx)(oe,{}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(g.u,{userInteractionType:y.K.EVENT_VIEW,event:F[V],productList:F[V].products,cta:F[V].cta,triggerFlag:!t&&!a,children:(0,w.jsx)(E,{events:Z,index:V,onBack:function(e){(0,c.n2L)(P)&&(0,n.MO)("whatmoreAddedToCart")&&(0,m.D)(P,(()=>{}),100,window.location.hostname),B(-1)},slideDirection:N||"horizontal"===(0,c.e8z)(P)?"horizontal":"vertical",eventsStories:ae,initialStoryIndex:H,template:R})})})]})};const D=function(e,t,a){const i=(0,n.MO)("whatmoreShopId");var s=t.reduce(((e,t,a)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),r=Object.keys(s);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var o={};fera.getRatings(r,(e=>{new Promise(((t,a)=>{e.forEach((e=>{o[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(o)})).then((e=>a(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";o={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+r.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{o[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),o))).then((e=>a(e))).catch((e=>console.error(e)))}};var N=a(3388),P=a(7381),R=a(7376),q=a(7008);const W=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}];var G=function(e){const[t,a]=(0,i.useState)(),[r,o]=(0,i.useState)(),{whatmoreIsStoriesTemplate:l}=(0,i.useContext)(h.I),{whatmoreIsCollectionsTemplate:p}=(0,i.useContext)(h.I),{whatmoreIsBannerTemplate:m}=(0,i.useContext)(h.I),[v]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionId"),b=(0,n.MO)("whatmoreLandingLocationType"),S=(0,n.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(h.I),{whatmoreCollectionUrl:k}=(0,i.useContext)(h.I),[T]=(0,n.j1)("isInDesignMode"),[x]=(0,n.j1)("isDemoBrand"),E=(0,c.cZT)(v)?(0,c._uv)(v)?k:window.location.href.split(/[?#]/)[0]:g,[j,L]=(0,n.j1)("productRatings"),[C,M]=(0,i.useState)(!1);var O=(0,c.efR)(v)?s.Dm+"/v2/events/":s.Gc+"/v2/events/",G=(0,c.efR)(v)?s.Dm+"/get_eventset/":s.Gc+"/get_eventset/",K=(0,c.efR)(v)?s.Dm+"/v2/collection":s.Gc+"/v2/collection",z=(0,c.efR)(v)?s.Dm+"/v2/brand/"+v+"/product-events":s.Gc+"/v2/brand/"+v+"/product-events",V=e.shopId,B="live,upcoming",H="true";return(0,i.useEffect)((()=>{(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,q.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||r||!(0,u.KE)()||(0,n.MO)("whatmoreVideoPlayerPoolInitiated")||(0,_.b5)(_.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(b.startsWith("product"))if("66969960758"==v||"68934762745"==v)e=O.toString()+V.toString()+"?status="+B.toString()+"&is_active="+H.toString();else{var t=(0,n.MO)("whatmoreProductId");t=(0,c.iXA)(v)?function(e){return e.split(/[?#]/)[0]}(window.location.href):t,e=z.toString()+"?client_product_id="+t.toString()+"&status="+B.toString()+"&event_type=video"}else if(p||"invalid-url"!==k)e="".concat(K.toString(),"?store_id=").concat(V.toString(),"&client_collection_id=").concat("index"==b&&(0,c.igW)(v).length>0?(0,c.igW)(v)[0]:E);else if(m){const t=f.ls,a=(0,f.H1)(b);e=G.toString()+V.toString()+"?eventset_type="+t+"&source="+a+"&source_id="+v}else e=O.toString()+V.toString()+"?status="+B.toString()+"&is_active="+H.toString()+(l?"&template_type=stories":"");fetch(e).then((e=>e.json())).then((e=>{if(m){const t=f.ls;return(0,N.OC)(e,t)}return(0,N.kW)(e,p||"invalid-url"!==k)})).then((e=>(S&&console.debug("initial received events size : "+e.length),l||p||m?e:(0,N.e8)(e,V)))).then((e=>(null!=e&&0!=e.length&&(0,c.LUY)(v)&&function(e,t,a){const i=setInterval((()=>{null===(0,n.MO)("productRatings")&&D(e,t,a)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(v,e,(e=>{L(e)})),e))).then((e=>{null==e||0==e.length||l||m||(0,c.NOv)(V,e),a((x||T)&&null==e?W:e),M(!0)})).catch((e=>{o(e.message)}))}),[]),(0,i.useEffect)((()=>{"index"===b?t&&t.length>0&&(0,R.PB)({userInteractionType:y.K.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===b&&(t&&t.length>0||(0,c.miB)(v))&&(0,R.PB)({userInteractionType:y.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:I})}),[t]),(C&&(null==t||0==t.length)||r)&&h.$.forEach((e=>{var t,a,n,i;const s=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),r=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]'),o=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]'),l=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;(l||o||r||s)&&(r&&c||s&&c||l&&c||o&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||r?(0,w.jsx)("div",{}):(S&&(0,P.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),S&&console.debug("final transformed events data : "+JSON.stringify(t)),S&&console.debug("valid events size : "+t.length),(0,w.jsx)(A,{heading:e.heading,events:t}))},K=a(3933);var z=function(e){const[t]=(0,n.j1)("whatmoreShopId"),[a]=(0,n.j1)("whatmoreHeading"),[s,r]=(0,i.useState)(["initial",window.pageYOffset]),[o,l]=(0,i.useState)(!1),d=(0,n.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,p.ll)(t),!(0,c.wc0)(t))return;let e=window.pageYOffset,a=!1;const n=()=>{const t=window.pageYOffset;var n,i;Math.abs(t-e)<10?a=!1:(i=!0,r(n=[t>e?"scrolled-down":"scrolled-up",t]),n[1]>10&&l(i),e=t>0?t:0,a=!1)},i=()=>{a||(window.requestAnimationFrame(n),a=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[]);const[u,_,m]=(0,K.YD)({triggerOnce:!0});return(0,w.jsx)("div",{ref:u,style:{display:"block"},children:o||_||d||!(0,c.wc0)(t)?(0,w.jsx)(G,{heading:a,shopId:t}):(0,w.jsx)("div",{})})}},499:function(e,t){t.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(e,t,a){var n=a(499);t.Z=class{static getEventStatus(e){e.time_zone="GMT+5:30";var t=e.start_time+":00",a=e.end_time,i=e.scheduled_date,s=e.status,r=e.time_zone;if(s.toUpperCase()==n.Z.LIVE.name)return{status:n.Z.LIVE,bannerText:" "+n.Z.LIVE.name+" ",timeToStartInMins:0};if(s.toUpperCase()==n.Z.UPCOMING.name){var o=new Date(i+" "+t+" "+r),l=(new Date(i+" "+a+" "+r),function(e){var t=new Date,a=(e.getTime()-t.getTime())/1e3,i=a/60,s=i/60,r=s/24;return a<=0?{status:n.Z.COMPLETED,bannerText:" "+n.Z.COMPLETED.name+" ",timeToStartInMins:0}:a>=1&&a<=30?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(a)+" sec ",timeToStartInMins:a/60}:i<60?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:s<24?{status:n.Z.UPCOMING,bannerText:"Starts in "+Math.round(s)+" hr ",timeToStartInMins:60*s}:r<7?{status:n.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+" ",timeToStartInMins:60*r*24}:{status:n.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(o));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+e.event_id+", status : "+e.status),{status:n.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(e,t,a){a.d(t,{OC:function(){return o},e8:function(){return s},kT:function(){return n},kW:function(){return r},xg:function(){return i}});const n=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},s=function(e,t){if(null!=e)return e.filter((e=>1==n(e)))},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const o=function(e,t){var a;if(null==e)return[];if(!("eventsets"in e))return[];const n=null!==(a=e.eventsets[t])&&void 0!==a?a:null;return n?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(n):[]}},7376:function(e,t,a){a.d(t,{GF:function(){return i},PB:function(){return o},Z2:function(){return s},y4:function(){return r}});var n=a(733);function i(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function s(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function r(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}function o(e){let{userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:a,widgetSourceDetails:i,event:s,productList:r,ctaList:o})}}}]);
|