PageSourceSearch

https://www.aasen-sparebank.no/dist/js/7981.24e22650e50503941dc2.js

js aasen-sparebank.no collected 2026-10-02 03:44:38 UTC 10,550 bytes, 2 lines download raw bytes

1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[7981],{58483:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(67294),i=n(94184),r=n.n(i),a=n(28968),s=n(69832);function c(e,t,n,o,i,r,a){try{var s=e[r](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(o,i)}function u(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}var l=n(35666);const p=function(e){var t,n,i,p,d=(i=(0,o.useState)(!1),p=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(i,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),h=d[0],f=d[1],m=(0,s.t)();return o.createElement("li",{className:e.className},o.createElement(a.Z,{fullWidth:!0,color:null!==(t=e.color)&&void 0!==t?t:"invert",className:r()("action-menu__item",{"action-menu__item--text-only":!e.iconId,"action-menu__item--active":e.active,"action-menu__item--disabled":e.disabled}),type:"button",iconId:e.iconId,loading:h||e.loading,onClick:(n=l.mark(function t(n){var o;return l.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),n.stopPropagation(),!u(o=e.onClick(n),Promise)){t.next=11;break}return f(!0),t.prev=5,t.next=8,o;case 8:return t.prev=8,m.current&&f(!1),t.finish(8);case 11:case"end":return t.stop()}},t,null,[[5,,8,11]])}),function(){var e=this,t=arguments;return new Promise(function(o,i){var r=n.apply(e,t);function a(e){c(r,o,i,a,s,"next",e)}function s(e){c(r,o,i,a,s,"throw",e)}a(void 0)})}),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},disabled:e.disabled||h,trailingIcon:e.trailingIcon},o.createElement("span",{className:"action-menu__item-label"},e.label)))};function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d.apply(this,arguments)}const h=function(e){return o.createElement("ul",{className:"action-menu"},e.items.map(function(e,t){return o.createElement(p,d({key:t},e))}),e.children)}},44870:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(94184),i=n.n(o),r=n(67294),a=n(96967);function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}const p=function(e){function t(e){var n,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(o=u(t).call(this,e))||"object"!=(i=o,i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)&&"function"!=typeof o?s(this):o).state={inlineBodyCss:{top:n.props.triggerBounding.height,left:0,right:"auto",bottom:"auto"}},n.handleKeyEvent=n.handleKeyEvent.bind(s(n)),n.windowResizeHander=n.windowResizeHander.bind(s(n)),n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.bodyElement&&(this.bodyBounding=this.bodyElement.getBoundingClientRect()),document.body.classList.add("context-menu-deprecated--isOpen"),document.addEventListener("keyup",this.handleKeyEvent),window.addEventListener("resize",this.windowResizeHander),this.setAlignment(this.props.triggerBounding)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setAlignment(e.triggerBounding)}},{key:"componentWillUnmount",value:function(){document.body.classList.remove("context-menu-deprecated--isOpen"),document.removeEventListener("keyup",this.handleKeyEvent),window.removeEventListener("resize",this.windowResizeHander)}},{key:"windowResizeHander",value:function(){this.props.closePopup()}},{key:"setAlignment",value:function(e){if(this.bodyBounding){var t=e.left+this.bodyBounding.width,n=e.bottom+this.bodyBounding.height,o={left:window.innerWidth<t?"auto":0,right:window.innerWidth<t?0:"auto",top:window.innerHeight<n?"auto":e.height,bottom:window.innerHeight<n?e.height:"auto"};this.props.placementX&&(o.left="left"===this.props.placementX?"auto":0,o.right="right"===this.props.placementX?"auto":0),this.props.placementY&&(o.top="top"===this.props.placementY?"auto":e.height,o.bottom="bottom"===this.props.placementY?"auto":e.height),this.setState({inlineBodyCss:o})}}},{key:"handleKeyEvent",value:function(e){"Escape"===e.key&&this.props.closePopup(),"Tab"===e.key&&e.target&&this.handleTab(e.target)}},{key:"handleTab",value:function(e){var t=this.wrapperElement;t&&t.contains(e)||this.props.closePopup()}},{key:"render",value:function(){var e=i()(this.props.className,{"context-menu__body-wrapper":!this.props.disableResponsiveBehavior});return r.createElement("div",{className:e,ref:function(e){this.wrapperElement=e}.bind(this)},r.createElement("div",{className:i()("context-menu__body",{"context-menu__body--no-responsive-behavior":this.props.disableResponsiveBehavior}),ref:function(e){this.bodyElement=e}.bind(this),style:this.state.inlineBodyCss},!this.props.hideCloseButton&&r.createElement("div",{className:"context-menu__close-button-wrapper"},r.createElement("button",{type:"button",className:"context-menu__close-button",onClick:function(){this.props.closePopup()}.bind(this)},r.createElement(a.Z,{iconId:"icon_16_close"}))),this.props.children))}}])&&c(n.prototype,o),t}(r.Component)},59061:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(94184),i=n.n(o),r=n(67294),a=n(96967);const s=function(e){var t,n,o,s=e.iconId?e.iconId:"icon_16_3-dots-vertical",c=i()("context-menu__trigger-button",e.className,(t={"context-menu__trigger-button--large":!!e.large,"context-menu__trigger-button--iconSmall":!!e.iconSmall,"context-menu__trigger-button--disabled":!!e.disabled,"context-menu__trigger-button--circle":!!e.circle},n="context-menu__trigger-button--circle--"+e.circleDirection,o=!!e.circle,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t));return r.createElement("button",{"data-testid":"context-menu__trigger-button",type:"button",className:c,onClick:function(t){t.preventDefault(),t.stopPropagation(),e.onClick(),document.dispatchEvent(new Event("click"))},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||e.stopPropagation()},"aria-label":e.ariaExpanded?e.closeButtonAriaLabel:e.ariaLabel,"aria-expanded":e.ariaExpanded,disabled:e.disabled,id:e.buttonId},r.createElement(a.Z,{svgAttributes:{"aria-hidden":!0,focusable:!1},iconId:s}))}}
1,16748:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(67294);const i=function(e){var t=(0,o.useRef)(null);return(0,o.useEffect)(function(){t.current&&e.setTriggerBounding(t.current.getBoundingClientRect())},[t.current,e.contextMenuIsOpen]),o.createElement("div",{className:"context-menu__trigger",ref:t},e.children)}},18903:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(94184),i=n.n(o),r=n(67294);function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}const l=function(e){function t(e){var n,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(o=c(t).call(this,e))||"object"!=(i=o,i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)&&"function"!=typeof o?a(this):o).state={isPopupOpen:!1,triggerBounding:{top:0,bottom:0,left:0,right:0,width:0,height:0},circleDirection:"bottom"},n.contextMenuBodyRef=r.createRef(),n.handleClickOutside=n.handleClickOutside.bind(a(n)),n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClickOutside)}},{key:"handleClickOutside",value:function(e){if(this.state.isPopupOpen){var t=this.contextMenuDivElement;(!t||e.target&&!t.contains(e.target))&&this.closePopup()}}},{key:"togglePopup",value:function(){this.state.isPopupOpen?this.closePopup():this.openPopup()}},{key:"openPopup",value:function(){this.setState({isPopupOpen:!0}),this.setBodyDirection()}},{key:"setBodyDirection",value:function(){window.requestAnimationFrame(function(){var e,t="auto"==(null===(e=this.contextMenuBodyRef.current)||void 0===e?void 0:e.state.inlineBodyCss.bottom)?"bottom":"top";this.setState({circleDirection:t})}.bind(this))}},{key:"closePopup",value:function(){this.setState({isPopupOpen:!1})}},{key:"setTriggerBounding",value:function(e){this.setState({triggerBounding:e})}},{key:"getRenderProps",value:function(){return{togglePopup:this.togglePopup.bind(this),closePopup:this.closePopup.bind(this),isPopupOpen:this.state.isPopupOpen,setTriggerBounding:this.setTriggerBounding.bind(this),triggerBounding:this.state.triggerBounding,openPopup:this.openPopup.bind(this),circleDirection:this.state.circleDirection,contextMenuBodyRef:this.contextMenuBodyRef}}},{key:"render",value:function(){var e=this.getRenderProps(),t=i()("context-menu-deprecated",this.props.className,{"context-menu-deprecated--thisPopupOpen":this.state.isPopupOpen,"context-menu-deprecated--hideBoxShadow":!!this.props.hideBoxShadow});return r.createElement("div",{className:t,ref:function(e){this.contextMenuDivElement=e}.bind(this)},this.props.render(e))}}])&&s(n.prototype,o),t}(r.Component)}}]);
2//# sourceMappingURL=7981.24e22650e50503941dc2.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.