{"version":3,"file":"bundle.js","sources":["webpack:///bundle.js"],"sourcesContent":["!function(e){function t(t){for(var i,s,a=t[0],l=t[1],c=t[2],d=0,f=[];du?d+20:u,window.isMobileDevice()?t.css(\"height\",\"auto\"):t.height(u+10)},e(document).ready((function(){window.resizeLeftNavbar()})),e(window).resize((function(){window.resizeLeftNavbar()})),window.isMobileDevice=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(e.substr(0,4)))&&(t=!0),t||window.innerWidth<992}}).call(this,n(2))},534:function(module,exports,__webpack_require__){(function(jQuery){!function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[],sortWrapper;function benchmark(e,t){log(e+\",\"+((new Date).getTime()-t.getTime())+\"ms\")}function log(e){\"undefined\"!=typeof console&&void 0!==console.debug?console.log(e):alert(e)}function buildParserCache(e,t){if(e.config.debug)var n=\"\";if(0!=e.tBodies.length){var i=e.tBodies[0].rows;if(i[0])for(var o=[],r=i[0].cells.length,s=0;s1?i=i.concat(checkCellColSpan(e,headerArr,n++)):(1==e.tHead.length||a.rowSpan>1||!o[n+1])&&i.push(a)}return i}function checkHeaderMetadata(e){return!(!$.metadata||!1!==$(e).metadata().sorter)}function checkHeaderOptions(e,t){return!(!e.config.headers[t]||!1!==e.config.headers[t].sorter)}function checkHeaderOptionsSortingLocked(e,t){return!(!e.config.headers[t]||!e.config.headers[t].lockedOrder)&&e.config.headers[t].lockedOrder}function applyWidget(e){for(var t=e.config.widgets,n=t.length,i=0;i\");$(\"tr:first td\",e.tBodies[0]).each((function(){n.append($(\"\").css(\"width\",$(this).width()))})),$(e).prepend(n)}}function updateHeaderSortCount(e,t){for(var n=e.config,i=t.length,o=0;o b[\"+e+\"]) ? 1 : 0));\"}function makeSortTextDesc(e){return\"((b[\"+e+\"] < a[\"+e+\"]) ? -1 : ((b[\"+e+\"] > a[\"+e+\"]) ? 1 : 0));\"}function makeSortNumeric(e){return\"a[\"+e+\"]-b[\"+e+\"];\"}function makeSortNumericDesc(e){return\"b[\"+e+\"]-a[\"+e+\"];\"}function sortText(e,t){return table.config.sortLocaleCompare?e.localeCompare(t):et?1:0}function sortTextDesc(e,t){return table.config.sortLocaleCompare?t.localeCompare(e):te?1:0}function sortNumeric(e,t){return e-t}function sortNumericDesc(e,t){return t-e}function getCachedSortType(e,t){return e[t].type}this.defaults={cssHeader:\"header\",cssAsc:\"headerSortUp\",cssDesc:\"headerSortDown\",cssChildRow:\"expand-child\",sortInitialOrder:\"asc\",sortMultiSortKey:\"shiftKey\",sortForce:null,sortAppend:null,sortLocaleCompare:!0,textExtraction:\"simple\",parsers:{},widgets:[],widgetZebra:{css:[\"even\",\"odd\"]},headers:{},widthFixed:!1,cancelSelection:!0,sortList:[],headerList:[],dateFormat:\"us\",decimal:\"/.|,/g\",onRenderHeader:null,selectorHeaders:\"thead th\",debug:!1},this.benchmark=benchmark,this.construct=function(e){return this.each((function(){if(this.tHead&&this.tBodies){var t,n,i,o;this.config={},o=$.extend(this.config,$.tablesorter.defaults,e),t=$(this),$.data(this,\"tablesorter\",o),n=buildHeaders(this),this.config.parsers=buildParserCache(this,n),i=buildCache(this);var r=[o.cssDesc,o.cssAsc];fixColumnWidth(this),n.click((function(e){var s=t[0].tBodies[0]&&t[0].tBodies[0].rows.length||0;if(!this.sortDisabled&&s>0){t.trigger(\"sortStart\");$(this);var a=this.column;if(this.order=this.count++%2,this.lockedOrder&&(this.order=this.lockedOrder),e[o.sortMultiSortKey])if(isValueInArray(a,o.sortList))for(d=0;d0&&t.trigger(\"sorton\",[o.sortList]),applyWidget(this)}}))},this.addParser=function(e){for(var t=parsers.length,n=!0,i=0;iSäkerställa nödvändig teknisk funktionalitet och säkerhet. Dessa kakor är nödvändiga för att webbplatsen ska fungera som den ska och för att skydda webbplatsen och går därför inte att stänga av.\",o.boxes[0].text=\"Dessa kakor är nödvändiga för att webbplatsen ska fungera som den ska och för att skydda webbplatsen och går därför inte att stänga av.\"):(o.boxes[0].title=\"Ensure necessary technical functionality and security.\",o.boxes[0].text=\"These cookies are necessary for the website to function properly and to protect the website and can therefore not be shut down.\"),i.options=t.extend(o,e),i.cookieValue=\"\",void 0!==i.options.settingsContainer&&void 0!==i.options.settingsLinkButton){var r=t(i.options.settingsContainer),s=t(i.options.settingsWrapper),a=t(i.options.settingsLinkButton);s.append(a),r.append(s),a.click((function(){i.cookieSettingsElement.show()}))}var l=new Date;l.setTime(l.getTime()+24*i.options.expireDays*60*60*1e3),l=l.toGMTString(),i.onLoad=function(){var e,t,n=document.cookie.split(\"; \");for(e=0;e'),i.acceptButton=t('\"),i.settingsButton=t('\"),i.closeButton=t('x'),\"\"==i.cookieValue&&(i.cookieBarElement=t('
'),i.cookieBarElement.append(i.closeButton),i.cookieBarElement.append('

'+i.options.title+'

'+i.options.message+\"

\"),i.buttonWrapper.append(i.acceptButton).append(i.settingsButton),i.cookieBarElement.append(i.buttonWrapper),i.options.element&&(i.options.prepend?t(i.options.element).prepend(i.cookieBarElement):t(i.cookieBarElement).insertAfter(i.options.element))),i.acceptButton.click((function(){setTimeout((function(){i.acceptAll(),i.updateCookieSettings()}),200)})),i.settingsButton.click((function(){setTimeout((function(){i.cookieBarElement.hide(),i.cookieSettingsElement.show()}),200)})),i.closeButton.click((function(){i.acceptEssential(),i.cookieBarElement.hide()})),i.settingsAcceptButton=t('\"),i.settingsCloseButton=t('x');var c=[];return i.options.boxes.forEach((function(e,n){var o=t('\")),r=t('\")),s=t('
');s.prepend(o),s.prepend(r),r.click((function(){i.changeCheckbox(r,e)})),r.keydown((function(t){32===t.keyCode&&(t.preventDefault(),i.changeCheckbox(r,e))})),c.push(s)})),i.changeCheckbox=function(e,t){if(!e.is(\"[disabled]\")){var n=\"true\"===e.attr(\"aria-checked\");e.attr(\"aria-checked\",!n),t.checked=!n}},i.cookieSettingsElement=t('
'),i.cookieSettingsElement.append(i.settingsCloseButton),i.cookieSettingsElement.append('

'+i.options.settingsTitle+'

'+i.options.settingsSmallText+\"

\"),i.cookieSettingsElement.append(c),i.cookieSettingsElement.append(i.settingsAcceptButton),i.settingsAcceptButton.click((function(){setTimeout((function(){i.updateCookieSettings()}),200)})),i.settingsCloseButton.click((function(){i.acceptEssential(),i.cookieSettingsElement.hide()})),i.options.element&&(i.options.prepend?t(i.options.element).prepend(i.cookieSettingsElement):t(i.cookieSettingsElement).insertAfter(i.options.element)),{getBoxes:function(){return i.options.boxes},showSettings:function(){i.cookieSettingsElement.show()}}}}).call(this,n(2))},536:function(e,t,n){(function(e){!function(t){var n=function(){\"use strict\";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\\d+(.\\d+)?)/i)[2]},isBlankString:function(e){return!e||/^\\s*$/.test(e)},escapeRegExChars:function(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")},isString:function(e){return\"string\"==typeof e},isNumber:function(e){return\"number\"==typeof e},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(e){return void 0===e},toStr:function(e){return n.isUndefined(e)||null===e?\"\":e+\"\"},bind:t.proxy,each:function(e,n){t.each(e,(function(e,t){return n(t,e)}))},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,(function(t,o){if(!(i=n.call(null,o,t,e)))return!1})),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,(function(t,o){if(i=n.call(null,o,t,e))return!1})),!!i):i},mixin:t.extend,getUniqueId:(e=0,function(){return e++}),templatify:function(e){return t.isFunction(e)?e:function(){return String(e)}},defer:function(e){setTimeout(e,0)},debounce:function(e,t,n){var i,o;return function(){var r,s,a=this,l=arguments;return r=function(){i=null,n||(o=e.apply(a,l))},s=n&&!i,clearTimeout(i),i=setTimeout(r,t),s&&(o=e.apply(a,l)),o}},throttle:function(e,t){var n,i,o,r,s,a;return s=0,a=function(){s=new Date,o=null,r=e.apply(n,i)},function(){var l=new Date,c=t-(l-s);return n=this,i=arguments,c<=0?(clearTimeout(o),o=null,s=l,r=e.apply(n,i)):o||(o=setTimeout(a,c)),r}},noop:function(){}};var e}(),i=function(){\"use strict\";return{nonword:t,whitespace:e,obj:{nonword:i(t),whitespace:i(e)}};function e(e){return(e=n.toStr(e))?e.split(/\\s+/):[]}function t(e){return(e=n.toStr(e))?e.split(/\\W+/):[]}function i(e){return function(){var t=[].slice.call(arguments,0);return function(i){var o=[];return n.each(t,(function(t){o=o.concat(e(n.toStr(i[t])))})),o}}}}(),o=function(){\"use strict\";function e(e){this.maxSize=n.isNumber(e)?e:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function i(){this.head=this.tail=null}function o(e,t){this.key=e,this.val=t,this.prev=this.next=null}return n.mixin(e.prototype,{set:function(e,t){var n,i=this.list.tail;this.size>=this.maxSize&&(this.list.remove(i),delete this.hash[i.key]),(n=this.hash[e])?(n.val=t,this.list.moveToFront(n)):(n=new o(e,t),this.list.add(n),this.hash[e]=n,this.size++)},get:function(e){var t=this.hash[e];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0,this.hash={},this.list=new i}}),n.mixin(i.prototype,{add:function(e){this.head&&(e.next=this.head,this.head.prev=e),this.head=e,this.tail=this.tail||e},remove:function(e){e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev},moveToFront:function(e){this.remove(e),this.add(e)}}),e}(),r=function(){\"use strict\";var e,t;try{(e=window.localStorage).setItem(\"~~~\",\"!\"),e.removeItem(\"~~~\")}catch(t){e=null}function i(e){this.prefix=[\"__\",e,\"__\"].join(\"\"),this.ttlKey=\"__ttl__\",this.keyMatcher=new RegExp(\"^\"+n.escapeRegExChars(this.prefix))}return t=e&&window.JSON?{_prefix:function(e){return this.prefix+e},_ttlKey:function(e){return this._prefix(e)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),s(e.getItem(this._prefix(t)))},set:function(t,i,s){return n.isNumber(s)?e.setItem(this._ttlKey(t),r(o()+s)):e.removeItem(this._ttlKey(t)),e.setItem(this._prefix(t),r(i))},remove:function(t){return e.removeItem(this._ttlKey(t)),e.removeItem(this._prefix(t)),this},clear:function(){var t,n,i=[],o=e.length;for(t=0;ti)}}:{get:n.noop,set:n.noop,remove:n.noop,clear:n.noop,isExpired:n.noop},n.mixin(i.prototype,t),i;function o(){return(new Date).getTime()}function r(e){return JSON.stringify(n.isUndefined(e)?null:e)}function s(e){return JSON.parse(e)}}(),s=function(){\"use strict\";var e=0,i={},r=6,s=new o(10);function a(e){var i;e=e||{},this.cancelled=!1,this.lastUrl=null,this._send=e.transport?(i=e.transport,function(e,o){var r=t.Deferred();return i(e,o,(function(e){n.defer((function(){r.resolve(e)}))}),(function(e){n.defer((function(){r.reject(e)}))})),r}):t.ajax,this._get=e.rateLimiter?e.rateLimiter(this._get):this._get,this._cache=!1===e.cache?new o(0):s}return a.setMaxPendingRequests=function(e){r=e},a.resetCache=function(){s.reset()},n.mixin(a.prototype,{_get:function(t,n,o){var s,a=this;function l(e){o&&o(null,e),a._cache.set(t,e)}function c(){o&&o(!0)}function u(){e--,delete i[t],a.onDeckRequestArgs&&(a._get.apply(a,a.onDeckRequestArgs),a.onDeckRequestArgs=null)}this.cancelled||t!==this.lastUrl||((s=i[t])?s.done(l).fail(c):et[i]||(o.push(e[n]),n++),i++);return o;function a(e,t){return e-t}}(o,s):s})),o?n.map(function(e){for(var t={},n=[],i=0,o=e.length;i0||!this.transport)&&t&&t(o)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&s.resetCache()},ttAdapter:function(){return n.bind(this.get,this)}}),u;function d(){return!1}}(this);var c={wrapper:'',dropdown:'',dataset:'
',suggestions:'',suggestion:'
'},u=function(){\"use strict\";var e={wrapper:{position:\"relative\",display:\"inline-block\"},hint:{position:\"absolute\",top:\"0\",left:\"0\",borderColor:\"transparent\",boxShadow:\"none\",opacity:\"1\"},input:{position:\"relative\",verticalAlign:\"top\",backgroundColor:\"transparent\"},inputWithNoHint:{position:\"relative\",verticalAlign:\"top\"},dropdown:{position:\"absolute\",top:\"100%\",left:\"0\",zIndex:\"100\",display:\"none\"},suggestions:{display:\"block\"},suggestion:{whiteSpace:\"nowrap\",cursor:\"pointer\"},suggestionChild:{whiteSpace:\"normal\"},ltr:{left:\"0\",right:\"auto\"},rtl:{left:\"auto\",right:\" 0\"}};return n.isMsie()&&n.mixin(e.input,{backgroundImage:\"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)\"}),n.isMsie()&&n.isMsie()<=7&&n.mixin(e.input,{marginTop:\"-1px\"}),e}(),d=function(){\"use strict\";function e(e){e&&e.el||t.error(\"EventBus initialized without el\"),this.$el=t(e.el)}return n.mixin(e.prototype,{trigger:function(e){var t=[].slice.call(arguments,1);this.$el.trigger(\"typeahead:\"+e,t)}}),e}(),f=function(){\"use strict\";var t=/\\s+/,n=function(){var t;t=window.setImmediate?function(t){e((function(){t()}))}:function(e){setTimeout((function(){e()}),0)};return t}();return{onSync:function(e,t,n){return i.call(this,\"sync\",e,t,n)},onAsync:function(e,t,n){return i.call(this,\"async\",e,t,n)},off:function(e){var n;if(!this._callbacks)return this;e=e.split(t);for(;n=e.shift();)delete this._callbacks[n];return this},trigger:function(e){var i,r,s,a,l;if(!this._callbacks)return this;e=e.split(t),s=[].slice.call(arguments,1);for(;(i=e.shift())&&(r=this._callbacks[i]);)a=o(r.sync,this,[i].concat(s)),l=o(r.async,this,[i].concat(s)),a()&&n(l);return this}};function i(e,n,i,o){var r;if(!i)return this;for(n=n.split(t),i=o?function(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}(i,o):i,this._callbacks=this._callbacks||{};r=n.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][e].push(i);return this}function o(e,t,n){return function(){for(var i,o=0,r=e.length;!i&&o').css({position:\"absolute\",visibility:\"hidden\",whiteSpace:\"pre\",fontFamily:l.css(\"font-family\"),fontSize:l.css(\"font-size\"),fontStyle:l.css(\"font-style\"),fontVariant:l.css(\"font-variant\"),fontWeight:l.css(\"font-weight\"),wordSpacing:l.css(\"word-spacing\"),letterSpacing:l.css(\"letter-spacing\"),textIndent:l.css(\"text-indent\"),textRendering:l.css(\"text-rendering\"),textTransform:l.css(\"text-transform\")}).insertAfter(l))}return e={9:\"tab\",27:\"esc\",37:\"left\",39:\"right\",13:\"enter\",38:\"up\",40:\"down\"},i.normalizeQuery=function(e){return(e||\"\").replace(/^\\s*/g,\"\").replace(/\\s{2,}/g,\" \")},n.mixin(i.prototype,f,{_onBlur:function(){this.resetInputValue(),this.trigger(\"blurred\")},_onFocus:function(){this.trigger(\"focused\")},_onKeydown:function(t){var n=e[t.which||t.keyCode];this._managePreventDefault(n,t),n&&this._shouldTrigger(n,t)&&this.trigger(n+\"Keyed\",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(e,t){var n,i,r;switch(e){case\"tab\":i=this.getHint(),r=this.getInputValue(),n=i&&i!==r&&!o(t);break;case\"up\":case\"down\":n=!o(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){var n;switch(e){case\"tab\":n=!o(t);break;default:n=!0}return n},_checkInputValue:function(){var e,t,n,o,r;e=this.getInputValue(),o=e,r=this.query,n=!!(t=i.normalizeQuery(o)===i.normalizeQuery(r))&&this.query.length!==e.length,this.query=e,t?n&&this.trigger(\"whitespaceChanged\",this.query):this.trigger(\"queryChanged\",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(e){this.query=e},getInputValue:function(){return this.$input.val()},setInputValue:function(e,t){this.$input.val(e),t?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint(\"\")},clearHintIfInvalid:function(){var e,t,n;n=(e=this.getInputValue())!==(t=this.getHint())&&0===t.indexOf(e),!(\"\"!==e&&n&&!this.hasOverflow())&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css(\"direction\")||\"ltr\").toLowerCase()},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,t,i;return e=this.$input.val().length,t=this.$input[0].selectionStart,n.isNumber(t)?t===e:!document.selection||((i=document.selection.createRange()).moveStart(\"character\",-e),e===i.text.length)},destroy:function(){this.$hint.off(\".tt\"),this.$input.off(\".tt\"),this.$hint=this.$input=this.$overflowHelper=null}}),i;function o(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}}(),g=function(){\"use strict\";function e(e){var i,o,r,s;(e=e||{}).templates=e.templates||{},e.source||t.error(\"missing source\"),e.name&&(i=e.name,!/^[_a-zA-Z0-9-]+$/.test(i))&&t.error(\"invalid dataset name: \"+e.name),this.query=null,this.highlight=!!e.highlight,this.name=e.name||n.getUniqueId(),this.source=e.source,this.displayFn=(o=(o=e.display||e.displayKey)||\"value\",n.isFunction(o)?o:function(e){return e[o]}),this.templates=(r=e.templates,s=this.displayFn,{empty:r.empty&&n.templatify(r.empty),header:r.header&&n.templatify(r.header),footer:r.footer&&n.templatify(r.footer),suggestion:r.suggestion||function(e){return\"

\"+s(e)+\"

\"}}),this.$el=t(c.dataset.replace(\"%CLASS%\",this.name))}return e.extractDatasetName=function(e){return t(e).data(\"ttDataset\")},e.extractValue=function(e){return t(e).data(\"ttValue\")},e.extractDatum=function(e){return t(e).data(\"ttDatum\")},n.mixin(e.prototype,f,{_render:function(e,i){if(this.$el){var o,r,s,a=this;this.$el.empty(),!(o=i&&i.length)&&this.templates.empty?this.$el.html(a.templates.empty({query:e,isEmpty:!0})).prepend(a.templates.header?l():null).append(a.templates.footer?d():null):o&&this.$el.html((r=t(c.suggestions).css(u.suggestions),s=n.map(i,(function(e){var n;return(n=t(c.suggestion).append(a.templates.suggestion(e)).data(\"ttDataset\",a.name).data(\"ttValue\",a.displayFn(e)).data(\"ttDatum\",e)).children().each((function(){t(this).css(u.suggestionChild)})),n})),r.append.apply(r,s),a.highlight&&h({className:\"tt-highlight\",node:r[0],pattern:e}),r)).prepend(a.templates.header?l():null).append(a.templates.footer?d():null),this.trigger(\"rendered\")}function l(){return a.templates.header({query:e,isEmpty:!o})}function d(){return a.templates.footer({query:e,isEmpty:!o})}},getRoot:function(){return this.$el},update:function(e){var t=this;this.query=e,this.canceled=!1,this.source(e,(function(n){t.canceled||e!==t.query||t._render(e,n)}))},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger(\"rendered\")},isEmpty:function(){return this.$el.is(\":empty\")},destroy:function(){this.$el=null}}),e}(),m=function(){\"use strict\";function e(e){var o,r,s,a=this;(e=e||{}).menu||t.error(\"menu is required\"),this.isOpen=!1,this.isEmpty=!0,this.datasets=n.map(e.datasets,i),o=n.bind(this._onSuggestionClick,this),r=n.bind(this._onSuggestionMouseEnter,this),s=n.bind(this._onSuggestionMouseLeave,this),this.$menu=t(e.menu).on(\"click.tt\",\".tt-suggestion\",o).on(\"mouseenter.tt\",\".tt-suggestion\",r).on(\"mouseleave.tt\",\".tt-suggestion\",s),n.each(this.datasets,(function(e){a.$menu.append(e.getRoot()),e.onSync(\"rendered\",a._onRendered,a)}))}return n.mixin(e.prototype,f,{_onSuggestionClick:function(e){this.trigger(\"suggestionClicked\",t(e.currentTarget))},_onSuggestionMouseEnter:function(e){this._removeCursor(),this._setCursor(t(e.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){this.isEmpty=n.every(this.datasets,(function(e){return e.isEmpty()})),this.isEmpty?this._hide():this.isOpen&&this._show(),this.trigger(\"datasetRendered\")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css(\"display\",\"block\")},_getSuggestions:function(){return this.$menu.find(\".tt-suggestion\")},_getCursor:function(){return this.$menu.find(\".tt-cursor\").first()},_setCursor:function(e,t){e.first().addClass(\"tt-cursor\"),!t&&this.trigger(\"cursorMoved\")},_removeCursor:function(){this._getCursor().removeClass(\"tt-cursor\")},_moveCursor:function(e){var t,n,i,o;this.isOpen&&(n=this._getCursor(),t=this._getSuggestions(),this._removeCursor(),-1!==(i=((i=t.index(n)+e)+1)%(t.length+1)-1)?(i<-1&&(i=t.length-1),this._setCursor(o=t.eq(i)),this._ensureVisible(o)):this.trigger(\"cursorRemoved\"))},_ensureVisible:function(e){var t,n,i,o;n=(t=e.position().top)+e.outerHeight(!0),i=this.$menu.scrollTop(),o=this.$menu.height()+parseInt(this.$menu.css(\"paddingTop\"),10)+parseInt(this.$menu.css(\"paddingBottom\"),10),t<0?this.$menu.scrollTop(i+t):o0,n.isMsie()&&(r||s)&&(e.preventDefault(),e.stopImmediatePropagation(),n.defer((function(){o.focus()})))})),i.on(\"mousedown.tt\",(function(e){e.preventDefault()})),this.eventBus=e.eventBus||new d({el:o}),this.dropdown=new m({menu:i,datasets:e.datasets}).onSync(\"suggestionClicked\",this._onSuggestionClicked,this).onSync(\"cursorMoved\",this._onCursorMoved,this).onSync(\"cursorRemoved\",this._onCursorRemoved,this).onSync(\"opened\",this._onOpened,this).onSync(\"closed\",this._onClosed,this).onAsync(\"datasetRendered\",this._onDatasetRendered,this),this.input=new p({input:o,hint:r}).onSync(\"focused\",this._onFocused,this).onSync(\"blurred\",this._onBlurred,this).onSync(\"enterKeyed\",this._onEnterKeyed,this).onSync(\"tabKeyed\",this._onTabKeyed,this).onSync(\"escKeyed\",this._onEscKeyed,this).onSync(\"upKeyed\",this._onUpKeyed,this).onSync(\"downKeyed\",this._onDownKeyed,this).onSync(\"leftKeyed\",this._onLeftKeyed,this).onSync(\"rightKeyed\",this._onRightKeyed,this).onSync(\"queryChanged\",this._onQueryChanged,this).onSync(\"whitespaceChanged\",this._onWhitespaceChanged,this),this._setLanguageDirection()}return n.mixin(e.prototype,{_onSuggestionClicked:function(e,t){var n;(n=this.dropdown.getDatumForSuggestion(t))&&this._select(n)},_onCursorMoved:function(){var e=this.dropdown.getDatumForCursor();this.input.setInputValue(e.value,!0),this.eventBus.trigger(\"cursorchanged\",e.raw,e.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint(),this.eventBus.trigger(\"opened\")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger(\"closed\")},_onFocused:function(){this.isActivated=!0,this.dropdown.open()},_onBlurred:function(){this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()},_onEnterKeyed:function(e,t){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion(),n?(this._select(n),t.preventDefault()):this.autoselect&&i&&(this._select(i),t.preventDefault())},_onTabKeyed:function(e,t){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){\"rtl\"===this.dir&&this._autocomplete()},_onRightKeyed:function(){\"ltr\"===this.dir&&this._autocomplete()},_onQueryChanged:function(e,t){this.input.clearHintIfInvalid(),t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var e;this.dir!==(e=this.input.getLanguageDirection())&&(this.dir=e,this.$node.css(\"direction\",e),this.dropdown.setLanguageDirection(e))},_updateHint:function(){var e,t,i,o,r;(e=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),i=p.normalizeQuery(t),o=n.escapeRegExChars(i),(r=new RegExp(\"^(?:\"+o+\")(.+$)\",\"i\").exec(e.value))?this.input.setHint(t+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(e){var t,n,i,o;t=this.input.getHint(),n=this.input.getQuery(),i=e||this.input.isCursorAtEnd(),t&&n!==t&&i&&((o=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(o.value),this.eventBus.trigger(\"autocompleted\",o.raw,o.datasetName))},_select:function(e){this.input.setQuery(e.value),this.input.setInputValue(e.value,!0),this._setLanguageDirection(),this.eventBus.trigger(\"selected\",e.raw,e.datasetName),this.dropdown.close(),n.defer(n.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(e){e=n.toStr(e),this.isActivated?this.input.setInputValue(e):(this.input.setQuery(e),this.input.setInputValue(e,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var e,t;this.input.destroy(),this.dropdown.destroy(),e=this.$node,t=e.find(\".tt-input\"),n.each(t.data(\"ttAttrs\"),(function(e,i){n.isUndefined(e)?t.removeAttr(i):t.attr(i,e)})),t.detach().removeData(\"ttAttrs\").removeClass(\"tt-input\").insertAfter(e),e.remove(),this.$node=null}}),e}();!function(){\"use strict\";var e,i;e=t.fn.typeahead,i={initialize:function(e,i){return i=n.isArray(i)?i:[].slice.call(arguments,1),e=e||{},this.each(o);function o(){var o,r=t(this);n.each(i,(function(t){t.highlight=!!e.highlight})),o=new v({input:r,eventBus:new d({el:r}),withHint:!!n.isUndefined(e.hint)||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,datasets:i}),r.data(\"ttTypeahead\",o)}},open:function(){return this.each((function(){var e,n=t(this);(e=n.data(\"ttTypeahead\"))&&e.open()}))},close:function(){return this.each((function(){var e,n=t(this);(e=n.data(\"ttTypeahead\"))&&e.close()}))},val:function(e){return arguments.length?this.each(n):i(this.first());function n(){var n;(n=t(this).data(\"ttTypeahead\"))&&n.setVal(e)}function i(e){var t,n;return(t=e.data(\"ttTypeahead\"))&&(n=t.getVal()),n}},destroy:function(){return this.each((function(){var e,n=t(this);(e=n.data(\"ttTypeahead\"))&&(e.destroy(),n.removeData(\"ttTypeahead\"))}))}},t.fn.typeahead=function(e){var n;return i[e]&&\"initialize\"!==e?(n=this.filter((function(){return!!t(this).data(\"ttTypeahead\")})),i[e].apply(n,[].slice.call(arguments,1))):i.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=e,this}}()}(window.jQuery)}).call(this,n(272).setImmediate)},539:function(e,t,n){(function(e){e(document).ready((function(){e.fn.validator.Constructor.FOCUS_OFFSET=85,e.fn.validator.Constructor.INPUT_SELECTOR+=\",.multi-field-add,textarea\";e(\".ethics-form\").each((function(){var t=e(this);t.validator({custom:{\"min-added\":function(e){var t=e.attr(\"data-min-added\");return e.data(\"MultiFieldAdd\").val()t.val()&&\"End date can not be earlier than start date\"},\"ckeditor-minlength\":function(t){var n=t.attr(\"data-ckeditor-minlength\");return e(t.ckeditor().editor.getData()).text().length0&&(n.find('button[type=\"submit\"]').on(\"click\",(function(n){n.preventDefault();var i=\"SaveAsDraft\"===e(this).val();i?(e(\"form\").attr(\"action\",\"SaveAsDraft\"),t.find(e.fn.validator.Constructor.INPUT_SELECTOR).each((function(t,n){var o=e(n);o.attr(\"data-validate\",i&&\"true\"===o.attr(\"data-draft-validate\"))})),t.validator(\"update\")):e(\"form\").attr(\"action\",\"Save\")})),e(n).on(\"click\",\"a.btn-multi-toggle\",(function(t){t.preventDefault();var n=e(this),i=e(n.attr(\"data-toggle-with\")),o=i.val(),r=i.html();i.val(n.attr(\"data-value\")),i.html(n.html()),n.attr(\"data-value\",o),n.html(r),i.trigger(\"click\")}))),e(\".upload-file-form\").on(\"click\",(function(){var t=e(\".files-new\"),n=t.find(\".file.file-empty\");0===n.length&&(n=e(''),t.append(n)),n.trigger(\"click\")})),e(\".files-new\").on(\"change\",\"input\",(function(){var n=e(this);n.removeClass(\"file-empty\");var i=n.val().split(\"\\\\\").pop(),o=n.attr(\"data-file-id\");e(\".files-list\").append(e(function(e,t){return'
  • '+e+'
  • '}(i,o))),t.validator(\"validate\")})),e(\".files-list\").on(\"click\",\"button\",(function(){if(window.confirm(\"Är du säker på att du vill ta bort detta dokument?\")){var n=e(this).closest(\"li\"),i=n.attr(\"new-data-file-id\"),o=n.attr(\"old-data-file-id\");if(i)e('.files-new input[data-file-id=\"'+i+'\"').remove(),n.remove();else o&&(n.find(\".deleted-input\").val(!0),n.addClass(\"file-deleted\"));t.validator(\"validate\")}})),e(\".suggestion-autocomplete\").each((function(){var t=e(this),n=t.data(\"suggestion-values\");e(\".btn-save-add-new\").hide(),e(\".btn-cancel-add-new\").hide(),n&&(t.attr(\"autocomplete\",\"off\"),t.autocomplete({lookup:n,minChars:0,onInvalidateSelection:function(){t.val(\"\")},onSelect:function(e){t.trigger(\"input\")}}))})),e(\".btn-add-new\").on(\"click\",(function(){e(this).closest(\"form\").find(\"#Name\").hide(),e(this).closest(\"form\").find(\"#Name\").after(''),e(\".btn-add-new\").hide(),e(\".btn-save-add-new\").show(),e(\".btn-cancel-add-new\").show()})),e(document).on(\"blur\",\".add-new\",(function(){e(this).closest(\"form\").find(\"#Name\").val(e(this).val())})),e(\".btn-save-add-new\").on(\"click\",(function(){i(),e(this).closest(\"form\").find(\"#Name\").show()})),e(\".btn-cancel-add-new\").on(\"click\",(function(){i(),e(this).closest(\"form\").find(\"#Name\").show()})),e(\".add-area.modal\").on(\"hidden.bs.modal\",(function(){i(),e(this).find(\"#Name\").show()}));var o=function(t){this.$el=e(t)};o.prototype={val:function(){return this.$el.find(\"tbody tr\").length}},e.valHooks.fieldset={get:function(t){var n=e(t);return n.hasClass(\"multi-field-add\")?n.data(\"MultiFieldAdd\").val():\"\"}},e(\".multi-field-add\").each((function(t,n){var i=e(n),r=new o(n);i.data(\"MultiFieldAdd\",r);var s=e(\".result-area tbody\",i),a=i.attr(\"data-name-prefix\"),l=e(\"button.btn-add\",i),c=e(l.attr(\"data-target\"));if(void 0===c)throw\"Could not find add modal\";var u=e(\"input[type!=button][type!=submit]\",c),d=e(\"form\",c),f=e(\"button.btn-add-or-update\",c),h=function(){i.trigger(\"input\")};l.on(\"click\",(function(t){t.preventDefault(),f.html(e(this).html())})),i.on(\"click\",\".result-area tr button.edit\",(function(t){t.preventDefault();var n=e(this),i=n.closest(\"tr\");f.html(n.html()),c.data(\"edit-item\",i),u.each((function(t,n){var o=e(n).attr(\"name\").split(\".\").slice(-1)[0],r=i.find(\"input[name$='.\"+o+\"']\").val();e('input[name=\"'+o+'\"]',c).val(r)}))})),s.on(\"click\",\"tr button.delete\",(function(t){t.preventDefault(),!0===confirm(i.attr(\"data-delete-confirmation-text\")||\"Är du säker på att du vill ta bort?\")&&(e(this).closest(\"tr\").remove(),c.data(\"edit-item\",null),e(\"tr\",s).each((function(t,n){var i=e(n),o=i.attr(\"data-index\");e(\"input\",this).each((function(n,i){var r=e(i),s=r.attr(\"name\");s=s.replace(a+\"[\"+o+\"]\",a+\"[\"+t+\"]\"),r.attr(\"name\",s)})),i.attr(\"data-index\",t)})),h())})),c.on(\"hidden.bs.modal\",(function(){h(),c.data(\"edit-item\",null),d.trigger(\"reset\")})),d.on(\"submit\",(function(t){e(this);if(d.validator(\"validate\"),!f.hasClass(\"disabled\")){var n=c.data(\"edit-item\");if(n)u.each((function(t,i){var o=e(i),r=o.val();e('input[name$=\".'+o.attr(\"name\")+'\"]',n).val(r),e(\".display-\"+o.attr(\"name\"),n).html(o.val())})),c.data(\"edit-item\",null);else{var i=e(\"tr\",s).last().attr(\"data-index\"),o=0;i&&(o=parseInt(i)+1);var r=e(''),p=\"\",g=\"\";u.each((function(t,n){var i=e(n);g+=\"\",p+=\"\"+i.val()+\"\"}));var m=e(p+''+g+\"\").appendTo(r);e(m).appendTo(r),s.append(r)}h(),e(c.find(\"form\")).trigger(\"reset\"),c.data(\"edit-item\",null),c.modal(\"hide\")}}))})),t.on(\"click\",'button[type=\"submit\"]',(function(n){n.preventDefault();var i=e(this);if(t.validator(\"validate\"),i.hasClass(\"disabled\"))return!1;t.submit()})),t.on(\"click\",\"a.btn-href-with-confirm\",(function(t){t.preventDefault();var n=e(this);!0===confirm(n.attr(\"data-confirmation-text\")||\"Är du säker?\")&&(window.location.href=n.attr(\"href\"))})),e(\"input[type=checkbox]\",\".patients-or-relatives\").change((function(){var t=e(this),n=e(t.closest(\".economics\")),i=e(t.closest(\"div.checkbox\")),o=n.find(\".lead\"),r=n.data(\"checked-items\")||[],s=e(i.find(\"span.value\")).text();t.prop(\"checked\")?r.push(s):r.splice(e.inArray(s,r),1);var a=r.join(\", \");r.length<=0?o.val(\"Ingen ersättning\"):o.val(a),n.data(\"checked-items\",r)}));var r={locale:\"sv\",format:\"YYYY-MM-DD\",minDate:1,allowInputToggle:!0};e(\".ethics-form .datetimepicker-max\").each((function(){var t=e(this),n=e.extend({},r,{useCurrent:!1}),i=t.attr(\"data-date-later-than\"),o=e(\"#\"+i).parent(\".input-group\");if(!o&&0==o.length)throw\"Could not find datepicker for data-date-later-than\";var s=t.datetimepicker(n);o.datetimepicker(r).on(\"dp.change\",(function(e){s.data(\"DateTimePicker\").minDate(e.date)}))})),e(\".ck-editor\",t).each((function(t,n){var i=e(n),o=i.attr(\"required\"),r=i.ckeditor({toolbarGroups:[{name:\"clipboard\",groups:[\"clipboard\",\"undo\"]},{name:\"editing\",groups:[\"find\",\"selection\",\"spellchecker\"]},{name:\"links\"},{name:\"insert\"},{name:\"forms\"},{name:\"tools\"},{name:\"document\",groups:[\"mode\",\"document\",\"doctools\"]},{name:\"others\"},\"/\",{name:\"basicstyles\",groups:[\"basicstyles\",\"cleanup\"]},{name:\"paragraph\",groups:[\"list\",\"indent\",\"blocks\",\"align\",\"bidi\"]},{name:\"styles\"},{name:\"colors\"},{name:\"about\"}]}).editor;o&&i.attr(\"required\",\"true\"),r.on(\"change\",(function(e){e.editor.updateElement(),setTimeout((function(){i.change()}),200)}))})),e(\"#other-reason-delete, #project-closed-delete\").change((function(){var t=e(\"#DeletedReasonOtherThanClosed\").val(),n=e(\"#other-reason-delete\").prop(\"checked\"),i=e(\"#project-closed-delete\").prop(\"checked\");n?e(\"#DeletedReasonOtherThanClosed\").prop(\"disabled\",!1):(e(\"#DeletedReasonOtherThanClosed\").prop(\"disabled\",!0),e(\"#DeletedReasonOtherThanClosed\").val(\"\")),t.length>5&&n||i?e(\"#DeleteActivityButton\").prop(\"disabled\",!1):e(\"#DeleteActivityButton\").prop(\"disabled\",!0)})),e(\"#DeletedReasonOtherThanClosed\").on(\"change mouseout\",(function(){var t=e(\"#DeletedReasonOtherThanClosed\").val(),n=e(\"#other-reason-delete\").prop(\"checked\");t.length>5&&n?e(\"#DeleteActivityButton\").prop(\"disabled\",!1):n&&e(\"#DeleteActivityButton\").prop(\"disabled\",!0)})),e(\"#CancelDeleteActivity\").on(\"click\",(function(){e(\"#DeletedReasonOtherThanClosed\").val(\"\"),e(\"#other-reason-delete\").prop(\"checked\",!1).trigger(\"click\"),e(\"#project-closed-delete\").prop(\"checked\",!1).trigger(\"click\")})),e(\"#DeleteActivityButton\").on(\"click\",(function(){e(\"#deleteSpinner\").html('
    ')}))}))}))}).call(this,n(2))},540:function(e,t,n){(function(e){if(e(\".vimeo-player-autoplay-silent\"))e(\".vimeo-player-autoplay-silent\").each((function(e,t){var n=new Vimeo.Player(t);n.ready().then((function(){n.setVolume(0)}))}))}).call(this,n(2))},541:function(e,t,n){(function(e){!function(){\"use strict\";var t=angular.module(\"lif\",[\"ngAnimate\",\"checklist-model\",\"lif.filters\",\"lif.controllers\",\"ngFileUpload\",\"datetime\",\"ui.sortable\"]);t.constant(\"constants\",{GroupEventType:{Default:0,Member:1,Message:2,File:3,Link:4,MeetingsFile:5,CatalogStructureWithFile:6},Action:{Delete:0,Add:1,Shoutout:2}}),angular.module(\"lif.filters\",[]),angular.module(\"lif.services\",[]),angular.module(\"lif.controllers\",[\"lif.services\"]),t.run([\"$rootScope\",function(t){e.attach(document.body)}])}()}).call(this,n(144))},542:function(e,t,n){(function(e){!function(){\"use strict\";function t(t,n,i,o,r){var s=this;s.searchResults=[],s.latestSuccessfulSearchString=\"\",s.isBusy=!1;var a,l=r.searchPage,c=o.protocol()+\"://\"+o.host()+l;s.showSearch=!0,s.searchAndDisplayInNewPage=function(e){if(void 0!==e&&\"\"!==e){var t=c+\"?q=\"+e;n.location.href=t}},s.search=function(){a&&i.cancel(a),s.isBusy=!0,s.showSearch=!0,a=i((function(){var n=s.searchString;if(void 0!==n&&null!=n&&\"\"!==n){var i=c+\"quicksearch?search=\"+n;e.get(i,(function(e){var t=JSON.parse(e);s.searchResults=t.Hits,s.isBusy=!1})).then((function(){t.$apply()}))}}),250)},s.navigateToLink=function(t){var i=c+\"geturlbyid?id=\"+t.DocumentId;e.get(i,(function(e){n.location.href=e}))},s.onSearchClicked=function(){s.showSearch=!0},e(\"html\").click((function(n){e(n.target).is(\"#search-container\")||e(n.target).is(\"#search-input\")||(s.showSearch=!1,t.$apply())})),e(\"#search-container\").click((function(e){e.stopPropagation()}))}angular.module(\"lif.controllers\").controller(\"searchController\",t),t.$inject=[\"$scope\",\"$window\",\"$timeout\",\"$location\",\"bootstrappedNavigationModel\"]}()}).call(this,n(2))},543:function(e,t){!function(){function e(e,t){var n=this;n.description=t.description,n.showAllContent=!1,n.toggleContent=function(){n.showAllContent=!n.showAllContent}}angular.module(\"lif.controllers\").controller(\"aboutController\",e),e.$inject=[\"$scope\",\"aboutGroupBootstrap\"]}()},544:function(e,t,n){(function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(\"undefined\"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(n);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,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.\")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0}),(function(e){}))},c.expandCollapseEvents=function(){c.collapsedEvents=!c.collapsedEvents},c.onRemoveEventButtonClick=function(e){var t=new FormData;t.append(\"currentGroupCalendarEventId\",c.fileToRemove.PageId);var n=new XMLHttpRequest;waitingDialog.show(l.texts.saveInProgress),n.open(\"POST\",l.apiEndpoints.delete,!0),n.onreadystatechange=function(t){if(4===n.readyState){if(0===n.status)return;200===n.status?(waitingDialog.hide(),c.fileToRemove=null,e===c.firstEvent[0]?(c.firstEvent.pop(),c.allExceptFirstEvents.length>0?(c.firstEvent[0]=c.allExceptFirstEvents[0],c.allExceptFirstEvents.splice(c.allExceptFirstEvents.indexOf(c.allExceptFirstEvents[0]),1)):c.hasEvents=!1):c.allExceptFirstEvents.splice(c.allExceptFirstEvents.indexOf(e),1),c.editEvent=null,i.$apply()):(waitingDialog.hide(),alert(l.texts.serverErrorAdd))}},n.send(t),c.showRemoveModal=!1},c.onDeleteEventButtonClick=function(e){c.fileToRemove=e,c.showRemoveModal=!0},c.onSaveEventButtonClick=function(t){if(e(\"#\"+c.settings.uniqueId+\"-addEventForm\")[0].checkValidity()){var i=new FormData;null!=t&&i.append(\"currentCalendarEvent\",t.PageId);for(var o=0,s=Object.entries(c.editEvent);o0,c.editEvent=null,c.showAddEventInformation&&(c.showAddEventInformation=!c.showAddEventInformation),waitingDialog.hide(),location.reload()}),(function(e){waitingDialog.hide(),null!=t.PageId?alert(l.texts.serverErrorEdit):alert(l.texts.serverErrorAdd)}))}else 400===f.status?(waitingDialog.hide(),null!=t.PageId?alert(l.texts.descriptionRequiredEdit):alert(l.texts.descriptionRequiredAdd)):(waitingDialog.hide(),null!=t.PageId?alert(l.texts.serverErrorEdit):alert(l.texts.serverErrorAdd))}},f.send(i)}},c.onEditEventButtonClick=function(e){c.submitButtonText=l.texts.submitButtonEdit,c.selectedEvent=e,c.editEvent=angular.copy(e),c.showAddEventInformation||(c.showAddEventInformation=!0)},c.onInviteEventButtonClick=function(t){var n=l.apiEndpoints.invite+t;waitingDialog.show(\"Sparar i kalendern...\"),e.ajax({url:n,type:\"GET\",success:function(e){waitingDialog.hide()},error:function(e){waitingDialog.hide()}})},t.fn.ForceNumericOnly=function(){return this.each((function(){e(this).keydown((function(e){var t=e.charCode||e.keyCode||0;return 8==t||9==t||13==t||46==t||110==t||190==t||188==t||t>=35&&t<=40||t>=48&&t<=57||t>=96&&t<=105}))}))},e(\"#duration\").ForceNumericOnly()}o.$inject=[\"$scope\",\"$rootScope\",\"$http\",\"$httpParamSerializer\",\"$timeout\",\"calendarEventListingBlockFactory\"],i.directive(\"datepicker\",(function(){return{restrict:\"A\",require:\"ngModel\",compile:function(){return{pre:function(t,n,i,o){e(n).datetimepicker({format:\"YYYY-MM-DD HH:mm\",allowInputToggle:!0}).on(\"dp.change\",(function(n){t.$apply((function(){o.$setViewValue(e(\"input\",n.target).val())}))}))}}}}})),i.directive(\"ckeditor\",(function(){return{require:\"ngModel\",link:function(t,n,i,o){e(n[0]).ckeditor({toolbar:[{name:\"basicstyles\",items:[\"Bold\",\"Italic\",\"Underline\",\"-\",\"NumberedList\",\"BulletedList\",\"-\",\"Link\",\"Unlink\"]}],contentsCss:window.CKEDITOR_BASEPATH+\"contents.css\"}).editor.on(\"change\",(function(e){t.$apply((function(){o.$setViewValue(e.editor.getData())}))}))}}}))}()}).call(this,n(2),n(2))},545:function(e,t,n){(function(e){!function(){function t(t,n,i,o,r,s,a){var l=this;l.showAddFileInformation=!1,l.showUploadSuccessMessage=!1,l.isBusy=!1,l.deletingFile=!1,l.fileToRemove={},l.maximumAmountOfFilesToShow=100,l.isEditable=\"True\"==r.isEditable,l.files=[];var c=function(){return\"#removeFileItemModal-\"+l.blockSpecificUploadFolder};l.getFileTypeIcon=function(e){return e.substr(e.lastIndexOf(\".\")+1).toLowerCase()+\".png\"},l.addFile=function(){l.showAddFileInformation=!l.showAddFileInformation,i((function(){window.resizeLeftNavbar()}),400)},l.showRemoveFileModal=function(t){l.fileToRemove=t,e(c()).modal(\"show\")},l.removeFile=function(){l.deletingFile=!0,o.deleteFile(r.deleteUrl,l.fileToRemove.ContentId).then((function(t){var i=0,o=!0;l.files.forEach((function(e){if(o)if(e.Title===l.fileToRemove.Title&&e.Date===l.fileToRemove.Date){l.files.splice(i,1),o=!1;var t={Date:(new Date).toJSON().slice(0,10),Message:\"Tog bort \"+l.fileToRemove.Title+\" från \"+r.title,User:s.getLoggedInUser().name,GroupEventType:a.GroupEventType.File,Action:a.Action.Delete,Id:void 0};n.$broadcast(\"groupEvent\",t)}else i++})),e(c()).modal(\"hide\"),l.deletingFile=!1}),(function(){e(c()).modal(\"hide\"),l.deletingFile=!1}))};var u=void 0;l.showMoreFiles=function(){void 0===u&&(u=l.numberOfFilesToShow),l.numberOfFilesToShow==u?l.numberOfFilesToShow=l.maximumAmountOfFilesToShow:l.numberOfFilesToShow=u},t.$watch(\"filesToUpload\",(function(){void 0!==t.filesToUpload&&null!=t.filesToUpload&&t.filesToUpload.length>0&&void 0!==r&&void 0!==l.blockSpecificUploadFolder&&(l.isBusy=!0,o.uploadFiles(t.filesToUpload,r.url,parseInt(l.blockSpecificUploadFolder)).then((function(e){l.isBusy=!1,e.forEach((function(e){l.files.unshift({Title:e.FileName,ImageName:e.ImageName,Date:e.Date,ContentId:e.ContentId,Url:e.Url});var t={Date:(new Date).toJSON().slice(0,10),Message:\"Lade till \"+e.FileName+\" i \"+r.blockTitle,User:s.getLoggedInUser().name,Id:void 0,GroupEventType:a.GroupEventType.File,Action:a.Action.Add};n.$broadcast(\"groupEvent\",t)})),l.showAddFileInformation=!1}),(function(){l.isBusy=!1})))}))}angular.module(\"lif.controllers\").controller(\"fileBlockController\",t),t.$inject=[\"$scope\",\"$rootScope\",\"$timeout\",\"formService\",\"uploadValues\",\"userService\",\"constants\"]}()}).call(this,n(2))},546:function(e,t,n){(function(e){!function(){\"use strict\";function t(t,n,i,o){var r=this;r.topsLinks=o.topLinks,r.redWeb=o.redWeb,r.logOut=o.logOut,r.userSettings=o.userSettings,t.$onInit=function(){window.resizeLeftNavbar()},r.adjustLeftNavHeight=function(){i((function(){window.resizeLeftNavbar()}),200)},r.loadingSpinner=function(){e(\"#loading\").show()},n.siteLayout=o.siteLayout}angular.module(\"lif.controllers\").controller(\"leftNavigationController\",t),t.$inject=[\"$scope\",\"$rootScope\",\"$timeout\",\"bootstrappedNavigationModel\"]}()}).call(this,n(2))},547:function(e,t,n){(function(e){!function(){function t(t,n,i,o,r,s){var a=this;a.adding=!1,a.isEditable=i.editable,a.links=i.links,a.groupPage=i.groupPage,a.currentBlockTitle=i.currentBlockTitle,a.addLink=function(){if(!a.title||!a.url)return!1;var e=a.title,i=a.url;a.adding=!0,o.addLink(a.currentBlockTitle,a.groupPage,e,i).then((function(e){a.links.unshift({Id:e.Id,Url:e.Url,Title:e.Title,Date:e.Date,EventId:e.EventId});var i={Date:e.Date,Message:\"Lade till \"+e.Title+\" till \"+a.currentBlockTitle,User:r.getLoggedInUser().name,Id:e.EventId,GroupEventType:s.GroupEventType.Link};t.$broadcast(\"groupEvent\",i),a.title=\"\",a.url=\"\",a.adding=!1,n.showAddLink=!1}),(function(){a.adding=!1,n.showAddLink=!1}))},a.showRemoveLinkModal=function(t){a.linkToRemove=t,e(\"#removeLinkItemModal\").modal(\"show\")},a.removeLink=function(n){var i;a.links.forEach((function(e,t){e===n&&(i=t)})),n.removing=!0,o.removeLink(a.currentBlockTitle,a.groupPage,n.Id).then((function(o){a.links.splice(i,1);var l={Date:n.Date,Message:\"Tog bort \"+n.Title+\" från \"+a.currentBlockTitle,User:r.getLoggedInUser().name,Id:o,GroupEventType:s.GroupEventType.Link};t.$broadcast(\"groupEvent\",l),n.removing=!1,e(\"#removeLinkItemModal\").modal(\"hide\")}),(function(){n.removing=!1,e(\"#removeLinkItemModal\").modal(\"hide\")}))}}angular.module(\"lif.controllers\").controller(\"linkListBlockController\",t),t.$inject=[\"$rootScope\",\"$scope\",\"bootstrappedLinkListBlockModel\",\"formService\",\"userService\",\"constants\"]}()}).call(this,n(2))},548:function(e,t){!function(){\"use strict\";function e(e){}angular.module(\"lif.controllers\").controller(\"loginController\",e),e.$inject=[\"$scope\"]}()},549:function(e,t,n){(function(e){!function(){function t(t,n,i,o,r,s,a,l){var c=a.contentGuid;n.activeCategories=[],n.unselectedFiles=[],n.categoryPrefix=\"category_\",n.yearMeetingPrefix=\"year_\",n.editMeetingDetailsMode=!1,n.confirmDeleteMeeting=!1,n.confirmDeleteFile=!1,n.fileEditMode=!1,n.addFileData={},n.savingMeetingDetails=!1,n.dateFormat=\"dd/MM/yyyy\",n.sortableOptions={disabled:!0,axis:\"y\"},n.fileDownloadIds=\"\";var u=this;u.init=function(){var e=i.search().meeting;s.getAllMeetings(c).then((function(t){n.meetings=t.data.meetings,n.uniqueYears=t.data.meetingYears,v(),null!=e&&\"\"!=e&&function(e){for(var t in n.meetings){var i=n.meetings[t];if(i.contentGuid==e)return void u.showMeetingDetailsModal(i)}}(e)}),(function(){}))};var d=function(){var e=Object.keys(n.unselectedFiles),t=[];n.showingFiles.forEach((function(n){-1===e.indexOf(n.id)&&t.push(n.id)})),n.fileDownloadIds=t.join(\",\"),console.log(t)};function f(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),o=e.getMinutes(),r=[e.getFullYear(),(t>9?\"\":\"0\")+t,(n>9?\"\":\"0\")+n].join(\"-\");return r+=\"T\"+(i>9?\"\":\"0\")+i+\":\"+(o>9?\"\":\"0\")+o+\":00\"}function h(){m(e(\"#meetingDetailsModal\"))}function p(e){var t={contentGuid:n.selectedMeeting.contentGuid,title:n.selectedMeeting.title,start:n.selectedMeeting.start.toString(),end:n.selectedMeeting.end.toString(),fileFilterCategories:n.selectedMeeting.fileFilterCategories,files:n.selectedMeeting.files,owningBlockId:n.selectedMeeting.owningBlockId,owningGroupName:n.selectedMeeting.owningGroupName};s.saveMeetingDetails(n.selectedMeeting.contentGuid,t).then((function(){n.editMeetingDetailsMode=!1,g(),n.savingMeetingDetails=!1}),(function(){e&&(n.selectedMeeting=e),n.savingMeetingDetails=!1,n.errorSavingChanges=!0,o((function(){n.errorSavingChanges=!1}),5e3)}))}function g(){s.getAllMeetings(c).then((function(e){n.uniqueYears=e.data.meetingYears,n.meetings=e.data.meetings,v()}),(function(){}))}function m(e){o((function(){var t=e.find(\".modal-content\").outerHeight(),n=e.find(\".modal-sidebar\");modalSidebarHeaderHeight=n.find(\".modal-sidebar-header\").outerHeight(),n.find(\".meetingsblock-calendar-list\").height(t-modalSidebarHeaderHeight)}),0,!1)}function v(){for(var e in n.yearMeetings=[],n.meetings){meeting=n.meetings[e];var t=new Date(meeting.start).getFullYear();n.yearMeetings[n.yearMeetingPrefix+t]||(n.yearMeetings[n.yearMeetingPrefix+t]=[]),n.yearMeetings[n.yearMeetingPrefix+t].push(meeting)}}u.showAddMeetingModal=function(){u.meetingTitle=\"\",u.meetingStartTime=\"\",u.meetingEndTime=\"\",e(\"#addMeetingModal\").modal(\"show\")},u.allFieldsValid=function(){var e=u.meetingTitle,t=e&&\"\"!=e,n=u.meetingStartTime,i=n&&\"\"!=n,o=u.meetingEndTime;return t&&i&&(o&&\"\"!=o)},u.createMeeting=function(){u.creatingMeeting=!0;var t={title:u.meetingTitle,start:f(u.meetingStartTime),end:f(u.meetingEndTime),fileFilterCategories:[]};s.createMeeting(c,t).then((function(){g(),u.creatingMeeting=!1,e(\"#addMeetingModal\").modal(\"hide\")}),(function(){n.errorCreatingMeeting=!0,u.creatingMeeting=!1,o((function(){n.errorCreatingMeeting=!1}),5e3)}))},u.showMeetingDetailsModal=function(t){var o=t.fileFilterCategories;1==o.length?n.categories=o[0].split(\"\\n\"):n.categories=o,s.getDetailsForMeeting(t.contentGuid).then((function(o){n.activeCategories=[],n.selectedMeeting=o.data;var r=o.data;n.fileList=r.files,n.showingFiles=n.fileList,d(),e(\"#meetingDetailsModal\").modal(\"show\"),h();var s=i.search().activeCategories;null!=s&&\"\"!=s&&s.split(\",\").map(u.toggleCategory),n.meetingUrl=i.search({meeting:t.contentGuid}).absUrl()}),(function(){n.selectedMeeting=null}))},u.toggleCategory=function(e){var t=n.categoryPrefix+e,i=n.activeCategories.indexOf(t);-1==i?n.activeCategories.push(t):n.activeCategories.splice(i,1),0==n.activeCategories.length?n.showingFiles=n.fileList:null!=n.fileList&&(n.showingFiles=n.fileList.filter((function(e){for(var t=e.categories,i=0;i\");e(\"body\").append(o),o.val(n.meetingUrl).select(),document.execCommand(\"copy\"),o.remove()},u.saveMeetingDetails=function(){n.savingMeetingDetails=!0;var e=n.selectedMeeting;n.selectedMeeting.title=n.newName,n.selectedMeeting.start=f(new Date(n.newMeetingStartTime)),n.selectedMeeting.end=f(new Date(n.newMeetingEndTime)),p(e)},u.saveMeetingFileOrder=function(){p(n.selectedMeeting),n.fileEditMode=!1,u.showAllCategories()},u.deleteMeeting=function(){s.deleteMeeting(n.selectedMeeting.contentGuid).then((function(){n.confirmDeleteMeeting=!1,n.selectedMeeting=null,g()}),(function(){n.errorDeletingMeeting=!0,o((function(){n.errorDeletingMeeting=!1}),5e3)}))},u.deleteFile=function(){u.isBusy=!0,s.deleteMeetingFile(n.fileToDelete.id).then((function(){n.confirmDeleteFile=!1,u.isBusy=!1,u.showMeetingDetailsModal(n.selectedMeeting)}),(function(){n.confirmDeleteFile=!1,u.isBusy=!1}))},u.turnOnEditMeetingDetailsMode=function(){u.cancelEditModes(),n.editMeetingDetailsMode=!0,n.newName=n.selectedMeeting.title,n.newMeetingStartTime=new Date(n.selectedMeeting.start),n.newMeetingEndTime=new Date(n.selectedMeeting.end)},u.turnOnDeleteMeeting=function(){u.cancelEditModes(),n.confirmDeleteMeeting=!0},u.confirmDeleteFile=function(e){u.cancelEditModes(),n.fileToDelete=e,n.confirmDeleteFile=!0},u.turnOnFileEditMode=function(e){u.cancelEditModes(),n.fileEditMode=!0,n.sortableOptions.disabled=!1,n.oldFileList=angular.copy(n.fileList),n.showingFiles=n.fileList,u.showAllCategories(),d()},u.cancelFileEditMode=function(){u.cancelEditModes(),n.fileList=n.oldFileList,n.showingFiles=n.fileList,d()},u.cancelEditModes=function(){n.fileEditMode=!1,n.sortableOptions.disabled=!0,n.editMeetingDetailsMode=!1,n.confirmDeleteMeeting=!1,n.confirmDeleteFile=!1,n.meetingAddFileMode=!1},u.inEditMode=function(){return n.editMeetingDetailsMode||n.confirmDeleteMeeting},u.turnOnMeetingAddFileMode=function(){n.addFileData={},n.meetingAddFileMode=!0},u.turnOnMeetingFileEditMode=function(e){n.addFileData.categories=e.categories,n.meetingEditFileMode=!0,n.fileToEdit=e},u.inAddEditFileMode=function(){return n.meetingAddFileMode||n.meetingEditFileMode||n.confirmDeleteFile},u.updateMeetingFile=function(){n.meetingEditFileMode=!1,p()},u.addFileToMeeting=function(){n.showUploadFileErrorMessage=!1,n.showUploadFileCategoriesErrorMessage=!1,null==n.addFileData.categories?n.showUploadFileCategoriesErrorMessage=!0:void 0!==n.fileToUpload&&null!=n.fileToUpload&&null!=n.addFileData.categories&&(n.uploadFileName=n.fileToUpload.name,u.isBusy=!0,s.uploadMeetingFile(n.selectedMeeting.contentGuid,n.fileToUpload,n.addFileData.categories).then((function(e){u.isBusy=!1,u.showMeetingDetailsModal(n.selectedMeeting);var i={Date:(new Date).toJSON().slice(0,10),Message:\"Lade till \"+n.uploadFileName+\" i \"+n.selectedMeeting.title,User:l.getLoggedInUser().name,Id:void 0};t.$broadcast(\"groupEvent\",i),n.fileToUpload=null,n.meetingAddFileMode=!1}),(function(e){u.isBusy=!1,n.fileToUpload=null,400==e.status&&(n.showUploadFileErrorMessage=!0)})))},u.getFileTypeIcon=function(e){return e.substr(e.lastIndexOf(\".\")+1).toLowerCase()+\".png\"},angular.element(\"#meetingDetailsModal\").on(\"hidden.bs.modal\",(function(){u.cancelEditModes(),i.search({}),n.$apply()})),angular.element(\"#meetingDetailsModal\").on(\"shown.bs.modal\",(function(){h()})),n.$watch(\"fileToUpload\",(function(){void 0!==n.fileToUpload&&null!=n.fileToUpload?n.uploadFileName=n.fileToUpload.name:n.uploadFileName=\"\"})),e(window).resize((function(){m(e(\"#meetingDetailsModal\"))}))}angular.module(\"lif.controllers\").controller(\"meetingsBlockController\",t).directive(\"ngDateTimePicker\",(function(){return{restrict:\"A\",require:\"ngModel\",link:function(t,n,i,o){e(n).datetimepicker({format:\"DD/MM/YYYY\",focusOnShow:!1,ignoreReadonly:!0,locale:\"sv\",widgetPositioning:{horizontal:\"auto\",vertical:\"bottom\"}}).on(\"dp.change\",(function(e){o.$setViewValue(new Date(e.date)),t.$apply()}))}}})).filter(\"dateWithFullMonthName\",(function(){return function(e,t){var n;n=\"false\"==t.toLowerCase()?[\"januari\",\"februari\",\"mars\",\"april\",\"maj\",\"juni\",\"juli\",\"augusti\",\"september\",\"oktober\",\"november\",\"december\"]:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];var i=new Date(e);return i.getDate()+\" \"+n[i.getMonth()]+\" \"+i.getFullYear()}})),t.$inject=[\"$rootScope\",\"$scope\",\"$location\",\"$timeout\",\"$window\",\"formService\",\"meetingsBlockBootstrap\",\"userService\"],e(document).ready((function(){e(document).on(\"click\",\".meetingsblock-calendar-year-header\",(function(){var t=e(this).data(\"title\");e(\"[data-title='\".concat(t,\"']\")).parent().children().not(\".meetingsblock-calendar-year-header\").toggleClass(\"hidden\")}))}))}()}).call(this,n(2))},550:function(e,t,n){(function(e){!function(){function t(t,n,i,o,r,s,a,l){var c=this;c.showAddFileInformation=!1,c.isBusy=!1,c.creatingFolder=!1,c.folders=s.folders,c.showButtons=!1,c.deletingFile=!1,c.isEditable=\"True\"===s.isEditable,c.maximumAmountOfFoldersToShow=100;var u=function(){return\"#folderModal-\"+c.baseFolder},d=function(){return\"#removeItemModal-\"+c.baseFolder};c.openFile=function(e){o.open(e.Url,\"_blank\")},c.getFileTypeIcon=function(e){return e.substr(e.lastIndexOf(\".\")+1).toLowerCase()+\".png\"},c.addFile=function(){c.showAddFileInformation=!c.showAddFileInformation,i((function(){c.showButtons=!c.showButtons,window.resizeLeftNavbar()}),200)},c.showFolder=function(e){t.toggle===e?t.toggle=\"\":t.toggle=e},c.showAddFolderModal=function(){t.folderToRemove={},e(u()).modal(\"show\")},c.createFolder=function(n){c.creatingFolder=!0,r.createFolder(n,parseInt(c.baseFolder),s.folderUrl).then((function(i){e(u()).modal(\"hide\"),c.folders.unshift({Id:i,Name:n}),c.creatingFolder=!1,c.showAddFileInformation=!1,c.showButtons=!1,t.inputFolderName=void 0}),(function(){c.creatingFolder=!1,c.showAddFileInformation=!1,c.showButtons=!1,t.inputFolderName=void 0}))},c.showRemoveFileModal=function(n){t.fileToRemove=n,e(d()).modal(\"show\")},c.showRemoveFolderModal=function(n){t.folderToRemove=n,e(u()).modal(\"show\")},c.removeFolder=function(n){c.deletingFolder=!0,r.deleteFolder(s.folderRemoveUrl,n.Id).then((function(i){var o=0;c.folders.forEach((function(e){e.Name===n.Name?c.folders.splice(o,1):o++})),e(u()).modal(\"hide\"),c.deletingFolder=!1,t.folderToRemove={}}),(function(){e(u()).modal(\"hide\"),c.deletingFolder=!1,t.folderToRemove={}}))},c.removeFile=function(i){c.deletingFile=!0,r.deleteFile(s.deleteUrl,i.ContentId).then((function(o){var r=0;c.folders.forEach((function(e){r=0,e.Files.forEach((function(t){if(t.Title===i.Title){e.Files.splice(r,1);var o={Date:(new Date).toJSON().slice(0,10),Message:\"Tog bort \"+t.Title+\" från \"+e.Name,User:a.getLoggedInUser().name,Id:void 0,GroupEventType:l.GroupEventType.MeetingsFile,Action:l.Action.Delete};n.$broadcast(\"groupEvent\",o)}else r++}))})),e(d()).modal(\"hide\"),c.deletingFile=!1,t.fileToRemove={}}),(function(){e(d()).modal(\"hide\"),c.deletingFile=!1,t.fileToRemove={}}))};var f=void 0;c.showMoreFolders=function(){void 0===f&&(f=c.numberOfFoldersToShow),c.numberOfFoldersToShow===f?c.numberOfFoldersToShow=c.maximumAmountOfFoldersToShow:c.numberOfFoldersToShow=f},t.$watch(\"files\",(function(){if(void 0!==t.files&&null!==t.files&&t.files.length>0){c.isBusy=!0;var e={url:s.url,folder:t.selectedFolder.Id};r.uploadFiles(t.files,e.url,e.folder).then((function(e){c.isBusy=!1,c.showAddFileInformation=!1,c.showButtons=!1,c.folders.forEach((function(i){i.Id===t.selectedFolder.Id&&e.forEach((function(e){void 0===i.Files&&(i.Files=[]),i.Files.unshift({Title:e.FileName,ImageName:e.ImageName,Date:e.Date,ContentId:e.ContentId,Url:e.Url});var t={Date:(new Date).toJSON().slice(0,10),Message:\"Lade till \"+e.FileName+\" i \"+i.Name,User:a.getLoggedInUser().name,Id:void 0,GroupEventType:l.GroupEventType.MeetingsFile,Action:l.Action.Add};n.$broadcast(\"groupEvent\",t)}))}))}),(function(){c.isBusy=!1}))}}))}angular.module(\"lif.controllers\").controller(\"meetingsFileBlockController\",t),t.$inject=[\"$scope\",\"$rootScope\",\"$timeout\",\"$window\",\"formService\",\"meetingsFileBootstrap\",\"userService\",\"constants\"]}()}).call(this,n(2))},551:function(e,t,n){(function(e){!function(){function t(t,n,i,o,r,s,a){var l,c=this;c.searchResults=[],c.searching=!1,c.adding=!1,c.members=o.members,c.editable=o.editable,c.onSearch=function(){c.searchString.length>0?(c.searching=!0,l&&i.cancel(l),l=i((function(){var e=c.searchString;r.searchForMember(o.groupPage,e).then((function(e){c.searchString.length>0&&(c.searchResults=e,c.searching=!1)}),(function(){c.searching=!1}))}),500)):(c.searchResults=[],c.searching=!1)},c.addUserToGroup=function(e){c.adding=!0,r.addUserToGroup(o.groupPage,o.groupName,e).then((function(e){c.members.unshift({FirstName:e.FirstName,LastName:e.LastName,Company:e.Company,UserName:e.UserName,Email:e.Email}),c.adding=!1,c.searchString=\"\",c.searchResults=[];var n={Date:e.Date,Message:\"Lade till \"+e.FirstName+\" \"+e.LastName+\" i \"+o.groupName,User:s.getLoggedInUser().name,Id:e.EventId,GroupEventType:a.GroupEventType.Member};t.$broadcast(\"groupEvent\",n)}),(function(){c.adding=!1}))},c.removeUserFromGroup=function(){var n,i=c.memberToRemove;c.members.forEach((function(e,t){e===i&&(n=t)})),i.removing=!0,r.removeUserFromGroup(i.UserName,o.groupName,o.groupPage).then((function(r){c.members.splice(n,1);var l={Date:i.Date,Message:\"Tog bort \"+i.FirstName+\" \"+i.LastName+\" från \"+o.groupName,User:s.getLoggedInUser().name,Id:r,GroupEventType:a.GroupEventType.Member};t.$broadcast(\"groupEvent\",l),i.removing=!1,e(\"#removeMemberModal\").modal(\"hide\")}),(function(){i.removing=!1,e(\"#removeMemberModal\").modal(\"hide\")}))},c.showRemoveMemberModal=function(t){c.memberToRemove=t,e(\"#removeMemberModal\").modal(\"show\")}}angular.module(\"lif.controllers\").controller(\"memberListBlockController\",t),t.$inject=[\"$rootScope\",\"$scope\",\"$timeout\",\"bootstrappedMemberListBlockModel\",\"formService\",\"userService\",\"constants\"]}()}).call(this,n(2))},552:function(e,t){!function(){\"use strict\";function e(e,t,n){var i=this;i.referrals=n.referrals,i.unansweredReferrals=n.unansweredReferrals,i.referralsPerPage=10,i.filteredReferrals=[],i.getNumberOfPagesAsArray=function(){return new Array(Math.ceil(i.referrals.length/i.referralsPerPage))},i.numberOfPages=i.getNumberOfPagesAsArray().length,i.setActivePage=function(e){if(!(e>i.numberOfPages||e<1)){i.activePage=e;for(var t=(i.activePage-1)*i.referralsPerPage,n=i.referrals.length>i.referralsPerPage?t+i.referralsPerPage:i.referrals.length,o=[],r=t;r1&&e(\"#companylist\").append(e(\"\").text(\"Välj företag\").val(\"\")),1===i.Companies.length&&e(\"#companyid\").val(i.Companies[0].UserName),e.each(i.Companies,(function(){e(\"#companylist\").append(e(\"\").text(this.Name).val(this.UserName))})),n.emailAlreadyExists=i.EmailAlreadyExists,n.isBusy=!1,t.$apply()})).error((function(){n.emailAlreadyExists=!1,n.isBusy=!1,t.$apply(),e(\"#notconnected\").show(),e(\"#companyid\").val(\"\"),e(\"#companylist\").empty(),e(\"#companylist\").hide(),e(\"#companylistdisabled\").show()}))}),1e3),e(\"#companylist\").change((function(){e(\"#companyid\").val(this.value)}))})),t.showPasswordsAreNotSameError=function(){return t.password1!=t.password2}}angular.module(\"lif.controllers\").controller(\"registerController\",t),t.$inject=[\"$scope\"]}()}).call(this,n(2))},554:function(e,t,n){(function(e){!function(){function t(t,n,i,o,r,s){var a=this;a.adding=!1,a.removing=!1,a.events=o.events,a.isEditable=o.isEditable,a.groupPageReference=o.groupPageReference,a.groupName=o.groupName,a.numberOfEventsToShow=o.numberOfEventsToShow,a.groupEventTypesToShow=o.groupEventTypesToShow,a.maximumNumberOfEventsToShow=100,n.$onInit=function(){window.resizeLeftNavbar()},t.$on(\"groupEvent\",(function(e,t){(t.GroupEventType!==s.GroupEventType.File&&t.GroupEventType!==s.GroupEventType.MeetingsFile||t.Action!==s.Action.Delete)&&a.groupEventTypesToShow.includes(t.GroupEventType.toString())&&a.events.unshift({Message:t.Message,User:t.User,Date:t.Date,Id:t.Id})})),a.showRemoveEventModal=function(t){a.eventToRemove=t,e(\"#removeEventItemModal\").modal(\"show\")},a.addShoutout=function(){var e=a.newShoutout;e.length>0&&(a.adding=!0,r.addShoutout(a.groupPageReference,a.groupName,e).then((function(e){a.events.unshift({Message:e.Message,Date:e.Date,Id:e.Id,User:e.User}),a.newShoutout=\"\",a.adding=!1}),(function(){a.adding=!1})))},a.removeGroupEvent=function(t){var n;a.removing=!0,a.events.forEach((function(e,i){e===t&&(n=i)})),t.removing=!0,r.removeGroupEvent(a.groupPageReference,t.Id).then((function(){a.events.splice(n,1),t.removing=!1,e(\"#removeEventItemModal\").modal(\"hide\")}),(function(){t.removing=!1,e(\"#removeEventItemModal\").modal(\"hide\")}))},a.showMoreEvents=function(){a.numberOfEventsToShow===o.numberOfEventsToShow?a.numberOfEventsToShow=a.maximumNumberOfEventsToShow:a.numberOfEventsToShow=o.numberOfEventsToShow}}angular.module(\"lif.controllers\").controller(\"shoutoutBlockController\",t),t.$inject=[\"$rootScope\",\"$scope\",\"$document\",\"bootstrappedShoutoutBlockModel\",\"formService\",\"constants\"]}()}).call(this,n(2))},555:function(e,t,n){\"use strict\";(function(e){!function(){function t(t,n,i,o,r){var s=this,a=0,l=1;s.isBusy=!1,s.isUploading=!1,s.creatingFolder=!1,s.rootFolder={},s.deletingFile=!1,s.isEditable=\"true\"===r.isEditable.toLowerCase(),s.maximumAmountOfFoldersToShow=100,s.movingItem=null,s.isMovingFolder=!1,s.isMovingFile=!1,t.alerts=[],t.toggle=[],t.isMouseOver=[],t.isMouseOverFile=[],t.selectedFile=null,t.selectedFolder=null,t.shownDropDownMenuId=null,t.shownModalId=null,t.movingItemId=null;var c=null;t.isMovingAnything=function(){return s.isMovingFile||s.isMovingFolder};var u=function(){t.shownDropDownMenuId=null},d=function(e){t.toggle[e.Id]||(t.toggle[e.Id]=!0)},f=function(e){t.alerts.push(e);var n,o=(n=e,function(){var e=t.alerts.indexOf(n);e>=0&&t.alerts.splice(e,1)});i(o,1e4)},h=function(e){return u(),\"#folderCreateModal-\"+e},p=function(e){return u(),\"#folderRemoveModal-\"+e},g=function(e){return u(),\"#fileRemoveModal-\"+e},m=function(e){return u(),\"#folderEditModal-\"+e},v=function(){t.selectedFolder=null,t.selectedFile=null,t.shownDropDownMenuId=null,t.shownModalId=null,t.movingItemId=null},b=function e(t,n){var i=null;return n.some((function(n){return function(e,t){if(!t||!t.Folders)return!1;var n=!1;return t.Folders.some((function(t){e.Id!==t.Id||(n=!0)})),n}(t,n)?(i=n,!0):!(!n.Folders||!(i=e(t,n.Folders)))||void 0})),i},w=function(e,t){return{Id:e,Name:t,Folders:[],Files:[]}};e((function(){e(h(s.rootFolder.Id)).on(\"hidden.bs.modal\",(function(){s.creatingFolder=!1,v(),t.$apply()})),e(p(s.rootFolder.Id)).on(\"hidden.bs.modal\",(function(){v(),t.$apply()})),e(g(s.rootFolder.Id)).on(\"hidden.bs.modal\",(function(){v(),t.$apply()})),e(m(s.rootFolder.Id)).on(\"hidden.bs.modal\",(function(){v(),t.$apply()})),e(\".dropdown-burger\").on(\"hidden.bs.dropdown\",(function(){u(),t.$apply()}))})),s.getFileTypeIcon=function(e){return e.substr(e.lastIndexOf(\".\")+1).toLowerCase()+\".png\"},s.showMoreFolders=function(){c||(c=s.numberOfFoldersToShow),s.numberOfFoldersToShow===c?s.numberOfFoldersToShow=s.maximumAmountOfFoldersToShow:s.numberOfFoldersToShow=c},s.addFile=function(){i((function(){resizeLeftNavbar()}),200)},t.toggleFolder=function(e){t.toggle[e]?t.toggle[e]=!t.toggle[e]:t.toggle[e]=!0},s.startMoveFolderMode=function(e){t.movingItemId=e.Id;var n=b(e,s.rootFolder.Folders);n||(n=s.rootFolder),s.movingItem={type:a,item:e,currentFolder:n},s.isMovingFolder=!0},s.startMoveFileMode=function(e,n){t.movingItemId=e.ContentId,s.movingItem={type:l,item:e,currentFolder:n},s.isMovingFile=!0},s.abortMoveMode=function(){s.movingItem=null,s.isMovingFile=!1,s.isMovingFolder=!1,t.movingItemId=null},s.isMovableHere=function(e){return!(!e||!s.movingItem)&&((!s.movingItem.currentFolder||e.Id!==s.movingItem.currentFolder.Id)&&(s.movingItem.type===l||s.movingItem.type===a&&(e.Id!==s.movingItem.item.Id&&(e===s.rootFolder&&s.movingItem.currentFolder===s.rootFolder||!function e(t,n){if(!t||!n)return!1;var i=!1;return n.some((function(n){return t.Id===n.Id?(i=!0,!0):!(!n.Folders||!(i=e(t,n.Folders)))||void 0})),i}(e,s.movingItem.item.Folders)))))},s.moveItemToFolder=function(e){if(!s.movingItem||!e||!s.isMovableHere(e))return v(),!1;s.isBusy=!0,s.movingItem.type===a?o.moveFolder(s.movingItem.item.Id,e.Id,r.folderMoveUrl).then((function(){d(e),s.movingItem.currentFolder.Folders.splice(s.movingItem.currentFolder.Folders.findIndex((function(e){return e.Id===s.movingItem.item.Id})),1),e.Folders.unshift(s.movingItem.item),s.abortMoveMode(),s.isBusy=!1}),(function(){f(r.errors.generic),s.isBusy=!1})):s.movingItem.type===l&&o.moveFile(s.movingItem.item.ContentId,e.Id,r.fileMoveUrl).then((function(){d(e),s.movingItem.currentFolder.Files.splice(s.movingItem.currentFolder.Files.findIndex((function(e){return e.ContentId===s.movingItem.item.ContentId})),1),e.Files.unshift(s.movingItem.item),s.abortMoveMode(),s.isBusy=!1}),(function(){f(r.errors.generic),s.isBusy=!1}))},s.changeFolderName=function(n){t.selectedFolder?(s.isBusy=!0,o.changeFolderName(t.selectedFolder.Id,r.folderRenameUrl,n).then((function(){e(m(s.rootFolder.Id)).modal(\"hide\"),t.selectedFolder.Name=n,t.inputFolderName=null,v(),s.isBusy=!1}),(function(){t.inputFolderName=null,f(r.errors.generic),s.isBusy=!1}))):v()},s.createFolder=function(n,i){s.creatingFolder=!0,s.isBusy=!0,o.createSubFolder(n,s.rootFolder.Id,r.folderUrl,i.Id).then((function(o){e(h(s.rootFolder.Id)).modal(\"hide\"),i?(d(i),i.Folders.unshift(w(o,n))):s.rootFolder.Folders.unshift(w(o,n)),s.creatingFolder=!1,t.inputFolderName=null,v(),s.isBusy=!1}),(function(){s.creatingFolder=!1,t.inputFolderName=null,f(r.errors.generic),s.isBusy=!1}))},s.showRemoveFileModal=function(n,i){t.selectedFile=n,t.selectedFolder=i,t.shownModalId=n.ContentId,e(g(s.rootFolder.Id)).modal(\"show\")},s.showRemoveFolderModal=function(n){t.selectedFolder=n,t.shownModalId=n.Id,e(p(s.rootFolder.Id)).modal(\"show\")},s.showRenameFolderModal=function(n){t.selectedFolder=n,t.shownModalId=n.Id,t.inputFolderName=n.Name,e(m(s.rootFolder.Id)).modal(\"show\")},s.showAddFolderModal=function(n){t.selectedFolder=n,t.shownModalId=n.Id,t.inputFolderName=r.newFolderDefaultName,e(h(s.rootFolder.Id)).modal(\"show\")},s.showFolderDropDown=function(e){t.selectedFolder=e,t.shownDropDownMenuId=e.Id},s.showFileDropDown=function(e){t.selectedFile=e,t.shownDropDownMenuId=e.ContentId},s.openFile=function(e){n.open(e.Url,\"_blank\")},s.confirmedRemoveFolder=function(){t.selectedFolder?(s.deletingFolder=!0,o.deleteFolder(r.folderRemoveUrl,t.selectedFolder.Id).then((function(n){if(function(e,t){var n=null;return t.some((function(t){if(e.Id===t.Id)return n=t,!0})),n}(t.selectedFolder,s.rootFolder.Folders))s.rootFolder.Folders.splice(s.rootFolder.Folders.findIndex((function(e){return e.Id===t.selectedFolder.Id})),1);else{var i=b(t.selectedFolder,s.rootFolder.Folders);i.Folders.some&&i.Folders.splice(i.Folders.findIndex((function(e){return e.Id===t.selectedFolder.Id})),1)}v(),s.deletingFolder=!1,e(p(s.rootFolder.Id)).modal(\"hide\")}),(function(){v(),s.deletingFolder=!1,e(p(s.rootFolder.Id)).modal(\"hide\"),f(r.errors.generic)}))):v()},s.removeFile=function(){t.selectedFile?(s.deletingFile=!0,o.deleteFile(r.deleteUrl,t.selectedFile.ContentId).then((function(n){!function e(t,n){for(var i=0;i0)for(var r=0;r0&&e(o.Folders,n)}}(s.rootFolder.Folders,t.selectedFile.ContentId),e(g(s.rootFolder.Id)).modal(\"hide\"),v(),s.deletingFile=!1}),(function(){e(g(s.rootFolder.Id)).modal(\"hide\"),f(r.errors.generic),v(),s.deletingFile=!1}))):v()},s.upload=function(e,n,i,a,l,c){!e&&e.length<=0?v():(s.isUploading=!0,o.uploadFiles(e,r.url,t.selectedFolder.Id).then((function(e){s.isUploading=!1,t.selectedFolder.Files||(t.selectedFolder.Files=[]),e.forEach((function(e){var n;t.selectedFolder.Files.unshift({Title:(n=e).FileName,Date:n.Date,ContentId:n.ContentId,Url:n.Url})})),d(t.selectedFolder),v()}),(function(){s.isUploading=!1,f(r.errors.generic),v()})))}}angular.module(\"lif.controllers\").controller(\"catalogStructureWithFileBlockController\",t),t.$inject=[\"$scope\",\"$window\",\"$timeout\",\"formService\",\"catalogStructureWithFileBlockFactory\"]}()}).call(this,n(2))},556:function(e,t){!function(){function e(e,t,n,i){var o={uploadFiles:function(e,i,o){var r=t.defer();if(e&&e.length){for(var s=0,a=[],l=0;l-1||n.push(r)}}return n}}angular.module(\"lif.filters\").filter(\"mainlink\",e),e.$inject=[\"$location\"]}()},560:function(e,t){!function(){\"use strict\";function e(e){return e.trustAsHtml}angular.module(\"lif.filters\").filter(\"unsafe\",e).filter(\"htmlToPlainText\",(function(){return function(e){return angular.element(e).text()}})),e.$inject=[\"$sce\"]}()},561:function(e,t){!function(){\"use strict\";angular.module(\"lif\").directive(\"ngEnter\",(function(){return function(e,t,n){t.bind(\"keydown keypress\",(function(t){13===t.which&&(e.$apply((function(){e.$eval(n.ngEnter)})),t.preventDefault())}))}}))}()},562:function(e,t){!function(){\"use strict\";angular.module(\"lif\").directive(\"onErrorSrc\",(function(){return{restrict:\"A\",link:function(e,t,n){n.ngSrc?t.bind(\"error\",(function(){n.src!==n.onErrorSrc&&n.$set(\"src\",n.onErrorSrc)})):t.attr(\"src\",n.onErrorSrc)}}}))}()},563:function(e,t,n){(function(e){e((function(){(window.navigator.userAgent.indexOf(\"MSIE \")>0||navigator.userAgent.match(/Trident.*rv\\:11\\./))&&e(\"#IEerrormessage\").removeClass(\"hidden\")}))}).call(this,n(2))},564:function(e,t,n){},565:function(e,t,n){\"use strict\";n.r(t);n(274),n(460),n(98),n(475),n(476),n(66),n(479),n(481),n(483),n(485),n(486),n(99),n(135),n(487),n(490),n(491),n(100),n(144);var i=n(0),o=n.n(i);n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(528),n(529),n(530),n(533);n(534),n(535),n(536),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564);window.waitingDialog=n(477),window.moment=o.a,window.uuidv4=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return(\"x\"==e?t:3&t|8).toString(16)}))}}});"],"mappings":";AAAA","sourceRoot":""}