PageSourceSearch

https://1177direkt.regionvastmanland.se/public/js/OnboardingTheme.b7381da3b4c806a75b82.chunk.js

js regionvastmanland.se collected 2026-09-24 20:25:37 UTC 12,227 bytes, 2 lines download raw bytes

1/*! For license information please see OnboardingTheme.b7381da3b4c806a75b82.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunk_patient_root=self.webpackChunk_patient_root||[]).push([[21799],{77314:(e,n,t)=>{t.r(n),t.d(n,{default:()=>$});var o,r=t(56867),i=t(92662),a=t(13715),l=t(34883);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s.apply(null,arguments)}const c=function(e){return a.createElement("svg",s({width:72,height:6,xmlns:"http://www.w3.org/2000/svg"},e),o||(o=a.createElement("path",{d:"M1 1l7.454 3.022a3 3 0 002.183.028l6.99-2.629a3 3 0 012.223.044l6.017 2.539a3 3 0 002.196.053l7.153-2.615a3 3 0 012.36.129l5.77 2.855a3 3 0 002.374.124l6.811-2.527a3 3 0 012.16.028l6.179 2.476a3 3 0 002.34-.045L71 1",stroke:"#4A4A4A",strokeWidth:1.3,fill:"none"})))};var d,u=t(50985),h=t.n(u),m=h().section.withConfig({displayName:"InfoSectionstyles__WhiteSection",componentId:"sc-13h85ev-0"})(["background:",";padding:30px 30px 80px;position:relative;"],function(e){return e.theme.colors.background.light}),f=h().h5.withConfig({displayName:"InfoSectionstyles__Heading",componentId:"sc-13h85ev-1"})(["font-weight:bold;font-size:","rem;margin:20px 0 10px;"],function(e){return e.theme.accessibleFontSize(25)}),g=h().section.withConfig({displayName:"InfoSectionstyles__LightPinkSection",componentId:"sc-13h85ev-2"})(["background-color:",";padding:30px;& .wave{margin:25px;}"],function(e){return e.theme.isD24?"var(--background-color)":"#fdebec"}),p=h().a.withConfig({displayName:"InfoSectionstyles__StyledCustomLink",componentId:"sc-13h85ev-3"})(["font-weight:bold;"]),x=t(38e3),y=function(e){var n=e.email,t=(0,r.c3P)(),o=t.home_what_do_i_pay&&t.home_with_klarna,a=!!(t.home_do_you_need_help_1||t.home_do_you_need_help_2||t.home_for_other_questions);return(0,x.jsxs)(x.Fragment,{children:[o&&(0,x.jsxs)(m,{children:[(0,x.jsx)(i.Icon,{name:"WalletIcon",size:"lg"}),(0,x.jsx)(f,{children:t.home_what_do_i_pay}),(0,x.jsx)("p",{children:t.home_with_klarna})]}),a&&(0,x.jsxs)(g,{children:[(0,x.jsx)(i.Icon,{name:"HelpIcon",size:"lg"}),(0,x.jsx)(f,{children:t.home_do_you_need_help}),t.home_do_you_need_help_1&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.EY,{text:t.home_do_you_need_help_1,enableHtml:!0}),(0,x.jsx)(c,{className:"wave"})]}),t.home_do_you_need_help_2&&(0,x.jsx)(l.EY,{text:t.home_do_you_need_help_2,enableHtml:!0}),t.home_for_other_questions&&(0,x.jsx)("p",{children:t.home_for_other_questions}),n&&(0,x.jsx)(p,{href:"mailto:".concat(n),target:"_top",children:n})]})]})};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_.apply(null,arguments)}const b=function(e){return a.createElement("svg",_({width:278,height:59,xmlns:"http://www.w3.org/2000/svg"},e),d||(d=a.createElement("path",{d:"M278 59V0C238.374 42.414 121.127 59 0 59h278z",fill:"#FFF",fillRule:"evenodd"})))};function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var j=h().img.withConfig({displayName:"ProgressiveImage__BackgroundImageHide",componentId:"sc-1ht10t8-0"})(["display:",";"],function(e){return e.hide?"none":"block"}),w=function(e){var n,t,o=e.className,r=e.placeholderAlt,i=void 0===r?"":r,l=e.imageAlt,s=void 0===l?"":l,c=e.bg,d=(n=(0,a.useState)("string"==typeof c),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(o=i.call(t)).done)&&(l.push(o.value),l.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(n,t)||function(e,n){if(e){if("string"==typeof e)return v(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}
2(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],h=d[1],m="string"==typeof c?c:c.large,f="string"==typeof c?null:c.small;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(j,{hide:!u,className:o,alt:s,onLoad:function(){h(!0)},src:m}),f&&(0,x.jsx)(j,{hide:u,className:o,alt:i,src:f})]})},I=h().div.withConfig({displayName:"OnboardingThemestyles__HomeContainer",componentId:"sc-1136fjo-0"})(["padding:0;margin:0 auto;text-align:center;font-size:14px;color:",";height:100%;display:flex;flex-direction:column;position:relative;width:100%;background-color:var(--canvas-background-color);-webkit-overflow-scrolling:touch;flex-grow:1;.desktop &{border-radius:20px;}"],function(e){return e.theme.colors.text.main}),C=h().div.withConfig({displayName:"OnboardingThemestyles__Home",componentId:"sc-1136fjo-1"})(["flex:1;overflow:auto;background:",";font-weight:lighter;font-size:15px;p{max-width:300px;margin:0 auto;}section:last-of-type{padding-bottom:100px;}@media (min-width:500px){p{max-width:320px;}}"],function(e){return e.theme.colors.background.light}),k=h().div.withConfig({displayName:"OnboardingThemestyles__Content",componentId:"sc-1136fjo-2"})(["border-radius:25px 0 0 0;position:relative;z-index:11;background:",";"],function(e){return e.theme.colors.background.light}),A=h().div.withConfig({displayName:"OnboardingThemestyles__Hero",componentId:"sc-1136fjo-3"})(["background-size:cover;position:relative;background-position-y:center;display:flex;flex-direction:column;align-items:flex-start;z-index:0;margin-bottom:-30px;height:40vh;max-height:350px;"]),S=h()(l.jl).withConfig({displayName:"OnboardingThemestyles__ButtonUp",componentId:"sc-1136fjo-4"})(["position:absolute;bottom:30px;right:30px;margin:0;background-color:var(--primary-color);box-shadow:0 5px 14px 0 rgba(0,0,0,0.2);svg{width:32px;}"]),O=h().section.withConfig({displayName:"OnboardingThemestyles__SliderContainer",componentId:"sc-1136fjo-5"})(["background-color:var(--background-color);padding:30px;ol{padding-left:20px;margin-bottom:0;}p{max-width:280px;margin:0 auto;}h3{font-size:23px;margin:20px 0 12px;}li{text-align:left;margin:5px 0;}"]),z=h().section.withConfig({displayName:"OnboardingThemestyles__NewsBannerContainer",componentId:"sc-1136fjo-6"})(["padding:30px;background-color:var(--lighter-color);h5{font-size:22px;margin:0 0 10px;}"]),N=h().div.withConfig({displayName:"OnboardingThemestyles__InfoDotsContainer",componentId:"sc-1136fjo-7"})(["display:flex;justify-content:center;margin-top:25px;"]),T=h()(w).withConfig({displayName:"OnboardingThemestyles__ProgressiveBgImage",componentId:"sc-1136fjo-8"})(["width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;z-index:-1;"]),D=h()(b).withConfig({displayName:"OnboardingThemestyles__ApoteketCurveIcon",componentId:"sc-1136fjo-9"})(["position:absolute;top:-59px;right:0;z-index:1;"]);function F(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var H=function(){var e,n,t=(0,r.c3P)(),o=(0,i.useTheme)(),s=(e=(0,a.useState)(0),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(o=i.call(t)).done)&&(l.push(o.value),l.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return F(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?F(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],d=s[1],u=t.home_slider_items,h=Array.isArray(u)&&u.length>0,m=h?u.map(function(e,n){return(0,x.jsx)(l.wu,{content:e},n)}):[];return h?(0,x.jsxs)(O,{children:[(0,x.jsx)(i.StethoscopeIcon,{size:"lg"}
2),(0,x.jsx)(l.gZ,{items:m,activeItemIndex:c,onActiveItemChange:d}),m.length>1&&(0,x.jsx)(N,{children:(0,x.jsx)(l.dU,{currentSlideIndex:c,slidesCount:m.length,onDotClick:d,colors:{regularDotColor:o.colors.text.main,activeDotColor:o.colors.text.main}})})]}):null},M=t(21735),B=h().div.withConfig({displayName:"OnboardingThemeMenustyles__ButtonContainer",componentId:"sc-mmqzae-0"})(["margin:15px auto 0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;button{margin:10px 0;}"]),E=h().h3.withConfig({displayName:"OnboardingThemeMenustyles__Heading",componentId:"sc-mmqzae-1"})(["font-weight:bold;font-size:","rem;margin:20px 0 10px;"],function(e){return e.theme.accessibleFontSize(25)}),P=h().h4.withConfig({displayName:"OnboardingThemeMenustyles__Description",componentId:"sc-mmqzae-2"})(["font-size:","rem;"],function(e){return e.theme.accessibleFontSizes.md}),q=h().section.withConfig({displayName:"OnboardingThemeMenustyles__ButtonSection",componentId:"sc-mmqzae-3"})(["padding:30px;"]),U=function(e){var n,t=e.handleAction,o=(0,r.c3P)(),a=(0,M.gj)({langName:o.standard_locale_identifier}).data;return(0,x.jsxs)(q,{children:[(0,x.jsx)(E,{children:o.home_start_here}),(0,x.jsx)(P,{children:o.home_start_here_description}),(0,x.jsx)(B,{children:null==a||null===(n=a.menu)||void 0===n?void 0:n.map(function(e,n){return(0,x.jsx)(i.Button,{onClick:function(){return t(e)},width:"fixed",size:"lg",children:e.title},n)})})]})};function L(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var W=function(){var e,n,t=(0,M.F4)().data,o=(e=(0,a.useState)(0),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(o=i.call(t)).done)&&(l.push(o.value),l.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return L(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?L(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=o[0],s=o[1],c=(0,i.useTheme)(),d=t?t.map(function(e){return(0,x.jsx)(l.wu,{content:e},e.rank)}):[];return Array.isArray(d)&&d.length>0?(0,x.jsxs)(z,{children:[(0,x.jsx)(l.gZ,{items:d,activeItemIndex:r,onActiveItemChange:s}),Array.isArray(d)&&d.length>1&&(0,x.jsx)(N,{children:(0,x.jsx)(l.dU,{currentSlideIndex:r,slidesCount:d.length,onDotClick:s,colors:{regularDotColor:c.colors.text.main,activeDotColor:c.colors.text.main}})})]}):null};const $=function(e){var n,t=e.handleAction,o=(0,i.useTheme)(),l=(0,r.MwK)().email,s=(null!==(n=(0,r.Dlt)())&&void 0!==n?n:{}).originHomeBg,c=(0,r.c3P)(),d=(0,a.useRef)(null);return(0,x.jsx)(I,{children:(0,x.jsxs)(C,{ref:d,"data-testid":"onboarding-home",children:[(0,x.jsxs)(A,{children:[(0,x.jsx)(i.NavigationBar,{horizontalAlign:"start",variant:"transparent",logo:!0}),(0,x.jsx)(T,{bg:s})]}),(0,x.jsxs)(k,{children:[(0,x.jsx)(D,{}),(0,x.jsx)(U,{handleAction:t}),(0,x.jsx)(W,{}),(0,x.jsx)(H,{}),(0,x.jsx)(y,{email:l}),(0,x.jsx)(S,{size:50,onClick:function(){var e;null==d||null===(e=d.current)||void 0===e||e.scrollTo({behavior:"smooth",top:0})},"aria-label":c.scroll_up,children:(0,x.jsx)(i.Icon,{size:"lg",name:"ChevronUpIcon",color:o.colors.background.light})})]})]})})}}}]);

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.