From 3e954086c8c52464e2444c87d7539b8496f3569e Mon Sep 17 00:00:00 2001 From: Ronnie Date: Thu, 20 Aug 2020 10:20:06 -0700 Subject: [PATCH] Fixed markdown fullscreen binding --- dist/index.js | 2 +- package.json | 2 +- src/components/Markdown.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9d94841..1024f54 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13,4 +13,4 @@ * @author owenm * @license MIT */ -function ur(t){return(ur="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 lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cr(){return(cr=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 dr(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 Ar(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Sr(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&Cr(t,e):Cr(t,e))||r&&t===n)return t;if(t===n)break}while(t=Ar(t))}return null}var Er,Or=/\s+/g;function jr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(Or," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(Or," ")}}function Dr(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 Tr(t,e){var n="";if("string"==typeof t)n=t;else do{var r=Dr(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 Rr(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===Lr())break;r=Nr(r,!1)}return!1}function Ir(t,e,n){for(var r=0,i=0,o=t.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=pr(n,["evt"]);Kr.pluginEvent.bind(Ui)(t,e,fr({dragEl:ei,parentEl:ni,ghostEl:ri,rootEl:ii,nextEl:oi,lastDownEl:ai,cloneEl:si,cloneHidden:ui,dragStarted:wi,putSortable:hi,activeSortable:Ui.active,originalEvent:r,oldIndex:li,oldDraggableIndex:fi,newIndex:ci,newDraggableIndex:pi,hideGhostForTarget:zi,unhideGhostForTarget:Bi,cloneNowHidden:function(){ui=!0},cloneNowShown:function(){ui=!1},dispatchSortableEvent:function(t){ti({sortable:e,name:t,originalEvent:r})}},i))};function ti(t){Jr(fr({putSortable:hi,cloneEl:si,targetEl:ei,rootEl:ii,oldIndex:li,oldDraggableIndex:fi,newIndex:ci,newDraggableIndex:pi},t))}var ei,ni,ri,ii,oi,ai,si,ui,li,ci,fi,pi,di,hi,vi,mi,gi,_i,yi,bi,wi,xi,ki,Ci,Ai,Si=!1,Ei=!1,Oi=[],ji=!1,Di=!1,Ti=[],Ri=!1,Li=[],Mi="undefined"!=typeof document,$i=yr,Ii=mr||vr?"cssFloat":"float",Pi=Mi&&!br&&!yr&&"draggable"in document.createElement("div"),qi=function(){if(Mi){if(vr)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Fi=function(t,e){var n=Dr(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Ir(t,0,e),o=Ir(t,1,e),a=i&&Dr(i),s=o&&Dr(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Mr(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Mr(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 c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Ii]||o&&"none"===n[Ii]&&u+l>r)?"vertical":"horizontal"},Ni=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 u=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===u||t.join&&t.indexOf(u)>-1}}var n={},r=t.group;r&&"object"==ur(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},zi=function(){!qi&&ri&&Dr(ri,"display","none")},Bi=function(){!qi&&ri&&Dr(ri,"display","")};Mi&&document.addEventListener("click",(function(t){if(Ei)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ei=!1,!1}),!0);var Vi=function(t){if(ei){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,Oi.some((function(t){if(!Pr(t)){var e=Mr(t),n=t[Wr].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[Wr]._onDragOver(n)}}var i,o,a},Hi=function(t){ei&&ei.parentNode[Wr]._isOutsideThisEl(t.target)};function Ui(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=cr({},e),t[Wr]=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 Fi(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!==Ui.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in Kr.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in Ni(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Pi,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?xr(t,"pointerdown",this._onTapStart):(xr(t,"mousedown",this._onTapStart),xr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xr(t,"dragover",this),xr(t,"dragenter",this)),Oi.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),cr(this,Gr())}function Yi(t,e,n,r,i,o,a,s){var u,l,c=t[Wr],f=c.options.onMove;return!window.CustomEvent||vr||mr?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=i||e,u.relatedRect=o||Mr(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function Wi(t){t.draggable=!1}function Gi(){Ri=!1}function Zi(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 Xi(t){return setTimeout(t,0)}function Ki(t){return clearTimeout(t)}Ui.prototype={constructor:Ui,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(xi=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ei):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,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=r.filter;if(function(t){Li.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&Li.push(r)}}(n),!ei&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||u.isContentEditable||(s=Sr(s,r.draggable,n,!1))&&s.animated||ai===s)){if(li=qr(s),fi=qr(s,r.draggable),"function"==typeof l){if(l.call(this,t,s,this))return ti({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),Qr("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=Sr(u,r.trim(),n,!1))return ti({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Qr("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!Sr(u,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&&!ei&&n.parentNode===o){var u=Mr(n);if(ii=o,ni=(ei=n).parentNode,oi=ei.nextSibling,ai=n,di=a.group,Ui.dragged=ei,vi={target:ei,clientX:(e||t).clientX,clientY:(e||t).clientY},yi=vi.clientX-u.left,bi=vi.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ei.style["will-change"]="all",r=function(){Qr("delayEnded",i,{evt:t}),Ui.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!gr&&i.nativeDraggable&&(ei.draggable=!0),i._triggerDragStart(t,e),ti({sortable:i,name:"choose",originalEvent:t}),jr(ei,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){Rr(ei,t.trim(),Wi)})),xr(s,"dragover",Vi),xr(s,"mousemove",Vi),xr(s,"touchmove",Vi),xr(s,"mouseup",i._onDrop),xr(s,"touchend",i._onDrop),xr(s,"touchcancel",i._onDrop),gr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ei.draggable=!0),Qr("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(mr||vr))r();else{if(Ui.eventCanceled)return void this._onDrop();xr(s,"mouseup",i._disableDelayedDrag),xr(s,"touchend",i._disableDelayedDrag),xr(s,"touchcancel",i._disableDelayedDrag),xr(s,"mousemove",i._delayedDragTouchMoveHandler),xr(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&xr(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(){ei&&Wi(ei),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;kr(t,"mouseup",this._disableDelayedDrag),kr(t,"touchend",this._disableDelayedDrag),kr(t,"touchcancel",this._disableDelayedDrag),kr(t,"mousemove",this._delayedDragTouchMoveHandler),kr(t,"touchmove",this._delayedDragTouchMoveHandler),kr(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?xr(document,"pointermove",this._onTouchMove):xr(document,e?"touchmove":"mousemove",this._onTouchMove):(xr(ei,"dragend",this),xr(ii,"dragstart",this._onDragStart));try{document.selection?Xi((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Si=!1,ii&&ei){Qr("dragStarted",this,{evt:e}),this.nativeDraggable&&xr(document,"dragover",Hi);var n=this.options;!t&&jr(ei,n.dragClass,!1),jr(ei,n.ghostClass,!0),Ui.active=this,t&&this._appendGhost(),ti({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(mi){this._lastX=mi.clientX,this._lastY=mi.clientY,zi();for(var t=document.elementFromPoint(mi.clientX,mi.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(mi.clientX,mi.clientY))!==e;)e=t;if(ei.parentNode[Wr]._isOutsideThisEl(t),e)do{if(e[Wr]){if(e[Wr]._onDragOver({clientX:mi.clientX,clientY:mi.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bi()}},_onTouchMove:function(t){if(vi){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=ri&&Tr(ri,!0),a=ri&&o&&o.a,s=ri&&o&&o.d,u=$i&&Ai&&Fr(Ai),l=(i.clientX-vi.clientX+r.x)/(a||1)+(u?u[0]-Ti[0]:0)/(a||1),c=(i.clientY-vi.clientY+r.y)/(s||1)+(u?u[1]-Ti[1]:0)/(s||1);if(!Ui.active&&!Si){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===ei)return D(!1);if(v&&o===t.target&&(a=v),a&&(n=Mr(a)),!1!==Yi(ii,o,ei,e,a,n,t,!!a))return j(),o.appendChild(ei),ni=o,T(),D(!0)}else if(a.parentNode===o){n=Mr(a);var m,g,_,y=ei.parentNode!==o,b=!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,u=n?e.width:e.height;return r===a||i===s||r+o/2===a+u/2}(ei.animated&&ei.toRect||e,a.animated&&a.toRect||n,i),w=i?"top":"left",x=$r(a,"top","top")||$r(ei,"top","top"),k=x?x.scrollTop:void 0;if(xi!==a&&(g=n[w],ji=!1,Di=!b&&s.invertSwap||y),0!==(m=function(t,e,n,r,i,o,a,s){var u=r?t.clientY:t.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a)if(s&&Cic+l*o/2:uf-Ci)return-ki}else if(u>c+l*(1-i)/2&&uf-l*o/2))return u>c+l/2?1:-1;return 0}(t,a,n,i,b?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Di,xi===a))){var C=qr(ei);do{C-=m,_=ni.children[C]}while(_&&("none"===Dr(_,"display")||_===ri))}if(0===m||_===a)return D(!1);xi=a,ki=m;var A=a.nextElementSibling,S=!1,E=Yi(ii,o,ei,e,a,n,t,S=1===m);if(!1!==E)return 1!==E&&-1!==E||(S=1===E),Ri=!0,setTimeout(Gi,30),j(),S&&!A?o.appendChild(ei):a.parentNode.insertBefore(ei,S?A:a),x&&Vr(x,0,k-x.scrollTop),ni=ei.parentNode,void 0===g||Di||(Ci=Math.abs(g-Mr(a)[w])),T(),D(!0)}if(o.contains(ei))return D(!1)}return!1}function O(s,u){Qr(s,d,fr({evt:t,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:f,fromSortable:p,target:a,completed:D,onMove:function(n,r){return Yi(ii,o,ei,e,n,Mr(n),t,r)},changed:T},u))}function j(){O("dragOverAnimationCapture"),d.captureAnimationState(),d!==p&&p.captureAnimationState()}function D(e){return O("dragOverCompleted",{insertion:e}),e&&(c?l._hideClone():l._showClone(d),d!==p&&(jr(ei,hi?hi.options.ghostClass:l.options.ghostClass,!1),jr(ei,s.ghostClass,!0)),hi!==d&&d!==Ui.active?hi=d:d===Ui.active&&hi&&(hi=null),p===d&&(d._ignoreWhileAnimating=a),d.animateAll((function(){O("dragOverAnimationComplete"),d._ignoreWhileAnimating=null})),d!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ei&&!ei.animated||a===o&&!a.animated)&&(xi=null),s.dragoverBubble||t.rootEl||a===document||(ei.parentNode[Wr]._isOutsideThisEl(t.target),!e&&Vi(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function T(){ci=qr(ei),pi=qr(ei,s.draggable),ti({sortable:d,name:"change",toEl:o,newIndex:ci,newDraggableIndex:pi,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){kr(document,"mousemove",this._onTouchMove),kr(document,"touchmove",this._onTouchMove),kr(document,"pointermove",this._onTouchMove),kr(document,"dragover",Vi),kr(document,"mousemove",Vi),kr(document,"touchmove",Vi)},_offUpEvents:function(){var t=this.el.ownerDocument;kr(t,"mouseup",this._onDrop),kr(t,"touchend",this._onDrop),kr(t,"pointerup",this._onDrop),kr(t,"touchcancel",this._onDrop),kr(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ci=qr(ei),pi=qr(ei,n.draggable),Qr("drop",this,{evt:t}),ni=ei&&ei.parentNode,ci=qr(ei),pi=qr(ei,n.draggable),Ui.eventCanceled||(Si=!1,Di=!1,ji=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ki(this.cloneId),Ki(this._dragStartId),this.nativeDraggable&&(kr(document,"drop",this),kr(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_r&&Dr(document.body,"user-select",""),Dr(ei,"transform",""),t&&(wi&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ri&&ri.parentNode&&ri.parentNode.removeChild(ri),(ii===ni||hi&&"clone"!==hi.lastPutMode)&&si&&si.parentNode&&si.parentNode.removeChild(si),ei&&(this.nativeDraggable&&kr(ei,"dragend",this),Wi(ei),ei.style["will-change"]="",wi&&!Si&&jr(ei,hi?hi.options.ghostClass:this.options.ghostClass,!1),jr(ei,this.options.chosenClass,!1),ti({sortable:this,name:"unchoose",toEl:ni,newIndex:null,newDraggableIndex:null,originalEvent:t}),ii!==ni?(ci>=0&&(ti({rootEl:ni,name:"add",toEl:ni,fromEl:ii,originalEvent:t}),ti({sortable:this,name:"remove",toEl:ni,originalEvent:t}),ti({rootEl:ni,name:"sort",toEl:ni,fromEl:ii,originalEvent:t}),ti({sortable:this,name:"sort",toEl:ni,originalEvent:t})),hi&&hi.save()):ci!==li&&ci>=0&&(ti({sortable:this,name:"update",toEl:ni,originalEvent:t}),ti({sortable:this,name:"sort",toEl:ni,originalEvent:t})),Ui.active&&(null!=ci&&-1!==ci||(ci=li,pi=fi),ti({sortable:this,name:"end",toEl:ni,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Qr("nulling",this),ii=ei=ni=ri=oi=si=ai=ui=vi=mi=wi=ci=pi=li=fi=xi=ki=hi=di=Ui.dragged=Ui.ghost=Ui.clone=Ui.active=null,Li.forEach((function(t){t.checked=!0})),Li.length=gi=_i=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ei&&(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&&(_o.forEach((function(t){r.addAnimationState({target:t,rect:wo?Mr(t):i}),Yr(t),t.fromRect=i,e.removeAnimationState(t)})),wo=!1,function(t,e){_o.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(),bo=!1,s.animation&&_o.length>1&&(wo||!n&&!i.options.sort&&!a)){var u=Mr(vo,!1,!0,!0);_o.forEach((function(t){t!==vo&&(Ur(t,u),o.appendChild(t))})),wo=!0}if(!n)if(wo||Co(),_o.length>1){var l=go;i._showClone(e),i.options.animation&&!go&&l&&yo.forEach((function(t){i.addAnimationState({target:t,rect:mo}),t.fromRect=mo,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(_o.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){mo=cr({},e);var i=Tr(vo,!0);mo.top-=i.f,mo.left-=i.e}},dragOverAnimationComplete:function(){wo&&(wo=!1,Co())},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,u=s||this.sortable;if(e){var l=this.options,c=r.children;if(!xo)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),jr(vo,l.selectedClass,!~_o.indexOf(vo)),~_o.indexOf(vo))_o.splice(_o.indexOf(vo),1),po=null,Jr({sortable:i,rootEl:n,name:"deselect",targetEl:vo,originalEvt:e});else{if(_o.push(vo),Jr({sortable:i,rootEl:n,name:"select",targetEl:vo,originalEvt:e}),e.shiftKey&&po&&i.el.contains(po)){var f,p,d=qr(po),h=qr(vo);if(~d&&~h&&d!==h)for(h>d?(p=d,f=h):(p=h,f=d+1);p1){var v=Mr(vo),m=qr(vo,":not(."+this.options.selectedClass+")");if(!bo&&l.animation&&(vo.thisAnimationDuration=null),u.captureAnimationState(),!bo&&(l.animation&&(vo.fromRect=v,_o.forEach((function(t){if(t.thisAnimationDuration=null,t!==vo){var e=wo?Mr(t):v;t.fromRect=e,u.addAnimationState({target:t,rect:e})}}))),Co(),_o.forEach((function(t){c[m]?r.insertBefore(t,c[m]):r.appendChild(t),m++})),a===qr(vo))){var g=!1;_o.forEach((function(t){t.sortableIndex===qr(t)||(g=!0)})),g&&o("update")}_o.forEach((function(t){Yr(t)})),u.animateAll()}ho=u}(n===r||s&&"clone"!==s.lastPutMode)&&yo.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=xo=!1,yo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),kr(document,"pointerup",this._deselectMultiDrag),kr(document,"mouseup",this._deselectMultiDrag),kr(document,"touchend",this._deselectMultiDrag),kr(document,"keydown",this._checkKeyDown),kr(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==xo&&xo||ho!==this.sortable||t&&Sr(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;_o.length;){var e=_o[0];jr(e,this.options.selectedClass,!1),_o.shift(),Jr({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)}},cr(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Wr];e&&e.options.multiDrag&&!~_o.indexOf(t)&&(ho&&ho!==e&&(ho.multiDrag._deselectMultiDrag(),ho=e),jr(t,e.options.selectedClass,!0),_o.push(t))},deselect:function(t){var e=t.parentNode[Wr],n=_o.indexOf(t);e&&e.options.multiDrag&&~n&&(jr(t,e.options.selectedClass,!1),_o.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return _o.forEach((function(r){var i;e.push({multiDragElement:r,index:r.sortableIndex}),i=wo&&r!==vo?-1:wo?qr(r,":not(."+t.options.selectedClass+")"):qr(r),n.push({multiDragElement:r,index:i})})),{items:dr(_o),clones:[].concat(yo),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}}})});var Eo={props:{activeHeader:{type:String,default:"Selected Options"},inactiveHeader:{type:String,default:"Available Options"},maxHeight:{type:String,default:"250px"},options:{type:Array,required:!0},sortableOptions:{type:Object,default:function(){return{}}},value:{type:Array,required:!0},sort:{type:[Boolean,Function],default:!1},disabled:Boolean},data:function(){return{selected_active:[],selected_inactive:[],mapped_options:[],active:[],inactive:[]}},computed:{mergedSortableOptions:function(){return this.disabled?Object(sn.merge)({},this.sortableOptions,{disabled:!0}):this.sortableOptions}},watch:{value:{handler:function(t,e){Object(sn.isEqual)(t,e)||this.setListValues(t)},deep:!0},options:{handler:function(t,e){Object(sn.isEqual)(t,e)||this.initComponent()},deep:!0}},methods:{isSelected:function(t){return this.selected_active.indexOf(t)>-1||this.selected_inactive.indexOf(t)>-1},resetSelection:function(){this.selected_active=[],this.selected_inactive=[]},setListValues:function(t){var e=this,n=t.map((function(t){var n=t;try{n="object"!==So(t)?JSON.stringify(t):JSON.stringify(t.value)}catch(t){}return Object(sn.clone)(Object(sn.find)(e.mapped_options,{value:n}))}));this.active=[],n.forEach((function(t,n){var r=Object(sn.find)(e.mapped_options,{value:t.value});r&&e.active.push(r)})),Object(sn.remove)(this.inactive,(function(t,n){return Object(sn.find)(e.active,{value:t.value})}));var r=Object(sn.differenceWith)(this.mapped_options,this.inactive.concat(this.active),sn.isEqual);this.inactive=Object(sn.uniqWith)(this.inactive.concat(r),sn.isEqual),this.sort&&("function"==typeof this.sort?(this.active=this.sort(this.active),this.inactive=this.sort(this.inactive)):(this.active=Object(sn.sortBy)(this.active,"label"),this.inactive=Object(sn.sortBy)(this.inactive,"label")))},moveSelected:function(t,e){var n=this;if("inactive"===t)if(e)this.inactive=this.mapped_options.slice(),this.emitNewValue([]);else{var r=this.active.filter((function(t){return!Object(sn.some)(n.selected_active,(function(e){return e.value===t.value}))}));this.emitNewValue(r)}else if(e)this.emitNewValue(this.mapped_options);else{var i=this.active.concat(this.selected_inactive);this.emitNewValue(i)}this.resetSelection()},emitNewValue:function(t){var e=this;this.$nextTick((function(){e.sort&&(t="function"==typeof e.sort?e.sort(t):Object(sn.sortBy)(t,"label")),t=t.map((function(t){try{t.value;return JSON.parse(t.value)}catch(e){return t}})),e.$emit("input",t)}))},initComponent:function(){var t=this;this.mapped_options=this.options.map((function(t){var e=Object(sn.clone)(t);try{"object"!==So(t)?e={label:t.toString(),value:JSON.stringify(t)}:e.value=JSON.stringify(t.value)}catch(t){}return e}));var e=this.value.slice();Object(sn.remove)(e,(function(e){return!Object(sn.some)(t.mapped_options,(function(t){var n=t.value;try{n=JSON.parse(t.value)}catch(t){}return e===n}))})),this.sort&&("function"==typeof this.sort?this.mapped_options=this.sort(this.mapped_options):this.mapped_options=Object(sn.sortBy)(this.mapped_options,"label")),this.inactive=this.mapped_options.slice(),Object(sn.isEqual)(e,this.value)?this.setListValues(this.value):this.emitNewValue(e)}},mounted:function(){this.initComponent()},directives:{sortable:{bind:function(t,e,n){var r=Object(sn.merge)({},e.value,{group:"items",multiDrag:!0,selectedClass:"selected",onSelect:function(t){var e="active";Object(sn.includes)(t.target.classList,"inactive")&&(e="inactive");var r=t.item.className.split(" ");Object(sn.includes)(r,name)||(t.item.className+=" selected");var i=[];t.items.forEach((function(t){i.push(Object(sn.pick)(t.dataset,["label","value"]))})),n.context["selected_"+e]=Object(sn.uniqWith)(i,sn.isEqual)},onDeselect:function(t){var e="active";Object(sn.includes)(t.target.classList,"inactive")&&(e="inactive"),setTimeout((function(){t.item.classList.remove("selected");var r=[];t.items.forEach((function(t){r.push(Object(sn.pick)(t.dataset,["label","value"]))})),n.context["selected_"+e]=Object(sn.uniqWith)(r,sn.isEqual)}),0)},onSort:function(t){var e="inactive",r=!1;Object(sn.includes)(t.to.classList,"active")&&Object(sn.includes)(t.from.classList,"active")&&(r=n.context.active.slice(),e="active"),Object(sn.includes)(t.to.classList,"inactive")&&Object(sn.includes)(t.from.classList,"inactive")&&(r=n.context.inactive.slice(),e="inactive"),r&&(t.items.length>0?t.items.forEach((function(e,n){r.splice(t.newIndicies[n].index,0,r.splice(t.oldIndicies[n].index,1)[0])})):r.splice(t.newIndex,0,r.splice(t.oldIndex,1)[0]),"active"===e?n.context.emitNewValue(r):n.context.inactive=r)},onAdd:function(t){if(Object(sn.includes)(t.to.classList,"active")){var e=n.context.active.slice();t.items.length>0?t.items.forEach((function(n,r){e.splice(t.newIndicies[r].index,0,Object(sn.pick)(n.dataset,["label","value"]))})):e.splice(t.newIndex,0,Object(sn.pick)(t.item.dataset,["label","value"])),n.context.emitNewValue(e)}},onRemove:function(t){if(Object(sn.includes)(t.from.classList,"active")){var e=[];t.items.length>0?t.items.forEach((function(r,i){e.push(r.dataset.value),n.context.inactive.splice(t.newIndicies[i].index,0,Object(sn.pick)(r.dataset,["label","value"]))})):(e.push(t.item.dataset.value),n.context.inactive.splice(t.newIndex,0,Object(sn.pick)(t.item.dataset,["label","value"])));var r=n.context.active.filter((function(t){return!Object(sn.includes)(e,t.value)}));n.context.emitNewValue(r)}},onEnd:function(t){t.to!==t.from&&t.items.forEach((function(t){Ui.utils.deselect(t)}))}});n.sortable=Ui.create(t,r)}}}},Oo=(n(250),en(Eo,sr,[],!1,null,"5510d64a",null));Oo.options.__file="src/components/GroupSelect.vue";var jo=Oo.exports,Do=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["markdown-wrapper",t.mode,{disabled:t.disabled}],style:{maxHeight:t.maxHeight}},[n("div",{staticClass:"toolbar"},[n("div",{staticClass:"tools"}),t._v(" "),n("div",{staticClass:"utils"},[n("div",{staticClass:"btn right icon fullscreen",on:{click:function(e){return t.togglePreview()}}},[n("icon",{attrs:{type:t.preview,size:"18"}})],1),t._v(" "),n("div",{staticClass:"btn right icon fullscreen",on:{click:function(e){t.mode="fullscreen"}}},[n("icon",{attrs:{type:"fullscreen",size:"24"}})],1),t._v(" "),n("div",{staticClass:"btn right icon compact",on:{click:function(e){t.mode="compact"}}},[n("icon",{attrs:{type:"fullscreen-exit",size:"24"}})],1)])]),t._v(" "),n("div",{staticClass:"editor"},[n("div",{class:["input",{active:t.edit}]},[n("div",{staticClass:"mirror"},[n("pre",[t._v(t._s(t.input)),n("br"),t._v(" ")])]),t._v(" "),n("textarea",t._g({ref:"input",attrs:{wrap:"soft",cols:"1",name:t.name,disabled:t.disabled},domProps:{value:t.value},on:{"update:value":function(e){t.value=e}}},t.listeners))]),t._v(" "),n("div",{class:["output",{active:!t.edit}]},[n("div",{staticClass:"markdown",domProps:{innerHTML:t._s(t.output)}})])])])};Do._withStripped=!0;var To=n(199),Ro=new(n.n(To).a),Lo={props:{name:String,value:{type:String,default:""},maxHeight:{type:String,default:"500px"},disabled:Boolean},data:function(){return{input:this.value,edit:!0,focused:!1,mode:"compact",preview:"eye-off"}},computed:{output:function(){return Ro.render(this.value)},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.inputHandler(e),t.validate()},keydown:function(e){var n;t.$listeners.keydown&&(n=t.$listeners.keydown(e)),!1!==n&&t.shortcut(e)}})}},methods:{inputHandler:function(t){this.$emit("input",t.target.value)},shortcut:function(t){var e=t.target;switch(t.key){case"Tab":var n;t.preventDefault(),t.shiftKey?(n=e.selectionStart-"\t".length,"\t"===e.value.substring(n,e.selectionStart)&&(e.value=e.value.substring(0,n)+e.value.substring(e.selectionStart,e.value.length),e.selectionStart=n,e.selectionEnd=n)):(n=e.selectionStart+"\t".length,e.value=e.value.substring(0,e.selectionStart)+"\t"+e.value.substring(e.selectionStart,e.value.length),e.selectionStart=n,e.selectionEnd=n),e.focus();break;case"f":t.ctrlKey&&"compact"===this.mode&&(t.preventDefault(),vm.mode="fullscreen")}},togglePreview:function(){this.edit=!this.edit,this.preview=this.edit?"eye-off":"eye"},switchToCompact:function(t){"fullscreen"===this.mode&&27===t.which&&(this.mode="compact",this.$refs.input.focus())}},mixins:[wn],components:{Icon:vn},mounted:function(){window.addEventListener("keydown",this.switchToCompact)},beforeDstroy:function(){window.removeEventListener("keydown",this.switchToCompact)}},Mo=(n(306),en(Lo,Do,[],!1,null,"210be4c2",null));Mo.options.__file="src/components/Markdown.vue";var $o=Mo.exports,Io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeList,expression:"closeList"}],class:["multi-select-wrapper",{disabled:t.disabled}],attrs:{tabindex:"0"},on:{keydown:t.keypressHandler}},[n("div",{staticClass:"display",on:{click:t.toggleList}},[0===t.value.length?n("span",{staticClass:"none-selected"},[t._v(t._s(t.placeholder))]):"function"==typeof t.template?n("span",{staticClass:"selected-items",domProps:{innerHTML:t._s(t.template(t.value))}}):n("span",{staticClass:"selected-items"},[t._v(t._s(t.value.length)+" Selected")])]),t._v(" "),n("transition",{attrs:{name:"dropfade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.is_open,expression:"is_open"}],ref:"list",staticClass:"list",style:{"min-width":this.minWidth,"max-height":this.maxListHeight,top:this.list_top,bottom:this.list_bottom},on:{mouseleave:function(e){return t.closeListOnMouseLeave()}}},[n("div",{staticClass:"selection-options"},[n("strong",[t._v("Select:")]),t._v(" "),n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.selectAll()}}},[t._v("All")]),t._v(" | "),n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.selectNone()}}},[t._v("None")])]),t._v(" "),t._l(t.wrappedOptions,(function(e,r){return[Array.isArray(e)?n("r-checklist",{key:r,attrs:{options:e},model:{value:t.local_value,callback:function(e){t.local_value=e},expression:"local_value"}}):n("div",{staticClass:"subtitle"},[t._v(t._s(e))])]}))],2)])],1)};Io._withStripped=!0;var Po={props:{minWidth:{type:String,default:"200px"},name:String,options:{type:Array,default:function(){return[]}},placeholder:{type:String,default:"Select Options"},value:{type:Array,required:!0},template:{type:Function},disabled:Boolean,closeOnMouseOut:!1},data:function(){return{local_value:this.value,is_open:!1,focused:!1,list_bottom:null,list_top:null,max_list_height:null}},computed:{wrappedOptions:function(){return Object(sn.some)(this.options,(function(t){return Array.isArray(t)}))?this.options:[this.options]},maxListHeight:function(){return this.max_list_height+"px"},listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0,t.changeHandler(e),t.validate())},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},watch:{local_value:function(t){this.dirty=!0,this.$emit("input",t)},options:{handler:function(t,e){var n=t.filter((function(t){return Array.isArray(t)}));n=(n=n.length>0?Object(sn.flatten)(n):t).map((function(t){return t instanceof Object?t.value:t})),this.local_value=this.local_value.filter((function(t){return n.indexOf(t)>-1}))},deep:!0}},methods:{changeHandler:function(t){this.local_value=t,this.$emit("input",this.local_value)},toggleList:function(){var t=this;this.disabled||(this.is_open=!this.is_open,this.$nextTick((function(){if(t.is_open){var e=t.$el.getBoundingClientRect(),n=window.innerHeight,r=n-e.bottom-20,i=n-(n-e.top)-20,o=!1;r<200&&i>r&&(o=!0),o?(t.max_list_height=i,t.list_bottom=e.height-5+"px",t.list_top=null):(t.max_list_height=r,t.list_bottom=null,t.list_top=e.height-5+"px")}})))},closeList:function(){this.is_open&&(this.is_open=!1)},closeListOnMouseLeave:function(){this.closeOnMouseOut&&this.closeList()},selectAll:function(){var t=this;this.local_value=[],this.wrappedOptions.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){t.local_value.push(e.value||e)}))})),this.$emit("input",this.local_value)},selectNone:function(){this.local_value=[],this.$emit("input",this.local_value)},keypressHandler:function(t){var e=this,n=t.keyCode||t.which;this.is_open||32!==n||(t.preventDefault(),this.is_open=!0,this.$nextTick((function(){e.$refs.list.querySelector("input").focus()}))),this.is_open&&27===n&&(t.preventDefault(),this.is_open=!1,this.$el.focus())}},components:{rChecklist:Dn},mixins:[Wn.mixin,wn]},qo=(n(308),en(Po,Io,[],!1,null,"9e8c59d6",null));qo.options.__file="src/components/MultiSelect.vue";var Fo=qo.exports,No=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["multi-text-wrapper",{disabled:t.disabled}],on:{focusout:function(e){t.touched=!0,t.validate()}}},[n("div",{directives:[{name:"sortable",rawName:"v-sortable",value:t.options,expression:"options"}],staticClass:"sortable"},t._l(t.local_value,(function(e,r){return n("div",{key:e.key,staticClass:"input-row"},[n("div",{staticClass:"handle icon"},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"}})])]),t._v(" "),n("text-input",t._g({ref:e.key,refInFor:!0,attrs:{name:t.name,type:t.type,value:e.value,allowed:t.allowed,filter:t.filter,mask:t.mask,number:t.number,outputMask:t.outputMask,placeholder:t.placeholder,disabled:t.disabled},on:{input:function(e){return t.updateItem(e,r)}}},t.listeners)),t._v(" "),n("div",{staticClass:"button icon",on:{click:function(e){return t.deleteItem(r)}}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}})])])],1)})),0),t._v(" "),n("div",{staticClass:"input-row add",attrs:{tabindex:"0"},on:{click:t.addItem,keypress:t.keypressHandler}},[n("div",{staticClass:"input-box"},[t._v(t._s(t.addText))]),t._v(" "),n("div",{staticClass:"button icon add"},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}})])])])])};No._withStripped=!0;var zo=n(112);var Bo=function(t,e){return fe(t,e)};var Vo=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;t=t||"",e=e||"";for(var i=0,o=0,a="";i2&&void 0!==arguments[2])||arguments[2],a=0;as.length))return t(r,s,o,n)}return""}}var Xo={data:function(){return{display_value:this.value,last_value:null,is_android:/(android)/i.test(window.navigator.userAgent)}},props:{allowed:{type:[String,Boolean],default:!1},disabled:{type:Boolean,default:!1},filter:Function,mask:{type:[String,Boolean],default:!1},name:String,number:Boolean,outputMask:{type:Boolean,default:!1},placeholder:String,type:String,value:[String,Number]},computed:{localValue:{get:function(){return this.value},set:function(t){this.inputHandler(null,t)}},inputType:function(){return i(this.type)||o(this.type)||""===this.type?"text":this.type},maskConfig:function(){return{mask:this.mask,masked:this.masked,tokens:Wo.tokens}},masked:function(){return this.outputMask},allowedCharacters:function(){if(this.allowed)return new RegExp(this.allowed)},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.is_android&&t.$emit("android-input",e.data),t.inputHandler(e)},keypress:function(e){var n;t.$listeners.keypress&&(n=t.$listeners.keypress(e)),!1!==n&&t.keypressHandler(e)}})}},watch:{value:function(t){t!==this.last_value&&(this.display_value=t)}},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()},inputHandler:function(t,e){if(t&&(e=t.target.value),this.mask){if(t.isTrusted)return;this.display_value=e,(e=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;return Array.isArray(e)?Zo(Go,e,r)(t,e,n,r):Go(t,e,n,r)}(e,this.mask,this.masked,Wo.tokens))!==this.last_value&&(this.last_value=e)}else this.filter&&(e=this.filter(e));this.$emit("input",e)},keypressHandler:function(t){if(this.allowed){var e=String.fromCharCode(t.which);this.allowedCharacters.test(e)||t.preventDefault()}this.$emit("keypress",t)}},directives:{mask:Wo.mask}},Ko=(n(314),en(Xo,Yo,[],!1,null,"4a5bb81d",null));Ko.options.__file="src/components/TextInput.vue";var Jo=Ko.exports,Qo={props:{addText:{type:String,default:"Add Item"},allowed:{type:[String,Boolean],default:!1},filter:{type:Function,default:function(t){return t}},mask:{type:[String,Boolean],default:!1},number:{type:Boolean,default:!1},outputMask:{type:Boolean,default:!1},placeholder:{type:String,default:""},type:{type:String,default:"text"},value:Array,disabled:Boolean},data:function(){return{local_value:this.addKeys(this.value),focused:!1,options:{draggable:".input-row",handle:".handle"}}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.validate()}})}},watch:{value:function(t){Bo(t,Uo(this.local_value,"value"))||(this.local_value=t.map((function(t,e){return{key:Object(zo.uuid)(),value:t}})))}},methods:{focus:function(){this.$refs.items[0].focus()},addKeys:function(t){return t.map((function(t,e){return{key:Object(zo.uuid)(),value:t}}))},addItem:function(){var t=this;if(!this.disabled){var e=Object(zo.uuid)();this.local_value.push({key:e,value:""}),this.$nextTick((function(){t.$refs[e][0].focus()}))}},updateItem:function(t,e){this.$set(this.local_value[e],"value",t),this.$emit("input",Uo(this.local_value,"value"))},deleteItem:function(t){var e=this;this.local_value.splice(t,1),this.$nextTick((function(){e.$emit("input",Uo(e.local_value,"value"))}))},sortItems:function(t){this.$emit("input",t)},keypressHandler:function(t){32===(t.keyCode||t.which)&&(t.preventDefault(),this.addItem())}},directives:{sortable:{bind:function(t,e,n){var r=Ht({},e.value,{onEnd:function(t){var e=Uo(n.context.local_value,"value");e.splice(t.newIndex,0,e.splice(t.oldIndex,1)[0]),n.context.sortItems(e)}});n.sortable=Ao.create(t,r)}}},mixins:[wn],components:{TextInput:Jo}},ta=(n(316),en(Qo,No,[],!1,null,"0011cf06",null));ta.options.__file="src/components/MultiText.vue";var ea=ta.exports,na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-wrapper",{disabled:t.disabled}]},[t._t("left"),t._v(" "),n("input",t._g({directives:[{name:"model",rawName:"v-model.number",value:t.localValue,expression:"localValue",modifiers:{number:!0}}],ref:"input",attrs:{name:t.name,type:"number",disabled:t.disabled},domProps:{value:t.localValue},on:{input:function(e){e.target.composing||(t.localValue=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}},t.listeners)),t._v(" "),t._t("right")],2)};na._withStripped=!0;var ra={props:{value:{type:Number,required:!0},disabled:Boolean},data:function(){return{focused:!1}},computed:{localValue:{get:function(){return this.value},set:function(t){this.dirty=!0,""===t&&(t=0),this.$emit("input",t)}},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.$emit("input",e.target.value),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},mixins:[wn]},ia=(n(318),en(ra,na,[],!1,null,"56c2960e",null));ia.options.__file="src/components/Number.vue";var oa=ia.exports,aa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-wrapper",{disabled:t.disabled}]},[t._t("left"),t._v(" "),n("input",t._g({ref:"input",attrs:{type:"password",name:t.name,autocomplete:t.autocomplete,disabled:t.disabled,placeholder:t.placeholder},domProps:{value:t.value}},t.listeners)),t._v(" "),t._t("right")],2)};aa._withStripped=!0;var sa={props:{autocomplete:String,disabled:Boolean,placeholder:String,value:String},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.$emit("input",e.target.value),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},methods:{inputHandler:function(t){this.dirty=!0,this.$emit("input",t)}},mixins:[wn]},ua=(n(320),en(sa,aa,[],!1,null,"499d154b",null));ua.options.__file="src/components/Password.vue";var la=ua.exports,ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["pillbox-wrapper",{disabled:t.disabled}]},[n("div",{staticClass:"inner"},[t._l(t.propValue,(function(e,r){return n("div",{class:["item",{selected:r===t.selected_item}]},[n("span",{staticClass:"pillbox-value"},[t._v(t._s(e.label||e))]),t._v(" "),n("span",{staticClass:"remove-btn",on:{click:function(e){return t.removeItem(r)}}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}})])])])})),t._v(" "),n("div",{class:["input",t.error_class]},[n("text-input",t._g({ref:"input",attrs:{name:t.name,type:t.type,allowed:t.allowed,filter:t.filter,mask:t.mask,number:t.number,outputMask:t.outputMask,disabled:t.disabled,placeholder:t.placeholder},on:{"android-input":t.androidInputHandler},model:{value:t.input_value,callback:function(e){t.input_value=e},expression:"input_value"}},t.listeners))],1)],2)])};ca._withStripped=!0;n(67);var fa=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o-1:!!i&&ha(t,e,n)>-1},wa={props:{allowed:{type:[String,Boolean],default:!1},filter:{type:Function,default:function(t){return t}},mask:{type:[String,Boolean],default:!1},number:{type:Boolean,default:!1},options:Array,outputMask:{type:Boolean,default:!1},placeholder:{type:String,default:""},type:{type:String,default:"text"},value:Array,inputValue:{type:[String,Object],default:""},commit:{type:[Array,String],default:function(){return["Enter"," ",","]}},disabled:Boolean},data:function(){return{input_value:this.inputValue,focused:!1,full_value:this.propValue,masked:this.outputMask||!1,selected_item:null,error_class:[]}},computed:{propValue:function(){return this.value},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.$emit("update:inputValue",t.input_value)},keydown:function(e){var n;t.$listeners.keydown&&(n=t.$listeners.keydown(e)),!1!==n&&t.keydownHandler(e)},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},watch:{inputValue:function(t){t.label?this.input_value=t.label:this.input_value=t}},methods:{commitValue:function(t){var e,n=this;if(this.options&&(e=this.options.find((function(e){return e.label?e.label===t:e===t})))&&e.value&&(t=e.value),t&&!ba(this.propValue,t)&&t.length>0){"true"===this.number&&(t=Number(t));var r=!0;if(this.pattern)r=new RegExp(this.pattern).test(t);if(r){this.dirty=!0;var i=this.propValue.slice();i.push(e||t),this.$emit("input",i),this.validate(),this.$nextTick((function(){n.input_value=""}))}else this.error_class="errored",this.$nextTick((function(){n.error_class=null}))}},keydownHandler:function(t){var e=this.input_value;"Backspace"===t.key&&0===e.length?null!==this.selected_item?(this.removeItem(this.propValue.length-1),this.selected_item=null):this.selected_item=this.propValue.length-1:ba(this.commit,t.key)?(t.preventDefault(),this.commitValue(e)):this.selected_item=null},androidInputHandler:function(t){t.length&&ba(this.commit,t)&&this.commitValue(this.input_value)},removeItem:function(t){if(!this.disabled){var e=this.propValue.slice();e.splice(t,1),this.$emit("input",e),this.validate()}}},mixins:[wn],components:{TextInput:Jo},mounted:function(){this.mask&&this.$refs.input.$el.addEventListener("keydown",this.keydownHandler)},beforeDestroy:function(){this.mask&&this.$refs.input.$el.removeEventListener("keydown",this.keydownHandler)}},xa=(n(322),en(wa,ca,[],!1,null,"50382ef2",null));xa.options.__file="src/components/Pillbox.vue";var ka=xa.exports,Ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{class:["radio-wrapper",{disabled:t.disabled}]},[n("span",{staticClass:"radio"},[n("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.localModel,expression:"localModel"}],ref:"input",attrs:{type:"radio",name:t.name,disabled:t.disabled},domProps:{value:t.value,checked:t._q(t.localModel,t.value)},on:{change:function(e){t.localModel=t.value}}},t.listeners))]),t._v(" "),t._t("default")],2)};Ca._withStripped=!0;var Aa={props:{model:[String,Boolean,Number,Object],value:[String,Boolean,Number,Object],name:String,disabled:Boolean},model:{prop:"model",event:"change"},computed:{localModel:{get:function(){return this.model},set:function(t){this.$emit("change",t)}},listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0,t.$emit("change",t.value),t.validate())},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},mixins:[wn]},Sa=(n(324),en(Aa,Ca,[],!1,null,"961ceb0a",null));Sa.options.__file="src/components/Radio.vue";var Ea=Sa.exports,Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["radio-group",{disabled:t.disabled}],attrs:{tabindex:"-1"}},t._l(t.optionList,(function(e,r){return n("div",{key:r,staticClass:"option"},[n("r-radio",{ref:"input",refInFor:!0,attrs:{name:t.name,value:e.value,disabled:t.disabled},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}},[n("span",{domProps:{innerHTML:t._s(e.label)}})])],1)})),0)};Oa._withStripped=!0;var ja={components:{rRadio:Ea},props:{value:{type:[String,Number,Boolean,Object]},name:String,options:{type:Array,default:function(){return[]}},disabled:Boolean},computed:{localValue:{get:function(){return this.value},set:function(t){this.$emit("input",t),this.validate()}},optionList:function(){return this.options.map((function(t){return t instanceof Object?t:{label:t,value:t}}))}},watch:{optionList:{handler:function(t){var e=this;t.find((function(t){return t.value===e.value}))||(this.localValue=null)},deep:!0}},mixins:[wn]},Da=(n(326),en(ja,Oa,[],!1,null,"70a7e118",null));Da.options.__file="src/components/RadioGroup.vue";var Ta=Da.exports,Ra=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["select-wrapper",{disabled:t.disabled}]},[n("select",t._g({directives:[{name:"model",rawName:"v-model",value:t.selected_option,expression:"selected_option"}],ref:"input",class:{empty:t.model===t.emptyValue},attrs:{name:t.name,disabled:t.disabled},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected_option=e.target.multiple?n:n[0]},t.changeHandler]}},t.listeners),[n("option",{attrs:{disabled:t.allowEmpty},domProps:{value:t.emptyValue}},[t._v(t._s(t.placeholder))]),t._v(" "),t._l(t.optionList,(function(e){return[t.isArray(e.value)?[n("optgroup",{attrs:{label:e.label}},t._l(e.value,(function(e){return n("option",{domProps:{value:e.value}},[t._v(t._s(e.label))])})),0)]:[n("option",{domProps:{value:e.value}},[t._v(t._s(e.label))])]]}))],2)])};Ra._withStripped=!0;var La={props:{model:{type:[String,Number,Boolean,Object,Function]},name:String,emptyValue:{default:null},allowEmpty:{type:Boolean,default:!0},options:Array,placeholder:{type:String,default:"Select One"},disabled:Boolean},data:function(){return{focused:!1,selected_option:this.model,selected:{value:this.value}}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){t.dirty=!0,t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})},optionList:function(){var t=this;return this.options.map((function(e){return e instanceof Object?(t.isArray(e.value)&&(e.value=e.value.map((function(t){return t instanceof Object?t:{label:t,value:t}}))),e):{label:e,value:e}}))}},watch:{model:function(t){t!==this.selected_option&&(this.selected_option=t,this.changeHandler())},optionList:{handler:function(t){var e=this;t.find((function(t){return t.value===e.selected_option}))||(this.selected_option=this.emptyValue,this.changeHandler())},deep:!0}},model:{prop:"model",event:"change"},methods:{isArray:function(t){return Array.isArray(t)},changeHandler:function(){this.dirty=!0,this.$emit("change",this.selected_option),this.$emit("input",this.selected_option),this.validate()}},mixins:[wn]},Ma=(n(328),en(La,Ra,[],!1,null,"ed6a05a8",null));Ma.options.__file="src/components/Select.vue";var $a=Ma.exports,Ia=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"slider-wrapper",on:{focusout:function(e){t.touched=!0}}},[t.isRange?n("div",{ref:"merged_tooltip",class:["tooltip","merged",{invisible:!t.merged_tooltip}],style:{left:t.merged_tooltip_left}},[t._v(t._s(t.tooltipRange))]):t._e(),t._v(" "),n("div",{ref:"min",staticClass:"handle min",attrs:{tabindex:"0"},on:{mousedown:function(e){return t.mousedownHandler(e,t.$refs.min,0)},touchstart:function(e){return t.mousedownHandler(e,t.$refs.min,0)},keydown:function(e){return t.keydownHandler(e,t.$refs.min,0)},"~blur":function(e){t.touched=!0}}}),t._v(" "),n("div",{ref:"min_tooltip",class:["tooltip",{invisible:t.merged_tooltip}],style:{left:t.min_tooltip_left}},[t._v(t._s(t.tooltipMin))]),t._v(" "),t.isRange?n("div",{ref:"max",staticClass:"handle max",attrs:{tabindex:"0"},on:{mousedown:function(e){return t.mousedownHandler(e,t.$refs.max,1)},touchstart:function(e){return t.mousedownHandler(e,t.$refs.max,1)},keydown:function(e){return t.keydownHandler(e,t.$refs.max,1)},"~blur":function(e){t.touched=!0}}}):t._e(),t._v(" "),t.isRange?n("div",{ref:"max_tooltip",class:["tooltip",{invisible:t.merged_tooltip}],style:{left:t.max_tooltip_left}},[t._v(t._s(t.tooltipMax))]):t._e(),t._v(" "),n("div",{staticClass:"bar"},[n("div",{ref:"selection",staticClass:"selection"})])])};Ia._withStripped=!0;var Pa=function(){return q.a.Date.now()};var qa=function(t){return t},Fa=Math.max,Na=Math.min;var za=function(t,e,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function v(t){return l=t,s=setTimeout(g,e),c?d(t):a}function m(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-l>=o}function g(){var t=Pa();if(m(t))return _(t);s=setTimeout(g,function(t){var n=e-(t-u);return f?Na(n,o-(t-l)):n}(t))}function _(t){return s=void 0,p&&r?d(t):(r=i=void 0,a)}function y(){var t=Pa(),n=m(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return v(u);if(f)return clearTimeout(s),s=setTimeout(g,e),d(u)}return void 0===s&&(s=setTimeout(g,e)),a}return e=qa(e)||0,h(n)&&(c=!!n.leading,o=(f="maxWait"in n)?Fa(qa(n.maxWait)||0,e):o,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},y.flush=function(){return void 0===s?a:_(Pa())},y},Ba=(n(330),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")()),Va=Ba.requestAnimationFrame||Ba.mozRequestAnimationFrame||Ba.webkitRequestAnimationFrame||function(t){return Ba.setTimeout(t,20)},Ha=Ba.cancelAnimationFrame||Ba.mozCancelAnimationFrame||Ba.webkitCancelAnimationFrame||function(t){Ba.clearTimeout(t)};function Ua(t,e){var n=Object.prototype.toString.call(t),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,i=0,o=t.length;if(r)for(;ithis.container.width-this.selected_handle.offsetWidth&&(n=this.container.width-this.selected_handle.offsetWidth),this.isRange&&(this.allowSame?(0===this.selected_index&&n>this.maxPosition()&&(n=this.maxPosition()),1===this.selected_index&&nthis.maxPosition()-this.segmentSize&&(n=this.maxPosition()-this.segmentSize),1===this.selected_index&&n=o&&(this.$set(this.local_value,n,r),i=!0)):(r=this.local_value-this.settings.increment)>=o&&(this.local_value=r,i=!0);break;case 38:case 39:t.preventDefault();var a=this.settings.max;this.isRange?(a=1===n?this.settings.max:this.local_value[1],(r=this.local_value[n]+this.settings.increment)<=a&&(this.$set(this.local_value,n,r),i=!0)):(r=this.local_value+this.settings.increment)<=a&&(this.local_value=r,i=!0)}i&&(this.setHandlePosition(e,this.getValuePosition(r)),this.$emit("input",this.local_value))},getValuePosition:function(t){return(t-this.settings.min)/this.settings.increment*this.segmentSize},getValue:function(t){return this.settings.min+Math.round(t/this.segmentSize)*this.settings.increment},setHandlePosition:function(t,e){t?t.style.left=e+"px":this.isRange?(this.$refs.min.style.left=this.getValuePosition(this.local_value[0])+"px",this.$refs.max.style.left=this.getValuePosition(this.local_value[1])+"px"):this.$refs.min.style.left=this.getValuePosition(this.local_value)+"px",this.container=this.$el.getBoundingClientRect();var n=this.$refs.min.getBoundingClientRect(),r=this.$refs.min_tooltip.getBoundingClientRect(),i=n.left-r.width/2+n.width/2-this.container.left;if(i<0?i=0:i+r.width>this.container.width&&(i=this.container.width-r.width),this.min_tooltip_left=i+"px",this.isRange){var o=this.$refs.max.getBoundingClientRect(),a=this.$refs.max_tooltip.getBoundingClientRect(),s=this.$refs.merged_tooltip.getBoundingClientRect(),u=o.left-a.width/2+o.width/2-this.container.left;u<0?u=0:u+a.width>this.container.width&&(u=this.container.width-a.width),this.max_tooltip_left=u+"px";var l=n.left-(s.width-(o.right-n.left))/2-this.container.left;l<0?l=0:l+s.width>this.container.width&&(l=this.container.width-s.width),this.merged_tooltip_left=l+"px",i+r.width>u?this.merged_tooltip=!0:this.merged_tooltip=!1}this.setSelection(),this.$emit("change",this.local_value)},setSelection:function(){var t=this.$refs.selection;this.isRange?(t.style.left=this.minPosition()+"px",t.style.right=this.container.width-this.maxPosition()-this.$refs.min.offsetWidth+"px"):(t.style.left=0,t.style.right=this.container.width-this.maxPosition()+"px")},resizeHandler:function(){this.container=this.$el.getBoundingClientRect(),this.setHandlePosition()},minPosition:function(){return parseFloat(this.$refs.min.style.left)},maxPosition:function(){if(this.$refs.max)return parseFloat(this.$refs.max.style.left)},emitChange:za((function(){this.$emit("change",this.local_value)}),50)},mixins:[wn],mounted:function(){var t=this;this.container=this.$el.getBoundingClientRect(),this.selected_handle=this.$refs.min,window.addEventListener("mouseup",this.mouseupHandler),window.addEventListener("touchend",this.mouseupHandler),this.resize_sensor=new Xa(this.$el,this.resizeHandler),this.$nextTick((function(){t.setHandlePosition()}))},beforeDestroy:function(){window.removeEventListener("mouseup",this.mouseupHandler),window.removeEventListener("touchend",this.mouseupHandler),window.removeEventListener("resize",this.resizeHandler),this.resize_sensor.detach()}},Ja=(n(331),en(Ka,Ia,[],!1,null,"2dedc691",null));Ja.options.__file="src/components/Slider.vue";var Qa=Ja.exports,ts=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"switch-wrapper"},t._l(t.options,(function(e){return n("span",{class:["option",{selected:t.local_value===t.getValue(e)}]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.local_value,expression:"local_value"}],attrs:{type:"radio",name:t.name},domProps:{value:t.getValue(e),checked:t._q(t.local_value,t.getValue(e))},on:{change:function(n){t.local_value=t.getValue(e)}}}),t._v(" "),n("span",{staticClass:"label"},[t._v(t._s(t.getLabel(e)))])])})),0)};function es(t){return(es="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)}ts._withStripped=!0;var ns={props:{options:{type:Array,default:function(){return[{label:"Yes",value:!0},{label:"No",value:!1}]}},value:{type:[String,Boolean,Number,Object]}},data:function(){return{local_value:this.value}},watch:{value:function(t,e){t!==this.local_value&&(this.local_value=t)},local_value:function(t,e){t!==this.value&&this.$emit("input",this.local_value)}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0)},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},methods:{getLabel:function(t){return"object"===es(t)?t.label:t},getValue:function(t){return"object"===es(t)?t.value:t}},mixins:[wn]},rs=(n(333),en(ns,ts,[],!1,null,"5168b938",null));rs.options.__file="src/components/Switch.vue";var is=rs.exports,os=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"template-editor"},[t.edit_mode?n("div",{staticClass:"edit-window"},[n("div",{staticClass:"toolbar"},[t._m(0),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-header-pound"},on:{click:function(e){return t.command("formatBlock","

")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-bold"},on:{click:function(e){return t.command("bold")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-italic"},on:{click:function(e){return t.command("italic")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-left"},on:{click:function(e){return t.command("justifyLeft")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-center"},on:{click:function(e){return t.command("justifyCenter")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-right"},on:{click:function(e){return t.command("justifyRight")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-justify"},on:{click:function(e){return t.command("justifyFull")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"image"}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"link-variant"},on:{click:function(e){return t.command("createLink")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-list-bulleted-square"},on:{click:function(e){return t.command("insertUnorderedList")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-list-numbered"},on:{click:function(e){return t.command("insertOrderedList")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-quote-close"},on:{click:function(e){return t.command("formatBlock","
")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"code-tags"},on:{click:function(e){return t.command("formatBlock","
")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"playlist-edit"}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"check"},on:{click:function(e){return t.save()}}})],1),t._v(" "),n("div",{staticClass:"template"},[n("iframe",{ref:"canvas",attrs:{id:"template-editor",src:t.templateSrc,frameborder:"0"},on:{load:function(e){return t.init()}}})])]):n("div",[n("r-button",{attrs:{icon:"pencil"},on:{click:function(e){return t.openTemplateEditor()}}},[t._v("Edit Template")])],1)])};os._withStripped=!0;var as={components:{rButton:yn,icon:vn},props:{templateSrc:{type:String,required:!0},value:{type:Object,default:function(){return{}}}},data:function(){return{edit_mode:!1,iframe:null,edit_el:null}},methods:{openTemplateEditor:function(){var t=this;this.edit_mode=!0,this.$nextTick((function(){t.iframe=t.$refs.canvas.contentWindow||t.$refs.canvas.contentDocument,t.$refs.canvas.addEventListener("onload",(function(e){t.init()}))}))},init:function(){var t=this;this.iframe.document.querySelectorAll(".remix-content").forEach((function(e){e.contentEditable="true",e.innerHTML=t.value[e.id],e.addEventListener("focus",(function(n){t.edit_el=e}))}))},command:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.iframe.document.execCommand(t,!1,e),this.edit_el.focus()},save:function(){var t={};this.iframe.document.querySelectorAll(".remix-content").forEach((function(e){t[e.id]=e.innerHTML})),this.$emit("input",t),this.edit_mode=!1}}},ss=(n(335),en(as,os,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-options"},[n("ul",[n("li",[t._v("Heading One")]),t._v(" "),n("li",[t._v("Heading Two")]),t._v(" "),n("li",[t._v("Heading Three")]),t._v(" "),n("li",[t._v("Heading Four")]),t._v(" "),n("li",[t._v("Heading Five")]),t._v(" "),n("li",[t._v("Heading Six")])])])}],!1,null,"ad97ed92",null));ss.options.__file="src/components/TemplateEditor.vue";var us=ss.exports,ls=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-wrapper",attrs:{tabindex:"-1"}},[t._t("left"),t._v(" "),n("text-input",t._g({ref:"input",attrs:{allowed:t.allowed,autocomplete:t.autocomplete,disabled:t.disabled,filter:t.filter,mask:t.mask,name:t.name,number:t.number,"output-mask":t.outputMask,placeholder:t.placeholder,type:t.type,value:t.value}},t.listeners)),t._v(" "),t._t("right")],2)};ls._withStripped=!0;var cs={props:{allowed:String,autocomplete:String,disabled:{type:Boolean,default:!1},filter:Function,mask:String,number:Boolean,outputMask:{type:Boolean,default:!1},placeholder:String,type:String,value:[String,Number]},data:function(){return{focused:!1}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.inputHandler(e),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},methods:{inputHandler:function(t){this.$emit("input",t)}},mixins:[wn],components:{TextInput:Jo}},fs=(n(337),en(cs,ls,[],!1,null,"cb76da46",null));fs.options.__file="src/components/Text.vue";var ps=fs.exports,ds=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"textarea-wrapper",style:{maxHeight:t.maxHeight}},[n("div",{staticClass:"mirror"},[n("pre",[t._v(t._s(t.value)+"\n\t\t")])]),t._v(" "),n("textarea",t._g({ref:"input",attrs:{name:t.name},domProps:{value:t.value}},t.listeners))])};ds._withStripped=!0;var hs={data:function(){return{focused:!1}},props:{maxHeight:{type:String,default:"500px"},value:String},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.$emit("input",e.target.value),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},mixins:[wn]},vs=(n(339),en(hs,ds,[],!1,null,"9eacab2c",null));vs.options.__file="src/components/Textarea.vue";var ms=vs.exports,gs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"toggle-wrapper"},[n("span",{staticClass:"toggle"},[n("input",t._g({ref:"input",attrs:{type:"checkbox",name:t.name,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{checked:t.isChecked,value:t.value}},t.listeners)),t._v(" "),n("span",{staticClass:"handle"})]),t._v(" "),n("span",{staticClass:"toggle-label"},[t._t("default",[t.isChecked?n("span",[t._v(t._s(t.trueLabel))]):n("span",[t._v(t._s(t.falseLabel))])])],2)])};gs._withStripped=!0;var _s={props:{falseLabel:String,falseValue:{},label:String,model:{},name:String,trueLabel:String,trueValue:{},value:{}},computed:{isChecked:function(){return Array.isArray(this.model)?ba(this.model,this.value):(void 0===this.falseValue||this.model!==this.falseValue)&&this.model},listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0,t.changeHandler(e.target.checked))},keydown:function(e){var n;t.$listeners.keydown&&(n=t.$listeners.keydown(e)),!1!==n&&t.keydownHandler(e)},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},model:{prop:"model",event:"change"},methods:{keydownHandler:function(t){switch(t.which){case 37:this.isChecked&&this.changeHandler(!1);break;case 39:this.isChecked||this.changeHandler(!0)}},changeHandler:function(t){var e,n=this;if(Array.isArray(this.model))t?(e=this.model.slice()).push(this.value):e=this.model.filter((function(t){return t!==n.value}));else{var r=this.trueValue||!0,i=this.falseValue||!1;e=t?r:i}this.$emit("change",e),this.validate()}},mixins:[wn]},ys=(n(341),en(_s,gs,[],!1,null,"8da0d0f8",null));ys.options.__file="src/components/Toggle.vue";var bs=ys.exports,ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{invalid:t.errors.length>0,valid:t.isValid}},[t._t("default",null,null,t.self),t._v(" "),t._t("errors",[t.errors.length>0?n("ul",{staticClass:"validation-errors"},[t.showAllErrors?t._l(t.errors,(function(e){return n("li",[t._v(t._s(e))])})):[n("li",[t._v(t._s(t.errors[0]))])]],2):t._e()],null,t.self)],2)};ws._withStripped=!0;var xs={provide:function(){return{field_validator:this}},inject:{form_validator:{name:"form_validator",default:function(){return new Qe}}},props:{value:{required:!0},label:String,disabled:Boolean,group:{default:null},validator:{type:Object,default:function(){return this.form_validator}},watch:Boolean,showAllErrors:Boolean,rules:{type:Array,default:function(){return[this.validator.rules.required()]}}},data:function(){return{local_value:this.value,errors:[],id:null}},computed:{self:function(){return this},isValid:function(){return 0===this.errors.length}},watch:{value:function(t){t!==this.local_value&&(this.local_value=t,this.$emit("change",t),this.watch&&this.validate())}},methods:{reset:function(){this.errors=[]},validate:function(){var t=this;return this.disabled?Promise.resolve():new Promise((function(e,n){t.$nextTick((function(){Promise.all(t.rules.map((function(e){return"function"==typeof e?e(t.local_value):"Error while trying to validate this field"}))).then((function(n){t.errors=ze(n),t.$emit("validate",t.errors),e(n)})).catch((function(t){n(t)}))}))}))}},created:function(){this.id=this.validator.addField(this)},beforeDestroy:function(){this.id&&this.validator.removeField(this.id)}},ks=(n(343),en(xs,ws,[],!1,null,"b70103ae",null));ks.options.__file="src/components/Validation.vue";var Cs=ks.exports,As=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("errors",[t.errors.length>0?n("ul",{staticClass:"validation-errors"},[t.showAllErrors?t._l(t.errors,(function(e){return n("li",[t._v(t._s(e))])})):[n("li",[t._v(t._s(t.errors[0]))])]],2):t._e()],null,t.self),t._v(" "),t._t("default")],2)};As._withStripped=!0;var Ss=en({provide:function(){return{form_validator:this.validator}},props:{validator:{type:Object,default:function(){return new Qe}},showAllErrors:Boolean},data:function(){return{errors:[]}},computed:{self:function(){return this}},methods:{validate:function(t){var e=this;return this.validator.validate(t).then((function(t){return e.errors=[],!0})).catch((function(t){return e.errors=t,!1}))},reset:function(){this.validator.reset()}}},As,[],!1,null,null,null);Ss.options.__file="src/components/Validator.vue";var Es=Ss.exports,Os=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["grid",this.$attrs.class]},[this._t("default")],2)};Os._withStripped=!0;var js={},Ds=(n(345),en(js,Os,[],!1,null,null,null));Ds.options.__file="src/components/Grid.vue";var Ts=Ds.exports,Rs=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["row",this.$attrs.class]},[this._t("default")],2)};Rs._withStripped=!0;var Ls={},Ms=(n(347),en(Ls,Rs,[],!1,null,"513a62da",null));Ms.options.__file="src/components/Row.vue";var $s=Ms.exports,Is=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["column",this.$attrs.class],style:this.style},[this._t("default")],2)};Is._withStripped=!0;var Ps={props:{maxWidth:{type:String},minWidth:{type:String},span:{type:Number}},computed:{style:function(){var t="1 0 0";if(this.minWidth||this.maxWidth||this.span){this.span&&(t=this.span+" 0 0");var e={flex:["-webkit-box","-moz-box","-webkit","-ms",t]};return this.maxWidth&&(e.maxWidth=this.maxWidth),this.minWidth&&(e.minWidth=this.minWidth),e}return null}}},qs=(n(349),n(146)),Fs=en(Ps,Is,[],!1,null,null,null);"function"==typeof qs.default&&Object(qs.default)(Fs),Fs.options.__file="src/components/Column.vue";var Ns=Fs.exports,zs=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["gutter",this.$attrs.class],style:this.style})};zs._withStripped=!0;var Bs=en({props:{size:{type:String,required:!0},static:{type:Boolean,default:!1}},data:function(){return{height:this.size,width:this.size,parent_el:null,display:!0,resize_sensor:null}},computed:{style:function(){return{"background-color":"transparent",height:this.height,"min-height":0,"min-width":0,width:this.width,flex:"0 0 auto"}}},methods:{resizeHandler:function(){var t=this,e=this.$el.previousElementSibling,n=this.$el.nextElementSibling;this.height=this.size,this.width=this.size,this.$nextTick((function(){if(e&&n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect();i.top>=r.bottom?t.width="0":(t.height="100%",t.width=t.size),i.left>=r.right?t.height="0":(t.height=t.size,t.width="100%")}}))}},mounted:function(){this.static||(this.parent_el=this.$el.parentElement,this.resize_sensor=new Xa(this.parent_el,this.resizeHandler),this.resizeHandler())}},zs,[],!1,null,null,null);Bs.options.__file="src/components/Gutter.vue";var Vs=Bs.exports,Hs=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"spacer",style:{flex:this.flexBasis}})};Hs._withStripped=!0;var Us=en({props:{size:{type:String,default:"10px"}},computed:{flexBasis:function(){return"0 0 "+this.size}}},Hs,[],!1,null,null,null);Us.options.__file="src/components/Spacer.vue";var Ys=Us.exports,Ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeOptions,expression:"closeOptions"}],staticClass:"autocomplete-wrapper",on:{keydown:t.keydownHandler,keypress:function(e){t.update_filters=!0},input:t.androidInputHandler,focusin:t.focusinHandler}},[t._t("default"),t._v(" "),t.filtered_options.length>0&&!t.loading_data?n("div",{staticClass:"autocomplete-options"},t._l(t.filtered_options,(function(e,r){return n("div",{key:r,class:["option",{selected:t.selected_index===r}],on:{click:function(n){return t.clickHandler(n,e)},mouseover:function(e){t.selected_index=r},mouseout:function(e){t.selected_index=-1}}},[t._v(t._s(e.label||e))])})),0):t.loading_data?n("div",{staticClass:"autocomplete-loading autocomplete-options"},[n("div",{staticClass:"option"},[t._v("Loading...")])]):t._e()],2)};Ws._withStripped=!0;var Gs=n(200),Zs=n.n(Gs),Xs={data:function(){return{filtered_options:[],original_value:"",selected_index:-1,selected_value:"",update_filters:!1,loading_data:!1,is_android:/(android)/i.test(window.navigator.userAgent)}},props:{value:{type:[String,Object]},settings:{type:Object,default:function(){return{min_length:2}}},options:{type:[Array,Function],default:function(){return[]}}},watch:{value:function(t,e){this.update_filters&&(this.original_value=this.value,this.getNewOptions(t),this.update_filters=!1)}},methods:{focusinHandler:function(){this.focus_element=document.activeElement,this.getNewOptions(this.value)},closeOptions:function(){var t=this;this.$nextTick((function(){t.filtered_options=[],t.original_value="",t.selected_index=-1,t.selected_value=""}))},clickHandler:function(t,e){var n=this;t.preventDefault(),t.stopPropagation(),this.$emit("input",e),this.$nextTick((function(){n.focus_element.focus(),n.closeOptions()}))},getNewOptions:function(t){var e=this;if(t.length>=this.settings.min_length)if(this.selected_index=-1,this.selected_value="","function"==typeof this.options){var n=this.options(t);n&&"function"==typeof n.then&&(this.loading_data=!0,n.then((function(t){e.filtered_options=t,e.loading_data=!1})).catch((function(t){})))}else{var r=Zs.a.filter(t,this.options);this.filtered_options=r.map((function(t){return t.string}))}else this.filtered_options=[]},keydownHandler:function(t){switch(t.which||t.keyCode){case 38:t.preventDefault(),t.stopPropagation(),this.selected_index>-1&&(this.selected_index--,this.selected_index<0?this.selected_value=this.value:this.selected_value=this.filtered_options[this.selected_index],this.$emit("selected",this.selected_value));break;case 40:t.preventDefault(),t.stopPropagation(),this.selected_index
{{title}}
',methods:{alert:function(t){var e=this;return this.type="alert","string"==typeof t&&(t={message:t}),new Promise((function(n,r){e.title=t.title||!1,e.message=t.message,e.accept=t.accept||"OK",e.max_width=t.width||"400px",e.$refs.msg.open().then((function(){e.$refs.accept_btn.focus()})),e.promise={resolve:n,reject:r}}))},confirm:function(t){var e=this;return this.type="confirm","string"==typeof t&&(t={message:t}),new Promise((function(n,r){e.title=t.title||!1,e.message=t.message||t.prompt,e.accept=t.accept||"OK",e.decline=t.decline||"Cancel",e.max_width=t.width||"400px",e.$refs.msg.open().then((function(){e.$refs.cancel_btn.focus()})),e.promise={resolve:n,reject:r}}))},closeMsg:function(t){var e=this;this.$refs.msg.close().then((function(){e.title="",e.message="",e.promise=null})),!0===t?this.promise.resolve(!0):this.promise.resolve(!1)}},components:{modal:ru}}),hu={init:function(){var t=document.getElementById("msg");t||((t=document.createElement("div")).id="msg",document.body.appendChild(t));var e=new du;return e.$mount(t),e}},vu=pu.a.extend({data:function(){return{queue:[]}},template:'
{{message.title}}
{{message.content}}
',methods:{icon:function(t){if(!1!==t.icon){if("string"==typeof t.icon)return t.icon;switch(t.type){case"info":return"information";case"success":return"check";case"warning":return"alert";case"error":return"alert-octagon"}}return null},add:function(t){var e=this,n=Wt("toast-");this.queue.unshift({id:n,icon:t.icon||!1,title:t.title||null,content:t.message,type:t.type||"info"}),setTimeout((function(){e.remove(n)}),t.timeout||this.$options.timeout)},remove:function(t){var e=this;this.queue.forEach((function(n,r){n.id===t&&e.queue.splice(r,1)}))},success:function(t,e){this.add({icon:!0,title:"Success",message:t,type:"success",timeout:e})},error:function(t,e){this.add({icon:!0,title:"Error",message:t,type:"error",timeout:e})},info:function(t,e){this.add({icon:!0,title:"Information",message:t,type:"info",timeout:e})},warning:function(t,e){this.add({icon:!0,title:"Warning",message:t,type:"warning",timeout:e})}},components:{Icon:vn}}),mu={init:function(t){var e=Object.assign({parent:"body",timeout:3e3},t),n=document.querySelector("#toast");n||((n=document.createElement("div")).id="toast",document.querySelector(e.parent).appendChild(n));var r=new vu;return r.$options.timeout=e.timeout,r.$mount("#toast"),r}},gu={rButton:yn,rCheckbox:An,rChecklist:Dn,rCode:Pn,rCurrency:Vn,rDatepicker:er,rFileInput:ar,rForm:on,rFormBuilder:fn,rGroupSelect:jo,rMarkdown:$o,rMultiSelect:Fo,rMultiText:ea,rNumber:oa,rPassword:la,rPillbox:ka,rRadio:Ea,rRadioGroup:Ta,rSelect:$a,rSlider:Qa,rSwitch:is,rTemplateEditor:us,rText:ps,rTextarea:ms,rTimepicker:Kn,rToggle:bs,rValidation:Cs,rValidator:Es,Icon:vn,Grid:Ts,Row:$s,Column:Ns,Gutter:Vs,Spacer:Ys,Autocomplete:Qs,Modal:ru,Tab:au,Tabs:cu,Msg:hu,Toast:mu,Validator:Qe};e.default={install:function(t,e){e?e.forEach((function(e){if("Msg"!==e&&"Toast"!==e&&"Validator"!==e)gu[e]?t.component(e,gu[e]):gu["r"+e]&&t.component("r"+e,gu["r"+e]);else switch(e){case"Msg":t.prototype.$msg=hu.init();break;case"Toast":t.prototype.$toast=mu.init();break;case"Validator":t.prototype.$validator=Qe}})):(t.component("rForm",on),t.component("rFormBuilder",fn),t.component("rButton",yn),t.component("rCheckbox",An),t.component("rChecklist",Dn),t.component("rCode",Pn),t.component("rCurrency",Vn),t.component("rDatepicker",er),t.component("rFile",ar),t.component("rGroupSelect",jo),t.component("rMarkdown",$o),t.component("rMultiSelect",Fo),t.component("rMultiText",ea),t.component("rNumber",oa),t.component("rPassword",la),t.component("rPillbox",ka),t.component("rRadio",Ea),t.component("rRadioGroup",Ta),t.component("rSelect",$a),t.component("rSlider",Qa),t.component("rSwitch",is),t.component("rTemplateEditor",us),t.component("rText",ps),t.component("rTextarea",ms),t.component("rTimepicker",Kn),t.component("rToggle",bs),t.component("rValidation",Cs),t.component("rValidator",Es),t.component("icon",vn),t.component("grid",Ts),t.component("row",$s),t.component("column",Ns),t.component("gutter",Vs),t.component("spacer",Ys),t.component("autocomplete",Qs),t.component("modal",ru),t.component("tab",au),t.component("tabs",cu),t.prototype.$msg=hu.init(),t.prototype.$toast=mu.init(),t.prototype.$Validator=Qe)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"v1",(function(){return v})),n.d(e,"v3",(function(){return A})),n.d(e,"v4",(function(){return S})),n.d(e,"v5",(function(){return j})),n.d(e,"NIL",(function(){return D})),n.d(e,"version",(function(){return T})),n.d(e,"validate",(function(){return s})),n.d(e,"stringify",(function(){return p})),n.d(e,"parse",(function(){return m}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&a.test(t)},u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c,f,p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},d=0,h=0;var v=function(t,e,n){var r=e&&n||0,i=e||new Array(16),a=(t=t||{}).node||c,s=void 0!==t.clockseq?t.clockseq:f;if(null==a||null==s){var u=t.random||(t.rng||o)();null==a&&(a=c=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var l=void 0!==t.msecs?t.msecs:Date.now(),v=void 0!==t.nsecs?t.nsecs:h+1,m=l-d+(v-h)/1e4;if(m<0&&void 0===t.clockseq&&(s=s+1&16383),(m<0||l>d)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=l,h=v,f=s;var g=(1e4*(268435455&(l+=122192928e5))+v)%4294967296;i[r++]=g>>>24&255,i[r++]=g>>>16&255,i[r++]=g>>>8&255,i[r++]=255&g;var _=l/4294967296*1e4&268435455;i[r++]=_>>>8&255,i[r++]=255&_,i[r++]=_>>>24&15|16,i[r++]=_>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var y=0;y<6;++y)i[r+y]=a[y];return e||p(i)};var m=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};var g=function(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n>>9<<4)+1}function y(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function b(t,e,n,r,i,o){return y((a=y(y(e,t),y(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function w(t,e,n,r,i,o,a){return b(e&n|~e&r,t,e,i,o,a)}function x(t,e,n,r,i,o,a){return b(e&r|n&~r,t,e,i,o,a)}function k(t,e,n,r,i,o,a){return b(e^n^r,t,e,i,o,a)}function C(t,e,n,r,i,o,a){return b(n^(e|~r),t,e,i,o,a)}var A=g("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);e.push(o)}return e}(function(t,e){t[e>>5]|=128<>5]|=(255&t[r/8])<>>32-e}var j=g("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i>>0;y=_,_=g,g=O(m,30)>>>0,m=v,v=x}n[0]=n[0]+v>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+_>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),D="00000000-0000-0000-0000-000000000000";var T=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}])})); \ No newline at end of file +function ur(t){return(ur="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 lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cr(){return(cr=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 dr(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 Ar(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Sr(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&Cr(t,e):Cr(t,e))||r&&t===n)return t;if(t===n)break}while(t=Ar(t))}return null}var Er,Or=/\s+/g;function jr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(Or," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(Or," ")}}function Dr(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 Tr(t,e){var n="";if("string"==typeof t)n=t;else do{var r=Dr(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 Rr(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===Lr())break;r=Nr(r,!1)}return!1}function Ir(t,e,n){for(var r=0,i=0,o=t.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=pr(n,["evt"]);Kr.pluginEvent.bind(Ui)(t,e,fr({dragEl:ei,parentEl:ni,ghostEl:ri,rootEl:ii,nextEl:oi,lastDownEl:ai,cloneEl:si,cloneHidden:ui,dragStarted:wi,putSortable:hi,activeSortable:Ui.active,originalEvent:r,oldIndex:li,oldDraggableIndex:fi,newIndex:ci,newDraggableIndex:pi,hideGhostForTarget:zi,unhideGhostForTarget:Bi,cloneNowHidden:function(){ui=!0},cloneNowShown:function(){ui=!1},dispatchSortableEvent:function(t){ti({sortable:e,name:t,originalEvent:r})}},i))};function ti(t){Jr(fr({putSortable:hi,cloneEl:si,targetEl:ei,rootEl:ii,oldIndex:li,oldDraggableIndex:fi,newIndex:ci,newDraggableIndex:pi},t))}var ei,ni,ri,ii,oi,ai,si,ui,li,ci,fi,pi,di,hi,vi,mi,gi,_i,yi,bi,wi,xi,ki,Ci,Ai,Si=!1,Ei=!1,Oi=[],ji=!1,Di=!1,Ti=[],Ri=!1,Li=[],Mi="undefined"!=typeof document,$i=yr,Ii=mr||vr?"cssFloat":"float",Pi=Mi&&!br&&!yr&&"draggable"in document.createElement("div"),qi=function(){if(Mi){if(vr)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Fi=function(t,e){var n=Dr(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Ir(t,0,e),o=Ir(t,1,e),a=i&&Dr(i),s=o&&Dr(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Mr(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Mr(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 c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Ii]||o&&"none"===n[Ii]&&u+l>r)?"vertical":"horizontal"},Ni=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 u=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===u||t.join&&t.indexOf(u)>-1}}var n={},r=t.group;r&&"object"==ur(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},zi=function(){!qi&&ri&&Dr(ri,"display","none")},Bi=function(){!qi&&ri&&Dr(ri,"display","")};Mi&&document.addEventListener("click",(function(t){if(Ei)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ei=!1,!1}),!0);var Vi=function(t){if(ei){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,Oi.some((function(t){if(!Pr(t)){var e=Mr(t),n=t[Wr].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[Wr]._onDragOver(n)}}var i,o,a},Hi=function(t){ei&&ei.parentNode[Wr]._isOutsideThisEl(t.target)};function Ui(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=cr({},e),t[Wr]=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 Fi(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!==Ui.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in Kr.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in Ni(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Pi,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?xr(t,"pointerdown",this._onTapStart):(xr(t,"mousedown",this._onTapStart),xr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xr(t,"dragover",this),xr(t,"dragenter",this)),Oi.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),cr(this,Gr())}function Yi(t,e,n,r,i,o,a,s){var u,l,c=t[Wr],f=c.options.onMove;return!window.CustomEvent||vr||mr?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=i||e,u.relatedRect=o||Mr(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function Wi(t){t.draggable=!1}function Gi(){Ri=!1}function Zi(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 Xi(t){return setTimeout(t,0)}function Ki(t){return clearTimeout(t)}Ui.prototype={constructor:Ui,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(xi=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ei):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,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=r.filter;if(function(t){Li.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&Li.push(r)}}(n),!ei&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||u.isContentEditable||(s=Sr(s,r.draggable,n,!1))&&s.animated||ai===s)){if(li=qr(s),fi=qr(s,r.draggable),"function"==typeof l){if(l.call(this,t,s,this))return ti({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),Qr("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=Sr(u,r.trim(),n,!1))return ti({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Qr("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!Sr(u,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&&!ei&&n.parentNode===o){var u=Mr(n);if(ii=o,ni=(ei=n).parentNode,oi=ei.nextSibling,ai=n,di=a.group,Ui.dragged=ei,vi={target:ei,clientX:(e||t).clientX,clientY:(e||t).clientY},yi=vi.clientX-u.left,bi=vi.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ei.style["will-change"]="all",r=function(){Qr("delayEnded",i,{evt:t}),Ui.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!gr&&i.nativeDraggable&&(ei.draggable=!0),i._triggerDragStart(t,e),ti({sortable:i,name:"choose",originalEvent:t}),jr(ei,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){Rr(ei,t.trim(),Wi)})),xr(s,"dragover",Vi),xr(s,"mousemove",Vi),xr(s,"touchmove",Vi),xr(s,"mouseup",i._onDrop),xr(s,"touchend",i._onDrop),xr(s,"touchcancel",i._onDrop),gr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ei.draggable=!0),Qr("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(mr||vr))r();else{if(Ui.eventCanceled)return void this._onDrop();xr(s,"mouseup",i._disableDelayedDrag),xr(s,"touchend",i._disableDelayedDrag),xr(s,"touchcancel",i._disableDelayedDrag),xr(s,"mousemove",i._delayedDragTouchMoveHandler),xr(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&xr(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(){ei&&Wi(ei),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;kr(t,"mouseup",this._disableDelayedDrag),kr(t,"touchend",this._disableDelayedDrag),kr(t,"touchcancel",this._disableDelayedDrag),kr(t,"mousemove",this._delayedDragTouchMoveHandler),kr(t,"touchmove",this._delayedDragTouchMoveHandler),kr(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?xr(document,"pointermove",this._onTouchMove):xr(document,e?"touchmove":"mousemove",this._onTouchMove):(xr(ei,"dragend",this),xr(ii,"dragstart",this._onDragStart));try{document.selection?Xi((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Si=!1,ii&&ei){Qr("dragStarted",this,{evt:e}),this.nativeDraggable&&xr(document,"dragover",Hi);var n=this.options;!t&&jr(ei,n.dragClass,!1),jr(ei,n.ghostClass,!0),Ui.active=this,t&&this._appendGhost(),ti({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(mi){this._lastX=mi.clientX,this._lastY=mi.clientY,zi();for(var t=document.elementFromPoint(mi.clientX,mi.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(mi.clientX,mi.clientY))!==e;)e=t;if(ei.parentNode[Wr]._isOutsideThisEl(t),e)do{if(e[Wr]){if(e[Wr]._onDragOver({clientX:mi.clientX,clientY:mi.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bi()}},_onTouchMove:function(t){if(vi){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=ri&&Tr(ri,!0),a=ri&&o&&o.a,s=ri&&o&&o.d,u=$i&&Ai&&Fr(Ai),l=(i.clientX-vi.clientX+r.x)/(a||1)+(u?u[0]-Ti[0]:0)/(a||1),c=(i.clientY-vi.clientY+r.y)/(s||1)+(u?u[1]-Ti[1]:0)/(s||1);if(!Ui.active&&!Si){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===ei)return D(!1);if(v&&o===t.target&&(a=v),a&&(n=Mr(a)),!1!==Yi(ii,o,ei,e,a,n,t,!!a))return j(),o.appendChild(ei),ni=o,T(),D(!0)}else if(a.parentNode===o){n=Mr(a);var m,g,_,y=ei.parentNode!==o,b=!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,u=n?e.width:e.height;return r===a||i===s||r+o/2===a+u/2}(ei.animated&&ei.toRect||e,a.animated&&a.toRect||n,i),w=i?"top":"left",x=$r(a,"top","top")||$r(ei,"top","top"),k=x?x.scrollTop:void 0;if(xi!==a&&(g=n[w],ji=!1,Di=!b&&s.invertSwap||y),0!==(m=function(t,e,n,r,i,o,a,s){var u=r?t.clientY:t.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a)if(s&&Cic+l*o/2:uf-Ci)return-ki}else if(u>c+l*(1-i)/2&&uf-l*o/2))return u>c+l/2?1:-1;return 0}(t,a,n,i,b?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Di,xi===a))){var C=qr(ei);do{C-=m,_=ni.children[C]}while(_&&("none"===Dr(_,"display")||_===ri))}if(0===m||_===a)return D(!1);xi=a,ki=m;var A=a.nextElementSibling,S=!1,E=Yi(ii,o,ei,e,a,n,t,S=1===m);if(!1!==E)return 1!==E&&-1!==E||(S=1===E),Ri=!0,setTimeout(Gi,30),j(),S&&!A?o.appendChild(ei):a.parentNode.insertBefore(ei,S?A:a),x&&Vr(x,0,k-x.scrollTop),ni=ei.parentNode,void 0===g||Di||(Ci=Math.abs(g-Mr(a)[w])),T(),D(!0)}if(o.contains(ei))return D(!1)}return!1}function O(s,u){Qr(s,d,fr({evt:t,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:f,fromSortable:p,target:a,completed:D,onMove:function(n,r){return Yi(ii,o,ei,e,n,Mr(n),t,r)},changed:T},u))}function j(){O("dragOverAnimationCapture"),d.captureAnimationState(),d!==p&&p.captureAnimationState()}function D(e){return O("dragOverCompleted",{insertion:e}),e&&(c?l._hideClone():l._showClone(d),d!==p&&(jr(ei,hi?hi.options.ghostClass:l.options.ghostClass,!1),jr(ei,s.ghostClass,!0)),hi!==d&&d!==Ui.active?hi=d:d===Ui.active&&hi&&(hi=null),p===d&&(d._ignoreWhileAnimating=a),d.animateAll((function(){O("dragOverAnimationComplete"),d._ignoreWhileAnimating=null})),d!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ei&&!ei.animated||a===o&&!a.animated)&&(xi=null),s.dragoverBubble||t.rootEl||a===document||(ei.parentNode[Wr]._isOutsideThisEl(t.target),!e&&Vi(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function T(){ci=qr(ei),pi=qr(ei,s.draggable),ti({sortable:d,name:"change",toEl:o,newIndex:ci,newDraggableIndex:pi,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){kr(document,"mousemove",this._onTouchMove),kr(document,"touchmove",this._onTouchMove),kr(document,"pointermove",this._onTouchMove),kr(document,"dragover",Vi),kr(document,"mousemove",Vi),kr(document,"touchmove",Vi)},_offUpEvents:function(){var t=this.el.ownerDocument;kr(t,"mouseup",this._onDrop),kr(t,"touchend",this._onDrop),kr(t,"pointerup",this._onDrop),kr(t,"touchcancel",this._onDrop),kr(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ci=qr(ei),pi=qr(ei,n.draggable),Qr("drop",this,{evt:t}),ni=ei&&ei.parentNode,ci=qr(ei),pi=qr(ei,n.draggable),Ui.eventCanceled||(Si=!1,Di=!1,ji=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ki(this.cloneId),Ki(this._dragStartId),this.nativeDraggable&&(kr(document,"drop",this),kr(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_r&&Dr(document.body,"user-select",""),Dr(ei,"transform",""),t&&(wi&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ri&&ri.parentNode&&ri.parentNode.removeChild(ri),(ii===ni||hi&&"clone"!==hi.lastPutMode)&&si&&si.parentNode&&si.parentNode.removeChild(si),ei&&(this.nativeDraggable&&kr(ei,"dragend",this),Wi(ei),ei.style["will-change"]="",wi&&!Si&&jr(ei,hi?hi.options.ghostClass:this.options.ghostClass,!1),jr(ei,this.options.chosenClass,!1),ti({sortable:this,name:"unchoose",toEl:ni,newIndex:null,newDraggableIndex:null,originalEvent:t}),ii!==ni?(ci>=0&&(ti({rootEl:ni,name:"add",toEl:ni,fromEl:ii,originalEvent:t}),ti({sortable:this,name:"remove",toEl:ni,originalEvent:t}),ti({rootEl:ni,name:"sort",toEl:ni,fromEl:ii,originalEvent:t}),ti({sortable:this,name:"sort",toEl:ni,originalEvent:t})),hi&&hi.save()):ci!==li&&ci>=0&&(ti({sortable:this,name:"update",toEl:ni,originalEvent:t}),ti({sortable:this,name:"sort",toEl:ni,originalEvent:t})),Ui.active&&(null!=ci&&-1!==ci||(ci=li,pi=fi),ti({sortable:this,name:"end",toEl:ni,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Qr("nulling",this),ii=ei=ni=ri=oi=si=ai=ui=vi=mi=wi=ci=pi=li=fi=xi=ki=hi=di=Ui.dragged=Ui.ghost=Ui.clone=Ui.active=null,Li.forEach((function(t){t.checked=!0})),Li.length=gi=_i=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ei&&(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&&(_o.forEach((function(t){r.addAnimationState({target:t,rect:wo?Mr(t):i}),Yr(t),t.fromRect=i,e.removeAnimationState(t)})),wo=!1,function(t,e){_o.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(),bo=!1,s.animation&&_o.length>1&&(wo||!n&&!i.options.sort&&!a)){var u=Mr(vo,!1,!0,!0);_o.forEach((function(t){t!==vo&&(Ur(t,u),o.appendChild(t))})),wo=!0}if(!n)if(wo||Co(),_o.length>1){var l=go;i._showClone(e),i.options.animation&&!go&&l&&yo.forEach((function(t){i.addAnimationState({target:t,rect:mo}),t.fromRect=mo,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(_o.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){mo=cr({},e);var i=Tr(vo,!0);mo.top-=i.f,mo.left-=i.e}},dragOverAnimationComplete:function(){wo&&(wo=!1,Co())},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,u=s||this.sortable;if(e){var l=this.options,c=r.children;if(!xo)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),jr(vo,l.selectedClass,!~_o.indexOf(vo)),~_o.indexOf(vo))_o.splice(_o.indexOf(vo),1),po=null,Jr({sortable:i,rootEl:n,name:"deselect",targetEl:vo,originalEvt:e});else{if(_o.push(vo),Jr({sortable:i,rootEl:n,name:"select",targetEl:vo,originalEvt:e}),e.shiftKey&&po&&i.el.contains(po)){var f,p,d=qr(po),h=qr(vo);if(~d&&~h&&d!==h)for(h>d?(p=d,f=h):(p=h,f=d+1);p1){var v=Mr(vo),m=qr(vo,":not(."+this.options.selectedClass+")");if(!bo&&l.animation&&(vo.thisAnimationDuration=null),u.captureAnimationState(),!bo&&(l.animation&&(vo.fromRect=v,_o.forEach((function(t){if(t.thisAnimationDuration=null,t!==vo){var e=wo?Mr(t):v;t.fromRect=e,u.addAnimationState({target:t,rect:e})}}))),Co(),_o.forEach((function(t){c[m]?r.insertBefore(t,c[m]):r.appendChild(t),m++})),a===qr(vo))){var g=!1;_o.forEach((function(t){t.sortableIndex===qr(t)||(g=!0)})),g&&o("update")}_o.forEach((function(t){Yr(t)})),u.animateAll()}ho=u}(n===r||s&&"clone"!==s.lastPutMode)&&yo.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=xo=!1,yo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),kr(document,"pointerup",this._deselectMultiDrag),kr(document,"mouseup",this._deselectMultiDrag),kr(document,"touchend",this._deselectMultiDrag),kr(document,"keydown",this._checkKeyDown),kr(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==xo&&xo||ho!==this.sortable||t&&Sr(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;_o.length;){var e=_o[0];jr(e,this.options.selectedClass,!1),_o.shift(),Jr({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)}},cr(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Wr];e&&e.options.multiDrag&&!~_o.indexOf(t)&&(ho&&ho!==e&&(ho.multiDrag._deselectMultiDrag(),ho=e),jr(t,e.options.selectedClass,!0),_o.push(t))},deselect:function(t){var e=t.parentNode[Wr],n=_o.indexOf(t);e&&e.options.multiDrag&&~n&&(jr(t,e.options.selectedClass,!1),_o.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return _o.forEach((function(r){var i;e.push({multiDragElement:r,index:r.sortableIndex}),i=wo&&r!==vo?-1:wo?qr(r,":not(."+t.options.selectedClass+")"):qr(r),n.push({multiDragElement:r,index:i})})),{items:dr(_o),clones:[].concat(yo),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}}})});var Eo={props:{activeHeader:{type:String,default:"Selected Options"},inactiveHeader:{type:String,default:"Available Options"},maxHeight:{type:String,default:"250px"},options:{type:Array,required:!0},sortableOptions:{type:Object,default:function(){return{}}},value:{type:Array,required:!0},sort:{type:[Boolean,Function],default:!1},disabled:Boolean},data:function(){return{selected_active:[],selected_inactive:[],mapped_options:[],active:[],inactive:[]}},computed:{mergedSortableOptions:function(){return this.disabled?Object(sn.merge)({},this.sortableOptions,{disabled:!0}):this.sortableOptions}},watch:{value:{handler:function(t,e){Object(sn.isEqual)(t,e)||this.setListValues(t)},deep:!0},options:{handler:function(t,e){Object(sn.isEqual)(t,e)||this.initComponent()},deep:!0}},methods:{isSelected:function(t){return this.selected_active.indexOf(t)>-1||this.selected_inactive.indexOf(t)>-1},resetSelection:function(){this.selected_active=[],this.selected_inactive=[]},setListValues:function(t){var e=this,n=t.map((function(t){var n=t;try{n="object"!==So(t)?JSON.stringify(t):JSON.stringify(t.value)}catch(t){}return Object(sn.clone)(Object(sn.find)(e.mapped_options,{value:n}))}));this.active=[],n.forEach((function(t,n){var r=Object(sn.find)(e.mapped_options,{value:t.value});r&&e.active.push(r)})),Object(sn.remove)(this.inactive,(function(t,n){return Object(sn.find)(e.active,{value:t.value})}));var r=Object(sn.differenceWith)(this.mapped_options,this.inactive.concat(this.active),sn.isEqual);this.inactive=Object(sn.uniqWith)(this.inactive.concat(r),sn.isEqual),this.sort&&("function"==typeof this.sort?(this.active=this.sort(this.active),this.inactive=this.sort(this.inactive)):(this.active=Object(sn.sortBy)(this.active,"label"),this.inactive=Object(sn.sortBy)(this.inactive,"label")))},moveSelected:function(t,e){var n=this;if("inactive"===t)if(e)this.inactive=this.mapped_options.slice(),this.emitNewValue([]);else{var r=this.active.filter((function(t){return!Object(sn.some)(n.selected_active,(function(e){return e.value===t.value}))}));this.emitNewValue(r)}else if(e)this.emitNewValue(this.mapped_options);else{var i=this.active.concat(this.selected_inactive);this.emitNewValue(i)}this.resetSelection()},emitNewValue:function(t){var e=this;this.$nextTick((function(){e.sort&&(t="function"==typeof e.sort?e.sort(t):Object(sn.sortBy)(t,"label")),t=t.map((function(t){try{t.value;return JSON.parse(t.value)}catch(e){return t}})),e.$emit("input",t)}))},initComponent:function(){var t=this;this.mapped_options=this.options.map((function(t){var e=Object(sn.clone)(t);try{"object"!==So(t)?e={label:t.toString(),value:JSON.stringify(t)}:e.value=JSON.stringify(t.value)}catch(t){}return e}));var e=this.value.slice();Object(sn.remove)(e,(function(e){return!Object(sn.some)(t.mapped_options,(function(t){var n=t.value;try{n=JSON.parse(t.value)}catch(t){}return e===n}))})),this.sort&&("function"==typeof this.sort?this.mapped_options=this.sort(this.mapped_options):this.mapped_options=Object(sn.sortBy)(this.mapped_options,"label")),this.inactive=this.mapped_options.slice(),Object(sn.isEqual)(e,this.value)?this.setListValues(this.value):this.emitNewValue(e)}},mounted:function(){this.initComponent()},directives:{sortable:{bind:function(t,e,n){var r=Object(sn.merge)({},e.value,{group:"items",multiDrag:!0,selectedClass:"selected",onSelect:function(t){var e="active";Object(sn.includes)(t.target.classList,"inactive")&&(e="inactive");var r=t.item.className.split(" ");Object(sn.includes)(r,name)||(t.item.className+=" selected");var i=[];t.items.forEach((function(t){i.push(Object(sn.pick)(t.dataset,["label","value"]))})),n.context["selected_"+e]=Object(sn.uniqWith)(i,sn.isEqual)},onDeselect:function(t){var e="active";Object(sn.includes)(t.target.classList,"inactive")&&(e="inactive"),setTimeout((function(){t.item.classList.remove("selected");var r=[];t.items.forEach((function(t){r.push(Object(sn.pick)(t.dataset,["label","value"]))})),n.context["selected_"+e]=Object(sn.uniqWith)(r,sn.isEqual)}),0)},onSort:function(t){var e="inactive",r=!1;Object(sn.includes)(t.to.classList,"active")&&Object(sn.includes)(t.from.classList,"active")&&(r=n.context.active.slice(),e="active"),Object(sn.includes)(t.to.classList,"inactive")&&Object(sn.includes)(t.from.classList,"inactive")&&(r=n.context.inactive.slice(),e="inactive"),r&&(t.items.length>0?t.items.forEach((function(e,n){r.splice(t.newIndicies[n].index,0,r.splice(t.oldIndicies[n].index,1)[0])})):r.splice(t.newIndex,0,r.splice(t.oldIndex,1)[0]),"active"===e?n.context.emitNewValue(r):n.context.inactive=r)},onAdd:function(t){if(Object(sn.includes)(t.to.classList,"active")){var e=n.context.active.slice();t.items.length>0?t.items.forEach((function(n,r){e.splice(t.newIndicies[r].index,0,Object(sn.pick)(n.dataset,["label","value"]))})):e.splice(t.newIndex,0,Object(sn.pick)(t.item.dataset,["label","value"])),n.context.emitNewValue(e)}},onRemove:function(t){if(Object(sn.includes)(t.from.classList,"active")){var e=[];t.items.length>0?t.items.forEach((function(r,i){e.push(r.dataset.value),n.context.inactive.splice(t.newIndicies[i].index,0,Object(sn.pick)(r.dataset,["label","value"]))})):(e.push(t.item.dataset.value),n.context.inactive.splice(t.newIndex,0,Object(sn.pick)(t.item.dataset,["label","value"])));var r=n.context.active.filter((function(t){return!Object(sn.includes)(e,t.value)}));n.context.emitNewValue(r)}},onEnd:function(t){t.to!==t.from&&t.items.forEach((function(t){Ui.utils.deselect(t)}))}});n.sortable=Ui.create(t,r)}}}},Oo=(n(250),en(Eo,sr,[],!1,null,"5510d64a",null));Oo.options.__file="src/components/GroupSelect.vue";var jo=Oo.exports,Do=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["markdown-wrapper",t.mode,{disabled:t.disabled}],style:{maxHeight:t.maxHeight}},[n("div",{staticClass:"toolbar"},[n("div",{staticClass:"tools"}),t._v(" "),n("div",{staticClass:"utils"},[n("div",{staticClass:"btn right icon fullscreen",on:{click:function(e){return t.togglePreview()}}},[n("icon",{attrs:{type:t.preview,size:"18"}})],1),t._v(" "),n("div",{staticClass:"btn right icon fullscreen",on:{click:function(e){t.mode="fullscreen"}}},[n("icon",{attrs:{type:"fullscreen",size:"24"}})],1),t._v(" "),n("div",{staticClass:"btn right icon compact",on:{click:function(e){t.mode="compact"}}},[n("icon",{attrs:{type:"fullscreen-exit",size:"24"}})],1)])]),t._v(" "),n("div",{staticClass:"editor"},[n("div",{class:["input",{active:t.edit}]},[n("div",{staticClass:"mirror"},[n("pre",[t._v(t._s(t.input)),n("br"),t._v(" ")])]),t._v(" "),n("textarea",t._g({ref:"input",attrs:{wrap:"soft",cols:"1",name:t.name,disabled:t.disabled},domProps:{value:t.value},on:{"update:value":function(e){t.value=e}}},t.listeners))]),t._v(" "),n("div",{class:["output",{active:!t.edit}]},[n("div",{staticClass:"markdown",domProps:{innerHTML:t._s(t.output)}})])])])};Do._withStripped=!0;var To=n(199),Ro=new(n.n(To).a),Lo={props:{name:String,value:{type:String,default:""},maxHeight:{type:String,default:"500px"},disabled:Boolean},data:function(){return{input:this.value,edit:!0,focused:!1,mode:"compact",preview:"eye-off"}},computed:{output:function(){return Ro.render(this.value)},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.inputHandler(e),t.validate()},keydown:function(e){var n;t.$listeners.keydown&&(n=t.$listeners.keydown(e)),!1!==n&&t.shortcut(e)}})}},methods:{inputHandler:function(t){this.$emit("input",t.target.value)},shortcut:function(t){var e=t.target;switch(t.key){case"Tab":var n;t.preventDefault(),t.shiftKey?(n=e.selectionStart-"\t".length,"\t"===e.value.substring(n,e.selectionStart)&&(e.value=e.value.substring(0,n)+e.value.substring(e.selectionStart,e.value.length),e.selectionStart=n,e.selectionEnd=n)):(n=e.selectionStart+"\t".length,e.value=e.value.substring(0,e.selectionStart)+"\t"+e.value.substring(e.selectionStart,e.value.length),e.selectionStart=n,e.selectionEnd=n),e.focus();break;case"f":t.ctrlKey&&"compact"===this.mode&&(t.preventDefault(),this.mode="fullscreen")}},togglePreview:function(){this.edit=!this.edit,this.preview=this.edit?"eye-off":"eye"},switchToCompact:function(t){"fullscreen"===this.mode&&27===t.which&&(this.mode="compact",this.$refs.input.focus())}},mixins:[wn],components:{Icon:vn},mounted:function(){window.addEventListener("keydown",this.switchToCompact)},beforeDstroy:function(){window.removeEventListener("keydown",this.switchToCompact)}},Mo=(n(306),en(Lo,Do,[],!1,null,"210be4c2",null));Mo.options.__file="src/components/Markdown.vue";var $o=Mo.exports,Io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeList,expression:"closeList"}],class:["multi-select-wrapper",{disabled:t.disabled}],attrs:{tabindex:"0"},on:{keydown:t.keypressHandler}},[n("div",{staticClass:"display",on:{click:t.toggleList}},[0===t.value.length?n("span",{staticClass:"none-selected"},[t._v(t._s(t.placeholder))]):"function"==typeof t.template?n("span",{staticClass:"selected-items",domProps:{innerHTML:t._s(t.template(t.value))}}):n("span",{staticClass:"selected-items"},[t._v(t._s(t.value.length)+" Selected")])]),t._v(" "),n("transition",{attrs:{name:"dropfade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.is_open,expression:"is_open"}],ref:"list",staticClass:"list",style:{"min-width":this.minWidth,"max-height":this.maxListHeight,top:this.list_top,bottom:this.list_bottom},on:{mouseleave:function(e){return t.closeListOnMouseLeave()}}},[n("div",{staticClass:"selection-options"},[n("strong",[t._v("Select:")]),t._v(" "),n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.selectAll()}}},[t._v("All")]),t._v(" | "),n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.selectNone()}}},[t._v("None")])]),t._v(" "),t._l(t.wrappedOptions,(function(e,r){return[Array.isArray(e)?n("r-checklist",{key:r,attrs:{options:e},model:{value:t.local_value,callback:function(e){t.local_value=e},expression:"local_value"}}):n("div",{staticClass:"subtitle"},[t._v(t._s(e))])]}))],2)])],1)};Io._withStripped=!0;var Po={props:{minWidth:{type:String,default:"200px"},name:String,options:{type:Array,default:function(){return[]}},placeholder:{type:String,default:"Select Options"},value:{type:Array,required:!0},template:{type:Function},disabled:Boolean,closeOnMouseOut:!1},data:function(){return{local_value:this.value,is_open:!1,focused:!1,list_bottom:null,list_top:null,max_list_height:null}},computed:{wrappedOptions:function(){return Object(sn.some)(this.options,(function(t){return Array.isArray(t)}))?this.options:[this.options]},maxListHeight:function(){return this.max_list_height+"px"},listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0,t.changeHandler(e),t.validate())},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},watch:{local_value:function(t){this.dirty=!0,this.$emit("input",t)},options:{handler:function(t,e){var n=t.filter((function(t){return Array.isArray(t)}));n=(n=n.length>0?Object(sn.flatten)(n):t).map((function(t){return t instanceof Object?t.value:t})),this.local_value=this.local_value.filter((function(t){return n.indexOf(t)>-1}))},deep:!0}},methods:{changeHandler:function(t){this.local_value=t,this.$emit("input",this.local_value)},toggleList:function(){var t=this;this.disabled||(this.is_open=!this.is_open,this.$nextTick((function(){if(t.is_open){var e=t.$el.getBoundingClientRect(),n=window.innerHeight,r=n-e.bottom-20,i=n-(n-e.top)-20,o=!1;r<200&&i>r&&(o=!0),o?(t.max_list_height=i,t.list_bottom=e.height-5+"px",t.list_top=null):(t.max_list_height=r,t.list_bottom=null,t.list_top=e.height-5+"px")}})))},closeList:function(){this.is_open&&(this.is_open=!1)},closeListOnMouseLeave:function(){this.closeOnMouseOut&&this.closeList()},selectAll:function(){var t=this;this.local_value=[],this.wrappedOptions.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){t.local_value.push(e.value||e)}))})),this.$emit("input",this.local_value)},selectNone:function(){this.local_value=[],this.$emit("input",this.local_value)},keypressHandler:function(t){var e=this,n=t.keyCode||t.which;this.is_open||32!==n||(t.preventDefault(),this.is_open=!0,this.$nextTick((function(){e.$refs.list.querySelector("input").focus()}))),this.is_open&&27===n&&(t.preventDefault(),this.is_open=!1,this.$el.focus())}},components:{rChecklist:Dn},mixins:[Wn.mixin,wn]},qo=(n(308),en(Po,Io,[],!1,null,"9e8c59d6",null));qo.options.__file="src/components/MultiSelect.vue";var Fo=qo.exports,No=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["multi-text-wrapper",{disabled:t.disabled}],on:{focusout:function(e){t.touched=!0,t.validate()}}},[n("div",{directives:[{name:"sortable",rawName:"v-sortable",value:t.options,expression:"options"}],staticClass:"sortable"},t._l(t.local_value,(function(e,r){return n("div",{key:e.key,staticClass:"input-row"},[n("div",{staticClass:"handle icon"},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"}})])]),t._v(" "),n("text-input",t._g({ref:e.key,refInFor:!0,attrs:{name:t.name,type:t.type,value:e.value,allowed:t.allowed,filter:t.filter,mask:t.mask,number:t.number,outputMask:t.outputMask,placeholder:t.placeholder,disabled:t.disabled},on:{input:function(e){return t.updateItem(e,r)}}},t.listeners)),t._v(" "),n("div",{staticClass:"button icon",on:{click:function(e){return t.deleteItem(r)}}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}})])])],1)})),0),t._v(" "),n("div",{staticClass:"input-row add",attrs:{tabindex:"0"},on:{click:t.addItem,keypress:t.keypressHandler}},[n("div",{staticClass:"input-box"},[t._v(t._s(t.addText))]),t._v(" "),n("div",{staticClass:"button icon add"},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}})])])])])};No._withStripped=!0;var zo=n(112);var Bo=function(t,e){return fe(t,e)};var Vo=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;t=t||"",e=e||"";for(var i=0,o=0,a="";i2&&void 0!==arguments[2])||arguments[2],a=0;as.length))return t(r,s,o,n)}return""}}var Xo={data:function(){return{display_value:this.value,last_value:null,is_android:/(android)/i.test(window.navigator.userAgent)}},props:{allowed:{type:[String,Boolean],default:!1},disabled:{type:Boolean,default:!1},filter:Function,mask:{type:[String,Boolean],default:!1},name:String,number:Boolean,outputMask:{type:Boolean,default:!1},placeholder:String,type:String,value:[String,Number]},computed:{localValue:{get:function(){return this.value},set:function(t){this.inputHandler(null,t)}},inputType:function(){return i(this.type)||o(this.type)||""===this.type?"text":this.type},maskConfig:function(){return{mask:this.mask,masked:this.masked,tokens:Wo.tokens}},masked:function(){return this.outputMask},allowedCharacters:function(){if(this.allowed)return new RegExp(this.allowed)},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.is_android&&t.$emit("android-input",e.data),t.inputHandler(e)},keypress:function(e){var n;t.$listeners.keypress&&(n=t.$listeners.keypress(e)),!1!==n&&t.keypressHandler(e)}})}},watch:{value:function(t){t!==this.last_value&&(this.display_value=t)}},methods:{focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()},inputHandler:function(t,e){if(t&&(e=t.target.value),this.mask){if(t.isTrusted)return;this.display_value=e,(e=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;return Array.isArray(e)?Zo(Go,e,r)(t,e,n,r):Go(t,e,n,r)}(e,this.mask,this.masked,Wo.tokens))!==this.last_value&&(this.last_value=e)}else this.filter&&(e=this.filter(e));this.$emit("input",e)},keypressHandler:function(t){if(this.allowed){var e=String.fromCharCode(t.which);this.allowedCharacters.test(e)||t.preventDefault()}this.$emit("keypress",t)}},directives:{mask:Wo.mask}},Ko=(n(314),en(Xo,Yo,[],!1,null,"4a5bb81d",null));Ko.options.__file="src/components/TextInput.vue";var Jo=Ko.exports,Qo={props:{addText:{type:String,default:"Add Item"},allowed:{type:[String,Boolean],default:!1},filter:{type:Function,default:function(t){return t}},mask:{type:[String,Boolean],default:!1},number:{type:Boolean,default:!1},outputMask:{type:Boolean,default:!1},placeholder:{type:String,default:""},type:{type:String,default:"text"},value:Array,disabled:Boolean},data:function(){return{local_value:this.addKeys(this.value),focused:!1,options:{draggable:".input-row",handle:".handle"}}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.validate()}})}},watch:{value:function(t){Bo(t,Uo(this.local_value,"value"))||(this.local_value=t.map((function(t,e){return{key:Object(zo.uuid)(),value:t}})))}},methods:{focus:function(){this.$refs.items[0].focus()},addKeys:function(t){return t.map((function(t,e){return{key:Object(zo.uuid)(),value:t}}))},addItem:function(){var t=this;if(!this.disabled){var e=Object(zo.uuid)();this.local_value.push({key:e,value:""}),this.$nextTick((function(){t.$refs[e][0].focus()}))}},updateItem:function(t,e){this.$set(this.local_value[e],"value",t),this.$emit("input",Uo(this.local_value,"value"))},deleteItem:function(t){var e=this;this.local_value.splice(t,1),this.$nextTick((function(){e.$emit("input",Uo(e.local_value,"value"))}))},sortItems:function(t){this.$emit("input",t)},keypressHandler:function(t){32===(t.keyCode||t.which)&&(t.preventDefault(),this.addItem())}},directives:{sortable:{bind:function(t,e,n){var r=Ht({},e.value,{onEnd:function(t){var e=Uo(n.context.local_value,"value");e.splice(t.newIndex,0,e.splice(t.oldIndex,1)[0]),n.context.sortItems(e)}});n.sortable=Ao.create(t,r)}}},mixins:[wn],components:{TextInput:Jo}},ta=(n(316),en(Qo,No,[],!1,null,"0011cf06",null));ta.options.__file="src/components/MultiText.vue";var ea=ta.exports,na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-wrapper",{disabled:t.disabled}]},[t._t("left"),t._v(" "),n("input",t._g({directives:[{name:"model",rawName:"v-model.number",value:t.localValue,expression:"localValue",modifiers:{number:!0}}],ref:"input",attrs:{name:t.name,type:"number",disabled:t.disabled},domProps:{value:t.localValue},on:{input:function(e){e.target.composing||(t.localValue=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}},t.listeners)),t._v(" "),t._t("right")],2)};na._withStripped=!0;var ra={props:{value:{type:Number,required:!0},disabled:Boolean},data:function(){return{focused:!1}},computed:{localValue:{get:function(){return this.value},set:function(t){this.dirty=!0,""===t&&(t=0),this.$emit("input",t)}},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.$emit("input",e.target.value),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},mixins:[wn]},ia=(n(318),en(ra,na,[],!1,null,"56c2960e",null));ia.options.__file="src/components/Number.vue";var oa=ia.exports,aa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["input-wrapper",{disabled:t.disabled}]},[t._t("left"),t._v(" "),n("input",t._g({ref:"input",attrs:{type:"password",name:t.name,autocomplete:t.autocomplete,disabled:t.disabled,placeholder:t.placeholder},domProps:{value:t.value}},t.listeners)),t._v(" "),t._t("right")],2)};aa._withStripped=!0;var sa={props:{autocomplete:String,disabled:Boolean,placeholder:String,value:String},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.$emit("input",e.target.value),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},methods:{inputHandler:function(t){this.dirty=!0,this.$emit("input",t)}},mixins:[wn]},ua=(n(320),en(sa,aa,[],!1,null,"499d154b",null));ua.options.__file="src/components/Password.vue";var la=ua.exports,ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["pillbox-wrapper",{disabled:t.disabled}]},[n("div",{staticClass:"inner"},[t._l(t.propValue,(function(e,r){return n("div",{class:["item",{selected:r===t.selected_item}]},[n("span",{staticClass:"pillbox-value"},[t._v(t._s(e.label||e))]),t._v(" "),n("span",{staticClass:"remove-btn",on:{click:function(e){return t.removeItem(r)}}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}})])])])})),t._v(" "),n("div",{class:["input",t.error_class]},[n("text-input",t._g({ref:"input",attrs:{name:t.name,type:t.type,allowed:t.allowed,filter:t.filter,mask:t.mask,number:t.number,outputMask:t.outputMask,disabled:t.disabled,placeholder:t.placeholder},on:{"android-input":t.androidInputHandler},model:{value:t.input_value,callback:function(e){t.input_value=e},expression:"input_value"}},t.listeners))],1)],2)])};ca._withStripped=!0;n(67);var fa=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o-1:!!i&&ha(t,e,n)>-1},wa={props:{allowed:{type:[String,Boolean],default:!1},filter:{type:Function,default:function(t){return t}},mask:{type:[String,Boolean],default:!1},number:{type:Boolean,default:!1},options:Array,outputMask:{type:Boolean,default:!1},placeholder:{type:String,default:""},type:{type:String,default:"text"},value:Array,inputValue:{type:[String,Object],default:""},commit:{type:[Array,String],default:function(){return["Enter"," ",","]}},disabled:Boolean},data:function(){return{input_value:this.inputValue,focused:!1,full_value:this.propValue,masked:this.outputMask||!1,selected_item:null,error_class:[]}},computed:{propValue:function(){return this.value},listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.$emit("update:inputValue",t.input_value)},keydown:function(e){var n;t.$listeners.keydown&&(n=t.$listeners.keydown(e)),!1!==n&&t.keydownHandler(e)},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},watch:{inputValue:function(t){t.label?this.input_value=t.label:this.input_value=t}},methods:{commitValue:function(t){var e,n=this;if(this.options&&(e=this.options.find((function(e){return e.label?e.label===t:e===t})))&&e.value&&(t=e.value),t&&!ba(this.propValue,t)&&t.length>0){"true"===this.number&&(t=Number(t));var r=!0;if(this.pattern)r=new RegExp(this.pattern).test(t);if(r){this.dirty=!0;var i=this.propValue.slice();i.push(e||t),this.$emit("input",i),this.validate(),this.$nextTick((function(){n.input_value=""}))}else this.error_class="errored",this.$nextTick((function(){n.error_class=null}))}},keydownHandler:function(t){var e=this.input_value;"Backspace"===t.key&&0===e.length?null!==this.selected_item?(this.removeItem(this.propValue.length-1),this.selected_item=null):this.selected_item=this.propValue.length-1:ba(this.commit,t.key)?(t.preventDefault(),this.commitValue(e)):this.selected_item=null},androidInputHandler:function(t){t.length&&ba(this.commit,t)&&this.commitValue(this.input_value)},removeItem:function(t){if(!this.disabled){var e=this.propValue.slice();e.splice(t,1),this.$emit("input",e),this.validate()}}},mixins:[wn],components:{TextInput:Jo},mounted:function(){this.mask&&this.$refs.input.$el.addEventListener("keydown",this.keydownHandler)},beforeDestroy:function(){this.mask&&this.$refs.input.$el.removeEventListener("keydown",this.keydownHandler)}},xa=(n(322),en(wa,ca,[],!1,null,"50382ef2",null));xa.options.__file="src/components/Pillbox.vue";var ka=xa.exports,Ca=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{class:["radio-wrapper",{disabled:t.disabled}]},[n("span",{staticClass:"radio"},[n("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.localModel,expression:"localModel"}],ref:"input",attrs:{type:"radio",name:t.name,disabled:t.disabled},domProps:{value:t.value,checked:t._q(t.localModel,t.value)},on:{change:function(e){t.localModel=t.value}}},t.listeners))]),t._v(" "),t._t("default")],2)};Ca._withStripped=!0;var Aa={props:{model:[String,Boolean,Number,Object],value:[String,Boolean,Number,Object],name:String,disabled:Boolean},model:{prop:"model",event:"change"},computed:{localModel:{get:function(){return this.model},set:function(t){this.$emit("change",t)}},listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0,t.$emit("change",t.value),t.validate())},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},mixins:[wn]},Sa=(n(324),en(Aa,Ca,[],!1,null,"961ceb0a",null));Sa.options.__file="src/components/Radio.vue";var Ea=Sa.exports,Oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["radio-group",{disabled:t.disabled}],attrs:{tabindex:"-1"}},t._l(t.optionList,(function(e,r){return n("div",{key:r,staticClass:"option"},[n("r-radio",{ref:"input",refInFor:!0,attrs:{name:t.name,value:e.value,disabled:t.disabled},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}},[n("span",{domProps:{innerHTML:t._s(e.label)}})])],1)})),0)};Oa._withStripped=!0;var ja={components:{rRadio:Ea},props:{value:{type:[String,Number,Boolean,Object]},name:String,options:{type:Array,default:function(){return[]}},disabled:Boolean},computed:{localValue:{get:function(){return this.value},set:function(t){this.$emit("input",t),this.validate()}},optionList:function(){return this.options.map((function(t){return t instanceof Object?t:{label:t,value:t}}))}},watch:{optionList:{handler:function(t){var e=this;t.find((function(t){return t.value===e.value}))||(this.localValue=null)},deep:!0}},mixins:[wn]},Da=(n(326),en(ja,Oa,[],!1,null,"70a7e118",null));Da.options.__file="src/components/RadioGroup.vue";var Ta=Da.exports,Ra=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["select-wrapper",{disabled:t.disabled}]},[n("select",t._g({directives:[{name:"model",rawName:"v-model",value:t.selected_option,expression:"selected_option"}],ref:"input",class:{empty:t.model===t.emptyValue},attrs:{name:t.name,disabled:t.disabled},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected_option=e.target.multiple?n:n[0]},t.changeHandler]}},t.listeners),[n("option",{attrs:{disabled:t.allowEmpty},domProps:{value:t.emptyValue}},[t._v(t._s(t.placeholder))]),t._v(" "),t._l(t.optionList,(function(e){return[t.isArray(e.value)?[n("optgroup",{attrs:{label:e.label}},t._l(e.value,(function(e){return n("option",{domProps:{value:e.value}},[t._v(t._s(e.label))])})),0)]:[n("option",{domProps:{value:e.value}},[t._v(t._s(e.label))])]]}))],2)])};Ra._withStripped=!0;var La={props:{model:{type:[String,Number,Boolean,Object,Function]},name:String,emptyValue:{default:null},allowEmpty:{type:Boolean,default:!0},options:Array,placeholder:{type:String,default:"Select One"},disabled:Boolean},data:function(){return{focused:!1,selected_option:this.model,selected:{value:this.value}}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){t.dirty=!0,t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})},optionList:function(){var t=this;return this.options.map((function(e){return e instanceof Object?(t.isArray(e.value)&&(e.value=e.value.map((function(t){return t instanceof Object?t:{label:t,value:t}}))),e):{label:e,value:e}}))}},watch:{model:function(t){t!==this.selected_option&&(this.selected_option=t,this.changeHandler())},optionList:{handler:function(t){var e=this;t.find((function(t){return t.value===e.selected_option}))||(this.selected_option=this.emptyValue,this.changeHandler())},deep:!0}},model:{prop:"model",event:"change"},methods:{isArray:function(t){return Array.isArray(t)},changeHandler:function(){this.dirty=!0,this.$emit("change",this.selected_option),this.$emit("input",this.selected_option),this.validate()}},mixins:[wn]},Ma=(n(328),en(La,Ra,[],!1,null,"ed6a05a8",null));Ma.options.__file="src/components/Select.vue";var $a=Ma.exports,Ia=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"slider-wrapper",on:{focusout:function(e){t.touched=!0}}},[t.isRange?n("div",{ref:"merged_tooltip",class:["tooltip","merged",{invisible:!t.merged_tooltip}],style:{left:t.merged_tooltip_left}},[t._v(t._s(t.tooltipRange))]):t._e(),t._v(" "),n("div",{ref:"min",staticClass:"handle min",attrs:{tabindex:"0"},on:{mousedown:function(e){return t.mousedownHandler(e,t.$refs.min,0)},touchstart:function(e){return t.mousedownHandler(e,t.$refs.min,0)},keydown:function(e){return t.keydownHandler(e,t.$refs.min,0)},"~blur":function(e){t.touched=!0}}}),t._v(" "),n("div",{ref:"min_tooltip",class:["tooltip",{invisible:t.merged_tooltip}],style:{left:t.min_tooltip_left}},[t._v(t._s(t.tooltipMin))]),t._v(" "),t.isRange?n("div",{ref:"max",staticClass:"handle max",attrs:{tabindex:"0"},on:{mousedown:function(e){return t.mousedownHandler(e,t.$refs.max,1)},touchstart:function(e){return t.mousedownHandler(e,t.$refs.max,1)},keydown:function(e){return t.keydownHandler(e,t.$refs.max,1)},"~blur":function(e){t.touched=!0}}}):t._e(),t._v(" "),t.isRange?n("div",{ref:"max_tooltip",class:["tooltip",{invisible:t.merged_tooltip}],style:{left:t.max_tooltip_left}},[t._v(t._s(t.tooltipMax))]):t._e(),t._v(" "),n("div",{staticClass:"bar"},[n("div",{ref:"selection",staticClass:"selection"})])])};Ia._withStripped=!0;var Pa=function(){return q.a.Date.now()};var qa=function(t){return t},Fa=Math.max,Na=Math.min;var za=function(t,e,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function v(t){return l=t,s=setTimeout(g,e),c?d(t):a}function m(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-l>=o}function g(){var t=Pa();if(m(t))return _(t);s=setTimeout(g,function(t){var n=e-(t-u);return f?Na(n,o-(t-l)):n}(t))}function _(t){return s=void 0,p&&r?d(t):(r=i=void 0,a)}function y(){var t=Pa(),n=m(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return v(u);if(f)return clearTimeout(s),s=setTimeout(g,e),d(u)}return void 0===s&&(s=setTimeout(g,e)),a}return e=qa(e)||0,h(n)&&(c=!!n.leading,o=(f="maxWait"in n)?Fa(qa(n.maxWait)||0,e):o,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},y.flush=function(){return void 0===s?a:_(Pa())},y},Ba=(n(330),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")()),Va=Ba.requestAnimationFrame||Ba.mozRequestAnimationFrame||Ba.webkitRequestAnimationFrame||function(t){return Ba.setTimeout(t,20)},Ha=Ba.cancelAnimationFrame||Ba.mozCancelAnimationFrame||Ba.webkitCancelAnimationFrame||function(t){Ba.clearTimeout(t)};function Ua(t,e){var n=Object.prototype.toString.call(t),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,i=0,o=t.length;if(r)for(;ithis.container.width-this.selected_handle.offsetWidth&&(n=this.container.width-this.selected_handle.offsetWidth),this.isRange&&(this.allowSame?(0===this.selected_index&&n>this.maxPosition()&&(n=this.maxPosition()),1===this.selected_index&&nthis.maxPosition()-this.segmentSize&&(n=this.maxPosition()-this.segmentSize),1===this.selected_index&&n=o&&(this.$set(this.local_value,n,r),i=!0)):(r=this.local_value-this.settings.increment)>=o&&(this.local_value=r,i=!0);break;case 38:case 39:t.preventDefault();var a=this.settings.max;this.isRange?(a=1===n?this.settings.max:this.local_value[1],(r=this.local_value[n]+this.settings.increment)<=a&&(this.$set(this.local_value,n,r),i=!0)):(r=this.local_value+this.settings.increment)<=a&&(this.local_value=r,i=!0)}i&&(this.setHandlePosition(e,this.getValuePosition(r)),this.$emit("input",this.local_value))},getValuePosition:function(t){return(t-this.settings.min)/this.settings.increment*this.segmentSize},getValue:function(t){return this.settings.min+Math.round(t/this.segmentSize)*this.settings.increment},setHandlePosition:function(t,e){t?t.style.left=e+"px":this.isRange?(this.$refs.min.style.left=this.getValuePosition(this.local_value[0])+"px",this.$refs.max.style.left=this.getValuePosition(this.local_value[1])+"px"):this.$refs.min.style.left=this.getValuePosition(this.local_value)+"px",this.container=this.$el.getBoundingClientRect();var n=this.$refs.min.getBoundingClientRect(),r=this.$refs.min_tooltip.getBoundingClientRect(),i=n.left-r.width/2+n.width/2-this.container.left;if(i<0?i=0:i+r.width>this.container.width&&(i=this.container.width-r.width),this.min_tooltip_left=i+"px",this.isRange){var o=this.$refs.max.getBoundingClientRect(),a=this.$refs.max_tooltip.getBoundingClientRect(),s=this.$refs.merged_tooltip.getBoundingClientRect(),u=o.left-a.width/2+o.width/2-this.container.left;u<0?u=0:u+a.width>this.container.width&&(u=this.container.width-a.width),this.max_tooltip_left=u+"px";var l=n.left-(s.width-(o.right-n.left))/2-this.container.left;l<0?l=0:l+s.width>this.container.width&&(l=this.container.width-s.width),this.merged_tooltip_left=l+"px",i+r.width>u?this.merged_tooltip=!0:this.merged_tooltip=!1}this.setSelection(),this.$emit("change",this.local_value)},setSelection:function(){var t=this.$refs.selection;this.isRange?(t.style.left=this.minPosition()+"px",t.style.right=this.container.width-this.maxPosition()-this.$refs.min.offsetWidth+"px"):(t.style.left=0,t.style.right=this.container.width-this.maxPosition()+"px")},resizeHandler:function(){this.container=this.$el.getBoundingClientRect(),this.setHandlePosition()},minPosition:function(){return parseFloat(this.$refs.min.style.left)},maxPosition:function(){if(this.$refs.max)return parseFloat(this.$refs.max.style.left)},emitChange:za((function(){this.$emit("change",this.local_value)}),50)},mixins:[wn],mounted:function(){var t=this;this.container=this.$el.getBoundingClientRect(),this.selected_handle=this.$refs.min,window.addEventListener("mouseup",this.mouseupHandler),window.addEventListener("touchend",this.mouseupHandler),this.resize_sensor=new Xa(this.$el,this.resizeHandler),this.$nextTick((function(){t.setHandlePosition()}))},beforeDestroy:function(){window.removeEventListener("mouseup",this.mouseupHandler),window.removeEventListener("touchend",this.mouseupHandler),window.removeEventListener("resize",this.resizeHandler),this.resize_sensor.detach()}},Ja=(n(331),en(Ka,Ia,[],!1,null,"2dedc691",null));Ja.options.__file="src/components/Slider.vue";var Qa=Ja.exports,ts=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"switch-wrapper"},t._l(t.options,(function(e){return n("span",{class:["option",{selected:t.local_value===t.getValue(e)}]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.local_value,expression:"local_value"}],attrs:{type:"radio",name:t.name},domProps:{value:t.getValue(e),checked:t._q(t.local_value,t.getValue(e))},on:{change:function(n){t.local_value=t.getValue(e)}}}),t._v(" "),n("span",{staticClass:"label"},[t._v(t._s(t.getLabel(e)))])])})),0)};function es(t){return(es="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)}ts._withStripped=!0;var ns={props:{options:{type:Array,default:function(){return[{label:"Yes",value:!0},{label:"No",value:!1}]}},value:{type:[String,Boolean,Number,Object]}},data:function(){return{local_value:this.value}},watch:{value:function(t,e){t!==this.local_value&&(this.local_value=t)},local_value:function(t,e){t!==this.value&&this.$emit("input",this.local_value)}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0)},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},methods:{getLabel:function(t){return"object"===es(t)?t.label:t},getValue:function(t){return"object"===es(t)?t.value:t}},mixins:[wn]},rs=(n(333),en(ns,ts,[],!1,null,"5168b938",null));rs.options.__file="src/components/Switch.vue";var is=rs.exports,os=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"template-editor"},[t.edit_mode?n("div",{staticClass:"edit-window"},[n("div",{staticClass:"toolbar"},[t._m(0),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-header-pound"},on:{click:function(e){return t.command("formatBlock","

")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-bold"},on:{click:function(e){return t.command("bold")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-italic"},on:{click:function(e){return t.command("italic")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-left"},on:{click:function(e){return t.command("justifyLeft")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-center"},on:{click:function(e){return t.command("justifyCenter")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-right"},on:{click:function(e){return t.command("justifyRight")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-align-justify"},on:{click:function(e){return t.command("justifyFull")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"image"}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"link-variant"},on:{click:function(e){return t.command("createLink")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-list-bulleted-square"},on:{click:function(e){return t.command("insertUnorderedList")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-list-numbered"},on:{click:function(e){return t.command("insertOrderedList")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"format-quote-close"},on:{click:function(e){return t.command("formatBlock","
")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"code-tags"},on:{click:function(e){return t.command("formatBlock","
")}}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"playlist-edit"}}),t._v(" "),n("r-button",{staticClass:"icon toolbar",attrs:{icon:"check"},on:{click:function(e){return t.save()}}})],1),t._v(" "),n("div",{staticClass:"template"},[n("iframe",{ref:"canvas",attrs:{id:"template-editor",src:t.templateSrc,frameborder:"0"},on:{load:function(e){return t.init()}}})])]):n("div",[n("r-button",{attrs:{icon:"pencil"},on:{click:function(e){return t.openTemplateEditor()}}},[t._v("Edit Template")])],1)])};os._withStripped=!0;var as={components:{rButton:yn,icon:vn},props:{templateSrc:{type:String,required:!0},value:{type:Object,default:function(){return{}}}},data:function(){return{edit_mode:!1,iframe:null,edit_el:null}},methods:{openTemplateEditor:function(){var t=this;this.edit_mode=!0,this.$nextTick((function(){t.iframe=t.$refs.canvas.contentWindow||t.$refs.canvas.contentDocument,t.$refs.canvas.addEventListener("onload",(function(e){t.init()}))}))},init:function(){var t=this;this.iframe.document.querySelectorAll(".remix-content").forEach((function(e){e.contentEditable="true",e.innerHTML=t.value[e.id],e.addEventListener("focus",(function(n){t.edit_el=e}))}))},command:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.iframe.document.execCommand(t,!1,e),this.edit_el.focus()},save:function(){var t={};this.iframe.document.querySelectorAll(".remix-content").forEach((function(e){t[e.id]=e.innerHTML})),this.$emit("input",t),this.edit_mode=!1}}},ss=(n(335),en(as,os,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-options"},[n("ul",[n("li",[t._v("Heading One")]),t._v(" "),n("li",[t._v("Heading Two")]),t._v(" "),n("li",[t._v("Heading Three")]),t._v(" "),n("li",[t._v("Heading Four")]),t._v(" "),n("li",[t._v("Heading Five")]),t._v(" "),n("li",[t._v("Heading Six")])])])}],!1,null,"ad97ed92",null));ss.options.__file="src/components/TemplateEditor.vue";var us=ss.exports,ls=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-wrapper",attrs:{tabindex:"-1"}},[t._t("left"),t._v(" "),n("text-input",t._g({ref:"input",attrs:{allowed:t.allowed,autocomplete:t.autocomplete,disabled:t.disabled,filter:t.filter,mask:t.mask,name:t.name,number:t.number,"output-mask":t.outputMask,placeholder:t.placeholder,type:t.type,value:t.value}},t.listeners)),t._v(" "),t._t("right")],2)};ls._withStripped=!0;var cs={props:{allowed:String,autocomplete:String,disabled:{type:Boolean,default:!1},filter:Function,mask:String,number:Boolean,outputMask:{type:Boolean,default:!1},placeholder:String,type:String,value:[String,Number]},data:function(){return{focused:!1}},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.inputHandler(e),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},methods:{inputHandler:function(t){this.$emit("input",t)}},mixins:[wn],components:{TextInput:Jo}},fs=(n(337),en(cs,ls,[],!1,null,"cb76da46",null));fs.options.__file="src/components/Text.vue";var ps=fs.exports,ds=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"textarea-wrapper",style:{maxHeight:t.maxHeight}},[n("div",{staticClass:"mirror"},[n("pre",[t._v(t._s(t.value)+"\n\t\t")])]),t._v(" "),n("textarea",t._g({ref:"input",attrs:{name:t.name},domProps:{value:t.value}},t.listeners))])};ds._withStripped=!0;var hs={data:function(){return{focused:!1}},props:{maxHeight:{type:String,default:"500px"},value:String},computed:{listeners:function(){var t=this;return Object.assign({},this.$listeners,{input:function(e){t.dirty=!0,t.$emit("input",e.target.value),t.validate()},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},mixins:[wn]},vs=(n(339),en(hs,ds,[],!1,null,"9eacab2c",null));vs.options.__file="src/components/Textarea.vue";var ms=vs.exports,gs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"toggle-wrapper"},[n("span",{staticClass:"toggle"},[n("input",t._g({ref:"input",attrs:{type:"checkbox",name:t.name,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{checked:t.isChecked,value:t.value}},t.listeners)),t._v(" "),n("span",{staticClass:"handle"})]),t._v(" "),n("span",{staticClass:"toggle-label"},[t._t("default",[t.isChecked?n("span",[t._v(t._s(t.trueLabel))]):n("span",[t._v(t._s(t.falseLabel))])])],2)])};gs._withStripped=!0;var _s={props:{falseLabel:String,falseValue:{},label:String,model:{},name:String,trueLabel:String,trueValue:{},value:{}},computed:{isChecked:function(){return Array.isArray(this.model)?ba(this.model,this.value):(void 0===this.falseValue||this.model!==this.falseValue)&&this.model},listeners:function(){var t=this;return Object.assign({},this.$listeners,{change:function(e){var n;t.$listeners.change&&(n=t.$listeners.change(e)),!1!==n&&(t.dirty=!0,t.changeHandler(e.target.checked))},keydown:function(e){var n;t.$listeners.keydown&&(n=t.$listeners.keydown(e)),!1!==n&&t.keydownHandler(e)},blur:function(e){var n;t.$listeners.blur&&(n=t.$listeners.blur(e)),!1!==n&&(t.touched=!0,t.validate())}})}},model:{prop:"model",event:"change"},methods:{keydownHandler:function(t){switch(t.which){case 37:this.isChecked&&this.changeHandler(!1);break;case 39:this.isChecked||this.changeHandler(!0)}},changeHandler:function(t){var e,n=this;if(Array.isArray(this.model))t?(e=this.model.slice()).push(this.value):e=this.model.filter((function(t){return t!==n.value}));else{var r=this.trueValue||!0,i=this.falseValue||!1;e=t?r:i}this.$emit("change",e),this.validate()}},mixins:[wn]},ys=(n(341),en(_s,gs,[],!1,null,"8da0d0f8",null));ys.options.__file="src/components/Toggle.vue";var bs=ys.exports,ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{invalid:t.errors.length>0,valid:t.isValid}},[t._t("default",null,null,t.self),t._v(" "),t._t("errors",[t.errors.length>0?n("ul",{staticClass:"validation-errors"},[t.showAllErrors?t._l(t.errors,(function(e){return n("li",[t._v(t._s(e))])})):[n("li",[t._v(t._s(t.errors[0]))])]],2):t._e()],null,t.self)],2)};ws._withStripped=!0;var xs={provide:function(){return{field_validator:this}},inject:{form_validator:{name:"form_validator",default:function(){return new Qe}}},props:{value:{required:!0},label:String,disabled:Boolean,group:{default:null},validator:{type:Object,default:function(){return this.form_validator}},watch:Boolean,showAllErrors:Boolean,rules:{type:Array,default:function(){return[this.validator.rules.required()]}}},data:function(){return{local_value:this.value,errors:[],id:null}},computed:{self:function(){return this},isValid:function(){return 0===this.errors.length}},watch:{value:function(t){t!==this.local_value&&(this.local_value=t,this.$emit("change",t),this.watch&&this.validate())}},methods:{reset:function(){this.errors=[]},validate:function(){var t=this;return this.disabled?Promise.resolve():new Promise((function(e,n){t.$nextTick((function(){Promise.all(t.rules.map((function(e){return"function"==typeof e?e(t.local_value):"Error while trying to validate this field"}))).then((function(n){t.errors=ze(n),t.$emit("validate",t.errors),e(n)})).catch((function(t){n(t)}))}))}))}},created:function(){this.id=this.validator.addField(this)},beforeDestroy:function(){this.id&&this.validator.removeField(this.id)}},ks=(n(343),en(xs,ws,[],!1,null,"b70103ae",null));ks.options.__file="src/components/Validation.vue";var Cs=ks.exports,As=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("errors",[t.errors.length>0?n("ul",{staticClass:"validation-errors"},[t.showAllErrors?t._l(t.errors,(function(e){return n("li",[t._v(t._s(e))])})):[n("li",[t._v(t._s(t.errors[0]))])]],2):t._e()],null,t.self),t._v(" "),t._t("default")],2)};As._withStripped=!0;var Ss=en({provide:function(){return{form_validator:this.validator}},props:{validator:{type:Object,default:function(){return new Qe}},showAllErrors:Boolean},data:function(){return{errors:[]}},computed:{self:function(){return this}},methods:{validate:function(t){var e=this;return this.validator.validate(t).then((function(t){return e.errors=[],!0})).catch((function(t){return e.errors=t,!1}))},reset:function(){this.validator.reset()}}},As,[],!1,null,null,null);Ss.options.__file="src/components/Validator.vue";var Es=Ss.exports,Os=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["grid",this.$attrs.class]},[this._t("default")],2)};Os._withStripped=!0;var js={},Ds=(n(345),en(js,Os,[],!1,null,null,null));Ds.options.__file="src/components/Grid.vue";var Ts=Ds.exports,Rs=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["row",this.$attrs.class]},[this._t("default")],2)};Rs._withStripped=!0;var Ls={},Ms=(n(347),en(Ls,Rs,[],!1,null,"513a62da",null));Ms.options.__file="src/components/Row.vue";var $s=Ms.exports,Is=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["column",this.$attrs.class],style:this.style},[this._t("default")],2)};Is._withStripped=!0;var Ps={props:{maxWidth:{type:String},minWidth:{type:String},span:{type:Number}},computed:{style:function(){var t="1 0 0";if(this.minWidth||this.maxWidth||this.span){this.span&&(t=this.span+" 0 0");var e={flex:["-webkit-box","-moz-box","-webkit","-ms",t]};return this.maxWidth&&(e.maxWidth=this.maxWidth),this.minWidth&&(e.minWidth=this.minWidth),e}return null}}},qs=(n(349),n(146)),Fs=en(Ps,Is,[],!1,null,null,null);"function"==typeof qs.default&&Object(qs.default)(Fs),Fs.options.__file="src/components/Column.vue";var Ns=Fs.exports,zs=function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["gutter",this.$attrs.class],style:this.style})};zs._withStripped=!0;var Bs=en({props:{size:{type:String,required:!0},static:{type:Boolean,default:!1}},data:function(){return{height:this.size,width:this.size,parent_el:null,display:!0,resize_sensor:null}},computed:{style:function(){return{"background-color":"transparent",height:this.height,"min-height":0,"min-width":0,width:this.width,flex:"0 0 auto"}}},methods:{resizeHandler:function(){var t=this,e=this.$el.previousElementSibling,n=this.$el.nextElementSibling;this.height=this.size,this.width=this.size,this.$nextTick((function(){if(e&&n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect();i.top>=r.bottom?t.width="0":(t.height="100%",t.width=t.size),i.left>=r.right?t.height="0":(t.height=t.size,t.width="100%")}}))}},mounted:function(){this.static||(this.parent_el=this.$el.parentElement,this.resize_sensor=new Xa(this.parent_el,this.resizeHandler),this.resizeHandler())}},zs,[],!1,null,null,null);Bs.options.__file="src/components/Gutter.vue";var Vs=Bs.exports,Hs=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"spacer",style:{flex:this.flexBasis}})};Hs._withStripped=!0;var Us=en({props:{size:{type:String,default:"10px"}},computed:{flexBasis:function(){return"0 0 "+this.size}}},Hs,[],!1,null,null,null);Us.options.__file="src/components/Spacer.vue";var Ys=Us.exports,Ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeOptions,expression:"closeOptions"}],staticClass:"autocomplete-wrapper",on:{keydown:t.keydownHandler,keypress:function(e){t.update_filters=!0},input:t.androidInputHandler,focusin:t.focusinHandler}},[t._t("default"),t._v(" "),t.filtered_options.length>0&&!t.loading_data?n("div",{staticClass:"autocomplete-options"},t._l(t.filtered_options,(function(e,r){return n("div",{key:r,class:["option",{selected:t.selected_index===r}],on:{click:function(n){return t.clickHandler(n,e)},mouseover:function(e){t.selected_index=r},mouseout:function(e){t.selected_index=-1}}},[t._v(t._s(e.label||e))])})),0):t.loading_data?n("div",{staticClass:"autocomplete-loading autocomplete-options"},[n("div",{staticClass:"option"},[t._v("Loading...")])]):t._e()],2)};Ws._withStripped=!0;var Gs=n(200),Zs=n.n(Gs),Xs={data:function(){return{filtered_options:[],original_value:"",selected_index:-1,selected_value:"",update_filters:!1,loading_data:!1,is_android:/(android)/i.test(window.navigator.userAgent)}},props:{value:{type:[String,Object]},settings:{type:Object,default:function(){return{min_length:2}}},options:{type:[Array,Function],default:function(){return[]}}},watch:{value:function(t,e){this.update_filters&&(this.original_value=this.value,this.getNewOptions(t),this.update_filters=!1)}},methods:{focusinHandler:function(){this.focus_element=document.activeElement,this.getNewOptions(this.value)},closeOptions:function(){var t=this;this.$nextTick((function(){t.filtered_options=[],t.original_value="",t.selected_index=-1,t.selected_value=""}))},clickHandler:function(t,e){var n=this;t.preventDefault(),t.stopPropagation(),this.$emit("input",e),this.$nextTick((function(){n.focus_element.focus(),n.closeOptions()}))},getNewOptions:function(t){var e=this;if(t.length>=this.settings.min_length)if(this.selected_index=-1,this.selected_value="","function"==typeof this.options){var n=this.options(t);n&&"function"==typeof n.then&&(this.loading_data=!0,n.then((function(t){e.filtered_options=t,e.loading_data=!1})).catch((function(t){})))}else{var r=Zs.a.filter(t,this.options);this.filtered_options=r.map((function(t){return t.string}))}else this.filtered_options=[]},keydownHandler:function(t){switch(t.which||t.keyCode){case 38:t.preventDefault(),t.stopPropagation(),this.selected_index>-1&&(this.selected_index--,this.selected_index<0?this.selected_value=this.value:this.selected_value=this.filtered_options[this.selected_index],this.$emit("selected",this.selected_value));break;case 40:t.preventDefault(),t.stopPropagation(),this.selected_index
{{title}}
',methods:{alert:function(t){var e=this;return this.type="alert","string"==typeof t&&(t={message:t}),new Promise((function(n,r){e.title=t.title||!1,e.message=t.message,e.accept=t.accept||"OK",e.max_width=t.width||"400px",e.$refs.msg.open().then((function(){e.$refs.accept_btn.focus()})),e.promise={resolve:n,reject:r}}))},confirm:function(t){var e=this;return this.type="confirm","string"==typeof t&&(t={message:t}),new Promise((function(n,r){e.title=t.title||!1,e.message=t.message||t.prompt,e.accept=t.accept||"OK",e.decline=t.decline||"Cancel",e.max_width=t.width||"400px",e.$refs.msg.open().then((function(){e.$refs.cancel_btn.focus()})),e.promise={resolve:n,reject:r}}))},closeMsg:function(t){var e=this;this.$refs.msg.close().then((function(){e.title="",e.message="",e.promise=null})),!0===t?this.promise.resolve(!0):this.promise.resolve(!1)}},components:{modal:ru}}),hu={init:function(){var t=document.getElementById("msg");t||((t=document.createElement("div")).id="msg",document.body.appendChild(t));var e=new du;return e.$mount(t),e}},vu=pu.a.extend({data:function(){return{queue:[]}},template:'
{{message.title}}
{{message.content}}
',methods:{icon:function(t){if(!1!==t.icon){if("string"==typeof t.icon)return t.icon;switch(t.type){case"info":return"information";case"success":return"check";case"warning":return"alert";case"error":return"alert-octagon"}}return null},add:function(t){var e=this,n=Wt("toast-");this.queue.unshift({id:n,icon:t.icon||!1,title:t.title||null,content:t.message,type:t.type||"info"}),setTimeout((function(){e.remove(n)}),t.timeout||this.$options.timeout)},remove:function(t){var e=this;this.queue.forEach((function(n,r){n.id===t&&e.queue.splice(r,1)}))},success:function(t,e){this.add({icon:!0,title:"Success",message:t,type:"success",timeout:e})},error:function(t,e){this.add({icon:!0,title:"Error",message:t,type:"error",timeout:e})},info:function(t,e){this.add({icon:!0,title:"Information",message:t,type:"info",timeout:e})},warning:function(t,e){this.add({icon:!0,title:"Warning",message:t,type:"warning",timeout:e})}},components:{Icon:vn}}),mu={init:function(t){var e=Object.assign({parent:"body",timeout:3e3},t),n=document.querySelector("#toast");n||((n=document.createElement("div")).id="toast",document.querySelector(e.parent).appendChild(n));var r=new vu;return r.$options.timeout=e.timeout,r.$mount("#toast"),r}},gu={rButton:yn,rCheckbox:An,rChecklist:Dn,rCode:Pn,rCurrency:Vn,rDatepicker:er,rFileInput:ar,rForm:on,rFormBuilder:fn,rGroupSelect:jo,rMarkdown:$o,rMultiSelect:Fo,rMultiText:ea,rNumber:oa,rPassword:la,rPillbox:ka,rRadio:Ea,rRadioGroup:Ta,rSelect:$a,rSlider:Qa,rSwitch:is,rTemplateEditor:us,rText:ps,rTextarea:ms,rTimepicker:Kn,rToggle:bs,rValidation:Cs,rValidator:Es,Icon:vn,Grid:Ts,Row:$s,Column:Ns,Gutter:Vs,Spacer:Ys,Autocomplete:Qs,Modal:ru,Tab:au,Tabs:cu,Msg:hu,Toast:mu,Validator:Qe};e.default={install:function(t,e){e?e.forEach((function(e){if("Msg"!==e&&"Toast"!==e&&"Validator"!==e)gu[e]?t.component(e,gu[e]):gu["r"+e]&&t.component("r"+e,gu["r"+e]);else switch(e){case"Msg":t.prototype.$msg=hu.init();break;case"Toast":t.prototype.$toast=mu.init();break;case"Validator":t.prototype.$validator=Qe}})):(t.component("rForm",on),t.component("rFormBuilder",fn),t.component("rButton",yn),t.component("rCheckbox",An),t.component("rChecklist",Dn),t.component("rCode",Pn),t.component("rCurrency",Vn),t.component("rDatepicker",er),t.component("rFile",ar),t.component("rGroupSelect",jo),t.component("rMarkdown",$o),t.component("rMultiSelect",Fo),t.component("rMultiText",ea),t.component("rNumber",oa),t.component("rPassword",la),t.component("rPillbox",ka),t.component("rRadio",Ea),t.component("rRadioGroup",Ta),t.component("rSelect",$a),t.component("rSlider",Qa),t.component("rSwitch",is),t.component("rTemplateEditor",us),t.component("rText",ps),t.component("rTextarea",ms),t.component("rTimepicker",Kn),t.component("rToggle",bs),t.component("rValidation",Cs),t.component("rValidator",Es),t.component("icon",vn),t.component("grid",Ts),t.component("row",$s),t.component("column",Ns),t.component("gutter",Vs),t.component("spacer",Ys),t.component("autocomplete",Qs),t.component("modal",ru),t.component("tab",au),t.component("tabs",cu),t.prototype.$msg=hu.init(),t.prototype.$toast=mu.init(),t.prototype.$Validator=Qe)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"v1",(function(){return v})),n.d(e,"v3",(function(){return A})),n.d(e,"v4",(function(){return S})),n.d(e,"v5",(function(){return j})),n.d(e,"NIL",(function(){return D})),n.d(e,"version",(function(){return T})),n.d(e,"validate",(function(){return s})),n.d(e,"stringify",(function(){return p})),n.d(e,"parse",(function(){return m}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&a.test(t)},u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c,f,p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},d=0,h=0;var v=function(t,e,n){var r=e&&n||0,i=e||new Array(16),a=(t=t||{}).node||c,s=void 0!==t.clockseq?t.clockseq:f;if(null==a||null==s){var u=t.random||(t.rng||o)();null==a&&(a=c=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var l=void 0!==t.msecs?t.msecs:Date.now(),v=void 0!==t.nsecs?t.nsecs:h+1,m=l-d+(v-h)/1e4;if(m<0&&void 0===t.clockseq&&(s=s+1&16383),(m<0||l>d)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=l,h=v,f=s;var g=(1e4*(268435455&(l+=122192928e5))+v)%4294967296;i[r++]=g>>>24&255,i[r++]=g>>>16&255,i[r++]=g>>>8&255,i[r++]=255&g;var _=l/4294967296*1e4&268435455;i[r++]=_>>>8&255,i[r++]=255&_,i[r++]=_>>>24&15|16,i[r++]=_>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var y=0;y<6;++y)i[r+y]=a[y];return e||p(i)};var m=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};var g=function(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n>>9<<4)+1}function y(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function b(t,e,n,r,i,o){return y((a=y(y(e,t),y(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function w(t,e,n,r,i,o,a){return b(e&n|~e&r,t,e,i,o,a)}function x(t,e,n,r,i,o,a){return b(e&r|n&~r,t,e,i,o,a)}function k(t,e,n,r,i,o,a){return b(e^n^r,t,e,i,o,a)}function C(t,e,n,r,i,o,a){return b(n^(e|~r),t,e,i,o,a)}var A=g("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);e.push(o)}return e}(function(t,e){t[e>>5]|=128<>5]|=(255&t[r/8])<>>32-e}var j=g("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i>>0;y=_,_=g,g=O(m,30)>>>0,m=v,v=x}n[0]=n[0]+v>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+_>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),D="00000000-0000-0000-0000-000000000000";var T=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}])})); \ No newline at end of file diff --git a/package.json b/package.json index a054c81..a77ae26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "remix-ui", - "version": "1.18.2", + "version": "1.18.3", "description": "A UI kit for VueJS", "main": "dist/index.js", "scripts": { diff --git a/src/components/Markdown.vue b/src/components/Markdown.vue index d10639e..eb82cc9 100644 --- a/src/components/Markdown.vue +++ b/src/components/Markdown.vue @@ -124,7 +124,7 @@ export default { case 'f': if (event.ctrlKey && this.mode === 'compact') { event.preventDefault(); - vm.mode = 'fullscreen'; + this.mode = 'fullscreen'; } break; }