vendor: 4,151 bytes, line 1
1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[1378,6881],{41535:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function b(){}function _(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var w=_.prototype=new b;w.constructor=_,v(w,m.prototype),w.isPureReactComponent=!0;var S=Array.isArray,g=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)g.call(t,o)&&!k.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];u.children=l}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var $=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+C(i,0):u,S(a)?(o="",null!=e&&(o=e.replace($,"$&/")+"/"),j(a,t,o,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace($,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",S(e))for(var l=0;l<e.length;l++){var s=u+C(c=e[l],l);i+=j(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(c=e.next()).done;)i+=j(c=c.value,t,o,s=u+C(c,l++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function T(e,t,r){if(null==e)return e;var n=[],o=0;return j(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null},L={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:E};t.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=_,t.StrictMode=u,t.Suspense=s,t.__SECRET_INT
vendor: 4,404 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)g.call(t,l)&&!k.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==i?i[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){i=Array(l);for(var s=0;s<l;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.current.useTransition()},t.version="18.2.0"},27378:(e,t,r)=>{e.exports=r(41535)},2190:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r(27378),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},u=function(e,t,r,n){return new(r||(r=Promise))((function(o,u){function a(e){try{i(n.next(e))}catch(e){u(e)}}function c(e){try{i(n.throw(e))}catch(e){u(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}i((n=n.apply(e,t||[])).next())}))},a=function(e,t){var r,n,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,u=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=u.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}return a};const i=function(e){var t=e.initialPanelTag,r=void 0===t?"newest":t,i=(0,n.useRef)(r),l=(0,n.useRef)(1),s=c((0,n.use
1State)(!1),2),f=s[0],p=s[1],d=(0,n.useRef)(null),y=(0,n.useRef)(null),v=(0,n.useRef)(null),h=c((0,n.useState)(0),2),m=h[0],b=h[1],_=c((0,n.useState)(""),2),w=_[0],S=_[1],g=c((0,n.useState)([]),2),E=g[0],k=g[1],R=c((0,n.useState)(!1),2),x=R[0],$=R[1];(0,n.useEffect)((function(){var e;d.current=document.querySelector("#reviews-sort-order-select"),y.current=document.querySelectorAll(".load-more__link"),v.current=document.querySelector(".product-reviews__pagination"),(null===(e=v.current)||void 0===e?void 0:e.dataset)&&(b(parseInt(v.current.dataset.totalItems||"0")),S(v.current.dataset.loadMore||"")),d.current&&k(Array.from(d.current.options).map((function(e){return{panelTag:e.value,content:""}}))),p(!0)}),[]);var C=function(e,t){return u(void 0,void 0,void 0,(function(){var r,n,o;return a(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),r=function(e){return"".concat(e).concat(e.includes("?")?"&":"?","ajax_context=").concat(window.location.pathname)}("/_review/gettab/".concat(e,"/").concat(t)),[4,fetch(r)];case 1:if(!(n=u.sent()).ok)throw new Error("Network response was not ok");return[4,n.text()];case 2:return[2,u.sent().replace(/<ul[^>]*>/,"").replace(/<\/ul>/,"")];case 3:return o=u.sent(),console.error("Error fetching reviews:",o),[2,""];case 4:return[2]}}
1))}))},j=function(e,t){return u(void 0,void 0,void 0,(function(){var r,n,u;return a(this,(function(a){switch(a.label){case 0:return[4,C(e,t)];case 1:return(r=a.sent())?(n=document.createRange().createContextualFragment(r),u=n.querySelectorAll(".product-review-item").length,l.current=t,function(e){if(v.current&&w){var t=w.replace("{0}",e.toString()).replace("{1}",m.toString());v.current.innerHTML=t,v.current.dataset.currentItems=e.toString()}}(u),y.current&&y.current.forEach((function(e){e.hidden=u>=m})),k((function(t){return t.map((function(t){return t.panelTag===e?o(o({},t),{content:r}):t}))})),[2]):[2]}}))}))},T=function(e){j(e,1),i.current=e,document.querySelectorAll(".product-reviews__panel").forEach((function(e){e.classList.remove("product-reviews__panel--visible")}));var t=document.querySelector('.product-reviews__panel[data-panel-tag="'.concat(e,'"]'));t&&t.classList.add("product-reviews__panel--visible")},O=function(e){j(i.current,1);var t=e.target.value;i.current=t,T(t)};return(0,n.useEffect)((function(){if(f&&E.length)return T(E[0].panelTag),E.slice(1).forEach((function(e){j(e.panelTag,1)})),d.current&&d.current.addEventListener("change",O),y.current&&y.current.forEach((function(e){e.addEventListener("click",(function(e){var t,r;e.preventDefault(),t=i.current,r=l.current+1,u(void 0,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:$(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,j(t,r)];case 2:return n.sent(),[3,5];case 3:return e=n.sent(),console.error("Error loading more reviews:",e),[3,5];case 4:return $(!1),[7];case 5:return[2]}}
1))}))}))})),function(){d.current&&d.current.removeEventListener("change",O)}}),[f]),n.createElement(n.Fragment,null,E.map((function(e){return n.createElement("ul",{key:e.panelTag,className:"product-reviews__panel ".concat(e.panelTag," ").concat(e.panelTag===i.current?"product-reviews__panel--visible":""),"data-panel-tag":e.panelTag,dangerouslySetInnerHTML:{__html:e.content}})})),x&&n.createElement("div",{className:"ajax-loader"}))}}}]);
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.