diff --git a/NearBeach/__init__.py b/NearBeach/__init__.py index 18fc65443..be1044341 100755 --- a/NearBeach/__init__.py +++ b/NearBeach/__init__.py @@ -1,2 +1,2 @@ name = "NearBeach" -__version__ = "0.28.14" +__version__ = "0.28.15" diff --git a/NearBeach/static/NearBeach/NearBeach.min.js b/NearBeach/static/NearBeach/NearBeach.min.js index 344a8ff02..542e747ff 100644 --- a/NearBeach/static/NearBeach/NearBeach.min.js +++ b/NearBeach/static/NearBeach/NearBeach.min.js @@ -28,4 +28,4 @@ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else * @author owenm * @license MIT */ -function r(t){return(r="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})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return(o=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&_(t,e):_(t,e))||r&&t===n)return t;if(t===n)break}while(t=y(t))}return null}var x,k=/\s+/g;function C(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(k," ")}}function M(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function S(t,e){var n="";if("string"==typeof t)n=t;else do{var r=M(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function T(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i=o:i<=o))return r;if(r===E())break;r=$(r,!1)}return!1}function I(t,e,n){for(var r=0,i=0,o=t.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=s(n,["evt"]);W.pluginEvent.bind(zt)(t,e,a({dragEl:Z,parentEl:X,ghostEl:J,rootEl:Q,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:rt,dragStarted:vt,putSortable:ct,activeSortable:zt.active,originalEvent:r,oldIndex:it,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:At,unhideGhostForTarget:Rt,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(t){K({sortable:e,name:t,originalEvent:r})}},i))};function K(t){G(a({putSortable:ct,cloneEl:nt,targetEl:Z,rootEl:Q,oldIndex:it,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st},t))}var Z,X,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,dt,ut,pt,mt,ft,ht,vt,gt,bt,_t,yt,wt=!1,xt=!1,kt=[],Ct=!1,Mt=!1,St=[],Tt=!1,Et=[],jt="undefined"!=typeof document,Ot=f,It=u||d?"cssFloat":"float",Lt=jt&&!h&&!f&&"draggable"in document.createElement("div"),Dt=function(){if(jt){if(d)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var n=M(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=I(t,0,e),o=I(t,1,e),a=i&&M(i),s=o&&M(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[It]||o&&"none"===n[It]&&l+c>r)?"vertical":"horizontal"},$t=function(t){function e(t,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},At=function(){!Dt&&J&&M(J,"display","none")},Rt=function(){!Dt&&J&&M(J,"display","")};jt&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var Pt=function(t){if(Z){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!L(t)){var e=j(t),n=t[U].options.emptyInsertThreshold,r=i>=e.left-n&&i<=e.right+n,s=o>=e.top-n&&o<=e.bottom+n;return n&&r&&s?a=t:void 0}})),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}var i,o,a},qt=function(t){Z&&Z.parentNode[U]._isOutsideThisEl(t.target)};function zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in W.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in $t(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,B())}function Ft(t,e,n,r,i,o,a,s){var l,c,p=t[U],m=p.options.onMove;return!window.CustomEvent||d||u?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||j(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),m&&(c=m.call(p,l,a)),c}function Ut(t){t.draggable=!1}function Bt(){Tt=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Ht(t){return setTimeout(t,0)}function Wt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Z):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,i=r.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;if(function(t){Et.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&Et.push(r)}}(n),!Z&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||l.isContentEditable||(s=w(s,r.draggable,n,!1))&&s.animated||et===s)){if(it=D(s),at=D(s,r.draggable),"function"==typeof c){if(c.call(this,t,s,this))return K({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Y("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=w(l,r.trim(),n,!1))return K({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Y("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!Z&&n.parentNode===o){var l=j(n);if(Q=o,X=(Z=n).parentNode,tt=Z.nextSibling,et=n,lt=a.group,zt.dragged=Z,dt={target:Z,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=dt.clientX-l.left,ht=dt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Z.style["will-change"]="all",r=function(){Y("delayEnded",i,{evt:t}),zt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(Z.draggable=!0),i._triggerDragStart(t,e),K({sortable:i,name:"choose",originalEvent:t}),C(Z,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){T(Z,t.trim(),Ut)})),g(s,"dragover",Pt),g(s,"mousemove",Pt),g(s,"touchmove",Pt),g(s,"mouseup",i._onDrop),g(s,"touchend",i._onDrop),g(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),Y("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(u||d))r();else{if(zt.eventCanceled)return void this._onDrop();g(s,"mouseup",i._disableDelayedDrag),g(s,"touchend",i._disableDelayedDrag),g(s,"touchcancel",i._disableDelayedDrag),g(s,"mousemove",i._delayedDragTouchMoveHandler),g(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&g(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&Ut(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,e?"touchmove":"mousemove",this._onTouchMove):(g(Z,"dragend",this),g(Q,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,Q&&Z){Y("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",qt);var n=this.options;!t&&C(Z,n.dragClass,!1),C(Z,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,At();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY))!==e;)e=t;if(Z.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){if(e[U]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Rt()}},_onTouchMove:function(t){if(dt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=J&&S(J,!0),a=J&&o&&o.a,s=J&&o&&o.d,l=Ot&&yt&&N(yt),c=(i.clientX-dt.clientX+r.x)/(a||1)+(l?l[0]-St[0]:0)/(a||1),d=(i.clientY-dt.clientY+r.y)/(s||1)+(l?l[1]-St[1]:0)/(s||1);if(!zt.active&&!wt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))r.right+10||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+10}(t,i,this)&&!v.animated){if(v===Z)return q(!1);if(v&&o===t.target&&(s=v),s&&(n=j(s)),!1!==Ft(Q,o,Z,e,s,n,t,!!s))return R(),o.appendChild(Z),X=o,z(),q(!0)}else if(s.parentNode===o){n=j(s);var g,b,_,y=Z.parentNode!==o,x=!function(t,e,n){var r=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return r===a||i===s||r+o/2===a+l/2}(Z.animated&&Z.toRect||e,s.animated&&s.toRect||n,i),k=i?"top":"left",S=O(s,"top","top")||O(Z,"top","top"),T=S?S.scrollTop:void 0;if(gt!==s&&(b=n[k],Ct=!1,Mt=!x&&l.invertSwap||y),0!==(g=function(t,e,n,r,i,o,a,s){var l=r?t.clientY:t.clientX,c=r?n.height:n.width,d=r?n.top:n.left,u=r?n.bottom:n.right,p=!1;if(!a)if(s&&_td+c*o/2:lu-_t)return-bt}else if(l>d+c*(1-i)/2&&lu-c*o/2))return l>d+c/2?1:-1;return 0}(t,s,n,i,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Mt,gt===s))){var E=D(Z);do{E-=g,_=X.children[E]}while(_&&("none"===M(_,"display")||_===J))}if(0===g||_===s)return q(!1);gt=s,bt=g;var I=s.nextElementSibling,N=!1,$=Ft(Q,o,Z,e,s,n,t,N=1===g);if(!1!==$)return 1!==$&&-1!==$||(N=1===$),Tt=!0,setTimeout(Bt,30),R(),N&&!I?o.appendChild(Z):s.parentNode.insertBefore(Z,N?I:s),S&&P(S,0,T-S.scrollTop),X=Z.parentNode,void 0===b||Mt||(_t=Math.abs(b-j(s)[k])),z(),q(!0)}if(o.contains(Z))return q(!1)}return!1}function A(l,c){Y(l,f,a({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:p,fromSortable:m,target:s,completed:q,onMove:function(n,r){return Ft(Q,o,Z,e,n,j(n),t,r)},changed:z},c))}function R(){A("dragOverAnimationCapture"),f.captureAnimationState(),f!==m&&m.captureAnimationState()}function q(e){return A("dragOverCompleted",{insertion:e}),e&&(u?d._hideClone():d._showClone(f),f!==m&&(C(Z,ct?ct.options.ghostClass:d.options.ghostClass,!1),C(Z,l.ghostClass,!0)),ct!==f&&f!==zt.active?ct=f:f===zt.active&&ct&&(ct=null),m===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){A("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===o&&!s.animated)&&(gt=null),l.dragoverBubble||t.rootEl||s===document||(Z.parentNode[U]._isOutsideThisEl(t.target),!e&&Pt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function z(){ot=D(Z),st=D(Z,l.draggable),K({sortable:f,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Pt),b(document,"mousemove",Pt),b(document,"touchmove",Pt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ot=D(Z),st=D(Z,n.draggable),Y("drop",this,{evt:t}),X=Z&&Z.parentNode,ot=D(Z),st=D(Z,n.draggable),zt.eventCanceled||(wt=!1,Mt=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wt(this.cloneId),Wt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&M(document.body,"user-select",""),M(Z,"transform",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===X||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),Z&&(this.nativeDraggable&&b(Z,"dragend",this),Ut(Z),Z.style["will-change"]="",vt&&!wt&&C(Z,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(Z,this.options.chosenClass,!1),K({sortable:this,name:"unchoose",toEl:X,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==X?(ot>=0&&(K({rootEl:X,name:"add",toEl:X,fromEl:Q,originalEvent:t}),K({sortable:this,name:"remove",toEl:X,originalEvent:t}),K({rootEl:X,name:"sort",toEl:X,fromEl:Q,originalEvent:t}),K({sortable:this,name:"sort",toEl:X,originalEvent:t})),ct&&ct.save()):ot!==it&&ot>=0&&(K({sortable:this,name:"update",toEl:X,originalEvent:t}),K({sortable:this,name:"sort",toEl:X,originalEvent:t})),zt.active&&(null!=ot&&-1!==ot||(ot=it,st=at),K({sortable:this,name:"end",toEl:X,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Y("nulling",this),Q=Z=X=J=tt=nt=et=rt=dt=ut=vt=ot=st=it=at=gt=bt=ct=lt=zt.dragged=zt.ghost=zt.clone=zt.active=null,Et.forEach((function(t){t.checked=!0})),Et.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Z&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r1&&(fe.forEach((function(t){r.addAnimationState({target:t,rect:ge?j(t):i}),F(t),t.fromRect=i,e.removeAnimationState(t)})),ge=!1,function(t,e){fe.forEach((function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.insertion,i=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(r){if(n&&i._hideClone(),ve=!1,s.animation&&fe.length>1&&(ge||!n&&!i.options.sort&&!a)){var l=j(ue,!1,!0,!0);fe.forEach((function(t){t!==ue&&(z(t,l),o.appendChild(t))})),ge=!0}if(!n)if(ge||we(),fe.length>1){var c=me;i._showClone(e),i.options.animation&&!me&&c&&he.forEach((function(t){i.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(fe.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){pe=o({},e);var i=S(ue,!0);pe.top-=i.f,pe.left-=i.e}},dragOverAnimationComplete:function(){ge&&(ge=!1,we())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,d=r.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(ue,c.selectedClass,!~fe.indexOf(ue)),~fe.indexOf(ue))fe.splice(fe.indexOf(ue),1),ce=null,G({sortable:i,rootEl:n,name:"deselect",targetEl:ue,originalEvt:e});else{if(fe.push(ue),G({sortable:i,rootEl:n,name:"select",targetEl:ue,originalEvt:e}),e.shiftKey&&ce&&i.el.contains(ce)){var u,p,m=D(ce),f=D(ue);if(~m&&~f&&m!==f)for(f>m?(p=m,u=f):(p=f,u=m+1);p1){var h=j(ue),v=D(ue,":not(."+this.options.selectedClass+")");if(!ve&&c.animation&&(ue.thisAnimationDuration=null),l.captureAnimationState(),!ve&&(c.animation&&(ue.fromRect=h,fe.forEach((function(t){if(t.thisAnimationDuration=null,t!==ue){var e=ge?j(t):h;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),we(),fe.forEach((function(t){d[v]?r.insertBefore(t,d[v]):r.appendChild(t),v++})),a===D(ue))){var g=!1;fe.forEach((function(t){t.sortableIndex===D(t)||(g=!0)})),g&&o("update")}fe.forEach((function(t){F(t)})),l.animateAll()}de=l}(n===r||s&&"clone"!==s.lastPutMode)&&he.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||de!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;fe.length;){var e=fe[0];C(e,this.options.selectedClass,!1),fe.shift(),G({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[U];e&&e.options.multiDrag&&!~fe.indexOf(t)&&(de&&de!==e&&(de.multiDrag._deselectMultiDrag(),de=e),C(t,e.options.selectedClass,!0),fe.push(t))},deselect:function(t){var e=t.parentNode[U],n=fe.indexOf(t);e&&e.options.multiDrag&&~n&&(C(t,e.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return fe.forEach((function(r){var i;e.push({multiDragElement:r,index:r.sortableIndex}),i=ge&&r!==ue?-1:ge?D(r,":not(."+t.options.selectedClass+")"):D(r),n.push({multiDragElement:r,index:i})})),{items:l(fe),clones:[].concat(he),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){he.forEach((function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function we(){fe.forEach((function(t){t!==ue&&t.parentNode&&t.parentNode.removeChild(t)}))}zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(x),x=void 0},nulling:function(){Xt=Yt=Gt=te=Jt=Kt=Zt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(r,i);if(Xt=t,e||u||d||m){ie(t,this.options,o,e);var a=$(o,!0);!te||Jt&&r===Kt&&i===Zt||(Jt&&ne(),Jt=setInterval((function(){var o=$(document.elementFromPoint(r,i),!0);o!==a&&(a=o,ee()),ie(t,n.options,o,e)}),10),Kt=r,Zt=i)}else{if(!this.options.bubbleScroll||$(o,!0)===E())return void ee();ie(t,this.options,$(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(se,ae),e.default=zt},function(t,e){},function(t,e,n){var r=n(47),i=n(194);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){(e=n(48)(!1)).push([t.i,'.vue-form-wizard .wizard-btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px}.vue-form-wizard .wizard-btn.disabled,.vue-form-wizard .wizard-btn[disabled],fieldset[disabled] .vue-form-wizard .wizard-btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.vue-form-wizard *{-webkit-box-sizing:border-box;box-sizing:border-box}.vue-form-wizard a{text-decoration:none}.vue-form-wizard .wizard-nav{margin-bottom:0;padding-left:0;list-style:none}.vue-form-wizard .wizard-nav>li{position:relative;display:block}.vue-form-wizard .wizard-nav>li>a{position:relative;display:block;padding:10px 15px}.vue-form-wizard .wizard-nav>li>a:focus,.vue-form-wizard .wizard-nav>li>a:hover{text-decoration:none;background-color:#eee}.vue-form-wizard .wizard-nav>li.disabled>a{color:#777}.vue-form-wizard .wizard-nav>li.disabled>a:focus,.vue-form-wizard .wizard-nav>li.disabled>a:hover{color:#777;text-decoration:none;background-color:transparent;cursor:not-allowed}.vue-form-wizard .wizard-progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.vue-form-wizard .navbar .navbar-nav>li>a.wizard-btn,.vue-form-wizard .wizard-btn{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:2px;background-color:transparent;font-size:14px;font-weight:600;padding:6px 12px;min-width:140px}.vue-form-wizard .navbar .navbar-nav>li>a.wizard-btn:focus,.vue-form-wizard .navbar .navbar-nav>li>a.wizard-btn:hover,.vue-form-wizard .wizard-btn:focus,.vue-form-wizard .wizard-btn:hover{outline:0!important}.vue-form-wizard .wizard-nav-pills{margin-top:0;position:relative;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vue-form-wizard .wizard-nav-pills a,.vue-form-wizard .wizard-nav-pills li{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-positive:1;flex-grow:1}.vue-form-wizard .wizard-nav-pills>li>a,.vue-form-wizard .wizard-nav-pills a{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-form-wizard .wizard-nav-pills>li>a{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;margin:0 auto;color:rgba(0,0,0,.2);position:relative;top:3px}.vue-form-wizard .wizard-nav-pills>li>a:focus,.vue-form-wizard .wizard-nav-pills>li>a:hover{background-color:transparent;color:rgba(0,0,0,.2);outline:0!important}.vue-form-wizard .wizard-nav-pills>li>a.disabled{pointer-events:none;cursor:default}.vue-form-wizard .wizard-nav-pills>li.active>a,.vue-form-wizard .wizard-nav-pills>li.active>a:focus,.vue-form-wizard .wizard-nav-pills>li.active>a:hover{background-color:transparent;-webkit-transition:font-size .2s linear;transition:font-size .2s linear}.vue-form-wizard .wizard-nav-pills>li.active>a .wizard-icon,.vue-form-wizard .wizard-nav-pills>li.active>a:focus .wizard-icon,.vue-form-wizard .wizard-nav-pills>li.active>a:hover .wizard-icon{color:#fff;font-size:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:all .2s linear;transition:all .2s linear}.vue-form-wizard{padding-bottom:20px}.vue-form-wizard .is_error{border-color:#c84513!important}.vue-form-wizard .is_error .icon-container{background:#c84513!important}.vue-form-wizard.xs .wizard-icon-circle{width:40px;height:40px;font-size:16px}.vue-form-wizard.xs .wizard-icon-circle.tab_shape{height:25px}.vue-form-wizard.xs .wizard-nav-pills>li.active>a .wizard-icon{font-size:16px}.vue-form-wizard.xs .wizard-navigation .wizard-progress-with-circle{position:relative;top:25px;height:4px}.vue-form-wizard.sm .wizard-icon-circle{width:50px;height:50px;font-size:20px}.vue-form-wizard.sm .wizard-icon-circle.tab_shape{height:30px}.vue-form-wizard.sm .wizard-nav-pills>li.active>a .wizard-icon{font-size:20px}.vue-form-wizard.sm .wizard-navigation .wizard-progress-with-circle{position:relative;top:30px;height:4px}.vue-form-wizard.md .wizard-icon-circle{width:70px;height:70px;font-size:24px}.vue-form-wizard.md .wizard-icon-circle.tab_shape{height:40px}.vue-form-wizard.md .wizard-nav-pills>li.active>a .wizard-icon{font-size:24px}.vue-form-wizard.md .wizard-navigation .wizard-progress-with-circle{position:relative;top:40px;height:4px}.vue-form-wizard.lg .wizard-icon-circle{width:90px;height:90px;font-size:28px}.vue-form-wizard.lg .wizard-icon-circle.tab_shape{height:50px}.vue-form-wizard.lg .wizard-nav-pills>li.active>a .wizard-icon{font-size:28px}.vue-form-wizard.lg .wizard-navigation .wizard-progress-with-circle{position:relative;top:50px;height:4px}.vue-form-wizard .wizard-icon-circle{font-size:18px;border:3px solid #f3f2ee;border-radius:50%;font-weight:600;width:70px;height:70px;background-color:#fff;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}.vue-form-wizard .wizard-icon-circle.square_shape{border-radius:0}.vue-form-wizard .wizard-icon-circle.tab_shape{width:100%;min-width:100px;height:40px;border:none;background-color:#f3f2ee;border-radius:0}.vue-form-wizard .wizard-icon-circle .wizard-icon-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:1;-ms-flex:1;flex:1;border-radius:40%}.vue-form-wizard .wizard-icon-circle .wizard-icon-container.square_shape,.vue-form-wizard .wizard-icon-circle .wizard-icon-container.tab_shape{border-radius:0}.vue-form-wizard .wizard-icon-circle .wizard-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-form-wizard .wizard-tab-content{min-height:100px;padding:30px 20px 10px}.vue-form-wizard .wizard-header{padding:15px;position:relative;border-radius:3px 3px 0 0;text-align:center}.vue-form-wizard .wizard-title{color:#252422;font-weight:300;margin:0;text-align:center}.vue-form-wizard .category{font-size:14px;font-weight:400;color:#9a9a9a;margin-bottom:0;text-align:center}.vue-form-wizard .wizard-navigation .wizard-progress-with-circle{position:relative;top:40px;height:4px}.vue-form-wizard .wizard-navigation .wizard-progress-with-circle .wizard-progress-bar{-webkit-box-shadow:none;box-shadow:none;-webkit-transition:width .3s ease;transition:width .3s ease}.vue-form-wizard .clearfix:after{content:"";clear:both;display:table}.vue-form-wizard .wizard-card-footer{padding:0 20px}.vue-form-wizard .wizard-card-footer .wizard-footer-left{float:left}.vue-form-wizard .wizard-card-footer .wizard-footer-right{float:right}@media screen and (max-width:350px){.vue-form-wizard .wizard-card-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vue-form-wizard .wizard-card-footer .wizard-footer-left,.vue-form-wizard .wizard-card-footer .wizard-footer-right{float:none;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-form-wizard .wizard-card-footer .wizard-footer-right button{margin-top:10px}}.vue-form-wizard.vertical .wizard-card-footer{display:block}.vue-form-wizard.vertical .wizard-nav-pills{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vue-form-wizard.vertical .wizard-navigation{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.vue-form-wizard.vertical .wizard-card-footer{padding-top:30px}',""]),t.exports=e},function(t,e,n){"use strict";function r(t){return null==t}function i(t){return null!=t}function o(t,e){return e.tag===t.tag&&e.key===t.key}function a(t){var e=t.tag;t.vm=new e({data:t.args})}function s(t,e,n){var r,o,a={};for(r=e;r<=n;++r)i(o=t[r].key)&&(a[o]=r);return a}function l(t,e,n){for(;e<=n;++e)a(t[e])}function c(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(r.vm.$destroy(),r.vm=null)}}function d(t,e){t!==e&&(e.vm=t.vm,function(t){for(var e=Object.keys(t.args),n=0;nh?l(e,f,b):f>b&&c(t,m,h)}(t,e):i(e)?l(e,0,e.length-1):i(t)&&c(t,0,t.length-1)},e.h=function(t,e,n){return{tag:t,key:e,args:n}}},function(t,e,n){var r=n(47),i=n(197);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){(e=n(48)(!1)).push([t.i,'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-fade-enter-active,\n.vdatetime-fade-leave-active {\n transition: opacity .4s;\n}\n\n.vdatetime-fade-enter,\n.vdatetime-fade-leave-to {\n opacity: 0;\n}\n\n.vdatetime-overlay {\n z-index: 999;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, .5);\n transition: opacity .5s;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-popup {\n box-sizing: border-box;\n z-index: 1000;\n position: fixed;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n width: 340px;\n max-width: calc(100% - 30px);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .3);\n color: #444;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n line-height: 1.18;\n background: #fff;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0)\n}\n\n.vdatetime-popup * {\n box-sizing: border-box\n}\n\n.vdatetime-popup__header {\n padding: 18px 30px;\n background: #3f51b5;\n color: #fff;\n font-size: 32px;\n}\n\n.vdatetime-popup__title {\n margin-bottom: 8px;\n font-size: 21px;\n font-weight: 300;\n}\n\n.vdatetime-popup__year {\n font-weight: 300;\n font-size: 14px;\n opacity: 0.7;\n cursor: pointer;\n transition: opacity .3s\n}\n\n.vdatetime-popup__year:hover {\n opacity: 1\n}\n\n.vdatetime-popup__date {\n line-height: 1;\n cursor: pointer;\n}\n\n.vdatetime-popup__actions {\n padding: 0 20px 10px 30px;\n text-align: right;\n}\n\n.vdatetime-popup__actions__button {\n display: inline-block;\n border: none;\n padding: 10px 20px;\n background: transparent;\n font-size: 16px;\n color: #3f51b5;\n cursor: pointer;\n transition: color .3s\n}\n\n.vdatetime-popup__actions__button:hover {\n color: #444\n}\n.vdatetime-calendar__navigation--previous:hover svg path, .vdatetime-calendar__navigation--next:hover svg path {\n stroke: #888;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-calendar__navigation,\n.vdatetime-calendar__navigation * {\n box-sizing: border-box;\n}\n\n.vdatetime-calendar__navigation {\n position: relative;\n margin: 15px 0;\n padding: 0 30px;\n width: 100%;\n}\n\n.vdatetime-calendar__navigation--previous,\n.vdatetime-calendar__navigation--next {\n position: absolute;\n top: 0;\n padding: 0 5px;\n width: 18px;\n cursor: pointer\n}\n\n.vdatetime-calendar__navigation--previous svg, .vdatetime-calendar__navigation--next svg {\n width: 8px;\n height: 13px;\n}\n\n.vdatetime-calendar__navigation--previous svg path, .vdatetime-calendar__navigation--next svg path {\n transition: stroke .3s;\n}\n\n.vdatetime-calendar__navigation--previous {\n left: 25px;\n}\n\n.vdatetime-calendar__navigation--next {\n right: 25px;\n -webkit-transform: scaleX(-1);\n transform: scaleX(-1);\n}\n\n.vdatetime-calendar__current--month {\n text-align: center;\n text-transform: capitalize;\n}\n\n.vdatetime-calendar__month {\n padding: 0 20px;\n transition: height .2s;\n}\n\n.vdatetime-calendar__month__weekday,\n.vdatetime-calendar__month__day {\n display: inline-block;\n width: 14.28571%;\n line-height: 36px;\n text-align: center;\n font-size: 15px;\n font-weight: 300;\n cursor: pointer\n}\n\n.vdatetime-calendar__month__weekday > span, .vdatetime-calendar__month__day > span {\n display: block;\n width: 100%;\n position: relative;\n height: 0;\n padding: 0 0 100%;\n overflow: hidden;\n}\n\n.vdatetime-calendar__month__weekday > span > span, .vdatetime-calendar__month__day > span > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border: 0;\n border-radius: 50%;\n transition: background-color .3s, color .3s;\n}\n\n.vdatetime-calendar__month__weekday {\n font-weight: bold;\n}\n\n.vdatetime-calendar__month__day:hover > span > span {\n background: #eee;\n}\n\n.vdatetime-calendar__month__day--selected {\n}\n\n.vdatetime-calendar__month__day--selected > span > span,\n .vdatetime-calendar__month__day--selected:hover > span > span {\n color: #fff;\n background: #3f51b5;\n}\n\n.vdatetime-calendar__month__day--disabled {\n opacity: 0.4;\n cursor: default\n}\n\n.vdatetime-calendar__month__day--disabled:hover > span > span {\n color: inherit;\n background: transparent;\n}\n.vdatetime-time-picker__list::-webkit-scrollbar-thumb {\n background: #ccc\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker__list::-webkit-scrollbar-track {\n background: #efefef\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker * {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker::after {\n content: \'\';\n display: table;\n clear: both\n}\n\n.vdatetime-time-picker__list {\n float: left;\n width: 50%;\n height: 305px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch\n}\n\n.vdatetime-time-picker__list::-webkit-scrollbar {\n width: 3px\n}\n\n.vdatetime-time-picker__with-suffix .vdatetime-time-picker__list {\n width: 33.3%;\n}\n\n.vdatetime-time-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n transition: font-size .3s;\n}\n\n.vdatetime-time-picker__item:hover {\n font-size: 32px;\n}\n\n.vdatetime-time-picker__item--selected {\n color: #3f51b5;\n font-size: 32px;\n}\n\n.vdatetime-time-picker__item--disabled {\n opacity: 0.4;\n cursor: default;\n font-size: 20px !important;\n}\n.vdatetime-year-picker__list::-webkit-scrollbar-thumb {\n background: #ccc\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker__list::-webkit-scrollbar-track {\n background: #efefef\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker * {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker::after {\n content: \'\';\n display: table;\n clear: both\n}\n\n.vdatetime-year-picker__list {\n float: left;\n width: 100%;\n height: 305px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch\n}\n\n.vdatetime-year-picker__list::-webkit-scrollbar {\n width: 3px\n}\n\n.vdatetime-year-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n transition: font-size .3s;\n}\n\n.vdatetime-year-picker__item:hover {\n font-size: 32px;\n}\n\n.vdatetime-year-picker__item--selected {\n color: #3f51b5;\n font-size: 32px;\n}\n\n.vdatetime-year-picker__item--disabled {\n opacity: 0.4;\n cursor: default\n}\n\n.vdatetime-year-picker__item--disabled:hover {\n color: inherit;\n background: transparent\n}\n.vdatetime-month-picker__list::-webkit-scrollbar-thumb {\n background: #ccc\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker__list::-webkit-scrollbar-track {\n background: #efefef\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker * {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker::after {\n content: \'\';\n display: table;\n clear: both\n}\n\n.vdatetime-month-picker__list {\n float: left;\n width: 100%;\n height: 305px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch\n}\n\n.vdatetime-month-picker__list::-webkit-scrollbar {\n width: 3px\n}\n\n.vdatetime-month-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n transition: font-size .3s;\n}\n\n.vdatetime-month-picker__item:hover {\n font-size: 32px;\n}\n\n.vdatetime-month-picker__item--selected {\n color: #3f51b5;\n font-size: 32px;\n}\n\n.vdatetime-month-picker__item--disabled {\n opacity: 0.4;\n cursor: default\n}\n\n.vdatetime-month-picker__item--disabled:hover {\n color: inherit;\n background: transparent\n}\n',""]),t.exports=e},,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r),o=n(46);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(t,e){var n=e.split(".").slice(-1)[0];if(t[n])throw new Error("The key `".concat(n,"` is already in use."));return t[n]=e,t}),{})}function c(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r',width:24,height:24},g=n(106),b=n.n(g),_={body:'',width:24,height:24},y=n(107),w=n.n(y),x=n(108),k=n.n(x),C={body:'',width:32,height:32},M={body:'',width:24,height:24},S={body:'',width:24,height:24},T=n(109),E=n.n(T),j={body:'',width:24,height:24},O={body:'',width:16,height:16},I=n(110),L=n.n(I),D=n(111),N=n.n(D),$={body:'',width:24,height:24},A={body:'',width:24,height:24},R={body:'',width:24,height:24},P={body:'',width:24,height:24},q={body:'',width:24,height:24},z=n(112),F=n.n(z),U=n(113),B=n.n(U),V={body:'',width:32,height:32},H=n(114),W=n.n(H),G=n(115),Y=n.n(G),K={body:'',width:24,height:24},Z={data:()=>({icons:{arrowUp:v,bugIcon:b.a,bxBriefcase:_,cardChecklist:w.a,clipboardIcon:k.a,documentPdf:C,documentText:M,folderIcon:S,groupPresentation:E.a,imageIcon:j,infoCircle:O,linkIcon:L.a,linkIcon2:N.a,linkOut:$,mailIcon:A,microsoftExcel:R,microsoftPowerpoint:P,microsoftWord:q,noteAdd:F.a,objectStorage:B.a,passwordIcon:V,userIcon:W.a,usersIcon:Y.a,xCircle:K}})};const X=n(3);function J(t,e,n,r,i,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}var Q=J({name:"BugsModule",props:["destination","locationId"],mixins:[h,Z],data:()=>({bugList:[]}),methods:{addNewBug:function(){new f.a(document.getElementById("addBugModal")).show()},appendBugList:function(t){this.bugList.push(t[0].fields)},getBugHyperLink:function(t){return"Bugzilla"==t.bug_client__list_of_bug_client__bug_client_name?`${t.bug_client__bug_client_url}/show_bug.cgi?id=${t.bug_code}`:"javascript:void(0)"},getBugList:function(){"requirement_item"!==this.destination&&X.post(`/object_data/${this.destination}/${this.locationId}/bug_list/`).then(t=>{this.bugList=[],t.data.forEach(t=>{this.bugList.push(t)})}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.getBugList()}},m,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Bug Description")]),this._v(" "),e("td",[this._v("Status")])])])}],!1,null,"dee4f3f4",null);Q.options.__file="src/js/components/modules/sub_modules/BugsModule.vue";var tt=Q.exports,et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Customers")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Below are a list of customers who are stakeholders to this "+t._s(t.destination)+".\n ")]),t._v(" "),0==t.customerResults.length?n("div",[t._m(0)]):n("div",[n("customers-list-module",{attrs:{"customer-results":t.customerResults}})],1),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addNewCustomer}},[t._v("\n Add Customer\n ")])])]),t._v(" "),n("add-customer-wizard",{attrs:{"location-id":t.locationId,destination:t.destination,"exclude-customers":t.customerResults},on:{update_customer_results:function(e){return t.updateCustomerResults(e)}}})],1)};et._withStripped=!0;const nt=n(3);var rt=J({name:"CustomersModule",props:["destination","locationId"],mixins:[h,Z],data:()=>({customerResults:[]}),methods:{addNewCustomer:function(){new f.a(document.getElementById("addCustomerModal")).show()},loadCustomerResults:function(){nt.post(`/object_data/${this.destination}/${this.locationId}/customer_list/`).then(t=>{this.customerResults=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateCustomerResults:function(t){this.customerResults=t}},mounted(){this.loadCustomerResults()}},et,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"customers-module-spacer"},[e("div",{staticClass:"alert alert-dark"},[this._v("\n Sorry - there are no customers. Please add them by clicking on the button below\n ")])])}],!1,null,"fc846c14",null);rt.options.__file="src/js/components/modules/sub_modules/CustomersModule.vue";var it=rt.exports,ot=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.bxBriefcase}}),t._v(" Documents")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following is a folder structure of all documents uploaded to this "+t._s(t.destination)+"\n ")]),t._v(" "),t.documentList.length+t.folderList.length==0?n("div",{staticClass:"module-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no documents or folders uploaded.")])]):n("div",{staticClass:"document-widget"},[null!=this.currentFolder?n("div",{staticClass:"document-child",on:{click:function(e){return t.goToParentDirectory()}}},[n("IconifyIcon",{attrs:{icon:t.icons.arrowUp,width:"80px",height:"80px"}}),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Go to Parent Directory...\n ")])],1):t._e(),t._v(" "),t._l(t.folderFilteredList,(function(e){return n("div",{key:e.pk,staticClass:"document-child",on:{click:function(n){return t.updateCurrentFolder(e.pk)}}},[n("IconifyIcon",{attrs:{icon:t.icons.folderIcon,width:"80px",height:"80px"}}),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n "+t._s(t.shortName(e.fields.folder_description))+"\n ")])],1)})),t._v(" "),t._l(t.documentFilteredList,(function(e){return n("div",{key:e.document_key_id,staticClass:"document-child"},[n("a",{attrs:{href:"/private/"+e.document_key_id+"/",rel:"noopener noreferrer",target:"_blank"}},[n("IconifyIcon",{attrs:{icon:t.getIcon(e),width:"80px",height:"80px"}}),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n "+t._s(t.shortName(e.document_key__document_description))+"\n ")])],1)])}))],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"btn-group save-changes"},[n("button",{staticClass:"btn btn-primary dropdown-toggle",attrs:{type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"}},[t._v("\n New Document/File\n ")]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"javascript:void(0)"},on:{click:t.uploadDocument}},[t._v("\n Upload Document\n ")])]),t._v(" "),n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"javascript:void(0)"},on:{click:t.addLink}},[t._v("\n Add Link\n ")])]),t._v(" "),n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"javascript:void(0)"},on:{click:t.addFolder}},[t._v("\n Add Folder\n ")])])])]),t._v(" "),n("add-folder-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"current-folder":t.currentFolder,"existing-folders":t.folderFilteredList},on:{update_folder_list:function(e){return t.updateFolderList(e)}}}),t._v(" "),n("add-link-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"current-folder":t.currentFolder,"exclude-documents":t.documentFilteredList},on:{update_document_list:function(e){return t.updateDocumentList(e)}}}),t._v(" "),n("upload-document-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"current-folder":t.currentFolder,"exclude-documents":t.documentFilteredList},on:{update_document_list:function(e){return t.updateDocumentList(e)}}})],1)};ot._withStripped=!0;const at=n(3);var st=J({name:"DocumentsModule",props:["destination","locationId"],data:()=>({currentFolder:null,documentList:[],documentFilteredList:[],folderList:[],folderFilteredList:[]}),mixins:[Z],methods:{addFolder:function(){new f.a(document.getElementById("addFolderModal")).show()},addLink:function(){new f.a(document.getElementById("addLinkModal")).show()},getDocumentList:function(){at.post(`/documentation/${this.destination}/${this.locationId}/list/files/`).then(t=>{this.documentList=t.data,this.updateDocumentFilteredList()})},getFolderList:function(){at.post(`/documentation/${this.destination}/${this.locationId}/list/folders/`).then(t=>{this.folderList=t.data,this.updateFolderFilteredList()})},getIcon:function(t){if(""!=t.document_key__document_url_location&&null!==t.document_key__document_url_location)return this.icons.linkOut;var e=t.document_key__document.split(".");switch(e[e.length-1]){case"jpg":case"png":case"bmp":return this.icons.imageIcon;case"doc":case"docx":return this.icons.microsoftWord;case"xls":case"xlsx":return this.icons.microsoftExcel;case"ppt":case"pptx":return this.icons.microsoftPowerpoint;case"pdf":return this.icons.documentPdf;default:return this.icons.documentText}},goToParentDirectory:function(){var t=this.folderList.filter(t=>t.pk==this.currentFolder)[0];this.updateCurrentFolder(t.fields.parent_folder)},shortName:function(t){return t.length<=50?t:t.substring(0,47)+"..."},updateCurrentFolder:function(t){this.currentFolder=t,this.updateDocumentFilteredList(),this.updateFolderFilteredList()},updateDocumentList:function(t){this.documentList.push(t[0]),this.updateDocumentFilteredList()},updateDocumentFilteredList:function(){this.documentFilteredList=this.documentList.filter(t=>t.folder==this.currentFolder)},updateFolderList:function(t){this.folderList.push(t[0]),this.updateFolderFilteredList()},updateFolderFilteredList:function(){this.folderFilteredList=this.folderList.filter(t=>t.fields.parent_folder==this.currentFolder)},uploadDocument:function(){new f.a(document.getElementById("uploadDocumentModal")).show()}},mounted(){this.getDocumentList(),this.getFolderList()}},ot,[],!1,null,"3a4a4099",null);st.options.__file="src/js/components/modules/sub_modules/DocumentsModule.vue";var lt=st.exports,ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Stakeholder Organisation\n "),!t.$v.stakeholderModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please search for a Stakeholder.")]):t._e()]),t._v(" "),n("v-select",{staticClass:"get-stakeholders",attrs:{options:t.stakeholderFixList,label:"organisation_name"},on:{search:t.fetchOptions},model:{value:t.stakeholderModel,callback:function(e){t.stakeholderModel=e},expression:"stakeholderModel"}})],1)])])};ct._withStripped=!0;var dt=n(1),ut={methods:{searchTrigger:function(t){""!=t.searchTimeout&&clearTimeout(t.searchTimeout),void 0===t.search?this.searchUndefined(t):this.searchDefined(t)},searchDefined:function(t){t.search.length>=3&&(t.searchTimeout=setTimeout(t.return_function,500,t.search,t.loading))},searchUndefined:function(t){t.searchTimeout=setTimeout(t.return_function,500)}}};const pt=n(3);var mt=J({name:"GetStakeholders",components:{axios:pt,bootstrap:f.default},mixins:[ut],props:["isDirty"],data:()=>({searchTimeout:"",stakeholderFixList:[],stakeholderModel:""}),validations:{stakeholderModel:{required:dt.required}},methods:{fetchOptions:function(t,e){this.searchTrigger({return_function:this.getOrganisationData,searchTimeout:this.searchTimeout,search:t,loading:e})},getOrganisationData:function(t,e){const n=new FormData;n.set("search",t),pt.post("/search/organisation/data/",n).then(t=>{this.stakeholderFixList=[],t.data.forEach(t=>{var e={value:t.pk,organisation_name:t.fields.organisation_name,organisation_website:t.fields.organisation_website,organisation_email:t.fields.organisation_email,organisation_profile_picture:t.fields.organisation_profile_picture};this.stakeholderFixList.push(e)})}).catch((function(t){document.getElementById("errorModalContent").innerHTML="Search Organisation Issue:
"+t,new f.default.Modal(document.getElementById("errorModal"),{keyboard:!1}).show(),document.getElementById("loader").style.display="none"}))}},watch:{stakeholderModel:function(){this.$emit("update_stakeholder_model",this.stakeholderModel)}},mounted(){this.getOrganisationData("","")}},ct,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Stakeholder Organisation")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please search for your stakeholder's organisation in the dropdown box. Once found, please select.\n ")])])}],!1,null,"3254ff31",null);mt.options.__file="src/js/components/organisations/GetStakeholders.vue";var ft=mt.exports,ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("h2",[t._v("Group Permissions")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Add or remove groups from this "+t._s(t.destination)+". Adding a group will allow users\n from that group to access this "+t._s(t.destination)+".\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n If you do not add one of your own group(s), you will only get readonly access.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Group List\n "),!t.$v.groupModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please select at least one group.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.groupFixResults,label:"group",multiple:""},model:{value:t.groupModel,callback:function(e){t.groupModel=e},expression:"groupModel"}})],1)])};ht._withStripped=!0;var vt=J({name:"GroupPermissions",components:{},props:{destination:String,groupResults:Array,isDirty:Boolean,userGroupResults:{type:Array,default:()=>[]}},watch:{groupModel:function(){this.$emit("update_group_model",this.groupModel)}},data:()=>({groupFixResults:[],groupModel:[]}),validations:{groupModel:{required:dt.required}},mounted(){this.groupResults.forEach(t=>{var e={value:t.pk,group:t.fields.group_name};this.groupFixResults.push(e)}),this.groupModel=this.userGroupResults.map(t=>({group:t.group__group_name,value:t.group_id}))}},ht,[],!1,null,"2d989908",null);vt.options.__file="src/js/components/permissions/GroupPermissions.vue";var gt=vt.exports,bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.groupPresentation}}),t._v(" Groups")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following list are all the Groups connected to this "+t._s(t.destination)+". Users will have to be included\n in these groups to be added to this "+t._s(t.destination)+"\n ")]),t._v(" "),n("table",{staticClass:"table group-and-user-table"},[t._m(0),t._v(" "),n("tbody",t._l(t.groupList,(function(e){return n("tr",[n("td",[t._v(t._s(e.fields.group_name))])])})),0)]),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewGroup}},[t._v("Add Group to "+t._s(t.destination))])])]),t._v(" "),n("hr"),t._v(" "),n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Users")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are a list of users who are connected to this "+t._s(t.destination)+". Please note - users have to be\n a part of the groups list above.\n ")]),t._v(" "),0==t.userList.length?n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - there are no current users active.\n ")]):n("div",{staticClass:"user-card-layouts"},t._l(t.userList,(function(e){return n("div",{staticClass:"user-card"},[n("img",{staticClass:"default-user-profile",attrs:{src:"/static/NearBeach/images/placeholder/people_tax.svg",alt:"default profile"}}),t._v(" "),n("div",{staticClass:"user-details"},[n("strong",[t._v(t._s(e.first_name)+" "+t._s(e.last_name))]),n("br"),t._v("\n "+t._s(e.username)+"\n "),n("div",{staticClass:"spacer"}),t._v("\n "+t._s(e.email)+"\n ")])])})),0),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewUser}},[t._v("Add User to "+t._s(t.destination))])])]),t._v(" "),n("add-group-wizard",{attrs:{destination:t.destination,"location-id":t.locationId},on:{update_group_list:function(e){return t.updateGroupList(e)}}}),t._v(" "),n("add-user-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"refresh-user-list":t.refreshUserListBoolean},on:{update_user_list:function(e){return t.updateUserList(e)},reset_refresh_user_list:function(e){return t.resetRefreshUserList(e)}}})],1)};bt._withStripped=!0;const _t=n(3);var yt=J({name:"GroupsAndUsersModule",props:["destination","locationId"],mixins:[h,Z],data:()=>({groupList:[],refreshUserListBoolean:!1,userList:[]}),methods:{addNewGroup:function(){new f.a(document.getElementById("addGroupModal")).show()},addNewUser:function(){new f.a(document.getElementById("addUserModal")).show()},getGroupList:function(){_t.post(`/object_data/${this.destination}/${this.locationId}/group_list/`).then(t=>{this.groupList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},getUserList:function(){_t.post(`/object_data/${this.destination}/${this.locationId}/user_list/`).then(t=>{this.userList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},resetRefreshUserList:function(){this.refreshUserListBoolean=!1},updateGroupList:function(t){this.groupList=t,this.refreshUserListBoolean=!0},updateUserList:function(t){this.userList=t}},mounted(){this.getGroupList(),this.getUserList()}},bt,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Group Name")])])])}],!1,null,"0f5e1aac",null);yt.options.__file="src/js/components/modules/sub_modules/GroupsAndUsersModule.vue";var wt=yt.exports,xt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("ul",{staticClass:"nav nav-tabs",attrs:{id:"misc_module_tabs",role:"tablist"}},["requirement_item"!=t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link active",attrs:{id:"group-and-user-tab","data-bs-toggle":"tab","data-bs-target":"#group-and-users",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Groups and Users")])]):t._e(),t._v(" "),"requirement"==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"requirement-item-tab","data-bs-toggle":"tab","data-bs-target":"#requirement-items",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Requirement Item")])]):t._e(),t._v(" "),"requirement"==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"requirement-link-tab","data-bs-toggle":"tab","data-bs-target":"#requirement-links",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Requirement Links")])]):t._e(),t._v(" "),"requirement_item"==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"requirement-item-link-tab","data-bs-toggle":"tab","data-bs-target":"#requirement-item-links",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Links")])]):t._e(),t._v(" "),t._m(0),t._v(" "),"requirement"!==t.destination&&"requirement_item"!==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"object-link-tabs","data-bs-toggle":"tab","data-bs-target":"#object-links",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Linked Objects")])]):t._e(),t._v(" "),"requirement_item"!==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"customer-tab","data-bs-toggle":"tab","data-bs-target":"#customers",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Customers")])]):t._e(),t._v(" "),["project","task","requirement"].includes(t.destination)?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"bug-tab","data-bs-toggle":"tab","data-bs-target":"#bugs",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Bugs")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t._m(2)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"misc_module_content"}},["requirement_item"!==t.destination?n("div",{staticClass:"tab-pane fade show active",attrs:{id:"group-and-users",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("groups-and-users-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):t._e(),t._v(" "),"requirement"==t.destination?n("div",{staticClass:"tab-pane fade",attrs:{id:"requirement-items",role:"tabpanel","aria-labelledby":"home-tab"}},[n("requirement-items-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):t._e(),t._v(" "),"requirement"==t.destination?n("div",{staticClass:"tab-pane fade",attrs:{id:"requirement-links",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("requirement-links-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):"requirement_item"==t.destination?n("div",{staticClass:"tab-pane fade",attrs:{id:"requirement-item-links",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("requirement-item-links-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):t._e(),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"documents",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("documents-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"object-links",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("object-links",{attrs:{destination:t.destination,"location-id":t.locationId}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"customers",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("customers-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"bugs",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("bugs-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"misc",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("misc-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"notes",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("notes-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1)])])])};xt._withStripped=!0;var kt=J({name:"ParentModules",props:{destination:String,locationId:Number,rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"}},data:()=>({}),methods:{},mounted(){this.$store.commit({type:"updateDestination",destination:this.destination,locationId:this.locationId}),this.$store.commit({type:"updateUrl",rootUrl:this.rootUrl,staticUrl:this.staticUrl})}},xt,[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"documents-tab","data-bs-toggle":"tab","data-bs-target":"#documents",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[this._v("Documents")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"misc-tab","data-bs-toggle":"tab","data-bs-target":"#misc",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[this._v("Misc")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"notes-tab","data-bs-toggle":"tab","data-bs-target":"#notes",type:"button",role:"tab","aria-controls":"home","aria-select":"false"}},[this._v("Notes")])])}],!1,null,"d819f14e",null);kt.options.__file="src/js/components/modules/ParentModules.vue";var Ct=kt.exports,Mt=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("list-tags-module",{attrs:{destination:this.destination,"location-id":this.locationId}})],1)};Mt._withStripped=!0;const St=n(3);var Tt=J({name:"MiscModule",components:{},props:["destination","locationId"],mixins:[h,Z],data:()=>({noteHistoryResults:[]}),methods:{createNewNote:function(){new f.a(document.getElementById("newNoteModal")).show()},getNoteHistoryResults:function(){St.post(`/object_data/${this.destination}/${this.locationId}/note_list/`).then(t=>{this.noteHistoryResults=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateNoteHistoryResults:function(t){this.noteHistoryResults.push(t[0])}},mounted(){this.getNoteHistoryResults()}},Mt,[],!1,null,"24f97633",null);Tt.options.__file="src/js/components/modules/sub_modules/MiscModule.vue";var Et=Tt.exports,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addBugModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-xl"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Add Bugs Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Adding Bugs")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Select which bug client you want to search data from. Then use keywords or bug id to\n search for the required bugs. Once the search results appear, select those appropriate\n bugs that you want to link to the "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Bug Client")]),t._v(" "),n("v-select",{attrs:{options:t.bugClientList,label:"bug_client_name",option:"bug_client_id"},model:{value:t.bugClientModel,callback:function(e){t.bugClientModel=e},expression:"bugClientModel"}})],1),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search Keywords")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control",attrs:{type:"text",disabled:""==t.bugClientModel,maxlength:"50"},domProps:{value:t.searchModel},on:{keydown:t.startSearchTimer,input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),t.searchOn?n("div",{staticClass:"no-search"},[n("strong",[t._v("Currently Searching for Bugs")]),n("br"),t._v(" "),n("img",{attrs:{src:"/static/NearBeach/images/placeholder/online_connection.svg",alt:"Placeholder Search Image"}})]):0==t.bugResults.length?n("div",{staticClass:"no-search"},[n("strong",[t._v("No Search Results Sorry")]),n("br"),t._v(" "),n("img",{attrs:{src:"/static/NearBeach/images/placeholder/road_to_knowledge.svg",alt:"Placeholder Search Image"}})]):n("div",{attrs:{id:"bug_results_div"}},[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.bugResults,(function(e){return n("tr",[n("td",{attrs:{id:"bug_no_"+e.id}},[n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.submitBug(e.id)}}},[t._v("\n Add Bug\n ")])]),t._v(" "),n("td",[t._v("\n "+t._s(e.summary)+"\n "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Assigned to: "+t._s(e.assigned_to))]),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Bug No. "+t._s(e.id)+" | Priority. "+t._s(e.priority))])]),t._v(" "),n("td",[t._v(t._s(e.status))])])})),0)])])])])]),t._v(" "),t._m(2)])])])};jt._withStripped=!0;const Ot=n(3);var It=J({name:"AddBugWizard",props:["destination","locationId"],mixins:[h,Z],data:()=>({bugClientModel:"",bugClientList:[],bugResults:[],searchModel:"",searchOn:!1,searchTimer:""}),methods:{loadBugClientList:function(){Ot.post("/object_data/bug_client_list/").then(t=>{this.bugClientList=[],t.data.forEach(t=>{this.bugClientList.push({bug_client_id:t.pk,bug_client_name:t.fields.bug_client_name})})})},startSearchTimer:function(){""!=this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>{this.startSearch()},700)},startSearch:function(){if(""===this.searchModel)return;this.searchOn=!0;const t=new FormData;t.set("bug_client_id",this.bugClientModel.bug_client_id),t.set("search",this.searchModel),Ot.post(`/object_data/${this.destination}/${this.locationId}/query_bug_client/`,t).then(t=>{this.bugResults=t.data,this.searchOn=!1}).catch(t=>{this.showErrorModal(t,this.destination)})},submitBug:function(t){var e=document.getElementById("bug_no_"+t);e.innerHTML="Adding Bug";var n=this.bugResults.filter(e=>e.id==t);const r=new FormData;r.set("bug_client",this.bugClientModel.bug_client_id),r.set("bug_id",t),r.set("bug_description",n[0].summary),r.set("bug_status",n[0].status),Ot.post(`/object_data/${this.destination}/${this.locationId}/add_bug/`,r).then(t=>{this.$emit("append_bug_list",t.data),e.innerHTML="Done"}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.loadBugClientList()}},jt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addBugsCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td"),this._v(" "),e("td",[this._v("Bug Description")]),this._v(" "),e("td",[this._v("Bug Status")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[this._v("Close")])])}],!1,null,"12f8b90e",null);It.options.__file="src/js/components/modules/wizards/AddBugWizard.vue";var Lt=It.exports,Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addCustomerModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Add Customers Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t.customerFixList.length>0?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Select Customer")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Search for a customer who has not been added to this "+t._s(t.destination)+". If the search is\n blank there are either no customers that match that search, or all customer have already\n been added to the "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("v-select",{attrs:{options:t.customerFixList,label:"customerName"},model:{value:t.customerModel,callback:function(e){t.customerModel=e},expression:"customerModel"}})],1)]):n("div",{staticClass:"row"},[t._m(1),t._v(" "),t._m(2)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",diabled:""==t.customerModel},on:{click:t.addCustomer}},[t._v("\n Save changes\n ")])])])])])};Dt._withStripped=!0;const Nt=n(3);var $t=J({name:"AddCustomerWizard",props:["destination","locationId","excludeCustomers"],mixins:[h,Z],data:()=>({customerModel:"",customerList:[],customerFixList:[]}),methods:{addCustomer:function(){const t=new FormData;t.set("customer",this.customerModel.value),Nt.post(`/object_data/${this.destination}/${this.locationId}/add_customer/`,t).then(t=>{this.$emit("update_customer_results",t.data),this.customerModel="",document.getElementById("addCustomerCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})},getCustomerList:function(){Nt.post(`/object_data/${this.destination}/${this.locationId}/customer_list_all/`).then(t=>{this.customerList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateCustomerFixList:function(){if(0!=this.customerList.length){var t=[];this.excludeCustomers.forEach(e=>{t.push(e.pk)}),this.customerFixList=[],this.customerList.forEach(e=>{t.includes(e.pk)||this.customerFixList.push({value:e.pk,customerName:`${e.fields.customer_first_name} ${e.fields.customer_last_name}`})})}}},mounted(){this.getCustomerList()},watch:{excludeCustomers:function(){this.updateCustomerFixList()}}},Dt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addCustomerCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6"},[e("strong",[this._v("Sorry - no results")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n This could be because\n "),e("ul",[e("li",[this._v("There are no more customers left to add")]),this._v(" "),e("li",[this._v("There are no customers for this organisation")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6 no-search"},[e("img",{attrs:{src:"/static/NearBeach/images/placeholder/questions.svg",alt:"Sorry - there are no results"}})])}],!1,null,"70989242",null);$t.options.__file="src/js/components/modules/wizards/AddCustomerWizard.vue";var At=$t.exports,Rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addFolderModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add Folder Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"folder_description"}},[t._v("Folder Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.folderDescriptionModel,expression:"folderDescriptionModel"}],staticClass:"form-control",attrs:{type:"text",id:"folder_description",maxlength:"50"},domProps:{value:t.folderDescriptionModel},on:{input:function(e){e.target.composing||(t.folderDescriptionModel=e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableAddFolderButton},on:{click:t.addFolder}},[t._v("\n Add Folder\n ")])])])])])};Rt._withStripped=!0;const Pt=n(3);var qt=J({name:"AddFolderWizard",props:["currentFolder","destination","existingFolders","locationId"],mixins:[h,Z],data:()=>({disableAddFolderButton:!0,folderDescriptionModel:""}),methods:{addFolder:function(){const t=new FormData;t.set("folder_description",this.folderDescriptionModel),null!==this.currentFolder&&""!=this.currentFolder&&t.set("parent_folder",this.currentFolder),Pt.post(`/documentation/${this.destination}/${this.locationId}/add_folder/`,t).then(t=>{this.$emit("update_folder_list",t.data),this.folderDescriptionModel="",document.getElementById("addFolderCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}},updated(){var t=this.existingFolders.filter(t=>t.fields.folder_description==this.folderDescriptionModel);this.disableAddFolderButton=t.length>0||""==this.folderDescriptionModel}},Rt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addFolderCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Creating a folder")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Give the folder an appropriate name. When done, click on the "Save" button. It will be\n added to the current folder.\n ')])])}],!1,null,"0b928222",null);qt.options.__file="src/js/components/modules/wizards/AddFolderWizard.vue";var zt=qt.exports,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addGroupModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.groupPresentation}}),t._v(" Add Group Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t.groupFixList.length>0?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Add Groups")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the following multiple select to select which groups you want to add to this\n "+t._s(t.destination)+".\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please note: A user's group has to be added to the "+t._s(t.destination)+" before the user\n can be added.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("v-select",{attrs:{options:t.groupFixList,multiple:""},model:{value:t.groupModel,callback:function(e){t.groupModel=e},expression:"groupModel"}})],1)]):n("div",{staticClass:"row"},[t._m(1),t._v(" "),t._m(2)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.groupModel.length},on:{click:t.addGroup}},[t._v("Add Group(s)")])])])])])};Ft._withStripped=!0;const Ut=n(3);var Bt=J({name:"AddGroupWizard",props:["destination","locationId"],mixins:[h,Z],data:()=>({groupFixList:[],groupModel:[]}),methods:{addGroup:function(){const t=new FormData;this.groupModel.forEach(e=>{t.append("group_list",e.value)}),Ut.post(`/object_data/${this.destination}/${this.locationId}/add_group/`,t).then(t=>{this.$emit("update_group_list",t.data),document.getElementById("addGroupCloseButton").click(),this.getGroupList()}).catch(t=>{this.showErrorModal(t,this.destination)})},getGroupList:function(){Ut.post(`/object_data/${this.destination}/${this.locationId}/group_list_all/`).then(t=>{this.groupFixList=[],t.data.forEach(t=>{var e={value:t.pk,label:t.fields.group_name};this.groupFixList.push(e)})}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.getGroupList()}},Ft,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addGroupCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6"},[e("strong",[this._v("Sorry - no results")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n This could be because\n "),e("ul",[e("li",[this._v("There are no more groups left to add")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6 no-search"},[e("img",{attrs:{src:"/static/NearBeach/images/placeholder/questions.svg",alt:"Sorry - there are no results"}})])}],!1,null,"3c5e7944",null);Bt.options.__file="src/js/components/modules/wizards/AddGroupWizard.vue";var Vt=Bt.exports,Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addLinkModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"document_url_location"}},[t._v("\n Document URL\n "),!t.$v.documentUrlLocationModel.required&&t.$v.documentUrlLocationModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a URL.")]):t._e(),t._v(" "),!t.$v.documentUrlLocationModel.url&&t.$v.documentUrlLocationModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a proper URL.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.documentUrlLocationModel,expression:"documentUrlLocationModel"}],staticClass:"form-control",attrs:{id:"document_url_location"},domProps:{value:t.documentUrlLocationModel},on:{input:function(e){e.target.composing||(t.documentUrlLocationModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"document_description"}},[t._v("\n Document Description\n "),!t.$v.documentDescriptionModel.required&&t.$v.documentDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a description of the link.")]):t._e(),t._v(" "),t.duplicateDescription?n("span",{staticClass:"error"},[t._v(" Sorry - but this is a duplicated description.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.documentDescriptionModel,expression:"documentDescriptionModel"}],staticClass:"form-control",attrs:{id:"document_description",maxlength:"50"},domProps:{value:t.documentDescriptionModel},on:{input:function(e){e.target.composing||(t.documentDescriptionModel=e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableAddButton},on:{click:t.addLink}},[t._v("\n Add Link\n ")])])])])])};Ht._withStripped=!0;const Wt=n(3);var Gt=J({name:"AddLinkWizard",props:["currentFolder","destination","excludeDocuments","locationId"],mixins:[h,Z],data:()=>({linkModel:"",disableAddButton:!0,documentDescriptionModel:"",documentUrlLocationModel:"",duplicateDescription:!1}),validations:{documentDescriptionModel:{required:dt.required},documentUrlLocationModel:{required:dt.required,url:dt.url}},methods:{addLink:function(){const t=new FormData;t.set("document_description",this.documentDescriptionModel),t.set("document_url_location",this.documentUrlLocationModel),null!==this.currentFolder&&""!=this.currentFolder&&t.set("parent_folder",this.currentFolder),Wt.post(`/documentation/${this.destination}/${this.locationId}/add_link/`,t).then(t=>{this.$emit("update_document_list",t.data),this.documentDescriptionModel="",this.documentUrlLocationModel="",document.getElementById("addLinkCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}},updated(){var t=this.excludeDocuments.filter(t=>t.document_key__document_description==this.documentDescriptionModel);this.duplicateDescription=t.length>0,this.$v.$touch(),this.disableAddButton=this.$v.$invalid||t.length>0}},Ht,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addLinkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Add Link")]),this._v(" "),e("p",{staticClass:"text-instruction"},[this._v("\n Add hyperlinks to other documents and sources located in on the internet/cloud.\n ")])])}],!1,null,"0cea12fb",null);Gt.options.__file="src/js/components/modules/wizards/AddLinkWizard.vue";var Yt=Gt.exports,Kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addUserModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add User Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t.userFixList.length>0?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Add Users")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the following multiple select to select which users you want to add to this\n "+t._s(t.destination)+".\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please note: A user's group has to be added to the "+t._s(t.destination)+" before the user\n can be added.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("v-select",{attrs:{options:t.userFixList,multiple:""},model:{value:t.userModel,callback:function(e){t.userModel=e},expression:"userModel"}})],1)]):n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("strong",[t._v("Sorry - no results")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n This could be because\n "),n("ul",[n("li",[t._v("There are no more users left to add")]),t._v(" "),n("li",[t._v("\n The user you are after is in a group not current added to this "+t._s(t.destination)+"\n ")])])])]),t._v(" "),t._m(1)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.userModel.length},on:{click:t.addUser}},[t._v("Add User(s)")])])])])])};Kt._withStripped=!0;const Zt=n(3);var Xt=J({name:"AddUserWizard",props:["destination","locationId","refreshUserList"],mixins:[h,Z],data:()=>({userFixList:[],userModel:[]}),methods:{addUser:function(){const t=new FormData;this.userModel.forEach(e=>{t.append("user_list",e.value)}),Zt.post(`/object_data/${this.destination}/${this.locationId}/add_user/`,t).then(t=>{this.$emit("update_user_list",t.data),document.getElementById("addUserCloseButton").click(),this.userModel=[],this.getUserList()}).catch(t=>{this.showErrorModal(t,this.destination)})},getUserList:function(){Zt.post(`/object_data/${this.destination}/${this.locationId}/user_list_all/`).then(t=>{this.userFixList=t.data.map(t=>({value:t.id,label:`${t.username}: ${t.first_name} ${t.last_name}`}))})}},watch:{refreshUserList:function(){this.refreshUserList&&this.getUserList(),this.$emit("reset_refresh_user_list")}},mounted(){this.getUserList()}},Kt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addUserCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6 no-search"},[e("img",{attrs:{src:"/static/NearBeach/images/placeholder/questions.svg",alt:"Sorry - there are no results"}})])}],!1,null,"1bd67d8c",null);Xt.options.__file="src/js/components/modules/wizards/AddUserWizard.vue";var Jt=Xt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Customer")]),t._v(" "),n("hr"),t._v(" "),n("new-customer-form",{attrs:{"organisation-name":t.organisationName,"title-list":t.titleList,"flag-validation-check":t.flagValidationCheck},on:{update_customer_data:function(e){return t.updateCustomerData(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group col-sm-8"},[n("label",[t._v("Organisation:")]),t._v(" "),n("v-select",{staticClass:"get-stakeholders",attrs:{options:t.organisationFixList,label:"organisation_name"},on:{search:t.fetchOptions},model:{value:t.organisationModel,callback:function(e){t.organisationModel=e},expression:"organisationModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewCustomer}},[t._v("Submit Customer")])])])],1)])};Qt._withStripped=!0;const te=n(3);var ee=J({name:"NewCustomer",props:{organisationName:String,rootUrl:{type:String,default:"/"},titleList:Array},mixins:[ut],data:()=>({customerEmailModel:"",customerFirstNameModel:"",customerLastNameModel:"",flagValidationCheck:!1,organisationFixList:[],organisationModel:{},titleModel:[]}),validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},titleModel:{required:dt.required}},methods:{fetchOptions:function(t,e){this.searchTrigger({return_function:this.getOrganisationData,searchTimeout:this.searchTimeout,search:t,loading:e})},getOrganisationData:function(t,e){const n=new FormData;n.set("search",t),te.post(this.rootUrl+"search/organisation/data/",n).then(t=>{this.organisationFixList=[],t.data.forEach(t=>{var e={value:t.pk,organisation_name:t.fields.organisation_name,organisation_website:t.fields.organisation_website,organisation_email:t.fields.organisation_email,organisation_profile_picture:t.fields.organisation_profile_picture};this.organisationFixList.push(e)});var e=this.organisationFixList.filter(t=>t.organisation_name==this.organisationName);e.length>0&&(this.organisationModel=e[0])}).catch((function(t){document.getElementById("errorModalContent").innerHTML="Search Organisation Issue:
"+t,new f.a(document.getElementById("errorModal"),{keyboard:!1}).show(),document.getElementById("loader").style.display="none"}))},submitNewCustomer:function(){if(this.flagValidationCheck=!0,setTimeout(()=>{this.flagValidationCheck=!1},100),this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();const t=new FormData;t.set("customer_title",this.titleModel.value),t.set("customer_first_name",this.customerFirstNameModel),t.set("customer_last_name",this.customerLastNameModel),t.set("customer_email",this.customerEmailModel),0!=Object.keys(this.organisationModel).length&&t.set("organisation",this.organisationModel.value),te.post(this.rootUrl+"new_customer/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{})},updateCustomerData:function(t){this[t.field]=t.value}},mounted(){this.getOrganisationData("","")}},Qt,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Customer Organisation")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n This field is optional. If this customer does not have any organisations attached, it will\n treat this customer as a freelancer.\n ")])])}],!1,null,"186767c8",null);ee.options.__file="src/js/components/customers/NewCustomer.vue";var ne=ee.exports,re=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Organisation")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_name"}},[t._v("\n Organisation Name:\n "),!t.$v.organisationNameModel.required&&t.$v.organisationNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationNameModel,expression:"organisationNameModel"}],staticClass:"form-control",attrs:{id:"id_organisation_name",name:"organisation_name",type:"text"},domProps:{value:t.organisationNameModel},on:{input:function(e){e.target.composing||(t.organisationNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"id_organisation_website"}},[t._v("\n Organisation Website:\n "),!t.$v.organisationWebsiteModel.required&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationWebsiteModel.url&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format at URL\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationWebsiteModel,expression:"organisationWebsiteModel"}],staticClass:"form-control",attrs:{id:"id_organisation_website",name:"organisation_website",type:"url"},domProps:{value:t.organisationWebsiteModel},on:{input:function(e){e.target.composing||(t.organisationWebsiteModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"id_organisation_email"}},[t._v("\n Organisation Email:\n "),!t.$v.organisationEmailModel.required&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationEmailModel.email&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format as Email\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationEmailModel,expression:"organisationEmailModel"}],staticClass:"form-control",attrs:{id:"id_organisation_email",name:"organisation_email",type:"email"},domProps:{value:t.organisationEmailModel},on:{input:function(e){e.target.composing||(t.organisationEmailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),0==t.duplicateOrganisations.length?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addOrganisation}},[t._v("\n Add Organisation\n ")])])]):t._e(),t._v(" "),t.duplicateOrganisations.length>0?n("h2",[t._v("\n Potential Duplication\n ")]):t._e(),t._v(" "),t.duplicateOrganisations.length>0?n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("list-organisations",{attrs:{"organisation-results":t.duplicateOrganisations,"root-url":t.rootUrl}})],1)]):t._e(),t._v(" "),t.duplicateOrganisations.length>0?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.uploadOrganisationData}},[t._v("\n Submit Organisation\n ")])])]):t._e()])])};re._withStripped=!0;var ie={methods:{closeLoadingModal:function(){var t=new f.a(document.getElementById("loadingModal"));document.getElementById("loadingModalContent").innerHTML="UPDATED SUCCESSFULLY",setTimeout(()=>{t.hide()},1e3)},showLoadingModal:function(t){new f.a(document.getElementById("loadingModal")).show(),document.getElementById("loadingModalContent").innerHTML=`Updating your ${t} details`}}};const oe=n(3);var ae=J({name:"NewOrganisation",props:{rootUrl:{type:String,default:"/"}},mixins:[h,ie],data:()=>({duplicateOrganisations:[],organisationNameModel:"",organisationWebsiteModel:"",organisationEmailModel:""}),watch:{organisationNameModel:function(){this.duplicateOrganisations=[]},organisationWebsiteModel:function(){this.duplicateOrganisations=[]},organisationEmailModel:function(){this.duplicateOrganisations=[]}},methods:{addOrganisation:function(){this.$v.$touch(),this.$v.$invalid?this.showValidationErrorModal():oe.post(this.rootUrl+"organisation_duplicates/",this.dataToSend()).then(t=>{0==t.data.length&&this.uploadOrganisationData(),this.duplicateOrganisations=t.data}).catch(t=>{this.showErrorModal(t,"organisation","")})},dataToSend:function(){const t=new FormData;return t.set("organisation_name",this.organisationNameModel),t.set("organisation_website",this.organisationWebsiteModel),t.set("organisation_email",this.organisationEmailModel),t},uploadOrganisationData:function(){oe.post("save/",this.dataToSend()).then(t=>{window.location.href=t.data}).catch(t=>{})}},validations:{organisationNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)},organisationWebsiteModel:{required:dt.required,url:dt.url},organisationEmailModel:{required:dt.required,email:dt.email}}},re,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out all the required fields. Please only use a generic email for the organisation\n email field. e.g. support@companyxyz.com\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please Read")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n The server has found potential duplications. Please review the following Organisations. If you\n would like to create the organisation, please scroll to the bottom of the page and hit "Submit\n Organisation". If the organisation you are looking for is already created. Click\n on the name and you will be taken to the Organisation\'s Information page.\n ')]),this._v(" "),e("strong",[this._v("Alternatively")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n You can also change the information above and resubmit.\n ")])])}],!1,null,"1cb0b048",null);ae.options.__file="src/js/components/organisations/NewOrganisation.vue";var se=ae.exports,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Requirement")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_requirement_title"}},[t._v("Requirement Title:\n "),!t.$v.requirementTitleModel.required&&t.$v.requirementTitleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementTitleModel,expression:"requirementTitleModel"}],staticClass:"form-control",attrs:{id:"id_requirement_title",name:"requirement_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementTitleModel},on:{input:function(e){e.target.composing||(t.requirementTitleModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Requirement Scope:\n "),!t.$v.requirementScopeModel.required&&t.$v.requirementScopeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]):t._e(),t._v(" "),t.$v.requirementScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.requirementScopeModel,callback:function(e){t.requirementScopeModel=e},expression:"requirementScopeModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("get-stakeholders",{attrs:{"is-dirty":t.$v.stakeholderModel.$dirty},on:{update_stakeholder_model:function(e){return t.updateStakeholderModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusModel.required&&t.$v.statusModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusFixList,label:"status"},model:{value:t.statusModel,callback:function(e){t.statusModel=e},expression:"statusModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeModel.required&&t.$v.typeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeFixList,label:"type"},model:{value:t.typeModel,callback:function(e){t.typeModel=e},expression:"typeModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"requirement","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewRequirement}},[t._v("Create new Requirement")])])])],1)])};le._withStripped=!0;const ce=n(3);var de=J({name:"NewRequirement",components:{axios:ce},props:{groupResults:Array,staticUrl:{type:String,default:"/"},statusList:Array,typeList:Array,userGroupResults:{type:Array,default:()=>[]}},data:()=>({groupModel:"",requirementScopeModel:"",requirementTitleModel:"",stakeholderModel:"",statusFixList:[],statusModel:"",typeFixList:[],typeModel:""}),validations:{groupModel:{required:dt.required},requirementScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementTitleModel:{required:dt.required},stakeholderModel:{required:dt.required},statusModel:{required:dt.required},typeModel:{required:dt.required}},methods:{submitNewRequirement:function(){if(this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();const t=new FormData;t.set("requirement_title",this.requirementTitleModel),t.set("requirement_scope",this.requirementScopeModel),t.set("organisation",this.stakeholderModel.value),t.set("requirement_status",this.statusModel.value),t.set("requirement_type",this.typeModel.value),this.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),ce.post("save/",t).then(t=>{window.location.href=t.data}).catch(t=>{document.getElementById("errorModalContent").innerHTML="HTML ISSUE: We could not save the new requirement
"+t,new f.a(document.getElementById("errorModal")).show(),loader_elem.style.transform="translateY(-100vh)"})},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}},mounted(){this.statusList.forEach(t=>{var e={value:t.pk,status:t.fields.requirement_status};this.statusFixList.push(e)}),this.typeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_type};this.typeFixList.push(e)})}},le,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place a basic bird's eye view of the requirement description here. You will be able to break\n the requirement down into smaller components called 'Items' on the next page.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"2f36f1f4",null);de.options.__file="src/js/components/requirements/NewRequirement.vue";var ue=de.exports,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newNoteModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.noteAdd}}),t._v(" New Note")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("p",{staticClass:"text-instructions"},[t._v("\n Use the text editor to type out your note. Click on the submit button to submit the note.\n ")]),t._v(" "),n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.newNoteModel,callback:function(e){t.newNoteModel=e},expression:"newNoteModel"}})],1),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:""==t.newNoteModel},on:{click:t.submitNote}},[t._v("\n Submit Note\n ")]),t._v(" "),n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")])])])])])};pe._withStripped=!0;const me=n(3);var fe=J({name:"NewHistoryNoteWizard",props:["locationId","destination"],mixins:[h,Z],data:()=>({newNoteModel:""}),methods:{submitNote:function(){const t=new FormData;t.set("destination",this.destination),t.set("location_id",this.locationId),t.set("note",this.newNoteModel),me.post(`/object_data/${this.destination}/${this.locationId}/add_notes/`,t).then(t=>{this.$emit("update_note_history_results",t.data),document.getElementById("newNoteCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}}},pe,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"newNoteCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"5b9840e8",null);fe.options.__file="src/js/components/modules/wizards/NewHistoryNoteWizard.vue";var he=fe.exports,ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newItemModal",tabindex:"-1","aria-labelledby":"requirementItemModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.clipboardIcon}}),t._v(" New Requirement Item Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",{attrs:{for:"id_requirement_item_title"}},[t._v("Requirement Item Title:\n "),t.$v.requirementItemTitleModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please suppy a title.")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementItemTitleModel,expression:"requirementItemTitleModel"}],staticClass:"form-control",attrs:{id:"id_requirement_item_title",name:"requirement_item_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementItemTitleModel},on:{input:function(e){e.target.composing||(t.requirementItemTitleModel=e.target.value)}}}),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Requirement Item Scope:\n "),!t.$v.requirementItemScopeModel.required&&t.$v.requirementItemScopeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]):t._e(),t._v(" "),t.$v.requirementItemScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.requirementItemScopeModel,callback:function(e){t.requirementItemScopeModel=e},expression:"requirementItemScopeModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusItemModel.required&&t.$v.statusItemModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusItemFixList,label:"status"},model:{value:t.statusItemModel,callback:function(e){t.statusItemModel=e},expression:"statusItemModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeItemModel.required&&t.$v.typeItemModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeItemFixList,label:"type"},model:{value:t.typeItemModel,callback:function(e){t.typeItemModel=e},expression:"typeItemModel"}})],1)])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.saveItem}},[t._v("Save Requirement Item")])])])])])};ve._withStripped=!0;const ge=n(3);var be=J({name:"NewRequirementItemWizard",props:["itemStatusList","itemTypeList","locationId"],mixins:[h,Z],data:()=>({requirementItemScopeModel:"",requirementItemTitleModel:"",statusItemFixList:[],statusItemModel:"",typeItemFixList:[],typeItemModel:""}),validations:{requirementItemScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementItemTitleModel:{required:dt.required},statusItemModel:{required:dt.required},typeItemModel:{required:dt.required}},methods:{saveItem:function(){if(this.$v.$touch(),this.$v.$invalid)return;const t=new FormData;t.set("requirement_item_title",this.requirementItemTitleModel),t.set("requirement_item_scope",this.requirementItemScopeModel),t.set("requirement_item_status",this.statusItemModel.value),t.set("requirement_item_type",this.typeItemModel.value),ge.post(`/new_requirement_item/save/${this.locationId}/`,t).then(t=>{this.requirementItemScopeModel="",this.requirementItemTitleModel="",this.statusItemModel="",this.typeItemModel="",this.$emit("new_item_added",t.data),document.getElementById("requirementItemCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}},watch:{itemStatusList:function(){this.itemStatusList.forEach(t=>{var e={value:t.pk,status:t.fields.requirement_item_status};this.statusItemFixList.push(e)})},itemTypeList:function(){this.itemTypeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_item_type};this.typeItemFixList.push(e)})}}},ve,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"requirementItemCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place in a detailed description of this requirement item. This particular item can be\n then connected to Project or Tasks.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"1a90b55c",null);be.options.__file="src/js/components/modules/wizards/NewRequirementItemWizard.vue";var _e=be.exports,ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newRequirementLinkModal",tabindex:"-1","aria-labelledby":"requirementLinkModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" New Requirement Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching?n("div",{staticClass:"alert alert-success"},[t._v("\n Searching for "+t._s(t.objectModel)+"s\n ")]):n("v-select",{staticClass:"object-selection",attrs:{options:t.objectSelection},model:{value:t.objectModel,callback:function(e){t.objectModel=e},expression:"objectModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching||null==t.objectModel?n("div",{attrs:{id:"link_wizard_results"}},[n("img",{attrs:{src:"/static/NearBeach/images/placeholder/search.svg",alt:"Searching..."}})]):t._e(),t._v(" "),0==t.objectResults.length&&null!=t.objectModel?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - there are no results.\n ")]):t._e(),t._v(" "),!t.isSearching&&t.objectResults.length>0&&null!=t.objectModel?n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",[t._v(t._s(t.objectModel)+" Description")]),t._v(" "),n("td",[t._v("Status")])])]),t._v(" "),"Project"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_project_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_project_"+e.pk}},[t._v("\n "+t._s(e.fields.project_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Project "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.project_status))])])})),0):t._e(),t._v(" "),"Task"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_task_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_task_"+e.pk}},[t._v("\n "+t._s(e.fields.task_short_description)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Task "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.task_status))])])})),0):t._e(),t._v(" "),"Opportunity"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_opportunity_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_opportunity_"+e.pk}},[t._v("\n "+t._s(e.fields.opportunity_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Opportunity "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.opportunity_success_probability)+"%")])])})),0):t._e()]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.linkModel.length},on:{click:t.saveLinks}},[t._v("Save changes")])])])])])};ye._withStripped=!0;const we=n(3);var xe=J({name:"NewRequirementLinkWizard",props:["destination","locationId"],mixins:[h,Z],data:()=>({isSearching:!1,objectModel:null,objectResults:[],objectSelection:["Project","Task"],linkModel:[]}),methods:{saveLinks:function(){const t=new FormData;this.linkModel.forEach(e=>{t.append(""+this.objectModel.toLowerCase(),e)}),we.post(`/${this.destination}_information/${this.locationId}/add_link/`,t).then(t=>{this.$emit("update_module",{}),document.getElementById("requirementLinkCloseButton").click()})}},watch:{objectModel:function(){this.linkModel=[],null!==this.objectModel?(this.isSearching=!0,we.post(`/object_data/${this.destination}/${this.locationId}/${this.objectModel.toLowerCase()}/link_list/`).then(t=>{this.objectResults=t.data,this.isSearching=!1}).catch(t=>{this.showErrorModal(t,this.destination)})):this.isSearching=!1},linkModel:function(){}}},ye,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"requirementLinkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Object Selector")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which object you would like to link to this requirement.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Select Links")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which of the objects you want to connect to this requirement.\n ")])])}],!1,null,"c80394fa",null);xe.options.__file="src/js/components/modules/wizards/NewRequirementLinkWizard.vue";var ke=xe.exports,Ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Requirement Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_requirement_title"}},[t._v("Requirement Title:\n "),t.$v.requirementTitleModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please suppy a title.")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementTitleModel,expression:"requirementTitleModel"}],staticClass:"form-control",attrs:{id:"id_requirement_title",name:"requirement_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementTitleModel},on:{input:function(e){e.target.composing||(t.requirementTitleModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Requirement Scope:\n "),t.$v.requirementScopeModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]),t._v(" "),t.$v.requirementScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,disabled:t.isReadOnly,skin:!1},model:{value:t.requirementScopeModel,callback:function(e){t.requirementScopeModel=e},expression:"requirementScopeModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[t.statusModel.status_closed?n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"alert alert-info"},[t._v("\n Please note - this requirement is closed.\n ")])]):n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusModel.required&&t.$v.statusModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusFixList,clearable:!1,label:"status"},model:{value:t.statusModel,callback:function(e){t.statusModel=e},expression:"statusModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-6"},[t.statusModel.status_closed?n("div",{staticClass:"alert alert-danger"},[t._v("\n Please note - saving the requirement with this status will \n close the requirement.\n ")]):t._e()])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeModel.required&&t.$v.typeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeFixList,disabled:t.isReadOnly,clearable:!1,label:"type"},model:{value:t.typeModel,callback:function(e){t.typeModel=e},expression:"typeModel"}})],1)])])])]),t._v(" "),n("hr"),t._v(" "),t.userLevel>1?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRequirement}},[t._v("Update Requirement")])])]):t._e()],1)])};Ce._withStripped=!0;const Me=n(3);var Se=J({name:"RequirementInformation",components:{},props:["defaultStakeholderImage","organisationResults","requirementResults","statusList","typeList","userLevel"],mixins:[h,ie],data:()=>({isReadOnly:!1,requirementScopeModel:"",requirementTitleModel:"",stakeholderModel:"",statusFixList:[],statusModel:"",typeFixList:[],typeModel:""}),validations:{requirementScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementTitleModel:{required:dt.required},statusModel:{required:dt.required},typeModel:{required:dt.required}},methods:{updateRequirement:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();this.showLoadingModal("Requirement");const t=new FormData;t.set("requirement_title",this.requirementTitleModel),t.set("requirement_scope",this.requirementScopeModel),t.set("requirement_status",this.statusModel.value),t.set("requirement_type",this.typeModel.value),Me.post("save/",t).then(t=>{this.closeLoadingModal(),this.statusModel.status_closed&&window.location.reload()}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){var t=this.requirementResults[0].fields;this.requirementScopeModel=t.requirement_scope,this.requirementTitleModel=t.requirement_title,this.statusFixList=this.statusList.map(t=>({value:t.pk,status:t.fields.requirement_status,status_closed:t.fields.requirement_status_is_closed})),this.typeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_type};this.typeFixList.push(e)}),this.statusModel=this.statusFixList.filter(e=>e.value==t.requirement_status)[0],this.typeModel=this.typeFixList.filter(e=>e.value==t.requirement_type)[0],(this.statusModel.status_closed||1===this.userLevel)&&(this.isReadOnly=!0)}},Ce,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place a basic bird's eye view of the requirement description here. You will be able to break\n the requirement down into smaller components called 'Items' below in the 'Requirement Item'\n section.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"577bbb6c",null);Se.options.__file="src/js/components/requirements/RequirementInformation.vue";var Te=Se.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkIcon2}}),t._v(" Requirement Item Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links for the Items to other projects/tasks.\n ")]),t._v(" "),0==t.itemLinkResults.length?n("div",[n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - there are no Item Links. Please navigate to the Item you wish to add a link too.\n ")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.itemLinkResults,(function(e){return n("tr",{key:e.pk},[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.newRequirementItemLink}},[t._v("Create new Link")])])]),t._v(" "),n("new-requirement-link-wizard",{attrs:{"location-id":t.locationId,destination:t.destination},on:{update_module:t.updateModel}})],1)};Ee._withStripped=!0;const je=n(3);var Oe=J({name:"RequirementItemLinksModule",props:{destination:String,locationId:Number},mixins:[Z],data:()=>({itemLinkResults:[]}),methods:{extractObjectDescription:function(t){var e="ERROR",n="ERROR",r="/",i="";return null!==t.opportunity_id?(e=t.opportunity_id__opportunity_name,n="Opportunity "+t.opportunity_id,r="/opportunity_information/"+t.opportunity_id):null!==t.project_id?(e=t.project_id__project_name,n="Project "+t.project_id,r="/project_information/"+t.project_id):null!==t.quote_id?(e=t.quote_id__quote_title,n="Quote "+t.quote_id,r="/quote_information/"+t.quote_id):null!==t.task_id&&(e=t.task_id__task_short_description,n="Task "+t.task_id,r="/task_information/"+t.task_id),null!==t.requirement_id&&(i=``,n=`${n} / Item ${t.requirement_id}`),`\n \n

\n ${e}\n

\n
\n ${i}\n \n
\n `},extractObjectStatus:function(t){var e="ERROR";return null!==t.opportunity_id?e=t.opportunity_id__opportunity_stage_id__opportunity_stage_description:null!==t.project_id?e=t.project_id__project_status:null!==t.quote_id?e=t.quote_id__quote_title:null!==t.task_id&&(e=t.task_id__task_status),e},updateLinkResults:function(){je.post("data/links/").then(t=>{this.itemLinkResults=t.data})},newRequirementItemLink:function(){new f.a(document.getElementById("newRequirementLinkModal")).show()},updateModel:function(){}},mounted(){this.updateLinkResults()}},Ee,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"78110c2c",null);Oe.options.__file="src/js/components/modules/sub_modules/RequirementItemLinksModule.vue";var Ie=Oe.exports,Le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.clipboardIcon}}),t._v(" Requirement Items")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Requirements should be broken down into smaller compoenents called Requirement Items.\n ")]),t._v(" "),0==t.itemResults.length?n("div",{staticClass:"requirement-item-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no Items for this requirement.")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.itemResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/requirement_item_information/"+e.pk+"/"}},[n("p",[t._v("\n "+t._s(e.fields.requirement_item_title)+"\n ")]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Item No. "+t._s(e.pk)+" - "+t._s(t.getType(e.fields.requirement_item_type))+"\n ")])])]),t._v(" "),n("td",[t._v(t._s(t.getStatus(e.fields.requirement_item_status)))])])})),0)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.createNewItem}},[t._v("Create new Requirement Item")])])]),t._v(" "),n("new-requirement-item-wizard",{attrs:{"item-status-list":t.itemStatusList,"item-type-list":t.itemTypeList,"location-id":t.locationId},on:{new_item_added:function(e){return t.new_item_added(e)}}})],1)};Le._withStripped=!0;const De=n(3);var Ne=J({name:"RequirementItemsModule",props:["locationId"],mixins:[Z],components:{axios:De},data:()=>({itemResults:[],itemStatusList:[],itemTypeList:[]}),methods:{createNewItem:function(){new f.a(document.getElementById("newItemModal")).show()},getStatus:function(t){var e=this.itemStatusList.filter(e=>e.pk==t);return 0==e.length?"Unknown Status":e[0].fields.requirement_item_status},getType:function(t){var e=this.itemTypeList.filter(e=>e.pk==t);return 0==e.length?"Unknown Type":e[0].fields.requirement_item_type},new_item_added:function(t){this.itemResults=t},updateItemResults:function(){De.post("data/items/").then(t=>{this.itemResults=[],t.data.forEach(t=>{this.itemResults.push(t)})})},updateStatusList:function(){De.post("data/item_status/").then(t=>{this.itemStatusList=[],t.data.forEach(t=>{this.itemStatusList.push(t)})})},updateTypeList:function(){De.post("data/item_type/").then(t=>{this.itemTypeList=[],t.data.forEach(t=>{this.itemTypeList.push(t)})})}},mounted(){this.updateStatusList(),this.updateTypeList(),this.updateItemResults()}},Le,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Requirement Item")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"5c14de78",null);Ne.options.__file="src/js/components/modules/sub_modules/RequirementItemsModule.vue";var $e=Ne.exports,Ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkIcon}}),t._v(" Requirement Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links to other projects/tasks. You can link a Requirement to these other objects to\n symbolise a connection between the two.\n ")]),t._v(" "),0===t.linkResults.length?n("div",{staticClass:"requirement-item-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no Links for this requirement.")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.linkResults,(function(e){return n("tr",[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.newRequirementLink}},[t._v("Create new Link")])])]),t._v(" "),n("hr"),t._v(" "),n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkIcon2}}),t._v(" Requirement Item Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links for the Items to other projects/tasks.\n ")]),t._v(" "),0==t.itemLinkResults.length?n("div",[n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - there are no Item Links. Please navigate to the Item you wish to add a link too.\n ")])]):n("div",[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.itemLinkResults,(function(e){return n("tr",[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("new-requirement-link-wizard",{attrs:{"location-id":t.locationId,destination:"requirement"},on:{update_module:t.updateModel}})],1)};Ae._withStripped=!0;const Re=n(3);var Pe=J({name:"RequirementLinksModule",props:["activateLazyLoading","destination","locationId"],mixins:[Z],data:()=>({linkResults:[],itemLinkResults:[],linkModel:[]}),methods:{extractObjectDescription:function(t){var e="ERROR",n="ERROR",r="/",i="";return null!==t.opportunity_id?(e=t.opportunity_id__opportunity_name,n="Opportunity "+t.opportunity_id,r="/opportunity_information/"+t.opportunity_id):null!==t.project_id?(e=t.project_id__project_name,n="Project "+t.project_id,r="/project_information/"+t.project_id):null!==t.quote_id?(e=t.quote_id__quote_title,n="Quote "+t.quote_id,r="/quote_information/"+t.quote_id):null!==t.task_id&&(e=t.task_id__task_short_description,n="Task "+t.task_id,r="/task_information/"+t.task_id),null!==t.requirement_id&&(i=``,n=`${n} / Item ${t.requirement_id}`),`\n \n

\n ${e}\n

\n
\n ${i}\n \n
\n `},extractObjectStatus:function(t){var e="ERROR";return null!==t.opportunity_id?e=t.opportunity_id__opportunity_stage_id__opportunity_stage_description:null!==t.project_id?e=t.project_id__project_status:null!==t.quote_id?e=t.quote_id__quote_title:null!==t.task_id&&(e=t.task_id__task_status),e},newRequirementLink:function(){new f.a(document.getElementById("newRequirementLinkModal")).show()},updateItemLinkResults:function(){Re.post("data/item_links/").then(t=>{this.itemLinkResults=t.data})},updateLinkResults:function(){Re.post("data/links/").then(t=>{this.linkResults=t.data})},updateModel:function(){this.updateLinkResults(),this.updateItemLinkResults()}},mounted(){this.updateModel()}},Ae,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"7e38157d",null);Pe.options.__file="src/js/components/modules/sub_modules/RequirementLinksModule.vue";var qe=Pe.exports,ze=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"uploadDocumentModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Upload Document Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Uploading File")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n You will be able to upload a file against this "+t._s(t.destination)+". It will appear in the\n current folder.\n ")]),t._v(" "),0==t.documentModel.length?n("p",[t._v('\n 1. Please click on "Upload File" button to upload a file\n ')]):""==t.uploadPercentage?n("p",[t._v('\n 2. Please modify the document descript to be more human readable. Or click the "Reset"\n button to remove the uploaded file.\n ')]):n("p",[t._v("\n 3. Document is currently uploading. Please be patient.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[0==t.documentModel.length?n("div",{staticClass:"form-file"},[n("div",{staticClass:"mb-3"},[n("label",{staticClass:"form-label",attrs:{for:"document"}},[t._v("\n Please upload a file"),n("br"),t._v("\n "+t._s(t.maxUploadString)+"\n "),t.maxUploadWarning?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - file too large\n ")]):t._e()]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"file",id:"document",accept:t.acceptedDocuments},on:{change:function(e){return t.handleFileUploads(e.target.files)}}})])]):""==t.uploadPercentage?n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"documentDescription"}},[t._v("Document Description")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.documentDescriptionModel,expression:"documentDescriptionModel"}],staticClass:"form-control",attrs:{id:"documentDescription",type:"text"},domProps:{value:t.documentDescriptionModel},on:{input:function(e){e.target.composing||(t.documentDescriptionModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-row"},[n("button",{staticClass:"btn btn-warning",on:{click:t.resetForm}},[t._v("\n Reset Form\n ")])])]):n("div",[parseFloat(t.uploadPercentage).toFixed(0)<1?n("div",{staticClass:"alert alert-warning"},[t._v("\n Uploading "+t._s((100*parseFloat(t.uploadPercentage)).toFixed(2))+"%\n "),t._m(1)]):n("div",{staticClass:"alert alert-success"},[t._v("\n The document has been uploaded. The server is currently writing the file to disk.\n Please be patient - this modal will close automatically. Thank you\n ")])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableUploadButton},on:{click:t.uploadFile}},[t._v("\n Upload File\n ")])])])])])};ze._withStripped=!0;const Fe=n(3);var Ue=J({name:"UploadDocumentWizard",props:{acceptedDocuments:{type:String,default:"image/*,text/*,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},currentFolder:String,destination:String,excludeDocuments:{type:Array,default:[]},locationId:Number},mixins:[h,Z],data:()=>({disableUploadButton:!0,documentModel:[],documentDescriptionModel:"",uploadPercentage:"",maxUploadSize:0,maxUploadString:"No Upload Limit",maxUploadWarning:!1}),methods:{handleFileUploads:function(t){t[0].size*(0!=this.maxUploadSize)>this.maxUploadSize?this.maxUploadWarning=!0:(this.maxUploadWarning=!1,this.documentModel=t[0],this.documentDescriptionModel=t[0].name)},resetForm:function(){this.documentModel="",this.documentDescriptionModel="",this.uploadPercentage=""},uploadFile:function(){const t=new FormData;t.set("document",this.documentModel,this.documentDescriptionModel),t.set("document_description",this.documentDescriptionModel),""!=this.currentFolder&&null!==this.currentFolder&&t.set("parent_folder",this.currentFolder);const e={onUploadProgress:t=>{this.uploadPercentage=parseFloat(t.loaded)/parseFloat(t.total)}};Fe.post(`/documentation/${this.destination}/${this.locationId}/upload/`,t,e).then(t=>{this.$emit("update_document_list",t.data),document.getElementById("uploadDocumentCloseButton").click(),this.resetForm()}).catch(t=>{this.showErrorModal(t,this.destination)})}},watch:{maxUploadSize:function(){if(0===this.maxUploadSize)return"No Upload Limit";const t=Math.floor(Math.log(this.maxUploadSize)/Math.log(1024));this.maxUploadString=`Max Upload Size: ${parseFloat((this.maxUploadSize/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}`}},updated(){var t=this.excludeDocuments.filter(t=>t.document_key__document_description==this.documentDescriptionModel);this.disableUploadButton=""==this.documentModel||0==this.documentDescriptionModel.length||t.length>0},mounted(){Fe.post("/documentation/get/max_upload/").then(t=>{this.maxUploadSize=t.data.max_upload_size}).catch(t=>{this.showErrorModal(t,this.destination)})}},ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"uploadDocumentCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])}],!1,null,"4cebf53c",null);Ue.options.__file="src/js/components/modules/wizards/UploadDocumentWizard.vue";var Be=Ue.exports,Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Requirement Item Information")]),t._v(" "),n("br"),t._v(" "),n("a",{attrs:{href:"/requirement_information/"+t.requirementItemResults[0].fields.requirement+"/"}},[t._v("\n Go Back to requirement\n ")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"requirement_item_title"}},[t._v("\n Requirement Item Title:\n "),t.$v.requirementItemTitleModel.required?t._e():n("span",{staticClass:"error"},[t._v("\n Please suppy a title.\n ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementItemTitleModel,expression:"requirementItemTitleModel"}],staticClass:"form-control",attrs:{id:"requirement_item_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementItemTitleModel},on:{input:function(e){e.target.composing||(t.requirementItemTitleModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Item Scope:\n "),t.$v.requirementItemScopeModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]),t._v(" "),t.$v.requirementItemScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.requirementItemScopeModel,callback:function(e){t.requirementItemScopeModel=e},expression:"requirementItemScopeModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8 organisation-details"},[n("img",{staticClass:"organisation-image",attrs:{src:t.getStakeholderImage,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[t._v("\n "+t._s(t.stakeholderModel.organisation_name)+"\n ")]),t._v(" "),n("div",{staticClass:"organisation-link"},[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" Website:\n "),n("a",{attrs:{href:t.stakeholderModel.organisation_website,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.stakeholderModel.organisation_website)+"\n ")])],1),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+t.stakeholderModel.organisation_email}},[t._v("\n "+t._s(t.stakeholderModel.organisation_email)+"\n ")])],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusModel.required&&t.$v.statusModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusFixList,label:"status"},model:{value:t.statusModel,callback:function(e){t.statusModel=e},expression:"statusModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeModel.required&&t.$v.typeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeFixList,label:"type"},model:{value:t.typeModel,callback:function(e){t.typeModel=e},expression:"typeModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRequirementItem}},[t._v("Update Requirement")])])])])])};Ve._withStripped=!0;const He=n(3);var We=J({name:"RequirementItemInformation.vue",props:["requirementItemResults","organisationResults","defaultStakeholderImage","statusList","typeList"],mixins:[Z],data:()=>({requirementItemScopeModel:"",requirementItemTitleModel:"",stakeholderModel:"",statusFixList:[],statusModel:"",typeFixList:[],typeModel:""}),validations:{requirementItemScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementItemTitleModel:{required:dt.required},statusModel:{required:dt.required},typeModel:{required:dt.required}},computed:{getStakeholderImage:function(){return""==this.stakeholderModel.organisation_profile_picture?this.defaultStakeholderImage:this.stakeholderModel.organisation_profile_picture}},methods:{updateRequirementItem:function(){if(this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();var t=new f.a(document.getElementById("loadingModal"));t.show(),document.getElementById("loadingModalContent").innerHTML="Updating your Requirement Item details";const e=new FormData;e.set("requirement_item_title",this.requirementItemTitleModel),e.set("requirement_item_scope",this.requirementItemScopeModel),e.set("requirement_item_status",this.statusModel.value),e.set("requirement_item_type",this.typeModel.value),He.post("save/",e).then(e=>{document.getElementById("loadingModalContent").innerHTML="UPDATED SUCCESSFULLY",setTimeout(()=>{t.hide()},1e3)}).catch(e=>{t.hide(),document.getElementById("errorModalContent").innerHTML="HTML ISSUE: We could not save the new requirement item
"+e,new f.a(document.getElementById("errorModal")).show()})}},mounted(){var t=this.requirementItemResults[0].fields;this.requirementItemScopeModel=t.requirement_item_scope,this.requirementItemTitleModel=t.requirement_item_title,this.stakeholderModel=this.organisationResults[0].fields,this.statusList.forEach(t=>{var e={value:t.pk,status:t.fields.requirement_item_status};this.statusFixList.push(e)}),this.typeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_item_type};this.typeFixList.push(e)}),this.statusModel=this.statusFixList.filter(e=>e.value==t.requirement_item_status)[0],this.typeModel=this.typeFixList.filter(e=>e.value==t.requirement_item_type)[0]}},Ve,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Requirement Items should be detailed. They should only focus on one small section of the\n requirement.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Stakeholder")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"a5797c66",null);We.options.__file="src/js/components/requirement_items/RequirementItemInformation.vue";var Ge=We.exports,Ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.organisationResults,(function(e){return n("div",{key:e.id,staticClass:"row"},[n("div",{staticClass:"organisation-details"},[""==e.fields.organisation_profile_picture?n("img",{staticClass:"organisation-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/product_tour.svg",alt:"Stakeholder Logo"}}):n("img",{staticClass:"organisation-image",attrs:{src:e.fields.organisation_profile_picture,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[n("a",{attrs:{href:t.rootUrl+"organisation_information/"+e.pk+"/"}},[t._v("\n "+t._s(e.fields.organisation_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"organisation-link"},[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" Website:\n "),n("a",{attrs:{href:e.fields.organisation_website,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(e.fields.organisation_website)+"\n ")])],1),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+e.fields.organisation_email}},[t._v("\n "+t._s(e.fields.organisation_email)+"\n ")])],1)])])})),0)};Ye._withStripped=!0;var Ke=J({name:"ListOrganisations",props:{organisationResults:Array,rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"}},mixins:[Z],methods:{}},Ye,[],!1,null,"08a112ee",null);Ke.options.__file="src/js/components/organisations/ListOrganisations.vue";var Ze=Ke.exports,Xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Organisations")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-organisation",attrs:{type:"text"},domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),n("list-organisations",{attrs:{"organisation-results":t.localOrganisationResults,"root-url":t.rootUrl,"static-url":t.staticUrl}}),t._v(" "),0==t.localOrganisationResults.length?n("div",{staticClass:"alert alert-warning"},[t._v("There are no organisations with the search parameters used. Please try again.")]):t._e()],1)])};Xe._withStripped=!0;const Je=n(3);var Qe=J({name:"SearchOrganisations",props:{organisationResults:Array,staticUrl:{type:String,default:"/"},rootUrl:{type:String,default:"/"}},mixins:[ut],data(){return{localOrganisationResults:this.organisationResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),Je.post("/search/organisation/data/",t).then(t=>{this.localOrganisationResults=t.data}).catch(t=>{})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},Xe,[],!1,null,"1f5ddbb6",null);Qe.options.__file="src/js/components/search/SearchOrganisations.vue";var tn=Qe.exports,en=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Tags")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Tags")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the search bar to help you find any tags.\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Click on the icon "),n("IconifyIcon",{attrs:{icon:t.icons.infoCircle}}),t._v("\n to edit the tag.\n ")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v('\n To add in any new tags - please click on the "New Tag" button.\n ')])]),t._v(" "),n("div",{staticClass:"col-md-8 tag-list"},t._l(t.localTagResults,(function(e){return n("div",{key:e.pk,staticClass:"single-tag",style:"background-color: "+e.fields.tag_colour+";",on:{dblclick:function(n){return t.editTag(e.pk)}}},[t._v("\n "+t._s(e.fields.tag_name)+"\n "),n("span",{on:{click:function(n){return t.editTag(e.pk)}}},[n("IconifyIcon",{attrs:{icon:t.icons.infoCircle}})],1)])})),0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addTag}},[t._v("Add Tag")])])])]),t._v(" "),n("edit-tag-modal",{attrs:{"existing-tags":t.localTagResults,"tag-colour":t.singleTagColour,"tag-id":t.singleTagId,"tag-name":t.singleTagName},on:{new_tag:t.newTag,delete_tag:function(e){return t.deleteTag(e)},update_tags:t.updateTags}})],1)])};en._withStripped=!0;var nn=J({name:"SearchTags",props:{tagResults:{type:Array,default:()=>[]}},data(){return{singleTagColour:"",singleTagId:0,singleTagName:"",localTagResults:this.tagResults}},mixins:[Z],methods:{addTag:function(){this.singleTagName="default tag",this.singleTagId=0,this.singleTagColour="#37cbd2",new f.a(document.getElementById("editTagModal")).show()},deleteTag:function(t){this.localTagResults=this.localTagResults.filter(e=>e.pk!==t.tag_id)},editTag:function(t){let e=this.localTagResults.filter(e=>e.pk==t)[0];this.singleTagName=e.fields.tag_name,this.singleTagId=t,this.singleTagColour=e.fields.tag_colour,new f.a(document.getElementById("editTagModal")).show()},newTag:function(t){this.localTagResults.push(t[0])},updateTags:function(t){let e=this.localTagResults.findIndex(e=>e.pk===t.tag_id);this.localTagResults[e].fields.tag_name=t.tag_name,this.localTagResults[e].fields.tag_colour=t.tag_colour}}},en,[],!1,null,null,null);nn.options.__file="src/js/components/search/SearchTags.vue";var rn=nn.exports,on=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Organisation Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),t._m(1),t._v(" "),n("div",{staticClass:"col-md-5"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_name"}},[t._v("\n Organisation Name\n "),!t.$v.organisationNameModel.required&&t.$v.organisationNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationNameModel,expression:"organisationNameModel"}],staticClass:"form-control",attrs:{id:"id_organisation_name",type:"text"},domProps:{value:t.organisationNameModel},on:{input:function(e){e.target.composing||(t.organisationNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_website"}},[t._v("\n Organisation Website\n "),!t.$v.organisationWebsiteModel.required&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationWebsiteModel.url&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format at URL\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationWebsiteModel,expression:"organisationWebsiteModel"}],staticClass:"form-control",attrs:{id:"id_organisation_website",type:"text"},domProps:{value:t.organisationWebsiteModel},on:{input:function(e){e.target.composing||(t.organisationWebsiteModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_email"}},[t._v("\n Organisation Email\n "),!t.$v.organisationEmailModel.required&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationEmailModel.email&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format as Email\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationEmailModel,expression:"organisationEmailModel"}],staticClass:"form-control",attrs:{id:"id_organisation_email",type:"text"},domProps:{value:t.organisationEmailModel},on:{input:function(e){e.target.composing||(t.organisationEmailModel=e.target.value)}}})])])]),t._v(" "),n("br"),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateOrganisation}},[t._v("Update Organisation")])])])])])};on._withStripped=!0;const an=n(3);var sn=J({name:"OrganisationInformation",props:{organisationResults:Array},mixins:[h,ie],data(){return{organisationNameModel:this.organisationResults[0].fields.organisation_name,organisationEmailModel:this.organisationResults[0].fields.organisation_email,organisationWebsiteModel:this.organisationResults[0].fields.organisation_website}},validations:{organisationNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)},organisationWebsiteModel:{required:dt.required,url:dt.url},organisationEmailModel:{required:dt.required,email:dt.email}},methods:{updateOrganisation:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("organisation_name",this.organisationNameModel),t.set("organisation_email",this.organisationEmailModel),t.set("organisation_website",this.organisationWebsiteModel),this.showLoadingModal("Organisation"),an.post(`/organisation_information/${this.organisationResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"organisation",this.organisationResults[0].pk)})}}},on,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please Note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please only use generic information for both the website and email. Do not use any personal\n details - you can create contacts in the section below.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-3"},[e("img",{staticClass:"organisation-profile-image",attrs:{src:"/static/NearBeach/images/placeholder/product_tour.svg",alt:"No Profile Picture"}}),this._v(" "),e("br"),this._v(" "),e("button",{staticClass:"btn btn-primary"},[this._v("Update Profile...")])])}],!1,null,"3a69a0c0",null);sn.options.__file="src/js/components/organisations/OrganisationInformation.vue";var ln=sn.exports,cn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[t._m(0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"misc_module_content"}},[n("div",{staticClass:"tab-pane fade",attrs:{id:"organisation-contacts",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Contacts")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Below are a list of contacts who are connected to this organisation.\n ")]),t._v(" "),n("customers-list-module",{attrs:{"customer-results":t.customerResults}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addNewContact}},[t._v("\n Add Contact\n ")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"document-uploads",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("documents-module",{attrs:{destination:t.destination,"location-id":t.locationId}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"associated-objects",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("associated-objects",{attrs:{destination:t.destination,"location-id":t.locationId}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"misc-modules",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("misc-module",{attrs:{destination:t.destination,"location-id":t.locationId}})],1)])]),t._v(" "),n("new-customer-modal",{attrs:{"organisation-id":t.locationId,"title-list":t.titleList}})],1)};cn._withStripped=!0;var dn=J({name:"OrganisationModules",props:{customerResults:Array,destination:String,locationId:Number,titleList:Array},mixins:[Z],methods:{addNewContact:function(){new f.a(document.getElementById("addCustomerModal")).show()}}},cn,[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs",attrs:{id:"misc_module_tabs",role:"tablist"}},[e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"organisation-contacts-tab","data-bs-toggle":"tab","data-bs-target":"#organisation-contacts",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("\n Organisation Contacts\n ")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"document-uploads-tab","data-bs-toggle":"tab","data-bs-target":"#document-uploads",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("\n Document Uploads\n ")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"associated-objects-tab","data-bs-toggle":"tab","data-bs-target":"#associated-objects",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("\n Associated Objects\n ")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"misc-modules-tab","data-bs-toggle":"tab","data-bs-target":"#misc-modules",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("Misc\n ")])])])}],!1,null,"ce8eeb0a",null);dn.options.__file="src/js/components/organisations/OrganisationModules.vue";var un=dn.exports,pn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"customer-modules"},t._l(t.customerResults,(function(e){return n("div",{staticClass:"card card-customer"},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"single-customer-card"},[n("img",{attrs:{src:t.getCustomerImage(e),alt:"default profile picture"}}),t._v(" "),n("div",{staticClass:"customer-card-name"},[t._v("\n "+t._s(e.fields.customer_first_name)+" "+t._s(e.fields.customer_last_name)+"\n ")]),t._v(" "),n("div",{staticClass:"customer-card-email"},[n("IconifyIcon",{attrs:{icon:t.icons.email}}),t._v("\n "+t._s(e.fields.customer_email)+"\n ")],1)])])])})),0)};pn._withStripped=!0;var mn=J({name:"CustomersListModule",props:["customerResults"],mixins:[Z],data:()=>({defaultCustomerImage:"/static/NearBeach/images/placeholder/people_tax.svg"}),methods:{getCustomerImage:function(t){return""==t.fields.customer_profile_picture?this.defaultCustomerImage:t.fields.customer_profile_picture}}},pn,[],!1,null,"8c283f98",null);mn.options.__file="src/js/components/modules/sub_modules/CustomersListModule.vue";var fn=mn.exports,hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.objectStorage}}),t._v(" Associated Objects")],1),t._v(" "),t.projectResults.length+t.taskResults.length>0?n("hr"):t._e(),t._v(" "),t.projectResults.length>0?n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.projectResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/project_information/"+e.project_id+"/"}},[n("p",[t._v(t._s(e.project_name))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Project "+t._s(e.project_id)+" -\n End Date:\n "+t._s(t.getFriendlyDate(e.project_end_date))+"\n ")])])]),t._v(" "),n("td",[t._v(t._s(e.project_status))])])})),0)])])]):t._e(),t._v(" "),t.projectResults.length>0?n("hr"):t._e(),t._v(" "),t.requirementResults.length>0?n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(3),t._v(" "),n("tbody",t._l(t.requirementResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/requirement_information/"+e.requirement_id+"/"}},[n("p",[t._v(t._s(e.requirement_title))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Requirement "+t._s(e.requirement_id)+"\n ")])])])])})),0)])])]):t._e(),t._v(" "),t.projectResults.length>0?n("hr"):t._e(),t._v(" "),t.taskResults.length>0?n("div",{staticClass:"row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(5),t._v(" "),n("tbody",t._l(t.taskResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/task_information/"+e.task_id+"/"}},[n("p",[t._v(t._s(e.task_short_description))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Task "+t._s(e.task_id)+" -\n End Date:\n "+t._s(t.getFriendlyDate(e.task_end_date))+"\n ")])])]),t._v(" "),n("td",[t._v(t._s(e.task_status))])])})),0)])])]):t._e(),t._v(" "),t.projectResults.length+t.taskResults.length===0?n("div",{staticClass:"spacer"}):t._e(),t._v(" "),t.projectResults.length+t.taskResults.length===0?n("div",{staticClass:"alert alert-info"},[t._v('\n There are currently no Objects associated with this Organisation. You can create some new objects by\n click on the "New Objects" menu item.\n ')]):t._e()])};hn._withStripped=!0;const vn=n(3);var gn=J({name:"AssociatedObjects",props:["destination","locationId"],mixins:[Z],data:()=>({opportunityResults:[],projectResults:[],requirementResults:[],taskResults:[]}),methods:{getAssociatedObjectResults:function(){vn.post(`/object_data/${this.destination}/${this.locationId}/associated_objects/`).then(t=>{this.opportunityResults=t.data.opportunity,this.projectResults=t.data.project,this.requirementResults=t.data.requirement,this.taskResults=t.data.task}).catch(t=>{})},getFriendlyDate:function(t){return new Date(t).toLocaleString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}},mounted(){this.getAssociatedObjectResults()}},hn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Project")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are current OPEN projects associated with the organisation.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Project Information")]),this._v(" "),e("td",[this._v("Status")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Requirement")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are current OPEN requirements associated with the organisation.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Requirement Information")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Task")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are current OPEN tasks associated with the organisation.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Task Information")]),this._v(" "),e("td",[this._v("Status")])])])}],!1,null,"5019fa43",null);gn.options.__file="src/js/components/modules/sub_modules/AssociatedObjects.vue";var bn=gn.exports,_n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"form-group col-sm-3"},[n("label",[t._v("\n Title:\n "),!t.$v.titleModel.required&&t.$v.titleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.titleFixList,label:"title"},model:{value:t.titleModel,callback:function(e){t.titleModel=e},expression:"titleModel"}})],1),t._v(" "),n("div",{staticClass:"form-group col-sm-4"},[n("label",[t._v("\n First Name:\n "),!t.$v.customerFirstNameModel.required&&t.$v.customerFirstNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerFirstNameModel,expression:"customerFirstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerFirstNameModel},on:{input:function(e){e.target.composing||(t.customerFirstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-sm-5"},[n("label",[t._v("\n Last Name:\n "),!t.$v.customerLastNameModel.required&&t.$v.customerLastNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerLastNameModel,expression:"customerLastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerLastNameModel},on:{input:function(e){e.target.composing||(t.customerLastNameModel=e.target.value)}}})])]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group col-sm-8"},[n("label",[t._v("\n Email:\n "),!t.$v.customerEmailModel.required&&t.$v.customerEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.customerEmailModel.email&&t.$v.customerEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format as Email\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerEmailModel,expression:"customerEmailModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerEmailModel},on:{input:function(e){e.target.composing||(t.customerEmailModel=e.target.value)}}})]),t._v(" "),n("br")])])};_n._withStripped=!0;n(3);var yn=J({name:"NewCustomerForm",props:["flagValidationCheck","organisationName","titleList"],data:()=>({customerEmailModel:"",customerFirstNameModel:"",customerLastNameModel:"",organisationModel:{},searchTimeout:"",titleFixList:[],titleModel:[]}),validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},organisationModel:{required:dt.required},titleModel:{required:dt.required}},methods:{},watch:{customerEmailModel:function(){this.$emit("update_customer_data",{field:"customerEmailModel",value:this.customerEmailModel})},customerFirstNameModel:function(){this.$emit("update_customer_data",{field:"customerFirstNameModel",value:this.customerFirstNameModel})},customerLastNameModel:function(){this.$emit("update_customer_data",{field:"customerLastNameModel",value:this.customerLastNameModel})},flagValidationCheck:function(){this.flagValidationCheck&&this.$v.$touch()},titleModel:function(){this.$emit("update_customer_data",{field:"titleModel",value:this.titleModel})}},mounted(){this.titleList.forEach(t=>{this.titleFixList.push({value:t.pk,title:t.fields.title})})}},_n,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("New Customer")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the following details.\n ")]),this._v(" "),e("strong",[this._v("Please Note:")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Customers do not go through a duplication process. Please search for the potential customer\n first before adding them into NearBeach.\n ")])])}],!1,null,"ecd082a8",null);yn.options.__file="src/js/components/customers/NewCustomerForm.vue";var wn=yn.exports,xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addCustomerModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-xl"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add Customer Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("new-customer-form",{attrs:{"title-list":t.titleList,"flag-validation-check":t.flagValidationCheck},on:{update_customer_data:function(e){return t.updateCustomerData(e)}}})],1),t._v(" "),n("div",{staticClass:"modal-footer"},[n("a",{staticClass:"btn btn-primary",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewCustomer}},[t._v("Add Contact")]),t._v(" "),n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")])])])])])};xn._withStripped=!0;const kn=n(3);var Cn=J({name:"NewCustomerModal",props:["organisationId","titleList"],mixins:[Z],data:()=>({customerEmailModel:"",customerFirstNameModel:"",customerLastNameModel:"",flagValidationCheck:!1,organisationModel:{},titleModel:[]}),validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},titleModel:{required:dt.required}},methods:{submitNewCustomer:function(){if(this.flagValidationCheck=!0,setTimeout(()=>{this.flagValidationCheck=!1},100),this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();const t=new FormData;t.set("customer_title",this.titleModel.value),t.set("customer_first_name",this.customerFirstNameModel),t.set("customer_last_name",this.customerLastNameModel),t.set("customer_email",this.customerEmailModel),t.set("organisation",this.organisationId),kn.post("/new_customer/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{})},updateCustomerData:function(t){this[t.field]=t.value}}},xn,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addCustomerCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"7d129116",null);Cn.options.__file="src/js/components/customers/NewCustomerModal.vue";var Mn=Cn.exports,Sn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Customers")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-organisation",attrs:{type:"text"},domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),n("list-customers",{attrs:{"customer-results":t.localCustomerResults,"root-url":t.rootUrl,"static-url":t.staticUrl}}),t._v(" "),0==t.localCustomerResults.length?n("div",{staticClass:"alert alert-warning"},[t._v("There are no customers with the search parameters used. Please try again.")]):t._e()],1)])};Sn._withStripped=!0;const Tn=n(3);var En=J({name:"SearchCustomers",props:{customerResults:Array,staticUrl:{type:String,default:"/"},rootUrl:{type:String,root:"/"}},mixins:[ut],data(){return{localCustomerResults:this.customerResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),Tn.post(this.rootUrl+"search/customer/data/",t).then(t=>{this.localCustomerResults=t.data}).catch(t=>{})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},Sn,[],!1,null,"01876c9c",null);En.options.__file="src/js/components/search/SearchCustomers.vue";var jn=En.exports,On=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.customerResults,(function(e){return n("div",{staticClass:"row"},[n("div",{staticClass:"organisation-details"},[""==e.fields.customer_profile_picture?n("img",{staticClass:"organisation-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/product_tour.svg",alt:"Stakeholder Logo"}}):n("img",{staticClass:"organisation-image",attrs:{src:e.fields.customer_profile_picture,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[n("a",{attrs:{href:t.rootUrl+"customer_information/"+e.pk+"/"}},[t._v("\n "+t._s(e.fields.customer_first_name)+" "+t._s(e.fields.customer_last_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+e.fields.customer_email}},[t._v("\n "+t._s(e.fields.customer_email)+"\n ")])],1)])])})),0)};On._withStripped=!0;var In=J({name:"ListCustomers",props:{customerResults:Array,staticUrl:{type:String,default:"/"},rootUrl:{type:String,default:"/"}},mixins:[Z],methods:{}},On,[],!1,null,"2b1d5681",null);In.options.__file="src/js/components/customers/ListCustomers.vue";var Ln=In.exports,Dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Customer Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[t._m(1),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"form-group col-sm-3"},[n("label",[t._v("\n Title:\n "),!t.$v.customerTitleModel.required&&t.$v.customerTitleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.titleFixList,label:"title"},model:{value:t.customerTitleModel,callback:function(e){t.customerTitleModel=e},expression:"customerTitleModel"}})],1),t._v(" "),n("div",{staticClass:"form-group col-sm-4"},[n("label",[t._v("\n First Name:\n "),!t.$v.customerFirstNameModel.required&&t.$v.customerFirstNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerFirstNameModel,expression:"customerFirstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerFirstNameModel},on:{input:function(e){e.target.composing||(t.customerFirstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-sm-5"},[n("label",[t._v("\n Last Name:\n "),!t.$v.customerLastNameModel.required&&t.$v.customerLastNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerLastNameModel,expression:"customerLastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerLastNameModel},on:{input:function(e){e.target.composing||(t.customerLastNameModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),t.organisationResults.length>0?n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}):t._e(),t._v(" "),n("br"),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateCustomer}},[t._v("Update Customer")])])])],1)])};Dn._withStripped=!0;const Nn=n(3);var $n=J({name:"CustomerInformation",props:{customerResults:Array,defaultStakeholderImage:String,organisationResults:Array,titleList:Array},data(){return{customerEmailModel:this.customerResults[0].fields.customer_email,customerFirstNameModel:this.customerResults[0].fields.customer_first_name,customerLastNameModel:this.customerResults[0].fields.customer_last_name,customerTitleModel:this.customerResults[0].fields.customer_title,titleFixList:[]}},mixins:[h,ie],validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},organisationModel:{required:dt.required},customerTitleModel:{required:dt.required}},methods:{updateCustomer:function(){const t=new FormData;t.set("customer_email",this.customerEmailModel),t.set("customer_first_name",this.customerFirstNameModel),t.set("customer_last_name",this.customerLastNameModel),t.set("customer_title",this.customerTitleModel.value),this.showLoadingModal("Customer Information"),Nn.post(`/customer_information/${this.customerResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"customer",this.customerResults[0].pk)})}},mounted(){this.titleList.forEach(t=>{this.titleFixList.push({value:t.pk,title:t.fields.title}),t.pk==this.customerTitleModel&&(this.customerTitleModel={value:t.pk,title:t.fields.title})})}},Dn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please Note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the following details. If the customer is not assigned an organisation,\n NearBeach will treat this customer as a freelancer.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row customer-profile-image"},[e("img",{staticClass:"customer-profile-image",attrs:{src:"/static/NearBeach/images/placeholder/product_tour.svg",alt:"No Profile Picture"}}),this._v(" "),e("br"),this._v(" "),e("button",{staticClass:"btn btn-primary"},[this._v("Update Profile...")])])}],!1,null,"4dac8698",null);$n.options.__file="src/js/components/customers/CustomerInformation.vue";var An=$n.exports,Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-row"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-organisation",attrs:{type:"text"},domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.includeClosedObjectsModel,expression:"includeClosedObjectsModel"}],attrs:{type:"checkbox",id:"inlcudeClosedObjects"},domProps:{checked:Array.isArray(t.includeClosedObjectsModel)?t._i(t.includeClosedObjectsModel,null)>-1:t.includeClosedObjectsModel},on:{change:function(e){var n=t.includeClosedObjectsModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.includeClosedObjectsModel=n.concat([null])):o>-1&&(t.includeClosedObjectsModel=n.slice(0,o).concat(n.slice(o+1)))}else t.includeClosedObjectsModel=i}}}),t._v(" "),n("label",{attrs:{for:"inlcudeClosedObjects"}},[t._v(" Include Closed Objects")])])])])]),t._v(" "),n("br"),t._v(" "),t.localSearchResults.request_for_change.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.request_for_change,"import-variables":t.requestForChangeVariables,destination:"rfc"}}):t._e(),t._v(" "),t.localSearchResults.requirement.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.requirement,"import-variables":t.requirementVariables,destination:"requirement"}}):t._e(),t._v(" "),t.localSearchResults.project.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.project,"import-variables":t.projectVariables,destination:"project"}}):t._e(),t._v(" "),t.localSearchResults.task.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.task,"import-variables":t.taskVariables,destination:"task"}}):t._e(),t._v(" "),t.localSearchResults.kanban.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.kanban,"import-variables":t.kanbanVariables,destination:"kanban"}}):t._e(),t._v(" "),t.localSearchResults.requirement.length+t.localSearchResults.project.length+t.localSearchResults.task.length+t.localSearchResults.request_for_change==0?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - but there are no results for this search term. Please try searching for a different search term.\n ")]):t._e()],1)};Rn._withStripped=!0;const Pn=n(3);var qn=J({name:"SearchObjects",props:{includeClosed:{Boolean:Boolean},rootUrl:{type:String,default:"/"},searchInput:{String:String,required:!1},searchResults:{Array:Array,required:!0}},mixins:[ut],data(){return{includeClosedObjectsModel:this.includeClosed,kanbanVariables:{header:"Kanban",prefix:"Kb",id:"kanban_board_id",title:"kanban_board_name",status:"kanban_board_status"},localSearchResults:this.searchResults,projectVariables:{header:"Projects",prefix:"Pro",id:"project_id",title:"project_name",status:"project_status"},requestForChangeVariables:{header:"Request for Change",prefix:"Rfc",id:"rfc_id",title:"rfc_title",status:"rfc_status"},requirementVariables:{header:"Requirements",prefix:"Req",id:"requirement_id",title:"requirement_title",status:"requirement_status__requirement_status"},searchModel:this.searchInput,searchTimeout:"",taskVariables:{header:"Tasks",prefix:"Task",id:"task_id",title:"task_short_description",status:"task_status"}}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),t.set("include_closed",this.includeClosedObjectsModel),Pn.post(this.rootUrl+"search/data/",t).then(t=>{this.localSearchResults=t.data}).catch(t=>{})}},watch:{includeClosedObjectsModel:function(){""!=this.searchTimeout&&clearTimeout(this.searchTimeout),this.getSearchResults()},searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}},mounted(){null==this.includeClosed&&(this.includeClosedObjectsModel=!1)}},Rn,[],!1,null,"6f24af9e",null);qn.options.__file="src/js/components/search/SearchObjects.vue";var zn=qn.exports,Fn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card search-card"},[n("div",{staticClass:"card-body"},[n("h2",[t._v(t._s(t.importVariables.header)+" Search Results")]),t._v(" "),n("hr"),t._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",{attrs:{width:"75%"}},[t._v(t._s(t.importVariables.header))]),t._v(" "),n("td",{attrs:{width:"25%"}},[t._v("Status")])])]),t._v(" "),n("tbody",t._l(t.searchResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/"+t.destination+"_information/"+e[t.importVariables.id]+"/"}},[n("p",[t._v(t._s(e[t.importVariables.title]))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n "+t._s(t.importVariables.prefix)+t._s(e[t.importVariables.id])+"\n ")])])]),t._v(" "),n("td",[t._v("\n "+t._s(e[t.importVariables.status])+"\n ")])])})),0)])])])};Fn._withStripped=!0;var Un=J({name:"ListSearchResults",props:{destination:String,importVariables:Object,searchResults:Array}},Fn,[],!1,null,"2d188e95",null);Un.options.__file="src/js/components/search/ListSearchResults.vue";var Bn=Un.exports,Vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Project Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Project Name\n "),!t.$v.projectNameModel.required&&t.$v.projectNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.projectNameModel,expression:"projectNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.projectNameModel},on:{input:function(e){e.target.composing||(t.projectNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Project Description:\n "),!t.$v.projectDescriptionModel.required&&t.$v.projectDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.projectDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.projectDescriptionModel,callback:function(e){t.projectDescriptionModel=e},expression:"projectDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},[n("v-select",{attrs:{options:t.statusOptions},model:{value:t.projectStatusModel,callback:function(e){t.projectStatusModel=e},expression:"projectStatusModel"}})],1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},["Closed"===t.projectStatusModel?n("div",{staticClass:"alert alert-danger"},[t._v("\n Saving the project with this status will close the project.\n ")]):t._e()]),t._v(" "),t.isReadOnly?n("div",{staticClass:"col-md-4"},["Closed"===t.projectStatusModel?n("div",{staticClass:"alert alert-info"},[t._v("\n Project has been closed.\n ")]):t._e()]):t._e()]),t._v(" "),n("hr"),t._v(" "),n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"project","is-dirty-end":t.$v.projectEndDateModel.$dirty||t.$v.projectStartDateModel.$dirty,"end-date-model":t.projectEndDateModel,"start-date-model":t.projectStartDateModel},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),t.userLevel>=2&&!t.isReadOnly?n("hr"):t._e(),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[t.userLevel>=3?n("a",{staticClass:"btn btn-danger",attrs:{href:"javascript:void(0)"},on:{click:t.closeProject}},[t._v("Close Project")]):t._e(),t._v(" "),t.userLevel>=2?n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateProject}},[t._v("Update Project")]):t._e()])])],1)])};Vn._withStripped=!0;var Hn=n(19);const Wn=n(3);var Gn=J({name:"ProjectInformation",props:{defaultStakeholderImage:String,organisationResults:Array,projectResults:Array,userLevel:{type:Number,default:1}},mixins:[h,ie],data(){return{isReadOnly:!1,projectDescriptionModel:this.projectResults[0].fields.project_description,projectEndDateModel:Hn.DateTime.fromISO(this.projectResults[0].fields.project_end_date),projectNameModel:this.projectResults[0].fields.project_name,projectStartDateModel:Hn.DateTime.fromISO(this.projectResults[0].fields.project_start_date),projectStatusModel:this.projectResults[0].fields.project_status,statusOptions:["Backlog","Blocked","In Progress","Test/Review"]}},validations:{projectDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},projectEndDateModel:{required:dt.required},projectNameModel:{required:dt.required},projectStartDateModel:{required:dt.required}},methods:{closeProject:function(){this.projectStatusModel="Closed",this.updateProject()},updateDates:function(t){this.projectEndDateModel=t.end_date,this.projectStartDateModel=t.start_date},updateProject:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("project_description",this.projectDescriptionModel),t.set("project_end_date",this.projectEndDateModel),t.set("project_name",this.projectNameModel),t.set("project_start_date",this.projectStartDateModel),t.set("project_status",this.projectStatusModel),this.showLoadingModal("Project"),Wn.post(`/project_information/${this.projectResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal(),"Closed"===this.projectStatusModel&&window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.userLevel>=3&&this.statusOptions.push("Closed"),this.isReadOnly="Closed"===this.projectResults[0].fields.project_status}},Vn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Edit the project information and then click the "Update Project" button at the bottom of the\n page\n ')])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Project Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please update the project's task to reflect it's current status. Then click on the \"Update\n Project\" button to save the change.\n ")])])}],!1,null,"d5eb53a8",null);Gn.options.__file="src/js/components/projects/ProjectInformation.vue";var Yn=Gn.exports,Kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Project")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Project Name\n "),!t.$v.projectNameModel.required&&t.$v.projectNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.projectNameModel,expression:"projectNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.projectNameModel},on:{input:function(e){e.target.composing||(t.projectNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Project Description:\n "),!t.$v.projectDescriptionModel.required&&t.$v.projectDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.projectDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.projectDescriptionModel,callback:function(e){t.projectDescriptionModel=e},expression:"projectDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("get-stakeholders",{attrs:{"is-dirty":t.$v.stakeholderModel.$dirty},on:{update_stakeholder_model:function(e){return t.updateStakeholderModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"project","is-dirty-end":t.$v.projectEndDateModel.$dirty||t.$v.projectStartDateModel.$dirty},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"project","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewProject}},[t._v("Create new Project")])])])],1)])};Kn._withStripped=!0;const Zn=n(3);var Xn=J({name:"NewProject",props:{groupResults:Array,rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"},userGroupResults:{type:Array,default:()=>[]}},mixins:[h],data:()=>({groupModel:{},projectDescriptionModel:"",projectEndDateModel:"",projectNameModel:"",projectStartDateModel:"",stakeholderModel:{}}),validations:{groupModel:{required:dt.required},projectDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},projectEndDateModel:{required:dt.required},projectNameModel:{required:dt.required},projectStartDateModel:{required:dt.required},stakeholderModel:{required:dt.required}},methods:{submitNewProject:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("project_name",this.projectNameModel),t.set("project_description",this.projectDescriptionModel),t.set("organisation",this.stakeholderModel.value),t.set("project_start_date",this.projectStartDateModel),t.set("project_end_date",this.projectEndDateModel),this.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),Zn.post(this.rootUrl+"new_project/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateDates:function(t){this.projectStartDateModel=t.start_date,this.projectEndDateModel=t.end_date},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}},mounted(){}},Kn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n To create a new project, fill out the form and submit at the bottom of the page.\n ")])])}],!1,null,"660cc132",null);Xn.options.__file="src/js/components/projects/NewProject.vue";var Jn=Xn.exports,Qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Task Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Task Short Description:\n "),!t.$v.taskShortDescriptionModel.required&&t.$v.taskShortDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.taskShortDescriptionModel,expression:"taskShortDescriptionModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.taskShortDescriptionModel},on:{input:function(e){e.target.composing||(t.taskShortDescriptionModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Task Long Description:\n "),!t.$v.taskDescriptionModel.required&&t.$v.taskDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.taskDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.taskDescriptionModel,callback:function(e){t.taskDescriptionModel=e},expression:"taskDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},[n("v-select",{attrs:{options:t.statusOptions},model:{value:t.taskStatusModel,callback:function(e){t.taskStatusModel=e},expression:"taskStatusModel"}})],1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},["Closed"===t.taskStatusModel?n("div",{staticClass:"alert alert-danger"},[t._v("\n Saving the task with this status will close the task.\n ")]):t._e()]),t._v(" "),t.isReadOnly?n("div",{staticClass:"col-md-4"},["Closed"===t.taskStatusModel?n("div",{staticClass:"alert alert-info"},[t._v("\n Project has been closed.\n ")]):t._e()]):t._e()]),t._v(" "),n("hr"),t._v(" "),n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"task","is-dirty-end":t.$v.taskEndDateModel.$dirty||t.$v.taskStartDateModel.$dirty,"start-date-model":t.taskStartDateModel,"end-date-model":t.taskEndDateModel},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),t.userLevel>=2&&!t.isReadOnly?n("hr"):t._e(),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[t.userLevel>=3?n("a",{staticClass:"btn btn-danger",attrs:{href:"javascript:void(0)"},on:{click:t.closeTask}},[t._v("Close Task")]):t._e(),t._v(" "),t.userLevel>=2?n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateTask}},[t._v("Update Task")]):t._e()])])],1)])};Qn._withStripped=!0;const tr=n(3);var er=J({name:"TaskInformation",props:{defaultStakeholderImage:String,groupResults:Array,stakeholderModel:Array,taskResults:Array,organisationResults:Array,userLevel:{type:Number,default:1}},data(){return{isReadOnly:!1,statusOptions:["Backlog","Blocked","In Progress","Test/Review"],taskDescriptionModel:this.taskResults[0].fields.task_long_description,taskEndDateModel:Hn.DateTime.fromISO(this.taskResults[0].fields.task_end_date),taskShortDescriptionModel:this.taskResults[0].fields.task_short_description,taskStartDateModel:Hn.DateTime.fromISO(this.taskResults[0].fields.task_start_date),taskStatusModel:this.taskResults[0].fields.task_status}},mixins:[h,ie],validations:{taskDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},taskEndDateModel:{required:dt.required},taskShortDescriptionModel:{required:dt.required},taskStartDateModel:{required:dt.required}},methods:{closeTask:function(){this.taskStatusModel="Closed",this.updateTask()},updateTask:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();this.showLoadingModal("task");const t=new FormData;t.set("task_long_description",this.taskDescriptionModel),t.set("task_end_date",this.taskEndDateModel),t.set("task_short_description",this.taskShortDescriptionModel),t.set("task_start_date",this.taskStartDateModel),t.set("task_status",this.taskStatusModel),tr.post(`/task_information/${this.taskResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal(),"Closed"===this.taskStatusModel&&window.location.reload("Closed"===this.taskStatusModel)}).catch(t=>{this.showErrorModal(t,this.destination)})},updateDates:function(t){this.taskEndDateModel=t.end_date,this.taskStartDateModel=t.start_date},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}},mounted(){this.userLevel>=3&&this.statusOptions.push("Closed"),this.isReadOnly="Closed"===this.taskResults[0].fields.task_status}},Qn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n To create a new task, fill out the form and submit at the bottom of the page.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Task Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please update the task's status to reflect it's current status. Then click on the \"Update\n Task\" button to save the change.\n ")])])}],!1,null,"2cad45ca",null);er.options.__file="src/js/components/tasks/TaskInformation.vue";var nr=er.exports,rr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Task")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Task Short Description:\n "),!t.$v.taskShortDescriptionModel.required&&t.$v.taskShortDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.taskShortDescriptionModel,expression:"taskShortDescriptionModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.taskShortDescriptionModel},on:{input:function(e){e.target.composing||(t.taskShortDescriptionModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Task Long Description:\n "),!t.$v.taskDescriptionModel.required&&t.$v.taskDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.taskDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.taskDescriptionModel,callback:function(e){t.taskDescriptionModel=e},expression:"taskDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("get-stakeholders",{attrs:{"is-dirty":t.$v.stakeholderModel.$dirty},on:{update_stakeholder_model:function(e){return t.updateStakeholderModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"task","is-dirty-end":t.$v.taskEndDateModel.$dirty||t.$v.taskStartDateModel.$dirty},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"task","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewTask}},[t._v("Create new Task")])])])],1)])};rr._withStripped=!0;const ir=n(3);var or=J({name:"NewTask",props:{groupResults:Array,userGroupResults:{type:Array,default:()=>[]}},data:()=>({groupModel:{},stakeholderModel:"",staticUrl:{type:String,default:"/"},taskDescriptionModel:"",taskEndDateModel:"",taskShortDescriptionModel:"",taskStartDateModel:""}),mixins:[h],validations:{groupModel:{required:dt.required},stakeholderModel:{required:dt.required},taskDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},taskEndDateModel:{required:dt.required},taskShortDescriptionModel:{required:dt.required},taskStartDateModel:{required:dt.required}},methods:{submitNewTask:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("organisation",this.stakeholderModel.value),t.set("task_long_description",this.taskDescriptionModel),t.set("task_end_date",this.taskEndDateModel),t.set("task_short_description",this.taskShortDescriptionModel),t.set("task_start_date",this.taskStartDateModel),this.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),ir.post("save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateDates:function(t){this.taskEndDateModel=t.end_date,this.taskStartDateModel=t.start_date},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}}},rr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n To create a new task, fill out the form and submit at the bottom of the page.\n ")])])}],!1,null,"37f1f2a8",null);or.options.__file="src/js/components/tasks/NewTask.vue";var ar=or.exports,sr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Between Dates")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Choose the start and end date of the "+t._s(t.destination)+". Please note the end date can not be earlier than\n the start date. They can be equal.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.destination)+" Start Date:\n "),!t.$v.localStartDateModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please select a date.")]):t._e()]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.localStartDateModel,callback:function(e){t.localStartDateModel=e},expression:"localStartDateModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.destination)+" End Date:\n "),!t.$v.localEndDateModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please select a date.")]):t._e()]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.localEndDateModel,callback:function(e){t.localEndDateModel=e},expression:"localEndDateModel"}})],1)])])};sr._withStripped=!0;var lr=J({name:"BetweenDates",props:{destination:String,endDateModel:{type:[Object,String],default(){var t=Hn.DateTime.local();return t=t.plus({days:28})}},isDirty:Boolean,startDateModel:{type:[Object,String],default:()=>Hn.DateTime.local()}},validations:{localEndDateModel:{required:dt.required},localStartDateModel:{required:dt.required}},data:()=>({localEndDateModel:"",localStartDateModel:""}),methods:{emitDates:function(){this.$emit("update_dates",{start_date:this.localStartDateModel,end_date:this.localEndDateModel})}},watch:{localEndDateModel:function(){var t=Hn.DateTime.local(this.localEndDateModel),e=Hn.DateTime.local(this.localStartDateModel);t.toMillis()-e.toMillis()<0&&(this.localEndDateModel=this.localStartDateModel()),this.emitDates()},localStartDateModel:function(){var t=Hn.DateTime.local(this.localEndDateModel),e=Hn.DateTime.local(this.localStartDateModel);t.toMillis()-e.toMillis()<0&&(this.localStartDateModel=this.localEndDateModel()),this.emitDates()}},mounted(){this.localEndDateModel=this.endDateModel.toISO(),this.localStartDateModel=this.startDateModel.toISO()}},sr,[],!1,null,"1bf47cf3",null);lr.options.__file="src/js/components/dates/BetweenDates.vue";var cr=lr.exports,dr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8 organisation-details"},[n("img",{staticClass:"organisation-image",attrs:{src:t.getStakeholderImage,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[n("a",{attrs:{href:"/organisation_information/"+t.organisationResults[0].pk+"/"}},[t._v("\n "+t._s(t.stakeholderModel.organisation_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"organisation-link"},[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" Website:\n "),n("a",{attrs:{href:t.stakeholderModel.organisation_website,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.stakeholderModel.organisation_website)+"\n ")])],1),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+t.stakeholderModel.organisation_email}},[t._v("\n "+t._s(t.stakeholderModel.organisation_email)+"\n ")])],1)])])};dr._withStripped=!0;var ur=J({name:"StakeholderInformation",props:{defaultStakeholderImage:String,organisationResults:Array},data(){return{stakeholderModel:this.organisationResults[0].fields}},mixins:[Z],computed:{getStakeholderImage:function(){return""===this.stakeholderModel.organisation_profile_picture?this.defaultStakeholderImage:this.stakeholderModel.organisation_profile_picture}},methods:{}},dr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Stakeholder")])])}],!1,null,"664c2a68",null);ur.options.__file="src/js/components/organisations/StakeholderInformation.vue";var pr=ur.exports,mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Kanban")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Kanban Board Name\n "),!t.$v.kanbanBoardNameModel.required&&t.$v.kanbanBoardNameModel.$dirty?n("span",{staticClass:"error"},[t._v("\n Please suppy a title.\n ")]):t._e(),t._v(" "),t.uniqueKanbanBoardName?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a unique name")]),t._v(" "),t.checkingKanbanBoardName?n("span",{staticClass:"error"},[t._v(" Checking kanban name...")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.kanbanBoardNameModel,expression:"kanbanBoardNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.kanbanBoardNameModel},on:{input:function(e){e.target.composing||(t.kanbanBoardNameModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Columns","property-list":t.columnModel,source:"columnModel","is-dirty":t.$v.columnModel.$dirty},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Levels","property-list":t.levelModel,source:"levelModel","is-dirty":t.$v.columnModel.$dirty},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"kanban_board","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addNewKanban}},[t._v("\n Add Kanban\n ")])])])],1)])};mr._withStripped=!0;const fr=n(3);var hr=J({name:"NewKanban",props:{groupResults:Array,rootUrl:{type:String,default:"/"},userGroupResults:{type:Array,default:()=>[]}},mixins:[h,ut],data:()=>({checkingKanbanBoardName:!1,columnModel:[{id:0,title:"Backlog"},{id:1,title:"Blocked"},{id:2,title:"In Progress"},{id:4,title:"Review and QA"},{id:5,title:"Completed"}],groupModel:[],kanbanBoardNameModel:"",levelModel:[{id:0,title:"Sprint 1"},{id:1,title:"Sprint 2"}],searchTimeout:"",uniqueKanbanBoardName:!0}),validations:{columnModel:{required:dt.required},groupModel:{required:dt.required},kanbanBoardNameModel:{required:dt.required},levelModel:{required:dt.required}},watch:{kanbanBoardNameModel:function(){this.checkingKanbanBoardName=!0,this.searchTrigger({return_function:this.checkKanbanBoardName,searchTimeout:this.searchTimeout,search:this.kanbanBoardNameModel,loading:null})}},methods:{addNewKanban:function(){if(this.$v.$touch(),this.$v.$invalid||!this.uniqueKanbanBoardName||this.checkingKanbanBoardName)return void this.showValidationErrorModal();const t=new FormData;t.set("kanban_board_name",this.kanbanBoardNameModel),this.columnModel.forEach(e=>{t.append("column_title",e.title)}),this.levelModel.forEach(e=>{t.append("level_title",e.title)}),this.groupModel.forEach(e=>{t.append("group_list",e.value)}),fr.post(this.rootUrl+"new_kanban_save/",t).then(t=>{window.location.href=t.data}).catch(t=>{})},checkKanbanBoardName:function(){const t=new FormData;t.set("kanban_board_name",this.kanbanBoardNameModel),fr.post(this.rootUrl+"kanban_information/check_kanban_board_name/",t).then(t=>{this.uniqueKanbanBoardName=0==t.data.length,this.checkingKanbanBoardName=!1}).catch(t=>{})},updateGroupModel:function(t){this.groupModel=t},updatePropertyList:function(t){this[t.source]=t.data}}},mr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Board names must be unique.\n\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Columns & Levels")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Drag the cards around to sort out the columns how you want them.\n ")])])}],!1,null,"44162f2b",null);hr.options.__file="src/js/components/kanban/NewKanban.vue";var vr=hr.exports,gr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("strong",[t._v(t._s(t.propertyName))]),t._v(" "),!t.$v.localPropertyList.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please create at least one "+t._s(t.propertyName)+".")]):t._e(),t._v(" "),n("br"),t._v(" "),n("draggable",{attrs:{"ghost-class":"ghost"},on:{change:t.sendPropertyListUp},model:{value:t.localPropertyList,callback:function(e){t.localPropertyList=e},expression:"localPropertyList"}},[n("transition-group",{attrs:{type:"transition",name:"flip-list"}},t._l(t.localPropertyList,(function(e){return n("div",{key:e.id,staticClass:"sortable",attrs:{id:e.id,"data-id":e.id,"data-title":e.title},on:{dblclick:function(e){return t.editItem(e)}}},[n("strong",{key:e.id,attrs:{id:e.id,"data-id":e.id,"data-title":e.title}},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),t.localPropertyList.length>1?n("span",{on:{click:function(n){return t.removeItem(e.id)}}},[n("IconifyIcon",{attrs:{icon:t.icons.xCircle}})],1):t._e()])})),0)],1),t._v(" "),n("hr"),t._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:t.openModal}},[t._v("\n Add "+t._s(t.propertyName)+" Item\n ")]),t._v(" "),n("div",{staticClass:"modal fade",attrs:{id:"addItem"+t.propertyName,tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Add/Edit "+t._s(t.propertyName))]),t._v(" "),n("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addItemClose"+t.propertyName}})]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.propertyName)+" Item Description")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.newPropertyItem,expression:"newPropertyItem"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newPropertyItem},on:{input:function(e){e.target.composing||(t.newPropertyItem=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addItem}},[t._v("\n Save changes\n ")])])])])]),t._v(" "),n("div",{staticClass:"modal fade",attrs:{id:"deleteItem"+t.propertyName,tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title"},[t._v("Delete "+t._s(t.propertyName))]),t._v(" "),n("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"deleteItemClose"+t.propertyName}})]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("v-select",{staticClass:"new-card-destination",staticStyle:{"z-index":"9999"},attrs:{label:"title",values:"id",options:t.newCardDestinationList},model:{value:t.destinationItemId,callback:function(e){t.destinationItemId=e},expression:"destinationItemId"}})],1),t._v(" "),n("br"),t._v(" "),t._m(1)]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:null==this.destinationItemId},on:{click:t.deleteItem}},[t._v("\n Delete "+t._s(t.propertyName)+"\n ")])])])])])],1)};gr._withStripped=!0;const br=n(3);var _r=J({name:"KanbanPropertyOrder",props:{isDirty:Boolean,isNewMode:{type:Boolean,default:!0},kanbanBoardId:{type:Number,default:0},propertyList:Array,propertyName:String,source:String},data(){return{deleteItemId:"",destinationItemId:"",localPropertyList:this.propertyList,newCardDestinationList:[],newPropertyItem:"",singleItemId:""}},mixins:[h,Z],validations:{localPropertyList:{required:dt.required}},watch:{propertyList:function(){this.localPropertyList=this.propertyList}},methods:{addItem:function(){""!=this.newPropertyItem&&(this.isNewMode?this.newModeAddItem():this.editModeAddItem(),this.sendPropertyListUp(),document.getElementById("addItemClose"+this.propertyName).click())},deleteItem:function(){const t=new FormData;t.set("delete_item_id",this.deleteItemId),t.set("destination_item_id",this.destinationItemId.id);const e=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/delete/`;br.post(e,t).then(t=>{this.localPropertyList=this.localPropertyList.filter(t=>t.id!=this.deleteItemId),this.$emit("update_property_list",{source:this.source,data:this.localPropertyList}),document.getElementById("deleteItemClose"+this.propertyName).click()}).catch(t=>{this.showErrorModal(t,"kanban item delete",this.kanbanBoardId)})},editItem:function(t){this.newPropertyItem=t.target.dataset.title,this.singleItemId=t.target.dataset.id,this.openModal()},editModeAddItem:async function(){const t=`kanban_${this.propertyName.toLowerCase()}_name`,e=`kanban_${this.propertyName.toLowerCase()}_sort_number`,n=this.singleItemId,r=new FormData;if(r.set(t,this.newPropertyItem),r.set(e,this.getMaxId()+1),""==n)var i=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/new/`;else i=`/kanban_${this.propertyName.toLowerCase()}/${this.singleItemId}/edit/`;await br.post(i,r).then(e=>{const r=e.data[0];""==n?this.localPropertyList.push({id:r.pk,title:r.fields[t]}):this.localPropertyList.forEach(t=>{t.id==this.singleItemId&&(t.title=this.newPropertyItem)}),this.singleItemId="",this.newPropertyItem=""}).catch(t=>{this.showErrorModal(t,"kanban board",this.kanbanBoardId)})},getMaxId:function(){const t=this.localPropertyList.map(t=>t.id);return t.sort((t,e)=>t-e)[t.length-1]},newModeAddItem:function(){""==this.singleItemId?this.localPropertyList.push({id:this.getMaxId()+1,title:this.newPropertyItem}):this.localPropertyList.forEach(t=>{t.id==this.singleItemId&&(t.title=this.newPropertyItem)}),this.singleItemId="",this.newPropertyItem=""},openModal:function(){new f.a(document.getElementById("addItem"+this.propertyName)).show()},removeItem:function(t){this.isNewMode?(this.localPropertyList=this.localPropertyList.filter(e=>e.id!=t),this.sendPropertyListUp()):(this.deleteItemId=t,this.newCardDestinationList=this.localPropertyList.filter(t=>t.id!=this.deleteItemId),this.destinationItemId=this.newCardDestinationList[0],new f.a(document.getElementById("deleteItem"+this.propertyName)).show())},sendPropertyListUp:function(){if(this.$emit("update_property_list",{source:this.source,data:this.localPropertyList}),!this.isNewMode){const t=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/resort/`,e=new FormData;this.localPropertyList.forEach((t,n)=>{e.append("item",t.id)}),br.post(t,e).then(t=>{}).catch(t=>{})}}}},gr,[function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("strong",[this._v("Destination for Cards")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"alert alert-warning"},[e("h4",[this._v("WARNING")]),this._v(" "),e("p",[this._v("This process can not be reversed. Deleting a {propertyName} will remove it.")]),this._v(" "),e("p",[this._v("\n All existing cards will be moved to the stated location you have provided.\n Any cards that have been archived or deleted, will still be associated with\n the removed card.\n ")])])}],!1,null,"e9150b94",null);_r.options.__file="src/js/components/kanban/KanbanPropertyOrder.vue";var yr=_r.exports,wr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h1",{staticClass:"kanban-header"},[t._v(t._s(t.kanbanBoardResults[0].fields.kanban_board_name))]),t._v(" "),t.userLevel>=3?n("a",{staticClass:"kanban-edit-text",attrs:{href:"edit_board/"}},[t._v("\n Edit Kanban\n ")]):t._e(),t._v(" "),n("kanban-board",{attrs:{"column-results":t.columnResults,"kanban-board-results":t.kanbanBoardResults,"kanban-card-results":t.localKanbanCardResults,"level-results":t.levelResults,"new-card-info":t.newCardInfo},on:{double_clicked_card:function(e){return t.doubleClickedCard(e)}}}),t._v(" "),n("new-kanban-card",{attrs:{"kanban-card-results":t.kanbanCardResults,"column-results":t.columnResults,"level-results":t.levelResults,"kanban-board-results":t.kanbanBoardResults},on:{new_card:function(e){return t.newCard(e)}}}),t._v(" "),n("card-information",{attrs:{"card-information":t.cardInformation},on:{update_card:function(e){return t.updateCard(e)}}}),t._v(" "),n("new-kanban-link-wizard",{attrs:{"location-id":t.locationId,"column-results":t.columnResults,"level-results":t.levelResults},on:{new_card:function(e){return t.newCard(e)}}})],1)};wr._withStripped=!0;var xr=J({name:"KanbanInformation",props:{columnResults:Array,kanbanBoardResults:Array,kanbanCardResults:Array,levelResults:Array,locationId:Number,userLevel:Number},data(){return{cardInformation:{},localKanbanCardResults:this.kanbanCardResults,newCardInfo:[]}},methods:{doubleClickedCard:function(t){this.cardInformation=t},newCard:function(t){this.newCardInfo=t},updateCard:function(t){this.localKanbanCardResults.forEach(e=>{e.pk==t.kanban_card_id&&(e.fields.kanban_card_text=t.kanban_card_text,e.fields.kanban_column=t.kanban_column.value,e.fields.kanban_level=t.kanban_level.value)})}},mounted(){this.$store.commit({type:"updateLists",columnResults:this.columnResults,levelResults:this.levelResults})}},wr,[],!1,null,"62af6ca9",null);xr.options.__file="src/js/components/kanban/KanbanInformation.vue";var kr=xr.exports,Cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("draggable",{staticClass:"list-group kanban-cell",attrs:{group:"tasks",list:t.masterList,id:"kanban_cell_"+t.levelId+"_"+t.columnId,"data-level":t.levelId,"data-column":t.columnId},on:{end:function(e){return t.onEnd(e)}}},[t._l(t.masterList,(function(e){return n("div",{key:e.pk,staticClass:"list-group-item",attrs:{id:e.pk,"data-sort-number":e.fields.kanban_card_sort_number,"data-card-id":e.pk},on:{dblclick:function(e){return t.doubleClickCard(e)}}},[n("b",[t._v("#"+t._s(e.pk))]),n("br"),t._v("\n "+t._s(e.fields.kanban_card_text)+"\n "),n("IconifyIcon",{staticClass:"kanban-card-info-icon",attrs:{icon:t.icons.infoCircle},on:{click:function(n){return t.singleClickCard(e.pk)},dblclick:function(n){return t.singleClickCard(e.pk)}}})],1)})),t._v(" "),n("div",{staticClass:"kanban-add-new-cards"},[n("a",{staticClass:"kanban-link btn btn-primary",attrs:{href:"javascript:void(0)"},on:{click:t.addNewKanbanCard}},[t._v("\n New Card\n ")]),t._v(" "),n("a",{staticClass:"kanban-link btn btn-warning",attrs:{href:"javascript:void(0)"},on:{click:t.addNewLink}},[t._v("\n Link Object\n ")]),t._v(" "),n("a",{staticClass:"kanban-link btn btn-danger",attrs:{href:"javascript:void(0)"},on:{click:t.archiveCards}},[t._v("\n Archive Cards\n ")])])],2)};Cr._withStripped=!0;const Mr=n(3);var Sr=J({name:"KanbanCard",props:{columnId:Number,levelId:Number,newCardInfo:Array},data:()=>({}),computed:{...Object(o.b)({allCards:"getCards"}),masterList:function(){let t=this.allCards.filter(t=>t.fields.kanban_column==this.columnId&&t.fields.kanban_level==this.levelId);return t=t.sort((t,e)=>t.fields.kanban_card_sort_number-e.fields.kanban_card_sort_number),t}},mixins:[Z],methods:{addNewKanbanCard:function(){var t;(t=document.getElementById("addKanbanCardModal")).dataset.kanbanLevel=this.levelId,t.dataset.kanbanColumn=this.columnId,(t=new f.a(t)).show()},addNewLink:function(){var t;(t=document.getElementById("newLinkModal")).dataset.kanbanLevel=this.levelId,t.dataset.kanbanColumn=this.columnId,(t=new f.a(t)).show()},archiveCards:function(){const t=new FormData;this.masterList.forEach(e=>{t.append("kanban_card_id",e.pk)}),Mr.post("/kanban_information/archive_kanban_cards/",t).then(t=>{document.location.reload(!0)}).catch(t=>{})},checkCardOrder:function(){if(0===this.masterList.length)return;const t=this.masterList.map(t=>t.fields.kanban_card_sort_number),e=Math.min.apply(null,t),n=Math.max.apply(null,t);0===e&&n===this.masterList.length-1||(document.getElementById("sort_error").style.display="flex",this.masterList.forEach((t,e)=>{const n=new FormData;n.set("new_card_column",this.columnId.toString()),n.set("new_card_level",this.levelId.toString()),n.set("new_card_sort_number",e.toString()),n.set("old_card_column",t.fields.kanban_column),n.set("old_card_level",t.fields.kanban_level),n.set("old_card_sort_number",t.fields.kanban_card_sort_number),n.set("card_id",t.pk),Mr.post(`/kanban_information/${t.pk}/move_card/`,n).then(n=>{this.$store.commit({type:"updateKanbanCard",card_id:t.pk,kanban_column:this.columnId,kanban_level:this.levelId,kanban_card_sort_number:e})})}),document.getElementById("sort_error").style.display="")},doubleClickCard:function(t){const e=this.masterList.filter(e=>e.pk==t.target.dataset.cardId)[0];this.sendDataUpstream(e)},dragDifferentColumn(t){let e=t.get("new_card_column"),n=t.get("new_card_level"),r=parseInt(t.get("new_card_sort_number")),i=t.get("old_card_column"),o=t.get("old_card_level"),a=parseInt(t.get("old_card_sort_number")),s=t.get("card_id"),l=[];return this.allCards.filter(t=>t.fields.kanban_column==e&&t.fields.kanban_level==n&&t.fields.kanban_card_sort_number>=r).forEach(t=>{l.push({card_id:t.pk,kanban_column:e,kanban_level:n,kanban_card_sort_number:t.fields.kanban_card_sort_number+1})}),this.allCards.filter(t=>t.fields.kanban_column==i&&t.fields.kanban_level==o&&t.fields.kanban_card_sort_number>=a).forEach(t=>{t.pk==s?l.push({card_id:t.pk,kanban_column:e,kanban_level:n,kanban_card_sort_number:r}):l.push({card_id:t.pk,kanban_column:i,kanban_level:o,kanban_card_sort_number:t.fields.kanban_card_sort_number-1})}),l},dragSameColumn(t){let e=parseInt(t.get("new_card_sort_number")),n=parseInt(t.get("old_card_sort_number")),r=parseInt(t.get("new_card_column")),i=parseInt(t.get("new_card_level")),o=parseInt(t.get("card_id")),a=1-2*(n=n)*e+(e=n)*n+(et.fields.kanban_column===r&&t.fields.kanban_level===i&&t.fields.kanban_card_sort_number>=l&&t.fields.kanban_card_sort_number<=s),d=[];return c.forEach(t=>{t.pk==o?d.push({card_id:t.pk,kanban_column:r,kanban_level:i,kanban_card_sort_number:e}):d.push({card_id:t.pk,kanban_column:r,kanban_level:i,kanban_card_sort_number:t.fields.kanban_card_sort_number+a})}),d},onEnd:function(t){var e=t.to,n=t.from,r=t.item.dataset.cardId;let i=e.dataset.column,o=e.dataset.level,a=t.newIndex,s=n.dataset.column,l=n.dataset.level,c=t.oldIndex;const d=new FormData;d.set("new_card_column",i),d.set("new_card_level",o),d.set("new_card_sort_number",a),d.set("old_card_column",s),d.set("old_card_level",l),d.set("old_card_sort_number",c),d.set("card_id",r),Mr.post(`/kanban_information/${r}/move_card/`,d).then(t=>{let e=[];e=i==s&&o==l?this.dragSameColumn(d):this.dragDifferentColumn(d),e.forEach(t=>{this.$store.commit({type:"updateKanbanCard",card_id:t.card_id,kanban_column:t.kanban_column,kanban_level:t.kanban_level,kanban_card_sort_number:t.kanban_card_sort_number})})}).catch(t=>{})},sendDataUpstream:function(t){this.$store.commit({type:"updateCard",cardId:t.pk,cardTitle:t.fields.kanban_card_text,cardDescription:t.fields.kanban_card_description,cardColumn:t.fields.kanban_column,cardLevel:t.fields.kanban_level});new f.a(document.getElementById("cardInformationModal")).show()},singleClickCard:function(t){const e=this.masterList.filter(e=>e.pk==t)[0];this.sendDataUpstream(e)}},watch:{newCardInfo:function(){this.columnId==this.newCardInfo[0].fields.kanban_column&&this.levelId==this.newCardInfo[0].fields.kanban_level&&this.masterList.push(this.newCardInfo[0])}},mounted(){this.checkCardOrder()}},Cr,[],!1,null,"6fbeb263",null);Sr.options.__file="src/js/components/kanban/KanbanCard.vue";var Tr=Sr.exports,Er=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kanban-container",on:{scroll:t.scrollProcedure}},[n("div",{staticClass:"kanban-header-row"},t._l(t.columnResults,(function(e){return n("div",{key:e.pk,staticClass:"kanban-column-header"},[t._v("\n "+t._s(e.fields.kanban_column_name)+"\n ")])})),0),t._v(" "),n("div",{staticClass:"kanban-header-row kanban-sticky-row",staticStyle:{display:"none"}},t._l(t.columnResults,(function(e){return n("div",{key:e.pk,staticClass:"kanban-column-header"},[t._v("\n "+t._s(e.fields.kanban_column_name)+"\n ")])})),0),t._v(" "),t._l(t.levelResults,(function(e){return n("div",{key:e.pk},[n("div",{staticClass:"kanban-level-header"},[n("div",{staticClass:"kanban-level-div"},[t._v(t._s(e.fields.kanban_level_name))])]),t._v(" "),n("kanban-row",{attrs:{"level-id":e.pk,"new-card-info":t.newCardInfo},on:{double_clicked_card:function(e){return t.doubleClickedCard(e)}}})],1)}))],2)};Er._withStripped=!0;var jr=J({name:"KanbanBoard",props:{columnResults:Array,kanbanBoardResults:Array,kanbanCardResults:Array,levelResults:Array,newCardInfo:Array},mixins:[Z],data:()=>({}),created(){window.addEventListener("resize",this.resizeProcedure),window.addEventListener("scroll",this.scrollProcedure)},destroyed(){window.removeEventListener("resize",this.resizeProcedure),window.removeEventListener("scroll",this.scrollProcedure)},methods:{doubleClickedCard:function(t){this.$emit("double_clicked_card",t)},resizeProcedure:function(){const t=400*this.columnResults.length;let e=document.getElementsByClassName("kanban-container");if(e=e[0].clientWidth,t{e.style=`max-width: ${t}px;`})}else{let t=document.getElementsByClassName("kanban-level-div");Array.from(t).forEach(t=>{t.style="max-width: null;"})}},scrollProcedure:function(){var t=document.getElementsByClassName("kanban-sticky-row")[0],e=document.getElementsByClassName("kanban-container")[0];t.scrollLeft=e.scrollLeft;var n=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;t.style.display=n<90?"none":""}},mounted(){this.resizeProcedure(),this.$store.commit({type:"initPayload",kanbanCardResults:this.kanbanCardResults,levelResults:this.levelResults,columnResults:this.columnResults})}},Er,[],!1,null,"3995c923",null);jr.options.__file="src/js/components/kanban/KanbanBoard.vue";var Or=jr.exports,Ir=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kanban-row"},t._l(t.columnResults,(function(e){return n("kanban-card",{key:e.pk,attrs:{"level-id":t.levelId,"column-id":e.pk,"new-card-info":t.newCardInfo},on:{double_clicked_card:function(e){return t.doubleClickedCard(e)}}})})),1)};Ir._withStripped=!0;var Lr=J({name:"KanbanRow",props:{levelId:Number,newCardInfo:Array},computed:{...Object(o.b)({columnResults:"getColumns"})},methods:{doubleClickedCard:function(t){this.$emit("double_clicked_card",t)}}},Ir,[],!1,null,"4b574152",null);Lr.options.__file="src/js/components/kanban/KanbanRow.vue";var Dr=Lr.exports,Nr=function(){var t=this.$createElement;this._self._c;return this._m(0)};Nr._withStripped=!0;var $r=function(t,e){return te?1:t>=e?0:NaN},Ar=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return $r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var Rr=Ar($r),Pr=Rr.right,qr=(Rr.left,Pr);var zr=Array.prototype,Fr=(zr.slice,zr.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=Ur?10:o>=Br?5:o>=Vr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ur?10:o>=Br?5:o>=Vr?2:1)}function Gr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ur?i*=10:o>=Br?i*=5:o>=Vr&&(i*=2),e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ai(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;oe?1:t>=e?0:NaN}var _i="http://www.w3.org/1999/xhtml",yi={svg:"http://www.w3.org/2000/svg",xhtml:_i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},wi=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),yi.hasOwnProperty(e)?{space:yi[e],local:t}:t};function xi(t){return function(){this.removeAttribute(t)}}function ki(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ci(t,e){return function(){this.setAttribute(t,e)}}function Mi(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Si(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ti(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ei=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function ji(t){return function(){this.style.removeProperty(t)}}function Oi(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ii(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Li(t,e){return t.style.getPropertyValue(e)||Ei(t).getComputedStyle(t,null).getPropertyValue(e)}function Di(t){return function(){delete this[t]}}function Ni(t,e){return function(){this[t]=e}}function $i(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ai(t){return t.trim().split(/^|\s+/)}function Ri(t){return t.classList||new Pi(t)}function Pi(t){this._node=t,this._names=Ai(t.getAttribute("class")||"")}function qi(t,e){for(var n=Ri(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Vi(){this.textContent=""}function Hi(t){return function(){this.textContent=t}}function Wi(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Gi(){this.innerHTML=""}function Yi(t){return function(){this.innerHTML=t}}function Ki(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Zi(){this.nextSibling&&this.parentNode.appendChild(this)}function Xi(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ji(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_i&&e.documentElement.namespaceURI===_i?e.createElement(t):e.createElementNS(n,t)}}function Qi(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var to=function(t){var e=wi(t);return(e.local?Qi:Ji)(e)};function eo(){return null}function no(){var t=this.parentNode;t&&t.removeChild(this)}function ro(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function io(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var oo={},ao=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(oo={mouseenter:"mouseover",mouseleave:"mouseout"}));function so(t,e,n){return t=lo(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function lo(t,e,n){return function(r){var i=ao;ao=r;try{t.call(this,this.__data__,e,n)}finally{ao=i}}}function co(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function uo(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=w&&(w=y+1);!(_=g[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=bi);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?ji:"function"==typeof e?Ii:Oi)(t,e,null==n?"":n)):Li(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Di:"function"==typeof e?$i:Ni)(t,e)):this.node()[t]},classed:function(t,e){var n=Ai(t+"");if(arguments.length<2){for(var r=Ri(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?qo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?qo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Eo.exec(t))?new Uo(e[1],e[2],e[3],1):(e=jo.exec(t))?new Uo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Oo.exec(t))?qo(e[1],e[2],e[3],e[4]):(e=Io.exec(t))?qo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Lo.exec(t))?Wo(e[1],e[2]/100,e[3]/100,1):(e=Do.exec(t))?Wo(e[1],e[2]/100,e[3]/100,e[4]):No.hasOwnProperty(t)?Po(No[t]):"transparent"===t?new Uo(NaN,NaN,NaN,0):null}function Po(t){return new Uo(t>>16&255,t>>8&255,255&t,1)}function qo(t,e,n,r){return r<=0&&(t=e=n=NaN),new Uo(t,e,n,r)}function zo(t){return t instanceof ko||(t=Ro(t)),t?new Uo((t=t.rgb()).r,t.g,t.b,t.opacity):new Uo}function Fo(t,e,n,r){return 1===arguments.length?zo(t):new Uo(t,e,n,null==r?1:r)}function Uo(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Bo(){return"#"+Ho(this.r)+Ho(this.g)+Ho(this.b)}function Vo(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ho(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Wo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Yo(t,e,n,r)}function Go(t){if(t instanceof Yo)return new Yo(t.h,t.s,t.l,t.opacity);if(t instanceof ko||(t=Ro(t)),!t)return new Yo;if(t instanceof Yo)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&l<1?0:a,new Yo(a,s,l,t.opacity)}function Yo(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ko(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Zo(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}wo(ko,Ro,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$o,formatHex:$o,formatHsl:function(){return Go(this).formatHsl()},formatRgb:Ao,toString:Ao}),wo(Uo,Fo,xo(ko,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Uo(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Uo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bo,formatHex:Bo,formatRgb:Vo,toString:Vo})),wo(Yo,(function(t,e,n,r){return 1===arguments.length?Go(t):new Yo(t,e,n,null==r?1:r)}),xo(ko,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Yo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Yo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Uo(Ko(t>=240?t-240:t+120,i,r),Ko(t,i,r),Ko(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Xo=function(t){return function(){return t}};function Jo(t,e){return function(n){return t+n*e}}function Qo(t){return 1==(t=+t)?ta:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Xo(isNaN(e)?n:e)}}function ta(t,e){var n=e-t;return n?Jo(t,n):Xo(isNaN(t)?e:t)}var ea=function t(e){var n=Qo(e);function r(t,e){var r=n((t=Fo(t)).r,(e=Fo(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function na(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:sa(n,r)})),o=da.lastIndex;return o=0&&e._call.call(null,t),e=e._next;--ha}()}finally{ha=0,function(){var t,e,n=ua,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ua=e);pa=t,ja(r)}(),_a=0}}function Ea(){var t=wa.now(),e=t-ba;e>1e3&&(ya-=e,ba=t)}function ja(t){ha||(va&&(va=clearTimeout(va)),t-_a>24?(t<1/0&&(va=setTimeout(Ta,t-wa.now()-ya)),ga&&(ga=clearInterval(ga))):(ga||(ba=wa.now(),ga=setInterval(Ea,1e3)),ha=1,xa(Ta)))}Ma.prototype=Sa.prototype={constructor:Ma,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ka():+n)+(null==e?0:+e),this._next||pa===this||(pa?pa._next=this:ua=this,pa=this),this._call=t,this._time=n,ja()},stop:function(){this._call&&(this._call=null,this._time=1/0,ja())}};var Oa=function(t,e,n){var r=new Ma;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Ia=li("start","end","cancel","interrupt"),La=[],Da=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var c,d,u,p;if(1!==n.state)return s();for(c in i)if((p=i[c]).name===n.name){if(3===p.state)return Oa(o);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function $a(t,e){var n=Aa(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Aa(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Ra,Pa,qa,za,Fa=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Ua=180/Math.PI,Ba={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Va=function(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:sa(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:sa(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:sa(t,n)},{i:s-2,x:sa(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Na:$a;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var fs=_o.prototype.constructor;function hs(t){return function(){this.style.removeProperty(t)}}function vs(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function gs(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&vs(t,o,n)),r}return o._value=e,o}function bs(t){return function(e){this.textContent=t.call(this,e)}}function _s(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&bs(r)),e}return r._value=t,r}var ys=0;function ws(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function xs(){return++ys}var ks=_o.prototype;ws.prototype=function(t){return _o().transition(t)}.prototype={constructor:ws,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=di(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1e-6)if(Math.abs(d*s-l*c)>1e-6&&i){var p=n-o,m=r-a,f=s*s+l*l,h=p*p+m*m,v=Math.sqrt(f),g=Math.sqrt(u),b=i*Math.tan((js-Math.acos((f+u-h)/(2*v*g)))/2),_=b/g,y=b/v;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*c)+","+(e+_*d)),this._+="A"+i+","+i+",0,0,"+ +(d*p>c*m)+","+(this._x1=t+y*s)+","+(this._y1=e+y*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,c=e+s,d=1^o,u=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(u<0&&(u=u%Os+Os),u>Is?this._+="A"+n+","+n+",0,1,"+d+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+d+","+(this._x1=l)+","+(this._y1=c):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=js)+","+d+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Ns(){}function $s(t,e){var n=new Ns;if(t instanceof Ns)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i=(o=(h+g)/2))?h=o:g=o,(d=n>=(a=(v+b)/2))?v=a:b=a,i=m,!(m=m[u=d<<1|c]))return i[u]=f,t;if(s=+t._x.call(null,m.data),l=+t._y.call(null,m.data),e===s&&n===l)return f.next=m,i?i[u]=f:t._root=f,t;do{i=i?i[u]=new Array(4):t._root=new Array(4),(c=e>=(o=(h+g)/2))?h=o:g=o,(d=n>=(a=(v+b)/2))?v=a:b=a}while((u=d<<1|c)==(p=(l>=a)<<1|s>=o));return i[p]=m,i[u]=f,t}var Fs=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function Us(t){return t[0]}function Bs(t){return t[1]}function Vs(t,e,n){var r=new Hs(null==e?Us:e,null==n?Bs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Hs(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ws(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Gs=Vs.prototype=Hs.prototype;Gs.copy=function(){var t,e,n=new Hs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Ws(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Ws(e));return n},Gs.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return zs(this.cover(e,n),e,n,t)},Gs.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,d=-1/0,u=-1/0;for(n=0;nd&&(d=r),iu&&(u=i));if(l>d||c>u)return this;for(this.cover(l,c).cover(d,u),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ep||(o=l.y0)>m||(a=l.x1)=g)<<1|t>=v)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var b=t-+this._x.call(null,h.data),_=e-+this._y.call(null,h.data),y=b*b+_*_;if(y=(s=(f+v)/2))?f=s:v=s,(d=a>=(l=(h+g)/2))?h=l:g=l,e=m,!(m=m[u=d<<1|c]))return this;if(!m.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,p=u)}for(;m.data!==t;)if(r=m,!(m=m.next))return this;return(i=m.next)&&delete m.next,r?(i?r.next=i:delete r.next,this):e?(i?e[u]=i:delete e[u],(m=e[0]||e[1]||e[2]||e[3])&&m===(e[3]||e[2]||e[1]||e[0])&&!m.length&&(n?n[p]=m:this._root=m),this):(this._root=i,this)},Gs.removeAll=function(t){for(var e=0,n=t.length;e1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Ys)),Zs=(function t(e){function n(){var t=Ks.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Ys),function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function dl(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?ul:dl,i=o=null,u}function u(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return u.invert=function(n){return c(e((o||(o=r(s,a.map(t),sa)))(n)))},u.domain=function(t){return arguments.length?(a=Qs.call(t,ol),c===sl||(c=cl(a)),d()):a.slice()},u.range=function(t){return arguments.length?(s=tl.call(t),d()):s.slice()},u.rangeRound=function(t){return s=tl.call(t),l=il,d()},u.clamp=function(t){return arguments.length?(c=t?cl(a):sl,u):c!==sl},u.interpolate=function(t){return arguments.length?(l=t,d()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,r){return t=n,e=r,d()}}function fl(t,e){return ml()(t,e)}var hl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vl(t){if(!(e=hl.exec(t)))throw new Error("invalid format: "+t);var e;return new gl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function gl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}vl.prototype=gl.prototype,gl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function bl(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var _l,yl,wl,xl,kl=function(t){return(t=bl(Math.abs(t)))?t[1]:NaN},Cl=function(t,e){var n=bl(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Ml={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Cl(100*t,e)},r:Cl,s:function(t,e){var n=bl(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(_l=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+bl(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Sl=function(t){return t},Tl=Array.prototype.map,El=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];yl=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Sl:(e=Tl.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Sl:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Tl.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",d=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=vl(t)).fill,n=t.align,u=t.sign,p=t.symbol,m=t.zero,f=t.width,h=t.comma,v=t.precision,g=t.trim,b=t.type;"n"===b?(h=!0,b="g"):Ml[b]||(void 0===v&&(v=12),g=!0,b="g"),(m||"0"===e&&"="===n)&&(m=!0,e="0",n="=");var _="$"===p?i:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===p?o:/[%p]/.test(b)?l:"",w=Ml[b],x=/[defgprs%]/.test(b);function k(t){var i,o,l,p=_,k=y;if("c"===b)k=w(t)+k,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?d:w(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==u&&(C=!1),p=(C?"("===u?u:c:"-"===u||"("===u?"":u)+p,k=("s"===b?El[8+_l/3]:"")+k+(C&&"("===u?")":""),x)for(i=-1,o=t.length;++i(l=t.charCodeAt(i))||l>57){k=(46===l?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}h&&!m&&(t=r(t,1/0));var M=p.length+t.length+k.length,S=M>1)+p+t+k+S.slice(M);break;default:t=S+p+t+k}return s(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return t+""},k}return{format:u,formatPrefix:function(t,e){var n=u(((t=vl(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(kl(e)/3))),i=Math.pow(10,-r),o=El[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),wl=yl.format,xl=yl.formatPrefix;var jl=function(t,e,n,r){var i,o=Gr(t,e,n);switch((r=vl(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(kl(e)/3)))-kl(Math.abs(t)))}(o,a))||(r.precision=i),xl(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,kl(e)-kl(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-kl(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return wl(r)};function Ol(t){var e=t.domain;return t.ticks=function(t){var n=e();return Hr(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return jl(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],l=i[a];return l0?r=Wr(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Wr(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,e(i)),t},t}var Il=new Date,Ll=new Date;function Dl(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Il.setTime(+e),Ll.setTime(+r),t(Il),t(Ll),Math.floor(n(Il,Ll))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Nl=Dl((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Nl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Dl((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var $l=Nl,Al=(Nl.range,Dl((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));Al.range;function Rl(t){return Dl((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Pl=Rl(0),ql=Rl(1),zl=Rl(2),Fl=Rl(3),Ul=Rl(4),Bl=Rl(5),Vl=Rl(6),Hl=(Pl.range,ql.range,zl.range,Fl.range,Ul.range,Bl.range,Vl.range,Dl((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),Wl=Hl,Gl=(Hl.range,Dl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),Yl=(Gl.range,Dl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),Kl=(Yl.range,Dl((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),Zl=(Kl.range,Dl((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Zl.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Dl((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Zl:null};Zl.range;function Xl(t){return Dl((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var Jl=Xl(0),Ql=Xl(1),tc=Xl(2),ec=Xl(3),nc=Xl(4),rc=Xl(5),ic=Xl(6),oc=(Jl.range,Ql.range,tc.range,ec.range,nc.range,rc.range,ic.range,Dl((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),ac=oc,sc=(oc.range,Dl((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));sc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Dl((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var lc=sc;sc.range;function cc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function uc(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var pc,mc={"-":"",_:" ",0:"0"},fc=/^\s*\d+/,hc=/^%/,vc=/[\\^$*+?|[\]().{}]/g;function gc(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function Ec(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jc(t,e,n){var r=fc.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Oc(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ic(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Lc(t,e,n){var r=fc.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Dc(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nc(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function $c(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ac(t,e,n){var r=fc.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rc(t,e,n){var r=fc.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pc(t,e,n){var r=hc.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function qc(t,e,n){var r=fc.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zc(t,e,n){var r=fc.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Fc(t,e){return gc(t.getDate(),e,2)}function Uc(t,e){return gc(t.getHours(),e,2)}function Bc(t,e){return gc(t.getHours()%12||12,e,2)}function Vc(t,e){return gc(1+Wl.count($l(t),t),e,3)}function Hc(t,e){return gc(t.getMilliseconds(),e,3)}function Wc(t,e){return Hc(t,e)+"000"}function Gc(t,e){return gc(t.getMonth()+1,e,2)}function Yc(t,e){return gc(t.getMinutes(),e,2)}function Kc(t,e){return gc(t.getSeconds(),e,2)}function Zc(t){var e=t.getDay();return 0===e?7:e}function Xc(t,e){return gc(Pl.count($l(t)-1,t),e,2)}function Jc(t){var e=t.getDay();return e>=4||0===e?Ul(t):Ul.ceil(t)}function Qc(t,e){return t=Jc(t),gc(Ul.count($l(t),t)+(4===$l(t).getDay()),e,2)}function td(t){return t.getDay()}function ed(t,e){return gc(ql.count($l(t)-1,t),e,2)}function nd(t,e){return gc(t.getFullYear()%100,e,2)}function rd(t,e){return gc((t=Jc(t)).getFullYear()%100,e,2)}function id(t,e){return gc(t.getFullYear()%1e4,e,4)}function od(t,e){var n=t.getDay();return gc((t=n>=4||0===n?Ul(t):Ul.ceil(t)).getFullYear()%1e4,e,4)}function ad(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+gc(e/60|0,"0",2)+gc(e%60,"0",2)}function sd(t,e){return gc(t.getUTCDate(),e,2)}function ld(t,e){return gc(t.getUTCHours(),e,2)}function cd(t,e){return gc(t.getUTCHours()%12||12,e,2)}function dd(t,e){return gc(1+ac.count(lc(t),t),e,3)}function ud(t,e){return gc(t.getUTCMilliseconds(),e,3)}function pd(t,e){return ud(t,e)+"000"}function md(t,e){return gc(t.getUTCMonth()+1,e,2)}function fd(t,e){return gc(t.getUTCMinutes(),e,2)}function hd(t,e){return gc(t.getUTCSeconds(),e,2)}function vd(t){var e=t.getUTCDay();return 0===e?7:e}function gd(t,e){return gc(Jl.count(lc(t)-1,t),e,2)}function bd(t){var e=t.getUTCDay();return e>=4||0===e?nc(t):nc.ceil(t)}function _d(t,e){return t=bd(t),gc(nc.count(lc(t),t)+(4===lc(t).getUTCDay()),e,2)}function yd(t){return t.getUTCDay()}function wd(t,e){return gc(Ql.count(lc(t)-1,t),e,2)}function xd(t,e){return gc(t.getUTCFullYear()%100,e,2)}function kd(t,e){return gc((t=bd(t)).getUTCFullYear()%100,e,2)}function Cd(t,e){return gc(t.getUTCFullYear()%1e4,e,4)}function Md(t,e){var n=t.getUTCDay();return gc((t=n>=4||0===n?nc(t):nc.ceil(t)).getUTCFullYear()%1e4,e,4)}function Sd(){return"+0000"}function Td(){return"%"}function Ed(t){return+t}function jd(t){return Math.floor(+t/1e3)}!function(t){pc=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=_c(i),d=yc(i),u=_c(o),p=yc(o),m=_c(a),f=yc(a),h=_c(s),v=yc(s),g=_c(l),b=yc(l),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Fc,e:Fc,f:Wc,g:rd,G:od,H:Uc,I:Bc,j:Vc,L:Hc,m:Gc,M:Yc,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ed,s:jd,S:Kc,u:Zc,U:Xc,V:Qc,w:td,W:ed,x:null,X:null,y:nd,Y:id,Z:ad,"%":Td},y={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:sd,e:sd,f:pd,g:kd,G:Md,H:ld,I:cd,j:dd,L:ud,m:md,M:fd,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ed,s:jd,S:hd,u:vd,U:gd,V:_d,w:yd,W:wd,x:null,X:null,y:xd,Y:Cd,Z:Sd,"%":Td},w={a:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Ic,e:Ic,f:Rc,g:Tc,G:Sc,H:Dc,I:Dc,j:Lc,L:Ac,m:Oc,M:Nc,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=d[r[0].toLowerCase()],n+r[0].length):-1},q:jc,Q:qc,s:zc,S:$c,u:xc,U:kc,V:Cc,w:wc,W:Mc,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:Tc,Y:Sc,Z:Ec,"%":Pc};function x(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=dc(uc(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ql.ceil(r):Ql(r),r=ac.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=cc(uc(o.y,0,1))).getDay(),r=i>4||0===i?ql.ceil(r):ql(r),r=Wl.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?dc(uc(o.y,0,1)).getUTCDay():cc(uc(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,dc(o)):cc(o)}}function C(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in mc?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),y.x=x(n,y),y.X=x(r,y),y.c=x(e,y),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",y);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),pc.format,pc.parse,pc.utcFormat,pc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Od=Dl((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Id=(Od.range,Dl((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Ld=(Id.range,Dl((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})));Ld.range;var Dd=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r0)){if(o/=p,p<0){if(o0){if(o>u)return;o>d&&(d=o)}if(o=r-l,p||!(o<0)){if(o/=p,p<0){if(o>u)return;o>d&&(d=o)}else if(p>0){if(o0)){if(o/=m,m<0){if(o0){if(o>u)return;o>d&&(d=o)}if(o=i-c,m||!(o<0)){if(o/=m,m<0){if(o>u)return;o>d&&(d=o)}else if(m>0){if(o0||u<1)||(d>0&&(t[0]=[l+d*p,c+d*m]),u<1&&(t[1]=[l+u*p,c+u*m]),!0)}}}}}function Vd(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,d=t.right,u=c[0],p=c[1],m=d[0],f=d[1],h=(u+m)/2,v=(p+f)/2;if(f===p){if(h=r)return;if(u>m){if(l){if(l[1]>=i)return}else l=[h,n];o=[h,i]}else{if(l){if(l[1]1)if(u>m){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]=r)return}else l=[e,a*e+s];o=[r,a*r+s]}else{if(l){if(l[0]=-pu)){var m=l*l+c*c,f=d*d+u*u,h=(u*m-c*f)/p,v=(l*f-d*m)/p,g=Kd.pop()||new Zd;g.arc=t,g.site=i,g.x=h+a,g.y=(g.cy=v+s)+Math.sqrt(h*h+v*v),t.circle=g;for(var b=null,_=cu._;_;)if(g.y<_.y||g.y===_.y&&g.x<=_.x){if(!_.L){b=_.P;break}_=_.L}else{if(!_.R){b=_;break}_=_.R}cu.insert(b,g),b||(Yd=g)}}}}function Jd(t){var e=t.circle;e&&(e.P||(Yd=e.N),cu.remove(e),Kd.push(e),$d(e),t.circle=null)}var Qd=[];function tu(){$d(this),this.edge=this.site=this.circle=null}function eu(t){var e=Qd.pop()||new tu;return e.site=t,e}function nu(t){Jd(t),su.remove(t),Qd.push(t),$d(t)}function ru(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,s=[t];nu(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)uu)s=s.L;else{if(!((i=o-au(s,a))>uu)){r>-uu?(e=s.P,n=s):i>-uu?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){lu[t.index]={site:t,halfedges:[]}}(t);var l=eu(t);if(su.insert(e,l),e||n){if(e===n)return Jd(e),n=eu(e.site),su.insert(l,n),l.edge=n.edge=zd(e.site,l.site),Xd(e),void Xd(n);if(n){Jd(e),Jd(n);var c=e.site,d=c[0],u=c[1],p=t[0]-d,m=t[1]-u,f=n.site,h=f[0]-d,v=f[1]-u,g=2*(p*v-m*h),b=p*p+m*m,_=h*h+v*v,y=[(v*b-m*_)/g+d,(p*_-h*b)/g+u];Ud(n.edge,c,f,y),l.edge=zd(c,t,null,y),n.edge=zd(t,f,null,y),Xd(e),Xd(n)}else l.edge=zd(e.site,l.site)}}function ou(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-e;if(!c)return s;var d=s-r,u=1/o-1/c,p=d/c;return u?(-p+Math.sqrt(p*p-2*u*(d*d/(-2*c)-l+c/2+i-o/2)))/u+r:(r+s)/2}function au(t,e){var n=t.N;if(n)return ou(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var su,lu,cu,du,uu=1e-6,pu=1e-12;function mu(t,e){return e[1]-t[1]||e[0]-t[0]}function fu(t,e){var n,r,i,o=t.sort(mu).pop();for(du=[],lu=new Array(t.length),su=new qd,cu=new qd;;)if(i=Yd,o&&(!i||o[1]uu||Math.abs(i[0][1]-i[1][1])>uu)||delete du[o]}(a,s,l,c),function(t,e,n,r){var i,o,a,s,l,c,d,u,p,m,f,h,v=lu.length,g=!0;for(i=0;iuu||Math.abs(h-p)>uu)&&(l.splice(s,0,du.push(Fd(a,m,Math.abs(f-t)uu?[t,Math.abs(u-t)uu?[Math.abs(p-r)uu?[n,Math.abs(u-n)uu?[Math.abs(p-e)=s)return null;var l=t-i.site[0],c=e-i.site[1],d=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=e-s[1],u=l*l+c*c;u({bugResults:[]}),mixins:[h],methods:{getBugData:function(){vu.post(this.rootUrl+"dashboard/get/bug_list/").then(t=>{this.bugResults=t.data,this.renderGraph()}).catch(t=>{this.showErrorModal(t,"Dashboard Unassigned Objects")})},renderGraph:function(){var t=10,e=30,n=20,r=50,i=460-r-e,o=400-t-n,a=document.getElementById("active_bug_graph");a.innerHTML="";var s,l=yo(a).append("svg").attr("width",i+r+e).attr("height",o+t+n).attr("class","graph_body").append("g").attr("id","active_bug_d3").attr("transform","translate("+r+","+t+")"),c=rl().rangeRound([0,i],.15).paddingInner(.2).paddingOuter(.2),d=function t(){var e=fl(sl,sl);return e.copy=function(){return pl(e,t())},Xs.apply(e,arguments),Ol(e)}().range([o,0]),u=ei(3,s).scale(c),p=function(t){return ei(4,t)}().scale(d).ticks(10);nl(Dd);l.selectAll("#active_bug_d3").data(this.bugResults).enter().append("rect").attr("x",t=>1).attr("y",t=>d(t.bug_status__count)).attr("height",t=>50).attr("width","50"),l.append("g").attr("class","x-axis").attr("transform","translate(0,"+o+")").call(u),l.append("g").attr("class","y-axis").call(p).append("text").attr("transform","rotate(-90)").attr("y",6).attr("dy",".71em").style("text-anchor","end").text("Count")}},mounted(){this.getBugData()}},Nr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("h2",[this._v("Active Bugs")]),this._v(" "),e("hr"),this._v(" "),e("div",{attrs:{id:"active_bug_graph"}})])])}],!1,null,"6bd9ef65",null);gu.options.__file="src/js/components/dashboard/DashboardBugList.vue";var bu=gu.exports,_u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addKanbanCardModal",tabindex:"-1","aria-labelledby":"addKanbanCardModalLabel","aria-hidden":"true","data-kanban-level":t.levelResults[0].pk,"data-kanban-column":t.columnResults[0].pk}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.cardChecklist}}),t._v(" Add Kanban Card Wizard")],1),t._v(" "),n("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addKanbanCardCloseButton"}})]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Kanban Card Text")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.kanbanCardTextModel,expression:"kanbanCardTextModel"}],staticClass:"form-control",domProps:{value:t.kanbanCardTextModel},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addKanbanCard.apply(null,arguments)},input:function(e){e.target.composing||(t.kanbanCardTextModel=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.kanbanCardDescriptionModel,callback:function(e){t.kanbanCardDescriptionModel=e},expression:"kanbanCardDescriptionModel"}})],1)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableAddButton},on:{click:t.addKanbanCard}},[t._v("\n Add Link\n ")])])])])])};_u._withStripped=!0;const yu=n(3);var wu=J({name:"NewKanbanCard",props:{columnResults:Array,kanbanCardResults:Array,levelResults:Array,kanbanBoardResults:Array},mixins:[Z],data:()=>({disableAddButton:!0,kanbanCardDescriptionModel:"",kanbanCardTextModel:""}),methods:{addKanbanCard:function(){var t=document.getElementById("addKanbanCardModal");const e=new FormData;e.set("kanban_card_text",this.kanbanCardTextModel),e.set("kanban_card_description",this.kanbanCardDescriptionModel),e.set("kanban_level",t.dataset.kanbanLevel),e.set("kanban_column",t.dataset.kanbanColumn),yu.post(`/kanban_information/${this.kanbanBoardResults[0].pk}/new_card/`,e).then(t=>{this.$emit("new_card",t.data),this.kanbanCardTextModel="",this.kanbanCardDescriptionModel="",document.getElementById("addKanbanCardCloseButton").click()}).catch(t=>{})}},watch:{kanbanCardTextModel:function(){this.disableAddButton=!1,0==this.kanbanCardTextModel.length&&(this.disableAddButton=!0),this.kanbanCardResults.filter(t=>t.fields.kanban_card_text==this.kanbanCardTextModel).length>0&&(this.disableAddButton=!0),0!=this.columnResults.length&&0!=this.levelResults.length||(this.disableAddButton=!0)}}},_u,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The card names can not be the same as something that already exists on the board.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Fill out a detailed description for the card, then click on the "Update Card" button\n to update the card.\n ')])])}],!1,null,"3f38c59c",null);wu.options.__file="src/js/components/modules/wizards/NewKanbanCard.vue";var xu=wu.exports,ku=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"cardInformationModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Card Information")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t._m(1),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"myTabContent"}},[n("div",{staticClass:"tab-pane fade show active",attrs:{id:"card_details",role:"tabpanel","aria-labelledby":"details-tab"}},[n("card-details",{on:{update_card:t.updateCard}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"card_description",role:"tabpanel","aria-labelledby":"description-tab"}},[n("card-description",{on:{update_card:t.updateCard}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"card_notes",role:"tabpanel","aria-labelledby":"notes-tab"}},[n("card-notes")],1)])])])])])};ku._withStripped=!0;const Cu=n(3);var Mu=J({name:"CardInformation",mixins:[Z],data:()=>({cardId:"",cardDescriptionModel:"",cardNoteModel:"",cardTitleModel:"",noteHistoryResults:[]}),methods:{updateCard:function(){const t=this.$store.getters.getAllCardData,e=new FormData;e.set("kanban_card_text",t.cardTitle),e.set("kanban_card_description",t.cardDescription),e.set("kanban_level",t.cardLevel.value),e.set("kanban_column",t.cardColumn.value),e.set("kanban_card_id",t.cardId),Cu.post("/kanban_information/update_card/",e).then(e=>{this.$emit("update_card",{kanban_card_id:t.cardId,kanban_card_text:t.cardTitle,kanban_column:t.cardColumn,kanban_level:t.cardLevel}),document.getElementById("cardInformationModalCloseButton").click()}).catch(t=>{})}}},ku,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"cardInformationModalCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs",attrs:{id:"card_information_tabs",role:"tablist"}},[e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link active",attrs:{id:"details-tab","data-bs-toggle":"tab","data-bs-target":"#card_details",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("Details")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"description-tab","data-bs-toggle":"tab","data-bs-target":"#card_description",type:"button",role:"tab","aria-controls":"profile","aria-selected":"false"}},[this._v("Description")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"notes-tab","data-bs-toggle":"tab","data-bs-target":"#card_notes",type:"button",role:"tab","aria-controls":"contact","aria-selected":"false"}},[this._v("Notes")])])])}],!1,null,"bc4b6c14",null);Mu.options.__file="src/js/components/card_information/CardInformation.vue";var Su=Mu.exports,Tu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Card Title")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.cardTitle,expression:"cardTitle"}],staticClass:"form-control",domProps:{value:t.cardTitle},on:{input:function(e){e.target.composing||(t.cardTitle=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12 mt-4"},[n("label",[t._v("Card Column")]),t._v(" "),n("v-select",{attrs:{options:t.listColumns,label:"column",clearable:!1},model:{value:t.cardColumn,callback:function(e){t.cardColumn=e},expression:"cardColumn"}})],1),t._v(" "),n("div",{staticClass:"col-md-12 mt-4"},[n("label",[t._v("Card Level")]),t._v(" "),n("v-select",{attrs:{options:t.listLevels,label:"level",clearable:!1},model:{value:t.cardLevel,callback:function(e){t.cardLevel=e},expression:"cardLevel"}})],1)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.closeModal}},[t._v("\n Close Modal\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.updateCard}},[t._v("\n Update Card\n ")])])])])};Tu._withStripped=!0;n(3);var Eu=J({name:"CardDetails",props:{},data:()=>({tempModel:""}),computed:{...p(["cardId","cardTitle","cardColumn","cardLevel","listColumns","listLevels"])},methods:{closeModal:function(){document.getElementById("cardInformationModalCloseButton").click()},updateCard:function(){this.$store.commit({type:"updateKanbanCard",card_id:this.cardId,kanban_card_text:this.cardTitle,kanban_column:this.cardColumn,kanban_level:this.cardLevel}),this.$emit("update_card")}}},Tu,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Title")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Write an appropriate name for the kanban card. To update click on the "Update" button.\n ')])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Location")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Select the appropriate location for this card.\n ")])])}],!1,null,null,null);Eu.options.__file="src/js/components/card_information/CardDetails.vue";var ju=Eu.exports,Ou=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.cardDescription,callback:function(e){t.cardDescription=e},expression:"cardDescription"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.closeModal}},[t._v("\n Close Modal\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.updateCard}},[t._v("\n Update Card\n ")])])])])};Ou._withStripped=!0;n(3);var Iu=J({name:"CardDescription",props:{},data:()=>({}),computed:{...p(["cardDescription"])},methods:{closeModal:function(){document.getElementById("cardInformationModalCloseButton").click()},updateCard:function(){this.$emit("update_card")}}},Ou,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Fill out a detailed description for the card, then click on the "Update Card" button\n to update the card.\n ')])])}],!1,null,null,null);Iu.options.__file="src/js/components/card_information/CardDescription.vue";var Lu=Iu.exports,Du=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Note Box")]),t._v(" "),n("editor",{attrs:{init:{height:250,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.cardNoteModel,callback:function(e){t.cardNoteModel=e},expression:"cardNoteModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.closeModal}},[t._v("\n Close Modal\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",attrs:{disabled:""===t.cardNoteModel},on:{click:t.addNote}},[t._v("\n Add Note\n ")])])]),t._v(" "),n("hr"),t._v(" "),n("list-notes",{attrs:{"note-history-results":t.getCardNotes(),destination:"card"}})],1)};Du._withStripped=!0;const Nu=n(3);var $u=J({name:"CardNotes",props:{},data:()=>({...Object(o.b)(["getCardNotes"]),cardNoteModel:""}),methods:{addNote:function(){const t=new FormData;t.set("note",this.cardNoteModel),Nu.post(`/object_data/kanban_card/${this.$store.state.card.cardId}/add_notes/`,t).then(t=>{this.$store.commit({type:"appendNote",newNote:t.data[0]}),this.cardNoteModel=""}).catch(t=>{})},closeModal:function(){document.getElementById("cardInformationModalCloseButton").click()}}},Du,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Notes")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n To add a note - type your note in the Note Box and hit the "Submit Note"\n button.\n ')])])}],!1,null,null,null);$u.options.__file="src/js/components/card_information/CardNotes.vue";var Au=$u.exports,Ru=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[0==t.noteHistoryResults.length?n("div",{staticClass:"module-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - but there are no notes for this "+t._s(t.destination)+".\n ")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.noteHistoryResults,(function(e){return n("tr",[n("td",[n("div",{domProps:{innerHTML:t._s(e.fields.object_note.substr(0,400))}}),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n "+t._s(e.fields.date_created)+"\n ")])])])})),0)])])])};Ru._withStripped=!0;var Pu=J({name:"ListNotes",props:{destination:String,noteHistoryResults:{type:Array,default:function(){return[]}}}},Ru,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Note")])])])}],!1,null,"343c6058",null);Pu.options.__file="src/js/components/modules/sub_modules/ListNotes.vue";var qu=Pu.exports,zu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newLinkModal",tabindex:"-1","aria-labelledby":"kanbanLinkModal","aria-hidden":"true","data-kanban-level":t.levelResults[0].pk,"data-kanban-column":t.columnResults[0].pk}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" New Kanban Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching?n("div",{staticClass:"alert alert-success"},[t._v("\n Searching for "+t._s(t.objectModel)+"s\n ")]):n("v-select",{staticClass:"object-selection",attrs:{options:t.objectSelection},model:{value:t.objectModel,callback:function(e){t.objectModel=e},expression:"objectModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching||null==t.objectModel?n("div",{attrs:{id:"link_wizard_results"}},[n("img",{attrs:{src:"/static/NearBeach/images/placeholder/search.svg",alt:"Searching..."}})]):t._e(),t._v(" "),0==t.objectResults.length&&null!=t.objectModel?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - there are no results.\n ")]):t._e(),t._v(" "),!t.isSearching&&t.objectResults.length>0&&null!=t.objectModel?n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",[t._v(t._s(t.objectModel)+" Description")]),t._v(" "),n("td",[t._v("Status")])])]),t._v(" "),"Project"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"radio",name:"link-option",id:"radio_project_"+e.pk},domProps:{value:e.pk,checked:t._q(t.linkModel,e.pk)},on:{change:function(n){t.linkModel=e.pk}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"radio_project_"+e.pk}},[t._v("\n "+t._s(e.fields.project_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Project "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.project_status))])])})),0):t._e(),t._v(" "),"Requirement"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"radio",name:"link-option",id:"radio_requirement_"+e.pk},domProps:{value:e.pk,checked:t._q(t.linkModel,e.pk)},on:{change:function(n){t.linkModel=e.pk}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"radio_task_"+e.pk}},[t._v("\n "+t._s(e.fields.requirement_title)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Requirement "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.requirement_status))])])})),0):t._e(),t._v(" "),"Task"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"radio",id:"radio_task_"+e.pk},domProps:{value:e.pk,checked:t._q(t.linkModel,e.pk)},on:{change:function(n){t.linkModel=e.pk}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"radio_task_"+e.pk}},[t._v("\n "+t._s(e.fields.task_short_description)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Task "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.task_status))])])})),0):t._e()]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.linkModel.length},on:{click:t.saveLinks}},[t._v("Save changes")])])])])])};zu._withStripped=!0;const Fu=n(3);var Uu=J({name:"NewKanbanLinkWizard",props:{columnResults:Array,levelResults:Array,locationId:Number},mixins:[h,Z],data:()=>({isSearching:!1,objectModel:null,objectResults:[],objectSelection:["Project","Requirement","Task"],linkModel:[]}),methods:{saveLinks:function(){const t=new FormData;var e=document.getElementById("newLinkModal");t.set(""+this.objectModel.toLowerCase(),this.linkModel),t.set("kanban_level",e.dataset.kanbanLevel),t.set("kanban_column",e.dataset.kanbanColumn),Fu.post(`/kanban_information/${this.locationId}/${this.objectModel.toLowerCase()}/add_link/`,t).then(t=>{this.$emit("new_card",t.data),this.objectModel=null,document.getElementById("requirementLinkCloseButton").click()})}},watch:{objectModel:function(){this.linkModel=[],null!==this.objectModel?(this.isSearching=!0,Fu.post(`/kanban_information/${this.locationId}/${this.objectModel}/link_list/`).then(t=>{this.objectResults=t.data,this.isSearching=!1}).catch(t=>{this.showErrorModal(t,"kanban")})):this.isSearching=!1},linkModel:function(){}}},zu,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"requirementLinkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Object Selector")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which object you would like to link to this requirement.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Select Links")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which of the objects you want to connect to this requirement.\n ")])])}],!1,null,"49b27f11",null);Uu.options.__file="src/js/components/modules/wizards/NewKanbanLinkWizard.vue";var Bu=Uu.exports,Vu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("My Current Objects")]),t._v(" "),n("hr"),t._v(" "),t.isLoaded?t._e():n("div",{staticClass:"alert alert-dark"},[t._v("\n Still obtaining your assigned jobs.\n ")]),t._v(" "),t.objectResults.requirement.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.requirement,"import-variables":t.requirementVariables,destination:"requirement","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.project.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.project,"import-variables":t.projectVariables,destination:"project","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.task.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.task,"import-variables":t.taskVariables,destination:"task","root-url":t.rootUrl}}):t._e(),t._v(" "),0===t.countObjects&&t.isLoaded?n("div",{staticClass:"alert alert-primary"},[t._v("\n It looks like no one has assigned you any tasks.\n ")]):t._e()],1)])};Vu._withStripped=!0;const Hu=n(3);var Wu=J({name:"DashboardMyObjects",props:{rootUrl:{type:String,default:"/"}},data:()=>({isLoaded:!1,objectResults:{requirement:[],project:[],task:[]},projectVariables:{header:"Projects",prefix:"Pro",id:"project_id",title:"project_name",status:"project_status"},requirementVariables:{header:"Your Requirements",prefix:"Req",id:"requirement_id",title:"requirement_title",status:"requirement_status__requirement_status"},taskVariables:{header:"Tasks",prefix:"Task",id:"task_id",title:"task_short_description",status:"task_status"}}),mixins:[h],methods:{getMyObjects:function(){Hu.post(this.rootUrl+"dashboard/get/my_objects/").then(t=>{this.objectResults=t.data,this.isLoaded=!0}).catch(t=>{this.showErrorModal(t,"Dashboard My Objects")})}},computed:{countObjects:function(){return this.objectResults.requirement.length+this.objectResults.project.length+this.objectResults.task.length}},mounted(){this.getMyObjects()}},Vu,[],!1,null,null,null);Wu.options.__file="src/js/components/dashboard/DashboardMyObjects.vue";var Gu=Wu.exports,Yu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",{attrs:{width:"75%"}},[t._v(t._s(t.importVariables.header))]),t._v(" "),n("td",{attrs:{width:"25%"}},[t._v("Status")])])]),t._v(" "),n("tbody",t._l(t.searchResults,(function(e){return n("tr",{key:e.pk},[n("td",[n("a",{attrs:{href:""+t.rootUrl+t.destination+"_information/"+e[t.importVariables.id]+"/"}},[n("p",[t._v(t._s(e[t.importVariables.title]))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n "+t._s(t.importVariables.prefix)+t._s(e[t.importVariables.id])+"\n ")])])]),t._v(" "),n("td",[t._v("\n "+t._s(e[t.importVariables.status])+"\n ")])])})),0)])};Yu._withStripped=!0;var Ku=J({name:"RenderObjectTable",props:{destination:String,importVariables:Object,rootUrl:{type:String,default:"/"},searchResults:Array},data:()=>({}),methods:{}},Yu,[],!1,null,null,null);Ku.options.__file="src/js/components/render/RenderObjectTable.vue";var Zu=Ku.exports,Xu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" "+t._s(t.destination)+" Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links to other objects like projects/tasks/requirements. You can link a "+t._s(t.destination)+"\n to these other objects to symbolise a connection between the two.\n ")]),t._v(" "),0==t.linkResults.length?n("div",{staticClass:"requirement-item-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no Links for this requirement.")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.linkResults,(function(e){return n("tr",[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.newLink}},[t._v("Create new Link")])])]),t._v(" "),n("hr"),t._v(" "),n("new-link-wizard",{attrs:{destination:t.destination,"location-id":t.locationId},on:{update_link_results:t.updateLinkResults}})],1)};Xu._withStripped=!0;const Ju=n(3);var Qu=J({name:"ObjectLinks",props:{destination:String,locationId:Number},mixins:[Z],data:()=>({linkResults:[]}),methods:{extractObjectDescription:function(t){var e="",n="",r="",i="";return null!==t.project_id&&"project"!==this.destination?(e=t.project_id__project_name,n=t.project_id,r="Project "+t.project_id,i="/project_information/"):null!==t.requirement_id?(e=t.requirement_id__requirement_title,n=t.requirement_id,r="Requirement "+t.requirement_id,i="/requirement_information/"):null!==t.requirement_item_id?(e=t.requirement_item_id__requirement_item_title,n=t.requirement_item_id,r="Requirement Item "+t.requirement_item_id,i="/requirement_item_information/"):null!==t.task_id&&"task"!==this.destination&&(e=t.task_id__task_short_description,n=t.task_id,r="Task "+t.task_id,i="/task_information/"),`

${e}

${r}

`},extractObjectStatus:function(t){var e="";return null!==t.project_id&&"project"!==this.destination?e=t.project_id__project_status:null!==t.requirement_id?e=t.requirement_id__requirement_status__requirement_status:null!==t.requirement_item_id?e=t.requirement_item_id__requirement_item_status__requirement_item_status:null!==t.task_id&&"task"!==this.destination&&(e=t.task_id__task_status),""+e},newLink:function(){new f.a(document.getElementById("newLinkModal")).show()},updateLinkResults:function(){Ju.post(`/object_data/${this.destination}/${this.locationId}/object_link_list/`).then(t=>{this.linkResults=t.data.filter(t=>parseInt(0+t.project_id)+parseInt(0+t.requirement_id)+parseInt(0+t.requirement_item_id)+parseInt(0+t.task_id)>this.locationId)})}},mounted(){this.updateLinkResults()}},Xu,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"1d1226e2",null);Qu.options.__file="src/js/components/modules/sub_modules/ObjectLinks.vue";var tp=Qu.exports,ep=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newLinkModal",tabindex:"-1","aria-labelledby":"linkModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" New "+t._s(t.destination)+" Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Object Selector")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please select which object you would like to link to this "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching?n("div",{staticClass:"alert alert-success"},[t._v("\n Searching for "+t._s(t.objectModel)+"s\n ")]):n("v-select",{staticClass:"object-selection",attrs:{options:t.objectSelection},model:{value:t.objectModel,callback:function(e){t.objectModel=e},expression:"objectModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Select Links")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please select which of the objects you want to connect to this "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching||null==t.objectModel?n("div",{attrs:{id:"link_wizard_results"}},[n("img",{attrs:{src:"/static/NearBeach/images/placeholder/search.svg",alt:"Searching..."}})]):t._e(),t._v(" "),0==t.objectResults.length&&null!=t.objectModel?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - there are no results.\n ")]):t._e(),t._v(" "),!t.isSearching&&t.objectResults.length>0&&null!=t.objectModel?n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",[t._v(t._s(t.objectModel)+" Description")]),t._v(" "),n("td",[t._v("Status")])])]),t._v(" "),"Project"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_project_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_project_"+e.pk}},[t._v("\n "+t._s(e.fields.project_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Project "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.project_status))])])})),0):t._e(),t._v(" "),"Task"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_task_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_task_"+e.pk}},[t._v("\n "+t._s(e.fields.task_short_description)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Task "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.task_status))])])})),0):t._e(),t._v(" "),"Requirement"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_requirement_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_requirement_"+e.pk}},[t._v("\n "+t._s(e.fields.requirement_title)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Requirement "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.requirement_status))])])})),0):t._e(),t._v(" "),"Requirement_Item"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_requirement_item_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_requirement_item_"+e.pk}},[t._v("\n "+t._s(e.fields.requirement_item_title)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Requirement Item "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.requirement_item_status))])])})),0):t._e()]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.linkModel.length},on:{click:t.saveLinks}},[t._v("Save changes")])])])])])};ep._withStripped=!0;const np=n(3);var rp=J({name:"NewLinkWizard",props:{destination:String,locationId:Number},mixins:[h,Z],data:()=>({isSearching:!1,objectModel:null,objectResults:[],objectSelection:["Project","Requirement","Requirement_Item","Task"],linkModel:[]}),methods:{saveLinks:function(){const t=new FormData;this.linkModel.forEach(e=>{t.append(""+this.objectModel.toLowerCase(),e)}),np.post(`/object_data/${this.destination}/${this.locationId}/add_link/`,t).then(t=>{this.$emit("update_link_results",{}),document.getElementById("linkCloseButton").click()})}},watch:{objectModel:function(){this.linkModel=[],null!==this.objectModel?(this.isSearching=!0,np.post(`/object_data/${this.destination}/${this.locationId}/${this.objectModel.toLowerCase()}/link_list/`).then(t=>{this.objectResults=t.data,this.isSearching=!1}).catch(t=>{this.showErrorModal(t,this.destination)})):this.isSearching=!1}}},ep,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"linkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"9b35cc8c",null);rp.options.__file="src/js/components/modules/wizards/NewLinkWizard.vue";var ip=rp.exports,op=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Request for Change")]),t._v(" "),n("hr"),t._v(" "),n("form-wizard",{attrs:{title:"",subtitle:""},on:{"on-complete":t.onComplete,"on-change":t.onChange}},[n("tab-content",{attrs:{title:"Description","before-change":t.beforeChange}},[n("rfc-description",{attrs:{"static-url":t.staticUrl},on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Details","before-change":t.beforeChange}},[n("rfc-details",{attrs:{"group-results":t.groupResults,"user-group-results":t.userGroupResults,"user-results":t.userResults},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Risk","before-change":t.beforeChange}},[n("rfc-risk",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Implementation Plan","before-change":t.beforeChange}},[n("rfc-implementation-plan",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Backout Plan","before-change":t.beforeChange}},[n("rfc-backout-plan",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Test Plan","before-change":t.beforeChange}},[n("rfc-test-plan",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1)],1)],1)])};op._withStripped=!0;var ap=n(64);const sp=n(3);var lp=J({name:"NewRequestForChange",props:{groupResults:Array,rootUrl:{type:String,default:"/"},statusUrl:{type:String,default:"/"},userGroupResults:{type:Array,default:()=>[]},userResults:Array},components:{FormWizard:ap.FormWizard,TabContent:ap.TabContent},mixins:[h],data:()=>({currentTab:0,rfcData:{groupModel:[],rfcBackoutPlan:"",rfcChangeLeadModel:{},rfcImpactModel:{},rfcImplementationEndModel:"",rfcImplementationPlanModel:"",rfcImplementationStartModel:"",rfcPriorityModel:{},rfcReleaseModel:"",rfcRiskModel:{},rfcRiskSummaryModel:"",rfcSummaryModel:"",rfcTestPlanModel:"",rfcTitleModel:"",rfcTypeModel:{},rfcVersionModel:""},validationData:{tab_0:!1,tab_1:!1,tab_2:!1,tab_3:!1,tab_4:!1,tab_5:!1}}),methods:{beforeChange:function(){return this.validationData["tab_"+this.currentTab]},onChange:function(t,e){this.currentTab=e,window.scrollTo(0,60)},onComplete:function(){const t=new FormData,e=this.rfcData;t.set("rfc_title",e.rfcTitleModel),t.set("rfc_summary",e.rfcSummaryModel),t.set("rfc_type",e.rfcTypeModel.value),t.set("rfc_implementation_start_date",e.rfcImplementationStartModel),t.set("rfc_implementation_end_date",e.rfcImplementationEndModel),t.set("rfc_implementation_release_date",e.rfcReleaseModel),t.set("rfc_version_number",e.rfcVersionModel),t.set("rfc_lead",e.rfcChangeLeadModel.value),t.set("rfc_priority",e.rfcPriorityModel.value),t.set("rfc_risk",e.rfcRiskModel.value),t.set("rfc_impact",e.rfcImpactModel.value),t.set("rfc_risk_and_impact_analysis",e.rfcRiskSummaryModel),t.set("rfc_implementation_plan",e.rfcImplementationPlanModel),t.set("rfc_backout_plan",e.rfcBackoutPlan),t.set("rfc_test_plan",e.rfcTestPlanModel),e.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),sp.post(this.rootUrl+"new_request_for_change/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"request_for_change","")})},updateValidation:function(t){this.validationData[t.tab]=t.value},updateValues:function(t){this.rfcData[t.modelName]=t.modelValue}}},op,[],!1,null,"8b4b5646",null);lp.options.__file="src/js/components/request_for_change/NewRequestForChange.vue";var cp=lp.exports,dp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("label",[t._v("Backout Plan:\n "),!t.$v.rfcBackoutPlanModel.required&&t.$v.rfcBackoutPlanModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcBackoutPlanModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcBackoutPlanModel,callback:function(e){t.rfcBackoutPlanModel=e},expression:"rfcBackoutPlanModel"}})],1)])};dp._withStripped=!0;var up=J({name:"RfcBackoutPlan",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcBackoutPlanModel:""}),validations:{rfcBackoutPlanModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_4",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcBackoutPlanModel:function(){this.updateValues("rfcBackoutPlan",this.rfcBackoutPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcBackoutPlanModel=this.rfcResults[0].fields.rfc_backout_plan)}},dp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Backout Plan")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please outline the backout plan that will be implemented, and when it will be implemented, when something\n goes wrong with the Request for Change.\n ")])])}],!1,null,"4b3a46a5",null);up.options.__file="src/js/components/request_for_change/tabs/RfcBackoutPlan.vue";var pp=up.exports,mp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Request for Change Type:\n "),!t.$v.rfcTypeModel.required&&t.$v.rfcTypeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcType},model:{value:t.rfcTypeModel,callback:function(e){t.rfcTypeModel=e},expression:"rfcTypeModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Version/Release Number\n "),t.$v.rfcVersionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rfcVersionModel,expression:"rfcVersionModel"}],staticClass:"form-control",attrs:{type:"text",maxlength:"25"},domProps:{value:t.rfcVersionModel},on:{input:function(e){e.target.composing||(t.rfcVersionModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"row col-md-8"},[n("div",{staticClass:"col-md-12"},[t.checkDateValidation?n("span",{staticClass:"error"},[t._v(" Please select an appropriate date for ALL fields.")]):t._e()]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation Start: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationStartModel,callback:function(e){t.rfcImplementationStartModel=e},expression:"rfcImplementationStartModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation End: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationEndModel,callback:function(e){t.rfcImplementationEndModel=e},expression:"rfcImplementationEndModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Release Date: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcReleaseModel,callback:function(e){t.rfcReleaseModel=e},expression:"rfcReleaseModel"}})],1)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n LEAD:\n "),!t.$v.rfcChangeLeadModel.required&&t.$v.rfcChangeLeadModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Lead.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcChangeLeadFixList},on:{search:t.fetchOptions},model:{value:t.rfcChangeLeadModel,callback:function(e){t.rfcChangeLeadModel=e},expression:"rfcChangeLeadModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"request_for_change","is-dirty":t.$v.groupModel.$dirty,"user-group-results":t.userGroupResults},on:{update_group_model:function(e){return t.updateGroupModel(e)}}})],1)};mp._withStripped=!0;const fp=n(3);var hp=J({name:"RfcDetails",props:{groupResults:Array,userGroupResults:{type:Array,default:()=>[]},userResults:Array},mixins:[ut],data:()=>({groupModel:[],rfcChangeLeadFixList:[],rfcChangeLeadModel:"",rfcImplementationStartModel:"",rfcImplementationEndModel:"",rfcReleaseModel:"",rfcStatus:[{label:"Draft",value:1},{label:"Waiting for approval",value:2},{label:"Approved",value:3},{label:"Started",value:4},{label:"Finished",value:5},{label:"Rejected",value:6}],rfcType:[{label:"Emergency",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcTypeModel:"",rfcVersionModel:"",searchTimeout:""}),validations:{groupModel:{required:dt.required},rfcChangeLeadModel:{required:dt.required},rfcImplementationStartModel:{required:dt.required},rfcImplementationEndModel:{required:dt.required},rfcReleaseModel:{required:dt.required},rfcTypeModel:{required:dt.required},rfcVersionModel:{maxLength:Object(dt.maxLength)(25)}},computed:{checkDateValidation:function(){const t=!this.$v.rfcImplementationStartModel.required&&this.$v.rfcImplementationStartModel.$dirty,e=!this.$v.rfcImplementationEndModel.required&&this.$v.rfcImplementationEndModel.$dirty,n=!this.$v.rfcReleaseModel.required&&this.$v.rfcReleaseModel.$dirty;return t||e||n}},methods:{fetchOptions:function(t,e){this.searchTrigger({return_function:this.getChangeLeadData,searchTimeout:this.searchTimeout,search:t,loading:e})},getChangeLeadData:function(t,e){const n=new FormData;n.set("search",t),fp.post("/object_data/lead_user_list/",n).then(t=>{this.rfcChangeLeadFixList=[],t.data.forEach(t=>{var e={value:t.pk,label:`${t.fields.username} - ${t.fields.first_name} ${t.fields.last_name}`};this.rfcChangeLeadFixList.push(e)})}).catch((function(t){document.getElementById("errorModalContent").innerHTML="Search Lead User Issue:
"+t,new bootstrap.Modal(document.getElementById("errorModal"),{keyboard:!1}).show(),document.getElementById("loader").style.display="none"}))},updateGroupModel:function(t){this.groupModel=t,this.updateValues("groupModel",t),this.updateValidation()},updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_1",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcChangeLeadModel:function(){this.updateValues("rfcChangeLeadModel",this.rfcChangeLeadModel),this.updateValidation()},rfcImplementationStartModel:function(){this.updateValues("rfcImplementationStartModel",this.rfcImplementationStartModel),this.updateValidation()},rfcImplementationEndModel:function(){this.updateValues("rfcImplementationEndModel",this.rfcImplementationEndModel),this.updateValidation()},rfcReleaseModel:function(){this.updateValues("rfcReleaseModel",this.rfcReleaseModel),this.updateValidation()},rfcStatus:function(){this.updateValues("rfcStatus",this.rfcStatus),this.updateValidation()},rfcType:function(){this.updateValues("rfcType",this.rfcType),this.updateValidation()},rfcTypeModel:function(){this.updateValues("rfcTypeModel",this.rfcTypeModel),this.updateValidation()},rfcVersionModel:function(){this.updateValues("rfcVersionModel",this.rfcVersionModel),this.updateValidation()}},mounted(){this.getChangeLeadData(),this.$v.$touch()}},mp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Type and Version")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please specify how urgent this RFC's status really is. Optionally you can also specify the version\n or release number.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Important Dates")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the implementation start and end dates. Please also suply the release date of the\n change to the general consumer.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Change LEAD: ")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the LEAD who will be leading this Request for Change.\n ")])])}],!1,null,"38d20597",null);hp.options.__file="src/js/components/request_for_change/tabs/RfcDetails.vue";var vp=hp.exports,gp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("label",[t._v("Implementation Plan:\n "),!t.$v.rfcImplementationPlanModel.required&&t.$v.rfcImplementationPlanModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcImplementationPlanModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcImplementationPlanModel,callback:function(e){t.rfcImplementationPlanModel=e},expression:"rfcImplementationPlanModel"}})],1)])};gp._withStripped=!0;var bp=J({name:"RfcImplementationPlan",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcImplementationPlanModel:""}),validations:{rfcImplementationPlanModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_3",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcImplementationPlanModel:function(){this.updateValues("rfcImplementationPlanModel",this.rfcImplementationPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcImplementationPlanModel=this.rfcResults[0].fields.rfc_implementation_plan)}},gp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Implementation Plan")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please outline your implementation plan for this request for change.\n ")])])}],!1,null,"420ae536",null);bp.options.__file="src/js/components/request_for_change/tabs/RfcImplementationPlan.vue";var _p=bp.exports,yp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("label",[t._v("\n Priority of Change\n "),!t.$v.rfcPriorityModel.required&&t.$v.rfcPriorityModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcPriority,disabled:t.isReadOnly},model:{value:t.rfcPriorityModel,callback:function(e){t.rfcPriorityModel=e},expression:"rfcPriorityModel"}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("label",[t._v("\n Risk of Change\n "),!t.$v.rfcRiskModel.required&&t.$v.rfcRiskModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcRisk,disabled:t.isReadOnly},model:{value:t.rfcRiskModel,callback:function(e){t.rfcRiskModel=e},expression:"rfcRiskModel"}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("label",[t._v("\n Impact of Change\n "),!t.$v.rfcImpactModel.required&&t.$v.rfcImpactModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcImpact,disabled:t.isReadOnly},model:{value:t.rfcImpactModel,callback:function(e){t.rfcImpactModel=e},expression:"rfcImpactModel"}})],1)]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Risk Association:\n "),!t.$v.rfcRiskSummaryModel.required&&t.$v.rfcRiskSummaryModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcRiskSummaryModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcRiskSummaryModel,callback:function(e){t.rfcRiskSummaryModel=e},expression:"rfcRiskSummaryModel"}})],1)])};yp._withStripped=!0;var wp=J({name:"RfcRisk",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcPriority:[{label:"Critical",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcPriorityModel:"",rfcRisk:[{label:"Very High",value:5},{label:"High",value:4},{label:"Moderate",value:3},{label:"Low",value:2},{label:"None",value:1}],rfcRiskModel:"",rfcRiskSummaryModel:"",rfcImpact:[{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcImpactModel:""}),validations:{rfcPriorityModel:{required:dt.required},rfcRiskModel:{required:dt.required},rfcRiskSummaryModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},rfcImpactModel:{required:dt.required}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_2",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcPriority:function(){this.updateValues("rfcPriority",this.rfcPriority),this.updateValidation()},rfcPriorityModel:function(){this.updateValues("rfcPriorityModel",this.rfcPriorityModel),this.updateValidation()},rfcRisk:function(){this.updateValues("rfcRisk",this.rfcRisk),this.updateValidation()},rfcRiskModel:function(){this.updateValues("rfcRiskModel",this.rfcRiskModel),this.updateValidation()},rfcRiskSummaryModel:function(){this.updateValues("rfcRiskSummaryModel",this.rfcRiskSummaryModel),this.updateValidation()},rfcImpact:function(){this.updateValues("rfcImpact",this.rfcImpact),this.updateValidation()},rfcImpactModel:function(){this.updateValues("rfcImpactModel",this.rfcImpactModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcPriorityModel=this.rfcPriority.filter(t=>t.value===this.rfcResults[0].fields.rfc_priority)[0],this.rfcRiskModel=this.rfcRisk.filter(t=>t.value===this.rfcResults[0].fields.rfc_risk)[0],this.rfcRiskSummaryModel=this.rfcResults[0].fields.rfc_risk_and_impact_analysis,this.rfcImpactModel=this.rfcImpact.filter(t=>t.value===this.rfcResults[0].fields.rfc_impact)[0]),this.$v.$touch()}},yp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Risk")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please outline all risks associated with this Request for Change. A detail list of all risks should be\n noted.\n ")])])}],!1,null,"2dd96d4a",null);wp.options.__file="src/js/components/request_for_change/tabs/RfcRisk.vue";var xp=wp.exports,kp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("label",[t._v("Test Plan:\n "),!t.$v.rfcTestPlanModel.required&&t.$v.rfcTestPlanModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcTestPlanModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcTestPlanModel,callback:function(e){t.rfcTestPlanModel=e},expression:"rfcTestPlanModel"}})],1)])};kp._withStripped=!0;var Cp=J({name:"RfcTestPlan",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcTestPlanModel:""}),validations:{rfcTestPlanModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_5",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcTestPlanModel:function(){this.updateValues("rfcTestPlanModel",this.rfcTestPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcTestPlanModel=this.rfcResults[0].fields.rfc_test_plan)}},kp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Test Plan")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Outline your test plan. How will you test the Request for Change once it has been implemented.\n ")])])}],!1,null,"29045dd6",null);Cp.options.__file="src/js/components/request_for_change/tabs/RfcTestPlan.vue";var Mp=Cp.exports,Sp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Request for Change Title:\n "),!t.$v.rfcTitleModel.required&&t.$v.rfcTitleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rfcTitleModel,expression:"rfcTitleModel"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255"},domProps:{value:t.rfcTitleModel},on:{input:function(e){e.target.composing||(t.rfcTitleModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Request for Change Summary:\n "),!t.$v.rfcSummaryModel.required&&t.$v.rfcSummaryModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcSummaryModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcSummaryModel,callback:function(e){t.rfcSummaryModel=e},expression:"rfcSummaryModel"}})],1)])};Sp._withStripped=!0;var Tp=J({name:"RfcDescription",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}},staticUrl:{type:String,default:"/"}},data:()=>({rfcSummaryModel:"",rfcTitleModel:""}),validations:{rfcSummaryModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},rfcTitleModel:{required:dt.required,maxLength:Object(dt.maxLength)(250)}},methods:{updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcSummaryModel:function(){this.updateValues("rfcSummaryModel",this.rfcSummaryModel)},rfcTitleModel:function(){this.updateValues("rfcTitleModel",this.rfcTitleModel)}},updated(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_0",value:!this.$v.$invalid})},mounted(){this.rfcResults.length>0&&(this.rfcSummaryModel=this.rfcResults[0].fields.rfc_summary,this.rfcTitleModel=this.rfcResults[0].fields.rfc_title),this.$v.$touch()}},Sp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place a detailed description here. This should cover what your Request For Change (RFC) will entail and\n why it should be implemented within the time frames specified below.\n ")])])}],!1,null,"401203d1",null);Tp.options.__file="src/js/components/request_for_change/tabs/RfcDescription.vue";var Ep=Tp.exports,jp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Request for Change")]),t._v(" "),n("hr"),t._v(" "),n("rfc-description",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_values:function(e){return t.updateValues(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Request for Change Type:\n "),!t.$v.rfcTypeModel.required&&t.$v.rfcTypeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcType,disabled:t.isReadOnly},model:{value:t.rfcTypeModel,callback:function(e){t.rfcTypeModel=e},expression:"rfcTypeModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Version/Release Number")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rfcVersionModel,expression:"rfcVersionModel"}],staticClass:"form-control",attrs:{type:"text",maxlength:"25"},domProps:{value:t.rfcVersionModel},on:{input:function(e){e.target.composing||(t.rfcVersionModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"row col-md-8"},[n("div",{staticClass:"col-md-12"},[t.checkDateValidation?n("span",{staticClass:"error"},[t._v(" Please select an appropriate date for ALL fields.")]):t._e()]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation Start: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationStartModel,callback:function(e){t.rfcImplementationStartModel=e},expression:"rfcImplementationStartModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation End: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationEndModel,callback:function(e){t.rfcImplementationEndModel=e},expression:"rfcImplementationEndModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Release Date: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcReleaseModel,callback:function(e){t.rfcReleaseModel=e},expression:"rfcReleaseModel"}})],1)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("table",{staticClass:"table user-table-module"},[n("tbody",[n("tr",[t._m(3),t._v(" "),n("td",[n("strong",[t._v(t._s(t.rfcChangeLead[0].fields.username)+": ")]),t._v(t._s(t.rfcChangeLead[0].fields.first_name)+" "+t._s(t.rfcChangeLead[0].fields.last_name)+"\n "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"user-card-email"},[t._v("\n "+t._s(t.rfcChangeLead[0].fields.email)+"\n ")])])])])])])]),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-dark",attrs:{href:"javascript:void(0)"},on:{click:t.updateRFCStatus}},[t._v("Submit RFC for Approval")]),t._v(" "),n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRFC}},[t._v("Update Request for Change")])])])],1)])};jp._withStripped=!0;const Op=n(3);var Ip=J({name:"RfcInformation",props:{groupLeaderCount:{type:Number,default:0},isReadOnly:{type:Boolean,default:!1},rfcChangeLead:Array,rfcResults:Array},mixins:[h,ie],data(){return{rfcChangeLeadFixList:[],rfcChangeLeadModel:"",rfcTitleModel:this.rfcResults[0].fields.rfc_title,rfcSummaryModel:this.rfcResults[0].fields.rfc_summary,rfcImplementationStartModel:this.rfcResults[0].fields.rfc_implementation_start_date,rfcImplementationEndModel:this.rfcResults[0].fields.rfc_implementation_end_date,rfcReleaseModel:this.rfcResults[0].fields.rfc_implementation_release_date,rfcStatus:[{label:"Draft",value:1},{label:"Waiting for approval",value:2},{label:"Approved",value:3},{label:"Started",value:4},{label:"Finished",value:5},{label:"Rejected",value:6}],rfcType:[{label:"Emergency",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcTypeModel:"",rfcVersionModel:this.rfcResults[0].fields.rfc_version_number}},validations:{rfcTitleModel:{required:dt.required},rfcSummaryModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},rfcImplementationStartModel:{required:dt.required},rfcImplementationEndModel:{required:dt.required},rfcReleaseModel:{required:dt.required},rfcTypeModel:{required:dt.required},rfcVersionModel:{maxLength:Object(dt.maxLength)(25)}},computed:{checkDateValidation:function(){const t=!this.$v.rfcImplementationStartModel.required&&this.$v.rfcImplementationStartModel.$dirty,e=!this.$v.rfcImplementationEndModel.required&&this.$v.rfcImplementationEndModel.$dirty,n=!this.$v.rfcReleaseModel.required&&this.$v.rfcReleaseModel.$dirty;return t||e||n}},methods:{updateRFC:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("rfc_title",this.rfcTitleModel),t.set("rfc_summary",this.rfcSummaryModel),t.set("rfc_type",this.rfcTypeModel.value),t.set("rfc_version_number",this.rfcVersionModel),t.set("rfc_implementation_start_date",this.rfcImplementationStartModel),t.set("rfc_implementation_end_date",this.rfcImplementationEndModel),t.set("rfc_implementation_release_date",this.rfcReleaseModel),this.showLoadingModal("Project"),Op.post(`/rfc_information/${this.rfcResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,this.destination)})},updateRFCStatus:function(){const t=new FormData;t.set("rfc_status","2"),Op.post(`/rfc_information/${this.rfcResults[0].pk}/update_status/`,t).then(t=>{window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,"Request for Change",this.rfcResults[0].pk)})},updateValues:function(t){this._data[t.modelName]=t.modelValue}},mounted(){this.rfcTypeModel=this.rfcType.filter(t=>t.value==this.rfcResults[0].fields.rfc_type)[0]}},jp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Type and Version")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please specify how urgent this RFC's status really is. Optionally you can also specify the version\n or release number.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Important Dates")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the implementation start and end dates. Please also suply the release date of the\n change to the general consumer.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Change LEAD: ")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the LEAD who will be leading this Request for Change.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("img",{staticClass:"default-user-profile",attrs:{src:"/static/NearBeach/images/placeholder/people_tax.svg",alt:"default profile"}})])}],!1,null,"7d37e2ba",null);Ip.options.__file="src/js/components/request_for_change/RfcInformation.vue";var Lp=Ip.exports,Dp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[t._m(0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"misc_module_content"}},[n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-risk",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-risk",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRisk}},[t._v("Update Risks")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-implementation",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-implementation-plan",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateImplementation}},[t._v("Update Implementation Plan")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-backout",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-backout-plan",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateBackoutPlan}},[t._v("Update Backout Plan")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-test",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-test-plan",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateTestPlan}},[t._v("Update Test Plan")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-run-sheet",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-run-sheet-list",{attrs:{"is-read-only":t.isReadOnly,"location-id":t.locationId,"user-list":t.userList,"rfc-id":t.rfcResults[0].pk,"rfc-status":t.rfcResults[0].fields.rfc_status},on:{update_values:function(e){return t.updateValues(e)}}})],1)])])])};Dp._withStripped=!0;const Np=n(3);var $p=J({name:"RfcModules",props:{locationId:Number,destination:String,isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:[]},userList:Array},mixins:[h,ie],data:()=>({rfcData:{rfcBackoutPlan:"",rfcImpactModel:{},rfcImplementationPlanModel:"",rfcPriorityModel:{},rfcRiskModel:{},rfcRiskSummaryModel:"",rfcTestPlanModel:"",rfcTypeModel:{}},validationData:{tab_2:!0,tab_3:!0,tab_4:!0,tab_5:!0}}),methods:{sendData:function(t,e){this.showLoadingModal("Project"),Np.post(e,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,this.destination)})},updateBackoutPlan:function(){if(!1===this.validationData.tab_4)return void this.showErrorModal("Please fill out all data","Backout Plan","");const t=new FormData;t.set("text_input",this.rfcData.rfcBackoutPlan),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/backout/`)},updateImplementation:function(){if(!1===this.validationData.tab_3)return void this.showErrorModal("Please fill out all data","Implementation","");const t=new FormData;t.set("text_input",this.rfcData.rfcImplementationPlanModel),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/implementation/`)},updateRisk:function(){if(!1===this.validationData.tab_2)return void this.showErrorModal("Please fill out all data","Risk","");const t=new FormData;t.set("priority_of_change",this.rfcData.rfcPriorityModel.value),t.set("risk_of_change",this.rfcData.rfcRiskModel.value),t.set("impact_of_change",this.rfcData.rfcImpactModel.value),t.set("text_input",this.rfcData.rfcRiskSummaryModel),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/risk/`)},updateValidation:function(t){this.validationData[t.tab]=t.value},updateTestPlan:function(){if(!1===this.validationData.tab_5)return void this.showErrorModal("Please fill out all data","Test Plan","");const t=new FormData;t.set("text_input",this.rfcData.rfcTestPlanModel),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/test/`)},updateValues:function(t){this.rfcData[t.modelName]=t.modelValue}}},Dp,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"nav nav-tabs",attrs:{id:"misc_module_tabs",role:"tablist"}},[n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-risk-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-risk",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Risk")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-implementation-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-implementation",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Implementation")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-backout-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-backout",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Backout Plan")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-test-plan-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-test",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Test Plan")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-run-sheet-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-run-sheet",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Run Sheet")])])])}],!1,null,"e5424ad6",null);$p.options.__file="src/js/components/request_for_change/RfcModules.vue";var Ap=$p.exports,Rp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newRunItemModal",tabindex:"-1","aria-labelledby":"newRunItemModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Change Title:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeTitleModel,expression:"changeTitleModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeTitleModel},on:{input:function(e){e.target.composing||(t.changeTitleModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"Change Task"},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Change Task Description (Optional):")]),t._v(" "),n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.changeDescriptionModel,callback:function(e){t.changeDescriptionModel=e},expression:"changeDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Stakeholders:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeStakeholderModel,expression:"changeStakeholderModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeStakeholderModel},on:{input:function(e){e.target.composing||(t.changeStakeholderModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"btn-group",attrs:{role:"group","aria-label":"Basic checkbox toggle button group"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeIsDowntimeModel,expression:"changeIsDowntimeModel"}],staticClass:"btn-check",attrs:{type:"checkbox",id:"isDowntime",autocomplete:"off"},domProps:{checked:Array.isArray(t.changeIsDowntimeModel)?t._i(t.changeIsDowntimeModel,null)>-1:t.changeIsDowntimeModel},on:{change:function(e){var n=t.changeIsDowntimeModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.changeIsDowntimeModel=n.concat([null])):o>-1&&(t.changeIsDowntimeModel=n.slice(0,o).concat(n.slice(o+1)))}else t.changeIsDowntimeModel=i}}}),t._v(" "),n("label",{staticClass:"btn btn-outline-primary",attrs:{for:"isDowntime"}},[t._v(t._s(t.isDowntime()))])])])])],1),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.submitChangeTask(e)}}},[t._v("\n Add Change Task\n ")])])])])])};Rp._withStripped=!0;const Pp=n(3);var qp=J({name:"RfcNewRunItem",props:{locationId:Number},mixins:[h],data:()=>({changeDescriptionModel:"",changeEndDateModel:"",changeIsDowntimeModel:!1,changeStakeholderModel:"Stakeholder(s)",changeStartDateModel:"",changeTitleModel:""}),methods:{isDowntime:function(){return this.changeIsDowntimeModel?"Downtime Scheduled":"No Downtime"},submitChangeTask:function(t){t.preventDefault();var e=parseInt(this.changeEndDateModel)-parseInt(this.changeStartDateModel);const n=new FormData;n.set("request_for_change",this.locationId.toString()),n.set("change_task_title",this.changeTitleModel),n.set("change_task_description",this.changeDescriptionModel),n.set("change_task_start_date",this.changeStartDateModel),n.set("change_task_end_date",this.changeEndDateModel),n.set("change_task_seconds",e.toString()),n.set("change_task_required_by",this.changeStakeholderModel),n.set("is_downtime",this.changeIsDowntimeModel),Pp.post(`/rfc_information/${this.locationId}/new_change_task/`,n).then(t=>{this.$emit("update_change_task_list",t.data),this.changeDescriptionModel="",this.changeIsDowntimeModel=!1,this.changeStakeholderModel="Stakeholder(s)",this.changeTitleModel="",document.getElementById("newRunItemCloseButton").click()}).catch(t=>{this.showErrorModal(t,"Change Task")})},updateDates:function(t){this.changeStartDateModel=t.start_date,this.changeEndDateModel=t.end_date}}},Rp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h2",{staticClass:"modal-title",attrs:{id:"newRunItemModalLabel"}},[this._v("New Change Task")]),this._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"newRunItemCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Change Task Title")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please write a short title of the description for this task. i.e Backup of Database\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Write a detail description of this particular task.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Misc")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Please fill in the stakeholders for this particular change task. Default value will be\n "Stakeholders".\n ')]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n To state if there is downtime, please click the "No Downtime" to change it\'s statue.\n ')])])}],!1,null,"1057ced8",null);qp.options.__file="src/js/components/request_for_change/modules/RfcNewRunItem.vue";var zp=qp.exports,Fp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[t.changeTaskList.length>0?n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.changeTaskList,(function(e){return n("tr",[n("td",[n("div",[t._v("Start Time:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getNiceDate(e.fields.change_task_start_date)))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",[t._v("End Time:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getNiceDate(e.fields.change_task_end_date)))])]),t._v(" "),n("td",[n("a",{attrs:{href:"/change_task_information/"+e.pk+"/"}},[t._v(t._s(e.fields.change_task_title))])]),t._v(" "),n("td",[n("div",[t._v("Assigned User:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getUserName(e.fields.change_task_assigned_user)))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",[t._v("QA User:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getUserName(e.fields.change_task_qa_user)))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",[t._v("Status:")]),t._v(" "),4!==t.rfcStatus?n("div",{staticClass:"small-text"},[t._v("\n "+t._s(t.getStatus(e.fields.change_task_status))+"\n ")]):n("div",[3==e.fields.change_task_status?n("a",{staticClass:"btn btn-primary change-task-button",attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.updateChangeTaskStatus(e.pk,4)}}},[t._v("Start Task")]):t._e(),t._v(" "),4==e.fields.change_task_status?n("a",{staticClass:"btn btn-warning change-task-button",attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.updateChangeTaskStatus(e.pk,5)}}},[t._v("Finish Task")]):t._e(),t._v(" "),5==e.fields.change_task_status?n("a",{staticClass:"btn btn-success change-task-button",attrs:{href:"javascript:void(0)"}},[t._v("Successful")]):t._e(),t._v(" "),6==e.fields.change_task_status?n("a",{staticClass:"btn btn-danger change-task-button",attrs:{href:"javascript:void(0)"}},[t._v("Failed")]):t._e()])])])})),0)]):t._e(),t._v(" "),0==t.changeTaskList.length?n("div",{staticClass:"alert alert-primary"},[t._v("\n Currently there are no Change Tasks associated with this Request for Change. Please add some by clicking\n on the button below.\n ")]):t._e()]),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewChangeItem}},[t._v("New Change Item")])])]),t._v(" "),t.isCompleted?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-warning save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.closeRfc}},[t._v("Close Request for Change")])])]):t._e(),t._v(" "),t.isReadOnly?t._e():n("rfc-new-run-item",{attrs:{"location-id":t.locationId},on:{update_change_task_list:function(e){return t.updateChangeTaskList(e)}}})],1)};Fp._withStripped=!0;var Up={methods:{getNiceDate:function(t){return Hn.DateTime.fromISO(t).toLocaleString(Hn.DateTime.DATETIME_MED)}}};const Bp=n(3);var Vp=J({name:"RfcRunSheetList",props:{isReadOnly:{type:Boolean,default:!1},locationId:Number,rfcId:Number,rfcStatus:{type:Number,default:0},userList:Array},mixins:[h,Up],data:()=>({changeTaskList:[]}),computed:{isCompleted:function(){return 0===this.changeTaskList.filter(t=>{const e=t.fields.change_task_status;return 5!==e&&6!==e}).length&&(3===this.rfcStatus||4===this.rfcStatus)}},methods:{addNewChangeItem:function(){new f.a(document.getElementById("newRunItemModal")).show()},closeRfc:function(){const t=new FormData;t.set("rfc_status",5),Bp.post(`/rfc_information/${this.rfcId}/update_status/`,t).then(t=>{window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,"request_for_change")})},getRunSheetList:function(){Bp.post(`/rfc_information/${this.locationId}/change_task_list/`).then(t=>{this.changeTaskList=t.data}).catch(t=>{this.showErrorModal(t,"request_for_change")})},getStatus:function(t){switch(t){case 1:return"Draft";case 2:return"Waiting for approval";case 3:return"Waiting to start";case 4:return"Task Started";case 5:return"Task Finished";case 6:return"Task FAILED";default:return"---"}},getUserName:function(t){var e=this.userList.filter(e=>e.pk==t);return 0==e.length?"---":`${e[0].fields.username}: ${e[0].fields.first_name} ${e[0].fields.last_name}`},updateChangeTaskList:function(t){this.changeTaskList=t},updateChangeTaskStatus:function(t,e){const n=new FormData;n.set("change_task_status",e),Bp.post(`/change_task_update_status/${t}/`,n).then(n=>{this.changeTaskList=this.changeTaskList.map(n=>n.pk==t?(n.fields.change_task_status=e,n):n)}).catch(t=>{this.showErrorModal(t,"request_for_change")})}},mounted(){this.getRunSheetList()}},Fp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Run Sheet List")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The run sheet will specify specific tasks for each user to implement. Each run item can be specified to;\n "),e("ul",[e("li",[this._v("Block other run items")]),this._v(" "),e("li",[this._v("Block out downtime")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{staticStyle:{width:"20%"}},[this._v("Timings")]),this._v(" "),e("td",{staticStyle:{width:"55%"}},[this._v("Title")]),this._v(" "),e("td",{staticStyle:{width:"25%"}},[this._v("Assigned Users")])])])}],!1,null,"1039222c",null);Vp.options.__file="src/js/components/request_for_change/modules/RfcRunSheetList.vue";var Hp=Vp.exports,Wp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.rfcApprovalsList.length>0?n("div",{staticClass:"card rfc-approvals-card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Request for Changes Waiting for Approval")]),t._v(" "),n("hr"),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following Request for Changes, require you to action them. You can either approve or reject these\n Request for Changes.\n ")]),t._v(" "),n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.rfcApprovalsList,(function(e){return n("tr",{staticClass:"bg-white"},[n("td",[n("a",{attrs:{href:t.rootUrl+"rfc_readonly/"+e.pk+"/"}},[n("p",[t._v(t._s(e.fields.rfc_title))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("RFC"+t._s(e.pk))])])]),t._v(" "),n("td",[t._v(t._s(t.getNiceDate(e.fields.rfc_implementation_start_date)))])])})),0)])])]):t._e()};Wp._withStripped=!0;const Gp=n(3);var Yp=J({name:"DashboardRfcApprovals.vue",props:{rootUrl:{type:String,default:"/"}},data:()=>({rfcApprovalsList:[]}),mixins:[Up,h],methods:{getRfcApprovalsList:function(){Gp.post(this.rootUrl+"dashboard/get/rfc_approvals/").then(t=>{this.rfcApprovalsList=t.data}).catch(t=>{this.showErrorModal(t,"Dashboard","")})}},mounted(){this.getRfcApprovalsList()}},Wp,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Request for Change")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Implementation Date")])])])}],!1,null,"6e3b3604",null);Yp.options.__file="src/js/components/dashboard/DashboardRfcApprovals.vue";var Kp=Yp.exports,Zp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showApprovalButton?n("div",{staticClass:"card submit-rfc-card"},[n("div",{staticClass:"card-body"},[t._m(0),t._v(" "),n("div",{staticClass:"row submit-row rfc-submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary",attrs:{href:"javascript:void(0)"},on:{click:t.approveRfc}},[t._v("Approve RFC")]),t._v(" "),n("a",{staticClass:"btn btn-danger reject-rfc",attrs:{href:"javascript:void(0)"},on:{click:t.rejectRfc}},[t._v("REJECT RFC")])])])])]):t._e()};Zp._withStripped=!0;const Xp=n(3);var Jp=J({name:"RfcApprovalButtons",props:{rfcResults:Array,groupLeaderCount:Number},mixins:[h,ie],computed:{showApprovalButton:function(){return 2===this.rfcResults[0].fields.rfc_status&&this.groupLeaderCount>0}},methods:{approveRfc:function(){const t=new FormData;t.set("rfc_status","3"),this.sendStatus(t)},rejectRfc:function(){const t=new FormData;t.set("rfc_status","6"),this.sendStatus(t)},sendStatus:function(t){this.showLoadingModal("Request for Change"),Xp.post(`/rfc_information/${this.rfcResults[0].pk}/update_status/`,t).then(t=>{this.closeLoadingModal(),window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,this.destination)})}}},Zp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("h2",[this._v("Approval Process")]),this._v(" "),e("hr"),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Please read the complete process for this Request for Change. If you decided to approve, please\n click on the "Approve RFC" button. If you reject this Request for Change, please click on the\n "Reject RFC" button.\n ')])])}],!1,null,"7005f7d4",null);Jp.options.__file="src/js/components/request_for_change/modules/RfcApprovalButtons.vue";var Qp=Jp.exports,tm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Groups")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-groups",domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),t.groupList.length>0?n("div",{staticClass:"list-group"},t._l(t.groupList,(function(e){return n("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"/group_information/"+e.pk+"/"}},[n("strong",[t._v(t._s(e.fields.group_name))]),t._v(" "),n("br"),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Parent Group: "+t._s(e.fields.parent_group)+"\n ")])])})),0):n("div",{staticClass:"alert alert-warning"},[t._v("Sorry, there are no groups.")]),t._v(" "),n("hr"),t._v(" "),t._m(0)])])};tm._withStripped=!0;const em=n(3);var nm=J({name:"SearchGroups",props:{groupResults:Array},mixins:[h,ut],data(){return{groupList:this.groupResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),em.post("/search/group/data/",t).then(t=>{this.groupList=t.data}).catch(t=>{this.showErrorModal(t,"Search Groups","")})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},tm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row submit-row"},[e("div",{staticClass:"col-md-12"},[e("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"/new_group/"}},[this._v("\n Add new Group\n ")])])])}],!1,null,"cf407972",null);nm.options.__file="src/js/components/search/SearchGroups.vue";var rm=nm.exports,im=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Permission Sets")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-groups",domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),t.permissionSetList.length>0?n("div",{staticClass:"list-group"},t._l(t.permissionSetList,(function(e){return n("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"/permission_set_information/"+e.pk+"/"}},[n("strong",[t._v(t._s(e.fields.permission_set_name))]),t._v(" "),n("br")])})),0):n("div",{staticClass:"alert alert-warning"},[t._v("Sorry, there are no permission sets.")]),t._v(" "),n("hr"),t._v(" "),t._m(0)])])};im._withStripped=!0;const om=n(3);var am=J({name:"SearchPermissionSets",props:{permissionSetResults:Array},mixins:[h,ut],data(){return{permissionSetList:this.permissionSetResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),om.post("/search/permission_set/data/",t).then(t=>{this.permissionSetList=t.data}).catch(t=>{this.showErrorModal(t,"Search Permission Set","")})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},im,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row submit-row"},[e("div",{staticClass:"col-md-12"},[e("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"/new_permission_set/"}},[this._v("\n Add new Permission Set\n ")])])])}],!1,null,"494bd99a",null);am.options.__file="src/js/components/search/SearchPermissionSets.vue";var sm=am.exports,lm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Groups")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-groups",domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),t.userList.length>0?n("div",{staticClass:"list-group"},t._l(t.userList,(function(e){return n("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"/user_information/"+e.pk+"/"}},[n("strong",[t._v("\n "+t._s(e.fields.username)+": "+t._s(e.fields.first_name)+" "+t._s(e.fields.last_name)+"\n ")]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v(t._s(e.fields.email))])])})),0):n("div",{staticClass:"alert alert-warning"},[t._v("Sorry, there are no groups.")]),t._v(" "),n("hr"),t._v(" "),t._m(0)])])};lm._withStripped=!0;const cm=n(3);var dm=J({name:"SearchUsers",props:{userResults:Array},mixins:[h,ut],data(){return{searchModel:"",searchTimeout:"",userList:this.userResults}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),cm.post("/search/user/data/",t).then(t=>{this.userList=t.data}).catch(t=>{this.showErrorModal(t,"Search Users","")})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},lm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row submit-row"},[e("div",{staticClass:"col-md-12"},[e("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"/new_user/"}},[this._v("\n Add new User\n ")])])])}],!1,null,"12cc9736",null);dm.options.__file="src/js/components/search/SearchUsers.vue";var um=dm.exports,pm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Group")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Group Name\n "),!t.$v.groupNameModel.required&&t.$v.groupNameModel.$dirty?n("span",{staticClass:"error"},[t._v("\n Please suppy a title.\n ")]):t._e(),t._v(" "),t.uniqueGroupName?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a unique name")]),t._v(" "),t.checkingGroupName?n("span",{staticClass:"error"},[t._v(" Checking group name...")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.groupNameModel,expression:"groupNameModel"}],staticClass:"form-control",domProps:{value:t.groupNameModel},on:{input:function(e){e.target.composing||(t.groupNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Parent Group (optional)\n ")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.groupResultsFixList,label:"group_name"},model:{value:t.parentGroupModel,callback:function(e){t.parentGroupModel=e},expression:"parentGroupModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewGroup}},[t._v("Create new Group")])])])])])};pm._withStripped=!0;const mm=n(3);var fm=J({name:"NewGroup",props:{groupResults:Array},data:()=>({checkingGroupName:!1,groupNameModel:"",groupResultsFixList:[],parentGroupModel:"",uniqueGroupName:!0}),mixins:[h,ut],validations:{groupNameModel:{required:dt.required}},watch:{groupNameModel:function(){this.checkingGroupName=!0,this.searchTrigger({return_function:this.checkGroupName,searchTimeout:this.searchTimeout})}},methods:{addNewGroup:function(){if(this.$v.$touch(),this.$v.$invalid||!this.uniqueGroupName)return void this.showValidationErrorModal();const t=new FormData;t.set("group_name",this.groupNameModel),void 0!==this.parentGroupModel.value&&t.set("parent_group",this.parentGroupModel.value),mm.post("/new_group/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"New Group","")})},checkGroupName:function(){const t=new FormData;t.set("search",this.groupNameModel),mm.post("/group_information/check_group_name/",t).then(t=>{this.uniqueGroupName=0==t.data.length,this.checkingGroupName=!1}).catch(t=>{this.showErrorModal(t,"New Group","")})}},mounted(){this.groupResultsFixList=this.groupResults.map(t=>({group_name:t.fields.group_name,value:t.pk}))}},pm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Create a new group")]),this._v(" "),e("p",{staticClass:"text-instructional"},[this._v("\n Each group should contain a unique name. If the name already exists then we won't be able\n to create the group.\n ")])])}],!1,null,"4e45c1be",null);fm.options.__file="src/js/components/groups/NewGroup.vue";var hm=fm.exports,vm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Group Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Group Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.groupNameModel,expression:"groupNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.groupNameModel},on:{input:function(e){e.target.composing||(t.groupNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Parent Group")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.parentGroupFixList,label:"group_name"},model:{value:t.parentGroupModel,callback:function(e){t.parentGroupModel=e},expression:"parentGroupModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateGroup}},[t._v("Update Group")])])])])])};vm._withStripped=!0;const gm=n(3);var bm=J({name:"GroupInformation",props:{groupResults:Array,parentGroupResults:Array},data(){return{groupNameModel:this.groupResults[0].fields.group_name,parentGroupFixList:[],parentGroupModel:""}},mixins:[h,ie],methods:{updateGroup:function(){const t=new FormData;t.set("group_name",this.groupNameModel),void 0!==this.parentGroupModel.value&&t.set("parent_group",this.parentGroupModel.value),this.showLoadingModal("Group Information"),gm.post(`/group_information/${this.groupResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"group_information","")})}},mounted(){const t=this.parentGroupResults.map(t=>({group_name:t.fields.group_name,value:t.pk})),e=t.filter(t=>t.value===this.groupResults[0].fields.parent_group);this.parentGroupFixList=t,this.parentGroupModel="",e.length>0&&(this.parentGroupModel=e[0])}},vm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Group Information")]),this._v(" "),e("p",{staticClass:"text-instruction"},[this._v("\n Please edit the group information here. Please note - groups have to be unique!\n ")])])}],!1,null,"2187d7a8",null);bm.options.__file="src/js/components/groups/GroupInformation.vue";var _m=bm.exports,ym=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h2",[t._v("User List")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.uniqueListOfUsers,(function(e){return n("tr",[n("td",[t._v(t._s(e.first_name)+" "+t._s(e.last_name))]),t._v(" "),n("td",[t._v(t._s(t.getList(e.username,"group__group_name")))]),t._v(" "),n("td",[t._v(t._s(t.getList(e.username,"permission_set__permission_set_name")))])])})),0)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addUser}},[t._v("Add User")])])])]),t._v(" "),n("admin-add-user",{attrs:{destination:t.destination,"location-id":t.locationId}})],1)};ym._withStripped=!0;var wm=J({name:"UserList",props:{destination:String,locationId:Number,userListResults:Array},data:()=>({uniqueListOfUsers:[]}),methods:{addUser:function(){new f.a(document.getElementById("addUserModal")).show()},getList:function(t,e){const n=this.userListResults.filter(e=>e.username==t);return[...new Set(n.map(t=>t[e]))]},getUniqueListOfUsers:function(){const t=this.userListResults.map(t=>({username:t.username,first_name:t.username__first_name,last_name:t.username__last_name,email:t.email}));var e=[];t.forEach(t=>{0===e.filter(e=>e.username===t.username).length&&e.push(t)}),this.uniqueListOfUsers=e}},mounted(){this.getUniqueListOfUsers()}},ym,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("List of Users")]),this._v(" "),e("p",{attrs:{text:"text-instructions"}},[this._v('\n The following are a list of users associated to INSERT DESTINATION. To add a new user please\n click on the "Add User" at the bottom of the page.\n ')])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("User")]),this._v(" "),e("td",[this._v("Group List")]),this._v(" "),e("td",[this._v("Permission List")])])])}],!1,null,"e9580684",null);wm.options.__file="src/js/components/administration/UserList.vue";var xm=wm.exports,km=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addUserModal","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"addUserModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body"},["user"!==t.destination?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Search Users")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please use the select to find the user you would like to add to this "+t._s(t.destination)+"\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Search User")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.userResults},model:{value:t.userModel,callback:function(e){t.userModel=e},expression:"userModel"}})],1)]):t._e(),t._v(" "),"user"!==t.destination?n("hr"):t._e(),t._v(" "),"group"!==t.destination?n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Search Groups")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.groupResults,multiple:""},model:{value:t.groupModel,callback:function(e){t.groupModel=e},expression:"groupModel"}})],1)]):t._e(),t._v(" "),"group"!==t.destination?n("hr"):t._e(),t._v(" "),"permission_set"!==t.destination?n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Search Permission Sets")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.permissionSetResults,multiple:""},model:{value:t.permissionSetModel,callback:function(e){t.permissionSetModel=e},expression:"permissionSetModel"}})],1)]):t._e()]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addUser}},[t._v("Add User")])])])])])};km._withStripped=!0;const Cm=n(3);var Mm=J({name:"AdminAddUser",props:{destination:String,locationId:Number},data:()=>({groupModel:[],groupResults:[],permissionSetModel:[],permissionSetResults:[],userModel:[],userResults:[]}),mixins:[h],methods:{addUser:function(){const t=new FormData;t.set("username",this.userModel.value),this.groupModel.forEach(e=>{t.append("group",e.value)}),this.permissionSetModel.forEach(e=>{t.append("permission_set",e.value)}),Cm.post("/admin_add_user/",t).then(t=>{window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,"Admin Add user","")})},getData:function(){Cm.post("/object_data/admin_add_user/").then(t=>{switch(this.groupResults=t.data.group_results.map(t=>({label:t.group_name,value:t.group_id})),this.permissionSetResults=t.data.permission_set_results.map(t=>({label:t.permission_set_name,value:t.permission_set_id})),this.userResults=t.data.user_results.map(t=>({label:`${t.id}: ${t.first_name} ${t.last_name}`,value:t.id})),this.destination){case"group":this.groupModel=this.groupResults.filter(t=>t.value===this.locationId);break;case"permission_set":this.permissionSetModel=this.permissionSetResults.filter(t=>t.value===this.locationId);break;case"user":this.userModel=this.userResults.filter(t=>t.value===this.locationId)[0]}}).catch(t=>{this.showErrorModal(t,"Admin Add User","")})}},mounted(){this.getData()}},km,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"addUserModalLabel"}},[this._v("Add User")]),this._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Search Groups")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please use the select to find the group you would like to add to this user to.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Search Permission Sets")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please use the select to find the permission set you would like to add to this user.\n ")])])}],!1,null,"b83e321c",null);Mm.options.__file="src/js/components/administration/AdminAddUser.vue";var Sm=Mm.exports,Tm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Permission Information")]),t._v(" "),n("hr"),t._v(" "),1===this.permissionSetResults[0].pk?n("div",{staticClass:"alert alert-danger"},[t._v("Can not edit administration permission set.")]):t._e(),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Permission Set Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.permissionSetNameModel,expression:"permissionSetNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.permissionSetNameModel},on:{input:function(e){e.target.composing||(t.permissionSetNameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"administrationAssignUserToGroupModel","property-label":"Assign User To Group Model","property-value":t.administrationAssignUserToGroupModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"administrationCreateGroupModel","property-label":"Create Groups","property-value":t.administrationCreateGroupModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"administrationCreatePermissionSetModel","property-label":"Create Permission Sets","property-value":t.administrationCreatePermissionSetModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"administrationCreateUserModel","property-label":"Create Users","property-value":t.administrationCreateUserModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"bugClientModel","property-label":"Configure bug clients","property-value":t.bugClientModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"customerModel","property-label":"Customers","property-value":t.customerModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"organisationModel","property-label":"Organisations","property-value":t.organisationModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"kanbanModel","property-label":"Kanban Boards","property-value":t.kanbanModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"kanbanCardModel","property-label":"Kanban Cards","property-value":t.kanbanCardModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"projectModel","property-label":"Projects","property-value":t.projectModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"taskModel","property-label":"Tasks","property-value":t.taskModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"requestForChangeModel","property-label":"Request for Change","property-value":t.requestForChangeModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"requirementModel","property-label":"Requirements","property-value":t.requirementModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"documentModel","property-label":"Grants upload ability","property-value":t.documentModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"kanbanCommentModel","property-label":"Grants comments on Kanban Boards","property-value":t.kanbanCommentModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"projectHistoryModel","property-label":"Grants comments on Projects","property-value":t.projectHistoryModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"taskHistoryModel","property-label":"Grants comments on Tasks","property-value":t.taskHistoryModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),1!==this.permissionSetResults[0].pk?n("hr"):t._e(),t._v(" "),1!==this.permissionSetResults[0].pk?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.saveChanges}},[t._v("Save Permission Set")])])]):t._e()])])};Tm._withStripped=!0;const Em=n(3);var jm=J({name:"PermissionInformation",props:{permissionBoolean:Array,permissionLevel:Array,permissionSetResults:Array},data(){return{permissionSetNameModel:this.permissionSetResults[0].fields.permission_set_name,administrationAssignUserToGroupModel:this.permissionSetResults[0].fields.administration_assign_user_to_group,administrationCreateGroupModel:this.permissionSetResults[0].fields.administration_create_group,administrationCreatePermissionSetModel:this.permissionSetResults[0].fields.administration_create_permission_set,administrationCreateUserModel:this.permissionSetResults[0].fields.administration_create_user,bugClientModel:this.permissionSetResults[0].fields.bug_client,customerModel:this.permissionSetResults[0].fields.customer,kanbanModel:this.permissionSetResults[0].fields.kanban_board,kanbanCardModel:this.permissionSetResults[0].fields.kanban_card,organisationModel:this.permissionSetResults[0].fields.organisation,projectModel:this.permissionSetResults[0].fields.project,requestForChangeModel:this.permissionSetResults[0].fields.request_for_change,requirementModel:this.permissionSetResults[0].fields.requirement,taskModel:this.permissionSetResults[0].fields.task,documentModel:this.permissionSetResults[0].fields.document,kanbanCommentModel:this.permissionSetResults[0].fields.kanban_comment,projectHistoryModel:this.permissionSetResults[0].fields.project_history,taskHistoryModel:this.permissionSetResults[0].fields.task_history}},mixins:[h,ie],methods:{saveChanges:function(){const t=new FormData;t.set("permission_set_id",this.permissionSetResults[0].pk),t.set("permission_set_name",this.permissionSetNameModel),t.set("administration_assign_user_to_group",this.administrationAssignUserToGroupModel),t.set("administration_create_group",this.administrationCreateGroupModel),t.set("administration_create_permission_set",this.administrationCreatePermissionSetModel),t.set("administration_create_user",this.administrationCreateUserModel),t.set("bug_client",this.bugClientModel),t.set("customer",this.customerModel),t.set("kanban_board",this.kanbanModel),t.set("kanban_card",this.kanbanCardModel),t.set("organisation",this.organisationModel),t.set("project",this.projectModel),t.set("requirement",this.requirementModel),t.set("request_for_change",this.requestForChangeModel),t.set("task",this.taskModel),t.set("document",this.documentModel),t.set("kanban_comment",this.kanbanCommentModel),t.set("project_history",this.projectHistoryModel),t.set("task_history",this.taskHistoryModel),this.showLoadingModal("permission set"),Em.post(`/permission_set_information/${this.permissionSetResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"Permission Set","")})},updatePropertyValue:function(t){this._data[t.property]=t.value}}},Tm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Permission Set Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Please supply a unique name for the permission set.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Administration Permissions")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are administration permissions. These should be only applied to permission sets\n where they are only granted to administrators.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Bug Permissions")]),this._v(" "),e("p",{staticClass:"text-instructions"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Customers and Organisations")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Object Permissions")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Extra Permissions")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n The following permissions are added permissions on top of any read only. For example, if a read\n only user requires the ability to upload documentation, then you will need to enable the\n "Document" permissions here.\n ')])])}],!1,null,"59588476",null);jm.options.__file="src/js/components/permissions/PermissionInformation.vue";var Om=jm.exports,Im=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("label",[t._v(t._s(t.propertyLabel))]),t._v(" "),n("v-select",{staticClass:"form-group",attrs:{options:t.fixListOfChoices},model:{value:t.propertyModel,callback:function(e){t.propertyModel=e},expression:"propertyModel"}})],1)};Im._withStripped=!0;var Lm=J({name:"SinglePermissionProperties",props:{property:String,propertyLabel:String,propertyValue:{Type:Number,default:0},listOfChoices:Array},data(){return{propertyModel:{label:this.getLabel(this.propertyValue),value:this.propertyValue},fixListOfChoices:[]}},watch:{propertyModel:function(){null===this.propertyModel&&(this.propertyModel={label:this.getLabel(0),value:0}),this.$emit("update_property_value",{property:this.property,value:this.propertyModel.value})}},methods:{getLabel:function(t){const e=this.listOfChoices.filter(e=>e[0]===t);return 0===e.length?"":e[0][1]}},mounted(){this.fixListOfChoices=this.listOfChoices.map(t=>({label:t[1],value:t[0]}))}},Im,[],!1,null,"3a9a8a81",null);Lm.options.__file="src/js/components/permissions/SinglePermissionProperties.vue";var Dm=Lm.exports,Nm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Permission Set")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Permission Set Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.permissionSetNameModel,expression:"permissionSetNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.permissionSetNameModel},on:{input:function(e){e.target.composing||(t.permissionSetNameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewPermissionSet}},[t._v("Create new Permission Set")])])])])])};Nm._withStripped=!0;const $m=n(3);var Am=J({name:"NewPermissionSet",props:{},data:()=>({permissionSetNameModel:""}),mixins:[h],methods:{addNewPermissionSet:function(){const t=new FormData;t.set("permission_set_name",this.permissionSetNameModel),$m.post("/new_permission_set/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"New Permission Set","")})}}},Nm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("New Permission Set")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please enter in a unique permission set name. Please note - all values are default permission\n level of 0.\n ")])])}],!1,null,"f57e636c",null);Am.options.__file="src/js/components/permissions/NewPermissionSet.vue";var Rm=Am.exports,Pm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New User")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Username: ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.usernameModel,expression:"usernameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.usernameModel},on:{input:function(e){e.target.composing||(t.usernameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("First Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNameModel,expression:"firstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.firstNameModel},on:{input:function(e){e.target.composing||(t.firstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Last Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastNameModel,expression:"lastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.lastNameModel},on:{input:function(e){e.target.composing||(t.lastNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Email:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.emailModel,expression:"emailModel"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.emailModel},on:{input:function(e){e.target.composing||(t.emailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password1Model,expression:"password1Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password1Model},on:{input:function(e){e.target.composing||(t.password1Model=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Retype Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password2Model,expression:"password2Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password2Model},on:{input:function(e){e.target.composing||(t.password2Model=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addUser}},[t._v("\n Add new User\n ")])])])])])};Pm._withStripped=!0;const qm=n(3);var zm=J({name:"NewUser",props:{},data:()=>({emailModel:"",firstNameModel:"",lastNameModel:"",password1Model:"",password2Model:"",usernameModel:""}),mixins:[h],methods:{addUser:function(){const t=new FormData;t.set("username",this.usernameModel),t.set("email",this.emailModel),t.set("first_name",this.firstNameModel),t.set("last_name",this.lastNameModel),t.set("password1",this.password1Model),t.set("password2",this.password2Model),qm.post("/new_user/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"New User","")})}}},Pm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("New User")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please create a unique username, followed by the basic user details.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("User Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the user details.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Passwords")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please type in a user password. The user will be able to reset their password to log in.\n ")])])}],!1,null,"9f037d30",null);zm.options.__file="src/js/components/users/NewUser.vue";var Fm=zm.exports,Um=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("User Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("strong",[t._v("Username:")]),t._v(" "+t._s(t.userResults[0].fields.username)+"\n "),n("strong",[t._v(" | ID:")]),t._v(" "+t._s(t.userResults[0].pk)+"\n ")])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("First Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNameModel,expression:"firstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.firstNameModel},on:{input:function(e){e.target.composing||(t.firstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Last Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastNameModel,expression:"lastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.lastNameModel},on:{input:function(e){e.target.composing||(t.lastNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Email:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.emailModel,expression:"emailModel"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.emailModel},on:{input:function(e){e.target.composing||(t.emailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Is User Active? ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.isActiveModel,expression:"isActiveModel"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isActiveModel)?t._i(t.isActiveModel,null)>-1:t.isActiveModel},on:{change:function(e){var n=t.isActiveModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isActiveModel=n.concat([null])):o>-1&&(t.isActiveModel=n.slice(0,o).concat(n.slice(o+1)))}else t.isActiveModel=i}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Is User a Superuser? ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.isSuperuserModel,expression:"isSuperuserModel"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isSuperuserModel)?t._i(t.isSuperuserModel,null)>-1:t.isSuperuserModel},on:{change:function(e){var n=t.isSuperuserModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isSuperuserModel=n.concat([null])):o>-1&&(t.isSuperuserModel=n.slice(0,o).concat(n.slice(o+1)))}else t.isSuperuserModel=i}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateUser}},[t._v("\n Update User Details\n ")])])])])])};Um._withStripped=!0;const Bm=n(3);var Vm=J({name:"UserInformation",props:{userResults:Array},data(){return{emailModel:this.userResults[0].fields.email,isActiveModel:this.userResults[0].fields.is_active,isSuperuserModel:this.userResults[0].fields.is_superuser,firstNameModel:this.userResults[0].fields.first_name,lastNameModel:this.userResults[0].fields.last_name}},mixins:[h,ie],methods:{updateUser:function(){this.showLoadingModal("User Information");const t=new FormData;t.set("email",this.emailModel),t.set("is_active",this.isActiveModel),t.set("is_superuser",this.isSuperuserModel),t.set("first_name",this.firstNameModel),t.set("last_name",this.lastNameModel),Bm.post(`/user_information/${this.userResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"Update User",this.userResults[0].pk)})}}},Um,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("UserName")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The username is set and can not be changed from this location. If you need to change the\n username, please go to the Django Admin Panel.\n ")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The ID is the primary key assigned to the username. This can not be edited. It can be ignored.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("User Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the user details.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Active User")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Untick this option if the user is no longer active.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Is User a Superuser")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Tick this functionality if you would like the user to gain access to the /admin/ functionality.\n This is not recommended for anyone outside of an IT team.\n ")])])}],!1,null,"698a8c3e",null);Vm.options.__file="src/js/components/users/UserInformation.vue";var Hm=Vm.exports,Wm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h2",[t._v("Reset Password")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("button",{staticClass:"btn btn-warning",attrs:{type:"button"},on:{click:t.passwordResetClicked}},[t._v("\n Password Reset\n ")])])])])]),t._v(" "),n("div",{staticClass:"modal fade",attrs:{id:"passwordResetModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.passwordIcon}}),t._v(" Reset User Password")],1),t._v(" "),t._m(1)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password1Model,expression:"password1Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password1Model},on:{input:function(e){e.target.composing||(t.password1Model=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Confirm Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password2Model,expression:"password2Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password2Model},on:{input:function(e){e.target.composing||(t.password2Model=e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableButton},on:{click:t.updatePassword}},[t._v("Update Password")])])])])])])};Wm._withStripped=!0;const Gm=n(3);var Ym=J({name:"ResetUserPassword",props:{location:String,username:Number},mixins:[h,Z],data:()=>({password1Model:"",password2Model:""}),computed:{disableButton:function(){let t=this.password1Model==this.password2Model,e=this.password1Model.length>=8;return!(t&&1==e)}},methods:{closeModal:function(){this.password1Model="",this.password2Model="",document.getElementById("passwordResetCloseButton").click()},passwordResetClicked:function(){new f.a(document.getElementById("passwordResetModal")).show()},updatePassword:function(){const t=new FormData;t.set("password",this.password1Model),t.set("username",this.username),Gm.post(`/${this.location}/update_user_password/`,t).then(t=>{this.closeModal()}).catch(t=>{this.showErrorModal(t,"Saving Password Issue","")})}}},Wm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Passwords")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Users have the ability to reset their password from the login page. If needed, please click on\n the link to be taken to the password reset form.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"passwordResetCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"7580d9dc",null);Ym.options.__file="src/js/components/users/ResetUserPassword.vue";var Km=Ym.exports,Zm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Unassigned Objects")]),t._v(" "),n("hr"),t._v(" "),t.isLoaded?t._e():n("div",{staticClass:"alert alert-dark"},[t._v("\n Still obtaining a list of assigned objects\n ")]),t._v(" "),t.objectResults.requirement.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.requirement,"import-variables":t.requirementVariables,destination:"requirement","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.project.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.project,"import-variables":t.projectVariables,destination:"project","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.task.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.task,"import-variables":t.taskVariables,destination:"task","root-url":t.rootUrl}}):t._e(),t._v(" "),0===t.countObjects&&t.isLoaded?n("div",{staticClass:"alert alert-primary"},[t._v("\n Good Work - all objects have been assigned to at least one user.\n ")]):t._e()],1)])};Zm._withStripped=!0;const Xm=n(3);var Jm=J({name:"DashboardUnassignedObjects",props:{rootUrl:{type:String,default:"/"}},data:()=>({isLoaded:!1,objectResults:{requirement:[],project:[],task:[]},projectVariables:{header:"Projects",prefix:"Pro",id:"project_id",title:"project_name",status:"project_status"},requirementVariables:{header:"Your Requirements",prefix:"Req",id:"requirement_id",title:"requirement_title",status:"requirement_status__requirement_status"},taskVariables:{header:"Tasks",prefix:"Task",id:"task_id",title:"task_short_description",status:"task_status"}}),mixins:[h],methods:{getMyObjects:function(){Xm.post("/dashboard/get/unassigned_objects/").then(t=>{this.objectResults=t.data,this.isLoaded=!0}).catch(t=>{this.showErrorModal(t,"Dashboard Unassigned Objects")})}},computed:{countObjects:function(){return this.objectResults.requirement.length+this.objectResults.project.length+this.objectResults.task.length}},mounted(){this.getMyObjects()}},Zm,[],!1,null,null,null);Jm.options.__file="src/js/components/dashboard/DashboardUnassignedObjects.vue";var Qm=Jm.exports,tf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.userList.length>0?n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Users with no groups")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8 user-card-layouts"},t._l(t.userList,(function(e){return n("div",{staticClass:"user-card",on:{click:function(n){return t.goToUser(e.id)}}},[n("img",{staticClass:"default-user-profile",attrs:{src:t.staticUrl+"NearBeach/images/placeholder/people_tax.svg",alt:"default profile"}}),t._v(" "),n("div",{staticClass:"user-details"},[n("strong",[t._v(t._s(e.first_name)+" "+t._s(e.last_name))]),n("br"),t._v("\n "+t._s(e.username)+"\n "),n("div",{staticClass:"spacer"}),t._v("\n "+t._s(e.email)+"\n ")])])})),0)])])]):t._e()};tf._withStripped=!0;const ef=n(3);var nf=J({name:"DashboardUsersWithNoGroups",props:{rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"}},data:()=>({userList:[]}),methods:{getUserList:function(){ef.post(this.rootUrl+"dashboard/get/users_with_no_groups/").then(t=>{this.userList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},goToUser:function(t){window.location.href=`${this.rootUrl}user_information/${t}/`}},mounted(){this.getUserList()}},tf,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Users with no groups")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please take action! The following users DO NOT have any groups associated with them. They will\n not be able to log in.\n ")])])}],!1,null,null,null);nf.options.__file="src/js/components/dashboard/DashboardUsersWithNoGroups.vue";var rf=nf.exports,of=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v(t._s(t.kanbanBoardResults[0].fields.kanban_board_name))]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Column","property-list":t.columnModel,source:"columnModel","is-dirty":t.$v.columnModel.$dirty,"is-new-mode":!1,"kanban-board-id":t.kanbanBoardResults[0].pk},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Level","property-list":t.levelModel,source:"levelModel","is-dirty":t.$v.columnModel.$dirty,"is-new-mode":!1,"kanban-board-id":t.kanbanBoardResults[0].pk},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-danger",on:{click:t.closeKanban}},[t._v("\n Close Kanban Board\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.backToBoard}},[t._v("\n Back to Kanban Board\n ")])])])])])};of._withStripped=!0;const af=n(3);var sf=J({name:"KanbanEditBoard",props:{columnResults:Array,kanbanBoardResults:Array,levelResults:Array,rootUrl:{type:String,default:"/"}},mixins:[h,ut],data:()=>({columnModel:[],levelModel:[]}),validations:{columnModel:{required:dt.required},levelModel:{required:dt.required}},methods:{backToBoard:function(){window.location.href=`${this.rootUrl}kanban_information/${this.kanbanBoardResults[0].pk}/`},closeKanban:function(){af.post(`/kanban_information/${this.kanbanBoardResults[0].pk}/close_board/`).then(t=>{window.location.href="/"}).catch(t=>{this.showErrorModal(t,this.destination)})},updatePropertyList:function(t){this[t.source]=t.data}},mounted(){this.columnModel=this.columnResults.map(t=>({id:t.pk,title:t.fields.kanban_column_name})),this.levelModel=this.levelResults.map(t=>({id:t.pk,title:t.fields.kanban_level_name}))}},of,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Columns & Levels")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Drag the cards around to sort out the columns how you want them.\n ")])])}],!1,null,"599a688e",null);sf.options.__file="src/js/components/kanban/KanbanEditBoard.vue";var lf=sf.exports,cf=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card kanban-group-permissions"},[e("div",{staticClass:"card-body"},[e("groups-and-users-module",{attrs:{"location-id":this.locationId,destination:"kanban_board"}})],1)])};cf._withStripped=!0;var df=J({name:"KanbanGroupPermissions",props:{locationId:Number}},cf,[],!1,null,null,null);df.options.__file="src/js/components/kanban/KanbanGroupPermissions.vue";var uf=df.exports,pf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("My Profile")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("p",[n("strong",[t._v("Username: ")]),t._v(t._s(t.userResults[0].username)+"\n ")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("\n First Name:\n "),!t.$v.firstNameModel.required&&t.$v.firstNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a first name.")]):t._e(),t._v(" "),n("br")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNameModel,expression:"firstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.firstNameModel},on:{input:function(e){e.target.composing||(t.firstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("\n Last Name:\n "),!t.$v.lastNameModel.required&&t.$v.lastNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a last name.")]):t._e(),t._v(" "),n("br")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastNameModel,expression:"lastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.lastNameModel},on:{input:function(e){e.target.composing||(t.lastNameModel=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("\n Email:\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.emailModel,expression:"emailModel"}],staticClass:"form-control",attrs:{type:"email",disabled:"true"},domProps:{value:t.emailModel},on:{input:function(e){e.target.composing||(t.emailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateUser}},[t._v("\n Update User Details\n ")])])])])])};pf._withStripped=!0;const mf=n(3);var ff=J({name:"ProfileInformation",props:{userResults:Array},data(){return{emailModel:this.userResults[0].email,firstNameModel:this.userResults[0].first_name,lastNameModel:this.userResults[0].last_name}},mixins:[h,ie],validations:{lastNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)},firstNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)}},methods:{updateUser:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("username",this.userResults[0].id),t.set("first_name",this.firstNameModel),t.set("last_name",this.lastNameModel),this.showLoadingModal("Project"),mf.post("/profile_information/update_data/",t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"profile")})}}},pf,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("User Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please update your details.\n ")])])}],!1,null,null,null);ff.options.__file="src/js/components/profile/ProfileInformation.vue";var hf=ff.exports,vf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Change Task - "+t._s(t.changeTaskResults[0].pk))]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Change Title:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeTitleModel,expression:"changeTitleModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeTitleModel},on:{input:function(e){e.target.composing||(t.changeTitleModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"Change Task"},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Change Task Description (Optional):")]),t._v(" "),n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.changeDescriptionModel,callback:function(e){t.changeDescriptionModel=e},expression:"changeDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Stakeholders:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeStakeholderModel,expression:"changeStakeholderModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeStakeholderModel},on:{input:function(e){e.target.composing||(t.changeStakeholderModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"btn-group",attrs:{role:"group","aria-label":"Basic checkbox toggle button group"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeIsDowntimeModel,expression:"changeIsDowntimeModel"}],staticClass:"btn-check",attrs:{type:"checkbox",id:"isDowntime",autocomplete:"off"},domProps:{checked:Array.isArray(t.changeIsDowntimeModel)?t._i(t.changeIsDowntimeModel,null)>-1:t.changeIsDowntimeModel},on:{change:function(e){var n=t.changeIsDowntimeModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.changeIsDowntimeModel=n.concat([null])):o>-1&&(t.changeIsDowntimeModel=n.slice(0,o).concat(n.slice(o+1)))}else t.changeIsDowntimeModel=i}}}),t._v(" "),n("label",{staticClass:"btn btn-outline-primary",attrs:{for:"isDowntime"}},[t._v(t._s(t.isDowntime()))])])])]),t._v(" "),n("hr"),t._v(" "),n("a",{staticClass:"btn btn-secondary",attrs:{href:"/rfc_information/"+t.changeTaskResults[0].fields.request_for_change+"/"}},[t._v("Cancel")]),t._v(" "),1==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.saveChangeTask}},[t._v("Save")]):t._e(),t._v(" "),3==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-danger save-changes",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.updateStatus(4)}}},[t._v("Start Task")]):t._e(),t._v(" "),4==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-success save-changes",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.updateStatus(5)}}},[t._v("Finish Task")]):t._e(),t._v(" "),4==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-danger save-changes",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.updateStatus(6)}}},[t._v("REJECT Task")]):t._e()],1)])};vf._withStripped=!0;const gf=n(3);var bf={name:"ChangeTaskInformation",props:{changeTaskResults:Array},data(){return{changeTitleModel:this.changeTaskResults[0].fields.change_task_title,changeDescriptionModel:this.changeTaskResults[0].fields.change_task_description,changeStakeholderModel:this.changeTaskResults[0].fields.change_task_required_by,changeIsDowntimeModel:this.changeTaskResults[0].fields.is_downtime}},methods:{isDowntime:function(){return this.changeIsDowntimeModel?"Downtime Scheduled":"No Downtime"},saveChangeTask:function(t){t.preventDefault();var e=parseInt(this.changeEndDateModel)-parseInt(this.changeStartDateModel);const n=new FormData;n.set("change_task_title",this.changeTitleModel),n.set("change_task_description",this.changeDescriptionModel),n.set("change_task_start_date",this.changeStartDateModel),n.set("change_task_end_date",this.changeEndDateModel),n.set("change_task_seconds",e.toString()),n.set("change_task_required_by",this.changeStakeholderModel),n.set("is_downtime",this.changeIsDowntimeModel),gf.post(`/change_task_information/${this.changeTaskResults[0].pk}/save/`,n).then(t=>{window.location.href=`/rfc_information/${this.changeTaskResults[0].fields.request_for_change}/`}).catch(t=>{})},updateStatus:function(t){const e=new FormData;e.set("change_task_status",t),gf.post(`/change_task_update_status/${this.changeTaskResults[0].pk}/`,e).then(t=>{window.location.reload(!0)}).catch(t=>{})},updateDates:function(t){this.changeStartDateModel=t.start_date,this.changeEndDateModel=t.end_date}}},_f=(n(187),J(bf,vf,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Change Task Title")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please write a short title of the description for this task. i.e Backup of Database\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Write a detail description of this particular task.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Misc")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Please fill in the stakeholders for this particular change task. Default value will be\n "Stakeholders".\n ')]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n To state if there is downtime, please click the "No Downtime" to change it\'s statue.\n ')])])}],!1,null,"7905d66a",null));_f.options.__file="src/js/components/request_for_change/ChangeTaskInformation.vue";var yf=_f.exports,wf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.noteAdd}}),t._v(" Note History")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are saved notes against this "+t._s(t.destination)+". Add notes by clicking on the button below.\n ")]),t._v(" "),n("list-notes",{attrs:{"note-history-results":t.noteHistoryResults,destination:t.destination}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.createNewNote}},[t._v("Add Note to "+t._s(t.destination))])])]),t._v(" "),n("new-history-note-wizard",{attrs:{"location-id":t.locationId,destination:t.destination},on:{update_note_history_results:function(e){return t.updateNoteHistoryResults(e)}}})],1)};wf._withStripped=!0;const xf=n(3);var kf=J({name:"NotesModule",components:{},props:["destination","locationId"],mixins:[h,Z],data:()=>({noteHistoryResults:[]}),methods:{createNewNote:function(){new f.a(document.getElementById("newNoteModal")).show()},getNoteHistoryResults:function(){xf.post(`/object_data/${this.destination}/${this.locationId}/note_list/`).then(t=>{this.noteHistoryResults=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateNoteHistoryResults:function(t){this.noteHistoryResults.push(t[0])}},mounted(){this.getNoteHistoryResults()}},wf,[],!1,null,"29486be2",null);kf.options.__file="src/js/components/modules/sub_modules/NotesModule.vue";var Cf=kf.exports,Mf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v("Assigned Tags")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Here are all tags associated with this "+t._s(t.destination)+'. You can add more\n tags by clicking on the "Add Tag" button.\n ')]),t._v(" "),n("div",{staticClass:"tag-list"},t._l(t.tagList,(function(e){return n("div",{key:e.pk,staticClass:"single-tag",style:"background-color: "+e.fields.tag_colour+";"},[t._v("\n "+t._s(e.fields.tag_name)+"\n "),n("span",{on:{click:function(n){return t.removeTag(e.pk)}}},[n("IconifyIcon",{attrs:{icon:t.icons.xCircle}})],1)])})),0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.createNewTag}},[t._v("Add Tag to "+t._s(t.destination))])])]),t._v(" "),n("add-tag-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"assigned-tags":t.tagList},on:{add_tags:function(e){return t.addTags(e)}}})],1)};Mf._withStripped=!0;var Sf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addTagModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Add Tags Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Add Tag")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the dropdown to select one or many lables to add to the "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("All Tag List")]),t._v(" "),n("v-select",{attrs:{label:"tag",multiple:"",options:t.tagList},model:{value:t.tagModel,callback:function(e){t.tagModel=e},expression:"tagModel"}})],1)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addTag}},[t._v("Add Tag")])])])])])};Sf._withStripped=!0;const Tf=n(3);var Ef=J({name:"AddTagWizard",props:{assignedTags:{type:Array,default:()=>[]},destination:String,locationId:Number},mixins:[h,Z],data:()=>({allTagList:[],tagModel:[]}),computed:{tagList:function(){return this.allTagList.filter(t=>this.assignedTags.findIndex(e=>e.pk==t.value)<0)}},methods:{addTag:function(){const t=new FormData;this.tagModel.forEach(e=>{t.append("tag_id",e.value)}),Tf.post(`/object_data/${this.destination}/${this.locationId}/add_tags/`,t).then(t=>{this.$emit("add_tags",t.data),document.getElementById("addTagsCloseButton").click(),this.tagModel=[]})},getTagList:function(){Tf.post("/object_data/tag_list_all/").then(t=>{this.allTagList=t.data.map(t=>({value:t.pk,tag:t.fields.tag_name}))}).catch(t=>{})}},mounted(){this.getTagList()}},Sf,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addTagsCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"21d92d1f",null);Ef.options.__file="src/js/components/modules/wizards/AddTagWizard.vue";var jf=Ef.exports;const Of=n(3);var If=J({components:{AddTagWizard:jf},name:"ListTagsModule",props:{destination:String,locationId:Number},data:()=>({tagList:[]}),mixins:[Z],methods:{addTags:function(t){this.tagList=t},createNewTag:function(){new f.a(document.getElementById("addTagModal")).show()},getAssignedTags:function(){Of.post(`/object_data/${this.destination}/${this.locationId}/tag_list/`).then(t=>{this.tagList=t.data}).catch(t=>{})},removeTag:function(t){const e=new FormData;e.set("tag",t),e.set("object_enum",this.destination),e.set("object_id",this.locationId),Of.post("/object_data/delete_tag/",e).then(e=>{this.tagList=this.tagList.filter(e=>e.pk!==t)}).catch(t=>{})}},mounted(){this.getAssignedTags()}},Mf,[],!1,null,null,null);If.options.__file="src/js/components/modules/sub_modules/ListTagsModule.vue";var Lf=If.exports,Df=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"editTagModal","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"editTagModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Tag Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tagNameModel,expression:"tagNameModel"}],staticClass:"form-control",domProps:{value:t.tagNameModel},on:{input:function(e){e.target.composing||(t.tagNameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"colour-picker col-md-8"},t._l(t.colourList,(function(e){return n("div",{key:e,class:t.getClasses(e),style:"background-color: "+e+";",on:{click:function(n){return t.updateColour(e)}}})})),0)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[0!==t.tagId?n("button",{staticClass:"btn btn-danger delete-tag",attrs:{type:"button"},on:{click:t.deleteTag}},[t._v("Delete Tag")]):t._e(),t._v(" "),n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:!t.canSave},on:{click:t.saveTag}},[t._v("Save Tag")])])])])])};Df._withStripped=!0;const Nf=n(3);var $f=J({name:"EditTagModal",props:{existingTags:Array,tagColour:String,tagId:Number,tagName:String},data(){return{colourList:["#37cbd2","#8b8295","#6f84bb","#1fc4b5","#651794","#7ea52c","#6df79e","#53ef5f","#79c121","#91fbde","#e01059","#33ae24"],tagColourModel:this.tagColour,tagNameModel:this.tagName}},watch:{tagColour:function(){this.tagColourModel=this.tagColour},tagName:function(){this.tagNameModel=this.tagName}},computed:{canSave:function(){return 0===this.existingTags.filter(t=>t.fields.tag_name.toUpperCase()===this.tagNameModel.toUpperCase()&&t.pk!==this.tagId).length}},methods:{deleteTag:function(){Nf.post(`/tag/delete/${this.tagId}/`).then(t=>{this.$emit("delete_tag",{tag_id:this.tagId}),document.getElementById("editTagCloseModal").click()}).catch(t=>{})},getClasses:function(t){let e="single-colour";return t==this.tagColourModel&&(e+=" selected-colour"),e},newTag:function(t){Nf.post("/tag/new/",t).then(t=>{this.$emit("new_tag",t.data),document.getElementById("editTagCloseModal").click()}).catch(t=>{})},saveTag:function(){const t=new FormData;t.set("tag_id",this.tagId),t.set("tag_name",this.tagNameModel),t.set("tag_colour",this.tagColourModel),0===this.tagId?this.newTag(t):this.updateTag(t)},updateColour:function(t){this.tagColourModel=t},updateTag:function(t){Nf.post("/tag/save/",t).then(t=>{this.$emit("update_tags",{tag_id:this.tagId,tag_name:this.tagNameModel,tag_colour:this.tagColourModel}),document.getElementById("editTagCloseModal").click()}).catch(t=>{})}}},Df,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"editTagModalLabel"}},[this._v("Edit Tag")]),this._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button",id:"editTagCloseModal","data-bs-dismiss":"modal","aria-label":"Close"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Edit Tags")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please give the tag an appropriate name. Please do not\n pick an existing tag name.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Pick Colour")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please click on a preferred colour. This will be tags colour.\n ")])])}],!1,null,null,null);$f.options.__file="src/js/components/tags/EditTagModal.vue";var Af,Rf=$f.exports,Pf=(n(189),n(116)),qf=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],zf=function(t){return-1!==qf.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())},Ff=function(t,e,n){var r=e.$props.value?e.$props.value:"",i=e.$props.initialValue?e.$props.initialValue:"";n.setContent(r||(e.initialized?e.cache:i)),e.$watch("value",(function(t,r){n&&"string"==typeof t&&t!==r&&t!==n.getContent({format:e.$props.outputFormat})&&n.setContent(t)})),e.$listeners.input&&function(t,e){var n=t.$props.modelEvents?t.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;e.on(r||"change input undo redo",(function(){t.$emit("input",e.getContent({format:t.$props.outputFormat}))}))}(e,n),function(t,e,n){Object.keys(e).filter(zf).forEach((function(r){var i=e[r];"function"==typeof i&&("onInit"===r?i(t,n):n.on(r.substring(2),(function(t){return i(t,n)})))}))}(t,e.$listeners,n),e.initialized=!0},Uf=0,Bf=function(t){var e=Date.now();return t+"_"+Math.floor(1e9*Math.random())+ ++Uf+String(e)},Vf=function(t){return void 0===t||""===t?[]:Array.isArray(t)?t:t.split(" ")},Hf=function(){return{listeners:[],scriptId:Bf("tiny-script"),scriptLoaded:!1}},Wf=(Af=Hf(),{load:function(t,e,n){Af.scriptLoaded?n():(Af.listeners.push(n),t.getElementById(Af.scriptId)||function(t,e,n,r){var i=e.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=t,i.src=n;var o=function(){i.removeEventListener("load",o),r()};i.addEventListener("load",o),e.head&&e.head.appendChild(i)}(Af.scriptId,t,e,(function(){Af.listeners.forEach((function(t){return t()})),Af.scriptLoaded=!0})))},reinitialize:function(){Af=Hf()}}),Gf=n(51),Yf={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return"html"===t||"text"===t}}},Kf=function(){return(Kf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n({cardId:0,cardTitle:"",cardColumn:0,cardLevel:0,cardDescription:"",cardNotes:[],listColumns:[],listLevels:[]}),mutations:{appendNote(t,e){t.cardNotes.push(e.newNote)},updateCard(t,e){t.cardId=e.cardId,t.cardTitle=e.cardTitle,t.cardDescription=e.cardDescription;try{t.cardColumn=t.listColumns.filter(t=>e.cardColumn==t.value)[0],t.cardLevel=t.listLevels.filter(t=>e.cardLevel==t.value)[0]}catch{t.cardColumn=0,t.cardLevel=0}dh.post(`/object_data/kanban_card/${e.cardId}/note_list/`).then(e=>{t.cardNotes=e.data}).catch(t=>{})},updateField:u,updateLists(t,e){t.listColumns=e.columnResults.map(t=>({value:t.pk,column:t.fields.kanban_column_name})),t.listLevels=e.levelResults.map(t=>({value:t.pk,level:t.fields.kanban_level_name}))}},actions:{},getters:{getField:d,getAllCardData:t=>({cardId:t.cardId,cardTitle:t.cardTitle,cardDescription:t.cardDescription,cardLevel:t.cardLevel,cardColumn:t.cardColumn}),getCardId:t=>t.cardId,getCardNotes:t=>t.cardNotes}},ah={state:()=>({destination:"unknown",locationId:0}),mutations:{updateDestination(t,e){t.destination=e.destination,t.locationId=e.locationId}},actions:{},getters:{getDestination:t=>t.destination,getLocationId:t=>t.locationId}},sh={state:()=>({kanbanCardResults:[],columnResults:[],levelResults:[]}),mutations:{creationCard(t,e){},updateKanbanCard(t,e){const n=t.kanbanCardResults.findIndex(t=>t.pk==e.card_id),r=["type","card_id"];Object.keys(e).forEach(i=>{r.includes(i)||(t.kanbanCardResults[n].fields[i]=e[i])})},deletedCard(t,e){},initPayload(t,e){t.kanbanCardResults=e.kanbanCardResults,t.columnResults=e.columnResults,t.levelResults=e.levelResults}},actions:{},getters:{getCards:t=>t.kanbanCardResults,getColumns:t=>t.columnResults}},lh={state:()=>({rootUrl:"/",staticUrl:"/"}),mutations:{updateUrl(t,e){t.rootUrl=e.rootUrl,t.staticUrl=e.staticUrl}},actions:{},getters:{getRootUrl:t=>t.rootUrl,getStaticUrl:t=>t.staticUrl}},ch=new o.a.Store({modules:{card:oh,destination:ah,kanban:sh,url:lh}}),dh=n(3);dh.defaults.xsrfHeaderName="X-CSRFTOKEN",dh.defaults.xsrfCookieName="csrftoken",i.a.component("vSelect",Qf.a),i.a.component("Editor",Xf),i.a.component("draggable",eh.a),i.a.component("AddBugWizard",Lt),i.a.component("AddCustomerWizard",At),i.a.component("AddFolderWizard",zt),i.a.component("AddGroupWizard",Vt),i.a.component("AddLinkWizard",Yt),i.a.component("AddUserWizard",Jt),i.a.component("BugsModule",tt),i.a.component("CustomersModule",it),i.a.component("DocumentsModule",lt),i.a.component("GetStakeholders",ft),i.a.component("GroupPermissions",gt),i.a.component("GroupsAndUsersModule",wt),i.a.component("ParentModules",Ct),i.a.component("MiscModule",Et),i.a.component("NewCustomer",ne),i.a.component("NewOrganisation",se),i.a.component("NewRequirements",ue),i.a.component("NewHistoryNoteWizard",he),i.a.component("NewRequirementItemWizard",_e),i.a.component("NewRequirementLinkWizard",ke),i.a.component("RequirementInformation",Te),i.a.component("RequirementItemsModule",$e),i.a.component("RequirementItemLinksModule",Ie),i.a.component("RequirementLinksModule",qe),i.a.component("UploadDocumentWizard",Be),i.a.component("RequirementItemInformation",Ge),i.a.component("ListOrganisations",Ze),i.a.component("SearchOrganisations",tn),i.a.component("OrganisationInformation",ln),i.a.component("OrganisationModules",un),i.a.component("CustomersListModule",fn),i.a.component("AssociatedObjects",bn),i.a.component("NewCustomerForm",wn),i.a.component("NewCustomerModal",Mn),i.a.component("SearchCustomers",jn),i.a.component("ListCustomers",Ln),i.a.component("CustomerInformation",An),i.a.component("SearchObjects",zn),i.a.component("ListSearchResults",Bn),i.a.component("ProjectInformation",Yn),i.a.component("NewProject",Jn),i.a.component("TaskInformation",nr),i.a.component("NewTask",ar),i.a.component("BetweenDates",cr),i.a.component("StakeholderInformation",pr),i.a.component("NewKanban",vr),i.a.component("KanbanPropertyOrder",yr),i.a.component("KanbanInformation",kr),i.a.component("KanbanCard",Tr),i.a.component("KanbanBoard",Or),i.a.component("KanbanRow",Dr),i.a.component("DashboardBugList",bu),i.a.component("NewKanbanCard",xu),i.a.component("CardInformation",Su),i.a.component("ListNotes",qu),i.a.component("NewKanbanLinkWizard",Bu),i.a.component("DashboardMyObjects",Gu),i.a.component("RenderObjectTable",Zu),i.a.component("ObjectLinks",tp),i.a.component("NewLinkWizard",ip),i.a.component("NewRequestForChange",cp),i.a.component("RfcBackoutPlan",pp),i.a.component("RfcDetails",vp),i.a.component("RfcImplementationPlan",_p),i.a.component("RfcRisk",xp),i.a.component("RfcTestPlan",Mp),i.a.component("RfcDescription",Ep),i.a.component("RfcInformation",Lp),i.a.component("RfcModules",Ap),i.a.component("RfcNewRunItem",zp),i.a.component("RfcRunSheetList",Hp),i.a.component("DashboardRfcApprovals",Kp),i.a.component("RfcApprovalButtons",Qp),i.a.component("SearchGroups",rm),i.a.component("SearchPermissionSets",sm),i.a.component("SearchUsers",um),i.a.component("NewGroup",hm),i.a.component("GroupInformation",_m),i.a.component("UserList",xm),i.a.component("AdminAddUser",Sm),i.a.component("PermissionInformation",Om),i.a.component("SinglePermissionProperties",Dm),i.a.component("NewPermissionSet",Rm),i.a.component("NewUser",Fm),i.a.component("UserInformation",Hm),i.a.component("ResetUserPassword",Km),i.a.component("IconifyIcon",Pf.a),i.a.component("DashboardUnassignedObjects",Qm),i.a.component("DashboardUsersWithNoGroups",rf),i.a.component("KanbanEditBoard",lf),i.a.component("KanbanGroupPermissions",uf),i.a.component("ProfileInformation",hf),i.a.component("ChangeTaskInformation",yf),i.a.component("CardDetails",ju),i.a.component("CardDescription",Lu),i.a.component("CardNotes",Au),i.a.component("NotesModule",Cf),i.a.component("ListTagsModule",Lf),i.a.component("AddTagWizard",jf),i.a.component("SearchTags",rn),i.a.component("EditTagModal",Rf),i.a.use(rh.a),i.a.use(ih.Datetime),i.a.component("datetime",ih.Datetime),window.vm=new i.a({el:"#app",components:{Vuelidate:rh.a},data:()=>({}),store:ch,methods:{},mounted(){var t=document.getElementById("loader");t.style.transform="translateY(-100vh)",setTimeout(()=>{t.remove()},500)}})}]); \ No newline at end of file +function r(t){return(r="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})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return(o=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&_(t,e):_(t,e))||r&&t===n)return t;if(t===n)break}while(t=y(t))}return null}var x,k=/\s+/g;function C(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(k," ")}}function M(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function S(t,e){var n="";if("string"==typeof t)n=t;else do{var r=M(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function T(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i=o:i<=o))return r;if(r===E())break;r=$(r,!1)}return!1}function I(t,e,n){for(var r=0,i=0,o=t.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=s(n,["evt"]);W.pluginEvent.bind(zt)(t,e,a({dragEl:Z,parentEl:X,ghostEl:J,rootEl:Q,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:rt,dragStarted:vt,putSortable:ct,activeSortable:zt.active,originalEvent:r,oldIndex:it,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:At,unhideGhostForTarget:Rt,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(t){K({sortable:e,name:t,originalEvent:r})}},i))};function K(t){G(a({putSortable:ct,cloneEl:nt,targetEl:Z,rootEl:Q,oldIndex:it,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st},t))}var Z,X,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,dt,ut,pt,mt,ft,ht,vt,gt,bt,_t,yt,wt=!1,xt=!1,kt=[],Ct=!1,Mt=!1,St=[],Tt=!1,Et=[],jt="undefined"!=typeof document,Ot=f,It=u||d?"cssFloat":"float",Lt=jt&&!h&&!f&&"draggable"in document.createElement("div"),Dt=function(){if(jt){if(d)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var n=M(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=I(t,0,e),o=I(t,1,e),a=i&&M(i),s=o&&M(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[It]||o&&"none"===n[It]&&l+c>r)?"vertical":"horizontal"},$t=function(t){function e(t,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},At=function(){!Dt&&J&&M(J,"display","none")},Rt=function(){!Dt&&J&&M(J,"display","")};jt&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var Pt=function(t){if(Z){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!L(t)){var e=j(t),n=t[U].options.emptyInsertThreshold,r=i>=e.left-n&&i<=e.right+n,s=o>=e.top-n&&o<=e.bottom+n;return n&&r&&s?a=t:void 0}})),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}var i,o,a},qt=function(t){Z&&Z.parentNode[U]._isOutsideThisEl(t.target)};function zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in W.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in $t(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,B())}function Ft(t,e,n,r,i,o,a,s){var l,c,p=t[U],m=p.options.onMove;return!window.CustomEvent||d||u?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||j(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),m&&(c=m.call(p,l,a)),c}function Ut(t){t.draggable=!1}function Bt(){Tt=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Ht(t){return setTimeout(t,0)}function Wt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Z):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,i=r.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;if(function(t){Et.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&Et.push(r)}}(n),!Z&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||l.isContentEditable||(s=w(s,r.draggable,n,!1))&&s.animated||et===s)){if(it=D(s),at=D(s,r.draggable),"function"==typeof c){if(c.call(this,t,s,this))return K({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Y("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=w(l,r.trim(),n,!1))return K({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Y("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!Z&&n.parentNode===o){var l=j(n);if(Q=o,X=(Z=n).parentNode,tt=Z.nextSibling,et=n,lt=a.group,zt.dragged=Z,dt={target:Z,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=dt.clientX-l.left,ht=dt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Z.style["will-change"]="all",r=function(){Y("delayEnded",i,{evt:t}),zt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(Z.draggable=!0),i._triggerDragStart(t,e),K({sortable:i,name:"choose",originalEvent:t}),C(Z,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){T(Z,t.trim(),Ut)})),g(s,"dragover",Pt),g(s,"mousemove",Pt),g(s,"touchmove",Pt),g(s,"mouseup",i._onDrop),g(s,"touchend",i._onDrop),g(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),Y("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(u||d))r();else{if(zt.eventCanceled)return void this._onDrop();g(s,"mouseup",i._disableDelayedDrag),g(s,"touchend",i._disableDelayedDrag),g(s,"touchcancel",i._disableDelayedDrag),g(s,"mousemove",i._delayedDragTouchMoveHandler),g(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&g(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&Ut(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,e?"touchmove":"mousemove",this._onTouchMove):(g(Z,"dragend",this),g(Q,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,Q&&Z){Y("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",qt);var n=this.options;!t&&C(Z,n.dragClass,!1),C(Z,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,At();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY))!==e;)e=t;if(Z.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){if(e[U]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Rt()}},_onTouchMove:function(t){if(dt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=J&&S(J,!0),a=J&&o&&o.a,s=J&&o&&o.d,l=Ot&&yt&&N(yt),c=(i.clientX-dt.clientX+r.x)/(a||1)+(l?l[0]-St[0]:0)/(a||1),d=(i.clientY-dt.clientY+r.y)/(s||1)+(l?l[1]-St[1]:0)/(s||1);if(!zt.active&&!wt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))r.right+10||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+10}(t,i,this)&&!v.animated){if(v===Z)return q(!1);if(v&&o===t.target&&(s=v),s&&(n=j(s)),!1!==Ft(Q,o,Z,e,s,n,t,!!s))return R(),o.appendChild(Z),X=o,z(),q(!0)}else if(s.parentNode===o){n=j(s);var g,b,_,y=Z.parentNode!==o,x=!function(t,e,n){var r=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return r===a||i===s||r+o/2===a+l/2}(Z.animated&&Z.toRect||e,s.animated&&s.toRect||n,i),k=i?"top":"left",S=O(s,"top","top")||O(Z,"top","top"),T=S?S.scrollTop:void 0;if(gt!==s&&(b=n[k],Ct=!1,Mt=!x&&l.invertSwap||y),0!==(g=function(t,e,n,r,i,o,a,s){var l=r?t.clientY:t.clientX,c=r?n.height:n.width,d=r?n.top:n.left,u=r?n.bottom:n.right,p=!1;if(!a)if(s&&_td+c*o/2:lu-_t)return-bt}else if(l>d+c*(1-i)/2&&lu-c*o/2))return l>d+c/2?1:-1;return 0}(t,s,n,i,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Mt,gt===s))){var E=D(Z);do{E-=g,_=X.children[E]}while(_&&("none"===M(_,"display")||_===J))}if(0===g||_===s)return q(!1);gt=s,bt=g;var I=s.nextElementSibling,N=!1,$=Ft(Q,o,Z,e,s,n,t,N=1===g);if(!1!==$)return 1!==$&&-1!==$||(N=1===$),Tt=!0,setTimeout(Bt,30),R(),N&&!I?o.appendChild(Z):s.parentNode.insertBefore(Z,N?I:s),S&&P(S,0,T-S.scrollTop),X=Z.parentNode,void 0===b||Mt||(_t=Math.abs(b-j(s)[k])),z(),q(!0)}if(o.contains(Z))return q(!1)}return!1}function A(l,c){Y(l,f,a({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:p,fromSortable:m,target:s,completed:q,onMove:function(n,r){return Ft(Q,o,Z,e,n,j(n),t,r)},changed:z},c))}function R(){A("dragOverAnimationCapture"),f.captureAnimationState(),f!==m&&m.captureAnimationState()}function q(e){return A("dragOverCompleted",{insertion:e}),e&&(u?d._hideClone():d._showClone(f),f!==m&&(C(Z,ct?ct.options.ghostClass:d.options.ghostClass,!1),C(Z,l.ghostClass,!0)),ct!==f&&f!==zt.active?ct=f:f===zt.active&&ct&&(ct=null),m===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){A("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===o&&!s.animated)&&(gt=null),l.dragoverBubble||t.rootEl||s===document||(Z.parentNode[U]._isOutsideThisEl(t.target),!e&&Pt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function z(){ot=D(Z),st=D(Z,l.draggable),K({sortable:f,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Pt),b(document,"mousemove",Pt),b(document,"touchmove",Pt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ot=D(Z),st=D(Z,n.draggable),Y("drop",this,{evt:t}),X=Z&&Z.parentNode,ot=D(Z),st=D(Z,n.draggable),zt.eventCanceled||(wt=!1,Mt=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wt(this.cloneId),Wt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&M(document.body,"user-select",""),M(Z,"transform",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===X||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),Z&&(this.nativeDraggable&&b(Z,"dragend",this),Ut(Z),Z.style["will-change"]="",vt&&!wt&&C(Z,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(Z,this.options.chosenClass,!1),K({sortable:this,name:"unchoose",toEl:X,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==X?(ot>=0&&(K({rootEl:X,name:"add",toEl:X,fromEl:Q,originalEvent:t}),K({sortable:this,name:"remove",toEl:X,originalEvent:t}),K({rootEl:X,name:"sort",toEl:X,fromEl:Q,originalEvent:t}),K({sortable:this,name:"sort",toEl:X,originalEvent:t})),ct&&ct.save()):ot!==it&&ot>=0&&(K({sortable:this,name:"update",toEl:X,originalEvent:t}),K({sortable:this,name:"sort",toEl:X,originalEvent:t})),zt.active&&(null!=ot&&-1!==ot||(ot=it,st=at),K({sortable:this,name:"end",toEl:X,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Y("nulling",this),Q=Z=X=J=tt=nt=et=rt=dt=ut=vt=ot=st=it=at=gt=bt=ct=lt=zt.dragged=zt.ghost=zt.clone=zt.active=null,Et.forEach((function(t){t.checked=!0})),Et.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Z&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r1&&(fe.forEach((function(t){r.addAnimationState({target:t,rect:ge?j(t):i}),F(t),t.fromRect=i,e.removeAnimationState(t)})),ge=!1,function(t,e){fe.forEach((function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.insertion,i=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(r){if(n&&i._hideClone(),ve=!1,s.animation&&fe.length>1&&(ge||!n&&!i.options.sort&&!a)){var l=j(ue,!1,!0,!0);fe.forEach((function(t){t!==ue&&(z(t,l),o.appendChild(t))})),ge=!0}if(!n)if(ge||we(),fe.length>1){var c=me;i._showClone(e),i.options.animation&&!me&&c&&he.forEach((function(t){i.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(fe.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){pe=o({},e);var i=S(ue,!0);pe.top-=i.f,pe.left-=i.e}},dragOverAnimationComplete:function(){ge&&(ge=!1,we())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,d=r.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(ue,c.selectedClass,!~fe.indexOf(ue)),~fe.indexOf(ue))fe.splice(fe.indexOf(ue),1),ce=null,G({sortable:i,rootEl:n,name:"deselect",targetEl:ue,originalEvt:e});else{if(fe.push(ue),G({sortable:i,rootEl:n,name:"select",targetEl:ue,originalEvt:e}),e.shiftKey&&ce&&i.el.contains(ce)){var u,p,m=D(ce),f=D(ue);if(~m&&~f&&m!==f)for(f>m?(p=m,u=f):(p=f,u=m+1);p1){var h=j(ue),v=D(ue,":not(."+this.options.selectedClass+")");if(!ve&&c.animation&&(ue.thisAnimationDuration=null),l.captureAnimationState(),!ve&&(c.animation&&(ue.fromRect=h,fe.forEach((function(t){if(t.thisAnimationDuration=null,t!==ue){var e=ge?j(t):h;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),we(),fe.forEach((function(t){d[v]?r.insertBefore(t,d[v]):r.appendChild(t),v++})),a===D(ue))){var g=!1;fe.forEach((function(t){t.sortableIndex===D(t)||(g=!0)})),g&&o("update")}fe.forEach((function(t){F(t)})),l.animateAll()}de=l}(n===r||s&&"clone"!==s.lastPutMode)&&he.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||de!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;fe.length;){var e=fe[0];C(e,this.options.selectedClass,!1),fe.shift(),G({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[U];e&&e.options.multiDrag&&!~fe.indexOf(t)&&(de&&de!==e&&(de.multiDrag._deselectMultiDrag(),de=e),C(t,e.options.selectedClass,!0),fe.push(t))},deselect:function(t){var e=t.parentNode[U],n=fe.indexOf(t);e&&e.options.multiDrag&&~n&&(C(t,e.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return fe.forEach((function(r){var i;e.push({multiDragElement:r,index:r.sortableIndex}),i=ge&&r!==ue?-1:ge?D(r,":not(."+t.options.selectedClass+")"):D(r),n.push({multiDragElement:r,index:i})})),{items:l(fe),clones:[].concat(he),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){he.forEach((function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function we(){fe.forEach((function(t){t!==ue&&t.parentNode&&t.parentNode.removeChild(t)}))}zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(x),x=void 0},nulling:function(){Xt=Yt=Gt=te=Jt=Kt=Zt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(r,i);if(Xt=t,e||u||d||m){ie(t,this.options,o,e);var a=$(o,!0);!te||Jt&&r===Kt&&i===Zt||(Jt&&ne(),Jt=setInterval((function(){var o=$(document.elementFromPoint(r,i),!0);o!==a&&(a=o,ee()),ie(t,n.options,o,e)}),10),Kt=r,Zt=i)}else{if(!this.options.bubbleScroll||$(o,!0)===E())return void ee();ie(t,this.options,$(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(se,ae),e.default=zt},function(t,e){},function(t,e,n){var r=n(47),i=n(194);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){(e=n(48)(!1)).push([t.i,'.vue-form-wizard .wizard-btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px}.vue-form-wizard .wizard-btn.disabled,.vue-form-wizard .wizard-btn[disabled],fieldset[disabled] .vue-form-wizard .wizard-btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.vue-form-wizard *{-webkit-box-sizing:border-box;box-sizing:border-box}.vue-form-wizard a{text-decoration:none}.vue-form-wizard .wizard-nav{margin-bottom:0;padding-left:0;list-style:none}.vue-form-wizard .wizard-nav>li{position:relative;display:block}.vue-form-wizard .wizard-nav>li>a{position:relative;display:block;padding:10px 15px}.vue-form-wizard .wizard-nav>li>a:focus,.vue-form-wizard .wizard-nav>li>a:hover{text-decoration:none;background-color:#eee}.vue-form-wizard .wizard-nav>li.disabled>a{color:#777}.vue-form-wizard .wizard-nav>li.disabled>a:focus,.vue-form-wizard .wizard-nav>li.disabled>a:hover{color:#777;text-decoration:none;background-color:transparent;cursor:not-allowed}.vue-form-wizard .wizard-progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.vue-form-wizard .navbar .navbar-nav>li>a.wizard-btn,.vue-form-wizard .wizard-btn{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:2px;background-color:transparent;font-size:14px;font-weight:600;padding:6px 12px;min-width:140px}.vue-form-wizard .navbar .navbar-nav>li>a.wizard-btn:focus,.vue-form-wizard .navbar .navbar-nav>li>a.wizard-btn:hover,.vue-form-wizard .wizard-btn:focus,.vue-form-wizard .wizard-btn:hover{outline:0!important}.vue-form-wizard .wizard-nav-pills{margin-top:0;position:relative;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vue-form-wizard .wizard-nav-pills a,.vue-form-wizard .wizard-nav-pills li{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-positive:1;flex-grow:1}.vue-form-wizard .wizard-nav-pills>li>a,.vue-form-wizard .wizard-nav-pills a{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-form-wizard .wizard-nav-pills>li>a{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;margin:0 auto;color:rgba(0,0,0,.2);position:relative;top:3px}.vue-form-wizard .wizard-nav-pills>li>a:focus,.vue-form-wizard .wizard-nav-pills>li>a:hover{background-color:transparent;color:rgba(0,0,0,.2);outline:0!important}.vue-form-wizard .wizard-nav-pills>li>a.disabled{pointer-events:none;cursor:default}.vue-form-wizard .wizard-nav-pills>li.active>a,.vue-form-wizard .wizard-nav-pills>li.active>a:focus,.vue-form-wizard .wizard-nav-pills>li.active>a:hover{background-color:transparent;-webkit-transition:font-size .2s linear;transition:font-size .2s linear}.vue-form-wizard .wizard-nav-pills>li.active>a .wizard-icon,.vue-form-wizard .wizard-nav-pills>li.active>a:focus .wizard-icon,.vue-form-wizard .wizard-nav-pills>li.active>a:hover .wizard-icon{color:#fff;font-size:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:all .2s linear;transition:all .2s linear}.vue-form-wizard{padding-bottom:20px}.vue-form-wizard .is_error{border-color:#c84513!important}.vue-form-wizard .is_error .icon-container{background:#c84513!important}.vue-form-wizard.xs .wizard-icon-circle{width:40px;height:40px;font-size:16px}.vue-form-wizard.xs .wizard-icon-circle.tab_shape{height:25px}.vue-form-wizard.xs .wizard-nav-pills>li.active>a .wizard-icon{font-size:16px}.vue-form-wizard.xs .wizard-navigation .wizard-progress-with-circle{position:relative;top:25px;height:4px}.vue-form-wizard.sm .wizard-icon-circle{width:50px;height:50px;font-size:20px}.vue-form-wizard.sm .wizard-icon-circle.tab_shape{height:30px}.vue-form-wizard.sm .wizard-nav-pills>li.active>a .wizard-icon{font-size:20px}.vue-form-wizard.sm .wizard-navigation .wizard-progress-with-circle{position:relative;top:30px;height:4px}.vue-form-wizard.md .wizard-icon-circle{width:70px;height:70px;font-size:24px}.vue-form-wizard.md .wizard-icon-circle.tab_shape{height:40px}.vue-form-wizard.md .wizard-nav-pills>li.active>a .wizard-icon{font-size:24px}.vue-form-wizard.md .wizard-navigation .wizard-progress-with-circle{position:relative;top:40px;height:4px}.vue-form-wizard.lg .wizard-icon-circle{width:90px;height:90px;font-size:28px}.vue-form-wizard.lg .wizard-icon-circle.tab_shape{height:50px}.vue-form-wizard.lg .wizard-nav-pills>li.active>a .wizard-icon{font-size:28px}.vue-form-wizard.lg .wizard-navigation .wizard-progress-with-circle{position:relative;top:50px;height:4px}.vue-form-wizard .wizard-icon-circle{font-size:18px;border:3px solid #f3f2ee;border-radius:50%;font-weight:600;width:70px;height:70px;background-color:#fff;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}.vue-form-wizard .wizard-icon-circle.square_shape{border-radius:0}.vue-form-wizard .wizard-icon-circle.tab_shape{width:100%;min-width:100px;height:40px;border:none;background-color:#f3f2ee;border-radius:0}.vue-form-wizard .wizard-icon-circle .wizard-icon-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:1;-ms-flex:1;flex:1;border-radius:40%}.vue-form-wizard .wizard-icon-circle .wizard-icon-container.square_shape,.vue-form-wizard .wizard-icon-circle .wizard-icon-container.tab_shape{border-radius:0}.vue-form-wizard .wizard-icon-circle .wizard-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-form-wizard .wizard-tab-content{min-height:100px;padding:30px 20px 10px}.vue-form-wizard .wizard-header{padding:15px;position:relative;border-radius:3px 3px 0 0;text-align:center}.vue-form-wizard .wizard-title{color:#252422;font-weight:300;margin:0;text-align:center}.vue-form-wizard .category{font-size:14px;font-weight:400;color:#9a9a9a;margin-bottom:0;text-align:center}.vue-form-wizard .wizard-navigation .wizard-progress-with-circle{position:relative;top:40px;height:4px}.vue-form-wizard .wizard-navigation .wizard-progress-with-circle .wizard-progress-bar{-webkit-box-shadow:none;box-shadow:none;-webkit-transition:width .3s ease;transition:width .3s ease}.vue-form-wizard .clearfix:after{content:"";clear:both;display:table}.vue-form-wizard .wizard-card-footer{padding:0 20px}.vue-form-wizard .wizard-card-footer .wizard-footer-left{float:left}.vue-form-wizard .wizard-card-footer .wizard-footer-right{float:right}@media screen and (max-width:350px){.vue-form-wizard .wizard-card-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vue-form-wizard .wizard-card-footer .wizard-footer-left,.vue-form-wizard .wizard-card-footer .wizard-footer-right{float:none;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-form-wizard .wizard-card-footer .wizard-footer-right button{margin-top:10px}}.vue-form-wizard.vertical .wizard-card-footer{display:block}.vue-form-wizard.vertical .wizard-nav-pills{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vue-form-wizard.vertical .wizard-navigation{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.vue-form-wizard.vertical .wizard-card-footer{padding-top:30px}',""]),t.exports=e},function(t,e,n){"use strict";function r(t){return null==t}function i(t){return null!=t}function o(t,e){return e.tag===t.tag&&e.key===t.key}function a(t){var e=t.tag;t.vm=new e({data:t.args})}function s(t,e,n){var r,o,a={};for(r=e;r<=n;++r)i(o=t[r].key)&&(a[o]=r);return a}function l(t,e,n){for(;e<=n;++e)a(t[e])}function c(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(r.vm.$destroy(),r.vm=null)}}function d(t,e){t!==e&&(e.vm=t.vm,function(t){for(var e=Object.keys(t.args),n=0;nh?l(e,f,b):f>b&&c(t,m,h)}(t,e):i(e)?l(e,0,e.length-1):i(t)&&c(t,0,t.length-1)},e.h=function(t,e,n){return{tag:t,key:e,args:n}}},function(t,e,n){var r=n(47),i=n(197);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){(e=n(48)(!1)).push([t.i,'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-fade-enter-active,\n.vdatetime-fade-leave-active {\n transition: opacity .4s;\n}\n\n.vdatetime-fade-enter,\n.vdatetime-fade-leave-to {\n opacity: 0;\n}\n\n.vdatetime-overlay {\n z-index: 999;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, .5);\n transition: opacity .5s;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-popup {\n box-sizing: border-box;\n z-index: 1000;\n position: fixed;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n width: 340px;\n max-width: calc(100% - 30px);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .3);\n color: #444;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n line-height: 1.18;\n background: #fff;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0)\n}\n\n.vdatetime-popup * {\n box-sizing: border-box\n}\n\n.vdatetime-popup__header {\n padding: 18px 30px;\n background: #3f51b5;\n color: #fff;\n font-size: 32px;\n}\n\n.vdatetime-popup__title {\n margin-bottom: 8px;\n font-size: 21px;\n font-weight: 300;\n}\n\n.vdatetime-popup__year {\n font-weight: 300;\n font-size: 14px;\n opacity: 0.7;\n cursor: pointer;\n transition: opacity .3s\n}\n\n.vdatetime-popup__year:hover {\n opacity: 1\n}\n\n.vdatetime-popup__date {\n line-height: 1;\n cursor: pointer;\n}\n\n.vdatetime-popup__actions {\n padding: 0 20px 10px 30px;\n text-align: right;\n}\n\n.vdatetime-popup__actions__button {\n display: inline-block;\n border: none;\n padding: 10px 20px;\n background: transparent;\n font-size: 16px;\n color: #3f51b5;\n cursor: pointer;\n transition: color .3s\n}\n\n.vdatetime-popup__actions__button:hover {\n color: #444\n}\n.vdatetime-calendar__navigation--previous:hover svg path, .vdatetime-calendar__navigation--next:hover svg path {\n stroke: #888;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-calendar__navigation,\n.vdatetime-calendar__navigation * {\n box-sizing: border-box;\n}\n\n.vdatetime-calendar__navigation {\n position: relative;\n margin: 15px 0;\n padding: 0 30px;\n width: 100%;\n}\n\n.vdatetime-calendar__navigation--previous,\n.vdatetime-calendar__navigation--next {\n position: absolute;\n top: 0;\n padding: 0 5px;\n width: 18px;\n cursor: pointer\n}\n\n.vdatetime-calendar__navigation--previous svg, .vdatetime-calendar__navigation--next svg {\n width: 8px;\n height: 13px;\n}\n\n.vdatetime-calendar__navigation--previous svg path, .vdatetime-calendar__navigation--next svg path {\n transition: stroke .3s;\n}\n\n.vdatetime-calendar__navigation--previous {\n left: 25px;\n}\n\n.vdatetime-calendar__navigation--next {\n right: 25px;\n -webkit-transform: scaleX(-1);\n transform: scaleX(-1);\n}\n\n.vdatetime-calendar__current--month {\n text-align: center;\n text-transform: capitalize;\n}\n\n.vdatetime-calendar__month {\n padding: 0 20px;\n transition: height .2s;\n}\n\n.vdatetime-calendar__month__weekday,\n.vdatetime-calendar__month__day {\n display: inline-block;\n width: 14.28571%;\n line-height: 36px;\n text-align: center;\n font-size: 15px;\n font-weight: 300;\n cursor: pointer\n}\n\n.vdatetime-calendar__month__weekday > span, .vdatetime-calendar__month__day > span {\n display: block;\n width: 100%;\n position: relative;\n height: 0;\n padding: 0 0 100%;\n overflow: hidden;\n}\n\n.vdatetime-calendar__month__weekday > span > span, .vdatetime-calendar__month__day > span > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border: 0;\n border-radius: 50%;\n transition: background-color .3s, color .3s;\n}\n\n.vdatetime-calendar__month__weekday {\n font-weight: bold;\n}\n\n.vdatetime-calendar__month__day:hover > span > span {\n background: #eee;\n}\n\n.vdatetime-calendar__month__day--selected {\n}\n\n.vdatetime-calendar__month__day--selected > span > span,\n .vdatetime-calendar__month__day--selected:hover > span > span {\n color: #fff;\n background: #3f51b5;\n}\n\n.vdatetime-calendar__month__day--disabled {\n opacity: 0.4;\n cursor: default\n}\n\n.vdatetime-calendar__month__day--disabled:hover > span > span {\n color: inherit;\n background: transparent;\n}\n.vdatetime-time-picker__list::-webkit-scrollbar-thumb {\n background: #ccc\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker__list::-webkit-scrollbar-track {\n background: #efefef\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker * {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-time-picker::after {\n content: \'\';\n display: table;\n clear: both\n}\n\n.vdatetime-time-picker__list {\n float: left;\n width: 50%;\n height: 305px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch\n}\n\n.vdatetime-time-picker__list::-webkit-scrollbar {\n width: 3px\n}\n\n.vdatetime-time-picker__with-suffix .vdatetime-time-picker__list {\n width: 33.3%;\n}\n\n.vdatetime-time-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n transition: font-size .3s;\n}\n\n.vdatetime-time-picker__item:hover {\n font-size: 32px;\n}\n\n.vdatetime-time-picker__item--selected {\n color: #3f51b5;\n font-size: 32px;\n}\n\n.vdatetime-time-picker__item--disabled {\n opacity: 0.4;\n cursor: default;\n font-size: 20px !important;\n}\n.vdatetime-year-picker__list::-webkit-scrollbar-thumb {\n background: #ccc\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker__list::-webkit-scrollbar-track {\n background: #efefef\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker * {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-year-picker::after {\n content: \'\';\n display: table;\n clear: both\n}\n\n.vdatetime-year-picker__list {\n float: left;\n width: 100%;\n height: 305px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch\n}\n\n.vdatetime-year-picker__list::-webkit-scrollbar {\n width: 3px\n}\n\n.vdatetime-year-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n transition: font-size .3s;\n}\n\n.vdatetime-year-picker__item:hover {\n font-size: 32px;\n}\n\n.vdatetime-year-picker__item--selected {\n color: #3f51b5;\n font-size: 32px;\n}\n\n.vdatetime-year-picker__item--disabled {\n opacity: 0.4;\n cursor: default\n}\n\n.vdatetime-year-picker__item--disabled:hover {\n color: inherit;\n background: transparent\n}\n.vdatetime-month-picker__list::-webkit-scrollbar-thumb {\n background: #ccc\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker__list::-webkit-scrollbar-track {\n background: #efefef\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker * {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker {\n box-sizing: border-box\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.vdatetime-month-picker::after {\n content: \'\';\n display: table;\n clear: both\n}\n\n.vdatetime-month-picker__list {\n float: left;\n width: 100%;\n height: 305px;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch\n}\n\n.vdatetime-month-picker__list::-webkit-scrollbar {\n width: 3px\n}\n\n.vdatetime-month-picker__item {\n padding: 10px 0;\n font-size: 20px;\n text-align: center;\n cursor: pointer;\n transition: font-size .3s;\n}\n\n.vdatetime-month-picker__item:hover {\n font-size: 32px;\n}\n\n.vdatetime-month-picker__item--selected {\n color: #3f51b5;\n font-size: 32px;\n}\n\n.vdatetime-month-picker__item--disabled {\n opacity: 0.4;\n cursor: default\n}\n\n.vdatetime-month-picker__item--disabled:hover {\n color: inherit;\n background: transparent\n}\n',""]),t.exports=e},,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r),o=n(46);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(t,e){var n=e.split(".").slice(-1)[0];if(t[n])throw new Error("The key `".concat(n,"` is already in use."));return t[n]=e,t}),{})}function c(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r',width:24,height:24},g=n(106),b=n.n(g),_={body:'',width:24,height:24},y=n(107),w=n.n(y),x=n(108),k=n.n(x),C={body:'',width:32,height:32},M={body:'',width:24,height:24},S={body:'',width:24,height:24},T=n(109),E=n.n(T),j={body:'',width:24,height:24},O={body:'',width:16,height:16},I=n(110),L=n.n(I),D=n(111),N=n.n(D),$={body:'',width:24,height:24},A={body:'',width:24,height:24},R={body:'',width:24,height:24},P={body:'',width:24,height:24},q={body:'',width:24,height:24},z=n(112),F=n.n(z),U=n(113),B=n.n(U),V={body:'',width:32,height:32},H=n(114),W=n.n(H),G=n(115),Y=n.n(G),K={body:'',width:24,height:24},Z={data:()=>({icons:{arrowUp:v,bugIcon:b.a,bxBriefcase:_,cardChecklist:w.a,clipboardIcon:k.a,documentPdf:C,documentText:M,folderIcon:S,groupPresentation:E.a,imageIcon:j,infoCircle:O,linkIcon:L.a,linkIcon2:N.a,linkOut:$,mailIcon:A,microsoftExcel:R,microsoftPowerpoint:P,microsoftWord:q,noteAdd:F.a,objectStorage:B.a,passwordIcon:V,userIcon:W.a,usersIcon:Y.a,xCircle:K}})};const X=n(3);function J(t,e,n,r,i,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}var Q=J({name:"BugsModule",props:["destination","locationId"],mixins:[h,Z],data:()=>({bugList:[]}),methods:{addNewBug:function(){new f.a(document.getElementById("addBugModal")).show()},appendBugList:function(t){this.bugList.push(t[0].fields)},getBugHyperLink:function(t){return"Bugzilla"==t.bug_client__list_of_bug_client__bug_client_name?`${t.bug_client__bug_client_url}/show_bug.cgi?id=${t.bug_code}`:"javascript:void(0)"},getBugList:function(){"requirement_item"!==this.destination&&X.post(`/object_data/${this.destination}/${this.locationId}/bug_list/`).then(t=>{this.bugList=[],t.data.forEach(t=>{this.bugList.push(t)})}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.getBugList()}},m,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Bug Description")]),this._v(" "),e("td",[this._v("Status")])])])}],!1,null,"dee4f3f4",null);Q.options.__file="src/js/components/modules/sub_modules/BugsModule.vue";var tt=Q.exports,et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Customers")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Below are a list of customers who are stakeholders to this "+t._s(t.destination)+".\n ")]),t._v(" "),0==t.customerResults.length?n("div",[t._m(0)]):n("div",[n("customers-list-module",{attrs:{"customer-results":t.customerResults}})],1),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addNewCustomer}},[t._v("\n Add Customer\n ")])])]),t._v(" "),n("add-customer-wizard",{attrs:{"location-id":t.locationId,destination:t.destination,"exclude-customers":t.customerResults},on:{update_customer_results:function(e){return t.updateCustomerResults(e)}}})],1)};et._withStripped=!0;const nt=n(3);var rt=J({name:"CustomersModule",props:["destination","locationId"],mixins:[h,Z],data:()=>({customerResults:[]}),methods:{addNewCustomer:function(){new f.a(document.getElementById("addCustomerModal")).show()},loadCustomerResults:function(){nt.post(`/object_data/${this.destination}/${this.locationId}/customer_list/`).then(t=>{this.customerResults=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateCustomerResults:function(t){this.customerResults=t}},mounted(){this.loadCustomerResults()}},et,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"customers-module-spacer"},[e("div",{staticClass:"alert alert-dark"},[this._v("\n Sorry - there are no customers. Please add them by clicking on the button below\n ")])])}],!1,null,"fc846c14",null);rt.options.__file="src/js/components/modules/sub_modules/CustomersModule.vue";var it=rt.exports,ot=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.bxBriefcase}}),t._v(" Documents")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following is a folder structure of all documents uploaded to this "+t._s(t.destination)+"\n ")]),t._v(" "),t.documentList.length+t.folderList.length==0?n("div",{staticClass:"module-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no documents or folders uploaded.")])]):n("div",{staticClass:"document-widget"},[null!=this.currentFolder?n("div",{staticClass:"document-child",on:{click:function(e){return t.goToParentDirectory()}}},[n("IconifyIcon",{attrs:{icon:t.icons.arrowUp,width:"80px",height:"80px"}}),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Go to Parent Directory...\n ")])],1):t._e(),t._v(" "),t._l(t.folderFilteredList,(function(e){return n("div",{key:e.pk,staticClass:"document-child",on:{click:function(n){return t.updateCurrentFolder(e.pk)}}},[n("IconifyIcon",{attrs:{icon:t.icons.folderIcon,width:"80px",height:"80px"}}),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n "+t._s(t.shortName(e.fields.folder_description))+"\n ")])],1)})),t._v(" "),t._l(t.documentFilteredList,(function(e){return n("div",{key:e.document_key_id,staticClass:"document-child"},[n("a",{attrs:{href:"/private/"+e.document_key_id+"/",rel:"noopener noreferrer",target:"_blank"}},[n("IconifyIcon",{attrs:{icon:t.getIcon(e),width:"80px",height:"80px"}}),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n "+t._s(t.shortName(e.document_key__document_description))+"\n ")])],1)])}))],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"btn-group save-changes"},[n("button",{staticClass:"btn btn-primary dropdown-toggle",attrs:{type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"}},[t._v("\n New Document/File\n ")]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"javascript:void(0)"},on:{click:t.uploadDocument}},[t._v("\n Upload Document\n ")])]),t._v(" "),n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"javascript:void(0)"},on:{click:t.addLink}},[t._v("\n Add Link\n ")])]),t._v(" "),n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"javascript:void(0)"},on:{click:t.addFolder}},[t._v("\n Add Folder\n ")])])])]),t._v(" "),n("add-folder-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"current-folder":t.currentFolder,"existing-folders":t.folderFilteredList},on:{update_folder_list:function(e){return t.updateFolderList(e)}}}),t._v(" "),n("add-link-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"current-folder":t.currentFolder,"exclude-documents":t.documentFilteredList},on:{update_document_list:function(e){return t.updateDocumentList(e)}}}),t._v(" "),n("upload-document-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"current-folder":t.currentFolder,"exclude-documents":t.documentFilteredList},on:{update_document_list:function(e){return t.updateDocumentList(e)}}})],1)};ot._withStripped=!0;const at=n(3);var st=J({name:"DocumentsModule",props:["destination","locationId"],data:()=>({currentFolder:null,documentList:[],documentFilteredList:[],folderList:[],folderFilteredList:[]}),mixins:[Z],methods:{addFolder:function(){new f.a(document.getElementById("addFolderModal")).show()},addLink:function(){new f.a(document.getElementById("addLinkModal")).show()},getDocumentList:function(){at.post(`/documentation/${this.destination}/${this.locationId}/list/files/`).then(t=>{this.documentList=t.data,this.updateDocumentFilteredList()})},getFolderList:function(){at.post(`/documentation/${this.destination}/${this.locationId}/list/folders/`).then(t=>{this.folderList=t.data,this.updateFolderFilteredList()})},getIcon:function(t){if(""!=t.document_key__document_url_location&&null!==t.document_key__document_url_location)return this.icons.linkOut;var e=t.document_key__document.split(".");switch(e[e.length-1]){case"jpg":case"png":case"bmp":return this.icons.imageIcon;case"doc":case"docx":return this.icons.microsoftWord;case"xls":case"xlsx":return this.icons.microsoftExcel;case"ppt":case"pptx":return this.icons.microsoftPowerpoint;case"pdf":return this.icons.documentPdf;default:return this.icons.documentText}},goToParentDirectory:function(){var t=this.folderList.filter(t=>t.pk==this.currentFolder)[0];this.updateCurrentFolder(t.fields.parent_folder)},shortName:function(t){return t.length<=50?t:t.substring(0,47)+"..."},updateCurrentFolder:function(t){this.currentFolder=t,this.updateDocumentFilteredList(),this.updateFolderFilteredList()},updateDocumentList:function(t){this.documentList.push(t[0]),this.updateDocumentFilteredList()},updateDocumentFilteredList:function(){this.documentFilteredList=this.documentList.filter(t=>t.folder==this.currentFolder)},updateFolderList:function(t){this.folderList.push(t[0]),this.updateFolderFilteredList()},updateFolderFilteredList:function(){this.folderFilteredList=this.folderList.filter(t=>t.fields.parent_folder==this.currentFolder)},uploadDocument:function(){new f.a(document.getElementById("uploadDocumentModal")).show()}},mounted(){this.getDocumentList(),this.getFolderList()}},ot,[],!1,null,"3a4a4099",null);st.options.__file="src/js/components/modules/sub_modules/DocumentsModule.vue";var lt=st.exports,ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Stakeholder Organisation\n "),!t.$v.stakeholderModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please search for a Stakeholder.")]):t._e()]),t._v(" "),n("v-select",{staticClass:"get-stakeholders",attrs:{options:t.stakeholderFixList,label:"organisation_name"},on:{search:t.fetchOptions},model:{value:t.stakeholderModel,callback:function(e){t.stakeholderModel=e},expression:"stakeholderModel"}})],1)])])};ct._withStripped=!0;var dt=n(1),ut={methods:{searchTrigger:function(t){""!=t.searchTimeout&&clearTimeout(t.searchTimeout),void 0===t.search?this.searchUndefined(t):this.searchDefined(t)},searchDefined:function(t){t.search.length>=3&&(t.searchTimeout=setTimeout(t.return_function,500,t.search,t.loading))},searchUndefined:function(t){t.searchTimeout=setTimeout(t.return_function,500)}}};const pt=n(3);var mt=J({name:"GetStakeholders",components:{axios:pt,bootstrap:f.default},mixins:[ut],props:["isDirty"],data:()=>({searchTimeout:"",stakeholderFixList:[],stakeholderModel:""}),validations:{stakeholderModel:{required:dt.required}},methods:{fetchOptions:function(t,e){this.searchTrigger({return_function:this.getOrganisationData,searchTimeout:this.searchTimeout,search:t,loading:e})},getOrganisationData:function(t,e){const n=new FormData;n.set("search",t),pt.post("/search/organisation/data/",n).then(t=>{this.stakeholderFixList=[],t.data.forEach(t=>{var e={value:t.pk,organisation_name:t.fields.organisation_name,organisation_website:t.fields.organisation_website,organisation_email:t.fields.organisation_email,organisation_profile_picture:t.fields.organisation_profile_picture};this.stakeholderFixList.push(e)})}).catch((function(t){document.getElementById("errorModalContent").innerHTML="Search Organisation Issue:
"+t,new f.default.Modal(document.getElementById("errorModal"),{keyboard:!1}).show(),document.getElementById("loader").style.display="none"}))}},watch:{stakeholderModel:function(){this.$emit("update_stakeholder_model",this.stakeholderModel)}},mounted(){this.getOrganisationData("","")}},ct,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Stakeholder Organisation")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please search for your stakeholder's organisation in the dropdown box. Once found, please select.\n ")])])}],!1,null,"3254ff31",null);mt.options.__file="src/js/components/organisations/GetStakeholders.vue";var ft=mt.exports,ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("h2",[t._v("Group Permissions")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Add or remove groups from this "+t._s(t.destination)+". Adding a group will allow users\n from that group to access this "+t._s(t.destination)+".\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n If you do not add one of your own group(s), you will only get readonly access.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Group List\n "),!t.$v.groupModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please select at least one group.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.groupFixResults,label:"group",multiple:""},model:{value:t.groupModel,callback:function(e){t.groupModel=e},expression:"groupModel"}})],1)])};ht._withStripped=!0;var vt=J({name:"GroupPermissions",components:{},props:{destination:String,groupResults:Array,isDirty:Boolean,userGroupResults:{type:Array,default:()=>[]}},watch:{groupModel:function(){this.$emit("update_group_model",this.groupModel)}},data:()=>({groupFixResults:[],groupModel:[]}),validations:{groupModel:{required:dt.required}},mounted(){this.groupResults.forEach(t=>{var e={value:t.pk,group:t.fields.group_name};this.groupFixResults.push(e)}),this.groupModel=this.userGroupResults.map(t=>({group:t.group__group_name,value:t.group_id}))}},ht,[],!1,null,"2d989908",null);vt.options.__file="src/js/components/permissions/GroupPermissions.vue";var gt=vt.exports,bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.groupPresentation}}),t._v(" Groups")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following list are all the Groups connected to this "+t._s(t.destination)+". Users will have to be included\n in these groups to be added to this "+t._s(t.destination)+"\n ")]),t._v(" "),n("table",{staticClass:"table group-and-user-table"},[t._m(0),t._v(" "),n("tbody",t._l(t.groupList,(function(e){return n("tr",[n("td",[t._v(t._s(e.fields.group_name))])])})),0)]),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewGroup}},[t._v("Add Group to "+t._s(t.destination))])])]),t._v(" "),n("hr"),t._v(" "),n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Users")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are a list of users who are connected to this "+t._s(t.destination)+". Please note - users have to be\n a part of the groups list above.\n ")]),t._v(" "),0==t.userList.length?n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - there are no current users active.\n ")]):n("div",{staticClass:"user-card-layouts"},t._l(t.userList,(function(e){return n("div",{staticClass:"user-card"},[n("img",{staticClass:"default-user-profile",attrs:{src:"/static/NearBeach/images/placeholder/people_tax.svg",alt:"default profile"}}),t._v(" "),n("div",{staticClass:"user-details"},[n("strong",[t._v(t._s(e.first_name)+" "+t._s(e.last_name))]),n("br"),t._v("\n "+t._s(e.username)+"\n "),n("div",{staticClass:"spacer"}),t._v("\n "+t._s(e.email)+"\n ")])])})),0),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewUser}},[t._v("Add User to "+t._s(t.destination))])])]),t._v(" "),n("add-group-wizard",{attrs:{destination:t.destination,"location-id":t.locationId},on:{update_group_list:function(e){return t.updateGroupList(e)}}}),t._v(" "),n("add-user-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"refresh-user-list":t.refreshUserListBoolean},on:{update_user_list:function(e){return t.updateUserList(e)},reset_refresh_user_list:function(e){return t.resetRefreshUserList(e)}}})],1)};bt._withStripped=!0;const _t=n(3);var yt=J({name:"GroupsAndUsersModule",props:["destination","locationId"],mixins:[h,Z],data:()=>({groupList:[],refreshUserListBoolean:!1,userList:[]}),methods:{addNewGroup:function(){new f.a(document.getElementById("addGroupModal")).show()},addNewUser:function(){new f.a(document.getElementById("addUserModal")).show()},getGroupList:function(){_t.post(`/object_data/${this.destination}/${this.locationId}/group_list/`).then(t=>{this.groupList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},getUserList:function(){_t.post(`/object_data/${this.destination}/${this.locationId}/user_list/`).then(t=>{this.userList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},resetRefreshUserList:function(){this.refreshUserListBoolean=!1},updateGroupList:function(t){this.groupList=t,this.refreshUserListBoolean=!0},updateUserList:function(t){this.userList=t}},mounted(){this.getGroupList(),this.getUserList()}},bt,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Group Name")])])])}],!1,null,"0f5e1aac",null);yt.options.__file="src/js/components/modules/sub_modules/GroupsAndUsersModule.vue";var wt=yt.exports,xt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("ul",{staticClass:"nav nav-tabs",attrs:{id:"misc_module_tabs",role:"tablist"}},["requirement_item"!=t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link active",attrs:{id:"group-and-user-tab","data-bs-toggle":"tab","data-bs-target":"#group-and-users",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Groups and Users")])]):t._e(),t._v(" "),"requirement"==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"requirement-item-tab","data-bs-toggle":"tab","data-bs-target":"#requirement-items",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Requirement Item")])]):t._e(),t._v(" "),"requirement"==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"requirement-link-tab","data-bs-toggle":"tab","data-bs-target":"#requirement-links",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Requirement Links")])]):t._e(),t._v(" "),"requirement_item"==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"requirement-item-link-tab","data-bs-toggle":"tab","data-bs-target":"#requirement-item-links",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Links")])]):t._e(),t._v(" "),t._m(0),t._v(" "),"requirement"!==t.destination&&"requirement_item"!==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"object-link-tabs","data-bs-toggle":"tab","data-bs-target":"#object-links",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Linked Objects")])]):t._e(),t._v(" "),"requirement_item"!==t.destination?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"customer-tab","data-bs-toggle":"tab","data-bs-target":"#customers",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Customers")])]):t._e(),t._v(" "),["project","task","requirement"].includes(t.destination)?n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"bug-tab","data-bs-toggle":"tab","data-bs-target":"#bugs",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[t._v("Bugs")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t._m(2)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"misc_module_content"}},["requirement_item"!==t.destination?n("div",{staticClass:"tab-pane fade show active",attrs:{id:"group-and-users",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("groups-and-users-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):t._e(),t._v(" "),"requirement"==t.destination?n("div",{staticClass:"tab-pane fade",attrs:{id:"requirement-items",role:"tabpanel","aria-labelledby":"home-tab"}},[n("requirement-items-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):t._e(),t._v(" "),"requirement"==t.destination?n("div",{staticClass:"tab-pane fade",attrs:{id:"requirement-links",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("requirement-links-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):"requirement_item"==t.destination?n("div",{staticClass:"tab-pane fade",attrs:{id:"requirement-item-links",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("requirement-item-links-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1):t._e(),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"documents",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("documents-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"object-links",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("object-links",{attrs:{destination:t.destination,"location-id":t.locationId}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"customers",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("customers-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"bugs",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("bugs-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"misc",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("misc-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"notes",role:"tabpanel","aria-labelledby":"contact-tab"}},[n("notes-module",{attrs:{"location-id":t.locationId,destination:t.destination}})],1)])])])};xt._withStripped=!0;var kt=J({name:"ParentModules",props:{destination:String,locationId:Number,rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"}},data:()=>({}),methods:{},mounted(){this.$store.commit({type:"updateDestination",destination:this.destination,locationId:this.locationId}),this.$store.commit({type:"updateUrl",rootUrl:this.rootUrl,staticUrl:this.staticUrl})}},xt,[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"documents-tab","data-bs-toggle":"tab","data-bs-target":"#documents",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[this._v("Documents")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"misc-tab","data-bs-toggle":"tab","data-bs-target":"#misc",type:"button",role:"tab","aria-controls":"home","aria-selected":"false"}},[this._v("Misc")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"notes-tab","data-bs-toggle":"tab","data-bs-target":"#notes",type:"button",role:"tab","aria-controls":"home","aria-select":"false"}},[this._v("Notes")])])}],!1,null,"d819f14e",null);kt.options.__file="src/js/components/modules/ParentModules.vue";var Ct=kt.exports,Mt=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("list-tags-module",{attrs:{destination:this.destination,"location-id":this.locationId}})],1)};Mt._withStripped=!0;const St=n(3);var Tt=J({name:"MiscModule",components:{},props:["destination","locationId"],mixins:[h,Z],data:()=>({noteHistoryResults:[]}),methods:{createNewNote:function(){new f.a(document.getElementById("newNoteModal")).show()},getNoteHistoryResults:function(){St.post(`/object_data/${this.destination}/${this.locationId}/note_list/`).then(t=>{this.noteHistoryResults=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateNoteHistoryResults:function(t){this.noteHistoryResults.push(t[0])}},mounted(){this.getNoteHistoryResults()}},Mt,[],!1,null,"24f97633",null);Tt.options.__file="src/js/components/modules/sub_modules/MiscModule.vue";var Et=Tt.exports,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addBugModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-xl"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Add Bugs Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Adding Bugs")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Select which bug client you want to search data from. Then use keywords or bug id to\n search for the required bugs. Once the search results appear, select those appropriate\n bugs that you want to link to the "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Bug Client")]),t._v(" "),n("v-select",{attrs:{options:t.bugClientList,label:"bug_client_name",option:"bug_client_id"},model:{value:t.bugClientModel,callback:function(e){t.bugClientModel=e},expression:"bugClientModel"}})],1),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search Keywords")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control",attrs:{type:"text",disabled:""==t.bugClientModel,maxlength:"50"},domProps:{value:t.searchModel},on:{keydown:t.startSearchTimer,input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),t.searchOn?n("div",{staticClass:"no-search"},[n("strong",[t._v("Currently Searching for Bugs")]),n("br"),t._v(" "),n("img",{attrs:{src:"/static/NearBeach/images/placeholder/online_connection.svg",alt:"Placeholder Search Image"}})]):0==t.bugResults.length?n("div",{staticClass:"no-search"},[n("strong",[t._v("No Search Results Sorry")]),n("br"),t._v(" "),n("img",{attrs:{src:"/static/NearBeach/images/placeholder/road_to_knowledge.svg",alt:"Placeholder Search Image"}})]):n("div",{attrs:{id:"bug_results_div"}},[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.bugResults,(function(e){return n("tr",[n("td",{attrs:{id:"bug_no_"+e.id}},[n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.submitBug(e.id)}}},[t._v("\n Add Bug\n ")])]),t._v(" "),n("td",[t._v("\n "+t._s(e.summary)+"\n "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Assigned to: "+t._s(e.assigned_to))]),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Bug No. "+t._s(e.id)+" | Priority. "+t._s(e.priority))])]),t._v(" "),n("td",[t._v(t._s(e.status))])])})),0)])])])])]),t._v(" "),t._m(2)])])])};jt._withStripped=!0;const Ot=n(3);var It=J({name:"AddBugWizard",props:["destination","locationId"],mixins:[h,Z],data:()=>({bugClientModel:"",bugClientList:[],bugResults:[],searchModel:"",searchOn:!1,searchTimer:""}),methods:{loadBugClientList:function(){Ot.post("/object_data/bug_client_list/").then(t=>{this.bugClientList=[],t.data.forEach(t=>{this.bugClientList.push({bug_client_id:t.pk,bug_client_name:t.fields.bug_client_name})})})},startSearchTimer:function(){""!=this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>{this.startSearch()},700)},startSearch:function(){if(""===this.searchModel)return;this.searchOn=!0;const t=new FormData;t.set("bug_client_id",this.bugClientModel.bug_client_id),t.set("search",this.searchModel),Ot.post(`/object_data/${this.destination}/${this.locationId}/query_bug_client/`,t).then(t=>{this.bugResults=t.data,this.searchOn=!1}).catch(t=>{this.showErrorModal(t,this.destination)})},submitBug:function(t){var e=document.getElementById("bug_no_"+t);e.innerHTML="Adding Bug";var n=this.bugResults.filter(e=>e.id==t);const r=new FormData;r.set("bug_client",this.bugClientModel.bug_client_id),r.set("bug_id",t),r.set("bug_description",n[0].summary),r.set("bug_status",n[0].status),Ot.post(`/object_data/${this.destination}/${this.locationId}/add_bug/`,r).then(t=>{this.$emit("append_bug_list",t.data),e.innerHTML="Done"}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.loadBugClientList()}},jt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addBugsCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td"),this._v(" "),e("td",[this._v("Bug Description")]),this._v(" "),e("td",[this._v("Bug Status")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[this._v("Close")])])}],!1,null,"12f8b90e",null);It.options.__file="src/js/components/modules/wizards/AddBugWizard.vue";var Lt=It.exports,Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addCustomerModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Add Customers Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t.customerFixList.length>0?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Select Customer")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Search for a customer who has not been added to this "+t._s(t.destination)+". If the search is\n blank there are either no customers that match that search, or all customer have already\n been added to the "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("v-select",{attrs:{options:t.customerFixList,label:"customerName"},model:{value:t.customerModel,callback:function(e){t.customerModel=e},expression:"customerModel"}})],1)]):n("div",{staticClass:"row"},[t._m(1),t._v(" "),t._m(2)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",diabled:""==t.customerModel},on:{click:t.addCustomer}},[t._v("\n Save changes\n ")])])])])])};Dt._withStripped=!0;const Nt=n(3);var $t=J({name:"AddCustomerWizard",props:["destination","locationId","excludeCustomers"],mixins:[h,Z],data:()=>({customerModel:"",customerList:[],customerFixList:[]}),methods:{addCustomer:function(){const t=new FormData;t.set("customer",this.customerModel.value),Nt.post(`/object_data/${this.destination}/${this.locationId}/add_customer/`,t).then(t=>{this.$emit("update_customer_results",t.data),this.customerModel="",document.getElementById("addCustomerCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})},getCustomerList:function(){Nt.post(`/object_data/${this.destination}/${this.locationId}/customer_list_all/`).then(t=>{this.customerList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateCustomerFixList:function(){if(0!=this.customerList.length){var t=[];this.excludeCustomers.forEach(e=>{t.push(e.pk)}),this.customerFixList=[],this.customerList.forEach(e=>{t.includes(e.pk)||this.customerFixList.push({value:e.pk,customerName:`${e.fields.customer_first_name} ${e.fields.customer_last_name}`})})}}},mounted(){this.getCustomerList()},watch:{excludeCustomers:function(){this.updateCustomerFixList()}}},Dt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addCustomerCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6"},[e("strong",[this._v("Sorry - no results")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n This could be because\n "),e("ul",[e("li",[this._v("There are no more customers left to add")]),this._v(" "),e("li",[this._v("There are no customers for this organisation")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6 no-search"},[e("img",{attrs:{src:"/static/NearBeach/images/placeholder/questions.svg",alt:"Sorry - there are no results"}})])}],!1,null,"70989242",null);$t.options.__file="src/js/components/modules/wizards/AddCustomerWizard.vue";var At=$t.exports,Rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addFolderModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add Folder Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"folder_description"}},[t._v("Folder Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.folderDescriptionModel,expression:"folderDescriptionModel"}],staticClass:"form-control",attrs:{type:"text",id:"folder_description",maxlength:"50"},domProps:{value:t.folderDescriptionModel},on:{input:function(e){e.target.composing||(t.folderDescriptionModel=e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableAddFolderButton},on:{click:t.addFolder}},[t._v("\n Add Folder\n ")])])])])])};Rt._withStripped=!0;const Pt=n(3);var qt=J({name:"AddFolderWizard",props:["currentFolder","destination","existingFolders","locationId"],mixins:[h,Z],data:()=>({disableAddFolderButton:!0,folderDescriptionModel:""}),methods:{addFolder:function(){const t=new FormData;t.set("folder_description",this.folderDescriptionModel),null!==this.currentFolder&&""!=this.currentFolder&&t.set("parent_folder",this.currentFolder),Pt.post(`/documentation/${this.destination}/${this.locationId}/add_folder/`,t).then(t=>{this.$emit("update_folder_list",t.data),this.folderDescriptionModel="",document.getElementById("addFolderCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}},updated(){var t=this.existingFolders.filter(t=>t.fields.folder_description==this.folderDescriptionModel);this.disableAddFolderButton=t.length>0||""==this.folderDescriptionModel}},Rt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addFolderCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Creating a folder")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Give the folder an appropriate name. When done, click on the "Save" button. It will be\n added to the current folder.\n ')])])}],!1,null,"0b928222",null);qt.options.__file="src/js/components/modules/wizards/AddFolderWizard.vue";var zt=qt.exports,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addGroupModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.groupPresentation}}),t._v(" Add Group Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t.groupFixList.length>0?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Add Groups")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the following multiple select to select which groups you want to add to this\n "+t._s(t.destination)+".\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please note: A user's group has to be added to the "+t._s(t.destination)+" before the user\n can be added.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("v-select",{attrs:{options:t.groupFixList,multiple:""},model:{value:t.groupModel,callback:function(e){t.groupModel=e},expression:"groupModel"}})],1)]):n("div",{staticClass:"row"},[t._m(1),t._v(" "),t._m(2)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.groupModel.length},on:{click:t.addGroup}},[t._v("Add Group(s)")])])])])])};Ft._withStripped=!0;const Ut=n(3);var Bt=J({name:"AddGroupWizard",props:["destination","locationId"],mixins:[h,Z],data:()=>({groupFixList:[],groupModel:[]}),methods:{addGroup:function(){const t=new FormData;this.groupModel.forEach(e=>{t.append("group_list",e.value)}),Ut.post(`/object_data/${this.destination}/${this.locationId}/add_group/`,t).then(t=>{this.$emit("update_group_list",t.data),document.getElementById("addGroupCloseButton").click(),this.getGroupList()}).catch(t=>{this.showErrorModal(t,this.destination)})},getGroupList:function(){Ut.post(`/object_data/${this.destination}/${this.locationId}/group_list_all/`).then(t=>{this.groupFixList=[],t.data.forEach(t=>{var e={value:t.pk,label:t.fields.group_name};this.groupFixList.push(e)})}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.getGroupList()}},Ft,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addGroupCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6"},[e("strong",[this._v("Sorry - no results")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n This could be because\n "),e("ul",[e("li",[this._v("There are no more groups left to add")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6 no-search"},[e("img",{attrs:{src:"/static/NearBeach/images/placeholder/questions.svg",alt:"Sorry - there are no results"}})])}],!1,null,"3c5e7944",null);Bt.options.__file="src/js/components/modules/wizards/AddGroupWizard.vue";var Vt=Bt.exports,Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addLinkModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"document_url_location"}},[t._v("\n Document URL\n "),!t.$v.documentUrlLocationModel.required&&t.$v.documentUrlLocationModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a URL.")]):t._e(),t._v(" "),!t.$v.documentUrlLocationModel.url&&t.$v.documentUrlLocationModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a proper URL.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.documentUrlLocationModel,expression:"documentUrlLocationModel"}],staticClass:"form-control",attrs:{id:"document_url_location"},domProps:{value:t.documentUrlLocationModel},on:{input:function(e){e.target.composing||(t.documentUrlLocationModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"document_description"}},[t._v("\n Document Description\n "),!t.$v.documentDescriptionModel.required&&t.$v.documentDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a description of the link.")]):t._e(),t._v(" "),t.duplicateDescription?n("span",{staticClass:"error"},[t._v(" Sorry - but this is a duplicated description.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.documentDescriptionModel,expression:"documentDescriptionModel"}],staticClass:"form-control",attrs:{id:"document_description",maxlength:"50"},domProps:{value:t.documentDescriptionModel},on:{input:function(e){e.target.composing||(t.documentDescriptionModel=e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableAddButton},on:{click:t.addLink}},[t._v("\n Add Link\n ")])])])])])};Ht._withStripped=!0;const Wt=n(3);var Gt=J({name:"AddLinkWizard",props:["currentFolder","destination","excludeDocuments","locationId"],mixins:[h,Z],data:()=>({linkModel:"",disableAddButton:!0,documentDescriptionModel:"",documentUrlLocationModel:"",duplicateDescription:!1}),validations:{documentDescriptionModel:{required:dt.required},documentUrlLocationModel:{required:dt.required,url:dt.url}},methods:{addLink:function(){const t=new FormData;t.set("document_description",this.documentDescriptionModel),t.set("document_url_location",this.documentUrlLocationModel),null!==this.currentFolder&&""!=this.currentFolder&&t.set("parent_folder",this.currentFolder),Wt.post(`/documentation/${this.destination}/${this.locationId}/add_link/`,t).then(t=>{this.$emit("update_document_list",t.data),this.documentDescriptionModel="",this.documentUrlLocationModel="",document.getElementById("addLinkCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}},updated(){var t=this.excludeDocuments.filter(t=>t.document_key__document_description==this.documentDescriptionModel);this.duplicateDescription=t.length>0,this.$v.$touch(),this.disableAddButton=this.$v.$invalid||t.length>0}},Ht,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addLinkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Add Link")]),this._v(" "),e("p",{staticClass:"text-instruction"},[this._v("\n Add hyperlinks to other documents and sources located in on the internet/cloud.\n ")])])}],!1,null,"0cea12fb",null);Gt.options.__file="src/js/components/modules/wizards/AddLinkWizard.vue";var Yt=Gt.exports,Kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addUserModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add User Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t.userFixList.length>0?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Add Users")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the following multiple select to select which users you want to add to this\n "+t._s(t.destination)+".\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please note: A user's group has to be added to the "+t._s(t.destination)+" before the user\n can be added.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("v-select",{attrs:{options:t.userFixList,multiple:""},model:{value:t.userModel,callback:function(e){t.userModel=e},expression:"userModel"}})],1)]):n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("strong",[t._v("Sorry - no results")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n This could be because\n "),n("ul",[n("li",[t._v("There are no more users left to add")]),t._v(" "),n("li",[t._v("\n The user you are after is in a group not current added to this "+t._s(t.destination)+"\n ")])])])]),t._v(" "),t._m(1)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.userModel.length},on:{click:t.addUser}},[t._v("Add User(s)")])])])])])};Kt._withStripped=!0;const Zt=n(3);var Xt=J({name:"AddUserWizard",props:["destination","locationId","refreshUserList"],mixins:[h,Z],data:()=>({userFixList:[],userModel:[]}),methods:{addUser:function(){const t=new FormData;this.userModel.forEach(e=>{t.append("user_list",e.value)}),Zt.post(`/object_data/${this.destination}/${this.locationId}/add_user/`,t).then(t=>{this.$emit("update_user_list",t.data),document.getElementById("addUserCloseButton").click(),this.userModel=[],this.getUserList()}).catch(t=>{this.showErrorModal(t,this.destination)})},getUserList:function(){Zt.post(`/object_data/${this.destination}/${this.locationId}/user_list_all/`).then(t=>{this.userFixList=t.data.map(t=>({value:t.id,label:`${t.username}: ${t.first_name} ${t.last_name}`}))})}},watch:{refreshUserList:function(){this.refreshUserList&&this.getUserList(),this.$emit("reset_refresh_user_list")}},mounted(){this.getUserList()}},Kt,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addUserCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-6 no-search"},[e("img",{attrs:{src:"/static/NearBeach/images/placeholder/questions.svg",alt:"Sorry - there are no results"}})])}],!1,null,"1bd67d8c",null);Xt.options.__file="src/js/components/modules/wizards/AddUserWizard.vue";var Jt=Xt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Customer")]),t._v(" "),n("hr"),t._v(" "),n("new-customer-form",{attrs:{"organisation-name":t.organisationName,"title-list":t.titleList,"flag-validation-check":t.flagValidationCheck},on:{update_customer_data:function(e){return t.updateCustomerData(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group col-sm-8"},[n("label",[t._v("Organisation:")]),t._v(" "),n("v-select",{staticClass:"get-stakeholders",attrs:{options:t.organisationFixList,label:"organisation_name"},on:{search:t.fetchOptions},model:{value:t.organisationModel,callback:function(e){t.organisationModel=e},expression:"organisationModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewCustomer}},[t._v("Submit Customer")])])])],1)])};Qt._withStripped=!0;const te=n(3);var ee=J({name:"NewCustomer",props:{organisationName:String,rootUrl:{type:String,default:"/"},titleList:Array},mixins:[ut],data:()=>({customerEmailModel:"",customerFirstNameModel:"",customerLastNameModel:"",flagValidationCheck:!1,organisationFixList:[],organisationModel:{},titleModel:[]}),validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},titleModel:{required:dt.required}},methods:{fetchOptions:function(t,e){this.searchTrigger({return_function:this.getOrganisationData,searchTimeout:this.searchTimeout,search:t,loading:e})},getOrganisationData:function(t,e){const n=new FormData;n.set("search",t),te.post(this.rootUrl+"search/organisation/data/",n).then(t=>{this.organisationFixList=[],t.data.forEach(t=>{var e={value:t.pk,organisation_name:t.fields.organisation_name,organisation_website:t.fields.organisation_website,organisation_email:t.fields.organisation_email,organisation_profile_picture:t.fields.organisation_profile_picture};this.organisationFixList.push(e)});var e=this.organisationFixList.filter(t=>t.organisation_name==this.organisationName);e.length>0&&(this.organisationModel=e[0])}).catch((function(t){document.getElementById("errorModalContent").innerHTML="Search Organisation Issue:
"+t,new f.a(document.getElementById("errorModal"),{keyboard:!1}).show(),document.getElementById("loader").style.display="none"}))},submitNewCustomer:function(){if(this.flagValidationCheck=!0,setTimeout(()=>{this.flagValidationCheck=!1},100),this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();const t=new FormData;t.set("customer_title",this.titleModel.value),t.set("customer_first_name",this.customerFirstNameModel),t.set("customer_last_name",this.customerLastNameModel),t.set("customer_email",this.customerEmailModel),0!=Object.keys(this.organisationModel).length&&t.set("organisation",this.organisationModel.value),te.post(this.rootUrl+"new_customer/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{})},updateCustomerData:function(t){this[t.field]=t.value}},mounted(){this.getOrganisationData("","")}},Qt,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Customer Organisation")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n This field is optional. If this customer does not have any organisations attached, it will\n treat this customer as a freelancer.\n ")])])}],!1,null,"186767c8",null);ee.options.__file="src/js/components/customers/NewCustomer.vue";var ne=ee.exports,re=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Organisation")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_name"}},[t._v("\n Organisation Name:\n "),!t.$v.organisationNameModel.required&&t.$v.organisationNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationNameModel,expression:"organisationNameModel"}],staticClass:"form-control",attrs:{id:"id_organisation_name",name:"organisation_name",type:"text"},domProps:{value:t.organisationNameModel},on:{input:function(e){e.target.composing||(t.organisationNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"id_organisation_website"}},[t._v("\n Organisation Website:\n "),!t.$v.organisationWebsiteModel.required&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationWebsiteModel.url&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format at URL\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationWebsiteModel,expression:"organisationWebsiteModel"}],staticClass:"form-control",attrs:{id:"id_organisation_website",name:"organisation_website",type:"url"},domProps:{value:t.organisationWebsiteModel},on:{input:function(e){e.target.composing||(t.organisationWebsiteModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"id_organisation_email"}},[t._v("\n Organisation Email:\n "),!t.$v.organisationEmailModel.required&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationEmailModel.email&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format as Email\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationEmailModel,expression:"organisationEmailModel"}],staticClass:"form-control",attrs:{id:"id_organisation_email",name:"organisation_email",type:"email"},domProps:{value:t.organisationEmailModel},on:{input:function(e){e.target.composing||(t.organisationEmailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),0==t.duplicateOrganisations.length?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addOrganisation}},[t._v("\n Add Organisation\n ")])])]):t._e(),t._v(" "),t.duplicateOrganisations.length>0?n("h2",[t._v("\n Potential Duplication\n ")]):t._e(),t._v(" "),t.duplicateOrganisations.length>0?n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("list-organisations",{attrs:{"organisation-results":t.duplicateOrganisations,"root-url":t.rootUrl}})],1)]):t._e(),t._v(" "),t.duplicateOrganisations.length>0?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.uploadOrganisationData}},[t._v("\n Submit Organisation\n ")])])]):t._e()])])};re._withStripped=!0;var ie={methods:{closeLoadingModal:function(){var t=new f.a(document.getElementById("loadingModal"));document.getElementById("loadingModalContent").innerHTML="UPDATED SUCCESSFULLY",setTimeout(()=>{t.hide()},1e3)},showLoadingModal:function(t){new f.a(document.getElementById("loadingModal")).show(),document.getElementById("loadingModalContent").innerHTML=`Updating your ${t} details`}}};const oe=n(3);var ae=J({name:"NewOrganisation",props:{rootUrl:{type:String,default:"/"}},mixins:[h,ie],data:()=>({duplicateOrganisations:[],organisationNameModel:"",organisationWebsiteModel:"",organisationEmailModel:""}),watch:{organisationNameModel:function(){this.duplicateOrganisations=[]},organisationWebsiteModel:function(){this.duplicateOrganisations=[]},organisationEmailModel:function(){this.duplicateOrganisations=[]}},methods:{addOrganisation:function(){this.$v.$touch(),this.$v.$invalid?this.showValidationErrorModal():oe.post(this.rootUrl+"organisation_duplicates/",this.dataToSend()).then(t=>{0==t.data.length&&this.uploadOrganisationData(),this.duplicateOrganisations=t.data}).catch(t=>{this.showErrorModal(t,"organisation","")})},dataToSend:function(){const t=new FormData;return t.set("organisation_name",this.organisationNameModel),t.set("organisation_website",this.organisationWebsiteModel),t.set("organisation_email",this.organisationEmailModel),t},uploadOrganisationData:function(){oe.post("save/",this.dataToSend()).then(t=>{window.location.href=t.data}).catch(t=>{})}},validations:{organisationNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)},organisationWebsiteModel:{required:dt.required,url:dt.url},organisationEmailModel:{required:dt.required,email:dt.email}}},re,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out all the required fields. Please only use a generic email for the organisation\n email field. e.g. support@companyxyz.com\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please Read")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n The server has found potential duplications. Please review the following Organisations. If you\n would like to create the organisation, please scroll to the bottom of the page and hit "Submit\n Organisation". If the organisation you are looking for is already created. Click\n on the name and you will be taken to the Organisation\'s Information page.\n ')]),this._v(" "),e("strong",[this._v("Alternatively")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n You can also change the information above and resubmit.\n ")])])}],!1,null,"1cb0b048",null);ae.options.__file="src/js/components/organisations/NewOrganisation.vue";var se=ae.exports,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Requirement")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_requirement_title"}},[t._v("Requirement Title:\n "),!t.$v.requirementTitleModel.required&&t.$v.requirementTitleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementTitleModel,expression:"requirementTitleModel"}],staticClass:"form-control",attrs:{id:"id_requirement_title",name:"requirement_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementTitleModel},on:{input:function(e){e.target.composing||(t.requirementTitleModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Requirement Scope:\n "),!t.$v.requirementScopeModel.required&&t.$v.requirementScopeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]):t._e(),t._v(" "),t.$v.requirementScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.requirementScopeModel,callback:function(e){t.requirementScopeModel=e},expression:"requirementScopeModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("get-stakeholders",{attrs:{"is-dirty":t.$v.stakeholderModel.$dirty},on:{update_stakeholder_model:function(e){return t.updateStakeholderModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusModel.required&&t.$v.statusModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusFixList,label:"status"},model:{value:t.statusModel,callback:function(e){t.statusModel=e},expression:"statusModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeModel.required&&t.$v.typeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeFixList,label:"type"},model:{value:t.typeModel,callback:function(e){t.typeModel=e},expression:"typeModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"requirement","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewRequirement}},[t._v("Create new Requirement")])])])],1)])};le._withStripped=!0;const ce=n(3);var de=J({name:"NewRequirement",components:{axios:ce},props:{groupResults:Array,staticUrl:{type:String,default:"/"},statusList:Array,typeList:Array,userGroupResults:{type:Array,default:()=>[]}},data:()=>({groupModel:"",requirementScopeModel:"",requirementTitleModel:"",stakeholderModel:"",statusFixList:[],statusModel:"",typeFixList:[],typeModel:""}),validations:{groupModel:{required:dt.required},requirementScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementTitleModel:{required:dt.required},stakeholderModel:{required:dt.required},statusModel:{required:dt.required},typeModel:{required:dt.required}},methods:{submitNewRequirement:function(){if(this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();const t=new FormData;t.set("requirement_title",this.requirementTitleModel),t.set("requirement_scope",this.requirementScopeModel),t.set("organisation",this.stakeholderModel.value),t.set("requirement_status",this.statusModel.value),t.set("requirement_type",this.typeModel.value),this.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),ce.post("save/",t).then(t=>{window.location.href=t.data}).catch(t=>{document.getElementById("errorModalContent").innerHTML="HTML ISSUE: We could not save the new requirement
"+t,new f.a(document.getElementById("errorModal")).show(),loader_elem.style.transform="translateY(-100vh)"})},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}},mounted(){this.statusList.forEach(t=>{var e={value:t.pk,status:t.fields.requirement_status};this.statusFixList.push(e)}),this.typeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_type};this.typeFixList.push(e)})}},le,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place a basic bird's eye view of the requirement description here. You will be able to break\n the requirement down into smaller components called 'Items' on the next page.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"2f36f1f4",null);de.options.__file="src/js/components/requirements/NewRequirement.vue";var ue=de.exports,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newNoteModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.noteAdd}}),t._v(" New Note")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("p",{staticClass:"text-instructions"},[t._v("\n Use the text editor to type out your note. Click on the submit button to submit the note.\n ")]),t._v(" "),n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.newNoteModel,callback:function(e){t.newNoteModel=e},expression:"newNoteModel"}})],1),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:""==t.newNoteModel},on:{click:t.submitNote}},[t._v("\n Submit Note\n ")]),t._v(" "),n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")])])])])])};pe._withStripped=!0;const me=n(3);var fe=J({name:"NewHistoryNoteWizard",props:["locationId","destination"],mixins:[h,Z],data:()=>({newNoteModel:""}),methods:{submitNote:function(){const t=new FormData;t.set("destination",this.destination),t.set("location_id",this.locationId),t.set("note",this.newNoteModel),me.post(`/object_data/${this.destination}/${this.locationId}/add_notes/`,t).then(t=>{this.$emit("update_note_history_results",t.data),document.getElementById("newNoteCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}}},pe,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"newNoteCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"5b9840e8",null);fe.options.__file="src/js/components/modules/wizards/NewHistoryNoteWizard.vue";var he=fe.exports,ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newItemModal",tabindex:"-1","aria-labelledby":"requirementItemModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.clipboardIcon}}),t._v(" New Requirement Item Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",{attrs:{for:"id_requirement_item_title"}},[t._v("Requirement Item Title:\n "),t.$v.requirementItemTitleModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please suppy a title.")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementItemTitleModel,expression:"requirementItemTitleModel"}],staticClass:"form-control",attrs:{id:"id_requirement_item_title",name:"requirement_item_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementItemTitleModel},on:{input:function(e){e.target.composing||(t.requirementItemTitleModel=e.target.value)}}}),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Requirement Item Scope:\n "),!t.$v.requirementItemScopeModel.required&&t.$v.requirementItemScopeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]):t._e(),t._v(" "),t.$v.requirementItemScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.requirementItemScopeModel,callback:function(e){t.requirementItemScopeModel=e},expression:"requirementItemScopeModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusItemModel.required&&t.$v.statusItemModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusItemFixList,label:"status"},model:{value:t.statusItemModel,callback:function(e){t.statusItemModel=e},expression:"statusItemModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeItemModel.required&&t.$v.typeItemModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeItemFixList,label:"type"},model:{value:t.typeItemModel,callback:function(e){t.typeItemModel=e},expression:"typeItemModel"}})],1)])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.saveItem}},[t._v("Save Requirement Item")])])])])])};ve._withStripped=!0;const ge=n(3);var be=J({name:"NewRequirementItemWizard",props:["itemStatusList","itemTypeList","locationId"],mixins:[h,Z],data:()=>({requirementItemScopeModel:"",requirementItemTitleModel:"",statusItemFixList:[],statusItemModel:"",typeItemFixList:[],typeItemModel:""}),validations:{requirementItemScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementItemTitleModel:{required:dt.required},statusItemModel:{required:dt.required},typeItemModel:{required:dt.required}},methods:{saveItem:function(){if(this.$v.$touch(),this.$v.$invalid)return;const t=new FormData;t.set("requirement_item_title",this.requirementItemTitleModel),t.set("requirement_item_scope",this.requirementItemScopeModel),t.set("requirement_item_status",this.statusItemModel.value),t.set("requirement_item_type",this.typeItemModel.value),ge.post(`/new_requirement_item/save/${this.locationId}/`,t).then(t=>{this.requirementItemScopeModel="",this.requirementItemTitleModel="",this.statusItemModel="",this.typeItemModel="",this.$emit("new_item_added",t.data),document.getElementById("requirementItemCloseButton").click()}).catch(t=>{this.showErrorModal(t,this.destination)})}},watch:{itemStatusList:function(){this.itemStatusList.forEach(t=>{var e={value:t.pk,status:t.fields.requirement_item_status};this.statusItemFixList.push(e)})},itemTypeList:function(){this.itemTypeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_item_type};this.typeItemFixList.push(e)})}}},ve,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"requirementItemCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place in a detailed description of this requirement item. This particular item can be\n then connected to Project or Tasks.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"1a90b55c",null);be.options.__file="src/js/components/modules/wizards/NewRequirementItemWizard.vue";var _e=be.exports,ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newRequirementLinkModal",tabindex:"-1","aria-labelledby":"requirementLinkModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" New Requirement Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching?n("div",{staticClass:"alert alert-success"},[t._v("\n Searching for "+t._s(t.objectModel)+"s\n ")]):n("v-select",{staticClass:"object-selection",attrs:{options:t.objectSelection},model:{value:t.objectModel,callback:function(e){t.objectModel=e},expression:"objectModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching||null==t.objectModel?n("div",{attrs:{id:"link_wizard_results"}},[n("img",{attrs:{src:"/static/NearBeach/images/placeholder/search.svg",alt:"Searching..."}})]):t._e(),t._v(" "),0==t.objectResults.length&&null!=t.objectModel?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - there are no results.\n ")]):t._e(),t._v(" "),!t.isSearching&&t.objectResults.length>0&&null!=t.objectModel?n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",[t._v(t._s(t.objectModel)+" Description")]),t._v(" "),n("td",[t._v("Status")])])]),t._v(" "),"Project"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_project_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_project_"+e.pk}},[t._v("\n "+t._s(e.fields.project_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Project "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.project_status))])])})),0):t._e(),t._v(" "),"Task"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_task_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_task_"+e.pk}},[t._v("\n "+t._s(e.fields.task_short_description)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Task "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.task_status))])])})),0):t._e(),t._v(" "),"Opportunity"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_opportunity_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_opportunity_"+e.pk}},[t._v("\n "+t._s(e.fields.opportunity_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Opportunity "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.opportunity_success_probability)+"%")])])})),0):t._e()]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.linkModel.length},on:{click:t.saveLinks}},[t._v("Save changes")])])])])])};ye._withStripped=!0;const we=n(3);var xe=J({name:"NewRequirementLinkWizard",props:["destination","locationId"],mixins:[h,Z],data:()=>({isSearching:!1,objectModel:null,objectResults:[],objectSelection:["Project","Task"],linkModel:[]}),methods:{saveLinks:function(){const t=new FormData;this.linkModel.forEach(e=>{t.append(""+this.objectModel.toLowerCase(),e)}),we.post(`/${this.destination}_information/${this.locationId}/add_link/`,t).then(t=>{this.$emit("update_module",{}),document.getElementById("requirementLinkCloseButton").click()})}},watch:{objectModel:function(){this.linkModel=[],null!==this.objectModel?(this.isSearching=!0,we.post(`/object_data/${this.destination}/${this.locationId}/${this.objectModel.toLowerCase()}/link_list/`).then(t=>{this.objectResults=t.data,this.isSearching=!1}).catch(t=>{this.showErrorModal(t,this.destination)})):this.isSearching=!1},linkModel:function(){}}},ye,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"requirementLinkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Object Selector")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which object you would like to link to this requirement.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Select Links")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which of the objects you want to connect to this requirement.\n ")])])}],!1,null,"c80394fa",null);xe.options.__file="src/js/components/modules/wizards/NewRequirementLinkWizard.vue";var ke=xe.exports,Ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Requirement Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_requirement_title"}},[t._v("Requirement Title:\n "),t.$v.requirementTitleModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please suppy a title.")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementTitleModel,expression:"requirementTitleModel"}],staticClass:"form-control",attrs:{id:"id_requirement_title",name:"requirement_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementTitleModel},on:{input:function(e){e.target.composing||(t.requirementTitleModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Requirement Scope:\n "),t.$v.requirementScopeModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]),t._v(" "),t.$v.requirementScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,disabled:t.isReadOnly,skin:!1},model:{value:t.requirementScopeModel,callback:function(e){t.requirementScopeModel=e},expression:"requirementScopeModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[t.statusModel.status_closed?n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"alert alert-info"},[t._v("\n Please note - this requirement is closed.\n ")])]):n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusModel.required&&t.$v.statusModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusFixList,clearable:!1,label:"status"},model:{value:t.statusModel,callback:function(e){t.statusModel=e},expression:"statusModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-6"},[t.statusModel.status_closed?n("div",{staticClass:"alert alert-danger"},[t._v("\n Please note - saving the requirement with this status will \n close the requirement.\n ")]):t._e()])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeModel.required&&t.$v.typeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeFixList,disabled:t.isReadOnly,clearable:!1,label:"type"},model:{value:t.typeModel,callback:function(e){t.typeModel=e},expression:"typeModel"}})],1)])])])]),t._v(" "),n("hr"),t._v(" "),t.userLevel>1?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRequirement}},[t._v("Update Requirement")])])]):t._e()],1)])};Ce._withStripped=!0;const Me=n(3);var Se=J({name:"RequirementInformation",components:{},props:["defaultStakeholderImage","organisationResults","requirementResults","statusList","typeList","userLevel"],mixins:[h,ie],data:()=>({isReadOnly:!1,requirementScopeModel:"",requirementTitleModel:"",stakeholderModel:"",statusFixList:[],statusModel:"",typeFixList:[],typeModel:""}),validations:{requirementScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementTitleModel:{required:dt.required},statusModel:{required:dt.required},typeModel:{required:dt.required}},methods:{updateRequirement:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();this.showLoadingModal("Requirement");const t=new FormData;t.set("requirement_title",this.requirementTitleModel),t.set("requirement_scope",this.requirementScopeModel),t.set("requirement_status",this.statusModel.value),t.set("requirement_type",this.typeModel.value),Me.post("save/",t).then(t=>{this.closeLoadingModal(),this.statusModel.status_closed&&window.location.reload()}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){var t=this.requirementResults[0].fields;this.requirementScopeModel=t.requirement_scope,this.requirementTitleModel=t.requirement_title,this.statusFixList=this.statusList.map(t=>({value:t.pk,status:t.fields.requirement_status,status_closed:t.fields.requirement_status_is_closed})),this.typeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_type};this.typeFixList.push(e)}),this.statusModel=this.statusFixList.filter(e=>e.value==t.requirement_status)[0],this.typeModel=this.typeFixList.filter(e=>e.value==t.requirement_type)[0],(this.statusModel.status_closed||1===this.userLevel)&&(this.isReadOnly=!0)}},Ce,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place a basic bird's eye view of the requirement description here. You will be able to break\n the requirement down into smaller components called 'Items' below in the 'Requirement Item'\n section.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"577bbb6c",null);Se.options.__file="src/js/components/requirements/RequirementInformation.vue";var Te=Se.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkIcon2}}),t._v(" Requirement Item Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links for the Items to other projects/tasks.\n ")]),t._v(" "),0==t.itemLinkResults.length?n("div",[n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - there are no Item Links. Please navigate to the Item you wish to add a link too.\n ")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.itemLinkResults,(function(e){return n("tr",{key:e.pk},[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.newRequirementItemLink}},[t._v("Create new Link")])])]),t._v(" "),n("new-requirement-link-wizard",{attrs:{"location-id":t.locationId,destination:t.destination},on:{update_module:t.updateModel}})],1)};Ee._withStripped=!0;const je=n(3);var Oe=J({name:"RequirementItemLinksModule",props:{destination:String,locationId:Number},mixins:[Z],data:()=>({itemLinkResults:[]}),methods:{extractObjectDescription:function(t){var e="ERROR",n="ERROR",r="/",i="";return null!==t.opportunity_id?(e=t.opportunity_id__opportunity_name,n="Opportunity "+t.opportunity_id,r="/opportunity_information/"+t.opportunity_id):null!==t.project_id?(e=t.project_id__project_name,n="Project "+t.project_id,r="/project_information/"+t.project_id):null!==t.quote_id?(e=t.quote_id__quote_title,n="Quote "+t.quote_id,r="/quote_information/"+t.quote_id):null!==t.task_id&&(e=t.task_id__task_short_description,n="Task "+t.task_id,r="/task_information/"+t.task_id),null!==t.requirement_id&&(i=``,n=`${n} / Item ${t.requirement_id}`),`\n \n

\n ${e}\n

\n
\n ${i}\n \n
\n `},extractObjectStatus:function(t){var e="ERROR";return null!==t.opportunity_id?e=t.opportunity_id__opportunity_stage_id__opportunity_stage_description:null!==t.project_id?e=t.project_id__project_status:null!==t.quote_id?e=t.quote_id__quote_title:null!==t.task_id&&(e=t.task_id__task_status),e},updateLinkResults:function(){je.post("data/links/").then(t=>{this.itemLinkResults=t.data})},newRequirementItemLink:function(){new f.a(document.getElementById("newRequirementLinkModal")).show()},updateModel:function(){}},mounted(){this.updateLinkResults()}},Ee,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"78110c2c",null);Oe.options.__file="src/js/components/modules/sub_modules/RequirementItemLinksModule.vue";var Ie=Oe.exports,Le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.clipboardIcon}}),t._v(" Requirement Items")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Requirements should be broken down into smaller compoenents called Requirement Items.\n ")]),t._v(" "),0==t.itemResults.length?n("div",{staticClass:"requirement-item-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no Items for this requirement.")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.itemResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/requirement_item_information/"+e.pk+"/"}},[n("p",[t._v("\n "+t._s(e.fields.requirement_item_title)+"\n ")]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Item No. "+t._s(e.pk)+" - "+t._s(t.getType(e.fields.requirement_item_type))+"\n ")])])]),t._v(" "),n("td",[t._v(t._s(t.getStatus(e.fields.requirement_item_status)))])])})),0)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.createNewItem}},[t._v("Create new Requirement Item")])])]),t._v(" "),n("new-requirement-item-wizard",{attrs:{"item-status-list":t.itemStatusList,"item-type-list":t.itemTypeList,"location-id":t.locationId},on:{new_item_added:function(e){return t.new_item_added(e)}}})],1)};Le._withStripped=!0;const De=n(3);var Ne=J({name:"RequirementItemsModule",props:["locationId"],mixins:[Z],components:{axios:De},data:()=>({itemResults:[],itemStatusList:[],itemTypeList:[]}),methods:{createNewItem:function(){new f.a(document.getElementById("newItemModal")).show()},getStatus:function(t){var e=this.itemStatusList.filter(e=>e.pk==t);return 0==e.length?"Unknown Status":e[0].fields.requirement_item_status},getType:function(t){var e=this.itemTypeList.filter(e=>e.pk==t);return 0==e.length?"Unknown Type":e[0].fields.requirement_item_type},new_item_added:function(t){this.itemResults=t},updateItemResults:function(){De.post("data/items/").then(t=>{this.itemResults=[],t.data.forEach(t=>{this.itemResults.push(t)})})},updateStatusList:function(){De.post("data/item_status/").then(t=>{this.itemStatusList=[],t.data.forEach(t=>{this.itemStatusList.push(t)})})},updateTypeList:function(){De.post("data/item_type/").then(t=>{this.itemTypeList=[],t.data.forEach(t=>{this.itemTypeList.push(t)})})}},mounted(){this.updateStatusList(),this.updateTypeList(),this.updateItemResults()}},Le,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Requirement Item")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"5c14de78",null);Ne.options.__file="src/js/components/modules/sub_modules/RequirementItemsModule.vue";var $e=Ne.exports,Ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkIcon}}),t._v(" Requirement Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links to other projects/tasks. You can link a Requirement to these other objects to\n symbolise a connection between the two.\n ")]),t._v(" "),0===t.linkResults.length?n("div",{staticClass:"requirement-item-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no Links for this requirement.")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.linkResults,(function(e){return n("tr",[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.newRequirementLink}},[t._v("Create new Link")])])]),t._v(" "),n("hr"),t._v(" "),n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkIcon2}}),t._v(" Requirement Item Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links for the Items to other projects/tasks.\n ")]),t._v(" "),0==t.itemLinkResults.length?n("div",[n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - there are no Item Links. Please navigate to the Item you wish to add a link too.\n ")])]):n("div",[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.itemLinkResults,(function(e){return n("tr",[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("new-requirement-link-wizard",{attrs:{"location-id":t.locationId,destination:"requirement"},on:{update_module:t.updateModel}})],1)};Ae._withStripped=!0;const Re=n(3);var Pe=J({name:"RequirementLinksModule",props:["activateLazyLoading","destination","locationId"],mixins:[Z],data:()=>({linkResults:[],itemLinkResults:[],linkModel:[]}),methods:{extractObjectDescription:function(t){var e="ERROR",n="ERROR",r="/",i="";return null!==t.opportunity_id?(e=t.opportunity_id__opportunity_name,n="Opportunity "+t.opportunity_id,r="/opportunity_information/"+t.opportunity_id):null!==t.project_id?(e=t.project_id__project_name,n="Project "+t.project_id,r="/project_information/"+t.project_id):null!==t.quote_id?(e=t.quote_id__quote_title,n="Quote "+t.quote_id,r="/quote_information/"+t.quote_id):null!==t.task_id&&(e=t.task_id__task_short_description,n="Task "+t.task_id,r="/task_information/"+t.task_id),null!==t.requirement_id&&(i=``,n=`${n} / Item ${t.requirement_id}`),`\n \n

\n ${e}\n

\n
\n ${i}\n \n
\n `},extractObjectStatus:function(t){var e="ERROR";return null!==t.opportunity_id?e=t.opportunity_id__opportunity_stage_id__opportunity_stage_description:null!==t.project_id?e=t.project_id__project_status:null!==t.quote_id?e=t.quote_id__quote_title:null!==t.task_id&&(e=t.task_id__task_status),e},newRequirementLink:function(){new f.a(document.getElementById("newRequirementLinkModal")).show()},updateItemLinkResults:function(){Re.post("data/item_links/").then(t=>{this.itemLinkResults=t.data})},updateLinkResults:function(){Re.post("data/links/").then(t=>{this.linkResults=t.data})},updateModel:function(){this.updateLinkResults(),this.updateItemLinkResults()}},mounted(){this.updateModel()}},Ae,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"7e38157d",null);Pe.options.__file="src/js/components/modules/sub_modules/RequirementLinksModule.vue";var qe=Pe.exports,ze=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"uploadDocumentModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Upload Document Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Uploading File")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n You will be able to upload a file against this "+t._s(t.destination)+". It will appear in the\n current folder.\n ")]),t._v(" "),0==t.documentModel.length?n("p",[t._v('\n 1. Please click on "Upload File" button to upload a file\n ')]):""==t.uploadPercentage?n("p",[t._v('\n 2. Please modify the document descript to be more human readable. Or click the "Reset"\n button to remove the uploaded file.\n ')]):n("p",[t._v("\n 3. Document is currently uploading. Please be patient.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[0==t.documentModel.length?n("div",{staticClass:"form-file"},[n("div",{staticClass:"mb-3"},[n("label",{staticClass:"form-label",attrs:{for:"document"}},[t._v("\n Please upload a file"),n("br"),t._v("\n "+t._s(t.maxUploadString)+"\n "),t.maxUploadWarning?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - file too large\n ")]):t._e()]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"file",id:"document",accept:t.acceptedDocuments},on:{change:function(e){return t.handleFileUploads(e.target.files)}}})])]):""==t.uploadPercentage?n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"documentDescription"}},[t._v("Document Description")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.documentDescriptionModel,expression:"documentDescriptionModel"}],staticClass:"form-control",attrs:{id:"documentDescription",type:"text"},domProps:{value:t.documentDescriptionModel},on:{input:function(e){e.target.composing||(t.documentDescriptionModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-row"},[n("button",{staticClass:"btn btn-warning",on:{click:t.resetForm}},[t._v("\n Reset Form\n ")])])]):n("div",[parseFloat(t.uploadPercentage).toFixed(0)<1?n("div",{staticClass:"alert alert-warning"},[t._v("\n Uploading "+t._s((100*parseFloat(t.uploadPercentage)).toFixed(2))+"%\n "),t._m(1)]):n("div",{staticClass:"alert alert-success"},[t._v("\n The document has been uploaded. The server is currently writing the file to disk.\n Please be patient - this modal will close automatically. Thank you\n ")])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableUploadButton},on:{click:t.uploadFile}},[t._v("\n Upload File\n ")])])])])])};ze._withStripped=!0;const Fe=n(3);var Ue=J({name:"UploadDocumentWizard",props:{acceptedDocuments:{type:String,default:"image/*,text/*,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},currentFolder:String,destination:String,excludeDocuments:{type:Array,default:[]},locationId:Number},mixins:[h,Z],data:()=>({disableUploadButton:!0,documentModel:[],documentDescriptionModel:"",uploadPercentage:"",maxUploadSize:0,maxUploadString:"No Upload Limit",maxUploadWarning:!1}),methods:{handleFileUploads:function(t){t[0].size*(0!=this.maxUploadSize)>this.maxUploadSize?this.maxUploadWarning=!0:(this.maxUploadWarning=!1,this.documentModel=t[0],this.documentDescriptionModel=t[0].name)},resetForm:function(){this.documentModel="",this.documentDescriptionModel="",this.uploadPercentage=""},uploadFile:function(){const t=new FormData;t.set("document",this.documentModel,this.documentDescriptionModel),t.set("document_description",this.documentDescriptionModel),""!=this.currentFolder&&null!==this.currentFolder&&t.set("parent_folder",this.currentFolder);const e={onUploadProgress:t=>{this.uploadPercentage=parseFloat(t.loaded)/parseFloat(t.total)}};Fe.post(`/documentation/${this.destination}/${this.locationId}/upload/`,t,e).then(t=>{this.$emit("update_document_list",t.data),document.getElementById("uploadDocumentCloseButton").click(),this.resetForm()}).catch(t=>{this.showErrorModal(t,this.destination)})}},watch:{maxUploadSize:function(){if(0===this.maxUploadSize)return"No Upload Limit";const t=Math.floor(Math.log(this.maxUploadSize)/Math.log(1024));this.maxUploadString=`Max Upload Size: ${parseFloat((this.maxUploadSize/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}`}},updated(){var t=this.excludeDocuments.filter(t=>t.document_key__document_description==this.documentDescriptionModel);this.disableUploadButton=""==this.documentModel||0==this.documentDescriptionModel.length||t.length>0},mounted(){Fe.post("/documentation/get/max_upload/").then(t=>{this.maxUploadSize=t.data.max_upload_size}).catch(t=>{this.showErrorModal(t,this.destination)})}},ze,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"uploadDocumentCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])}],!1,null,"4cebf53c",null);Ue.options.__file="src/js/components/modules/wizards/UploadDocumentWizard.vue";var Be=Ue.exports,Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Requirement Item Information")]),t._v(" "),n("br"),t._v(" "),n("a",{attrs:{href:"/requirement_information/"+t.requirementItemResults[0].fields.requirement+"/"}},[t._v("\n Go Back to requirement\n ")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"requirement_item_title"}},[t._v("\n Requirement Item Title:\n "),t.$v.requirementItemTitleModel.required?t._e():n("span",{staticClass:"error"},[t._v("\n Please suppy a title.\n ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.requirementItemTitleModel,expression:"requirementItemTitleModel"}],staticClass:"form-control",attrs:{id:"requirement_item_title",type:"text",required:"true",maxlength:"255"},domProps:{value:t.requirementItemTitleModel},on:{input:function(e){e.target.composing||(t.requirementItemTitleModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Item Scope:\n "),t.$v.requirementItemScopeModel.required?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a scope.")]),t._v(" "),t.$v.requirementItemScopeModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.requirementItemScopeModel,callback:function(e){t.requirementItemScopeModel=e},expression:"requirementItemScopeModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8 organisation-details"},[n("img",{staticClass:"organisation-image",attrs:{src:t.getStakeholderImage,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[t._v("\n "+t._s(t.stakeholderModel.organisation_name)+"\n ")]),t._v(" "),n("div",{staticClass:"organisation-link"},[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" Website:\n "),n("a",{attrs:{href:t.stakeholderModel.organisation_website,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.stakeholderModel.organisation_website)+"\n ")])],1),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+t.stakeholderModel.organisation_email}},[t._v("\n "+t._s(t.stakeholderModel.organisation_email)+"\n ")])],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Status\n "),!t.$v.statusModel.required&&t.$v.statusModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a status.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.statusFixList,label:"status"},model:{value:t.statusModel,callback:function(e){t.statusModel=e},expression:"statusModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Requirement Type\n "),!t.$v.typeModel.required&&t.$v.typeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.typeFixList,label:"type"},model:{value:t.typeModel,callback:function(e){t.typeModel=e},expression:"typeModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRequirementItem}},[t._v("Update Requirement")])])])])])};Ve._withStripped=!0;const He=n(3);var We=J({name:"RequirementItemInformation.vue",props:["requirementItemResults","organisationResults","defaultStakeholderImage","statusList","typeList"],mixins:[Z],data:()=>({requirementItemScopeModel:"",requirementItemTitleModel:"",stakeholderModel:"",statusFixList:[],statusModel:"",typeFixList:[],typeModel:""}),validations:{requirementItemScopeModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},requirementItemTitleModel:{required:dt.required},statusModel:{required:dt.required},typeModel:{required:dt.required}},computed:{getStakeholderImage:function(){return""==this.stakeholderModel.organisation_profile_picture?this.defaultStakeholderImage:this.stakeholderModel.organisation_profile_picture}},methods:{updateRequirementItem:function(){if(this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();var t=new f.a(document.getElementById("loadingModal"));t.show(),document.getElementById("loadingModalContent").innerHTML="Updating your Requirement Item details";const e=new FormData;e.set("requirement_item_title",this.requirementItemTitleModel),e.set("requirement_item_scope",this.requirementItemScopeModel),e.set("requirement_item_status",this.statusModel.value),e.set("requirement_item_type",this.typeModel.value),He.post("save/",e).then(e=>{document.getElementById("loadingModalContent").innerHTML="UPDATED SUCCESSFULLY",setTimeout(()=>{t.hide()},1e3)}).catch(e=>{t.hide(),document.getElementById("errorModalContent").innerHTML="HTML ISSUE: We could not save the new requirement item
"+e,new f.a(document.getElementById("errorModal")).show()})}},mounted(){var t=this.requirementItemResults[0].fields;this.requirementItemScopeModel=t.requirement_item_scope,this.requirementItemTitleModel=t.requirement_item_title,this.stakeholderModel=this.organisationResults[0].fields,this.statusList.forEach(t=>{var e={value:t.pk,status:t.fields.requirement_item_status};this.statusFixList.push(e)}),this.typeList.forEach(t=>{var e={value:t.pk,type:t.fields.requirement_item_type};this.typeFixList.push(e)}),this.statusModel=this.statusFixList.filter(e=>e.value==t.requirement_item_status)[0],this.typeModel=this.typeFixList.filter(e=>e.value==t.requirement_item_type)[0]}},Ve,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Requirement Items should be detailed. They should only focus on one small section of the\n requirement.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Stakeholder")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Set the Requirement Status and Type here.")])])}],!1,null,"a5797c66",null);We.options.__file="src/js/components/requirement_items/RequirementItemInformation.vue";var Ge=We.exports,Ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.organisationResults,(function(e){return n("div",{key:e.id,staticClass:"row"},[n("div",{staticClass:"organisation-details"},[""==e.fields.organisation_profile_picture?n("img",{staticClass:"organisation-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/product_tour.svg",alt:"Stakeholder Logo"}}):n("img",{staticClass:"organisation-image",attrs:{src:e.fields.organisation_profile_picture,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[n("a",{attrs:{href:t.rootUrl+"organisation_information/"+e.pk+"/"}},[t._v("\n "+t._s(e.fields.organisation_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"organisation-link"},[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" Website:\n "),n("a",{attrs:{href:e.fields.organisation_website,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(e.fields.organisation_website)+"\n ")])],1),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+e.fields.organisation_email}},[t._v("\n "+t._s(e.fields.organisation_email)+"\n ")])],1)])])})),0)};Ye._withStripped=!0;var Ke=J({name:"ListOrganisations",props:{organisationResults:Array,rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"}},mixins:[Z],methods:{}},Ye,[],!1,null,"08a112ee",null);Ke.options.__file="src/js/components/organisations/ListOrganisations.vue";var Ze=Ke.exports,Xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Organisations")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-organisation",attrs:{type:"text"},domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),n("list-organisations",{attrs:{"organisation-results":t.localOrganisationResults,"root-url":t.rootUrl,"static-url":t.staticUrl}}),t._v(" "),0==t.localOrganisationResults.length?n("div",{staticClass:"alert alert-warning"},[t._v("There are no organisations with the search parameters used. Please try again.")]):t._e()],1)])};Xe._withStripped=!0;const Je=n(3);var Qe=J({name:"SearchOrganisations",props:{organisationResults:Array,staticUrl:{type:String,default:"/"},rootUrl:{type:String,default:"/"}},mixins:[ut],data(){return{localOrganisationResults:this.organisationResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),Je.post("/search/organisation/data/",t).then(t=>{this.localOrganisationResults=t.data}).catch(t=>{})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},Xe,[],!1,null,"1f5ddbb6",null);Qe.options.__file="src/js/components/search/SearchOrganisations.vue";var tn=Qe.exports,en=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Tags")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Tags")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the search bar to help you find any tags.\n ")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Click on the icon "),n("IconifyIcon",{attrs:{icon:t.icons.infoCircle}}),t._v("\n to edit the tag.\n ")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v('\n To add in any new tags - please click on the "New Tag" button.\n ')])]),t._v(" "),n("div",{staticClass:"col-md-8 tag-list"},t._l(t.localTagResults,(function(e){return n("div",{key:e.pk,staticClass:"single-tag",style:"background-color: "+e.fields.tag_colour+";",on:{dblclick:function(n){return t.editTag(e.pk)}}},[t._v("\n "+t._s(e.fields.tag_name)+"\n "),n("span",{on:{click:function(n){return t.editTag(e.pk)}}},[n("IconifyIcon",{attrs:{icon:t.icons.infoCircle}})],1)])})),0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addTag}},[t._v("Add Tag")])])])]),t._v(" "),n("edit-tag-modal",{attrs:{"existing-tags":t.localTagResults,"tag-colour":t.singleTagColour,"tag-id":t.singleTagId,"tag-name":t.singleTagName},on:{new_tag:t.newTag,delete_tag:function(e){return t.deleteTag(e)},update_tags:t.updateTags}})],1)])};en._withStripped=!0;var nn=J({name:"SearchTags",props:{tagResults:{type:Array,default:()=>[]}},data(){return{singleTagColour:"",singleTagId:0,singleTagName:"",localTagResults:this.tagResults}},mixins:[Z],methods:{addTag:function(){this.singleTagName="default tag",this.singleTagId=0,this.singleTagColour="#37cbd2",new f.a(document.getElementById("editTagModal")).show()},deleteTag:function(t){this.localTagResults=this.localTagResults.filter(e=>e.pk!==t.tag_id)},editTag:function(t){let e=this.localTagResults.filter(e=>e.pk==t)[0];this.singleTagName=e.fields.tag_name,this.singleTagId=t,this.singleTagColour=e.fields.tag_colour,new f.a(document.getElementById("editTagModal")).show()},newTag:function(t){this.localTagResults.push(t[0])},updateTags:function(t){let e=this.localTagResults.findIndex(e=>e.pk===t.tag_id);this.localTagResults[e].fields.tag_name=t.tag_name,this.localTagResults[e].fields.tag_colour=t.tag_colour}}},en,[],!1,null,null,null);nn.options.__file="src/js/components/search/SearchTags.vue";var rn=nn.exports,on=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Organisation Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),t._m(1),t._v(" "),n("div",{staticClass:"col-md-5"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_name"}},[t._v("\n Organisation Name\n "),!t.$v.organisationNameModel.required&&t.$v.organisationNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationNameModel,expression:"organisationNameModel"}],staticClass:"form-control",attrs:{id:"id_organisation_name",type:"text"},domProps:{value:t.organisationNameModel},on:{input:function(e){e.target.composing||(t.organisationNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_website"}},[t._v("\n Organisation Website\n "),!t.$v.organisationWebsiteModel.required&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationWebsiteModel.url&&t.$v.organisationWebsiteModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format at URL\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationWebsiteModel,expression:"organisationWebsiteModel"}],staticClass:"form-control",attrs:{id:"id_organisation_website",type:"text"},domProps:{value:t.organisationWebsiteModel},on:{input:function(e){e.target.composing||(t.organisationWebsiteModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"id_organisation_email"}},[t._v("\n Organisation Email\n "),!t.$v.organisationEmailModel.required&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.organisationEmailModel.email&&t.$v.organisationEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format as Email\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.organisationEmailModel,expression:"organisationEmailModel"}],staticClass:"form-control",attrs:{id:"id_organisation_email",type:"text"},domProps:{value:t.organisationEmailModel},on:{input:function(e){e.target.composing||(t.organisationEmailModel=e.target.value)}}})])])]),t._v(" "),n("br"),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateOrganisation}},[t._v("Update Organisation")])])])])])};on._withStripped=!0;const an=n(3);var sn=J({name:"OrganisationInformation",props:{organisationResults:Array},mixins:[h,ie],data(){return{organisationNameModel:this.organisationResults[0].fields.organisation_name,organisationEmailModel:this.organisationResults[0].fields.organisation_email,organisationWebsiteModel:this.organisationResults[0].fields.organisation_website}},validations:{organisationNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)},organisationWebsiteModel:{required:dt.required,url:dt.url},organisationEmailModel:{required:dt.required,email:dt.email}},methods:{updateOrganisation:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("organisation_name",this.organisationNameModel),t.set("organisation_email",this.organisationEmailModel),t.set("organisation_website",this.organisationWebsiteModel),this.showLoadingModal("Organisation"),an.post(`/organisation_information/${this.organisationResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"organisation",this.organisationResults[0].pk)})}}},on,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please Note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please only use generic information for both the website and email. Do not use any personal\n details - you can create contacts in the section below.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-3"},[e("img",{staticClass:"organisation-profile-image",attrs:{src:"/static/NearBeach/images/placeholder/product_tour.svg",alt:"No Profile Picture"}}),this._v(" "),e("br"),this._v(" "),e("button",{staticClass:"btn btn-primary"},[this._v("Update Profile...")])])}],!1,null,"3a69a0c0",null);sn.options.__file="src/js/components/organisations/OrganisationInformation.vue";var ln=sn.exports,cn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[t._m(0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"misc_module_content"}},[n("div",{staticClass:"tab-pane fade",attrs:{id:"organisation-contacts",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Contacts")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Below are a list of contacts who are connected to this organisation.\n ")]),t._v(" "),n("customers-list-module",{attrs:{"customer-results":t.customerResults}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addNewContact}},[t._v("\n Add Contact\n ")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"document-uploads",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("documents-module",{attrs:{destination:t.destination,"location-id":t.locationId}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"associated-objects",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("associated-objects",{attrs:{destination:t.destination,"location-id":t.locationId}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"misc-modules",role:"tabpanel","aria-labelledby":"profile-tab"}},[n("misc-module",{attrs:{destination:t.destination,"location-id":t.locationId}})],1)])]),t._v(" "),n("new-customer-modal",{attrs:{"organisation-id":t.locationId,"title-list":t.titleList}})],1)};cn._withStripped=!0;var dn=J({name:"OrganisationModules",props:{customerResults:Array,destination:String,locationId:Number,titleList:Array},mixins:[Z],methods:{addNewContact:function(){new f.a(document.getElementById("addCustomerModal")).show()}}},cn,[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs",attrs:{id:"misc_module_tabs",role:"tablist"}},[e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"organisation-contacts-tab","data-bs-toggle":"tab","data-bs-target":"#organisation-contacts",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("\n Organisation Contacts\n ")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"document-uploads-tab","data-bs-toggle":"tab","data-bs-target":"#document-uploads",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("\n Document Uploads\n ")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"associated-objects-tab","data-bs-toggle":"tab","data-bs-target":"#associated-objects",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("\n Associated Objects\n ")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"misc-modules-tab","data-bs-toggle":"tab","data-bs-target":"#misc-modules",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("Misc\n ")])])])}],!1,null,"ce8eeb0a",null);dn.options.__file="src/js/components/organisations/OrganisationModules.vue";var un=dn.exports,pn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"customer-modules"},t._l(t.customerResults,(function(e){return n("div",{staticClass:"card card-customer"},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"single-customer-card"},[n("img",{attrs:{src:t.getCustomerImage(e),alt:"default profile picture"}}),t._v(" "),n("div",{staticClass:"customer-card-name"},[t._v("\n "+t._s(e.fields.customer_first_name)+" "+t._s(e.fields.customer_last_name)+"\n ")]),t._v(" "),n("div",{staticClass:"customer-card-email"},[n("IconifyIcon",{attrs:{icon:t.icons.email}}),t._v("\n "+t._s(e.fields.customer_email)+"\n ")],1)])])])})),0)};pn._withStripped=!0;var mn=J({name:"CustomersListModule",props:["customerResults"],mixins:[Z],data:()=>({defaultCustomerImage:"/static/NearBeach/images/placeholder/people_tax.svg"}),methods:{getCustomerImage:function(t){return""==t.fields.customer_profile_picture?this.defaultCustomerImage:t.fields.customer_profile_picture}}},pn,[],!1,null,"8c283f98",null);mn.options.__file="src/js/components/modules/sub_modules/CustomersListModule.vue";var fn=mn.exports,hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.objectStorage}}),t._v(" Associated Objects")],1),t._v(" "),t.projectResults.length+t.taskResults.length>0?n("hr"):t._e(),t._v(" "),t.projectResults.length>0?n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.projectResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/project_information/"+e.project_id+"/"}},[n("p",[t._v(t._s(e.project_name))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Project "+t._s(e.project_id)+" -\n End Date:\n "+t._s(t.getFriendlyDate(e.project_end_date))+"\n ")])])]),t._v(" "),n("td",[t._v(t._s(e.project_status))])])})),0)])])]):t._e(),t._v(" "),t.projectResults.length>0?n("hr"):t._e(),t._v(" "),t.requirementResults.length>0?n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(3),t._v(" "),n("tbody",t._l(t.requirementResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/requirement_information/"+e.requirement_id+"/"}},[n("p",[t._v(t._s(e.requirement_title))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Requirement "+t._s(e.requirement_id)+"\n ")])])])])})),0)])])]):t._e(),t._v(" "),t.projectResults.length>0?n("hr"):t._e(),t._v(" "),t.taskResults.length>0?n("div",{staticClass:"row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(5),t._v(" "),n("tbody",t._l(t.taskResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/task_information/"+e.task_id+"/"}},[n("p",[t._v(t._s(e.task_short_description))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Task "+t._s(e.task_id)+" -\n End Date:\n "+t._s(t.getFriendlyDate(e.task_end_date))+"\n ")])])]),t._v(" "),n("td",[t._v(t._s(e.task_status))])])})),0)])])]):t._e(),t._v(" "),t.projectResults.length+t.taskResults.length===0?n("div",{staticClass:"spacer"}):t._e(),t._v(" "),t.projectResults.length+t.taskResults.length===0?n("div",{staticClass:"alert alert-info"},[t._v('\n There are currently no Objects associated with this Organisation. You can create some new objects by\n click on the "New Objects" menu item.\n ')]):t._e()])};hn._withStripped=!0;const vn=n(3);var gn=J({name:"AssociatedObjects",props:["destination","locationId"],mixins:[Z],data:()=>({opportunityResults:[],projectResults:[],requirementResults:[],taskResults:[]}),methods:{getAssociatedObjectResults:function(){vn.post(`/object_data/${this.destination}/${this.locationId}/associated_objects/`).then(t=>{this.opportunityResults=t.data.opportunity,this.projectResults=t.data.project,this.requirementResults=t.data.requirement,this.taskResults=t.data.task}).catch(t=>{})},getFriendlyDate:function(t){return new Date(t).toLocaleString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}},mounted(){this.getAssociatedObjectResults()}},hn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Project")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are current OPEN projects associated with the organisation.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Project Information")]),this._v(" "),e("td",[this._v("Status")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Requirement")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are current OPEN requirements associated with the organisation.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Requirement Information")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Task")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are current OPEN tasks associated with the organisation.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Task Information")]),this._v(" "),e("td",[this._v("Status")])])])}],!1,null,"5019fa43",null);gn.options.__file="src/js/components/modules/sub_modules/AssociatedObjects.vue";var bn=gn.exports,_n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"form-group col-sm-3"},[n("label",[t._v("\n Title:\n "),!t.$v.titleModel.required&&t.$v.titleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.titleFixList,label:"title"},model:{value:t.titleModel,callback:function(e){t.titleModel=e},expression:"titleModel"}})],1),t._v(" "),n("div",{staticClass:"form-group col-sm-4"},[n("label",[t._v("\n First Name:\n "),!t.$v.customerFirstNameModel.required&&t.$v.customerFirstNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerFirstNameModel,expression:"customerFirstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerFirstNameModel},on:{input:function(e){e.target.composing||(t.customerFirstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-sm-5"},[n("label",[t._v("\n Last Name:\n "),!t.$v.customerLastNameModel.required&&t.$v.customerLastNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerLastNameModel,expression:"customerLastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerLastNameModel},on:{input:function(e){e.target.composing||(t.customerLastNameModel=e.target.value)}}})])]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group col-sm-8"},[n("label",[t._v("\n Email:\n "),!t.$v.customerEmailModel.required&&t.$v.customerEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e(),t._v(" "),!t.$v.customerEmailModel.email&&t.$v.customerEmailModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please format as Email\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerEmailModel,expression:"customerEmailModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerEmailModel},on:{input:function(e){e.target.composing||(t.customerEmailModel=e.target.value)}}})]),t._v(" "),n("br")])])};_n._withStripped=!0;n(3);var yn=J({name:"NewCustomerForm",props:["flagValidationCheck","organisationName","titleList"],data:()=>({customerEmailModel:"",customerFirstNameModel:"",customerLastNameModel:"",organisationModel:{},searchTimeout:"",titleFixList:[],titleModel:[]}),validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},organisationModel:{required:dt.required},titleModel:{required:dt.required}},methods:{},watch:{customerEmailModel:function(){this.$emit("update_customer_data",{field:"customerEmailModel",value:this.customerEmailModel})},customerFirstNameModel:function(){this.$emit("update_customer_data",{field:"customerFirstNameModel",value:this.customerFirstNameModel})},customerLastNameModel:function(){this.$emit("update_customer_data",{field:"customerLastNameModel",value:this.customerLastNameModel})},flagValidationCheck:function(){this.flagValidationCheck&&this.$v.$touch()},titleModel:function(){this.$emit("update_customer_data",{field:"titleModel",value:this.titleModel})}},mounted(){this.titleList.forEach(t=>{this.titleFixList.push({value:t.pk,title:t.fields.title})})}},_n,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("New Customer")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the following details.\n ")]),this._v(" "),e("strong",[this._v("Please Note:")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Customers do not go through a duplication process. Please search for the potential customer\n first before adding them into NearBeach.\n ")])])}],!1,null,"ecd082a8",null);yn.options.__file="src/js/components/customers/NewCustomerForm.vue";var wn=yn.exports,xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addCustomerModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-xl"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.userIcon}}),t._v(" Add Customer Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("new-customer-form",{attrs:{"title-list":t.titleList,"flag-validation-check":t.flagValidationCheck},on:{update_customer_data:function(e){return t.updateCustomerData(e)}}})],1),t._v(" "),n("div",{staticClass:"modal-footer"},[n("a",{staticClass:"btn btn-primary",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewCustomer}},[t._v("Add Contact")]),t._v(" "),n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")])])])])])};xn._withStripped=!0;const kn=n(3);var Cn=J({name:"NewCustomerModal",props:["organisationId","titleList"],mixins:[Z],data:()=>({customerEmailModel:"",customerFirstNameModel:"",customerLastNameModel:"",flagValidationCheck:!1,organisationModel:{},titleModel:[]}),validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},titleModel:{required:dt.required}},methods:{submitNewCustomer:function(){if(this.flagValidationCheck=!0,setTimeout(()=>{this.flagValidationCheck=!1},100),this.$v.$touch(),this.$v.$invalid)return document.getElementById("errorModalContent").innerHTML="FORM ISSUE: Sorry, but can you please fill out the form completely.",void new f.a(document.getElementById("errorModal")).show();const t=new FormData;t.set("customer_title",this.titleModel.value),t.set("customer_first_name",this.customerFirstNameModel),t.set("customer_last_name",this.customerLastNameModel),t.set("customer_email",this.customerEmailModel),t.set("organisation",this.organisationId),kn.post("/new_customer/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{})},updateCustomerData:function(t){this[t.field]=t.value}}},xn,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addCustomerCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"7d129116",null);Cn.options.__file="src/js/components/customers/NewCustomerModal.vue";var Mn=Cn.exports,Sn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Customers")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-organisation",attrs:{type:"text"},domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),n("list-customers",{attrs:{"customer-results":t.localCustomerResults,"root-url":t.rootUrl,"static-url":t.staticUrl}}),t._v(" "),0==t.localCustomerResults.length?n("div",{staticClass:"alert alert-warning"},[t._v("There are no customers with the search parameters used. Please try again.")]):t._e()],1)])};Sn._withStripped=!0;const Tn=n(3);var En=J({name:"SearchCustomers",props:{customerResults:Array,staticUrl:{type:String,default:"/"},rootUrl:{type:String,root:"/"}},mixins:[ut],data(){return{localCustomerResults:this.customerResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),Tn.post(this.rootUrl+"search/customer/data/",t).then(t=>{this.localCustomerResults=t.data}).catch(t=>{})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},Sn,[],!1,null,"01876c9c",null);En.options.__file="src/js/components/search/SearchCustomers.vue";var jn=En.exports,On=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.customerResults,(function(e){return n("div",{staticClass:"row"},[n("div",{staticClass:"organisation-details"},[""==e.fields.customer_profile_picture?n("img",{staticClass:"organisation-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/product_tour.svg",alt:"Stakeholder Logo"}}):n("img",{staticClass:"organisation-image",attrs:{src:e.fields.customer_profile_picture,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[n("a",{attrs:{href:t.rootUrl+"customer_information/"+e.pk+"/"}},[t._v("\n "+t._s(e.fields.customer_first_name)+" "+t._s(e.fields.customer_last_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+e.fields.customer_email}},[t._v("\n "+t._s(e.fields.customer_email)+"\n ")])],1)])])})),0)};On._withStripped=!0;var In=J({name:"ListCustomers",props:{customerResults:Array,staticUrl:{type:String,default:"/"},rootUrl:{type:String,default:"/"}},mixins:[Z],methods:{}},On,[],!1,null,"2b1d5681",null);In.options.__file="src/js/components/customers/ListCustomers.vue";var Ln=In.exports,Dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Customer Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[t._m(1),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"form-group col-sm-3"},[n("label",[t._v("\n Title:\n "),!t.$v.customerTitleModel.required&&t.$v.customerTitleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.titleFixList,label:"title"},model:{value:t.customerTitleModel,callback:function(e){t.customerTitleModel=e},expression:"customerTitleModel"}})],1),t._v(" "),n("div",{staticClass:"form-group col-sm-4"},[n("label",[t._v("\n First Name:\n "),!t.$v.customerFirstNameModel.required&&t.$v.customerFirstNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerFirstNameModel,expression:"customerFirstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerFirstNameModel},on:{input:function(e){e.target.composing||(t.customerFirstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-sm-5"},[n("label",[t._v("\n Last Name:\n "),!t.$v.customerLastNameModel.required&&t.$v.customerLastNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply\n ")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customerLastNameModel,expression:"customerLastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.customerLastNameModel},on:{input:function(e){e.target.composing||(t.customerLastNameModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),t.organisationResults.length>0?n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}):t._e(),t._v(" "),n("br"),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateCustomer}},[t._v("Update Customer")])])])],1)])};Dn._withStripped=!0;const Nn=n(3);var $n=J({name:"CustomerInformation",props:{customerResults:Array,defaultStakeholderImage:String,organisationResults:Array,titleList:Array},data(){return{customerEmailModel:this.customerResults[0].fields.customer_email,customerFirstNameModel:this.customerResults[0].fields.customer_first_name,customerLastNameModel:this.customerResults[0].fields.customer_last_name,customerTitleModel:this.customerResults[0].fields.customer_title,titleFixList:[]}},mixins:[h,ie],validations:{customerEmailModel:{required:dt.required,email:dt.email},customerFirstNameModel:{required:dt.required},customerLastNameModel:{required:dt.required},organisationModel:{required:dt.required},customerTitleModel:{required:dt.required}},methods:{updateCustomer:function(){const t=new FormData;t.set("customer_email",this.customerEmailModel),t.set("customer_first_name",this.customerFirstNameModel),t.set("customer_last_name",this.customerLastNameModel),t.set("customer_title",this.customerTitleModel.value),this.showLoadingModal("Customer Information"),Nn.post(`/customer_information/${this.customerResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"customer",this.customerResults[0].pk)})}},mounted(){this.titleList.forEach(t=>{this.titleFixList.push({value:t.pk,title:t.fields.title}),t.pk==this.customerTitleModel&&(this.customerTitleModel={value:t.pk,title:t.fields.title})})}},Dn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please Note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the following details. If the customer is not assigned an organisation,\n NearBeach will treat this customer as a freelancer.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row customer-profile-image"},[e("img",{staticClass:"customer-profile-image",attrs:{src:"/static/NearBeach/images/placeholder/product_tour.svg",alt:"No Profile Picture"}}),this._v(" "),e("br"),this._v(" "),e("button",{staticClass:"btn btn-primary"},[this._v("Update Profile...")])])}],!1,null,"4dac8698",null);$n.options.__file="src/js/components/customers/CustomerInformation.vue";var An=$n.exports,Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-row"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-organisation",attrs:{type:"text"},domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.includeClosedObjectsModel,expression:"includeClosedObjectsModel"}],attrs:{type:"checkbox",id:"inlcudeClosedObjects"},domProps:{checked:Array.isArray(t.includeClosedObjectsModel)?t._i(t.includeClosedObjectsModel,null)>-1:t.includeClosedObjectsModel},on:{change:function(e){var n=t.includeClosedObjectsModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.includeClosedObjectsModel=n.concat([null])):o>-1&&(t.includeClosedObjectsModel=n.slice(0,o).concat(n.slice(o+1)))}else t.includeClosedObjectsModel=i}}}),t._v(" "),n("label",{attrs:{for:"inlcudeClosedObjects"}},[t._v(" Include Closed Objects")])])])])]),t._v(" "),n("br"),t._v(" "),t.localSearchResults.request_for_change.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.request_for_change,"import-variables":t.requestForChangeVariables,destination:"rfc"}}):t._e(),t._v(" "),t.localSearchResults.requirement.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.requirement,"import-variables":t.requirementVariables,destination:"requirement"}}):t._e(),t._v(" "),t.localSearchResults.project.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.project,"import-variables":t.projectVariables,destination:"project"}}):t._e(),t._v(" "),t.localSearchResults.task.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.task,"import-variables":t.taskVariables,destination:"task"}}):t._e(),t._v(" "),t.localSearchResults.kanban.length>0?n("list-search-results",{attrs:{"search-results":t.localSearchResults.kanban,"import-variables":t.kanbanVariables,destination:"kanban"}}):t._e(),t._v(" "),t.localSearchResults.requirement.length+t.localSearchResults.project.length+t.localSearchResults.task.length+t.localSearchResults.request_for_change==0?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - but there are no results for this search term. Please try searching for a different search term.\n ")]):t._e()],1)};Rn._withStripped=!0;const Pn=n(3);var qn=J({name:"SearchObjects",props:{includeClosed:{Boolean:Boolean},rootUrl:{type:String,default:"/"},searchInput:{String:String,required:!1},searchResults:{Array:Array,required:!0}},mixins:[ut],data(){return{includeClosedObjectsModel:this.includeClosed,kanbanVariables:{header:"Kanban",prefix:"Kb",id:"kanban_board_id",title:"kanban_board_name",status:"kanban_board_status"},localSearchResults:this.searchResults,projectVariables:{header:"Projects",prefix:"Pro",id:"project_id",title:"project_name",status:"project_status"},requestForChangeVariables:{header:"Request for Change",prefix:"Rfc",id:"rfc_id",title:"rfc_title",status:"rfc_status"},requirementVariables:{header:"Requirements",prefix:"Req",id:"requirement_id",title:"requirement_title",status:"requirement_status__requirement_status"},searchModel:this.searchInput,searchTimeout:"",taskVariables:{header:"Tasks",prefix:"Task",id:"task_id",title:"task_short_description",status:"task_status"}}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),t.set("include_closed",this.includeClosedObjectsModel),Pn.post(this.rootUrl+"search/data/",t).then(t=>{this.localSearchResults=t.data}).catch(t=>{})}},watch:{includeClosedObjectsModel:function(){""!=this.searchTimeout&&clearTimeout(this.searchTimeout),this.getSearchResults()},searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}},mounted(){null==this.includeClosed&&(this.includeClosedObjectsModel=!1)}},Rn,[],!1,null,"6f24af9e",null);qn.options.__file="src/js/components/search/SearchObjects.vue";var zn=qn.exports,Fn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card search-card"},[n("div",{staticClass:"card-body"},[n("h2",[t._v(t._s(t.importVariables.header)+" Search Results")]),t._v(" "),n("hr"),t._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",{attrs:{width:"75%"}},[t._v(t._s(t.importVariables.header))]),t._v(" "),n("td",{attrs:{width:"25%"}},[t._v("Status")])])]),t._v(" "),n("tbody",t._l(t.searchResults,(function(e){return n("tr",[n("td",[n("a",{attrs:{href:"/"+t.destination+"_information/"+e[t.importVariables.id]+"/"}},[n("p",[t._v(t._s(e[t.importVariables.title]))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n "+t._s(t.importVariables.prefix)+t._s(e[t.importVariables.id])+"\n ")])])]),t._v(" "),n("td",[t._v("\n "+t._s(e[t.importVariables.status])+"\n ")])])})),0)])])])};Fn._withStripped=!0;var Un=J({name:"ListSearchResults",props:{destination:String,importVariables:Object,searchResults:Array}},Fn,[],!1,null,"2d188e95",null);Un.options.__file="src/js/components/search/ListSearchResults.vue";var Bn=Un.exports,Vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Project Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Project Name\n "),!t.$v.projectNameModel.required&&t.$v.projectNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.projectNameModel,expression:"projectNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.projectNameModel},on:{input:function(e){e.target.composing||(t.projectNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Project Description:\n "),!t.$v.projectDescriptionModel.required&&t.$v.projectDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.projectDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.projectDescriptionModel,callback:function(e){t.projectDescriptionModel=e},expression:"projectDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},[n("v-select",{attrs:{options:t.statusOptions},model:{value:t.projectStatusModel,callback:function(e){t.projectStatusModel=e},expression:"projectStatusModel"}})],1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},["Closed"===t.projectStatusModel?n("div",{staticClass:"alert alert-danger"},[t._v("\n Saving the project with this status will close the project.\n ")]):t._e()]),t._v(" "),t.isReadOnly?n("div",{staticClass:"col-md-4"},["Closed"===t.projectStatusModel?n("div",{staticClass:"alert alert-info"},[t._v("\n Project has been closed.\n ")]):t._e()]):t._e()]),t._v(" "),n("hr"),t._v(" "),n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"project","is-dirty-end":t.$v.projectEndDateModel.$dirty||t.$v.projectStartDateModel.$dirty,"end-date-model":t.projectEndDateModel,"start-date-model":t.projectStartDateModel},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),t.userLevel>=2&&!t.isReadOnly?n("hr"):t._e(),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[t.userLevel>=3?n("a",{staticClass:"btn btn-danger",attrs:{href:"javascript:void(0)"},on:{click:t.closeProject}},[t._v("Close Project")]):t._e(),t._v(" "),t.userLevel>=2?n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateProject}},[t._v("Update Project")]):t._e()])])],1)])};Vn._withStripped=!0;var Hn=n(19);const Wn=n(3);var Gn=J({name:"ProjectInformation",props:{defaultStakeholderImage:String,organisationResults:Array,projectResults:Array,userLevel:{type:Number,default:1}},mixins:[h,ie],data(){return{isReadOnly:!1,projectDescriptionModel:this.projectResults[0].fields.project_description,projectEndDateModel:Hn.DateTime.fromISO(this.projectResults[0].fields.project_end_date),projectNameModel:this.projectResults[0].fields.project_name,projectStartDateModel:Hn.DateTime.fromISO(this.projectResults[0].fields.project_start_date),projectStatusModel:this.projectResults[0].fields.project_status,statusOptions:["Backlog","Blocked","In Progress","Test/Review"]}},validations:{projectDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},projectEndDateModel:{required:dt.required},projectNameModel:{required:dt.required},projectStartDateModel:{required:dt.required}},methods:{closeProject:function(){this.projectStatusModel="Closed",this.updateProject()},updateDates:function(t){this.projectEndDateModel=t.end_date,this.projectStartDateModel=t.start_date},updateProject:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("project_description",this.projectDescriptionModel),t.set("project_end_date",this.projectEndDateModel),t.set("project_name",this.projectNameModel),t.set("project_start_date",this.projectStartDateModel),t.set("project_status",this.projectStatusModel),this.showLoadingModal("Project"),Wn.post(`/project_information/${this.projectResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal(),"Closed"===this.projectStatusModel&&window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,this.destination)})}},mounted(){this.userLevel>=3&&this.statusOptions.push("Closed"),this.isReadOnly="Closed"===this.projectResults[0].fields.project_status}},Vn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Edit the project information and then click the "Update Project" button at the bottom of the\n page\n ')])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Project Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please update the project's task to reflect it's current status. Then click on the \"Update\n Project\" button to save the change.\n ")])])}],!1,null,"d5eb53a8",null);Gn.options.__file="src/js/components/projects/ProjectInformation.vue";var Yn=Gn.exports,Kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Project")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Project Name\n "),!t.$v.projectNameModel.required&&t.$v.projectNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.projectNameModel,expression:"projectNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.projectNameModel},on:{input:function(e){e.target.composing||(t.projectNameModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Project Description:\n "),!t.$v.projectDescriptionModel.required&&t.$v.projectDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.projectDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.projectDescriptionModel,callback:function(e){t.projectDescriptionModel=e},expression:"projectDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("get-stakeholders",{attrs:{"is-dirty":t.$v.stakeholderModel.$dirty},on:{update_stakeholder_model:function(e){return t.updateStakeholderModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"project","is-dirty-end":t.$v.projectEndDateModel.$dirty||t.$v.projectStartDateModel.$dirty},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"project","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewProject}},[t._v("Create new Project")])])])],1)])};Kn._withStripped=!0;const Zn=n(3);var Xn=J({name:"NewProject",props:{groupResults:Array,rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"},userGroupResults:{type:Array,default:()=>[]}},mixins:[h],data:()=>({groupModel:{},projectDescriptionModel:"",projectEndDateModel:"",projectNameModel:"",projectStartDateModel:"",stakeholderModel:{}}),validations:{groupModel:{required:dt.required},projectDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},projectEndDateModel:{required:dt.required},projectNameModel:{required:dt.required},projectStartDateModel:{required:dt.required},stakeholderModel:{required:dt.required}},methods:{submitNewProject:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("project_name",this.projectNameModel),t.set("project_description",this.projectDescriptionModel),t.set("organisation",this.stakeholderModel.value),t.set("project_start_date",this.projectStartDateModel),t.set("project_end_date",this.projectEndDateModel),this.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),Zn.post(this.rootUrl+"new_project/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateDates:function(t){this.projectStartDateModel=t.start_date,this.projectEndDateModel=t.end_date},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}},mounted(){}},Kn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n To create a new project, fill out the form and submit at the bottom of the page.\n ")])])}],!1,null,"660cc132",null);Xn.options.__file="src/js/components/projects/NewProject.vue";var Jn=Xn.exports,Qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Task Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Task Short Description:\n "),!t.$v.taskShortDescriptionModel.required&&t.$v.taskShortDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.taskShortDescriptionModel,expression:"taskShortDescriptionModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.taskShortDescriptionModel},on:{input:function(e){e.target.composing||(t.taskShortDescriptionModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Task Long Description:\n "),!t.$v.taskDescriptionModel.required&&t.$v.taskDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.taskDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:"/static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.taskDescriptionModel,callback:function(e){t.taskDescriptionModel=e},expression:"taskDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},[n("v-select",{attrs:{options:t.statusOptions},model:{value:t.taskStatusModel,callback:function(e){t.taskStatusModel=e},expression:"taskStatusModel"}})],1),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"col-md-4"},["Closed"===t.taskStatusModel?n("div",{staticClass:"alert alert-danger"},[t._v("\n Saving the task with this status will close the task.\n ")]):t._e()]),t._v(" "),t.isReadOnly?n("div",{staticClass:"col-md-4"},["Closed"===t.taskStatusModel?n("div",{staticClass:"alert alert-info"},[t._v("\n Project has been closed.\n ")]):t._e()]):t._e()]),t._v(" "),n("hr"),t._v(" "),n("stakeholder-information",{attrs:{"organisation-results":t.organisationResults,"default-stakeholder-image":t.defaultStakeholderImage}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"task","is-dirty-end":t.$v.taskEndDateModel.$dirty||t.$v.taskStartDateModel.$dirty,"start-date-model":t.taskStartDateModel,"end-date-model":t.taskEndDateModel},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),t.userLevel>=2&&!t.isReadOnly?n("hr"):t._e(),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[t.userLevel>=3?n("a",{staticClass:"btn btn-danger",attrs:{href:"javascript:void(0)"},on:{click:t.closeTask}},[t._v("Close Task")]):t._e(),t._v(" "),t.userLevel>=2?n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateTask}},[t._v("Update Task")]):t._e()])])],1)])};Qn._withStripped=!0;const tr=n(3);var er=J({name:"TaskInformation",props:{defaultStakeholderImage:String,groupResults:Array,stakeholderModel:Array,taskResults:Array,organisationResults:Array,userLevel:{type:Number,default:1}},data(){return{isReadOnly:!1,statusOptions:["Backlog","Blocked","In Progress","Test/Review"],taskDescriptionModel:this.taskResults[0].fields.task_long_description,taskEndDateModel:Hn.DateTime.fromISO(this.taskResults[0].fields.task_end_date),taskShortDescriptionModel:this.taskResults[0].fields.task_short_description,taskStartDateModel:Hn.DateTime.fromISO(this.taskResults[0].fields.task_start_date),taskStatusModel:this.taskResults[0].fields.task_status}},mixins:[h,ie],validations:{taskDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},taskEndDateModel:{required:dt.required},taskShortDescriptionModel:{required:dt.required},taskStartDateModel:{required:dt.required}},methods:{closeTask:function(){this.taskStatusModel="Closed",this.updateTask()},updateTask:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();this.showLoadingModal("task");const t=new FormData;t.set("task_long_description",this.taskDescriptionModel),t.set("task_end_date",this.taskEndDateModel),t.set("task_short_description",this.taskShortDescriptionModel),t.set("task_start_date",this.taskStartDateModel),t.set("task_status",this.taskStatusModel),tr.post(`/task_information/${this.taskResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal(),"Closed"===this.taskStatusModel&&window.location.reload("Closed"===this.taskStatusModel)}).catch(t=>{this.showErrorModal(t,this.destination)})},updateDates:function(t){this.taskEndDateModel=t.end_date,this.taskStartDateModel=t.start_date},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}},mounted(){this.userLevel>=3&&this.statusOptions.push("Closed"),this.isReadOnly="Closed"===this.taskResults[0].fields.task_status}},Qn,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n To create a new task, fill out the form and submit at the bottom of the page.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Task Status")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please update the task's status to reflect it's current status. Then click on the \"Update\n Task\" button to save the change.\n ")])])}],!1,null,"2cad45ca",null);er.options.__file="src/js/components/tasks/TaskInformation.vue";var nr=er.exports,rr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Task")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("Task Short Description:\n "),!t.$v.taskShortDescriptionModel.required&&t.$v.taskShortDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.taskShortDescriptionModel,expression:"taskShortDescriptionModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.taskShortDescriptionModel},on:{input:function(e){e.target.composing||(t.taskShortDescriptionModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Task Long Description:\n "),!t.$v.taskDescriptionModel.required&&t.$v.taskDescriptionModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.taskDescriptionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.taskDescriptionModel,callback:function(e){t.taskDescriptionModel=e},expression:"taskDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("get-stakeholders",{attrs:{"is-dirty":t.$v.stakeholderModel.$dirty},on:{update_stakeholder_model:function(e){return t.updateStakeholderModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"task","is-dirty-end":t.$v.taskEndDateModel.$dirty||t.$v.taskStartDateModel.$dirty},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"task","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.submitNewTask}},[t._v("Create new Task")])])])],1)])};rr._withStripped=!0;const ir=n(3);var or=J({name:"NewTask",props:{groupResults:Array,userGroupResults:{type:Array,default:()=>[]}},data:()=>({groupModel:{},stakeholderModel:"",staticUrl:{type:String,default:"/"},taskDescriptionModel:"",taskEndDateModel:"",taskShortDescriptionModel:"",taskStartDateModel:""}),mixins:[h],validations:{groupModel:{required:dt.required},stakeholderModel:{required:dt.required},taskDescriptionModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},taskEndDateModel:{required:dt.required},taskShortDescriptionModel:{required:dt.required},taskStartDateModel:{required:dt.required}},methods:{submitNewTask:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("organisation",this.stakeholderModel.value),t.set("task_long_description",this.taskDescriptionModel),t.set("task_end_date",this.taskEndDateModel),t.set("task_short_description",this.taskShortDescriptionModel),t.set("task_start_date",this.taskStartDateModel),this.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),ir.post("save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateDates:function(t){this.taskEndDateModel=t.end_date,this.taskStartDateModel=t.start_date},updateGroupModel:function(t){this.groupModel=t},updateStakeholderModel:function(t){this.stakeholderModel=t}}},rr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n To create a new task, fill out the form and submit at the bottom of the page.\n ")])])}],!1,null,"37f1f2a8",null);or.options.__file="src/js/components/tasks/NewTask.vue";var ar=or.exports,sr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Between Dates")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Choose the start and end date of the "+t._s(t.destination)+". Please note the end date can not be earlier than\n the start date. They can be equal.\n ")])]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.destination)+" Start Date:\n "),!t.$v.localStartDateModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please select a date.")]):t._e()]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.localStartDateModel,callback:function(e){t.localStartDateModel=e},expression:"localStartDateModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.destination)+" End Date:\n "),!t.$v.localEndDateModel.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please select a date.")]):t._e()]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.localEndDateModel,callback:function(e){t.localEndDateModel=e},expression:"localEndDateModel"}})],1)])])};sr._withStripped=!0;var lr=J({name:"BetweenDates",props:{destination:String,endDateModel:{type:[Object,String],default(){var t=Hn.DateTime.local();return t=t.plus({days:28})}},isDirty:Boolean,startDateModel:{type:[Object,String],default:()=>Hn.DateTime.local()}},validations:{localEndDateModel:{required:dt.required},localStartDateModel:{required:dt.required}},data:()=>({localEndDateModel:"",localStartDateModel:""}),methods:{emitDates:function(){this.$emit("update_dates",{start_date:this.localStartDateModel,end_date:this.localEndDateModel})}},watch:{localEndDateModel:function(){var t=Hn.DateTime.local(this.localEndDateModel),e=Hn.DateTime.local(this.localStartDateModel);t.toMillis()-e.toMillis()<0&&(this.localEndDateModel=this.localStartDateModel()),this.emitDates()},localStartDateModel:function(){var t=Hn.DateTime.local(this.localEndDateModel),e=Hn.DateTime.local(this.localStartDateModel);t.toMillis()-e.toMillis()<0&&(this.localStartDateModel=this.localEndDateModel()),this.emitDates()}},mounted(){this.localEndDateModel=this.endDateModel.toISO(),this.localStartDateModel=this.startDateModel.toISO()}},sr,[],!1,null,"1bf47cf3",null);lr.options.__file="src/js/components/dates/BetweenDates.vue";var cr=lr.exports,dr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8 organisation-details"},[n("img",{staticClass:"organisation-image",attrs:{src:t.getStakeholderImage,alt:"Stakeholder Logo"}}),t._v(" "),n("div",{staticClass:"organisation-name"},[n("a",{attrs:{href:"/organisation_information/"+t.organisationResults[0].pk+"/"}},[t._v("\n "+t._s(t.stakeholderModel.organisation_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"organisation-link"},[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" Website:\n "),n("a",{attrs:{href:t.stakeholderModel.organisation_website,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.stakeholderModel.organisation_website)+"\n ")])],1),t._v(" "),n("div",{staticClass:"organisation-email"},[n("IconifyIcon",{attrs:{icon:t.icons.mailIcon}}),t._v(" Email:\n "),n("a",{attrs:{href:"mailto:"+t.stakeholderModel.organisation_email}},[t._v("\n "+t._s(t.stakeholderModel.organisation_email)+"\n ")])],1)])])};dr._withStripped=!0;var ur=J({name:"StakeholderInformation",props:{defaultStakeholderImage:String,organisationResults:Array},data(){return{stakeholderModel:this.organisationResults[0].fields}},mixins:[Z],computed:{getStakeholderImage:function(){return""===this.stakeholderModel.organisation_profile_picture?this.defaultStakeholderImage:this.stakeholderModel.organisation_profile_picture}},methods:{}},dr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Stakeholder")])])}],!1,null,"664c2a68",null);ur.options.__file="src/js/components/organisations/StakeholderInformation.vue";var pr=ur.exports,mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Kanban")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Kanban Board Name\n "),!t.$v.kanbanBoardNameModel.required&&t.$v.kanbanBoardNameModel.$dirty?n("span",{staticClass:"error"},[t._v("\n Please suppy a title.\n ")]):t._e(),t._v(" "),t.uniqueKanbanBoardName?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a unique name")]),t._v(" "),t.checkingKanbanBoardName?n("span",{staticClass:"error"},[t._v(" Checking kanban name...")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.kanbanBoardNameModel,expression:"kanbanBoardNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.kanbanBoardNameModel},on:{input:function(e){e.target.composing||(t.kanbanBoardNameModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Columns","property-list":t.columnModel,source:"columnModel","is-dirty":t.$v.columnModel.$dirty},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Levels","property-list":t.levelModel,source:"levelModel","is-dirty":t.$v.columnModel.$dirty},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"kanban_board","user-group-results":t.userGroupResults,"is-dirty":t.$v.groupModel.$dirty},on:{update_group_model:function(e){return t.updateGroupModel(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.addNewKanban}},[t._v("\n Add Kanban\n ")])])])],1)])};mr._withStripped=!0;const fr=n(3);var hr=J({name:"NewKanban",props:{groupResults:Array,rootUrl:{type:String,default:"/"},userGroupResults:{type:Array,default:()=>[]}},mixins:[h,ut],data:()=>({checkingKanbanBoardName:!1,columnModel:[{id:0,title:"Backlog"},{id:1,title:"Blocked"},{id:2,title:"In Progress"},{id:4,title:"Review and QA"},{id:5,title:"Completed"}],groupModel:[],kanbanBoardNameModel:"",levelModel:[{id:0,title:"Sprint 1"},{id:1,title:"Sprint 2"}],searchTimeout:"",uniqueKanbanBoardName:!0}),validations:{columnModel:{required:dt.required},groupModel:{required:dt.required},kanbanBoardNameModel:{required:dt.required},levelModel:{required:dt.required}},watch:{kanbanBoardNameModel:function(){this.checkingKanbanBoardName=!0,this.searchTrigger({return_function:this.checkKanbanBoardName,searchTimeout:this.searchTimeout,search:this.kanbanBoardNameModel,loading:null})}},methods:{addNewKanban:function(){if(this.$v.$touch(),this.$v.$invalid||!this.uniqueKanbanBoardName||this.checkingKanbanBoardName)return void this.showValidationErrorModal();const t=new FormData;t.set("kanban_board_name",this.kanbanBoardNameModel),this.columnModel.forEach(e=>{t.append("column_title",e.title)}),this.levelModel.forEach(e=>{t.append("level_title",e.title)}),this.groupModel.forEach(e=>{t.append("group_list",e.value)}),fr.post(this.rootUrl+"new_kanban_save/",t).then(t=>{window.location.href=t.data}).catch(t=>{})},checkKanbanBoardName:function(){const t=new FormData;t.set("kanban_board_name",this.kanbanBoardNameModel),fr.post(this.rootUrl+"kanban_information/check_kanban_board_name/",t).then(t=>{this.uniqueKanbanBoardName=0==t.data.length,this.checkingKanbanBoardName=!1}).catch(t=>{})},updateGroupModel:function(t){this.groupModel=t},updatePropertyList:function(t){this[t.source]=t.data}}},mr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Board names must be unique.\n\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Columns & Levels")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Drag the cards around to sort out the columns how you want them.\n ")])])}],!1,null,"44162f2b",null);hr.options.__file="src/js/components/kanban/NewKanban.vue";var vr=hr.exports,gr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("strong",[t._v(t._s(t.propertyName))]),t._v(" "),!t.$v.localPropertyList.required&&t.isDirty?n("span",{staticClass:"error"},[t._v(" Please create at least one "+t._s(t.propertyName)+".")]):t._e(),t._v(" "),n("br"),t._v(" "),n("draggable",{attrs:{"ghost-class":"ghost"},on:{change:t.sendPropertyListUp},model:{value:t.localPropertyList,callback:function(e){t.localPropertyList=e},expression:"localPropertyList"}},[n("transition-group",{attrs:{type:"transition",name:"flip-list"}},t._l(t.localPropertyList,(function(e){return n("div",{key:e.id,staticClass:"sortable",attrs:{id:e.id,"data-id":e.id,"data-title":e.title},on:{dblclick:function(e){return t.editItem(e)}}},[n("strong",{key:e.id,attrs:{id:e.id,"data-id":e.id,"data-title":e.title}},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),t.localPropertyList.length>1?n("span",{on:{click:function(n){return t.removeItem(e.id)}}},[n("IconifyIcon",{attrs:{icon:t.icons.xCircle}})],1):t._e()])})),0)],1),t._v(" "),n("hr"),t._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:t.openModal}},[t._v("\n Add "+t._s(t.propertyName)+" Item\n ")]),t._v(" "),n("div",{staticClass:"modal fade",attrs:{id:"addItem"+t.propertyName,tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Add/Edit "+t._s(t.propertyName))]),t._v(" "),n("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addItemClose"+t.propertyName}})]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.propertyName)+" Item Description")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.newPropertyItem,expression:"newPropertyItem"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newPropertyItem},on:{input:function(e){e.target.composing||(t.newPropertyItem=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addItem}},[t._v("\n Save changes\n ")])])])])]),t._v(" "),n("div",{staticClass:"modal fade",attrs:{id:"deleteItem"+t.propertyName,tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title"},[t._v("Delete "+t._s(t.propertyName))]),t._v(" "),n("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"deleteItemClose"+t.propertyName}})]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("v-select",{staticClass:"new-card-destination",staticStyle:{"z-index":"9999"},attrs:{label:"title",values:"id",options:t.newCardDestinationList},model:{value:t.destinationItemId,callback:function(e){t.destinationItemId=e},expression:"destinationItemId"}})],1),t._v(" "),n("br"),t._v(" "),t._m(1)]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:null==this.destinationItemId},on:{click:t.deleteItem}},[t._v("\n Delete "+t._s(t.propertyName)+"\n ")])])])])])],1)};gr._withStripped=!0;const br=n(3);var _r=J({name:"KanbanPropertyOrder",props:{isDirty:Boolean,isNewMode:{type:Boolean,default:!0},kanbanBoardId:{type:Number,default:0},propertyList:Array,propertyName:String,source:String},data(){return{deleteItemId:"",destinationItemId:"",localPropertyList:this.propertyList,newCardDestinationList:[],newPropertyItem:"",singleItemId:""}},mixins:[h,Z],validations:{localPropertyList:{required:dt.required}},watch:{propertyList:function(){this.localPropertyList=this.propertyList}},methods:{addItem:function(){""!=this.newPropertyItem&&(this.isNewMode?this.newModeAddItem():this.editModeAddItem(),this.sendPropertyListUp(),document.getElementById("addItemClose"+this.propertyName).click())},deleteItem:function(){const t=new FormData;t.set("delete_item_id",this.deleteItemId),t.set("destination_item_id",this.destinationItemId.id);const e=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/delete/`;br.post(e,t).then(t=>{this.localPropertyList=this.localPropertyList.filter(t=>t.id!=this.deleteItemId),this.$emit("update_property_list",{source:this.source,data:this.localPropertyList}),document.getElementById("deleteItemClose"+this.propertyName).click()}).catch(t=>{this.showErrorModal(t,"kanban item delete",this.kanbanBoardId)})},editItem:function(t){this.newPropertyItem=t.target.dataset.title,this.singleItemId=t.target.dataset.id,this.openModal()},editModeAddItem:async function(){const t=`kanban_${this.propertyName.toLowerCase()}_name`,e=`kanban_${this.propertyName.toLowerCase()}_sort_number`,n=this.singleItemId,r=new FormData;if(r.set(t,this.newPropertyItem),r.set(e,this.getMaxId()+1),""==n)var i=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/new/`;else i=`/kanban_${this.propertyName.toLowerCase()}/${this.singleItemId}/edit/`;await br.post(i,r).then(e=>{const r=e.data[0];""==n?this.localPropertyList.push({id:r.pk,title:r.fields[t]}):this.localPropertyList.forEach(t=>{t.id==this.singleItemId&&(t.title=this.newPropertyItem)}),this.singleItemId="",this.newPropertyItem=""}).catch(t=>{this.showErrorModal(t,"kanban board",this.kanbanBoardId)})},getMaxId:function(){const t=this.localPropertyList.map(t=>t.id);return t.sort((t,e)=>t-e)[t.length-1]},newModeAddItem:function(){""==this.singleItemId?this.localPropertyList.push({id:this.getMaxId()+1,title:this.newPropertyItem}):this.localPropertyList.forEach(t=>{t.id==this.singleItemId&&(t.title=this.newPropertyItem)}),this.singleItemId="",this.newPropertyItem=""},openModal:function(){new f.a(document.getElementById("addItem"+this.propertyName)).show()},removeItem:function(t){this.isNewMode?(this.localPropertyList=this.localPropertyList.filter(e=>e.id!=t),this.sendPropertyListUp()):(this.deleteItemId=t,this.newCardDestinationList=this.localPropertyList.filter(t=>t.id!=this.deleteItemId),this.destinationItemId=this.newCardDestinationList[0],new f.a(document.getElementById("deleteItem"+this.propertyName)).show())},sendPropertyListUp:function(){if(this.$emit("update_property_list",{source:this.source,data:this.localPropertyList}),!this.isNewMode){const t=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/resort/`,e=new FormData;this.localPropertyList.forEach((t,n)=>{e.append("item",t.id)}),br.post(t,e).then(t=>{}).catch(t=>{})}}}},gr,[function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("strong",[this._v("Destination for Cards")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"alert alert-warning"},[e("h4",[this._v("WARNING")]),this._v(" "),e("p",[this._v("This process can not be reversed. Deleting a {propertyName} will remove it.")]),this._v(" "),e("p",[this._v("\n All existing cards will be moved to the stated location you have provided.\n Any cards that have been archived or deleted, will still be associated with\n the removed card.\n ")])])}],!1,null,"e9150b94",null);_r.options.__file="src/js/components/kanban/KanbanPropertyOrder.vue";var yr=_r.exports,wr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h1",{staticClass:"kanban-header"},[t._v(t._s(t.kanbanBoardResults[0].fields.kanban_board_name))]),t._v(" "),t.userLevel>=3?n("a",{staticClass:"kanban-edit-text",attrs:{href:"edit_board/"}},[t._v("\n Edit Kanban\n ")]):t._e(),t._v(" "),n("kanban-board",{attrs:{"column-results":t.columnResults,"kanban-board-results":t.kanbanBoardResults,"kanban-card-results":t.localKanbanCardResults,"level-results":t.levelResults,"new-card-info":t.newCardInfo},on:{double_clicked_card:function(e){return t.doubleClickedCard(e)}}}),t._v(" "),n("new-kanban-card",{attrs:{"kanban-card-results":t.kanbanCardResults,"column-results":t.columnResults,"level-results":t.levelResults,"kanban-board-results":t.kanbanBoardResults},on:{new_card:function(e){return t.newCard(e)}}}),t._v(" "),n("card-information",{attrs:{"card-information":t.cardInformation},on:{update_card:function(e){return t.updateCard(e)}}}),t._v(" "),n("new-kanban-link-wizard",{attrs:{"location-id":t.locationId,"column-results":t.columnResults,"level-results":t.levelResults},on:{new_card:function(e){return t.newCard(e)}}})],1)};wr._withStripped=!0;var xr=J({name:"KanbanInformation",props:{columnResults:Array,kanbanBoardResults:Array,kanbanCardResults:Array,levelResults:Array,locationId:Number,userLevel:Number},data(){return{cardInformation:{},localKanbanCardResults:this.kanbanCardResults,newCardInfo:[]}},methods:{doubleClickedCard:function(t){this.cardInformation=t},newCard:function(t){this.newCardInfo=t},updateCard:function(t){this.localKanbanCardResults.forEach(e=>{e.pk==t.kanban_card_id&&(e.fields.kanban_card_text=t.kanban_card_text,e.fields.kanban_column=t.kanban_column.value,e.fields.kanban_level=t.kanban_level.value)})}},mounted(){this.$store.commit({type:"updateLists",columnResults:this.columnResults,levelResults:this.levelResults})}},wr,[],!1,null,"62af6ca9",null);xr.options.__file="src/js/components/kanban/KanbanInformation.vue";var kr=xr.exports,Cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("draggable",{staticClass:"list-group kanban-cell",attrs:{group:"tasks",list:t.masterList,id:"kanban_cell_"+t.levelId+"_"+t.columnId,"data-level":t.levelId,"data-column":t.columnId},on:{end:function(e){return t.onEnd(e)}}},[t._l(t.masterList,(function(e){return n("div",{key:e.pk,staticClass:"list-group-item",attrs:{id:e.pk,"data-sort-number":e.fields.kanban_card_sort_number,"data-card-id":e.pk},on:{dblclick:function(e){return t.doubleClickCard(e)}}},[n("b",[t._v("#"+t._s(e.pk))]),n("br"),t._v("\n "+t._s(e.fields.kanban_card_text)+"\n "),n("IconifyIcon",{staticClass:"kanban-card-info-icon",attrs:{icon:t.icons.infoCircle},on:{click:function(n){return t.singleClickCard(e.pk)},dblclick:function(n){return t.singleClickCard(e.pk)}}})],1)})),t._v(" "),n("div",{staticClass:"kanban-add-new-cards"},[n("a",{staticClass:"kanban-link btn btn-primary",attrs:{href:"javascript:void(0)"},on:{click:t.addNewKanbanCard}},[t._v("\n New Card\n ")]),t._v(" "),n("a",{staticClass:"kanban-link btn btn-warning",attrs:{href:"javascript:void(0)"},on:{click:t.addNewLink}},[t._v("\n Link Object\n ")]),t._v(" "),n("a",{staticClass:"kanban-link btn btn-danger",attrs:{href:"javascript:void(0)"},on:{click:t.archiveCards}},[t._v("\n Archive Cards\n ")])])],2)};Cr._withStripped=!0;const Mr=n(3);var Sr=J({name:"KanbanCard",props:{columnId:Number,levelId:Number,newCardInfo:Array},data:()=>({}),computed:{...Object(o.b)({allCards:"getCards"}),masterList:function(){let t=this.allCards.filter(t=>t.fields.kanban_column==this.columnId&&t.fields.kanban_level==this.levelId);return t=t.sort((t,e)=>t.fields.kanban_card_sort_number-e.fields.kanban_card_sort_number),t}},mixins:[Z],methods:{addNewKanbanCard:function(){var t;(t=document.getElementById("addKanbanCardModal")).dataset.kanbanLevel=this.levelId,t.dataset.kanbanColumn=this.columnId,(t=new f.a(t)).show()},addNewLink:function(){var t;(t=document.getElementById("newLinkModal")).dataset.kanbanLevel=this.levelId,t.dataset.kanbanColumn=this.columnId,(t=new f.a(t)).show()},archiveCards:function(){const t=new FormData;this.masterList.forEach(e=>{t.append("kanban_card_id",e.pk)}),Mr.post("/kanban_information/archive_kanban_cards/",t).then(t=>{document.location.reload(!0)}).catch(t=>{})},checkCardOrder:function(){if(0===this.masterList.length)return;const t=this.masterList.map(t=>t.fields.kanban_card_sort_number),e=Math.min.apply(null,t),n=Math.max.apply(null,t);0===e&&n===this.masterList.length-1||(document.getElementById("sort_error").style.display="flex",this.masterList.forEach((t,e)=>{const n=new FormData;n.set("new_card_column",this.columnId.toString()),n.set("new_card_level",this.levelId.toString()),n.set("new_card_sort_number",e.toString()),n.set("old_card_column",t.fields.kanban_column),n.set("old_card_level",t.fields.kanban_level),n.set("old_card_sort_number",t.fields.kanban_card_sort_number),n.set("card_id",t.pk),Mr.post(`/kanban_information/${t.pk}/move_card/`,n).then(n=>{this.$store.commit({type:"updateKanbanCard",card_id:t.pk,kanban_column:this.columnId,kanban_level:this.levelId,kanban_card_sort_number:e})})}),document.getElementById("sort_error").style.display="")},doubleClickCard:function(t){const e=this.masterList.filter(e=>e.pk==t.target.dataset.cardId)[0];this.sendDataUpstream(e)},dragDifferentColumn(t){let e=t.get("new_card_column"),n=t.get("new_card_level"),r=parseInt(t.get("new_card_sort_number")),i=t.get("old_card_column"),o=t.get("old_card_level"),a=parseInt(t.get("old_card_sort_number")),s=t.get("card_id"),l=[];return this.allCards.filter(t=>t.fields.kanban_column==e&&t.fields.kanban_level==n&&t.fields.kanban_card_sort_number>=r).forEach(t=>{l.push({card_id:t.pk,kanban_column:e,kanban_level:n,kanban_card_sort_number:t.fields.kanban_card_sort_number+1})}),this.allCards.filter(t=>t.fields.kanban_column==i&&t.fields.kanban_level==o&&t.fields.kanban_card_sort_number>=a).forEach(t=>{t.pk==s?l.push({card_id:t.pk,kanban_column:e,kanban_level:n,kanban_card_sort_number:r}):l.push({card_id:t.pk,kanban_column:i,kanban_level:o,kanban_card_sort_number:t.fields.kanban_card_sort_number-1})}),l},dragSameColumn(t){let e=parseInt(t.get("new_card_sort_number")),n=parseInt(t.get("old_card_sort_number")),r=parseInt(t.get("new_card_column")),i=parseInt(t.get("new_card_level")),o=parseInt(t.get("card_id")),a=1-2*(n=n)*e+(e=n)*n+(et.fields.kanban_column===r&&t.fields.kanban_level===i&&t.fields.kanban_card_sort_number>=l&&t.fields.kanban_card_sort_number<=s),d=[];return c.forEach(t=>{t.pk==o?d.push({card_id:t.pk,kanban_column:r,kanban_level:i,kanban_card_sort_number:e}):d.push({card_id:t.pk,kanban_column:r,kanban_level:i,kanban_card_sort_number:t.fields.kanban_card_sort_number+a})}),d},onEnd:function(t){var e=t.to,n=t.from,r=t.item.dataset.cardId;let i=e.dataset.column,o=e.dataset.level,a=t.newIndex,s=n.dataset.column,l=n.dataset.level,c=t.oldIndex;const d=new FormData;d.set("new_card_column",i),d.set("new_card_level",o),d.set("new_card_sort_number",a),d.set("old_card_column",s),d.set("old_card_level",l),d.set("old_card_sort_number",c),d.set("card_id",r),Mr.post(`/kanban_information/${r}/move_card/`,d).then(t=>{let e=[];e=i==s&&o==l?this.dragSameColumn(d):this.dragDifferentColumn(d),e.forEach(t=>{this.$store.commit({type:"updateKanbanCard",card_id:t.card_id,kanban_column:t.kanban_column,kanban_level:t.kanban_level,kanban_card_sort_number:t.kanban_card_sort_number})})}).catch(t=>{})},sendDataUpstream:function(t){this.$store.commit({type:"updateCard",cardId:t.pk,cardTitle:t.fields.kanban_card_text,cardDescription:t.fields.kanban_card_description,cardColumn:t.fields.kanban_column,cardLevel:t.fields.kanban_level});new f.a(document.getElementById("cardInformationModal")).show()},singleClickCard:function(t){const e=this.masterList.filter(e=>e.pk==t)[0];this.sendDataUpstream(e)}},watch:{newCardInfo:function(){this.columnId==this.newCardInfo[0].fields.kanban_column&&this.levelId==this.newCardInfo[0].fields.kanban_level&&this.masterList.push(this.newCardInfo[0])}},mounted(){this.checkCardOrder()}},Cr,[],!1,null,"6fbeb263",null);Sr.options.__file="src/js/components/kanban/KanbanCard.vue";var Tr=Sr.exports,Er=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kanban-container",on:{scroll:t.scrollProcedure}},[n("div",{staticClass:"kanban-header-row"},t._l(t.columnResults,(function(e){return n("div",{key:e.pk,staticClass:"kanban-column-header"},[t._v("\n "+t._s(e.fields.kanban_column_name)+"\n ")])})),0),t._v(" "),n("div",{staticClass:"kanban-header-row kanban-sticky-row",staticStyle:{display:"none"}},t._l(t.columnResults,(function(e){return n("div",{key:e.pk,staticClass:"kanban-column-header"},[t._v("\n "+t._s(e.fields.kanban_column_name)+"\n ")])})),0),t._v(" "),t._l(t.levelResults,(function(e){return n("div",{key:e.pk},[n("div",{staticClass:"kanban-level-header"},[n("div",{staticClass:"kanban-level-div"},[t._v(t._s(e.fields.kanban_level_name))])]),t._v(" "),n("kanban-row",{attrs:{"level-id":e.pk,"new-card-info":t.newCardInfo},on:{double_clicked_card:function(e){return t.doubleClickedCard(e)}}})],1)}))],2)};Er._withStripped=!0;var jr=J({name:"KanbanBoard",props:{columnResults:Array,kanbanBoardResults:Array,kanbanCardResults:Array,levelResults:Array,newCardInfo:Array},mixins:[Z],data:()=>({}),created(){window.addEventListener("resize",this.resizeProcedure),window.addEventListener("scroll",this.scrollProcedure)},destroyed(){window.removeEventListener("resize",this.resizeProcedure),window.removeEventListener("scroll",this.scrollProcedure)},methods:{doubleClickedCard:function(t){this.$emit("double_clicked_card",t)},resizeProcedure:function(){const t=400*this.columnResults.length;let e=document.getElementsByClassName("kanban-container");if(e=e[0].clientWidth,t{e.style=`max-width: ${t}px;`})}else{let t=document.getElementsByClassName("kanban-level-div");Array.from(t).forEach(t=>{t.style="max-width: null;"})}},scrollProcedure:function(){var t=document.getElementsByClassName("kanban-sticky-row")[0],e=document.getElementsByClassName("kanban-container")[0];t.scrollLeft=e.scrollLeft;var n=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;t.style.display=n<90?"none":""}},mounted(){this.resizeProcedure(),this.$store.commit({type:"initPayload",kanbanCardResults:this.kanbanCardResults,levelResults:this.levelResults,columnResults:this.columnResults})}},Er,[],!1,null,"3995c923",null);jr.options.__file="src/js/components/kanban/KanbanBoard.vue";var Or=jr.exports,Ir=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kanban-row"},t._l(t.columnResults,(function(e){return n("kanban-card",{key:e.pk,attrs:{"level-id":t.levelId,"column-id":e.pk,"new-card-info":t.newCardInfo},on:{double_clicked_card:function(e){return t.doubleClickedCard(e)}}})})),1)};Ir._withStripped=!0;var Lr=J({name:"KanbanRow",props:{levelId:Number,newCardInfo:Array},computed:{...Object(o.b)({columnResults:"getColumns"})},methods:{doubleClickedCard:function(t){this.$emit("double_clicked_card",t)}}},Ir,[],!1,null,"4b574152",null);Lr.options.__file="src/js/components/kanban/KanbanRow.vue";var Dr=Lr.exports,Nr=function(){var t=this.$createElement;this._self._c;return this._m(0)};Nr._withStripped=!0;var $r=function(t,e){return te?1:t>=e?0:NaN},Ar=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return $r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var Rr=Ar($r),Pr=Rr.right,qr=(Rr.left,Pr);var zr=Array.prototype,Fr=(zr.slice,zr.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=Ur?10:o>=Br?5:o>=Vr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ur?10:o>=Br?5:o>=Vr?2:1)}function Gr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ur?i*=10:o>=Br?i*=5:o>=Vr&&(i*=2),e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ai(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;oe?1:t>=e?0:NaN}var _i="http://www.w3.org/1999/xhtml",yi={svg:"http://www.w3.org/2000/svg",xhtml:_i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},wi=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),yi.hasOwnProperty(e)?{space:yi[e],local:t}:t};function xi(t){return function(){this.removeAttribute(t)}}function ki(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ci(t,e){return function(){this.setAttribute(t,e)}}function Mi(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Si(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ti(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ei=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function ji(t){return function(){this.style.removeProperty(t)}}function Oi(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ii(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Li(t,e){return t.style.getPropertyValue(e)||Ei(t).getComputedStyle(t,null).getPropertyValue(e)}function Di(t){return function(){delete this[t]}}function Ni(t,e){return function(){this[t]=e}}function $i(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ai(t){return t.trim().split(/^|\s+/)}function Ri(t){return t.classList||new Pi(t)}function Pi(t){this._node=t,this._names=Ai(t.getAttribute("class")||"")}function qi(t,e){for(var n=Ri(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Vi(){this.textContent=""}function Hi(t){return function(){this.textContent=t}}function Wi(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Gi(){this.innerHTML=""}function Yi(t){return function(){this.innerHTML=t}}function Ki(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Zi(){this.nextSibling&&this.parentNode.appendChild(this)}function Xi(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ji(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_i&&e.documentElement.namespaceURI===_i?e.createElement(t):e.createElementNS(n,t)}}function Qi(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var to=function(t){var e=wi(t);return(e.local?Qi:Ji)(e)};function eo(){return null}function no(){var t=this.parentNode;t&&t.removeChild(this)}function ro(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function io(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var oo={},ao=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(oo={mouseenter:"mouseover",mouseleave:"mouseout"}));function so(t,e,n){return t=lo(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function lo(t,e,n){return function(r){var i=ao;ao=r;try{t.call(this,this.__data__,e,n)}finally{ao=i}}}function co(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function uo(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=w&&(w=y+1);!(_=g[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=bi);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?ji:"function"==typeof e?Ii:Oi)(t,e,null==n?"":n)):Li(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Di:"function"==typeof e?$i:Ni)(t,e)):this.node()[t]},classed:function(t,e){var n=Ai(t+"");if(arguments.length<2){for(var r=Ri(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?qo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?qo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Eo.exec(t))?new Uo(e[1],e[2],e[3],1):(e=jo.exec(t))?new Uo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Oo.exec(t))?qo(e[1],e[2],e[3],e[4]):(e=Io.exec(t))?qo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Lo.exec(t))?Wo(e[1],e[2]/100,e[3]/100,1):(e=Do.exec(t))?Wo(e[1],e[2]/100,e[3]/100,e[4]):No.hasOwnProperty(t)?Po(No[t]):"transparent"===t?new Uo(NaN,NaN,NaN,0):null}function Po(t){return new Uo(t>>16&255,t>>8&255,255&t,1)}function qo(t,e,n,r){return r<=0&&(t=e=n=NaN),new Uo(t,e,n,r)}function zo(t){return t instanceof ko||(t=Ro(t)),t?new Uo((t=t.rgb()).r,t.g,t.b,t.opacity):new Uo}function Fo(t,e,n,r){return 1===arguments.length?zo(t):new Uo(t,e,n,null==r?1:r)}function Uo(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Bo(){return"#"+Ho(this.r)+Ho(this.g)+Ho(this.b)}function Vo(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ho(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Wo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Yo(t,e,n,r)}function Go(t){if(t instanceof Yo)return new Yo(t.h,t.s,t.l,t.opacity);if(t instanceof ko||(t=Ro(t)),!t)return new Yo;if(t instanceof Yo)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&l<1?0:a,new Yo(a,s,l,t.opacity)}function Yo(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ko(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Zo(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}wo(ko,Ro,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$o,formatHex:$o,formatHsl:function(){return Go(this).formatHsl()},formatRgb:Ao,toString:Ao}),wo(Uo,Fo,xo(ko,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Uo(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Uo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bo,formatHex:Bo,formatRgb:Vo,toString:Vo})),wo(Yo,(function(t,e,n,r){return 1===arguments.length?Go(t):new Yo(t,e,n,null==r?1:r)}),xo(ko,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Yo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Yo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Uo(Ko(t>=240?t-240:t+120,i,r),Ko(t,i,r),Ko(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Xo=function(t){return function(){return t}};function Jo(t,e){return function(n){return t+n*e}}function Qo(t){return 1==(t=+t)?ta:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Xo(isNaN(e)?n:e)}}function ta(t,e){var n=e-t;return n?Jo(t,n):Xo(isNaN(t)?e:t)}var ea=function t(e){var n=Qo(e);function r(t,e){var r=n((t=Fo(t)).r,(e=Fo(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function na(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:sa(n,r)})),o=da.lastIndex;return o=0&&e._call.call(null,t),e=e._next;--ha}()}finally{ha=0,function(){var t,e,n=ua,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ua=e);pa=t,ja(r)}(),_a=0}}function Ea(){var t=wa.now(),e=t-ba;e>1e3&&(ya-=e,ba=t)}function ja(t){ha||(va&&(va=clearTimeout(va)),t-_a>24?(t<1/0&&(va=setTimeout(Ta,t-wa.now()-ya)),ga&&(ga=clearInterval(ga))):(ga||(ba=wa.now(),ga=setInterval(Ea,1e3)),ha=1,xa(Ta)))}Ma.prototype=Sa.prototype={constructor:Ma,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ka():+n)+(null==e?0:+e),this._next||pa===this||(pa?pa._next=this:ua=this,pa=this),this._call=t,this._time=n,ja()},stop:function(){this._call&&(this._call=null,this._time=1/0,ja())}};var Oa=function(t,e,n){var r=new Ma;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Ia=li("start","end","cancel","interrupt"),La=[],Da=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var c,d,u,p;if(1!==n.state)return s();for(c in i)if((p=i[c]).name===n.name){if(3===p.state)return Oa(o);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function $a(t,e){var n=Aa(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Aa(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Ra,Pa,qa,za,Fa=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Ua=180/Math.PI,Ba={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Va=function(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:sa(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:sa(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:sa(t,n)},{i:s-2,x:sa(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Na:$a;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var fs=_o.prototype.constructor;function hs(t){return function(){this.style.removeProperty(t)}}function vs(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function gs(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&vs(t,o,n)),r}return o._value=e,o}function bs(t){return function(e){this.textContent=t.call(this,e)}}function _s(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&bs(r)),e}return r._value=t,r}var ys=0;function ws(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function xs(){return++ys}var ks=_o.prototype;ws.prototype=function(t){return _o().transition(t)}.prototype={constructor:ws,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=di(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1e-6)if(Math.abs(d*s-l*c)>1e-6&&i){var p=n-o,m=r-a,f=s*s+l*l,h=p*p+m*m,v=Math.sqrt(f),g=Math.sqrt(u),b=i*Math.tan((js-Math.acos((f+u-h)/(2*v*g)))/2),_=b/g,y=b/v;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*c)+","+(e+_*d)),this._+="A"+i+","+i+",0,0,"+ +(d*p>c*m)+","+(this._x1=t+y*s)+","+(this._y1=e+y*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,c=e+s,d=1^o,u=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(u<0&&(u=u%Os+Os),u>Is?this._+="A"+n+","+n+",0,1,"+d+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+d+","+(this._x1=l)+","+(this._y1=c):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=js)+","+d+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Ns(){}function $s(t,e){var n=new Ns;if(t instanceof Ns)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i=(o=(h+g)/2))?h=o:g=o,(d=n>=(a=(v+b)/2))?v=a:b=a,i=m,!(m=m[u=d<<1|c]))return i[u]=f,t;if(s=+t._x.call(null,m.data),l=+t._y.call(null,m.data),e===s&&n===l)return f.next=m,i?i[u]=f:t._root=f,t;do{i=i?i[u]=new Array(4):t._root=new Array(4),(c=e>=(o=(h+g)/2))?h=o:g=o,(d=n>=(a=(v+b)/2))?v=a:b=a}while((u=d<<1|c)==(p=(l>=a)<<1|s>=o));return i[p]=m,i[u]=f,t}var Fs=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function Us(t){return t[0]}function Bs(t){return t[1]}function Vs(t,e,n){var r=new Hs(null==e?Us:e,null==n?Bs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Hs(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ws(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Gs=Vs.prototype=Hs.prototype;Gs.copy=function(){var t,e,n=new Hs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Ws(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Ws(e));return n},Gs.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return zs(this.cover(e,n),e,n,t)},Gs.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,d=-1/0,u=-1/0;for(n=0;nd&&(d=r),iu&&(u=i));if(l>d||c>u)return this;for(this.cover(l,c).cover(d,u),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ep||(o=l.y0)>m||(a=l.x1)=g)<<1|t>=v)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var b=t-+this._x.call(null,h.data),_=e-+this._y.call(null,h.data),y=b*b+_*_;if(y=(s=(f+v)/2))?f=s:v=s,(d=a>=(l=(h+g)/2))?h=l:g=l,e=m,!(m=m[u=d<<1|c]))return this;if(!m.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,p=u)}for(;m.data!==t;)if(r=m,!(m=m.next))return this;return(i=m.next)&&delete m.next,r?(i?r.next=i:delete r.next,this):e?(i?e[u]=i:delete e[u],(m=e[0]||e[1]||e[2]||e[3])&&m===(e[3]||e[2]||e[1]||e[0])&&!m.length&&(n?n[p]=m:this._root=m),this):(this._root=i,this)},Gs.removeAll=function(t){for(var e=0,n=t.length;e1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Ys)),Zs=(function t(e){function n(){var t=Ks.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Ys),function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function dl(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?ul:dl,i=o=null,u}function u(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return u.invert=function(n){return c(e((o||(o=r(s,a.map(t),sa)))(n)))},u.domain=function(t){return arguments.length?(a=Qs.call(t,ol),c===sl||(c=cl(a)),d()):a.slice()},u.range=function(t){return arguments.length?(s=tl.call(t),d()):s.slice()},u.rangeRound=function(t){return s=tl.call(t),l=il,d()},u.clamp=function(t){return arguments.length?(c=t?cl(a):sl,u):c!==sl},u.interpolate=function(t){return arguments.length?(l=t,d()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,r){return t=n,e=r,d()}}function fl(t,e){return ml()(t,e)}var hl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vl(t){if(!(e=hl.exec(t)))throw new Error("invalid format: "+t);var e;return new gl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function gl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}vl.prototype=gl.prototype,gl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function bl(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var _l,yl,wl,xl,kl=function(t){return(t=bl(Math.abs(t)))?t[1]:NaN},Cl=function(t,e){var n=bl(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Ml={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Cl(100*t,e)},r:Cl,s:function(t,e){var n=bl(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(_l=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+bl(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Sl=function(t){return t},Tl=Array.prototype.map,El=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];yl=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Sl:(e=Tl.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Sl:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Tl.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",d=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=vl(t)).fill,n=t.align,u=t.sign,p=t.symbol,m=t.zero,f=t.width,h=t.comma,v=t.precision,g=t.trim,b=t.type;"n"===b?(h=!0,b="g"):Ml[b]||(void 0===v&&(v=12),g=!0,b="g"),(m||"0"===e&&"="===n)&&(m=!0,e="0",n="=");var _="$"===p?i:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===p?o:/[%p]/.test(b)?l:"",w=Ml[b],x=/[defgprs%]/.test(b);function k(t){var i,o,l,p=_,k=y;if("c"===b)k=w(t)+k,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?d:w(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==u&&(C=!1),p=(C?"("===u?u:c:"-"===u||"("===u?"":u)+p,k=("s"===b?El[8+_l/3]:"")+k+(C&&"("===u?")":""),x)for(i=-1,o=t.length;++i(l=t.charCodeAt(i))||l>57){k=(46===l?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}h&&!m&&(t=r(t,1/0));var M=p.length+t.length+k.length,S=M>1)+p+t+k+S.slice(M);break;default:t=S+p+t+k}return s(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return t+""},k}return{format:u,formatPrefix:function(t,e){var n=u(((t=vl(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(kl(e)/3))),i=Math.pow(10,-r),o=El[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),wl=yl.format,xl=yl.formatPrefix;var jl=function(t,e,n,r){var i,o=Gr(t,e,n);switch((r=vl(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(kl(e)/3)))-kl(Math.abs(t)))}(o,a))||(r.precision=i),xl(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,kl(e)-kl(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-kl(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return wl(r)};function Ol(t){var e=t.domain;return t.ticks=function(t){var n=e();return Hr(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return jl(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],l=i[a];return l0?r=Wr(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Wr(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,e(i)),t},t}var Il=new Date,Ll=new Date;function Dl(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Il.setTime(+e),Ll.setTime(+r),t(Il),t(Ll),Math.floor(n(Il,Ll))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Nl=Dl((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Nl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Dl((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var $l=Nl,Al=(Nl.range,Dl((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));Al.range;function Rl(t){return Dl((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Pl=Rl(0),ql=Rl(1),zl=Rl(2),Fl=Rl(3),Ul=Rl(4),Bl=Rl(5),Vl=Rl(6),Hl=(Pl.range,ql.range,zl.range,Fl.range,Ul.range,Bl.range,Vl.range,Dl((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),Wl=Hl,Gl=(Hl.range,Dl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),Yl=(Gl.range,Dl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),Kl=(Yl.range,Dl((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),Zl=(Kl.range,Dl((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Zl.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Dl((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Zl:null};Zl.range;function Xl(t){return Dl((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var Jl=Xl(0),Ql=Xl(1),tc=Xl(2),ec=Xl(3),nc=Xl(4),rc=Xl(5),ic=Xl(6),oc=(Jl.range,Ql.range,tc.range,ec.range,nc.range,rc.range,ic.range,Dl((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),ac=oc,sc=(oc.range,Dl((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));sc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Dl((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var lc=sc;sc.range;function cc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function uc(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var pc,mc={"-":"",_:" ",0:"0"},fc=/^\s*\d+/,hc=/^%/,vc=/[\\^$*+?|[\]().{}]/g;function gc(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function Ec(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jc(t,e,n){var r=fc.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Oc(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ic(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Lc(t,e,n){var r=fc.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Dc(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nc(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function $c(t,e,n){var r=fc.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ac(t,e,n){var r=fc.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rc(t,e,n){var r=fc.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pc(t,e,n){var r=hc.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function qc(t,e,n){var r=fc.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zc(t,e,n){var r=fc.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Fc(t,e){return gc(t.getDate(),e,2)}function Uc(t,e){return gc(t.getHours(),e,2)}function Bc(t,e){return gc(t.getHours()%12||12,e,2)}function Vc(t,e){return gc(1+Wl.count($l(t),t),e,3)}function Hc(t,e){return gc(t.getMilliseconds(),e,3)}function Wc(t,e){return Hc(t,e)+"000"}function Gc(t,e){return gc(t.getMonth()+1,e,2)}function Yc(t,e){return gc(t.getMinutes(),e,2)}function Kc(t,e){return gc(t.getSeconds(),e,2)}function Zc(t){var e=t.getDay();return 0===e?7:e}function Xc(t,e){return gc(Pl.count($l(t)-1,t),e,2)}function Jc(t){var e=t.getDay();return e>=4||0===e?Ul(t):Ul.ceil(t)}function Qc(t,e){return t=Jc(t),gc(Ul.count($l(t),t)+(4===$l(t).getDay()),e,2)}function td(t){return t.getDay()}function ed(t,e){return gc(ql.count($l(t)-1,t),e,2)}function nd(t,e){return gc(t.getFullYear()%100,e,2)}function rd(t,e){return gc((t=Jc(t)).getFullYear()%100,e,2)}function id(t,e){return gc(t.getFullYear()%1e4,e,4)}function od(t,e){var n=t.getDay();return gc((t=n>=4||0===n?Ul(t):Ul.ceil(t)).getFullYear()%1e4,e,4)}function ad(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+gc(e/60|0,"0",2)+gc(e%60,"0",2)}function sd(t,e){return gc(t.getUTCDate(),e,2)}function ld(t,e){return gc(t.getUTCHours(),e,2)}function cd(t,e){return gc(t.getUTCHours()%12||12,e,2)}function dd(t,e){return gc(1+ac.count(lc(t),t),e,3)}function ud(t,e){return gc(t.getUTCMilliseconds(),e,3)}function pd(t,e){return ud(t,e)+"000"}function md(t,e){return gc(t.getUTCMonth()+1,e,2)}function fd(t,e){return gc(t.getUTCMinutes(),e,2)}function hd(t,e){return gc(t.getUTCSeconds(),e,2)}function vd(t){var e=t.getUTCDay();return 0===e?7:e}function gd(t,e){return gc(Jl.count(lc(t)-1,t),e,2)}function bd(t){var e=t.getUTCDay();return e>=4||0===e?nc(t):nc.ceil(t)}function _d(t,e){return t=bd(t),gc(nc.count(lc(t),t)+(4===lc(t).getUTCDay()),e,2)}function yd(t){return t.getUTCDay()}function wd(t,e){return gc(Ql.count(lc(t)-1,t),e,2)}function xd(t,e){return gc(t.getUTCFullYear()%100,e,2)}function kd(t,e){return gc((t=bd(t)).getUTCFullYear()%100,e,2)}function Cd(t,e){return gc(t.getUTCFullYear()%1e4,e,4)}function Md(t,e){var n=t.getUTCDay();return gc((t=n>=4||0===n?nc(t):nc.ceil(t)).getUTCFullYear()%1e4,e,4)}function Sd(){return"+0000"}function Td(){return"%"}function Ed(t){return+t}function jd(t){return Math.floor(+t/1e3)}!function(t){pc=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=_c(i),d=yc(i),u=_c(o),p=yc(o),m=_c(a),f=yc(a),h=_c(s),v=yc(s),g=_c(l),b=yc(l),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Fc,e:Fc,f:Wc,g:rd,G:od,H:Uc,I:Bc,j:Vc,L:Hc,m:Gc,M:Yc,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ed,s:jd,S:Kc,u:Zc,U:Xc,V:Qc,w:td,W:ed,x:null,X:null,y:nd,Y:id,Z:ad,"%":Td},y={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:sd,e:sd,f:pd,g:kd,G:Md,H:ld,I:cd,j:dd,L:ud,m:md,M:fd,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ed,s:jd,S:hd,u:vd,U:gd,V:_d,w:yd,W:wd,x:null,X:null,y:xd,Y:Cd,Z:Sd,"%":Td},w={a:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Ic,e:Ic,f:Rc,g:Tc,G:Sc,H:Dc,I:Dc,j:Lc,L:Ac,m:Oc,M:Nc,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=d[r[0].toLowerCase()],n+r[0].length):-1},q:jc,Q:qc,s:zc,S:$c,u:xc,U:kc,V:Cc,w:wc,W:Mc,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:Tc,Y:Sc,Z:Ec,"%":Pc};function x(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=dc(uc(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ql.ceil(r):Ql(r),r=ac.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=cc(uc(o.y,0,1))).getDay(),r=i>4||0===i?ql.ceil(r):ql(r),r=Wl.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?dc(uc(o.y,0,1)).getUTCDay():cc(uc(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,dc(o)):cc(o)}}function C(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in mc?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),y.x=x(n,y),y.X=x(r,y),y.c=x(e,y),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",y);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),pc.format,pc.parse,pc.utcFormat,pc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Od=Dl((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Id=(Od.range,Dl((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Ld=(Id.range,Dl((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})));Ld.range;var Dd=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r0)){if(o/=p,p<0){if(o0){if(o>u)return;o>d&&(d=o)}if(o=r-l,p||!(o<0)){if(o/=p,p<0){if(o>u)return;o>d&&(d=o)}else if(p>0){if(o0)){if(o/=m,m<0){if(o0){if(o>u)return;o>d&&(d=o)}if(o=i-c,m||!(o<0)){if(o/=m,m<0){if(o>u)return;o>d&&(d=o)}else if(m>0){if(o0||u<1)||(d>0&&(t[0]=[l+d*p,c+d*m]),u<1&&(t[1]=[l+u*p,c+u*m]),!0)}}}}}function Vd(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,d=t.right,u=c[0],p=c[1],m=d[0],f=d[1],h=(u+m)/2,v=(p+f)/2;if(f===p){if(h=r)return;if(u>m){if(l){if(l[1]>=i)return}else l=[h,n];o=[h,i]}else{if(l){if(l[1]1)if(u>m){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]=r)return}else l=[e,a*e+s];o=[r,a*r+s]}else{if(l){if(l[0]=-pu)){var m=l*l+c*c,f=d*d+u*u,h=(u*m-c*f)/p,v=(l*f-d*m)/p,g=Kd.pop()||new Zd;g.arc=t,g.site=i,g.x=h+a,g.y=(g.cy=v+s)+Math.sqrt(h*h+v*v),t.circle=g;for(var b=null,_=cu._;_;)if(g.y<_.y||g.y===_.y&&g.x<=_.x){if(!_.L){b=_.P;break}_=_.L}else{if(!_.R){b=_;break}_=_.R}cu.insert(b,g),b||(Yd=g)}}}}function Jd(t){var e=t.circle;e&&(e.P||(Yd=e.N),cu.remove(e),Kd.push(e),$d(e),t.circle=null)}var Qd=[];function tu(){$d(this),this.edge=this.site=this.circle=null}function eu(t){var e=Qd.pop()||new tu;return e.site=t,e}function nu(t){Jd(t),su.remove(t),Qd.push(t),$d(t)}function ru(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,s=[t];nu(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)uu)s=s.L;else{if(!((i=o-au(s,a))>uu)){r>-uu?(e=s.P,n=s):i>-uu?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){lu[t.index]={site:t,halfedges:[]}}(t);var l=eu(t);if(su.insert(e,l),e||n){if(e===n)return Jd(e),n=eu(e.site),su.insert(l,n),l.edge=n.edge=zd(e.site,l.site),Xd(e),void Xd(n);if(n){Jd(e),Jd(n);var c=e.site,d=c[0],u=c[1],p=t[0]-d,m=t[1]-u,f=n.site,h=f[0]-d,v=f[1]-u,g=2*(p*v-m*h),b=p*p+m*m,_=h*h+v*v,y=[(v*b-m*_)/g+d,(p*_-h*b)/g+u];Ud(n.edge,c,f,y),l.edge=zd(c,t,null,y),n.edge=zd(t,f,null,y),Xd(e),Xd(n)}else l.edge=zd(e.site,l.site)}}function ou(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-e;if(!c)return s;var d=s-r,u=1/o-1/c,p=d/c;return u?(-p+Math.sqrt(p*p-2*u*(d*d/(-2*c)-l+c/2+i-o/2)))/u+r:(r+s)/2}function au(t,e){var n=t.N;if(n)return ou(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var su,lu,cu,du,uu=1e-6,pu=1e-12;function mu(t,e){return e[1]-t[1]||e[0]-t[0]}function fu(t,e){var n,r,i,o=t.sort(mu).pop();for(du=[],lu=new Array(t.length),su=new qd,cu=new qd;;)if(i=Yd,o&&(!i||o[1]uu||Math.abs(i[0][1]-i[1][1])>uu)||delete du[o]}(a,s,l,c),function(t,e,n,r){var i,o,a,s,l,c,d,u,p,m,f,h,v=lu.length,g=!0;for(i=0;iuu||Math.abs(h-p)>uu)&&(l.splice(s,0,du.push(Fd(a,m,Math.abs(f-t)uu?[t,Math.abs(u-t)uu?[Math.abs(p-r)uu?[n,Math.abs(u-n)uu?[Math.abs(p-e)=s)return null;var l=t-i.site[0],c=e-i.site[1],d=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=e-s[1],u=l*l+c*c;u({bugResults:[]}),mixins:[h],methods:{getBugData:function(){vu.post(this.rootUrl+"dashboard/get/bug_list/").then(t=>{this.bugResults=t.data,this.renderGraph()}).catch(t=>{this.showErrorModal(t,"Dashboard Unassigned Objects")})},renderGraph:function(){var t=10,e=30,n=20,r=50,i=460-r-e,o=400-t-n,a=document.getElementById("active_bug_graph");a.innerHTML="";var s,l=yo(a).append("svg").attr("width",i+r+e).attr("height",o+t+n).attr("class","graph_body").append("g").attr("id","active_bug_d3").attr("transform","translate("+r+","+t+")"),c=rl().rangeRound([0,i],.15).paddingInner(.2).paddingOuter(.2),d=function t(){var e=fl(sl,sl);return e.copy=function(){return pl(e,t())},Xs.apply(e,arguments),Ol(e)}().range([o,0]),u=ei(3,s).scale(c),p=function(t){return ei(4,t)}().scale(d).ticks(10);nl(Dd);l.selectAll("#active_bug_d3").data(this.bugResults).enter().append("rect").attr("x",t=>1).attr("y",t=>d(t.bug_status__count)).attr("height",t=>50).attr("width","50"),l.append("g").attr("class","x-axis").attr("transform","translate(0,"+o+")").call(u),l.append("g").attr("class","y-axis").call(p).append("text").attr("transform","rotate(-90)").attr("y",6).attr("dy",".71em").style("text-anchor","end").text("Count")}},mounted(){this.getBugData()}},Nr,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("h2",[this._v("Active Bugs")]),this._v(" "),e("hr"),this._v(" "),e("div",{attrs:{id:"active_bug_graph"}})])])}],!1,null,"6bd9ef65",null);gu.options.__file="src/js/components/dashboard/DashboardBugList.vue";var bu=gu.exports,_u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addKanbanCardModal",tabindex:"-1","aria-labelledby":"addKanbanCardModalLabel","aria-hidden":"true","data-kanban-level":t.levelResults[0].pk,"data-kanban-column":t.columnResults[0].pk}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.cardChecklist}}),t._v(" Add Kanban Card Wizard")],1),t._v(" "),n("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addKanbanCardCloseButton"}})]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Kanban Card Text")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.kanbanCardTextModel,expression:"kanbanCardTextModel"}],staticClass:"form-control",domProps:{value:t.kanbanCardTextModel},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addKanbanCard.apply(null,arguments)},input:function(e){e.target.composing||(t.kanbanCardTextModel=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.kanbanCardDescriptionModel,callback:function(e){t.kanbanCardDescriptionModel=e},expression:"kanbanCardDescriptionModel"}})],1)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableAddButton},on:{click:t.addKanbanCard}},[t._v("\n Add Link\n ")])])])])])};_u._withStripped=!0;const yu=n(3);var wu=J({name:"NewKanbanCard",props:{columnResults:Array,kanbanCardResults:Array,levelResults:Array,kanbanBoardResults:Array},mixins:[Z],data:()=>({disableAddButton:!0,kanbanCardDescriptionModel:"",kanbanCardTextModel:""}),methods:{addKanbanCard:function(){var t=document.getElementById("addKanbanCardModal");const e=new FormData;e.set("kanban_card_text",this.kanbanCardTextModel),e.set("kanban_card_description",this.kanbanCardDescriptionModel),e.set("kanban_level",t.dataset.kanbanLevel),e.set("kanban_column",t.dataset.kanbanColumn),yu.post(`/kanban_information/${this.kanbanBoardResults[0].pk}/new_card/`,e).then(t=>{this.$emit("new_card",t.data),this.kanbanCardTextModel="",this.kanbanCardDescriptionModel="",document.getElementById("addKanbanCardCloseButton").click()}).catch(t=>{})}},watch:{kanbanCardTextModel:function(){this.disableAddButton=!1,0==this.kanbanCardTextModel.length&&(this.disableAddButton=!0),this.kanbanCardResults.filter(t=>t.fields.kanban_card_text==this.kanbanCardTextModel).length>0&&(this.disableAddButton=!0),0!=this.columnResults.length&&0!=this.levelResults.length||(this.disableAddButton=!0)}}},_u,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Please note")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The card names can not be the same as something that already exists on the board.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Fill out a detailed description for the card, then click on the "Update Card" button\n to update the card.\n ')])])}],!1,null,"3f38c59c",null);wu.options.__file="src/js/components/modules/wizards/NewKanbanCard.vue";var xu=wu.exports,ku=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"cardInformationModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Card Information")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[t._m(1),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"myTabContent"}},[n("div",{staticClass:"tab-pane fade show active",attrs:{id:"card_details",role:"tabpanel","aria-labelledby":"details-tab"}},[n("card-details",{on:{update_card:t.updateCard}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"card_description",role:"tabpanel","aria-labelledby":"description-tab"}},[n("card-description",{on:{update_card:t.updateCard}})],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"card_notes",role:"tabpanel","aria-labelledby":"notes-tab"}},[n("card-notes")],1)])])])])])};ku._withStripped=!0;const Cu=n(3);var Mu=J({name:"CardInformation",mixins:[Z],data:()=>({cardId:"",cardDescriptionModel:"",cardNoteModel:"",cardTitleModel:"",noteHistoryResults:[]}),methods:{updateCard:function(){const t=this.$store.getters.getAllCardData,e=new FormData;e.set("kanban_card_text",t.cardTitle),e.set("kanban_card_description",t.cardDescription),e.set("kanban_level",t.cardLevel.value),e.set("kanban_column",t.cardColumn.value),e.set("kanban_card_id",t.cardId),Cu.post("/kanban_information/update_card/",e).then(e=>{this.$emit("update_card",{kanban_card_id:t.cardId,kanban_card_text:t.cardTitle,kanban_column:t.cardColumn,kanban_level:t.cardLevel}),document.getElementById("cardInformationModalCloseButton").click()}).catch(t=>{})}}},ku,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"cardInformationModalCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs",attrs:{id:"card_information_tabs",role:"tablist"}},[e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link active",attrs:{id:"details-tab","data-bs-toggle":"tab","data-bs-target":"#card_details",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[this._v("Details")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"description-tab","data-bs-toggle":"tab","data-bs-target":"#card_description",type:"button",role:"tab","aria-controls":"profile","aria-selected":"false"}},[this._v("Description")])]),this._v(" "),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",attrs:{id:"notes-tab","data-bs-toggle":"tab","data-bs-target":"#card_notes",type:"button",role:"tab","aria-controls":"contact","aria-selected":"false"}},[this._v("Notes")])])])}],!1,null,"bc4b6c14",null);Mu.options.__file="src/js/components/card_information/CardInformation.vue";var Su=Mu.exports,Tu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Card Title")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.cardTitle,expression:"cardTitle"}],staticClass:"form-control",domProps:{value:t.cardTitle},on:{input:function(e){e.target.composing||(t.cardTitle=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12 mt-4"},[n("label",[t._v("Card Column")]),t._v(" "),n("v-select",{attrs:{options:t.listColumns,label:"column",clearable:!1},model:{value:t.cardColumn,callback:function(e){t.cardColumn=e},expression:"cardColumn"}})],1),t._v(" "),n("div",{staticClass:"col-md-12 mt-4"},[n("label",[t._v("Card Level")]),t._v(" "),n("v-select",{attrs:{options:t.listLevels,label:"level",clearable:!1},model:{value:t.cardLevel,callback:function(e){t.cardLevel=e},expression:"cardLevel"}})],1)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.closeModal}},[t._v("\n Close Modal\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.updateCard}},[t._v("\n Update Card\n ")])])])])};Tu._withStripped=!0;n(3);var Eu=J({name:"CardDetails",props:{},data:()=>({tempModel:""}),computed:{...p(["cardId","cardTitle","cardColumn","cardLevel","listColumns","listLevels"])},methods:{closeModal:function(){document.getElementById("cardInformationModalCloseButton").click()},updateCard:function(){this.$store.commit({type:"updateKanbanCard",card_id:this.cardId,kanban_card_text:this.cardTitle,kanban_column:this.cardColumn,kanban_level:this.cardLevel}),this.$emit("update_card")}}},Tu,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Title")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Write an appropriate name for the kanban card. To update click on the "Update" button.\n ')])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Location")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Select the appropriate location for this card.\n ")])])}],!1,null,null,null);Eu.options.__file="src/js/components/card_information/CardDetails.vue";var ju=Eu.exports,Ou=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.cardDescription,callback:function(e){t.cardDescription=e},expression:"cardDescription"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.closeModal}},[t._v("\n Close Modal\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.updateCard}},[t._v("\n Update Card\n ")])])])])};Ou._withStripped=!0;n(3);var Iu=J({name:"CardDescription",props:{},data:()=>({}),computed:{...p(["cardDescription"])},methods:{closeModal:function(){document.getElementById("cardInformationModalCloseButton").click()},updateCard:function(){this.$emit("update_card")}}},Ou,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Card Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Fill out a detailed description for the card, then click on the "Update Card" button\n to update the card.\n ')])])}],!1,null,null,null);Iu.options.__file="src/js/components/card_information/CardDescription.vue";var Lu=Iu.exports,Du=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Note Box")]),t._v(" "),n("editor",{attrs:{init:{height:250,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.cardNoteModel,callback:function(e){t.cardNoteModel=e},expression:"cardNoteModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.closeModal}},[t._v("\n Close Modal\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",attrs:{disabled:""===t.cardNoteModel},on:{click:t.addNote}},[t._v("\n Add Note\n ")])])]),t._v(" "),n("hr"),t._v(" "),n("list-notes",{attrs:{"note-history-results":t.getCardNotes(),destination:"card"}})],1)};Du._withStripped=!0;const Nu=n(3);var $u=J({name:"CardNotes",props:{},data:()=>({...Object(o.b)(["getCardNotes"]),cardNoteModel:""}),methods:{addNote:function(){const t=new FormData;t.set("note",this.cardNoteModel),Nu.post(`/object_data/kanban_card/${this.$store.state.card.cardId}/add_notes/`,t).then(t=>{this.$store.commit({type:"appendNote",newNote:t.data[0]}),this.cardNoteModel=""}).catch(t=>{})},closeModal:function(){document.getElementById("cardInformationModalCloseButton").click()}}},Du,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Notes")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n To add a note - type your note in the Note Box and hit the "Submit Note"\n button.\n ')])])}],!1,null,null,null);$u.options.__file="src/js/components/card_information/CardNotes.vue";var Au=$u.exports,Ru=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[0==t.noteHistoryResults.length?n("div",{staticClass:"module-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("\n Sorry - but there are no notes for this "+t._s(t.destination)+".\n ")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.noteHistoryResults,(function(e){return n("tr",[n("td",[n("div",{domProps:{innerHTML:t._s(e.fields.object_note.substr(0,400))}}),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n "+t._s(e.fields.date_created)+"\n ")])])])})),0)])])])};Ru._withStripped=!0;var Pu=J({name:"ListNotes",props:{destination:String,noteHistoryResults:{type:Array,default:function(){return[]}}}},Ru,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("Note")])])])}],!1,null,"343c6058",null);Pu.options.__file="src/js/components/modules/sub_modules/ListNotes.vue";var qu=Pu.exports,zu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newLinkModal",tabindex:"-1","aria-labelledby":"kanbanLinkModal","aria-hidden":"true","data-kanban-level":t.levelResults[0].pk,"data-kanban-column":t.columnResults[0].pk}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" New Kanban Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching?n("div",{staticClass:"alert alert-success"},[t._v("\n Searching for "+t._s(t.objectModel)+"s\n ")]):n("v-select",{staticClass:"object-selection",attrs:{options:t.objectSelection},model:{value:t.objectModel,callback:function(e){t.objectModel=e},expression:"objectModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching||null==t.objectModel?n("div",{attrs:{id:"link_wizard_results"}},[n("img",{attrs:{src:"/static/NearBeach/images/placeholder/search.svg",alt:"Searching..."}})]):t._e(),t._v(" "),0==t.objectResults.length&&null!=t.objectModel?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - there are no results.\n ")]):t._e(),t._v(" "),!t.isSearching&&t.objectResults.length>0&&null!=t.objectModel?n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",[t._v(t._s(t.objectModel)+" Description")]),t._v(" "),n("td",[t._v("Status")])])]),t._v(" "),"Project"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"radio",name:"link-option",id:"radio_project_"+e.pk},domProps:{value:e.pk,checked:t._q(t.linkModel,e.pk)},on:{change:function(n){t.linkModel=e.pk}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"radio_project_"+e.pk}},[t._v("\n "+t._s(e.fields.project_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Project "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.project_status))])])})),0):t._e(),t._v(" "),"Requirement"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"radio",name:"link-option",id:"radio_requirement_"+e.pk},domProps:{value:e.pk,checked:t._q(t.linkModel,e.pk)},on:{change:function(n){t.linkModel=e.pk}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"radio_task_"+e.pk}},[t._v("\n "+t._s(e.fields.requirement_title)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Requirement "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.requirement_status))])])})),0):t._e(),t._v(" "),"Task"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"radio",id:"radio_task_"+e.pk},domProps:{value:e.pk,checked:t._q(t.linkModel,e.pk)},on:{change:function(n){t.linkModel=e.pk}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"radio_task_"+e.pk}},[t._v("\n "+t._s(e.fields.task_short_description)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Task "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.task_status))])])})),0):t._e()]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.linkModel.length},on:{click:t.saveLinks}},[t._v("Save changes")])])])])])};zu._withStripped=!0;const Fu=n(3);var Uu=J({name:"NewKanbanLinkWizard",props:{columnResults:Array,levelResults:Array,locationId:Number},mixins:[h,Z],data:()=>({isSearching:!1,objectModel:null,objectResults:[],objectSelection:["Project","Requirement","Task"],linkModel:[]}),methods:{saveLinks:function(){const t=new FormData;var e=document.getElementById("newLinkModal");t.set(""+this.objectModel.toLowerCase(),this.linkModel),t.set("kanban_level",e.dataset.kanbanLevel),t.set("kanban_column",e.dataset.kanbanColumn),Fu.post(`/kanban_information/${this.locationId}/${this.objectModel.toLowerCase()}/add_link/`,t).then(t=>{this.$emit("new_card",t.data),this.objectModel=null,document.getElementById("requirementLinkCloseButton").click()})}},watch:{objectModel:function(){this.linkModel=[],null!==this.objectModel?(this.isSearching=!0,Fu.post(`/kanban_information/${this.locationId}/${this.objectModel}/link_list/`).then(t=>{this.objectResults=t.data,this.isSearching=!1}).catch(t=>{this.showErrorModal(t,"kanban")})):this.isSearching=!1},linkModel:function(){}}},zu,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"requirementLinkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Object Selector")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which object you would like to link to this requirement.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Select Links")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please select which of the objects you want to connect to this requirement.\n ")])])}],!1,null,"49b27f11",null);Uu.options.__file="src/js/components/modules/wizards/NewKanbanLinkWizard.vue";var Bu=Uu.exports,Vu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("My Current Objects")]),t._v(" "),n("hr"),t._v(" "),t.isLoaded?t._e():n("div",{staticClass:"alert alert-dark"},[t._v("\n Still obtaining your assigned jobs.\n ")]),t._v(" "),t.objectResults.requirement.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.requirement,"import-variables":t.requirementVariables,destination:"requirement","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.project.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.project,"import-variables":t.projectVariables,destination:"project","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.task.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.task,"import-variables":t.taskVariables,destination:"task","root-url":t.rootUrl}}):t._e(),t._v(" "),0===t.countObjects&&t.isLoaded?n("div",{staticClass:"alert alert-primary"},[t._v("\n It looks like no one has assigned you any tasks.\n ")]):t._e()],1)])};Vu._withStripped=!0;const Hu=n(3);var Wu=J({name:"DashboardMyObjects",props:{rootUrl:{type:String,default:"/"}},data:()=>({isLoaded:!1,objectResults:{requirement:[],project:[],task:[]},projectVariables:{header:"Projects",prefix:"Pro",id:"project_id",title:"project_name",status:"project_status"},requirementVariables:{header:"Your Requirements",prefix:"Req",id:"requirement_id",title:"requirement_title",status:"requirement_status__requirement_status"},taskVariables:{header:"Tasks",prefix:"Task",id:"task_id",title:"task_short_description",status:"task_status"}}),mixins:[h],methods:{getMyObjects:function(){Hu.post(this.rootUrl+"dashboard/get/my_objects/").then(t=>{this.objectResults=t.data,this.isLoaded=!0}).catch(t=>{this.showErrorModal(t,"Dashboard My Objects")})}},computed:{countObjects:function(){return this.objectResults.requirement.length+this.objectResults.project.length+this.objectResults.task.length}},mounted(){this.getMyObjects()}},Vu,[],!1,null,null,null);Wu.options.__file="src/js/components/dashboard/DashboardMyObjects.vue";var Gu=Wu.exports,Yu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",{attrs:{width:"75%"}},[t._v(t._s(t.importVariables.header))]),t._v(" "),n("td",{attrs:{width:"25%"}},[t._v("Status")])])]),t._v(" "),n("tbody",t._l(t.searchResults,(function(e){return n("tr",{key:e.pk},[n("td",[n("a",{attrs:{href:""+t.rootUrl+t.destination+"_information/"+e[t.importVariables.id]+"/"}},[n("p",[t._v(t._s(e[t.importVariables.title]))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n "+t._s(t.importVariables.prefix)+t._s(e[t.importVariables.id])+"\n ")])])]),t._v(" "),n("td",[t._v("\n "+t._s(e[t.importVariables.status])+"\n ")])])})),0)])};Yu._withStripped=!0;var Ku=J({name:"RenderObjectTable",props:{destination:String,importVariables:Object,rootUrl:{type:String,default:"/"},searchResults:Array},data:()=>({}),methods:{}},Yu,[],!1,null,null,null);Ku.options.__file="src/js/components/render/RenderObjectTable.vue";var Zu=Ku.exports,Xu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" "+t._s(t.destination)+" Links")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are links to other objects like projects/tasks/requirements. You can link a "+t._s(t.destination)+"\n to these other objects to symbolise a connection between the two.\n ")]),t._v(" "),0==t.linkResults.length?n("div",{staticClass:"requirement-item-spacer"},[n("div",{staticClass:"alert alert-dark"},[t._v("Sorry - there are no Links for this requirement.")])]):n("div",[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.linkResults,(function(e){return n("tr",[n("td",{domProps:{innerHTML:t._s(t.extractObjectDescription(e))}}),t._v(" "),n("td",[t._v(t._s(t.extractObjectStatus(e)))])])})),0)])]),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.newLink}},[t._v("Create new Link")])])]),t._v(" "),n("hr"),t._v(" "),n("new-link-wizard",{attrs:{destination:t.destination,"location-id":t.locationId},on:{update_link_results:t.updateLinkResults}})],1)};Xu._withStripped=!0;const Ju=n(3);var Qu=J({name:"ObjectLinks",props:{destination:String,locationId:Number},mixins:[Z],data:()=>({linkResults:[]}),methods:{extractObjectDescription:function(t){var e="",n="",r="",i="";return null!==t.project_id&&"project"!==this.destination?(e=t.project_id__project_name,n=t.project_id,r="Project "+t.project_id,i="/project_information/"):null!==t.requirement_id?(e=t.requirement_id__requirement_title,n=t.requirement_id,r="Requirement "+t.requirement_id,i="/requirement_information/"):null!==t.requirement_item_id?(e=t.requirement_item_id__requirement_item_title,n=t.requirement_item_id,r="Requirement Item "+t.requirement_item_id,i="/requirement_item_information/"):null!==t.task_id&&"task"!==this.destination&&(e=t.task_id__task_short_description,n=t.task_id,r="Task "+t.task_id,i="/task_information/"),`

${e}

${r}

`},extractObjectStatus:function(t){var e="";return null!==t.project_id&&"project"!==this.destination?e=t.project_id__project_status:null!==t.requirement_id?e=t.requirement_id__requirement_status__requirement_status:null!==t.requirement_item_id?e=t.requirement_item_id__requirement_item_status__requirement_item_status:null!==t.task_id&&"task"!==this.destination&&(e=t.task_id__task_status),""+e},newLink:function(){new f.a(document.getElementById("newLinkModal")).show()},updateLinkResults:function(){Ju.post(`/object_data/${this.destination}/${this.locationId}/object_link_list/`).then(t=>{this.linkResults=t.data.filter(t=>parseInt(0+t.project_id)+parseInt(0+t.requirement_id)+parseInt(0+t.requirement_item_id)+parseInt(0+t.task_id)>this.locationId)})}},mounted(){this.updateLinkResults()}},Xu,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Object Description")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Status")])])])}],!1,null,"1d1226e2",null);Qu.options.__file="src/js/components/modules/sub_modules/ObjectLinks.vue";var tp=Qu.exports,ep=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newLinkModal",tabindex:"-1","aria-labelledby":"linkModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.linkOut}}),t._v(" New "+t._s(t.destination)+" Link Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Object Selector")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please select which object you would like to link to this "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching?n("div",{staticClass:"alert alert-success"},[t._v("\n Searching for "+t._s(t.objectModel)+"s\n ")]):n("v-select",{staticClass:"object-selection",attrs:{options:t.objectSelection},model:{value:t.objectModel,callback:function(e){t.objectModel=e},expression:"objectModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Select Links")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please select which of the objects you want to connect to this "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[t.isSearching||null==t.objectModel?n("div",{attrs:{id:"link_wizard_results"}},[n("img",{attrs:{src:"/static/NearBeach/images/placeholder/search.svg",alt:"Searching..."}})]):t._e(),t._v(" "),0==t.objectResults.length&&null!=t.objectModel?n("div",{staticClass:"alert alert-warning"},[t._v("\n Sorry - there are no results.\n ")]):t._e(),t._v(" "),!t.isSearching&&t.objectResults.length>0&&null!=t.objectModel?n("table",{staticClass:"table"},[n("thead",[n("tr",[n("td",[t._v(t._s(t.objectModel)+" Description")]),t._v(" "),n("td",[t._v("Status")])])]),t._v(" "),"Project"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_project_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_project_"+e.pk}},[t._v("\n "+t._s(e.fields.project_name)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Project "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.project_status))])])})),0):t._e(),t._v(" "),"Task"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_task_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_task_"+e.pk}},[t._v("\n "+t._s(e.fields.task_short_description)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Task "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.task_status))])])})),0):t._e(),t._v(" "),"Requirement"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_requirement_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_requirement_"+e.pk}},[t._v("\n "+t._s(e.fields.requirement_title)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Requirement "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.requirement_status))])])})),0):t._e(),t._v(" "),"Requirement_Item"==t.objectModel?n("tbody",t._l(t.objectResults,(function(e){return n("tr",[n("td",[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.linkModel,expression:"linkModel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"checkbox_requirement_item_"+e.pk},domProps:{value:e.pk,checked:Array.isArray(t.linkModel)?t._i(t.linkModel,e.pk)>-1:t.linkModel},on:{change:function(n){var r=t.linkModel,i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=e.pk,s=t._i(r,a);i.checked?s<0&&(t.linkModel=r.concat([a])):s>-1&&(t.linkModel=r.slice(0,s).concat(r.slice(s+1)))}else t.linkModel=o}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"checkbox_requirement_item_"+e.pk}},[t._v("\n "+t._s(e.fields.requirement_item_title)+"\n ")])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("Requirement Item "+t._s(e.pk))])]),t._v(" "),n("td",[t._v(t._s(e.fields.requirement_item_status))])])})),0):t._e()]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("\n Close\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:0==t.linkModel.length},on:{click:t.saveLinks}},[t._v("Save changes")])])])])])};ep._withStripped=!0;const np=n(3);var rp=J({name:"NewLinkWizard",props:{destination:String,locationId:Number},mixins:[h,Z],data:()=>({isSearching:!1,objectModel:null,objectResults:[],objectSelection:["Project","Requirement","Requirement_Item","Task"],linkModel:[]}),methods:{saveLinks:function(){const t=new FormData;this.linkModel.forEach(e=>{t.append(""+this.objectModel.toLowerCase(),e)}),np.post(`/object_data/${this.destination}/${this.locationId}/add_link/`,t).then(t=>{this.$emit("update_link_results",{}),document.getElementById("linkCloseButton").click()})}},watch:{objectModel:function(){this.linkModel=[],null!==this.objectModel?(this.isSearching=!0,np.post(`/object_data/${this.destination}/${this.locationId}/${this.objectModel.toLowerCase()}/link_list/`).then(t=>{this.objectResults=t.data,this.isSearching=!1}).catch(t=>{this.showErrorModal(t,this.destination)})):this.isSearching=!1}}},ep,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"linkCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"9b35cc8c",null);rp.options.__file="src/js/components/modules/wizards/NewLinkWizard.vue";var ip=rp.exports,op=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Request for Change")]),t._v(" "),n("hr"),t._v(" "),n("form-wizard",{attrs:{title:"",subtitle:""},on:{"on-complete":t.onComplete,"on-change":t.onChange}},[n("tab-content",{attrs:{title:"Description","before-change":t.beforeChange}},[n("rfc-description",{attrs:{"static-url":t.staticUrl},on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Details","before-change":t.beforeChange}},[n("rfc-details",{attrs:{"group-results":t.groupResults,"user-group-results":t.userGroupResults},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Risk","before-change":t.beforeChange}},[n("rfc-risk",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Implementation Plan","before-change":t.beforeChange}},[n("rfc-implementation-plan",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Backout Plan","before-change":t.beforeChange}},[n("rfc-backout-plan",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1),t._v(" "),n("tab-content",{attrs:{title:"Test Plan","before-change":t.beforeChange}},[n("rfc-test-plan",{on:{update_values:function(e){return t.updateValues(e)},update_validation:function(e){return t.updateValidation(e)}}})],1)],1)],1)])};op._withStripped=!0;var ap=n(64);const sp=n(3);var lp=J({name:"NewRequestForChange",props:{groupResults:Array,rootUrl:{type:String,default:"/"},statusUrl:{type:String,default:"/"},userGroupResults:{type:Array,default:()=>[]}},components:{FormWizard:ap.FormWizard,TabContent:ap.TabContent},mixins:[h],data:()=>({currentTab:0,rfcData:{groupModel:[],rfcBackoutPlan:"",rfcChangeLeadModel:{},rfcImpactModel:{},rfcImplementationEndModel:"",rfcImplementationPlanModel:"",rfcImplementationStartModel:"",rfcPriorityModel:{},rfcReleaseModel:"",rfcRiskModel:{},rfcRiskSummaryModel:"",rfcSummaryModel:"",rfcTestPlanModel:"",rfcTitleModel:"",rfcTypeModel:{},rfcVersionModel:""},validationData:{tab_0:!1,tab_1:!1,tab_2:!1,tab_3:!1,tab_4:!1,tab_5:!1}}),methods:{beforeChange:function(){return this.validationData["tab_"+this.currentTab]},onChange:function(t,e){this.currentTab=e,window.scrollTo(0,60)},onComplete:function(){const t=new FormData,e=this.rfcData;t.set("rfc_title",e.rfcTitleModel),t.set("rfc_summary",e.rfcSummaryModel),t.set("rfc_type",e.rfcTypeModel.value),t.set("rfc_implementation_start_date",e.rfcImplementationStartModel),t.set("rfc_implementation_end_date",e.rfcImplementationEndModel),t.set("rfc_implementation_release_date",e.rfcReleaseModel),t.set("rfc_version_number",e.rfcVersionModel),t.set("rfc_lead",e.rfcChangeLeadModel.value),t.set("rfc_priority",e.rfcPriorityModel.value),t.set("rfc_risk",e.rfcRiskModel.value),t.set("rfc_impact",e.rfcImpactModel.value),t.set("rfc_risk_and_impact_analysis",e.rfcRiskSummaryModel),t.set("rfc_implementation_plan",e.rfcImplementationPlanModel),t.set("rfc_backout_plan",e.rfcBackoutPlan),t.set("rfc_test_plan",e.rfcTestPlanModel),e.groupModel.forEach((e,n)=>{t.append("group_list",e.value)}),sp.post(this.rootUrl+"new_request_for_change/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"request_for_change","")})},updateValidation:function(t){this.validationData[t.tab]=t.value},updateValues:function(t){this.rfcData[t.modelName]=t.modelValue}}},op,[],!1,null,"8b4b5646",null);lp.options.__file="src/js/components/request_for_change/NewRequestForChange.vue";var cp=lp.exports,dp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("label",[t._v("Backout Plan:\n "),!t.$v.rfcBackoutPlanModel.required&&t.$v.rfcBackoutPlanModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcBackoutPlanModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcBackoutPlanModel,callback:function(e){t.rfcBackoutPlanModel=e},expression:"rfcBackoutPlanModel"}})],1)])};dp._withStripped=!0;var up=J({name:"RfcBackoutPlan",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcBackoutPlanModel:""}),validations:{rfcBackoutPlanModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_4",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcBackoutPlanModel:function(){this.updateValues("rfcBackoutPlan",this.rfcBackoutPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcBackoutPlanModel=this.rfcResults[0].fields.rfc_backout_plan)}},dp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Backout Plan")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please outline the backout plan that will be implemented, and when it will be implemented, when something\n goes wrong with the Request for Change.\n ")])])}],!1,null,"4b3a46a5",null);up.options.__file="src/js/components/request_for_change/tabs/RfcBackoutPlan.vue";var pp=up.exports,mp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Request for Change Type:\n "),!t.$v.rfcTypeModel.required&&t.$v.rfcTypeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcType},model:{value:t.rfcTypeModel,callback:function(e){t.rfcTypeModel=e},expression:"rfcTypeModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Version/Release Number\n "),t.$v.rfcVersionModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rfcVersionModel,expression:"rfcVersionModel"}],staticClass:"form-control",attrs:{type:"text",maxlength:"25"},domProps:{value:t.rfcVersionModel},on:{input:function(e){e.target.composing||(t.rfcVersionModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"row col-md-8"},[n("div",{staticClass:"col-md-12"},[t.checkDateValidation?n("span",{staticClass:"error"},[t._v(" Please select an appropriate date for ALL fields.")]):t._e()]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation Start: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationStartModel,callback:function(e){t.rfcImplementationStartModel=e},expression:"rfcImplementationStartModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation End: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationEndModel,callback:function(e){t.rfcImplementationEndModel=e},expression:"rfcImplementationEndModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Release Date: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcReleaseModel,callback:function(e){t.rfcReleaseModel=e},expression:"rfcReleaseModel"}})],1)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n LEAD:\n "),!t.$v.rfcChangeLeadModel.required&&t.$v.rfcChangeLeadModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Lead.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcChangeLeadFixList},on:{search:t.fetchOptions},model:{value:t.rfcChangeLeadModel,callback:function(e){t.rfcChangeLeadModel=e},expression:"rfcChangeLeadModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("group-permissions",{attrs:{"group-results":t.groupResults,destination:"request_for_change","is-dirty":t.$v.groupModel.$dirty,"user-group-results":t.userGroupResults},on:{update_group_model:function(e){return t.updateGroupModel(e)}}})],1)};mp._withStripped=!0;const fp=n(3);var hp=J({name:"RfcDetails",props:{groupResults:Array,userGroupResults:{type:Array,default:()=>[]}},mixins:[ut],data:()=>({groupModel:[],rfcChangeLeadFixList:[],rfcChangeLeadModel:"",rfcImplementationStartModel:"",rfcImplementationEndModel:"",rfcReleaseModel:"",rfcStatus:[{label:"Draft",value:1},{label:"Waiting for approval",value:2},{label:"Approved",value:3},{label:"Started",value:4},{label:"Finished",value:5},{label:"Rejected",value:6}],rfcType:[{label:"Emergency",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcTypeModel:"",rfcVersionModel:"",searchTimeout:""}),validations:{groupModel:{required:dt.required},rfcChangeLeadModel:{required:dt.required},rfcImplementationStartModel:{required:dt.required},rfcImplementationEndModel:{required:dt.required},rfcReleaseModel:{required:dt.required},rfcTypeModel:{required:dt.required},rfcVersionModel:{maxLength:Object(dt.maxLength)(25)}},computed:{checkDateValidation:function(){const t=!this.$v.rfcImplementationStartModel.required&&this.$v.rfcImplementationStartModel.$dirty,e=!this.$v.rfcImplementationEndModel.required&&this.$v.rfcImplementationEndModel.$dirty,n=!this.$v.rfcReleaseModel.required&&this.$v.rfcReleaseModel.$dirty;return t||e||n}},methods:{fetchOptions:function(t,e){this.searchTrigger({return_function:this.getChangeLeadData,searchTimeout:this.searchTimeout,search:t,loading:e})},getChangeLeadData:function(t,e){const n=new FormData;n.set("search",t),fp.post("/object_data/lead_user_list/",n).then(t=>{this.rfcChangeLeadFixList=[],t.data.forEach(t=>{var e={value:t.pk,label:`${t.fields.username} - ${t.fields.first_name} ${t.fields.last_name}`};this.rfcChangeLeadFixList.push(e)})}).catch((function(t){document.getElementById("errorModalContent").innerHTML="Search Lead User Issue:
"+t,new bootstrap.Modal(document.getElementById("errorModal"),{keyboard:!1}).show(),document.getElementById("loader").style.display="none"}))},updateGroupModel:function(t){this.groupModel=t,this.updateValues("groupModel",t),this.updateValidation()},updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_1",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcChangeLeadModel:function(){this.updateValues("rfcChangeLeadModel",this.rfcChangeLeadModel),this.updateValidation()},rfcImplementationStartModel:function(){this.updateValues("rfcImplementationStartModel",this.rfcImplementationStartModel),this.updateValidation()},rfcImplementationEndModel:function(){this.updateValues("rfcImplementationEndModel",this.rfcImplementationEndModel),this.updateValidation()},rfcReleaseModel:function(){this.updateValues("rfcReleaseModel",this.rfcReleaseModel),this.updateValidation()},rfcStatus:function(){this.updateValues("rfcStatus",this.rfcStatus),this.updateValidation()},rfcType:function(){this.updateValues("rfcType",this.rfcType),this.updateValidation()},rfcTypeModel:function(){this.updateValues("rfcTypeModel",this.rfcTypeModel),this.updateValidation()},rfcVersionModel:function(){this.updateValues("rfcVersionModel",this.rfcVersionModel),this.updateValidation()}},mounted(){this.getChangeLeadData(),this.$v.$touch()}},mp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Type and Version")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please specify how urgent this RFC's status really is. Optionally you can also specify the version\n or release number.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Important Dates")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the implementation start and end dates. Please also suply the release date of the\n change to the general consumer.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Change LEAD: ")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the LEAD who will be leading this Request for Change.\n ")])])}],!1,null,"38d20597",null);hp.options.__file="src/js/components/request_for_change/tabs/RfcDetails.vue";var vp=hp.exports,gp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("label",[t._v("Implementation Plan:\n "),!t.$v.rfcImplementationPlanModel.required&&t.$v.rfcImplementationPlanModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcImplementationPlanModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcImplementationPlanModel,callback:function(e){t.rfcImplementationPlanModel=e},expression:"rfcImplementationPlanModel"}})],1)])};gp._withStripped=!0;var bp=J({name:"RfcImplementationPlan",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcImplementationPlanModel:""}),validations:{rfcImplementationPlanModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_3",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcImplementationPlanModel:function(){this.updateValues("rfcImplementationPlanModel",this.rfcImplementationPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcImplementationPlanModel=this.rfcResults[0].fields.rfc_implementation_plan)}},gp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Implementation Plan")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please outline your implementation plan for this request for change.\n ")])])}],!1,null,"420ae536",null);bp.options.__file="src/js/components/request_for_change/tabs/RfcImplementationPlan.vue";var _p=bp.exports,yp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("label",[t._v("\n Priority of Change\n "),!t.$v.rfcPriorityModel.required&&t.$v.rfcPriorityModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcPriority,disabled:t.isReadOnly},model:{value:t.rfcPriorityModel,callback:function(e){t.rfcPriorityModel=e},expression:"rfcPriorityModel"}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("label",[t._v("\n Risk of Change\n "),!t.$v.rfcRiskModel.required&&t.$v.rfcRiskModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcRisk,disabled:t.isReadOnly},model:{value:t.rfcRiskModel,callback:function(e){t.rfcRiskModel=e},expression:"rfcRiskModel"}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("label",[t._v("\n Impact of Change\n "),!t.$v.rfcImpactModel.required&&t.$v.rfcImpactModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please select a Change Type.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcImpact,disabled:t.isReadOnly},model:{value:t.rfcImpactModel,callback:function(e){t.rfcImpactModel=e},expression:"rfcImpactModel"}})],1)]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Risk Association:\n "),!t.$v.rfcRiskSummaryModel.required&&t.$v.rfcRiskSummaryModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcRiskSummaryModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcRiskSummaryModel,callback:function(e){t.rfcRiskSummaryModel=e},expression:"rfcRiskSummaryModel"}})],1)])};yp._withStripped=!0;var wp=J({name:"RfcRisk",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcPriority:[{label:"Critical",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcPriorityModel:"",rfcRisk:[{label:"Very High",value:5},{label:"High",value:4},{label:"Moderate",value:3},{label:"Low",value:2},{label:"None",value:1}],rfcRiskModel:"",rfcRiskSummaryModel:"",rfcImpact:[{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcImpactModel:""}),validations:{rfcPriorityModel:{required:dt.required},rfcRiskModel:{required:dt.required},rfcRiskSummaryModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},rfcImpactModel:{required:dt.required}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_2",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcPriority:function(){this.updateValues("rfcPriority",this.rfcPriority),this.updateValidation()},rfcPriorityModel:function(){this.updateValues("rfcPriorityModel",this.rfcPriorityModel),this.updateValidation()},rfcRisk:function(){this.updateValues("rfcRisk",this.rfcRisk),this.updateValidation()},rfcRiskModel:function(){this.updateValues("rfcRiskModel",this.rfcRiskModel),this.updateValidation()},rfcRiskSummaryModel:function(){this.updateValues("rfcRiskSummaryModel",this.rfcRiskSummaryModel),this.updateValidation()},rfcImpact:function(){this.updateValues("rfcImpact",this.rfcImpact),this.updateValidation()},rfcImpactModel:function(){this.updateValues("rfcImpactModel",this.rfcImpactModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcPriorityModel=this.rfcPriority.filter(t=>t.value===this.rfcResults[0].fields.rfc_priority)[0],this.rfcRiskModel=this.rfcRisk.filter(t=>t.value===this.rfcResults[0].fields.rfc_risk)[0],this.rfcRiskSummaryModel=this.rfcResults[0].fields.rfc_risk_and_impact_analysis,this.rfcImpactModel=this.rfcImpact.filter(t=>t.value===this.rfcResults[0].fields.rfc_impact)[0]),this.$v.$touch()}},yp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Risk")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please outline all risks associated with this Request for Change. A detail list of all risks should be\n noted.\n ")])])}],!1,null,"2dd96d4a",null);wp.options.__file="src/js/components/request_for_change/tabs/RfcRisk.vue";var xp=wp.exports,kp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("label",[t._v("Test Plan:\n "),!t.$v.rfcTestPlanModel.required&&t.$v.rfcTestPlanModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcTestPlanModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcTestPlanModel,callback:function(e){t.rfcTestPlanModel=e},expression:"rfcTestPlanModel"}})],1)])};kp._withStripped=!0;var Cp=J({name:"RfcTestPlan",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}}},data:()=>({rfcTestPlanModel:""}),validations:{rfcTestPlanModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)}},methods:{updateValidation:function(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_5",value:!this.$v.$invalid})},updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcTestPlanModel:function(){this.updateValues("rfcTestPlanModel",this.rfcTestPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcTestPlanModel=this.rfcResults[0].fields.rfc_test_plan)}},kp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Test Plan")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Outline your test plan. How will you test the Request for Change once it has been implemented.\n ")])])}],!1,null,"29045dd6",null);Cp.options.__file="src/js/components/request_for_change/tabs/RfcTestPlan.vue";var Mp=Cp.exports,Sp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8",staticStyle:{"min-height":"610px"}},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Request for Change Title:\n "),!t.$v.rfcTitleModel.required&&t.$v.rfcTitleModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rfcTitleModel,expression:"rfcTitleModel"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255"},domProps:{value:t.rfcTitleModel},on:{input:function(e){e.target.composing||(t.rfcTitleModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("label",[t._v("Request for Change Summary:\n "),!t.$v.rfcSummaryModel.required&&t.$v.rfcSummaryModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please supply a description.")]):t._e(),t._v(" "),t.$v.rfcSummaryModel.maxLength?t._e():n("span",{staticClass:"error"},[t._v(" Sorry - too many characters.")])]),n("br"),t._v(" "),n("img",{staticClass:"loader-image",attrs:{src:t.staticUrl+"static/NearBeach/images/placeholder/body_text.svg",alt:"loading image for Tinymce"}}),t._v(" "),n("editor",{attrs:{init:{height:500,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1,disabled:t.isReadOnly},model:{value:t.rfcSummaryModel,callback:function(e){t.rfcSummaryModel=e},expression:"rfcSummaryModel"}})],1)])};Sp._withStripped=!0;var Tp=J({name:"RfcDescription",props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:function(){return[]}},staticUrl:{type:String,default:"/"}},data:()=>({rfcSummaryModel:"",rfcTitleModel:""}),validations:{rfcSummaryModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},rfcTitleModel:{required:dt.required,maxLength:Object(dt.maxLength)(250)}},methods:{updateValues:function(t,e){this.$emit("update_values",{modelName:t,modelValue:e})}},watch:{rfcSummaryModel:function(){this.updateValues("rfcSummaryModel",this.rfcSummaryModel)},rfcTitleModel:function(){this.updateValues("rfcTitleModel",this.rfcTitleModel)}},updated(){this.$v.$touch(),this.$emit("update_validation",{tab:"tab_0",value:!this.$v.$invalid})},mounted(){this.rfcResults.length>0&&(this.rfcSummaryModel=this.rfcResults[0].fields.rfc_summary,this.rfcTitleModel=this.rfcResults[0].fields.rfc_title),this.$v.$touch()}},Sp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Place a detailed description here. This should cover what your Request For Change (RFC) will entail and\n why it should be implemented within the time frames specified below.\n ")])])}],!1,null,"401203d1",null);Tp.options.__file="src/js/components/request_for_change/tabs/RfcDescription.vue";var Ep=Tp.exports,jp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Request for Change")]),t._v(" "),n("hr"),t._v(" "),n("rfc-description",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_values:function(e){return t.updateValues(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Request for Change Type:\n "),!t.$v.rfcTypeModel.required&&t.$v.rfcTypeModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a title.")]):t._e()]),t._v(" "),n("v-select",{attrs:{options:t.rfcType,disabled:t.isReadOnly},model:{value:t.rfcTypeModel,callback:function(e){t.rfcTypeModel=e},expression:"rfcTypeModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-md-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Version/Release Number")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.rfcVersionModel,expression:"rfcVersionModel"}],staticClass:"form-control",attrs:{type:"text",maxlength:"25"},domProps:{value:t.rfcVersionModel},on:{input:function(e){e.target.composing||(t.rfcVersionModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"row col-md-8"},[n("div",{staticClass:"col-md-12"},[t.checkDateValidation?n("span",{staticClass:"error"},[t._v(" Please select an appropriate date for ALL fields.")]):t._e()]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation Start: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationStartModel,callback:function(e){t.rfcImplementationStartModel=e},expression:"rfcImplementationStartModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Implementation End: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcImplementationEndModel,callback:function(e){t.rfcImplementationEndModel=e},expression:"rfcImplementationEndModel"}})],1)]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Release Date: ")]),t._v(" "),n("datetime",{attrs:{type:"datetime","input-class":"form-control","minute-step":5},model:{value:t.rfcReleaseModel,callback:function(e){t.rfcReleaseModel=e},expression:"rfcReleaseModel"}})],1)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-4"},[n("table",{staticClass:"table user-table-module"},[n("tbody",[n("tr",[t._m(3),t._v(" "),n("td",[n("strong",[t._v(t._s(t.rfcChangeLead[0].username)+": ")]),t._v(t._s(t.rfcChangeLead[0].first_name)+" "+t._s(t.rfcChangeLead[0].last_name)+"\n "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"user-card-email"},[t._v("\n "+t._s(t.rfcChangeLead[0].email)+"\n ")])])])])])])]),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-dark",attrs:{href:"javascript:void(0)"},on:{click:t.updateRFCStatus}},[t._v("Submit RFC for Approval")]),t._v(" "),n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRFC}},[t._v("Update Request for Change")])])])],1)])};jp._withStripped=!0;const Op=n(3);var Ip=J({name:"RfcInformation",props:{groupLeaderCount:{type:Number,default:0},isReadOnly:{type:Boolean,default:!1},rfcChangeLead:Array,rfcResults:Array},mixins:[h,ie],data(){return{rfcChangeLeadFixList:[],rfcChangeLeadModel:"",rfcTitleModel:this.rfcResults[0].fields.rfc_title,rfcSummaryModel:this.rfcResults[0].fields.rfc_summary,rfcImplementationStartModel:this.rfcResults[0].fields.rfc_implementation_start_date,rfcImplementationEndModel:this.rfcResults[0].fields.rfc_implementation_end_date,rfcReleaseModel:this.rfcResults[0].fields.rfc_implementation_release_date,rfcStatus:[{label:"Draft",value:1},{label:"Waiting for approval",value:2},{label:"Approved",value:3},{label:"Started",value:4},{label:"Finished",value:5},{label:"Rejected",value:6}],rfcType:[{label:"Emergency",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcTypeModel:"",rfcVersionModel:this.rfcResults[0].fields.rfc_version_number}},validations:{rfcTitleModel:{required:dt.required},rfcSummaryModel:{required:dt.required,maxLength:Object(dt.maxLength)(63e4)},rfcImplementationStartModel:{required:dt.required},rfcImplementationEndModel:{required:dt.required},rfcReleaseModel:{required:dt.required},rfcTypeModel:{required:dt.required},rfcVersionModel:{maxLength:Object(dt.maxLength)(25)}},computed:{checkDateValidation:function(){const t=!this.$v.rfcImplementationStartModel.required&&this.$v.rfcImplementationStartModel.$dirty,e=!this.$v.rfcImplementationEndModel.required&&this.$v.rfcImplementationEndModel.$dirty,n=!this.$v.rfcReleaseModel.required&&this.$v.rfcReleaseModel.$dirty;return t||e||n}},methods:{updateRFC:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("rfc_title",this.rfcTitleModel),t.set("rfc_summary",this.rfcSummaryModel),t.set("rfc_type",this.rfcTypeModel.value),t.set("rfc_version_number",this.rfcVersionModel),t.set("rfc_implementation_start_date",this.rfcImplementationStartModel),t.set("rfc_implementation_end_date",this.rfcImplementationEndModel),t.set("rfc_implementation_release_date",this.rfcReleaseModel),this.showLoadingModal("Project"),Op.post(`/rfc_information/${this.rfcResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,this.destination)})},updateRFCStatus:function(){const t=new FormData;t.set("rfc_status","2"),Op.post(`/rfc_information/${this.rfcResults[0].pk}/update_status/`,t).then(t=>{window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,"Request for Change",this.rfcResults[0].pk)})},updateValues:function(t){this._data[t.modelName]=t.modelValue}},mounted(){this.rfcTypeModel=this.rfcType.filter(t=>t.value==this.rfcResults[0].fields.rfc_type)[0]}},jp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Type and Version")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please specify how urgent this RFC's status really is. Optionally you can also specify the version\n or release number.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Important Dates")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the implementation start and end dates. Please also suply the release date of the\n change to the general consumer.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Change LEAD: ")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please supply the LEAD who will be leading this Request for Change.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("img",{staticClass:"default-user-profile",attrs:{src:"/static/NearBeach/images/placeholder/people_tax.svg",alt:"default profile"}})])}],!1,null,"7d37e2ba",null);Ip.options.__file="src/js/components/request_for_change/RfcInformation.vue";var Lp=Ip.exports,Dp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[t._m(0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"tab-content",attrs:{id:"misc_module_content"}},[n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-risk",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-risk",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateRisk}},[t._v("Update Risks")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-implementation",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-implementation-plan",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateImplementation}},[t._v("Update Implementation Plan")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-backout",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-backout-plan",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateBackoutPlan}},[t._v("Update Backout Plan")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-test",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-test-plan",{attrs:{"rfc-results":t.rfcResults,"is-read-only":t.isReadOnly},on:{update_validation:function(e){return t.updateValidation(e)},update_values:function(e){return t.updateValues(e)}}}),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateTestPlan}},[t._v("Update Test Plan")])])])],1),t._v(" "),n("div",{staticClass:"tab-pane fade",attrs:{id:"rfc-run-sheet",role:"tabpanel","aria-labelledby":"home-tab"}},[n("rfc-run-sheet-list",{attrs:{"is-read-only":t.isReadOnly,"location-id":t.locationId,"user-list":t.userList,"rfc-id":t.rfcResults[0].pk,"rfc-status":t.rfcResults[0].fields.rfc_status},on:{update_values:function(e){return t.updateValues(e)}}})],1)])])])};Dp._withStripped=!0;const Np=n(3);var $p=J({name:"RfcModules",props:{locationId:Number,destination:String,isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:[]},userList:Array},mixins:[h,ie],data:()=>({rfcData:{rfcBackoutPlan:"",rfcImpactModel:{},rfcImplementationPlanModel:"",rfcPriorityModel:{},rfcRiskModel:{},rfcRiskSummaryModel:"",rfcTestPlanModel:"",rfcTypeModel:{}},validationData:{tab_2:!0,tab_3:!0,tab_4:!0,tab_5:!0}}),methods:{sendData:function(t,e){this.showLoadingModal("Project"),Np.post(e,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,this.destination)})},updateBackoutPlan:function(){if(!1===this.validationData.tab_4)return void this.showErrorModal("Please fill out all data","Backout Plan","");const t=new FormData;t.set("text_input",this.rfcData.rfcBackoutPlan),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/backout/`)},updateImplementation:function(){if(!1===this.validationData.tab_3)return void this.showErrorModal("Please fill out all data","Implementation","");const t=new FormData;t.set("text_input",this.rfcData.rfcImplementationPlanModel),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/implementation/`)},updateRisk:function(){if(!1===this.validationData.tab_2)return void this.showErrorModal("Please fill out all data","Risk","");const t=new FormData;t.set("priority_of_change",this.rfcData.rfcPriorityModel.value),t.set("risk_of_change",this.rfcData.rfcRiskModel.value),t.set("impact_of_change",this.rfcData.rfcImpactModel.value),t.set("text_input",this.rfcData.rfcRiskSummaryModel),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/risk/`)},updateValidation:function(t){this.validationData[t.tab]=t.value},updateTestPlan:function(){if(!1===this.validationData.tab_5)return void this.showErrorModal("Please fill out all data","Test Plan","");const t=new FormData;t.set("text_input",this.rfcData.rfcTestPlanModel),this.sendData(t,`/rfc_information/${this.rfcResults[0].pk}/save/test/`)},updateValues:function(t){this.rfcData[t.modelName]=t.modelValue}}},Dp,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"nav nav-tabs",attrs:{id:"misc_module_tabs",role:"tablist"}},[n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-risk-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-risk",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Risk")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-implementation-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-implementation",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Implementation")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-backout-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-backout",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Backout Plan")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-test-plan-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-test",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Test Plan")])]),t._v(" "),n("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[n("button",{staticClass:"nav-link",attrs:{id:"rfc-run-sheet-tab","data-bs-toggle":"tab","data-bs-target":"#rfc-run-sheet",type:"button",role:"tab","aria-controls":"home","aria-selected":"true"}},[t._v("Run Sheet")])])])}],!1,null,"e5424ad6",null);$p.options.__file="src/js/components/request_for_change/RfcModules.vue";var Ap=$p.exports,Rp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"newRunItemModal",tabindex:"-1","aria-labelledby":"newRunItemModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Change Title:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeTitleModel,expression:"changeTitleModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeTitleModel},on:{input:function(e){e.target.composing||(t.changeTitleModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"Change Task"},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Change Task Description (Optional):")]),t._v(" "),n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.changeDescriptionModel,callback:function(e){t.changeDescriptionModel=e},expression:"changeDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Stakeholders:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeStakeholderModel,expression:"changeStakeholderModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeStakeholderModel},on:{input:function(e){e.target.composing||(t.changeStakeholderModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"btn-group",attrs:{role:"group","aria-label":"Basic checkbox toggle button group"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeIsDowntimeModel,expression:"changeIsDowntimeModel"}],staticClass:"btn-check",attrs:{type:"checkbox",id:"isDowntime",autocomplete:"off"},domProps:{checked:Array.isArray(t.changeIsDowntimeModel)?t._i(t.changeIsDowntimeModel,null)>-1:t.changeIsDowntimeModel},on:{change:function(e){var n=t.changeIsDowntimeModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.changeIsDowntimeModel=n.concat([null])):o>-1&&(t.changeIsDowntimeModel=n.slice(0,o).concat(n.slice(o+1)))}else t.changeIsDowntimeModel=i}}}),t._v(" "),n("label",{staticClass:"btn btn-outline-primary",attrs:{for:"isDowntime"}},[t._v(t._s(t.isDowntime()))])])])])],1),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.submitChangeTask(e)}}},[t._v("\n Add Change Task\n ")])])])])])};Rp._withStripped=!0;const Pp=n(3);var qp=J({name:"RfcNewRunItem",props:{locationId:Number},mixins:[h],data:()=>({changeDescriptionModel:"",changeEndDateModel:"",changeIsDowntimeModel:!1,changeStakeholderModel:"Stakeholder(s)",changeStartDateModel:"",changeTitleModel:""}),methods:{isDowntime:function(){return this.changeIsDowntimeModel?"Downtime Scheduled":"No Downtime"},submitChangeTask:function(t){t.preventDefault();var e=parseInt(this.changeEndDateModel)-parseInt(this.changeStartDateModel);const n=new FormData;n.set("request_for_change",this.locationId.toString()),n.set("change_task_title",this.changeTitleModel),n.set("change_task_description",this.changeDescriptionModel),n.set("change_task_start_date",this.changeStartDateModel),n.set("change_task_end_date",this.changeEndDateModel),n.set("change_task_seconds",e.toString()),n.set("change_task_required_by",this.changeStakeholderModel),n.set("is_downtime",this.changeIsDowntimeModel),Pp.post(`/rfc_information/${this.locationId}/new_change_task/`,n).then(t=>{this.$emit("update_change_task_list",t.data),this.changeDescriptionModel="",this.changeIsDowntimeModel=!1,this.changeStakeholderModel="Stakeholder(s)",this.changeTitleModel="",document.getElementById("newRunItemCloseButton").click()}).catch(t=>{this.showErrorModal(t,"Change Task")})},updateDates:function(t){this.changeStartDateModel=t.start_date,this.changeEndDateModel=t.end_date}}},Rp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h2",{staticClass:"modal-title",attrs:{id:"newRunItemModalLabel"}},[this._v("New Change Task")]),this._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"newRunItemCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Change Task Title")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please write a short title of the description for this task. i.e Backup of Database\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Write a detail description of this particular task.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Misc")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Please fill in the stakeholders for this particular change task. Default value will be\n "Stakeholders".\n ')]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n To state if there is downtime, please click the "No Downtime" to change it\'s statue.\n ')])])}],!1,null,"1057ced8",null);qp.options.__file="src/js/components/request_for_change/modules/RfcNewRunItem.vue";var zp=qp.exports,Fp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[t.changeTaskList.length>0?n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.changeTaskList,(function(e){return n("tr",[n("td",[n("div",[t._v("Start Time:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getNiceDate(e.fields.change_task_start_date)))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",[t._v("End Time:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getNiceDate(e.fields.change_task_end_date)))])]),t._v(" "),n("td",[n("a",{attrs:{href:"/change_task_information/"+e.pk+"/"}},[t._v(t._s(e.fields.change_task_title))])]),t._v(" "),n("td",[n("div",[t._v("Assigned User:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getUserName(e.fields.change_task_assigned_user)))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",[t._v("QA User:")]),t._v(" "),n("div",{staticClass:"small-text"},[t._v(t._s(t.getUserName(e.fields.change_task_qa_user)))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",[t._v("Status:")]),t._v(" "),4!==t.rfcStatus?n("div",{staticClass:"small-text"},[t._v("\n "+t._s(t.getStatus(e.fields.change_task_status))+"\n ")]):n("div",[3==e.fields.change_task_status?n("a",{staticClass:"btn btn-primary change-task-button",attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.updateChangeTaskStatus(e.pk,4)}}},[t._v("Start Task")]):t._e(),t._v(" "),4==e.fields.change_task_status?n("a",{staticClass:"btn btn-warning change-task-button",attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.updateChangeTaskStatus(e.pk,5)}}},[t._v("Finish Task")]):t._e(),t._v(" "),5==e.fields.change_task_status?n("a",{staticClass:"btn btn-success change-task-button",attrs:{href:"javascript:void(0)"}},[t._v("Successful")]):t._e(),t._v(" "),6==e.fields.change_task_status?n("a",{staticClass:"btn btn-danger change-task-button",attrs:{href:"javascript:void(0)"}},[t._v("Failed")]):t._e()])])])})),0)]):t._e(),t._v(" "),0==t.changeTaskList.length?n("div",{staticClass:"alert alert-primary"},[t._v("\n Currently there are no Change Tasks associated with this Request for Change. Please add some by clicking\n on the button below.\n ")]):t._e()]),t._v(" "),t.isReadOnly?t._e():n("hr"),t._v(" "),t.isReadOnly?t._e():n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewChangeItem}},[t._v("New Change Item")])])]),t._v(" "),t.isCompleted?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-warning save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.closeRfc}},[t._v("Close Request for Change")])])]):t._e(),t._v(" "),t.isReadOnly?t._e():n("rfc-new-run-item",{attrs:{"location-id":t.locationId},on:{update_change_task_list:function(e){return t.updateChangeTaskList(e)}}})],1)};Fp._withStripped=!0;var Up={methods:{getNiceDate:function(t){return Hn.DateTime.fromISO(t).toLocaleString(Hn.DateTime.DATETIME_MED)}}};const Bp=n(3);var Vp=J({name:"RfcRunSheetList",props:{isReadOnly:{type:Boolean,default:!1},locationId:Number,rfcId:Number,rfcStatus:{type:Number,default:0},userList:Array},mixins:[h,Up],data:()=>({changeTaskList:[]}),computed:{isCompleted:function(){return 0===this.changeTaskList.filter(t=>{const e=t.fields.change_task_status;return 5!==e&&6!==e}).length&&(3===this.rfcStatus||4===this.rfcStatus)}},methods:{addNewChangeItem:function(){new f.a(document.getElementById("newRunItemModal")).show()},closeRfc:function(){const t=new FormData;t.set("rfc_status",5),Bp.post(`/rfc_information/${this.rfcId}/update_status/`,t).then(t=>{window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,"request_for_change")})},getRunSheetList:function(){Bp.post(`/rfc_information/${this.locationId}/change_task_list/`).then(t=>{this.changeTaskList=t.data}).catch(t=>{this.showErrorModal(t,"request_for_change")})},getStatus:function(t){switch(t){case 1:return"Draft";case 2:return"Waiting for approval";case 3:return"Waiting to start";case 4:return"Task Started";case 5:return"Task Finished";case 6:return"Task FAILED";default:return"---"}},getUserName:function(t){var e=this.userList.filter(e=>e.id==t);return 0==e.length?"---":`${e[0].username}: ${e[0].first_name} ${e[0].last_name}`},updateChangeTaskList:function(t){this.changeTaskList=t},updateChangeTaskStatus:function(t,e){const n=new FormData;n.set("change_task_status",e),Bp.post(`/change_task_update_status/${t}/`,n).then(n=>{this.changeTaskList=this.changeTaskList.map(n=>n.pk==t?(n.fields.change_task_status=e,n):n)}).catch(t=>{this.showErrorModal(t,"request_for_change")})}},mounted(){this.getRunSheetList()}},Fp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Run Sheet List")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The run sheet will specify specific tasks for each user to implement. Each run item can be specified to;\n "),e("ul",[e("li",[this._v("Block other run items")]),this._v(" "),e("li",[this._v("Block out downtime")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{staticStyle:{width:"20%"}},[this._v("Timings")]),this._v(" "),e("td",{staticStyle:{width:"55%"}},[this._v("Title")]),this._v(" "),e("td",{staticStyle:{width:"25%"}},[this._v("Assigned Users")])])])}],!1,null,"1039222c",null);Vp.options.__file="src/js/components/request_for_change/modules/RfcRunSheetList.vue";var Hp=Vp.exports,Wp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.rfcApprovalsList.length>0?n("div",{staticClass:"card rfc-approvals-card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Request for Changes Waiting for Approval")]),t._v(" "),n("hr"),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following Request for Changes, require you to action them. You can either approve or reject these\n Request for Changes.\n ")]),t._v(" "),n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",t._l(t.rfcApprovalsList,(function(e){return n("tr",{staticClass:"bg-white"},[n("td",[n("a",{attrs:{href:t.rootUrl+"rfc_readonly/"+e.pk+"/"}},[n("p",[t._v(t._s(e.fields.rfc_title))]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v("RFC"+t._s(e.pk))])])]),t._v(" "),n("td",[t._v(t._s(t.getNiceDate(e.fields.rfc_implementation_start_date)))])])})),0)])])]):t._e()};Wp._withStripped=!0;const Gp=n(3);var Yp=J({name:"DashboardRfcApprovals.vue",props:{rootUrl:{type:String,default:"/"}},data:()=>({rfcApprovalsList:[]}),mixins:[Up,h],methods:{getRfcApprovalsList:function(){Gp.post(this.rootUrl+"dashboard/get/rfc_approvals/").then(t=>{this.rfcApprovalsList=t.data}).catch(t=>{this.showErrorModal(t,"Dashboard","")})}},mounted(){this.getRfcApprovalsList()}},Wp,[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",{attrs:{width:"75%"}},[this._v("Request for Change")]),this._v(" "),e("td",{attrs:{width:"25%"}},[this._v("Implementation Date")])])])}],!1,null,"6e3b3604",null);Yp.options.__file="src/js/components/dashboard/DashboardRfcApprovals.vue";var Kp=Yp.exports,Zp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showApprovalButton?n("div",{staticClass:"card submit-rfc-card"},[n("div",{staticClass:"card-body"},[t._m(0),t._v(" "),n("div",{staticClass:"row submit-row rfc-submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary",attrs:{href:"javascript:void(0)"},on:{click:t.approveRfc}},[t._v("Approve RFC")]),t._v(" "),n("a",{staticClass:"btn btn-danger reject-rfc",attrs:{href:"javascript:void(0)"},on:{click:t.rejectRfc}},[t._v("REJECT RFC")])])])])]):t._e()};Zp._withStripped=!0;const Xp=n(3);var Jp=J({name:"RfcApprovalButtons",props:{rfcResults:Array,groupLeaderCount:Number},mixins:[h,ie],computed:{showApprovalButton:function(){return 2===this.rfcResults[0].fields.rfc_status&&this.groupLeaderCount>0}},methods:{approveRfc:function(){const t=new FormData;t.set("rfc_status","3"),this.sendStatus(t)},rejectRfc:function(){const t=new FormData;t.set("rfc_status","6"),this.sendStatus(t)},sendStatus:function(t){this.showLoadingModal("Request for Change"),Xp.post(`/rfc_information/${this.rfcResults[0].pk}/update_status/`,t).then(t=>{this.closeLoadingModal(),window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,this.destination)})}}},Zp,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("h2",[this._v("Approval Process")]),this._v(" "),e("hr"),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Please read the complete process for this Request for Change. If you decided to approve, please\n click on the "Approve RFC" button. If you reject this Request for Change, please click on the\n "Reject RFC" button.\n ')])])}],!1,null,"7005f7d4",null);Jp.options.__file="src/js/components/request_for_change/modules/RfcApprovalButtons.vue";var Qp=Jp.exports,tm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Groups")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-groups",domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),t.groupList.length>0?n("div",{staticClass:"list-group"},t._l(t.groupList,(function(e){return n("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"/group_information/"+e.pk+"/"}},[n("strong",[t._v(t._s(e.fields.group_name))]),t._v(" "),n("br"),t._v(" "),n("p",{staticClass:"small-text"},[t._v("\n Parent Group: "+t._s(e.fields.parent_group)+"\n ")])])})),0):n("div",{staticClass:"alert alert-warning"},[t._v("Sorry, there are no groups.")]),t._v(" "),n("hr"),t._v(" "),t._m(0)])])};tm._withStripped=!0;const em=n(3);var nm=J({name:"SearchGroups",props:{groupResults:Array},mixins:[h,ut],data(){return{groupList:this.groupResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),em.post("/search/group/data/",t).then(t=>{this.groupList=t.data}).catch(t=>{this.showErrorModal(t,"Search Groups","")})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},tm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row submit-row"},[e("div",{staticClass:"col-md-12"},[e("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"/new_group/"}},[this._v("\n Add new Group\n ")])])])}],!1,null,"cf407972",null);nm.options.__file="src/js/components/search/SearchGroups.vue";var rm=nm.exports,im=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Permission Sets")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-groups",domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),t.permissionSetList.length>0?n("div",{staticClass:"list-group"},t._l(t.permissionSetList,(function(e){return n("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"/permission_set_information/"+e.pk+"/"}},[n("strong",[t._v(t._s(e.fields.permission_set_name))]),t._v(" "),n("br")])})),0):n("div",{staticClass:"alert alert-warning"},[t._v("Sorry, there are no permission sets.")]),t._v(" "),n("hr"),t._v(" "),t._m(0)])])};im._withStripped=!0;const om=n(3);var am=J({name:"SearchPermissionSets",props:{permissionSetResults:Array},mixins:[h,ut],data(){return{permissionSetList:this.permissionSetResults,searchModel:"",searchTimeout:""}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),om.post("/search/permission_set/data/",t).then(t=>{this.permissionSetList=t.data}).catch(t=>{this.showErrorModal(t,"Search Permission Set","")})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},im,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row submit-row"},[e("div",{staticClass:"col-md-12"},[e("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"/new_permission_set/"}},[this._v("\n Add new Permission Set\n ")])])])}],!1,null,"494bd99a",null);am.options.__file="src/js/components/search/SearchPermissionSets.vue";var sm=am.exports,lm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Search Groups")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Search:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchModel,expression:"searchModel"}],staticClass:"form-control search-groups",domProps:{value:t.searchModel},on:{input:function(e){e.target.composing||(t.searchModel=e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),t.userList.length>0?n("div",{staticClass:"list-group"},t._l(t.userList,(function(e){return n("a",{staticClass:"list-group-item list-group-item-action",attrs:{href:"/user_information/"+e.pk+"/"}},[n("strong",[t._v("\n "+t._s(e.username)+": "+t._s(e.first_name)+" "+t._s(e.last_name)+"\n ")]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("p",{staticClass:"small-text"},[t._v(t._s(e.email))])])})),0):n("div",{staticClass:"alert alert-warning"},[t._v("Sorry, there are no groups.")]),t._v(" "),n("hr"),t._v(" "),t._m(0)])])};lm._withStripped=!0;const cm=n(3);var dm=J({name:"SearchUsers",props:{userResults:Array},mixins:[h,ut],data(){return{searchModel:"",searchTimeout:"",userList:this.userResults}},methods:{getSearchResults:function(){const t=new FormData;t.set("search",this.searchModel),cm.post("/search/user/data/",t).then(t=>{this.userList=t.data}).catch(t=>{this.showErrorModal(t,"Search Users","")})}},watch:{searchModel:function(){this.searchTrigger({return_function:this.getSearchResults,searchTimeout:this.searchTimeout})}}},lm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row submit-row"},[e("div",{staticClass:"col-md-12"},[e("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"/new_user/"}},[this._v("\n Add new User\n ")])])])}],!1,null,"12cc9736",null);dm.options.__file="src/js/components/search/SearchUsers.vue";var um=dm.exports,pm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Group")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n Group Name\n "),!t.$v.groupNameModel.required&&t.$v.groupNameModel.$dirty?n("span",{staticClass:"error"},[t._v("\n Please suppy a title.\n ")]):t._e(),t._v(" "),t.uniqueGroupName?t._e():n("span",{staticClass:"error"},[t._v(" Please supply a unique name")]),t._v(" "),t.checkingGroupName?n("span",{staticClass:"error"},[t._v(" Checking group name...")]):t._e()]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.groupNameModel,expression:"groupNameModel"}],staticClass:"form-control",domProps:{value:t.groupNameModel},on:{input:function(e){e.target.composing||(t.groupNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Parent Group (optional)\n ")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.groupResultsFixList,label:"group_name"},model:{value:t.parentGroupModel,callback:function(e){t.parentGroupModel=e},expression:"parentGroupModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewGroup}},[t._v("Create new Group")])])])])])};pm._withStripped=!0;const mm=n(3);var fm=J({name:"NewGroup",props:{groupResults:Array},data:()=>({checkingGroupName:!1,groupNameModel:"",groupResultsFixList:[],parentGroupModel:"",uniqueGroupName:!0}),mixins:[h,ut],validations:{groupNameModel:{required:dt.required}},watch:{groupNameModel:function(){this.checkingGroupName=!0,this.searchTrigger({return_function:this.checkGroupName,searchTimeout:this.searchTimeout})}},methods:{addNewGroup:function(){if(this.$v.$touch(),this.$v.$invalid||!this.uniqueGroupName)return void this.showValidationErrorModal();const t=new FormData;t.set("group_name",this.groupNameModel),void 0!==this.parentGroupModel.value&&t.set("parent_group",this.parentGroupModel.value),mm.post("/new_group/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"New Group","")})},checkGroupName:function(){const t=new FormData;t.set("search",this.groupNameModel),mm.post("/group_information/check_group_name/",t).then(t=>{this.uniqueGroupName=0==t.data.length,this.checkingGroupName=!1}).catch(t=>{this.showErrorModal(t,"New Group","")})}},mounted(){this.groupResultsFixList=this.groupResults.map(t=>({group_name:t.fields.group_name,value:t.pk}))}},pm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Create a new group")]),this._v(" "),e("p",{staticClass:"text-instructional"},[this._v("\n Each group should contain a unique name. If the name already exists then we won't be able\n to create the group.\n ")])])}],!1,null,"4e45c1be",null);fm.options.__file="src/js/components/groups/NewGroup.vue";var hm=fm.exports,vm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Group Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Group Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.groupNameModel,expression:"groupNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.groupNameModel},on:{input:function(e){e.target.composing||(t.groupNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("Parent Group")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.parentGroupFixList,label:"group_name"},model:{value:t.parentGroupModel,callback:function(e){t.parentGroupModel=e},expression:"parentGroupModel"}})],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateGroup}},[t._v("Update Group")])])])])])};vm._withStripped=!0;const gm=n(3);var bm=J({name:"GroupInformation",props:{groupResults:Array,parentGroupResults:Array},data(){return{groupNameModel:this.groupResults[0].fields.group_name,parentGroupFixList:[],parentGroupModel:""}},mixins:[h,ie],methods:{updateGroup:function(){const t=new FormData;t.set("group_name",this.groupNameModel),void 0!==this.parentGroupModel.value&&t.set("parent_group",this.parentGroupModel.value),this.showLoadingModal("Group Information"),gm.post(`/group_information/${this.groupResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"group_information","")})}},mounted(){const t=this.parentGroupResults.map(t=>({group_name:t.fields.group_name,value:t.pk})),e=t.filter(t=>t.value===this.groupResults[0].fields.parent_group);this.parentGroupFixList=t,this.parentGroupModel="",e.length>0&&(this.parentGroupModel=e[0])}},vm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Group Information")]),this._v(" "),e("p",{staticClass:"text-instruction"},[this._v("\n Please edit the group information here. Please note - groups have to be unique!\n ")])])}],!1,null,"2187d7a8",null);bm.options.__file="src/js/components/groups/GroupInformation.vue";var _m=bm.exports,ym=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h2",[t._v("User List")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("table",{staticClass:"table"},[t._m(1),t._v(" "),n("tbody",t._l(t.uniqueListOfUsers,(function(e){return n("tr",[n("td",[t._v(t._s(e.first_name)+" "+t._s(e.last_name))]),t._v(" "),n("td",[t._v(t._s(t.getList(e.username,"group__group_name")))]),t._v(" "),n("td",[t._v(t._s(t.getList(e.username,"permission_set__permission_set_name")))])])})),0)])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addUser}},[t._v("Add User")])])])]),t._v(" "),n("admin-add-user",{attrs:{destination:t.destination,"location-id":t.locationId}})],1)};ym._withStripped=!0;var wm=J({name:"UserList",props:{destination:String,locationId:Number,userListResults:Array},data:()=>({uniqueListOfUsers:[]}),methods:{addUser:function(){new f.a(document.getElementById("addUserModal")).show()},getList:function(t,e){const n=this.userListResults.filter(e=>e.username==t);return[...new Set(n.map(t=>t[e]))]},getUniqueListOfUsers:function(){const t=this.userListResults.map(t=>({username:t.username,first_name:t.username__first_name,last_name:t.username__last_name,email:t.email}));var e=[];t.forEach(t=>{0===e.filter(e=>e.username===t.username).length&&e.push(t)}),this.uniqueListOfUsers=e}},mounted(){this.getUniqueListOfUsers()}},ym,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("List of Users")]),this._v(" "),e("p",{attrs:{text:"text-instructions"}},[this._v('\n The following are a list of users associated to INSERT DESTINATION. To add a new user please\n click on the "Add User" at the bottom of the page.\n ')])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("td",[this._v("User")]),this._v(" "),e("td",[this._v("Group List")]),this._v(" "),e("td",[this._v("Permission List")])])])}],!1,null,"e9580684",null);wm.options.__file="src/js/components/administration/UserList.vue";var xm=wm.exports,km=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addUserModal","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"addUserModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body"},["user"!==t.destination?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Search Users")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Please use the select to find the user you would like to add to this "+t._s(t.destination)+"\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Search User")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.userResults},model:{value:t.userModel,callback:function(e){t.userModel=e},expression:"userModel"}})],1)]):t._e(),t._v(" "),"user"!==t.destination?n("hr"):t._e(),t._v(" "),"group"!==t.destination?n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Search Groups")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.groupResults,multiple:""},model:{value:t.groupModel,callback:function(e){t.groupModel=e},expression:"groupModel"}})],1)]):t._e(),t._v(" "),"group"!==t.destination?n("hr"):t._e(),t._v(" "),"permission_set"!==t.destination?n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Search Permission Sets")]),t._v(" "),n("v-select",{staticClass:"form-control",attrs:{options:t.permissionSetResults,multiple:""},model:{value:t.permissionSetModel,callback:function(e){t.permissionSetModel=e},expression:"permissionSetModel"}})],1)]):t._e()]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addUser}},[t._v("Add User")])])])])])};km._withStripped=!0;const Cm=n(3);var Mm=J({name:"AdminAddUser",props:{destination:String,locationId:Number},data:()=>({groupModel:[],groupResults:[],permissionSetModel:[],permissionSetResults:[],userModel:[],userResults:[]}),mixins:[h],methods:{addUser:function(){const t=new FormData;t.set("username",this.userModel.value),this.groupModel.forEach(e=>{t.append("group",e.value)}),this.permissionSetModel.forEach(e=>{t.append("permission_set",e.value)}),Cm.post("/admin_add_user/",t).then(t=>{window.location.reload(!0)}).catch(t=>{this.showErrorModal(t,"Admin Add user","")})},getData:function(){Cm.post("/object_data/admin_add_user/").then(t=>{switch(this.groupResults=t.data.group_results.map(t=>({label:t.group_name,value:t.group_id})),this.permissionSetResults=t.data.permission_set_results.map(t=>({label:t.permission_set_name,value:t.permission_set_id})),this.userResults=t.data.user_results.map(t=>({label:`${t.id}: ${t.first_name} ${t.last_name}`,value:t.id})),this.destination){case"group":this.groupModel=this.groupResults.filter(t=>t.value===this.locationId);break;case"permission_set":this.permissionSetModel=this.permissionSetResults.filter(t=>t.value===this.locationId);break;case"user":this.userModel=this.userResults.filter(t=>t.value===this.locationId)[0]}}).catch(t=>{this.showErrorModal(t,"Admin Add User","")})}},mounted(){this.getData()}},km,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"addUserModalLabel"}},[this._v("Add User")]),this._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Search Groups")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please use the select to find the group you would like to add to this user to.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Search Permission Sets")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please use the select to find the permission set you would like to add to this user.\n ")])])}],!1,null,"b83e321c",null);Mm.options.__file="src/js/components/administration/AdminAddUser.vue";var Sm=Mm.exports,Tm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Permission Information")]),t._v(" "),n("hr"),t._v(" "),1===this.permissionSetResults[0].pk?n("div",{staticClass:"alert alert-danger"},[t._v("Can not edit administration permission set.")]):t._e(),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Permission Set Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.permissionSetNameModel,expression:"permissionSetNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.permissionSetNameModel},on:{input:function(e){e.target.composing||(t.permissionSetNameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"administrationAssignUserToGroupModel","property-label":"Assign User To Group Model","property-value":t.administrationAssignUserToGroupModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"administrationCreateGroupModel","property-label":"Create Groups","property-value":t.administrationCreateGroupModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"administrationCreatePermissionSetModel","property-label":"Create Permission Sets","property-value":t.administrationCreatePermissionSetModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"administrationCreateUserModel","property-label":"Create Users","property-value":t.administrationCreateUserModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"bugClientModel","property-label":"Configure bug clients","property-value":t.bugClientModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"customerModel","property-label":"Customers","property-value":t.customerModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"organisationModel","property-label":"Organisations","property-value":t.organisationModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"kanbanModel","property-label":"Kanban Boards","property-value":t.kanbanModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"kanbanCardModel","property-label":"Kanban Cards","property-value":t.kanbanCardModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"projectModel","property-label":"Projects","property-value":t.projectModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"taskModel","property-label":"Tasks","property-value":t.taskModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"requestForChangeModel","property-label":"Request for Change","property-value":t.requestForChangeModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"requirementModel","property-label":"Requirements","property-value":t.requirementModel,"list-of-choices":t.permissionLevel},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-md-8"},[n("single-permission-properties",{attrs:{property:"documentModel","property-label":"Grants upload ability","property-value":t.documentModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"kanbanCommentModel","property-label":"Grants comments on Kanban Boards","property-value":t.kanbanCommentModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"projectHistoryModel","property-label":"Grants comments on Projects","property-value":t.projectHistoryModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}}),t._v(" "),n("single-permission-properties",{attrs:{property:"taskHistoryModel","property-label":"Grants comments on Tasks","property-value":t.taskHistoryModel,"list-of-choices":t.permissionBoolean},on:{update_property_value:function(e){return t.updatePropertyValue(e)}}})],1)]),t._v(" "),1!==this.permissionSetResults[0].pk?n("hr"):t._e(),t._v(" "),1!==this.permissionSetResults[0].pk?n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.saveChanges}},[t._v("Save Permission Set")])])]):t._e()])])};Tm._withStripped=!0;const Em=n(3);var jm=J({name:"PermissionInformation",props:{permissionBoolean:Array,permissionLevel:Array,permissionSetResults:Array},data(){return{permissionSetNameModel:this.permissionSetResults[0].fields.permission_set_name,administrationAssignUserToGroupModel:this.permissionSetResults[0].fields.administration_assign_user_to_group,administrationCreateGroupModel:this.permissionSetResults[0].fields.administration_create_group,administrationCreatePermissionSetModel:this.permissionSetResults[0].fields.administration_create_permission_set,administrationCreateUserModel:this.permissionSetResults[0].fields.administration_create_user,bugClientModel:this.permissionSetResults[0].fields.bug_client,customerModel:this.permissionSetResults[0].fields.customer,kanbanModel:this.permissionSetResults[0].fields.kanban_board,kanbanCardModel:this.permissionSetResults[0].fields.kanban_card,organisationModel:this.permissionSetResults[0].fields.organisation,projectModel:this.permissionSetResults[0].fields.project,requestForChangeModel:this.permissionSetResults[0].fields.request_for_change,requirementModel:this.permissionSetResults[0].fields.requirement,taskModel:this.permissionSetResults[0].fields.task,documentModel:this.permissionSetResults[0].fields.document,kanbanCommentModel:this.permissionSetResults[0].fields.kanban_comment,projectHistoryModel:this.permissionSetResults[0].fields.project_history,taskHistoryModel:this.permissionSetResults[0].fields.task_history}},mixins:[h,ie],methods:{saveChanges:function(){const t=new FormData;t.set("permission_set_id",this.permissionSetResults[0].pk),t.set("permission_set_name",this.permissionSetNameModel),t.set("administration_assign_user_to_group",this.administrationAssignUserToGroupModel),t.set("administration_create_group",this.administrationCreateGroupModel),t.set("administration_create_permission_set",this.administrationCreatePermissionSetModel),t.set("administration_create_user",this.administrationCreateUserModel),t.set("bug_client",this.bugClientModel),t.set("customer",this.customerModel),t.set("kanban_board",this.kanbanModel),t.set("kanban_card",this.kanbanCardModel),t.set("organisation",this.organisationModel),t.set("project",this.projectModel),t.set("requirement",this.requirementModel),t.set("request_for_change",this.requestForChangeModel),t.set("task",this.taskModel),t.set("document",this.documentModel),t.set("kanban_comment",this.kanbanCommentModel),t.set("project_history",this.projectHistoryModel),t.set("task_history",this.taskHistoryModel),this.showLoadingModal("permission set"),Em.post(`/permission_set_information/${this.permissionSetResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"Permission Set","")})},updatePropertyValue:function(t){this._data[t.property]=t.value}}},Tm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Permission Set Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("Please supply a unique name for the permission set.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Administration Permissions")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The following are administration permissions. These should be only applied to permission sets\n where they are only granted to administrators.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Bug Permissions")]),this._v(" "),e("p",{staticClass:"text-instructions"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Customers and Organisations")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Object Permissions")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Extra Permissions")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n The following permissions are added permissions on top of any read only. For example, if a read\n only user requires the ability to upload documentation, then you will need to enable the\n "Document" permissions here.\n ')])])}],!1,null,"59588476",null);jm.options.__file="src/js/components/permissions/PermissionInformation.vue";var Om=jm.exports,Im=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("label",[t._v(t._s(t.propertyLabel))]),t._v(" "),n("v-select",{staticClass:"form-group",attrs:{options:t.fixListOfChoices},model:{value:t.propertyModel,callback:function(e){t.propertyModel=e},expression:"propertyModel"}})],1)};Im._withStripped=!0;var Lm=J({name:"SinglePermissionProperties",props:{property:String,propertyLabel:String,propertyValue:{Type:Number,default:0},listOfChoices:Array},data(){return{propertyModel:{label:this.getLabel(this.propertyValue),value:this.propertyValue},fixListOfChoices:[]}},watch:{propertyModel:function(){null===this.propertyModel&&(this.propertyModel={label:this.getLabel(0),value:0}),this.$emit("update_property_value",{property:this.property,value:this.propertyModel.value})}},methods:{getLabel:function(t){const e=this.listOfChoices.filter(e=>e[0]===t);return 0===e.length?"":e[0][1]}},mounted(){this.fixListOfChoices=this.listOfChoices.map(t=>({label:t[1],value:t[0]}))}},Im,[],!1,null,"3a9a8a81",null);Lm.options.__file="src/js/components/permissions/SinglePermissionProperties.vue";var Dm=Lm.exports,Nm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New Permission Set")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Permission Set Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.permissionSetNameModel,expression:"permissionSetNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.permissionSetNameModel},on:{input:function(e){e.target.composing||(t.permissionSetNameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addNewPermissionSet}},[t._v("Create new Permission Set")])])])])])};Nm._withStripped=!0;const $m=n(3);var Am=J({name:"NewPermissionSet",props:{},data:()=>({permissionSetNameModel:""}),mixins:[h],methods:{addNewPermissionSet:function(){const t=new FormData;t.set("permission_set_name",this.permissionSetNameModel),$m.post("/new_permission_set/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"New Permission Set","")})}}},Nm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("New Permission Set")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please enter in a unique permission set name. Please note - all values are default permission\n level of 0.\n ")])])}],!1,null,"f57e636c",null);Am.options.__file="src/js/components/permissions/NewPermissionSet.vue";var Rm=Am.exports,Pm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("New User")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Username: ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.usernameModel,expression:"usernameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.usernameModel},on:{input:function(e){e.target.composing||(t.usernameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("First Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNameModel,expression:"firstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.firstNameModel},on:{input:function(e){e.target.composing||(t.firstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Last Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastNameModel,expression:"lastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.lastNameModel},on:{input:function(e){e.target.composing||(t.lastNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Email:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.emailModel,expression:"emailModel"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.emailModel},on:{input:function(e){e.target.composing||(t.emailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password1Model,expression:"password1Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password1Model},on:{input:function(e){e.target.composing||(t.password1Model=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Retype Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password2Model,expression:"password2Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password2Model},on:{input:function(e){e.target.composing||(t.password2Model=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.addUser}},[t._v("\n Add new User\n ")])])])])])};Pm._withStripped=!0;const qm=n(3);var zm=J({name:"NewUser",props:{},data:()=>({emailModel:"",firstNameModel:"",lastNameModel:"",password1Model:"",password2Model:"",usernameModel:""}),mixins:[h],methods:{addUser:function(){const t=new FormData;t.set("username",this.usernameModel),t.set("email",this.emailModel),t.set("first_name",this.firstNameModel),t.set("last_name",this.lastNameModel),t.set("password1",this.password1Model),t.set("password2",this.password2Model),qm.post("/new_user/save/",t).then(t=>{window.location.href=t.data}).catch(t=>{this.showErrorModal(t,"New User","")})}}},Pm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("New User")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please create a unique username, followed by the basic user details.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("User Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the user details.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Passwords")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please type in a user password. The user will be able to reset their password to log in.\n ")])])}],!1,null,"9f037d30",null);zm.options.__file="src/js/components/users/NewUser.vue";var Fm=zm.exports,Um=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("User Information")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("strong",[t._v("Username:")]),t._v(" "+t._s(t.userResults[0].fields.username)+"\n "),n("strong",[t._v(" | ID:")]),t._v(" "+t._s(t.userResults[0].pk)+"\n ")])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("First Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNameModel,expression:"firstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.firstNameModel},on:{input:function(e){e.target.composing||(t.firstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Last Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastNameModel,expression:"lastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.lastNameModel},on:{input:function(e){e.target.composing||(t.lastNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Email:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.emailModel,expression:"emailModel"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.emailModel},on:{input:function(e){e.target.composing||(t.emailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Is User Active? ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.isActiveModel,expression:"isActiveModel"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isActiveModel)?t._i(t.isActiveModel,null)>-1:t.isActiveModel},on:{change:function(e){var n=t.isActiveModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isActiveModel=n.concat([null])):o>-1&&(t.isActiveModel=n.slice(0,o).concat(n.slice(o+1)))}else t.isActiveModel=i}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Is User a Superuser? ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.isSuperuserModel,expression:"isSuperuserModel"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isSuperuserModel)?t._i(t.isSuperuserModel,null)>-1:t.isSuperuserModel},on:{change:function(e){var n=t.isSuperuserModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isSuperuserModel=n.concat([null])):o>-1&&(t.isSuperuserModel=n.slice(0,o).concat(n.slice(o+1)))}else t.isSuperuserModel=i}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateUser}},[t._v("\n Update User Details\n ")])])])])])};Um._withStripped=!0;const Bm=n(3);var Vm=J({name:"UserInformation",props:{userResults:Array},data(){return{emailModel:this.userResults[0].fields.email,isActiveModel:this.userResults[0].fields.is_active,isSuperuserModel:this.userResults[0].fields.is_superuser,firstNameModel:this.userResults[0].fields.first_name,lastNameModel:this.userResults[0].fields.last_name}},mixins:[h,ie],methods:{updateUser:function(){this.showLoadingModal("User Information");const t=new FormData;t.set("email",this.emailModel),t.set("is_active",this.isActiveModel),t.set("is_superuser",this.isSuperuserModel),t.set("first_name",this.firstNameModel),t.set("last_name",this.lastNameModel),Bm.post(`/user_information/${this.userResults[0].pk}/save/`,t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"Update User",this.userResults[0].pk)})}}},Um,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("UserName")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The username is set and can not be changed from this location. If you need to change the\n username, please go to the Django Admin Panel.\n ")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n The ID is the primary key assigned to the username. This can not be edited. It can be ignored.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("User Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please fill out the user details.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Active User")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Untick this option if the user is no longer active.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Is User a Superuser")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Tick this functionality if you would like the user to gain access to the /admin/ functionality.\n This is not recommended for anyone outside of an IT team.\n ")])])}],!1,null,"698a8c3e",null);Vm.options.__file="src/js/components/users/UserInformation.vue";var Hm=Vm.exports,Wm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h2",[t._v("Reset Password")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("button",{staticClass:"btn btn-warning",attrs:{type:"button"},on:{click:t.passwordResetClicked}},[t._v("\n Password Reset\n ")])])])])]),t._v(" "),n("div",{staticClass:"modal fade",attrs:{id:"passwordResetModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.passwordIcon}}),t._v(" Reset User Password")],1),t._v(" "),t._m(1)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password1Model,expression:"password1Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password1Model},on:{input:function(e){e.target.composing||(t.password1Model=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("Confirm Password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password2Model,expression:"password2Model"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.password2Model},on:{input:function(e){e.target.composing||(t.password2Model=e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.disableButton},on:{click:t.updatePassword}},[t._v("Update Password")])])])])])])};Wm._withStripped=!0;const Gm=n(3);var Ym=J({name:"ResetUserPassword",props:{location:String,username:Number},mixins:[h,Z],data:()=>({password1Model:"",password2Model:""}),computed:{disableButton:function(){let t=this.password1Model==this.password2Model,e=this.password1Model.length>=8;return!(t&&1==e)}},methods:{closeModal:function(){this.password1Model="",this.password2Model="",document.getElementById("passwordResetCloseButton").click()},passwordResetClicked:function(){new f.a(document.getElementById("passwordResetModal")).show()},updatePassword:function(){const t=new FormData;t.set("password",this.password1Model),t.set("username",this.username),Gm.post(`/${this.location}/update_user_password/`,t).then(t=>{this.closeModal()}).catch(t=>{this.showErrorModal(t,"Saving Password Issue","")})}}},Wm,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Passwords")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Users have the ability to reset their password from the login page. If needed, please click on\n the link to be taken to the password reset form.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"passwordResetCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"7580d9dc",null);Ym.options.__file="src/js/components/users/ResetUserPassword.vue";var Km=Ym.exports,Zm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Unassigned Objects")]),t._v(" "),n("hr"),t._v(" "),t.isLoaded?t._e():n("div",{staticClass:"alert alert-dark"},[t._v("\n Still obtaining a list of assigned objects\n ")]),t._v(" "),t.objectResults.requirement.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.requirement,"import-variables":t.requirementVariables,destination:"requirement","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.project.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.project,"import-variables":t.projectVariables,destination:"project","root-url":t.rootUrl}}):t._e(),t._v(" "),t.objectResults.task.length>0?n("render-object-table",{attrs:{"search-results":t.objectResults.task,"import-variables":t.taskVariables,destination:"task","root-url":t.rootUrl}}):t._e(),t._v(" "),0===t.countObjects&&t.isLoaded?n("div",{staticClass:"alert alert-primary"},[t._v("\n Good Work - all objects have been assigned to at least one user.\n ")]):t._e()],1)])};Zm._withStripped=!0;const Xm=n(3);var Jm=J({name:"DashboardUnassignedObjects",props:{rootUrl:{type:String,default:"/"}},data:()=>({isLoaded:!1,objectResults:{requirement:[],project:[],task:[]},projectVariables:{header:"Projects",prefix:"Pro",id:"project_id",title:"project_name",status:"project_status"},requirementVariables:{header:"Your Requirements",prefix:"Req",id:"requirement_id",title:"requirement_title",status:"requirement_status__requirement_status"},taskVariables:{header:"Tasks",prefix:"Task",id:"task_id",title:"task_short_description",status:"task_status"}}),mixins:[h],methods:{getMyObjects:function(){Xm.post("/dashboard/get/unassigned_objects/").then(t=>{this.objectResults=t.data,this.isLoaded=!0}).catch(t=>{this.showErrorModal(t,"Dashboard Unassigned Objects")})}},computed:{countObjects:function(){return this.objectResults.requirement.length+this.objectResults.project.length+this.objectResults.task.length}},mounted(){this.getMyObjects()}},Zm,[],!1,null,null,null);Jm.options.__file="src/js/components/dashboard/DashboardUnassignedObjects.vue";var Qm=Jm.exports,tf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.userList.length>0?n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Users with no groups")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8 user-card-layouts"},t._l(t.userList,(function(e){return n("div",{staticClass:"user-card",on:{click:function(n){return t.goToUser(e.id)}}},[n("img",{staticClass:"default-user-profile",attrs:{src:t.staticUrl+"NearBeach/images/placeholder/people_tax.svg",alt:"default profile"}}),t._v(" "),n("div",{staticClass:"user-details"},[n("strong",[t._v(t._s(e.first_name)+" "+t._s(e.last_name))]),n("br"),t._v("\n "+t._s(e.username)+"\n "),n("div",{staticClass:"spacer"}),t._v("\n "+t._s(e.email)+"\n ")])])})),0)])])]):t._e()};tf._withStripped=!0;const ef=n(3);var nf=J({name:"DashboardUsersWithNoGroups",props:{rootUrl:{type:String,default:"/"},staticUrl:{type:String,default:"/"}},data:()=>({userList:[]}),methods:{getUserList:function(){ef.post(this.rootUrl+"dashboard/get/users_with_no_groups/").then(t=>{this.userList=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},goToUser:function(t){window.location.href=`${this.rootUrl}user_information/${t}/`}},mounted(){this.getUserList()}},tf,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Users with no groups")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please take action! The following users DO NOT have any groups associated with them. They will\n not be able to log in.\n ")])])}],!1,null,null,null);nf.options.__file="src/js/components/dashboard/DashboardUsersWithNoGroups.vue";var rf=nf.exports,of=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v(t._s(t.kanbanBoardResults[0].fields.kanban_board_name))]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Column","property-list":t.columnModel,source:"columnModel","is-dirty":t.$v.columnModel.$dirty,"is-new-mode":!1,"kanban-board-id":t.kanbanBoardResults[0].pk},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("kanban-property-order",{attrs:{"property-name":"Level","property-list":t.levelModel,source:"levelModel","is-dirty":t.$v.columnModel.$dirty,"is-new-mode":!1,"kanban-board-id":t.kanbanBoardResults[0].pk},on:{update_property_list:function(e){return t.updatePropertyList(e)}}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("button",{staticClass:"btn btn-danger",on:{click:t.closeKanban}},[t._v("\n Close Kanban Board\n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary save-changes",on:{click:t.backToBoard}},[t._v("\n Back to Kanban Board\n ")])])])])])};of._withStripped=!0;const af=n(3);var sf=J({name:"KanbanEditBoard",props:{columnResults:Array,kanbanBoardResults:Array,levelResults:Array,rootUrl:{type:String,default:"/"}},mixins:[h,ut],data:()=>({columnModel:[],levelModel:[]}),validations:{columnModel:{required:dt.required},levelModel:{required:dt.required}},methods:{backToBoard:function(){window.location.href=`${this.rootUrl}kanban_information/${this.kanbanBoardResults[0].pk}/`},closeKanban:function(){af.post(`/kanban_information/${this.kanbanBoardResults[0].pk}/close_board/`).then(t=>{window.location.href="/"}).catch(t=>{this.showErrorModal(t,this.destination)})},updatePropertyList:function(t){this[t.source]=t.data}},mounted(){this.columnModel=this.columnResults.map(t=>({id:t.pk,title:t.fields.kanban_column_name})),this.levelModel=this.levelResults.map(t=>({id:t.pk,title:t.fields.kanban_level_name}))}},of,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("h2",[this._v("Columns & Levels")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Drag the cards around to sort out the columns how you want them.\n ")])])}],!1,null,"599a688e",null);sf.options.__file="src/js/components/kanban/KanbanEditBoard.vue";var lf=sf.exports,cf=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card kanban-group-permissions"},[e("div",{staticClass:"card-body"},[e("groups-and-users-module",{attrs:{"location-id":this.locationId,destination:"kanban_board"}})],1)])};cf._withStripped=!0;var df=J({name:"KanbanGroupPermissions",props:{locationId:Number}},cf,[],!1,null,null,null);df.options.__file="src/js/components/kanban/KanbanGroupPermissions.vue";var uf=df.exports,pf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("My Profile")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("p",[n("strong",[t._v("Username: ")]),t._v(t._s(t.userResults[0].username)+"\n ")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("\n First Name:\n "),!t.$v.firstNameModel.required&&t.$v.firstNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a first name.")]):t._e(),t._v(" "),n("br")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNameModel,expression:"firstNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.firstNameModel},on:{input:function(e){e.target.composing||(t.firstNameModel=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("label",[t._v("\n Last Name:\n "),!t.$v.lastNameModel.required&&t.$v.lastNameModel.$dirty?n("span",{staticClass:"error"},[t._v(" Please suppy a last name.")]):t._e(),t._v(" "),n("br")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.lastNameModel,expression:"lastNameModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.lastNameModel},on:{input:function(e){e.target.composing||(t.lastNameModel=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"spacer"}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("label",[t._v("\n Email:\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.emailModel,expression:"emailModel"}],staticClass:"form-control",attrs:{type:"email",disabled:"true"},domProps:{value:t.emailModel},on:{input:function(e){e.target.composing||(t.emailModel=e.target.value)}}})])])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.updateUser}},[t._v("\n Update User Details\n ")])])])])])};pf._withStripped=!0;const mf=n(3);var ff=J({name:"ProfileInformation",props:{userResults:Array},data(){return{emailModel:this.userResults[0].email,firstNameModel:this.userResults[0].first_name,lastNameModel:this.userResults[0].last_name}},mixins:[h,ie],validations:{lastNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)},firstNameModel:{required:dt.required,maxLength:Object(dt.maxLength)(255)}},methods:{updateUser:function(){if(this.$v.$touch(),this.$v.$invalid)return void this.showValidationErrorModal();const t=new FormData;t.set("username",this.userResults[0].id),t.set("first_name",this.firstNameModel),t.set("last_name",this.lastNameModel),this.showLoadingModal("Project"),mf.post("/profile_information/update_data/",t).then(t=>{this.closeLoadingModal()}).catch(t=>{this.showErrorModal(t,"profile")})}}},pf,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("User Details")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please update your details.\n ")])])}],!1,null,null,null);ff.options.__file="src/js/components/profile/ProfileInformation.vue";var hf=ff.exports,vf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("h1",[t._v("Change Task - "+t._s(t.changeTaskResults[0].pk))]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Change Title:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeTitleModel,expression:"changeTitleModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeTitleModel},on:{input:function(e){e.target.composing||(t.changeTitleModel=e.target.value)}}})])])]),t._v(" "),n("hr"),t._v(" "),n("between-dates",{attrs:{destination:"Change Task"},on:{update_dates:function(e){return t.updateDates(e)}}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Change Task Description (Optional):")]),t._v(" "),n("editor",{attrs:{init:{height:300,menubar:!1,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | "},content_css:!1,skin:!1},model:{value:t.changeDescriptionModel,callback:function(e){t.changeDescriptionModel=e},expression:"changeDescriptionModel"}})],1)]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group"},[n("label",[t._v("Stakeholders:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeStakeholderModel,expression:"changeStakeholderModel"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.changeStakeholderModel},on:{input:function(e){e.target.composing||(t.changeStakeholderModel=e.target.value)}}})]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"btn-group",attrs:{role:"group","aria-label":"Basic checkbox toggle button group"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.changeIsDowntimeModel,expression:"changeIsDowntimeModel"}],staticClass:"btn-check",attrs:{type:"checkbox",id:"isDowntime",autocomplete:"off"},domProps:{checked:Array.isArray(t.changeIsDowntimeModel)?t._i(t.changeIsDowntimeModel,null)>-1:t.changeIsDowntimeModel},on:{change:function(e){var n=t.changeIsDowntimeModel,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.changeIsDowntimeModel=n.concat([null])):o>-1&&(t.changeIsDowntimeModel=n.slice(0,o).concat(n.slice(o+1)))}else t.changeIsDowntimeModel=i}}}),t._v(" "),n("label",{staticClass:"btn btn-outline-primary",attrs:{for:"isDowntime"}},[t._v(t._s(t.isDowntime()))])])])]),t._v(" "),n("hr"),t._v(" "),n("a",{staticClass:"btn btn-secondary",attrs:{href:"/rfc_information/"+t.changeTaskResults[0].fields.request_for_change+"/"}},[t._v("Cancel")]),t._v(" "),1==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.saveChangeTask}},[t._v("Save")]):t._e(),t._v(" "),3==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-danger save-changes",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.updateStatus(4)}}},[t._v("Start Task")]):t._e(),t._v(" "),4==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-success save-changes",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.updateStatus(5)}}},[t._v("Finish Task")]):t._e(),t._v(" "),4==t.changeTaskResults[0].fields.change_task_status?n("a",{staticClass:"btn btn-danger save-changes",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.updateStatus(6)}}},[t._v("REJECT Task")]):t._e()],1)])};vf._withStripped=!0;const gf=n(3);var bf={name:"ChangeTaskInformation",props:{changeTaskResults:Array},data(){return{changeTitleModel:this.changeTaskResults[0].fields.change_task_title,changeDescriptionModel:this.changeTaskResults[0].fields.change_task_description,changeStakeholderModel:this.changeTaskResults[0].fields.change_task_required_by,changeIsDowntimeModel:this.changeTaskResults[0].fields.is_downtime}},methods:{isDowntime:function(){return this.changeIsDowntimeModel?"Downtime Scheduled":"No Downtime"},saveChangeTask:function(t){t.preventDefault();var e=parseInt(this.changeEndDateModel)-parseInt(this.changeStartDateModel);const n=new FormData;n.set("change_task_title",this.changeTitleModel),n.set("change_task_description",this.changeDescriptionModel),n.set("change_task_start_date",this.changeStartDateModel),n.set("change_task_end_date",this.changeEndDateModel),n.set("change_task_seconds",e.toString()),n.set("change_task_required_by",this.changeStakeholderModel),n.set("is_downtime",this.changeIsDowntimeModel),gf.post(`/change_task_information/${this.changeTaskResults[0].pk}/save/`,n).then(t=>{window.location.href=`/rfc_information/${this.changeTaskResults[0].fields.request_for_change}/`}).catch(t=>{})},updateStatus:function(t){const e=new FormData;e.set("change_task_status",t),gf.post(`/change_task_update_status/${this.changeTaskResults[0].pk}/`,e).then(t=>{window.location.reload(!0)}).catch(t=>{})},updateDates:function(t){this.changeStartDateModel=t.start_date,this.changeEndDateModel=t.end_date}}},_f=(n(187),J(bf,vf,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Change Task Title")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please write a short title of the description for this task. i.e Backup of Database\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Description")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Write a detail description of this particular task.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Misc")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n Please fill in the stakeholders for this particular change task. Default value will be\n "Stakeholders".\n ')]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v('\n To state if there is downtime, please click the "No Downtime" to change it\'s statue.\n ')])])}],!1,null,"7905d66a",null));_f.options.__file="src/js/components/request_for_change/ChangeTaskInformation.vue";var yf=_f.exports,wf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.noteAdd}}),t._v(" Note History")],1),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n The following are saved notes against this "+t._s(t.destination)+". Add notes by clicking on the button below.\n ")]),t._v(" "),n("list-notes",{attrs:{"note-history-results":t.noteHistoryResults,destination:t.destination}}),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.createNewNote}},[t._v("Add Note to "+t._s(t.destination))])])]),t._v(" "),n("new-history-note-wizard",{attrs:{"location-id":t.locationId,destination:t.destination},on:{update_note_history_results:function(e){return t.updateNoteHistoryResults(e)}}})],1)};wf._withStripped=!0;const xf=n(3);var kf=J({name:"NotesModule",components:{},props:["destination","locationId"],mixins:[h,Z],data:()=>({noteHistoryResults:[]}),methods:{createNewNote:function(){new f.a(document.getElementById("newNoteModal")).show()},getNoteHistoryResults:function(){xf.post(`/object_data/${this.destination}/${this.locationId}/note_list/`).then(t=>{this.noteHistoryResults=t.data}).catch(t=>{this.showErrorModal(t,this.destination)})},updateNoteHistoryResults:function(t){this.noteHistoryResults.push(t[0])}},mounted(){this.getNoteHistoryResults()}},wf,[],!1,null,"29486be2",null);kf.options.__file="src/js/components/modules/sub_modules/NotesModule.vue";var Cf=kf.exports,Mf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v("Assigned Tags")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Here are all tags associated with this "+t._s(t.destination)+'. You can add more\n tags by clicking on the "Add Tag" button.\n ')]),t._v(" "),n("div",{staticClass:"tag-list"},t._l(t.tagList,(function(e){return n("div",{key:e.pk,staticClass:"single-tag",style:"background-color: "+e.fields.tag_colour+";"},[t._v("\n "+t._s(e.fields.tag_name)+"\n "),n("span",{on:{click:function(n){return t.removeTag(e.pk)}}},[n("IconifyIcon",{attrs:{icon:t.icons.xCircle}})],1)])})),0),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row submit-row"},[n("div",{staticClass:"col-md-12"},[n("a",{staticClass:"btn btn-primary save-changes",attrs:{href:"javascript:void(0)"},on:{click:t.createNewTag}},[t._v("Add Tag to "+t._s(t.destination))])])]),t._v(" "),n("add-tag-wizard",{attrs:{destination:t.destination,"location-id":t.locationId,"assigned-tags":t.tagList},on:{add_tags:function(e){return t.addTags(e)}}})],1)};Mf._withStripped=!0;var Sf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"addTagModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h2",[n("IconifyIcon",{attrs:{icon:t.icons.usersIcon}}),t._v(" Add Tags Wizard")],1),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("strong",[t._v("Add Tag")]),t._v(" "),n("p",{staticClass:"text-instructions"},[t._v("\n Use the dropdown to select one or many lables to add to the "+t._s(t.destination)+".\n ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("All Tag List")]),t._v(" "),n("v-select",{attrs:{label:"tag",multiple:"",options:t.tagList},model:{value:t.tagModel,callback:function(e){t.tagModel=e},expression:"tagModel"}})],1)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addTag}},[t._v("Add Tag")])])])])])};Sf._withStripped=!0;const Tf=n(3);var Ef=J({name:"AddTagWizard",props:{assignedTags:{type:Array,default:()=>[]},destination:String,locationId:Number},mixins:[h,Z],data:()=>({allTagList:[],tagModel:[]}),computed:{tagList:function(){return this.allTagList.filter(t=>this.assignedTags.findIndex(e=>e.pk==t.value)<0)}},methods:{addTag:function(){const t=new FormData;this.tagModel.forEach(e=>{t.append("tag_id",e.value)}),Tf.post(`/object_data/${this.destination}/${this.locationId}/add_tags/`,t).then(t=>{this.$emit("add_tags",t.data),document.getElementById("addTagsCloseButton").click(),this.tagModel=[]})},getTagList:function(){Tf.post("/object_data/tag_list_all/").then(t=>{this.allTagList=t.data.map(t=>({value:t.pk,tag:t.fields.tag_name}))}).catch(t=>{})}},mounted(){this.getTagList()}},Sf,[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close",id:"addTagsCloseButton"}},[e("span",{attrs:{"aria-hidden":"true"}})])}],!1,null,"21d92d1f",null);Ef.options.__file="src/js/components/modules/wizards/AddTagWizard.vue";var jf=Ef.exports;const Of=n(3);var If=J({components:{AddTagWizard:jf},name:"ListTagsModule",props:{destination:String,locationId:Number},data:()=>({tagList:[]}),mixins:[Z],methods:{addTags:function(t){this.tagList=t},createNewTag:function(){new f.a(document.getElementById("addTagModal")).show()},getAssignedTags:function(){Of.post(`/object_data/${this.destination}/${this.locationId}/tag_list/`).then(t=>{this.tagList=t.data}).catch(t=>{})},removeTag:function(t){const e=new FormData;e.set("tag",t),e.set("object_enum",this.destination),e.set("object_id",this.locationId),Of.post("/object_data/delete_tag/",e).then(e=>{this.tagList=this.tagList.filter(e=>e.pk!==t)}).catch(t=>{})}},mounted(){this.getAssignedTags()}},Mf,[],!1,null,null,null);If.options.__file="src/js/components/modules/sub_modules/ListTagsModule.vue";var Lf=If.exports,Df=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"editTagModal","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"editTagModalLabel","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog"},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("label",[t._v("Tag Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tagNameModel,expression:"tagNameModel"}],staticClass:"form-control",domProps:{value:t.tagNameModel},on:{input:function(e){e.target.composing||(t.tagNameModel=e.target.value)}}})])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[t._m(2),t._v(" "),n("div",{staticClass:"colour-picker col-md-8"},t._l(t.colourList,(function(e){return n("div",{key:e,class:t.getClasses(e),style:"background-color: "+e+";",on:{click:function(n){return t.updateColour(e)}}})})),0)])]),t._v(" "),n("div",{staticClass:"modal-footer"},[0!==t.tagId?n("button",{staticClass:"btn btn-danger delete-tag",attrs:{type:"button"},on:{click:t.deleteTag}},[t._v("Delete Tag")]):t._e(),t._v(" "),n("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-bs-dismiss":"modal"}},[t._v("Close")]),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:!t.canSave},on:{click:t.saveTag}},[t._v("Save Tag")])])])])])};Df._withStripped=!0;const Nf=n(3);var $f=J({name:"EditTagModal",props:{existingTags:Array,tagColour:String,tagId:Number,tagName:String},data(){return{colourList:["#37cbd2","#8b8295","#6f84bb","#1fc4b5","#651794","#7ea52c","#6df79e","#53ef5f","#79c121","#91fbde","#e01059","#33ae24"],tagColourModel:this.tagColour,tagNameModel:this.tagName}},watch:{tagColour:function(){this.tagColourModel=this.tagColour},tagName:function(){this.tagNameModel=this.tagName}},computed:{canSave:function(){return 0===this.existingTags.filter(t=>t.fields.tag_name.toUpperCase()===this.tagNameModel.toUpperCase()&&t.pk!==this.tagId).length}},methods:{deleteTag:function(){Nf.post(`/tag/delete/${this.tagId}/`).then(t=>{this.$emit("delete_tag",{tag_id:this.tagId}),document.getElementById("editTagCloseModal").click()}).catch(t=>{})},getClasses:function(t){let e="single-colour";return t==this.tagColourModel&&(e+=" selected-colour"),e},newTag:function(t){Nf.post("/tag/new/",t).then(t=>{this.$emit("new_tag",t.data),document.getElementById("editTagCloseModal").click()}).catch(t=>{})},saveTag:function(){const t=new FormData;t.set("tag_id",this.tagId),t.set("tag_name",this.tagNameModel),t.set("tag_colour",this.tagColourModel),0===this.tagId?this.newTag(t):this.updateTag(t)},updateColour:function(t){this.tagColourModel=t},updateTag:function(t){Nf.post("/tag/save/",t).then(t=>{this.$emit("update_tags",{tag_id:this.tagId,tag_name:this.tagNameModel,tag_colour:this.tagColourModel}),document.getElementById("editTagCloseModal").click()}).catch(t=>{})}}},Df,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"editTagModalLabel"}},[this._v("Edit Tag")]),this._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button",id:"editTagCloseModal","data-bs-dismiss":"modal","aria-label":"Close"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Edit Tags")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please give the tag an appropriate name. Please do not\n pick an existing tag name.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-md-4"},[e("strong",[this._v("Pick Colour")]),this._v(" "),e("p",{staticClass:"text-instructions"},[this._v("\n Please click on a preferred colour. This will be tags colour.\n ")])])}],!1,null,null,null);$f.options.__file="src/js/components/tags/EditTagModal.vue";var Af,Rf=$f.exports,Pf=(n(189),n(116)),qf=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],zf=function(t){return-1!==qf.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())},Ff=function(t,e,n){var r=e.$props.value?e.$props.value:"",i=e.$props.initialValue?e.$props.initialValue:"";n.setContent(r||(e.initialized?e.cache:i)),e.$watch("value",(function(t,r){n&&"string"==typeof t&&t!==r&&t!==n.getContent({format:e.$props.outputFormat})&&n.setContent(t)})),e.$listeners.input&&function(t,e){var n=t.$props.modelEvents?t.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;e.on(r||"change input undo redo",(function(){t.$emit("input",e.getContent({format:t.$props.outputFormat}))}))}(e,n),function(t,e,n){Object.keys(e).filter(zf).forEach((function(r){var i=e[r];"function"==typeof i&&("onInit"===r?i(t,n):n.on(r.substring(2),(function(t){return i(t,n)})))}))}(t,e.$listeners,n),e.initialized=!0},Uf=0,Bf=function(t){var e=Date.now();return t+"_"+Math.floor(1e9*Math.random())+ ++Uf+String(e)},Vf=function(t){return void 0===t||""===t?[]:Array.isArray(t)?t:t.split(" ")},Hf=function(){return{listeners:[],scriptId:Bf("tiny-script"),scriptLoaded:!1}},Wf=(Af=Hf(),{load:function(t,e,n){Af.scriptLoaded?n():(Af.listeners.push(n),t.getElementById(Af.scriptId)||function(t,e,n,r){var i=e.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=t,i.src=n;var o=function(){i.removeEventListener("load",o),r()};i.addEventListener("load",o),e.head&&e.head.appendChild(i)}(Af.scriptId,t,e,(function(){Af.listeners.forEach((function(t){return t()})),Af.scriptLoaded=!0})))},reinitialize:function(){Af=Hf()}}),Gf=n(51),Yf={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return"html"===t||"text"===t}}},Kf=function(){return(Kf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n({cardId:0,cardTitle:"",cardColumn:0,cardLevel:0,cardDescription:"",cardNotes:[],listColumns:[],listLevels:[]}),mutations:{appendNote(t,e){t.cardNotes.push(e.newNote)},updateCard(t,e){t.cardId=e.cardId,t.cardTitle=e.cardTitle,t.cardDescription=e.cardDescription;try{t.cardColumn=t.listColumns.filter(t=>e.cardColumn==t.value)[0],t.cardLevel=t.listLevels.filter(t=>e.cardLevel==t.value)[0]}catch{t.cardColumn=0,t.cardLevel=0}dh.post(`/object_data/kanban_card/${e.cardId}/note_list/`).then(e=>{t.cardNotes=e.data}).catch(t=>{})},updateField:u,updateLists(t,e){t.listColumns=e.columnResults.map(t=>({value:t.pk,column:t.fields.kanban_column_name})),t.listLevels=e.levelResults.map(t=>({value:t.pk,level:t.fields.kanban_level_name}))}},actions:{},getters:{getField:d,getAllCardData:t=>({cardId:t.cardId,cardTitle:t.cardTitle,cardDescription:t.cardDescription,cardLevel:t.cardLevel,cardColumn:t.cardColumn}),getCardId:t=>t.cardId,getCardNotes:t=>t.cardNotes}},ah={state:()=>({destination:"unknown",locationId:0}),mutations:{updateDestination(t,e){t.destination=e.destination,t.locationId=e.locationId}},actions:{},getters:{getDestination:t=>t.destination,getLocationId:t=>t.locationId}},sh={state:()=>({kanbanCardResults:[],columnResults:[],levelResults:[]}),mutations:{creationCard(t,e){},updateKanbanCard(t,e){const n=t.kanbanCardResults.findIndex(t=>t.pk==e.card_id),r=["type","card_id"];Object.keys(e).forEach(i=>{r.includes(i)||(t.kanbanCardResults[n].fields[i]=e[i])})},deletedCard(t,e){},initPayload(t,e){t.kanbanCardResults=e.kanbanCardResults,t.columnResults=e.columnResults,t.levelResults=e.levelResults}},actions:{},getters:{getCards:t=>t.kanbanCardResults,getColumns:t=>t.columnResults}},lh={state:()=>({rootUrl:"/",staticUrl:"/"}),mutations:{updateUrl(t,e){t.rootUrl=e.rootUrl,t.staticUrl=e.staticUrl}},actions:{},getters:{getRootUrl:t=>t.rootUrl,getStaticUrl:t=>t.staticUrl}},ch=new o.a.Store({modules:{card:oh,destination:ah,kanban:sh,url:lh}}),dh=n(3);dh.defaults.xsrfHeaderName="X-CSRFTOKEN",dh.defaults.xsrfCookieName="csrftoken",i.a.component("vSelect",Qf.a),i.a.component("Editor",Xf),i.a.component("draggable",eh.a),i.a.component("AddBugWizard",Lt),i.a.component("AddCustomerWizard",At),i.a.component("AddFolderWizard",zt),i.a.component("AddGroupWizard",Vt),i.a.component("AddLinkWizard",Yt),i.a.component("AddUserWizard",Jt),i.a.component("BugsModule",tt),i.a.component("CustomersModule",it),i.a.component("DocumentsModule",lt),i.a.component("GetStakeholders",ft),i.a.component("GroupPermissions",gt),i.a.component("GroupsAndUsersModule",wt),i.a.component("ParentModules",Ct),i.a.component("MiscModule",Et),i.a.component("NewCustomer",ne),i.a.component("NewOrganisation",se),i.a.component("NewRequirements",ue),i.a.component("NewHistoryNoteWizard",he),i.a.component("NewRequirementItemWizard",_e),i.a.component("NewRequirementLinkWizard",ke),i.a.component("RequirementInformation",Te),i.a.component("RequirementItemsModule",$e),i.a.component("RequirementItemLinksModule",Ie),i.a.component("RequirementLinksModule",qe),i.a.component("UploadDocumentWizard",Be),i.a.component("RequirementItemInformation",Ge),i.a.component("ListOrganisations",Ze),i.a.component("SearchOrganisations",tn),i.a.component("OrganisationInformation",ln),i.a.component("OrganisationModules",un),i.a.component("CustomersListModule",fn),i.a.component("AssociatedObjects",bn),i.a.component("NewCustomerForm",wn),i.a.component("NewCustomerModal",Mn),i.a.component("SearchCustomers",jn),i.a.component("ListCustomers",Ln),i.a.component("CustomerInformation",An),i.a.component("SearchObjects",zn),i.a.component("ListSearchResults",Bn),i.a.component("ProjectInformation",Yn),i.a.component("NewProject",Jn),i.a.component("TaskInformation",nr),i.a.component("NewTask",ar),i.a.component("BetweenDates",cr),i.a.component("StakeholderInformation",pr),i.a.component("NewKanban",vr),i.a.component("KanbanPropertyOrder",yr),i.a.component("KanbanInformation",kr),i.a.component("KanbanCard",Tr),i.a.component("KanbanBoard",Or),i.a.component("KanbanRow",Dr),i.a.component("DashboardBugList",bu),i.a.component("NewKanbanCard",xu),i.a.component("CardInformation",Su),i.a.component("ListNotes",qu),i.a.component("NewKanbanLinkWizard",Bu),i.a.component("DashboardMyObjects",Gu),i.a.component("RenderObjectTable",Zu),i.a.component("ObjectLinks",tp),i.a.component("NewLinkWizard",ip),i.a.component("NewRequestForChange",cp),i.a.component("RfcBackoutPlan",pp),i.a.component("RfcDetails",vp),i.a.component("RfcImplementationPlan",_p),i.a.component("RfcRisk",xp),i.a.component("RfcTestPlan",Mp),i.a.component("RfcDescription",Ep),i.a.component("RfcInformation",Lp),i.a.component("RfcModules",Ap),i.a.component("RfcNewRunItem",zp),i.a.component("RfcRunSheetList",Hp),i.a.component("DashboardRfcApprovals",Kp),i.a.component("RfcApprovalButtons",Qp),i.a.component("SearchGroups",rm),i.a.component("SearchPermissionSets",sm),i.a.component("SearchUsers",um),i.a.component("NewGroup",hm),i.a.component("GroupInformation",_m),i.a.component("UserList",xm),i.a.component("AdminAddUser",Sm),i.a.component("PermissionInformation",Om),i.a.component("SinglePermissionProperties",Dm),i.a.component("NewPermissionSet",Rm),i.a.component("NewUser",Fm),i.a.component("UserInformation",Hm),i.a.component("ResetUserPassword",Km),i.a.component("IconifyIcon",Pf.a),i.a.component("DashboardUnassignedObjects",Qm),i.a.component("DashboardUsersWithNoGroups",rf),i.a.component("KanbanEditBoard",lf),i.a.component("KanbanGroupPermissions",uf),i.a.component("ProfileInformation",hf),i.a.component("ChangeTaskInformation",yf),i.a.component("CardDetails",ju),i.a.component("CardDescription",Lu),i.a.component("CardNotes",Au),i.a.component("NotesModule",Cf),i.a.component("ListTagsModule",Lf),i.a.component("AddTagWizard",jf),i.a.component("SearchTags",rn),i.a.component("EditTagModal",Rf),i.a.use(rh.a),i.a.use(ih.Datetime),i.a.component("datetime",ih.Datetime),window.vm=new i.a({el:"#app",components:{Vuelidate:rh.a},data:()=>({}),store:ch,methods:{},mounted(){var t=document.getElementById("loader");t.style.transform="translateY(-100vh)",setTimeout(()=>{t.remove()},500)}})}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/NearBeach.min.js.gz b/NearBeach/static/NearBeach/NearBeach.min.js.gz index 8257f038f..62a91d82b 100644 Binary files a/NearBeach/static/NearBeach/NearBeach.min.js.gz and b/NearBeach/static/NearBeach/NearBeach.min.js.gz differ diff --git a/NearBeach/templates/NearBeach/request_for_change/new_request_for_change.html b/NearBeach/templates/NearBeach/request_for_change/new_request_for_change.html index 453fea389..b77d2dae5 100644 --- a/NearBeach/templates/NearBeach/request_for_change/new_request_for_change.html +++ b/NearBeach/templates/NearBeach/request_for_change/new_request_for_change.html @@ -3,7 +3,6 @@ {% block content %} diff --git a/NearBeach/tests/test_object_data.py b/NearBeach/tests/test_object_data.py index daa218c97..cfecd9375 100644 --- a/NearBeach/tests/test_object_data.py +++ b/NearBeach/tests/test_object_data.py @@ -40,10 +40,7 @@ def test_incorrect_location_data(self): # Get data of wrong location response = c.post(reverse('associated_objects', args=['taks', 1])) - self.assertEqual(response.status_code, 200) - print("\n\n") - print(response.content) - print("\n\n") + self.assertEqual(response.status_code, 400) def test_team_leader_searches(self): c = Client() diff --git a/NearBeach/views/object_data_views.py b/NearBeach/views/object_data_views.py index f1983e75f..cebc4d79f 100644 --- a/NearBeach/views/object_data_views.py +++ b/NearBeach/views/object_data_views.py @@ -299,7 +299,13 @@ def admin_add_user(request): user_results = User.objects.filter( is_active=True, - ).values() + ).values( + 'id', + 'username', + 'first_name', + 'last_name', + 'email', + ) # Convert data to json format group_results = json.dumps(list(group_results), cls=DjangoJSONEncoder) diff --git a/NearBeach/views/request_for_change_views.py b/NearBeach/views/request_for_change_views.py index 2cf0205ce..a7d8d7625 100644 --- a/NearBeach/views/request_for_change_views.py +++ b/NearBeach/views/request_for_change_views.py @@ -21,7 +21,15 @@ def get_rfc_context(rfc_id): """ # Get data rfc_results = request_for_change.objects.get(rfc_id=rfc_id) - rfc_change_lead = User.objects.get(id=rfc_results.rfc_lead.id) + rfc_change_lead = User.objects.filter( + id=rfc_results.rfc_lead.id + ).values( + 'id', + 'email', + 'first_name', + 'last_name', + 'username', + ) user_list = User.objects.filter( is_active=True, id__in=user_group.objects.filter( @@ -31,15 +39,25 @@ def get_rfc_context(rfc_id): request_for_change_id=rfc_id, ).values('group_id') ).values('username_id') + ).values( + 'id', + 'email', + 'first_name', + 'last_name', + 'username', ) + # Convert from ORM to JSON + rfc_change_lead = json.dumps(list(rfc_change_lead), cls=DjangoJSONEncoder) + user_list = json.dumps(list(user_list), cls=DjangoJSONEncoder) + # Context c = { 'nearbeach_title': 'RFC %s' % rfc_id, 'rfc_id': rfc_id, 'rfc_results': serializers.serialize('json', [rfc_results]), - 'rfc_change_lead': serializers.serialize('json', [rfc_change_lead]), - 'user_list': serializers.serialize('json', user_list), + 'rfc_change_lead': rfc_change_lead, + 'user_list': user_list, } return c @@ -52,7 +70,6 @@ def new_request_for_change(request, *args, **kwargs): :param request: :return: """ - # CHECK USER PERMISSIONS # Get template t = loader.get_template('NearBeach/request_for_change/new_request_for_change.html') @@ -71,16 +88,14 @@ def new_request_for_change(request, *args, **kwargs): 'group__group_name', ).distinct() - user_results = User.objects.filter( # This should only be group leaders - is_active=True, - ) + # Convert ORM to JSON + user_group_results = json.dumps(list(user_group_results), cls=DjangoJSONEncoder) # Context c = { 'group_results': serializers.serialize('json', group_results), 'nearbeach_title': 'New RFC', - 'user_group_results': json.dumps(list(user_group_results), cls=DjangoJSONEncoder), - 'user_results': serializers.serialize('json', user_results), + 'user_group_results': user_group_results, } return HttpResponse(t.render(c, request)) diff --git a/NearBeach/views/search_views.py b/NearBeach/views/search_views.py index bb35577af..671927757 100644 --- a/NearBeach/views/search_views.py +++ b/NearBeach/views/search_views.py @@ -440,12 +440,18 @@ def search_user(request): # Get Data user_results = User.objects.filter( + ).values( + 'id', + 'email', + 'first_name', + 'last_name', + 'username', ).order_by('last_name', 'first_name')[:50] # Context c = { 'nearbeach_title': 'Search User', - 'user_results': serializers.serialize('json', user_results), + 'user_results': json.dumps(list(user_results), cls=DjangoJSONEncoder), } return HttpResponse(t.render(c, request)) @@ -475,9 +481,18 @@ def search_user_data(request): ) # Only have 50 results and order by alphabetical order - user_results.order_by('last_name', 'first_name')[:50] + user_results = user_results.values( + 'id', + 'email', + 'first_name', + 'last_name', + 'username', + ).order_by( + 'last_name', + 'first_name' + )[:50] # Send back json data - json_results = serializers.serialize('json', user_results) + json_results = json.dumps(list(user_results), cls=DjangoJSONEncoder) return HttpResponse(json_results, content_type='application/json') diff --git a/package.json b/package.json index 863bea31f..5c2cfdb5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nearbeach", - "version": "0.28.14", + "version": "0.28.15", "description": "NearBeach - an Open Source project management system built with Django web framework", "main": "/src/js/app.js", "directories": { diff --git a/src/js/components/request_for_change/NewRequestForChange.vue b/src/js/components/request_for_change/NewRequestForChange.vue index 0ec9802fe..48f39cda7 100644 --- a/src/js/components/request_for_change/NewRequestForChange.vue +++ b/src/js/components/request_for_change/NewRequestForChange.vue @@ -26,7 +26,6 @@ > @@ -98,7 +97,6 @@ return []; }, }, - userResults: Array, }, components: { FormWizard, diff --git a/src/js/components/request_for_change/RfcInformation.vue b/src/js/components/request_for_change/RfcInformation.vue index 8fd6e6015..99ded87df 100644 --- a/src/js/components/request_for_change/RfcInformation.vue +++ b/src/js/components/request_for_change/RfcInformation.vue @@ -112,10 +112,10 @@ - {{rfcChangeLead[0]['fields']['username']}}: {{rfcChangeLead[0]['fields']['first_name']}} {{rfcChangeLead[0]['fields']['last_name']}} + {{rfcChangeLead[0]['username']}}: {{rfcChangeLead[0]['first_name']}} {{rfcChangeLead[0]['last_name']}}

- {{rfcChangeLead[0]['fields']['email']}} + {{rfcChangeLead[0]['email']}}

diff --git a/src/js/components/request_for_change/modules/RfcRunSheetList.vue b/src/js/components/request_for_change/modules/RfcRunSheetList.vue index a714574c9..fd1186f44 100644 --- a/src/js/components/request_for_change/modules/RfcRunSheetList.vue +++ b/src/js/components/request_for_change/modules/RfcRunSheetList.vue @@ -218,7 +218,7 @@ getUserName: function(user_id) { //Filter for the user by using the user_id var single_user = this.userList.filter(row => { - return row['pk'] == user_id; + return row['id'] == user_id; }); //If there are no results - default to --- @@ -227,7 +227,7 @@ } //User was filtered out - return their name - return `${single_user[0]['fields']['username']}: ${single_user[0]['fields']['first_name']} ${single_user[0]['fields']['last_name']}`; + return `${single_user[0]['username']}: ${single_user[0]['first_name']} ${single_user[0]['last_name']}`; }, updateChangeTaskList: function(data) { //Update change task list diff --git a/src/js/components/request_for_change/tabs/RfcDetails.vue b/src/js/components/request_for_change/tabs/RfcDetails.vue index cfb9b126a..7d9c67652 100644 --- a/src/js/components/request_for_change/tabs/RfcDetails.vue +++ b/src/js/components/request_for_change/tabs/RfcDetails.vue @@ -143,7 +143,6 @@ return []; }, }, - userResults: Array, }, mixins: [ searchMixin diff --git a/src/js/components/search/SearchUsers.vue b/src/js/components/search/SearchUsers.vue index a3b45d322..9af6c4b43 100644 --- a/src/js/components/search/SearchUsers.vue +++ b/src/js/components/search/SearchUsers.vue @@ -21,10 +21,10 @@ v-bind:href="`/user_information/${user['pk']}/`" > - {{user['fields']['username']}}: {{user['fields']['first_name']}} {{user['fields']['last_name']}} + {{user['username']}}: {{user['first_name']}} {{user['last_name']}}
-

{{user['fields']['email']}}

+

{{user['email']}}