1"use strict";(self.webpackChunkvinnova=self.webpackChunkvinnova||[]).push([[8253],{148:function(t,e,n){n.r(e);var r=n(0),o=n(4),i=n(3),a=n.n(i),c=n(1);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(s,t);var e,n,r,i=h(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),m(y(e=i.call(this,t)),"handleBoxHeights",(function(){var t=a()(e.aoItem),n=t.find(".item-content__container"),r=t.find(".element-link"),o=t.find(".tags");if(a()(window).width()>599){var i=-1;r.height()>75&&(i=r.height()-100),o.length&&(i+=o.height()),n.css("margin-top",0-i)}})),m(y(e),"getNumberOnRow",(function(){e.props.TotalCount;var t=e.props.numberOfItem,n=1;return a()(window).width()>1199?n=Math.ceil(t/4):a()(window).width()>1023?n=Math.ceil(t/3):a()(window).width()>599&&(n=Math.ceil(t/2)),'{"set":'.concat(n,"}")})),m(y(e),"handleMouseUp",(function(t){if(!0!==e.props.regularLink){t.preventDefault();var n=a()(t.currentTarget),r=e.props.query.q,o=e.props.item.HitType+"/"+e.props.item.HitId,i=e.props.item.TrackId;null==window.app.data.component.ComponentSearch.newSearch&&a().get("/ClickTrack",{query:r,hitId:o,trackId:i}),setTimeout((function(){location.href=n.attr("href")}),100)}})),e}return e=s,(n=[{key:"render",value:function(){var t=this,e=this.props.item,n="";null!==e.UtlysningSearchFindHit&&null!==e.UtlysningSearchFindHit.AnsokomgangStatus&&(n=e.UtlysningSearchFindHit.AnsokomgangStatus);var r={className:"component-search-results__item ao-item__card "+n,href:e.Url};null!==e.UtlysningSearchFindHit&&null!==e.UtlysningSearchFindHit.AnsokomgangTags&&e.UtlysningSearchFindHit.AnsokomgangTags.map((function(t,e){return(0,c.jsx)("span",{className:"tag",children:t},e)})),null!==e.UtlysningSearchFindHit&&null!==e.UtlysningSearchFindHit.AnsokomgangKeyWords&&e.UtlysningSearchFindHit.AnsokomgangKeyWords.length>0&&e.UtlysningSearchFindHit.AnsokomgangKeyWords.map((function(t,e){return(0,c.jsx)("li",{className:"tag",children:o.default.capitalize(t)},e)}));var i=(0,c.jsxs)("a",u(u({ref:function(e){t.aoItem=e}},r),{},{onClick:this.handleMouseUp.bind(this),children:[(0,c.jsx)("div",{className:"ao-item__image",style:{backgroundImage:e.ImgUrl?"url(".concat(e.ImgUrl,")"):""}}),(0,c.jsxs)("div",{className:"ao-item__body",children:[(0,c.jsx)("div",{className:"ao-item__title",children:(0,c.jsx)("span",{children:(0,o.truncateText)(e.Heading)})}),e.UtlysningSearchFindHit.AnsokomgangStatusText?(0,c.jsxs)("time",{className:"ao-item__status",dateTime:e.UtlysningSearchFindHit.AnsokomgangStatusDate,children:[(0,c.jsx)("i",{className:"icon icon-feather-bell"}),(0,c.jsx)("span",{children:e.UtlysningSearchFindHit.AnsokomgangStatusText})]}):null]})]}));return(0,c.jsx)("li",{className:"ao-item__wrapper",lang:e.Lang,"data-focus-item":!0,children:i})}}])&&f(e.prototype,n),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.Component);e.default=b}}]);
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.