1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4442],{72193:function(t,e,r){r.d(e,{$B:function(){return f},z2:function(){return p},Pu:function(){return d},ky:function(){return c}});var n=r(31988),a=r(83580);let o=async(t,e)=>{let r=await (0,a.p)("search"),n=await r.post("api/search/v3/products",{json:{language:t,products:e.map(t=>({sku:t}))}});if(!n.ok)throw Error("Failed to fetch products by SKU: ".concat(await n.text()));return(await n.json()).products},u=async t=>{let e=await (0,a.p)("search"),r=await e.post("api/search/v3/products",{headers:{"Content-Type":"application/json"},body:JSON.stringify({language:t.language,query:{type:"MARKETING_CATEGORIES",categories:t.categoryIds,...void 0!==t.take&&{take:t.take},...void 0!==t.skip&&{skip:t.skip}}})});if(!r.ok)throw Error("Failed to fetch marketing category products: ".concat(r.statusText));return await r.json()},i=async t=>{let e=await (0,a.p)("search"),r=await e.post("api/search/v3/products",{headers:{"Content-Type":"application/json"},body:JSON.stringify({language:t.language,query:{type:"FUEL",value:!0,...void 0!==t.take&&{take:t.take},...void 0!==t.skip&&{skip:t.skip}}})});if(!r.ok)throw Error("Failed to fetch fuel products: ".concat(r.statusText));return await r.json()},s=async t=>{let e=await (0,a.p)("search"),r=await e.post("api/search/v3/products",{json:{language:t.language,query:{type:"BATTERY_SYSTEM",value:t.batterySystem,...void 0!==t.take&&{take:t.take},...void 0!==t.skip&&{skip:t.skip}}}});if(!r.ok)throw Error("Failed to fetch battery system products: ".concat(r.statusText));return await r.json()},l={all:["products"],allProducts:t=>[...l.all,"all-products",t],products:t=>[...l.all,"list",t],marketingCategory:t=>[...l.all,"marketing-category",t],fuelProducts:t=>[...l.all,"fuel",t],batterySystemProducts:t=>[...l.all,"battery-system",t]},c=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,n.a)({queryKey:l.products(t),queryFn:()=>o(t.language,t.products),enabled:e&&t.products.length>0})},d=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,n.a)({queryKey:l.marketingCategory(t),queryFn:()=>u(t),enabled:e&&t.categoryIds.length>0})},p=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,n.a)({queryKey:l.fuelProducts(t),queryFn:()=>i(t),enabled:e})},f=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,n.a)({queryKey:l.batterySystemProducts(t),queryFn:()=>s(t),enabled:e&&!!t.batterySystem})}},43849:function(t,e,r){r.d(e,{Y:function(){return y},Z:function(){return h}});var n=r(27573),a=r(56683),o=r(83723),u=r(36984);function i(){let t=(0,a._)(["\n my-2.5\n border-solid\n border\n border-gray-400\n"]);return i=function(){return t},t}function s(){let t=(0,a._)(["\n py-2.5\n bg-gray-50\n text-center\n"]);return s=function(){return t},t}function l(){let t=(0,a._)(["\n text-brandPrimary\n mb-1\n"]);return l=function(){return t},t}
1let c=o.Z.div(i()),d=o.Z.div(s()),p=(0,o.Z)(u.h)(l());var f=r(29242),g=r(95136),y=t=>{let{title:e,wrapperClass:r,titleClass:a}=t;return e?(0,n.jsx)(d,{className:r,children:(0,n.jsx)(p,{as:g.Yh,size:g.lZ,className:a,children:(0,n.jsx)(f.Z,{code:e,as:g.GF})})}):(0,n.jsx)(n.Fragment,{})},h=t=>{let{children:e,wrapperClass:r}=t;return(0,n.jsx)(c,{className:r,children:e})}},51512:function(t,e,r){r.d(e,{FC:function(){return u},Fz:function(){return s},Mo:function(){return l},UH:function(){return d},ZM:function(){return c},wt:function(){return o}});var n=r(7653);let a=/\{([a-zA-Z0-9-_]*)\}/g,o=(t,e)=>t.replace(a,(t,r)=>r in e?e[r]:""),u=(t,e)=>{let{current:r}=t;e?null==r||r.classList.add("active"):null==r||r.classList.remove("active")},i=t=>t.replace(/<\/?[^>]+(>|$)/g,""),s=t=>n.isValidElement(t)?t.props.alt||t.props.filename?t.props.alt||t.props.filename:t.props.code?i(String(t.props.code)):n.Children.toArray(t.props.children).map(s).join(" "):String(t),l=t=>{try{return JSON.parse(t)}catch(t){return console.warn(t),null}},c=t=>{let e;switch("mx"===window.location.hostname.split(".").pop()&&(t="es-MX"),null==t?void 0:t.toLowerCase()){case"fr-ca":e="/fr";break;case"es-us":e="/es";break;default:e=""}return e},d=t=>!!t},21181:function(t,e,r){r.d(e,{$h:function(){return s},BE:function(){return p},PN:function(){return l},cE:function(){return c},lm:function(){return d},pD:function(){return f},uS:function(){return y}});var n=r(51512);let a=t=>{let e=null==t?void 0:t.toLowerCase();switch("mx"===window.location.hostname.split(".").pop()&&(e="es-mx"),e){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"}}},o=/[\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/g,u=/ /g,i=t=>{if(!t||!t.trim())return"";let e=t.toLowerCase().normalize("NFD").replace(o,""),r="",n=!1;for(let t of e)t>="a"&&t<="z"||t>="0"&&t<="9"?(r+=t,n=!1):!n&&r.length>0&&(r+="-",n=!0);return r.length>0&&"-"===r[r.length-1]&&(r=r.slice(0,-1)),r},s=(t,e,r)=>{let o=(0,n.ZM)(e),{products:s,details:l}=a(e);return["".concat(o,"/").concat(s),r?l:void 0,r?i(r):void 0,t].filter(t=>!!t).join("/").replace(u,"-")},l=t=>{if(t)return new Date(t)<new Date},c=t=>{if(!t)return{isComingSoon:!0,isNew:!1,isPortfolio:!1};let e=new Date(t),r=new Date,n=new Date(r);r.setDate(r.getDate()-90);let a=e>n,o=e>r;return{isComingSoon:a,isNew:o,isPortfolio:!(a||o)}},d=t=>{if(!t)return"Coming Soon";let e=new Date(t),r=new Date;return e>new Date(r)?"Coming Soon":(r.setDate(r.getDate()-90),e>r)?"New":""},p=t=>{window.m_ink=g(t)},f=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.values(t).sort((t,e)=>t.order>e.order?-1:1)},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===Object.keys(t).length)return[];let e=[];for(let r of f(t))e.push(r.display);return{fullMarketingCategories:e}},y=t=>{let{showNotifyButton:e,comingSoon:r,earlyAnnouncementDate:n,publicAnnouncementDate:a,additionalConditions:o=!0}=t;return!1!==r&&(!!e||!(a&&new Date(a)<=new Date)&&o&&(!!r||!!n||!!a))}},13911:function(t,e,r){r.d(e,{u:function(){return u}});var n=r(80878),a=r(72193),o=r(63347);let u=t=>{let{products:e,skip:r}=t,u=(0,n.Z)(),i=(0,o.U)(),{data:s,isSuccess:l,isFetching:c,isLoading:d}=(0,a.ky)({products:e,language:u,sourceSystem:i},r?!r:!!(null==e?void 0:e.length));return{returnedProds:s||[],isSuccess:l,isFetching:c,isLoading:d}}},41111:function(t,e,r){r.r(e),r.d(e,{renderingId:function(){return l}});var n=r(27573),a=r(43849),o=r(13911),u=r(4144),i=r(43725),s=r(7577);let l="c62552e04f0f4f5fbf0790b56fb5cc6e";e.default=t=>{let{title:e,products:r=[],hideWithSearchQuery:l,...c}=t,d=(0,s.US)(t=>t.searchPage.query),{returnedProds:p,isLoading:f}=(0,o.u)({products:null==r?void 0:r.map(t=>t.sku)}),g=(null==p?void 0:p.filter(t=>(null==t?void 0:t.sku)&&(null==t?void 0:t.title)).map(t=>({title:t.title,sku:t.sku||"",heroImage:t.heroImage})))||[];return 0===(null==g?void 0:g.length)||f||l&&d&&!f?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(u.W2,{isBlock:!0,children:(0,n.jsxs)(a.Z,{wrapperClass:"w-full min-h-[343px]",children:[(0,n.jsx)(a.Y,{title:e}),(0,n.jsx)(i.Z,{data:g,...c})]})})}}}]);
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.