PageSourceSearch

https://www.tre.se/_next/static/chunks/8765.fe4c118ab70280ab.js

js tre.se collected 2026-10-01 11:39:17 UTC 14,286 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2309,8765],{8765:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var r=n(23798),o=n(21462),a=n(12584),i=n(10224);function l(){let e=(0,a._)(["\n  margin-bottom: ",";\n  margin-top: ",";\n  "," {\n    margin-bottom: ",";\n    margin-top: ",";\n  }\n"]);return l=function(){return e},e}let c=i.A.div(l(),e=>{let{theme:t}=e;return t.customSpacing.xxsmall},e=>{let{theme:t}=e;return t.customSpacing.xxsmall},e=>{let{theme:t}=e;return t.breakpoints.up("mobileL")},e=>{let{theme:t}=e;return t.customSpacing.large},e=>{let{theme:t}=e;return t.customSpacing.large}),u=e=>{let{children:t}=e;return o.createElement(c,null,t)};var s=n(8127),d=n(56593),f=n(76889),m=n(65070);let p=e=>{let{size:t,text:n}=e;return o.createElement(m.A,{firstItem:!0,size:t},n)};var T=n(44767),C=n(85255),v=n(22309),E=n(56812);let g=e=>{let{smallImage:t,largeImage:n,breakPoint:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.default,{sizes:"(max-width: ".concat(o,") 100vw, 0px"),...t,className:(0,E.A)("block lg:hidden",t.className)}),(0,r.jsx)(v.default,{...n,className:(0,E.A)("hidden lg:block",n.className)})]})};var N=n(97383),_=n(46834),O=n(82335),h=n(80586),P=n(43974),b=n(58880),x=n(31073),y=n(44415),A=n(73187),w=n(29973),R=n(82339),k=n(28973),j=n(41192),I=n(26914);function Y(){let e=(0,a._)(["\n  height: 0;\n  padding-top: ",";\n  position: relative;\n  width: 100%;\n"]);return Y=function(){return e},e}function D(){let e=(0,a._)(["\n  height: 100%;\n  left: 0;\n  object-fit: cover;\n  position: absolute;\n  top: 0;\n  width: 100%;\n"]);return D=function(){return e},e}let S=i.A.div(Y(),e=>{let{aspectRatio:t,maxHeight:n}=e;return n?"min(".concat(n,", calc(").concat(1/t," * 100%))"):"calc(".concat(1/t," * 100%)")}),L=i.A.video(D()),M=o.forwardRef((e,t)=>{let{videoUrl:n,aspectRatio:r,maxHeight:a,onVideoLoaded:i,onCantPlay:l}=e;return o.createElement(S,{aspectRatio:r,maxHeight:a},o.createElement(L,{ref:t,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,src:n+"#t=0.1",onCanPlay:i,onSuspend:e=>{e.target.play().catch(()=>{l&&l()})}}))});function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var H,B=function(e){var t,n={unsupported:H=!("undefined"!=typeof navigator&&"connection"in navigator&&"effectiveType"in navigator.connection),effectiveConnectionType:H?e:navigator.connection.effectiveType},r=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(n))||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),2!==n.length);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}(),a=r[0],i=r[1];return(0,o.useEffect)(function(){if(!H){var e=navigator.connection,t=function(){i({effectiveConnectionType:e.effectiveType})};return e.addEventListener("change",t),function(){e.removeEventListener("change",t)}}},[]),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(n,!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},a,{setNetworkStatus:i})};if("undefined"!=typeof navigator&&"deviceMemory"in navigator){var V="memory"in performance?performance.memory:null;navigator.deviceMemory,V&&V.totalJSHeapSize,V&&V.usedJSHeapSize,V&&V.jsHeapSizeLimit}else;"undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency;let U=["slow-2g","2g","3g"],z=(0,o.forwardRef)((e,t)=>{let{fallback:n,...a}=e,[i,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!0),{effectiveConnectionType:s}=B("4g"),d=(0,I.A)("(prefers-reduced-motion: reduce)");return!c||d||!i&&(e=>!!(e&&U.includes(e)))(s)?(0,r.jsx)(r.Fragment,{children:n}):(0,r.jsx)(M,{...a,ref:t,onCantPlay:()=>a.videoUrl&&u(!1),onVideoLoaded:()=>l(!0)})});z.displayName="AdaptiveVideo";let G=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),W=e=>{let{image:t,mobileVideo:n,desktopVideo:a,isFiftyFifty:i}
1=e,{breakpoints:l,maxHeroHeight:c}=(0,j.u)(),u=(0,o.useRef)(null),s=(0,o.useRef)(null),[d,f]=(0,o.useState)(""),[m,p]=(0,o.useState)(""),T=(0,I.A)(l.down("laptop"));return((0,o.useLayoutEffect)(()=>{if(u.current||s.current){let e=u.current;e&&(null==n?void 0:n.src)&&G(e)&&f(n.src);let t=s.current;t&&(null==a?void 0:a.src)&&G(t)&&p(null==a?void 0:a.src)}},[T,null==a?void 0:a.src,null==n?void 0:n.src]),(null==a?void 0:a.src)&&(null==n?void 0:n.src))?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"lg:hidden",children:(0,r.jsx)(z,{ref:u,aspectRatio:1,fallback:t,videoUrl:d})}),(0,r.jsx)("div",{className:"hidden lg:block",children:(0,r.jsx)(z,{ref:s,aspectRatio:i?1.5:3,fallback:t,maxHeight:c,videoUrl:m})})]}):(0,r.jsx)(r.Fragment,{children:t})},q=e=>{let t,{blockPosition:n,children:a,content:i,cta:l,ctaColor:c,desktopImage:m,fiftyFiftyImage:j,fiftyFiftyBackgroundColor:I,headingText:Y,headingSize:D,id:S,keyId:L,legalText:M,legalTextPosition:F="before-cta",mobileImage:H,textAlignment:B,desktopVideo:V,mobileVideo:U,textColor:z,textPosition:G,contentType:q,updatedAt:K}=e,X=(0,A.t)(D,Y),{pageContext:J,path:Z}=(0,P.SF)(),Q=(0,x.e)("FAST_VERSION"),$=()=>{"/"===Z&&(0,C.n)(Q,y.fM)},ee={blockPosition:n,content:i,contentType:q,heading:null==X?void 0:X.text,id:S,updatedAt:K},et=(0,b.O)([ee],e=>{(0,k.N)(e.map(e=>(0,R.R)({pathname:window.location.pathname,promotion:e})))});if(!m)return(0,r.jsx)("div",{className:"bg-PRIMARY_OFF_WHITE flex min-h-[25rem] items-center justify-center",children:"Desktop image missing"});let en=(0,w.H)((0,R.R)({pathname:window.location.pathname,promotion:ee})),er=(e=>!!e&&"No background color"!==e)(I),eo=null,ea=(null==c?void 0:c.toLowerCase())||"";(null==l?void 0:l.type)==="externalLink"&&(eo=(0,r.jsx)(u,{children:(0,r.jsx)(_.A,{color:(t=s.pu,e=>Object.values(t).includes(e))(ea)?ea:"secondary",href:null==l?void 0:l.href,onClick:$,trackingData:en,variant:"contained",children:l.text})}));let ei=er&&j,el={...ei?j:m,className:(0,E.A)("lg:max-h-[60vh] lg:w-full",ei?"md:h-full md:object-cover":"lg:aspect-3/1 lg:h-auto lg:object-cover"),sizes:ei?"(max-width: ".concat(h.A.md,") 1vw, 50vw"):"(max-width: ".concat(h.A.lg,") 1vw, 100vw"),priority:!0,quality:85},ec=(null==H?void 0:H.src)?(0,r.jsx)(g,{smallImage:H,largeImage:el,breakPoint:ei?h.A.md:h.A.lg}):(0,r.jsx)(v.default,{...el});(V||U)&&(ec=(0,r.jsx)(W,{desktopVideo:V,image:ec,isFiftyFifty:er,mobileVideo:U}));let eu=(null==l?void 0:l.href)?(0,r.jsx)(N.A,{href:null==l?void 0:l.href,onClick:$,children:ec}):ec;return(0,o.createElement)(d.A,{className:(0,E.A)(J.breadcrumbIsToggled&&"mt-(--gap-spacing)"),fiftyFiftyBackgroundColor:I,...et(S),key:L,background:ec,ctaNode:eo,href:null==l?void 0:l.href,isSplitBackground:er,linkComponent:eu,textColor:z,textPosition:G,"data-testid":O.Y.HERO},(0,r.jsxs)(f.A,{textAlignment:B,children:[X&&(0,r.jsx)(p,{size:X.size,text:X.text}),i&&(0,r.jsx)(T.A,{children:i}),a,M&&"before-cta"===F&&(0,r.jsx)(T.A,{className:"text-xs",children:M}),eo,M&&"after-cta"===F&&(0,r.jsx)(T.A,{className:"text-xs",children:M})]}))}},22309:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(23798),o=n(77158),a=n.n(o),i=n(56812);let l=e=>{let{src:t,width:n,quality:r}=e;return"".concat(t,"&w=").concat(n,"&q=").concat(r||75)},c=[256,384,640,750,828,1080,1200,1920,2048,3840],u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:75;return c.map(n=>"".concat(e,"&w=").concat(n,"&q=").concat(t," ").concat(n,"w")).join(", ")},s=e=>{var t;let{alt:n,spaceAbove:o,spaceBelow:c,className:s,blurDataUrl:d,src:f,useContentfulLoader:m,...p}=e;if(!f)return null;let T={};m&&(T={loader:l,src:"".concat(f,"?fm=webp")});let C=(0,r.jsx)(a(),{alt:n||"",className:(0,i.A)({"mb-(--gap-spacing)":c,"mt-(--gap-spacing)":o},"h-auto w-full",s),sizes:"25vw",src:f,...T,...d&&{placeholder:"blur",blurDataURL:d},...p});return m?(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{srcSet:u("".concat(f,"?fm=avif"),p.quality),type:"image/avif",sizes:null!=(t=p.sizes)?t:"25vw"}),C]}):C}},28973:(e,t,n)=>{n.d(t,{N:()=>a});var r=n(18036),o=n(84880);let a=e=>
1(0,o.d)({event:r.jU,customField1:r.cV,ecommerce:{promoView:{promotions:e}}})},29973:(e,t,n)=>{n.d(t,{H:()=>o});var r=n(18036);let o=e=>({event:r.mV,customField1:r.cV,ecommerce:{promoClick:{promotions:[e]}}})},46834:(e,t,n)=>{n.d(t,{A:()=>u,o:()=>c});var r=n(23798),o=n(29494),a=n(82237),i=n.n(a),l=n(56812);let c=e=>{if(e.startsWith("/"))return e.startsWith("/mitt3");try{return new URL(e).pathname.startsWith("/mitt3")}catch(e){return!1}},u=e=>e.href?c(e.href)?(0,r.jsx)("a",{href:e.href,className:(0,l.A)("bg-SECONDARY_ORANGE inline-block rounded-full px-8 py-3 font-medium",e.className),children:e.children}):(0,r.jsx)(o.A,{LinkComponent:i(),...e}):null},58880:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(21462),o=n(18975),a=n(18036);let i=(e,t)=>{let n=(0,r.useRef)([]),i=(0,r.useRef)(null),l=r=>{let i=r.filter(e=>e.isIntersecting).map(t=>{var r;let o=t.target.getAttribute(a.hn),i=e.find(e=>e.id===o);return!o||!i||n.current.includes(o)?null:(n.current.push(o),{...i,blockItemPosition:null!=(r=i.blockItemPosition)?r:e.findIndex(e=>e.id===o)+1})}).filter(o.V);i.length>0&&t(i)};return(0,r.useEffect)(()=>{if(!IntersectionObserver)return;i.current=new IntersectionObserver(l,{threshold:.5});let e=Array.from(document.querySelectorAll("[".concat(a.hn,"]")));return e.forEach(e=>{var t;return null==(t=i.current)?void 0:t.observe(e)}),()=>{e.forEach(e=>{var t;return null==(t=i.current)?void 0:t.unobserve(e)})}},[e,t]),e=>({[a.hn]:e})}},73187:(e,t,n)=>{n.d(t,{t:()=>r});let r=(e,t)=>{if(e&&t)return{size:e,text:t}}},74257:(e,t,n)=>{n.d(t,{f:()=>r});let r={accordion:"accordion",accordionGroup:"accordionGroup",article:"article",blogCategory:"blogCategory",blogPost:"blogPost",card:"card",collapsible:"collapsible",configuration:"configuration",contactUs:"contactUs",cookieCard:"cookieCard",deviceComparison:"deviceComparison",devicedetails:"devicedetails",downloadAppCard:"downloadAppCard",drawer:"drawer",dynamicBlock:"dynamicBlock",error:"error",externalLink:"externalLink",footer:"footer",guideline:"guideline",header:"header",heading:"heading",hero:"hero",iframe:"iframe",image:"image",interestForm:"interestForm",markdown:"markdown",messages:"messages",narrowContainer:"narrowContainer",optimizeExperimentBlock:"optimizeExperimentBlock",page:"page",priceplanoverview:"priceplanoverview",productlist:"productlist",promotioncard:"promotioncard",row:"row",shortlink:"shortlink",simOnlyProductPageConfig:"simOnlyProductPageConfig",textBlock:"textBlock",translation:"translation",video:"video",uspGroup:"uspGroup",usp:"usp",productPromotionCard:"productPromotionCard"}},78869:(e,t,n)=>{n.d(t,{_:()=>r});var r=function(e){return e.CONTENT_TYPE_ACCORDION_GROUP="ContentfulAccordionGroup",e.CONTENT_TYPE_ARTICLE="ContentfulArticle",e.CONTENT_TYPE_BLOG_POST="ContentfulBlogPost",e.CONTENT_TYPE_CARD="ContentfulCard",e.CONTENT_TYPE_DOWNLOAD_APP_CARD="ContentfulDownloadAppCard",e.CONTENT_TYPE_COLLAPSIBLE="ContentfulCollapsible",e.CONTENT_TYPE_CONTACT_US="ContentfulContactUs",e.CONTENT_TYPE_COOKIE_CARD="ContentfulCookieCard",e.CONTENT_TYPE_DEVICE_COMPARISON="ContentfulDeviceComparison",e.CONTENT_TYPE_DEVICE_DETAILS="ContentfulDeviceDetails",e.CONTENT_TYPE_EXTERNAL_LINK="ContentfulExternalLink",e.CONTENT_TYPE_HEADER="ContentfulHeader",e.CONTENT_TYPE_HEADING="ContentfulHeading",e.CONTENT_TYPE_HERO="ContentfulHero",e.CONTENT_TYPE_IFRAME="ContentfulIframe",e.CONTENT_TYPE_IMAGE="ContentfulImage",e.CONTENT_TYPE_INTEREST_FORM="ContentfulInterestForm",e.CONTENT_TYPE_MARKDOWN="ContentfulMarkdown",e.CONTENT_TYPE_MENU="ContentfulMenu",e.CONTENT_TYPE_NARROW_CONTAINER="ContentfulNarrowContainer",e.CONTENT_TYPE_OPTIMIZE_EXPERIMENT="ContentfulOptimizeExperimentBlock",e.CONTENT_TYPE_PAGE="ContentfulPage",e.CONTENT_TYPE_PRICE_PLAN_OVERVIEW="ContentfulPricePlanOverview",e.CONTENT_TYPE_PRODUCT_LIST="ContentfulProductList",e.CONTENT_TYPE_PROMOTION_CARD="ContentfulPromotionCard",e.CONTENT_TYPE_PRODUCT_PROMOTION_CARD="ContentfulProductPromotionCard",e.CONTENT_TYPE_ROW="ContentfulRow",e.CONTENT_TYPE_DYNAMIC_BLOCK="ContentfulDynamicBlock",e.CONTENT_TYPE_TEXT_BLOCK="ContentfulTextBlock",e.CONTENT_TYPE_VIDEO="ContentfulVideo",e}({})},80586:(e,t,n)=>{n.d(t,{A:()=>r});let r={lg:"1024px",md:"768px",sm:"480px",xl:"1440px",xs:"360px"}}
1,82339:(e,t,n)=>{n.d(t,{R:()=>c});var r=n(18036),o=n(78869),a=n(74257);let i=(e,t)=>{let{blockPosition:n,blockItemPosition:r}=e;return n?"block ".concat(n," | slot ").concat(r," | ").concat(t):"slot ".concat(r," | ").concat(t)},l=e=>{let{updatedAt:t,id:n}=e;return t?"".concat(n," | ").concat(t):n},c=e=>{let{promotion:t,pathname:n}=e;switch(t.contentType||t.type){case a.f.promotioncard:case a.f.productPromotionCard:case o._.CONTENT_TYPE_PROMOTION_CARD:case o._.CONTENT_TYPE_PRODUCT_PROMOTION_CARD:return{creative:r.qm,id:l(t),name:(e=>{let{content:t,devicePromotionTitle:n,isPim:r,productData:o,showManufacturer:a}=e;if(!r){let e="string"==typeof t?t:null==t?void 0:t.content;return n||(null==e?void 0:e.slice(0,30))}let{brand:i,model:l}=(e=>e?"product"in e&&e.product?{brand:e.product.brand,model:e.product.model}:{brand:"brand"in e?e.brand:void 0,model:"model"in e?e.model:void 0}:{brand:void 0,model:void 0})(o);return a&&n?"".concat(i," ").concat(l," | ").concat(n):n?"".concat(l," | ").concat(n):"".concat(i," ").concat(l)})(t),position:i(t,n)};case a.f.card:case o._.CONTENT_TYPE_CARD:return{creative:r.id,id:l(t),name:(e=>{let{name:t,headingText:n}=e;return n||t})(t),position:i(t,n)};case o._.CONTENT_TYPE_HERO:case a.f.hero:return{creative:r.cf,id:l(t),name:(e=>{let{heading:t,content:n}=e;return t||("string"==typeof n?n.slice(0,30):void 0)})(t),position:((e,t)=>{let{blockPosition:n}=e;return"block ".concat(n," | ").concat(t)})(t,n)};default:return{...t}}}}}]);

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.