PageSourceSearch

https://www.rabensjogren.se/static/js/CTAMinimal.23e8c357.chunk.js

js rabensjogren.se collected 2026-10-01 11:52:53 UTC 7,478 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3938],{86604:function(n,t){var o=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return o=!0,!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(i){}t.Z=o},36579:function(n,t,o){var e=o(95764),i=o(31619);t.Z=function(n){var t,o=n||{},r=o.background_position,a=o.background_size,c=o.credit,d=o.image,l=o.background_color,u=(null===d||void 0===d?void 0:d.title)||"",s=(null===d||void 0===d?void 0:d.url)||"",p=d?(0,e.Z)({mimeType:null===d||void 0===d||null===(t=d.meta)||void 0===t?void 0:t.mime_type},d.meta):{};return d&&delete p.mime_type,{backgroundColor:i.Z[l]||l||void 0,backgroundPosition:r,backgroundSize:a,credit:c,title:u,url:s,meta:p}}},74540:function(n,t,o){o.d(t,{Z:function(){return a}});var e=o(36579),i=o(95764),r=function(n,t){if(n&&n[0]&&(n=n[0]),n){var o=n.layout||t,r=n["background_".concat(o)];switch(r||(r=n),o){case"color":return{color:r,type:"color"};case"image":return(r=(0,e.Z)(r)).type=o,r;case"video":return(r=function(n){return n?(0,i.Z)((0,i.Z)({},n.video),n.settings):{}}(r)).type=o,r;default:console.warn("Type: ".concat(o,", not found in transformFlexibleBackground"))}return!1}},a=function(n,t){if(n){var o=n.desktop||n.desktop_background_video||n.desktop_background_image,e=n.mobile||n.mobile_background_video||n.mobile_background_image;return{desktop:r(o,t),mobile:r(e,t)}}return{desktop:void 0,mobile:void 0}}},73012:function(n,t,o){o.d(t,{Z:function(){return w}});var e,i=o(95764),r=o(99710),a=o(81034),c=o(99500),d=o(30969),l=o(85255),u=o(31619),s=o(95870),p=o(86604),f="undefined"===typeof window?d.useEffect:d.useLayoutEffect,v=new Set,g=function(){return v.forEach((function(n){return n()}))}
1,b=o(87366),h=o(39455),m=o(37574),Z=["color"],k=(0,l.Z)("button",{shouldForwardProp:function(n){return-1===["showScrollIndication","color"].indexOf(n)}})(e||(e=(0,c.Z)(["\n    display: none;\n    "," {\n        display: block;\n        position: absolute;\n        bottom: 32px;\n        right: 32px;\n        z-index: 2;\n        height: 40px;\n        width: 63px;\n        transition: opacity 300ms ease-out;\n        cursor: initial;\n        opacity: ",";\n        border: 1px solid ",";\n        border-radius: 16px;\n        background-color: transparent;\n        box-shadow: none;\n        outline: none;\n        &.clickable {\n            cursor: pointer;\n        }\n        svg {\n            position: absolute;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            path {\n                transition: stroke 300ms ease-out;\n            }\n        }\n    }\n"])),h.aE.md,(function(n){return n.showScrollIndication?"1":"0"}),(function(n){return n.color})),x=function(n){var t=n.color,o=(0,a.Z)(n,Z),e=(0,d.useState)(!0),c=(0,r.Z)(e,2),l=c[0],u=c[1],h=(0,d.useRef)(null);return(0,d.useEffect)((function(){document.getElementById("pageContent")&&h.current&&h.current.classList.add("clickable")}),[]),function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],e=(0,d.useRef)(null);e.current||s.N9||(e.current={callback:n,data:{direction:{x:null,y:null},position:{x:0,y:0}},shouldTrigger:t,unsubscribe:function(){}},e.current.unsubscribe=function(n){var t=function(){var t=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset,e={direction:{x:n.data.position.x>t?"LEFT":n.data.position.x<t?"RIGHT":null,y:n.data.position.y<o?"DOWN":n.data.position.y>o?"UP":null},position:{x:t,y:o}};n.shouldTrigger(e,n.data)&&n.callback(e),n.data=e};return v.size||window.addEventListener("scroll",g,!!p.Z&&{passive:!0}),v.add(t),function(){v.delete(t),v.size||window.removeEventListener("scroll",g)}}(e.current));var i=e.current;f((function(){i&&(i.callback=n,i.shouldTrigger=t)}),o),f((function(){return null===i||void 0===i?void 0:i.unsubscribe}),[]),null===i||void 0===i||i.unsubscribe}((function(){u(!l)}),(function(n){var t=n.position,o=null===h||void 0===h?void 0:h.current,e=t.y;if(o){var i=o.getBoundingClientRect().top,r=o.offsetHeight+(i>0?i:0);if(e>r&&!l)return!1;if(e<=r&&l)return!1}return!0}),[l]),(0,m.jsx)(k,(0,i.Z)((0,i.Z)({ref:h},o),{},{color:t,type:"button",showScrollIndication:l,onClick:function(){var n=document.getElementById("pageContent");n&&n.scrollIntoView({behavior:"smooth"})},children:(0,m.jsx)(b.Z,{color:t,direction:"down"})}))};x.defaultProps={color:u.Z.white,theme:"outlinedWhite"};var w=x},45679:function(n,t,o){var e,i,r,a=o(99500),c=(o(30969),o(24974)),d=o.n(c),l=o(43295),u=o(85255),s=o(39455),p=o(33747),f=o(433),v=o(31619),g=o(73012),b=o(60703),h=o(39660),m=o(90576),Z=o(37574),k=(0,u.Z)("div")(),x=(0,u.Z)("div")(e||(e=(0,a.Z)(["\n    position: relative;\n    width: 100%;\n\n    &:after {\n        content: '';\n        display: block;\n        padding-bottom: ","%;\n        "," {\n            padding-bottom: ","%;\n        }\n    }\n\n    & > div {\n        position: absolute;\n        top: 0;\n        right: 0;\n        bottom: 0;\n        left: 0;\n    }\n"])),150,s.aE.md,75),w=(0,u.Z)(f.Z)(i||(i=(0,a.Z)(["\n    height: 100%;\n    width: 100%;\n    text-align: center;\n    padding-top: 16px;\n    padding-bottom: 24px;\n\n    "," {\n        padding-top: 40px;\n        padding-bottom: 32px;\n    }\n"])),s.aE.lg),y=(0,u.Z)("div")(r||(r=(0,a.Z)(["\n    grid-column: 1 / span 12;\n"])));d().node;var _=function(n){var t=n.asHero,o=n.background,e=n.backgroundType,i=n.color,r=n.heading,a=n.tag,c=n.contentPosition,d=(0,h.Z)("lg");return(0,Z.jsxs)(k,{as:d?b.Z:x,color:v.Z[i]||i,isHero:t,children:[(0,Z.jsx)(g.Z,{color:v.Z[i]}),(0,Z.jsx)(l.Z,{background:o,type:e,mediaQuery:[{w:375,h:562.5},{w:768,h:576},{w:1024,h:896},{w:1440,h:943},{w:1920,h:1280}],children:(0,Z.jsx)(w,{alignItems:{top:"start",center:"center",bottom:"end"}[c],children:(0,Z.jsxs)(y,{children:[r&&(0,Z.jsx)("div",{className:"heading",children:(0,Z.jsx)(p.Z,{mb:"24px",as:"h1",textStyles:["Stabil Grotesk/40-110","Stabil Grotesk/64-100","Stabil Grotesk/104-100"],children:(0,m.Z)(r)})}),a&&(0,Z.jsx)("div",{className:"tag",children:(0,Z.jsx)(p.Z,{as:"p",textStyles:["Stabil Grotesk/14-100 CAPS",null,"Stabil Grotesk/16-100 CAPS"],children:a})})]})})})]})};_.defaultProps={asHero:!1,background:{},backgroundType:"image",color:"inherit",contentPosition:"center",heading:"",tag:""},t.Z=_},60703:function(n,t,o){var e,i=o(95764),r=o(81034),a=o(99500),c=(o(30969),o(16809)),d=o(85255),l=o(60397),u=o(37574),s=["isHero"],p=(0,d.Z)("div")(e||(e=(0,a.Z)(["\n    position: relative;\n    width: 100vw;\n"]))),f=function(n){var t=n.isHero,o=(0,r.Z)(n,s),e=(0,c.v9)((function(n){return n.header.isUspActive})),a=t&&e?"calc(100vh - ".concat(l.J.usp,"px)"):"100vh";return(0,u.jsx)(p,(0,i.Z)({height:a},o))};f.defaultProps={isHero:!1},t.Z=f},66674:function(n,t,o){o.r(t);o(30969);var e=o(39660),i=o(74540),r=o(45679),a=o(37574),c=function(n){var t=n.data,o=n.layout,c=null===t||void 0===t?void 0:t.cta,d=c.background_flexible,l=c.content_position,u=c.tag,s=c.text_color,p=c.title,f=(0,e.Z)("lg"),v=(0,i.Z)(d),g=v.mobile,b=v.desktop;return(0,a.jsx)(r.Z,{asHero:"hero_cta_minimal"===o,background:f?b:g,backgroundType:f?null===b||void 0===b?void 0:b.type:null===g||void 0===g?void 0:g.type,color:s,contentPosition:l,heading:p,tag:u})};c.defaultProps={data:{},layout:""},t.default=c}}]);
2//# sourceMappingURL=CTAMinimal.23e8c357.chunk.js.map

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.