PageSourceSearch

https://saabparts.com/_next/static/chunks/7988.e93115a89c0cb94d.js

js saabparts.com collected 2026-10-02 11:32:25 UTC 7,148 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7988],{97988:(e,t,a)=>{a.r(t),a.d(t,{default:()=>y});var r=a(2183),s=a(80304),i=a(95420),n=a(94164),l=a(36439),c=a(98356),o=a(3638),p=a(79077),m=a(69215),d=a(98878),x=a(38436),h=a(96001),b=a(58777),u=a(97584),g=a(40892),f=a(33970),j=a(95607);let v={src:"/_next/static/media/payment.6140e98b.png",height:25,width:159,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAMAAADU3h9xAAAAFVBMVEUWXp4CVZ7yEhfMkbD5dgjYmrjaq7oK8OTJAAAAB3RSTlNQco3vsbRo8G2cmQAAAAlwSFlzAAALEwAACxMBAJqcGAAAABFJREFUCJljYGBkYGJhY2YFAABHABajLNfRAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:1};function y({linkToCheckout:e,linkToMyAccount:t}){let{vat:a,cart:N,msrpEnabled:A}=(0,g.Pj)(e=>e),{isFreeShippingEnabled:S}=(0,u.E2)(),{regionCode:k,currencyCode:w}=(0,b.nT)(e=>e),{data:_}=(0,n.wV)(),{t:E}=(0,x.s9)(),P=(0,h.useRouter)(),C=N?.items[0]?.currencyCode??w??"SEK",[M,F]=(0,l.useState)([]),R=(0,l.useMemo)(()=>N?.items.map(e=>e.sku)??[],[N?.items]),V=(0,l.useMemo)(()=>(0,f.X9)(N?.items??[],M),[N?.items,M]);return(0,l.useEffect)(()=>{0===R.length||k&&(0,j.P)(R,P,k).then(e=>{F(e.content)})},[R,P.locale]),(0,r.jsxs)(r.Fragment,{children:[N&&(0,r.jsx)(s.AM,{className:"flex h-full",children:({open:x})=>{let h,b;return(0,l.useEffect)(()=>{x&&(0,d.R)("view_cart",{ecommerce:{currency:C,value:N.total.price.payableNetPrice,items:N.items.map(e=>({item_id:e.sku,item_name:e.name,price:(0,f.Fe)(e,!1)/e.quantity,quantity:e.quantity,discount:(0,f.pl)(e,!1)/e.quantity,item_brand:e.meta?.supplier,item_category:e.meta?.category_primary,item_category2:e.meta?.category_secondary,item_category3:e.meta?.category_tertiary}))}})},[x]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.ut,{className:"hover:border-text-link data-[open]:bg-background-100 flex cursor-pointer items-center gap-2 border-b border-b-transparent pl-2 pr-3 transition",name:"cart",children:[(0,r.jsxs)("span",{className:"relative",children:[(0,r.jsx)(c.aJ,{}),(h=N.items.reduce((e,t)=>e+t.quantity,0))>0?(0,r.jsx)("span",{className:"bg-primary text-text-invert-primary absolute -right-1 -top-1 flex h-3 min-w-3 items-center rounded-full p-1 text-[10px] transition",children:h}):null]}),(0,r.jsx)("span",{className:"block max-[360px]:hidden",children:(b=a?N.total.price.payableGrossPrice:N.total.price.payableNetPrice,(0,m.vv)(b,C,P.locale||"sv-SE",!0))})]}),(0,r.jsx)(s.YT,{className:"fixed inset-0 z-10 bg-black/30 duration-200 ease-in-out data-[closed]:opacity-0",transition:!0}),(0,r.jsx)(s.QT,{className:"bp:rounded-corner bp:shadow-lg bp:!absolute bg-background-100 bp:h-auto bp:w-auto bp:min-w-sm max-bp:!top-0 bp:-mt-2 !fixed z-50 flex h-dvh !max-h-full w-full flex-col justify-between",anchor:"bottom end",modal:!1,children:({close:s})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"bg-foundation",children:[(0,r.jsxs)("div",{className:"p-sm gap-sm flex items-center",children:[(0,r.jsx)("h3",{className:"text-text-primary flex-1",children:E("cartTitle")}),(0,r.jsx)(i.J,{children:(0,r.jsx)(c.US,{})})]}),(0,r.jsx)("div",{className:"bp:max-h-[calc(100vh-412px)] divide-outline border-outline max-h-[calc(100dvh-365px)] divide-y overflow-y-auto border-t",children:N.items.map(e=>(0,r.jsx)(p.default,{item:e,cartId:N.cartId,close:s,className:"px-sm",cartArticleData:M.find(t=>t.sku===e.sku)},e.lineIdentifier))}),!N.items.every(e=>e.meta?.part_type==="Service")&&(0,r.jsxs)("div",{className:"px-sm border-outline flex items-center justify-between border-b border-t py-3",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"font-semibold leading-none",children:E("cartShippingMin")}),(0,r.jsx)("span",{className:"text-text-secondary text-sm leading-none",children:E("cartShippingMinDescription")})]}),(0,r.jsx)("span",{className:"gap-sm flex items-center text-right",children:(0,r.jsxs)("div",{className:"leading-tight",children:[(0,m.vv)(N.freeShipping<=0?0:a?N.total.grossMinShipping:N.total.netMinShipping,C,P.locale||"sv-SE"),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-xs",children:a?E("cartVat"):E("cartNoVat")})]})})]})]}),(0,r.jsxs)("div",{className:"bg-foundation border-outline -mt-0.5 border-t",children:[(0,r.jsxs)("div",{className:"border-outline px-sm gap-sm flex items-center justify-between border-b py-3",children:[(0,r.jsx)("span",{className:"bp:mr-auto font-semibold",children:E("cartTotal")}),(0,r.jsx)(c._V,{src:v,alt:""}),(0,r.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[!A&&N.total.price.grossPrice+V.gross-N.total.price.payableGrossPrice>.005&&N.total.price.netPrice+V.net-N.total.price.payableNetPrice>.005&&(0,r.jsx)("span",{className:"text-important font-medium leading-none",children:(0,m.vv)((()=>{let{price:e,grossMinShipping:t,netMinShipping:r}=N.total;return(a?e.payableGrossPrice:e.payableNetPrice)+(N.items.every(e=>e.meta?.part_type==="Service")||N.freeShipping<=0?0:a?t:r)})(),C,P.locale||"sv-SE")}),(0,r.jsx)("span",{className:(0,o.A)(!A&&N.total.price.grossPrice+V.gross-N.total.price.payableGrossPrice>.005&&N.total.price.netPrice+V.net-N.total.price.payableNetPrice>.005&&"text-sm line-through","leading-none"),children:(0,m.vv)((()=>{let{price:e,grossMinShipping:t,netMinShipping:r}=N.total;return(a?e.grossPrice+V.gross:e.netPrice+V.net)+(N.items.every(e=>e.meta?.part_type==="Service")||N.freeShipping<=0?0:a?t:r)})(),C,P.locale||"sv-SE")}),(0,r.jsx)("span",{className:"text-xs leading-none",children:a?E("cartVat"):E("cartNoVat")})]})]}),S&&(0,r.jsxs)("div",{className:"bg-primary bp:bg-background-100 text-primary-contrast bp:text-text-primary px-sm flex items-center justify-center gap-3 py-1",children:[(0,r.jsx)(c.Rx,{}),N.freeShipping>0?E("cartRemainingFreeShipping",{amountLeft:(0,m.vv)(N.freeShipping,C,P.locale||"sv-SE",!0)}):E("cartFreeShipping")]}),(0,r.jsxs)("div",{className:"p-sm gap-sm bp:flex-row flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"gap-sm flex w-full",children:[(0,r.jsx)(c.$n,{
1className:"bg-primary text-primary-contrast bp:px-16 rounded-corner flex-1 text-nowrap p-3 text-center",href:e,variant:"primary",onClick:()=>{P.push(e),s()},children:E("cartCheckout")}),(0,r.jsx)(c.$n,{className:"border-text-primary bp:px-16 rounded-corner flex-1 whitespace-nowrap border p-3",variant:"ghost",onClick:()=>s(),children:E("cartContinueShopping")})]}),(0,r.jsx)("div",{className:"bp:order-first bp:text-left col-span-2 w-full text-center",children:_?(0,r.jsx)(c.N_,{href:t,onClick:()=>s(),locale:P.locale,className:"text-text-link text-sm underline",children:E("cartMyAccount")}):(0,r.jsx)("button",{type:"button",className:"text-text-link text-sm underline",onClick:()=>(0,n.Jv)("auth0"),children:E("cartLogIn")})})]})]})]})})]})}}),!N&&(0,r.jsx)("div",{className:"flex h-full",children:(0,r.jsxs)("div",{className:"hover:border-text-link data-[open]:bg-background-100 group flex items-center gap-2 border-b border-b-transparent pl-2 pr-3 transition",children:[(0,r.jsx)("span",{className:"relative",children:(0,r.jsx)(c.aJ,{})}),(0,r.jsx)("span",{className:"block max-[360px]:hidden",children:(0,m.vv)(0,w||"SEK",P.locale||"sv-SE",!0)})]})})]})}}}]);

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.