PageSourceSearch

https://www.insiderstore.com.br/cdn/shop/t/1700/assets/buy-togethe…?v=132228344521383372141790023073

js insiderstore.com.br collected 2026-09-24 17:50:40 UTC 9,492 bytes, 2 lines download raw bytes

1"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,i){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,i||[],_getPrototypeOf(e).constructor):t.apply(e,i))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,e)},_wrapNativeSuper(e)}function _construct(e,t,i){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return i&&_setPrototypeOf(o,i.prototype),o}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}var BuyTogetherLookCard=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t)).currentIndex=0,e.intervalId=null,e.slides=[],e.storiesContainer=null,e.stories=[],e.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)"),e.mediaQuery=window.matchMedia("(min-width: 990px)"),e.handleMouseEnter=e.handleMouseEnter.bind(e),e.handleMouseLeave=e.handleMouseLeave.bind(e),e.handleFocusIn=e.handleFocusIn.bind(e),e.handleFocusOut=e.handleFocusOut.bind(e),e.handleVisibilityChange=e.handleVisibilityChange.bind(e),e.handleBreakpointChange=e.handleBreakpointChange.bind(e),e.handleReducedMotionChange=e.handleReducedMotionChange.bind(e),e}return _inherits(t,_wrapNativeSuper(HTMLElement)),_createClass(t,[{key:"c
1onnectedCallback",value:function(){"true"!==this.dataset.buyTogetherCardInitialized&&(this.dataset.buyTogetherCardInitialized="true",this.updateActiveDeviceElements(),this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),document.addEventListener("visibilitychange",this.handleVisibilityChange),this.mediaQuery.addEventListener("change",this.handleBreakpointChange),this.prefersReducedMotion.addEventListener("change",this.handleReducedMotionChange),this.startAutoplay())}},{key:"disconnectedCallback",value:function(){this.stopAutoplay(),this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),document.removeEventListener("visibilitychange",this.handleVisibilityChange),this.mediaQuery.removeEventListener("change",this.handleBreakpointChange),this.prefersReducedMotion.removeEventListener("change",this.handleReducedMotionChange),delete this.dataset.buyTogetherCardInitialized}},{key:"autoplayDelay",get:function(){var e=Number(this.dataset.autoplaySeconds||5);return!Number.isFinite(e)||e<=0?0:1e3*Math.max(e,2)}},{key:"getDevice",value:function(){return this.mediaQuery.matches?"desktop":"mobile"}},{key:"getSlides",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getDevice();return Array.from(this.querySelectorAll('[data-buy-together-card-slide][data-buy-together-card-device="'.concat(e,'"]')))}},{key:"getStoriesContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getDevice();return this.querySelector('[data-buy-together-card-stories][data-buy-together-card-device="'.concat(e,'"]'))}},{key:"getStories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getDevice();return Array.from(this.querySelectorAll('[data-buy-together-card-stories][data-buy-together-card-device="'.concat(e,'"] [data-buy-together-card-story]')))}},{key:"updateActiveDeviceElements",value:function(){var e=this.getDevice(),t="desktop"===e?"mobile":"desktop";this.slides=this.getSlides(e),this.storiesContainer=this.getStoriesContainer(e),this.stories=this.getStories(e),this.resetInactiveDevice(t),this.currentIndex=0,this.slides.length>0&&this.showSlide(0),this.updateStoriesVisibility()}},{key:"resetInactiveDevice",value:function(e){var t=this.getSlides(e),i=this.getStoriesContainer(e),n=this.getStories(e);t.forEach((function(e,t){var i=0===t;e.classList.toggle("is-active",i),e.setAttribute("aria-hidden",String(!i))})),null==i||i.classList.remove("is-visible"),n.forEach((function(e){e.classList.remove("is-active","is-complete")}
1))}},{key:"updateStoriesVisibility",value:function(){if(this.storiesContainer){var e=this.slides.length>1&&this.autoplayDelay>0&&!this.prefersReducedMotion.matches;this.storiesContainer.classList.toggle("is-visible",e)}}},{key:"updateStories",value:function(e){var t=this;this.stories.forEach((function(i,n){var o=i.querySelector(".buy-together-collection-card__story-progress");i.classList.remove("is-active","is-complete"),o&&(o.style.animation="none"),n<e?i.classList.add("is-complete"):n===e&&(i.style.setProperty("--buy-together-autoplay-duration","".concat(t.autoplayDelay,"ms")),i.classList.add("is-active"),o&&(o.offsetWidth,o.style.animation=""))}))}},{key:"pauseStories",value:function(){this.stories.forEach((function(e){var t=e.querySelector(".buy-together-collection-card__story-progress");if(t){var i=window.getComputedStyle(t).transform;t.style.animation="none",t.style.transform=i}}))}},{key:"handleMouseEnter",value:function(){this.stopAutoplay()}},{key:"handleMouseLeave",value:function(){this.startAutoplay()}},{key:"handleFocusIn",value:function(){this.stopAutoplay()}},{key:"handleFocusOut",value:function(e){this.contains(e.relatedTarget)||this.startAutoplay()}},{key:"handleVisibilityChange",value:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{key:"handleBreakpointChange",value:function(){this.stopAutoplay(),this.updateActiveDeviceElements(),this.startAutoplay()}},{key:"handleReducedMotionChange",value:function(){this.updateStoriesVisibility(),this.prefersReducedMotion.matches?this.stopAutoplay():this.startAutoplay()}},{key:"startAutoplay",value:function(){var e=this;this.clearAutoplay(),this.slides.length<=1||!this.autoplayDelay||this.prefersReducedMotion.matches||document.hidden||(this.updateStories(this.currentIndex),this.intervalId=window.setInterval((function(){var t=(e.currentIndex+1)%e.slides.length;e.showSlide(t)}),this.autoplayDelay))}},{key:"clearAutoplay",value:function(){null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null)}},{key:"stopAutoplay",value:function(){this.clearAutoplay(),this.pauseStories()}},{key:"showSlide",value:function(e){this.slides[e]&&(this.currentIndex=e,this.slides.forEach((function(t,i){var n=i===e;t.classList.toggle("is-active",n),t.setAttribute("aria-hidden",String(!n))})),this.updateStories(e))}}])}();customElements.get("buy-together-look-card")||customElements.define("buy-together-look-card",BuyTogetherLookCard);
2//# sourceMappingURL=buy-together-collection-card.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.