1"use strict";(self.webpackChunkapp_react_swatch=self.webpackChunkapp_react_swatch||[]).push([[824],{4164:(t,e,r)=>{function n(t){var e,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=n(t[e]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}r.d(e,{A:()=>a});const a=function(){for(var t,e,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=n(t))&&(a&&(a+=" "),a+=e);return a}},8443:(t,e,r)=>{r.r(e),r.d(e,{default:()=>u});var n=r(4164),a=r(6540);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const l="hide",u=function(){var t;const e=criDataStore.getState().product,r=(f=(0,a.useState)(e),d=2,function(t){if(Array.isArray(t))return t}(f)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o,l,u=[],i=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);i=!0);}catch(t){c=!0,a=t}finally{try{if(!i&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw a}}return u}}(f,d)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(f,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=r[0],i=r[1],c=(0,a.useRef)(null),s=criDataStore.getBrandData().isFlikFlak;var f,d;(0,a.useEffect)(()=>{criDataStore.eventBus().on("product.viewdata.udpated",t=>{i(t)})},[]),(0,a.useEffect)(()=>{var t;if(!c.current)return;const e=null===(t=c.current)||void 0===t?void 0:t.closest(".b-product-badges");var r;e&&(null!=u&&null!==(r=u.productBadges)&&void 0!==r&&r.total?e.classList.remove(l):e.classList.add(l))},[u]);let p=u.productBadges;return React.createElement("div",{ref:c},(null!==(t=null==p?void 0:p.textBadges)&&void 0!==t?t:[]).map(function(t,e){var r;return React.createElement("span",{className:(0,n.A)("absolute left-5 top-5 z-10 rounded-md px-3 py-1.5 text-xs uppercase text-white desktop:relative desktop:left-0 desktop:top-2",{"!bg-[#004b87]":s,"bg-black":!s}),key:t.id},null===(r=t.text)||void 0===r?void 0:r.title)}))}}}]);
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.