rb-document-form-constructor 0.8.87 → 0.8.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8572,11 +8572,20 @@ var script$3 = {
|
|
|
8572
8572
|
},
|
|
8573
8573
|
getResolveObject(field) {
|
|
8574
8574
|
if (this.isResolvableField(field)) {
|
|
8575
|
-
|
|
8575
|
+
let resolveFieldName = this.getResolveFieldName(field);
|
|
8576
|
+
return field.multiple ? this.doc[field.name] : this.doc[resolveFieldName];
|
|
8576
8577
|
} else {
|
|
8577
8578
|
return null;
|
|
8578
8579
|
}
|
|
8579
8580
|
},
|
|
8581
|
+
getResolveFieldName(field) {
|
|
8582
|
+
var _resolveFieldName;
|
|
8583
|
+
let resolveFieldName = field === null || field === void 0 ? void 0 : field.name;
|
|
8584
|
+
if ((_resolveFieldName = resolveFieldName) !== null && _resolveFieldName !== void 0 && _resolveFieldName.endsWith('Id')) {
|
|
8585
|
+
resolveFieldName = field.name.substring(0, field.name.length - 2);
|
|
8586
|
+
}
|
|
8587
|
+
return resolveFieldName;
|
|
8588
|
+
},
|
|
8580
8589
|
onEventFired(eventName, event, field) {
|
|
8581
8590
|
if (field.rules) {
|
|
8582
8591
|
field.rules.forEach(rule => {
|
|
@@ -8805,16 +8814,16 @@ var __vue_render__$3 = function () {
|
|
|
8805
8814
|
"id": field.name,
|
|
8806
8815
|
"state": _vm.validationState[field.name],
|
|
8807
8816
|
"resolveFromObject": _vm.isResolvableField(field),
|
|
8808
|
-
"resolveObject": _vm.doc[field
|
|
8817
|
+
"resolveObject": _vm.doc[_vm.getResolveFieldName(field)],
|
|
8809
8818
|
"markForBackResolution": _vm.isResolvableField(field),
|
|
8810
8819
|
"required": field.required
|
|
8811
8820
|
},
|
|
8812
8821
|
on: {
|
|
8813
8822
|
"update:resolveObject": function ($event) {
|
|
8814
|
-
|
|
8823
|
+
_vm.$set(_vm.doc, _vm.getResolveFieldName(field), $event);
|
|
8815
8824
|
},
|
|
8816
8825
|
"update:resolve-object": function ($event) {
|
|
8817
|
-
|
|
8826
|
+
_vm.$set(_vm.doc, _vm.getResolveFieldName(field), $event);
|
|
8818
8827
|
},
|
|
8819
8828
|
"hook:created": function ($event) {
|
|
8820
8829
|
return _vm.onEventFired('created', $event, field);
|
|
@@ -9976,11 +9985,11 @@ var __vue_render__ = function () {
|
|
|
9976
9985
|
"handle": ".rb-row-drag-handle"
|
|
9977
9986
|
},
|
|
9978
9987
|
model: {
|
|
9979
|
-
value: _vm.formConfig.
|
|
9988
|
+
value: _vm.formConfig.sections,
|
|
9980
9989
|
callback: function ($$v) {
|
|
9981
|
-
_vm.$set(_vm.formConfig, "
|
|
9990
|
+
_vm.$set(_vm.formConfig, "sections", $$v);
|
|
9982
9991
|
},
|
|
9983
|
-
expression: "formConfig.
|
|
9992
|
+
expression: "formConfig.sections"
|
|
9984
9993
|
}
|
|
9985
9994
|
}, _vm._l(_vm.formConfig.sections, function (section, index) {
|
|
9986
9995
|
return _c('b-card', {
|
|
@@ -9995,7 +10004,7 @@ var __vue_render__ = function () {
|
|
|
9995
10004
|
return [_c('rb-icon', {
|
|
9996
10005
|
staticClass: "cursor-pointer rb-row-drag-handle",
|
|
9997
10006
|
attrs: {
|
|
9998
|
-
"icon":
|
|
10007
|
+
"icon": "icon-search"
|
|
9999
10008
|
}
|
|
10000
10009
|
}), _vm._v(" "), _c('rb-text', {
|
|
10001
10010
|
staticClass: "flex-fill",
|
|
@@ -4,4 +4,4 @@ var RbDocumentFormConstructor=function(Vue$1){"use strict";function _interopDefa
|
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
|
5
5
|
* @author owenm <owen23355@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
*/function _typeof$1(t){return _typeof$1="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},_typeof$1(t)}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _extends(){return _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_extends.apply(this,arguments)}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){_defineProperty(t,e,n[e])}))}return t}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function _objectWithoutProperties(t,e){if(null==t)return{};var n,r,o=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var version="1.10.2";function userAgent(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(t,e,n){t.addEventListener(e,n,!IE11OrLess&&captureMode)}function off(t,e,n){t.removeEventListener(e,n,!IE11OrLess&&captureMode)}function matches(t,e){if(e){if(">"===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 getParentOrHost(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function closest(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&matches(t,e):matches(t,e))||r&&t===n)return t;if(t===n)break}while(t=getParentOrHost(t))}return null}var R_SPACE=/\s+/g,_throttleTimeout;function toggleClass(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(R_SPACE," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(R_SPACE," ")}}function css(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 matrix(t,e){var n="";if("string"==typeof t)n=t;else do{var r=css(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function find(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function getWindowScrollingElement(){var t=document.scrollingElement;return t||document.documentElement}function getRect(t,e,n,r,o){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,f;if(t!==window&&t!==getWindowScrollingElement()?(a=(i=t.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,f=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!IE11OrLess))do{if(o&&o.getBoundingClientRect&&("none"!==css(o,"transform")||n&&"static"!==css(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(css(o,"border-top-width")),l-=d.left+parseInt(css(o,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(o=o.parentNode);if(r&&t!==window){var p=matrix(o||t),h=p&&p.a,g=p&&p.d;p&&(s=(a/=g)+(u/=g),c=(l/=h)+(f/=h))}return{top:a,left:l,bottom:s,right:c,width:f,height:u}}}function isScrolledPast(t,e,n){for(var r=getParentAutoScrollElement(t,!0),o=getRect(t)[e];r;){var i=getRect(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===getWindowScrollingElement())break;r=getParentAutoScrollElement(r,!1)}return!1}function getChild(t,e,n){for(var r=0,o=0,i=t.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Sortable.ghost&&i[o]!==Sortable.dragged&&closest(i[o],n.draggable,t,!1)){if(r===e)return i[o];r++}o++}return null}function lastChild(t,e){for(var n=t.lastElementChild;n&&(n===Sortable.ghost||"none"===css(n,"display")||e&&!matches(n,e));)n=n.previousElementSibling;return n||null}function index(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Sortable.clone||e&&!matches(t,e)||n++;return n}function getRelativeScrollOffset(t){var e=0,n=0,r=getWindowScrollingElement();if(t)do{var o=matrix(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function indexOfObject(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}function getParentAutoScrollElement(t,e){if(!t||!t.getBoundingClientRect)return getWindowScrollingElement();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=css(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return getWindowScrollingElement();if(r||e)return n;r=!0}}}while(n=n.parentNode);return getWindowScrollingElement()}function extend(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function isRectEqual(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function throttle(t,e){return function(){if(!_throttleTimeout){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),e)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function clone(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==css(t,"display")&&t!==Sortable.ghost){e.push({target:t,rect:getRect(t)});var n=_objectSpread({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=matrix(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(indexOfObject(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=getRect(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,f=matrix(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&isRectEqual(s,l)&&!isRectEqual(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=calculateRealTime(u,s,c,r.options)),isRectEqual(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=r.options.animation),r.animate(n,u,l,e)),e&&(o=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,r){if(r){css(t,"transition",""),css(t,"transform","");var o=matrix(this.el),i=o&&o.a,a=o&&o.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,css(t,"transform","translate3d("+l+"px,"+s+"px,0)"),repaint(t),css(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),css(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){css(t,"transition",""),css(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),r)}}}}function repaint(t){return t.offsetWidth}function calculateRealTime(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function(t){for(var e in defaults)defaults.hasOwnProperty(e)&&!(e in t)&&(t[e]=defaults[e]);plugins.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";plugins.forEach((function(r){e[r.pluginName]&&(e[r.pluginName][o]&&e[r.pluginName][o](_objectSpread({sortable:e},n)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](_objectSpread({sortable:e},n)))}))},initializePlugins:function(t,e,n,r){for(var o in plugins.forEach((function(r){var o=r.pluginName;if(t.options[o]||r.initializeByDefault){var i=new r(t,e,t.options);i.sortable=t,i.options=t.options,t[o]=i,_extends(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);void 0!==i&&(t.options[o]=i)}},getEventProperties:function(t,e){var n={};return plugins.forEach((function(r){"function"==typeof r.eventProperties&&_extends(n,r.eventProperties.call(e[r.pluginName],t))})),n},modifyOption:function(t,e,n){var r;return plugins.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(r=o.optionListeners[e].call(t[o.pluginName],n))})),r}};function dispatchEvent(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[expando]){var g,m=e.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||IE11OrLess||Edge?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=f,g.originalEvent=d,g.pullMode=p?p.lastPutMode:void 0;var _=_objectSpread({},h,PluginManager.getEventProperties(r,e));for(var b in _)g[b]=_[b];n&&n.dispatchEvent(g),m[v]&&m[v].call(e,g)}}var pluginEvent=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=_objectWithoutProperties(n,["evt"]);PluginManager.pluginEvent.bind(Sortable)(t,e,_objectSpread({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:r,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(t){_dispatchEvent({sortable:e,name:t,originalEvent:r})}},o))};function _dispatchEvent(t){dispatchEvent(_objectSpread({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},t))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists="undefined"!=typeof document,PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),_detectDirection=function(t,e){var n=css(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=getChild(t,0,e),i=getChild(t,1,e),a=o&&css(o),l=i&&css(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+getRect(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+getRect(i).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(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[CSSFloatProperty]||i&&"none"===n[CSSFloatProperty]&&s+c>r)?"vertical":"horizontal"},_dragElInRowColumn=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return r===a||o===l||r+i/2===a+s/2},_detectNearestEmptySortable=function(t,e){var n;return sortables.some((function(r){if(!lastChild(r)){var o=getRect(r),i=r[expando].options.emptyInsertThreshold,a=t>=o.left-i&&t<=o.right+i,l=e>=o.top-i&&e<=o.bottom+i;return i&&a&&l?n=r:void 0}})),n},_prepareGroup=function(t){function e(t,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},r=t.group;r&&"object"==_typeof$1(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},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",(function(t){if(ignoreNextClick)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),ignoreNextClick=!1,!1}),!0);var nearestEmptyInsertDetectEvent=function(t){if(dragEl){t=t.touches?t.touches[0]:t;var e=_detectNearestEmptySortable(t.clientX,t.clientY);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[expando]._onDragOver(n)}}},_checkOutsideTargetEl=function(t){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(t.target)};function Sortable(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=_extends({},e),t[expando]=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 _detectDirection(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!==Sortable.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in PluginManager.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var o in _prepareGroup(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?on(t,"pointerdown",this._onTapStart):(on(t,"mousedown",this._onTapStart),on(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(t,"dragover",this),on(t,"dragenter",this)),sortables.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_extends(this,AnimationStateManager())}function _globalDragOver(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function _onMove(t,e,n,r,o,i,a,l){var s,c,u=t[expando],f=u.options.onMove;return!window.CustomEvent||IE11OrLess||Edge?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=r,s.related=o||e,s.relatedRect=i||getRect(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function _disableDraggable(t){t.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsLast(t,e,n){var r=getRect(lastChild(n.el,n.options.draggable));return e?t.clientX>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}function _getSwapDirection(t,e,n,r,o,i,a,l){var s=r?t.clientY:t.clientX,c=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(l&&targetMoveDistance<c*o){if(!pastFirstInvertThresh&&(1===lastDirection?s>u+c*i/2:s<f-c*i/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)d=!0;else if(1===lastDirection?s<u+targetMoveDistance:s>f-targetMoveDistance)return-lastDirection}else if(s>u+c*(1-o)/2&&s<f-c*(1-o)/2)return _getInsertDirection(e);return(d=d||a)&&(s<u+c*i/2||s>f-c*i/2)?s>u+c/2?1:-1:0}function _getInsertDirection(t){return index(dragEl)<index(t)?1:-1}function _generateId(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 _saveInputCheckedState(t){savedInputChecked.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&savedInputChecked.push(r)}}function _nextTick(t){return setTimeout(t,0)}function _cancelNextTick(t){return clearTimeout(t)}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(lastTarget=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,dragEl):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=r.filter;if(_saveInputCheckedState(n),!dragEl&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||r.disabled||s.isContentEditable||(l=closest(l,r.draggable,n,!1))&&l.animated||lastDownEl===l)){if(oldIndex=index(l),oldDraggableIndex=index(l,r.draggable),"function"==typeof c){if(c.call(this,t,l,this))return _dispatchEvent({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),pluginEvent("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=closest(s,r.trim(),n,!1))return _dispatchEvent({sortable:e,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),pluginEvent("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());r.handle&&!closest(s,r.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!dragEl&&n.parentNode===i){var s=getRect(n);if(rootEl=i,parentEl=(dragEl=n).parentNode,nextEl=dragEl.nextSibling,lastDownEl=n,activeGroup=a.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(e||t).clientX,clientY:(e||t).clientY},tapDistanceLeft=tapEvt.clientX-s.left,tapDistanceTop=tapEvt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,dragEl.style["will-change"]="all",r=function(){pluginEvent("delayEnded",o,{evt:t}),Sortable.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!FireFox&&o.nativeDraggable&&(dragEl.draggable=!0),o._triggerDragStart(t,e),_dispatchEvent({sortable:o,name:"choose",originalEvent:t}),toggleClass(dragEl,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){find(dragEl,t.trim(),_disableDraggable)})),on(l,"dragover",nearestEmptyInsertDetectEvent),on(l,"mousemove",nearestEmptyInsertDetectEvent),on(l,"touchmove",nearestEmptyInsertDetectEvent),on(l,"mouseup",o._onDrop),on(l,"touchend",o._onDrop),on(l,"touchcancel",o._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(Edge||IE11OrLess))r();else{if(Sortable.eventCanceled)return void this._onDrop();on(l,"mouseup",o._disableDelayedDrag),on(l,"touchend",o._disableDelayedDrag),on(l,"touchcancel",o._disableDelayedDrag),on(l,"mousemove",o._delayedDragTouchMoveHandler),on(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&on(l,"pointermove",o._delayedDragTouchMoveHandler),o._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(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag),off(t,"touchend",this._disableDelayedDrag),off(t,"touchcancel",this._disableDelayedDrag),off(t,"mousemove",this._delayedDragTouchMoveHandler),off(t,"touchmove",this._delayedDragTouchMoveHandler),off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):on(document,e?"touchmove":"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:e}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var n=this.options;!t&&toggleClass(dragEl,n.dragClass,!1),toggleClass(dragEl,n.ghostClass,!0),Sortable.active=this,t&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY))!==e;)e=t;if(dragEl.parentNode[expando]._isOutsideThisEl(t),e)do{if(e[expando]){if(e[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(t){if(tapEvt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=ghostEl&&matrix(ghostEl,!0),a=ghostEl&&i&&i.a,l=ghostEl&&i&&i.d,s=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),c=(o.clientX-tapEvt.clientX+r.x)/(a||1)+(s?s[0]-ghostRelativeParentInitialScroll[0]:0)/(a||1),u=(o.clientY-tapEvt.clientY+r.y)/(l||1)+(s?s[1]-ghostRelativeParentInitialScroll[1]:0)/(l||1);if(!Sortable.active&&!awaitingDragStarted){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ghostEl){i?(i.e+=c-(lastDx||0),i.f+=u-(lastDy||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");css(ghostEl,"webkitTransform",f),css(ghostEl,"mozTransform",f),css(ghostEl,"msTransform",f),css(ghostEl,"transform",f),lastDx=c,lastDy=u,touchEvt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,e=getRect(dragEl,!0,PositionGhostAbsolutely,!0,t),n=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=t;"static"===css(ghostRelativeParent,"position")&&"none"===css(ghostRelativeParent,"transform")&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),e.top+=ghostRelativeParent.scrollTop,e.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}toggleClass(ghostEl=dragEl.cloneNode(!0),n.ghostClass,!1),toggleClass(ghostEl,n.fallbackClass,!0),toggleClass(ghostEl,n.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",e.top),css(ghostEl,"left",e.left),css(ghostEl,"width",e.width),css(ghostEl,"height",e.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,t.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;pluginEvent("dragStart",this,{evt:t}),Sortable.eventCanceled?this._onDrop():(pluginEvent("setupClone",this),Sortable.eventCanceled||((cloneEl=clone(dragEl)).draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),n.cloneId=_nextTick((function(){pluginEvent("clone",n),Sortable.eventCanceled||(n.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),n._hideClone(),_dispatchEvent({sortable:n,name:"clone"}))})),!e&&toggleClass(dragEl,o.dragClass,!0),e?(ignoreNextClick=!0,n._loopId=setInterval(n._emulateDragOver,50)):(off(document,"mouseup",n._onDrop),off(document,"touchend",n._onDrop),off(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,dragEl)),on(document,"drop",n),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,n._dragStartId=_nextTick(n._dragStarted.bind(n,e,t)),on(document,"selectstart",n),moved=!0,Safari&&css(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,r,o,i=this.el,a=t.target,l=this.options,s=l.group,c=Sortable.active,u=activeGroup===s,f=l.sort,d=putSortable||c,p=this,h=!1;if(!_silent){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=closest(a,l.draggable,i,!0),T("dragOver"),Sortable.eventCanceled)return h;if(dragEl.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return O(!1);if(ignoreNextClick=!1,c&&!l.disabled&&(u?f||(r=!rootEl.contains(dragEl)):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&s.checkPut(this,c,dragEl,t))){if(o="vertical"===this._getDirection(t,a),e=getRect(dragEl),T("dragOverValid"),Sortable.eventCanceled)return h;if(r)return parentEl=rootEl,F(),this._hideClone(),T("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),O(!0);var g=lastChild(i,l.draggable);if(!g||_ghostIsLast(t,o,this)&&!g.animated){if(g===dragEl)return O(!1);if(g&&i===t.target&&(a=g),a&&(n=getRect(a)),!1!==_onMove(rootEl,i,dragEl,e,a,n,t,!!a))return F(),i.appendChild(dragEl),parentEl=i,P(),O(!0)}else if(a.parentNode===i){n=getRect(a);var m,v,_,b=dragEl.parentNode!==i,y=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||e,a.animated&&a.toRect||n,o),E=o?"top":"left",S=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),I=S?S.scrollTop:void 0;if(lastTarget!==a&&(v=n[E],pastFirstInvertThresh=!1,isCircumstantialInvert=!y&&l.invertSwap||b),0!==(m=_getSwapDirection(t,a,n,o,y?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a))){var x=index(dragEl);do{x-=m,_=parentEl.children[x]}while(_&&("none"===css(_,"display")||_===ghostEl))}if(0===m||_===a)return O(!1);lastTarget=a,lastDirection=m;var C=a.nextElementSibling,w=!1,D=_onMove(rootEl,i,dragEl,e,a,n,t,w=1===m);if(!1!==D)return 1!==D&&-1!==D||(w=1===D),_silent=!0,setTimeout(_unsilent,30),F(),w&&!C?i.appendChild(dragEl):a.parentNode.insertBefore(dragEl,w?C:a),S&&scrollBy(S,0,I-S.scrollTop),parentEl=dragEl.parentNode,void 0===v||isCircumstantialInvert||(targetMoveDistance=Math.abs(v-getRect(a)[E])),P(),O(!0)}if(i.contains(dragEl))return O(!1)}return!1}function T(l,s){pluginEvent(l,p,_objectSpread({evt:t,isOwner:u,axis:o?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:f,fromSortable:d,target:a,completed:O,onMove:function(n,r){return _onMove(rootEl,i,dragEl,e,n,getRect(n),t,r)},changed:P},s))}function F(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function O(e){return T("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==d&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,l.ghostClass,!0)),putSortable!==p&&p!==Sortable.active?putSortable=p:p===Sortable.active&&putSortable&&(putSortable=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===i&&!a.animated)&&(lastTarget=null),l.dragoverBubble||t.rootEl||a===document||(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!e&&nearestEmptyInsertDetectEvent(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function P(){newIndex=index(dragEl),newDraggableIndex=index(dragEl,l.draggable),_dispatchEvent({sortable:p,name:"change",toEl:i,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop),off(t,"touchend",this._onDrop),off(t,"pointerup",this._onDrop),off(t,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;newIndex=index(dragEl),newDraggableIndex=index(dragEl,n.draggable),pluginEvent("drop",this,{evt:t}),parentEl=dragEl&&dragEl.parentNode,newIndex=index(dragEl),newDraggableIndex=index(dragEl,n.draggable),Sortable.eventCanceled||(awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),t&&(moved&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&"clone"!==putSortable.lastPutMode)&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),Sortable.active&&(null!=newIndex&&-1!==newIndex||(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach((function(t){t.checked=!0})),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(t),_globalDragOver(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)closest(t=n[r],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||_generateId(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,r){var o=n.children[r];closest(o,this.options.draggable,n,!1)&&(e[t]=o)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return closest(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=PluginManager.modifyOption(this,t,e);n[t]=void 0!==r?r:e,"group"===t&&_prepareGroup(n)},destroy:function(){pluginEvent("destroy",this);var t=this.el;t[expando]=null,off(t,"mousedown",this._onTapStart),off(t,"touchstart",this._onTapStart),off(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(t,"dragover",this),off(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;rootEl.contains(dragEl)&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}else this._hideClone()}},documentExists&&on(document,"touchmove",(function(t){(Sortable.active||awaitingDragStarted)&&t.cancelable&&t.preventDefault()})),Sortable.utils={on:on,off:off,css:css,find:find,is:function(t,e){return!!closest(t,e,t,!1)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild},Sortable.get=function(t){return t[expando]},Sortable.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Sortable.utils=_objectSpread({},Sortable.utils,t.utils)),PluginManager.mount(t)}))},Sortable.create=function(t,e){return new Sortable(t,e)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):e.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(r,o);if(touchEvt$1=t,e||Edge||IE11OrLess||Safari){autoScroll(t,this.options,i,e);var a=getParentAutoScrollElement(i,!0);!scrolling||pointerElemChangedInterval&&r===lastAutoScrollX&&o===lastAutoScrollY||(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval((function(){var i=getParentAutoScrollElement(document.elementFromPoint(r,o),!0);i!==a&&(a=i,clearAutoScrolls()),autoScroll(t,n.options,i,e)}),10),lastAutoScrollX=r,lastAutoScrollY=o)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(i,!0)===getWindowScrollingElement())return void clearAutoScrolls();autoScroll(t,this.options,getParentAutoScrollElement(i,!1),!1)}}},_extends(t,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach((function(t){clearInterval(t.pid)})),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(t,e,n,r){if(e.scroll){var o,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=getWindowScrollingElement(),u=!1;scrollRootEl!==n&&(scrollRootEl=n,clearAutoScrolls(),scrollEl=e.scroll,o=e.scrollFn,!0===scrollEl&&(scrollEl=getParentAutoScrollElement(n,!0)));var f=0,d=scrollEl;do{var p=d,h=getRect(p),g=h.top,m=h.bottom,v=h.left,_=h.right,b=h.width,y=h.height,E=void 0,S=void 0,I=p.scrollWidth,x=p.scrollHeight,C=css(p),w=p.scrollLeft,D=p.scrollTop;p===c?(E=b<I&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=y<x&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(E=b<I&&("auto"===C.overflowX||"scroll"===C.overflowX),S=y<x&&("auto"===C.overflowY||"scroll"===C.overflowY));var T=E&&(Math.abs(_-i)<=l&&w+b<I)-(Math.abs(v-i)<=l&&!!w),F=S&&(Math.abs(m-a)<=l&&D+y<x)-(Math.abs(g-a)<=l&&!!D);if(!autoScrolls[f])for(var O=0;O<=f;O++)autoScrolls[O]||(autoScrolls[O]={});autoScrolls[f].vx==T&&autoScrolls[f].vy==F&&autoScrolls[f].el===p||(autoScrolls[f].el=p,autoScrolls[f].vx=T,autoScrolls[f].vy=F,clearInterval(autoScrolls[f].pid),0==T&&0==F||(u=!0,autoScrolls[f].pid=setInterval(function(){r&&0===this.layer&&Sortable.active._onTouchMove(touchEvt$1);var e=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*s:0,n=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Sortable.dragged.parentNode[expando],n,e,t,touchEvt$1,autoScrolls[this.layer].el)||scrollBy(autoScrolls[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==c&&(d=getParentAutoScrollElement(d,!1)));scrolling=u}}),30),drop=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||o;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Revert(){}function Remove(){}Revert.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=getChild(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:drop},_extends(Revert,{pluginName:"revertOnSpill"}),Remove.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);var vuedraggable_umd=createCommonjsModule((function(t,e){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){var r=n("2d00"),o=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",h="values",g=function(){return this};t.exports=function(t,e,n,m,v,_,b){s(n,e,m);var y,E,S,I=function(t){if(!d&&t in D)return D[t];switch(t){case p:case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",C=v==h,w=!1,D=t.prototype,T=D[f]||D["@@iterator"]||v&&D[v],F=T||I(v),O=v?C?I("entries"):F:void 0,P="Array"==e&&D.entries||T;if(P&&(S=u(P.call(new t)))!==Object.prototype&&S.next&&(c(S,x,!0),r||"function"==typeof S[f]||a(S,f,g)),C&&T&&T.name!==h&&(w=!0,F=function(){return T.call(this)}),r&&!b||!d&&!w&&D[f]||a(D,f,F),l[e]=F,l[x]=g,v)if(y={values:C?F:I(h),keys:_?F:I(p),entries:O},b)for(E in y)E in D||i(D,E,y[E]);else o(o.P+o.F*(d||w),e,y);return y}},"02f4":function(t,e,n){var r=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var i,a,l=String(o(e)),s=r(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),l=a.length,s=0;l>s;)r.f(t,n=a[s++],e[n]);return t}},"214f":function(t,e,n){n("b0c5");var r=n("2aba"),o=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=l(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!f){var g=/./[d],m=n(a,d,""[t],(function(t,e,n,r,o){return e.exec===s?p&&!o?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,t,v),o(RegExp.prototype,d,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s="prototype",c=function(){var t,e=n("230e")("iframe"),r=i.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l[s]=r(t),n=new l,l[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){var r=n("5ca1"),o=n("d2c8"),i="includes";r(r.P+r.F*n("5147")(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){var r=n("2aeb"),o=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(t){return o(r(t))}}))},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){var r,o,i=n("0bfb"),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c="lastIndex",u=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r[c]||0!==o[c]),f=void 0!==/()??/.exec("")[1];(u||f)&&(s=function(t){var e,n,r,o,s=this;return f&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),u&&(e=s[c]),r=a.call(s,t),u&&r&&(s[c]=s.global?r.index+r[0].length:e),f&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),a=n("2aba"),l=n("9b43"),s="prototype",c=function(t,e,n){var u,f,d,p,h=t&c.F,g=t&c.G,m=t&c.S,v=t&c.P,_=t&c.B,b=g?r:m?r[e]||(r[e]={}):(r[e]||{})[s],y=g?o:o[e]||(o[e]={}),E=y[s]||(y[s]={});for(u in g&&(n=e),n)d=((f=!h&&b&&void 0!==b[u])?b:n)[u],p=_&&f?l(d,r):v&&"function"==typeof d?l(Function.call,d):d,b&&a(b,u,d,t&c.U),y[u]!=d&&i(y,u,p),v&&E[u]!=d&&(E[u]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,n){var r=n("5ca1"),o=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){var r=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6762:function(t,e,n){var r=n("5ca1"),o=n("c366")(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){var r=n("0d58"),o=n("2621"),i=n("52a7"),a=n("4bf8"),l=n("626a"),s=Object.assign;t.exports=!s||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=a(t),s=arguments.length,c=1,u=o.f,f=i.f;s>c;)for(var d,p=l(arguments[c++]),h=u?r(p).concat(u(p)):r(p),g=h.length,m=0;g>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,o=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;null==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){var r=n("cb7c"),o=n("4bf8"),i=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,h){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=h(n,t,this,e);if(o.done)return o.value;var f=r(t),d=String(this),p="function"==typeof e;p||(e=String(e));var m=f.global;if(m){var v=f.unicode;f.lastIndex=0}for(var _=[];;){var b=s(f,d);if(null===b)break;if(_.push(b),!m)break;""===String(b[0])&&(f.lastIndex=l(d,i(f.lastIndex),v))}for(var y,E="",S=0,I=0;I<_.length;I++){b=_[I];for(var x=String(b[0]),C=c(u(a(b.index),d.length),0),w=[],D=1;D<b.length;D++)w.push(void 0===(y=b[D])?y:String(y));var T=b.groups;if(p){var F=[x].concat(w,C,d);void 0!==T&&F.push(T);var O=String(e.apply(void 0,F))}else O=g(x,d,C,w,T,e);C>=S&&(E+=d.slice(S,C)+O,S=C+x.length)}return E+d.slice(S)}];function g(t,e,r,i,a,l){var s=r+t.length,c=i.length,u=p;return void 0!==a&&(a=o(a),u=d),n.call(l,u,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var d=f(u/10);return 0===d?n:d<=c?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},aae3:function(t,e,n){var r=n("d3f4"),o=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),o=n("0d58"),i=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),f=c("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),g=0;g<h.length;g++){var m,v=h[g],_=p[v],b=a[v],y=b&&b.prototype;if(y&&(y[u]||l(y,u,d),y[f]||l(y,f,v),s[v]=d,_))for(m in r)y[m]||i(y,m,r[m],!0)}},b0c5:function(t,e,n){var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=r(e),c=o(s.length),u=i(a,c);if(t&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s})),n("a481");var r,o,i="undefined"!=typeof window?window.console:t.console,a=/-(\w)/g,l=(r=function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))},o=Object.create(null),function(t){return o[t]||(o[t]=r(t))});function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var r=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){var r=n("9c6c"),o=n("d53b"),i=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=o(t),s=0,c=[];for(n in l)n!=a&&r(l,n)&&c.push(n);for(;e.length>s;)r(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var r=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){var r=n("5ca1"),o=n("9def"),i=n("d2c8"),a="startsWith",l=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(t){var e=i(this,t,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){var r;function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var s=n("a352"),c=n.n(s),u=n("c649");function f(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function d(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),f.call(e,t,n)}}function p(t){return["transition-group","TransitionGroup"].includes(t)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var g=["Start","Add","Remove","Update","End"],m=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(g,m).map((function(t){return"on"+t})),_=null,b={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=a(t,1)[0].componentOptions;return!!e&&p(e.tag)}(e);var n=function(t,e,n){var r=0,o=0,i=h(e,n,"header");i&&(r=i.length,t=t?[].concat(l(i),l(t)):l(i));var a=h(e,n,"footer");return a&&(o=a.length,t=t?[].concat(l(t),l(a)):l(a)),{children:t,headerOffset:r,footerOffset:o}}(e,this.$slots,this.$scopedSlots),r=n.children,o=n.headerOffset,i=n.footerOffset;this.headerOffset=o,this.footerOffset=i;var s=function(t,e){var n=null,r=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(r("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{})),!e)return n;var o=e.on,i=e.props,a=e.attrs;return r("on",o),r("props",i),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return t(this.getTag(),s,r)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};g.forEach((function(n){e["on"+n]=d.call(t,n)})),m.forEach((function(n){e["on"+n]=f.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(u.a)(n)]=t.$attrs[n],e}),{}),r=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new c.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(u.a)(e);-1===v.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,n,r){if(!t)return[];var o=t.map((function(t){return t.elm})),i=e.length-r,a=l(e).map((function(t,e){return e>=i?o.length:o.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&p(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=l(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,l(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};var o=r.realList,i={list:o,component:r};if(e!==n&&o&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,i)}return i},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),_=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var r={element:e,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=l(e.to.children).filter((function(t){return"none"!==t.style.display})),r=n.indexOf(e.related),o=t.component.getVmIndex(r);return-1===n.indexOf(_)&&e.willInsertAfter?o+1:o},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(t),o=this.context,i=this.computeFutureIndex(r,t);return Object.assign(o,{futureIndex:i}),n(Object.assign({},t,{relatedContext:r,draggedContext:o}),e)},onDragEnd:function(){this.computeIndexes(),_=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",b);var y=b;e.default=y}}).default},t.exports=n(Sortable)})),script$4={name:"DocTemplateFacetList",components:{draggable:vuedraggable_umd},props:{facets:{type:Array,default:function(){return[]}}},data:function(){return{allFacets:[],innerFacets:[],facetSearchStr:null}},computed:{iconExpandFacet:function(){return UtFormConstructor.config.icons.iconExpandFacet},iconCollapseFacet:function(){return UtFormConstructor.config.icons.iconCollapseFacet}},watch:{facetSearchStr:function(){this.findInFacets(this.facetSearchStr)},facets:function(){this.handleFacetsProp()}},methods:{onFieldCloned:function(t){var e=JSON.parse(JSON.stringify(t));return e.input=UtFormConstructor.getDefaultInput(e),e},onFieldMoveEnd:function(t){this.$emit("fieldMoveEnd",t)},findInFacets:function(t){(t=t.toLowerCase())&&0!==t.length||(this.innerFacets=this.allFacets);var e=JSON.parse(JSON.stringify(this.allFacets));e=e.filter((function(e){var n=!1;return e.fields=e.fields.filter((function(e){var r=e.labelRu.toLowerCase().indexOf(t)>=0;return r&&(n=!0),r})),n})),this.innerFacets=e},handleFacetsProp:function(){var t=this.facets.map((function(t){return _objectSpread2(_objectSpread2({},t),{},{expanded:!1})}));t&&t.forEach((function(t){t.fields=t.fields.filter((function(t){return!t.hiddenOnFormConfig}))})),this.innerFacets=JSON.parse(JSON.stringify(t)),this.allFacets=JSON.parse(JSON.stringify(t))}},created:function(){this.handleFacetsProp()}},__vue_script__$4=script$4,__vue_render__$4=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-facets-sidebar"},[n("h4",[t._v("Компоненты")]),t._v(" "),n("b-form",[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",[n("b-form-input",{attrs:{placeholder:"Название поля"},model:{value:t.facetSearchStr,callback:function(e){t.facetSearchStr=e},expression:"facetSearchStr"}})],1)],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-facet-list"},t._l(t.innerFacets,(function(e){return e.fields.length>0?n("div",{key:e.name,staticClass:"rb-facet"},[n("h6",{staticClass:"rb-facet-label d-flex cursor-pointer",on:{click:function(t){e.expanded=!e.expanded}}},[n("rb-text",{staticClass:"flex-fill"},[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{attrs:{icon:e.expanded?t.iconCollapseFacet:t.iconExpandFacet}})],1),t._v(" "),e.expanded?n("b-list-group",[n("draggable",{attrs:{clone:t.onFieldCloned,animation:200,group:{name:"fields",pull:"clone",put:!1},"ghost-class":"rb-facet-field-moving"},on:{end:function(e){return t.onFieldMoveEnd(e)}},model:{value:e.fields,callback:function(n){t.$set(e,"fields",n)},expression:"facet.fields"}},t._l(e.fields,(function(e){return n("b-list-group-item",{key:e.name,staticClass:"cursor-pointer",attrs:{id:e.name+"Sidebar"}},[n("rb-text",[t._v(t._s(e.labelRu))])],1)})),1)],1):t._e()],1):t._e()})),0)],1)},__vue_staticRenderFns__$4=[],__vue_inject_styles__$4=void 0,__vue_scope_id__$4=void 0,__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=!1,__vue_component__$5=normalizeComponent({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$4,__vue_script__$4,__vue_scope_id__$4,__vue_is_functional_template__$4,__vue_module_identifier__$4,!1,void 0,void 0,void 0),DocTemplateFacetList=__vue_component__$5,toString=Object.prototype.toString,_typeof=function(t){var e=typeof t;return"undefined"===e?"undefined":(t?e=t.constructor.name:"object"===e&&(e=toString.call(t).slice(8,-1)),e.toLowerCase())},script$3={name:"DocForm",props:{formConfig:Object,applyDefaultValues:{type:Boolean,default:!0},doc:{type:Object,default:function(){return{}}},refSuffix:{type:String,default:"Id"},editable:{type:Boolean,default:!0},displayField:{type:String,default:"labelRu"},showRequiredInLabel:{type:Boolean,default:!0}},data:function(){return{validationState:{}}},watch:{formConfig:function(){this.validationState={},this.execApplyDefaultValues(),this.execApplyDefaultValRule()}},methods:{getResolveValueName:function(t){return!t.dict&&!t.ref||t.multiple?t.name:t.name.substring(0,t.name.length-2)},getResolveValue:function(t){return this.doc[this.getResolveValueName(t)]?this.doc[this.getResolveValueName(t)]:null},getDisplayField:function(t){return t[this.displayField]?t[this.displayField]:t.labelRu},isResolvableField:function(t){return!!t.ref},getResolveObject:function(t){return this.isResolvableField(t)?t.multiple?this.doc[t.name]:this.doc[(t.ref+"").toLowerCase()]:null},onEventFired:function(t,e,n){var r=this;n.rules&&n.rules.forEach((function(n){n.event===t&&n.script&&r.runRule(n,{event:e,eventName:t})}))},onGlobalEventFired:function(t,e){var n=this;UtFormConfig.getFields(this.formConfig).forEach((function(r){r.rules&&r.rules.forEach((function(r){r.event===t&&n.runRule(r,{event:e,eventName:t})}))}))},createRuleContext:function(t){return Object.assign(_objectSpread2({form:this,doc:this.doc},t),UtFormConstructor.getRuleContext())},runRule:function(t,e){UtFormConstructor.runRule(this.createRuleContext(e),t.script)},isValueEmpty:function(t){var e;return null==this.doc[t]||(!(!Array.isArray(this.doc[t])||null!==(e=this.doc[t])&&void 0!==e&&e.length)||!(!_typeof("string"===this.doc[t])||""!==this.doc[t]))},isValueLessThanMax:function(t,e){var n;return!(!this.doc[t]||!e)&&(null===(n=this.doc[t])||void 0===n?void 0:n.length)>parseInt(e)},isValueLessThanMin:function(t,e){return!(!this.doc[t]||!e)&&parseInt(this.doc[t])<parseInt(e)},validate:function(){var t=this;for(var e in this.formConfig.sections.forEach((function(e){e.columns.forEach((function(e){e.fields.forEach((function(e){var n,r,o="";(e.required&&t.isValueEmpty(e.name)&&(o+=i18n.t("validate.required",{field:t.getDisplayField(e)})),"integer"===e.type&&t.isValueLessThanMin(e.name,e.input.propsData.min)&&(o+="\n".concat(i18n.t("validate.min",{min:e.input.propsData.min}))),"b-form-textarea"===e.input.type&&t.isValueLessThanMax(e.name,null===(n=e.input.propsData)||void 0===n?void 0:n.max))&&(o+="\nМаксимальное значение для этого поля ".concat(null===(r=e.input.propsData)||void 0===r?void 0:r.max));o?(Vue__default.default.set(t.validationState,e.name,!1),Vue__default.default.set(t.validationState,"".concat(e.name,"__feedback"),o)):Vue__default.default.set(t.validationState,e.name,null),t.onEventFired("validate",{validationState:t.validationState,doc:t.doc},e)}))}))})),this.validationState)if(!1===this.validationState[e])return!1;return!0},getColumnSize:function(t){return t&&t.columnCount?Math.floor(12/t.columnCount):12},execApplyDefaultValues:function(){var t=this;this.applyDefaultValues&&this.formConfig.sections.forEach((function(e){e.columns.forEach((function(e){e.fields.forEach((function(e){var n;e.defaultValue&&(n=t.defaultValue&&"function"===_typeof(e.defaultValue)?e.defaultValue():null==e.defaultValue?null:e.defaultValue,t.$set(t.doc,e.name,e.defaultValue=n))}))}))}))},execApplyDefaultValRule:function execApplyDefaultValRule(){var _this5=this;this.formConfig.sections.forEach((function(el){el.columns.forEach((function(c){c.fields.forEach((function(f){if(f.rules&&!f.defaultValue){var rule=f.rules.find((function(t){return"defaultValue"===t.event}));rule&&!_this5.doc[f.name]&&_this5.$set(_this5.doc,f.name,f.defaultValue=eval(rule.script))}}))}))}))}},mounted:function(){this.execApplyDefaultValues(),this.execApplyDefaultValRule(),this.onGlobalEventFired("form-mounted",this)},activated:function(){this.execApplyDefaultValues(),this.execApplyDefaultValRule(),this.onGlobalEventFired("form-activated",this)}},__vue_script__$3=script$3,__vue_render__$3=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.formConfig&&t.formConfig.sections?n("b-form",{staticClass:"rb-doc-form",on:{submit:function(t){t.preventDefault()}}},t._l(t.formConfig.sections,(function(e){return n("b-container",{key:e.labelRu,staticClass:"rb-form-section"},[n("b-row",[n("b-col",{attrs:{lg:"12"}},[n("h4",[t._v(t._s(t.getDisplayField(e)))])]),t._v(" "),t._l(e.columns,(function(r){return[n("b-col",{key:r.index,attrs:{lg:t.getColumnSize(e),sm:12}},[t._l(r.fields,(function(e){return[t._v("\n "+t._s(e.valueName)+"\n "),e.visible?n("b-form-row",{key:e.name},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",refInFor:!0,attrs:{"data-field":e.name,state:t.validationState[e.name],"invalid-feedback":t.validationState[e.name+"__feedback"]},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{attrs:{title:t.getDisplayField(e)}},[t._v(t._s(t.getDisplayField(e)))]),t._v(" "),t.showRequiredInLabel&&e.required?n("span",{staticClass:"text-danger"},[t._v("*")]):t._e()]},proxy:!0}],null,!0)},[n(e.input.type,t._b({ref:e.ref?e.ref:e.name,refInFor:!0,tag:"component",attrs:{"resolve-value":t.getResolveValue(e),disabled:!t.editable||!e.editable,id:e.name,state:t.validationState[e.name],resolveFromObject:t.isResolvableField(e),resolveObject:t.doc[e.ref],markForBackResolution:t.isResolvableField(e),required:e.required},on:{"update:resolveObject":function(n){return t.$set(t.doc,e.ref,n)},"update:resolve-object":function(n){return t.$set(t.doc,e.ref,n)},"hook:created":function(n){return t.onEventFired("created",n,e)},"hook:destroyed":function(n){return t.onEventFired("destroyed",n,e)},"hook:activated":function(n){return t.onEventFired("activated",n,e)},"hook:mounted":function(n){return t.onEventFired("mounted",n,e)},input:function(n){return t.onEventFired("input",n,e)},change:function(n){return t.onEventFired("change",n,e)},click:function(n){return t.onEventFired("click",n,e)}},model:{value:t.doc[e.name],callback:function(n){t.$set(t.doc,e.name,n)},expression:"doc[field.name]"}},"component",e.input.propsData,!1))],1)],1)],1):t._e()]}))],2)]}))],2)],1)})),1):t._e()},__vue_staticRenderFns__$3=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,__vue_component__$4=normalizeComponent({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,!1,void 0,void 0,void 0),DocForm=__vue_component__$4,generateRandomString=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<t;r++)e+=n.charAt(Math.floor(62*Math.random()));return e},UtRandom={getRandomString:function(t){return generateRandomString(t)}},script$2={name:"FieldRuleFormModal",components:{DocForm:DocForm},props:{field:Object,rule:Object,formConfig:Object,mode:{type:String,default:"ins"},onAfterOk:Function},data:function(){return{id:"rb-field-rule-form-modal",state:this.getDefaultState(),innerFormConfig:null,innerRule:null}},computed:{title:function(){return"ins"===this.mode?"Добавление правила":"Редактирование правила"},fields:function(){return UtFormConfig.getFields(this.formConfig)},rulePresets:function(){return UtFormConstructor.getAvailableFieldRules(this.field)}},watch:{formConfig:function(){this.copyToInnerFormConfig()},rule:function(){this.rule?this.innerRule=this.rule:this.innerRule=this.getDefaultRule()}},methods:{validateFields:function(t){var e=this;(t?[t]:["name","event","script"]).forEach((function(t){e.innerRule[t]?(e.state[t]=!0,e.state["".concat(t,"_feedback")]=null):(e.state[t]=!1,e.state["".concat(t,"_feedback")]="Заполните название")}))},copyToInnerFormConfig:function(){this.innerFormConfig=JSON.parse(JSON.stringify(this.formConfig))},applyRuleToInnerFormConfig:function(){if(this.innerFormConfig){var t=UtFormConfig.findRule(this.innerRule.id,this.innerFormConfig);if(t)Object.assign(t,this.innerRule);else{var e=UtFormConfig.findField(this.field.name,this.innerFormConfig);e&&(e.rules=e.rules?e.rules:[],e.rules.push(this.rule))}}},onActivateTab:function(t){t>0&&(this.copyToInnerFormConfig(),this.applyRuleToInnerFormConfig())},getDefaultState:function(){return{name:null,event:null,script:null}},getDefaultRule:function(){return{id:UtRandom.getRandomString(10),name:null,event:null,script:null}},resetModal:function(){this.state=this.getDefaultState(),this.innerRule=null},addVariableToScript:function(t){var e=this.$refs.scriptInput.selectionStart;this.insertTextToScript(t,e)},addSetVariableToScript:function(t){var e=this.$refs.scriptInput.selectionStart;this.insertTextToScript("doc['".concat(t.name,"'] = Значение;"),e)},addCallInputFunction:function(t){var e=this.$refs.scriptInput.selectionStart;this.insertTextToScript("form.$refs['".concat(t.name,"'][0].Название функции();"),e)},insertTextToScript:function(t,e){e=null!=e?e:this.script.length,this.innerRule.script=null!=this.innerRule.script?this.innerRule.script:"";var n=this.innerRule.script.split("");n.splice(e,0,t),this.innerRule.script=n.join("")},onRuleSelected:function(t){var e=this.rulePresets.find((function(e){return e.name===t}));e&&(Object.assign(this.innerRule,e),this.innerRule.script=this.innerRule.script.trim())},onOk:function(){var t=this;this.validateFields(),this.state.name&&this.state.script&&(this.onAfterOk&&this.onAfterOk(this.innerRule),this.$nextTick((function(){t.resetModal(),t.$bvModal.hide(t.id)})))}},created:function(){this.copyToInnerFormConfig()}},__vue_script__$2=script$2,__vue_render__$2=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{id:t.id,title:t.title,"modal-class":"rb-field-rule-form-modal",size:"lg","ok-title":"Сохранить правило","cancel-variant":"outline-gray","cancel-title":"Отмена"},on:{ok:function(e){return e.preventDefault(),t.onOk.apply(null,arguments)}}},[n("b-card",{attrs:{"no-body":""}},[n("b-tabs",{attrs:{card:""},on:{"activate-tab":t.onActivateTab}},[n("b-tab",{attrs:{title:"Правило",active:""}},[t.innerRule?n("b-form",[n("b-form-row",[n("b-col",{attrs:{log:"12"}},[t.rulePresets.length>0?n("b-form-group",{attrs:{label:"Выбрать"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n Выберите готовое правило из списка и если нужно, измените\n ")]},proxy:!0}],null,!1,1926378271)},[t._v(" "),n("b-form-select",{on:{input:function(e){return t.onRuleSelected(e)}}},t._l(t.rulePresets,(function(e){return n("b-form-select-option",{key:e.name,attrs:{value:e.name}},[t._v("\n "+t._s(e.labelRu)+" ("+t._s(e.name)+")\n ")])})),1)],1):t._e()],1),t._v(" "),n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Название"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n Задайте уникальное название, чтобы отличать правило в списке\n ")]},proxy:!0}],null,!1,2943614562)},[t._v(" "),n("b-form-input",{attrs:{state:t.state.name,"invalid-feedback":t.state.name_feedback},model:{value:t.innerRule.name,callback:function(e){t.$set(t.innerRule,"name",e)},expression:"innerRule.name"}})],1)],1),t._v(" "),n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Событие"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n При возникновении этого события будет выполняться правило\n ")]},proxy:!0}],null,!1,2258732973)},[t._v(" "),n("b-form-select",{attrs:{state:t.state.event,"invalid-feedback":t.state.event_feedback},model:{value:t.innerRule.event,callback:function(e){t.$set(t.innerRule,"event",e)},expression:"innerRule.event"}},[n("b-form-select-option",{attrs:{value:"input"}},[t._v("\n Ввод значения\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"change"}},[t._v("\n Изменение значения\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"click"}},[t._v("\n Клик\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"validate"}},[t._v("\n Валидация\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"defaultValue"}},[t._v("\n Установить значение по умолчанию\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"created"}},[t._v("\n Инпут создан\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"mounted"}},[t._v("\n Инпут подключен\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"activated"}},[t._v("\n Инпут активирован\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"form-mounted"}},[t._v("\n Форма создана\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"form-activated"}},[t._v("\n Форма показана\n ")])],1)],1)],1),t._v(" "),n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Скрипт"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n Здесь указывается скрипт правила. Скрипт должен быть написан на языке\n javascript\n ")]},proxy:!0}],null,!1,2149825091)},[t._v(" "),n("div",{staticClass:"rb-script-input"},[n("b-button-toolbar",[n("b-dropdown",{staticClass:"mx-1",attrs:{text:"Переменные",variant:"outline-secondary",size:"sm"}},[n("b-dropdown-item",{on:{click:function(e){return t.addVariableToScript("doc")}}},[t._v("\n Документ\n ")]),t._v(" "),n("b-dropdown-item",{on:{click:function(e){return t.addVariableToScript("form")}}},[t._v("\n Форма\n ")]),t._v(" "),n("b-dropdown-item",{on:{click:function(e){return t.addVariableToScript("event")}}},[t._v("\n Значение события\n ")])],1),t._v(" "),n("b-dropdown",{staticClass:"mx-1",attrs:{text:"Задать значение",variant:"outline-secondary",size:"sm"}},t._l(t.fields,(function(e){return t.fields?n("b-dropdown-item",{key:e.name,on:{click:function(n){return t.addSetVariableToScript(e)}}},[t._v("\n "+t._s(e.labelRu)+" ("+t._s(e.name)+")\n ")]):t._e()})),1),t._v(" "),n("b-dropdown",{staticClass:"mx-1",attrs:{text:"Вызвать функцию инпута",variant:"outline-secondary",size:"sm"}},t._l(t.fields,(function(e){return t.fields?n("b-dropdown-item",{key:e.name,on:{click:function(n){return t.addCallInputFunction(e)}}},[t._v("\n "+t._s(e.labelRu)+" ("+t._s(e.name)+")\n ")]):t._e()})),1)],1),t._v(" "),n("b-form-textarea",{ref:"scriptInput",attrs:{state:t.state.script,"invalid-feedback":t.state.script_feedback,rows:"8"},model:{value:t.innerRule.script,callback:function(e){t.$set(t.innerRule,"script",e)},expression:"innerRule.script"}})],1)])],1)],1)],1):t._e()],1),t._v(" "),t.innerFormConfig?n("b-tab",{attrs:{title:"Протестировать правило"}},[n("doc-form",{attrs:{"form-config":t.innerFormConfig}})],1):t._e()],1)],1)],1)},__vue_staticRenderFns__$2=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,__vue_component__$3=normalizeComponent({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,!1,void 0,void 0,void 0),FieldRuleFormModal=__vue_component__$3,script$1={name:"DocTemplateFieldSidebar",components:{FieldRuleFormModal:FieldRuleFormModal},props:{value:{type:Object,default:null},visible:{type:Boolean,default:null},formConfig:Object},data:function(){return{innerVisible:null,field:null,currentInputName:null,modalId:"rb-field-rule-form-modal",ruleModalCfg:{rule:{},mode:"ins"},rulesHash:UtRandom.getRandomString(10)}},computed:{inputOptions:function(){return this.field?UtFormConstructor.getInputTypes(this.field):[]},iconCloseSidebar:function(){return UtFormConstructor.config.icons.iconCloseFieldSidebar},iconOpenSidebar:function(){return UtFormConstructor.config.icons.iconOpenFieldSidebar},iconAdd:function(){return UtFormConstructor.config.icons.iconAdd},rules:function(){return UtFormConstructor.getAvailableFieldRules(this.field)},hasMultipleInputTypes:function(){return UtFormConstructor.hasMultipleInputTypes(this.field)},multiple:function(){return this.field&&this.field.multiple}},watch:{visible:function(){this.innerVisible=this.visible},value:function(){this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name)},field:{handler:function(){this.$emit("input",this.field),this.$emit("change",this.field)},deep:!0},currentInputName:function(t){this.field.input=UtFormConstructor.getInputTypeByName(this.currentInputName,this.field)},multiple:function(){var t=UtFormConstructor.getDefaultInput(this.field);this.field.multiple&&(this.currentInputName=t.name)}},methods:{hide:function(){this.innerVisible=!1,this.$emit("hide")},getPropInputType:function(t,e){return["string","number"].includes(t.type)?"b-form-input":["date"].includes(t.type)?"rb-date-picker-input":"rb-boolean-single-option-input"},getPropInputPropData:function(t,e){return"string"===t.type?{type:"text"}:"number"===t.type?{type:"number"}:{}},addRule:function(){var t=this;this.ruleModalCfg={mode:"ins",rule:{name:null,script:null},onAfterOk:function(e){t.field.rules=t.field.rules?t.field.rules:[],t.field.rules.push(_objectSpread2({},e)),t.rulesHash=UtRandom.getRandomString(10)}},this.$bvModal.show(this.modalId)},editRule:function(t,e){e.target.classList&&e.target.classList.contains("rb-remove-rule")||(this.ruleModalCfg={mode:"upd",rule:_objectSpread2({},t),onAfterOk:function(e){Object.assign(t,e)}},this.$bvModal.show(this.modalId))},removeRule:function(t){var e=this.field.rules.findIndex((function(e){return e.id===t.id}));e>=0&&this.field.rules.splice(e,1),this.rulesHash=UtRandom.getRandomString(10)}},created:function(){this.value&&(this.innerVisible=this.visible,this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name))}},__vue_script__$1=script$1,__vue_render__$1=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-sidebar",{staticClass:"rb-doc-template-field-sidebar",attrs:{right:"","bg-variant":"white",shadow:""},scopedSlots:t._u([{key:"header",fn:function(){return[n("b-button",{staticClass:"rb-sidebar-close-btn",attrs:{variant:"secondary"},on:{click:t.hide}},[n("rb-icon",{attrs:{icon:t.innerVisible?t.iconCloseSidebar:t.iconOpenSidebar}})],1),t._v(" "),n("h4",[t._v("Редактор свойств")])]},proxy:!0}]),model:{value:t.innerVisible,callback:function(e){t.innerVisible=e},expression:"innerVisible"}},[t._v(" "),t.field?n("b-form",[n("div",{staticClass:"rb-form-section"},[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Название"}},[n("rb-text",[t._v(t._s(t.field.name))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тип"}},[n("rb-text",[t._v(t._s(t.field.type))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тэг для файла шаблона"}},[n("rb-text",[t._v(t._s(t.field.tag))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Заголовок"}},[n("rb-multi-lang-input",{model:{value:t.field,callback:function(e){t.field=e},expression:"field"}})],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.visible,callback:function(e){t.$set(t.field,"visible",e)},expression:"field.visible"}},[t._v("Отображаемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.editable,callback:function(e){t.$set(t.field,"editable",e)},expression:"field.editable"}},[t._v("Редактируемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.required,callback:function(e){t.$set(t.field,"required",e)},expression:"field.required"}},[t._v("Обязательное")])],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("\n Настройки ввода\n ")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Тип инпута"}},[n("rb-dropdown-input",{attrs:{items:t.inputOptions,"display-field":"text","value-field":"name",block:""},model:{value:t.currentInputName,callback:function(e){t.currentInputName=e},expression:"currentInputName"}})],1),t._v(" "),t._l(t.field.input.props,(function(e,r){return[e.visible?n("b-form-group",{key:r,attrs:{label:e.label}},[n(t.getPropInputType(e,r),t._b({tag:"component",model:{value:t.field.input.propsData[r],callback:function(e){t.$set(t.field.input.propsData,r,e)},expression:"field.input.propsData[propName]"}},"component",t.getPropInputPropData(e,r),!1))],1):t._e()]}))],2)],1)],1),t._v(" "),t.field.input?n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("Значение по-умолчанию")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",attrs:{label:t.field.labelRu}},[n(t.field.input.type,t._b({tag:"component",model:{value:t.field.defaultValue,callback:function(e){t.$set(t.field,"defaultValue",e)},expression:"field.defaultValue"}},"component",t.field.input.propsData,!1))],1)],1)],1)],1):t._e(),t._v(" "),n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("Правила")]),t._v(" "),n("b-list-group",{attrs:{"data-hash":t.rulesHash}},[t._l(t.field.rules,(function(e){return n("b-list-group-item",{key:e.id,staticClass:"cursor-pointer d-flex justify-content-between align-items-center",attrs:{"data-hash":t.rulesHash},on:{click:function(n){return t.editRule(e,n)}}},[n("rb-text",[t._v(t._s(e.name))]),t._v(" "),n("rb-icon",{staticClass:"rb-remove-rule",attrs:{icon:"icon-close"},on:{click:function(n){return t.removeRule(e)}}})],1)})),t._v(" "),n("b-list-group-item",{staticClass:"cursor-pointer",on:{click:t.addRule}},[n("rb-icon",{attrs:{icon:t.iconAdd}}),t._v(" "),n("rb-text",[t._v("Добавить правило ...")])],1)],2)],1)]):t._e(),t._v(" "),n("field-rule-form-modal",{attrs:{rule:t.ruleModalCfg.rule,"form-config":t.formConfig,field:t.field,mode:t.ruleModalCfg.mode,"on-after-ok":t.ruleModalCfg.onAfterOk}})],1)},__vue_staticRenderFns__$1=[],__vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,__vue_component__$2=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,!1,void 0,void 0,void 0),DocTemplateFieldSidebar=__vue_component__$2,script={name:"DocTemplateConstructor",components:{DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateSectionModal:DocTemplateSectionModal,draggable:vuedraggable_umd},props:{formConfig:{type:Object,default:function(){return{sections:[]}}},facets:{type:Array,default:function(){return[]}}},data:function(){return{sidebarVisible:!1,sidebarField:null,columnTo:!1,hash:"",sectionModalCfg:{id:"rb-doc-template-section-modal",mode:"ins",section:null,onAfterOk:function(){}}}},computed:{iconAdd:function(){return UtFormConstructor.config.icons.iconAdd},iconEdit:function(){return UtFormConstructor.config.icons.iconEdit},iconDelete:function(){return UtFormConstructor.config.icons.iconDelete},iconDrag:function(){return UtFormConstructor.config.icons.iconDrag}},methods:{showProperties:function(t,e){e.target.classList&&e.target.classList.contains("rb-remove-field")||(this.sidebarVisible=!0,this.sidebarField=t)},addSection:function(t){var e=this,n={labelRu:null,columnCount:t};this.sectionModalCfg.mode="ins",this.sectionModalCfg.section=n,this.sectionModalCfg.onAfterOk=function(){n.columns=[];for(var r=0;r<t;r++)n.columns.push({index:r,fields:[]});e.formConfig.sections.push(n)},this.$bvModal.show(this.sectionModalCfg.id)},editSection:function(t){this.sectionModalCfg.mode="update",this.sectionModalCfg.section=t,this.sectionModalCfg.onAfterOk=function(){},this.$bvModal.show(this.sectionModalCfg.id)},removeSection:function(t,e){this.formConfig.sections.splice(e,1)},multipleFieldAreOnFormConfig:function(t){var e=0;return this.formConfig.sections.forEach((function(n){n.columns.forEach((function(n){n.fields.forEach((function(n){n.name===t.name&&e++}))}))})),e>1},removeFieldFromColumn:function(t,e,n){var r=null!=n?n:-1;r<0&&(r=e.fields.findIndex((function(e){return t.name===e.name}))),r>=0&&e.fields.splice(r,1)},onRemoveField:function(t,e,n){t.preventDefault(),this.removeFieldFromColumn(e,n)},onFieldAddedToColumn:function(t,e,n){this.columnTo=e},onFieldMoveEnd:function(t){var e=t.newIndex,n=t.item._underlying_vm_;n.hasOwnProperty("defaultValue")||this.$set(n,"defaultValue",void 0),this.multipleFieldAreOnFormConfig(n)&&(this.removeFieldFromColumn(n,this.columnTo,e),this.resetDragVariables(),this.$bvModal.msgBoxOk("На форме уже есть это поле",{title:"Ошибка",headerClass:"rb-error-msg-box__header",bodyClass:"rb-error-msg-box__body",footerClass:"rb-error-msg-box__footer",centered:!0,noCloseOnBackdrop:!0,noCloseOnEsc:!0})),this.resetDragVariables(),this.hash=(Math.random()+1).toString(36).substring(7)},getFieldExtendedPropsData:function(t){return _objectSpread2(_objectSpread2({},t.input.propsData),{},{placeholder:t.tag,disabled:!0})},resetDragVariables:function(){this.columnTo=null}}},__vue_script__=script,__vue_render__=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-doc-template-constructor d-flex"},[n("doc-template-facet-list",{attrs:{facets:t.facets},on:{fieldMoveEnd:t.onFieldMoveEnd}}),t._v(" "),n("div",{staticClass:"rb-form-constructor flex-fill"},[n("div",{staticClass:"rb-constructor-toolbar d-flex flex-row"},[n("h4",[t._v("Добавить секцию: ")]),t._v(" "),n("div",{staticClass:"rb-layout-buttons"},[n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(1)}}},[n("rb-text",[t._v("Секция с 1 колонкой")]),t._v(" "),n("rb-icon",{attrs:{icon:t.iconAdd}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(2)}}},[n("rb-text",[t._v("Секция с 2 колонками")]),t._v(" "),n("rb-icon",{attrs:{icon:t.iconAdd}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(3)}}},[n("rb-text",[t._v("Секция с 3 колонками")]),t._v(" "),n("rb-icon",{attrs:{icon:t.iconAdd}})],1)],1)]),t._v(" "),n("div",{staticClass:"rb-constructor-body"},[n("draggable",{attrs:{animation:200,group:"section","ghost-class":"rb-form-card-moving",handle:".rb-row-drag-handle"},model:{value:t.formConfig.section,callback:function(e){t.$set(t.formConfig,"section",e)},expression:"formConfig.section"}},t._l(t.formConfig.sections,(function(e,r){return n("b-card",{key:e.labelRu,staticClass:"rb-form-card",attrs:{"data-hash":t.hash},scopedSlots:t._u([{key:"header",fn:function(){return[n("rb-icon",{staticClass:"cursor-pointer rb-row-drag-handle",attrs:{icon:t.iconDrag}}),t._v(" "),n("rb-text",{staticClass:"flex-fill",on:{click:function(n){return t.editSection(e)}}},[t._v("\n "+t._s(e.labelRu)+"\n ")]),t._v(" "),n("span",{staticClass:"rb-actions"},[n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:t.iconEdit},on:{click:function(n){return t.editSection(e)}}}),t._v(" "),n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:t.iconDelete},on:{click:function(n){return t.removeSection(e,r)}}})],1)]},proxy:!0}],null,!0)},[t._v(" "),n("div",{staticClass:"d-flex flex-row"},t._l(e.columns,(function(r){return n("draggable",{key:r.index,staticClass:"rb-form-column",class:{"rb-single-column":1===e.columnCount},attrs:{tag:"b-form",animation:200,group:"fields","ghost-class":"rb-moving-item",handle:".rb-field-drag-handle"},on:{add:function(n){return t.onFieldAddedToColumn(n,r,e)}},model:{value:r.fields,callback:function(e){t.$set(r,"fields",e)},expression:"column.fields"}},t._l(r.fields,(function(e){return n("b-form-row",{key:e.name,staticClass:"cursor-pointer",on:{click:function(n){return t.showProperties(e,n)}}},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:e.labelRu},scopedSlots:t._u([{key:"label",fn:function(){return[n("rb-icon",{staticClass:"rb-field-drag-handle",attrs:{icon:t.iconDrag}}),t._v(" "),n("rb-text",[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{staticClass:"rb-remove-field",attrs:{icon:t.iconDelete},on:{click:function(n){return n.preventDefault(),t.onRemoveField(n,e,r)}}})]},proxy:!0}],null,!0)},[t._v(" "),e.input?n(e.input.type,t._b({tag:"component",staticClass:"cursor-pointer",attrs:{id:e.name,disabled:""}},"component",t.getFieldExtendedPropsData(e),!1)):t._e()],1)],1)],1)})),1)})),1)])})),1)],1),t._v(" "),n("doc-template-field-sidebar",{attrs:{visible:t.sidebarVisible,"form-config":t.formConfig},on:{hide:function(e){t.sidebarVisible=!1}},model:{value:t.sidebarField,callback:function(e){t.sidebarField=e},expression:"sidebarField"}}),t._v(" "),n("doc-template-section-modal",{attrs:{mode:t.sectionModalCfg.mode,section:t.sectionModalCfg.section,"on-after-ok":t.sectionModalCfg.onAfterOk}})],1)],1)},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0),__vue_component__$1=__vue_component__,components$1=Object.freeze({__proto__:null,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm}),install=function(t){Object.entries(components$1).forEach((function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];t.component(r,o)}))},components=Object.freeze({__proto__:null,default:install,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm});return Object.entries(components).forEach((function(t){var e=_slicedToArray(t,2),n=e[0],r=e[1];"default"!==n&&(install[n]=r)})),install}(Vue);
|
|
7
|
+
*/function _typeof$1(t){return _typeof$1="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},_typeof$1(t)}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _extends(){return _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_extends.apply(this,arguments)}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){_defineProperty(t,e,n[e])}))}return t}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function _objectWithoutProperties(t,e){if(null==t)return{};var n,r,o=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var version="1.10.2";function userAgent(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(t,e,n){t.addEventListener(e,n,!IE11OrLess&&captureMode)}function off(t,e,n){t.removeEventListener(e,n,!IE11OrLess&&captureMode)}function matches(t,e){if(e){if(">"===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 getParentOrHost(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function closest(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&matches(t,e):matches(t,e))||r&&t===n)return t;if(t===n)break}while(t=getParentOrHost(t))}return null}var R_SPACE=/\s+/g,_throttleTimeout;function toggleClass(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(R_SPACE," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(R_SPACE," ")}}function css(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 matrix(t,e){var n="";if("string"==typeof t)n=t;else do{var r=css(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function find(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function getWindowScrollingElement(){var t=document.scrollingElement;return t||document.documentElement}function getRect(t,e,n,r,o){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,f;if(t!==window&&t!==getWindowScrollingElement()?(a=(i=t.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,f=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!IE11OrLess))do{if(o&&o.getBoundingClientRect&&("none"!==css(o,"transform")||n&&"static"!==css(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(css(o,"border-top-width")),l-=d.left+parseInt(css(o,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(o=o.parentNode);if(r&&t!==window){var p=matrix(o||t),h=p&&p.a,g=p&&p.d;p&&(s=(a/=g)+(u/=g),c=(l/=h)+(f/=h))}return{top:a,left:l,bottom:s,right:c,width:f,height:u}}}function isScrolledPast(t,e,n){for(var r=getParentAutoScrollElement(t,!0),o=getRect(t)[e];r;){var i=getRect(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===getWindowScrollingElement())break;r=getParentAutoScrollElement(r,!1)}return!1}function getChild(t,e,n){for(var r=0,o=0,i=t.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Sortable.ghost&&i[o]!==Sortable.dragged&&closest(i[o],n.draggable,t,!1)){if(r===e)return i[o];r++}o++}return null}function lastChild(t,e){for(var n=t.lastElementChild;n&&(n===Sortable.ghost||"none"===css(n,"display")||e&&!matches(n,e));)n=n.previousElementSibling;return n||null}function index(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Sortable.clone||e&&!matches(t,e)||n++;return n}function getRelativeScrollOffset(t){var e=0,n=0,r=getWindowScrollingElement();if(t)do{var o=matrix(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function indexOfObject(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}function getParentAutoScrollElement(t,e){if(!t||!t.getBoundingClientRect)return getWindowScrollingElement();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=css(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return getWindowScrollingElement();if(r||e)return n;r=!0}}}while(n=n.parentNode);return getWindowScrollingElement()}function extend(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function isRectEqual(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function throttle(t,e){return function(){if(!_throttleTimeout){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),e)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function clone(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==css(t,"display")&&t!==Sortable.ghost){e.push({target:t,rect:getRect(t)});var n=_objectSpread({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=matrix(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(indexOfObject(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=getRect(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,f=matrix(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&isRectEqual(s,l)&&!isRectEqual(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=calculateRealTime(u,s,c,r.options)),isRectEqual(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=r.options.animation),r.animate(n,u,l,e)),e&&(o=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,r){if(r){css(t,"transition",""),css(t,"transform","");var o=matrix(this.el),i=o&&o.a,a=o&&o.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,css(t,"transform","translate3d("+l+"px,"+s+"px,0)"),repaint(t),css(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),css(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){css(t,"transition",""),css(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),r)}}}}function repaint(t){return t.offsetWidth}function calculateRealTime(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function(t){for(var e in defaults)defaults.hasOwnProperty(e)&&!(e in t)&&(t[e]=defaults[e]);plugins.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";plugins.forEach((function(r){e[r.pluginName]&&(e[r.pluginName][o]&&e[r.pluginName][o](_objectSpread({sortable:e},n)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](_objectSpread({sortable:e},n)))}))},initializePlugins:function(t,e,n,r){for(var o in plugins.forEach((function(r){var o=r.pluginName;if(t.options[o]||r.initializeByDefault){var i=new r(t,e,t.options);i.sortable=t,i.options=t.options,t[o]=i,_extends(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);void 0!==i&&(t.options[o]=i)}},getEventProperties:function(t,e){var n={};return plugins.forEach((function(r){"function"==typeof r.eventProperties&&_extends(n,r.eventProperties.call(e[r.pluginName],t))})),n},modifyOption:function(t,e,n){var r;return plugins.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(r=o.optionListeners[e].call(t[o.pluginName],n))})),r}};function dispatchEvent(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[expando]){var g,m=e.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||IE11OrLess||Edge?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=f,g.originalEvent=d,g.pullMode=p?p.lastPutMode:void 0;var _=_objectSpread({},h,PluginManager.getEventProperties(r,e));for(var b in _)g[b]=_[b];n&&n.dispatchEvent(g),m[v]&&m[v].call(e,g)}}var pluginEvent=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=_objectWithoutProperties(n,["evt"]);PluginManager.pluginEvent.bind(Sortable)(t,e,_objectSpread({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:r,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(t){_dispatchEvent({sortable:e,name:t,originalEvent:r})}},o))};function _dispatchEvent(t){dispatchEvent(_objectSpread({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},t))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists="undefined"!=typeof document,PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),_detectDirection=function(t,e){var n=css(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=getChild(t,0,e),i=getChild(t,1,e),a=o&&css(o),l=i&&css(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+getRect(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+getRect(i).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(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[CSSFloatProperty]||i&&"none"===n[CSSFloatProperty]&&s+c>r)?"vertical":"horizontal"},_dragElInRowColumn=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return r===a||o===l||r+i/2===a+s/2},_detectNearestEmptySortable=function(t,e){var n;return sortables.some((function(r){if(!lastChild(r)){var o=getRect(r),i=r[expando].options.emptyInsertThreshold,a=t>=o.left-i&&t<=o.right+i,l=e>=o.top-i&&e<=o.bottom+i;return i&&a&&l?n=r:void 0}})),n},_prepareGroup=function(t){function e(t,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},r=t.group;r&&"object"==_typeof$1(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},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",(function(t){if(ignoreNextClick)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),ignoreNextClick=!1,!1}),!0);var nearestEmptyInsertDetectEvent=function(t){if(dragEl){t=t.touches?t.touches[0]:t;var e=_detectNearestEmptySortable(t.clientX,t.clientY);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[expando]._onDragOver(n)}}},_checkOutsideTargetEl=function(t){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(t.target)};function Sortable(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=_extends({},e),t[expando]=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 _detectDirection(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!==Sortable.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in PluginManager.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var o in _prepareGroup(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?on(t,"pointerdown",this._onTapStart):(on(t,"mousedown",this._onTapStart),on(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(t,"dragover",this),on(t,"dragenter",this)),sortables.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_extends(this,AnimationStateManager())}function _globalDragOver(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function _onMove(t,e,n,r,o,i,a,l){var s,c,u=t[expando],f=u.options.onMove;return!window.CustomEvent||IE11OrLess||Edge?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=r,s.related=o||e,s.relatedRect=i||getRect(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function _disableDraggable(t){t.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsLast(t,e,n){var r=getRect(lastChild(n.el,n.options.draggable));return e?t.clientX>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}function _getSwapDirection(t,e,n,r,o,i,a,l){var s=r?t.clientY:t.clientX,c=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(l&&targetMoveDistance<c*o){if(!pastFirstInvertThresh&&(1===lastDirection?s>u+c*i/2:s<f-c*i/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)d=!0;else if(1===lastDirection?s<u+targetMoveDistance:s>f-targetMoveDistance)return-lastDirection}else if(s>u+c*(1-o)/2&&s<f-c*(1-o)/2)return _getInsertDirection(e);return(d=d||a)&&(s<u+c*i/2||s>f-c*i/2)?s>u+c/2?1:-1:0}function _getInsertDirection(t){return index(dragEl)<index(t)?1:-1}function _generateId(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 _saveInputCheckedState(t){savedInputChecked.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&savedInputChecked.push(r)}}function _nextTick(t){return setTimeout(t,0)}function _cancelNextTick(t){return clearTimeout(t)}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(lastTarget=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,dragEl):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=r.filter;if(_saveInputCheckedState(n),!dragEl&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||r.disabled||s.isContentEditable||(l=closest(l,r.draggable,n,!1))&&l.animated||lastDownEl===l)){if(oldIndex=index(l),oldDraggableIndex=index(l,r.draggable),"function"==typeof c){if(c.call(this,t,l,this))return _dispatchEvent({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),pluginEvent("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=closest(s,r.trim(),n,!1))return _dispatchEvent({sortable:e,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),pluginEvent("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());r.handle&&!closest(s,r.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!dragEl&&n.parentNode===i){var s=getRect(n);if(rootEl=i,parentEl=(dragEl=n).parentNode,nextEl=dragEl.nextSibling,lastDownEl=n,activeGroup=a.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(e||t).clientX,clientY:(e||t).clientY},tapDistanceLeft=tapEvt.clientX-s.left,tapDistanceTop=tapEvt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,dragEl.style["will-change"]="all",r=function(){pluginEvent("delayEnded",o,{evt:t}),Sortable.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!FireFox&&o.nativeDraggable&&(dragEl.draggable=!0),o._triggerDragStart(t,e),_dispatchEvent({sortable:o,name:"choose",originalEvent:t}),toggleClass(dragEl,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){find(dragEl,t.trim(),_disableDraggable)})),on(l,"dragover",nearestEmptyInsertDetectEvent),on(l,"mousemove",nearestEmptyInsertDetectEvent),on(l,"touchmove",nearestEmptyInsertDetectEvent),on(l,"mouseup",o._onDrop),on(l,"touchend",o._onDrop),on(l,"touchcancel",o._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(Edge||IE11OrLess))r();else{if(Sortable.eventCanceled)return void this._onDrop();on(l,"mouseup",o._disableDelayedDrag),on(l,"touchend",o._disableDelayedDrag),on(l,"touchcancel",o._disableDelayedDrag),on(l,"mousemove",o._delayedDragTouchMoveHandler),on(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&on(l,"pointermove",o._delayedDragTouchMoveHandler),o._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(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag),off(t,"touchend",this._disableDelayedDrag),off(t,"touchcancel",this._disableDelayedDrag),off(t,"mousemove",this._delayedDragTouchMoveHandler),off(t,"touchmove",this._delayedDragTouchMoveHandler),off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):on(document,e?"touchmove":"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:e}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var n=this.options;!t&&toggleClass(dragEl,n.dragClass,!1),toggleClass(dragEl,n.ghostClass,!0),Sortable.active=this,t&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY))!==e;)e=t;if(dragEl.parentNode[expando]._isOutsideThisEl(t),e)do{if(e[expando]){if(e[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(t){if(tapEvt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=ghostEl&&matrix(ghostEl,!0),a=ghostEl&&i&&i.a,l=ghostEl&&i&&i.d,s=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),c=(o.clientX-tapEvt.clientX+r.x)/(a||1)+(s?s[0]-ghostRelativeParentInitialScroll[0]:0)/(a||1),u=(o.clientY-tapEvt.clientY+r.y)/(l||1)+(s?s[1]-ghostRelativeParentInitialScroll[1]:0)/(l||1);if(!Sortable.active&&!awaitingDragStarted){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ghostEl){i?(i.e+=c-(lastDx||0),i.f+=u-(lastDy||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");css(ghostEl,"webkitTransform",f),css(ghostEl,"mozTransform",f),css(ghostEl,"msTransform",f),css(ghostEl,"transform",f),lastDx=c,lastDy=u,touchEvt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,e=getRect(dragEl,!0,PositionGhostAbsolutely,!0,t),n=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=t;"static"===css(ghostRelativeParent,"position")&&"none"===css(ghostRelativeParent,"transform")&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),e.top+=ghostRelativeParent.scrollTop,e.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}toggleClass(ghostEl=dragEl.cloneNode(!0),n.ghostClass,!1),toggleClass(ghostEl,n.fallbackClass,!0),toggleClass(ghostEl,n.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",e.top),css(ghostEl,"left",e.left),css(ghostEl,"width",e.width),css(ghostEl,"height",e.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,t.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;pluginEvent("dragStart",this,{evt:t}),Sortable.eventCanceled?this._onDrop():(pluginEvent("setupClone",this),Sortable.eventCanceled||((cloneEl=clone(dragEl)).draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),n.cloneId=_nextTick((function(){pluginEvent("clone",n),Sortable.eventCanceled||(n.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),n._hideClone(),_dispatchEvent({sortable:n,name:"clone"}))})),!e&&toggleClass(dragEl,o.dragClass,!0),e?(ignoreNextClick=!0,n._loopId=setInterval(n._emulateDragOver,50)):(off(document,"mouseup",n._onDrop),off(document,"touchend",n._onDrop),off(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,dragEl)),on(document,"drop",n),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,n._dragStartId=_nextTick(n._dragStarted.bind(n,e,t)),on(document,"selectstart",n),moved=!0,Safari&&css(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,r,o,i=this.el,a=t.target,l=this.options,s=l.group,c=Sortable.active,u=activeGroup===s,f=l.sort,d=putSortable||c,p=this,h=!1;if(!_silent){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=closest(a,l.draggable,i,!0),T("dragOver"),Sortable.eventCanceled)return h;if(dragEl.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return O(!1);if(ignoreNextClick=!1,c&&!l.disabled&&(u?f||(r=!rootEl.contains(dragEl)):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&s.checkPut(this,c,dragEl,t))){if(o="vertical"===this._getDirection(t,a),e=getRect(dragEl),T("dragOverValid"),Sortable.eventCanceled)return h;if(r)return parentEl=rootEl,F(),this._hideClone(),T("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),O(!0);var g=lastChild(i,l.draggable);if(!g||_ghostIsLast(t,o,this)&&!g.animated){if(g===dragEl)return O(!1);if(g&&i===t.target&&(a=g),a&&(n=getRect(a)),!1!==_onMove(rootEl,i,dragEl,e,a,n,t,!!a))return F(),i.appendChild(dragEl),parentEl=i,P(),O(!0)}else if(a.parentNode===i){n=getRect(a);var m,v,_,b=dragEl.parentNode!==i,y=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||e,a.animated&&a.toRect||n,o),E=o?"top":"left",S=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),I=S?S.scrollTop:void 0;if(lastTarget!==a&&(v=n[E],pastFirstInvertThresh=!1,isCircumstantialInvert=!y&&l.invertSwap||b),0!==(m=_getSwapDirection(t,a,n,o,y?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a))){var x=index(dragEl);do{x-=m,_=parentEl.children[x]}while(_&&("none"===css(_,"display")||_===ghostEl))}if(0===m||_===a)return O(!1);lastTarget=a,lastDirection=m;var C=a.nextElementSibling,w=!1,D=_onMove(rootEl,i,dragEl,e,a,n,t,w=1===m);if(!1!==D)return 1!==D&&-1!==D||(w=1===D),_silent=!0,setTimeout(_unsilent,30),F(),w&&!C?i.appendChild(dragEl):a.parentNode.insertBefore(dragEl,w?C:a),S&&scrollBy(S,0,I-S.scrollTop),parentEl=dragEl.parentNode,void 0===v||isCircumstantialInvert||(targetMoveDistance=Math.abs(v-getRect(a)[E])),P(),O(!0)}if(i.contains(dragEl))return O(!1)}return!1}function T(l,s){pluginEvent(l,p,_objectSpread({evt:t,isOwner:u,axis:o?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:f,fromSortable:d,target:a,completed:O,onMove:function(n,r){return _onMove(rootEl,i,dragEl,e,n,getRect(n),t,r)},changed:P},s))}function F(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function O(e){return T("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==d&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,l.ghostClass,!0)),putSortable!==p&&p!==Sortable.active?putSortable=p:p===Sortable.active&&putSortable&&(putSortable=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===i&&!a.animated)&&(lastTarget=null),l.dragoverBubble||t.rootEl||a===document||(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!e&&nearestEmptyInsertDetectEvent(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function P(){newIndex=index(dragEl),newDraggableIndex=index(dragEl,l.draggable),_dispatchEvent({sortable:p,name:"change",toEl:i,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop),off(t,"touchend",this._onDrop),off(t,"pointerup",this._onDrop),off(t,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;newIndex=index(dragEl),newDraggableIndex=index(dragEl,n.draggable),pluginEvent("drop",this,{evt:t}),parentEl=dragEl&&dragEl.parentNode,newIndex=index(dragEl),newDraggableIndex=index(dragEl,n.draggable),Sortable.eventCanceled||(awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),t&&(moved&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&"clone"!==putSortable.lastPutMode)&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),Sortable.active&&(null!=newIndex&&-1!==newIndex||(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach((function(t){t.checked=!0})),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(t),_globalDragOver(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)closest(t=n[r],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||_generateId(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,r){var o=n.children[r];closest(o,this.options.draggable,n,!1)&&(e[t]=o)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return closest(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=PluginManager.modifyOption(this,t,e);n[t]=void 0!==r?r:e,"group"===t&&_prepareGroup(n)},destroy:function(){pluginEvent("destroy",this);var t=this.el;t[expando]=null,off(t,"mousedown",this._onTapStart),off(t,"touchstart",this._onTapStart),off(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(t,"dragover",this),off(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;rootEl.contains(dragEl)&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}else this._hideClone()}},documentExists&&on(document,"touchmove",(function(t){(Sortable.active||awaitingDragStarted)&&t.cancelable&&t.preventDefault()})),Sortable.utils={on:on,off:off,css:css,find:find,is:function(t,e){return!!closest(t,e,t,!1)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild},Sortable.get=function(t){return t[expando]},Sortable.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Sortable.utils=_objectSpread({},Sortable.utils,t.utils)),PluginManager.mount(t)}))},Sortable.create=function(t,e){return new Sortable(t,e)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):e.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(r,o);if(touchEvt$1=t,e||Edge||IE11OrLess||Safari){autoScroll(t,this.options,i,e);var a=getParentAutoScrollElement(i,!0);!scrolling||pointerElemChangedInterval&&r===lastAutoScrollX&&o===lastAutoScrollY||(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval((function(){var i=getParentAutoScrollElement(document.elementFromPoint(r,o),!0);i!==a&&(a=i,clearAutoScrolls()),autoScroll(t,n.options,i,e)}),10),lastAutoScrollX=r,lastAutoScrollY=o)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(i,!0)===getWindowScrollingElement())return void clearAutoScrolls();autoScroll(t,this.options,getParentAutoScrollElement(i,!1),!1)}}},_extends(t,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach((function(t){clearInterval(t.pid)})),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(t,e,n,r){if(e.scroll){var o,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=getWindowScrollingElement(),u=!1;scrollRootEl!==n&&(scrollRootEl=n,clearAutoScrolls(),scrollEl=e.scroll,o=e.scrollFn,!0===scrollEl&&(scrollEl=getParentAutoScrollElement(n,!0)));var f=0,d=scrollEl;do{var p=d,h=getRect(p),g=h.top,m=h.bottom,v=h.left,_=h.right,b=h.width,y=h.height,E=void 0,S=void 0,I=p.scrollWidth,x=p.scrollHeight,C=css(p),w=p.scrollLeft,D=p.scrollTop;p===c?(E=b<I&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=y<x&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(E=b<I&&("auto"===C.overflowX||"scroll"===C.overflowX),S=y<x&&("auto"===C.overflowY||"scroll"===C.overflowY));var T=E&&(Math.abs(_-i)<=l&&w+b<I)-(Math.abs(v-i)<=l&&!!w),F=S&&(Math.abs(m-a)<=l&&D+y<x)-(Math.abs(g-a)<=l&&!!D);if(!autoScrolls[f])for(var O=0;O<=f;O++)autoScrolls[O]||(autoScrolls[O]={});autoScrolls[f].vx==T&&autoScrolls[f].vy==F&&autoScrolls[f].el===p||(autoScrolls[f].el=p,autoScrolls[f].vx=T,autoScrolls[f].vy=F,clearInterval(autoScrolls[f].pid),0==T&&0==F||(u=!0,autoScrolls[f].pid=setInterval(function(){r&&0===this.layer&&Sortable.active._onTouchMove(touchEvt$1);var e=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*s:0,n=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Sortable.dragged.parentNode[expando],n,e,t,touchEvt$1,autoScrolls[this.layer].el)||scrollBy(autoScrolls[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==c&&(d=getParentAutoScrollElement(d,!1)));scrolling=u}}),30),drop=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||o;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Revert(){}function Remove(){}Revert.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=getChild(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:drop},_extends(Revert,{pluginName:"revertOnSpill"}),Remove.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);var vuedraggable_umd=createCommonjsModule((function(t,e){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){var r=n("2d00"),o=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",h="values",g=function(){return this};t.exports=function(t,e,n,m,v,_,b){s(n,e,m);var y,E,S,I=function(t){if(!d&&t in D)return D[t];switch(t){case p:case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",C=v==h,w=!1,D=t.prototype,T=D[f]||D["@@iterator"]||v&&D[v],F=T||I(v),O=v?C?I("entries"):F:void 0,P="Array"==e&&D.entries||T;if(P&&(S=u(P.call(new t)))!==Object.prototype&&S.next&&(c(S,x,!0),r||"function"==typeof S[f]||a(S,f,g)),C&&T&&T.name!==h&&(w=!0,F=function(){return T.call(this)}),r&&!b||!d&&!w&&D[f]||a(D,f,F),l[e]=F,l[x]=g,v)if(y={values:C?F:I(h),keys:_?F:I(p),entries:O},b)for(E in y)E in D||i(D,E,y[E]);else o(o.P+o.F*(d||w),e,y);return y}},"02f4":function(t,e,n){var r=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var i,a,l=String(o(e)),s=r(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),l=a.length,s=0;l>s;)r.f(t,n=a[s++],e[n]);return t}},"214f":function(t,e,n){n("b0c5");var r=n("2aba"),o=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=l(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!f){var g=/./[d],m=n(a,d,""[t],(function(t,e,n,r,o){return e.exec===s?p&&!o?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,t,v),o(RegExp.prototype,d,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s="prototype",c=function(){var t,e=n("230e")("iframe"),r=i.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l[s]=r(t),n=new l,l[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){var r=n("5ca1"),o=n("d2c8"),i="includes";r(r.P+r.F*n("5147")(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){var r=n("2aeb"),o=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(t){return o(r(t))}}))},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){var r,o,i=n("0bfb"),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c="lastIndex",u=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r[c]||0!==o[c]),f=void 0!==/()??/.exec("")[1];(u||f)&&(s=function(t){var e,n,r,o,s=this;return f&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),u&&(e=s[c]),r=a.call(s,t),u&&r&&(s[c]=s.global?r.index+r[0].length:e),f&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),a=n("2aba"),l=n("9b43"),s="prototype",c=function(t,e,n){var u,f,d,p,h=t&c.F,g=t&c.G,m=t&c.S,v=t&c.P,_=t&c.B,b=g?r:m?r[e]||(r[e]={}):(r[e]||{})[s],y=g?o:o[e]||(o[e]={}),E=y[s]||(y[s]={});for(u in g&&(n=e),n)d=((f=!h&&b&&void 0!==b[u])?b:n)[u],p=_&&f?l(d,r):v&&"function"==typeof d?l(Function.call,d):d,b&&a(b,u,d,t&c.U),y[u]!=d&&i(y,u,p),v&&E[u]!=d&&(E[u]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,n){var r=n("5ca1"),o=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){var r=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6762:function(t,e,n){var r=n("5ca1"),o=n("c366")(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){var r=n("0d58"),o=n("2621"),i=n("52a7"),a=n("4bf8"),l=n("626a"),s=Object.assign;t.exports=!s||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=a(t),s=arguments.length,c=1,u=o.f,f=i.f;s>c;)for(var d,p=l(arguments[c++]),h=u?r(p).concat(u(p)):r(p),g=h.length,m=0;g>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,o=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;null==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){var r=n("cb7c"),o=n("4bf8"),i=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,h){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=h(n,t,this,e);if(o.done)return o.value;var f=r(t),d=String(this),p="function"==typeof e;p||(e=String(e));var m=f.global;if(m){var v=f.unicode;f.lastIndex=0}for(var _=[];;){var b=s(f,d);if(null===b)break;if(_.push(b),!m)break;""===String(b[0])&&(f.lastIndex=l(d,i(f.lastIndex),v))}for(var y,E="",S=0,I=0;I<_.length;I++){b=_[I];for(var x=String(b[0]),C=c(u(a(b.index),d.length),0),w=[],D=1;D<b.length;D++)w.push(void 0===(y=b[D])?y:String(y));var T=b.groups;if(p){var F=[x].concat(w,C,d);void 0!==T&&F.push(T);var O=String(e.apply(void 0,F))}else O=g(x,d,C,w,T,e);C>=S&&(E+=d.slice(S,C)+O,S=C+x.length)}return E+d.slice(S)}];function g(t,e,r,i,a,l){var s=r+t.length,c=i.length,u=p;return void 0!==a&&(a=o(a),u=d),n.call(l,u,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var d=f(u/10);return 0===d?n:d<=c?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},aae3:function(t,e,n){var r=n("d3f4"),o=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),o=n("0d58"),i=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),f=c("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),g=0;g<h.length;g++){var m,v=h[g],_=p[v],b=a[v],y=b&&b.prototype;if(y&&(y[u]||l(y,u,d),y[f]||l(y,f,v),s[v]=d,_))for(m in r)y[m]||i(y,m,r[m],!0)}},b0c5:function(t,e,n){var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=r(e),c=o(s.length),u=i(a,c);if(t&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s})),n("a481");var r,o,i="undefined"!=typeof window?window.console:t.console,a=/-(\w)/g,l=(r=function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))},o=Object.create(null),function(t){return o[t]||(o[t]=r(t))});function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var r=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){var r=n("9c6c"),o=n("d53b"),i=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=o(t),s=0,c=[];for(n in l)n!=a&&r(l,n)&&c.push(n);for(;e.length>s;)r(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var r=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){var r=n("5ca1"),o=n("9def"),i=n("d2c8"),a="startsWith",l=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(t){var e=i(this,t,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){var r;function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var s=n("a352"),c=n.n(s),u=n("c649");function f(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function d(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),f.call(e,t,n)}}function p(t){return["transition-group","TransitionGroup"].includes(t)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var g=["Start","Add","Remove","Update","End"],m=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(g,m).map((function(t){return"on"+t})),_=null,b={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=a(t,1)[0].componentOptions;return!!e&&p(e.tag)}(e);var n=function(t,e,n){var r=0,o=0,i=h(e,n,"header");i&&(r=i.length,t=t?[].concat(l(i),l(t)):l(i));var a=h(e,n,"footer");return a&&(o=a.length,t=t?[].concat(l(t),l(a)):l(a)),{children:t,headerOffset:r,footerOffset:o}}(e,this.$slots,this.$scopedSlots),r=n.children,o=n.headerOffset,i=n.footerOffset;this.headerOffset=o,this.footerOffset=i;var s=function(t,e){var n=null,r=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(r("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{})),!e)return n;var o=e.on,i=e.props,a=e.attrs;return r("on",o),r("props",i),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return t(this.getTag(),s,r)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};g.forEach((function(n){e["on"+n]=d.call(t,n)})),m.forEach((function(n){e["on"+n]=f.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(u.a)(n)]=t.$attrs[n],e}),{}),r=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new c.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(u.a)(e);-1===v.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,n,r){if(!t)return[];var o=t.map((function(t){return t.elm})),i=e.length-r,a=l(e).map((function(t,e){return e>=i?o.length:o.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&p(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=l(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,l(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};var o=r.realList,i={list:o,component:r};if(e!==n&&o&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,i)}return i},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),_=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var r={element:e,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=l(e.to.children).filter((function(t){return"none"!==t.style.display})),r=n.indexOf(e.related),o=t.component.getVmIndex(r);return-1===n.indexOf(_)&&e.willInsertAfter?o+1:o},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(t),o=this.context,i=this.computeFutureIndex(r,t);return Object.assign(o,{futureIndex:i}),n(Object.assign({},t,{relatedContext:r,draggedContext:o}),e)},onDragEnd:function(){this.computeIndexes(),_=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",b);var y=b;e.default=y}}).default},t.exports=n(Sortable)})),script$4={name:"DocTemplateFacetList",components:{draggable:vuedraggable_umd},props:{facets:{type:Array,default:function(){return[]}}},data:function(){return{allFacets:[],innerFacets:[],facetSearchStr:null}},computed:{iconExpandFacet:function(){return UtFormConstructor.config.icons.iconExpandFacet},iconCollapseFacet:function(){return UtFormConstructor.config.icons.iconCollapseFacet}},watch:{facetSearchStr:function(){this.findInFacets(this.facetSearchStr)},facets:function(){this.handleFacetsProp()}},methods:{onFieldCloned:function(t){var e=JSON.parse(JSON.stringify(t));return e.input=UtFormConstructor.getDefaultInput(e),e},onFieldMoveEnd:function(t){this.$emit("fieldMoveEnd",t)},findInFacets:function(t){(t=t.toLowerCase())&&0!==t.length||(this.innerFacets=this.allFacets);var e=JSON.parse(JSON.stringify(this.allFacets));e=e.filter((function(e){var n=!1;return e.fields=e.fields.filter((function(e){var r=e.labelRu.toLowerCase().indexOf(t)>=0;return r&&(n=!0),r})),n})),this.innerFacets=e},handleFacetsProp:function(){var t=this.facets.map((function(t){return _objectSpread2(_objectSpread2({},t),{},{expanded:!1})}));t&&t.forEach((function(t){t.fields=t.fields.filter((function(t){return!t.hiddenOnFormConfig}))})),this.innerFacets=JSON.parse(JSON.stringify(t)),this.allFacets=JSON.parse(JSON.stringify(t))}},created:function(){this.handleFacetsProp()}},__vue_script__$4=script$4,__vue_render__$4=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-facets-sidebar"},[n("h4",[t._v("Компоненты")]),t._v(" "),n("b-form",[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",[n("b-form-input",{attrs:{placeholder:"Название поля"},model:{value:t.facetSearchStr,callback:function(e){t.facetSearchStr=e},expression:"facetSearchStr"}})],1)],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-facet-list"},t._l(t.innerFacets,(function(e){return e.fields.length>0?n("div",{key:e.name,staticClass:"rb-facet"},[n("h6",{staticClass:"rb-facet-label d-flex cursor-pointer",on:{click:function(t){e.expanded=!e.expanded}}},[n("rb-text",{staticClass:"flex-fill"},[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{attrs:{icon:e.expanded?t.iconCollapseFacet:t.iconExpandFacet}})],1),t._v(" "),e.expanded?n("b-list-group",[n("draggable",{attrs:{clone:t.onFieldCloned,animation:200,group:{name:"fields",pull:"clone",put:!1},"ghost-class":"rb-facet-field-moving"},on:{end:function(e){return t.onFieldMoveEnd(e)}},model:{value:e.fields,callback:function(n){t.$set(e,"fields",n)},expression:"facet.fields"}},t._l(e.fields,(function(e){return n("b-list-group-item",{key:e.name,staticClass:"cursor-pointer",attrs:{id:e.name+"Sidebar"}},[n("rb-text",[t._v(t._s(e.labelRu))])],1)})),1)],1):t._e()],1):t._e()})),0)],1)},__vue_staticRenderFns__$4=[],__vue_inject_styles__$4=void 0,__vue_scope_id__$4=void 0,__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=!1,__vue_component__$5=normalizeComponent({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$4,__vue_script__$4,__vue_scope_id__$4,__vue_is_functional_template__$4,__vue_module_identifier__$4,!1,void 0,void 0,void 0),DocTemplateFacetList=__vue_component__$5,toString=Object.prototype.toString,_typeof=function(t){var e=typeof t;return"undefined"===e?"undefined":(t?e=t.constructor.name:"object"===e&&(e=toString.call(t).slice(8,-1)),e.toLowerCase())},script$3={name:"DocForm",props:{formConfig:Object,applyDefaultValues:{type:Boolean,default:!0},doc:{type:Object,default:function(){return{}}},refSuffix:{type:String,default:"Id"},editable:{type:Boolean,default:!0},displayField:{type:String,default:"labelRu"},showRequiredInLabel:{type:Boolean,default:!0}},data:function(){return{validationState:{}}},watch:{formConfig:function(){this.validationState={},this.execApplyDefaultValues(),this.execApplyDefaultValRule()}},methods:{getResolveValueName:function(t){return!t.dict&&!t.ref||t.multiple?t.name:t.name.substring(0,t.name.length-2)},getResolveValue:function(t){return this.doc[this.getResolveValueName(t)]?this.doc[this.getResolveValueName(t)]:null},getDisplayField:function(t){return t[this.displayField]?t[this.displayField]:t.labelRu},isResolvableField:function(t){return!!t.ref},getResolveObject:function(t){if(this.isResolvableField(t)){var e=this.getResolveFieldName(t);return t.multiple?this.doc[t.name]:this.doc[e]}return null},getResolveFieldName:function(t){var e,n=null==t?void 0:t.name;return null!==(e=n)&&void 0!==e&&e.endsWith("Id")&&(n=t.name.substring(0,t.name.length-2)),n},onEventFired:function(t,e,n){var r=this;n.rules&&n.rules.forEach((function(n){n.event===t&&n.script&&r.runRule(n,{event:e,eventName:t})}))},onGlobalEventFired:function(t,e){var n=this;UtFormConfig.getFields(this.formConfig).forEach((function(r){r.rules&&r.rules.forEach((function(r){r.event===t&&n.runRule(r,{event:e,eventName:t})}))}))},createRuleContext:function(t){return Object.assign(_objectSpread2({form:this,doc:this.doc},t),UtFormConstructor.getRuleContext())},runRule:function(t,e){UtFormConstructor.runRule(this.createRuleContext(e),t.script)},isValueEmpty:function(t){var e;return null==this.doc[t]||(!(!Array.isArray(this.doc[t])||null!==(e=this.doc[t])&&void 0!==e&&e.length)||!(!_typeof("string"===this.doc[t])||""!==this.doc[t]))},isValueLessThanMax:function(t,e){var n;return!(!this.doc[t]||!e)&&(null===(n=this.doc[t])||void 0===n?void 0:n.length)>parseInt(e)},isValueLessThanMin:function(t,e){return!(!this.doc[t]||!e)&&parseInt(this.doc[t])<parseInt(e)},validate:function(){var t=this;for(var e in this.formConfig.sections.forEach((function(e){e.columns.forEach((function(e){e.fields.forEach((function(e){var n,r,o="";(e.required&&t.isValueEmpty(e.name)&&(o+=i18n.t("validate.required",{field:t.getDisplayField(e)})),"integer"===e.type&&t.isValueLessThanMin(e.name,e.input.propsData.min)&&(o+="\n".concat(i18n.t("validate.min",{min:e.input.propsData.min}))),"b-form-textarea"===e.input.type&&t.isValueLessThanMax(e.name,null===(n=e.input.propsData)||void 0===n?void 0:n.max))&&(o+="\nМаксимальное значение для этого поля ".concat(null===(r=e.input.propsData)||void 0===r?void 0:r.max));o?(Vue__default.default.set(t.validationState,e.name,!1),Vue__default.default.set(t.validationState,"".concat(e.name,"__feedback"),o)):Vue__default.default.set(t.validationState,e.name,null),t.onEventFired("validate",{validationState:t.validationState,doc:t.doc},e)}))}))})),this.validationState)if(!1===this.validationState[e])return!1;return!0},getColumnSize:function(t){return t&&t.columnCount?Math.floor(12/t.columnCount):12},execApplyDefaultValues:function(){var t=this;this.applyDefaultValues&&this.formConfig.sections.forEach((function(e){e.columns.forEach((function(e){e.fields.forEach((function(e){var n;e.defaultValue&&(n=t.defaultValue&&"function"===_typeof(e.defaultValue)?e.defaultValue():null==e.defaultValue?null:e.defaultValue,t.$set(t.doc,e.name,e.defaultValue=n))}))}))}))},execApplyDefaultValRule:function execApplyDefaultValRule(){var _this5=this;this.formConfig.sections.forEach((function(el){el.columns.forEach((function(c){c.fields.forEach((function(f){if(f.rules&&!f.defaultValue){var rule=f.rules.find((function(t){return"defaultValue"===t.event}));rule&&!_this5.doc[f.name]&&_this5.$set(_this5.doc,f.name,f.defaultValue=eval(rule.script))}}))}))}))}},mounted:function(){this.execApplyDefaultValues(),this.execApplyDefaultValRule(),this.onGlobalEventFired("form-mounted",this)},activated:function(){this.execApplyDefaultValues(),this.execApplyDefaultValRule(),this.onGlobalEventFired("form-activated",this)}},__vue_script__$3=script$3,__vue_render__$3=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.formConfig&&t.formConfig.sections?n("b-form",{staticClass:"rb-doc-form",on:{submit:function(t){t.preventDefault()}}},t._l(t.formConfig.sections,(function(e){return n("b-container",{key:e.labelRu,staticClass:"rb-form-section"},[n("b-row",[n("b-col",{attrs:{lg:"12"}},[n("h4",[t._v(t._s(t.getDisplayField(e)))])]),t._v(" "),t._l(e.columns,(function(r){return[n("b-col",{key:r.index,attrs:{lg:t.getColumnSize(e),sm:12}},[t._l(r.fields,(function(e){return[t._v("\n "+t._s(e.valueName)+"\n "),e.visible?n("b-form-row",{key:e.name},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",refInFor:!0,attrs:{"data-field":e.name,state:t.validationState[e.name],"invalid-feedback":t.validationState[e.name+"__feedback"]},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{attrs:{title:t.getDisplayField(e)}},[t._v(t._s(t.getDisplayField(e)))]),t._v(" "),t.showRequiredInLabel&&e.required?n("span",{staticClass:"text-danger"},[t._v("*")]):t._e()]},proxy:!0}],null,!0)},[n(e.input.type,t._b({ref:e.ref?e.ref:e.name,refInFor:!0,tag:"component",attrs:{"resolve-value":t.getResolveValue(e),disabled:!t.editable||!e.editable,id:e.name,state:t.validationState[e.name],resolveFromObject:t.isResolvableField(e),resolveObject:t.doc[t.getResolveFieldName(e)],markForBackResolution:t.isResolvableField(e),required:e.required},on:{"update:resolveObject":function(n){t.$set(t.doc,t.getResolveFieldName(e),n)},"update:resolve-object":function(n){t.$set(t.doc,t.getResolveFieldName(e),n)},"hook:created":function(n){return t.onEventFired("created",n,e)},"hook:destroyed":function(n){return t.onEventFired("destroyed",n,e)},"hook:activated":function(n){return t.onEventFired("activated",n,e)},"hook:mounted":function(n){return t.onEventFired("mounted",n,e)},input:function(n){return t.onEventFired("input",n,e)},change:function(n){return t.onEventFired("change",n,e)},click:function(n){return t.onEventFired("click",n,e)}},model:{value:t.doc[e.name],callback:function(n){t.$set(t.doc,e.name,n)},expression:"doc[field.name]"}},"component",e.input.propsData,!1))],1)],1)],1):t._e()]}))],2)]}))],2)],1)})),1):t._e()},__vue_staticRenderFns__$3=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,__vue_component__$4=normalizeComponent({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,!1,void 0,void 0,void 0),DocForm=__vue_component__$4,generateRandomString=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<t;r++)e+=n.charAt(Math.floor(62*Math.random()));return e},UtRandom={getRandomString:function(t){return generateRandomString(t)}},script$2={name:"FieldRuleFormModal",components:{DocForm:DocForm},props:{field:Object,rule:Object,formConfig:Object,mode:{type:String,default:"ins"},onAfterOk:Function},data:function(){return{id:"rb-field-rule-form-modal",state:this.getDefaultState(),innerFormConfig:null,innerRule:null}},computed:{title:function(){return"ins"===this.mode?"Добавление правила":"Редактирование правила"},fields:function(){return UtFormConfig.getFields(this.formConfig)},rulePresets:function(){return UtFormConstructor.getAvailableFieldRules(this.field)}},watch:{formConfig:function(){this.copyToInnerFormConfig()},rule:function(){this.rule?this.innerRule=this.rule:this.innerRule=this.getDefaultRule()}},methods:{validateFields:function(t){var e=this;(t?[t]:["name","event","script"]).forEach((function(t){e.innerRule[t]?(e.state[t]=!0,e.state["".concat(t,"_feedback")]=null):(e.state[t]=!1,e.state["".concat(t,"_feedback")]="Заполните название")}))},copyToInnerFormConfig:function(){this.innerFormConfig=JSON.parse(JSON.stringify(this.formConfig))},applyRuleToInnerFormConfig:function(){if(this.innerFormConfig){var t=UtFormConfig.findRule(this.innerRule.id,this.innerFormConfig);if(t)Object.assign(t,this.innerRule);else{var e=UtFormConfig.findField(this.field.name,this.innerFormConfig);e&&(e.rules=e.rules?e.rules:[],e.rules.push(this.rule))}}},onActivateTab:function(t){t>0&&(this.copyToInnerFormConfig(),this.applyRuleToInnerFormConfig())},getDefaultState:function(){return{name:null,event:null,script:null}},getDefaultRule:function(){return{id:UtRandom.getRandomString(10),name:null,event:null,script:null}},resetModal:function(){this.state=this.getDefaultState(),this.innerRule=null},addVariableToScript:function(t){var e=this.$refs.scriptInput.selectionStart;this.insertTextToScript(t,e)},addSetVariableToScript:function(t){var e=this.$refs.scriptInput.selectionStart;this.insertTextToScript("doc['".concat(t.name,"'] = Значение;"),e)},addCallInputFunction:function(t){var e=this.$refs.scriptInput.selectionStart;this.insertTextToScript("form.$refs['".concat(t.name,"'][0].Название функции();"),e)},insertTextToScript:function(t,e){e=null!=e?e:this.script.length,this.innerRule.script=null!=this.innerRule.script?this.innerRule.script:"";var n=this.innerRule.script.split("");n.splice(e,0,t),this.innerRule.script=n.join("")},onRuleSelected:function(t){var e=this.rulePresets.find((function(e){return e.name===t}));e&&(Object.assign(this.innerRule,e),this.innerRule.script=this.innerRule.script.trim())},onOk:function(){var t=this;this.validateFields(),this.state.name&&this.state.script&&(this.onAfterOk&&this.onAfterOk(this.innerRule),this.$nextTick((function(){t.resetModal(),t.$bvModal.hide(t.id)})))}},created:function(){this.copyToInnerFormConfig()}},__vue_script__$2=script$2,__vue_render__$2=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{id:t.id,title:t.title,"modal-class":"rb-field-rule-form-modal",size:"lg","ok-title":"Сохранить правило","cancel-variant":"outline-gray","cancel-title":"Отмена"},on:{ok:function(e){return e.preventDefault(),t.onOk.apply(null,arguments)}}},[n("b-card",{attrs:{"no-body":""}},[n("b-tabs",{attrs:{card:""},on:{"activate-tab":t.onActivateTab}},[n("b-tab",{attrs:{title:"Правило",active:""}},[t.innerRule?n("b-form",[n("b-form-row",[n("b-col",{attrs:{log:"12"}},[t.rulePresets.length>0?n("b-form-group",{attrs:{label:"Выбрать"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n Выберите готовое правило из списка и если нужно, измените\n ")]},proxy:!0}],null,!1,1926378271)},[t._v(" "),n("b-form-select",{on:{input:function(e){return t.onRuleSelected(e)}}},t._l(t.rulePresets,(function(e){return n("b-form-select-option",{key:e.name,attrs:{value:e.name}},[t._v("\n "+t._s(e.labelRu)+" ("+t._s(e.name)+")\n ")])})),1)],1):t._e()],1),t._v(" "),n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Название"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n Задайте уникальное название, чтобы отличать правило в списке\n ")]},proxy:!0}],null,!1,2943614562)},[t._v(" "),n("b-form-input",{attrs:{state:t.state.name,"invalid-feedback":t.state.name_feedback},model:{value:t.innerRule.name,callback:function(e){t.$set(t.innerRule,"name",e)},expression:"innerRule.name"}})],1)],1),t._v(" "),n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Событие"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n При возникновении этого события будет выполняться правило\n ")]},proxy:!0}],null,!1,2258732973)},[t._v(" "),n("b-form-select",{attrs:{state:t.state.event,"invalid-feedback":t.state.event_feedback},model:{value:t.innerRule.event,callback:function(e){t.$set(t.innerRule,"event",e)},expression:"innerRule.event"}},[n("b-form-select-option",{attrs:{value:"input"}},[t._v("\n Ввод значения\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"change"}},[t._v("\n Изменение значения\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"click"}},[t._v("\n Клик\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"validate"}},[t._v("\n Валидация\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"defaultValue"}},[t._v("\n Установить значение по умолчанию\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"created"}},[t._v("\n Инпут создан\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"mounted"}},[t._v("\n Инпут подключен\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"activated"}},[t._v("\n Инпут активирован\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"form-mounted"}},[t._v("\n Форма создана\n ")]),t._v(" "),n("b-form-select-option",{attrs:{value:"form-activated"}},[t._v("\n Форма показана\n ")])],1)],1)],1),t._v(" "),n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Скрипт"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v("\n Здесь указывается скрипт правила. Скрипт должен быть написан на языке\n javascript\n ")]},proxy:!0}],null,!1,2149825091)},[t._v(" "),n("div",{staticClass:"rb-script-input"},[n("b-button-toolbar",[n("b-dropdown",{staticClass:"mx-1",attrs:{text:"Переменные",variant:"outline-secondary",size:"sm"}},[n("b-dropdown-item",{on:{click:function(e){return t.addVariableToScript("doc")}}},[t._v("\n Документ\n ")]),t._v(" "),n("b-dropdown-item",{on:{click:function(e){return t.addVariableToScript("form")}}},[t._v("\n Форма\n ")]),t._v(" "),n("b-dropdown-item",{on:{click:function(e){return t.addVariableToScript("event")}}},[t._v("\n Значение события\n ")])],1),t._v(" "),n("b-dropdown",{staticClass:"mx-1",attrs:{text:"Задать значение",variant:"outline-secondary",size:"sm"}},t._l(t.fields,(function(e){return t.fields?n("b-dropdown-item",{key:e.name,on:{click:function(n){return t.addSetVariableToScript(e)}}},[t._v("\n "+t._s(e.labelRu)+" ("+t._s(e.name)+")\n ")]):t._e()})),1),t._v(" "),n("b-dropdown",{staticClass:"mx-1",attrs:{text:"Вызвать функцию инпута",variant:"outline-secondary",size:"sm"}},t._l(t.fields,(function(e){return t.fields?n("b-dropdown-item",{key:e.name,on:{click:function(n){return t.addCallInputFunction(e)}}},[t._v("\n "+t._s(e.labelRu)+" ("+t._s(e.name)+")\n ")]):t._e()})),1)],1),t._v(" "),n("b-form-textarea",{ref:"scriptInput",attrs:{state:t.state.script,"invalid-feedback":t.state.script_feedback,rows:"8"},model:{value:t.innerRule.script,callback:function(e){t.$set(t.innerRule,"script",e)},expression:"innerRule.script"}})],1)])],1)],1)],1):t._e()],1),t._v(" "),t.innerFormConfig?n("b-tab",{attrs:{title:"Протестировать правило"}},[n("doc-form",{attrs:{"form-config":t.innerFormConfig}})],1):t._e()],1)],1)],1)},__vue_staticRenderFns__$2=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,__vue_component__$3=normalizeComponent({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,!1,void 0,void 0,void 0),FieldRuleFormModal=__vue_component__$3,script$1={name:"DocTemplateFieldSidebar",components:{FieldRuleFormModal:FieldRuleFormModal},props:{value:{type:Object,default:null},visible:{type:Boolean,default:null},formConfig:Object},data:function(){return{innerVisible:null,field:null,currentInputName:null,modalId:"rb-field-rule-form-modal",ruleModalCfg:{rule:{},mode:"ins"},rulesHash:UtRandom.getRandomString(10)}},computed:{inputOptions:function(){return this.field?UtFormConstructor.getInputTypes(this.field):[]},iconCloseSidebar:function(){return UtFormConstructor.config.icons.iconCloseFieldSidebar},iconOpenSidebar:function(){return UtFormConstructor.config.icons.iconOpenFieldSidebar},iconAdd:function(){return UtFormConstructor.config.icons.iconAdd},rules:function(){return UtFormConstructor.getAvailableFieldRules(this.field)},hasMultipleInputTypes:function(){return UtFormConstructor.hasMultipleInputTypes(this.field)},multiple:function(){return this.field&&this.field.multiple}},watch:{visible:function(){this.innerVisible=this.visible},value:function(){this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name)},field:{handler:function(){this.$emit("input",this.field),this.$emit("change",this.field)},deep:!0},currentInputName:function(t){this.field.input=UtFormConstructor.getInputTypeByName(this.currentInputName,this.field)},multiple:function(){var t=UtFormConstructor.getDefaultInput(this.field);this.field.multiple&&(this.currentInputName=t.name)}},methods:{hide:function(){this.innerVisible=!1,this.$emit("hide")},getPropInputType:function(t,e){return["string","number"].includes(t.type)?"b-form-input":["date"].includes(t.type)?"rb-date-picker-input":"rb-boolean-single-option-input"},getPropInputPropData:function(t,e){return"string"===t.type?{type:"text"}:"number"===t.type?{type:"number"}:{}},addRule:function(){var t=this;this.ruleModalCfg={mode:"ins",rule:{name:null,script:null},onAfterOk:function(e){t.field.rules=t.field.rules?t.field.rules:[],t.field.rules.push(_objectSpread2({},e)),t.rulesHash=UtRandom.getRandomString(10)}},this.$bvModal.show(this.modalId)},editRule:function(t,e){e.target.classList&&e.target.classList.contains("rb-remove-rule")||(this.ruleModalCfg={mode:"upd",rule:_objectSpread2({},t),onAfterOk:function(e){Object.assign(t,e)}},this.$bvModal.show(this.modalId))},removeRule:function(t){var e=this.field.rules.findIndex((function(e){return e.id===t.id}));e>=0&&this.field.rules.splice(e,1),this.rulesHash=UtRandom.getRandomString(10)}},created:function(){this.value&&(this.innerVisible=this.visible,this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name))}},__vue_script__$1=script$1,__vue_render__$1=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-sidebar",{staticClass:"rb-doc-template-field-sidebar",attrs:{right:"","bg-variant":"white",shadow:""},scopedSlots:t._u([{key:"header",fn:function(){return[n("b-button",{staticClass:"rb-sidebar-close-btn",attrs:{variant:"secondary"},on:{click:t.hide}},[n("rb-icon",{attrs:{icon:t.innerVisible?t.iconCloseSidebar:t.iconOpenSidebar}})],1),t._v(" "),n("h4",[t._v("Редактор свойств")])]},proxy:!0}]),model:{value:t.innerVisible,callback:function(e){t.innerVisible=e},expression:"innerVisible"}},[t._v(" "),t.field?n("b-form",[n("div",{staticClass:"rb-form-section"},[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Название"}},[n("rb-text",[t._v(t._s(t.field.name))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тип"}},[n("rb-text",[t._v(t._s(t.field.type))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тэг для файла шаблона"}},[n("rb-text",[t._v(t._s(t.field.tag))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Заголовок"}},[n("rb-multi-lang-input",{model:{value:t.field,callback:function(e){t.field=e},expression:"field"}})],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.visible,callback:function(e){t.$set(t.field,"visible",e)},expression:"field.visible"}},[t._v("Отображаемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.editable,callback:function(e){t.$set(t.field,"editable",e)},expression:"field.editable"}},[t._v("Редактируемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.required,callback:function(e){t.$set(t.field,"required",e)},expression:"field.required"}},[t._v("Обязательное")])],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("\n Настройки ввода\n ")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Тип инпута"}},[n("rb-dropdown-input",{attrs:{items:t.inputOptions,"display-field":"text","value-field":"name",block:""},model:{value:t.currentInputName,callback:function(e){t.currentInputName=e},expression:"currentInputName"}})],1),t._v(" "),t._l(t.field.input.props,(function(e,r){return[e.visible?n("b-form-group",{key:r,attrs:{label:e.label}},[n(t.getPropInputType(e,r),t._b({tag:"component",model:{value:t.field.input.propsData[r],callback:function(e){t.$set(t.field.input.propsData,r,e)},expression:"field.input.propsData[propName]"}},"component",t.getPropInputPropData(e,r),!1))],1):t._e()]}))],2)],1)],1),t._v(" "),t.field.input?n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("Значение по-умолчанию")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",attrs:{label:t.field.labelRu}},[n(t.field.input.type,t._b({tag:"component",model:{value:t.field.defaultValue,callback:function(e){t.$set(t.field,"defaultValue",e)},expression:"field.defaultValue"}},"component",t.field.input.propsData,!1))],1)],1)],1)],1):t._e(),t._v(" "),n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("Правила")]),t._v(" "),n("b-list-group",{attrs:{"data-hash":t.rulesHash}},[t._l(t.field.rules,(function(e){return n("b-list-group-item",{key:e.id,staticClass:"cursor-pointer d-flex justify-content-between align-items-center",attrs:{"data-hash":t.rulesHash},on:{click:function(n){return t.editRule(e,n)}}},[n("rb-text",[t._v(t._s(e.name))]),t._v(" "),n("rb-icon",{staticClass:"rb-remove-rule",attrs:{icon:"icon-close"},on:{click:function(n){return t.removeRule(e)}}})],1)})),t._v(" "),n("b-list-group-item",{staticClass:"cursor-pointer",on:{click:t.addRule}},[n("rb-icon",{attrs:{icon:t.iconAdd}}),t._v(" "),n("rb-text",[t._v("Добавить правило ...")])],1)],2)],1)]):t._e(),t._v(" "),n("field-rule-form-modal",{attrs:{rule:t.ruleModalCfg.rule,"form-config":t.formConfig,field:t.field,mode:t.ruleModalCfg.mode,"on-after-ok":t.ruleModalCfg.onAfterOk}})],1)},__vue_staticRenderFns__$1=[],__vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=!1,__vue_component__$2=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,!1,void 0,void 0,void 0),DocTemplateFieldSidebar=__vue_component__$2,script={name:"DocTemplateConstructor",components:{DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateSectionModal:DocTemplateSectionModal,draggable:vuedraggable_umd},props:{formConfig:{type:Object,default:function(){return{sections:[]}}},facets:{type:Array,default:function(){return[]}}},data:function(){return{sidebarVisible:!1,sidebarField:null,columnTo:!1,hash:"",sectionModalCfg:{id:"rb-doc-template-section-modal",mode:"ins",section:null,onAfterOk:function(){}}}},computed:{iconAdd:function(){return UtFormConstructor.config.icons.iconAdd},iconEdit:function(){return UtFormConstructor.config.icons.iconEdit},iconDelete:function(){return UtFormConstructor.config.icons.iconDelete},iconDrag:function(){return UtFormConstructor.config.icons.iconDrag}},methods:{showProperties:function(t,e){e.target.classList&&e.target.classList.contains("rb-remove-field")||(this.sidebarVisible=!0,this.sidebarField=t)},addSection:function(t){var e=this,n={labelRu:null,columnCount:t};this.sectionModalCfg.mode="ins",this.sectionModalCfg.section=n,this.sectionModalCfg.onAfterOk=function(){n.columns=[];for(var r=0;r<t;r++)n.columns.push({index:r,fields:[]});e.formConfig.sections.push(n)},this.$bvModal.show(this.sectionModalCfg.id)},editSection:function(t){this.sectionModalCfg.mode="update",this.sectionModalCfg.section=t,this.sectionModalCfg.onAfterOk=function(){},this.$bvModal.show(this.sectionModalCfg.id)},removeSection:function(t,e){this.formConfig.sections.splice(e,1)},multipleFieldAreOnFormConfig:function(t){var e=0;return this.formConfig.sections.forEach((function(n){n.columns.forEach((function(n){n.fields.forEach((function(n){n.name===t.name&&e++}))}))})),e>1},removeFieldFromColumn:function(t,e,n){var r=null!=n?n:-1;r<0&&(r=e.fields.findIndex((function(e){return t.name===e.name}))),r>=0&&e.fields.splice(r,1)},onRemoveField:function(t,e,n){t.preventDefault(),this.removeFieldFromColumn(e,n)},onFieldAddedToColumn:function(t,e,n){this.columnTo=e},onFieldMoveEnd:function(t){var e=t.newIndex,n=t.item._underlying_vm_;n.hasOwnProperty("defaultValue")||this.$set(n,"defaultValue",void 0),this.multipleFieldAreOnFormConfig(n)&&(this.removeFieldFromColumn(n,this.columnTo,e),this.resetDragVariables(),this.$bvModal.msgBoxOk("На форме уже есть это поле",{title:"Ошибка",headerClass:"rb-error-msg-box__header",bodyClass:"rb-error-msg-box__body",footerClass:"rb-error-msg-box__footer",centered:!0,noCloseOnBackdrop:!0,noCloseOnEsc:!0})),this.resetDragVariables(),this.hash=(Math.random()+1).toString(36).substring(7)},getFieldExtendedPropsData:function(t){return _objectSpread2(_objectSpread2({},t.input.propsData),{},{placeholder:t.tag,disabled:!0})},resetDragVariables:function(){this.columnTo=null}}},__vue_script__=script,__vue_render__=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-doc-template-constructor d-flex"},[n("doc-template-facet-list",{attrs:{facets:t.facets},on:{fieldMoveEnd:t.onFieldMoveEnd}}),t._v(" "),n("div",{staticClass:"rb-form-constructor flex-fill"},[n("div",{staticClass:"rb-constructor-toolbar d-flex flex-row"},[n("h4",[t._v("Добавить секцию: ")]),t._v(" "),n("div",{staticClass:"rb-layout-buttons"},[n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(1)}}},[n("rb-text",[t._v("Секция с 1 колонкой")]),t._v(" "),n("rb-icon",{attrs:{icon:t.iconAdd}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(2)}}},[n("rb-text",[t._v("Секция с 2 колонками")]),t._v(" "),n("rb-icon",{attrs:{icon:t.iconAdd}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(3)}}},[n("rb-text",[t._v("Секция с 3 колонками")]),t._v(" "),n("rb-icon",{attrs:{icon:t.iconAdd}})],1)],1)]),t._v(" "),n("div",{staticClass:"rb-constructor-body"},[n("draggable",{attrs:{animation:200,group:"section","ghost-class":"rb-form-card-moving",handle:".rb-row-drag-handle"},model:{value:t.formConfig.sections,callback:function(e){t.$set(t.formConfig,"sections",e)},expression:"formConfig.sections"}},t._l(t.formConfig.sections,(function(e,r){return n("b-card",{key:e.labelRu,staticClass:"rb-form-card",attrs:{"data-hash":t.hash},scopedSlots:t._u([{key:"header",fn:function(){return[n("rb-icon",{staticClass:"cursor-pointer rb-row-drag-handle",attrs:{icon:"icon-search"}}),t._v(" "),n("rb-text",{staticClass:"flex-fill",on:{click:function(n){return t.editSection(e)}}},[t._v("\n "+t._s(e.labelRu)+"\n ")]),t._v(" "),n("span",{staticClass:"rb-actions"},[n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:t.iconEdit},on:{click:function(n){return t.editSection(e)}}}),t._v(" "),n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:t.iconDelete},on:{click:function(n){return t.removeSection(e,r)}}})],1)]},proxy:!0}],null,!0)},[t._v(" "),n("div",{staticClass:"d-flex flex-row"},t._l(e.columns,(function(r){return n("draggable",{key:r.index,staticClass:"rb-form-column",class:{"rb-single-column":1===e.columnCount},attrs:{tag:"b-form",animation:200,group:"fields","ghost-class":"rb-moving-item",handle:".rb-field-drag-handle"},on:{add:function(n){return t.onFieldAddedToColumn(n,r,e)}},model:{value:r.fields,callback:function(e){t.$set(r,"fields",e)},expression:"column.fields"}},t._l(r.fields,(function(e){return n("b-form-row",{key:e.name,staticClass:"cursor-pointer",on:{click:function(n){return t.showProperties(e,n)}}},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:e.labelRu},scopedSlots:t._u([{key:"label",fn:function(){return[n("rb-icon",{staticClass:"rb-field-drag-handle",attrs:{icon:t.iconDrag}}),t._v(" "),n("rb-text",[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{staticClass:"rb-remove-field",attrs:{icon:t.iconDelete},on:{click:function(n){return n.preventDefault(),t.onRemoveField(n,e,r)}}})]},proxy:!0}],null,!0)},[t._v(" "),e.input?n(e.input.type,t._b({tag:"component",staticClass:"cursor-pointer",attrs:{id:e.name,disabled:""}},"component",t.getFieldExtendedPropsData(e),!1)):t._e()],1)],1)],1)})),1)})),1)])})),1)],1),t._v(" "),n("doc-template-field-sidebar",{attrs:{visible:t.sidebarVisible,"form-config":t.formConfig},on:{hide:function(e){t.sidebarVisible=!1}},model:{value:t.sidebarField,callback:function(e){t.sidebarField=e},expression:"sidebarField"}}),t._v(" "),n("doc-template-section-modal",{attrs:{mode:t.sectionModalCfg.mode,section:t.sectionModalCfg.section,"on-after-ok":t.sectionModalCfg.onAfterOk}})],1)],1)},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0),__vue_component__$1=__vue_component__,components$1=Object.freeze({__proto__:null,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm}),install=function(t){Object.entries(components$1).forEach((function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];t.component(r,o)}))},components=Object.freeze({__proto__:null,default:install,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm});return Object.entries(components).forEach((function(t){var e=_slicedToArray(t,2),n=e[0],r=e[1];"default"!==n&&(install[n]=r)})),install}(Vue);
|
|
@@ -8632,11 +8632,20 @@ var _typeof = function(object) {
|
|
|
8632
8632
|
},
|
|
8633
8633
|
getResolveObject: function getResolveObject(field) {
|
|
8634
8634
|
if (this.isResolvableField(field)) {
|
|
8635
|
-
|
|
8635
|
+
var resolveFieldName = this.getResolveFieldName(field);
|
|
8636
|
+
return field.multiple ? this.doc[field.name] : this.doc[resolveFieldName];
|
|
8636
8637
|
} else {
|
|
8637
8638
|
return null;
|
|
8638
8639
|
}
|
|
8639
8640
|
},
|
|
8641
|
+
getResolveFieldName: function getResolveFieldName(field) {
|
|
8642
|
+
var _resolveFieldName;
|
|
8643
|
+
var resolveFieldName = field === null || field === void 0 ? void 0 : field.name;
|
|
8644
|
+
if ((_resolveFieldName = resolveFieldName) !== null && _resolveFieldName !== void 0 && _resolveFieldName.endsWith('Id')) {
|
|
8645
|
+
resolveFieldName = field.name.substring(0, field.name.length - 2);
|
|
8646
|
+
}
|
|
8647
|
+
return resolveFieldName;
|
|
8648
|
+
},
|
|
8640
8649
|
onEventFired: function onEventFired(eventName, event, field) {
|
|
8641
8650
|
var _this = this;
|
|
8642
8651
|
if (field.rules) {
|
|
@@ -8869,16 +8878,16 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
8869
8878
|
"id": field.name,
|
|
8870
8879
|
"state": _vm.validationState[field.name],
|
|
8871
8880
|
"resolveFromObject": _vm.isResolvableField(field),
|
|
8872
|
-
"resolveObject": _vm.doc[field
|
|
8881
|
+
"resolveObject": _vm.doc[_vm.getResolveFieldName(field)],
|
|
8873
8882
|
"markForBackResolution": _vm.isResolvableField(field),
|
|
8874
8883
|
"required": field.required
|
|
8875
8884
|
},
|
|
8876
8885
|
on: {
|
|
8877
8886
|
"update:resolveObject": function updateResolveObject($event) {
|
|
8878
|
-
|
|
8887
|
+
_vm.$set(_vm.doc, _vm.getResolveFieldName(field), $event);
|
|
8879
8888
|
},
|
|
8880
8889
|
"update:resolve-object": function updateResolveObject($event) {
|
|
8881
|
-
|
|
8890
|
+
_vm.$set(_vm.doc, _vm.getResolveFieldName(field), $event);
|
|
8882
8891
|
},
|
|
8883
8892
|
"hook:created": function hookCreated($event) {
|
|
8884
8893
|
return _vm.onEventFired('created', $event, field);
|
|
@@ -8921,7 +8930,7 @@ var __vue_inject_styles__$3 = undefined;
|
|
|
8921
8930
|
/* scoped */
|
|
8922
8931
|
var __vue_scope_id__$3 = undefined;
|
|
8923
8932
|
/* module identifier */
|
|
8924
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
8933
|
+
var __vue_module_identifier__$3 = "data-v-58358fb8";
|
|
8925
8934
|
/* functional template */
|
|
8926
8935
|
var __vue_is_functional_template__$3 = false;
|
|
8927
8936
|
/* style inject */
|
|
@@ -10020,11 +10029,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10020
10029
|
"handle": ".rb-row-drag-handle"
|
|
10021
10030
|
},
|
|
10022
10031
|
model: {
|
|
10023
|
-
value: _vm.formConfig.
|
|
10032
|
+
value: _vm.formConfig.sections,
|
|
10024
10033
|
callback: function callback($$v) {
|
|
10025
|
-
_vm.$set(_vm.formConfig, "
|
|
10034
|
+
_vm.$set(_vm.formConfig, "sections", $$v);
|
|
10026
10035
|
},
|
|
10027
|
-
expression: "formConfig.
|
|
10036
|
+
expression: "formConfig.sections"
|
|
10028
10037
|
}
|
|
10029
10038
|
}, _vm._l(_vm.formConfig.sections, function (section, index) {
|
|
10030
10039
|
return _c('b-card', {
|
|
@@ -10039,7 +10048,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10039
10048
|
return [_c('rb-icon', {
|
|
10040
10049
|
staticClass: "cursor-pointer rb-row-drag-handle",
|
|
10041
10050
|
attrs: {
|
|
10042
|
-
"icon":
|
|
10051
|
+
"icon": "icon-search"
|
|
10043
10052
|
}
|
|
10044
10053
|
}), _vm._v(" "), _c('rb-text', {
|
|
10045
10054
|
staticClass: "flex-fill",
|
|
@@ -10184,7 +10193,7 @@ var __vue_inject_styles__ = undefined;
|
|
|
10184
10193
|
/* scoped */
|
|
10185
10194
|
var __vue_scope_id__ = undefined;
|
|
10186
10195
|
/* module identifier */
|
|
10187
|
-
var __vue_module_identifier__ = "data-v-
|
|
10196
|
+
var __vue_module_identifier__ = "data-v-02701ae0";
|
|
10188
10197
|
/* functional template */
|
|
10189
10198
|
var __vue_is_functional_template__ = false;
|
|
10190
10199
|
/* style inject */
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
:state="validationState[field.name]"
|
|
31
31
|
:ref="field.ref? field.ref: field.name"
|
|
32
32
|
:resolveFromObject="isResolvableField(field)"
|
|
33
|
-
:resolveObject.sync="doc[field
|
|
33
|
+
:resolveObject.sync="doc[getResolveFieldName(field)]"
|
|
34
34
|
:markForBackResolution="isResolvableField(field)"
|
|
35
35
|
:required="field.required"
|
|
36
36
|
@hook:created="onEventFired('created', $event, field)"
|
|
@@ -113,11 +113,19 @@ export default {
|
|
|
113
113
|
},
|
|
114
114
|
getResolveObject(field) {
|
|
115
115
|
if (this.isResolvableField(field)) {
|
|
116
|
-
|
|
116
|
+
let resolveFieldName = this.getResolveFieldName(field);
|
|
117
|
+
return field.multiple ? this.doc[field.name] : this.doc[resolveFieldName];
|
|
117
118
|
} else {
|
|
118
119
|
return null;
|
|
119
120
|
}
|
|
120
121
|
},
|
|
122
|
+
getResolveFieldName(field) {
|
|
123
|
+
let resolveFieldName = field?.name
|
|
124
|
+
if (resolveFieldName?.endsWith('Id')) {
|
|
125
|
+
resolveFieldName = field.name.substring(0, field.name.length - 2);
|
|
126
|
+
}
|
|
127
|
+
return resolveFieldName;
|
|
128
|
+
},
|
|
121
129
|
onEventFired(eventName, event, field) {
|
|
122
130
|
if (field.rules) {
|
|
123
131
|
field.rules.forEach((rule) => {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<div class="rb-constructor-body">
|
|
25
|
-
<draggable v-model="formConfig.
|
|
25
|
+
<draggable v-model="formConfig.sections"
|
|
26
26
|
:animation="200"
|
|
27
27
|
group="section"
|
|
28
28
|
ghost-class="rb-form-card-moving"
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
<b-card v-for="(section, index) in formConfig.sections" :key="section.labelRu"
|
|
31
31
|
class="rb-form-card" :data-hash="hash">
|
|
32
32
|
<template #header>
|
|
33
|
-
<rb-icon
|
|
33
|
+
<rb-icon
|
|
34
|
+
icon="icon-search"
|
|
34
35
|
class="cursor-pointer rb-row-drag-handle"></rb-icon>
|
|
35
36
|
<rb-text class="flex-fill" @click="editSection(section)">
|
|
36
37
|
{{ section.labelRu }}
|