PageSourceSearch

https://www.aftonbladet.se/web-assets/components-Card-variants-Fullscreen.9837a67d.m.js

js aftonbladet.se collected 2026-09-24 08:31:11 UTC 8,543 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2945],{5399:(t,n,e)=>{e.d(n,{A:()=>A});var o=e(85015),r=e.n(o),a=e(43284),c=e(27919),i=e(23095),s=e(68238),d=e(46942),l=e.n(d),p=e(17437),b=e(47985),u=["mobile","mobile-up","tablet","up-to-desktop","desktop"],g=["left","right","top","bottom","center",void 0],m=["gradient","boxShadow","boxBackground","boxShadow2","gradient","gradientReversed","overlay","textBackground"];var h=(t,n)=>(0,p.css)((0,b.J)(t),"{",n,";}"),f={bottom:"margin-top: auto",top:"margin-bottom: auto;",right:"width: 50%; align-self: flex-end;",left:"width: 50%;align-self: flex-start;",center:"align-self: center"},x=e(28854),v=e.n(x),y={boxShadow:t=>{var n=t["mediapanel-shadow-color"];return{root:"background-color: transparent",content:"\n    & > * {\n      position: relative;\n      z-index: 2;\n      text-shadow: 0 0 5px ".concat(n,";\n    }\n    &::after {\n      position: absolute;\n      z-index: 1;\n      width: 100%;\n      height: 100%;\n      top: 0;\n      left: 0;\n      box-shadow: 0 100px 100px ").concat(n,";\n      background-color: ").concat(n,";\n      content: '';\n      opacity: 0.55;\n      border-radius: 60px;\n      -webkit-filter: blur(50px);\n      filter: blur(50px);\n      z-index: 0;\n      display: block;\n    }\n  ")}},boxShadow2:t=>{var n=t["mediapanel-shadow-color"];return{root:"background-color: transparent",content:"\n    & > * {\n      position: relative;\n      z-index: 2;\n      text-shadow: 0 0 5px ".concat(n,";\n    }\n    &::after {\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t top: 0;\n\t  left: 0;\n      background-color: ").concat(n,";\n      content: '';\n      opacity: 0.55;\n   \n      z-index: 0;\n         box-shadow: 0 0 50px 25px ").concat(n,";\n         border-radius: 30px;\n         filter: blur(25px);\n\t}\n  ")}},boxBackground:t=>{var n=t["mediapanel-text-background"],e=t["mediapanel-text-color"];return{content:"\n    background: ".concat(n,";\n    padding: 30px;\n    border-radius: 5px;\n    * {\n      color: ").concat(e,";\n    }\n  ")}},gradient:t=>{var n=t["mediapanel-shadow-color"],e=v().get.rgb(n),o=t["mediapanel-text-color"];return e?{root:"\n\t  &::after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbackground-image: linear-gradient(\n\t\t\t-180deg,\n\t\t\trgba(".concat(e[0],", ").concat(e[1],", ").concat(e[2],", 0),\n\t\t\trgba(").concat(e[0],", ").concat(e[1],", ").concat(e[2],", 0.6)\n\t\t  );\n\t  }"),content:"\n\t  * {\n\t\tcolor: ".concat(o,";\n\t  }")}:{}},gradientReversed:t=>{var n=t["mediapanel-shadow-color"],e=v().get.rgb(n);return e?{background:"\n\t\t&::after {\n\t\t  content: '';\n\t\t  display: block;\n\t\t  position: absolute;\n\t\t  top: 0;\n\t\t  bottom: 0;\n\t\t  left: 0;\n\t\t  right: 0;\n\t\t  background-image: linear-gradient(\n\t\t\t  0,\n\t\t\t  rgba(".concat(e[0],", ").concat(e[1],", ").concat(e[2],", 0),\n\t\t\t  rgba(").concat(e[0],", ").concat(e[1],", ").concat(e[2],", 0.6)\n\t\t\t);\n\t\t}")}:{}},textBackground:t=>{var n=t["mediapanel-text-background"],e=t["mediapanel-text-color"],o=t["mediapanel-border-radius"]||"5px",r=t["mediapanel-text-padding-y"]||"2%",a=t["mediapanel-text-with-background-lh"]||"1.91";return{content:"\n     & > * > span{\n      display: inline;\n      border-radius: ".concat(o,";\n      color: ").concat(e,";\n      background: ").concat(n,";\n      padding: ").concat(r," 14px;\n      box-decoration-break: clone;\n      -webkit-box-decoration-break: clone;\n      line-height: ").concat(a,";\n     }\n  ")}},overlay:t=>{var n=t["mediapanel-shadow-color"],e=t["mediapanel-text-color"],o=t["mediapanel-opacity"];return{root:"\n\t  &::after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbackground-color: ".concat(n,";\n\t\topacity: ").concat(o,";\n\t  }"),content:"\n\t  * {\n\t\tcolor: ".concat(e,";\n\t  }")}}},k=(t,n,e)=>{var o=[];return n.forEach((n=>{if(function(t){return"string"==typeof t&&m.includes(t)}(n)&&y[n]){var r=y[n](e);r[t]&&o.push((0,p.css)(r[t],";"))}(function(t){return Object.keys(t).every((t=>u.includes(t)))&&Object.values(t).every((t=>t.every((t=>m.includes(t)))))}
1)(n)&&Object.entries(n).forEach((n=>{var[r,a]=n;a.forEach((n=>{if(y[n]){var a=y[n](e);a[t]&&o.push(h(r,a[t]))}}))}))})),o},O={name:"xqaz2u",styles:"width:100%;height:100%;position:relative;display:flex;flex-direction:column;justify-content:center"},w={name:"hu4m3n",styles:"left:0;top:0;right:0;bottom:0;width:100%;height:100%;position:absolute;&>img,&>div,video{height:100%;width:100%;object-position:center;display:block;}"},j=(0,p.css)("align-content:flex-start;position:relative;box-sizing:border-box;margin:0 auto;max-width:100%;transform:translate3d(0, 0, 0);",(0,b.J)("mobile"),"{padding:calc(3 * var(--gap-unit));padding-bottom:calc(6 * var(--gap-unit));}"),P={name:"179t5g5",styles:"position:relative;z-index:1"};var D=e(2445);const A=(0,s.Zz)((0,c.E7)((t=>{var n,e,o,r,a,{dna:c={},effects:i,mediaFit:s="cover",textAlign:d="center",textPosition:l="center"}=t,b=(a=[],function(t){return"string"==typeof t&&g.includes(t)}(r=l)&&a.push((0,p.css)(f[r],";")),function(t){return Object.keys(t).every((t=>u.includes(t)))&&Object.values(t).every((t=>g.includes(t)))}(r)&&Object.entries(r).forEach((t=>{var[n,e]=t;a.push(h(n,f[e]))})),a);return i&&(n=k("content",i,c),e=k("background",i,c),o=k("root",i,c)),{root:[O,(0,p.css)("background-color:",c["mediapanel-background"],";color:",c["mediapanel-text-color"],";"),o],background:[w,(0,p.css)("&>img,video{object-fit:",s,";}"),e],container:[P,b],content:[j,(0,p.css)("max-width:",c["mediapanel-content-width"],";text-align:",d,";"),n]}})),i.A)((t=>{var n,{background:e=[],componentMapping:o,content:c=[],externalClassName:i,styles:s,theme:d="default",textPosition:p}=t,b=e.length>0,u=c.length>0;return p&&(n=r()(p)?"position-".concat(p):Object.keys(p).map((t=>"position-".concat(t,"-").concat(p[t])))),(0,D.FD)("div",{className:i,css:s.root,children:[b&&(0,D.Y)("div",{css:s.background,className:"mediapanel-background",children:(0,D.Y)(a.zV,{components:e,theme:d,componentMapping:o})}),u&&(0,D.Y)("div",{css:s.container,className:l()("mediapanel-container",n),children:(0,D.Y)("div",{css:s.content,className:"mediapanel-content",children:(0,D.Y)(a.zV,{components:c,theme:d,componentMapping:o})})})]})}))},79153:(t,n,e)=>{e.r(n),e.d(n,{default:()=>x});var o=e(64467),r=e(42750),a=e(96406),c=e(5399),i=e(46942),s=e.n(i),d=e(75108),l=e(47378),p=e(2445);function b(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?b(Object(e),!0).forEach((function(n){(0,o.A)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEac
1h((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var g=(0,d.b)();const m=t=>{var n,{index:e,link:o,media:r,mediaFit:i,mediaFitDesktop:d,styles:b,text:m,textPosition:h="bottom",textPositionDesktop:f="right",theme:x=a.S}=t,v=r?[u(u({},r),{},{cardIndex:e,sizes:r.imageAsset.sizes||"(min-width: 768px) 100vw, ".concat((0,l.L)(r))})]:[],y=null===(n=g.url)||void 0===n?void 0:n.component;return(0,p.FD)("div",{css:b,className:s()("storycard","storycard-fullscreen",{"no-media":!r,"mediafit-desktop-contain":"contain"===d,"mediafit-desktop-cover":"cover"===d}),"data-theme":x,children:[(0,p.Y)(c.A,{background:v,content:m,componentMapping:g,mediaFit:i,textPosition:{mobile:h,"mobile-up":f},textAlign:"left",theme:x}),o&&y&&(0,p.Y)(y,u(u({},o),{},{mobile:!0}))]})};function h(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?h(Object(e),!0).forEach((function(n){(0,o.A)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):h(Object(e)).forEac
1h((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}const x=t=>(0,p.Y)(m,f(f({},t),{},{styles:(0,r.A)(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.