PageSourceSearch

https://www.matsmart.se/_next/static/immutable/chunks/12j55tk-t_y4c.js

js matsmart.se collected 2026-10-02 05:57:50 UTC 23,889 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b6fe174e-75ba-468d-95b2-1e070839739e")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340388,e=>{"use strict";var t=e.i(861745),r=e.i(843476);e.s(["NextIntlClientProvider",0,function({locale:e,...i}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...i})}],340388)},3303,(e,t,r)=>{t.exports=e.r(479520)},290571,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},r=function(){return(r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>r,"__awaiter",0,function(e,t,r,i){return new(r||(r=Promise))(function(o,a){function n(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(n,s)}l((i=i.apply(e,t||[])).next())})},"__extends",0,function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)},"__generator",0,function(e,t){var r,i,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=s(0),n.throw=s(1),n.return=s(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;n&&(n=0,u[0]&&(a=0)),a;)try{if(r=1,i&&(o=2&u[0]?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=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++,i=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).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],i=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},"__rest",0,function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r},"__spreadArray",0,function(e,t,r){if(r||2==arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}])},936869,e=>{"use strict";var t=e.i(343408),r=e.i(271645),i=e.i(207670),o=(0,t.require_jsx_runtime)();e.s(["Switch",0,({label:e,helperText:t,checked:a,id:n,ref:s,disabled:l,isLabelAfter:u,"data-testid":c,"data-testid-input":d,...p})=>{let f=(0,r.useId)(),h=n||f;return(0,o.jsxs)("div",{className:(0,i.default)("group items-start flex gap-2",{"flex-row-reverse":!u,"flex-row":u}),"data-testid":c,children:[(0,o.jsxs)("div",{className:(0,i.default)("relative box-border rounded-full transition w-12 flex-shrink-0","flex items-center transition-all","border-2 border-solid","outliine-0 outline-solid outline-offset-0 focus-within:outline focus-within:outline-[3px]","focus-within:border-highlight-blue-800 focus-within:outline-highlight-blue-600",{"opacity-50 cursor-not-allowed":l},{"border-neutral-300 bg-neutral-300":!a},{"border-highlight-blue-800 bg-highlight-blue-800":a}),children:[(0,o.jsx)("input",{id:h,"data-testid":d,checked:a,ref:s,t
2ype:"checkbox","aria-checked":a,"aria-describedby":t?`${h}-helper-text`:"",disabled:l,className:"appearance-none m-0 p-0 opacity-0 absolute -inset-1.5 cursor-pointer",...p}),(0,o.jsx)("div",{className:(0,i.default)("transition-all duration-300",{"flex-auto":a})}),(0,o.jsx)("div",{className:"block size-5 rounded-full bg-white"})]}),(0,o.jsxs)("div",{className:(0,i.default)("flex  flex-col gap-0.5",{"flex-0":u,"flex-1":!u}),children:[(0,o.jsx)("label",{htmlFor:h,className:(0,i.default)("text-base font-regular py-0.5",{"text-neutral-800":!l},{"text-neutral-600 cursor-not-allowed":l}),children:e}),t&&(0,o.jsx)("div",{id:`${h}-helper-text`,className:"text-neutral-600 text-sm",children:t})]})]})}])},282948,e=>{"use strict";var t=e.i(271645),r=e.i(392530),i=e.i(512116),o=e.i(783293);async function a(e){let t=await fetch((0,i.createDrupalUrl)("/jsonapi/index/products",e,{"filter[has_deals]":1,"filter[out_of_stock][condition][path]":"out_of_stock","filter[out_of_stock][condition][operator]":"<>","filter[out_of_stock][condition][value]":1}),{method:"get",signal:AbortSignal.timeout(1e4),next:{revalidate:60}});(0,o.assertResponseOk)("Failed to fetch deal products",t),(0,o.assertResponseStatus)("Failed to fetch deal products",t,200);let a=await t.json();return(0,r.processJsonApiProducts)(a)}let n=(0,t.cache)(a),s=(e,t)=>{let r=e.deals.filter(e=>e.type===t&&e.start_date).map(e=>new Date(e.start_date));return new Date(r.length>0?Math.max(...r.map(e=>e.getTime())):0)},l=async(e,t,r)=>(await n(e)).filter(e=>e.deals.some(e=>e.type===t)).sort((e,r)=>{let i=s(e,t);return s(r,t).getTime()-i.getTime()}).slice(0,r);e.s(["getDealProductsCached",0,n,"getFreeProductOffers",0,({products:e,dealType:t,limit:r})=>e.flatMap(e=>e.deals.filter(e=>e.type===t&&null!==e.claim_threshold).map(t=>({deal:t,product:e}))).sort((e,t)=>Number(e.deal.claim_threshold.number)-Number(t.deal.claim_threshold.number)||new Date(t.deal.start_date).getTime()-new Date(e.deal.start_date).getTime()).slice(0,r).map(({deal:e,product:t})=>({id:e.id,dealType:e.type,processedProduct:t,claimThreshold:e.claim_threshold})),"getFreeProductOffersByDealTypeAndThreshold",0,e=>{let t=new Map;for(let r of e){let e=`${r.dealType}-${r.claimThreshold.number}`,i=t.get(e);i?i.push(r):t.set(e,[r])}return t},"getWelcomeProductsSorted",0,l])},118966,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645),o=e.i(768834),a=e.i(141488);let n=(0,i.createContext)(void 0);function s(){return(0,o.create)((e,t)=>({tooltip:void 0,visible:!1,updateTooltip:r=>{let i=t().tooltip;i&&i.type===r.type||(e({tooltip:r,visible:!0}),a.appBridge.emitEvent("update_checkout_button_tooltip",{...r,visible:!0}))},hideTooltip:()=>{let r=t().tooltip;r&&(e({visible:!1}),a.appBridge.emitEvent("update_checkout_button_tooltip",{...r,visible:!1}))}}))}function l(e){return e.updateTooltip}e.s(["TooltipStoreProvider",0,e=>{let a,u,c,d=(0,r.c)(6),{children:p}=e,[f]=(0,i.useState)(s),h=(0,o.useStore)(f,l);return d[0]!==h?(a=()=>{let e=e=>{let{args:t}=e.detail;h(t[0])};return window.addEventListener("updateTooltip",e),()=>{window.removeEventListener("showEphemeralFlashMessage",e)}},u=[h],d[0]=h,d[1]=a,d[2]=u):(a=d[1],u=d[2]),(0,i.useEffect)(a,u),d[3]!==p||d[4]!==f?(c=(0,t.jsx)(n,{value:f,children:p}),d[3]=p,d[4]=f,d[5]=c):c=d[5],c},"triggerUpdateTooltipLegacy",0,function(...e){window.dispatchEvent(new CustomEvent("updateTooltip",{detail:{args:e}}))},"useTooltipStore",0,()=>{let e=(0,i.use)(n);if(!e)throw Error("useTooltipStore must be used as a child of TooltipStoreProvider");return e()}])},88477,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(522016),o=e.i(971664);function a(e){let{actions:t}=e;return t}e.s(["ProductDetailBreadcrumbLink",0,function(e){let n,s=(0,r.c)(5),{name:l,alias:u,replace:c}=e,{hideProductModal:d}=(0,o.useLayout)(a),p=!!c;return s[0]!==u||s[1]!==d||s[2]!==l||s[3]!==p?(n=(0,t.jsx)(i.default,{href:u,prefetch:!1,onClick:d,replace:p,children:l}
2,u),s[0]=u,s[1]=d,s[2]=l,s[3]=p,s[4]=n):n=s[4],n}])},187999,e=>{"use strict";e.s(["localStorageConfig",0,{sessionPathMetrics:{name:"sessionPathMetrics"},freeProductUpsellDismissals:{name:"freeProductUpsellDismissals"}}])},838775,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645);let o=(0,i.createContext)(void 0);e.s(["CurrentEmailInputValueContextProvider",0,e=>{let a,n,s=(0,r.c)(5),{children:l}=e,[u,c]=(0,i.useState)(void 0);return s[0]!==u?(a={currentEmailInputValue:u,setCurrentEmailInputValue:c},s[0]=u,s[1]=a):a=s[1],s[2]!==l||s[3]!==a?(n=(0,t.jsx)(o.Provider,{value:a,children:l}),s[2]=l,s[3]=a,s[4]=n):n=s[4],n},"useCurrentEmailInputValue",0,function(){let e=(0,i.use)(o);if(void 0===e)throw Error("useCurrentEmailInputValue must be used within a CurrentEmailInputValueContextProvider");return e}])},248152,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645),o=e.i(3303),a=e.i(117595),n=e.i(320111),s=e.i(574896),l=e.i(436583),u=e.i(148643),c=e.i(536650);let d=(0,i.createContext)(void 0);function p(){window.dgchat?.init()}e.s(["CustomerSupportChatProvider",0,e=>{let f,h,g,m,y=(0,r.c)(13),{children:v}=e,[S,w]=(0,i.useState)("idle"),b=(0,n.useMarket)(),_=s.marketConfig[b].dgChatWidgetId;y[0]!==S||y[1]!==b||y[2]!==_?(f=e=>{if("loaded"===S)window.dgchat?.methods.launchWidget();else if("idle"===S){if(!_)return;let t=(0,u.getQueryClient)().getQueryData((0,l.getUserQueryOptions)({market:b,accessToken:a.default.get(c.cookieConfig.accessToken.name)}).queryKey);window.DG_CHAT_WIDGET_CONFIG={widgetId:_,env:"eu",generalSettings:{isDialogMaximised:!0},metadata:{...t?.data.attributes.mail?{matsmart_customer_email:t.data.attributes.mail}:{},...e?{matsmart_order_number:e}:{}},callbacks:{onWidgetEmbedded:()=>{w("loaded")}}},w("loading")}},y[0]=S,y[1]=b,y[2]=_,y[3]=f):f=y[3];let C=f;return y[4]!==S||y[5]!==C?(h={openChat:C,chatStatus:S},y[4]=S,y[5]=C,y[6]=h):h=y[6],y[7]!==S?(g="idle"!==S&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(o.default,{src:"https://chat.digitalgenius.com/init.js",strategy:"afterInteractive",onLoad:p})}),y[7]=S,y[8]=g):g=y[8],y[9]!==v||y[10]!==h||y[11]!==g?(m=(0,t.jsxs)(d,{value:h,children:[v,g]}),y[9]=v,y[10]=h,y[11]=g,y[12]=m):m=y[12],m},"useCustomerSupportChat",0,()=>{let e=(0,i.use)(d);if(void 0===e)throw Error("useCustomerSupportChat must be used within a CustomerSupportChatProvider");return e}])},978618,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645);let o=(0,i.createContext)(void 0);e.s(["MenuStateProvider",0,e=>{let a,n,s=(0,r.c)(5),{children:l}=e,[u,c]=(0,i.useState)(!1);return s[0]!==u?(a=[u,c],s[0]=u,s[1]=a):a=s[1],s[2]!==l||s[3]!==a?(n=(0,t.jsx)(o,{value:a,children:l}),s[2]=l,s[3]=a,s[4]=n):n=s[4],n},"useMenuState",0,()=>{let e=(0,i.use)(o);if(void 0===e)throw Error("Context provider has not been setup for `useMenuState` to properly work. Setup an `MenuStateProvider` somewhere in the component tree.");return e}])},555703,e=>{"use strict";let t=(0,e.i(271645).createContext)(null);e.s(["OrderHistoryContext",0,t])},611408,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645);let o=(0,i.createContext)(void 0);e.s(["SearchProvider",0,e=>{let a,n,s=(0,r.c)(6),{children:l}=e,[u,c]=(0,i.useState)(!1),[d,p]=(0,i.useState)(!1);return s[0]!==d||s[1]!==u?(a={searchMobileIsOpen:u,setSearchMobileIsOpen:c,searchDesktopIsOpen:d,setSearchDesktopIsOpen:p},s[0]=d,s[1]=u,s[2]=a):a=s[2],s[3]!==l||s[4]!==a?(n=(0,t.jsx)(o,{value:a,children:l}),s[3]=l,s[4]=a,s[5]=n):n=s[5],n},"useSearch",0,()=>{let e=(0,i.use)(o);if(void 0===e)throw Error("Context provider has not been setup for `useSearch` to properly work. Setup an `SearchProvider` somewhere in the component tree.");return e}])},751361,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(618566),o=e.i(187999);let a=(0,r.createContext)(void 0);e.s(["SessionPathMetricsProvider",0,({children:e})=>{let n=(0,i.usePathname)(),s=(0,r.useRef)(new Set),l=(0,r.useRef)((()=>{try{let e=localStorage.getItem(o.localStorageConfig.sessionPathMetrics.name);if(!e)return{};let t=JSON.parse(e);return"object"==typeof t&&null!==t&&!Array.isArray(t)&&Object.values(t).every(e=>!("object"!=typeof e||null===e||Array.isArray(e))&&"lastVisitedAt"in e&&"string"==typeof e.lastVisitedAt&&(!("completedAt"in e)||"string"==typeof e.completedAt)&&(!("quickLinkImpressions"in e)||"number"==typeof e.quickLinkImpressions))?t:{}}catch{return{}}})()),u=(0,r.useMemo)(()=>l.current,[n]);return(0,r.useEffect)(()=>{s.current.clear()},[n]),(0,t.jsx)(a,{value:{sessionPathMetrics:u,updateSessionPathMetric:(e,t)=>{let r;r=void 0===l.current?{[e]:{...t,lastVisitedAt:t.lastVisitedAt||new Date().toISOString()}}:{...l.current,[e]:{...l.current[e],...t,lastVisitedAt:t.lastVisitedAt||new Date().toISOString()}},l.current=r,localStorage.setItem(o.localStorageConfig.sessionPathMetrics.name,JSON.stringify(r))},incrementQuickLinkImpressions:e=>{let t={...l.current},r=!1;for(let i of e){let e=t[i];e?.completedAt&&!s.current.has(i)&&(r=!0,s.current.add(i),t[i]={...e,quickLinkImpressions:(e.quickLinkImpressions??0)+1})}r&&(l.current=t,localStorage.setItem(o.localStorageConfig.sessionPathMetrics.name,JSON.stringify(t)))},clearSessionPathMetrics:()=>{s.current.clear(),l.current=void 0,localStorage.removeItem(o.localStorageConfig.sessionPathMetrics.name)}},children:e})},"useSessionPathMetrics",0,()=>{let e=(0,r.use)(a);if(void 0===e)throw Error("useSessionPathMetrics must be used within a SessionPathMetricsProvider");return e}],751361)},705685,e=>{"use strict";let t=(0,e.i(271645).createContext)(null);e.s(["ThompsonSamplingProductRecommendationsContext",0,t])},820619,e=>{"use strict";var t=e.i(500932),r=e.i(117595),i=e.i(536650),o=e.i(764248),a=e.i(616973),n=e.i(786115),s=e.i(141488),l=e.i(978610),u=e.i(574896),c=e.i(320111),d=e.i(751361);e.s(["useClearCart",0,()=>{let e,p=(0,t.c)(6),{removeCookie:f,setCookie:h}=(0,o.useCookieActions)(),g=(0,n.useAppDispatch)(),m=(0,c.useMarket)(),{clearSessionPathMetrics:y}=(0,d.useSessionPathMetrics)();return p[0]!==y||p[1]!==g||p[2]!==m||p[3]!==f||p[4]!==h?(e={clearCart:()=>{f(i.cookieConfig.basketId.name);let e=r.default.get(i.cookieConfig.commerceCartToken.name);e&&h(i.cookieConfig.previousCommerceCartToken.name,e,{expires:14}),f(i.cookieConfig.commerceCartToken.name),s.appBridge.emitEvent("update_checkout",{boxes:1,freeShippingPercentage:0,cartTotal:(0,l.formatShortPrice)(0,u.marketConfig[m].currencyName,u.marketConfig[m].locale),secondaryBoxFreeShipping:!1}),f("step-products"),f("step-postalCode"),f("step-shipping"),f("step-address"),f("step-payment"),f("discountCode"),y(),g((0,a.clearCart)())}},p[0]=y,p[1]=g,p[2]=m,p[3]=f,p[4]=h,p[5]=e):e=p[5],e}])},329509,e=>{"use strict";var t=e.i(500932),r=e.i(933818),i=e.i(748102),o=e.i(282948),a=e.i(320111),n=e.i(353194);e.s(["useFreeProductOffers",0,()=>{let e,s,l,u=(0,t.c)(8),c=(0,a.useMarket)(),{shippingLevelsFreeProductDealType:d,shippingLevelsFreeProductAmount:p}=(0,n.useGlobalExperiments)();if(u[0]!==c)e=(0,r.queryOptions)({queryKey:["dealProducts",c],queryFn:()=>(0,o.getDealProductsCached)(c),staleTime:6e4,retry:e=>e<=2}),u[0]=c,u[1]=e;else e=u[1];return u[2]!==p||u[3]!==d?(s=e=>(0,o.getFreeProductOffers)({products:e,dealType:d,limit:p}),u[2]=p,u[3]=d,u[4]=s):s=u[4],u[5]!==e||u[6]!==s?(l={...e,select:s},u[5]=e,u[6]=s,u[7]=l):l=u[7],(0,i.useMaybeBrowserOnlySuspenseQuery)(l)}])},570194,e=>{"use strict";var t=e.i(500932),r=e.i(764248),i=e.i(536650);e.s(["useGeoPreference",0,()=>{let e,o,a=(0,t.c)(4),{setCookie:n}=(0,r.useCookieActions)();a[0]!==n?(e=e=>{n(i.cookieConfig.geoPreference.name,e,{expires:365})},a[0]=n,a[1]=e):e=a[1];let s=e;return a[2]!==s?(o={setGeoPreference:s},a[2]=s,a[3]=o):o=a[3],o}])},8435,e=>{"use strict";var t=e.i(618566),r=e.i(183330);let i=["en","sv","da","fi","de"];e.s(["useLang",0,function(){let e=(0,t.useParams)(),o=e?.lang;if(!i.some(e=>e===o))throw(0,r.addBreadcrumb)({category:"debug",message:"useParams() value",level:"info",data:{params:e}}
2),console.trace(),Error(`useLang received an invalid lang: ${String(o)}`);return o}],8435)},705056,764242,e=>{"use strict";var t=e.i(843476),r=e.i(117595),i=e.i(368972),o=e.i(941521);let a=(e,t)=>{let r=t.length;return 0===e?t[0]??0:e>r?t[r-1]??0:t[e-1]??0};e.s(["getFreeShippingThresholdForPackageNumber",0,a],764242);var n=e.i(978610),s=e.i(141488),l=e.i(148643),u=e.i(48824),c=e.i(574896),d=e.i(118966),p=e.i(536650);let f=({market:e,t,productCount:r})=>(0,o.hasTooltipBeenViewed)("tapbarFirstProductAddShown")||!c.marketConfig[e].isFirstProductAddedTooltipEnabled||r<0?null:((0,o.setLocalObject)("tapbarFirstProductAddShown",!0),{text:t("TOOLTIP.FIRST_PRODUCT_ADDED"),type:"firstProductAdd"}),h=({market:e,isApp:r,t:i,currentCart:o,previousCart:n,thresholds:s})=>{let l=o.raw_totals.product_total,u=o.shipping_info.number_of_packages,c=a(u,s);if(l>=c)return null;let d=n.raw_totals?.product_total??0,p=n.shipping_info?.number_of_packages??0,f=y(l,s,u),h=y(d,s,p),g=a(f+1,s);if(!v(l,d,f,h,g))return null;let m=S({market:e,currency:o.currency})(g-l),w=f!==u-1?f+1:0,b=Math.min(Math.max(l/c,0),1)||0;return{text:i.rich("TOOLTIP.REMAINING_AMOUNT_TO_FREE_SHIPPING",{highlight:r?e=>`<span className='text-warning-orange-800'>${e}</span>`:e=>(0,t.jsx)("span",{className:"text-warning-orange-800",children:e}),amount:m,packageNumberForFreeShipping:s.length>1?w:0}),shippingPercentage:b,type:b>=.75?"amountRemainingLastThreshold":"amountRemainingFirstThreshold"}},g=({market:e,isApp:r,t:i,currentCart:o,previousCart:n,thresholds:s})=>{let l=o.raw_totals.product_total,u=n.raw_totals?.product_total??0,c=o.shipping_info.number_of_packages,d=n.shipping_info?.number_of_packages??0,p=y(l,s,c),f=y(u,s,d),h=a(c,s),g=l>=h;if(!(p>f))return null;let m=Math.min(Math.max(l/h,0),1)||0,v=S({market:e,currency:o.currency})(h-l);return g?{text:i("FREE_SHIPPING_TOOLTIP.HEADING"),showCheckmark:!0,shippingPercentage:m,type:"freeShipping"}:{text:i("FREE_SHIPPING_TOOLTIP.PARTIAL",{count:p}),showCheckmark:!0,secondaryText:i.rich("FREE_SHIPPING_TOOLTIP.REMAINING",{highlight:r?e=>`<span className='text-highlight-blue-800'>${e}</span>`:e=>(0,t.jsx)("span",{className:"text-highlight-blue-800",children:e}),remainder:v}),shippingPercentage:m,type:"partialFreeShipping"}},m=({market:e,currentCart:t,thresholds:r})=>{let i=t.raw_totals.product_total,o=t.shipping_info.number_of_packages,l=Math.min(Math.max(i/a(o,r),0),1)||0,u=t.totals.product_total.amount??(0,n.formatShortPrice)(0,c.marketConfig[e].currencyName,c.marketConfig[e].locale),d=y(i,r,o)>=o-1;s.appBridge.emitEvent("update_checkout",{boxes:o,freeShippingPercentage:l,cartTotal:u,secondaryBoxFreeShipping:d})},y=(e,t,r)=>e>(t[t.length-1]??0)?r:Math.min(t.findIndex(t=>e>=t)+1,r),v=(e,t,r,i,o)=>{if(r===i&&void 0!==t&&e>t){let r=o*(t<.5*o?.5:.75);return e>=r&&t<r}return!1},S=({market:e,currency:t})=>w(t)?(0,n.formatCurrency)(c.marketConfig[e].locale,t,{precision:2,decimalPlaces:2,truncateTrailingZeroes:!0}):()=>"",w=e=>["SEK","DKK","EUR","CHF"].includes(e);e.s(["getNumberOfPackagesWithFreeShipping",0,y,"tooltipMiddleware",0,({market:e,isApp:t,t:o})=>n=>s=>c=>{if(c.type===i.GET_CART_SUCCESS&&t){let t=(0,l.getQueryClient)().getQueryData(["shippingMethods",c.orderExperiments.shippingOfferVariant,e]);if(!t)return s(c);let{firstFreeBoxOrderValue:r,allBoxesFreeOrderValue:i}=u.shippingMethodSelector.orderValues(t),o=[...new Set([r,i])];return m({market:e,currentCart:c.cart,thresholds:o}),s(c)}if(c.type!==i.ADD_ITEMS_TO_CART_SUCCESS&&c.type!==i.UPDATE_PRODUCTS_QUANTITY_IN_CART_SUCCESS)return s(c);let y=[...new Set([c.items[0]?.firstFreeBoxOrderValue,c.items[0]?.allBoxesFreeOrderValue])];if(!y.every(e=>"number"==typeof e))return s(c);let v=c.cart,S=n.getState().cartState.cart;r.default.set(p.cookieConfig.cartProductTotal.name,c.cart.raw_totals.product_total.toString(),{expires:1}),r.default.set(p.cookieConfig.cartThresholds.name,JSON.stringify({empty:0,minimum_order_value:c.cart.raw_totals.minimum_total,free_shipping:a(1,y)}),{expires:1});let w=(({market:e,isApp:t,t:r,currentCart:i,previousCart:o,thresholds:a})=>{let n=g({market:e,isApp:t,t:r,currentCart:i,previousCart:o,thresholds:a});if(n)return n;let s=h({market:e,isApp:t,t:r,currentCart:i,previousCart:o,thresholds:a});if(s)return s;
2let l=f({market:e,t:r,productCount:i.products_count});return l||null})({market:e,isApp:t,t:o,currentCart:v,previousCart:S,thresholds:y});return w&&(0,d.triggerUpdateTooltipLegacy)(w),t&&m({market:e,currentCart:v,thresholds:y}),s(c)}],705056)},141488,e=>{"use strict";var t=e.i(662537);let r={};function i(e,t,r){let i={action:e,eventName:t,data:r,timestamp:new Date().toISOString()};window.appBridgeEventLogs.push(i)}window.handlers=r,window.appBridgeEventLogs=[],setTimeout(()=>{window.addEventListener("onWidgetOpened",()=>{o.emitEvent("show_header",!1)}),window.addEventListener("onWidgetClosed",()=>{o.emitEvent("show_header",!0)})},100);let o={registerEventReceiver:function(e,t){r[e]=r=>{t(r),i("receive",e,r)}},emitEvent:function(e,r){{let o=JSON.stringify({eventName:e,data:r});setTimeout(function(){try{void 0!==window.ReactNativeWebView&&"function"==typeof window.ReactNativeWebView.postMessage&&window.ReactNativeWebView.postMessage(o),i("send",e,r)}catch(e){(0,t.captureException)(e,{level:"error",extra:{description:"window.ReactNativeWebView.postMessage(payload) could not be called",window,payload:o}})}},500*!window.ReactNativeWebView)}}};e.s(["appBridge",0,o])},483196,e=>{"use strict";var t=e.i(187999),r=e.i(797344);let i=()=>{try{let e=r.localStore.getItem(t.localStorageConfig.freeProductUpsellDismissals.name);if(!e)return[];let i=JSON.parse(e);return Array.isArray(i)&&i.every(e=>!("object"!=typeof e||null===e||Array.isArray(e))&&"dealId"in e&&"string"==typeof e.dealId&&"productId"in e&&"string"==typeof e.productId)?i:[]}catch{return[]}};e.s(["isFreeProductUpsellDismissed",0,({dealId:e,productId:t})=>i().some(r=>r.dealId===e&&r.productId===t),"setDismissFreeProductUpsell",0,({dealId:e,productId:o})=>{let a=i();a.some(t=>t.dealId===e&&t.productId===o)||r.localStore.setItem(t.localStorageConfig.freeProductUpsellDismissals.name,JSON.stringify([...a,{dealId:e,productId:o}]))}])},33918,e=>{"use strict";e.s(["ERROR",0,"ERROR","LOADING",0,"LOADING","SUCCESS",0,"SUCCESS","WAITING",0,"WAITING"])},797344,e=>{"use strict";let t=function(t){let r={};function i(){try{let r="__zjVDaRuCKLECkxFjCkqV__";return e.g[t].setItem(r,r),e.g[t].removeItem(r),!0}catch{return!1}}return{getItem:function(o){return i()?e.g[t].getItem(o):Object.prototype.hasOwnProperty.call(r,o)?r[o]:null},setItem:function(o,a){i()?e.g[t].setItem(o,a):r[o]=String(a)},removeItem:function(o){i()?e.g[t].removeItem(o):delete r[o]},clear:function(){i()?e.g[t].clear():r={}},key:function(o){return i()?e.g[t].key(o):Object.keys(r)[o]||null},length:0}}("localStorage");e.s(["localStore",0,t],797344)},941521,e=>{"use strict";var t=e.i(117595),r=e.i(797344),i=e.i(536650);let o=(e,t)=>{r.localStore.setItem(e,JSON.stringify(t))};e.s(["hasTooltipBeenViewed",0,e=>"true"===r.localStore.getItem(e),"setLocalObject",0,o,"shouldShowNewsletterModal",0,({categoryVisitsThreshold:e})=>{if(!r.localStore.getItem("newsletterModalShown")){let t=Number.parseInt(r.localStore.getItem("categoryVisits")??"0");if(o("categoryVisits",t+1),t>=e)return o("newsletterModalShown",!0),!0}return!1},"trackVisit",0,()=>{let e=Date.now();if(e-Number(t.default.get(i.cookieConfig.lastVisit.name)??"0")>18e5){let e=Number.parseInt(t.default.get(i.cookieConfig.visits.name)??"0");t.default.set(i.cookieConfig.visits.name,(e+1).toString(),{expires:365})}t.default.set(i.cookieConfig.lastVisit.name,e.toString(),{expires:365})}])}]);
3
4//# debugId=b6fe174e-75ba-468d-95b2-1e070839739e

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.