1(self.webpackChunkhjart_lungfonden=self.webpackChunkhjart_lungfonden||[]).push([[484],{2413:function(t,e,n){"use strict";var i=n(30200);t.exports=i.Promise},3023:function(t,e,n){"use strict";n.r(e),n.d(e,{Head:function(){return x}});var i,r,o,a=n(5944),u=n(96540),c=n(48504),l=n(30592),s=n(79746),d=n(78496),f=n(69514),v=n(39822),m=n(15218),p=n(85578),h=n(33330),g=n(80398),w=n(33922),y=n(41334),b=n(58076),x=function(t){var e,n,i,r,o=t.location,a=t.data.contentfulTranslations;return u.createElement(c.k,{title:null==a||null===(e=a.translations)||void 0===e||null===(n=e.digitalGreetingCard)||void 0===n?void 0:n.metaTitle,titleSuffix:"",description:null==a||null===(i=a.translations)||void 0===i||null===(r=i.digitalGreetingCard)||void 0===r?void 0:r.metaDesc,keywords:"",metaImage:{file:{url:"/images/og-image-dgc.png"}},noIndex:!0,currentPath:null==o?void 0:o.pathname})};e.default=function(t){var e,n,i=t.individualId,r=t.data,o=(0,p.M)(),a=o.isTablet,c=o.viewStateDetected,l=(0,u.useState)(!1),s=l[0],y=l[1],b=(0,u.useState)(!1),x=b[0],j=b[1],I=(0,m.m)(),S=I.getGenericGreetingCardData,_=I.recipientName,L=I.progress,M=(0,h.c)().i18n,N=r.orderPageData,P=N||{},A=P.greetingCard,G=P.cardTitleText,$=P.cardTitleTextSuffix,O=P.cardMessageText;(0,u.useEffect)((function(){i&&S(i)}),[i]);return(0,u.useEffect)((function(){var t=function(){return j(!0)};return window.addEventListener("CookiebotOnLoad",t),function(){return window.removeEventListener("CookiebotOnLoad",t)}}),[]),(0,u.useEffect)((function(){var t=setTimeout((function(){j(!0)}),1e4);return function(){return clearTimeout(t)}}),[]),(0,u.useEffect)((function(){!c||a||x||j(!0)}),[c,a,x]),u.createElement(E,null,_&&N&&u.createElement(u.Fragment,null,s?u.createElement(f.A,{asset:null==A?void 0:A.asset,backgroundColor:null==A||null===(n=A.backgroundColor)||void 0===n?void 0:n.value,title:G+" "+_+$,message:O,orderId:i,type:w.K6}):u.createElement(u.Fragment,null,u.createElement(C,null,u.createElement(T,null)),u.createElement(k,null),u.createElement(v.A,{asset:null==A?void 0:A.asset,backgroundColor:null==A||null===(e=A.backgroundColor)||void 0===e?void 0:e.value,title:G+" "+_+$,message:O,animation:null==A?void 0:A.animation,start:x,onComplete:function(){return y(!0)},type:w.K6}))),!_&&u.createElement(d.k,{size:"l",color:"white"}),L===g.k&&u.createElement(D,{severity:w.ff},M("errorMessages.general")))};var E=b.default.div.withConfig({displayName:"individualId__Container",componentId:"sc-cj3yhj-0"})(["position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background-color:",";",";"],(function(t){return t.theme.cream}),y.$_.L(i||(i=(0,a.A)(["\n scrollbar-width: none;\n overflow: scroll;\n "])))),k=b.default.div.withConfig({displayName:"individualId__Circle",componentId:"sc-cj3yhj-1"})(["position:absolute;background-color:",";width:",";height:",";border-radius:50%;"],(function(t){return t.theme.yellowLight}),(0,y.D0)(291),(0,y.D0)(291)),C=b.default.div.withConfig({displayName:"individualId__Header",componentId:"sc-cj3yhj-2"})(["position:absolute;display:flex;justify-content:center;align-items:center;top:0;height:",";width:100%;border-bottom:"," solid rgba(51,51,51,0.15);max-width:calc(100% - ",");",";"],(0,y.D0)(79),(0,y.D0)(1),(0,y.D0)(32),y.$_.L(r||(r=(0,a.A)(["\n height: ",";\n max-width: ",";\n "])),(0,y.D0)(91),(0,y.D0)(1024))),T=(0,b.default)(s.W).withConfig({displayName:"individualId__StyledLogo",componentId:"sc-cj3yhj-3"})(["height:",";",""],(0,y.D0)(28),y.$_.L(o||(o=(0,a.A)(["\n height: ",";\n "])),(0,y.D0)(36))),D=(0,b.default)(l.F).withConfig({displayName:"individualId__StyledAlert",componentId:"sc-cj3yhj-4"})(["position:absolute;bottom:0;margin:",";"],(function(t){return t.theme.spacingM}))},9803:function(t,e,n){"use strict";var i=n(73938),r=n(65335),o=n(39836);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},10124:function(t,e,n){var i=n(9325);t.exports=function(){return i.Date.now()}},15218:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var i=n(79071),r=n(75128),o=n.n(r),a=n(96540),u=n(26507),c=n(80398),l=function(){var t=(0,a.useState)(c._Z),e=t[0],n=t[1],r=(0,a.useState)(""),l=r[0],s=r[1],d=(0,a.useState)(!1),f=d[0],v=d[1],m=function(){var t=(0,i.A)(o().mark((function t(e){var i,r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(c.qF),v(!0),t.prev=2,t.next=5,(0,u.Cj)(e);
1case 5:i=t.sent,(r=i.data)?(a=r.recipientName,s(a),n(c.L8),v(!1)):(n(c.k),v(!1)),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(2),n(c.k),v(!1);case 14:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e){return t.apply(this,arguments)}}();return{getGenericGreetingCardData:m,recipientName:l,progress:e,loading:f}}},31800:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},38221:function(t,e,n){var i=n(23805),r=n(10124),o=n(99374),a=Math.max,u=Math.min;t.exports=function(t,e,n){var c,l,s,d,f,v,m=0,p=!1,h=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function w(e){var n=c,i=l;return c=l=void 0,m=e,d=t.apply(i,n)}function y(t){var n=t-v;return void 0===v||n>=e||n<0||h&&t-m>=s}function b(){var t=r();if(y(t))return x(t);f=setTimeout(b,function(t){var n=e-(t-v);return h?u(n,s-(t-m)):n}(t))}function x(t){return f=void 0,g&&c?w(t):(c=l=void 0,d)}function E(){var t=r(),n=y(t);if(c=arguments,l=this,v=t,n){if(void 0===f)return function(t){return m=t,f=setTimeout(b,e),p?w(t):d}(v);if(h)return clearTimeout(f),f=setTimeout(b,e),w(v)}return void 0===f&&(f=setTimeout(b,e)),d}return e=o(e)||0,i(n)&&(p=!!n.leading,s=(h="maxWait"in n)?a(o(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),m=0,c=v=l=f=void 0},E.flush=function(){return void 0===f?d:x(r())},E}},39836:function(t,e,n){"use strict";var i=n(24601),r=TypeError,o=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw r("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)};t.exports.f=function(t){return new o(t)}},54128:function(t,e,n){var i=n(31800),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},75171:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(96540),r=function(){var t=(0,i.useState)(!1),e=t[0],n=t[1],r=(0,i.useState)(!1),o=r[0],a=r[1];return(0,i.useEffect)((function(){var t=void 0===window.navigator?"":navigator.userAgent,e=Boolean(t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i));n(e),a(!0)}),[]),{isMobile:e,deviceDetected:o}}},78659:function(t,e,n){var i=n(87133),r=n(99374);t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=r(n))==n?n:0),void 0!==e&&(e=(e=r(e))==e?e:0),i(r(t),e,n)}},83396:function(t,e,n){"use strict";var i=n(51605),r=n(6926),o=n(2413),a=n(92074),u=n(56492),c=n(78420),l=n(23444),s=n(9803),d=n(7485),f=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=l(this,u("Promise")),n=c(t);return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}}),!r&&c(o)){var v=u("Promise").prototype.finally;f.finally!==v&&d(f,"finally",v,{unsafe:!0})}},85578:function(t,e,n){"use strict";n.d(e,{M:function(){return a}});var i=n(38221),r=n.n(i),o=n(96540),a=function(){var t=(0,o.useState)(!1),e=t[0],n=t[1],i=(0,o.useState)(!1),a=i[0],u=i[1],c=(0,o.useState)(!1),l=c[0],s=c[1],d=function(){var t,e,i,r=Math.min(null===(t=window)||void 0===t||null===(e=t.screen)||void 0===e?void 0:e.width,null===(i=window)||void 0===i?void 0:i.innerWidth);u(r<=1024),n(r<768)};return(0,o.useEffect)((function(){d(),s(!0);var t=r()((function(){d()}),300);return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),{isMobile:e,isTablet:a,viewStateDetected:l}}},87133:function(t){t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},99374:function(t,e,n){var i=n(54128),r=n(23805),o=n(44394),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+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.