PageSourceSearch

https://www.naeringsbanken.no/dist/js/6680.a46a446f058e52f69c83.js

js naeringsbanken.no collected 2026-10-02 00:02:09 UTC 3,904 bytes, 2 lines download raw bytes

1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[6680],{23047:(e,n,t)=>{t.d(n,{P:()=>v,k:()=>i});var i,r,a,o=t(94184),c=t.n(o),l=t(67294),u=t(96967),s=t(57709),d=t(62462);function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}(r=i||(i={})).SUCCESS="success",r.ERROR="error",r.INFO="info";var v=function(e){var n,t,r=e.type,o=void 0===r?i.INFO:r,v=e.icon,m=void 0===v?"icon_16_info-circle":v,b=e.info,h=e.children,w=e.className,p=e.global,y=void 0===p||p,E=e.onDismissed,g=e.border,_=void 0===g||g,N=(n=(0,l.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=[],i=!0,r=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(i=(o=c.next()).done)&&(t.push(o.value),!n||t.length!==n);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(r)throw a}}return t}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),S=N[0],C=N[1],I=(0,l.useRef)(null),O=(0,s.f)(),R=(0,d.T)(),k=(0,l.useCallback)(function(){var e;if(C(!0),E)if(R)E();else{var n=function(){var e;E(),null===(e=I.current)||void 0===e||e.removeEventListener("animationend",n)};null===(e=I.current)||void 0===e||e.addEventListener("animationend",n)}},[E,R]);(0,l.useEffect)(function(){I.current&&I.current.focus()},[]);var x=(0,l.useMemo)(function(){return f(a={},i.SUCCESS,O.global.success),f(a,i.ERROR,O.global.error),f(a,i.INFO,O.global.information),a},[O.global]);return l.createElement("aside",{className:c()("notification","notification--".concat(o),{border:_},{"notification--global":y},{"notification--dismiss":S},w),role:o==i.SUCCESS?"status":"alert","aria-live":o===i.ERROR?"assertive":"polite","aria-atomic":"true","aria-describedby":b?"notification-expanded-content":void 0,tabIndex:-1,ref:I},l.createElement("div",{className:"notification__main"},l.createElement(u.Z,{className:"notification__icon",alt:x[o],iconId:m}),l.createElement("span",{className:"notification__message"},h),l.createElement("button",{className:"notification__close",onClick:k,"aria-label":O.global.closeNotification,tabIndex:0},l.createElement(u.Z,{iconId:"icon_16_close",svgAttributes:{"aria-hidden":"true"}}))),b&&l.createElement("div",{id:"notification-expanded-content",className:"notification__info"},b))}},62462:(e,n,t)=>{t.d(n,{T:()=>r});var i=t(67294);var r=function(){var e,n,t=(e=(0,i.useState)(function(){return!("undefined"==typeof window||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=[],i=!0,r=!1,a=void 0;try{for(var o,c=e[Symbol.iterator]();!(i=(o=c.next()).done)&&(t.push(o.value),!n||t.length!==n);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(r)throw a}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),r=t[0],a=t[1];return(0,i.useEffect)(function(){if("undefined"!=typeof window&&window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),n=function(e){a(e.matches)};return e.addEventListener("change",n),function(){e.removeEventListener("change",n)}}},[]),r}},86680:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});var i=t(67294),r=t(50558),a=t(23047),o=t(21988),c=t(84447);function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},l.apply(this,arguments)}const u=function(){var e=(0,r.I0)(),n=(0,o.lm)().notifications;return n&&0!==n.length?i.createElement("div",{className:"notification-stack"},n.map(function(n){return n.id?i.createElement(a.P,l({key:n.id},n,{onDismissed:function(){return e(c.Jz.removeNotification(n.id))}}),n.children):null})):null}}}]);
2//# sourceMappingURL=6680.a46a446f058e52f69c83.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.