1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[457],{33604:function(e,t,n){n.r(t),n.d(t,{default:function(){return C}});var r=n(27573),o=n(7577),a=n(25119),i=n(7653),l=n(56683),u=n(83723);function c(){let e=(0,l._)(["\n CoveoPager \n inline-block \n m-[0_auto] \n text-center \n w-full \n font-helveticaBase \n text-brandDarkGray\n"]);return c=function(){return e},e}function s(){let e=(0,l._)(["\n coveo-pager-list \n pl-0 \n m-0 \n inline-block\n"]);return s=function(){return e},e}function d(){let e=(0,l._)(["\n coveo-pager-list-item \n cursor-pointer \n m-[5px_6px] \n p-[4px_8px] \n list-none \n inline-block \n align-baseline \n no-underline \n text-14 \n w-8 \n h-8 \n text-center\n hover:underline\n hover:bg-brandDarkGray\n hover:rounded-full\n group\n ","\n"]);return d=function(){return e},e}function p(){let e=(0,l._)(["\n group-hover:text-[#cddee9]\n group-hover:underline\n ","\n"]);return p=function(){return e},e}function f(){let e=(0,l._)(["\n group-hover:text-[#cddee9]\n group-hover:underline\n cursor-pointer\n opacity-50\n hover:opacity-100\n\n"]);return f=function(){return e},e}let g=u.Z.div(c()),h=u.Z.ul(s()),v=u.Z.li(d(),e=>{let{active:t}=e;return t&&"bg-brandDarkGray text-brandBlack rounded-full hover:underline"}),w=u.Z.span(p(),e=>{let{active:t}=e;return t?"text-[#cddee9]":"text-brandDarkGray"}),m=u.Z.span(f());var x=n(55862),_=n(23203);let D=e=>Math.max(Math.floor(e/40)+1,1),k=e=>[...Array.from({length:5},(t,n)=>e+n)];var b=()=>{let e=(0,o.US)(e=>e.searchPage.first),t=(0,o.US)(e=>e.searchPage.totalCountFiltered),[n,a]=(0,i.useState)(1),l=(0,o.bO)(),u=(0,o.US)(e=>e.searchPage.query),c=(0,_.D)(),s=D(e),d=Math.ceil(t/40),p=e=>{l((0,x.Vx)({first:40*e}))};(0,i.useEffect)(()=>{a(Math.max(D(e)-2,1))},[e]),(0,i.useEffect)(()=>
1{l((0,x.Vx)({page:s,totalPages:d}))},[l,d,s]);let f=(e,t)=>{c({event:"show_content_engagement_tracking",action_type:"change focus",action_category:"results management",action_content:"index"===t?(e+1).toString():"navigation controls",action_target:s<e+1?"forward":"backward",action_parent:u||"serchPage",action_parent_detail:void 0,action_depth:e+1,action_depth_context:e+1,action_level:void 0,action_level_context:void 0})};return 1===d?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(g,{children:(0,r.jsxs)(h,{children:[s>1&&(0,r.jsx)(m,{onClick:()=>{p(s-2),f(s-2,"backward")},children:"Prev"}),k(n).map(e=>e<=d?(0,r.jsx)(v,{active:s===e,onClick:()=>{p(e-1),f(e-1,"index")},children:(0,r.jsx)(w,{active:s===e,children:e})},e):null),s<d&&(0,r.jsx)(m,{onClick:()=>{p(s),f(s,"forward")},children:"Next"})]})})};let y=e=>e.map(e=>{let{sku:t,title:n,primaryimage:r,marketingz32xcategories:o,launchz32xdate:a,batteryz32xsystem:i,colorOptions:l}=e.raw,u=null==o?void 0:o.split(";").reduce((e,t,n)=>(e[t]={order:n,display:t,url:""},e),{});return{type:"PRODUCT",sku:t,title:n,heroImage:{url:r,alt:n},launchDate:new Date(a).toString(),marketingCategories:u,specs:{batterySystem:{name:i,display:i,value:i}},colorOptions:l||[]}});var C=()=>{let e=y((0,o.US)(e=>e.searchPage.results));return(0,r.jsx)(a.Z,{products:e,slots:{pagination:(0,r.jsx)(b,{})}})}},51512:function(e,t,n){n.d(t,{FC:function(){return i},Fz:function(){return u},Mo:function(){return c},UH:function(){return d},ZM:function(){return s},wt:function(){return a}});var r=n(7653);let o=/\{([a-zA-Z0-9-_]*)\}/g,a=(e,t)=>e.replace(o,(e,n)=>n in t?t[n]:""),i=(e,t)=>{let{current:n}=e;t?null==n||n.classList.add("active"):null==n||n.classList.remove("active")},l=e=>e.replace(/<\/?[^>]+(>|$)/g,""),u=e=>r.isValidElement(e)?e.props.alt||e.props.filename?e.props.alt||e.props.filename:e.props.code?l(String(e.props.code)):r.Children.toArray(e.props.children).map(u).join(" "):String(e),c=e=>{try{return JSON.parse(e)}catch(e){return console.warn(e),null}},s=e=>{let t;switch("mx"===window.location.hostname.split(".").pop()&&(e="es-MX"),null==e?void 0:e.toLowerCase()){case"fr-ca":t="/fr";break;case"es-us":t="/es";break;default:t=""}return t},d=e=>!!e},21181:function(e,t,n){n.d(t,{$h:function(){return u},BE:function(){return p},PN:function(){return c},cE:function(){return s},lm:function(){return d},pD:function(){return f},uS:function(){return h}});var r=n(51512);let o=e=>{let t=null==e?void 0:e.toLowerCase();switch("mx"===window.location.hostname.split(".").pop()&&(t="es-mx"),t){case"fr-ca":return{products:"produits",details:"details"};case"es-us":case"es-mx":return{products:"productos",details:"detalles"};default:return{products:"products",details:"details"}}},a=/[\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/g,i=/ /g,l=e=>{if(!e||!e.trim())return"";let t=e.toLowerCase().normalize("NFD").replace(a,""),n="",r=!1;for(let e of t)e>="a"&&e<="z"||e>="0"&&e<="9"?(n+=e,r=!1):!r&&n.length>0&&(n+="-",r=!0);return n.length>0&&"-"===n[n.length-1]&&(n=n.slice(0,-1)),n},u=(e,t,n)=>{let a=(0,r.ZM)(t),{products:u,details:c}=o(t);return["".concat(a,"/").concat(u),n?c:void 0,n?l(n):void 0,e].filter(e=>!!e).join("/").replace(i,"-")},c=e=>{if(e)return new Date(e)<new Date},s=e=>{if(!e)return{isComingSoon:!0,isNew:!1,isPortfolio:!1};let t=new Date(e),n=new Date,r=new Date(n);n.setDate(n.getDate()-90);let o=t>r,a=t>n;return{isComingSoon:o,isNew:a,isPortfolio:!(o||a)}},d=e=>{if(!e)return"Coming Soon";let t=new Date(e),n=new Date;return t>new Date(n)?"Coming Soon":(n.setDate(n.getDate()-90),t>n)?"New":""},p=e=>{window.m_ink=g(e)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.values(e).sort((e,t)=>e.order>t.order?-1:1)},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===Object.keys(e).length)return[];let t=[];for(let n of f(e))t.push(n.display);return{fullMarketingCategories:t}},h=e=>{let{showNotifyButton:t,comingSoon:n,earlyAnnouncementDate:r,publicAnnouncementDate:o,additionalConditions:a=!0}=e;return!1!==n&&(!!t||!(o&&new Date(o)<=new Date)&&a&&(!!n||!!r||!!o))}}}]);
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.