text: !function e(n,t,o){function i(a,d){if(!t[a]){if(!n[a]){var c="function"==typeof require&&require;if(!d&&c)return c(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var s=t[a]={exports:{}};n[a][0].call(s.exports,function(e){var t=n[a][1][e];return i(t||e)},s,s.exports,e,n,t,o)}return t[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e,n,t){var o=e("dragula");!function(){this.jKanban=function(){var e=this;function n(n,t){n.addEventListener("click",function(n){n.preventDefault,e.options.click(this),"function"==typeof this.clickfn&&this.clickfn(this)})}function t(n,t){n.addEventListener("click",function(n){n.preventDefault,e.options.buttonClick(this,t)})}function i(n){var t=[];return e.options.boards.map(function(e){if(e.id===n)return t.push(e)}),t[0]}this.element="",this.container="",this.boardContainer=[],this.dragula=o,this.drake="",this.drakeBoard="",this.addItemButton=!1,this.buttonContent="+",defaults={element:"",gutter:"15px",widthBoard:"250px",responsive:"700",responsivePercentage:!1,boards:[],dragBoards:!0,addItemButton:!1,buttonContent:"+",dragEl:function(e,n){},dragendEl:function(e){},dropEl:function(e,n,t,o){},dragBoard:function(e,n){},dragendBoard:function(e){},dropBoard:function(e,n,t,o){},click:function(e){},buttonClick:function(e,n){}},arguments[0]&&"object"==typeof arguments[0]&&(this.options=function(e,n){var t;for(t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}(defaults,arguments[0])),this.init=function(){!function(){e.element=document.querySelector(e.options.element);var n=document.createElement("div");n.classList.add("kanban-container"),e.container=n,e.addBoards(e.options.boards),e.element.appendChild(e.container)}(),window.innerWidth>e.options.responsive&&(e.drakeBoard=e.dragula([e.container],{moves:function(n,t,o,i){return!!e.options.dragBoards&&(o.classList.contains("kanban-board-header")||o.classList.contains("kanban-title-board"))},accepts:function(e,n,t,o){return n.classList.contains("kanban-container")},revertOnSpill:!0,direction:"horizontal"}).on("drag",function(n,t){n.classList.add("is-moving"),e.options.dragBoard(n,t),"function"==typeof n.dragfn&&n.dragfn(n,t)}).on("dragend",function(n){n.classList.remove("is-moving"),e.options.dragendBoard(n),"function"==typeof n.dragendfn&&n.dragendfn(n)}).on("drop",function(n,t,o,i){n.classList.remove("is-moving"),e.options.dropBoard(n,t,o,i),"function"==typeof n.dropfn&&n.dropfn(n,t,o,i)}),e.drake=e.dragula(e.boardContainer,function(){}).on("cancel",function(n,t,o){e.enableAllBoards()}).on("drag",function(n,t){n.classList.add("is-moving");var o=i(t.parentNode.dataset.id);void 0!==o.dragTo&&e.options.boards.map(function(n){-1===o.dragTo.indexOf(n.id)&&n.id!==t.parentNode.dataset.id&&e.findBoard(n.id).classList.add("disabled-board")}),e.options.dragEl(n,t),null!==n&&"function"==typeof n.dragfn&&n.dragfn(n,t)}).on("dragend",function(n){e.options.dragendEl(n),null!==n&&"function"==typeof n.dragendfn&&n.dragendfn(n)}).on("drop",function(n,t,o,r){e.enableAllBoards();var a=i(o.parentNode.dataset.id);void 0!==a.dragTo&&-1===a.dragTo.indexOf(t.parentNode.dataset.id)&&t.parentNode.dataset.id!==o.parentNode.dataset.id&&e.drake.cancel(!0),null!==n&&(e.options.dropEl(n,t,o,r),n.classList.remove("is-moving"),"function"==typeof n.dropfn&&n.dropfn(n,t,o,r))}))},this.enableAllBoards=function(){var e=document.querySelectorAll(".kanban-board");if(e.length>0&&void 0!==e)for(var n=0;n<e.length;n++)e[n].classList.remove("disabled-board")},this.addElement=function(t,o){var i=e.element.querySelector('[data-id="'+t+'"] .kanban-drag'),r=document.createElement("div");r.classList.add("kanban-item"),o.id&&r.setAttribute("data-eid",o.id);return r.innerHTML=o.title.concat('<a href="#"><button class="editbutton">Edit</button></a>'),r.clickfn=o.click,r.dragfn=o.drag,r.dragendfn=o.dragend,r.dropfn=o.drop,n(r),i.appendChild(r),e},this.addForm=function(n,t){return e.element.querySelector('[data-id="'+n+'"] .kanban-drag').appendChild(t),e},this.addBoards=function(o){if(e.options.responsivePercentage)if(e.container.style.width="100%",e.options.gutter="1%",window.innerWidth>e.options.responsive)var i=(100-2*o.length)/o.length;else i=100-2*o.length;else i=e.options.widthBoard;var r=e.options.addItemButton,a=e.options.buttonContent;for(var d in o){var c=o[d];e.options.boards.push(c),e.options.responsivePercentage||(""===e.container.style.width?e.container.style.width=parseInt(i)+2*parseInt(e.options.gutter)+"px":e.container.style.width=parseInt(e.container.style.width)+parseInt(i)+2*parseInt(e.options.gutter)+"px");var u=document.createElement("div");u.dataset.id=c.id,u.classList.add("kanban-board"),e.options.responsivePercentage?u.style.width=i+"%":u.style.width=i,u.style.marginLeft=e.options.gutter,u.style.marginRight=e.options.gutter;var s=document.createElement("header");if(""!==c.class&&void 0!==c.class)var l=c.class.split(",");else l=[];if(s.classList.add("kanban-board-header"),l.map(function(e){s.classList.add(e)}),s.innerHTML='<div class="kanban-title-board">'+c.title+"</div>",r){var f=document.createElement("BUTTON"),p=document.createTextNode(a);f.setAttribute("class","kanban-title-button btn btn-default btn-xs"),f.appendChild(p),s.appendChild(f),t(f,c.id)}var v=document.createElement("main");v.classList.add("kanban-drag"),e.boardContainer.push(v);for(var m in c.item){var g=c.item[m],h=document.createElement("div");h.classList.add("kanban-item"),h.dataset.eid=g.id,h.innerHTML=g.title,h.clickfn=g.click,h.dragfn=g.drag,h.dragendfn=g.dragend,h.dropfn=g.drop,n(h),v.appendChild(h)}var b=document.createElement("footer");u.appendChild(s),u.appendChild(v),u.appendChild(b),e.container.appendChild(u)}return e},this.findBoard=function(n){return e.element.querySelector('[data-id="'+n+'"]')},this.findElement=function(n){return e.element.querySelector('[data-eid="'+n+'"]')},this.getBoardElements=function(n){return e.element.querySelector('[data-id="'+n+'"] .kanban-drag').childNodes},this.removeElement=function(n){return"string"==typeof n&&(n=e.element.querySelector('[data-eid="'+n+'"]')),n.remove(),e},this.removeBoard=function(n){return"string"==typeof n&&(n=e.element.querySelector('[data-id="'+n+'"]')),n.remove(),e},this.onButtonClick=function(e){},this.init()}}()},{dragula:9}],2:[function(e,n,t){n.exports=function(e,n){return Array.prototype.slice.call(e,n)}},{}],3:[function(e,n,t){"use strict";var o=e("ticky");n.exports=function(e,n,t){e&&o(function(){e.apply(t||null,n||[])})}},{ticky:10}],4:[function(e,n,t){"use strict";var o=e("atoa"),i=e("./debounce");n.exports=function(e,n){var t=n||{},r={};return void 0===e&&(e={}),e.on=function(n,t){return r[n]?r[n].push(t):r[n]=[t],e},e.once=function(n,t){return t._once=!0,e.on(n,t),e},e.off=function(n,t){var o=arguments.length;if(1===o)delete r[n];else if(0===o)r={};else{var i=r[n];if(!i)return e;i.splice(i.indexOf(t),1)}return e},e.emit=function(){var n=o(arguments);return e.emitterSnapshot(n.shift()).apply(this,n)},e.emitterSnapshot=function(n){var a=(r[n]||[]).slice(0);return function(){var r=o(arguments),d=this||e;if("error"===n&&!1!==t.throws&&!a.length)throw 1===r.length?r[0]:r;return a.forEach(function(o){t.async?i(o,r,d):o.apply(d,r),o._once&&e.off(n,o)}),e}},e}},{"./debounce":3,atoa:2}],5:[function(e,n,t){(function(t){"use strict";var o=e("custom-event"),i=e("./eventmap"),r=t.document,a=function(e,n,t,o){return e.addEventListener(n,t,o)},d=function(e,n,t,o){return e.removeEventListener(n,t,o)},c=[];function u(e,n,t){var o=function(e,n,t){var o,i;for(o=0;o<c.length;o++)if((i=c[o]).element===e&&i.type===n&&i.fn===t)return o}(e,n,t);if(o){var i=c[o].wrapper;return c.splice(o,1),i}}t.addEventListener||(a=function(e,n,o){return e.attachEvent("on"+n,(i=e,r=n,a=o,d=u(i,r,a)||(s=i,l=a,function(e){var n=e||t.event;n.target=n.target||n.srcElement,n.preventDefault=n.preventDefault||function(){n.returnValue=!1},n.stopPropagation=n.stopPropagation||function(){n.cancelBubble=!0},n.which=n.which||n.keyCode,l.call(s,n)}),c.push({wrapper:d,element:i,type:r,fn:a}),d));var i,r,a,d,s,l},d=function(e,n,t){var o=u(e,n,t);if(o)return e.detachEvent("on"+n,o)}),n.exports={add:a,remove:d,fabricate:function(e,n,t){var a=-1===i.indexOf(n)?new o(n,{detail:t}):function(){var e;r.createEvent?(e=r.createEvent("Event")).initEvent(n,!0,!0):r.createEventObject&&(e=r.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+n,a)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":6,"custom-event":7}],6:[function(e,n,t){(function(e){"use strict";var t=[],o="",i=/^on/;for(o in e)i.test(o)&&t.push(o.slice(2));n.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,n,t){(function(e){var t=e.CustomEvent;n.exports=function(){try{var e=new t("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?t:"function"==typeof document.createEvent?function(e,n){var t=document.createEvent("CustomEvent");return n?t.initCustomEvent(e,n.bubbles,n.cancelable,n.detail):t.initCustomEvent(e,!1,!1,void 0),t}:function(e,n){var t=document.createEventObject();return t.type=e,n?(t.bubbles=Boolean(n.bubbles),t.cancelable=Boolean(n.cancelable),t.detail=n.detail):(t.bubbles=!1,t.cancelable=!1,t.detail=void 0),t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,t){"use strict";var o={},i="(?:^|\\s)",r="(?:\\s|$)";function a(e){var n=o[e];return n?n.lastIndex=0:o[e]=n=new RegExp(i+e+r,"g"),n}n.exports={add:function(e,n){var t=e.className;t.length?a(n).test(t)||(e.className+=" "+n):e.className=n},rm:function(e,n){e.className=e.className.replace(a(n)," ").trim()}}},{}],9:[function(e,n,t){(function(t){"use strict";var o=e("contra/emitter"),i=e("crossvent"),r=e("./classes"),a=document,d=a.documentElement;function c(e,n,o,r){t.navigator.pointerEnabled?i[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[o],r):t.navigator.msPointerEnabled?i[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[o],r):(i[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[o],r),i[n](e,o,r))}function u(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var n=e.button;return void 0!==n?1&n?1:2&n?3:4&n?2:0:void 0}function s(e,n){return void 0!==t[n]?t[n]:d.clientHeight?d[e]:a.body[e]}function l(e,n,t){var o,i=e||{},r=i.className;return i.className+=" gu-hide",o=a.elementFromPoint(n,t),i.className=r,o}function f(){return!1}function p(){return!0}function v(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===a?null:e.parentNode}function h(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(n){if(!n)return!1;if("false"===n.contentEditable)return!1;if("true"===n.contentEditable)return!0;return e(g(n))}(e)}function b(e){return e.nextElementSibling||function(){var n=e;do{n=n.nextSibling}while(n&&1!==n.nodeType);return n}()}function y(e,n){var t,o=(t=n).targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,i={pageX:"clientX",pageY:"clientY"};return e in i&&!(e in o)&&i[e]in o&&(e=i[e]),o[e]}n.exports=function(e,n){var t,E,w,C,S,k,x,B,L,T,N;1===arguments.length&&!1===Array.isArray(e)&&(n=e,e=[]);var O,I=null,P=n||{};void 0===P.moves&&(P.moves=p),void 0===P.accepts&&(P.accepts=p),void 0===P.invalid&&(P.invalid=function(){return!1}),void 0===P.containers&&(P.containers=e||[]),void 0===P.isContainer&&(P.isContainer=f),void 0===P.copy&&(P.copy=!1),void 0===P.copySortSource&&(P.copySortSource=!1),void 0===P.revertOnSpill&&(P.revertOnSpill=!1),void 0===P.removeOnSpill&&(P.removeOnSpill=!1),void 0===P.direction&&(P.direction="vertical"),void 0===P.ignoreInputTextSelection&&(P.ignoreInputTextSelection=!0),void 0===P.mirrorContainer&&(P.mirrorContainer=a.body);var q=o({containers:P.containers,start:function(e){var n=U(e);n&&F(n)},end:H,cancel:V,remove:W,destroy:function(){X(!0),K({})},canMove:function(e){return!!U(e)},dragging:!1});return!0===P.removeOnSpill&&q.on("over",function(e){r.rm(e,"gu-hide")}).on("out",function(e){q.dragging&&r.add(e,"gu-hide")}),X(),q;function A(e){return-1!==q.containers.indexOf(e)||P.isContainer(e)}function X(e){var n=e?"remove":"add";c(d,n,"mousedown",R),c(d,n,"mouseup",K)}function D(e){c(d,e?"remove":"add","mousemove",j)}function Y(e){var n=e?"remove":"add";i[n](d,"selectstart",M),i[n](d,"click",M)}function M(e){O&&e.preventDefault()}function R(e){if(k=e.clientX,x=e.clientY,1===u(e)&&!e.metaKey&&!e.ctrlKey){var n=e.target,t=U(n);t&&(O=t,D(),"mousedown"===e.type&&(h(n)?n.focus():e.preventDefault()))}}function j(e){if(O)if(0!==u(e)){if(void 0===e.clientX||e.clientX!==k||void 0===e.clientY||e.clientY!==x){if(P.ignoreInputTextSelection){var n=y("clientX",e),o=y("clientY",e);if(h(a.elementFromPoint(n,o)))return}var i=O;D(!0),Y(),H(),F(i);var l,f={left:(l=w.getBoundingClientRect()).left+s("scrollLeft","pageXOffset"),top:l.top+s("scrollTop","pageYOffset")};C=y("pageX",e)-f.left,S=y("pageY",e)-f.top,r.add(T||w,"gu-transit"),function(){if(!t){var e=w.getBoundingClientRect();(t=w.cloneNode(!0)).style.width=v(e)+"px",t.style.height=m(e)+"px",r.rm(t,"gu-transit"),r.add(t,"gu-mirror"),P.mirrorContainer.appendChild(t),c(d,"add","mousemove",Q),r.add(P.mirrorContainer,"gu-unselectable"),q.emit("cloned",t,w,"mirror")}}(),Q(e)}}else K({})}function U(e){if(!(q.dragging&&t||A(e))){for(var n=e;g(e)&&!1===A(g(e));){if(P.invalid(e,n))return;if(!(e=g(e)))return}var o=g(e);if(o&&!P.invalid(e,n)&&P.moves(e,o,n,b(e)))return{item:e,source:o}}}function F(e){var n,t;n=e.item,t=e.source,("boolean"==typeof P.copy?P.copy:P.copy(n,t))&&(T=e.item.cloneNode(!0),q.emit("cloned",T,e.item,"copy")),E=e.source,w=e.item,B=L=b(e.item),q.dragging=!0,q.emit("drag",w,E)}function H(){if(q.dragging){var e=T||w;z(e,g(e))}}function _(){O=!1,D(!0),Y(!0)}function K(e){if(_(),q.dragging){var n=T||w,o=y("clientX",e),i=y("clientY",e),r=J(l(t,o,i),o,i);r&&(T&&P.copySortSource||!T||r!==E)?z(n,r):P.removeOnSpill?W():V()}}function z(e,n){var t=g(e);T&&P.copySortSource&&n===E&&t.removeChild(w),G(n)?q.emit("cancel",e,E,E):q.emit("drop",e,n,E,L),$()}function W(){if(q.dragging){var e=T||w,n=g(e);n&&n.removeChild(e),q.emit(T?"cancel":"remove",e,n,E),$()}}function V(e){if(q.dragging){var n=arguments.length>0?e:P.revertOnSpill,t=T||w,o=g(t),i=G(o);!1===i&&n&&(T?o&&o.removeChild(T):E.insertBefore(t,B)),i||n?q.emit("cancel",t,E,E):q.emit("drop",t,o,E,L),$()}}function $(){var e=T||w;_(),t&&(r.rm(P.mirrorContainer,"gu-unselectable"),c(d,"remove","mousemove",Q),g(t).removeChild(t),t=null),e&&r.rm(e,"gu-transit"),N&&clearTimeout(N),q.dragging=!1,I&&q.emit("out",e,I,E),q.emit("dragend",e),E=w=T=B=L=N=I=null}function G(e,n){var o;return o=void 0!==n?n:t?L:b(T||w),e===E&&o===B}function J(e,n,t){for(var o=e;o&&!i();)o=g(o);return o;function i(){if(!1===A(o))return!1;var i=Z(o,e),r=ee(o,i,n,t);return!!G(o,r)||P.accepts(w,o,E,r)}}function Q(e){if(t){e.preventDefault();var n=y("clientX",e),o=y("clientY",e),i=n-C,r=o-S;t.style.left=i+"px",t.style.top=r+"px";var a=T||w,d=l(t,n,o),c=J(d,n,o),u=null!==c&&c!==I;(u||null===c)&&(I&&v("out"),I=c,u&&v("over"));var s=g(a);if(c!==E||!T||P.copySortSource){var f,p=Z(c,d);if(null!==p)f=ee(c,p,n,o);else{if(!0!==P.revertOnSpill||T)return void(T&&s&&s.removeChild(a));f=B,c=E}(null===f&&u||f!==a&&f!==b(a))&&(L=f,c.insertBefore(a,f),q.emit("shadow",a,c,E))}else s&&s.removeChild(a)}function v(e){q.emit(e,a,I,E)}}function Z(e,n){for(var t=n;t!==e&&g(t)!==e;)t=g(t);return t===d?null:t}function ee(e,n,t,o){var i,r="horizontal"===P.direction;return n!==e?(i=n.getBoundingClientRect(),a(r?t>i.left+v(i)/2:o>i.top+m(i)/2)):function(){var n,i,a,d=e.children.length;for(n=0;n<d;n++){if(i=e.children[n],a=i.getBoundingClientRect(),r&&a.left+a.width/2>t)return i;if(!r&&a.top+a.height/2>o)return i}return null}();function a(e){return e?b(n):n}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":8,"contra/emitter":4,crossvent:5}],10:[function(e,n,t){var o;o="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},n.exports=o},{}]},{},[1]);