1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1290],{10068:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(23735);function o(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.A)(t,e)}},18632:(t,e,n)=>{"use strict";n.d(e,{Gd:()=>h,O1:()=>p,Oi:()=>s,Rm:()=>c,T_:()=>a,ZW:()=>o,ff:()=>i,fs:()=>u,qn:()=>l,rD:()=>r});var r="INFO",o="WARN",i="ERROR",s="DEBUG";function c(t,e,n,r,o,i,s){return{type:"LOG",level:t,message:e,error:n,componentId:o,creatorNamespace:r,contractVersion:i,instanceId:s}}var a="UPDATE_CART_COUNT",u="ADD_TO_CART_SUCCESS",h="REQUEST_INTERRUPTION_PERMISSION",l=function(t){return{type:h,payload:{deviceClass:t.deviceClass,interruptionId:t.interruptionId,interruptionType:t.interruptionType,placement:t.placement,requestedInterruptionDuration:t.requestedInterruptionDuration,options:t.options}}},p="INTERRUPTION_PERMISSION_RESPONSE"},36611:(t,e,n)=>{"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,{A:()=>r})},37825:function(t){!function(){if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var t=function(t){for(var e=t,n=o(e);n;)n=o(e=n.ownerDocument);return e}(window.document),e=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){r=t&&n?p(t,n):h(),e.forEach(function(t){t._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,r=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!(t&&1==t.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var r=this._checkForIntersections,i=null,s=null;if(this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(e,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),a(t,"resize",r,!0)),a(e,"scroll",r,!0),s&&s.disconnect()}),e!=(this.root&&(this.root.ownerDocument||this.root)||t)){var u=o(e);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==e)return!0}return!1})){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),e!=r){var s=o(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||r){var t=this._rootIsInDom(),e=t?this._getRootRect():h();
1this._observationTargets.forEach(function(r){var o=r.element,s=u(o),c=this._rootContainsTarget(o),a=r.entry,l=t&&c&&this._computeTargetAndRootIntersection(o,s,e),p=null;this._rootContainsTarget(o)?(!n||this.root)&&(p=e):p=h();var f=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:s,rootBounds:p,intersectionRect:l});a?t&&c?this._hasCrossedThreshold(a,f)&&this._queuedEntries.push(f):a&&a.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,o,i){if("none"!=window.getComputedStyle(e).display){for(var s=o,c=d(e),a=!1;!a&&c;){var h=null,l=1==c.nodeType?window.getComputedStyle(c):{};if("none"==l.display)return null;if(c==this.root||9==c.nodeType)if(a=!0,c==this.root||c==t)n&&!this.root?r&&(0!=r.width||0!=r.height)?h=r:(c=null,h=null,s=null):h=i;else{var f=d(c),m=f&&u(f),g=f&&this._computeTargetAndRootIntersection(f,m,i);m&&g?(c=f,h=p(m,g)):(c=null,s=null)}else{var y=c.ownerDocument;c!=y.body&&c!=y.documentElement&&"visible"!=l.overflow&&(h=u(c))}if(h&&(s=function(t,e){var n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),i=Math.min(t.right,e.right),s=i-o,c=r-n;return s>=0&&c>=0&&{top:n,bottom:r,left:o,right:i,width:s,height:c}||null}(h,s)),!s)break;c=c&&d(c)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=u(this.root);else{var n=m(this.root)?this.root:t,r=n.documentElement,o=n.body;e={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return f(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){0>e.indexOf(this)&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time,this.target=t.target,this.rootBounds=l(t.rootBounds),this.boundingClientRect=l(t.boundingClientRect),this.intersectionRect=l(t.intersectionRect||h()),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;n?this.intersectionRatio=Number((o/n).toFixed(4)):this.intersectionRatio=+!!this.isIntersecting}function s(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){n(),o=null},r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,n)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function p(t,e){var n=e.top-t.top,r=e.left-t.left;
1return{top:n,left:r,height:e.height,width:e.width,bottom:n+e.height,right:r+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=d(n)}return!1}function d(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?o(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host)?n.host:n}function m(t){return t&&9===t.nodeType}}(),t.exports=function(t,e,n){var r,o,i,s,c,a,u;return("number"==typeof n?(r=n,o=!1,i=0):(r=(n=n||{}).rootMargin||0,o=n.alwaysFire||!1,i=n.threshold||0),r=Math.abs(r),"IntersectionObserver"in window&&"IntersectionObserverEntry"in window)?(s=r,c=o,a=i,(u=new IntersectionObserver(function(t,n){t.forEach(function(t){(t.isIntersecting||t.intersectionRatio)&&(e(),c||n.disconnect())})},{root:null,rootMargin:"".concat(s,"px 0px ").concat(s,"px 0px"),threshold:a||[0]})).observe(t),function(){return u.disconnect()}):function(){return null}}},46218:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v,embeddedComponentDefaultProps:()=>_,embeddedComponentPropTypes:()=>w});var r=n(33709),o=n(55988),i=n(83068),s=n(64670),c=n(36611),a=n(10068),u=n(26674),h=n(7620),l=n(43070),p=n.n(l),f=n(69420),d=n(68537);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach(function(e){(0,u.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}var v=function(t){function e(t,n){var i,a,u;return(0,o.A)(this,e),a=e,u=[t,n],a=(0,c.A)(a),(i=(0,s.A)(this,y()?Reflect.construct(a,u||[],(0,c.A)(this).constructor):a.apply(this,u))).state={isClient:t.renderClientOnly||("u"<typeof window?"undefined":(0,r.A)(window))==="object",html:t.testing_html||"",fetchedComponentHtml:!1},i}return(0,a.A)(e,t),(0,i.A)(e,[{key:"filterIllegalQueryParams",value:function(t){var e=t.query;e&&Object.keys(e).forEach(function(t){t.startsWith("_")&&(console.error("LibEmbeddedComponent: Illegal query param ".concat(t,". Query params cannot be prefixed with '_'")),delete e[t])})}},{key:"fetchHtml",value:function(t){var e=this,n=(this.context||{}).log,r=this.props,o=r.onInitError,i=r.onInitSuccess;return this.filterIllegalQueryParams(t),(0,f.fetchComponent)(g(g({},t),{},{omitEmptyComponentDiv:!1})).then(function(n){e.setState(g(g({},n),{},{fetchedComponentHtml:!0})),n.renderCallback||i(b(n,t))}).catch(function(e){n&&n.error("LibEmbeddedComponent: Failed to fetch embedded component ".concat((0,f.buildComponentPath)(t)),e),o(e)})}},{key:"executeRenderCallback",value:function(){var t=this.props,e=t.onInitError,n=t.onInitSuccess;if(this.state.renderCallback){try{this.state.renderCallback(this.ref)}catch(t){e(t);return}finally{this.setState({renderCallback:null})}n(b(this.state,this.props))}}},{key:"getWrapperElement",value:function(){return this.props.wrapperElementTag?this.props.wrapperElementTag:"div"}},{key:"componentDidMount",value:function(){var t=this.props,e=t.creatorNamespace,n=t.componentId,r=t.contractVersion,o=t.onInitSuccess,i=t.parentInstanceId,s="div[id^=".concat(e,"-").concat(n,"]"),c="div[data-".concat(e,"-").concat(n,"-").concat(r,"]"),a=this.ref.querySelector(s),u=this.ref.querySelector(c),h=this.ref.querySelector("csi\\:component[cn^=".concat(e,"]"));if(a||h){f.afterServerRender?(0,f.afterServerRender)({creatorNamespace:e,componentId:n,contractVersion:r},i,this.ref):console.warn("This page is using an outdated version of @bestbuy/gvp-lib-embedded-component-renderer that doesn't support afterServerRender");var l=a?a.outerHTML:"";o(b(g(g({},this.state),{},{html:l}),this.props))}else u?o(b({html:u.outerHTML},this.props)):this.fetchHtml(this.props)}},{key:"componentWillUnmount",value:function(){this.props.applyDeInitializer&&this.ref.firstElementChild.id&&window&&window.initializer&&window.initializer.deInitializeInstance(this.ref.firstElementChild.id)}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=(0,f.buildComponentPath)(t),n=(0,f.buildComponentPath)(this.props);"u">typeof window&&e!==n&&(this.state.renderCallback&&this.setState({renderCallback:null}),this.fetchHtml(t))}}
1,{key:"componentDidUpdate",value:function(){this.executeRenderCallback()}},{key:"shouldComponentUpdate",value:function(t,e){var n=e.html!==this.state.html,r=e.fetchedComponentHtml&&!this.state.fetchedComponentHtml;return e.fetchedComponentHtml&&n||r}},{key:"render",value:function(){var t=this,e=this.state.html;this.state.isClient||(e=(0,f.getComponentIncludeString)(this.props));var n={__html:e},r=this.getWrapperElement();return h.createElement(r,{ref:function(e){return t.ref=e},suppressHydrationWarning:!0,dangerouslySetInnerHTML:n})}}])}(h.Component);function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{didServerRender:!t.html.includes("data-".concat(e.creatorNamespace,"-").concat(e.componentId,"-").concat(e.contractVersion))}}(0,u.A)(v,"contextType",d.K_);var _={layoutClassList:"",onError:"continue",onInitError:function(){},onInitSuccess:function(){},query:{}};v.defaultProps=_;var w={creatorNamespace:p().string.isRequired,componentId:p().string.isRequired,contractVersion:p().string.isRequired,renderClientOnly:p().bool,layoutClassList:p().string,parentInstanceId:p().string.isRequired,query:p().object,onInitError:p().func,onInitSuccess:p().func,onError:p().oneOf(["failParent","continue"]),lazyHydrate:p().bool,wrapperElementTag:p().string,testing_html:p().string,applyDeInitializer:p().bool};v.propTypes=w},55988:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}n.d(e,{A:()=>r})},64670:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(33709);function o(t,e){if(e&&("object"==(0,r.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},68537:(t,e,n)=>{"use strict";n.d(e,{K_:()=>h,Yz:()=>_,z3:()=>b,pq:()=>y,L2:()=>m,jv:()=>d,k3:()=>f,R8:()=>v});var r,o,i,s,c=n(18632),a=n(7620),u=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=(0,a.createContext)(null),l=a.Component;function p(){return null!==l&&l.apply(this,arguments)||this}function f(t){o=t}function d(t){i=t}function m(t){s=t}function g(t,e,n){var r=(0,c.Rm)(t,e,n,s&&s.creatorNamespace,s&&s.componentId,s&&s.contractVersion,i);o&&o.dispatch?o.dispatch(r):"u">typeof actionLog&&actionLog.dispatch(r,i)}function y(t,e){g(c.rD,t,e)}function v(t,e){g(c.ZW,t,e)}function b(t,e){g(c.ff,t,e)}function _(t,e){g(c.Oi,t,e)}u(p,l),p.prototype._getLogValue=function(){var t=this.props,e=t.componentId,n=t.creatorNamespace,r=t.contractVersion,c=t.instanceId;return o=t.store,i=c,s={componentId:e,creatorNamespace:n,contractVersion:r},{log:{debug:_,error:b,info:y,warn:v}}},p.prototype.render=function(){return a.createElement(h.Provider,{value:this._getLogValue()},this.props.children)}},83068:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(38348);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.A)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}}}]); 2//# sourceMappingURL=1290-14408f4107e2b0b3.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.