imatrix-ui 2.9.8-pv4 → 2.9.8-pv5
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.
package/lib/super-ui.umd.min.js
CHANGED
|
@@ -33,5 +33,5 @@ function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;va
|
|
|
33
33
|
* @author owenm <owen23355@gmail.com>
|
|
34
34
|
* @license MIT
|
|
35
35
|
*/
|
|
36
|
-
function pr(e){return pr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(){return gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gr.apply(this,arguments)}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mr(e,t,n[t])}))}return e}function br(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yr(e,t){if(null==e)return{};var n,r,o=br(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wr="1.10.2";function _r(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Cr=_r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xr=_r(/Edge/i),Sr=_r(/firefox/i),Or=_r(/safari/i)&&!_r(/chrome/i)&&!_r(/android/i),kr=_r(/iP(ad|od|hone)/i),Er=_r(/chrome/i)&&_r(/android/i),Tr={capture:!1,passive:!1};function Dr(e,t,n){e.addEventListener(t,n,!Cr&&Tr)}function Ir(e,t,n){e.removeEventListener(t,n,!Cr&&Tr)}function Nr(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Ar(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pr(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Nr(e,t):Nr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ar(e))}return null}var Mr,Rr=/\s+/g;function Br(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Rr," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Rr," ")}}function Lr(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function Fr(e,t){var n="";if("string"===typeof e)n=e;else do{var r=Lr(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function $r(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function jr(){var e=document.scrollingElement;return e||document.documentElement}function Vr(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,s,u,l,c,f;if(e!==window&&e!==jr()?(i=e.getBoundingClientRect(),a=i.top,s=i.left,u=i.bottom,l=i.right,c=i.height,f=i.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Cr))do{if(o&&o.getBoundingClientRect&&("none"!==Lr(o,"transform")||n&&"static"!==Lr(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(Lr(o,"border-top-width")),s-=d.left+parseInt(Lr(o,"border-left-width")),u=a+i.height,l=s+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=Fr(o||e),p=h&&h.a,m=h&&h.d;h&&(a/=m,s/=p,f/=p,c/=m,u=a+c,l=s+f)}return{top:a,left:s,bottom:u,right:l,width:f,height:c}}}function zr(e,t,n){var r=Yr(e,!0),o=Vr(e)[t];while(r){var i=Vr(r)[n],a=void 0;if(a="top"===n||"left"===n?o>=i:o<=i,!a)return r;if(r===jr())break;r=Yr(r,!1)}return!1}function Hr(e,t,n){var r=0,o=0,i=e.children;while(o<i.length){if("none"!==i[o].style.display&&i[o]!==oi.ghost&&i[o]!==oi.dragged&&Pr(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function Ur(e,t){var n=e.lastElementChild;while(n&&(n===oi.ghost||"none"===Lr(n,"display")||t&&!Nr(n,t)))n=n.previousElementSibling;return n||null}function Wr(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===oi.clone||t&&!Nr(e,t)||n++;return n}function Gr(e){var t=0,n=0,r=jr();if(e)do{var o=Fr(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function qr(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function Yr(e,t){if(!e||!e.getBoundingClientRect)return jr();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Lr(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 jr();if(r||t)return n;r=!0}}}while(n=n.parentNode);return jr()}function Kr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Xr(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Jr(e,t){return function(){if(!Mr){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Mr=setTimeout((function(){Mr=void 0}),t)}}}function Zr(){clearTimeout(Mr),Mr=void 0}function Qr(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function eo(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var to="Sortable"+(new Date).getTime();function no(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==Lr(e,"display")&&e!==oi.ghost){t.push({target:e,rect:Vr(e)});var n=vr({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Fr(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(qr(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=Vr(n),u=n.prevFromRect,l=n.prevToRect,c=e.rect,f=Fr(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&Xr(u,s)&&!Xr(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=oo(c,u,l,r.options)),Xr(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"===typeof n&&n()}),i):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){Lr(e,"transition",""),Lr(e,"transform","");var o=Fr(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),u=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!u,Lr(e,"transform","translate3d("+s+"px,"+u+"px,0)"),ro(e),Lr(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Lr(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Lr(e,"transition",""),Lr(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function ro(e){return e.offsetWidth}function oo(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var io=[],ao={initializeByDefault:!0},so={mount:function(e){for(var t in ao)ao.hasOwnProperty(t)&&!(t in e)&&(e[t]=ao[t]);io.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";io.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](vr({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](vr({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in io.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,gr(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);"undefined"!==typeof i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return io.forEach((function(r){"function"===typeof r.eventProperties&&gr(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return io.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function uo(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,u=e.oldIndex,l=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[to],t){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Cr||xr?(m=document.createEvent("Event"),m.initEvent(r,!0,!0)):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=o||n,m.clone=i,m.oldIndex=u,m.newIndex=l,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var b=vr({},p,so.getEventProperties(r,t));for(var y in b)m[y]=b[y];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var lo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=yr(n,["evt"]);so.pluginEvent.bind(oi)(e,t,vr({dragEl:fo,parentEl:ho,ghostEl:po,rootEl:mo,nextEl:go,lastDownEl:vo,cloneEl:bo,cloneHidden:yo,dragStarted:Ao,putSortable:Oo,activeSortable:oi.active,originalEvent:r,oldIndex:wo,oldDraggableIndex:Co,newIndex:_o,newDraggableIndex:xo,hideGhostForTarget:ei,unhideGhostForTarget:ti,cloneNowHidden:function(){yo=!0},cloneNowShown:function(){yo=!1},dispatchSortableEvent:function(e){co({sortable:t,name:e,originalEvent:r})}},o))};function co(e){uo(vr({putSortable:Oo,cloneEl:bo,targetEl:fo,rootEl:mo,oldIndex:wo,oldDraggableIndex:Co,newIndex:_o,newDraggableIndex:xo},e))}var fo,ho,po,mo,go,vo,bo,yo,wo,_o,Co,xo,So,Oo,ko,Eo,To,Do,Io,No,Ao,Po,Mo,Ro,Bo,Lo=!1,Fo=!1,$o=[],jo=!1,Vo=!1,zo=[],Ho=!1,Uo=[],Wo="undefined"!==typeof document,Go=kr,qo=xr||Cr?"cssFloat":"float",Yo=Wo&&!Er&&!kr&&"draggable"in document.createElement("div"),Ko=function(){if(Wo){if(Cr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Xo=function(e,t){var n=Lr(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Hr(e,0,t),i=Hr(e,1,t),a=o&&Lr(o),s=i&&Lr(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Vr(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Vr(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 c="left"===a["float"]?"left":"right";return!i||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[qo]||i&&"none"===n[qo]&&u+l>r)?"vertical":"horizontal"},Jo=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,u=n?t.width:t.height;return r===a||o===s||r+i/2===a+u/2},Zo=function(e,t){var n;return $o.some((function(r){if(!Ur(r)){var o=Vr(r),i=r[to].options.emptyInsertThreshold,a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;return i&&a&&s?n=r:void 0}})),n},Qo=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var u=(n?r:o).options.group.name;return!0===e||"string"===typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},r=e.group;r&&"object"==pr(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ei=function(){!Ko&&po&&Lr(po,"display","none")},ti=function(){!Ko&&po&&Lr(po,"display","")};Wo&&document.addEventListener("click",(function(e){if(Fo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Fo=!1,!1}),!0);var ni=function(e){if(fo){e=e.touches?e.touches[0]:e;var t=Zo(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[to]._onDragOver(n)}}},ri=function(e){fo&&fo.parentNode[to]._isOutsideThisEl(e.target)};function oi(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=gr({},t),e[to]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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!==oi.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in so.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Qo(t),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Yo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Dr(e,"pointerdown",this._onTapStart):(Dr(e,"mousedown",this._onTapStart),Dr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Dr(e,"dragover",this),Dr(e,"dragenter",this)),$o.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),gr(this,no())}function ii(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ai(e,t,n,r,o,i,a,s){var u,l,c=e[to],f=c.options.onMove;return!window.CustomEvent||Cr||xr?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=i||Vr(t),u.willInsertAfter=s,u.originalEvent=a,e.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function si(e){e.draggable=!1}function ui(){Ho=!1}function li(e,t,n){var r=Vr(Ur(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function ci(e,t,n,r,o,i,a,s){var u=r?e.clientY:e.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&Ro<l*o){if(!jo&&(1===Mo?u>c+l*i/2:u<f-l*i/2)&&(jo=!0),jo)d=!0;else if(1===Mo?u<c+Ro:u>f-Ro)return-Mo}else if(u>c+l*(1-o)/2&&u<f-l*(1-o)/2)return fi(t);return d=d||a,d&&(u<c+l*i/2||u>f-l*i/2)?u>c+l/2?1:-1:0}function fi(e){return Wr(fo)<Wr(e)?1:-1}function di(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function hi(e){Uo.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Uo.push(r)}}function pi(e){return setTimeout(e,0)}function mi(e){return clearTimeout(e)}oi.prototype={constructor:oi,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Po=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,fo):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(hi(n),!fo&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(s=Pr(s,r.draggable,n,!1),(!s||!s.animated)&&vo!==s)){if(wo=Wr(s),Co=Wr(s,r.draggable),"function"===typeof l){if(l.call(this,e,s,this))return co({sortable:t,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),lo("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=Pr(u,r.trim(),n,!1),r)return co({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),lo("filter",t,{evt:e}),!0})),l))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Pr(u,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!fo&&n.parentNode===i){var u=Vr(n);if(mo=i,fo=n,ho=fo.parentNode,go=fo.nextSibling,vo=n,So=a.group,oi.dragged=fo,ko={target:fo,clientX:(t||e).clientX,clientY:(t||e).clientY},Io=ko.clientX-u.left,No=ko.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,fo.style["will-change"]="all",r=function(){lo("delayEnded",o,{evt:e}),oi.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Sr&&o.nativeDraggable&&(fo.draggable=!0),o._triggerDragStart(e,t),co({sortable:o,name:"choose",originalEvent:e}),Br(fo,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){$r(fo,e.trim(),si)})),Dr(s,"dragover",ni),Dr(s,"mousemove",ni),Dr(s,"touchmove",ni),Dr(s,"mouseup",o._onDrop),Dr(s,"touchend",o._onDrop),Dr(s,"touchcancel",o._onDrop),Sr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,fo.draggable=!0),lo("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(xr||Cr))r();else{if(oi.eventCanceled)return void this._onDrop();Dr(s,"mouseup",o._disableDelayedDrag),Dr(s,"touchend",o._disableDelayedDrag),Dr(s,"touchcancel",o._disableDelayedDrag),Dr(s,"mousemove",o._delayedDragTouchMoveHandler),Dr(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Dr(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){fo&&si(fo),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ir(e,"mouseup",this._disableDelayedDrag),Ir(e,"touchend",this._disableDelayedDrag),Ir(e,"touchcancel",this._disableDelayedDrag),Ir(e,"mousemove",this._delayedDragTouchMoveHandler),Ir(e,"touchmove",this._delayedDragTouchMoveHandler),Ir(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Dr(document,"pointermove",this._onTouchMove):Dr(document,t?"touchmove":"mousemove",this._onTouchMove):(Dr(fo,"dragend",this),Dr(mo,"dragstart",this._onDragStart));try{document.selection?pi((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Lo=!1,mo&&fo){lo("dragStarted",this,{evt:t}),this.nativeDraggable&&Dr(document,"dragover",ri);var n=this.options;!e&&Br(fo,n.dragClass,!1),Br(fo,n.ghostClass,!0),oi.active=this,e&&this._appendGhost(),co({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Eo){this._lastX=Eo.clientX,this._lastY=Eo.clientY,ei();var e=document.elementFromPoint(Eo.clientX,Eo.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Eo.clientX,Eo.clientY),e===t)break;t=e}if(fo.parentNode[to]._isOutsideThisEl(e),t)do{if(t[to]){var n=void 0;if(n=t[to]._onDragOver({clientX:Eo.clientX,clientY:Eo.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ti()}},_onTouchMove:function(e){if(ko){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=po&&Fr(po,!0),a=po&&i&&i.a,s=po&&i&&i.d,u=Go&&Bo&&Gr(Bo),l=(o.clientX-ko.clientX+r.x)/(a||1)+(u?u[0]-zo[0]:0)/(a||1),c=(o.clientY-ko.clientY+r.y)/(s||1)+(u?u[1]-zo[1]:0)/(s||1);if(!oi.active&&!Lo){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(po){i?(i.e+=l-(To||0),i.f+=c-(Do||0)):i={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Lr(po,"webkitTransform",f),Lr(po,"mozTransform",f),Lr(po,"msTransform",f),Lr(po,"transform",f),To=l,Do=c,Eo=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!po){var e=this.options.fallbackOnBody?document.body:mo,t=Vr(fo,!0,Go,!0,e),n=this.options;if(Go){Bo=e;while("static"===Lr(Bo,"position")&&"none"===Lr(Bo,"transform")&&Bo!==document)Bo=Bo.parentNode;Bo!==document.body&&Bo!==document.documentElement?(Bo===document&&(Bo=jr()),t.top+=Bo.scrollTop,t.left+=Bo.scrollLeft):Bo=jr(),zo=Gr(Bo)}po=fo.cloneNode(!0),Br(po,n.ghostClass,!1),Br(po,n.fallbackClass,!0),Br(po,n.dragClass,!0),Lr(po,"transition",""),Lr(po,"transform",""),Lr(po,"box-sizing","border-box"),Lr(po,"margin",0),Lr(po,"top",t.top),Lr(po,"left",t.left),Lr(po,"width",t.width),Lr(po,"height",t.height),Lr(po,"opacity","0.8"),Lr(po,"position",Go?"absolute":"fixed"),Lr(po,"zIndex","100000"),Lr(po,"pointerEvents","none"),oi.ghost=po,e.appendChild(po),Lr(po,"transform-origin",Io/parseInt(po.style.width)*100+"% "+No/parseInt(po.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;lo("dragStart",this,{evt:e}),oi.eventCanceled?this._onDrop():(lo("setupClone",this),oi.eventCanceled||(bo=eo(fo),bo.draggable=!1,bo.style["will-change"]="",this._hideClone(),Br(bo,this.options.chosenClass,!1),oi.clone=bo),n.cloneId=pi((function(){lo("clone",n),oi.eventCanceled||(n.options.removeCloneOnHide||mo.insertBefore(bo,fo),n._hideClone(),co({sortable:n,name:"clone"}))})),!t&&Br(fo,o.dragClass,!0),t?(Fo=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ir(document,"mouseup",n._onDrop),Ir(document,"touchend",n._onDrop),Ir(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,fo)),Dr(document,"drop",n),Lr(fo,"transform","translateZ(0)")),Lo=!0,n._dragStartId=pi(n._dragStarted.bind(n,t,e)),Dr(document,"selectstart",n),Ao=!0,Or&&Lr(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,s=this.options,u=s.group,l=oi.active,c=So===u,f=s.sort,d=Oo||l,h=this,p=!1;if(!Ho){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Pr(a,s.draggable,i,!0),T("dragOver"),oi.eventCanceled)return p;if(fo.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return I(!1);if(Fo=!1,l&&!s.disabled&&(c?f||(r=!mo.contains(fo)):Oo===this||(this.lastPutMode=So.checkPull(this,l,fo,e))&&u.checkPut(this,l,fo,e))){if(o="vertical"===this._getDirection(e,a),t=Vr(fo),T("dragOverValid"),oi.eventCanceled)return p;if(r)return ho=mo,D(),this._hideClone(),T("revert"),oi.eventCanceled||(go?mo.insertBefore(fo,go):mo.appendChild(fo)),I(!0);var m=Ur(i,s.draggable);if(!m||li(e,o,this)&&!m.animated){if(m===fo)return I(!1);if(m&&i===e.target&&(a=m),a&&(n=Vr(a)),!1!==ai(mo,i,fo,t,a,n,e,!!a))return D(),i.appendChild(fo),ho=i,N(),I(!0)}else if(a.parentNode===i){n=Vr(a);var g,v,b=0,y=fo.parentNode!==i,w=!Jo(fo.animated&&fo.toRect||t,a.animated&&a.toRect||n,o),_=o?"top":"left",C=zr(a,"top","top")||zr(fo,"top","top"),x=C?C.scrollTop:void 0;if(Po!==a&&(g=n[_],jo=!1,Vo=!w&&s.invertSwap||y),b=ci(e,a,n,o,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Vo,Po===a),0!==b){var S=Wr(fo);do{S-=b,v=ho.children[S]}while(v&&("none"===Lr(v,"display")||v===po))}if(0===b||v===a)return I(!1);Po=a,Mo=b;var O=a.nextElementSibling,k=!1;k=1===b;var E=ai(mo,i,fo,t,a,n,e,k);if(!1!==E)return 1!==E&&-1!==E||(k=1===E),Ho=!0,setTimeout(ui,30),D(),k&&!O?i.appendChild(fo):a.parentNode.insertBefore(fo,k?O:a),C&&Qr(C,0,x-C.scrollTop),ho=fo.parentNode,void 0===g||Vo||(Ro=Math.abs(g-Vr(a)[_])),N(),I(!0)}if(i.contains(fo))return I(!1)}return!1}function T(s,u){lo(s,h,vr({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:a,completed:I,onMove:function(n,r){return ai(mo,i,fo,t,n,Vr(n),e,r)},changed:N},u))}function D(){T("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function I(t){return T("dragOverCompleted",{insertion:t}),t&&(c?l._hideClone():l._showClone(h),h!==d&&(Br(fo,Oo?Oo.options.ghostClass:l.options.ghostClass,!1),Br(fo,s.ghostClass,!0)),Oo!==h&&h!==oi.active?Oo=h:h===oi.active&&Oo&&(Oo=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){T("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===fo&&!fo.animated||a===i&&!a.animated)&&(Po=null),s.dragoverBubble||e.rootEl||a===document||(fo.parentNode[to]._isOutsideThisEl(e.target),!t&&ni(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function N(){_o=Wr(fo),xo=Wr(fo,s.draggable),co({sortable:h,name:"change",toEl:i,newIndex:_o,newDraggableIndex:xo,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ir(document,"mousemove",this._onTouchMove),Ir(document,"touchmove",this._onTouchMove),Ir(document,"pointermove",this._onTouchMove),Ir(document,"dragover",ni),Ir(document,"mousemove",ni),Ir(document,"touchmove",ni)},_offUpEvents:function(){var e=this.el.ownerDocument;Ir(e,"mouseup",this._onDrop),Ir(e,"touchend",this._onDrop),Ir(e,"pointerup",this._onDrop),Ir(e,"touchcancel",this._onDrop),Ir(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;_o=Wr(fo),xo=Wr(fo,n.draggable),lo("drop",this,{evt:e}),ho=fo&&fo.parentNode,_o=Wr(fo),xo=Wr(fo,n.draggable),oi.eventCanceled||(Lo=!1,Vo=!1,jo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mi(this.cloneId),mi(this._dragStartId),this.nativeDraggable&&(Ir(document,"drop",this),Ir(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Or&&Lr(document.body,"user-select",""),Lr(fo,"transform",""),e&&(Ao&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),po&&po.parentNode&&po.parentNode.removeChild(po),(mo===ho||Oo&&"clone"!==Oo.lastPutMode)&&bo&&bo.parentNode&&bo.parentNode.removeChild(bo),fo&&(this.nativeDraggable&&Ir(fo,"dragend",this),si(fo),fo.style["will-change"]="",Ao&&!Lo&&Br(fo,Oo?Oo.options.ghostClass:this.options.ghostClass,!1),Br(fo,this.options.chosenClass,!1),co({sortable:this,name:"unchoose",toEl:ho,newIndex:null,newDraggableIndex:null,originalEvent:e}),mo!==ho?(_o>=0&&(co({rootEl:ho,name:"add",toEl:ho,fromEl:mo,originalEvent:e}),co({sortable:this,name:"remove",toEl:ho,originalEvent:e}),co({rootEl:ho,name:"sort",toEl:ho,fromEl:mo,originalEvent:e}),co({sortable:this,name:"sort",toEl:ho,originalEvent:e})),Oo&&Oo.save()):_o!==wo&&_o>=0&&(co({sortable:this,name:"update",toEl:ho,originalEvent:e}),co({sortable:this,name:"sort",toEl:ho,originalEvent:e})),oi.active&&(null!=_o&&-1!==_o||(_o=wo,xo=Co),co({sortable:this,name:"end",toEl:ho,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){lo("nulling",this),mo=fo=ho=po=go=bo=vo=yo=ko=Eo=Ao=_o=xo=wo=Co=Po=Mo=Oo=So=oi.dragged=oi.ghost=oi.clone=oi.active=null,Uo.forEach((function(e){e.checked=!0})),Uo.length=To=Do=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":fo&&(this._onDragOver(e),ii(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)e=n[r],Pr(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||di(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var o=n.children[r];Pr(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Pr(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=so.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Qo(n)},destroy:function(){lo("destroy",this);var e=this.el;e[to]=null,Ir(e,"mousedown",this._onTapStart),Ir(e,"touchstart",this._onTapStart),Ir(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ir(e,"dragover",this),Ir(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),$o.splice($o.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!yo){if(lo("hideClone",this),oi.eventCanceled)return;Lr(bo,"display","none"),this.options.removeCloneOnHide&&bo.parentNode&&bo.parentNode.removeChild(bo),yo=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(yo){if(lo("showClone",this),oi.eventCanceled)return;mo.contains(fo)&&!this.options.group.revertClone?mo.insertBefore(bo,fo):go?mo.insertBefore(bo,go):mo.appendChild(bo),this.options.group.revertClone&&this.animate(fo,bo),Lr(bo,"display",""),yo=!1}}else this._hideClone()}},Wo&&Dr(document,"touchmove",(function(e){(oi.active||Lo)&&e.cancelable&&e.preventDefault()})),oi.utils={on:Dr,off:Ir,css:Lr,find:$r,is:function(e,t){return!!Pr(e,t,e,!1)},extend:Kr,throttle:Jr,closest:Pr,toggleClass:Br,clone:eo,index:Wr,nextTick:pi,cancelNextTick:mi,detectDirection:Xo,getChild:Hr},oi.get=function(e){return e[to]},oi.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(oi.utils=vr({},oi.utils,e.utils)),so.mount(e)}))},oi.create=function(e,t){return new oi(e,t)},oi.version=wr;var gi,vi,bi,yi,wi,_i,Ci=[],xi=!1;function Si(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Dr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Dr(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Dr(document,"touchmove",this._handleFallbackAutoScroll):Dr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ir(document,"dragover",this._handleAutoScroll):(Ir(document,"pointermove",this._handleFallbackAutoScroll),Ir(document,"touchmove",this._handleFallbackAutoScroll),Ir(document,"mousemove",this._handleFallbackAutoScroll)),ki(),Oi(),Zr()},nulling:function(){wi=vi=gi=xi=_i=bi=yi=null,Ci.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(wi=e,t||xr||Cr||Or){Ei(e,this.options,i,t);var a=Yr(i,!0);!xi||_i&&r===bi&&o===yi||(_i&&ki(),_i=setInterval((function(){var i=Yr(document.elementFromPoint(r,o),!0);i!==a&&(a=i,Oi()),Ei(e,n.options,i,t)}),10),bi=r,yi=o)}else{if(!this.options.bubbleScroll||Yr(i,!0)===jr())return void Oi();Ei(e,this.options,Yr(i,!1),!1)}}},gr(e,{pluginName:"scroll",initializeByDefault:!0})}function Oi(){Ci.forEach((function(e){clearInterval(e.pid)})),Ci=[]}function ki(){clearInterval(_i)}var Ei=Jr((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,u=t.scrollSpeed,l=jr(),c=!1;vi!==n&&(vi=n,Oi(),gi=t.scroll,o=t.scrollFn,!0===gi&&(gi=Yr(n,!0)));var f=0,d=gi;do{var h=d,p=Vr(h),m=p.top,g=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,_=void 0,C=void 0,x=h.scrollWidth,S=h.scrollHeight,O=Lr(h),k=h.scrollLeft,E=h.scrollTop;h===l?(_=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),C=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(_=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX),C=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY));var T=_&&(Math.abs(b-i)<=s&&k+y<x)-(Math.abs(v-i)<=s&&!!k),D=C&&(Math.abs(g-a)<=s&&E+w<S)-(Math.abs(m-a)<=s&&!!E);if(!Ci[f])for(var I=0;I<=f;I++)Ci[I]||(Ci[I]={});Ci[f].vx==T&&Ci[f].vy==D&&Ci[f].el===h||(Ci[f].el=h,Ci[f].vx=T,Ci[f].vy=D,clearInterval(Ci[f].pid),0==T&&0==D||(c=!0,Ci[f].pid=setInterval(function(){r&&0===this.layer&&oi.active._onTouchMove(wi);var t=Ci[this.layer].vy?Ci[this.layer].vy*u:0,n=Ci[this.layer].vx?Ci[this.layer].vx*u:0;"function"===typeof o&&"continue"!==o.call(oi.dragged.parentNode[to],n,t,e,wi,Ci[this.layer].el)||Qr(Ci[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=Yr(d,!1)));xi=c}}),30),Ti=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var u=n||o;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(l.clientX,l.clientY);s(),u&&!u.el.contains(c)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Di(){}function Ii(){}Di.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Hr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ti},gr(Di,{pluginName:"revertOnSpill"}),Ii.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Ti},gr(Ii,{pluginName:"removeOnSpill"});oi.mount(new Si),oi.mount(Ii,Di);var Ni=oi,Ai={name:"ColumnsConfig",props:{listCode:{type:String,default:""}},data:function(){return{columns:[],hasLoaded:!1}},created:function(){},mounted:function(){var e=this;this.listAllColumns().then((function(t){e.columns=t,e.hasLoaded=!0,e.$nextTick((function(){e.dragColumnDisplayOrder()}))}))},methods:{isDisabledShow:function(e){return e.prop&&("$index"===e.prop||"$selection"===e.prop)||!0===e.custom||e.showType&&"false"!==e.showType&&!1===e.show},isDisabledExport:function(e){return e.prop&&("$index"===e.prop||"$selection"===e.prop)||!0===e.custom||e.exportType&&"false"!==e.exportType&&!1===e.exportable},changeShow:function(e,t){e.show=void 0===t||"false"!==t},changeExport:function(e,t){e.exportable=void 0===t||"false"!==t},saveConfig:function(){var e=this,t={settingColumns:this.columns,listCode:this.listCode};this.$http.post(O.a.prototype.baseAPI+"/component/super-grids/setting-columns",t).then((function(t){e.$message({type:"success",message:e.$t("imatrixUIMessage.saveSuccessfully"),showClose:!0}),e.$emit("close",!0)}))},resetConfig:function(){var e=this;this.$confirm(this.$t("superGrid.whetherToConfirmReset"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure"),cancelButtonText:this.$t("imatrixUIPublicModel.cancel"),type:"warning"}).then((function(){var t=O.a.prototype.baseAPI+"/component/super-grids/reset-columns/"+e.listCode;e.$http.delete(t).then((function(){e.$message({type:"success",message:e.$t("superGrid.resetSuccessful"),showClose:!0}),e.listAllColumns().then((function(t){e.columns=t,e.$emit("reset",!0)}))}))}))},listAllColumns:function(){var e=this;return new Promise((function(t,n){var r=O.a.prototype.baseAPI+"/component/super-grids/all-list-columns/"+e.listCode,o=ze.get(e.listCode),i={},a=o.isSql;e.isDragColumn=o.colSetting.isDragColumn,"undefined"!==typeof a&&(i.isSql=a+""),e.$http.post(r,i).then((function(e){t(e)})).catch((function(e){n(e)}))}))},clearDisplayOrder:function(e){e.displayOrderType="default"},clearWidth:function(e){e.widthType="default"},indexAfterTheChangeUpdateDisplayOrder:function(e,t,n,r){if(e&&e.length>0&&null!=t&&void 0!==t&&-1!==t&&null!==n&&void 0!==n&&-1!==n&&r&&""!==r){var o=e[n];if(o.displayOrderType="custom",n>t){var i=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var u=a[s];u.displayOrderType="custom",u[r]=0===s?o[r]:a[s-1][r]}o[r]=i}else{var l=e[n+1][r],c=e.slice(n+1,t+1);if(c&&c.length>0)for(var f=0;f<c.length;f++){var d=c[f];d.displayOrderType="custom",f===c.length-1?d[r]=o[r]:d[r]=c[f+1][r]}o[r]=l}}},dragColumnDisplayOrder:function(){var e=this;if(this.isDragColumn)return new Promise((function(t,n){var r=document.querySelector(".custom-config-elTable .el-table__body-wrapper tbody");if(null!=r){var o=e;Ni.create(r,{onEnd:function(e){var t=e.newIndex,n=e.oldIndex;if(null!==n&&void 0!==n&&-1!==n&&null!==t&&void 0!==t&&-1!==t)if(n>t){if(o.columns&&o.columns.length>0){for(var r=o.columns[n],i=n-1;i>=t;i--){var a=o.columns[i];a.displayOrderType="custom",o.columns[i+1]=a}o.columns[t]=r}}else if(o.columns&&o.columns.length>0){for(var s=o.columns[n],u=n+1;u<=t;u++){var l=o.columns[u];l.displayOrderType="custom",o.columns[u-1]=l}o.columns[t]=s}console.log("config拖动字段",o.columns),console.log("config拖动字段oldIndex",n),console.log("config拖动字段newIndex",t),o.hasLoaded=!1,setTimeout((function(){o.hasLoaded=!0,o.$nextTick((function(){o.indexAfterTheChangeUpdateDisplayOrder(o.columns,n,t,"displayOrder"),o.dragColumnDisplayOrder()}))}),100)}})}}))}}},Pi=Ai,Mi=f(Pi,dr,hr,!1,null,null,null),Ri=Mi.exports,Bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.searchConditions.length>0?n("search-condition-list",{ref:"searchConditionList",attrs:{"search-type":e.searchType,"search-conditions":e.searchConditions},on:{"remove-condition":e.removeCondition,"select-condition":e.selectCondition}}):e._e(),"normal"===e.searchType?n("search-form-ordinarySearch",{ref:"searchFormOrdinarySearch",attrs:{"searchable-columns":e.searchableColumns,"search-form":e.searchForm,"field-num":e.fieldNum,"label-width":e.labelWidth,query:e.query,code:e.code,"row-num":e.rowNum,"span-num":e.spanNum,rules:e.rules,"is-sql":e.isSql},on:{"submit-form":function(t){return e.submitForm("searchForm")},"reset-form":function(t){return e.resetForm("searchForm")},"save-condition":function(t){return e.saveCondition()},"open-fold":e.openFold}}):e._e(),"advanced"===e.searchType?n("search-form-advancedQuery",{ref:"searchFormAdvancedQuery",staticStyle:{"padding-bottom":"10px"},attrs:{code:e.code,"searchable-columns":e.advancedQueryColumns,"search-form-list":e.searchFormList,"prop-map":e.propMap,"is-sql":e.isSql},on:{resetForm:e.resetSearchFormList}}):e._e(),"advanced"===e.searchType?n("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px","text-align":"center"}},[n("el-button",{attrs:{loading:e.loading,type:"primary",size:"mini"},on:{click:function(t){return e.submitForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,size:"mini"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),n("el-button",{attrs:{size:"mini"},on:{click:e.saveCondition}},[e._v("\n "+e._s(e.$t("superGrid.saveCondition"))+"\n ")]),null!==e.advancedQuery&&void 0!==e.advancedQuery&&!0===e.advancedQuery&&null!==e.normalQuery&&void 0!==e.normalQuery&&!0===e.normalQuery?n("span",{staticStyle:{"margin-left":"10px"}},["advanced"===e.searchType?n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.searchType="normal"}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.switchToNormalQuery"))+"\n ")]):e._e(),"normal"===e.searchType?n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.searchType="advanced"}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.switchToAdvancedQuery"))+"\n ")]):e._e()],1):e._e()],1):e._e(),e.isShowSearchCondition?n("search-condition-input",{on:{close:e.saveConditionValue}}):e._e()],1)},Li=[],Fi=(n("4f7f"),{packageSearchParam:function(){var e=this;if("normal"!==this.searchType&&this.searchType&&null!==this.searchType&&void 0!==this.searchType&&""!==this.searchType){var t=[];return this.searchFormList.forEach((function(n){var r={};r=n;var o=r.orgProp,i="__";if(o&&o.indexOf(i)>0&&(o=o.replace(i,".")),r.propName=o,r.operator=e.getOperator(n),r.matchingType=n.queryMatching,"DATE"===r.dataType||"TIME"===r.dataType){var a=r.value;null!==a&&2===a.length&&null!==a[0]&&null!==a[1]&&(r.startValue=a[0],r.endValue=a[1])}else if("INTEGER"===r.dataType||"LONG"===r.dataType){var s=r.value;s&&(!Array.isArray(s)||s.length<2||null===s[0]&&null===s[1]?Array.isArray(s)?s.length<2?r.propValue=s[0]:null===s[0]?r.propValue=s[1]:null===s[1]&&(r.propValue=s[0]):r.propValue=s:(r.startValue=s[0],r.endValue=s[1]))}else if(r.componentType&&-1!==r.componentType.indexOf("Tree")&&-1===r.componentType.indexOf("single")){var u=e.isUserTree(r.componentType),l=r.value;if(l&&""!==l){var c=[],f=l;f=Array.isArray(l)?l:l.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(u,t);void 0!==n&&null!==n&&c.push(n)})),e.packageValueWithArray(c,t,n)}}else if(r.componentType&&-1!==r.componentType.indexOf("Tree")){var d=e.isUserTree(r.componentType),h=r.value;h=e.getUserName(d,h),e.packageValueWithArray(h,t,n)}else if("multiselect"===r.componentType){var p=r.value;e.packageValueWithArray(p,t,n)}else{var m=r.value;e.packageValueWithArray(m,t,n)}})),t}var n=[];return this.searchableColumns.forEach((function(t){var r={leftBracket:"",rightBracket:"",joinSign:"and"},o=t.orgProp,i="__";o&&o.indexOf(i)>0&&(o=o.replace(i,".")),r.propName=o,r.enumName=t.enumName,r.operator=e.getOperator(t),r.dataType=t.dataType,r.matchingType=t.queryMatching,r.formatter=t.formatter?JSON.parse(JSON.stringify(t.formatter)):t.formatter;var a=e.getFormItemValue(t.prop);if("DATE"===t.dataType||"TIME"===t.dataType){if(null!==a&&2===a.length&&null!==a[0]&&null!==a[1]){var s=e.getDateTimeSearchFormatter(t,t.dataType,t.formatter);s&&(r.formatter?r.formatter.options||(r.formatter.options={}):(r.formatter={},r.formatter.options={}),r.formatter.options.format=s),r.startValue=e.getDateTimeMillsByDateStr(a[0],s),r.endValue=e.getDateTimeMillsByDateStr(a[1],s),n.push(r)}}else if("INTEGER"!==t.dataType&&"LONG"!==t.dataType&&"DOUBLE"!==t.dataType||!Array.isArray(a))if(t.componentType&&-1!==t.componentType.indexOf("Tree")&&-1===t.componentType.indexOf("single")){var u=e.isUserTree(t.componentType),l=e.getFormItemValue(t.prop);if(l&&""!==l){var c=[],f=l;f=Array.isArray(l)?l:l.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(u,t);void 0!==n&&null!==n&&c.push(n)})),e.packageValueWithArray(c,n,r)}}else if(t.componentType&&-1!==t.componentType.indexOf("Tree")){var d=e.isUserTree(t.componentType),h=e.getFormItemValue(t.prop);h=e.getUserName(d,h),e.packageValueWithArray(h,n,r)}else if("multiselect"===t.componentType){var p=e.getFormItemValue(t.prop);e.packageValueWithArray(p,n,r)}else{var m=e.getFormItemValue(t.prop);e.packageValueWithArray(m,n,r)}else a&&("yearRange"===t.componentType?(a[0]||a[1])&&(r.startValue=a[0],r.endValue=a[1],a[0]&&!a[1]?(r.startValue=a[0],r.endValue=9999):!a[0]&&a[1]&&(r.startValue=0,r.endValue=a[1]),n.push(r)):!Array.isArray(a)||a.length<2||null===a[0]&&null===a[1]?Array.isArray(a)?a.length<2?(r.propValue=a[0],n.push(r)):null===a[0]?(r.propValue=a[1],n.push(r)):null===a[1]&&(r.propValue=a[0],n.push(r)):(r.propValue=a,n.push(r)):(r.startValue=a[0],r.endValue=a[1],n.push(r)))})),n},getDateTimeSearchFormatter:function(e,t,n){var r,o="yyyy-MM-dd HH:mm:ss",i="yyyy-m-d";if("dateSection"===e.componentType?r=i:"dateTimePicker"===e.componentType?r=o:"DATE"!==e.dataType&&"date"!==e.componentType||(r=i),!r&&n){var a=n.options;a&&null!=a&&(r=a.format)}return r||("DATE"===t?r="yyyy-m-d":"TIME"===t&&(r="yyyy-m-d hh:mm:ss")),r},getDateTimeMillsByDateStr:function(e,t){return"string"===typeof e&&t&&(t=t.toLowerCase(),e=t.indexOf("h")>0&&t.indexOf("m")>0&&t.indexOf("s")>0?new Date(e).getTime():new Date(e+" 00:00:00").getTime()),e},isUserTree:function(e){return e.indexOf("DeptManTree")>0||e.indexOf("WgManTree")>0},getUserName:function(e,t){return e&&void 0!==t&&null!==t&&t.indexOf("(")>0&&t.indexOf(")")>0&&(t=t.substring(0,t.indexOf("("))),t},getOperator:function(e){return("TEXT"===e.dataType||"CLOB"===e.dataType)&&e.fuzzy&&(!e.componentType||e.componentType&&("select"!==e.componentType&&"multiselect"!==e.componentType||"multiselect"===e.componentType&&void 0!==e.ifMultiData&&!0===e.ifMultiData))?"CONTAIN":Array.isArray(this.getFormItemValue(e.prop))&&("INTEGER"===e.dataType||"LONG"===e.dataType||"DOUBLE"===e.dataType)?"BETWEEN":"EQ"},getFormItemValue:function(e,t){if(e.indexOf(".")>0){var n=this.getParentObject(e);return null!=t&&void 0!==t?n[e.substring(e.lastIndexOf(".")+1)][t]:n[e.substring(e.lastIndexOf(".")+1)]}return null!=t&&void 0!==t?this.searchForm[e][t]:this.searchForm[e]},getParentObject:function(e){var t=e.split(".");if(1===t.length)return this.searchForm;for(var n,r=0;r<t.length-1;r++)n=this.searchForm[t[r]];return n},packageValueWithArray:function(e,t,n){if(e&&Array.isArray(e)){var r=e,o=0;r.forEach((function(e){var i=Object.assign({},n);i.joinSign="or",0===o&&(i.leftBracket="1"),o===r.length-1&&(i.rightBracket="1",i.joinSign="and"),i.propValue=e,void 0!==e&&null!==e&&t.push(i),o++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))},saveSearchCondition:function(e){return this.$http.post(O.a.prototype.baseAPI+"/component/super-grids/search-conditions",e)},listSearchCondition:function(e){return this.$http.get(O.a.prototype.baseAPI+"/component/super-grids/search-condition-list/"+e)},removeSearchCondition:function(e){return this.$http.delete(O.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)},getSearchCondition:function(e){return this.$http.get(O.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)}}),$i=Fi,ji=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.searchableColumns.length>0?n("el-form",{ref:"searchForm",staticClass:"grid-search-form",attrs:{model:e.searchForm,rules:e.rules,"label-position":"right",size:"small"}},[n("search-form-open",{ref:"searchFormContent",attrs:{"searchable-columns":e.searchableColumns,"search-form":e.searchForm,code:e.code,"is-sql":e.isSql,"table-name":e.tableName,"is-join-table":e.isJoinTable,"span-num":e.spanNum,"field-num":e.fieldNum,"row-num":e.rowNum,"is-open":e.isOpen},on:{"submit-form":function(t){return e.$emit("submit-form")},"reset-form":function(t){return e.$emit("reset-form")},"save-condition":function(t){return e.$emit("save-condition")},"open-fold":e.openFold}})],1):e._e()],1)},Vi=[],zi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"grid-search-row"},e._l(e.rowNum,(function(t){return n("el-row",{directives:[{name:"show",rawName:"v-show",value:e.myOpen||1===t,expression:"myOpen || r === 1"}],key:t},e._l(e.fieldNum,(function(r){return n("el-col",{key:r,attrs:{xs:e.spanNum,sm:e.spanNum,md:e.spanNum,lg:e.spanNum,xl:e.spanNum}},[e.fieldNum*(t-1)+(r-1)<e.searchableColumns.length?[n("search-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.myOpen&&1===t&&r<e.fieldNum||e.myOpen,expression:"(!myOpen && r===1 && n < fieldNum) || (myOpen)"}],attrs:{"search-form":e.searchForm,column:e.searchableColumns[e.fieldNum*(t-1)+(r-1)],code:e.code,"is-sql":e.isSql,"table-name":e.tableName,"is-join-table":e.isJoinTable}})]:e._e(),!e.myOpen&&1===t&&r===e.fieldNum||e.myOpen&&!e.isButtonNewRow&&t===e.rowNum&&r===e.fieldNum?n("search-button",{ref:"searchBtnOpen",refInFor:!0,attrs:{"is-open":e.myOpen},on:{"submit-form":function(t){return e.$emit("submit-form")},"reset-form":function(t){return e.$emit("reset-form")},"save-condition":function(t){return e.$emit("save-condition")},"open-fold":e.openFold}}):e._e()],2)})),1)})),1),e.isShowNewBtnRow?n("el-row",[n("el-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[n("search-button",{ref:"searchBtnOpen",attrs:{"is-open":e.myOpen},on:{"submit-form":function(t){return e.$emit("submit-form")},"reset-form":function(t){return e.$emit("reset-form")},"save-condition":function(t){return e.$emit("save-condition")},"open-fold":e.openFold}})],1)],1):e._e()],1)},Hi=[],Ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{prop:e.column.prop,"label-width":"112px"},scopedSlots:e._u([{key:"label",fn:function(){return[e.column.searchLabel&&""!==e.column.searchLabel?n("span",{attrs:{title:e.column.searchLabel.replace(/\\n/g,"</br>")},domProps:{innerHTML:e._s(e.column.searchLabel.replace(/\\n/g,"</br>"))}}):n("span",{attrs:{title:e.column.label.replace(/\\n/g,"</br>")},domProps:{innerHTML:e._s(e.column.label.replace(/\\n/g,"</br>"))}})]},proxy:!0}])},[!0===e.customComponent(e.column)?n("span",[n(e.column.componentName,{ref:e.column.componentName,tag:"component",staticClass:"customComponent",attrs:{"select-options":e.column.valueSet,prop:e.column.prop,value:e.getFormItemValue(e.column.prop),row:e.searchForm,entity:e.searchForm},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,e.column.componentName)}}})],1):"dateSection"===e.column.componentType?n("span",[n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop,0),type:"date",placeholder:e.$t("imatrixUIMessage.startDate")},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,null,0)}}}),n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop,1),type:"date",placeholder:e.$t("imatrixUIMessage.endDate")},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,null,1)}}})],1):"yearRange"===e.column.componentType?n("year-range-picker",{attrs:{value:e.getFormItemValue(e.column.prop),type:"yearRange"},on:{change:function(t){return e.setYearRangeValue(e.column.prop,t)}}}):"dateTimePicker"===e.column.componentType?n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop),"default-time":e.getDefaultTime(e.column),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd HH:mm:ss"},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):"DATE"===e.column.dataType||"date"===e.column.componentType?n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop),type:"daterange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd"},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):"TIME"===e.column.dataType&&"timepicker"===e.column.componentType?n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"HH:mm:ss"},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):"timepicker"===e.column.componentType&&"TIME"!==e.column.dataType&&"DATE"!==e.column.dataType?n("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":"HH:mm:ss",value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.componentTypeTypeIsTree(e.column.componentType)?n("organization-input",{attrs:{value:e.getFormItemValue(e.column.prop),fields:e.getTreeFields(e.column.orgTreeSet),models:e.searchForm,multiple:e.getTreeIsMultiTree(e.column.componentType),"tree-type":e.getTreeType(e.column.componentType)},on:{setValue:e.organizationInputEvent,clear:e.clearOrganizationInputEvent}}):(e.column.componentType&&"select"===e.column.componentType||"BOOLEAN"===e.column.dataType)&&!e.isDynamicDataSourceSource(e.column)?n("el-select",{style:e.column.searchControlWidth,attrs:{clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}},e._l(e.column.valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.column.componentType&&"multiselect"===e.column.componentType&&!e.isDynamicDataSourceSource(e.column)?n("el-select",{style:e.column.searchControlWidth,attrs:{clearable:"",multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}},e._l(e.column.valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.column.componentType&&("multiselect"===e.column.componentType||"select"===e.column.componentType)&&e.isDynamicDataSourceSource(e.column)?n("dynamic-source-select",{attrs:{value:e.getFormItemValue(e.column.prop),"base-props":{multiple:"multiselect"===e.column.componentType},entity:e.searchForm,options:e.getDynamicDataSourceOptions(e.column),"table-name":e.tableName,"is-join-table":e.isJoinTable,"list-code":e.code},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.column.componentType&&"inputNumber"===e.column.componentType?n("search-form-number",{on:{setValue:e.setNumberValue}}):e.column.componentType&&"switch"===e.column.componentType?n("el-switch",{style:e.column.searchControlWidth,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.column.componentType&&"slider"===e.column.componentType?n("el-slider",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.column.componentType&&"rate"===e.column.componentType?n("el-rate",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):n("el-input",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitForm("searchForm")}}})],1)},Wi=[],Gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),n("span",[e._v("---")]),n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},qi=[],Yi={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data:function(){return{number1:null,number2:null}},methods:{setValue:function(){this.$emit("setValue",[this.number1,this.number2],this.r,this.n)}}},Ki=Yi,Xi=f(Ki,Gi,qi,!1,null,null,null),Ji=Xi.exports;function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ea={name:"SearchFormItem",components:{searchFormNumber:Ji},props:{column:{type:Object,default:null},code:{type:String,default:null},isSql:{type:Boolean,default:!1},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},searchForm:{type:Object,default:null}},data:function(){var e=new Set;return{customComponentNames:e,dateOne:null,dataTwo:null}},methods:Qi(Qi({},$i),{},{getDynamicDataSourceOptions:function(e){return yt(e,this.isSql)},isDynamicDataSourceSource:function(e){return wt(e)},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var o=this.getParentObject(e);null!=r&&void 0!==r?this.$set(o[e.substring(e.lastIndexOf(".")+1)],r,t):o[e.substring(e.lastIndexOf(".")+1)]=t}else null!=r&&void 0!==r?this.$set(this.searchForm[e],r,t):this.searchForm[e]=t},componentTypeTypeIsTree:function(e){if(e){if(e.indexOf("DeptManTree")>0)return!0;if(e.indexOf("DeptTree")>0)return!0;if(e.indexOf("WgManTree")>0)return!0;if(e.indexOf("WgManTree")>0)return!0}return!1},getTreeFields:function(e){if(e&&""!==e){var t=JSON.parse(e);if(t.length)return t;if(t.orgTreeSetArr)return t.orgTreeSetArr}},getTreeIsMultiTree:function(e){return!(e&&e.indexOf("single")>=0&&e.indexOf("Tree")>0)},getTreeType:function(e){if(e){if(e.indexOf("DeptManTree")>0)return"DeptUserTree";if(e.indexOf("DeptTree")>0)return"DeptTree";if(e.indexOf("WgTree")>0)return"WgTree";if(e.indexOf("WgManTree")>0)return"WgUserTree"}},organizationInputEvent:function(e,t){e&&this.$set(this.searchForm,e,t)},clearOrganizationInputEvent:function(e){e&&this.$set(this.searchForm,e,null)},customComponent:function(e){var t=ze.get(this.code);if(e.componentName&&""!==e.componentName)return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||""===e.componentName)&&t.options&&t.options.search&&t.options.search.customSearchElements){var n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;var r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),O.a.component(e.componentName,r),!0}}return!1},setNumberValue:function(e,t,n){var r=this.getFormItemValue(this.column.prop);r=e,this.setValueToModelProp(this.column.prop,r)},setYearRangeValue:function(e,t){this.$set(this.searchForm[e],0,t[0]),this.$set(this.searchForm[e],1,t[1])},getDefaultTime:function(e){if(e["valueSetOptions"]){var t=JSON.parse(e["valueSetOptions"]);return t.defaultTime?[t.defaultTime,t.defaultTime]:["00:00:00"]}return["00:00:00"]}})},ta=ea,na=f(ta,Ui,Wi,!1,null,"5d50b286",null),ra=na.exports,oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("save-condition")}}},[e._v("\n "+e._s(e.$t("superGrid.saveCondition"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,size:"small"},on:{click:e.resetForm}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("\n "+e._s(e.$t("imatrixUIMessage.search"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"text",icon:e.isMyOpen?"el-icon-caret-top":"el-icon-caret-bottom"},on:{click:e.openFold}},[e._v("\n "+e._s(e.isMyOpen?e.$t("superGrid.fold"):e.$t("superGrid.open"))+"\n ")])],1)},ia=[],aa={name:"SearchButton",props:{isOpen:{type:Boolean,default:!1}},data:function(){var e=this.isOpen;return{isMyOpen:e,loading:!1}},methods:{openFold:function(){this.isMyOpen=!this.isMyOpen,this.$emit("open-fold",this.isMyOpen)},submitForm:function(){this.loading=!0,this.$emit("submit-form")},resetForm:function(){this.loading=!0,this.$emit("reset-form")},searchComplete:function(){this.loading=!1}}},sa=aa,ua=f(sa,oa,ia,!1,null,"69b96bdc",null),la=ua.exports;function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var da={name:"SearchFormOpen",components:{SearchFormItem:ra,SearchButton:la},props:{searchableColumns:{type:Array,default:null},searchForm:{type:Object,default:null},code:{type:String,default:null},isSql:{type:Boolean,default:!1},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},spanNum:{type:Number,default:8},fieldNum:{type:Number,default:null},rowNum:{type:Number,default:null},isOpen:{type:Boolean,default:!1}},data:function(){var e=!1,t=!1;(this.searchableColumns.length%this.fieldNum===0||this.rowNum>6)&&(e=!0,t=!0),e&&!n&&(t=!1);var n=this.isOpen;return{isButtonNewRow:e,isShowNewBtnRow:t,myOpen:n}},watch:{myOpen:function(){this.isButtonNewRow&&(this.myOpen?this.isShowNewBtnRow=!0:this.isShowNewBtnRow=!1)}},methods:fa(fa({},$i),{},{openFold:function(e){this.myOpen=e,this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchBtnOpen&&(Array.isArray(this.$refs.searchBtnOpen)?this.$refs.searchBtnOpen.length>0&&this.$refs.searchBtnOpen[0].searchComplete():this.$refs.searchBtnOpen.searchComplete())}})},ha=da,pa=(n("fd77"),f(ha,zi,Hi,!1,null,"44ee7f15",null)),ma=pa.exports;function ga(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=va(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function va(e,t){if(e){if("string"===typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ba(e,t):void 0}}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _a={name:"SearchForm",components:{SearchFormOpen:ma},props:{searchableColumns:{type:Array,default:null},searchForm:{type:Object,default:null},fieldNum:{type:Number,default:null},rules:{type:Object,default:null},labelWidth:{type:String,default:null},query:{type:Object,default:null},rowNum:{type:Number,default:null},code:{type:String,default:null},isSql:{type:Boolean,default:!1},spanNum:{type:Number,default:8}},data:function(){var e,t,n=ze.get(this.code);n&&n.basicInfo&&n.basicInfo.tableName&&(e=n.basicInfo.tableName),n&&n.basicInfo&&n.basicInfo.hasJoinTable&&(t=n.basicInfo.hasJoinTable);var r=new Set;return{customComponentNames:r,dateOne:null,dataTwo:null,tableName:e,isJoinTable:t,isOpen:!1}},computed:{},watch:{},created:function(){},methods:wa(wa({},$i),{},{validateForm:function(){var e=this;return new Promise((function(t,n){e.$refs.searchForm.validate((function(e){t(e)}))}))},resetForm:function(){var e=this;if(this.customComponentNames&&this.customComponentNames.length>0){var t,n=ga(this.customComponentNames);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.$refs[r][0].resetField()}}catch(o){n.e(o)}finally{n.f()}}this.$refs.searchForm.resetFields(),this.searchableColumns.forEach((function(t){t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?dt(e.searchForm,t.prop):ft(e.searchForm,t.prop):"dateSection"===t.componentType?e.searchForm[t.prop]=[new Date,new Date]:"yearRange"===t.componentType?(e.$set(e.searchForm[t.prop],0,""),e.$set(e.searchForm[t.prop],1,"")):e.searchForm[t.prop]=null}))},openFold:function(e){this.isOpen=e,this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchFormContent&&this.$refs.searchFormContent.searchComplete()}})},Ca=_a,xa=(n("2620"),f(Ca,ji,Vi,!1,null,"f1fa8e36",null)),Sa=xa.exports,Oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.$t("superGrid.saveConditionTitle"),"close-on-click-modal":!1,"append-to-body":""},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}},scopedSlots:e._u([{key:"footer",fn:function(){return[n("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveCondition}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)]},proxy:!0}])},[n("el-form",{ref:"conditionForm",attrs:{model:e.searchCondition,size:"mini","label-position":"left","label-width":"120px"}},[n("el-form-item",{attrs:{prop:"conditionName",label:e.$t("superGrid.searchConditionName"),rules:[{required:!0,message:this.$t("superGrid.pleaseInputSearchConditionName"),trigger:"blur"}]}},[n("el-input",{attrs:{size:"mini"},model:{value:e.searchCondition.conditionName,callback:function(t){e.$set(e.searchCondition,"conditionName",t)},expression:"searchCondition.conditionName"}})],1)],1)],1)],1)},ka=[],Ea={name:"SearchConditionInput",data:function(){return{searchCondition:{conditionName:null}}},methods:{saveCondition:function(){var e=this;this.$refs["conditionForm"].validate((function(t){if(!t)return!1;e.$emit("close",e.searchCondition.conditionName)}))}}},Ta=Ea,Da=f(Ta,Oa,ka,!1,null,null,null),Ia=Da.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tabs",{attrs:{type:"card"},on:{"tab-remove":e.removeCondition,"tab-click":e.selectCondition},model:{value:e.editConditionId,callback:function(t){e.editConditionId=t},expression:"editConditionId"}},e._l(e.searchConditions,(function(t){return n("el-tab-pane",{key:t.id,attrs:{label:t.name,disabled:t.queryType!==e.pageQueryType,closable:t.queryType===e.pageQueryType,name:t.id+""}})})),1)},Aa=[],Pa={name:"SearchConditionList",components:{},props:{searchConditions:{type:Array,default:null},searchType:{type:String,default:null}},data:function(){var e="FIXED";return this.searchType&&"advanced"===this.searchType&&(e="CUSTOM"),{pageQueryType:e,editConditionId:null}},watch:{searchType:{handler:function(e,t){this.searchType=e,this.pageQueryType="FIXED",e&&"advanced"===e&&(this.pageQueryType="CUSTOM")}}},methods:{removeCondition:function(e){this.$emit("remove-condition",e)},selectCondition:function(e,t){var n=e.name;this.$emit("select-condition",n)}}},Ma=Pa,Ra=f(Ma,Na,Aa,!1,null,null,null),Ba=Ra.exports;function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $a={name:"SearchForm",components:{SearchConditionInput:Ia,SearchConditionList:Ba,searchFormOrdinarySearch:Sa},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null},isSql:{type:Boolean,default:!1},searchFormInfo:{type:Object,default:function(){return{}}}},data:function(){var e=this,t=new Set,n=ze.get(this.code),r={},o={};null!==this.searchParam&&(o=JSON.parse(JSON.stringify(this.searchParam)));var i=this.getSearchableColumns(null,null,r);void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),console.log("searchForm=",i),i.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?dt(o,t.prop):ft(o,t.prop):"dateSection"===t.componentType?o[t.prop]=[new Date,new Date]:"yearRange"===t.componentType?o[t.prop]=["",""]:o[t.prop]=null)}));var a=this.getSpanNum(),s=this.getFieldNumPerRow(),u=Math.ceil(i.length/s),l=this.query.advancedQuery,c=this.query.normalQuery;return{searchForm:o,rules:{},searchParams:[],labelWidth:n.options.search&&n.options.search.labelWidth?n.options.search.labelWidth:"80px",customComponentNames:t,componentName:"",spanNum:a,fieldNum:s,rowNum:u,loading:!1,isShowSearchCondition:!1,searchConditions:[],propMap:r,advancedQuery:l,normalQuery:c,searchFormList:[],searchType:null}},computed:{searchableColumns:function(){return this.getSearchableColumns()},advancedQueryColumns:function(){return this.getAdvancedQueryColumns()}},watch:{searchForm:{deep:!0,handler:function(e){this.$set(this.searchFormInfo,"data",e)}}},created:function(){console.log("加载查询页面",this.searchType),this.listSearchConditions(),this.normalQuery?this.searchType="normal":this.advancedQuery&&(this.searchType="advanced")},methods:Fa(Fa({},$i),{},{getFieldNumPerRow:function(){var e=ze.get(this.code);return e.options.search&&e.options.search.fieldNum?e.options.search.fieldNum:3},getSpanNum:function(){var e=this.getFieldNumPerRow();return 1===e?22:2===e?10:3===e?8:4===e?6:4},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var o=this.getParentObject(e);null!=r&&void 0!==r?this.$set(o[e.substring(e.lastIndexOf(".")+1)],r,t):o[e.substring(e.lastIndexOf(".")+1)]=t}else null!=r&&void 0!==r?this.$set(this.searchForm[e],r,t):this.searchForm[e]=t},getAdvancedQueryColumns:function(e,t,n){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(var r=0;r<e.length;r++){var o=e[r];if(n&&(n[o.prop]=o),"$index"!==o.prop&&"$selection"!==o.prop&&!o.dynamic)if(o.groupHeader)this.getSearchableColumns(o.children,t,n);else if("advanced"===o.queryType&&!o.custom&&""!==o.prop){if("undefined"!==typeof o.componentType&&""!==o.componentType||(o.componentType="input"),o.querySetting&&""!==o.querySetting){var i=JSON.parse(o.querySetting);i.width&&(o.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(o.searchLabelWidth=i.labelWidth+"px"),i.label&&(o.searchLabel=i.label)}o.componentType&&o.componentType.indexOf("custom:")>=0?(o.componentName=o.componentType.substring(o.componentType.indexOf(":")+1),this.customComponentNames.add(o.componentName)):o.componentName="",t.push(o)}}return t},getSearchableColumns:function(e,t,n){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(var r=0;r<e.length;r++){var o=e[r];if(n&&(n[o.prop]=o),"$index"!==o.prop&&"$selection"!==o.prop&&!o.dynamic)if(o.groupHeader)this.getSearchableColumns(o.children,t,n);else if("normal"===o.queryType&&!o.custom&&""!==o.prop){if("undefined"!==typeof o.componentType&&""!==o.componentType||(o.componentType="input"),o.querySetting&&""!==o.querySetting){var i=JSON.parse(o.querySetting);i.width&&(o.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(o.searchLabelWidth=i.labelWidth+"px"),i.label&&(o.searchLabel=i.label)}o.componentType&&o.componentType.indexOf("custom:")>=0?(o.componentName=o.componentType.substring(o.componentType.indexOf(":")+1),this.customComponentNames.add(o.componentName)):o.componentName="",t.push(o)}}return t},customComponent:function(e){var t=ze.get(this.code);if(e.componentName&&""!==e.componentName)return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||""===e.componentName)&&t.options&&t.options.search&&t.options.search.customSearchElements){var n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;var r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),O.a.component(e.componentName,r),!0}}return!1},submitForm:function(){var e=this;"normal"===this.searchType?this.$refs.searchFormOrdinarySearch.validateForm().then((function(t){if(!t)return!1;e.searchParams=e.packageSearchParam(),e.$emit("search",e.searchParams)})):"advanced"===this.searchType&&this.$refs.searchFormAdvancedQuery.validateForm().then((function(t){if(!t)return!1;e.loading=!0,e.searchParams=e.packageSearchParam(),e.$emit("search",e.searchParams)}))},resetForm:function(){this.$refs.searchConditionList&&(this.$refs.searchConditionList.editConditionId=null),"normal"===this.searchType?this.$refs.searchFormOrdinarySearch.resetForm():"advanced"===this.searchType&&this.$refs.searchFormAdvancedQuery.resetForm(),this.$emit("reset")},setNumberValue:function(e,t,n){var r=this.getFormItemValue(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop);r=e,this.setValueToModelProp(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop,r)},listSearchConditions:function(){var e=this;return new Promise((function(t,n){e.listSearchCondition(e.code).then((function(n){e.searchConditions=n,t(n)})).catch((function(e){n(e)}))}))},saveCondition:function(){var e=this.packageSearchParam();e&&0!==e.length?this.isShowSearchCondition=!0:this.$message({type:"warning",message:this.$t("imatrixUIMessage.pleaseInputSearchCondition"),showClose:!0})},saveConditionValue:function(e){var t=this;if(e){var n;n="normal"===this.searchType||""===this.searchType||null===this.searchType||void 0===this.searchType?this.packageSearchParam():this.searchFormList;var r={listCode:this.code,queryType:"normal"===this.searchType||""===this.searchType||null===this.searchType||void 0===this.searchType?"FIXED":"CUSTOM",name:e,queryCondition:JSON.stringify(n)};this.saveSearchCondition(r).then((function(e){t.$message({type:"success",message:t.$t("imatrixUIMessage.saveSuccessfully"),showClose:!0}),t.isShowSearchCondition=!1,t.listSearchConditions().then((function(){t.$refs.searchConditionList&&(t.$refs.searchConditionList.editConditionId=e.id+""),t.selectCondition(e.id)}))}))}this.isShowSearchCondition=!1},removeCondition:function(e){var t=this;e&&this.$confirm(this.$t("imatrixUIMessage.whetherToConfirmDeletion"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure"),cancelButtonText:this.$t("imatrixUIPublicModel.cancel"),type:"warning"}).then((function(){t.removeSearchCondition(e).then((function(){t.$message({type:"success",message:t.$t("superGrid.deleteSuccessful"),showClose:!0}),t.listSearchConditions()}))}))},selectCondition:function(e){var t=this;e&&this.getSearchCondition(e).then((function(e){if(e){var n=e.queryCondition;if(n)if("normal"===t.searchType||""===t.searchType||null===t.searchType||void 0===t.searchType){var r=JSON.parse(n),o=t.packageSearchForm(r);o&&(t.searchForm=o),t.loading=!0,t.$emit("search",r)}else t.searchFormList=JSON.parse(n),t.loading=!0,t.$emit("search",t.packageSearchParam())}}))},packageSearchForm:function(e){if(e&&e.length>0){var t={},n=[];return e.forEach((function(e){var r=e.propName,o=e.columnProp,i=e.dataType;i&&"BOOLEAN"===i&&o&&(r=o),-1===n.indexOf(r)&&n.push(r);var a=e.propValue;if(r&&r.indexOf(".")>0)ft(t,r,a);else{var s=!1;!i||"DATE"!==i&&"TIME"!==i||e.startValue&&e.endValue&&(s=!0),s?t[r]=[e.startValue,e.endValue]:t[r]?t[r]instanceof Array?t[r].push(a):t[r]=[t[r],a]:t[r]=a}})),this.searchableColumns.forEach((function(e){n&&(n.indexOf(e.prop)<0?e.prop&&e.prop.indexOf(".")>0?"dateSection"===e.componentType?dt(t,e.prop):ft(t,e.prop):"dateSection"===e.componentType?t[e.prop]=[new Date,new Date]:t[e.prop]=null:"multiselect"===e.componentType&&t[e.prop]&&(t[e.prop]instanceof Array||(t[e.prop]=[t[e.prop]])))})),t}},resetSearchFormList:function(){this.searchFormList=null},openFold:function(e){this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchFormOrdinarySearch&&this.$refs.searchFormOrdinarySearch.searchComplete()}})},ja=$a,Va=(n("c24c"),f(ja,Bi,Li,!1,null,"ce110258",null)),za=Va.exports,Ha=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"show-close":!0,"append-to-body":!0,title:"查询条件",visible:""},on:{close:function(t){return e.$emit("close")}}},[n("search-form",{ref:"sf",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-param":e.searchParam,"init-search-props":e.initSearchProps},on:{search:e.doSearch,reset:e.resetSearch}})],1)},Ua=[],Wa={name:"SearchFormDialog",components:{SearchForm:za},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null}},data:function(){return{}},computed:{},created:function(){},methods:{doSearch:function(e){this.$emit("search",e)},resetSearch:function(){this.$emit("reset")}}},Ga=Wa,qa=f(Ga,Ha,Ua,!1,null,null,null),Ya=qa.exports,Ka={select:function(e,t){this.$emit("select",e,t)},selectAll:function(e){this.$emit("select-all",e)},selectionChange:function(e){this.$emit("selection-change",e)},cellMouseEnter:function(e,t,n,r){this.$emit("cell-mouse-enter",e,t,n,r)},cellMouseLeave:function(e,t,n,r){this.$emit("cell-mouse-leave",e,t,n,r)},cellClick:function(e,t,n,r){this.$emit("cell-click",e,t,n,r)},cellDblClick:function(e,t,n,r){this.$emit("cell-dblclick",e,t,n,r)},rowClick:function(e,t,n){this.$emit("row-click",e,t,n)},rowContextMenu:function(e,t,n){this.$emit("row-contextmenu",e,t,n)},rowDblClick:function(e,t,n){this.$emit("row-dblclick",e,t,n)},headerClick:function(e,t){this.$emit("header-click",e,t)},headerContextMenu:function(e,t){this.$emit("header-contextmenu",e,t)},filterChange:function(e){this.$emit("filter-change",e)},currentChange:function(e,t){this.$emit("current-change",e,t)},headerDragEnd:function(e,t,n,r){this.$emit("header-dragend",e,t,n,r)},expandChange:function(e,t){this.$emit("expand-change",e,t)}},Xa=Ka,Ja=(n("55dd"),{clearSelection:function(){this.$refs.superGrid.clearSelection()},toggleRowSelection:function(e,t){this.$refs.superGrid.toggleRowSelection(e,t)},toggleAllSelection:function(){this.$refs.superGrid.toggleAllSelection()},toggleRowExpansion:function(e,t){this.$refs.superGrid.toggleRowExpansion(e,t)},setCurrentRow:function(e){this.$refs.superGrid.setCurrentRow(e)},clearSort:function(){this.$refs.superGrid.clearSort()},clearFilter:function(e){this.$refs.superGrid.clearFilter(e)},doLayout:function(){this.$refs.superGrid.doLayout()},sort:function(e,t){this.$refs.superGrid.sort(e,t)}}),Za=Ja;function Qa(e,t){return new Promise((function(n,r){for(var o={listCode:t,valueSetMetas:[]},i=[],a=0;a<e.length;a++){var s=e[a],u=s.prop?s.prop:s.label,l=es(s),c=null,f=s.titleValueSet;if(f&&(c=es(JSON.parse(f))),l||c){var d={prop:u};l&&(d.valueSet=l),c&&(d.titleValueSet=c),o.valueSetMetas.push(d),i.push(a)}}o.valueSetMetas.length>0?O.a.prototype.$http.post(O.a.prototype.baseURL+"/common/super-grids/value-sets",o).then((function(t){i.forEach((function(n){var r,o=e[n].prop?e[n].prop:e[n].label;for(var i in t)if(o===i){r=t[o];break}r&&(r.valueSet&&(e[n].valueSet=r.valueSet),r.titleValueSet&&(e[n].titleValueSetValue=r.titleValueSet))})),n(e)})).catch((function(e){r(e)})):n(e)}))}function es(e){var t="enumname:",n="beanname:",r=e.enumName,o=e.beanName;if(r&&""!==r){if(!0===e.remoteEnum)return t+r}else if(o&&""!==o)return n+o}var ts={initialize:function(){var e=this,t=(new Date).getTime();return new Promise((function(n,r){var o=ze.get(e.code);if(e.options.isAdministerListView)e.getShowColumns(e.options.SuperGrid),Object.assign(e,e.options.SuperGrid),o.isSql=e.isSql,o.columns=e.columns,o.query=e.query,o.pagination=e.pagination,e.createBackgroundColorMap(),e.hasLoadedColumns=!0,e.fetchData(null,null,null,null),n();else{var i,a=O.a.prototype.baseAPI+"/component/super-grids/"+e.code+"/"+e.publishVersion,s={},u=e.options.isSql;e.options&&"undefined"!==typeof u&&(e.isSql=u,s.isSql=u+""),e.options&&"undefined"!==typeof e.options.isAdministerListView&&e.options.isAdministerListView&&(s.isAdminister=e.options.isAdministerListView+"");var l=sessionStorage.getItem("additionalParamMap");if(l&&(console.log("进入判断",l),l&&"object"===Object(C["a"])(l)?i=JSON.stringify(l):l&&""!==l&&(i=l)),e.options.additionalParamMap&&"object"===Object(C["a"])(e.options.additionalParamMap)){var c=JSON.stringify(e.options.additionalParamMap);i?Object.assign(i,c):i=c}else if(e.options.additionalParamMap&&""!==e.options.additionalParamMap){var f=e.options.additionalParamMap;i?Object.assign(i,f):i=f}i&&(s.additionalParamMap=i),e.options.extraParam&&e.options.extraParam.entityMap&&(e.parentFormData=e.options.extraParam.entityMap),e.isLoading=!0,e.$http.post(a,s).then((function(t){var a=(new Date).getTime(),s=[];if(s=s.concat(JSON.parse(JSON.stringify(t.columns))),e.getShowColumns(t),t.basicInfo&&ze.set(e.code+"basicInfo",t.basicInfo),e.options.pageSizes&&t.pagination){var l=null,c=e.options.pageSizes.split(",");if(c&&c.length>0){l=[];for(var f=0;f<c.length;f++)l.push(1*c[f]);t.pagination.pageSize=l[0]}t.pagination.layout="total, sizes, prev, pager, next, jumper",t.pagination.pageSizes=l}"undefined"!==typeof e.options.initSortInfo&&(Array.isArray(e.options.initSortInfo)?t.sortInfo=e.options.initSortInfo:(t.sortInfo=[],t.sortInfo.push(e.options.initSortInfo))),Qa(t.columns,e.code).then((function(){return e.getDynamicColumnByBean(i,t.dynamicColumnInfo,t.columns,o)})).then((function(r){var i=(new Date).getTime(),l=[];"undefined"!==typeof e.options.showColumns&&(l=e.options.showColumns.split(","));var c=r;if(c&&0!==c.length||e.options.dynamicColumns&&e.options.dynamicColumns.length>0&&(c=e.options.dynamicColumns),c&&c.length>0){if(s=s.concat(JSON.parse(JSON.stringify(c))),l&&l.length>0)for(var f=0;f<c.length;f++){var d=c[f].prop;c[f].dynamic=!0,l.indexOf(d)>=0?c[f].show=!0:c[f].show=!1}t.columns=t.columns.concat(c),t.columns=t.columns.sort((function(e,t){return e.displayOrder-t.displayOrder}))}Object.assign(e,t),e.options&&"undefined"===typeof u&&(e.isSql=e.basicInfo.sql),o.isSql=e.isSql,o.allColumns=s,o.columns=e.columns,e.packageColumnOptionMap(o),e.judgeIsFormSubTable(),o.colSetting=e.colSetting,o.lineEdit=e.lineEdit,o.basicInfo=e.basicInfo,o.pagination=e.pagination,e.pagination&&(e.pageSize=e.pagination.pageSize),o.query=e.query,o.dynamicColumnInfo=e.dynamicColumnInfo,o.mainDefaultValueColumns=e.mainDefaultValueColumns,o.contextParameter=e.contextParameter,e.isShowPage=e.isShowPageArea(),e.isSubTableShowPage=!!e.isFormSubTable&&e.isShowPage,o.isSubTableShowPage=e.isSubTableShowPage,e.hasLoadedColumns=!0;var h=!0;lt("loadBeforeSend",e.code)&&(h=o.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:o})),void 0!==h&&!0!==h||e.options.isPageInfo||("undefined"===typeof e.options.initSearch?("undefined"===typeof o.basicInfo.initializationQuery||o.basicInfo.initializationQuery)&&e.fetchData():!1!==e.options.initSearch&&e.fetchData()),e.createBackgroundColorMap();var p=(new Date).getTime();console.log("拿到共享数据并存储p2-p1=",p-a),console.log("拿到共享数据并存储p2-b=",p-i),n()})).catch((function(e){r(e)}))})).catch((function(e){r(e)}))}var d=(new Date).getTime();console.log("初始化所耗时间",d-t)}))},packageColumnOptionMap:function(e){var t={};e.columns&&e.columns.length>0&&this.packageColumnOptionMapItems(e.columns,t),e.columnOptionMap=t},packageColumnOptionMapItems:function(e,t){var n=this;e.forEach((function(e){e.children&&e.children.length>0&&n.packageColumnOptionMapItems(e.children,t),e&&e.prop&&(t[e.prop]=e)}))},getDynamicColumnByBean:function(e,t,n,r){var o=this;return new Promise((function(i,a){if(r.options.extraParam&&r.options.extraParam.entityMap&&(o.parentFormData=r.options.extraParam.entityMap),!o.options.isPageInfo&&t&&t.length>0){var s=[];o.getDynamicColumnByBeanWithOneSet(e,t[0],n,0,t,s,r).then((function(e){i(e)})).catch((function(e){a(e)}))}else i([])}))},getDynamicColumnByBeanWithOneSet:function(e,t,n,r,o,i,a){var s=this;return new Promise((function(u,l){if(t&&t.beanName){var c=O.a.prototype.baseURL+"/common/dynamic-columns",f={additionalParams:e,listCode:s.code,columns:n,beanName:t.beanName};if(s.parentFormData&&(a.dynamicTemp?(f.parent=a.dynamicTemp.parent,f.watchParentAttrValues=a.dynamicTemp.watchParentAttrValues):f.parent=s.parentFormData,t.watchParentAttr)){var d=t.watchParentAttr.split(",");d.forEach((function(e){if(e){f.watchParentAttrValues||(f.watchParentAttrValues={}),f.watchParentAttrValues[e]=s.parentFormData[e];var t=s.$watch("parentFormData."+e,(function(n,r){a.dynamicTemp||(a.dynamicTemp={}),a.dynamicTemp.parent=this.parentFormData,a.dynamicTemp.watchParentAttrValues||(a.dynamicTemp.watchParentAttrValues={}),a.dynamicTemp.watchParentAttrValues[e]=n,this.$refs&&this.$refs.superGrid&&(t(),this.$emit("reload-grid"))}))}}))}s.$http.post(c,f).then((function(a){t.dynamicColumns=a,i=i.concat(a),r+1<o.length?s.getDynamicColumnByBeanWithOneSet(e,o[r+1],n,r+1,o,i):u(i)})).catch((function(){u([])}))}else u([])}))},columnDrop:function(){var e=this,t=this,n=!1;if("undefined"!==typeof this.options.isDragColumnFlag&&null!=this.options.isDragColumn&&!0===this.options.isDragColumn){n=!0;var r=document.querySelector(".el-table__header-wrapper tr");null!=r&&(this.sortable=Ni.create(r,{animation:180,delay:0,onEnd:function(e){for(var n=e.oldIndex,r=e.newIndex,o=[],i=0;i<t.columns.length;i++)"left"!==t.columns[i].fixed&&"right"!==t.columns[i].fixed||o.push(i);if(o&&o.length>0)for(var a=0;a<o.length;a++)o[a]>=r&&r--,o[a]>=n&&n--;if(null!==n&&void 0!==n&&-1!==n&&null!==r&&void 0!==r&&-1!==r)if(n>r){if(t.columns&&t.columns.length>0){for(var s=t.columns[n],u=n-1;u>=r;u--){var l=t.columns[u];l.displayOrderType="custom",t.columns[u+1]=l}t.columns[r]=s}}else if(t.columns&&t.columns.length>0){for(var c=t.columns[n],f=n+1;f<=r;f++){var d=t.columns[f];d.displayOrderType="custom",t.columns[f-1]=d}t.columns[r]=c}t.indexAfterTheChangeUpdateDisplayOrder(t.columns,n,r,"displayOrder");var h=[];h=n>r?t.columns.slice(r,n+1):t.columns.slice(n,r+1);var p={listCode:t.code,columns:h};t.$http.post(O.a.prototype.baseAPI+"/component/super-grids/drag-columns",p).then((function(e){console.log("移动成功")}))}}))}if("undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView&&!n){var o=document.querySelector(".el-table__header-wrapper tr");null!=o&&(this.sortable=Ni.create(o,{animation:180,delay:0,onEnd:function(t){var n=t.oldIndex,r=t.newIndex,o=e.columns[t.oldIndex],i=e;i.columns.splice(n,1),i.columns.splice(r,0,o),e.$emit("columnDrop",n,r)}}))}},indexAfterTheChangeUpdateDisplayOrder:function(e,t,n,r){if(e&&e.length>0&&null!=t&&void 0!==t&&-1!==t&&null!==n&&void 0!==n&&-1!==n&&r&&""!==r){var o=e[n];if(n>t){var i=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var u=a[s];u[r]=0===s?o[r]:a[s-1][r]}o[r]=i}else{var l=e[n+1][r],c=e.slice(n+1,t+1);if(c&&c.length>0)for(var f=0;f<c.length;f++){var d=c[f];f===c.length-1?d[r]=o[r]:d[r]=c[f+1][r]}o[r]=l}}},getDisplayOrder:function(e,t){return e&&void 0!==e.displayOrder&&null!==e.displayOrder?e.displayOrder:t+1},getShowColumns:function(e){var t=[];if("undefined"!==typeof this.options.showColumns&&(t=this.options.showColumns.split(",")),t.length>0){for(var n=[],r=0;r<e.columns.length;r++){var o=e.columns[r],i=o.prop;if("$index"!==i&&"$selection"!==i)if(o.hasOwnProperty("children")){var a=this.getChildrenColumns(o.children,t);o.children=a,a.length>0&&n.push(o)}else t.indexOf(i)>=0&&n.push(o);else n.push(o)}e.columns=n}},getChildrenColumns:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.prop;if(o.hasOwnProperty("children")){var a=this.getChildrenColumns(o.children,t);o.children=a,a.length>0&&n.push(o)}else t.indexOf(i)>=0&&n.push(o)}return n},saveColumnWidth:function(e,t){var n=this;return new Promise((function(r,o){if(void 0!==t){var i={prop:e,width:t+""};n.$http.post(O.a.prototype.baseAPI+"/component/super-grids/setting-column-widths/"+n.code,i).then((function(e){r(t)})).catch((function(e){o(e)}))}else r()}))}},ns=ts,rs="PERMISSION-";function os(){var e;return e=O.a.prototype.customSystem?O.a.prototype.customSystem:O.a.prototype.systemCode,e}function is(){var e=os(),t=ln.a.getItem(rs+e);return t?JSON.parse(t):null}var as=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"context-menu"},e._l(e.buttomArr,(function(t){return n("li",{key:t.name},[n("i",{class:t.icon}),n("span",{on:{click:function(n){return e.buttonClick(t.event,t)}}},[e._v(e._s(t.label))])])})),0)},ss=[],us={name:"HeaderContextMenu",components:{},filters:{},props:{buttomArr:{type:Array,default:null},column:{type:Object,default:null}},data:function(){return{}},computed:{},watch:{},created:function(){console.log("12345",this.buttomArr)},methods:{buttonClick:function(e,t){e&&("function"===typeof e?e.call(this,t,this.column):this.$emit(e,t,this.column),this.$emit("clearHeaderContextmenu"))}}},ls=us,cs=(n("41a4"),f(ls,as,ss,!1,null,"19919133",null)),fs=cs.exports;n("a5d8");function ds(e){if(e){var t=!1,n=is();if("undefined"!==typeof n&&null!==n){var r=e.replace(/\./g,"__"),o=n[r];void 0!==o&&!0===o&&(t=!0)}return t}return console.error('need permission2! Like v-permission="acs.department.save"'),!1}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ms(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gs(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function gs(e,t){if(e){if("string"===typeof e)return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vs(e,t):void 0}}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bs={name:"SuperGrid",components:{IndexColumn:Ae,SelectionColumn:Fe,NormalColumn:ir,GroupColumn:fr,ColumnsConfig:Ri,SearchForm:za,headerContextMenu:fs,searchFormDialog:Ya},props:{code:{type:String,default:""},url:{type:String,default:""},options:{type:Object,default:function(){return{}}},publishVersion:{type:Number,default:0},customFormatter:{type:Object,default:null},searchFormInfo:{type:Object,default:function(){return{}}}},data:function(){var e,t=this.options.parentProp;"undefined"!==typeof t&&""!==t&&null!==t&&(e=t);var n,r,o,i=[];this.options&&this.options.mergeFields&&""!==this.options.mergeFields&&(i=this.options.mergeFields.split(",")),this.options&&this.options.optionTableHeight&&""!==this.options.optionTableHeight&&(n=this.options.optionTableHeight),this.options&&this.options.pageCode&&(r=this.options.pageCode),this.options&&this.options.pageHeight&&(o=this.options.pageHeight);var a=!0;this.options&&void 0!==this.options.lazy&&(a=this.options.lazy);var s=!0;this.options&&void 0!==this.options.defaultExpandAll&&(s=this.options.defaultExpandAll);var u="mysql";O.a.prototype.dataSourceType&&(u=O.a.prototype.dataSourceType.toLowerCase());var l=this.options.pageDevMode;return void 0===l&&(l=!1),{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],pagination:null,query:null,lineEdit:null,gridData:[],summaries:null,sortInfo:null,pageSize:null,showSearch:!1,myCustomFormatter:null,height:null,timer:null,timer2:null,isSql:!1,parentProp:e,hasLoadData:!1,mergeFields:i,newWidth:null,dragColumnProp:null,hasLoadedColumns:!1,backgroundColorMap:{},showHeaderContextmenu:!1,rightClickColumn:null,externalClickFlag:!1,dataTableCode:null,dynamicColumnInfo:null,mainDefaultValueColumns:null,dynamicServiceName:null,searchFormContent:null,initSearchProps:[],refreshGrid:!0,optionTableHeight:n,isFormSubTable:!1,isShowPageDialog:!1,jumpPageSetting:null,pageCode:r,maxHeight:null,pageHeight:o,currentSelectCell:null,isLazy:a,defaultExpandAll:s,parentFormData:null,stripe:!0,dataSourceType:u,pageDevMode:l,toolbarFieldParam:[],tableName:null,listName:null,subTableData:[],isShowPage:!1,isSubTableShowPage:!1}},computed:{treeProps:function(){return this.getTreeProps(this.parentProp,this.isSql,this.isLazy,this.dataSourceType)},pageGridData:function(){return this.getSubTableGridData(this.subTableData)},visibleColumns:function(){var e=this,t=ze.get(this.code),n=this.getOptionOperations();if(t.canntEdit=!1,n&&n.operation&&n.operation.length>0&&n.operation.forEach((function(e){"lineEditUpdate"===e.props.code&&ds(e.props.functionCode)&&(t.canntEdit=!0)})),"undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView)return this.columns;var r=this.columns.filter((function(r){if("undefined"!==typeof e.options.multiple&&!1===e.options.multiple&&"$selection"===r.prop)return!1;if("undefined"!==typeof e.options.showIndex&&!1===e.options.showIndex&&"$index"===r.prop)return!1;var o;if(void 0===r.show||r.show){o=!0;var i=e.options.hiddenColumns;if(i&&i.length>0&&-1!==i.indexOf(r.prop))return o=!1,o;e.initColumnOperation(r,n),t.$dataTypeMap||(t.$dataTypeMap={}),t.$dataTypeMap[r.prop]=r.dataType}else o=!1;return e.storeHasDefaultValueColumns(r,t),r._defaultComponentType=e.getComponentType(r.prop),o}));return r},spanArr:function(){var e,t=[],n=ms(this.columns);try{for(n.s();!(e=n.n()).done;){var r=e.value;(r.span||this.mergeFields&&-1!==this.mergeFields.indexOf(r.prop))&&(t[r.prop]=Ke(this.gridData,r.prop,r.mergerCellBasis))}}catch(o){n.e(o)}finally{n.f()}return t},showSummary:function(){return void 0!==this.basicInfo.summary&&"no"!==this.basicInfo.summary},getRowKeyProp:function(){var e=ze.get(this.code);return e&&e.options&&e.options.rowKeyProp?e.options.rowKeyProp:"oracle"===this.dataSourceType?"ID":"id"}},watch:{"options.SuperGrid":{deep:!0,handler:function(){this.externalClickFlag=!0,console.log("监听到数据改变"),this.initSetting(),this.initialize()}},gridData:{deep:!0,immediate:!0,handler:function(){this.isSubTableShowPage||this.$emit("change-grid-data",this.gridData)}},subTableData:{deep:!0,immediate:!0,handler:function(){if(this.isSubTableShowPage){var e=ze.get(this.code);if(this.$emit("change-grid-data",this.subTableData),void 0!==e.isChangePage&&e.isChangePage){var t=_t(this.subTableData.length,this.pageSize);t!==this.currentPage?(this.currentPage=t,this.changePage()):(this.gridData=this.getSubTableGridData(this.subTableData),e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))),e.lineEdit.editingCell&&(e.lineEdit.editingCell.row=this.gridData.length),e.isChangePage=!1}else this.gridData=this.getSubTableGridData(this.subTableData),e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))}}},currentSelectCell:{deep:!0,handler:function(e,t){this.$nextTick((function(){e&&e.click(),t&&(t.style.border="")}))}},"options.validateRules":{deep:!0,handler:function(){this.externalClickFlag=!0,console.log("监听到数据改变================",this.options.validateRules);var e=ze.get(this.code);e&&e.options&&(e.options.validateRules=this.options.validateRules,ze.set(this.code,e))}},"options.subTableCanAdd":{deep:!0,handler:function(){var e=ze.get(this.code);e&&e.options&&(e.options.subTableCanAdd=this.options.subTableCanAdd,ze.set(this.code,e))}},pageSize:{handler:function(e,t){this.$emit("change-rows-per-page",this.pageSize)}}},provide:function(){return{}},created:function(){ze.set(this.code,ct()),ze.set("_list_code",this.code),this.initSetting(),this.judgeIsFormSubTable();var e=!0;lt("rowStyleRender",this.code)&&(e=!1),this.stripe=e},mounted:function(){var e=this;this.initialize().then((function(){var t=ze.get(e.code);t&&t.basicInfo&&t.basicInfo.tableName&&(e.tableName=t.basicInfo.tableName),t&&t.basicInfo&&t.basicInfo.name&&(e.listName=t.basicInfo.name),e.$nextTick((function(){var t=(new Date).getTime();e.columns.forEach((function(t){t.valueSet&&e.$emit("set-select-options",{prop:e.code+"."+t.prop,valueSet:t.valueSet})})),e.rowDrop(),e.columnDrop(),ze.get(e.code).superGrid=e.$refs.superGrid,e.query&&"embedded"===e.query.showType?e.resizeTableHeight():e.$watch("showSearch",(function(e,t){this.resizeTableHeight()}),{immediate:!0,deep:!0}),e.$watch("hasLoadData",(function(e,t){var n=this;!0===e&&this.$nextTick((function(){var e=ze.get(n.code);lt("gridComplete",n.code)&&e.options.gridComplete.call(n,{gridData:n.isSubTableShowPage?n.subTableData:n.gridData,columns:e.columns,superGrid:n.$refs.superGrid,pageGridData:n.isSubTableShowPage?n.gridData:null})}))}),{immediate:!0,deep:!0});var n=e,r=null!==document.querySelector(".user-tree");document.querySelector("."+e.code).onkeydown=function(e){if(!n.isShowPageDialog&&!r){var t=e||event||window.event||arguments.callee.caller.arguments[0],o=n.isEditRow(n);t&&37===t.keyCode?o||n.selectLeftCell(n):t&&38===t.keyCode?o||n.selectUpCell(n):t&&39===t.keyCode?o||n.selectRightCell(n):t&&40===t.keyCode?o||n.selectDownCell(n):t&&13===t.keyCode?n.enterOperation(n):t&&27===t.keyCode&&n.escOperation(n)}};var o=(new Date).getTime();console.log("super-page--created--执行时间=",o-t)})),e.query&&"popup"===e.query.showType&&e.$emit("setSearchType",!0),e.$watch("options.extraParam",(function(e,t){this.$set(this.options,"extraParam",e);var n=ze.get(this.code);n.options.extraParam=e}),{deep:!0})}))},methods:ps(ps(ps(ps(ps({},Xa),Za),ns),qt),{},{isShowPageArea:function(){return!this.isFormSubTable||void 0!==this.options.showPageArea&&!0===this.options.showPageArea},resizeTableHeight:function(){var e=this;this.$nextTick((function(){var t=ht(e.$refs.superGrid,e.code,e.pageHeight),n=ze.get(e.code);if(lt("resizeHeight",e.code)){var r=0;e.$refs.sf&&(r=e.$refs.sf.$el.offsetHeight);var o=n.options.resizeHeight.call(e,{code:e.code,height:t,searchHeight:r});o&&(t=o)}e.height=t,e.optionTableHeight?e.height=e.optionTableHeight:n.options&&n.options.isFormSubTable&&n.options.isPdfEditor?e.height=null:n.options&&n.options.isFormSubTable&&n.options.formSetHeight?e.height=n.options.formSetHeight:e.basicInfo.displayEffect&&""!==e.basicInfo.displayEffect&&"default"!==e.basicInfo.displayEffect||(e.height=null),e.maxHeight=t,n.options&&n.options.isFormSubTable&&n.options.isPdfEditor?e.maxHeight=null:n.options&&n.options.isFormSubTable&&n.options.formSetMaxHeight&&(e.maxHeight=n.options.formSetMaxHeight)}))},enterOperation:function(e){var t=ze.get(e.code);if(t.options&&t.options.isFormSubTable){var n=t.$editRow;n&&(Object(x["k"])(n,"$editing",!1),t.$editRow=null)}else if(t.options&&!t.options.isFormSubTable){var r=e.currentSelectCell;if(r){var o=r.querySelector(".el-textarea");if(o)return}var i=t.$rowIndex;if(void 0!==i&&null!==i){var a=t.gridData[i];ut("enter",e.listCode)?t.options.lineEditOptions.enter.call(e,i,e.column,a,t.orgGridData[i]):e.saveRow(i,e.code)}}},escOperation:function(e){var t=ze.get(e.code);if(t.options&&!t.options.isFormSubTable){var n=t.$rowIndex;if(void 0!==n&&null!==n){e.restoreRow(n,e.code);var r=t.gridData[n];ut("esc",e.listCode)?t.options.lineEditOptions.esc.call(e,n,e.column,r,t.orgGridData[n]):e.restoreRow(n,e.code)}}},isEditRow:function(e){var t=e.currentSelectCell;if(t){var n=t.querySelector(".el-input__inner");if(n)return!0}return!1},selectUpCell:function(e){var t=e.currentSelectCell;if(t){var n=t.parentNode;if(n){var r=null,o=null,i=t.attributes["class"];if(i&&(o=i["nodeValue"]),o&&o.indexOf(" ")>0){var a=o.split(" ");r=a[0]}var s=n["previousSibling"];if(s){var u=s.querySelector("."+r);e.currentSelectCell=u}}}},selectDownCell:function(e){var t=e.currentSelectCell;if(t){var n=t.parentNode;if(n){var r=null,o=null,i=t.attributes["class"];if(i&&(o=i["nodeValue"]),o&&o.indexOf(" ")>0){var a=o.split(" ");r=a[0]}var s=n["nextSibling"];if(s){var u=s.querySelector("."+r);e.currentSelectCell=u}}}},selectRightCell:function(e){if(e.currentSelectCell){var t=e.currentSelectCell["nextSibling"];if(t){var n,r=t.attributes["class"];r&&(n=r["nodeValue"]),n&&n.indexOf(" is-hidden")>0?e.getTargetCellWithFixTable(e,n,t):e.currentSelectCell=t}}},selectLeftCell:function(e){if(e.currentSelectCell){var t=e.currentSelectCell["previousSibling"];if(t){var n,r=t.attributes["class"];r&&(n=r["nodeValue"]),n&&n.indexOf(" is-hidden")>0?e.getTargetCellWithFixTable(e,n,t):e.currentSelectCell=t}}},getTargetCellWithFixTable:function(e,t,n){var r=n.parentNode;if(r){var o=r.parentNode;if(o){var i=o.parentNode;if(i){var a=i.parentNode;if(a){var s=a.attributes["class"];if(s){var u=s["nodeValue"];if(u&&u.indexOf("el-table__fixed-body-wrapper")>=0){var l=null;if(t&&t.indexOf(" ")>0){var c=t.split(" ");l=c[0]}if(l){var f=document.querySelector("."+this.code+" .el-table__body-wrapper .current-row ."+l);e.currentSelectCell=f}}else if(u&&u.indexOf("el-table__body-wrapper")>=0){var d=null;if(t&&t.indexOf(" ")>0){var h=t.split(" ");d=h[0]}if(d){var p=document.querySelector("."+this.code+" .el-table__fixed-body-wrapper .current-row ."+d);e.currentSelectCell=p}}}}}}}},storeHasDefaultValueColumns:function(e,t){void 0!==e.defaultValue&&null!==e.defaultValue&&""!==e.defaultValue&&(void 0!==t.defaultValueColumns&&null!==t.defaultValueColumns||(t.defaultValueColumns=[]),t.defaultValueColumns.push(e))},judgeIsFormSubTable:function(){var e=ze.get(this.code);e&&e.options&&void 0!==e.options.isFormSubTable&&!0===e.options.isFormSubTable&&(this.isFormSubTable=!0)},initColumnOperation:function(e,t){if(t&&t[e.prop]){var n=e.prop;e.operations=t[n]}},getOptionOperations:function(){if("undefined"!==typeof this.options["operations"]&&null!==this.options["operations"])return this.options["operations"]},initSetting:function(){var e=ze.get(this.code);"undefined"!==typeof this.options?(Object.assign(e.options,this.options),e.options.lineEditOptions||(e.options.lineEditOptions=e.defaultLineEditOptions),"undefined"!==typeof this.options["customFormatter"]&&null!==this.options["customFormatter"]&&(this.myCustomFormatter=this.options["customFormatter"])):(e.options={},e.options.lineEditOptions=e.defaultLineEditOptions),st("input",this.code)||(e.options.lineEditOptions.input=e.defaultLineEditOptions.input),this.myCustomFormatter||"undefined"===typeof this.customFormatter||null===this.customFormatter||(this.myCustomFormatter=this.customFormatter),this.options&&this.options.dynamicServiceName&&void 0!==this.options.dynamicServiceName&&(this.dynamicServiceName=this.options.dynamicServiceName,e.dynamicServiceName=this.dynamicServiceName),this.options&&this.options.system&&void 0!==this.options.system&&(e.system=this.options.system),this.options&&this.options.additionalParamMap&&void 0!==this.options.additionalParamMap&&(e.additionalParamMap=this.options.additionalParamMap)},changeRowStyle:function(e){var t=ze.get(this.code);return this.lineEdit&&this.lineEdit.editable&&e.rowIndex===t.$rowIndex&&Qe(e.row,t.orgGridData[t.$rowIndex]),lt("rowStyleRender",this.code)?t.options.rowStyleRender.call(this,e):this.options&&this.options.renderRow&&this.options.renderRow.hasOwnProperty(e.rowIndex)?{background:this.options.renderRow[e.rowIndex]}:void 0},changeCellStyle:function(e){var t=ze.get(this.code),n=null,r=null;if(e&&e.column&&e.column.property&&t&&t.columnOptionMap&&t.columnOptionMap[e.column.property]&&(r=t.columnOptionMap[e.column.property],r.events&&r.events.cellStyle&&(n=r.events.cellStyle)),lt("cellStyleRender",this.code))return t.options.cellStyleRender.call(this,e);if(null!==n&&null!==r&&t.options&&t.options["eventCallBack"]&&t.options["eventCallBack"][n]&&"function"===typeof t.options["eventCallBack"][n]){var o={value:e.row[e.column.property],row:e.row,column:r,prop:e.column.property};return t.options["eventCallBack"][n].call(this,o)}},changeHeaderStyle:function(e){if("undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView){var t=e.column;if("selection"===t.type){if(this.backgroundColorMap["$selection"])return{background:this.backgroundColorMap["$selection"]}}else if(t.type&&"default"===t.type&&!t.property){if(this.backgroundColorMap["$index"])return{background:this.backgroundColorMap["$index"]}}else if(t.property&&this.backgroundColorMap[t.property])return{background:this.backgroundColorMap[t.property]}}else{var n=ze.get(this.code),r=null,o=null;if(e&&e.column&&e.column.property&&n&&n.columnOptionMap&&n.columnOptionMap[e.column.property]&&(o=n.columnOptionMap[e.column.property],o.events&&o.events.headerCellStyle&&(r=o.events.headerCellStyle)),n.options.renderHeader&&n.options.renderHeader.props)for(var i=e.column,a=n.options.renderHeader.props,s=a.split(","),u=0;u<s.length;u++){var l=s[u];if(i.property===l.trim()){var c="#c3f4e2";return"undefined"!==typeof n.options.renderHeader.color&&(c=n.options.renderHeader.color),{background:c}}}else if(null!==r&&null!==o&&n.options&&n.options["eventCallBack"]&&n.options["eventCallBack"][r]&&"function"===typeof n.options["eventCallBack"][r])return n.options["eventCallBack"][r].call(this,e)}},fetchData:function(e,t,n,r){var o=ze.get(this.code);if(o.options&&o.options.isPageInfo);else if(o.options&&o.options.isAdministerListView){if(o.options.SuperGrid&&o.options.SuperGrid.simulationDate){if(lt("gridDataLoaded",this.code)){var i=o.options.gridDataLoaded.call(this,{gridData:o.options.SuperGrid.simulationDate,columns:o.columns});this.gridData=i||o.options.SuperGrid.simulationDate}else this.gridData=o.options.SuperGrid.simulationDate;o.gridData=this.gridData}}else if(o.options&&o.options.isFormSubTable&&o.options.subTableData&&o.options.subTableData.length>0)this.packageSubTableData(o,o.options.subTableData);else{var a=this.canRefreshTableData(o);if(a)return this.fetchListData(e,t,n,r);if(this.isSubTableEmpty(o)){console.log("子表无记录----code=",this.code,o);var s=[];this.packageSubTableData(o,s)}this.hasLoadData=!0,o.loaded=!0}},isSubTableEmpty:function(e){return e.options&&e.options.isFormSubTable&&(void 0===e.options.subTableData||null===e.options.subTableData||0===e.options.subTableData.length)},packageSubTableData:function(e,t){var n=this;this.hasLoadData=!1,e.loaded=!0;var r=[];if(lt("gridDataLoaded",this.code)){var o=e.options.gridDataLoaded.call(this,{gridData:t,columns:e.columns});o?(r=o,this.hasLoadData=!0):(r=t,this.hasLoadData=!0)}else r=t,this.hasLoadData=!0;r&&r.forEach((function(t){n.setColumnsDefaultValue(e.allColumns,t)})),this.pagination&&!0===this.isSubTableShowPage?(this.subTableData=r,this.pagination.total=this.subTableData.length,e.subTableData=this.subTableData,this.gridData=this.getSubTableGridData(this.subTableData)):this.gridData=r,e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))},canRefreshTableData:function(e){var t=!1;return(e.options&&!e.options.isFormSubTable||e.options&&e.options.isFormSubTable&&void 0!==e.options.canRrefreshSubtableData&&!0===e.options.canRrefreshSubtableData)&&(t=!0),t},getSubTableGridData:function(e){var t=e;if(!0===this.isSubTableShowPage&&e&&e.length>0){this.pagination.total=e.length;var n=this.currentPage;void 0!==n&&null!==n||(n=1);var r=this.pageSize;null===r&&this.pagination&&(r=this.pagination.pageSize),void 0!==r&&null!==r||(r=20);var o=(n-1)*r,i=o+r;e.length>o&&(i>e.length&&(i=e.length),t=e.slice(o,i))}return void 0!==t&&null!==t||(t=[]),t},fetchListData:function(e,t,n,r){var o=this;return new Promise((function(i,a){if(o.isLoading=!0,o.hasLoadData=!1,void 0===t||!1===t){var s=sessionStorage.getItem("refreshList-"+o.code);if(void 0!==s&&"true"===s){var u=sessionStorage.getItem("searchParam-"+o.code);if(void 0!==u&&null!==u&&""!==u){e=JSON.parse(u);var l=e.pagination;l&&(o.currentPage=l.currentPage,o.pagination.pageSize=l.pageSize,o.pagination.showTotal=l.showTotal),o.getInitSearchForm(e.searchForm)}}}sessionStorage.removeItem("refreshList-"+o.code),void 0===e&&(e=o.getSearchParam());var c=ze.get(o.code),f=e;(c.options.extraParam||void 0!==n)&&(f=pt(e,c)),c.searchParam=e,c.url=o.url;var d=o.url;void 0!==n&&null!==n&&(f=Object.assign({},f),f.searchParam.pagination=null,f["parentIds"]=n,f["parentProp"]=o.parentProp,f.systemCode=os(),d=o.options.subRowUrl),c.isCreateRow=!1,c.isEditRow=!1,c.$lastSaveRowIndex=null,c.$rowIndex=null,c.canSaveRow=!0,c.withDataPermission=c.options.isWithDataPermission,c.isWorkflowEntity=c.options.isWorkflowEntity,sessionStorage.setItem("searchParam-"+o.code,JSON.stringify(f)),o.parentProp&&e.searchForm&&e.searchForm.length>0&&(f.listViewTreeSetting=null),o.$http.post(d,f).then((function(e){if("undefined"===typeof n||null===n){var a=[];if(lt("gridDataLoaded",o.code)){var s=c.options.gridDataLoaded.call(o,{gridData:e.data,columns:c.columns});a=s||e.data}else a=e.data;a||(a=[]),c.options.isFormSubTable?(a&&a.forEach((function(e){o.setColumnsDefaultValue(c.allColumns,e)})),o.pagination&&!0===o.isSubTableShowPage?(o.subTableData=a,o.gridData=o.getSubTableGridData(o.subTableData),c.subTableData=o.subTableData):o.gridData=a,null!==o.pagination&&(o.pagination.total=a.length)):(o.gridData=a,null!==o.pagination&&(o.pagination.total=e.total)),e.summaries&&Object.keys(e.summaries).length>0&&(o.summaries=e.summaries),c.gridData=o.gridData,c.orgGridData=[].concat(JSON.parse(JSON.stringify(o.gridData))),c.pagination=o.pagination,c.loaded=!0,o.lineEdit.editable&&("undefined"!==typeof t&&!1!==t||(0===o.gridData.length&&o.options&&null!==o.options.isDefaultShowEdit&&void 0!==o.options.isDefaultShowEdit&&!0===o.options.isDefaultShowEdit&&o.createRow(o.code,null,o.gridData),o.gridData.length>0&&o.$set(o.lineEdit,"editingCell",{row:0,prop:Xe(o.code)}))),o.hasLoadData=!0}else lt("gridDataLoaded",o.code)&&c.options.gridDataLoaded.call(o,{gridData:e}),lt("loadChildrenComplete",o.code)&&c.options.loadChildrenComplete.call(o,{parentRowIds:n,gridData:e,columns:c.columns}),"undefined"!==typeof r&&null!==r?(o.removeGridStoreSelection(n),r(e[n[0]])):(n.forEach((function(t){o.$refs.superGrid.store.states.lazyTreeNodeMap[t]=e[t],o.$refs.superGrid.store.states.treeData[t].children=e[t]})),o.removeGridStoreSelection(n)),o.hasLoadData=!0;i()})).catch((function(e){lt("loadError",o.code)&&c.options.loadError.call(o,o.code,e),a(e)}))}))},getInitSearchForm:function(e){var t=this,n=ze.get(this.code);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,o=e.dataType;o&&"BOOLEAN"===o&&(n=r),t.initSearchProps.push(n);var i=e.propValue;n&&n.indexOf(".")>0?ft(t.searchFormContent,n,i):t.searchFormContent[n]=i})),n.searchForm=e,this.showSearchForm()):n.searchForm=null},showDemo:function(){var e=this;this.isLoading=!0,this.$http.get(this.url).then((function(t){e.getShowColumns(t),Object.assign(e,t);var n=ze.get(e.code);if(n.listCode=e.code,n.columns=e.columns,n.columns&&e.options.dynamicColumns)for(var r=0;r<e.options.dynamicColumns.length;r++)e.options.dynamicColumns[r].dynamic=!0,n.columns.push(e.options.dynamicColumns[r]);if(n.lineEdit=e.lineEdit,n.basicInfo=e.basicInfo,n.pagination=e.pagination,n.query=e.query,e.gridData=t.gridData,lt("gridDataLoaded",e.code)){var o=n.options.gridDataLoaded.call(e,t.gridData);e.gridData=o||t.gridData}else e.gridData=t.gridData;null!=e.pagination&&(e.pagination.total=t.total),e.gridData||(e.gridData=[]),n.gridData=e.gridData,n.orgGridData=[].concat(JSON.parse(JSON.stringify(e.gridData))),n.pagination=e.pagination,e.lineEdit.editable&&(0===e.gridData.length&&e.createRow(e.code,null,e.gridData),e.$set(e.lineEdit,"editingCell",{row:0,prop:Xe(e.code)})),lt("gridComplete",e.code)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(lt("loadError",e.code)){var n=ze.get(e.code);n.options.loadError.call(e,e.code,t)}}))},doSearch:function(e){this.currentPage=1,e&&(e.length>0?this.toolbarFieldParam&&this.toolbarFieldParam.length>0&&(1===e.length&&(e[0].leftBracket="(",e[0].rightBracket=")"),"or"===e[e.length-1].joinSign&&(e[e.length-1].joinSign="and"),Array.prototype.push.apply(e,this.toolbarFieldParam)):this.toolbarFieldParam&&this.toolbarFieldParam.length>0&&(e=this.toolbarFieldParam)),this.search(e,!0)},doSearchDialog:function(e){this.currentPage=1,this.search(e,!0),this.closeSearchFormDialog()},search:function(e,t,n){var r=this;this.$emit("refresh");var o=this;return new Promise((function(i,a){var s,u=ze.get(o.code);if(u.searchForm="undefined"!==typeof e&&null!==e?e:null,u.options&&u.options.isAdministerListView)u.options.SuperGrid&&u.options.SuperGrid.simulationDate&&(lt("gridDataLoaded",o.code)?(s=u.options.gridDataLoaded.call(r,{gridData:u.options.SuperGrid.simulationDate,columns:u.columns}),s||(s=u.options.SuperGrid.simulationDate)):s=u.options.SuperGrid.simulationDate,i(s));else if(u.options&&u.options.isFormSubTable&&u.options.subTableData&&u.options.subTableData.length>0){var l;o.hasLoadData=!1,u.loaded=!0,lt("gridDataLoaded",o.code)?(l=u.options.gridDataLoaded.call(r,{gridData:u.options.subTableData,columns:u.columns}),l||(l=u.options.subTableData,o.hasLoadData=!0)):(l=u.options.subTableData,o.hasLoadData=!0),i(l)}else o.fetchData(o.getSearchParam(),t,n).then((function(e){console.log("打印1====",u),void 0!==u&&void 0!==u.options&&void 0!==u.options.isHiddenSearchForm&&!0===u.options.isHiddenSearchForm&&(console.log("打印2====",o),o.showSearch=!1,o.$emit("cancel-search")),console.log("打印3====",o),console.log("打印4====",o.$refs),o.$refs&&o.$refs.sf&&(console.log("打印5====",o.$refs.sf),o.$refs.sf.loading=!1,o.$refs.sf.searchComplete()),console.log("打印6====",o),r.resizeTableHeight(),i(e)})).catch((function(e){o.$refs.sf&&(o.$refs.sf.loading=!1,o.$refs.sf.searchComplete()),a(e)}))}))},getPaginationInfo:function(){var e=ze.get(this.code);if(null!==this.pagination){var t={currentPage:this.currentPage,pageSize:this.pagination.pageSize,showTotal:this.pagination.showTotal};return null!==this.pageSize&&(t.pageSize=this.pageSize),"undefined"!==typeof e.currentPage&&null!==e.currentPage&&(t.currentPage=e.currentPage,e.currentPage=null),t}},getSearchParam:function(){var e={code:this.code},t=ze.get(this.code),n=this.getPaginationInfo();if(n&&null!==n&&(e.pagination=n),null!==this.sortInfo&&(e.sorts=this.sortInfo),this.mergeFields&&this.mergeFields.length>0){e.sorts||(e.sorts=[]);var r,o=[],i=ms(this.mergeFields);try{for(i.s();!(r=i.n()).done;){var a,s=r.value,u=!0,l=ms(e.sorts);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.prop===s){u=!1;break}}}catch(d){l.e(d)}finally{l.f()}u&&o.push({prop:s,order:"ascending"})}}catch(d){i.e(d)}finally{i.f()}o.push.apply(o,ke(e.sorts)),e.sorts=o}t.options&&"undefined"!==typeof t.options.initSearchForm&&(e.initSearchForm=t.options.initSearchForm),t.query&&"undefined"!==typeof t.query.defaultQueryCriteria&&(e.defaultQueryCriteria=JSON.parse(t.query.defaultQueryCriteria)),"undefined"!==typeof t.searchForm?e.searchForm=t.searchForm:e.searchForm=[],this.dynamicColumnInfo&&(e.dynamicColumnInfo=this.dynamicColumnInfo),this.dynamicServiceName&&(e.dynamicServiceName=this.dynamicServiceName);var f=t.additionalParamMap;return f&&(f&&"object"===Object(C["a"])(f)?e.additionalParamMap=f:f&&""!==f&&(e.additionalParamMap=JSON.parse(f))),e},getComponentType:function(e){var t="NormalColumn";return"$index"===e?t="IndexColumn":"$selection"===e?(ze.get(this.code).isMulitiSelect=!0,t="SelectionColumn"):void 0===e&&(t="GroupColumn"),t},focusOnFirstEditableInput:function(){this.basicInfo.editable&&(this.lineEdit.editingCell.row=0,this.lineEdit.editingCell.prop=Xe(this.code))},handleSizeChange:function(e){this.options&&this.options.isPageShow||(this.currentPage=1,this.pageSize=e,this.changePage())},handleCurrentChange:function(e){this.options&&this.options.isPageShow||this.changePage()},changePage:function(){if(this.$refs.superGrid.clearFilter(),this.isSubTableShowPage){this.gridData=this.getSubTableGridData(this.subTableData);var e=ze.get(this.code);e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))}else this.fetchData(this.getSearchParam())},handleSortChange:function(e){var t=e.column,n=e.prop,r=e.order;if(!this.options||!this.options.isPageShow){var o=null,i=this.visibleColumns.filter((function(e){return t.property===e.prop}));if(i&&i.length>0&&(o=i[0]),nt(this.code)){if(null!==n&&o&&null!==o){var a=o.orgProp,s="__";a&&a.indexOf(s)>0&&(a=a.replace(s,".")),this.sortInfo=[{prop:a,order:r}]}else this.sortInfo=null;this.fetchData(this.getSearchParam()),this.focusOnFirstEditableInput(),this.$emit("sort-change",{columnSetting:o,prop:n,order:r,column:t})}else{var u=ze.get(this.code);console.log("请先保存或撤销编辑第"+u.$rowIndex+"1行记录,再排序"),this.$refs.superGrid.clearSort()}}},isMergeable:function(e){var t,n=ms(this.columns);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.prop===e)return!(!this.mergeFields||-1===this.mergeFields.indexOf(r.prop))||r.span}}catch(o){n.e(o)}finally{n.f()}},rowSpan:function(e){e.row;var t=e.column,n=e.rowIndex;e.columnIndex;if(this.isMergeable(t.property)){var r=this.spanArr[t.property][n],o=r>0?1:0;return{rowspan:r,colspan:o}}},packageSummaryColumnProps:function(){var e=[];return this.visibleColumns.forEach((function(t){void 0!==t.total&&!0===t.total&&e.push(t.prop)})),e},getSummaries:function(e){if("no"!==this.basicInfo.summary){var t=this.summaries;return t?this.getCustomSummaries(e,t):this.getDefaultSummaries(e)}return[]},getCustomSummaries:function(e,t){var n=e.columns,r=[];return n.forEach((function(e,n){var o=e.property,i=t[o];r[n]=void 0!==i&&null!==i?i:""})),r},getDefaultSummaries:function(e){var t=this,n=[],r=this.packageSummaryColumnProps();if(r.length>0){var o=e.columns,i=e.data,a=null;o.forEach((function(e,o){var s=0,u=e.property;if(u&&"$selection"!==u&&"$index"!==u&&(void 0===a||null===a))return a=o,void(n[o]="合计");r.indexOf(u)>=0?(i&&i.forEach((function(e){var n,r=Object(x["d"])(e,u);if(void 0!==r&&null!==r)n=Number(r);else{var o=/[A-Z]+/;t.isSql&&o.test(u)&&(r=Object(x["d"])(e,u.toLowerCase()),void 0!==r&&null!==r&&(n=Number(r)))}void 0===n||null===n||isNaN(n)||(s+=n)})),n[o]=s):n[o]=""}))}return n},configColumns:function(){this.showColumnConfig=!0,this.orgColumnConfig=[].concat(JSON.parse(JSON.stringify(this.columns)))},rowDrop:function(){if(this.lineEdit&&this.lineEdit.urlToSaveOrder){var e=document.querySelector(".el-table__body-wrapper tbody");if(null!=e){var t=this;Ni.create(e,{onEnd:function(e){var n=e.newIndex,r=e.oldIndex,o={oldIndex:r,newIndex:n};this.$http.post(this.lineEdit.urlToSaveOrder,o).then((function(e){var o=t.gridData.splice(r,1)[0];t.gridData.splice(n,0,o)}))}})}}},closeCustomConfig:function(e){void 0!==e&&!0===e&&this.refreshGridInitialize(),this.showColumnConfig=!1},resetCustomConfig:function(){this.refreshGridInitialize()},refreshGridInitialize:function(){var e=this;this.initialize().then((function(){e.refreshGrid=!1;var t=e;setTimeout((function(){t.refreshGrid=!0}),100)}))},loadChildren:function(e,t,n){this.isLazy&&this.loadChildrenNode(e,t,n)},loadChildrenNode:function(e,t,n){var r=this.options.subRowUrl;if("undefined"!==typeof r&&""!==r&&null!==r){var o=[];o.push(e.id?e.id:e.ID),this.fetchData(this.getSearchParam(),!1,o,n)}},expandChange:function(e,t){this.isLazy&&!1===t&&this.$refs.superGrid.store.states.treeData&&(this.$refs.superGrid.store.states.treeData[e.id?e.id:e.ID].loaded=!1)},removeGridStoreSelection:function(e){var t=[];this.$refs.superGrid.store.states.selection&&(t=[].concat(JSON.parse(JSON.stringify(this.$refs.superGrid.store.states.selection))));for(var n=0;n<t.length;n++)if(e&&e.indexOf(t[n][this.parentProp])>=0){this.$refs.superGrid.store.states.selection.splice(n,1),this.$refs.superGrid.store.states.selection.length>0&&this.removeGridStoreSelection(e);break}},changeHederWidth:function(e,t,n,r){var o=this,i=e-5,a=i;this.dragColumnProp=n.property;var s=ze.get(this.code);if(lt("resizeColumn",this.code)){var u=s.options.resizeColumn.call(this,{code:this.code,newWidth:u,oldWidth:t,column:n});u&&(a=u)}this.newWidth=Math.ceil(a),"undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView?this.$emit("changeHederWidth",this.newWidth):this.saveColumnWidth(this.dragColumnProp,this.newWidth).then((function(){var e=o.getColumnByElementColumn(n);e&&e.length>0&&(e[0].widthType="custom",e[0].width=o.newWidth+"")}))},resetSearch:function(){this.currentPage=1,this.search(null,!1)},getColumnInformation:function(){return this.visibleColumns},headerClick:function(e,t){var n=this.getColumnByElementColumn(e);n&&n.length>0?(this.$emit("header-click",n[0]),this.changeHeaderStyleTwo(n[0])):this.$emit("header-click",null),this.clearHeaderContextmenu()},changeHeaderStyleTwo:function(e){"undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView&&(this.createBackgroundColorMap(),this.$set(this.backgroundColorMap,e.prop,"#409EFF"),this.$refs&&this.$refs.superGrid&&this.$refs.superGrid.doLayout())},createBackgroundColorMap:function(){var e=(new Date).getTime(),t=this.getColumnInformation(),n={};if(t&&t.length>0)for(var r=0;r<t.length;r++){var o=t[r];void 0===o.show||o.show||(n[o.prop]="#808080"),this.backgroundColorMap&&"#409EFF"===this.backgroundColorMap[o.prop]&&this.externalClickFlag&&(n[o.prop]="#409EFF")}this.backgroundColorMap=n,this.externalClickFlag=!1,this.$refs&&this.$refs.superGrid&&this.$refs.superGrid.doLayout();var i=(new Date).getTime();console.log("存储表头背景色",i-e)},getColumnByElementColumn:function(e){var t=null;return e.type&&"selection"===e.type?t=this.visibleColumns.filter((function(e){return"$selection"===e.prop})):e.type&&"default"===e.type&&!e.property?t=this.visibleColumns.filter((function(e){return"$index"===e.prop})):e.property&&(t=this.visibleColumns.filter((function(t){return e.property===t.prop}))),t},headerContextmenu:function(e,t){var n=this;t.preventDefault();var r=this.getColumnByElementColumn(e);if(r&&r.length>0){var o=r[0];this.$emit("header-click",r[0]),this.changeHeaderStyleTwo(r[0]),this.showHeaderContextmenu=!0,this.rightClickColumn=o,this.$nextTick((function(){var e=n.$refs.headerMenu.$el,r=document.documentElement.scrollTop||document.body.scrollTop;e.style.display="block",e.style.left=t.clientX+"px",e.style.top=t.clientY+r-10+"px"}))}},clearHeaderContextmenu:function(){this.showHeaderContextmenu=!1,this.rightClickColumn=null},validatorSunTableListData:function(){var e=this.gridData;if(this.isSubTableShowPage&&(e=this.subTableData),e&&e.length>0){for(var t=this.pagination&&this.pagination.pageSize,n=Ut.getValidator(this.code),r=0;r<e.length;r++){var o=e[r],i=!0;st("isEnableValidate",this.code)&&(i=this.gridParams.options.lineEditOptions["isEnableValidate"]);var a=!0;if(!0===i){var s=void 0,u=void 0;this.isSubTableShowPage&&void 0!==t&&t>0&&(s=Math.ceil((r+1)/t),u=r+1-(s-1)*t),a=Ut.validator(o,this.code,r,n,this.isSubTableShowPage,s,u)}if(null!==a&&void 0!==a&&("string"===typeof a||!1===a))return!1}return!0}return!0},getSunTableListData:function(){return this.isSubTableShowPage?this.subTableData:this.gridData},rowDblclickEvent:function(e,t,n){var r=ze.get(this.code);if(r.options&&r.options.isFormSubTable&&r.options.isPdfEditor);else if(this.isFormSubTable){if(t.property&&"operation"!==t.property){var o,i=ze.get(this.code);o=this.isSubTableShowPage?this.subTableData.filter((function(e){return void 0!==e.$editing&&!0===e.$editing})):this.gridData.filter((function(e){return void 0!==e.$editing&&!0===e.$editing})),o&&o.length>0&&o.forEach((function(e){Object(x["k"])(e,"$editing",!1)})),i.isEditRow=!1,Object(x["k"])(e,"$editing",!0),i.$editRow=e,i.isEditRow=!0}}else if(e&&r&&r.lineEdit&&r.lineEdit.editable&&r.canntEdit){var a=this.gridData.findIndex((function(t){return t.id&&t.id===e.id||t.ID&&t.ID===e.ID}));a<0&&(a=0),this.editRow(a)}this.rowDblClick(e,t,n)},rowClickEvent:function(e,t,n){},openPageDialog:function(e){var t;e&&(t=e.jumpMode);var n=e;"popup"===t?(this.jumpPageSetting=n,this.isShowPageDialog=!0):"refresh"===t&&this.$router.push({path:"/dsc/page",query:n})},closePageDialog:function(e){if(this.jumpPageSetting){var t,n=ze.get(this.code),r=this.jumpPageSetting.closeEvent,o=this.jumpPageSetting.row;if(n.options.eventCallBack&&r&&null!==r&&n.options.eventCallBack[r]&&(t=n.options.eventCallBack[r]),t){var i={params:n.additionalParamMap,entity:o};e&&(i.eventParams={popEntity:e.entity,popPageCode:e.pageCode,pageCode:this.pageCode}),t.call(this,i)}}this.isShowPageDialog=!1,this.jumpPageSetting=null},updateValues:function(e,t,n){var r=ze.get(this.code),o=n;if(void 0!==o&&null!==o&&o<this.gridData.length){var i=!1===this.isSql||r.options&&(void 0!==r.options.isAdministerListView&&!0===r.options.isAdministerListView||void 0!==r.options.isFormSubTable&&!0===r.options.isFormSubTable),a=this.tableName;kn(e,t,this.jumpPageSetting,this.gridData[o],a,!i);var s,u=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;r.options.eventCallBack&&u&&null!==u&&r.options.eventCallBack[u]&&(s=r.options.eventCallBack[u]),s&&s.call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.gridData[o],targetTableName:a,isNeedReplaceFieldName:!i})}},closeSearchFormDialog:function(){this.showSearch=!1},getQueryMode:function(){return this.query&&"popup"===this.query.showType?"popup":"embedded"},selectCell:function(e,t,n,r){var o=this;n&&(this.cellClick(e,t,n,r),this.$nextTick((function(){o.$set(n.style,"border","2px solid #409EFF"),o.currentSelectCell=n})))},refreshGridData:function(){this.refresh(!1,!0)},refresData:function(e){this.$set(this,"gridData",e)},refresPortData:function(e,t,n){this.gridData[n]&&(this.$set(this.gridData[n],e,t),this.$forceUpdate())},refresPortsData:function(e,t){if(e)for(var n in e)this.gridData[t]&&(this.$set(this.gridData[t],n,e[n]),this.$forceUpdate(),console.log("this.$forceUpdate()",this.$refs[n]))},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},openFold:function(e){this.resizeTableHeight()},fnProhibitToEdit:function(e){if(e)for(var t in e)console.log("key",t),console.log("this.$refs[key]",this.$refs),this.$refs[t]&&this.$refs[t][0].fnProhibitToEdit(e[t])},prohibitToEdit:function(e){this.fnProhibitToEdit(e)},getTreeProps:function(e,t,n,r){var o={children:"children",hasChildren:"_has_children"};if(e){o={children:"children"};var i="hasChildren";n&&t&&(i="oracle"===r?"HAS_CHILDREN":"has_children"),o.hasChildren=i}return o}})},ys=bs,ws=(n("caf5"),f(ys,ye,we,!1,null,"f85b65c2",null)),_s=ws.exports;_s.install=function(e){e.component(_s.name,_s)};var Cs=_s,xs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.multiple?n("department-user-multi-tree",{attrs:{title:e.title,width:e.width?e.width:"60%",height:e.height,"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{closeDialog:e.closeDialog,closedDialog:e.closedDialog,openDialog:e.openDialog,opendDialog:e.opendDialog}}):e._e(),e.multiple?e._e():n("department-user-single-tree",{attrs:{title:e.title,width:e.width?e.width:"40%","department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser},on:{closeDialog:e.closeDialog,closedDialog:e.closedDialog,openDialog:e.openDialog,opendDialog:e.opendDialog}})],1)},Ss=[],Os=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("openDialog")},opend:function(t){return e.$emit("opendDialog")},close:function(t){return e.$emit("closeDialog")},closed:function(t){return e.$emit("closedDialog")}}},[n("inline-department-user-single-tree",{ref:"inlineDepartmentUser",attrs:{"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},ks=[],Es=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[n("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1,size:"small","select-when-unmatched":""},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",{staticStyle:{padding:"10px",width:"100%"}},[e.searchValue&&0!==e.searchResult.length?e._e():n("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[n("el-tree",{ref:"deparmentUserTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","node-key":"nodeId","render-content":e.renderContent},on:{"node-click":e.handleNodeClick}})],1),e.searchValue&&e.searchValue.length>0&&e.searchResult.length>0?n("div",{staticStyle:{height:"100%",overflow:"hidden"}},[n("user-result",{ref:"userResult",attrs:{"grid-data":e.searchResult,height:e.height,"contain-branch":e.containBranch,multiple:!1},on:{selectResult:e.getSelectUser,resultRowDblclick:e.resultRowDblclick}})],1):e._e()])],1)],1)},Ts=[],Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"}},[n("el-table",{ref:"superGrid",attrs:{data:e.gridData,"row-key":"id","row-class-name":e.tableRowClassName,"max-height":e.myHeight,border:"",fit:""},on:{"row-click":e.rowClick,"row-dblclick":e.rowDblclick}},[!1===e.multiple?n("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-radio",{attrs:{label:t.$index},on:{change:e.selectUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(t.$index+1)+"\n ")])]}}],null,!1,1685606562)}):e._e(),e.multiple&&e.isSearchResult?n("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(t.row),circle:""},on:{click:function(n){return e.addUser(t.$index,t.row)}}})],1)]}}],null,!1,758332263)}):e._e(),e.multiple&&!e.isSearchResult?n("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeUser(t.$index,t.row)}}})],1)]}}],null,!1,3810037523)}):e._e(),e.multiple?n("el-table-column",{attrs:{label:e.$t("superGrid.index"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,2711056793)}):e._e(),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),width:130,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.enName&&""!==t.row.enName.trim()?n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.name+"("+t.row.enName+")"}},[e._v(e._s(t.row.name+"("+t.row.enName+")"))]):n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.name}},[e._v(e._s(t.row.name))])]}}])}),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.loginName"),width:110,prop:"loginName"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.loginName}},[e._v(e._s(t.row.loginName))])]}}])}),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),"min-width":160,prop:"mainDepartmentName"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"ellipsis cell--span",attrs:{title:e.language&&"cn"!==e.language&&t.row.mainDepartmentEnName?t.row.mainDepartmentEnName:t.row.mainDepartmentName}},[e._v(e._s(e.language&&"cn"!==e.language&&t.row.mainDepartmentEnName?t.row.mainDepartmentEnName:t.row.mainDepartmentName))])]}}])}),e.containBranch?n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),width:130,prop:"subCompanyName"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.subCompanyName}},[e._v(e._s(t.row.subCompanyName))])]}}],null,!1,2922352565)}):e._e()],1)],1)},Is=[],Ns={name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},data:function(){var e=this.height;e=e.substring(0,e.indexOf("px"));var t=parseInt(e)+30+"px";return{singleUserIndex:null,selectedUser:null,myHeight:t,language:window.$locale?window.$locale:"cn"}},created:function(){},methods:{removeUser:function(e,t){this.$emit("removeUser",e,t)},addUser:function(e,t){this.$emit("addUser",e,t)},selectUser:function(e){this.$emit("selectResult",this.gridData[e])},rowClick:function(e,t,n){this.singleUserIndex=e.row_index,this.$emit("selectResult",e)},tableRowClassName:function(e){var t=e.row,n=e.rowIndex;t.row_index=n},rowDblclick:function(e,t,n){this.multiple?this.$emit("addUser",null,e):this.$emit("resultRowDblclick",e)},isDisable:function(e){if(this.selectResult){var t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept:function(e){return function(t){return t.id===e.id}}}},As=Ns,Ps=(n("aa7c"),f(As,Ds,Is,!1,null,null,null)),Ms=Ps.exports,Rs={filterAppendNodes:function(e){var t=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/search-users",this.searchParam).then((function(e){if(e){if(t.searchResult=e,0===e.length)return t.searchResult=[],void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}else if(t.searchResult=[],0===e.length)return void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},querySearch:function(e,t){this.search(this.filterText),t([])},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},clickSearch:function(){this.selectNodeInfo=null,this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},initLoadDepartment:function(e,t,n,r,o){var i=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(o)>-1&&this.checkedChildrenUserNodes(t.data,t.data.children);else{var s={parentId:e,needVirtualUser:this.isNeedVirtualUser};t.data&&(s.branchId=t.data.branchId),this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(t){if(n(t),i.$refs.deparmentUserTree.updateKeyChildren(o,t),0===e){var r=t[0].data;i.tenantInfo=JSON.parse(r),i.containBranch=t[0].containBranch,i.departmentInfo&&i.departmentInfo.length>0?i.loadPointDepartments(i):i.loadDepartment(i.tenantNodeId,i.tenantNodeId+"")}}))}},loadDepartment:function(e,t,n,r){var o=this,i={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",i).then((function(e){o.$refs.deparmentUserTree.updateKeyChildren(t,e),o.$refs.deparmentUserTree.store.nodesMap[t]&&(o.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0)}))},loadPointDepartments:function(){var e=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/point-department-users",this.departmentInfo).then((function(t){e.$refs.deparmentUserTree.updateKeyChildren(e.tenantNodeId,t),e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId]&&(e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId].expanded=!0)}))}},Bs=Rs;function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $s={name:"InlineDepartmentUserSingleTree",components:{UserResult:Ms},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"children",isLeaf:"leaf"},searchParam:{userField:null,searchValue:null,treeType:"MAN_DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,searchFields:[],searchField:"name",restaurants:[],searchValue:null,searchResult:[],searchStoreKey:"searchDepartmentUser",tenantInfo:{},selectUser:null,selectNodeInfo:null,notMultipleClickNum:null,notMultipleClickNode:null}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments(this):this.loadDepartment(this.tenantNodeId,this.tenantNodeId+""))}},created:function(){this.searchFields=this.getSearchUserFields()},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:Fs(Fs(Fs({},E),Bs),{},{handleNodeClick:function(e,t,n){if(this.isUserNode(e)){var r=JSON.parse(e.data);r.tenantName=this.tenantInfo.tenantName,r.tenantCode=this.tenantInfo.code,this.packageSelectResult(r),this.notMultipleClickNode&&this.notMultipleClickNode.id===t.id?(this.notMultipleClickNum++,2===this.notMultipleClickNum&&(this.notMultipleClickNum=0,this.notMultipleClickNode=null,this.$emit("result",this.selectNodeInfo))):(this.notMultipleClickNode=t,this.notMultipleClickNum=1);var o=this;setTimeout((function(){o.notMultipleClickNum=0,o.notMultipleClickNode=null}),300)}},packageSelectResult:function(e){var t=e.name;e.enName&&""!==e.enName.trim()&&(t=t+"("+e.enName+")"),this.containBranch&&e.subCompanyName;var n={id:e.id,name:t,zhName:e.name,loginName:e.loginName,email:e.email,telephone:e.telephone,containBranch:this.containBranch,user:e,enName:e.enName,subCompanyName:e.subCompanyName};this.selectNodeInfo=n},isUserNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"USER"===e.nodeType},confirmSelectUser:function(){this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},loadNode:function(e,t){var n=0,r="0";0===e.level?(n=0,r=n+""):(n=e.data.id,r=e.data.nodeId);var o=[];this.$refs.deparmentUserTree&&(o=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,o,r)},renderContent:function(e,t){var n,r=t.node;t.data,t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"USER"===r.data.nodeType?"el-icon-user":"el-icon-date",e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])},getSelectUser:function(e){this.selectUser=e,this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)}})},js=$s,Vs=(n("396f"),f(js,Es,Ts,!1,null,null,null)),zs=Vs.exports,Hs={name:"DepartmentUserSingleTree",components:{InlineDepartmentUserSingleTree:zs},props:{departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},isNeedVirtualUser:{type:Boolean,default:!1}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectPersonnel");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("closeDialog",e)},confirmSelectUser:function(){this.$emit("closeDialog",this.$refs.inlineDepartmentUser.selectNodeInfo)}}},Us=Hs,Ws=f(Us,Os,ks,!1,null,null,null),Gs=Ws.exports,qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{ref:"userDialog",staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("openDialog")},opend:function(t){return e.$emit("opendDialog")},close:function(t){return e.$emit("closeDialog")},closed:function(t){return e.$emit("closedDialog")}}},[n("inline-department-user-multi-tree",{ref:"inlineDepartmentUser",attrs:{"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser,height:e.height,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Ys=[],Ks=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-aside",{attrs:{width:"430px"}},[n("el-container",{staticStyle:{height:"390px"}},[n("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[n("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1,size:"small","select-when-unmatched":""},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():n("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[n("el-tree",{ref:"deparmentUserTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","check-on-click-node":!0,"show-checkbox":"","node-key":"nodeId","render-content":e.renderContent},on:{check:e.handleCheckNode,"check-change":e.handleCheckChange}})],1),e.searchValue&&e.searchValue.length>0?n("div",{staticStyle:{height:"100%",overflow:"hidden"}},[n("user-result",{attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,"contain-branch":e.containBranch,multiple:!0,"is-search-result":!0},on:{addUser:e.selectUser}})],1):e._e()])],1)],1),n("el-container",[n("el-aside",{attrs:{width:"2px"}},[n("table",{staticStyle:{height:"100%","border-left-style":"solid","border-bottom-style":"none","border-right-style":"none","border-top-style":"none","border-left-color":"#cccccc"},attrs:{border:"1px",cellpadding:"0",cellspacing:"0"}})]),n("el-main",{staticStyle:{padding:"10px"}},[n("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentUserTree.selectedPeople"))+":\n ")]),n("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[n("user-result",{attrs:{"grid-data":e.selectResult,height:e.height,"contain-branch":e.containBranch,multiple:!0,"is-search-result":!1},on:{removeUser:e.removeUser}})],1)])],1)],1)],1)},Xs=[],Js={filterAppendNodes:function(e){var t=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/search-users",this.searchParam).then((function(e){if(e){if(0===e.length)return t.searchResult=[],void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")});t.searchResult=e}else if(0===e.length)return void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},querySearch:function(e,t){this.search(this.filterText),t([])},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},clickSearch:function(){this.selectNodeInfo=null,this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},dynamicCheckedUserNodes:function(e){var t=this,n={parentId:e.id,branchId:e.branchId,needVirtualUser:this.isNeedVirtualUser};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",n).then((function(n){t.$refs.deparmentUserTree.updateKeyChildren(e.nodeId,n),t.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=!0,t.staticCheckedUserNodes(e)}))},initLoadDepartment:function(e,t,n,r,o){var i=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(o)>-1&&this.checkedChildrenUserNodes(t.data,t.data.children);else{var s={parentId:e,needVirtualUser:this.isNeedVirtualUser};t.data&&(s.branchId=t.data.branchId),this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(a){if(n(a),i.$refs.deparmentUserTree.updateKeyChildren(o,a),0===e){var s=a[0].data;i.tenantInfo=JSON.parse(s),i.containBranch=a[0].containBranch,i.departmentInfo&&i.departmentInfo.length>0?i.loadPointDepartments():i.loadDepartment(i.tenantNodeId,i.tenantNodeId+"")}i.isClickNode?(i.isClickNode=!1,i.staticCheckedUserNodes(t.data)):r&&r.indexOf(o)>-1&&i.checkedChildrenUserNodes(t.data,t.data.children)}))}},loadDepartment:function(e,t,n,r){var o=this,i={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",i).then((function(e){o.$refs.deparmentUserTree.updateKeyChildren(t,e),o.$refs.deparmentUserTree.store.nodesMap[t]&&(o.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0),n&&(-1===o.allExpandNodeIds.indexOf(t)&&o.allExpandNodeIds.push(t),o.allExpandNodeIds.length===o.allSearchNodeIds.length&&(o.$refs.deparmentUserTree.filter(r),o.allExpandNodeIds=[],o.allSearchNodeIds=[]))}))},loadPointDepartments:function(){var e=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/point-department-users",this.departmentInfo).then((function(t){e.$refs.deparmentUserTree.updateKeyChildren(e.tenantNodeId,t),e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId]&&(e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId].expanded=!0)}))},getChildrenDepartmentUsers:function(e){var t=this;return new Promise((function(n,r){t.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/user-in-departments",e).then((function(e){n(e)}))}))},getSelectUsers:function(e,t,n){return new Promise((function(r,o){e&&t?O.a.prototype.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){r(e)})).catch((function(e){o(e)})):r([])}))},packageAllUser:function(){var e=-1,t={id:e,name:"所有用户"};return t},packageAllWgUser:function(){var e=-1,t={id:e,name:"所有工作组人员"};return t},initSelectUsers:function(e,t,n){var r=this;return new Promise((function(o,i){var a=[];t?"所有用户"===t?(a.push(r.packageAllUser()),o(a)):"所有工作组人员"===t?(a.push(r.packageAllWgUser()),o(a)):r.getSelectUsers(e,t,n).then((function(e){o(e)})).catch((function(e){i(e)})):o(a)}))}},Zs=Js;function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tu={name:"InlineDepartmentUserMultiTree",components:{UserResult:Ms},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"children",isLeaf:"leaf",disabled:"disabled"},searchParam:{userField:null,searchValue:null,treeType:"MAN_DEPARTMENT_TREE",departmentInfo:null},containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchResult:[],selectResult:[],searchStoreKey:"searchDepartmentUser",tenantInfo:{}}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId,this.tenantNodeId+""))}},created:function(){var e=this;this.initSelectUsers(this.searchField,this.selectUserInfo,this.separator).then((function(t){t&&(e.selectResult=t)}))},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:eu(eu(eu({},E),Zs),{},{selectUser:function(e,t){if(this.isContainAllUser())this.alertByAllUser();else{var n=this.selectResult.filter(this.filterUser(t));n&&0===n.length&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t))}},removeUser:function(e,t){var n=this;if(t.nodeId){var r=t.nodeId;this.$refs.deparmentUserTree&&r&&this.$refs.deparmentUserTree.setChecked(r,!1)}else if(this.$refs.deparmentUserTree){var o=this.$refs.deparmentUserTree.getCheckedKeys(),i=o.filter(this.filterUserNode(t));i.length>0&&i.forEach((function(e){n.$refs.deparmentUserTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.deparmentUserTree&&this.$refs.deparmentUserTree.setCheckedKeys([])},filterUserNode:function(e){return function(t){var n="~",r=t.substring(t.lastIndexOf(n)+1);return r===e.id+""}},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},clickSearch:function(){this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},handleCheckChange:function(e,t,n){if(this.isUserNode(e)&&t){var r=JSON.parse(e.data),o=this.packageSelectUser(r);o&&this.selectResult.push(o)}},packageSelectUser:function(e){if(!this.isContainAllUser()){var t=this.selectResult.filter(this.filterUser(e));if(t&&0===t.length){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var n={id:e.id,name:e.name,zhName:e.name,loginName:e.loginName,email:e.email,telephone:e.telephone,mainDepartmentName:e.mainDepartmentName,subCompanyName:e.subCompanyName,user:e,enName:e.enName};return n}return null}this.alertByAllUser()},isContainAllUser:function(){return this.selectResult.length>0&&this.selectResult[0].id===this.tenantNodeId},packageAllUserToResult:function(){if(!this.isContainAllUser()){var e={id:this.tenantNodeId,name:"所有用户"};return e}return null},filterUser:function(e){return function(t){return t.id===e.id}},handleCheckNode:function(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?this.isContainAllUser()?this.alertByAllUser():this.checkedNodeToSelectResult(e):this.cancelChildCheckedNodes(e)},alertByAllUser:function(){var e=this;this.$alert(this.$t("imatrixUIMessage.pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")}).then((function(){e.$refs.deparmentUserTree&&e.$refs.deparmentUserTree.setCheckedKeys([])}))},checkedNodeToSelectResult:function(e){if(this.isSelectTenantNode(e.id)){var t=this.packageAllUserToResult();t&&(this.selectResult=[],t.nodeId=this.tenantNodeId+"",this.selectResult.push(t))}else this.checkedNode(e)},cancelCheckedNodeAndChildren:function(e){var t=this;e.id!==this.tenantNodeId&&this.$refs.deparmentUserTree.setChecked(this.tenantNodeId+"",!1);var n=e.children;n&&n.forEach((function(e){t.$refs.deparmentUserTree.setChecked(e.nodeId,!1),t.cancelCheckedNodeAndChildren(e)}))},checkedNode:function(e){var t=this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded;t?this.checkedChildrenUserNodes(e,e.children):e.leaf||(e.children?this.staticCheckedUserNodes(e):this.dynamicCheckedUserNodes(e))},cancelChildCheckedNodes:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.deparmentUserTree.setChecked(e.nodeId,!1),t.cancelChildCheckedNodes(e)}))},checkedChildrenUserNodes:function(e,t){var n=this;if(t){var r=[];t.forEach((function(e){if("USER"===e.nodeType){n.$refs.deparmentUserTree.setChecked(e.nodeId,!0);var t=JSON.parse(e.data),o=n.packageSelectUser(t);o&&(o.nodeId=e.nodeId,n.selectResult.push(o))}else"DEPARTMENT"===e.nodeType?(n.$refs.deparmentUserTree.setChecked(e.nodeId,!0),r.push(e.id)):n.$refs.deparmentUserTree.setChecked(e.nodeId,!1);n.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded&&n.checkedChildrenUserNodes(e)})),this.packageChildrenDepartmentUsers(r)}e.id===this.tenantNodeId&&this.$refs.deparmentUserTree.setCheckedKeys([]),this.$refs.deparmentUserTree.setChecked(e.nodeId,!0)},packageChildrenDepartmentUsers:function(e){var t=this;e&&e.length>0&&this.getChildrenDepartmentUsers(e).then((function(e){e.forEach((function(e){var n=t.packageSelectUser(e);n&&t.selectResult.push(n)}))}))},staticCheckedUserNodes:function(e){this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedChildrenUserNodes(e,e.children)},handleNodeClick:function(e,t,n){var r=[];if(this.$refs.deparmentUserTree&&(r=this.$refs.deparmentUserTree.getCheckedKeys()),r.indexOf(e.nodeId)>-1)this.$refs.deparmentUserTree.setChecked(e.nodeId,!1),this.cancelChildCheckedNodes(e),this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=!0;else if(this.isContainAllUser()){var o=this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded,i=!o;this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=i,this.alertByAllUser()}else if(this.isSelectTenantNode(e.id)){var a=this.packageAllUserToResult();a&&(this.selectResult=[],a.nodeId=this.tenantNodeId+"",this.selectResult.push(a)),this.staticCheckedUserNodes(e)}else{var s=e.children;s&&s.length>0?this.staticCheckedUserNodes(e):e.nodeType&&"USER"===e.nodeType?this.$refs.deparmentUserTree.setChecked(e.nodeId,!0):this.isClickNode=!0}},isUserNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"USER"===e.nodeType},confirmSelectUser:function(){var e={userIds:[],userNames:[],userZhNames:[],userEnNames:[],loginNames:[],emails:[],telephones:[],users:[]},t=!1;if(0===this.selectResult.length)t=!0;else for(var n=0;n<this.selectResult.length;n++){var r=this.selectResult[n];e.userIds.push(r.id),e.loginNames.push(r.loginName),r.email&&""!==r.email&&e.emails.push(r.email),r.telephone&&""!==r.telephone&&e.telephones.push(r.telephone),r.user?e.users.push(r.user):e.users.push(r);var o=r.name;e.userZhNames.push(o),r.enName&&""!==r.enName.trim()?(e.userEnNames.push(r.enName),o=o+"("+r.enName+")"):e.userEnNames.push(""),e.userNames.push(o)}e.userIds.length>0?(e.containBranch=this.containBranch,this.$emit("result",e)):t=!0,t&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},loadNode:function(e,t){var n=0,r="0";0===e.level?(n=0,r=n+""):(n=e.data.id,r=e.data.nodeId);var o=[];this.$refs.deparmentUserTree&&(o=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,o,r)},renderContent:function(e,t){var n,r=t.node;t.data,t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"USER"===r.data.nodeType?"el-icon-user":"el-icon-date",e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])}})},nu=tu,ru=(n("eff8"),f(nu,Ks,Xs,!1,null,null,null)),ou=ru.exports,iu={name:"DepartmentUserMultiTree",components:{InlineDepartmentUserMultiTree:ou},props:{departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"60%"},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectPersonnel");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("closeDialog",e)},confirmSelectUser:function(){this.$refs.inlineDepartmentUser.confirmSelectUser()}}},au=iu,su=(n("22ab"),f(au,qs,Ys,!1,null,null,null)),uu=su.exports,lu={name:"DepartmentUserTree",components:{DepartmentUserSingleTree:Gs,DepartmentUserMultiTree:uu},props:{multiple:{type:Boolean,default:!0},departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectPersonnel");return this.title&&(e=this.title),{myTitle:e}},methods:{closeDialog:function(e){this.$emit("close",e)},closedDialog:function(){this.$emit("closed")},openDialog:function(){this.$emit("open")},opendDialog:function(){this.$emit("opend")}}},cu=lu,fu=f(cu,xs,Ss,!1,null,null,null),du=fu.exports;du.install=function(e){e.component(du.name,du)};var hu=du,pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("inline-workgroup-tree",{ref:"workgroupTree",attrs:{multiple:e.multiple,"branch-info":e.branchInfo},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroup}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},mu=[],gu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-header",{staticStyle:{"text-align":"right","font-size":"12px"}},[n("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{"select-when-unmatched":"","fetch-suggestions":e.querySearch,placeholder:e.$t("imatrixUIMessage.pleaseEnterTeamName"),"trigger-on-focus":!1},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",[n("el-tree",{ref:"workgroupTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":e.multiple,"node-key":"id","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{check:e.handleCheckNode,"node-click":e.handleNodeClick}})],1)],1)],1)},vu=[],bu={initLoad:function(e,t,n,r){var o=this,i={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroups",i).then((function(i){if(n(i),o.$refs.workgroupTree.updateKeyChildren(e,i),0===e){var a=i[0].data;o.tenantInfo=JSON.parse(a),o.containBranch=i[0].containBranch,o.loadWorkgroup(o.tenantNodeId)}r&&r.indexOf(e)>-1&&e===o.tenantNodeId&&o.checkedAllWorkgroups(t.data)}))},loadWorkgroup:function(e){var t=this,n={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroups",n).then((function(n){t.$refs.workgroupTree.updateKeyChildren(e,n),t.$refs.workgroupTree.store.nodesMap[e]&&(t.$refs.workgroupTree.store.nodesMap[e].expanded=!0)}))}},yu=bu;function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wu(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu={name:"InlineWorkgroupTree",props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"name",children:"children",isLeaf:"leaf"},containBranch:!1,tenantNodeId:-1,restaurants:[],searchValue:null,searchStoreKey:"searchWorkgroup",selectNodeInfo:null,tenantInfo:{}}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.loadWorkgroup(this.tenantNodeId))}},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:_u(_u(_u({},E),yu),{},{handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e,this.$refs.workgroupTree.filter(e)},clickSearch:function(){this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},filterNode:function(e,t,n){if(e){var r=t.name;return t.id!==this.tenantNodeId&&(this.containBranch&&(r=r.substring(0,r.lastIndexOf("("))),-1!==r.indexOf(e))}return!0},handleCheckNode:function(e,t){t.checkedKeys.indexOf(e.id)>-1?e.id===this.tenantNodeId&&this.checkedAllWorkgroups(e):e.id===this.tenantNodeId&&this.$refs.workgroupTree.setCheckedKeys([])},checkedAllWorkgroups:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.workgroupTree.setChecked(e.id,!0)}))},handleNodeClick:function(e,t,n){this.multiple&&this.clickNodeWhenMultiple(e),this.selectSingleNode(e,!1)},selectSingleNode:function(e,t){if(this.isWorkgroupNode(e)&&!this.multiple){var n=JSON.parse(e.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName;var r={id:e.id,name:e.name,code:n.code,containBranch:this.containBranch,workgroup:n};this.selectNodeInfo=r,!0===t&&this.$emit("result",r)}},clickNodeWhenMultiple:function(e){var t=[];this.$refs.workgroupTree&&(t=this.$refs.workgroupTree.getCheckedKeys()),this.$refs.workgroupTree.store.nodesMap[e.id].expanded=!0,t.indexOf(e.id)>-1?(this.$refs.workgroupTree.setChecked(e.id,!1),e.id===this.tenantNodeId&&this.$refs.workgroupTree.setCheckedKeys([])):(this.$refs.workgroupTree.setChecked(e.id,!0),e.id===this.tenantNodeId&&this.checkedAllWorkgroups(e))},isWorkgroupNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"WORKGROUP"===e.nodeType},selectWorkgroup:function(){var e=!1;if(this.multiple){var t={ids:[],names:[],codes:[],workgroups:[]},n=this.$refs.workgroupTree.getCheckedNodes();if(n)if(0===n.length)e=!0;else{for(var r=0;r<n.length;r++){var o=n[r];if(o.id!==this.tenantNodeId){var i=JSON.parse(o.data);this.addSelectedWorkgroupInfo(t,o,i)}}t.ids.length>0?this.$emit("result",t):e=!0}else e=!0}else{var a=this.$refs.workgroupTree.getCurrentNode();a&&null!==a?this.selectSingleNode(a,!0):e=!0}e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectATeam"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},addSelectedWorkgroupInfo:function(e,t,n){n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName,e.containBranch=this.containBranch,e.ids.push(t.id),e.workgroups.push(n),e.codes.push(n.code),e.names.push(t.name)},loadNode:function(e,t){var n=0;n=0===e.level?0:e.data.id;var r=[];this.$refs.workgroupTree&&(r=this.$refs.workgroupTree.getCheckedKeys()),this.initLoad(n,e,t,r)},renderContent:function(e,t){var n,r=t.node,o=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",o.nodeType&&"WORKGROUP"===o.nodeType&&this.searchValue&&o.name.indexOf(this.searchValue)>-1?e("span",[e("i",{class:n}),e("span",{class:"searchResult",attrs:{title:r.label}},[r.label])]):e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])}})},xu=Cu,Su=(n("cdf0"),f(xu,gu,vu,!1,null,null,null)),Ou=Su.exports,ku={name:"WorkgroupTree",components:{InlineWorkgroupTree:Ou},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectATeam");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("close",e)},selectWorkgroup:function(){this.$refs.workgroupTree.selectWorkgroup()}}},Eu=ku,Tu=f(Eu,pu,mu,!1,null,null,null),Du=Tu.exports;Du.install=function(e){e.component(Du.name,Du)};var Iu=Du,Nu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("inline-workgroup-user-tree",{ref:"workgroupUserTree",attrs:{multiple:e.multiple,"branch-info":e.branchInfo,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroupUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Au=[],Pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[n("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{size:"small","select-when-unmatched":"","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",{staticStyle:{padding:"10px"}},[n("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[n("el-tree",{ref:"workgroupUserTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":e.multiple,"node-key":"nodeId","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{check:e.handleCheckNode,"node-click":e.handleNodeClick}})],1)])],1)],1)},Mu=[],Ru={filterAppendNodes:function(e){var t=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/searches",this.searchParam).then((function(n){if(n){if(0===n.length)return void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")});n.forEach((function(n){var r=n,o="~";n.indexOf(o)>-1&&(r=n.substring(n.indexOf("~")+1)),-1===t.allSearchNodeIds.indexOf(n)&&(t.allSearchNodeIds.push(n),t.loadWorkgroup(r,n,!0,e))}))}else t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},checkedNode:function(e,t){var n=this,r=e.children;if(r&&r.length>0)this.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e);else if(!e.leaf)if(t)this.isClickNode=!0;else{var o={parentId:e.id,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",o).then((function(t){n.$refs.workgroupUserTree.updateKeyChildren(e.nodeId,t),n.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,n.checkedNodeAndChildren(e)}))}},getAllSelectedWorkgroupUsers:function(e,t){var n=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/user-in-workgroups",e).then((function(e){e.forEach((function(e){n.addSelectedUserInfo(t,e)})),t.userIds.length>0?n.$emit("result",t):n.$alert(Object(x["e"])().t("imatrixUIMessage.pleaseSelectPersonnel"),Object(x["e"])().t("imatrixUIMessage.tips"),{confirmButtonText:Object(x["e"])().t("imatrixUIPublicModel.sure")})}))},loadNode:function(e,t){var n=0,r="0";0===e.level?(n=0,r="0"):(n=e.data.id,r=e.data.nodeId);var o=[];this.$refs.workgroupUserTree&&(o=this.$refs.workgroupUserTree.getCheckedKeys()),this.initLoad(n,r,e,t,o)},initLoad:function(e,t,n,r,o){var i=this,a={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",a).then((function(a){if(r(a),i.$refs.workgroupUserTree.updateKeyChildren(t,a),0===e){var s=a[0].data;i.tenantInfo=JSON.parse(s),i.containBranch=a[0].containBranch,i.loadWorkgroup(i.tenantNodeId,i.tenantNodeId+"")}i.isClickNode?(i.isClickNode=!1,i.checkedNode(n.data)):o&&o.indexOf(t)>-1&&i.checkedNode(n.data)}))},loadWorkgroup:function(e,t,n,r){var o=this,i={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",i).then((function(e){o.$refs.workgroupUserTree.updateKeyChildren(t,e),o.$refs.workgroupUserTree.store.nodesMap[t]&&(o.$refs.workgroupUserTree.store.nodesMap[t].expanded=!0),n&&(-1===o.allExpandNodeIds.indexOf(t)&&o.allExpandNodeIds.push(t),o.allExpandNodeIds.length===o.allSearchNodeIds.length&&(o.$refs.workgroupUserTree.filter(r),o.allExpandNodeIds=[],o.allSearchNodeIds=[]))}))}},Bu=Ru;function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $u={name:"InlineWorkgroupUserTree",props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"name",children:"children",isLeaf:"leaf"},searchParam:{userField:null,searchValue:null,treeType:"MAN_GROUP_TREE",departmentInfo:null},containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchWorkgroupUser",selectNodeInfo:null,tenantInfo:{}}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.loadWorkgroup(this.tenantNodeId,this.tenantNodeId+""))}},created:function(){},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:Fu(Fu(Fu({},E),Bu),{},{handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.branchInfo,this.filterAppendNodes(e)},clickSearch:function(){this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},filterNode:function(e,t,n){if(e){if(t.nodeType&&"USER"===t.nodeType){var r=JSON.parse(t.data);return this.filterUserVal(r,e)}return!1}return!0},filterUserVal:function(e,t){for(var n=["name","loginName","email","telephone","jobNumber","honorificName"],r=!1,o=0;o<n.length;o++){var i=n[o],a=e[i];if(!(-1!==a.indexOf(t)||"name"===i&&e["enName"]&&-1!==e["enName"].indexOf(t))){r=!1;break}r=!0}return r},handleCheckNode:function(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?this.checkedNode(e,!1):this.cancelCheckedNode(e)},checkedNodeAndChildren:function(e){var t=this;this.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,this.$refs.workgroupUserTree.setChecked(e.nodeId,!0);var n=e.children;n&&n.forEach((function(e){t.checkedNodeAndChildren(e)}))},cancelCheckedNode:function(e){e.id===this.tenantNodeId?this.$refs.workgroupUserTree.setCheckedKeys([]):e.nodeType&&"WORKGROUP"===e.nodeType&&this.cancelCheckedUserNodesWithWorkgroup(e)},checkedAllWorkgroups:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.workgroupUserTree.setChecked(e.nodeId,!0)}))},cancelCheckedUserNodesWithWorkgroup:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.workgroupUserTree.setChecked(e.nodeId,!1)}))},handleNodeClick:function(e,t,n){this.multiple&&this.clickNodeWhenMultiple(e),this.selectSingleNode(e,!1)},selectSingleNode:function(e,t){if(this.isUserNode(e)&&!this.multiple){var n=JSON.parse(e.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName;var r=n.name;n.enName&&""!==n.enName.trim()&&(r=r+"("+n.enName+")");var o={id:n.id,name:r,loginName:n.loginName,email:n.email,telephone:n.telephone,containBranch:this.containBranch,user:n,enName:n.enName,subCompanyName:n.subCompanyName};this.selectNodeInfo=o,!0===t&&this.$emit("result",o)}},clickNodeWhenMultiple:function(e){var t=[];this.$refs.workgroupUserTree&&(t=this.$refs.workgroupUserTree.getCheckedKeys()),this.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,t.indexOf(e.nodeId)>-1?(this.$refs.workgroupUserTree.setChecked(e.nodeId,!1),this.cancelCheckedNode(e)):(this.$refs.workgroupUserTree.setChecked(e.nodeId,!0),this.checkedNode(e,!0))},isUserNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"USER"===e.nodeType},selectWorkgroupUser:function(){var e=this,t=!1;if(this.multiple){var n={userIds:[],userNames:[],loginNames:[],emails:[],telephones:[],users:[]},r=[],o=this.$refs.workgroupUserTree.getCheckedNodes();if(o)if(0===o.length)t=!0;else{for(var i=0;i<o.length;i++){var a=o[i];if(this.isSelectTenantNode(a.id)){n.userIds=[],n.userNames=[],n.userIds.push(a.id),n.userNames.push("所有工作组人员");break}if(a.id!==this.tenantNodeId)if(a.leaf){if(this.isUserNode(a)){var s=JSON.parse(a.data);this.addSelectedUserInfo(n,s)}}else{var u=a.children;u&&u.length>0?u.forEach((function(t){var r=JSON.parse(t.data);e.addSelectedUserInfo(n,r)})):r.push(a.id)}}r.length>0?(this.getAllSelectedWorkgroupUsers(r,n),t=!1):n.userIds.length>0?this.$emit("result",n):t=!0}else t=!0}else{var l=this.$refs.workgroupUserTree.getCurrentNode();l&&null!==l?this.selectSingleNode(l,!0):t=!0}t&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.branchInfo||0===this.branchInfo.length)},addSelectedUserInfo:function(e,t){var n=e.userIds.filter(this.filterUserNode(t));if(0===n.length){var r=t.name;t.enName&&""!==t.enName&&(r=r+"("+t.enName+")"),t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,e.containBranch=this.containBranch,e.users.push(t),e.userIds.push(t.id),e.loginNames.push(t.loginName),e.userNames.push(r),e.emails.push(t.email),e.telephones.push(t.telephone)}},filterUserNode:function(e){return function(t){return t===e.id}},renderContent:function(e,t){var n,r=t.node,o=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",o.nodeType&&"USER"===o.nodeType&&this.searchValue&&this.filterUserVal(o,this.searchValue)?e("span",[e("i",{class:n}),e("span",{class:"searchResult",attrs:{title:r.label}},[r.label])]):e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])}})},ju=$u,Vu=(n("d601"),f(ju,Pu,Mu,!1,null,null,null)),zu=Vu.exports,Hu={name:"WorkgroupUserTree",components:{InlineWorkgroupUserTree:zu},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectATeam");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("close",e)},selectWorkgroupUser:function(){this.$refs.workgroupUserTree.selectWorkgroupUser()}}},Uu=Hu,Wu=f(Uu,Nu,Au,!1,null,null,null),Gu=Wu.exports;Gu.install=function(e){e.component(Gu.name,Gu)};var qu=Gu;Q.install=function(e){e.component(Q.name,Q)};var Yu=Q,Ku=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.multiple?n("inline-department-user-multi-tree",{ref:"userTree",attrs:{height:e.height,"department-info":e.departmentInfo,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}):e._e(),e.multiple?e._e():n("inline-department-user-single-tree",{ref:"userTree",attrs:{height:e.height,"department-info":e.departmentInfo},on:{result:e.result}})],1)},Xu=[],Ju={name:"InlineDepartmentUserTree",components:{InlineDepartmentUserSingleTree:zs,InlineDepartmentUserMultiTree:ou},props:{multiple:{type:Boolean,default:!0},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){return{selectNodeInfo:null}},methods:{result:function(e){this.selectNodeInfo=e,this.$emit("result",e)},confirmSelectUser:function(){this.$refs.userTree.confirmSelectUser()}}},Zu=Ju,Qu=f(Zu,Ku,Xu,!1,null,null,null),el=Qu.exports;el.install=function(e){e.component(el.name,el)};var tl=el;Ou.install=function(e){e.component(Ou.name,Ou)};var nl=Ou;zu.install=function(e){e.component(zu.name,zu)};var rl=zu,ol=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",["undefined"!==typeof e.buttonInfo["theTransactor"]&&!1===e.buttonInfo["theTransactor"]?n("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._t("errorArea"),e._t(e.slotAfter)],2):n("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._l(e.buttons,(function(t,r){return n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:t.permission,expression:"button.permission"}],key:r,class:t.code?t.code:"",attrs:{disabled:e.preventReclick,type:t.type,size:"small"},on:{click:t.clickFun}},[e._v("\n "+e._s(t.i18nButtonName)+"\n ")])})),e._t(e.slotAfter)],2)])},il=[];function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ul={name:"WorkflowButton",props:{buttonInfo:{type:Object,default:null},hiddenBtns:{type:Array,default:null},permissionPrefix:{type:String,default:null},formButtonPosition:{type:String,default:null}},data:function(){var e=this.getButtonsPermission();return{slotBefore:"before",slotAfter:"after",buttons:[],buttonsPermission:e}},computed:sl({},Object(Nn["a"])(["preventReclick"])),provide:function(){return{}},created:function(){var e=[],t=this;("undefined"===typeof this.buttonInfo["processState"]||null===this.buttonInfo["processState"]||"UNSUBMIT"===this.buttonInfo["processState"]&&"WAIT_TRANSACT"===this.buttonInfo["active"])&&("undefined"!==typeof this.buttonInfo["processState"]&&!0!==this.buttonInfo["showButtonSave"]||e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["saveButton"]),permission:this.buttonsPermission["save"],type:"primary",clickFun:function(){t.$emit("save")},code:"saveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["submitProcess"],type:"primary",clickFun:function(){t.$emit("submitProcess")},code:"submitButton"})),this.buttonInfo["processState"]&&("WAIT_TRANSACT"===this.buttonInfo["active"]&&"TYPE_READ"===this.buttonInfo["processingMode"]?(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("readButton"))&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["readButton"]),permission:this.buttonsPermission["completeTask"],type:"primary",clickFun:function(){t.completeTask("READED")},code:"readButton"}):"SUBMIT"===this.buttonInfo["processState"]&&("TYPE_READ"===this.buttonInfo["processingMode"]||!this.buttonInfo["showButtonSave"]||"WAIT_TRANSACT"!==this.buttonInfo["active"]&&"WAIT_DESIGNATE_TRANSACTOR"!==this.buttonInfo["active"]&&"WAIT_CHOICE_TACHE"!==this.buttonInfo["active"]&&"DRAW_WAIT"!==this.buttonInfo["active"]||e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["saveButton"]),permission:this.buttonsPermission["update"],type:"primary",clickFun:function(){t.$emit("update")},code:"saveButton"}),this.buttonInfo["active"]&&"WAIT_DESIGNATE_TRANSACTOR"===this.buttonInfo["active"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("selectTransactor"))&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["selectTransactor"],type:"primary",clickFun:function(){t.$emit("selectTransactors")},code:"submitButton"}),this.buttonInfo["active"]&&"WAIT_CHOICE_TACHE"===this.buttonInfo["active"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("selectTache"))&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["selectTache"],type:"primary",clickFun:function(){t.$emit("selectTaches")},code:"submitButton"}),this.buttonInfo["active"]&&"DRAW_WAIT"===this.buttonInfo["active"]&&this.buttonInfo["showButtonDraw"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["drawButton"]),permission:this.buttonsPermission["drawTask"],type:"primary",clickFun:function(){t.$emit("drawTask")},code:"drawButton"}),this.buttonInfo["drawTask"]&&"WAIT_TRANSACT"===this.buttonInfo["active"]&&this.buttonInfo["showButtonAbandon"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["abandonButton"]),permission:this.buttonsPermission["abandonReceive"],type:"primary",clickFun:function(){t.$emit("abandonDraw")},code:"abandonButton"}),"COMPLETED"===this.buttonInfo["active"]&&"TYPE_READ"!==this.buttonInfo["processingMode"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("retrieveButton"))&&this.buttonInfo["showButtonGetBack"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["backButton"]),permission:this.buttonsPermission["retrieve"],type:"primary",clickFun:function(){t.$emit("retrieveTask")},code:"backButton"}),"WAIT_TRANSACT"===this.buttonInfo["active"]&&"EDIT"===this.buttonInfo["processingMode"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["submitTask"],type:"primary",clickFun:function(){t.completeTask("SUBMIT")},code:"submitButton"}),"WAIT_TRANSACT"!==this.buttonInfo["active"]||"APPROVE"!==this.buttonInfo["processingMode"]&&"COUNTERSIGN"!==this.buttonInfo["processingMode"]||(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["agreeButton"]),permission:this.buttonsPermission["approve"],type:"primary",clickFun:function(){t.completeTask("APPROVE")},code:"agreeButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["disagreeButton"]),permission:this.buttonsPermission["refuse"],type:"primary",clickFun:function(){t.completeTask("REFUSE")},code:"disagreeButton"}),"COUNTERSIGN"===this.buttonInfo["processingMode"]&&this.buttonInfo["showButtonAddCounter"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["addSignerButton"]),permission:this.buttonsPermission["addSigner"],type:"primary",clickFun:function(){t.$emit("addSigner")},code:"addSignerButton"}),"COUNTERSIGN"===this.buttonInfo["processingMode"]&&this.buttonInfo["showButtonDelCounter"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["removeSignerButton"]),permission:this.buttonsPermission["removeSigner"],type:"primary",clickFun:function(){t.$emit("removeSigner")},code:"removeSignerButton"})),"WAIT_TRANSACT"===this.buttonInfo["active"]&&"VOTE"===this.buttonInfo["processingMode"]&&(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["approveButton"]),permission:this.buttonsPermission["agreement"],type:"primary",clickFun:function(){t.completeTask("AGREEMENT")},code:"approveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["opposeButton"]),permission:this.buttonsPermission["oppose"],type:"primary",clickFun:function(){t.completeTask("OPPOSE")},code:"opposeButton"}),this.buttonInfo["showButtonKiken"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["abstainButton"]),permission:this.buttonsPermission["kiken"],type:"primary",clickFun:function(){t.completeTask("KIKEN")},code:"abstainButton"})),"WAIT_TRANSACT"===this.buttonInfo["active"]&&"TYPE_READ"!==this.buttonInfo["processingMode"]&&this.buttonInfo["showButtonCopy"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("copyButton"))&&this.buttonInfo["showButtonCopy"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["copyButton"]),permission:this.buttonsPermission["copyTask"],type:"",clickFun:function(){t.$emit("createCopyTask")},code:"copyButton"}),"TYPE_READ"===this.buttonInfo["processingMode"]||"WAIT_TRANSACT"!==this.buttonInfo["active"]&&"DRAW_WAIT"!==this.buttonInfo["active"]||this.hiddenBtns&&(!this.hiddenBtns||-1!==this.hiddenBtns.indexOf("assignButton"))||!this.buttonInfo["showButtonAppoint"]||e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["appointButton"]),permission:this.buttonsPermission["assign"],type:"",clickFun:function(){t.$emit("assignTask")},code:"appointButton"}))),"bottomRight"===this.formButtonPosition?(this.buttons=e.slice().reverse(),this.slotBefore="after",this.slotAfter="before"):this.buttons=e},mounted:function(){},methods:{exportReportButt:function(){this.$emit("exportReport")},completeTask:function(e){this.$emit("completeTask",e)},i18nButtonName:function(e){var t="initVal:";if(e.indexOf(t)>=0){var n=e.substring(e.indexOf(t)+t.length);return this.$t("workflowButton."+n)}return e},getButtonsPermission:function(){var e="true",t=this.permissionPrefix?this.permissionPrefix+".completeTask":e;return{save:this.permissionPrefix?this.permissionPrefix+".save":e,submitProcess:this.permissionPrefix?this.permissionPrefix+".submitProcess":e,approve:this.permissionPrefix?this.permissionPrefix+".approve":t,refuse:this.permissionPrefix?this.permissionPrefix+".refuse":t,submitTask:this.permissionPrefix?this.permissionPrefix+".submit":t,agreement:this.permissionPrefix?this.permissionPrefix+".agreement":t,oppose:this.permissionPrefix?this.permissionPrefix+".oppose":t,kiken:this.permissionPrefix?this.permissionPrefix+".kiken":t,readed:this.permissionPrefix?this.permissionPrefix+".readed":t,drawTask:this.permissionPrefix?this.permissionPrefix+".drawTask":e,abandonReceive:this.permissionPrefix?this.permissionPrefix+".abandonReceive":e,retrieve:this.permissionPrefix?this.permissionPrefix+".retrieve":e,update:this.permissionPrefix?this.permissionPrefix+".update":e,assign:this.permissionPrefix?this.permissionPrefix+".assign":e,selectTransactor:this.permissionPrefix?this.permissionPrefix+".selectTransactor":e,selectTache:this.permissionPrefix?this.permissionPrefix+".selectTache":e,copyTask:this.permissionPrefix?this.permissionPrefix+".copyTask":e,addSigner:this.permissionPrefix?this.permissionPrefix+".addSigner":e,removeSigner:this.permissionPrefix?this.permissionPrefix+".removeSigner":e,exportReport:this.permissionPrefix?this.permissionPrefix+".exportReport":e}}}},ll=ul,cl=f(ll,ol,il,!1,null,null,null),fl=cl.exports;fl.install=function(e){e.component(fl.name,fl)};var dl=fl,hl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loaded?n("el-table",{attrs:{data:e.histories,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":"","row-key":"uuid","tree-props":{children:"children",hasChildren:"hasChildren"},lazy:"",load:e.getChildren}},[n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.index"),align:"left",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,1480515225)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.taskName"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_START"===t.row.historyType?n("span",[e._v(e._s(e.$t("workflowHistoryList.processStart")))]):t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span",[e._v(e._s(e.$t("workflowHistoryList.processEnd")))]):t.row.current?n("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(e.i18nTaskName(t.row)))]):t.row.special?!0===t.row.special?n("span",{staticStyle:{color:"red"}},[e._v(e._s(e.i18nTaskName(t.row)+"["+e.$t("workflowHistoryList.specailText")+"]"))]):e._e():n("span",[e._v(e._s(e.i18nTaskName(t.row)))])]}}],null,!1,298792300)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operator"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.creatorName))])]}}],null,!1,1328406894)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operatorDept"),align:"left",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,1295965654)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operationTime"),align:"left",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.formatCreatedTime))])]}}],null,!1,53914243)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operation"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):t.row.current?n("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(t.row.transactionResult)+" "+e._s(e.$t("workflowHistoryList.toDoText")))]):n("span",[e._v(e._s(e.i18nOperation(t.row)))])]}}],null,!1,3189498206)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.opinion"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.opinion))])]}}],null,!1,1506270213)})],1):e._e()},pl=[];function ml(e,t,n,r){var o=e.transactionResult,i=e.historyType;if(!e.current&&i)if(e.transactionParams){var a=JSON.parse(e.transactionParams),s=i.toLowerCase(),u=gl(i);if(u?s="commonButtonOperation":"process_end"===s&&(s="processEnd"),u||"HISTORY_COMPLETE_TRANSFER"===i){var l=a["2"];a["2"]=Object(x["e"])().t("workflowButton."+l)}if("process_start"===s&&t&&null!==t)a[1]=t,o=Object(x["e"])().t("workflowHistoryList."+s,a);else{var c=a;if(n&&r)for(var f in a){c[f]=a[f];var d=a[f];if(d.indexOf("${taskNodeId:")>=0){var h=d.substring(d.indexOf(":")+1,d.indexOf("##")),p=d.substring(d.indexOf("##")+2,d.lastIndexOf("}")),m=n[h];m&&m[r]&&""!==m[r]?c[f]=m[r]:c[f]=p}}o=Object(x["e"])().t("workflowHistoryList."+s,c)}}else o=Object(x["e"])().t("workflowHistoryList."+i.toLowerCase());return o}function gl(e){return"HISTORY_SUBMIT"===e||"HISTORY_AGREE"===e||"HISTORY_DISAGREE"===e||"HISTORY_AGREEMENT"===e||"HISTORY_OPPOSE"===e||"HISTORY_KIKEN"===e||"HISTORY_SIGNOFF"===e||"HISTORY_SEND"===e||"HISTORY_DISTRIBUTE"===e||"HISTORY_READED"===e}var vl={refresh:function(){this.getData()}},bl=vl;function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _l={name:"WorkflowHistoryList",props:{workflowId:{type:Number,default:null},historyList:{type:Array,default:null},allProcessI18n:{type:Object,default:null}},data:function(){var e=null;return this.historyList&&this.historyList.length>0&&(e=[].concat(this.historyList)),{loaded:!1,histories:e,processI18n:null,processNameI18n:null}},computed:{},provide:function(){return{}},created:function(){var e=this;this.getI18nSet().then((function(t){e.processI18n=t,e.histories&&null!==e.histories?e.loaded=!0:e.getData()}))},mounted:function(){},methods:wl(wl({},bl),{},{getData:function(){var e=this;this.$http.get(O.a.prototype.baseAPI+"/wf-editor/instance-histories/"+this.workflowId).then((function(t){e.histories=t.histories,t&&t.currentTasks&&(e.histories=e.histories.concat(t.currentTasks)),e.loaded=!0})).catch((function(t){console.log(t),e.loaded=!0}))},getI18nSet:function(){var e=this;return new Promise((function(t,n){e.allProcessI18n?t(e.allProcessI18n):e.$http.get(O.a.prototype.baseAPI+"/wf-editor/i18n-settings/get-bundle-info?workflowId="+e.workflowId).then((function(e){t(e)})).catch((function(e){n(e)}))}))},i18nOperation:function(e){var t,n,r=Object(x["f"])(),o=e.bundleCode;return o&&""!==o&&this.processI18n&&(t=this.processI18n[o]),t&&t["processName"]&&(n=t["processName"][r]),ml(e,n,t,r)},i18nTaskName:function(e){var t,n=e.bundleCode;n&&""!==n&&this.processI18n&&(t=this.processI18n[n]);var r=null,o=e.i18nKey;if(o&&t&&t[o]){var i=Object(x["f"])();r=t[o][i]}return r&&null!==r||(r=e.taskName),r},getChildren:function(e,t,n){n(e.children)}})},Cl=_l,xl=f(Cl,hl,pl,!1,null,null,null),Sl=xl.exports;Sl.install=function(e){e.component(Sl.name,Sl)};var Ol=Sl;function kl(e){e.disabled=!1,e.classList.remove("is-disabled")}var El={inserted:function(e,t){e.addEventListener("click",(function(){e.disabled=!0,e.classList.add("is-disabled"),t.value().then((function(t){kl(e)})).catch((function(t){kl(e),console.log("Error",t.message)}))}))}},Tl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ValidCode disabled-select",style:"width:"+e.width+"; height:"+e.height,on:{click:e.refreshCode}},e._l(e.codeList,(function(t,r){return n("span",{key:r,style:e.getStyle(t)},[e._v(e._s(t.code))])})),0)},Dl=[],Il={name:"ValidCode",model:{prop:"value",event:"input"},props:{width:{type:String,default:"100px"},height:{type:String,default:"40px"},length:{type:Number,default:4},refresh:{type:Number,default:null}},data:function(){return{codeList:[]}},watch:{refresh:function(){this.createdCode()}},mounted:function(){this.createdCode()},methods:{refreshCode:function(){this.createdCode()},createdCode:function(){for(var e=this.length,t=[],n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length,o=0;o<e;o++){var i=[Math.round(220*Math.random()),Math.round(240*Math.random()),Math.round(200*Math.random())];t.push({code:n.charAt(Math.floor(Math.random()*r)),color:"rgb(".concat(i,")"),fontSize:"".concat(+[Math.floor(10*Math.random())]+6+10,"px"),padding:"".concat([Math.floor(10*Math.random())],"px"),transform:"rotate(".concat(Math.floor(90*Math.random())-Math.floor(90*Math.random()),"deg)")})}this.codeList=t,this.$emit("input",t.map((function(e){return e.code})).join(""))},getStyle:function(e){return"color: ".concat(e.color,"; font-size: ").concat(e.fontSize,"; padding: ").concat(e.padding,"; transform: ").concat(e.transform)}}},Nl=Il,Al=(n("31b9"),f(Nl,Tl,Dl,!1,null,"0e45e064",null)),Pl=Al.exports;Pl.install=function(e){e.component(Pl.name,Pl)};var Ml=Pl,Rl=new Map,Bl=Rl,Ll=n("5c96");function Fl(e,t,n,r){var o=this;return new Promise((function(i,a){$l(e,t,n,r).then((function(e){Jl("afterExport",r)&&"function"===typeof r.afterExport&&r.afterExport.call(o),i(e)})).catch((function(e){Jl("exportError",r)&&"function"===typeof r.exportError&&r.exportError.call(o),a(e)}))}))}function $l(e,t,n,r){var o=this;return new Promise((function(i,a){var s=!0;if(Jl("beforeExport",r)&&"function"===typeof r.beforeExport&&(s=r.beforeExport.call(o)),s)if(e&&e.hasOwnProperty("data")){var u={};u["_data"]=e.data,Wl(JSON.stringify(u),t,n).then((function(e){i(e)})).catch((function(e){a(e)}))}else e&&e.hasOwnProperty("url")?jl(e,t,n).then((function(e){i(e)})).catch((function(e){a(e)})):Ul(t,n).then((function(e){i(e)})).catch((function(e){a(e)}));else i(!1)}))}function jl(e,t,n){return new Promise((function(r,o){var i=Vl(n),a=Hl(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),O.a.prototype.$http.post(s,a).then((function(e){var n;if(e instanceof Array){var r={};r["_data"]=e,n=JSON.stringify(r)}else n=JSON.stringify(e);return Wl(n,t,i)})).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function Vl(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=ze.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Bl.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function zl(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=ze.get("_list_code")),t=ze.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Bl.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Bl.get(n)),t}function Hl(e){var t={},n=zl(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),o={currentPage:1,pageSize:99999999,showTotal:!1};t=r,r.pagination=o,n.options.extraParam&&(t=pt(r,n))}return t}function Ul(e,t){return new Promise((function(n,r){var o=zl(t);if(void 0===o||null===o)r("导出失败");else{var i=Hl(t);O.a.prototype.$http.post(o.url,i).then((function(n){var r=n.data;r||(r=[]);var o={};return o["_data"]=r,Wl(JSON.stringify(o),e,t)})).then((function(e){n(e)})).catch((function(e){r(e)}))}}))}function Wl(e,t,n){return new Promise((function(r,o){var i=zl(n);if(void 0!==i)if(i.columns){var a=Yl(i.columns);0===a.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):ql(Kl(e,t,n,a)).then((function(e){r(e)})).catch((function(e){o(e)}))}else Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else Gl(e,t,n).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function Gl(e,t,n,r){return new Promise((function(o,i){var a={};r&&""!==r&&(a.additionalParamMap=r),O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){Qa(r,n).then((function(){0===r.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),o(!1)):ql(Kl(e,t,n,r)).then((function(e){o(e)})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))}))}function ql(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return Zl(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(e)+"&_t="+(new Date).getTime(),r)})).then((function(e){t(e)})).catch((function(e){n(e)}))}))}function Yl(e){var t=[];return e.forEach((function(e){e.exportable&&!0===e.exportable&&t.push(e)})),t}function Kl(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:Xl(e,t)}}function Xl(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function Jl(e,t){return"undefined"!==typeof t&&"undefined"!==typeof t[e]}function Zl(e,t){return new Promise((function(n,r){O.a.prototype.$http({method:"GET",url:e,responseType:"blob"}).then((function(e){var r=new Blob([e]);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,t);else{var o=document.createElement("a"),i=document.createEvent("HTMLEvents");i.initEvent("click",!1,!1),o.href=URL.createObjectURL(r),o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(o.href)}n(!0)})).catch((function(e){r(e)}))}))}var Ql={exportData:Fl,download:Zl};function ec(e,t,n,r,o,i){var a=this;return new Promise((function(s,u){tc(e,t,n,i,r,o).then((function(e){pc("afterExport",i)&&"function"===typeof i.afterExport&&i.afterExport.call(a),s(e)})).catch((function(e){pc("exportError",i)&&"function"===typeof i.exportError&&i.exportError.call(a),u(e)}))}))}function tc(e,t,n,r,o,i){var a=this;return new Promise((function(s,u){if(ze.get(n+"basicInfo")){var l=ze.get(n+"basicInfo");l&&l.i18nLable&&(t=l.i18nLable)}var c=!0;pc("beforeExport",r)&&"function"===typeof r.beforeExport&&(c=r.beforeExport.call(a)),c?e&&e.hasOwnProperty("url")?nc(e,t,n).then((function(e){s(e)})).catch((function(e){u(e)})):(e&&e.hasOwnProperty("data")&&console.log("data",e.data),ac(t,n,e.data,o,i).then((function(e){s(e)})).catch((function(e){u(e)}))):s(!1)}))}function nc(e,t,n){return new Promise((function(r,o){var i=rc(n),a=ic(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),O.a.prototype.$http.post(s,a).then((function(e){var n;if(e instanceof Array){var r={};r["_data"]=e,n=JSON.stringify(r)}else n=JSON.stringify(e);return uc(n,t,i)})).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function rc(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=ze.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Bl.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function oc(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=ze.get("_list_code")),t=ze.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Bl.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Bl.get(n)),t}function ic(e){var t={},n=oc(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),o={currentPage:1,pageSize:99999999,showTotal:!1};if(t=r,r.pagination=o,n.options.extraParam){var i;t=pt(r,n);var a=n.options.parentProp;"undefined"!==typeof a&&""!==a&&null!==a&&(i=a),i&&r&&r.searchForm&&r.searchForm.length>0&&(t.listViewTreeSetting=null)}}return t}function ac(e,t,n,r,o){return new Promise((function(i,a){var s=oc(t);if(void 0===s||null===s)a("导出失败");else{var u=ic(t);if(u.data=n,s.columns&&(u.exportColumns=fc(s.columns)),u.exportData={excelName:e},e&&null!==e&&""!==e?e+=".xlsx":e="default.xlsx",!r)return void Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.theButtonIsNotBoundToAResource"),type:"error",showClose:!0});u.functionCode=r,o&&(u.uuid=o),localStorage.setItem(o,"start"),O.a.prototype.$http.post(O.a.prototype.baseURL+"/dsc/commons/export-list-data",u).then((function(t){if(t.indexOf("~~")>=0)return localStorage.setItem(o,"ok"),mc(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(t)+"&_t="+(new Date).getTime(),e);sc(t,u,e)})).then((function(e){i(e)})).catch((function(e){localStorage.setItem(o,"error"),a(e)}))}}))}function sc(e,t,n){setTimeout((function(){O.a.prototype.$http.post(O.a.prototype.baseURL+"/dsc/commons/get-file-uuid/"+e,t).then((function(r){if(r)if(!r.code||"ok"!==r.code&&"error"!==r.code)sc(e,t,n);else{if("ok"===r.code)return localStorage.setItem(e,"ok"),mc(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(r.fileName)+"&uuid="+e+"&_t="+(new Date).getTime(),n);localStorage.setItem(e,"error"),Object(Ll["Message"])({message:r.message,type:"error",showClose:!0})}else localStorage.setItem(e,"ok")})).catch((function(){localStorage.setItem(e,"error")}))}),5e3)}function uc(e,t,n){return new Promise((function(r,o){var i=oc(n);if(void 0!==i)if(i.columns){var a=fc(i.columns);0===a.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):cc(dc(e,t,n,a)).then((function(e){r(e)})).catch((function(e){o(e)}))}else Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else lc(e,t,n).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function lc(e,t,n,r){return new Promise((function(o,i){var a={};r&&""!==r&&(a.additionalParamMap=r),O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){Qa(r,n).then((function(){0===r.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),o(!1)):cc(dc(e,t,n,r)).then((function(e){o(e)})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))}))}function cc(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return mc(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(e)+"&_t="+(new Date).getTime(),r)})).then((function(e){t(e)})).catch((function(e){n(e)}))}))}function fc(e){var t=[];return e.forEach((function(e){e.children&&e.children.length>0?t=t.concat(fc(e.children)):e.exportable&&!0===e.exportable&&t.push(e)})),t}function dc(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:hc(e,t)}}function hc(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function pc(e,t){return"undefined"!==typeof t&&"undefined"!==typeof t[e]}function mc(e,t){return new Promise((function(n,r){O.a.prototype.$http({method:"GET",url:e,responseType:"blob"}).then((function(e){var r=new Blob([e]);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,t);else{var o=document.createElement("a"),i=document.createEvent("HTMLEvents");i.initEvent("click",!1,!1),o.href=URL.createObjectURL(r),o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(o.href)}n(!0)})).catch((function(e){r(e)}))}))}var gc={exportData:ec,download:mc};function vc(){return self!==top}function bc(e){if(e){var t=e.split(",");t.forEach((function(e){sessionStorage.setItem("refreshList-"+e,"true")}))}}function yc(e){return void 0!==e&&null!==e&&"string"===typeof e&&(e=e.replace(/</g,"<").replace(/>/g,">")),e}var wc={isInIframe:vc,refreshList:bc,escapeHtml:yc},_c={install:function(e,t){e.prototype.$exportData=Ql.exportData,e.prototype.$isInIframe=wc.isInIframe,e.prototype.$escapeHtml=wc.escapeHtml,e.prototype.$download=Ql.download,e.prototype.$refreshList=wc.refreshList,e.prototype.$exportDataNew=gc.exportData,e.prototype.$downloadNew=gc.download}},Cc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.$t("departmentUserTreeInline.removeUser"),"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.removeAllUser()}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.clear"))+"\n ")])],1),n("el-table",{ref:"removeUserGrid",attrs:{data:e.users,"row-key":"id",border:"",height:e.height}},[n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),prop:"name"}}),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),prop:"mainDepartmentName"}}),e.containBranch?n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),prop:"subCompanyName"}}):e._e(),n("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeUser(t.$index)}}})],1)]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},xc=[],Sc={getSelectUsers:function(e,t,n){var r=this;return new Promise((function(o,i){e&&t?r.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){o(e)})).catch((function(e){i(e)})):o([])}))}},Oc=Sc;function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tc={name:"RemoveUser",components:{},props:{selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},data:function(){return{users:[],originalUsers:[],containBranch:!1,tenantNodeId:-1}},created:function(){var e=this;this.selectUserInfo&&("所有用户"===this.selectUserInfo?this.users.push(this.packageAllUser()):"所有工作组人员"===this.selectUserInfo?this.users.push(this.packageAllWgUser()):this.getSelectUsers(this.searchField,this.selectUserInfo,this.separator).then((function(t){e.originalUsers=t,e.users=t})))},methods:Ec(Ec({},Oc),{},{confirmSelectUser:function(){for(var e=[],t={userIds:[],loginNames:[],emails:[],telephones:[],users:[],userNames:[]},n=0;n<this.users.length;n++){var r=this.users[n];t.userIds.push(r.id),t.loginNames.push(r.loginName),r.email&&""!==r.email&&t.emails.push(r.email),r.telephone&&""!==r.telephone&&t.telephones.push(r.telephone),t.users.push(r);var o=r.name;this.containBranch&&r.subCompanyName&&(o=o+"("+r.subCompanyName+")"),t.userNames.push(o),e.push(r[this.searchField])}var i=this.getRemoveItems(this.originalUsers,e,this.searchField);this.$emit("close",t,i)},packageAllUser:function(){var e={id:this.tenantNodeId,name:"所有用户"};return e},packageAllWgUser:function(){var e={id:this.tenantNodeId,name:"所有工作组人员"};return e},removeUser:function(e){this.users.splice(e,1)},removeAllUser:function(){this.users=[]},getRemoveItems:function(e,t,n){return void 0===t||0===t.length?e:e?e.filter((function(e){return-1===t.indexOf(e[n])})):[]}})},Dc=Tc,Ic=f(Dc,Cc,xc,!1,null,null,null),Nc=Ic.exports;Nc.install=function(e){e.component(Nc.name,Nc)};var Ac=Nc,Pc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.$t("departmentTreeInline.removeDepartment"),"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.removeAllDept()}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.clear"))+"\n ")])],1),n("el-table",{ref:"removeDeptGrid",attrs:{data:e.departments,"row-key":"id",border:"",height:e.height}},[n("el-table-column",{attrs:{label:e.$t("departmentTreeInline.name"),prop:"name"}}),n("el-table-column",{attrs:{label:e.$t("departmentTreeInline.code"),prop:"code"}}),n("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeDept(t.$index)}}})],1)]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectDept}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Mc=[],Rc={getSelectDepts:function(e,t,n){var r=this;return new Promise((function(o,i){e&&t?r.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then((function(e){o(e)})).catch((function(e){i(e)})):o([])}))}},Bc=Rc;function Lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $c={name:"RemoveDepartment",components:{},props:{selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},data:function(){return{departments:[],originalDepts:[],containBranch:!1,tenantNodeId:-1}},created:function(){var e=this;this.selectDepartmentInfo&&(this.selectDepartmentInfo===this.tenantNodeId||"所有部门"===this.selectDepartmentInfo?this.departments.push(this.packageAllDept()):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then((function(t){e.originalDepts=t,e.departments=t})))},methods:Fc(Fc({},Bc),{},{confirmSelectDept:function(){for(var e=[],t={ids:[],names:[],codes:[],departments:[]},n=0;n<this.departments.length;n++){var r=this.departments[n];t.ids.push(r.id),t.codes.push(r.code),t.departments.push(r);var o=r.name;this.containBranch&&r.branchName&&(o=o+"("+r.branchName+")"),t.names.push(o),e.push(r[this.searchField])}var i=this.getRemoveItems(this.originalDepts,e,this.searchField);this.$emit("close",t,i)},packageAllDept:function(){var e={id:this.tenantNodeId,name:"所有部门"};return e},removeDept:function(e){this.departments.splice(e,1)},removeAllDept:function(){this.departments=[]},getRemoveItems:function(e,t,n){return void 0===t||0===t.length?e:e?e.filter((function(e){return-1===t.indexOf(e[n])})):[]}})},jc=$c,Vc=f(jc,Pc,Mc,!1,null,null,null),zc=Vc.exports;zc.install=function(e){e.component(zc.name,zc)};var Hc=zc,Uc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.$t("workgroupTree.removeWorkgroup"),"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.removeAllWg()}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.clear"))+"\n ")])],1),n("el-table",{ref:"removeWgGrid",attrs:{data:e.workgroups,"row-key":"id",border:"",height:e.height}},[n("el-table-column",{attrs:{label:e.$t("workgroupTree.name"),prop:"name"}}),n("el-table-column",{attrs:{label:e.$t("workgroupTree.code"),prop:"code"}}),n("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeWg(t.$index)}}})],1)]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectWg}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Wc=[],Gc={getSelectWgs:function(e,t,n){var r=this;return new Promise((function(o,i){e&&t?r.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-workgroups?searchField="+e+"&selectWorkgroupInfo="+t+"&separator="+n).then((function(e){o(e)})).catch((function(e){i(e)})):o([])}))}},qc=Gc;function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xc={name:"RemoveWorkgroup",components:{},props:{selectWorkgroupInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},data:function(){return{workgroups:[],originalWgs:[],tenantNodeId:-1}},created:function(){var e=this;this.selectWorkgroupInfo&&this.getSelectWgs(this.searchField,this.selectWorkgroupInfo,this.separator).then((function(t){e.originalWgs=t,e.workgroups=t}))},methods:Kc(Kc({},qc),{},{confirmSelectWg:function(){for(var e=[],t={ids:[],names:[],codes:[],workgroups:[]},n=0;n<this.workgroups.length;n++){var r=this.workgroups[n];t.ids.push(r.id),t.codes.push(r.code),t.workgroups.push(r),t.names.push(r.name),e.push(r[this.searchField])}var o=this.getRemoveItems(this.originalWgs,e,this.searchField);this.$emit("close",t,o)},packageAllWg:function(){var e={id:this.tenantNodeId,name:"所有工作组"};return e},removeWg:function(e){this.workgroups.splice(e,1)},removeAllWg:function(){this.workgroups=[]},getRemoveItems:function(e,t,n){return void 0===t||0===t.length?e:e?e.filter((function(e){return-1===t.indexOf(e[n])})):[]}})},Jc=Xc,Zc=f(Jc,Uc,Wc,!1,null,null,null),Qc=Zc.exports;Qc.install=function(e){e.component(Qc.name,Qc)};var ef=Qc,tf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticStyle:{width:"100%"}},[e.disabled?[n("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0,disabled:!0}},[n("template",{slot:"append"},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"}),n("i",{staticClass:"el-input__icon el-icon-delete",attrs:{slot:"suffix"},slot:"suffix"})])],2)]:[n("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0},on:{focus:function(t){return e.showOrganizationTree(!1)}}},[n("template",{slot:"append"},[n("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return e.showOrganizationTree(!1)}}}),n("i",{staticClass:"el-input__icon el-icon-delete",on:{click:function(t){return e.emptyOrganizationResult()}}})])],2)],e.treeType&&"DeptUserTree"===e.treeType&&e.showOrganizationTreeFlag?n("department-user-tree",{attrs:{multiple:"undefined"!==typeof e.multiple&&e.multiple,"department-info":e.departmentInfo,"select-user-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e(),e.treeType&&"DeptTree"===e.treeType&&e.showOrganizationTreeFlag?n("department-tree",{attrs:{width:"30%","check-strictly":"undefined"!==typeof e.checkStrictly&&e.checkStrictly,multiple:"undefined"!==typeof e.multiple&&e.multiple,"select-department-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e(),e.treeType&&"WgTree"===e.treeType&&e.showOrganizationTreeFlag?n("workgroup-tree",{attrs:{width:"30%",multiple:"undefined"!==typeof e.multiple&&e.multiple,"select-workgroup-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e(),e.treeType&&"WgUserTree"===e.treeType&&e.showOrganizationTreeFlag?n("workgroup-user-tree",{attrs:{width:"30%",multiple:"undefined"!==typeof e.multiple&&e.multiple,"branch-info":e.departmentInfo,"select-user-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e()],2)},nf=[],rf={name:"OrganizationInput",components:{},model:{prop:"value",event:"input"},props:{value:{type:String,default:""},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},treeType:{type:String,default:"DeptUserTree"},disabled:{type:Boolean,default:!1},fields:{type:Array,default:null},models:{type:Object,default:null},size:{type:String,default:""},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},separator:{type:String,default:","}},data:function(){return{showOrganizationTreeFlag:!1,isAppendResult:!1,showRemoveComponent:!1,selectOrganizationInfo:null,searchField:null,selectOrganizationAllInfo:{}}},created:function(){},methods:{showOrganizationTree:function(){var e=this.multiple;"undefined"===typeof e&&(e=!1),!0===e&&this.getSelectInfo(),this.$emit("focus"),this.showOrganizationTreeFlag=!0},getPropName:function(e,t,n){return Object(x["h"])(e,t,n)},emptyOrganizationResult:function(){var e=this,t=this.fields;t&&t.length>0&&(t.forEach((function(t){var n=e.getPropName(t.model);e.setValue(n,null)})),this.selectOrganizationAllInfo={},this.selectOrganizationInfo=null,this.searchField=null)},closeOrganizationTree:function(e){e&&this.setOrganizationData(e),this.showOrganizationTreeFlag=!1},setOrganizationData:function(e,t,n){var r=this,o=this.multiple;"undefined"===typeof o&&(o=!1);var i=this.treeType,a=this.fields;a&&a.length>0&&a.forEach((function(a){var s=a.type,u=r.getOrgSelectData(s,e,r.isUserTree(i),o),l=r.getPropName(a.model);r.getOrgDataModel(l,u,o,s,t,n)}))},getOrgDataModel:function(e,t,n,r,o,i){if(n){var a=this.getModelValue(e);this.selectOrganizationAllInfo[r]=t,this.setValue(e,t),this.$emit("replace",e,a,t)}else this.setValue(e,t)},getModelValue:function(e){var t="";if(!1===this.isJoinTable&&e&&e.indexOf(".")>0){var n=this.getParentObject(e,this.models);t=n[e.substring(e.lastIndexOf(".")+1)]}else e=this.getPropName(e),t=this.models[e];return t},isUserTree:function(e){return"DeptUserTree"===e||"WgUserTree"===e},getOrgSelectData:function(e,t,n,r){if(!0!==r){if("mainDeptName"===e){var o=null;if(n){var i=t.user;i&&(o=i.mainDepartmentName)}return o}if("mainDeptId"===e){var a=null;if(n){var s=t.user;s&&(a=s.mainDepartmentId)}return a}if("mainDeptCode"===e){var u=null;if(n){var l=t.user;l&&(u=l.mainDepartmentCode)}return u}if("subCompanyName"===e){var c=null;if(n){var f=t.user;f&&(c=f.subCompanyName)}return c}if("subCompanyId"===e){var d=null;if(n){var h=t.user;h&&(d=h.subCompanyId)}return d}return t[e]}if("id"===e)return n?t.userIds.join(this.separator):t.ids.join(this.separator);if("name"===e)return n?t.userNames.join(this.separator):t.names.join(this.separator);if("code"===e){if(!n)return t.codes.join(this.separator)}else{if("loginName"===e)return t.loginNames.join(this.separator);if("email"===e)return t.emails.join(this.separator);if("telephone"===e)return t.telephones.join(this.separator);if("mainDeptName"===e){var p=[];if(n){var m=t.users;m&&m.forEach((function(e){p.push(e.mainDepartmentName)}))}return p.join(this.separator)}if("mainDeptId"===e){var g=[];if(n){var v=t.users;v&&v.forEach((function(e){e.mainDepartmentId&&g.push(e.mainDepartmentId)}))}return g.join(this.separator)}if("mainDeptCode"===e){var b=[];if(n){var y=t.users;y&&y.forEach((function(e){e.mainDepartmentCode&&b.push(e.mainDepartmentCode)}))}return b.join(this.separator)}if("subCompanyName"===e){var w=[];if(n){var _=t.users;_&&_.forEach((function(e){e.subCompanyName&&w.push(e.subCompanyName)}))}return w.join(this.separator)}if("subCompanyId"===e){var C=[];if(n){var x=t.users;x&&x.forEach((function(e){e.subCompanyId&&C.push(e.subCompanyId)}))}return C.join(this.separator)}}},showMyRemoveComponent:function(){this.getSelectInfo(),this.selectOrganizationInfo&&null!==this.selectOrganizationInfo&&""!==this.selectOrganizationInfo?this.showRemoveComponent=!0:this.$message({showClose:!0,type:"warning",message:this.$t("imatrixUIMessage.organizationTreeNoResultNotRemove")})},getSelectInfo:function(){var e=this,t=["id","code","loginName","email","telephone","name"],n=Object.keys(this.selectOrganizationAllInfo);if(0===n.length)for(var r=function(n){var r=t[n],o=e.fields.filter((function(e){return e.type===r}));if(o&&o.length>0){var i=o[0];if(i){var a=e.getPropName(i.model),s=e.getModelValue(a);if(s&&null!==s&&""!==s)return e.selectOrganizationInfo=s,e.searchField=r,"break"}}},o=0;o<t.length;o++){var i=r(o);if("break"===i)break}else for(var a=0;a<t.length;a++){var s=t[a],u=this.selectOrganizationAllInfo[s];if(u&&null!==u&&""!==u){this.selectOrganizationInfo=u,this.searchField=s;break}}},setValue:function(e,t){if(this.models){if(!1===this.isJoinTable&&e&&e.indexOf(".")>0){var n=this.getParentObject(e,this.models);n&&Object(x["k"])(n,e.substring(e.lastIndexOf(".")+1),t)}else e=this.getPropName(e),Object(x["k"])(this.models,e,t);console.log("this.value",this.models),this.$emit("setValue",e,t),void 0!==t&&null!==t&&""!==t||this.$emit("clear",e)}},getParentObject:function(e,t){var n=e.split(".");if(1===n.length)return t;for(var r,o=0;o<n.length-1;o++)r=0===o?this.getParentModelProp(n[o],t):this.getParentModelProp(n[o],r);return r},getParentModelProp:function(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}}},of=rf,af=f(of,tf,nf,!1,null,null,null),sf=af.exports;sf.install=function(e){e.component(sf.name,sf)};var uf=sf,lf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.hasLoadedColumns?n("search-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"sf",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-param":e.searchFormContent,"init-search-props":e.initSearchProps,"grid-id":e.gridId},on:{search:e.search,reset:e.resetSearch}}):e._e(),n("div",{staticClass:"nine-grid-area"},[n("div",{style:"height:"+e.height+"px;overflow-y: auto;overflow-x: hidden;",attrs:{id:e.gridId}},[n("el-row",{attrs:{gutter:20}},[e.isHasCreate?n("el-col",{directives:[{name:"permission",rawName:"v-permission",value:e.createPermission,expression:"createPermission"}],attrs:{id:"_addCardId_",span:6,offset:1.5}},[n("el-card",{attrs:{"body-style":{padding:"0px"}}},[n("div",{staticClass:"add-screen",on:{click:e.add}},[n("span",{staticStyle:{color:"#6882da"}},[n("em",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$t("superNineGrid.add")))])])])],1):e._e(),e._l(e.gridData,(function(t,r){return n("el-col",{key:t.id,staticClass:"col-content",attrs:{span:6,offset:1.5}},[n("el-card",{attrs:{"body-style":{padding:"0px"},shadow:"hover"}},[n("div",{on:{click:function(n){return e.clickContent(t)}}},[n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"popContainer"},[n("div",{staticClass:"else-button",staticStyle:{background:"rgba(0,0,0,0.5)","min-height":"20%"}},[e._t(e.slotBefore,null,{params:t}),e._l(e.operations,(function(r){return[e.isShowButton(t,r)?[r.icon?n("el-tooltip",{directives:[{name:"permission",rawName:"v-permission",value:r.permission?r.permission:"true",expression:"button.permission?button.permission:'true'"}],key:r.name,staticClass:"item",attrs:{effect:"dark",content:r.name,placement:"top"}},[n("em",{class:r.icon+" icons",on:{click:function(n){return n.stopPropagation(),e.buttonClick(r.event,t)}}})]):n("em",{directives:[{name:"permission",rawName:"v-permission",value:r.permission?r.permission:"true",expression:"button.permission?button.permission:'true'"}],key:r.name,class:r.name+" icons",on:{click:function(n){return n.stopPropagation(),e.buttonClick(r.event,t)}}},[e._v(e._s(r.name)+" ")])]:e._e()]}))],2)])]),e.props&&e.props.imageUrl&&e.objectPropValue(t,e.propCloumns.imageUrl,e.props.imageUrl)?n("img",{staticClass:"image",attrs:{src:e.defaultShowImageAction+e.objectPropValue(t,e.propCloumns.imageUrl,e.props.imageUrl),alt:"加载失败"}}):n("div",{staticClass:"image",staticStyle:{display:"table","text-align":"center"}},[e.props&&e.props.content?n("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("content",t))+"\n ")]):e.props&&e.props.title?n("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("title",t))+"\n ")]):e._e()])],1),n("el-divider"),n("div",{staticStyle:{padding:"10px 10px 10px 10px"}},[n("div",{staticClass:"bottom clearfix"},[n("time",{staticClass:"name"},[e.props&&e.props.title?n("span",[e.multiple?n("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+t.id],"true-label":t.id,"false-label":"false-"+t.id,title:e.getPropValue("title",t)},on:{change:function(t){return e.changeChecked(t,r)}}},[n("span",{style:e.getTitleStyle(t)},[e._v(" "+e._s(e.getPropValue("title",t)))])]):e.isShowRadio?n("el-radio",{staticStyle:{width:"100%"},attrs:{label:t.id,title:e.getPropValue("title",t)},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[n("span",{style:e.getTitleStyle(t)},[e._v(" "+e._s(e.getPropValue("title",t)))])]):n("span",{style:e.getTitleStyle(t),attrs:{title:e.getPropValue("title",t)}},[e._v(" "+e._s(e.getPropValue("title",t)))])],1):e.props&&e.props.content?n("span",[e.multiple?n("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+t.id],"true-label":t.id,"false-label":"false-"+t.id,title:e.getPropValue("content",t)},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(e.getPropValue("content",t)))]):e.isShowRadio?n("el-radio",{staticStyle:{width:"100%"},attrs:{label:t.id,title:e.getPropValue("content",t)},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[e._v(e._s(e.getPropValue("content",t)))]):n("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("content",t)}},[e._v(" "+e._s(e.getPropValue("content",t)))])],1):n("span",[e.multiple?n("el-checkbox",{attrs:{value:e.selectionModels["select"+t.id],"true-label":t.id,"false-label":"false-"+t.id},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(r+1))]):e.isShowRadio?n("el-radio",{attrs:{label:t.id},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[e._v(e._s(r+1))]):n("span",[e._v(" "+e._s(r+1))])],1)]),e.props&&e.props.subTitle?n("time",{staticClass:"state"},[n("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("subTitle",t)}},[e._v(e._s(e.getPropValue("subTitle",t)))])]):e._e()])])],1)],1)}))],2)],1),e.pagination?n("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":e.pagination.pageSizes,"page-size":e.pagination.pageSize,layout:e.pagination.layout,total:e.pagination.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},cf=[],ff={number:function(e,t){var n=t.precision,r=t.delimiter,o=t.scientific,i=t.scientificNum;if(null!=e&&(n>0&&(e=parseFloat(e),e=e.toFixed(n)),r&&(e=e.replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")),null!=o)){var a=!1;i=i?parseInt(i):11,e.length>=i&&(a=!0),a&&(e=""+e,e=parseFloat(e),e=e.toExponential())}return e},currency:function(e,t){var n=t.sign;return n+this.number(e,t)},date:function(e,t){var n=t.format;if(null!=e){var r=new Date(e),o=r.getFullYear(),i=r.getMonth()+1,a=r.getDate(),s=r.getHours(),u=r.getMinutes(),l=r.getSeconds();return i<10&&(i="0"+i),a<10&&(a="0"+a),s<10&&(s="0"+s),u<10&&(u="0"+u),l<10&&(l="0"+l),n.replace("yyyy",o).replace("m",i).replace("d",a).replace("hh",s).replace("mm",u).replace("ss",l)}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return this.number(e,t)+"%"}};function df(e,t){if(void 0===t||void 0===e)return t;if(void 0!==e.valueSet){var n=e.valueSet.filter((function(e){return e.value===t+""}));n.length>0&&(t=n[0].label)}void 0===e.formatter&&("DATE"===e.dataType?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:"TIME"===e.dataType&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));var r=e.formatter;return void 0!==r&&void 0!==ff[r.type]?ff[r.type](t,r.options):t}var hf={isObjectProp:function(e){return e.indexOf(".")>0},objectPropOriginalValue:function(e,t){try{var n=e,r=t.split(".");return r.forEach((function(e){if(!n)throw n="",n;n=n[e]})),n}catch(o){return""}},objectPropValue:function(e,t,n){var r=df(t,this.objectPropOriginalValue(e,n));return r},getColumnValue:function(e,t){var n=t.prop,r=e[n];this.isObjectProp(n)&&(r=this.objectPropOriginalValue(e,n));var o=df(t,r);return{originalValue:r,formatValue:o}},onClickFun:function(e,t,n,r){var o=this.getColumnValue(e,t);n.call(this,o.originalValue,o.formatValue,e,t,r)},isShowButtonFun:function(e,t){var n=t.isShow;if(void 0===n)return!0;if("function"===typeof n){var r=n.call(this,e,t);return void 0===r&&(r=!0),r}return n}},pf=hf,mf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.searchableColumns.length>0?n("el-form",{ref:"searchForm",staticClass:"grid-search-form",attrs:{model:e.searchForm,rules:e.rules,"label-width":e.labelWidth,"label-position":e.query.queryLabelPosition,size:"mini"}},[n("table",e._l(e.rowNum,(function(t){return n("tr",{key:t},e._l(e.getColumnNumPerRow(t,e.searchableColumns.length),(function(r){return n("td",{key:r},[n("el-form-item",{style:{paddingLeft:"10px",minWidth:"200px"},attrs:{prop:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,"label-width":e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabelWidth?e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabelWidth:"80px"}},[n("template",{slot:"label"},[e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabel&&""!==e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabel?n("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabel.replace(/\\n/g,"</br>"))}}):n("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].label.replace(/\\n/g,"</br>"))}})]),"DATE"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType||"date"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-date-picker",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop),type:"daterange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd"},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):"dateTimePicker"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-date-picker",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd HH:mm:ss"},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):"TIME"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType&&"timepicker"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-date-picker",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"HH:mm:ss"},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):"timepicker"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"TIME"!==e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType&&"DATE"!==e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType?n("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":"HH:mm:ss",value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"select"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType||"BOOLEAN"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType?n("el-select",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}},e._l(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"multiselect"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-select",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{clearable:"",multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}},e._l(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"inputNumber"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("search-form-number",{attrs:{r:t,n:r},on:{setValue:e.setNumberValue}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"switch"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-switch",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"slider"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-slider",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"rate"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-rate",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):!0===e.customComponent(e.searchableColumns[e.fieldNum*(t-1)+(r-1)])?n("span",[n(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentName,{ref:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentName,refInFor:!0,tag:"component",staticClass:"customComponent",attrs:{prop:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}})],1):n("el-input",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitForm("searchForm")}}})],2)],1)})),0)})),0),n("el-form-item",{staticClass:"search-btn"},[n("el-button",{attrs:{loading:e.loading,type:"primary",size:"mini"},on:{click:function(t){return e.submitForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,size:"mini"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")])],1)],1):e._e()},gf=[],vf={packageSearchParam:function(){var e=this,t=[];return this.searchableColumns.forEach((function(n){var r={leftBracket:"",rightBracket:"",joinSign:"and"},o=n.orgProp,i="__";if(o.indexOf(i)>0&&(o=o.replace(i,".")),r.columnProp=n.prop,r.propName=o,r.enumName=n.enumName,r.operator=e.getOperator(n),r.dataType=n.dataType,"DATE"===n.dataType||"TIME"===n.dataType){var a=e.getFormItemValue(n.prop);null!==a&&2===a.length&&null!==a[0]&&null!==a[1]&&(r.startValue=a[0],r.endValue=a[1],t.push(r))}else if("INTEGER"===n.dataType||"LONG"===n.dataType){var s=e.getFormItemValue(n.prop);s&&(!Array.isArray(s)||s.length<2||null===s[0]&&null===s[1]?Array.isArray(s)?s.length<2?(r.propValue=s[0],t.push(r)):null===s[0]?(r.propValue=s[1],t.push(r)):null===s[1]&&(r.propValue=s[0],t.push(r)):(r.propValue=s,t.push(r)):(r.startValue=s[0],r.endValue=s[1],t.push(r)))}else if("multiselect"===n.componentType){var u=e.getFormItemValue(n.prop);e.packageValueWithArray(u,t,r)}else{var l=e.getFormItemValue(n.prop);e.packageValueWithArray(l,t,r)}})),t},getOperator:function(e){return"TEXT"!==e.dataType&&"CLOB"!==e.dataType||!e.fuzzy?"EQ":"CONTAIN"},getFormItemValue:function(e){if(e.indexOf(".")>0){var t=this.getParentObject(e);return t[e.substring(e.lastIndexOf(".")+1)]}return this.searchForm[e]},getParentObject:function(e){var t=e.split(".");if(1===t.length)return this.searchForm;for(var n,r=0;r<t.length-1;r++)n=this.searchForm[t[r]];return n},packageValueWithArray:function(e,t,n){if(e&&Array.isArray(e)){var r=e,o=0;r.forEach((function(e){var i=Object.assign({},n);i.joinSign="or",0===o&&(i.leftBracket="1"),o===r.length-1&&(i.rightBracket="1",i.joinSign="and"),i.propValue=e,i.operator="EQ",e&&t.push(i),o++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))}},bf=vf,yf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),n("span",[e._v("---")]),n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},wf=[],_f={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data:function(){return{number1:null,number2:null}},methods:{setValue:function(){this.$emit("setValue",[this.number1,this.number2],this.r,this.n)}}},Cf=_f,xf=f(Cf,yf,wf,!1,null,null,null),Sf=xf.exports;function Of(e,t){t||(t=Bl.get("_nine_list_code")),t&&t.indexOf("~")<0&&(t+="~_nineGrid");var n=Bl.get(t);return!(!n.options||"function"!==typeof n.options[e])}function kf(){var e={columns:[],gridData:[],orgGridData:[],showValidateError:!0,options:{}};return O.a.observable(e)}function Ef(e,t,n){var r=t.split(".");if(1!==r.length){for(var o=e,i=0;i<r.length-1;i++)void 0===o[r[i]]&&(o[r[i]]={}),o=o[r[i]];o[r[r.length-1]]=void 0!==n?n:null}else e[t]=void 0!==n?n:null}function Tf(e,t){if(!0===e){var n=0;return t&&(n=t.$el.offsetHeight),window.innerHeight-n-165}return window.innerHeight-165}function Df(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=If(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function If(e,t){if(e){if("string"===typeof e)return Nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nf(e,t):void 0}}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf={name:"SearchForm",components:{searchFormNumber:Sf},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null},gridId:{type:String,default:"_nineGrid"}},data:function(){var e=this,t=this.code+"~"+this.gridId,n=new Set,r=Bl.get(t),o={};null!==this.searchParam&&(o=JSON.parse(JSON.stringify(this.searchParam))),console.log("searchForm=",o);var i=this.getSearchableColumns();void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),i.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop.indexOf(".")>0?Ef(o,t.prop):o[t.prop]=null)}));var a=this.getSpanNum(t),s=this.getFieldNumPerRow(t),u=Math.ceil(i.length/s);return{searchForm:o,rules:{},searchParams:[],labelWidth:r.options.search&&r.options.search.labelWidth?r.options.search.labelWidth:"80px",customComponentNames:n,componentName:"",spanNum:a,fieldNum:s,rowNum:u,loading:!1,storeId:t}},computed:{searchableColumns:function(){return this.getSearchableColumns()}},methods:Pf(Pf({},bf),{},{getColumnNumPerRow:function(e,t){var n=this.fieldNum;return this.fieldNum*e>t&&(n=t-this.fieldNum*(e-1)),n},getFieldNumPerRow:function(e){var t=Bl.get(e);return t.options.search&&t.options.search.fieldNum?t.options.search.fieldNum:4},getSpanNum:function(e){var t=this.getFieldNumPerRow(e);return 1===t?14:2===t?10:3===t?8:4===t?6:4},setValueToModelProp:function(e,t){if(e.indexOf(".")>0){var n=this.getParentObject(e);n[e.substring(e.lastIndexOf(".")+1)]=t}else this.searchForm[e]=t},getSearchableColumns:function(e,t){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(var n=0;n<e.length;n++){var r=e[n];if("$index"!==r.prop&&"$selection"!==r.prop&&!r.dynamic)if(r.groupHeader)this.getSearchableColumns(r.children,t);else if("normal"===r.queryType&&!r.custom&&""!==r.prop){if("undefined"!==typeof r.componentType&&""!==r.componentType||(r.componentType="input"),r.querySetting&&""!==r.querySetting){var o=JSON.parse(r.querySetting);o.width&&(r.searchControlWidth="width:"+o.width+"px"),o.labelWidth&&(r.searchLabelWidth=o.labelWidth+"px"),o.label&&(r.searchLabel=o.label)}r.componentType.indexOf("custom:")>=0?(r.componentName=r.componentType.substring(r.componentType.indexOf(":")+1),this.customComponentNames.add(r.componentName)):r.componentName="",t.push(r)}}return t},customComponent:function(e){var t=Bl.get(this.storeId);if(e.componentName&&""!==e.componentName)return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||""===e.componentName)&&t.options&&t.options.search&&t.options.search.customSearchElements){var n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;var r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),O.a.component(e.componentName,r),!0}}return!1},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.loading=!0,t.searchParams=t.packageSearchParam(),t.$emit("search",t.searchParams,!0)}))},resetForm:function(e){var t,n=this,r=Df(this.customComponentNames);try{for(r.s();!(t=r.n()).done;){var o=t.value;this.$refs[o][0].resetField()}}catch(i){r.e(i)}finally{r.f()}this.searchableColumns.forEach((function(e){e.prop.indexOf(".")>0?Ef(n.searchForm,e.prop):n.searchForm[e.prop]=null})),this.$emit("reset")},setNumberValue:function(e,t,n){var r=this.getFormItemValue(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop);r=e,this.setValueToModelProp(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop,r)}})},Rf=Mf,Bf=(n("45ae"),f(Rf,mf,gf,!1,null,"398b171b",null)),Lf=Bf.exports,Ff={initialize:function(){var e=this,t=O.a.prototype.baseAPI+"/component/super-grids/"+this.code+"/"+this.publishVersion,n={},r=this.options.isSql;this.options&&"undefined"!==typeof r&&(this.isSql=r,n.isSql=r+""),this.isLoading=!0,this.$http.post(t,n).then((function(t){if(e.options.pageSizes&&t.pagination){var n=null,r=e.options.pageSizes.split(",");if(r&&r.length>0){n=[];for(var o=0;o<r.length;o++)n.push(1*r[o]);t.pagination.pageSize=n[0]}t.pagination.layout="total, sizes, prev, pager, next, jumper",t.pagination.pageSizes=n}"undefined"!==typeof e.options.initSortInfo&&(Array.isArray(e.options.initSortInfo)?t.sortInfo=e.options.initSortInfo:(t.sortInfo=[],t.sortInfo.push(e.options.initSortInfo))),Object.assign(e,t);var i=Bl.get(e.code+"~"+e.gridId);Qa(e.columns,e.code).then((function(){i.isSql=e.isSql,i.columns=e.columns,i.lineEdit=e.lineEdit,i.basicInfo=e.basicInfo,i.pagination=e.pagination,i.query=e.query,e.hasLoadedColumns=!0;var t=!0;Of("loadBeforeSend",e.storeId)&&(t=i.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:i})),void 0!==t&&!0!==t||"undefined"!==typeof e.options.initSearch&&!1===e.options.initSearch||(e.urlToSaveOrder=e.lineEdit&&e.lineEdit.urlToSaveOrder?e.lineEdit.urlToSaveOrder:null,e.fetchData().then((function(){e.initSelectData()})))}))}))},initSelectData:function(){if(this.options&&this.options.currentIds)for(var e=0;e<this.gridData.length;e++){var t=this.gridData[e];if((t.id||t.ID)&&this.options.currentIds.indexOf(t.id?t.id:t.ID)>=0&&(this.changeSelect(t),!1===this.multiple))break}}},$f=Ff,jf={refresh:function(){var e=this;return new Promise((function(t,n){e.$refs?e.$refs.sf?e.search(e.$refs.sf.searchParams,!0).then((function(){return t()})).catch((function(e){return n(e)})):e.search(null,!0).then((function(){return t()})).catch((function(e){return n(e)})):t()}))},showSearchForm:function(){this.showSearch=!0,this.$emit("showSearch")},cancelSearch:function(){this.showSearch=!1,this.$emit("cancelSearch")},getSearchForm:function(){var e=Bl.get(this.storeId);return e.searchForm?e.searchForm:[]},getGridData:function(e){e||(e=Bl.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Bl.get(e);return t.gridData},getColumns:function(e){e||(e=Bl.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Bl.get(e);return t.columns},getPagination:function(e){e||(e=Bl.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Bl.get(e);return t.pagination},getSelections:function(){return this.selections},getSelectionIds:function(){return this.selectionIds},clearSelections:function(){this.selections=[],this.selectionIds=[],this.selectionModels={},this.currentId=null},getSelection:function(){return this.selections&&this.selections.length>0?this.selections[0]:null},getSelectionId:function(){return this.selectionIds&&this.selectionIds.length>0?this.selectionIds[0]:null}},Vf=jf;function zf(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Hf(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Hf(e,t){if(e){if("string"===typeof e)return Uf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uf(e,t):void 0}}function Uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qf={name:"SuperNineGrid",components:{SearchForm:Lf},props:{code:{type:String,default:""},url:{type:String,default:""},options:{type:Object,default:function(){return{}}},publishVersion:{type:Number,default:0}},data:function(){var e=[];this.options&&this.options.mergeFields&&""!==this.options.mergeFields&&(e=this.options.mergeFields.split(","));var t=O.a.prototype.baseAPI+"/component/super-form/show-image?serverPath=",n=this.options&&this.options.id?this.options.id:"_nineGrid",r=this.code+"~"+n,o=!(!this.options||void 0===this.options.showRadio)&&this.options.showRadio;return{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],pagination:null,query:null,lineEdit:null,gridData:[],sortInfo:null,pageSize:null,showSearch:!1,height:null,isSql:!1,hasLoadData:!1,mergeFields:e,hasLoadedColumns:!1,seen:!1,current:null,isHasCreate:!0,screenBaseUrl:null,props:null,operations:[],propCloumns:null,multiple:!1,createPermission:"true",urlToSaveOrder:null,selections:[],selectionIds:[],selectionModels:{},searchFormContent:null,initSearchProps:[],defaultShowImageAction:t,gridId:n,storeId:r,currentId:null,isShowRadio:o,titleStyle:null,slotBefore:"before"}},computed:{},provide:function(){return{}},created:function(){Bl.set(this.code+"~"+this.gridId,kf()),Bl.set("_nine_list_code",this.code+"~"+this.gridId),this.initSetting(),this.initialize()},mounted:function(){this.$watch("showSearch",(function(e,t){var n=this;this.$nextTick((function(){var t=Tf(e,n.$refs.sf),r=n.resizeHeight();r&&(t=r),n.height=t}))}),{immediate:!0,deep:!0}),this.$watch("hasLoadData",(function(e,t){var n=this;!0===e&&this.$nextTick((function(){var e=Bl.get(n.storeId);Of("gridComplete",n.storeId)&&e.options.gridComplete.call(n,{gridData:n.gridData,columns:e.columns,superGrid:n.$refs.superGrid});var t=n.resizeHeight();t&&(n.height=t)}))}),{immediate:!0,deep:!0})},methods:Gf(Gf(Gf(Gf({},$f),Vf),pf),{},{getTitleStyle:function(e){return this.options&&this.options.titleStyle?this.options.titleStyle.call(this,e):{width:"100%"}},getPropValue:function(e,t){var n="",r=Bl.get(this.storeId);if("content"===e){var o="";Of("setContent",this.storeId)&&(o=r.options.getContent.call(this,t)),void 0!==o&&""!==o||(this.props&&this.props.content?o=this.objectPropValue(t,this.propCloumns.content,this.props.content):this.props&&this.props.title&&(o=this.objectPropValue(t,this.propCloumns.title,this.props.title))),n=o}else if("title"===e){var i="";Of("setTitle",this.storeId)&&(i=r.options.setTitle.call(this,t)),void 0!==i&&""!==i||(this.props&&this.props.title?i=this.objectPropValue(t,this.propCloumns.title,this.props.title):this.props&&this.props.content&&(i=this.objectPropValue(t,this.propCloumns.content,this.props.content))),n=i}else if("subTitle"===e){var a="";Of("setSubTitle",this.storeId)&&(a=r.options.getSubTitle.call(this,t)),void 0!==a&&""!==a||this.props&&this.props.subTitle&&(a=this.objectPropValue(t,this.propCloumns.subTitle,this.props.subTitle)),n=a}return void 0===n&&(n=""),n},resizeHeight:function(){var e=Bl.get(this.storeId);if(Of("resizeHeight",this.storeId)){var t=0;return!0===this.showSearch&&this.$refs.sf&&(t=this.$refs.sf.$el.offsetHeight),e.options.resizeHeight.call(this,{code:this.code,height:this.height,searchHeight:t})}},enter:function(e){this.seen=!0,this.current=e},leave:function(){this.seen=!1,this.current=null},initSetting:function(){var e=Bl.get(this.storeId);"undefined"!==typeof this.options?Object.assign(e.options,this.options):e.options={},this.options&&"undefined"!==typeof this.options.isHasCreate&&(this.isHasCreate=this.options.isHasCreate),this.options&&"undefined"!==typeof this.options.props&&(this.props=this.options.props),this.options&&"undefined"!==typeof this.options.operations&&(this.operations=this.options.operations),this.options&&"undefined"!==typeof this.options.createPermission&&(this.createPermission=this.options.createPermission),this.options&&"undefined"!==typeof this.options.multiple&&(this.multiple=this.options.multiple)},getPropColumns:function(){var e=this;this.columns&&this.columns.length>0&&(this.propCloumns={},this.columns.forEach((function(t){e.props.imageUrl&&e.props.imageUrl===t.prop&&(e.propCloumns.imageUrl=t),e.props.content&&e.props.content===t.prop&&(e.propCloumns.content=t),e.props.title&&e.props.title===t.prop&&(e.propCloumns.title=t),e.props.subTitle&&e.props.subTitle===t.prop&&(e.propCloumns.subTitle=t)})))},fetchData:function(e,t){var n=this;return new Promise((function(r,o){if(n.getPropColumns(),n.isLoading=!0,n.hasLoadData=!1,void 0===t||!1===t){var i=sessionStorage.getItem("refreshList-"+n.storeId);if(void 0!==i&&"true"===i){var a=sessionStorage.getItem("searchParam-"+n.storeId);if(void 0!==a&&null!==a&&""!==a){e=JSON.parse(a);var s=e.pagination;s&&(n.currentPage=s.currentPage,n.pagination.pageSize=s.pageSize,n.pagination.showTotal=s.showTotal),n.getInitSearchForm(e.searchForm)}}}sessionStorage.removeItem("refreshList-"+n.storeId),void 0===e&&(e=n.getSearchParam());var u=Bl.get(n.storeId),l=e;if(u.options.extraParam&&(l={searchParam:e},u.options.extraParam))for(var c in u.options.extraParam)l[c]=u.options.extraParam[c];u.searchParam=e,u.url=n.url;var f=n.url;sessionStorage.setItem("searchParam-"+n.storeId,JSON.stringify(l)),n.$http.post(f,l).then((function(e){if(Of("gridDataLoaded",n.storeId)){var t=u.options.gridDataLoaded.call(n,{gridData:e.data,columns:u.columns});n.gridData=t||e.data}else n.gridData=e.data;n.gridData||(n.gridData=[]),null!==n.pagination&&(n.pagination.total=e.total),u.gridData=n.gridData,u.orgGridData=[].concat(JSON.parse(JSON.stringify(n.gridData))),u.pagination=n.pagination,u.loaded=!0,n.hasLoadData=!0,r()})).catch((function(e){Of("loadError",n.storeId)&&u.options.loadError.call(n,n.code,e),o(e)}))}))},getInitSearchForm:function(e){var t=this,n=Bl.get(this.storeId);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,o=e.dataType;o&&"BOOLEAN"===o&&(n=r),t.initSearchProps.push(n);var i=e.propValue;n.indexOf(".")>0?Ef(t.searchFormContent,n,i):t.searchFormContent[n]=i})),n.searchForm=e,this.showSearchForm()):n.searchForm=null},showDemo:function(){var e=this;this.isLoading=!0,this.$http.get(this.url).then((function(t){Object.assign(e,t);var n=Bl.get(e.storeId);if(n.listCode=e.code,n.columns=e.columns,n.columns&&e.options.dynamicColumns)for(var r=0;r<e.options.dynamicColumns.length;r++)e.options.dynamicColumns[r].dynamic=!0,n.columns.push(e.options.dynamicColumns[r]);if(n.lineEdit=e.lineEdit,n.basicInfo=e.basicInfo,n.pagination=e.pagination,n.query=e.query,e.gridData=t.gridData,Of("gridDataLoaded",e.storeId)){var o=n.options.gridDataLoaded.call(e,t.gridData);e.gridData=o||t.gridData}else e.gridData=t.gridData;null!=e.pagination&&(e.pagination.total=t.total),e.gridData||(e.gridData=[]),n.gridData=e.gridData,n.orgGridData=[].concat(JSON.parse(JSON.stringify(e.gridData))),n.pagination=e.pagination,Of("gridComplete",e.storeId)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(Of("loadError",e.storeId)){var n=Bl.get(e.storeId);n.options.loadError.call(e,e.code,t)}}))},search:function(e){var t=this;return new Promise((function(n,r){var o=Bl.get(t.storeId);o.searchForm="undefined"!==typeof e&&null!==e?e:null,t.fetchData(t.getSearchParam(),!0).then((function(e){void 0!==o.options&&void 0!==o.options.isHiddenSearchForm&&!0===o.options.isHiddenSearchForm&&(t.showSearch=!1,t.$emit("cancel-search")),t.$refs.sf&&(t.$refs.sf.loading=!1),n(e)})).catch((function(e){t.$refs.sf&&(t.$refs.sf.loading=!1),r(e)}))}))},getSearchParam:function(){var e={code:this.code},t=Bl.get(this.storeId);if(null!==this.pagination){var n={currentPage:this.currentPage,pageSize:this.pagination.pageSize,showTotal:this.pagination.showTotal};null!==this.pageSize&&(n.pageSize=this.pageSize),e.pagination=n}if(null!==this.sortInfo&&(e.sorts=this.sortInfo),this.mergeFields&&this.mergeFields.length>0){e.sorts||(e.sorts=[]);var r,o=[],i=zf(this.mergeFields);try{for(i.s();!(r=i.n()).done;){var a,s=r.value,u=!0,l=zf(e.sorts);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.prop===s){u=!1;break}}}catch(f){l.e(f)}finally{l.f()}u&&o.push({prop:s,order:"ascending"})}}catch(f){i.e(f)}finally{i.f()}o.push.apply(o,ke(e.sorts)),e.sorts=o}return t.options&&"undefined"!==typeof t.options.initSearchForm&&(e.initSearchForm=t.options.initSearchForm),"undefined"!==typeof t.searchForm?e.searchForm=t.searchForm:e.searchForm=[],e},handleSizeChange:function(e){this.pageSize=e,this.fetchData(this.getSearchParam())},handleCurrentChange:function(e){this.fetchData(this.getSearchParam())},handleSortChange:function(e){var t=e.column,n=e.prop,r=e.order;this.sortInfo=null!==n?[{prop:n,order:r}]:null,this.fetchData(this.getSearchParam()),this.$emit("sort-change",{column:t,prop:n,order:r})},resetSearch:function(){this.search(null,!1)},add:function(){this.$emit("add")},buttonClick:function(e,t){e&&("function"===typeof e?e.call(this,t):this.$emit(e,t))},clickContent:function(e){this.changeSelect(e),this.$emit("click",e)},rowDrop:function(){if(this.urlToSaveOrder){var e=this.urlToSaveOrder;if(e.indexOf("http:")<0||e.indexOf("https:")<0){var t=O.a.prototype.baseURL;t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.length-1)),e.indexOf("/")>0&&(e="/"+e),e=t+e}var n=document.querySelector("#"+this.gridId+" .el-row");if(null!=n){var r=this;Ni.create(n,{draggable:".col-content",onEnd:function(t){var n=t.newIndex,o=t.oldIndex,i=document.querySelector("#"+r.gridId+" #_addCardId_");null!=i&&(o>0&&(o-=1),n>0&&(n-=1));var a={oldIndex:o,newIndex:n,gridData:r.gridData};r.$http.post(e,a).then((function(e){var t=r.gridData.splice(o,1)[0];r.gridData.splice(n,0,t),r.refresh().then((function(){r.$emit("afterDrag",a)}))}))}})}}},changeChecked:function(e,t){var n=this.gridData[t];(e+"").indexOf("false-")>=0?this.unselect(n):this.select(n)},unselect:function(e){var t=e.id,n=this.selectionIds.indexOf(t);n>-1&&(this.selections.splice(n,1),this.selectionIds.splice(n,1)),this.$emit("unselect",e,this.selections),this.$set(this.selectionModels,"select"+t,"false-"+t)},select:function(e){var t=e.id;this.selectionIds.indexOf(t)<0&&(this.$set(this.selectionIds,this.selectionIds.length,t),this.$set(this.selections,this.selections.length,e)),this.$emit("select",e,this.selections),this.$set(this.selectionModels,"select"+t,t)},changeSelectWhenRadio:function(e,t){var n=this.gridData[t];this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(n)},changeSelect:function(e){var t=e.id;!0===this.multiple?this.selectionIds&&this.selectionIds.indexOf(t)>=0?this.unselect(e):this.select(e):(this.currentId=t,this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(e))},isShowButton:function(e,t){var n=this.isShowButtonFun(e,t);return void 0===n||n}})},Yf=qf,Kf=(n("977f"),f(Yf,lf,cf,!1,null,"a4061422",null)),Xf=Kf.exports;Xf.install=function(e){e.component(Xf.name,Xf)};var Jf=Xf;Bt.install=function(e){e.component(Bt.name,Bt)};var Zf=Bt,Qf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.multiple?n("fs-upload-multi",{attrs:{"system-code":e.systemCode,accept:e.accept,"is-img":e.isImg,"is-show-list":e.isShowList,fit:e.fit,disabled:e.disabled,"is-show-button":e.isShowButton,"is-show-data":e.isShowData,data:e.data,"img-size":e.imgSize,"file-size":e.fileSize,"table-height":e.tableHeight},on:{onSuccess:e.onSuccess,deleteSuccess:e.deleteSuccess}}):e._e(),e.multiple?e._e():n("fs-upload-single",{attrs:{"system-code":e.systemCode,accept:e.accept,"is-img":e.isImg,fit:e.fit,disabled:e.disabled,"is-show-button":e.isShowButton,"is-show-data":e.isShowData,data:e.data},on:{onSuccess:e.onSuccess,deleteSuccess:e.deleteSuccess}})],1)},ed=[],td=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isShowButton&&!e.disabled?n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload2"},on:{click:e.selectDataFile}},[e._v("\n "+e._s(e.$t("fsUpload.upload"))+"\n ")]):e._e(),n("input",{ref:"uploadTemplate",staticStyle:{display:"none"},attrs:{type:"file",name:"uploadTemplate",accept:e.accepts},on:{change:e.upload}}),e.unifiedEnclosures&&e.unifiedEnclosures.length>0&&e.isShowData?n("div",[e.isImg?n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[n("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName,type:"primary"}},[e._v("\n "+e._s(t.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),n("el-table-column",{attrs:{label:e.$t("fsUpload.picture"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-image",{attrs:{src:e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName,"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName]},on:{click:function(n){return e.bigPicture(t.$index)}}})]}}],null,!1,2055571535)}),e.disabled?e._e():n("el-table-column",{attrs:{label:e.$t("fsUpload.operating"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.deleteFile(t.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")])]}}],null,!1,1012280757)})],1)],1):e.isShowList?n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[n("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName,type:"primary"}},[e._v("\n "+e._s(t.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),n("el-table-column",{attrs:{width:"200",label:e.$t("fsUpload.operating")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.disabled?e._e():n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.deleteFile(t.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")]),n("el-button",{attrs:{size:"mini"},on:{click:function(n){return e.preview(t.row)}}},[e._v("\n "+e._s(e.$t("fsUpload.preview"))+"\n ")])]}}],null,!1,1706256729)})],1)],1):n("div",e._l(e.unifiedEnclosures,(function(t,r){return n("div",{key:r},[n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+t.uuid+"&showName="+t.fileName,type:"primary"}},[e._v("\n "+e._s(t.fileName)+"\n ")]),n("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():n("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px"},on:{click:function(t){return e.deleteFile(r)}}})]),n("el-tooltip",{staticStyle:{"margin-left":"10px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[n("i",{staticClass:"el-icon-view",on:{click:function(n){return e.preview(t)}}})])],1)})),0)]):e._e(),e.bigPictureVisible?n("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.unifiedEnclosures},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},nd=[],rd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"close-on-click-modal":!1,visible:"","append-to-body":""},on:{close:function(t){return e.$emit("close")}}},[n("el-carousel",{staticStyle:{width:"100%"},attrs:{height:"600px",autoplay:!1,"indicator-position":"outside","initial-index":e.displayIndex}},e._l(e.unifiedEnclosures,(function(t,r){return n("el-carousel-item",{key:r,attrs:{label:t.fileName}},[n("div",[n("el-image",{staticStyle:{height:"580px"},attrs:{"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+t.uuid+"&showName="+t.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+t.uuid+"&showName="+t.fileName}})],1)])})),1)],1)},od=[],id={props:{unifiedEnclosures:{type:Array,default:null},showIndex:{type:Number,default:0}},data:function(){return{displayIndex:0}},created:function(){this.displayIndex=this.showIndex},methods:{}},ad=id,sd=f(ad,rd,od,!1,null,null,null),ud=sd.exports,ld={name:"FsUploadMulti",components:{seeBigPicture:ud},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null}},data:function(){return{unifiedEnclosures:[],bigPictureVisible:!1,baseURL:"",accepts:"",showIndex:0,loading:""}},created:function(){this.baseURL=O.a.prototype.baseURL,this.data&&(this.unifiedEnclosures=this.data),this.judgeImg()},methods:{bigPicture:function(e){this.showIndex=e,this.bigPictureVisible=!0},onSuccess:function(){var e=this.unifiedEnclosures;this.$emit("onSuccess",e)},judgeImg:function(){this.isImg?this.accepts="image/*":this.accept&&(this.accepts=this.accept)},selectDataFile:function(){this.$refs.uploadTemplate.click()},deleteFile:function(e){this.deleteUuid=this.unifiedEnclosures[e].uuid,this.unifiedEnclosures.splice(e,1),this.deleteSuccess()},deleteSuccess:function(){var e=this.unifiedEnclosures;this.$emit("deleteSuccess",this.deleteUuid,e)},preview:function(e){if(O.a.prototype.isOffice){var t=Object(Ue["a"])(),n={fileName:O.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+t},r=this.$http;r.post(O.a.prototype.baseURL+"/common/fs-upload/des-encrypt",n).then((function(e){window.open(O.a.prototype.isOffice+e)}))}else{var o,i=e.fileName.split(".");o="xls"===i[i.length-1].toLowerCase()||"xlsx"===i[i.length-1].toLowerCase()||"csv"===i[i.length-1].toLowerCase()?i[0]+".html":i[0]+".pdf";var a=Object(Ue["a"])();if(O.a.prototype.customPreviewUrl)window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.uuid+"&showName="+encodeURI(e.fileName),o);else{var s=O.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a;Object(He["c"])(O.a.prototype.systemCode)&&(s=O.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a),window.open(s,o)}}},upload:function(e){var t,n=this;if(this.fileSize&&0!==this.fileSize&&this.unifiedEnclosures.length>=this.fileSize&&(t=this.$t("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs")+":"+this.fileSize),t)e.target.value="",this.$message({showClose:!0,type:"warning",message:t});else{this.loading=!0;var r=new FormData;r.append("file",this.$refs.uploadTemplate.files[0]);var o=this.$http;o.headers="'Content-Type': 'multipart/form-data'",o.post(O.a.prototype.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,r,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){n.unifiedEnclosures.push(t),e.target.value="",console.log("data",t),n.judgeImg(),console.log(" this.unifiedEnclosures",n.unifiedEnclosures),n.onSuccess(),n.$message({showClose:!0,type:"success",message:n.$t("fsUpload.uploadSucceeded")}),n.loading=!1})).catch((function(){e.target.value="",n.loading=!1}))}}}},cd=ld,fd=f(cd,td,nd,!1,null,"55a65746",null),dd=fd.exports,hd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.unifiedEnclosure&&e.unifiedEnclosure.uuid&&e.unifiedEnclosure.fileName&&e.isShowData?n("div",[e.isImg?n("el-image",{attrs:{fit:e.fit,"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName},on:{click:e.bigPicture}}):n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName,type:"primary"}},[e._v("\n "+e._s(e.unifiedEnclosure.fileName)+"\n ")]),n("el-tooltip",{attrs:{content:e.$t("fsUpload.download"),effect:"light"}},[e.isImg?n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName,type:"primary"}},[n("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px","font-size":"30px"}})]):e._e()],1),n("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():n("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px","font-size":"30px"},on:{click:e.deleteFile}})]),n("el-tooltip",{staticStyle:{"margin-left":"10px","font-size":"30px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[e.isImg?e._e():n("i",{staticClass:"el-icon-view",on:{click:e.preview}})])],1):e._e(),e.isShowButton&&!e.disabled?n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload2"},on:{click:e.selectDataFile}},[e._v("\n "+e._s(e.$t("fsUpload.upload"))+"\n ")]):e._e(),n("input",{ref:"uploadTemplate",staticStyle:{display:"none"},attrs:{type:"file",name:"uploadTemplate",accept:e.accepts},on:{change:e.upload}}),e.bigPictureVisible?n("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.data},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},pd=[],md=n("a78e"),gd=n.n(md),vd={name:"FsUploadSingle",components:{seeBigPicture:ud},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null}},data:function(){return{unifiedEnclosure:{uuid:"",fileName:""},loading:"",baseURL:"",showIndex:0,accepts:"",deleteUuid:"",bigPictureVisible:!1}},created:function(){this.baseURL=O.a.prototype.baseURL,this.data&&(this.unifiedEnclosure=this.data[0]),this.accept?this.accepts=this.accept:this.isImg&&(this.accepts="image/*")},methods:{bigPicture:function(){this.bigPictureVisible=!0},deleteFile:function(){this.deleteUuid=this.unifiedEnclosure.uuid,this.unifiedEnclosure=null,this.deleteSuccess()},deleteSuccess:function(){if(this.unifiedEnclosure){var e=[this.unifiedEnclosure];this.$emit("deleteSuccess",this.deleteUuid,e)}else this.$emit("deleteSuccess",this.deleteUuid)},acceptService:function(){return this.isImg?"image/*":null},selectDataFile:function(){this.$refs.uploadTemplate.click()},onSuccess:function(){if(this.unifiedEnclosure){var e=[this.unifiedEnclosure];this.$emit("onSuccess",e,this.deleteUuid)}else this.$emit("onSuccess",null,this.deleteUuid)},preview:function(){if(O.a.prototype.isOffice){var e=gd.a.get("JWT"),t={fileName:O.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+e},n=this.$http;n.post(O.a.prototype.baseURL+"/common/fs-upload/des-encrypt",t).then((function(e){window.open(O.a.prototype.isOffice+e)}))}else{var r,o=this.unifiedEnclosure.fileName.split(".");r="xls"===o[o.length-1].toLowerCase()||"xlsx"===o[o.length-1].toLowerCase()||"csv"===o[o.length-1].toLowerCase()?o[0]+".html":o[0]+".pdf";var i=Object(Ue["a"])();if(O.a.prototype.customPreviewUrl)window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+encodeURI(this.unifiedEnclosure.fileName),r);else{var a=O.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName;Object(He["c"])(O.a.prototype.systemCode)&&(a=O.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+i),window.open(a,r)}}},upload:function(e){var t=this;this.loading=!0;var n=new FormData;n.append("file",this.$refs.uploadTemplate.files[0]);var r=this.$http;r.headers="'Content-Type': 'multipart/form-data'",this.unifiedEnclosure&&(this.deleteUuid=this.unifiedEnclosure.uuid),r.post(O.a.prototype.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,n,{headers:{"Content-Type":"multipart/form-data"}}).then((function(n){t.unifiedEnclosure=n,e.target.value="",console.log("data",n),console.log(" this.unifiedEnclosure",t.unifiedEnclosure),t.onSuccess(),t.loading=!1,t.$message({showClose:!0,type:"success",message:t.$t("fsUpload.uploadSucceeded")})})).catch((function(){e.target.value="",t.loading=!1}))}}},bd=vd,yd=f(bd,hd,pd,!1,null,"708f569b",null),wd=yd.exports,_d={name:"FsUpload",components:{fsUploadMulti:dd,fsUploadSingle:wd},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null},isDelete:{type:Boolean,default:!1}},data:function(){return{deleteUuids:[]}},created:function(){},methods:{onSuccess:function(e,t){console.log("data",e),console.log("deleteUuid",t),this.isDelete&&t?(this.deleteFile(t),this.$emit("onSuccess",e)):(t&&this.deleteUuids.push(t),this.$emit("onSuccess",e))},deleteSuccess:function(e,t){console.log("deleteUuid",e),console.log("data",t),this.isDelete?(this.deleteFile(e),this.$emit("deleteSuccess",t)):(e&&this.deleteUuids.push(e),this.$emit("deleteSuccess",t))},deleteFile:function(e){var t=this.$http,n=[e];t.delete(O.a.prototype.baseURL+"/common/fs-upload",{data:n}).then((function(e){}))},getdeleteUuIds:function(){return this.deleteUuids}}},Cd=_d,xd=f(Cd,Qf,ed,!1,null,"91a07efc",null),Sd=xd.exports;Sd.install=function(e){e.component(Sd.name,Sd)};var Od=Sd,kd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-input",{attrs:{value:e.value,disable:e.disable,placeholder:e.placeholder,clearable:e.clearable,readonly:e.readonly,maxlength:e.maxlength},on:{change:e.change,blur:e.blur,focus:e.focus,input:e.input,clear:e.clear}},[e.isMobile?n("el-button",{attrs:{slot:"append",icon:"el-icon-full-screen"},on:{click:e.openVideo},slot:"append"}):e._e()],1),e.isShow?n("scan-code-input-colse",{attrs:{"colse-video":e.colseVideo},on:{close:e.closeVideo}}):e._e()],1)},Ed=[],Td=(n("4917"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("video",{ref:"video",staticClass:"video vjs-fluid",attrs:{id:"video",height:"300",autoplay:""},on:{click:e.clickVideo}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.tipShow,expression:"tipShow"}],staticClass:"tip"},[e._v("\n "+e._s(e.tipMsg)+"\n ")])])}),Dd=[];n("96cf");function Id(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,o)}function Nd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Id(i,r,o,a,s,"next",e)}function s(e){Id(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ad=n("224f"),Pd={name:"ScanCodeInputColse",components:{},props:{colseVideo:{type:Boolean,default:!1}},data:function(){return{loadingShow:!1,codeReader:new Ad["BrowserMultiFormatReader"],textContent:null,vin:null,tipMsg:this.$t("messageVideo.attemptingToIdentify"),tipShow:!1,isVideo:!1}},created:function(){this.openScan()},beforeDestroy:function(){console.log("销毁定时器"),this.codeReader.reset()},methods:{openScan:function(){var e=Nd(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,t.codeReader.listVideoInputDevices().then((function(e){t.tipShow=!0,t.tipMsg=n.$t("messageVideo.callingRearCamera"),console.log("videoInputDevices",e);var r=e[0].deviceId,o=JSON.stringify(e[0].label);e.length>1&&(r=o.indexOf("back")>-1?e[0].deviceId:e[1].deviceId),t.decodeFromInputVideoFunc(r)})).catch((function(e){t.tipShow=!1,console.error(e)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),openScanTwo:function(){var e=Nd(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.next=3,new Ad["BrowserMultiFormatReader"];case 3:t.codeReader=e.sent,t.codeReader.listVideoInputDevices().then((function(e){t.tipShow=!0,t.tipMsg=n.$t("messageVideo.callingRearCamera"),console.log("videoInputDevices",e);var r=e[0].deviceId,o=JSON.stringify(e[0].label);e.length>1&&(r=o.indexOf("back")>-1?e[0].deviceId:e[1].deviceId),t.decodeFromInputVideoFunc(r)})).catch((function(e){t.tipShow=!1,console.error(e)}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),decodeFromInputVideoFunc:function(e){var t=this,n=this;n.codeReader.reset(),n.textContent=null,n.codeReader.decodeFromVideoDevice(e,"video",(function(e,r){n.tipMsg=t.$t("messageVideo.attemptingToIdentify"),n.textContent=null,e&&(console.log(e),n.textContent=e.text,n.textContent&&(n.tipShow=!1,n.msgBoxFunc(n.textContent))),r&&!r&&(n.tipMsg=t.$t("messageVideo.identificationFailed"),setTimeout((function(){n.tipShow=!1}),2e3),console.error(r))}))},msgBoxFunc:function(e){var t=this;t.vin=e,t.$emit("close",t.vin),t.codeReader.reset()},clickVideo:function(){this.colseVideo&&(this.$emit("close",this.vin),this.codeReader.reset())}}},Md=Pd,Rd=f(Md,Td,Dd,!1,null,null,null),Bd=Rd.exports,Ld={change:function(e){this.$emit("change",e)},clear:function(){this.$emit("clear")},blur:function(e){this.$emit("blur",e)},focus:function(e){this.$emit("focus",e)},input:function(e){this.$emit("input",e)}},Fd=Ld;function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$d(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vd={name:"ScanCodeInput",components:{scanCodeInputColse:Bd},model:{prop:"value",event:"input"},props:{colseVideo:{type:Boolean,default:!1},value:{type:String,default:null},disable:{type:Boolean,default:!1},placeholder:{type:String,default:null},clearable:{type:Boolean,default:null},readonly:{type:Boolean,default:!1},maxlength:{type:Number,default:null}},data:function(){return{isMobile:!1,isShow:!1,scanCode:""}},watch:{value:{deep:!0,handler:function(e){this.scanCode=this.value}}},created:function(){this.isMobile=this.equipment(),this.scanCode=this.value},beforeDestroy:function(){},methods:jd(jd({},Fd),{},{equipment:function(){var e=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);if(e)return e;try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}},openVideo:function(){this.isShow?this.isShow=!1:this.isShow=!0},closeVideo:function(e){this.isShow=!1,this.value=e,this.$emit("colse",e)}})},zd=Vd,Hd=f(zd,kd,Ed,!1,null,null,null),Ud=Hd.exports;Ud.install=function(e){e.component(Ud.name,Ud)};var Wd=Ud,Gd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?[n("fs-preview",{attrs:{label:e.value,entity:e.row,"is-sql":e.isSql,"file-set-obj":e.fileSetObj}})]:[n("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),n("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"30%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},[e.annexUploadFlag?n("el-upload",{attrs:{action:e.defaultAction,accept:e.fileSetObj.accept?e.fileSetObj.accept:null,"on-success":e.uploadOnSuccess,headers:e.headers,"before-upload":e.handleBeforeUpload,"with-credentials":!0,name:"file"}},[n("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?n("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),n("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[n("el-table-column",{attrs:{width:"300",prop:"showName"}}),n("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.previewSingle(t.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():n("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.deleteRow(t.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},qd=[],Yd={name:"FsUploadList",components:{FsPreview:Hn},props:{value:{type:String,default:null},fileInfo:{type:Object,default:function(){return{name:null,serverPath:null}}},fileSetObj:{type:Object,default:function(){return{limitFileSize:30,multiple:!1,accept:null}}},customViewUrl:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadAble:{type:Boolean,default:!0},deletaAble:{type:Boolean,default:!0},fileList:{type:Array,default:function(){return[]}},row:{type:Object,default:function(){return{}}},isSql:{type:Boolean,default:!1}},data:function(){var e={Authorization:Object(Ue["a"])()},t=O.a.prototype.baseURL+"/common/fs-upload";return Object(He["c"])(O.a.prototype.systemCode)&&(t=O.a.prototype.baseAPI+"/component/super-form/uploads"),{deleteUuids:[],headers:e,defaultAction:t,annexUploadFlag:!1,showPreviewSingleImage:!1,showPreviewMulti:!1,lastFileName:null,previewImageInfo:{},showFileList:this.fileList}},created:function(){},mounted:function(){},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},handleBeforeUpload:function(e){var t=this.fileSetObj.limitFileSize;if(void 0===t&&(t=30),e.size>1024*t*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},uploadOnSuccess:function(e,t){e&&(this.$emit("upload-success",{showName:e.name,serverPath:e.serverPath}),this.fileSetObj.multiple&&this.fileInfo.showName?(this.fileInfo.showName=this.fileInfo.showName+","+e.name,this.fileInfo.serverPath=this.fileInfo.serverPath+","+e.serverPath):(this.fileInfo.showName=e.name,this.fileInfo.serverPath=e.serverPath)),this.annexUploadFlag=!1},preview:function(){var e=this;this.fileList.length=0;var t=this.fileInfo.serverPath.split(",");this.$http.post(O.a.prototype.baseURL+"/common/fs-upload/search-file-names",t).then((function(n){t.forEach((function(t){e.fileList.push({showName:n[t],serverPath:t})})),e.showFileList=e.fileList,e.showPreviewMulti=!0}))},previewSingle:function(e){e=vt(e.showName,e.serverPath),Object(x["j"])(e.showName)?(this.previewImageInfo=e,this.showPreviewSingleImage=!0):this.previewDoc(e)},previewDoc:function(e){var t=e.showName.replace("#","~~").replace("?","~$").replace("&","$"),n=Object(Ue["a"])(),r=O.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(He["c"])(O.a.prototype.systemCode)&&(r=O.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),O.a.prototype.customPreviewUrl?window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.serverPath+"&showName="+encodeURI(t),e.showName):window.open(r+"&showName="+encodeURI(t)+"&serverPath="+e.serverPath)},deleteRow:function(e){for(var t=this.showFileList[e],n=[],r=[],o=0;o<this.showFileList.length;o++)o!==e&&(n.push(this.showFileList[o].showName),r.push(this.showFileList[o].serverPath));0===n.length?(this.fileInfo.showName=null,this.fileInfo.serverPath=null,this.showFileList=[],this.$emit("delete-success",{deleteFile:t,all:[]}),this.$emit("delete",[],e)):(this.fileInfo.showName=n.join(","),this.fileInfo.serverPath=r.join(","),this.$emit("delete-success",{deleteFile:t,all:this.showFileList}),this.$emit("delete",this.showFileList,e))}}},Kd=Yd,Xd=f(Kd,Gd,qd,!1,null,"2ee62821",null),Jd=Xd.exports;Jd.install=function(e){e.component(Jd.name,Jd)};var Zd=Jd,Qd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-date-picker",{staticStyle:{width:"47%"},attrs:{"value-format":"yyyy",type:"year",placeholder:e.$t("imatrixUIMessage.selectYear")},on:{change:e.changeStart},model:{value:e.value[0],callback:function(t){e.$set(e.value,0,t)},expression:"value[0]"}}),e._v("\n -\n "),n("el-date-picker",{staticStyle:{width:"47%"},attrs:{"value-format":"yyyy",type:"year",placeholder:e.$t("imatrixUIMessage.selectYear")},on:{change:e.changeEnd},model:{value:e.value[1],callback:function(t){e.$set(e.value,1,t)},expression:"value[1]"}})],1)},eh=[],th={name:"YearRangePicker",props:{value:{type:Array,default:function(){return[]}}},data:function(){return{yearStart:"",yearEnd:""}},methods:{changeStart:function(e){this.value[0]=e,this.$emit("change",this.value)},changeEnd:function(e){this.value[1]=e,this.$emit("change",this.value)}}},nh=th,rh=f(nh,Qd,eh,!1,null,null,null),oh=rh.exports;oh.install=function(e){e.component(oh.name,oh)};var ih=oh,ah=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["form"===e.type?n("MultipartUploadForm"):n("MultipartUploadList",{attrs:{disabled:e.disabled,entity:e.entity,value:e.value,"file-set-obj":e.fileSetObj}})],1)},sh=[],uh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?[n("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[n("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"})],1),n("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"40%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},[n("el-upload",{attrs:{id:"upload","show-file-list":!1,"auto-upload":!1,"on-change":e.uploadFile,action:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[e._v("\n 选择文件\n ")]),n("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"12px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n 上传文件不能超过"+e._s(e.fileSetObj.limitFileSize)+"M\n "),e.fileSetObj.accept?n("span",[e._v(",并且只接受"+e._s(e.fileSetObj.accept)+"类型文件")]):e._e()])],1),n("br"),e._l(e.uploadingFile,(function(t,r){return n("el-row",{key:r},[n("el-tag",{attrs:{size:"small form-list-file"}},[n("span",[n("i",{staticClass:"el-icon-paperclip"}),n("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(t.name))])]),n("el-tooltip",{attrs:{content:"取消上传",placement:"right",effect:"light"}},[n("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(n){return e.cancelUpload(t.serverName)}}})])],1),n("el-progress",{attrs:{percentage:t.uploadProgress}})],1)})),n("div",{staticStyle:{}},[n("el-row",[n("el-col",e._l(e.fileContent,(function(t,r){return n("el-tag",{key:r,attrs:{size:"small form-list-file"}},[n("span",{on:{click:function(n){return e.preview(t.name,t.serverName)}}},[n("i",{staticClass:"el-icon-paperclip"}),n("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(t.name))])]),n("el-tooltip",{attrs:{content:"移除已上传文件",placement:"right",effect:"light"}},[n("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(n){return e.handleOnRemove(r,t)}}})])],1)})),1)],1)],1)],2),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),n("el-image",{attrs:{src:e.previewImageInfo.src,"preview-src-list":[e.previewImageInfo.src]}})],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),n("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[n("el-table-column",{attrs:{width:"300",prop:"showName"}}),n("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.previewSingle(t.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():n("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.deleteRow(t.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},lh=[],ch={name:"MultipartUploadList",components:{FsPreview:Hn},props:{value:{type:String,default:null},entity:{type:Object,default:null},fileSetObj:{type:Object,default:function(){return{limitFileSize:10,multiple:!1,accept:null}}},disabled:{type:Boolean,default:!1}},data:function(){var e={Authorization:Object(Ue["a"])()},t=O.a.prototype.baseURL+"/common/fs-upload";return Object(He["c"])(O.a.prototype.systemCode)&&(t=O.a.prototype.baseAPI+"/component/super-form/uploads"),{deleteUuids:[],headers:e,defaultAction:t,annexUploadFlag:!1,showPreviewSingleImage:!1,showPreviewMulti:!1,lastFileName:null,previewImageInfo:{},showFileList:[],uploadingFile:[],cancelUploadFile:[],fileContent:[],chunkSize:5242880}},created:function(){},mounted:function(){var e=this;this.fileSetObj.limitFileSize||(this.fileSetObj.limitFileSize=10);var t=this.entity[this.fileSetObj.showNameData.dbName],n=this.entity[this.fileSetObj.serverNameData.dbName];if(t&&n){var r=t.split(","),o=n.split(",");r.forEach((function(t,n){e.fileContent.push({name:t,serverName:o[n]});var r=Object(Ue["a"])(),i=O.a.prototype.baseURL+"/common/super-form/downloads?jwt="+r;Object(He["c"])(O.a.prototype.systemCode)&&(i=O.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+r);var a=i+"&showName="+encodeURI(t)+"&serverPath="+o[n];e.showFileList.push({showName:t,serverPath:o[n],src:a})}))}},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},uploadFile:function(){var e=Nd(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.uploadingFile.length>0)||this.fileSetObj.multiple){e.next=3;break}return this.$message({showClose:!0,message:"文件单选,请勿同时上传多份文件!",type:"warning"}),e.abrupt("return");case 3:n=Date.now(),this.uploadingFile.push({name:t.raw.name,uploadProgress:0,serverName:n}),r=t.raw,o=r.size,i=Math.ceil(o/this.chunkSize),console.log("文件大小:",r.size/1024/1024+"Mb","分片数:",i),console.log("向后端请求本次分片上传初始化"),a={fileName:r.name,chunkCount:i},this.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/create",a).then(function(){var e=Nd(regeneratorRuntime.mark((function e(t){var u,l,c,f,d,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(s.cancelUploadFile,"sssssssssssss"),!(s.cancelUploadFile.indexOf(a.serverName)>0)){e.next=3;break}return e.abrupt("return");case 3:u=s.uploadingFile.findIndex((function(e){return e.serverName===n})),l=t.serverName,s.uploadingFile[u]={uploadProgress:0,name:r.name,serverName:l,folder:t.folder},console.log(s.uploadingFile,"uploadingFile"),c=[],f=regeneratorRuntime.mark((function e(n){var a,f,d,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=n*s.chunkSize,f=Math.min(o,a+s.chunkSize),d=r.slice(a,f),console.log("开始上传第"+(n+1)+"个分片,共"+i+"个"),h=new FormData,h.append("folder",t.folder),h.append("serverName",l),h.append("file",d),!(s.cancelUploadFile.indexOf(l)>0)){e.next=12;break}return e.abrupt("return","break");case 12:return e.next=14,s.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/upload",h).then((function(e){c.push(e.uploadName);var t=parseInt((n+1)/i*100);s.uploadingFile[u].uploadProgress=t>100?100:t,s.$set(s.uploadingFile,u,s.uploadingFile[u]),console.log("第"+(n+1)+"个分片上传完成",s.uploadingFile)}));case 14:case"end":return e.stop()}}),e)})),d=0;case 10:if(!(d<i)){e.next=18;break}return e.delegateYield(f(d),"t0",12);case 12:if(h=e.t0,"break"!==h){e.next=15;break}return e.abrupt("break",18);case 15:d++,e.next=10;break;case 18:if(!(s.cancelUploadFile.indexOf(l)<0)){e.next=22;break}s.composeFile(r.name,i,o,l,c,t.folder),e.next=24;break;case 22:return e.next=24,s.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/remove-chunks",{serverName:l,folder:t.folder}).then((function(e){console.log("取消上传,并移除已上传的文件碎片")}));case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),composeFile:function(e,t,n,r,o,i){var a=this,s={fileName:e,chunkSize:t,fileSize:n,serverName:r,chunkNames:o,folder:i};console.log(s,"开始请求后端合并文件"),this.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/merge",s).then((function(t){if(a.uploadingFile.splice(a.uploadingFile.findIndex((function(e){return e.serverName===r})),1),a.fileSetObj.multiple){a.fileContent.push({name:e,serverName:r});var n=a.entity[a.fileSetObj.showNameData.dbName];n&&n.length>0?a.setEntityValue(n+","+e,a.entity[a.fileSetObj.serverNameData.dbName]+","+r):a.setEntityValue(e,r)}else a.fileContent=[{name:e,serverName:r}],a.setEntityValue(e,r);console.log("合并文件完成",t,a.entity)}))},setEntityValue:function(e,t){this.$set(this.entity,this.fileSetObj.showNameData.dbName,e),this.$set(this.entity,this.fileSetObj.serverNameData.dbName,t)},cancelUpload:function(e){this.$set(this.entity,"DOC_NAME",null),this.$set(this.entity,"DOC_PATH",null),this.cancelUploadFile.push(e),this.uploadingFile.splice(this.uploadingFile.findIndex((function(t){return t.serverName===e})),1)},preview:function(e,t){Object(x["j"])(e)?(this.previewImageInfo={src:O.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(Ue["a"])()+"&showName="+e+"&serverPath="+t},this.showPreviewSingleImage=!0):this.previewDoc(e,t)},previewDoc:function(e,t){var n=Object(Ue["a"])(),r=O.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(He["c"])(O.a.prototype.systemCode)&&(r=O.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),O.a.prototype.customPreviewUrl?window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+t+"&showName="+encodeURI(e),e):window.open(r+"&showName="+encodeURI(e)+"&serverPath="+t)},handleOnRemove:function(e){if(this.fileContent.splice(e,1),this.fileSetObj.multiple){var t=[],n=[];this.fileContent.forEach((function(e){e.name&&e.serverName&&(t.push(e.name),n.push(e.serverName))})),this.setEntityValue(t.join(","),n.join(","))}else this.setEntityValue(null,null)}}},fh=ch,dh=f(fh,uh,lh,!1,null,"78bfc762",null),hh=dh.exports,ph=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?[n("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[n("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),n("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"30%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},[e.annexUploadFlag?n("el-upload",{attrs:{action:e.defaultAction,accept:e.fileSetObj.accept?e.fileSetObj.accept:null,"on-success":e.uploadOnSuccess,headers:e.headers,"before-upload":e.handleBeforeUpload,"with-credentials":!0,name:"file"}},[n("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?n("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),n("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[n("el-table-column",{attrs:{width:"300",prop:"showName"}}),n("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.previewSingle(t.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():n("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.deleteRow(t.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},mh=[],gh={name:"MultipartUploadForm",components:{FsPreview:Hn},props:{value:{type:String,default:null},fileInfo:{type:Object,default:function(){return{name:null,serverPath:null}}},fileSetObj:{type:Object,default:function(){return{limitFileSize:30,multiple:!1,accept:null}}},customViewUrl:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadAble:{type:Boolean,default:!0},deletaAble:{type:Boolean,default:!0},fileList:{type:Array,default:function(){return[]}}},data:function(){var e={Authorization:Object(Ue["a"])()},t=O.a.prototype.baseURL+"/common/fs-upload";return Object(He["c"])(O.a.prototype.systemCode)&&(t=O.a.prototype.baseAPI+"/component/super-form/uploads"),{deleteUuids:[],headers:e,defaultAction:t,annexUploadFlag:!1,showPreviewSingleImage:!1,showPreviewMulti:!1,lastFileName:null,previewImageInfo:{},showFileList:this.fileList}},created:function(){},mounted:function(){this.getFileList()},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},handleBeforeUpload:function(e){var t=this.fileSetObj.limitFileSize;if(void 0===t&&(t=30),e.size>1024*t*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},uploadOnSuccess:function(e,t){if(e)if(this.$emit("upload-success",{showName:e.name,serverPath:e.serverPath}),this.fileSetObj.multiple)if(this.fileInfo.showName){var n=this.fileInfo.showName.split(","),r=this.fileInfo.serverPath.split(",");n.push(e.name),r.push(e.serverPath),this.fileInfo.showName=n.join(","),this.fileInfo.serverPath=r.join(",")}else this.fileInfo.showName=e.name,this.fileInfo.serverPath=e.serverPath;else this.fileInfo.showName=e.name,this.fileInfo.serverPath=e.serverPath;this.annexUploadFlag=!1},preview:function(){this.getFileList(),this.showPreviewMulti=!0},previewSingle:function(e){Object(x["j"])(e.showName)?(this.previewImageInfo=e,this.showPreviewSingleImage=!0):this.previewDoc(e)},getFileList:function(){if(this.customViewUrl)this.showFileList=this.fileList;else{var e=this.fileInfo.showName.split(","),t=this.fileInfo.serverPath.split(",");if(0===e.length||0===t.length||e.length!==t.length)return;for(var n=[],r=O.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(Ue["a"])(),o=0;o<e.length;o++){var i=e[o];if(i&&t[o]){var a={showName:i,serverPath:t[o],src:r+"&showName="+i+"&serverPath="+t[o]};Object(x["j"])(i)?a.isImg=!0:a.isImg=!1,n.push(a)}}this.showFileList=n}},previewDoc:function(e){var t=Object(Ue["a"])(),n=O.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+t;Object(He["c"])(O.a.prototype.systemCode)&&(n=O.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+t),O.a.prototype.customPreviewUrl?window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.serverPath+"&showName="+encodeURI(e.showName),e.showName):window.open(n+"&showName="+encodeURI(e.showName)+"&serverPath="+e.serverPath)},deleteRow:function(e){for(var t=this.showFileList[e],n=[],r=[],o=0;o<this.showFileList.length;o++)o!==e&&(n.push(this.showFileList[o].showName),r.push(this.showFileList[o].serverPath));this.fileInfo.showName=n.join(","),this.fileInfo.serverPath=r.join(","),this.getFileList(),this.$emit("delete-success",{deleteFile:t,all:this.showFileList}),this.$emit("delete",this.showFileList,e)}}},vh=gh,bh=f(vh,ph,mh,!1,null,"0548435e",null),yh=bh.exports,wh={name:"MultipartUpload",components:{MultipartUploadList:hh,MultipartUploadForm:yh},props:{type:{type:String,default:"form"},value:{type:String,default:null},entity:{type:Object,default:null},fileSetObj:{type:Object,default:function(){return{limitFileSize:30,multiple:!1,accept:null}}},disabled:{type:Boolean,default:!1},uploadAble:{type:Boolean,default:!0},deletaAble:{type:Boolean,default:!0}},data:function(){return{}},created:function(){console.log(this.fileSetObj,"fileSetObj"),console.log(this.entity,"entity")},mounted:function(){},methods:{}},_h=wh,Ch=f(_h,ah,sh,!1,null,"18d0a944",null),xh=Ch.exports;xh.install=function(e){e.component(xh.name,xh)};var Sh=xh,Oh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{maxHeight:e.maxHeight+"px"}},[e.disabled?n("div",[n("div",{staticStyle:{overflow:"auto",border:"1px solid #DCDFE6",padding:"2px"},style:{maxHeight:e.maxHeight+"px"},attrs:{id:e.viewerId}}),n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.fullScreen"),effect:"dark",placement:"top"}},[n("em",{staticClass:"el-icon-full-screen",staticStyle:{"z-index":"1",right:"20px",position:"absolute",top:"2px"},on:{click:e.fullScreenContent}})]),n("el-image",{ref:"previewImg",staticStyle:{display:"none",width:"100px",height:"100px"},attrs:{src:e.srcList[0],"preview-src-list":e.srcList}})],1):n("Editor",{attrs:{init:e.init,disabled:e.disabled},model:{value:e.contentValue,callback:function(t){e.contentValue=t},expression:"contentValue"}}),n("el-dialog",{attrs:{visible:e.dialogVisible,title:e.title,"destroy-on-close":"","append-to-body":"",fullscreen:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{attrs:{id:e.fullscreenViewerId}})])],1)},kh=[],Eh=(n("34ef"),n("f559"),["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"]),Th=function(e){return-1!==Eh.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},Dh=function(e,t,n){Object.keys(t).filter(Th).forEach((function(r){var o=t[r];"function"===typeof o&&("onInit"===r?o(e,n):n.on(r.substring(2),(function(e){return o(e,n)})))}))},Ih=function(e,t){var n=e.$props.modelEvents?e.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;t.on(r||"change input undo redo",(function(){e.$emit("input",t.getContent({format:e.$props.outputFormat}))}))},Nh=function(e,t,n){var r=t.$props.value?t.$props.value:"",o=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:o)),t.$watch("value",(function(e,r){n&&"string"===typeof e&&e!==r&&e!==n.getContent({format:t.$props.outputFormat})&&n.setContent(e)})),t.$listeners.input&&Ih(t,n),Dh(e,t.$listeners,n),t.initialized=!0},Ah=0,Ph=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return Ah++,e+"_"+n+Ah+String(t)},Mh=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},Rh=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},Bh=function(e,t){return Rh(e).concat(Rh(t))},Lh=function(e){return null===e||void 0===e},Fh=function(){return{listeners:[],scriptId:Ph("tiny-script"),scriptLoaded:!1}},$h=function(){var e=Fh(),t=function(e,t,n,r){var o=t.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=e,o.src=n;var i=function(){o.removeEventListener("load",i),r()};o.addEventListener("load",i),t.head&&t.head.appendChild(o)},n=function(n,r,o){e.scriptLoaded?o():(e.listeners.push(o),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=Fh()};return{load:n,reinitialize:r}},jh=$h(),Vh=n("c4a9"),zh={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},Hh=function(){return Hh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hh.apply(this,arguments)},Uh=function(e,t,n){return e(n||"div",{attrs:{id:t}})},Wh=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},Gh=function(e){return function(){var t=Hh(Hh({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:Bh(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return Nh(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});Mh(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Object(Vh["a"])().init(t)}},qh={props:zh,created:function(){this.elementId=this.$props.id||Ph("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(Vh["a"])())Gh(this)();else if(this.element&&this.element.ownerDocument){var e=this.$props.cloudChannel?this.$props.cloudChannel:"5",t=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=Lh(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;jh.load(this.element.ownerDocument,n,Gh(this))}},beforeDestroy:function(){null!==Object(Vh["a"])()&&Object(Vh["a"])().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Object(Vh["a"])())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&Gh(this)()},render:function(e){return this.inlineEditor?Uh(e,this.elementId,this.$props.tagName):Wh(e,this.elementId)}},Yh=qh,Kh=n("78b7"),Xh=n.n(Kh),Jh=(n("0d68"),n("ec27"),n("0902"),n("855b"),n("3154"),n("2b07"),n("4ea8"),n("4237"),n("84ec"),n("bc54"),n("0a9d"),n("840a"),n("90e7"),n("6957"),n("62e5"),n("07d1"),n("34de"),n("9434"),n("0342"),n("3b2e"),{name:"RichEditor",components:{Editor:Yh},props:{entity:{type:Object,default:null},prop:{type:String,default:null},value:{type:String,default:""},disabled:{type:Boolean,default:!1},options:{type:Object,default:null},title:{type:String,default:""},plugins:{type:[String,Array],default:"paste print preview searchreplace directionality fullscreen image link table hr advlist lists wordcount "},toolbar:{type:[String,Array],default:" undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor | image | lineheight bullist numlist table | print fullscreen preview "}},data:function(){var e=this;"zh_CN"===Object(x["f"])()&&n("e433");var t="400";return this.options&&this.options.maxHeight&&(t=this.options.maxHeight),{maxHeight:t,init:{height:t,language:"zh-Hans",plugins:this.plugins,toolbar:this.toolbar,menubar:!1,fontsize_formats:"12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 48px 56px 72px",font_formats:"微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;",lineheight_formats:"0.5 0.8 1 1.2 1.5 1.75 2 2.5 3 4 5",placeholder:"在这里输入文字",branding:!1,resize:!1,elementpath:!1,image_description:!1,content_style:"img {width:400px;height:300px}",paste_data_images:!0,urlconverter_callback:function(e,t,n,r){return"img"===t&&e.startsWith("blob:")?(console.log("urlconverter_callback ...."),Xh.a.activeEditor&&Xh.a.activeEditor.uploadImages(),e):e},images_upload_handler:function(t,n,r,o){var i;t.blob()instanceof File?(console.log("images_upload_handler .File"),i=t.blob()):(console.log("images_upload_handler .base64"),i=e.base64ToFile(t.base64(),"a.png"));var a=new FormData;a.append("file",i);var s={headers:{"Content-Type":"multipart/form-data"}};e.$http.post("/common/fs-upload/rich-editor-image",a,s).then((function(e){console.log(e),n(e.url)})).catch((function(){r("上传出错,服务器开小差了呢")}))}},contentValue:this.value,markValue:"",srcList:[],psrcList:[],viewerId:"aglie_rich_editor_"+(new Date).getTime(),dialogVisible:!1,fullscreenViewerId:"editor_viewer_"+(new Date).getTime(),ImageComponent:null}},watch:{value:{deep:!0,handler:function(e,t){this.contentValue=e,this.entity[this.prop]=e}},contentValue:{deep:!0,handler:function(e,t){this.$emit("input",e),this.entity[this.prop]=e}},disabled:{deep:!0,handler:function(e,t){e&&this.initViewer()}}},created:function(){},mounted:function(){this.disabled?this.initViewer():Xh.a.init(this.init)},methods:{showImage:function(e){console.log(this.$refs.previewImg),this.srcList=[e.target.currentSrc],this.$refs.previewImg.showViewer=!0},fullScreenContent:function(){var e=this;this.dialogVisible=!0,this.$nextTick((function(){var t=(new e.ImageComponent).$mount();document.getElementById(e.fullscreenViewerId).appendChild(t.$el)}))},initViewer:function(){var e=this,t=this,n=this.value.replaceAll("<img",'<img @click="showImage" ');n="<div> "+n+" </div> ",this.ImageComponent=O.a.extend({methods:{showImage:function(e){console.log(e),t.showImage(e)}},template:n});var r=(new this.ImageComponent).$mount();this.$nextTick((function(){document.getElementById(e.viewerId).appendChild(r.$el)}))},base64ToFile:function(e,t){var n=atob(e),r=n.length,o=new Uint8Array(r);t=(new Date).getTime()+"-"+Math.floor(1e4*Math.random())+".png";while(r--)o[r]=n.charCodeAt(r);return new File([o],t,{type:"image/png"})}}}),Zh=Jh,Qh=f(Zh,Oh,kh,!1,null,null,null),ep=Qh.exports;ep.install=function(e){e.component(ep.name,ep)};var tp=ep,np=function(){var e=this,t=e.$createElement,n=e._self._c||t;return void 0!==e.value&&null!==e.value&&""!==e.value?n("span",[e.isShow?n("span",[e._v("\n "+e._s(e.decryInfo)),n("i",{staticClass:"fa fa-eye",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})]):n("span",[e._v("\n ******"),n("i",{staticClass:"fa fa-eye-slash",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})])]):e._e()},rp=[],op={name:"SecretInfo",props:{entity:{type:Object,default:null},prop:{type:String,default:null},value:{type:String,default:null},tableName:{type:String,default:null},listCode:{type:String,default:null},pageCode:{type:String,default:null},listName:{type:String,default:null},fieldLabel:{type:String,default:null}},data:function(){return{isShow:!1,decryInfo:null}},methods:{showHideSecretInfo:function(){this.isShow?this.isShow=!1:this.decryAndSaveLog()},decryAndSaveLog:function(){var e=this,t={tableName:this.tableName,listCode:this.listCode,listName:this.listName,pageCode:this.pageCode,fieldName:this.prop,fieldCnName:this.fieldLabel,ciphertext:this.value};this.entity&&(t.dataId=this.entity.ID?this.entity.ID:this.entity.id),this.$http.post(this.baseAPI+"/component/super-pages/decodeAndMonitorSecretInfoLog",t).then((function(t){e.decryInfo=t,e.isShow=!0}))}}},ip=op,ap=f(ip,np,rp,!1,null,"75022789",null),sp=ap.exports;sp.install=function(e){e.component(sp.name,sp)};var up=sp;function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fp=[p,oe,fe,be,Cs,hu,Iu,qu,Yu,tl,nl,rl,dl,Ol,Ml,Ac,Hc,ef,uf,Jf,Zf,Od,Wd,Un,Zd,ih,Sh,tp,up],dp=function e(t){t.directive("prevent-reclick",El),t.use(_c),e.installed||(fp.forEach((function(e){t.component(e.name,e)})),window["$plateform_openPage"]=fn)};"undefined"!==typeof window&&window.Vue&&dp(window.Vue);var hp=cp({install:dp},fp);n.d(t,"Breadcrumb",(function(){return p})),n.d(t,"DepartmentTree",(function(){return oe})),n.d(t,"Hamburger",(function(){return fe})),n.d(t,"SvgIcon",(function(){return be})),n.d(t,"SuperGrid",(function(){return Cs})),n.d(t,"DepartmentUserTree",(function(){return hu})),n.d(t,"WorkgroupTree",(function(){return Iu})),n.d(t,"WorkgroupUserTree",(function(){return qu})),n.d(t,"InlineDepartmentTree",(function(){return Yu})),n.d(t,"InlineDepartmentUserTree",(function(){return tl})),n.d(t,"InlineWorkgroupTree",(function(){return nl})),n.d(t,"InlineWorkgroupUserTree",(function(){return rl})),n.d(t,"WorkflowButton",(function(){return dl})),n.d(t,"WorkflowHistoryList",(function(){return Ol})),n.d(t,"ValidCode",(function(){return Ml})),n.d(t,"RemoveUser",(function(){return Ac})),n.d(t,"RemoveDepartment",(function(){return Hc})),n.d(t,"RemoveWorkgroup",(function(){return ef})),n.d(t,"OrganizationInput",(function(){return uf})),n.d(t,"SuperNineGrid",(function(){return Jf})),n.d(t,"DynamicSourceSelect",(function(){return Zf})),n.d(t,"FsUpload",(function(){return Od})),n.d(t,"ScanCodeInput",(function(){return Wd})),n.d(t,"FsPreview",(function(){return Un})),n.d(t,"FsUploadList",(function(){return Zd})),n.d(t,"YearRangePicker",(function(){return ih})),n.d(t,"MultipartUpload",(function(){return Sh})),n.d(t,"RichEditor",(function(){return tp})),n.d(t,"SecretInfo",(function(){return up}));t["default"]=hp},fb63:function(e,t,n){"use strict";var r=function(){function e(){}return e.round=function(e){return NaN===e?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){var o=e[n];t+=o}return t},e}();t["a"]=r},fc39:function(e,t){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},fd77:function(e,t,n){"use strict";n("b373")},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fe96:function(e,t,n){"use strict";var r;(function(e){e[e["OTHER"]=0]="OTHER",e[e["PURE_BARCODE"]=1]="PURE_BARCODE",e[e["POSSIBLE_FORMATS"]=2]="POSSIBLE_FORMATS",e[e["TRY_HARDER"]=3]="TRY_HARDER",e[e["CHARACTER_SET"]=4]="CHARACTER_SET",e[e["ALLOWED_LENGTHS"]=5]="ALLOWED_LENGTHS",e[e["ASSUME_CODE_39_CHECK_DIGIT"]=6]="ASSUME_CODE_39_CHECK_DIGIT",e[e["ASSUME_GS1"]=7]="ASSUME_GS1",e[e["RETURN_CODABAR_START_END"]=8]="RETURN_CODABAR_START_END",e[e["NEED_RESULT_POINT_CALLBACK"]=9]="NEED_RESULT_POINT_CALLBACK",e[e["ALLOWED_EAN_EXTENSIONS"]=10]="ALLOWED_EAN_EXTENSIONS"})(r||(r={})),t["a"]=r}})}));
|
|
36
|
+
function pr(e){return pr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(){return gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gr.apply(this,arguments)}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mr(e,t,n[t])}))}return e}function br(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yr(e,t){if(null==e)return{};var n,r,o=br(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wr="1.10.2";function _r(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Cr=_r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xr=_r(/Edge/i),Sr=_r(/firefox/i),Or=_r(/safari/i)&&!_r(/chrome/i)&&!_r(/android/i),kr=_r(/iP(ad|od|hone)/i),Er=_r(/chrome/i)&&_r(/android/i),Tr={capture:!1,passive:!1};function Dr(e,t,n){e.addEventListener(t,n,!Cr&&Tr)}function Ir(e,t,n){e.removeEventListener(t,n,!Cr&&Tr)}function Nr(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Ar(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pr(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Nr(e,t):Nr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ar(e))}return null}var Mr,Rr=/\s+/g;function Br(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Rr," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Rr," ")}}function Lr(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function Fr(e,t){var n="";if("string"===typeof e)n=e;else do{var r=Lr(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function $r(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function jr(){var e=document.scrollingElement;return e||document.documentElement}function Vr(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,s,u,l,c,f;if(e!==window&&e!==jr()?(i=e.getBoundingClientRect(),a=i.top,s=i.left,u=i.bottom,l=i.right,c=i.height,f=i.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Cr))do{if(o&&o.getBoundingClientRect&&("none"!==Lr(o,"transform")||n&&"static"!==Lr(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(Lr(o,"border-top-width")),s-=d.left+parseInt(Lr(o,"border-left-width")),u=a+i.height,l=s+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=Fr(o||e),p=h&&h.a,m=h&&h.d;h&&(a/=m,s/=p,f/=p,c/=m,u=a+c,l=s+f)}return{top:a,left:s,bottom:u,right:l,width:f,height:c}}}function zr(e,t,n){var r=Yr(e,!0),o=Vr(e)[t];while(r){var i=Vr(r)[n],a=void 0;if(a="top"===n||"left"===n?o>=i:o<=i,!a)return r;if(r===jr())break;r=Yr(r,!1)}return!1}function Hr(e,t,n){var r=0,o=0,i=e.children;while(o<i.length){if("none"!==i[o].style.display&&i[o]!==oi.ghost&&i[o]!==oi.dragged&&Pr(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function Ur(e,t){var n=e.lastElementChild;while(n&&(n===oi.ghost||"none"===Lr(n,"display")||t&&!Nr(n,t)))n=n.previousElementSibling;return n||null}function Wr(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===oi.clone||t&&!Nr(e,t)||n++;return n}function Gr(e){var t=0,n=0,r=jr();if(e)do{var o=Fr(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function qr(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function Yr(e,t){if(!e||!e.getBoundingClientRect)return jr();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Lr(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 jr();if(r||t)return n;r=!0}}}while(n=n.parentNode);return jr()}function Kr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Xr(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Jr(e,t){return function(){if(!Mr){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Mr=setTimeout((function(){Mr=void 0}),t)}}}function Zr(){clearTimeout(Mr),Mr=void 0}function Qr(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function eo(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var to="Sortable"+(new Date).getTime();function no(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==Lr(e,"display")&&e!==oi.ghost){t.push({target:e,rect:Vr(e)});var n=vr({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Fr(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(qr(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=Vr(n),u=n.prevFromRect,l=n.prevToRect,c=e.rect,f=Fr(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&Xr(u,s)&&!Xr(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=oo(c,u,l,r.options)),Xr(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"===typeof n&&n()}),i):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){Lr(e,"transition",""),Lr(e,"transform","");var o=Fr(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),u=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!u,Lr(e,"transform","translate3d("+s+"px,"+u+"px,0)"),ro(e),Lr(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Lr(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Lr(e,"transition",""),Lr(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function ro(e){return e.offsetWidth}function oo(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var io=[],ao={initializeByDefault:!0},so={mount:function(e){for(var t in ao)ao.hasOwnProperty(t)&&!(t in e)&&(e[t]=ao[t]);io.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";io.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](vr({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](vr({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in io.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,gr(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);"undefined"!==typeof i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return io.forEach((function(r){"function"===typeof r.eventProperties&&gr(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return io.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function uo(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,u=e.oldIndex,l=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[to],t){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Cr||xr?(m=document.createEvent("Event"),m.initEvent(r,!0,!0)):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=o||n,m.clone=i,m.oldIndex=u,m.newIndex=l,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var b=vr({},p,so.getEventProperties(r,t));for(var y in b)m[y]=b[y];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var lo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=yr(n,["evt"]);so.pluginEvent.bind(oi)(e,t,vr({dragEl:fo,parentEl:ho,ghostEl:po,rootEl:mo,nextEl:go,lastDownEl:vo,cloneEl:bo,cloneHidden:yo,dragStarted:Ao,putSortable:Oo,activeSortable:oi.active,originalEvent:r,oldIndex:wo,oldDraggableIndex:Co,newIndex:_o,newDraggableIndex:xo,hideGhostForTarget:ei,unhideGhostForTarget:ti,cloneNowHidden:function(){yo=!0},cloneNowShown:function(){yo=!1},dispatchSortableEvent:function(e){co({sortable:t,name:e,originalEvent:r})}},o))};function co(e){uo(vr({putSortable:Oo,cloneEl:bo,targetEl:fo,rootEl:mo,oldIndex:wo,oldDraggableIndex:Co,newIndex:_o,newDraggableIndex:xo},e))}var fo,ho,po,mo,go,vo,bo,yo,wo,_o,Co,xo,So,Oo,ko,Eo,To,Do,Io,No,Ao,Po,Mo,Ro,Bo,Lo=!1,Fo=!1,$o=[],jo=!1,Vo=!1,zo=[],Ho=!1,Uo=[],Wo="undefined"!==typeof document,Go=kr,qo=xr||Cr?"cssFloat":"float",Yo=Wo&&!Er&&!kr&&"draggable"in document.createElement("div"),Ko=function(){if(Wo){if(Cr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Xo=function(e,t){var n=Lr(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Hr(e,0,t),i=Hr(e,1,t),a=o&&Lr(o),s=i&&Lr(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Vr(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Vr(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 c="left"===a["float"]?"left":"right";return!i||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[qo]||i&&"none"===n[qo]&&u+l>r)?"vertical":"horizontal"},Jo=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,u=n?t.width:t.height;return r===a||o===s||r+i/2===a+u/2},Zo=function(e,t){var n;return $o.some((function(r){if(!Ur(r)){var o=Vr(r),i=r[to].options.emptyInsertThreshold,a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;return i&&a&&s?n=r:void 0}})),n},Qo=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var u=(n?r:o).options.group.name;return!0===e||"string"===typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},r=e.group;r&&"object"==pr(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ei=function(){!Ko&&po&&Lr(po,"display","none")},ti=function(){!Ko&&po&&Lr(po,"display","")};Wo&&document.addEventListener("click",(function(e){if(Fo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Fo=!1,!1}),!0);var ni=function(e){if(fo){e=e.touches?e.touches[0]:e;var t=Zo(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[to]._onDragOver(n)}}},ri=function(e){fo&&fo.parentNode[to]._isOutsideThisEl(e.target)};function oi(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=gr({},t),e[to]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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!==oi.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in so.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Qo(t),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Yo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Dr(e,"pointerdown",this._onTapStart):(Dr(e,"mousedown",this._onTapStart),Dr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Dr(e,"dragover",this),Dr(e,"dragenter",this)),$o.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),gr(this,no())}function ii(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ai(e,t,n,r,o,i,a,s){var u,l,c=e[to],f=c.options.onMove;return!window.CustomEvent||Cr||xr?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=i||Vr(t),u.willInsertAfter=s,u.originalEvent=a,e.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function si(e){e.draggable=!1}function ui(){Ho=!1}function li(e,t,n){var r=Vr(Ur(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function ci(e,t,n,r,o,i,a,s){var u=r?e.clientY:e.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&Ro<l*o){if(!jo&&(1===Mo?u>c+l*i/2:u<f-l*i/2)&&(jo=!0),jo)d=!0;else if(1===Mo?u<c+Ro:u>f-Ro)return-Mo}else if(u>c+l*(1-o)/2&&u<f-l*(1-o)/2)return fi(t);return d=d||a,d&&(u<c+l*i/2||u>f-l*i/2)?u>c+l/2?1:-1:0}function fi(e){return Wr(fo)<Wr(e)?1:-1}function di(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function hi(e){Uo.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Uo.push(r)}}function pi(e){return setTimeout(e,0)}function mi(e){return clearTimeout(e)}oi.prototype={constructor:oi,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Po=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,fo):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(hi(n),!fo&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(s=Pr(s,r.draggable,n,!1),(!s||!s.animated)&&vo!==s)){if(wo=Wr(s),Co=Wr(s,r.draggable),"function"===typeof l){if(l.call(this,e,s,this))return co({sortable:t,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),lo("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=Pr(u,r.trim(),n,!1),r)return co({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),lo("filter",t,{evt:e}),!0})),l))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Pr(u,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!fo&&n.parentNode===i){var u=Vr(n);if(mo=i,fo=n,ho=fo.parentNode,go=fo.nextSibling,vo=n,So=a.group,oi.dragged=fo,ko={target:fo,clientX:(t||e).clientX,clientY:(t||e).clientY},Io=ko.clientX-u.left,No=ko.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,fo.style["will-change"]="all",r=function(){lo("delayEnded",o,{evt:e}),oi.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Sr&&o.nativeDraggable&&(fo.draggable=!0),o._triggerDragStart(e,t),co({sortable:o,name:"choose",originalEvent:e}),Br(fo,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){$r(fo,e.trim(),si)})),Dr(s,"dragover",ni),Dr(s,"mousemove",ni),Dr(s,"touchmove",ni),Dr(s,"mouseup",o._onDrop),Dr(s,"touchend",o._onDrop),Dr(s,"touchcancel",o._onDrop),Sr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,fo.draggable=!0),lo("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(xr||Cr))r();else{if(oi.eventCanceled)return void this._onDrop();Dr(s,"mouseup",o._disableDelayedDrag),Dr(s,"touchend",o._disableDelayedDrag),Dr(s,"touchcancel",o._disableDelayedDrag),Dr(s,"mousemove",o._delayedDragTouchMoveHandler),Dr(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Dr(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){fo&&si(fo),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ir(e,"mouseup",this._disableDelayedDrag),Ir(e,"touchend",this._disableDelayedDrag),Ir(e,"touchcancel",this._disableDelayedDrag),Ir(e,"mousemove",this._delayedDragTouchMoveHandler),Ir(e,"touchmove",this._delayedDragTouchMoveHandler),Ir(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Dr(document,"pointermove",this._onTouchMove):Dr(document,t?"touchmove":"mousemove",this._onTouchMove):(Dr(fo,"dragend",this),Dr(mo,"dragstart",this._onDragStart));try{document.selection?pi((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Lo=!1,mo&&fo){lo("dragStarted",this,{evt:t}),this.nativeDraggable&&Dr(document,"dragover",ri);var n=this.options;!e&&Br(fo,n.dragClass,!1),Br(fo,n.ghostClass,!0),oi.active=this,e&&this._appendGhost(),co({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Eo){this._lastX=Eo.clientX,this._lastY=Eo.clientY,ei();var e=document.elementFromPoint(Eo.clientX,Eo.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Eo.clientX,Eo.clientY),e===t)break;t=e}if(fo.parentNode[to]._isOutsideThisEl(e),t)do{if(t[to]){var n=void 0;if(n=t[to]._onDragOver({clientX:Eo.clientX,clientY:Eo.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ti()}},_onTouchMove:function(e){if(ko){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=po&&Fr(po,!0),a=po&&i&&i.a,s=po&&i&&i.d,u=Go&&Bo&&Gr(Bo),l=(o.clientX-ko.clientX+r.x)/(a||1)+(u?u[0]-zo[0]:0)/(a||1),c=(o.clientY-ko.clientY+r.y)/(s||1)+(u?u[1]-zo[1]:0)/(s||1);if(!oi.active&&!Lo){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(po){i?(i.e+=l-(To||0),i.f+=c-(Do||0)):i={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Lr(po,"webkitTransform",f),Lr(po,"mozTransform",f),Lr(po,"msTransform",f),Lr(po,"transform",f),To=l,Do=c,Eo=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!po){var e=this.options.fallbackOnBody?document.body:mo,t=Vr(fo,!0,Go,!0,e),n=this.options;if(Go){Bo=e;while("static"===Lr(Bo,"position")&&"none"===Lr(Bo,"transform")&&Bo!==document)Bo=Bo.parentNode;Bo!==document.body&&Bo!==document.documentElement?(Bo===document&&(Bo=jr()),t.top+=Bo.scrollTop,t.left+=Bo.scrollLeft):Bo=jr(),zo=Gr(Bo)}po=fo.cloneNode(!0),Br(po,n.ghostClass,!1),Br(po,n.fallbackClass,!0),Br(po,n.dragClass,!0),Lr(po,"transition",""),Lr(po,"transform",""),Lr(po,"box-sizing","border-box"),Lr(po,"margin",0),Lr(po,"top",t.top),Lr(po,"left",t.left),Lr(po,"width",t.width),Lr(po,"height",t.height),Lr(po,"opacity","0.8"),Lr(po,"position",Go?"absolute":"fixed"),Lr(po,"zIndex","100000"),Lr(po,"pointerEvents","none"),oi.ghost=po,e.appendChild(po),Lr(po,"transform-origin",Io/parseInt(po.style.width)*100+"% "+No/parseInt(po.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;lo("dragStart",this,{evt:e}),oi.eventCanceled?this._onDrop():(lo("setupClone",this),oi.eventCanceled||(bo=eo(fo),bo.draggable=!1,bo.style["will-change"]="",this._hideClone(),Br(bo,this.options.chosenClass,!1),oi.clone=bo),n.cloneId=pi((function(){lo("clone",n),oi.eventCanceled||(n.options.removeCloneOnHide||mo.insertBefore(bo,fo),n._hideClone(),co({sortable:n,name:"clone"}))})),!t&&Br(fo,o.dragClass,!0),t?(Fo=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ir(document,"mouseup",n._onDrop),Ir(document,"touchend",n._onDrop),Ir(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,fo)),Dr(document,"drop",n),Lr(fo,"transform","translateZ(0)")),Lo=!0,n._dragStartId=pi(n._dragStarted.bind(n,t,e)),Dr(document,"selectstart",n),Ao=!0,Or&&Lr(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,s=this.options,u=s.group,l=oi.active,c=So===u,f=s.sort,d=Oo||l,h=this,p=!1;if(!Ho){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Pr(a,s.draggable,i,!0),T("dragOver"),oi.eventCanceled)return p;if(fo.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return I(!1);if(Fo=!1,l&&!s.disabled&&(c?f||(r=!mo.contains(fo)):Oo===this||(this.lastPutMode=So.checkPull(this,l,fo,e))&&u.checkPut(this,l,fo,e))){if(o="vertical"===this._getDirection(e,a),t=Vr(fo),T("dragOverValid"),oi.eventCanceled)return p;if(r)return ho=mo,D(),this._hideClone(),T("revert"),oi.eventCanceled||(go?mo.insertBefore(fo,go):mo.appendChild(fo)),I(!0);var m=Ur(i,s.draggable);if(!m||li(e,o,this)&&!m.animated){if(m===fo)return I(!1);if(m&&i===e.target&&(a=m),a&&(n=Vr(a)),!1!==ai(mo,i,fo,t,a,n,e,!!a))return D(),i.appendChild(fo),ho=i,N(),I(!0)}else if(a.parentNode===i){n=Vr(a);var g,v,b=0,y=fo.parentNode!==i,w=!Jo(fo.animated&&fo.toRect||t,a.animated&&a.toRect||n,o),_=o?"top":"left",C=zr(a,"top","top")||zr(fo,"top","top"),x=C?C.scrollTop:void 0;if(Po!==a&&(g=n[_],jo=!1,Vo=!w&&s.invertSwap||y),b=ci(e,a,n,o,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Vo,Po===a),0!==b){var S=Wr(fo);do{S-=b,v=ho.children[S]}while(v&&("none"===Lr(v,"display")||v===po))}if(0===b||v===a)return I(!1);Po=a,Mo=b;var O=a.nextElementSibling,k=!1;k=1===b;var E=ai(mo,i,fo,t,a,n,e,k);if(!1!==E)return 1!==E&&-1!==E||(k=1===E),Ho=!0,setTimeout(ui,30),D(),k&&!O?i.appendChild(fo):a.parentNode.insertBefore(fo,k?O:a),C&&Qr(C,0,x-C.scrollTop),ho=fo.parentNode,void 0===g||Vo||(Ro=Math.abs(g-Vr(a)[_])),N(),I(!0)}if(i.contains(fo))return I(!1)}return!1}function T(s,u){lo(s,h,vr({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:a,completed:I,onMove:function(n,r){return ai(mo,i,fo,t,n,Vr(n),e,r)},changed:N},u))}function D(){T("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function I(t){return T("dragOverCompleted",{insertion:t}),t&&(c?l._hideClone():l._showClone(h),h!==d&&(Br(fo,Oo?Oo.options.ghostClass:l.options.ghostClass,!1),Br(fo,s.ghostClass,!0)),Oo!==h&&h!==oi.active?Oo=h:h===oi.active&&Oo&&(Oo=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){T("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===fo&&!fo.animated||a===i&&!a.animated)&&(Po=null),s.dragoverBubble||e.rootEl||a===document||(fo.parentNode[to]._isOutsideThisEl(e.target),!t&&ni(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function N(){_o=Wr(fo),xo=Wr(fo,s.draggable),co({sortable:h,name:"change",toEl:i,newIndex:_o,newDraggableIndex:xo,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ir(document,"mousemove",this._onTouchMove),Ir(document,"touchmove",this._onTouchMove),Ir(document,"pointermove",this._onTouchMove),Ir(document,"dragover",ni),Ir(document,"mousemove",ni),Ir(document,"touchmove",ni)},_offUpEvents:function(){var e=this.el.ownerDocument;Ir(e,"mouseup",this._onDrop),Ir(e,"touchend",this._onDrop),Ir(e,"pointerup",this._onDrop),Ir(e,"touchcancel",this._onDrop),Ir(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;_o=Wr(fo),xo=Wr(fo,n.draggable),lo("drop",this,{evt:e}),ho=fo&&fo.parentNode,_o=Wr(fo),xo=Wr(fo,n.draggable),oi.eventCanceled||(Lo=!1,Vo=!1,jo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mi(this.cloneId),mi(this._dragStartId),this.nativeDraggable&&(Ir(document,"drop",this),Ir(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Or&&Lr(document.body,"user-select",""),Lr(fo,"transform",""),e&&(Ao&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),po&&po.parentNode&&po.parentNode.removeChild(po),(mo===ho||Oo&&"clone"!==Oo.lastPutMode)&&bo&&bo.parentNode&&bo.parentNode.removeChild(bo),fo&&(this.nativeDraggable&&Ir(fo,"dragend",this),si(fo),fo.style["will-change"]="",Ao&&!Lo&&Br(fo,Oo?Oo.options.ghostClass:this.options.ghostClass,!1),Br(fo,this.options.chosenClass,!1),co({sortable:this,name:"unchoose",toEl:ho,newIndex:null,newDraggableIndex:null,originalEvent:e}),mo!==ho?(_o>=0&&(co({rootEl:ho,name:"add",toEl:ho,fromEl:mo,originalEvent:e}),co({sortable:this,name:"remove",toEl:ho,originalEvent:e}),co({rootEl:ho,name:"sort",toEl:ho,fromEl:mo,originalEvent:e}),co({sortable:this,name:"sort",toEl:ho,originalEvent:e})),Oo&&Oo.save()):_o!==wo&&_o>=0&&(co({sortable:this,name:"update",toEl:ho,originalEvent:e}),co({sortable:this,name:"sort",toEl:ho,originalEvent:e})),oi.active&&(null!=_o&&-1!==_o||(_o=wo,xo=Co),co({sortable:this,name:"end",toEl:ho,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){lo("nulling",this),mo=fo=ho=po=go=bo=vo=yo=ko=Eo=Ao=_o=xo=wo=Co=Po=Mo=Oo=So=oi.dragged=oi.ghost=oi.clone=oi.active=null,Uo.forEach((function(e){e.checked=!0})),Uo.length=To=Do=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":fo&&(this._onDragOver(e),ii(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)e=n[r],Pr(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||di(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var o=n.children[r];Pr(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Pr(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=so.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Qo(n)},destroy:function(){lo("destroy",this);var e=this.el;e[to]=null,Ir(e,"mousedown",this._onTapStart),Ir(e,"touchstart",this._onTapStart),Ir(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ir(e,"dragover",this),Ir(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),$o.splice($o.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!yo){if(lo("hideClone",this),oi.eventCanceled)return;Lr(bo,"display","none"),this.options.removeCloneOnHide&&bo.parentNode&&bo.parentNode.removeChild(bo),yo=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(yo){if(lo("showClone",this),oi.eventCanceled)return;mo.contains(fo)&&!this.options.group.revertClone?mo.insertBefore(bo,fo):go?mo.insertBefore(bo,go):mo.appendChild(bo),this.options.group.revertClone&&this.animate(fo,bo),Lr(bo,"display",""),yo=!1}}else this._hideClone()}},Wo&&Dr(document,"touchmove",(function(e){(oi.active||Lo)&&e.cancelable&&e.preventDefault()})),oi.utils={on:Dr,off:Ir,css:Lr,find:$r,is:function(e,t){return!!Pr(e,t,e,!1)},extend:Kr,throttle:Jr,closest:Pr,toggleClass:Br,clone:eo,index:Wr,nextTick:pi,cancelNextTick:mi,detectDirection:Xo,getChild:Hr},oi.get=function(e){return e[to]},oi.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(oi.utils=vr({},oi.utils,e.utils)),so.mount(e)}))},oi.create=function(e,t){return new oi(e,t)},oi.version=wr;var gi,vi,bi,yi,wi,_i,Ci=[],xi=!1;function Si(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Dr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Dr(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Dr(document,"touchmove",this._handleFallbackAutoScroll):Dr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ir(document,"dragover",this._handleAutoScroll):(Ir(document,"pointermove",this._handleFallbackAutoScroll),Ir(document,"touchmove",this._handleFallbackAutoScroll),Ir(document,"mousemove",this._handleFallbackAutoScroll)),ki(),Oi(),Zr()},nulling:function(){wi=vi=gi=xi=_i=bi=yi=null,Ci.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(wi=e,t||xr||Cr||Or){Ei(e,this.options,i,t);var a=Yr(i,!0);!xi||_i&&r===bi&&o===yi||(_i&&ki(),_i=setInterval((function(){var i=Yr(document.elementFromPoint(r,o),!0);i!==a&&(a=i,Oi()),Ei(e,n.options,i,t)}),10),bi=r,yi=o)}else{if(!this.options.bubbleScroll||Yr(i,!0)===jr())return void Oi();Ei(e,this.options,Yr(i,!1),!1)}}},gr(e,{pluginName:"scroll",initializeByDefault:!0})}function Oi(){Ci.forEach((function(e){clearInterval(e.pid)})),Ci=[]}function ki(){clearInterval(_i)}var Ei=Jr((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,u=t.scrollSpeed,l=jr(),c=!1;vi!==n&&(vi=n,Oi(),gi=t.scroll,o=t.scrollFn,!0===gi&&(gi=Yr(n,!0)));var f=0,d=gi;do{var h=d,p=Vr(h),m=p.top,g=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,_=void 0,C=void 0,x=h.scrollWidth,S=h.scrollHeight,O=Lr(h),k=h.scrollLeft,E=h.scrollTop;h===l?(_=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),C=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(_=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX),C=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY));var T=_&&(Math.abs(b-i)<=s&&k+y<x)-(Math.abs(v-i)<=s&&!!k),D=C&&(Math.abs(g-a)<=s&&E+w<S)-(Math.abs(m-a)<=s&&!!E);if(!Ci[f])for(var I=0;I<=f;I++)Ci[I]||(Ci[I]={});Ci[f].vx==T&&Ci[f].vy==D&&Ci[f].el===h||(Ci[f].el=h,Ci[f].vx=T,Ci[f].vy=D,clearInterval(Ci[f].pid),0==T&&0==D||(c=!0,Ci[f].pid=setInterval(function(){r&&0===this.layer&&oi.active._onTouchMove(wi);var t=Ci[this.layer].vy?Ci[this.layer].vy*u:0,n=Ci[this.layer].vx?Ci[this.layer].vx*u:0;"function"===typeof o&&"continue"!==o.call(oi.dragged.parentNode[to],n,t,e,wi,Ci[this.layer].el)||Qr(Ci[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=Yr(d,!1)));xi=c}}),30),Ti=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var u=n||o;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(l.clientX,l.clientY);s(),u&&!u.el.contains(c)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Di(){}function Ii(){}Di.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Hr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ti},gr(Di,{pluginName:"revertOnSpill"}),Ii.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Ti},gr(Ii,{pluginName:"removeOnSpill"});oi.mount(new Si),oi.mount(Ii,Di);var Ni=oi,Ai={name:"ColumnsConfig",props:{listCode:{type:String,default:""}},data:function(){return{columns:[],hasLoaded:!1}},created:function(){},mounted:function(){var e=this;this.listAllColumns().then((function(t){e.columns=t,e.hasLoaded=!0,e.$nextTick((function(){e.dragColumnDisplayOrder()}))}))},methods:{isDisabledShow:function(e){return e.prop&&("$index"===e.prop||"$selection"===e.prop)||!0===e.custom||e.showType&&"false"!==e.showType&&!1===e.show},isDisabledExport:function(e){return e.prop&&("$index"===e.prop||"$selection"===e.prop)||!0===e.custom||e.exportType&&"false"!==e.exportType&&!1===e.exportable},changeShow:function(e,t){e.show=void 0===t||"false"!==t},changeExport:function(e,t){e.exportable=void 0===t||"false"!==t},saveConfig:function(){var e=this,t={settingColumns:this.columns,listCode:this.listCode};this.$http.post(O.a.prototype.baseAPI+"/component/super-grids/setting-columns",t).then((function(t){e.$message({type:"success",message:e.$t("imatrixUIMessage.saveSuccessfully"),showClose:!0}),e.$emit("close",!0)}))},resetConfig:function(){var e=this;this.$confirm(this.$t("superGrid.whetherToConfirmReset"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure"),cancelButtonText:this.$t("imatrixUIPublicModel.cancel"),type:"warning"}).then((function(){var t=O.a.prototype.baseAPI+"/component/super-grids/reset-columns/"+e.listCode;e.$http.delete(t).then((function(){e.$message({type:"success",message:e.$t("superGrid.resetSuccessful"),showClose:!0}),e.listAllColumns().then((function(t){e.columns=t,e.$emit("reset",!0)}))}))}))},listAllColumns:function(){var e=this;return new Promise((function(t,n){var r=O.a.prototype.baseAPI+"/component/super-grids/all-list-columns/"+e.listCode,o=ze.get(e.listCode),i={},a=o.isSql;e.isDragColumn=o.colSetting.isDragColumn,"undefined"!==typeof a&&(i.isSql=a+""),e.$http.post(r,i).then((function(e){t(e)})).catch((function(e){n(e)}))}))},clearDisplayOrder:function(e){e.displayOrderType="default"},clearWidth:function(e){e.widthType="default"},indexAfterTheChangeUpdateDisplayOrder:function(e,t,n,r){if(e&&e.length>0&&null!=t&&void 0!==t&&-1!==t&&null!==n&&void 0!==n&&-1!==n&&r&&""!==r){var o=e[n];if(o.displayOrderType="custom",n>t){var i=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var u=a[s];u.displayOrderType="custom",u[r]=0===s?o[r]:a[s-1][r]}o[r]=i}else{var l=e[n+1][r],c=e.slice(n+1,t+1);if(c&&c.length>0)for(var f=0;f<c.length;f++){var d=c[f];d.displayOrderType="custom",f===c.length-1?d[r]=o[r]:d[r]=c[f+1][r]}o[r]=l}}},dragColumnDisplayOrder:function(){var e=this;if(this.isDragColumn)return new Promise((function(t,n){var r=document.querySelector(".custom-config-elTable .el-table__body-wrapper tbody");if(null!=r){var o=e;Ni.create(r,{onEnd:function(e){var t=e.newIndex,n=e.oldIndex;if(null!==n&&void 0!==n&&-1!==n&&null!==t&&void 0!==t&&-1!==t)if(n>t){if(o.columns&&o.columns.length>0){for(var r=o.columns[n],i=n-1;i>=t;i--){var a=o.columns[i];a.displayOrderType="custom",o.columns[i+1]=a}o.columns[t]=r}}else if(o.columns&&o.columns.length>0){for(var s=o.columns[n],u=n+1;u<=t;u++){var l=o.columns[u];l.displayOrderType="custom",o.columns[u-1]=l}o.columns[t]=s}console.log("config拖动字段",o.columns),console.log("config拖动字段oldIndex",n),console.log("config拖动字段newIndex",t),o.hasLoaded=!1,setTimeout((function(){o.hasLoaded=!0,o.$nextTick((function(){o.indexAfterTheChangeUpdateDisplayOrder(o.columns,n,t,"displayOrder"),o.dragColumnDisplayOrder()}))}),100)}})}}))}}},Pi=Ai,Mi=f(Pi,dr,hr,!1,null,null,null),Ri=Mi.exports,Bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.searchConditions.length>0?n("search-condition-list",{ref:"searchConditionList",attrs:{"search-type":e.searchType,"search-conditions":e.searchConditions},on:{"remove-condition":e.removeCondition,"select-condition":e.selectCondition}}):e._e(),"normal"===e.searchType?n("search-form-ordinarySearch",{ref:"searchFormOrdinarySearch",attrs:{"searchable-columns":e.searchableColumns,"search-form":e.searchForm,"field-num":e.fieldNum,"label-width":e.labelWidth,query:e.query,code:e.code,"row-num":e.rowNum,"span-num":e.spanNum,rules:e.rules,"is-sql":e.isSql},on:{"submit-form":function(t){return e.submitForm("searchForm")},"reset-form":function(t){return e.resetForm("searchForm")},"save-condition":function(t){return e.saveCondition()},"open-fold":e.openFold}}):e._e(),"advanced"===e.searchType?n("search-form-advancedQuery",{ref:"searchFormAdvancedQuery",staticStyle:{"padding-bottom":"10px"},attrs:{code:e.code,"searchable-columns":e.advancedQueryColumns,"search-form-list":e.searchFormList,"prop-map":e.propMap,"is-sql":e.isSql},on:{resetForm:e.resetSearchFormList}}):e._e(),"advanced"===e.searchType?n("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px","text-align":"center"}},[n("el-button",{attrs:{loading:e.loading,type:"primary",size:"mini"},on:{click:function(t){return e.submitForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,size:"mini"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),n("el-button",{attrs:{size:"mini"},on:{click:e.saveCondition}},[e._v("\n "+e._s(e.$t("superGrid.saveCondition"))+"\n ")]),null!==e.advancedQuery&&void 0!==e.advancedQuery&&!0===e.advancedQuery&&null!==e.normalQuery&&void 0!==e.normalQuery&&!0===e.normalQuery?n("span",{staticStyle:{"margin-left":"10px"}},["advanced"===e.searchType?n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.searchType="normal"}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.switchToNormalQuery"))+"\n ")]):e._e(),"normal"===e.searchType?n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.searchType="advanced"}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.switchToAdvancedQuery"))+"\n ")]):e._e()],1):e._e()],1):e._e(),e.isShowSearchCondition?n("search-condition-input",{on:{close:e.saveConditionValue}}):e._e()],1)},Li=[],Fi=(n("4f7f"),{packageSearchParam:function(){var e=this;if("normal"!==this.searchType&&this.searchType&&null!==this.searchType&&void 0!==this.searchType&&""!==this.searchType){var t=[];return this.searchFormList.forEach((function(n){var r={};r=n;var o=r.orgProp,i="__";if(o&&o.indexOf(i)>0&&(o=o.replace(i,".")),r.propName=o,r.operator=e.getOperator(n),r.matchingType=n.queryMatching,"DATE"===r.dataType||"TIME"===r.dataType){var a=r.value;null!==a&&2===a.length&&null!==a[0]&&null!==a[1]&&(r.startValue=a[0],r.endValue=a[1])}else if("INTEGER"===r.dataType||"LONG"===r.dataType){var s=r.value;s&&(!Array.isArray(s)||s.length<2||null===s[0]&&null===s[1]?Array.isArray(s)?s.length<2?r.propValue=s[0]:null===s[0]?r.propValue=s[1]:null===s[1]&&(r.propValue=s[0]):r.propValue=s:(r.startValue=s[0],r.endValue=s[1]))}else if(r.componentType&&-1!==r.componentType.indexOf("Tree")&&-1===r.componentType.indexOf("single")){var u=e.isUserTree(r.componentType),l=r.value;if(l&&""!==l){var c=[],f=l;f=Array.isArray(l)?l:l.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(u,t);void 0!==n&&null!==n&&c.push(n)})),e.packageValueWithArray(c,t,n)}}else if(r.componentType&&-1!==r.componentType.indexOf("Tree")){var d=e.isUserTree(r.componentType),h=r.value;h=e.getUserName(d,h),e.packageValueWithArray(h,t,n)}else if("multiselect"===r.componentType){var p=r.value;e.packageValueWithArray(p,t,n)}else{var m=r.value;e.packageValueWithArray(m,t,n)}})),t}var n=[];return this.searchableColumns.forEach((function(t){var r={leftBracket:"",rightBracket:"",joinSign:"and"},o=t.orgProp,i="__";o&&o.indexOf(i)>0&&(o=o.replace(i,".")),r.propName=o,r.enumName=t.enumName,r.operator=e.getOperator(t),r.dataType=t.dataType,r.matchingType=t.queryMatching,r.formatter=t.formatter?JSON.parse(JSON.stringify(t.formatter)):t.formatter;var a=e.getFormItemValue(t.prop);if("DATE"===t.dataType||"TIME"===t.dataType){if(null!==a&&2===a.length&&null!==a[0]&&null!==a[1]){var s=e.getDateTimeSearchFormatter(t,t.dataType,t.formatter);s&&(r.formatter?r.formatter.options||(r.formatter.options={}):(r.formatter={},r.formatter.options={}),r.formatter.options.format=s),r.startValue=e.getDateTimeMillsByDateStr(a[0],s),r.endValue=e.getDateTimeMillsByDateStr(a[1],s),n.push(r)}}else if("INTEGER"!==t.dataType&&"LONG"!==t.dataType&&"DOUBLE"!==t.dataType||!Array.isArray(a))if(t.componentType&&-1!==t.componentType.indexOf("Tree")&&-1===t.componentType.indexOf("single")){var u=e.isUserTree(t.componentType),l=e.getFormItemValue(t.prop);if(l&&""!==l){var c=[],f=l;f=Array.isArray(l)?l:l.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(u,t);void 0!==n&&null!==n&&c.push(n)})),e.packageValueWithArray(c,n,r)}}else if(t.componentType&&-1!==t.componentType.indexOf("Tree")){var d=e.isUserTree(t.componentType),h=e.getFormItemValue(t.prop);h=e.getUserName(d,h),e.packageValueWithArray(h,n,r)}else if("multiselect"===t.componentType){var p=e.getFormItemValue(t.prop);e.packageValueWithArray(p,n,r)}else{var m=e.getFormItemValue(t.prop);e.packageValueWithArray(m,n,r)}else a&&("yearRange"===t.componentType?(a[0]||a[1])&&(r.startValue=a[0],r.endValue=a[1],a[0]&&!a[1]?(r.startValue=a[0],r.endValue=9999):!a[0]&&a[1]&&(r.startValue=0,r.endValue=a[1]),n.push(r)):!Array.isArray(a)||a.length<2||null===a[0]&&null===a[1]?Array.isArray(a)?a.length<2?(r.propValue=a[0],n.push(r)):null===a[0]?(r.propValue=a[1],n.push(r)):null===a[1]&&(r.propValue=a[0],n.push(r)):(r.propValue=a,n.push(r)):(r.startValue=a[0],r.endValue=a[1],n.push(r)))})),n},getDateTimeSearchFormatter:function(e,t,n){var r,o="yyyy-MM-dd HH:mm:ss",i="yyyy-m-d";if("dateSection"===e.componentType?r=i:"dateTimePicker"===e.componentType?r=o:"DATE"!==e.dataType&&"date"!==e.componentType||(r=i),!r&&n){var a=n.options;a&&null!=a&&(r=a.format)}return r||("DATE"===t?r="yyyy-m-d":"TIME"===t&&(r="yyyy-m-d hh:mm:ss")),r},getDateTimeMillsByDateStr:function(e,t){return"string"===typeof e&&t&&(t=t.toLowerCase(),e=t.indexOf("h")>0&&t.indexOf("m")>0&&t.indexOf("s")>0?new Date(e).getTime():new Date(e+" 00:00:00").getTime()),e},isUserTree:function(e){return e.indexOf("DeptManTree")>0||e.indexOf("WgManTree")>0},getUserName:function(e,t){return e&&void 0!==t&&null!==t&&t.indexOf("(")>0&&t.indexOf(")")>0&&(t=t.substring(0,t.indexOf("("))),t},getOperator:function(e){return("TEXT"===e.dataType||"CLOB"===e.dataType)&&e.fuzzy&&(!e.componentType||e.componentType&&("select"!==e.componentType&&"multiselect"!==e.componentType||"multiselect"===e.componentType&&void 0!==e.ifMultiData&&!0===e.ifMultiData))?"CONTAIN":Array.isArray(this.getFormItemValue(e.prop))&&("INTEGER"===e.dataType||"LONG"===e.dataType||"DOUBLE"===e.dataType)?"BETWEEN":"EQ"},getFormItemValue:function(e,t){if(e.indexOf(".")>0){var n=this.getParentObject(e);return null!=t&&void 0!==t?n[e.substring(e.lastIndexOf(".")+1)][t]:n[e.substring(e.lastIndexOf(".")+1)]}return null!=t&&void 0!==t?this.searchForm[e][t]:this.searchForm[e]},getParentObject:function(e){var t=e.split(".");if(1===t.length)return this.searchForm;for(var n,r=0;r<t.length-1;r++)n=this.searchForm[t[r]];return n},packageValueWithArray:function(e,t,n){if(e&&Array.isArray(e)){var r=e,o=0;r.forEach((function(e){var i=Object.assign({},n);i.joinSign="or",0===o&&(i.leftBracket="1"),o===r.length-1&&(i.rightBracket="1",i.joinSign="and"),i.propValue=e,void 0!==e&&null!==e&&t.push(i),o++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))},saveSearchCondition:function(e){return this.$http.post(O.a.prototype.baseAPI+"/component/super-grids/search-conditions",e)},listSearchCondition:function(e){return this.$http.get(O.a.prototype.baseAPI+"/component/super-grids/search-condition-list/"+e)},removeSearchCondition:function(e){return this.$http.delete(O.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)},getSearchCondition:function(e){return this.$http.get(O.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)}}),$i=Fi,ji=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.searchableColumns.length>0?n("el-form",{ref:"searchForm",staticClass:"grid-search-form",attrs:{model:e.searchForm,rules:e.rules,"label-position":"right",size:"small"}},[n("search-form-open",{ref:"searchFormContent",attrs:{"searchable-columns":e.searchableColumns,"search-form":e.searchForm,code:e.code,"is-sql":e.isSql,"table-name":e.tableName,"is-join-table":e.isJoinTable,"span-num":e.spanNum,"field-num":e.fieldNum,"row-num":e.rowNum,"is-open":e.isOpen},on:{"submit-form":function(t){return e.$emit("submit-form")},"reset-form":function(t){return e.$emit("reset-form")},"save-condition":function(t){return e.$emit("save-condition")},"open-fold":e.openFold}})],1):e._e()],1)},Vi=[],zi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"grid-search-row"},e._l(e.rowNum,(function(t){return n("el-row",{directives:[{name:"show",rawName:"v-show",value:e.myOpen||1===t,expression:"myOpen || r === 1"}],key:t},e._l(e.fieldNum,(function(r){return n("el-col",{key:r,attrs:{xs:e.spanNum,sm:e.spanNum,md:e.spanNum,lg:e.spanNum,xl:e.spanNum}},[e.fieldNum*(t-1)+(r-1)<e.searchableColumns.length?[n("search-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.myOpen&&1===t&&r<e.fieldNum||e.myOpen,expression:"(!myOpen && r===1 && n < fieldNum) || (myOpen)"}],attrs:{"search-form":e.searchForm,column:e.searchableColumns[e.fieldNum*(t-1)+(r-1)],code:e.code,"is-sql":e.isSql,"table-name":e.tableName,"is-join-table":e.isJoinTable}})]:e._e(),!e.myOpen&&1===t&&r===e.fieldNum||e.myOpen&&!e.isButtonNewRow&&t===e.rowNum&&r===e.fieldNum?n("search-button",{ref:"searchBtnOpen",refInFor:!0,attrs:{"is-open":e.myOpen},on:{"submit-form":function(t){return e.$emit("submit-form")},"reset-form":function(t){return e.$emit("reset-form")},"save-condition":function(t){return e.$emit("save-condition")},"open-fold":e.openFold}}):e._e()],2)})),1)})),1),e.isShowNewBtnRow?n("el-row",[n("el-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[n("search-button",{ref:"searchBtnOpen",attrs:{"is-open":e.myOpen},on:{"submit-form":function(t){return e.$emit("submit-form")},"reset-form":function(t){return e.$emit("reset-form")},"save-condition":function(t){return e.$emit("save-condition")},"open-fold":e.openFold}})],1)],1):e._e()],1)},Hi=[],Ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{prop:e.column.prop,"label-width":"112px"},scopedSlots:e._u([{key:"label",fn:function(){return[e.column.searchLabel&&""!==e.column.searchLabel?n("span",{attrs:{title:e.column.searchLabel.replace(/\\n/g,"</br>")},domProps:{innerHTML:e._s(e.column.searchLabel.replace(/\\n/g,"</br>"))}}):n("span",{attrs:{title:e.column.label.replace(/\\n/g,"</br>")},domProps:{innerHTML:e._s(e.column.label.replace(/\\n/g,"</br>"))}})]},proxy:!0}])},[!0===e.customComponent(e.column)?n("span",[n(e.column.componentName,{ref:e.column.componentName,tag:"component",staticClass:"customComponent",attrs:{"select-options":e.column.valueSet,prop:e.column.prop,value:e.getFormItemValue(e.column.prop),row:e.searchForm,entity:e.searchForm},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,e.column.componentName)}}})],1):"dateSection"===e.column.componentType?n("span",[n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop,0),type:"date",placeholder:e.$t("imatrixUIMessage.startDate")},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,null,0)}}}),n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop,1),type:"date",placeholder:e.$t("imatrixUIMessage.endDate")},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,null,1)}}})],1):"yearRange"===e.column.componentType?n("year-range-picker",{attrs:{value:e.getFormItemValue(e.column.prop),type:"yearRange"},on:{change:function(t){return e.setYearRangeValue(e.column.prop,t)}}}):"dateTimePicker"===e.column.componentType?n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop),"default-time":e.getDefaultTime(e.column),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd HH:mm:ss"},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):"DATE"===e.column.dataType||"date"===e.column.componentType?n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop),type:"daterange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd"},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):"TIME"===e.column.dataType&&"timepicker"===e.column.componentType?n("el-date-picker",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"HH:mm:ss"},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):"timepicker"===e.column.componentType&&"TIME"!==e.column.dataType&&"DATE"!==e.column.dataType?n("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":"HH:mm:ss",value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.componentTypeTypeIsTree(e.column.componentType)?n("organization-input",{attrs:{value:e.getFormItemValue(e.column.prop),fields:e.getTreeFields(e.column.orgTreeSet),models:e.searchForm,multiple:e.getTreeIsMultiTree(e.column.componentType),"tree-type":e.getTreeType(e.column.componentType)},on:{setValue:e.organizationInputEvent,clear:e.clearOrganizationInputEvent}}):(e.column.componentType&&"select"===e.column.componentType||"BOOLEAN"===e.column.dataType)&&!e.isDynamicDataSourceSource(e.column)?n("el-select",{style:e.column.searchControlWidth,attrs:{clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}},e._l(e.column.valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.column.componentType&&"multiselect"===e.column.componentType&&!e.isDynamicDataSourceSource(e.column)?n("el-select",{style:e.column.searchControlWidth,attrs:{clearable:"",multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}},e._l(e.column.valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.column.componentType&&("multiselect"===e.column.componentType||"select"===e.column.componentType)&&e.isDynamicDataSourceSource(e.column)?n("dynamic-source-select",{attrs:{value:e.getFormItemValue(e.column.prop),"base-props":{multiple:"multiselect"===e.column.componentType},entity:e.searchForm,options:e.getDynamicDataSourceOptions(e.column),"table-name":e.tableName,"is-join-table":e.isJoinTable,"list-code":e.code},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.column.componentType&&"inputNumber"===e.column.componentType?n("search-form-number",{on:{setValue:e.setNumberValue}}):e.column.componentType&&"switch"===e.column.componentType?n("el-switch",{style:e.column.searchControlWidth,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.column.componentType&&"slider"===e.column.componentType?n("el-slider",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):e.column.componentType&&"rate"===e.column.componentType?n("el-rate",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):n("el-input",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitForm("searchForm")}}})],1)},Wi=[],Gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),n("span",[e._v("---")]),n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},qi=[],Yi={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data:function(){return{number1:null,number2:null}},methods:{setValue:function(){this.$emit("setValue",[this.number1,this.number2],this.r,this.n)}}},Ki=Yi,Xi=f(Ki,Gi,qi,!1,null,null,null),Ji=Xi.exports;function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ea={name:"SearchFormItem",components:{searchFormNumber:Ji},props:{column:{type:Object,default:null},code:{type:String,default:null},isSql:{type:Boolean,default:!1},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},searchForm:{type:Object,default:null}},data:function(){var e=new Set;return{customComponentNames:e,dateOne:null,dataTwo:null}},methods:Qi(Qi({},$i),{},{getDynamicDataSourceOptions:function(e){return yt(e,this.isSql)},isDynamicDataSourceSource:function(e){return wt(e)},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var o=this.getParentObject(e);null!=r&&void 0!==r?this.$set(o[e.substring(e.lastIndexOf(".")+1)],r,t):o[e.substring(e.lastIndexOf(".")+1)]=t}else null!=r&&void 0!==r?this.$set(this.searchForm[e],r,t):this.searchForm[e]=t},componentTypeTypeIsTree:function(e){if(e){if(e.indexOf("DeptManTree")>0)return!0;if(e.indexOf("DeptTree")>0)return!0;if(e.indexOf("WgManTree")>0)return!0;if(e.indexOf("WgManTree")>0)return!0}return!1},getTreeFields:function(e){if(e&&""!==e){var t=JSON.parse(e);if(t.length)return t;if(t.orgTreeSetArr)return t.orgTreeSetArr}},getTreeIsMultiTree:function(e){return!(e&&e.indexOf("single")>=0&&e.indexOf("Tree")>0)},getTreeType:function(e){if(e){if(e.indexOf("DeptManTree")>0)return"DeptUserTree";if(e.indexOf("DeptTree")>0)return"DeptTree";if(e.indexOf("WgTree")>0)return"WgTree";if(e.indexOf("WgManTree")>0)return"WgUserTree"}},organizationInputEvent:function(e,t){e&&this.$set(this.searchForm,e,t)},clearOrganizationInputEvent:function(e){e&&this.$set(this.searchForm,e,null)},customComponent:function(e){var t=ze.get(this.code);if(e.componentName&&""!==e.componentName)return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||""===e.componentName)&&t.options&&t.options.search&&t.options.search.customSearchElements){var n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;var r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),O.a.component(e.componentName,r),!0}}return!1},setNumberValue:function(e,t,n){var r=this.getFormItemValue(this.column.prop);r=e,this.setValueToModelProp(this.column.prop,r)},setYearRangeValue:function(e,t){this.$set(this.searchForm[e],0,t[0]),this.$set(this.searchForm[e],1,t[1])},getDefaultTime:function(e){if(e["valueSetOptions"]){var t=JSON.parse(e["valueSetOptions"]);return t.defaultTime?[t.defaultTime,t.defaultTime]:["00:00:00"]}return["00:00:00"]}})},ta=ea,na=f(ta,Ui,Wi,!1,null,"5d50b286",null),ra=na.exports,oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("save-condition")}}},[e._v("\n "+e._s(e.$t("superGrid.saveCondition"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,size:"small"},on:{click:e.resetForm}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("\n "+e._s(e.$t("imatrixUIMessage.search"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"text",icon:e.isMyOpen?"el-icon-caret-top":"el-icon-caret-bottom"},on:{click:e.openFold}},[e._v("\n "+e._s(e.isMyOpen?e.$t("superGrid.fold"):e.$t("superGrid.open"))+"\n ")])],1)},ia=[],aa={name:"SearchButton",props:{isOpen:{type:Boolean,default:!1}},data:function(){var e=this.isOpen;return{isMyOpen:e,loading:!1}},methods:{openFold:function(){this.isMyOpen=!this.isMyOpen,this.$emit("open-fold",this.isMyOpen)},submitForm:function(){this.loading=!0,this.$emit("submit-form")},resetForm:function(){this.loading=!0,this.$emit("reset-form")},searchComplete:function(){this.loading=!1}}},sa=aa,ua=f(sa,oa,ia,!1,null,"69b96bdc",null),la=ua.exports;function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var da={name:"SearchFormOpen",components:{SearchFormItem:ra,SearchButton:la},props:{searchableColumns:{type:Array,default:null},searchForm:{type:Object,default:null},code:{type:String,default:null},isSql:{type:Boolean,default:!1},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},spanNum:{type:Number,default:8},fieldNum:{type:Number,default:null},rowNum:{type:Number,default:null},isOpen:{type:Boolean,default:!1}},data:function(){var e=!1,t=!1;(this.searchableColumns.length%this.fieldNum===0||this.rowNum>6)&&(e=!0,t=!0),e&&!n&&(t=!1);var n=this.isOpen;return{isButtonNewRow:e,isShowNewBtnRow:t,myOpen:n}},watch:{myOpen:function(){this.isButtonNewRow&&(this.myOpen?this.isShowNewBtnRow=!0:this.isShowNewBtnRow=!1)}},methods:fa(fa({},$i),{},{openFold:function(e){this.myOpen=e,this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchBtnOpen&&(Array.isArray(this.$refs.searchBtnOpen)?this.$refs.searchBtnOpen.length>0&&this.$refs.searchBtnOpen[0].searchComplete():this.$refs.searchBtnOpen.searchComplete())}})},ha=da,pa=(n("fd77"),f(ha,zi,Hi,!1,null,"44ee7f15",null)),ma=pa.exports;function ga(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=va(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function va(e,t){if(e){if("string"===typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ba(e,t):void 0}}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _a={name:"SearchForm",components:{SearchFormOpen:ma},props:{searchableColumns:{type:Array,default:null},searchForm:{type:Object,default:null},fieldNum:{type:Number,default:null},rules:{type:Object,default:null},labelWidth:{type:String,default:null},query:{type:Object,default:null},rowNum:{type:Number,default:null},code:{type:String,default:null},isSql:{type:Boolean,default:!1},spanNum:{type:Number,default:8}},data:function(){var e,t,n=ze.get(this.code);n&&n.basicInfo&&n.basicInfo.tableName&&(e=n.basicInfo.tableName),n&&n.basicInfo&&n.basicInfo.hasJoinTable&&(t=n.basicInfo.hasJoinTable);var r=new Set;return{customComponentNames:r,dateOne:null,dataTwo:null,tableName:e,isJoinTable:t,isOpen:!1}},computed:{},watch:{},created:function(){},methods:wa(wa({},$i),{},{validateForm:function(){var e=this;return new Promise((function(t,n){e.$refs.searchForm.validate((function(e){t(e)}))}))},resetForm:function(){var e=this;if(this.customComponentNames&&this.customComponentNames.length>0){var t,n=ga(this.customComponentNames);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.$refs[r][0].resetField()}}catch(o){n.e(o)}finally{n.f()}}this.$refs.searchForm.resetFields(),this.searchableColumns.forEach((function(t){t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?dt(e.searchForm,t.prop):ft(e.searchForm,t.prop):"dateSection"===t.componentType?e.searchForm[t.prop]=[new Date,new Date]:"yearRange"===t.componentType?(e.$set(e.searchForm[t.prop],0,""),e.$set(e.searchForm[t.prop],1,"")):e.searchForm[t.prop]=null}))},openFold:function(e){this.isOpen=e,this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchFormContent&&this.$refs.searchFormContent.searchComplete()}})},Ca=_a,xa=(n("2620"),f(Ca,ji,Vi,!1,null,"f1fa8e36",null)),Sa=xa.exports,Oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.$t("superGrid.saveConditionTitle"),"close-on-click-modal":!1,"append-to-body":""},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}},scopedSlots:e._u([{key:"footer",fn:function(){return[n("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveCondition}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)]},proxy:!0}])},[n("el-form",{ref:"conditionForm",attrs:{model:e.searchCondition,size:"mini","label-position":"left","label-width":"120px"}},[n("el-form-item",{attrs:{prop:"conditionName",label:e.$t("superGrid.searchConditionName"),rules:[{required:!0,message:this.$t("superGrid.pleaseInputSearchConditionName"),trigger:"blur"}]}},[n("el-input",{attrs:{size:"mini"},model:{value:e.searchCondition.conditionName,callback:function(t){e.$set(e.searchCondition,"conditionName",t)},expression:"searchCondition.conditionName"}})],1)],1)],1)],1)},ka=[],Ea={name:"SearchConditionInput",data:function(){return{searchCondition:{conditionName:null}}},methods:{saveCondition:function(){var e=this;this.$refs["conditionForm"].validate((function(t){if(!t)return!1;e.$emit("close",e.searchCondition.conditionName)}))}}},Ta=Ea,Da=f(Ta,Oa,ka,!1,null,null,null),Ia=Da.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tabs",{attrs:{type:"card"},on:{"tab-remove":e.removeCondition,"tab-click":e.selectCondition},model:{value:e.editConditionId,callback:function(t){e.editConditionId=t},expression:"editConditionId"}},e._l(e.searchConditions,(function(t){return n("el-tab-pane",{key:t.id,attrs:{label:t.name,disabled:t.queryType!==e.pageQueryType,closable:t.queryType===e.pageQueryType,name:t.id+""}})})),1)},Aa=[],Pa={name:"SearchConditionList",components:{},props:{searchConditions:{type:Array,default:null},searchType:{type:String,default:null}},data:function(){var e="FIXED";return this.searchType&&"advanced"===this.searchType&&(e="CUSTOM"),{pageQueryType:e,editConditionId:null}},watch:{searchType:{handler:function(e,t){this.searchType=e,this.pageQueryType="FIXED",e&&"advanced"===e&&(this.pageQueryType="CUSTOM")}}},methods:{removeCondition:function(e){this.$emit("remove-condition",e)},selectCondition:function(e,t){var n=e.name;this.$emit("select-condition",n)}}},Ma=Pa,Ra=f(Ma,Na,Aa,!1,null,null,null),Ba=Ra.exports;function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $a={name:"SearchForm",components:{SearchConditionInput:Ia,SearchConditionList:Ba,searchFormOrdinarySearch:Sa},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null},isSql:{type:Boolean,default:!1},searchFormInfo:{type:Object,default:function(){return{}}}},data:function(){var e=this,t=new Set,n=ze.get(this.code),r={},o={};null!==this.searchParam&&(o=JSON.parse(JSON.stringify(this.searchParam)));var i=this.getSearchableColumns(null,null,r);void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),console.log("searchForm=",i),i.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?dt(o,t.prop):ft(o,t.prop):"dateSection"===t.componentType?o[t.prop]=[new Date,new Date]:"yearRange"===t.componentType?o[t.prop]=["",""]:o[t.prop]=null)}));var a=this.getSpanNum(),s=this.getFieldNumPerRow(),u=Math.ceil(i.length/s),l=this.query.advancedQuery,c=this.query.normalQuery;return{searchForm:o,rules:{},searchParams:[],labelWidth:n.options.search&&n.options.search.labelWidth?n.options.search.labelWidth:"80px",customComponentNames:t,componentName:"",spanNum:a,fieldNum:s,rowNum:u,loading:!1,isShowSearchCondition:!1,searchConditions:[],propMap:r,advancedQuery:l,normalQuery:c,searchFormList:[],searchType:null}},computed:{searchableColumns:function(){return this.getSearchableColumns()},advancedQueryColumns:function(){return this.getAdvancedQueryColumns()}},watch:{searchForm:{deep:!0,handler:function(e){this.$set(this.searchFormInfo,"data",e)}}},created:function(){console.log("加载查询页面",this.searchType),this.listSearchConditions(),this.normalQuery?this.searchType="normal":this.advancedQuery&&(this.searchType="advanced")},methods:Fa(Fa({},$i),{},{getFieldNumPerRow:function(){var e=ze.get(this.code);return e.options.search&&e.options.search.fieldNum?e.options.search.fieldNum:3},getSpanNum:function(){var e=this.getFieldNumPerRow();return 1===e?22:2===e?10:3===e?8:4===e?6:4},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var o=this.getParentObject(e);null!=r&&void 0!==r?this.$set(o[e.substring(e.lastIndexOf(".")+1)],r,t):o[e.substring(e.lastIndexOf(".")+1)]=t}else null!=r&&void 0!==r?this.$set(this.searchForm[e],r,t):this.searchForm[e]=t},getAdvancedQueryColumns:function(e,t,n){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(var r=0;r<e.length;r++){var o=e[r];if(n&&(n[o.prop]=o),"$index"!==o.prop&&"$selection"!==o.prop&&!o.dynamic)if(o.groupHeader)this.getSearchableColumns(o.children,t,n);else if("advanced"===o.queryType&&!o.custom&&""!==o.prop){if("undefined"!==typeof o.componentType&&""!==o.componentType||(o.componentType="input"),o.querySetting&&""!==o.querySetting){var i=JSON.parse(o.querySetting);i.width&&(o.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(o.searchLabelWidth=i.labelWidth+"px"),i.label&&(o.searchLabel=i.label)}o.componentType&&o.componentType.indexOf("custom:")>=0?(o.componentName=o.componentType.substring(o.componentType.indexOf(":")+1),this.customComponentNames.add(o.componentName)):o.componentName="",t.push(o)}}return t},getSearchableColumns:function(e,t,n){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(var r=0;r<e.length;r++){var o=e[r];if(n&&(n[o.prop]=o),"$index"!==o.prop&&"$selection"!==o.prop&&!o.dynamic)if(o.groupHeader)this.getSearchableColumns(o.children,t,n);else if("normal"===o.queryType&&!o.custom&&""!==o.prop){if("undefined"!==typeof o.componentType&&""!==o.componentType||(o.componentType="input"),o.querySetting&&""!==o.querySetting){var i=JSON.parse(o.querySetting);i.width&&(o.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(o.searchLabelWidth=i.labelWidth+"px"),i.label&&(o.searchLabel=i.label)}o.componentType&&o.componentType.indexOf("custom:")>=0?(o.componentName=o.componentType.substring(o.componentType.indexOf(":")+1),this.customComponentNames.add(o.componentName)):o.componentName="",t.push(o)}}return t},customComponent:function(e){var t=ze.get(this.code);if(e.componentName&&""!==e.componentName)return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||""===e.componentName)&&t.options&&t.options.search&&t.options.search.customSearchElements){var n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;var r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),O.a.component(e.componentName,r),!0}}return!1},submitForm:function(){var e=this;"normal"===this.searchType?this.$refs.searchFormOrdinarySearch.validateForm().then((function(t){if(!t)return!1;e.searchParams=e.packageSearchParam(),e.$emit("search",e.searchParams)})):"advanced"===this.searchType&&this.$refs.searchFormAdvancedQuery.validateForm().then((function(t){if(!t)return!1;e.loading=!0,e.searchParams=e.packageSearchParam(),e.$emit("search",e.searchParams)}))},resetForm:function(){this.$refs.searchConditionList&&(this.$refs.searchConditionList.editConditionId=null),"normal"===this.searchType?this.$refs.searchFormOrdinarySearch.resetForm():"advanced"===this.searchType&&this.$refs.searchFormAdvancedQuery.resetForm(),this.$emit("reset")},setNumberValue:function(e,t,n){var r=this.getFormItemValue(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop);r=e,this.setValueToModelProp(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop,r)},listSearchConditions:function(){var e=this;return new Promise((function(t,n){e.listSearchCondition(e.code).then((function(n){e.searchConditions=n,t(n)})).catch((function(e){n(e)}))}))},saveCondition:function(){var e=this.packageSearchParam();e&&0!==e.length?this.isShowSearchCondition=!0:this.$message({type:"warning",message:this.$t("imatrixUIMessage.pleaseInputSearchCondition"),showClose:!0})},saveConditionValue:function(e){var t=this;if(e){var n;n="normal"===this.searchType||""===this.searchType||null===this.searchType||void 0===this.searchType?this.packageSearchParam():this.searchFormList;var r={listCode:this.code,queryType:"normal"===this.searchType||""===this.searchType||null===this.searchType||void 0===this.searchType?"FIXED":"CUSTOM",name:e,queryCondition:JSON.stringify(n)};this.saveSearchCondition(r).then((function(e){t.$message({type:"success",message:t.$t("imatrixUIMessage.saveSuccessfully"),showClose:!0}),t.isShowSearchCondition=!1,t.listSearchConditions().then((function(){t.$refs.searchConditionList&&(t.$refs.searchConditionList.editConditionId=e.id+""),t.selectCondition(e.id)}))}))}this.isShowSearchCondition=!1},removeCondition:function(e){var t=this;e&&this.$confirm(this.$t("imatrixUIMessage.whetherToConfirmDeletion"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure"),cancelButtonText:this.$t("imatrixUIPublicModel.cancel"),type:"warning"}).then((function(){t.removeSearchCondition(e).then((function(){t.$message({type:"success",message:t.$t("superGrid.deleteSuccessful"),showClose:!0}),t.listSearchConditions()}))}))},selectCondition:function(e){var t=this;e&&this.getSearchCondition(e).then((function(e){if(e){var n=e.queryCondition;if(n)if("normal"===t.searchType||""===t.searchType||null===t.searchType||void 0===t.searchType){var r=JSON.parse(n),o=t.packageSearchForm(r);o&&(t.searchForm=o),t.loading=!0,t.$emit("search",r)}else t.searchFormList=JSON.parse(n),t.loading=!0,t.$emit("search",t.packageSearchParam())}}))},packageSearchForm:function(e){if(e&&e.length>0){var t={},n=[];return e.forEach((function(e){var r=e.propName,o=e.columnProp,i=e.dataType;i&&"BOOLEAN"===i&&o&&(r=o),-1===n.indexOf(r)&&n.push(r);var a=e.propValue;if(r&&r.indexOf(".")>0)ft(t,r,a);else{var s=!1;!i||"DATE"!==i&&"TIME"!==i||e.startValue&&e.endValue&&(s=!0),s?t[r]=[e.startValue,e.endValue]:t[r]?t[r]instanceof Array?t[r].push(a):t[r]=[t[r],a]:t[r]=a}})),this.searchableColumns.forEach((function(e){n&&(n.indexOf(e.prop)<0?e.prop&&e.prop.indexOf(".")>0?"dateSection"===e.componentType?dt(t,e.prop):ft(t,e.prop):"dateSection"===e.componentType?t[e.prop]=[new Date,new Date]:t[e.prop]=null:"multiselect"===e.componentType&&t[e.prop]&&(t[e.prop]instanceof Array||(t[e.prop]=[t[e.prop]])))})),t}},resetSearchFormList:function(){this.searchFormList=null},openFold:function(e){this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchFormOrdinarySearch&&this.$refs.searchFormOrdinarySearch.searchComplete()}})},ja=$a,Va=(n("c24c"),f(ja,Bi,Li,!1,null,"ce110258",null)),za=Va.exports,Ha=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"show-close":!0,"append-to-body":!0,title:"查询条件",visible:""},on:{close:function(t){return e.$emit("close")}}},[n("search-form",{ref:"sf",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-param":e.searchParam,"init-search-props":e.initSearchProps},on:{search:e.doSearch,reset:e.resetSearch}})],1)},Ua=[],Wa={name:"SearchFormDialog",components:{SearchForm:za},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null}},data:function(){return{}},computed:{},created:function(){},methods:{doSearch:function(e){this.$emit("search",e)},resetSearch:function(){this.$emit("reset")}}},Ga=Wa,qa=f(Ga,Ha,Ua,!1,null,null,null),Ya=qa.exports,Ka={select:function(e,t){this.$emit("select",e,t)},selectAll:function(e){this.$emit("select-all",e)},selectionChange:function(e){this.$emit("selection-change",e)},cellMouseEnter:function(e,t,n,r){this.$emit("cell-mouse-enter",e,t,n,r)},cellMouseLeave:function(e,t,n,r){this.$emit("cell-mouse-leave",e,t,n,r)},cellClick:function(e,t,n,r){this.$emit("cell-click",e,t,n,r)},cellDblClick:function(e,t,n,r){this.$emit("cell-dblclick",e,t,n,r)},rowClick:function(e,t,n){this.$emit("row-click",e,t,n)},rowContextMenu:function(e,t,n){this.$emit("row-contextmenu",e,t,n)},rowDblClick:function(e,t,n){this.$emit("row-dblclick",e,t,n)},headerClick:function(e,t){this.$emit("header-click",e,t)},headerContextMenu:function(e,t){this.$emit("header-contextmenu",e,t)},filterChange:function(e){this.$emit("filter-change",e)},currentChange:function(e,t){this.$emit("current-change",e,t)},headerDragEnd:function(e,t,n,r){this.$emit("header-dragend",e,t,n,r)},expandChange:function(e,t){this.$emit("expand-change",e,t)}},Xa=Ka,Ja=(n("55dd"),{clearSelection:function(){this.$refs.superGrid.clearSelection()},toggleRowSelection:function(e,t){this.$refs.superGrid.toggleRowSelection(e,t)},toggleAllSelection:function(){this.$refs.superGrid.toggleAllSelection()},toggleRowExpansion:function(e,t){this.$refs.superGrid.toggleRowExpansion(e,t)},setCurrentRow:function(e){this.$refs.superGrid.setCurrentRow(e)},clearSort:function(){this.$refs.superGrid.clearSort()},clearFilter:function(e){this.$refs.superGrid.clearFilter(e)},doLayout:function(){this.$refs.superGrid.doLayout()},sort:function(e,t){this.$refs.superGrid.sort(e,t)}}),Za=Ja;function Qa(e,t){return new Promise((function(n,r){for(var o={listCode:t,valueSetMetas:[]},i=[],a=0;a<e.length;a++){var s=e[a],u=s.prop?s.prop:s.label,l=es(s),c=null,f=s.titleValueSet;if(f&&(c=es(JSON.parse(f))),l||c){var d={prop:u};l&&(d.valueSet=l),c&&(d.titleValueSet=c),o.valueSetMetas.push(d),i.push(a)}}o.valueSetMetas.length>0?O.a.prototype.$http.post(O.a.prototype.baseURL+"/common/super-grids/value-sets",o).then((function(t){i.forEach((function(n){var r,o=e[n].prop?e[n].prop:e[n].label;for(var i in t)if(o===i){r=t[o];break}r&&(r.valueSet&&(e[n].valueSet=r.valueSet),r.titleValueSet&&(e[n].titleValueSetValue=r.titleValueSet))})),n(e)})).catch((function(e){r(e)})):n(e)}))}function es(e){var t="enumname:",n="beanname:",r=e.enumName,o=e.beanName;if(r&&""!==r){if(!0===e.remoteEnum)return t+r}else if(o&&""!==o)return n+o}var ts={initialize:function(){var e=this,t=(new Date).getTime();return new Promise((function(n,r){var o=ze.get(e.code);if(e.options.isAdministerListView)e.getShowColumns(e.options.SuperGrid),Object.assign(e,e.options.SuperGrid),o.isSql=e.isSql,o.columns=e.columns,o.query=e.query,o.pagination=e.pagination,e.createBackgroundColorMap(),e.hasLoadedColumns=!0,e.fetchData(null,null,null,null),n();else{var i,a=O.a.prototype.baseAPI+"/component/super-grids/"+e.code,s={},u=e.options.isSql;e.options&&"undefined"!==typeof u&&(e.isSql=u,s.isSql=u+""),s.publishVersion=e.publishVersion,e.options&&"undefined"!==typeof e.options.isAdministerListView&&e.options.isAdministerListView&&(s.isAdminister=e.options.isAdministerListView+"");var l=sessionStorage.getItem("additionalParamMap");if(l&&(console.log("进入判断",l),l&&"object"===Object(C["a"])(l)?i=JSON.stringify(l):l&&""!==l&&(i=l)),e.options.additionalParamMap&&"object"===Object(C["a"])(e.options.additionalParamMap)){var c=JSON.stringify(e.options.additionalParamMap);i?Object.assign(i,c):i=c}else if(e.options.additionalParamMap&&""!==e.options.additionalParamMap){var f=e.options.additionalParamMap;i?Object.assign(i,f):i=f}i&&(s.additionalParamMap=i),e.options.extraParam&&e.options.extraParam.entityMap&&(e.parentFormData=e.options.extraParam.entityMap),e.isLoading=!0,e.$http.post(a,s).then((function(t){var a=(new Date).getTime(),s=[];if(s=s.concat(JSON.parse(JSON.stringify(t.columns))),e.getShowColumns(t),t.basicInfo&&ze.set(e.code+"basicInfo",t.basicInfo),e.options.pageSizes&&t.pagination){var l=null,c=e.options.pageSizes.split(",");if(c&&c.length>0){l=[];for(var f=0;f<c.length;f++)l.push(1*c[f]);t.pagination.pageSize=l[0]}t.pagination.layout="total, sizes, prev, pager, next, jumper",t.pagination.pageSizes=l}"undefined"!==typeof e.options.initSortInfo&&(Array.isArray(e.options.initSortInfo)?t.sortInfo=e.options.initSortInfo:(t.sortInfo=[],t.sortInfo.push(e.options.initSortInfo))),Qa(t.columns,e.code).then((function(){return e.getDynamicColumnByBean(i,t.dynamicColumnInfo,t.columns,o)})).then((function(r){var i=(new Date).getTime(),l=[];"undefined"!==typeof e.options.showColumns&&(l=e.options.showColumns.split(","));var c=r;if(c&&0!==c.length||e.options.dynamicColumns&&e.options.dynamicColumns.length>0&&(c=e.options.dynamicColumns),c&&c.length>0){if(s=s.concat(JSON.parse(JSON.stringify(c))),l&&l.length>0)for(var f=0;f<c.length;f++){var d=c[f].prop;c[f].dynamic=!0,l.indexOf(d)>=0?c[f].show=!0:c[f].show=!1}t.columns=t.columns.concat(c),t.columns=t.columns.sort((function(e,t){return e.displayOrder-t.displayOrder}))}Object.assign(e,t),e.options&&"undefined"===typeof u&&(e.isSql=e.basicInfo.sql),o.isSql=e.isSql,o.allColumns=s,o.columns=e.columns,e.packageColumnOptionMap(o),e.judgeIsFormSubTable(),o.colSetting=e.colSetting,o.lineEdit=e.lineEdit,o.basicInfo=e.basicInfo,o.pagination=e.pagination,e.pagination&&(e.pageSize=e.pagination.pageSize),o.query=e.query,o.dynamicColumnInfo=e.dynamicColumnInfo,o.mainDefaultValueColumns=e.mainDefaultValueColumns,o.contextParameter=e.contextParameter,e.isShowPage=e.isShowPageArea(),e.isSubTableShowPage=!!e.isFormSubTable&&e.isShowPage,o.isSubTableShowPage=e.isSubTableShowPage,e.hasLoadedColumns=!0;var h=!0;lt("loadBeforeSend",e.code)&&(h=o.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:o})),void 0!==h&&!0!==h||e.options.isPageInfo||("undefined"===typeof e.options.initSearch?("undefined"===typeof o.basicInfo.initializationQuery||o.basicInfo.initializationQuery)&&e.fetchData():!1!==e.options.initSearch&&e.fetchData()),e.createBackgroundColorMap();var p=(new Date).getTime();console.log("拿到共享数据并存储p2-p1=",p-a),console.log("拿到共享数据并存储p2-b=",p-i),n()})).catch((function(e){r(e)}))})).catch((function(e){r(e)}))}var d=(new Date).getTime();console.log("初始化所耗时间",d-t)}))},packageColumnOptionMap:function(e){var t={};e.columns&&e.columns.length>0&&this.packageColumnOptionMapItems(e.columns,t),e.columnOptionMap=t},packageColumnOptionMapItems:function(e,t){var n=this;e.forEach((function(e){e.children&&e.children.length>0&&n.packageColumnOptionMapItems(e.children,t),e&&e.prop&&(t[e.prop]=e)}))},getDynamicColumnByBean:function(e,t,n,r){var o=this;return new Promise((function(i,a){if(r.options.extraParam&&r.options.extraParam.entityMap&&(o.parentFormData=r.options.extraParam.entityMap),!o.options.isPageInfo&&t&&t.length>0){var s=[];o.getDynamicColumnByBeanWithOneSet(e,t[0],n,0,t,s,r).then((function(e){i(e)})).catch((function(e){a(e)}))}else i([])}))},getDynamicColumnByBeanWithOneSet:function(e,t,n,r,o,i,a){var s=this;return new Promise((function(u,l){if(t&&t.beanName){var c=O.a.prototype.baseURL+"/common/dynamic-columns",f={additionalParams:e,listCode:s.code,columns:n,beanName:t.beanName};if(s.parentFormData&&(a.dynamicTemp?(f.parent=a.dynamicTemp.parent,f.watchParentAttrValues=a.dynamicTemp.watchParentAttrValues):f.parent=s.parentFormData,t.watchParentAttr)){var d=t.watchParentAttr.split(",");d.forEach((function(e){if(e){f.watchParentAttrValues||(f.watchParentAttrValues={}),f.watchParentAttrValues[e]=s.parentFormData[e];var t=s.$watch("parentFormData."+e,(function(n,r){a.dynamicTemp||(a.dynamicTemp={}),a.dynamicTemp.parent=this.parentFormData,a.dynamicTemp.watchParentAttrValues||(a.dynamicTemp.watchParentAttrValues={}),a.dynamicTemp.watchParentAttrValues[e]=n,this.$refs&&this.$refs.superGrid&&(t(),this.$emit("reload-grid"))}))}}))}s.$http.post(c,f).then((function(a){t.dynamicColumns=a,i=i.concat(a),r+1<o.length?s.getDynamicColumnByBeanWithOneSet(e,o[r+1],n,r+1,o,i):u(i)})).catch((function(){u([])}))}else u([])}))},columnDrop:function(){var e=this,t=this,n=!1;if("undefined"!==typeof this.options.isDragColumnFlag&&null!=this.options.isDragColumn&&!0===this.options.isDragColumn){n=!0;var r=document.querySelector(".el-table__header-wrapper tr");null!=r&&(this.sortable=Ni.create(r,{animation:180,delay:0,onEnd:function(e){for(var n=e.oldIndex,r=e.newIndex,o=[],i=0;i<t.columns.length;i++)"left"!==t.columns[i].fixed&&"right"!==t.columns[i].fixed||o.push(i);if(o&&o.length>0)for(var a=0;a<o.length;a++)o[a]>=r&&r--,o[a]>=n&&n--;if(null!==n&&void 0!==n&&-1!==n&&null!==r&&void 0!==r&&-1!==r)if(n>r){if(t.columns&&t.columns.length>0){for(var s=t.columns[n],u=n-1;u>=r;u--){var l=t.columns[u];l.displayOrderType="custom",t.columns[u+1]=l}t.columns[r]=s}}else if(t.columns&&t.columns.length>0){for(var c=t.columns[n],f=n+1;f<=r;f++){var d=t.columns[f];d.displayOrderType="custom",t.columns[f-1]=d}t.columns[r]=c}t.indexAfterTheChangeUpdateDisplayOrder(t.columns,n,r,"displayOrder");var h=[];h=n>r?t.columns.slice(r,n+1):t.columns.slice(n,r+1);var p={listCode:t.code,columns:h};t.$http.post(O.a.prototype.baseAPI+"/component/super-grids/drag-columns",p).then((function(e){console.log("移动成功")}))}}))}if("undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView&&!n){var o=document.querySelector(".el-table__header-wrapper tr");null!=o&&(this.sortable=Ni.create(o,{animation:180,delay:0,onEnd:function(t){var n=t.oldIndex,r=t.newIndex,o=e.columns[t.oldIndex],i=e;i.columns.splice(n,1),i.columns.splice(r,0,o),e.$emit("columnDrop",n,r)}}))}},indexAfterTheChangeUpdateDisplayOrder:function(e,t,n,r){if(e&&e.length>0&&null!=t&&void 0!==t&&-1!==t&&null!==n&&void 0!==n&&-1!==n&&r&&""!==r){var o=e[n];if(n>t){var i=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var u=a[s];u[r]=0===s?o[r]:a[s-1][r]}o[r]=i}else{var l=e[n+1][r],c=e.slice(n+1,t+1);if(c&&c.length>0)for(var f=0;f<c.length;f++){var d=c[f];f===c.length-1?d[r]=o[r]:d[r]=c[f+1][r]}o[r]=l}}},getDisplayOrder:function(e,t){return e&&void 0!==e.displayOrder&&null!==e.displayOrder?e.displayOrder:t+1},getShowColumns:function(e){var t=[];if("undefined"!==typeof this.options.showColumns&&(t=this.options.showColumns.split(",")),t.length>0){for(var n=[],r=0;r<e.columns.length;r++){var o=e.columns[r],i=o.prop;if("$index"!==i&&"$selection"!==i)if(o.hasOwnProperty("children")){var a=this.getChildrenColumns(o.children,t);o.children=a,a.length>0&&n.push(o)}else t.indexOf(i)>=0&&n.push(o);else n.push(o)}e.columns=n}},getChildrenColumns:function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.prop;if(o.hasOwnProperty("children")){var a=this.getChildrenColumns(o.children,t);o.children=a,a.length>0&&n.push(o)}else t.indexOf(i)>=0&&n.push(o)}return n},saveColumnWidth:function(e,t){var n=this;return new Promise((function(r,o){if(void 0!==t){var i={prop:e,width:t+""};n.$http.post(O.a.prototype.baseAPI+"/component/super-grids/setting-column-widths/"+n.code,i).then((function(e){r(t)})).catch((function(e){o(e)}))}else r()}))}},ns=ts,rs="PERMISSION-";function os(){var e;return e=O.a.prototype.customSystem?O.a.prototype.customSystem:O.a.prototype.systemCode,e}function is(){var e=os(),t=ln.a.getItem(rs+e);return t?JSON.parse(t):null}var as=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"context-menu"},e._l(e.buttomArr,(function(t){return n("li",{key:t.name},[n("i",{class:t.icon}),n("span",{on:{click:function(n){return e.buttonClick(t.event,t)}}},[e._v(e._s(t.label))])])})),0)},ss=[],us={name:"HeaderContextMenu",components:{},filters:{},props:{buttomArr:{type:Array,default:null},column:{type:Object,default:null}},data:function(){return{}},computed:{},watch:{},created:function(){console.log("12345",this.buttomArr)},methods:{buttonClick:function(e,t){e&&("function"===typeof e?e.call(this,t,this.column):this.$emit(e,t,this.column),this.$emit("clearHeaderContextmenu"))}}},ls=us,cs=(n("41a4"),f(ls,as,ss,!1,null,"19919133",null)),fs=cs.exports;n("a5d8");function ds(e){if(e){var t=!1,n=is();if("undefined"!==typeof n&&null!==n){var r=e.replace(/\./g,"__"),o=n[r];void 0!==o&&!0===o&&(t=!0)}return t}return console.error('need permission2! Like v-permission="acs.department.save"'),!1}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ms(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gs(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function gs(e,t){if(e){if("string"===typeof e)return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vs(e,t):void 0}}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bs={name:"SuperGrid",components:{IndexColumn:Ae,SelectionColumn:Fe,NormalColumn:ir,GroupColumn:fr,ColumnsConfig:Ri,SearchForm:za,headerContextMenu:fs,searchFormDialog:Ya},props:{code:{type:String,default:""},url:{type:String,default:""},options:{type:Object,default:function(){return{}}},publishVersion:{type:Number,default:0},customFormatter:{type:Object,default:null},searchFormInfo:{type:Object,default:function(){return{}}}},data:function(){var e,t=this.options.parentProp;"undefined"!==typeof t&&""!==t&&null!==t&&(e=t);var n,r,o,i=[];this.options&&this.options.mergeFields&&""!==this.options.mergeFields&&(i=this.options.mergeFields.split(",")),this.options&&this.options.optionTableHeight&&""!==this.options.optionTableHeight&&(n=this.options.optionTableHeight),this.options&&this.options.pageCode&&(r=this.options.pageCode),this.options&&this.options.pageHeight&&(o=this.options.pageHeight);var a=!0;this.options&&void 0!==this.options.lazy&&(a=this.options.lazy);var s=!0;this.options&&void 0!==this.options.defaultExpandAll&&(s=this.options.defaultExpandAll);var u="mysql";O.a.prototype.dataSourceType&&(u=O.a.prototype.dataSourceType.toLowerCase());var l=this.options.pageDevMode;return void 0===l&&(l=!1),{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],pagination:null,query:null,lineEdit:null,gridData:[],summaries:null,sortInfo:null,pageSize:null,showSearch:!1,myCustomFormatter:null,height:null,timer:null,timer2:null,isSql:!1,parentProp:e,hasLoadData:!1,mergeFields:i,newWidth:null,dragColumnProp:null,hasLoadedColumns:!1,backgroundColorMap:{},showHeaderContextmenu:!1,rightClickColumn:null,externalClickFlag:!1,dataTableCode:null,dynamicColumnInfo:null,mainDefaultValueColumns:null,dynamicServiceName:null,searchFormContent:null,initSearchProps:[],refreshGrid:!0,optionTableHeight:n,isFormSubTable:!1,isShowPageDialog:!1,jumpPageSetting:null,pageCode:r,maxHeight:null,pageHeight:o,currentSelectCell:null,isLazy:a,defaultExpandAll:s,parentFormData:null,stripe:!0,dataSourceType:u,pageDevMode:l,toolbarFieldParam:[],tableName:null,listName:null,subTableData:[],isShowPage:!1,isSubTableShowPage:!1}},computed:{treeProps:function(){return this.getTreeProps(this.parentProp,this.isSql,this.isLazy,this.dataSourceType)},pageGridData:function(){return this.getSubTableGridData(this.subTableData)},visibleColumns:function(){var e=this,t=ze.get(this.code),n=this.getOptionOperations();if(t.canntEdit=!1,n&&n.operation&&n.operation.length>0&&n.operation.forEach((function(e){"lineEditUpdate"===e.props.code&&ds(e.props.functionCode)&&(t.canntEdit=!0)})),"undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView)return this.columns;var r=this.columns.filter((function(r){if("undefined"!==typeof e.options.multiple&&!1===e.options.multiple&&"$selection"===r.prop)return!1;if("undefined"!==typeof e.options.showIndex&&!1===e.options.showIndex&&"$index"===r.prop)return!1;var o;if(void 0===r.show||r.show){o=!0;var i=e.options.hiddenColumns;if(i&&i.length>0&&-1!==i.indexOf(r.prop))return o=!1,o;e.initColumnOperation(r,n),t.$dataTypeMap||(t.$dataTypeMap={}),t.$dataTypeMap[r.prop]=r.dataType}else o=!1;return e.storeHasDefaultValueColumns(r,t),r._defaultComponentType=e.getComponentType(r.prop),o}));return r},spanArr:function(){var e,t=[],n=ms(this.columns);try{for(n.s();!(e=n.n()).done;){var r=e.value;(r.span||this.mergeFields&&-1!==this.mergeFields.indexOf(r.prop))&&(t[r.prop]=Ke(this.gridData,r.prop,r.mergerCellBasis))}}catch(o){n.e(o)}finally{n.f()}return t},showSummary:function(){return void 0!==this.basicInfo.summary&&"no"!==this.basicInfo.summary},getRowKeyProp:function(){var e=ze.get(this.code);return e&&e.options&&e.options.rowKeyProp?e.options.rowKeyProp:"oracle"===this.dataSourceType?"ID":"id"}},watch:{"options.SuperGrid":{deep:!0,handler:function(){this.externalClickFlag=!0,console.log("监听到数据改变"),this.initSetting(),this.initialize()}},gridData:{deep:!0,immediate:!0,handler:function(){this.isSubTableShowPage||this.$emit("change-grid-data",this.gridData)}},subTableData:{deep:!0,immediate:!0,handler:function(){if(this.isSubTableShowPage){var e=ze.get(this.code);if(this.$emit("change-grid-data",this.subTableData),void 0!==e.isChangePage&&e.isChangePage){var t=_t(this.subTableData.length,this.pageSize);t!==this.currentPage?(this.currentPage=t,this.changePage()):(this.gridData=this.getSubTableGridData(this.subTableData),e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))),e.lineEdit.editingCell&&(e.lineEdit.editingCell.row=this.gridData.length),e.isChangePage=!1}else this.gridData=this.getSubTableGridData(this.subTableData),e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))}}},currentSelectCell:{deep:!0,handler:function(e,t){this.$nextTick((function(){e&&e.click(),t&&(t.style.border="")}))}},"options.validateRules":{deep:!0,handler:function(){this.externalClickFlag=!0,console.log("监听到数据改变================",this.options.validateRules);var e=ze.get(this.code);e&&e.options&&(e.options.validateRules=this.options.validateRules,ze.set(this.code,e))}},"options.subTableCanAdd":{deep:!0,handler:function(){var e=ze.get(this.code);e&&e.options&&(e.options.subTableCanAdd=this.options.subTableCanAdd,ze.set(this.code,e))}},pageSize:{handler:function(e,t){this.$emit("change-rows-per-page",this.pageSize)}}},provide:function(){return{}},created:function(){ze.set(this.code,ct()),ze.set("_list_code",this.code),this.initSetting(),this.judgeIsFormSubTable();var e=!0;lt("rowStyleRender",this.code)&&(e=!1),this.stripe=e},mounted:function(){var e=this;this.initialize().then((function(){var t=ze.get(e.code);t&&t.basicInfo&&t.basicInfo.tableName&&(e.tableName=t.basicInfo.tableName),t&&t.basicInfo&&t.basicInfo.name&&(e.listName=t.basicInfo.name),e.$nextTick((function(){var t=(new Date).getTime();e.columns.forEach((function(t){t.valueSet&&e.$emit("set-select-options",{prop:e.code+"."+t.prop,valueSet:t.valueSet})})),e.rowDrop(),e.columnDrop(),ze.get(e.code).superGrid=e.$refs.superGrid,e.query&&"embedded"===e.query.showType?e.resizeTableHeight():e.$watch("showSearch",(function(e,t){this.resizeTableHeight()}),{immediate:!0,deep:!0}),e.$watch("hasLoadData",(function(e,t){var n=this;!0===e&&this.$nextTick((function(){var e=ze.get(n.code);lt("gridComplete",n.code)&&e.options.gridComplete.call(n,{gridData:n.isSubTableShowPage?n.subTableData:n.gridData,columns:e.columns,superGrid:n.$refs.superGrid,pageGridData:n.isSubTableShowPage?n.gridData:null})}))}),{immediate:!0,deep:!0});var n=e,r=null!==document.querySelector(".user-tree");document.querySelector("."+e.code).onkeydown=function(e){if(!n.isShowPageDialog&&!r){var t=e||event||window.event||arguments.callee.caller.arguments[0],o=n.isEditRow(n);t&&37===t.keyCode?o||n.selectLeftCell(n):t&&38===t.keyCode?o||n.selectUpCell(n):t&&39===t.keyCode?o||n.selectRightCell(n):t&&40===t.keyCode?o||n.selectDownCell(n):t&&13===t.keyCode?n.enterOperation(n):t&&27===t.keyCode&&n.escOperation(n)}};var o=(new Date).getTime();console.log("super-page--created--执行时间=",o-t)})),e.query&&"popup"===e.query.showType&&e.$emit("setSearchType",!0),e.$watch("options.extraParam",(function(e,t){this.$set(this.options,"extraParam",e);var n=ze.get(this.code);n.options.extraParam=e}),{deep:!0})}))},methods:ps(ps(ps(ps(ps({},Xa),Za),ns),qt),{},{isShowPageArea:function(){return!this.isFormSubTable||void 0!==this.options.showPageArea&&!0===this.options.showPageArea},resizeTableHeight:function(){var e=this;this.$nextTick((function(){var t=ht(e.$refs.superGrid,e.code,e.pageHeight),n=ze.get(e.code);if(lt("resizeHeight",e.code)){var r=0;e.$refs.sf&&(r=e.$refs.sf.$el.offsetHeight);var o=n.options.resizeHeight.call(e,{code:e.code,height:t,searchHeight:r});o&&(t=o)}e.height=t,e.optionTableHeight?e.height=e.optionTableHeight:n.options&&n.options.isFormSubTable&&n.options.isPdfEditor?e.height=null:n.options&&n.options.isFormSubTable&&n.options.formSetHeight?e.height=n.options.formSetHeight:e.basicInfo.displayEffect&&""!==e.basicInfo.displayEffect&&"default"!==e.basicInfo.displayEffect||(e.height=null),e.maxHeight=t,n.options&&n.options.isFormSubTable&&n.options.isPdfEditor?e.maxHeight=null:n.options&&n.options.isFormSubTable&&n.options.formSetMaxHeight&&(e.maxHeight=n.options.formSetMaxHeight)}))},enterOperation:function(e){var t=ze.get(e.code);if(t.options&&t.options.isFormSubTable){var n=t.$editRow;n&&(Object(x["k"])(n,"$editing",!1),t.$editRow=null)}else if(t.options&&!t.options.isFormSubTable){var r=e.currentSelectCell;if(r){var o=r.querySelector(".el-textarea");if(o)return}var i=t.$rowIndex;if(void 0!==i&&null!==i){var a=t.gridData[i];ut("enter",e.listCode)?t.options.lineEditOptions.enter.call(e,i,e.column,a,t.orgGridData[i]):e.saveRow(i,e.code)}}},escOperation:function(e){var t=ze.get(e.code);if(t.options&&!t.options.isFormSubTable){var n=t.$rowIndex;if(void 0!==n&&null!==n){e.restoreRow(n,e.code);var r=t.gridData[n];ut("esc",e.listCode)?t.options.lineEditOptions.esc.call(e,n,e.column,r,t.orgGridData[n]):e.restoreRow(n,e.code)}}},isEditRow:function(e){var t=e.currentSelectCell;if(t){var n=t.querySelector(".el-input__inner");if(n)return!0}return!1},selectUpCell:function(e){var t=e.currentSelectCell;if(t){var n=t.parentNode;if(n){var r=null,o=null,i=t.attributes["class"];if(i&&(o=i["nodeValue"]),o&&o.indexOf(" ")>0){var a=o.split(" ");r=a[0]}var s=n["previousSibling"];if(s){var u=s.querySelector("."+r);e.currentSelectCell=u}}}},selectDownCell:function(e){var t=e.currentSelectCell;if(t){var n=t.parentNode;if(n){var r=null,o=null,i=t.attributes["class"];if(i&&(o=i["nodeValue"]),o&&o.indexOf(" ")>0){var a=o.split(" ");r=a[0]}var s=n["nextSibling"];if(s){var u=s.querySelector("."+r);e.currentSelectCell=u}}}},selectRightCell:function(e){if(e.currentSelectCell){var t=e.currentSelectCell["nextSibling"];if(t){var n,r=t.attributes["class"];r&&(n=r["nodeValue"]),n&&n.indexOf(" is-hidden")>0?e.getTargetCellWithFixTable(e,n,t):e.currentSelectCell=t}}},selectLeftCell:function(e){if(e.currentSelectCell){var t=e.currentSelectCell["previousSibling"];if(t){var n,r=t.attributes["class"];r&&(n=r["nodeValue"]),n&&n.indexOf(" is-hidden")>0?e.getTargetCellWithFixTable(e,n,t):e.currentSelectCell=t}}},getTargetCellWithFixTable:function(e,t,n){var r=n.parentNode;if(r){var o=r.parentNode;if(o){var i=o.parentNode;if(i){var a=i.parentNode;if(a){var s=a.attributes["class"];if(s){var u=s["nodeValue"];if(u&&u.indexOf("el-table__fixed-body-wrapper")>=0){var l=null;if(t&&t.indexOf(" ")>0){var c=t.split(" ");l=c[0]}if(l){var f=document.querySelector("."+this.code+" .el-table__body-wrapper .current-row ."+l);e.currentSelectCell=f}}else if(u&&u.indexOf("el-table__body-wrapper")>=0){var d=null;if(t&&t.indexOf(" ")>0){var h=t.split(" ");d=h[0]}if(d){var p=document.querySelector("."+this.code+" .el-table__fixed-body-wrapper .current-row ."+d);e.currentSelectCell=p}}}}}}}},storeHasDefaultValueColumns:function(e,t){void 0!==e.defaultValue&&null!==e.defaultValue&&""!==e.defaultValue&&(void 0!==t.defaultValueColumns&&null!==t.defaultValueColumns||(t.defaultValueColumns=[]),t.defaultValueColumns.push(e))},judgeIsFormSubTable:function(){var e=ze.get(this.code);e&&e.options&&void 0!==e.options.isFormSubTable&&!0===e.options.isFormSubTable&&(this.isFormSubTable=!0)},initColumnOperation:function(e,t){if(t&&t[e.prop]){var n=e.prop;e.operations=t[n]}},getOptionOperations:function(){if("undefined"!==typeof this.options["operations"]&&null!==this.options["operations"])return this.options["operations"]},initSetting:function(){var e=ze.get(this.code);"undefined"!==typeof this.options?(Object.assign(e.options,this.options),e.options.lineEditOptions||(e.options.lineEditOptions=e.defaultLineEditOptions),"undefined"!==typeof this.options["customFormatter"]&&null!==this.options["customFormatter"]&&(this.myCustomFormatter=this.options["customFormatter"])):(e.options={},e.options.lineEditOptions=e.defaultLineEditOptions),st("input",this.code)||(e.options.lineEditOptions.input=e.defaultLineEditOptions.input),this.myCustomFormatter||"undefined"===typeof this.customFormatter||null===this.customFormatter||(this.myCustomFormatter=this.customFormatter),this.options&&this.options.dynamicServiceName&&void 0!==this.options.dynamicServiceName&&(this.dynamicServiceName=this.options.dynamicServiceName,e.dynamicServiceName=this.dynamicServiceName),this.options&&this.options.system&&void 0!==this.options.system&&(e.system=this.options.system),this.options&&this.options.additionalParamMap&&void 0!==this.options.additionalParamMap&&(e.additionalParamMap=this.options.additionalParamMap)},changeRowStyle:function(e){var t=ze.get(this.code);return this.lineEdit&&this.lineEdit.editable&&e.rowIndex===t.$rowIndex&&Qe(e.row,t.orgGridData[t.$rowIndex]),lt("rowStyleRender",this.code)?t.options.rowStyleRender.call(this,e):this.options&&this.options.renderRow&&this.options.renderRow.hasOwnProperty(e.rowIndex)?{background:this.options.renderRow[e.rowIndex]}:void 0},changeCellStyle:function(e){var t=ze.get(this.code),n=null,r=null;if(e&&e.column&&e.column.property&&t&&t.columnOptionMap&&t.columnOptionMap[e.column.property]&&(r=t.columnOptionMap[e.column.property],r.events&&r.events.cellStyle&&(n=r.events.cellStyle)),lt("cellStyleRender",this.code))return t.options.cellStyleRender.call(this,e);if(null!==n&&null!==r&&t.options&&t.options["eventCallBack"]&&t.options["eventCallBack"][n]&&"function"===typeof t.options["eventCallBack"][n]){var o={value:e.row[e.column.property],row:e.row,column:r,prop:e.column.property};return t.options["eventCallBack"][n].call(this,o)}},changeHeaderStyle:function(e){if("undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView){var t=e.column;if("selection"===t.type){if(this.backgroundColorMap["$selection"])return{background:this.backgroundColorMap["$selection"]}}else if(t.type&&"default"===t.type&&!t.property){if(this.backgroundColorMap["$index"])return{background:this.backgroundColorMap["$index"]}}else if(t.property&&this.backgroundColorMap[t.property])return{background:this.backgroundColorMap[t.property]}}else{var n=ze.get(this.code),r=null,o=null;if(e&&e.column&&e.column.property&&n&&n.columnOptionMap&&n.columnOptionMap[e.column.property]&&(o=n.columnOptionMap[e.column.property],o.events&&o.events.headerCellStyle&&(r=o.events.headerCellStyle)),n.options.renderHeader&&n.options.renderHeader.props)for(var i=e.column,a=n.options.renderHeader.props,s=a.split(","),u=0;u<s.length;u++){var l=s[u];if(i.property===l.trim()){var c="#c3f4e2";return"undefined"!==typeof n.options.renderHeader.color&&(c=n.options.renderHeader.color),{background:c}}}else if(null!==r&&null!==o&&n.options&&n.options["eventCallBack"]&&n.options["eventCallBack"][r]&&"function"===typeof n.options["eventCallBack"][r])return n.options["eventCallBack"][r].call(this,e)}},fetchData:function(e,t,n,r){var o=ze.get(this.code);if(o.options&&o.options.isPageInfo);else if(o.options&&o.options.isAdministerListView){if(o.options.SuperGrid&&o.options.SuperGrid.simulationDate){if(lt("gridDataLoaded",this.code)){var i=o.options.gridDataLoaded.call(this,{gridData:o.options.SuperGrid.simulationDate,columns:o.columns});this.gridData=i||o.options.SuperGrid.simulationDate}else this.gridData=o.options.SuperGrid.simulationDate;o.gridData=this.gridData}}else if(o.options&&o.options.isFormSubTable&&o.options.subTableData&&o.options.subTableData.length>0)this.packageSubTableData(o,o.options.subTableData);else{var a=this.canRefreshTableData(o);if(a)return this.fetchListData(e,t,n,r);if(this.isSubTableEmpty(o)){console.log("子表无记录----code=",this.code,o);var s=[];this.packageSubTableData(o,s)}this.hasLoadData=!0,o.loaded=!0}},isSubTableEmpty:function(e){return e.options&&e.options.isFormSubTable&&(void 0===e.options.subTableData||null===e.options.subTableData||0===e.options.subTableData.length)},packageSubTableData:function(e,t){var n=this;this.hasLoadData=!1,e.loaded=!0;var r=[];if(lt("gridDataLoaded",this.code)){var o=e.options.gridDataLoaded.call(this,{gridData:t,columns:e.columns});o?(r=o,this.hasLoadData=!0):(r=t,this.hasLoadData=!0)}else r=t,this.hasLoadData=!0;r&&r.forEach((function(t){n.setColumnsDefaultValue(e.allColumns,t)})),this.pagination&&!0===this.isSubTableShowPage?(this.subTableData=r,this.pagination.total=this.subTableData.length,e.subTableData=this.subTableData,this.gridData=this.getSubTableGridData(this.subTableData)):this.gridData=r,e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))},canRefreshTableData:function(e){var t=!1;return(e.options&&!e.options.isFormSubTable||e.options&&e.options.isFormSubTable&&void 0!==e.options.canRrefreshSubtableData&&!0===e.options.canRrefreshSubtableData)&&(t=!0),t},getSubTableGridData:function(e){var t=e;if(!0===this.isSubTableShowPage&&e&&e.length>0){this.pagination.total=e.length;var n=this.currentPage;void 0!==n&&null!==n||(n=1);var r=this.pageSize;null===r&&this.pagination&&(r=this.pagination.pageSize),void 0!==r&&null!==r||(r=20);var o=(n-1)*r,i=o+r;e.length>o&&(i>e.length&&(i=e.length),t=e.slice(o,i))}return void 0!==t&&null!==t||(t=[]),t},fetchListData:function(e,t,n,r){var o=this;return new Promise((function(i,a){if(o.isLoading=!0,o.hasLoadData=!1,void 0===t||!1===t){var s=sessionStorage.getItem("refreshList-"+o.code);if(void 0!==s&&"true"===s){var u=sessionStorage.getItem("searchParam-"+o.code);if(void 0!==u&&null!==u&&""!==u){e=JSON.parse(u);var l=e.pagination;l&&(o.currentPage=l.currentPage,o.pagination.pageSize=l.pageSize,o.pagination.showTotal=l.showTotal),o.getInitSearchForm(e.searchForm)}}}sessionStorage.removeItem("refreshList-"+o.code),void 0===e&&(e=o.getSearchParam());var c=ze.get(o.code),f=e;(c.options.extraParam||void 0!==n)&&(f=pt(e,c)),c.searchParam=e,c.url=o.url;var d=o.url;void 0!==n&&null!==n&&(f=Object.assign({},f),f.searchParam.pagination=null,f["parentIds"]=n,f["parentProp"]=o.parentProp,f.systemCode=os(),d=o.options.subRowUrl),c.isCreateRow=!1,c.isEditRow=!1,c.$lastSaveRowIndex=null,c.$rowIndex=null,c.canSaveRow=!0,c.withDataPermission=c.options.isWithDataPermission,c.isWorkflowEntity=c.options.isWorkflowEntity,sessionStorage.setItem("searchParam-"+o.code,JSON.stringify(f)),o.parentProp&&e.searchForm&&e.searchForm.length>0&&(f.listViewTreeSetting=null),o.$http.post(d,f).then((function(e){if("undefined"===typeof n||null===n){var a=[];if(lt("gridDataLoaded",o.code)){var s=c.options.gridDataLoaded.call(o,{gridData:e.data,columns:c.columns});a=s||e.data}else a=e.data;a||(a=[]),c.options.isFormSubTable?(a&&a.forEach((function(e){o.setColumnsDefaultValue(c.allColumns,e)})),o.pagination&&!0===o.isSubTableShowPage?(o.subTableData=a,o.gridData=o.getSubTableGridData(o.subTableData),c.subTableData=o.subTableData):o.gridData=a,null!==o.pagination&&(o.pagination.total=a.length)):(o.gridData=a,null!==o.pagination&&(o.pagination.total=e.total)),e.summaries&&Object.keys(e.summaries).length>0&&(o.summaries=e.summaries),c.gridData=o.gridData,c.orgGridData=[].concat(JSON.parse(JSON.stringify(o.gridData))),c.pagination=o.pagination,c.loaded=!0,o.lineEdit.editable&&("undefined"!==typeof t&&!1!==t||(0===o.gridData.length&&o.options&&null!==o.options.isDefaultShowEdit&&void 0!==o.options.isDefaultShowEdit&&!0===o.options.isDefaultShowEdit&&o.createRow(o.code,null,o.gridData),o.gridData.length>0&&o.$set(o.lineEdit,"editingCell",{row:0,prop:Xe(o.code)}))),o.hasLoadData=!0}else lt("gridDataLoaded",o.code)&&c.options.gridDataLoaded.call(o,{gridData:e}),lt("loadChildrenComplete",o.code)&&c.options.loadChildrenComplete.call(o,{parentRowIds:n,gridData:e,columns:c.columns}),"undefined"!==typeof r&&null!==r?(o.removeGridStoreSelection(n),r(e[n[0]])):(n.forEach((function(t){o.$refs.superGrid.store.states.lazyTreeNodeMap[t]=e[t],o.$refs.superGrid.store.states.treeData[t].children=e[t]})),o.removeGridStoreSelection(n)),o.hasLoadData=!0;i()})).catch((function(e){lt("loadError",o.code)&&c.options.loadError.call(o,o.code,e),a(e)}))}))},getInitSearchForm:function(e){var t=this,n=ze.get(this.code);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,o=e.dataType;o&&"BOOLEAN"===o&&(n=r),t.initSearchProps.push(n);var i=e.propValue;n&&n.indexOf(".")>0?ft(t.searchFormContent,n,i):t.searchFormContent[n]=i})),n.searchForm=e,this.showSearchForm()):n.searchForm=null},showDemo:function(){var e=this;this.isLoading=!0,this.$http.get(this.url).then((function(t){e.getShowColumns(t),Object.assign(e,t);var n=ze.get(e.code);if(n.listCode=e.code,n.columns=e.columns,n.columns&&e.options.dynamicColumns)for(var r=0;r<e.options.dynamicColumns.length;r++)e.options.dynamicColumns[r].dynamic=!0,n.columns.push(e.options.dynamicColumns[r]);if(n.lineEdit=e.lineEdit,n.basicInfo=e.basicInfo,n.pagination=e.pagination,n.query=e.query,e.gridData=t.gridData,lt("gridDataLoaded",e.code)){var o=n.options.gridDataLoaded.call(e,t.gridData);e.gridData=o||t.gridData}else e.gridData=t.gridData;null!=e.pagination&&(e.pagination.total=t.total),e.gridData||(e.gridData=[]),n.gridData=e.gridData,n.orgGridData=[].concat(JSON.parse(JSON.stringify(e.gridData))),n.pagination=e.pagination,e.lineEdit.editable&&(0===e.gridData.length&&e.createRow(e.code,null,e.gridData),e.$set(e.lineEdit,"editingCell",{row:0,prop:Xe(e.code)})),lt("gridComplete",e.code)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(lt("loadError",e.code)){var n=ze.get(e.code);n.options.loadError.call(e,e.code,t)}}))},doSearch:function(e){this.currentPage=1,e&&(e.length>0?this.toolbarFieldParam&&this.toolbarFieldParam.length>0&&(1===e.length&&(e[0].leftBracket="(",e[0].rightBracket=")"),"or"===e[e.length-1].joinSign&&(e[e.length-1].joinSign="and"),Array.prototype.push.apply(e,this.toolbarFieldParam)):this.toolbarFieldParam&&this.toolbarFieldParam.length>0&&(e=this.toolbarFieldParam)),this.search(e,!0)},doSearchDialog:function(e){this.currentPage=1,this.search(e,!0),this.closeSearchFormDialog()},search:function(e,t,n){var r=this;this.$emit("refresh");var o=this;return new Promise((function(i,a){var s,u=ze.get(o.code);if(u.searchForm="undefined"!==typeof e&&null!==e?e:null,u.options&&u.options.isAdministerListView)u.options.SuperGrid&&u.options.SuperGrid.simulationDate&&(lt("gridDataLoaded",o.code)?(s=u.options.gridDataLoaded.call(r,{gridData:u.options.SuperGrid.simulationDate,columns:u.columns}),s||(s=u.options.SuperGrid.simulationDate)):s=u.options.SuperGrid.simulationDate,i(s));else if(u.options&&u.options.isFormSubTable&&u.options.subTableData&&u.options.subTableData.length>0){var l;o.hasLoadData=!1,u.loaded=!0,lt("gridDataLoaded",o.code)?(l=u.options.gridDataLoaded.call(r,{gridData:u.options.subTableData,columns:u.columns}),l||(l=u.options.subTableData,o.hasLoadData=!0)):(l=u.options.subTableData,o.hasLoadData=!0),i(l)}else o.fetchData(o.getSearchParam(),t,n).then((function(e){console.log("打印1====",u),void 0!==u&&void 0!==u.options&&void 0!==u.options.isHiddenSearchForm&&!0===u.options.isHiddenSearchForm&&(console.log("打印2====",o),o.showSearch=!1,o.$emit("cancel-search")),console.log("打印3====",o),console.log("打印4====",o.$refs),o.$refs&&o.$refs.sf&&(console.log("打印5====",o.$refs.sf),o.$refs.sf.loading=!1,o.$refs.sf.searchComplete()),console.log("打印6====",o),r.resizeTableHeight(),i(e)})).catch((function(e){o.$refs.sf&&(o.$refs.sf.loading=!1,o.$refs.sf.searchComplete()),a(e)}))}))},getPaginationInfo:function(){var e=ze.get(this.code);if(null!==this.pagination){var t={currentPage:this.currentPage,pageSize:this.pagination.pageSize,showTotal:this.pagination.showTotal};return null!==this.pageSize&&(t.pageSize=this.pageSize),"undefined"!==typeof e.currentPage&&null!==e.currentPage&&(t.currentPage=e.currentPage,e.currentPage=null),t}},getSearchParam:function(){var e={code:this.code},t=ze.get(this.code),n=this.getPaginationInfo();if(n&&null!==n&&(e.pagination=n),null!==this.sortInfo&&(e.sorts=this.sortInfo),this.mergeFields&&this.mergeFields.length>0){e.sorts||(e.sorts=[]);var r,o=[],i=ms(this.mergeFields);try{for(i.s();!(r=i.n()).done;){var a,s=r.value,u=!0,l=ms(e.sorts);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.prop===s){u=!1;break}}}catch(d){l.e(d)}finally{l.f()}u&&o.push({prop:s,order:"ascending"})}}catch(d){i.e(d)}finally{i.f()}o.push.apply(o,ke(e.sorts)),e.sorts=o}t.options&&"undefined"!==typeof t.options.initSearchForm&&(e.initSearchForm=t.options.initSearchForm),t.query&&"undefined"!==typeof t.query.defaultQueryCriteria&&(e.defaultQueryCriteria=JSON.parse(t.query.defaultQueryCriteria)),"undefined"!==typeof t.searchForm?e.searchForm=t.searchForm:e.searchForm=[],this.dynamicColumnInfo&&(e.dynamicColumnInfo=this.dynamicColumnInfo),this.dynamicServiceName&&(e.dynamicServiceName=this.dynamicServiceName);var f=t.additionalParamMap;return f&&(f&&"object"===Object(C["a"])(f)?e.additionalParamMap=f:f&&""!==f&&(e.additionalParamMap=JSON.parse(f))),e},getComponentType:function(e){var t="NormalColumn";return"$index"===e?t="IndexColumn":"$selection"===e?(ze.get(this.code).isMulitiSelect=!0,t="SelectionColumn"):void 0===e&&(t="GroupColumn"),t},focusOnFirstEditableInput:function(){this.basicInfo.editable&&(this.lineEdit.editingCell.row=0,this.lineEdit.editingCell.prop=Xe(this.code))},handleSizeChange:function(e){this.options&&this.options.isPageShow||(this.currentPage=1,this.pageSize=e,this.changePage())},handleCurrentChange:function(e){this.options&&this.options.isPageShow||this.changePage()},changePage:function(){if(this.$refs.superGrid.clearFilter(),this.isSubTableShowPage){this.gridData=this.getSubTableGridData(this.subTableData);var e=ze.get(this.code);e.gridData=this.gridData,e.orgGridData=[].concat(JSON.parse(JSON.stringify(this.gridData)))}else this.fetchData(this.getSearchParam())},handleSortChange:function(e){var t=e.column,n=e.prop,r=e.order;if(!this.options||!this.options.isPageShow){var o=null,i=this.visibleColumns.filter((function(e){return t.property===e.prop}));if(i&&i.length>0&&(o=i[0]),nt(this.code)){if(null!==n&&o&&null!==o){var a=o.orgProp,s="__";a&&a.indexOf(s)>0&&(a=a.replace(s,".")),this.sortInfo=[{prop:a,order:r}]}else this.sortInfo=null;this.fetchData(this.getSearchParam()),this.focusOnFirstEditableInput(),this.$emit("sort-change",{columnSetting:o,prop:n,order:r,column:t})}else{var u=ze.get(this.code);console.log("请先保存或撤销编辑第"+u.$rowIndex+"1行记录,再排序"),this.$refs.superGrid.clearSort()}}},isMergeable:function(e){var t,n=ms(this.columns);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.prop===e)return!(!this.mergeFields||-1===this.mergeFields.indexOf(r.prop))||r.span}}catch(o){n.e(o)}finally{n.f()}},rowSpan:function(e){e.row;var t=e.column,n=e.rowIndex;e.columnIndex;if(this.isMergeable(t.property)){var r=this.spanArr[t.property][n],o=r>0?1:0;return{rowspan:r,colspan:o}}},packageSummaryColumnProps:function(){var e=[];return this.visibleColumns.forEach((function(t){void 0!==t.total&&!0===t.total&&e.push(t.prop)})),e},getSummaries:function(e){if("no"!==this.basicInfo.summary){var t=this.summaries;return t?this.getCustomSummaries(e,t):this.getDefaultSummaries(e)}return[]},getCustomSummaries:function(e,t){var n=e.columns,r=[];return n.forEach((function(e,n){var o=e.property,i=t[o];r[n]=void 0!==i&&null!==i?i:""})),r},getDefaultSummaries:function(e){var t=this,n=[],r=this.packageSummaryColumnProps();if(r.length>0){var o=e.columns,i=e.data,a=null;o.forEach((function(e,o){var s=0,u=e.property;if(u&&"$selection"!==u&&"$index"!==u&&(void 0===a||null===a))return a=o,void(n[o]="合计");r.indexOf(u)>=0?(i&&i.forEach((function(e){var n,r=Object(x["d"])(e,u);if(void 0!==r&&null!==r)n=Number(r);else{var o=/[A-Z]+/;t.isSql&&o.test(u)&&(r=Object(x["d"])(e,u.toLowerCase()),void 0!==r&&null!==r&&(n=Number(r)))}void 0===n||null===n||isNaN(n)||(s+=n)})),n[o]=s):n[o]=""}))}return n},configColumns:function(){this.showColumnConfig=!0,this.orgColumnConfig=[].concat(JSON.parse(JSON.stringify(this.columns)))},rowDrop:function(){if(this.lineEdit&&this.lineEdit.urlToSaveOrder){var e=document.querySelector(".el-table__body-wrapper tbody");if(null!=e){var t=this;Ni.create(e,{onEnd:function(e){var n=e.newIndex,r=e.oldIndex,o={oldIndex:r,newIndex:n};this.$http.post(this.lineEdit.urlToSaveOrder,o).then((function(e){var o=t.gridData.splice(r,1)[0];t.gridData.splice(n,0,o)}))}})}}},closeCustomConfig:function(e){void 0!==e&&!0===e&&this.refreshGridInitialize(),this.showColumnConfig=!1},resetCustomConfig:function(){this.refreshGridInitialize()},refreshGridInitialize:function(){var e=this;this.initialize().then((function(){e.refreshGrid=!1;var t=e;setTimeout((function(){t.refreshGrid=!0}),100)}))},loadChildren:function(e,t,n){this.isLazy&&this.loadChildrenNode(e,t,n)},loadChildrenNode:function(e,t,n){var r=this.options.subRowUrl;if("undefined"!==typeof r&&""!==r&&null!==r){var o=[];o.push(e.id?e.id:e.ID),this.fetchData(this.getSearchParam(),!1,o,n)}},expandChange:function(e,t){this.isLazy&&!1===t&&this.$refs.superGrid.store.states.treeData&&(this.$refs.superGrid.store.states.treeData[e.id?e.id:e.ID].loaded=!1)},removeGridStoreSelection:function(e){var t=[];this.$refs.superGrid.store.states.selection&&(t=[].concat(JSON.parse(JSON.stringify(this.$refs.superGrid.store.states.selection))));for(var n=0;n<t.length;n++)if(e&&e.indexOf(t[n][this.parentProp])>=0){this.$refs.superGrid.store.states.selection.splice(n,1),this.$refs.superGrid.store.states.selection.length>0&&this.removeGridStoreSelection(e);break}},changeHederWidth:function(e,t,n,r){var o=this,i=e-5,a=i;this.dragColumnProp=n.property;var s=ze.get(this.code);if(lt("resizeColumn",this.code)){var u=s.options.resizeColumn.call(this,{code:this.code,newWidth:u,oldWidth:t,column:n});u&&(a=u)}this.newWidth=Math.ceil(a),"undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView?this.$emit("changeHederWidth",this.newWidth):this.saveColumnWidth(this.dragColumnProp,this.newWidth).then((function(){var e=o.getColumnByElementColumn(n);e&&e.length>0&&(e[0].widthType="custom",e[0].width=o.newWidth+"")}))},resetSearch:function(){this.currentPage=1,this.search(null,!1)},getColumnInformation:function(){return this.visibleColumns},headerClick:function(e,t){var n=this.getColumnByElementColumn(e);n&&n.length>0?(this.$emit("header-click",n[0]),this.changeHeaderStyleTwo(n[0])):this.$emit("header-click",null),this.clearHeaderContextmenu()},changeHeaderStyleTwo:function(e){"undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView&&(this.createBackgroundColorMap(),this.$set(this.backgroundColorMap,e.prop,"#409EFF"),this.$refs&&this.$refs.superGrid&&this.$refs.superGrid.doLayout())},createBackgroundColorMap:function(){var e=(new Date).getTime(),t=this.getColumnInformation(),n={};if(t&&t.length>0)for(var r=0;r<t.length;r++){var o=t[r];void 0===o.show||o.show||(n[o.prop]="#808080"),this.backgroundColorMap&&"#409EFF"===this.backgroundColorMap[o.prop]&&this.externalClickFlag&&(n[o.prop]="#409EFF")}this.backgroundColorMap=n,this.externalClickFlag=!1,this.$refs&&this.$refs.superGrid&&this.$refs.superGrid.doLayout();var i=(new Date).getTime();console.log("存储表头背景色",i-e)},getColumnByElementColumn:function(e){var t=null;return e.type&&"selection"===e.type?t=this.visibleColumns.filter((function(e){return"$selection"===e.prop})):e.type&&"default"===e.type&&!e.property?t=this.visibleColumns.filter((function(e){return"$index"===e.prop})):e.property&&(t=this.visibleColumns.filter((function(t){return e.property===t.prop}))),t},headerContextmenu:function(e,t){var n=this;t.preventDefault();var r=this.getColumnByElementColumn(e);if(r&&r.length>0){var o=r[0];this.$emit("header-click",r[0]),this.changeHeaderStyleTwo(r[0]),this.showHeaderContextmenu=!0,this.rightClickColumn=o,this.$nextTick((function(){var e=n.$refs.headerMenu.$el,r=document.documentElement.scrollTop||document.body.scrollTop;e.style.display="block",e.style.left=t.clientX+"px",e.style.top=t.clientY+r-10+"px"}))}},clearHeaderContextmenu:function(){this.showHeaderContextmenu=!1,this.rightClickColumn=null},validatorSunTableListData:function(){var e=this.gridData;if(this.isSubTableShowPage&&(e=this.subTableData),e&&e.length>0){for(var t=this.pagination&&this.pagination.pageSize,n=Ut.getValidator(this.code),r=0;r<e.length;r++){var o=e[r],i=!0;st("isEnableValidate",this.code)&&(i=this.gridParams.options.lineEditOptions["isEnableValidate"]);var a=!0;if(!0===i){var s=void 0,u=void 0;this.isSubTableShowPage&&void 0!==t&&t>0&&(s=Math.ceil((r+1)/t),u=r+1-(s-1)*t),a=Ut.validator(o,this.code,r,n,this.isSubTableShowPage,s,u)}if(null!==a&&void 0!==a&&("string"===typeof a||!1===a))return!1}return!0}return!0},getSunTableListData:function(){return this.isSubTableShowPage?this.subTableData:this.gridData},rowDblclickEvent:function(e,t,n){var r=ze.get(this.code);if(r.options&&r.options.isFormSubTable&&r.options.isPdfEditor);else if(this.isFormSubTable){if(t.property&&"operation"!==t.property){var o,i=ze.get(this.code);o=this.isSubTableShowPage?this.subTableData.filter((function(e){return void 0!==e.$editing&&!0===e.$editing})):this.gridData.filter((function(e){return void 0!==e.$editing&&!0===e.$editing})),o&&o.length>0&&o.forEach((function(e){Object(x["k"])(e,"$editing",!1)})),i.isEditRow=!1,Object(x["k"])(e,"$editing",!0),i.$editRow=e,i.isEditRow=!0}}else if(e&&r&&r.lineEdit&&r.lineEdit.editable&&r.canntEdit){var a=this.gridData.findIndex((function(t){return t.id&&t.id===e.id||t.ID&&t.ID===e.ID}));a<0&&(a=0),this.editRow(a)}this.rowDblClick(e,t,n)},rowClickEvent:function(e,t,n){},openPageDialog:function(e){var t;e&&(t=e.jumpMode);var n=e;"popup"===t?(this.jumpPageSetting=n,this.isShowPageDialog=!0):"refresh"===t&&this.$router.push({path:"/dsc/page",query:n})},closePageDialog:function(e){if(this.jumpPageSetting){var t,n=ze.get(this.code),r=this.jumpPageSetting.closeEvent,o=this.jumpPageSetting.row;if(n.options.eventCallBack&&r&&null!==r&&n.options.eventCallBack[r]&&(t=n.options.eventCallBack[r]),t){var i={params:n.additionalParamMap,entity:o};e&&(i.eventParams={popEntity:e.entity,popPageCode:e.pageCode,pageCode:this.pageCode}),t.call(this,i)}}this.isShowPageDialog=!1,this.jumpPageSetting=null},updateValues:function(e,t,n){var r=ze.get(this.code),o=n;if(void 0!==o&&null!==o&&o<this.gridData.length){var i=!1===this.isSql||r.options&&(void 0!==r.options.isAdministerListView&&!0===r.options.isAdministerListView||void 0!==r.options.isFormSubTable&&!0===r.options.isFormSubTable),a=this.tableName;kn(e,t,this.jumpPageSetting,this.gridData[o],a,!i);var s,u=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;r.options.eventCallBack&&u&&null!==u&&r.options.eventCallBack[u]&&(s=r.options.eventCallBack[u]),s&&s.call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.gridData[o],targetTableName:a,isNeedReplaceFieldName:!i})}},closeSearchFormDialog:function(){this.showSearch=!1},getQueryMode:function(){return this.query&&"popup"===this.query.showType?"popup":"embedded"},selectCell:function(e,t,n,r){var o=this;n&&(this.cellClick(e,t,n,r),this.$nextTick((function(){o.$set(n.style,"border","2px solid #409EFF"),o.currentSelectCell=n})))},refreshGridData:function(){this.refresh(!1,!0)},refresData:function(e){this.$set(this,"gridData",e)},refresPortData:function(e,t,n){this.gridData[n]&&(this.$set(this.gridData[n],e,t),this.$forceUpdate())},refresPortsData:function(e,t){if(e)for(var n in e)this.gridData[t]&&(this.$set(this.gridData[t],n,e[n]),this.$forceUpdate(),console.log("this.$forceUpdate()",this.$refs[n]))},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},openFold:function(e){this.resizeTableHeight()},fnProhibitToEdit:function(e){if(e)for(var t in e)console.log("key",t),console.log("this.$refs[key]",this.$refs),this.$refs[t]&&this.$refs[t][0].fnProhibitToEdit(e[t])},prohibitToEdit:function(e){this.fnProhibitToEdit(e)},getTreeProps:function(e,t,n,r){var o={children:"children",hasChildren:"_has_children"};if(e){o={children:"children"};var i="hasChildren";n&&t&&(i="oracle"===r?"HAS_CHILDREN":"has_children"),o.hasChildren=i}return o}})},ys=bs,ws=(n("caf5"),f(ys,ye,we,!1,null,"f85b65c2",null)),_s=ws.exports;_s.install=function(e){e.component(_s.name,_s)};var Cs=_s,xs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.multiple?n("department-user-multi-tree",{attrs:{title:e.title,width:e.width?e.width:"60%",height:e.height,"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{closeDialog:e.closeDialog,closedDialog:e.closedDialog,openDialog:e.openDialog,opendDialog:e.opendDialog}}):e._e(),e.multiple?e._e():n("department-user-single-tree",{attrs:{title:e.title,width:e.width?e.width:"40%","department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser},on:{closeDialog:e.closeDialog,closedDialog:e.closedDialog,openDialog:e.openDialog,opendDialog:e.opendDialog}})],1)},Ss=[],Os=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("openDialog")},opend:function(t){return e.$emit("opendDialog")},close:function(t){return e.$emit("closeDialog")},closed:function(t){return e.$emit("closedDialog")}}},[n("inline-department-user-single-tree",{ref:"inlineDepartmentUser",attrs:{"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},ks=[],Es=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[n("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1,size:"small","select-when-unmatched":""},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",{staticStyle:{padding:"10px",width:"100%"}},[e.searchValue&&0!==e.searchResult.length?e._e():n("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[n("el-tree",{ref:"deparmentUserTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","node-key":"nodeId","render-content":e.renderContent},on:{"node-click":e.handleNodeClick}})],1),e.searchValue&&e.searchValue.length>0&&e.searchResult.length>0?n("div",{staticStyle:{height:"100%",overflow:"hidden"}},[n("user-result",{ref:"userResult",attrs:{"grid-data":e.searchResult,height:e.height,"contain-branch":e.containBranch,multiple:!1},on:{selectResult:e.getSelectUser,resultRowDblclick:e.resultRowDblclick}})],1):e._e()])],1)],1)},Ts=[],Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"}},[n("el-table",{ref:"superGrid",attrs:{data:e.gridData,"row-key":"id","row-class-name":e.tableRowClassName,"max-height":e.myHeight,border:"",fit:""},on:{"row-click":e.rowClick,"row-dblclick":e.rowDblclick}},[!1===e.multiple?n("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-radio",{attrs:{label:t.$index},on:{change:e.selectUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(t.$index+1)+"\n ")])]}}],null,!1,1685606562)}):e._e(),e.multiple&&e.isSearchResult?n("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(t.row),circle:""},on:{click:function(n){return e.addUser(t.$index,t.row)}}})],1)]}}],null,!1,758332263)}):e._e(),e.multiple&&!e.isSearchResult?n("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeUser(t.$index,t.row)}}})],1)]}}],null,!1,3810037523)}):e._e(),e.multiple?n("el-table-column",{attrs:{label:e.$t("superGrid.index"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,2711056793)}):e._e(),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),width:130,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.enName&&""!==t.row.enName.trim()?n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.name+"("+t.row.enName+")"}},[e._v(e._s(t.row.name+"("+t.row.enName+")"))]):n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.name}},[e._v(e._s(t.row.name))])]}}])}),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.loginName"),width:110,prop:"loginName"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.loginName}},[e._v(e._s(t.row.loginName))])]}}])}),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),"min-width":160,prop:"mainDepartmentName"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"ellipsis cell--span",attrs:{title:e.language&&"cn"!==e.language&&t.row.mainDepartmentEnName?t.row.mainDepartmentEnName:t.row.mainDepartmentName}},[e._v(e._s(e.language&&"cn"!==e.language&&t.row.mainDepartmentEnName?t.row.mainDepartmentEnName:t.row.mainDepartmentName))])]}}])}),e.containBranch?n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),width:130,prop:"subCompanyName"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"ellipsis cell--span",attrs:{title:t.row.subCompanyName}},[e._v(e._s(t.row.subCompanyName))])]}}],null,!1,2922352565)}):e._e()],1)],1)},Is=[],Ns={name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},data:function(){var e=this.height;e=e.substring(0,e.indexOf("px"));var t=parseInt(e)+30+"px";return{singleUserIndex:null,selectedUser:null,myHeight:t,language:window.$locale?window.$locale:"cn"}},created:function(){},methods:{removeUser:function(e,t){this.$emit("removeUser",e,t)},addUser:function(e,t){this.$emit("addUser",e,t)},selectUser:function(e){this.$emit("selectResult",this.gridData[e])},rowClick:function(e,t,n){this.singleUserIndex=e.row_index,this.$emit("selectResult",e)},tableRowClassName:function(e){var t=e.row,n=e.rowIndex;t.row_index=n},rowDblclick:function(e,t,n){this.multiple?this.$emit("addUser",null,e):this.$emit("resultRowDblclick",e)},isDisable:function(e){if(this.selectResult){var t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept:function(e){return function(t){return t.id===e.id}}}},As=Ns,Ps=(n("aa7c"),f(As,Ds,Is,!1,null,null,null)),Ms=Ps.exports,Rs={filterAppendNodes:function(e){var t=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/search-users",this.searchParam).then((function(e){if(e){if(t.searchResult=e,0===e.length)return t.searchResult=[],void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}else if(t.searchResult=[],0===e.length)return void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},querySearch:function(e,t){this.search(this.filterText),t([])},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},clickSearch:function(){this.selectNodeInfo=null,this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},initLoadDepartment:function(e,t,n,r,o){var i=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(o)>-1&&this.checkedChildrenUserNodes(t.data,t.data.children);else{var s={parentId:e,needVirtualUser:this.isNeedVirtualUser};t.data&&(s.branchId=t.data.branchId),this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(t){if(n(t),i.$refs.deparmentUserTree.updateKeyChildren(o,t),0===e){var r=t[0].data;i.tenantInfo=JSON.parse(r),i.containBranch=t[0].containBranch,i.departmentInfo&&i.departmentInfo.length>0?i.loadPointDepartments(i):i.loadDepartment(i.tenantNodeId,i.tenantNodeId+"")}}))}},loadDepartment:function(e,t,n,r){var o=this,i={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",i).then((function(e){o.$refs.deparmentUserTree.updateKeyChildren(t,e),o.$refs.deparmentUserTree.store.nodesMap[t]&&(o.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0)}))},loadPointDepartments:function(){var e=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/point-department-users",this.departmentInfo).then((function(t){e.$refs.deparmentUserTree.updateKeyChildren(e.tenantNodeId,t),e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId]&&(e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId].expanded=!0)}))}},Bs=Rs;function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $s={name:"InlineDepartmentUserSingleTree",components:{UserResult:Ms},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"children",isLeaf:"leaf"},searchParam:{userField:null,searchValue:null,treeType:"MAN_DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,searchFields:[],searchField:"name",restaurants:[],searchValue:null,searchResult:[],searchStoreKey:"searchDepartmentUser",tenantInfo:{},selectUser:null,selectNodeInfo:null,notMultipleClickNum:null,notMultipleClickNode:null}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments(this):this.loadDepartment(this.tenantNodeId,this.tenantNodeId+""))}},created:function(){this.searchFields=this.getSearchUserFields()},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:Fs(Fs(Fs({},E),Bs),{},{handleNodeClick:function(e,t,n){if(this.isUserNode(e)){var r=JSON.parse(e.data);r.tenantName=this.tenantInfo.tenantName,r.tenantCode=this.tenantInfo.code,this.packageSelectResult(r),this.notMultipleClickNode&&this.notMultipleClickNode.id===t.id?(this.notMultipleClickNum++,2===this.notMultipleClickNum&&(this.notMultipleClickNum=0,this.notMultipleClickNode=null,this.$emit("result",this.selectNodeInfo))):(this.notMultipleClickNode=t,this.notMultipleClickNum=1);var o=this;setTimeout((function(){o.notMultipleClickNum=0,o.notMultipleClickNode=null}),300)}},packageSelectResult:function(e){var t=e.name;e.enName&&""!==e.enName.trim()&&(t=t+"("+e.enName+")"),this.containBranch&&e.subCompanyName;var n={id:e.id,name:t,zhName:e.name,loginName:e.loginName,email:e.email,telephone:e.telephone,containBranch:this.containBranch,user:e,enName:e.enName,subCompanyName:e.subCompanyName};this.selectNodeInfo=n},isUserNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"USER"===e.nodeType},confirmSelectUser:function(){this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},loadNode:function(e,t){var n=0,r="0";0===e.level?(n=0,r=n+""):(n=e.data.id,r=e.data.nodeId);var o=[];this.$refs.deparmentUserTree&&(o=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,o,r)},renderContent:function(e,t){var n,r=t.node;t.data,t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"USER"===r.data.nodeType?"el-icon-user":"el-icon-date",e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])},getSelectUser:function(e){this.selectUser=e,this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)}})},js=$s,Vs=(n("396f"),f(js,Es,Ts,!1,null,null,null)),zs=Vs.exports,Hs={name:"DepartmentUserSingleTree",components:{InlineDepartmentUserSingleTree:zs},props:{departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},isNeedVirtualUser:{type:Boolean,default:!1}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectPersonnel");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("closeDialog",e)},confirmSelectUser:function(){this.$emit("closeDialog",this.$refs.inlineDepartmentUser.selectNodeInfo)}}},Us=Hs,Ws=f(Us,Os,ks,!1,null,null,null),Gs=Ws.exports,qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{ref:"userDialog",staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("openDialog")},opend:function(t){return e.$emit("opendDialog")},close:function(t){return e.$emit("closeDialog")},closed:function(t){return e.$emit("closedDialog")}}},[n("inline-department-user-multi-tree",{ref:"inlineDepartmentUser",attrs:{"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser,height:e.height,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Ys=[],Ks=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-aside",{attrs:{width:"430px"}},[n("el-container",{staticStyle:{height:"390px"}},[n("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[n("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1,size:"small","select-when-unmatched":""},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():n("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[n("el-tree",{ref:"deparmentUserTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","check-on-click-node":!0,"show-checkbox":"","node-key":"nodeId","render-content":e.renderContent},on:{check:e.handleCheckNode,"check-change":e.handleCheckChange}})],1),e.searchValue&&e.searchValue.length>0?n("div",{staticStyle:{height:"100%",overflow:"hidden"}},[n("user-result",{attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,"contain-branch":e.containBranch,multiple:!0,"is-search-result":!0},on:{addUser:e.selectUser}})],1):e._e()])],1)],1),n("el-container",[n("el-aside",{attrs:{width:"2px"}},[n("table",{staticStyle:{height:"100%","border-left-style":"solid","border-bottom-style":"none","border-right-style":"none","border-top-style":"none","border-left-color":"#cccccc"},attrs:{border:"1px",cellpadding:"0",cellspacing:"0"}})]),n("el-main",{staticStyle:{padding:"10px"}},[n("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentUserTree.selectedPeople"))+":\n ")]),n("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[n("user-result",{attrs:{"grid-data":e.selectResult,height:e.height,"contain-branch":e.containBranch,multiple:!0,"is-search-result":!1},on:{removeUser:e.removeUser}})],1)])],1)],1)],1)},Xs=[],Js={filterAppendNodes:function(e){var t=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/search-users",this.searchParam).then((function(e){if(e){if(0===e.length)return t.searchResult=[],void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")});t.searchResult=e}else if(0===e.length)return void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},querySearch:function(e,t){this.search(this.filterText),t([])},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},clickSearch:function(){this.selectNodeInfo=null,this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},dynamicCheckedUserNodes:function(e){var t=this,n={parentId:e.id,branchId:e.branchId,needVirtualUser:this.isNeedVirtualUser};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",n).then((function(n){t.$refs.deparmentUserTree.updateKeyChildren(e.nodeId,n),t.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=!0,t.staticCheckedUserNodes(e)}))},initLoadDepartment:function(e,t,n,r,o){var i=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(o)>-1&&this.checkedChildrenUserNodes(t.data,t.data.children);else{var s={parentId:e,needVirtualUser:this.isNeedVirtualUser};t.data&&(s.branchId=t.data.branchId),this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(a){if(n(a),i.$refs.deparmentUserTree.updateKeyChildren(o,a),0===e){var s=a[0].data;i.tenantInfo=JSON.parse(s),i.containBranch=a[0].containBranch,i.departmentInfo&&i.departmentInfo.length>0?i.loadPointDepartments():i.loadDepartment(i.tenantNodeId,i.tenantNodeId+"")}i.isClickNode?(i.isClickNode=!1,i.staticCheckedUserNodes(t.data)):r&&r.indexOf(o)>-1&&i.checkedChildrenUserNodes(t.data,t.data.children)}))}},loadDepartment:function(e,t,n,r){var o=this,i={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/department-users",i).then((function(e){o.$refs.deparmentUserTree.updateKeyChildren(t,e),o.$refs.deparmentUserTree.store.nodesMap[t]&&(o.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0),n&&(-1===o.allExpandNodeIds.indexOf(t)&&o.allExpandNodeIds.push(t),o.allExpandNodeIds.length===o.allSearchNodeIds.length&&(o.$refs.deparmentUserTree.filter(r),o.allExpandNodeIds=[],o.allSearchNodeIds=[]))}))},loadPointDepartments:function(){var e=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/point-department-users",this.departmentInfo).then((function(t){e.$refs.deparmentUserTree.updateKeyChildren(e.tenantNodeId,t),e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId]&&(e.$refs.deparmentUserTree.store.nodesMap[e.tenantNodeId].expanded=!0)}))},getChildrenDepartmentUsers:function(e){var t=this;return new Promise((function(n,r){t.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/user-in-departments",e).then((function(e){n(e)}))}))},getSelectUsers:function(e,t,n){return new Promise((function(r,o){e&&t?O.a.prototype.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){r(e)})).catch((function(e){o(e)})):r([])}))},packageAllUser:function(){var e=-1,t={id:e,name:"所有用户"};return t},packageAllWgUser:function(){var e=-1,t={id:e,name:"所有工作组人员"};return t},initSelectUsers:function(e,t,n){var r=this;return new Promise((function(o,i){var a=[];t?"所有用户"===t?(a.push(r.packageAllUser()),o(a)):"所有工作组人员"===t?(a.push(r.packageAllWgUser()),o(a)):r.getSelectUsers(e,t,n).then((function(e){o(e)})).catch((function(e){i(e)})):o(a)}))}},Zs=Js;function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tu={name:"InlineDepartmentUserMultiTree",components:{UserResult:Ms},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"children",isLeaf:"leaf",disabled:"disabled"},searchParam:{userField:null,searchValue:null,treeType:"MAN_DEPARTMENT_TREE",departmentInfo:null},containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchResult:[],selectResult:[],searchStoreKey:"searchDepartmentUser",tenantInfo:{}}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId,this.tenantNodeId+""))}},created:function(){var e=this;this.initSelectUsers(this.searchField,this.selectUserInfo,this.separator).then((function(t){t&&(e.selectResult=t)}))},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:eu(eu(eu({},E),Zs),{},{selectUser:function(e,t){if(this.isContainAllUser())this.alertByAllUser();else{var n=this.selectResult.filter(this.filterUser(t));n&&0===n.length&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t))}},removeUser:function(e,t){var n=this;if(t.nodeId){var r=t.nodeId;this.$refs.deparmentUserTree&&r&&this.$refs.deparmentUserTree.setChecked(r,!1)}else if(this.$refs.deparmentUserTree){var o=this.$refs.deparmentUserTree.getCheckedKeys(),i=o.filter(this.filterUserNode(t));i.length>0&&i.forEach((function(e){n.$refs.deparmentUserTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.deparmentUserTree&&this.$refs.deparmentUserTree.setCheckedKeys([])},filterUserNode:function(e){return function(t){var n="~",r=t.substring(t.lastIndexOf(n)+1);return r===e.id+""}},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},clickSearch:function(){this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},handleCheckChange:function(e,t,n){if(this.isUserNode(e)&&t){var r=JSON.parse(e.data),o=this.packageSelectUser(r);o&&this.selectResult.push(o)}},packageSelectUser:function(e){if(!this.isContainAllUser()){var t=this.selectResult.filter(this.filterUser(e));if(t&&0===t.length){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var n={id:e.id,name:e.name,zhName:e.name,loginName:e.loginName,email:e.email,telephone:e.telephone,mainDepartmentName:e.mainDepartmentName,subCompanyName:e.subCompanyName,user:e,enName:e.enName};return n}return null}this.alertByAllUser()},isContainAllUser:function(){return this.selectResult.length>0&&this.selectResult[0].id===this.tenantNodeId},packageAllUserToResult:function(){if(!this.isContainAllUser()){var e={id:this.tenantNodeId,name:"所有用户"};return e}return null},filterUser:function(e){return function(t){return t.id===e.id}},handleCheckNode:function(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?this.isContainAllUser()?this.alertByAllUser():this.checkedNodeToSelectResult(e):this.cancelChildCheckedNodes(e)},alertByAllUser:function(){var e=this;this.$alert(this.$t("imatrixUIMessage.pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")}).then((function(){e.$refs.deparmentUserTree&&e.$refs.deparmentUserTree.setCheckedKeys([])}))},checkedNodeToSelectResult:function(e){if(this.isSelectTenantNode(e.id)){var t=this.packageAllUserToResult();t&&(this.selectResult=[],t.nodeId=this.tenantNodeId+"",this.selectResult.push(t))}else this.checkedNode(e)},cancelCheckedNodeAndChildren:function(e){var t=this;e.id!==this.tenantNodeId&&this.$refs.deparmentUserTree.setChecked(this.tenantNodeId+"",!1);var n=e.children;n&&n.forEach((function(e){t.$refs.deparmentUserTree.setChecked(e.nodeId,!1),t.cancelCheckedNodeAndChildren(e)}))},checkedNode:function(e){var t=this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded;t?this.checkedChildrenUserNodes(e,e.children):e.leaf||(e.children?this.staticCheckedUserNodes(e):this.dynamicCheckedUserNodes(e))},cancelChildCheckedNodes:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.deparmentUserTree.setChecked(e.nodeId,!1),t.cancelChildCheckedNodes(e)}))},checkedChildrenUserNodes:function(e,t){var n=this;if(t){var r=[];t.forEach((function(e){if("USER"===e.nodeType){n.$refs.deparmentUserTree.setChecked(e.nodeId,!0);var t=JSON.parse(e.data),o=n.packageSelectUser(t);o&&(o.nodeId=e.nodeId,n.selectResult.push(o))}else"DEPARTMENT"===e.nodeType?(n.$refs.deparmentUserTree.setChecked(e.nodeId,!0),r.push(e.id)):n.$refs.deparmentUserTree.setChecked(e.nodeId,!1);n.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded&&n.checkedChildrenUserNodes(e)})),this.packageChildrenDepartmentUsers(r)}e.id===this.tenantNodeId&&this.$refs.deparmentUserTree.setCheckedKeys([]),this.$refs.deparmentUserTree.setChecked(e.nodeId,!0)},packageChildrenDepartmentUsers:function(e){var t=this;e&&e.length>0&&this.getChildrenDepartmentUsers(e).then((function(e){e.forEach((function(e){var n=t.packageSelectUser(e);n&&t.selectResult.push(n)}))}))},staticCheckedUserNodes:function(e){this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedChildrenUserNodes(e,e.children)},handleNodeClick:function(e,t,n){var r=[];if(this.$refs.deparmentUserTree&&(r=this.$refs.deparmentUserTree.getCheckedKeys()),r.indexOf(e.nodeId)>-1)this.$refs.deparmentUserTree.setChecked(e.nodeId,!1),this.cancelChildCheckedNodes(e),this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=!0;else if(this.isContainAllUser()){var o=this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded,i=!o;this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=i,this.alertByAllUser()}else if(this.isSelectTenantNode(e.id)){var a=this.packageAllUserToResult();a&&(this.selectResult=[],a.nodeId=this.tenantNodeId+"",this.selectResult.push(a)),this.staticCheckedUserNodes(e)}else{var s=e.children;s&&s.length>0?this.staticCheckedUserNodes(e):e.nodeType&&"USER"===e.nodeType?this.$refs.deparmentUserTree.setChecked(e.nodeId,!0):this.isClickNode=!0}},isUserNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"USER"===e.nodeType},confirmSelectUser:function(){var e={userIds:[],userNames:[],userZhNames:[],userEnNames:[],loginNames:[],emails:[],telephones:[],users:[]},t=!1;if(0===this.selectResult.length)t=!0;else for(var n=0;n<this.selectResult.length;n++){var r=this.selectResult[n];e.userIds.push(r.id),e.loginNames.push(r.loginName),r.email&&""!==r.email&&e.emails.push(r.email),r.telephone&&""!==r.telephone&&e.telephones.push(r.telephone),r.user?e.users.push(r.user):e.users.push(r);var o=r.name;e.userZhNames.push(o),r.enName&&""!==r.enName.trim()?(e.userEnNames.push(r.enName),o=o+"("+r.enName+")"):e.userEnNames.push(""),e.userNames.push(o)}e.userIds.length>0?(e.containBranch=this.containBranch,this.$emit("result",e)):t=!0,t&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.departmentInfo||0===this.departmentInfo.length)},loadNode:function(e,t){var n=0,r="0";0===e.level?(n=0,r=n+""):(n=e.data.id,r=e.data.nodeId);var o=[];this.$refs.deparmentUserTree&&(o=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,o,r)},renderContent:function(e,t){var n,r=t.node;t.data,t.store;return n=-1===r.data.id||r.data.branch?"el-icon-menu":-2===r.data.id||-3===r.data.id?"el-icon-tickets":"USER"===r.data.nodeType?"el-icon-user":"el-icon-date",e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])}})},nu=tu,ru=(n("eff8"),f(nu,Ks,Xs,!1,null,null,null)),ou=ru.exports,iu={name:"DepartmentUserMultiTree",components:{InlineDepartmentUserMultiTree:ou},props:{departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"60%"},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectPersonnel");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("closeDialog",e)},confirmSelectUser:function(){this.$refs.inlineDepartmentUser.confirmSelectUser()}}},au=iu,su=(n("22ab"),f(au,qs,Ys,!1,null,null,null)),uu=su.exports,lu={name:"DepartmentUserTree",components:{DepartmentUserSingleTree:Gs,DepartmentUserMultiTree:uu},props:{multiple:{type:Boolean,default:!0},departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectPersonnel");return this.title&&(e=this.title),{myTitle:e}},methods:{closeDialog:function(e){this.$emit("close",e)},closedDialog:function(){this.$emit("closed")},openDialog:function(){this.$emit("open")},opendDialog:function(){this.$emit("opend")}}},cu=lu,fu=f(cu,xs,Ss,!1,null,null,null),du=fu.exports;du.install=function(e){e.component(du.name,du)};var hu=du,pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("inline-workgroup-tree",{ref:"workgroupTree",attrs:{multiple:e.multiple,"branch-info":e.branchInfo},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroup}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},mu=[],gu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-header",{staticStyle:{"text-align":"right","font-size":"12px"}},[n("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{"select-when-unmatched":"","fetch-suggestions":e.querySearch,placeholder:e.$t("imatrixUIMessage.pleaseEnterTeamName"),"trigger-on-focus":!1},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",[n("el-tree",{ref:"workgroupTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":e.multiple,"node-key":"id","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{check:e.handleCheckNode,"node-click":e.handleNodeClick}})],1)],1)],1)},vu=[],bu={initLoad:function(e,t,n,r){var o=this,i={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroups",i).then((function(i){if(n(i),o.$refs.workgroupTree.updateKeyChildren(e,i),0===e){var a=i[0].data;o.tenantInfo=JSON.parse(a),o.containBranch=i[0].containBranch,o.loadWorkgroup(o.tenantNodeId)}r&&r.indexOf(e)>-1&&e===o.tenantNodeId&&o.checkedAllWorkgroups(t.data)}))},loadWorkgroup:function(e){var t=this,n={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroups",n).then((function(n){t.$refs.workgroupTree.updateKeyChildren(e,n),t.$refs.workgroupTree.store.nodesMap[e]&&(t.$refs.workgroupTree.store.nodesMap[e].expanded=!0)}))}},yu=bu;function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wu(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu={name:"InlineWorkgroupTree",props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"name",children:"children",isLeaf:"leaf"},containBranch:!1,tenantNodeId:-1,restaurants:[],searchValue:null,searchStoreKey:"searchWorkgroup",selectNodeInfo:null,tenantInfo:{}}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.loadWorkgroup(this.tenantNodeId))}},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:_u(_u(_u({},E),yu),{},{handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e,this.$refs.workgroupTree.filter(e)},clickSearch:function(){this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},filterNode:function(e,t,n){if(e){var r=t.name;return t.id!==this.tenantNodeId&&(this.containBranch&&(r=r.substring(0,r.lastIndexOf("("))),-1!==r.indexOf(e))}return!0},handleCheckNode:function(e,t){t.checkedKeys.indexOf(e.id)>-1?e.id===this.tenantNodeId&&this.checkedAllWorkgroups(e):e.id===this.tenantNodeId&&this.$refs.workgroupTree.setCheckedKeys([])},checkedAllWorkgroups:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.workgroupTree.setChecked(e.id,!0)}))},handleNodeClick:function(e,t,n){this.multiple&&this.clickNodeWhenMultiple(e),this.selectSingleNode(e,!1)},selectSingleNode:function(e,t){if(this.isWorkgroupNode(e)&&!this.multiple){var n=JSON.parse(e.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName;var r={id:e.id,name:e.name,code:n.code,containBranch:this.containBranch,workgroup:n};this.selectNodeInfo=r,!0===t&&this.$emit("result",r)}},clickNodeWhenMultiple:function(e){var t=[];this.$refs.workgroupTree&&(t=this.$refs.workgroupTree.getCheckedKeys()),this.$refs.workgroupTree.store.nodesMap[e.id].expanded=!0,t.indexOf(e.id)>-1?(this.$refs.workgroupTree.setChecked(e.id,!1),e.id===this.tenantNodeId&&this.$refs.workgroupTree.setCheckedKeys([])):(this.$refs.workgroupTree.setChecked(e.id,!0),e.id===this.tenantNodeId&&this.checkedAllWorkgroups(e))},isWorkgroupNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"WORKGROUP"===e.nodeType},selectWorkgroup:function(){var e=!1;if(this.multiple){var t={ids:[],names:[],codes:[],workgroups:[]},n=this.$refs.workgroupTree.getCheckedNodes();if(n)if(0===n.length)e=!0;else{for(var r=0;r<n.length;r++){var o=n[r];if(o.id!==this.tenantNodeId){var i=JSON.parse(o.data);this.addSelectedWorkgroupInfo(t,o,i)}}t.ids.length>0?this.$emit("result",t):e=!0}else e=!0}else{var a=this.$refs.workgroupTree.getCurrentNode();a&&null!==a?this.selectSingleNode(a,!0):e=!0}e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectATeam"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},addSelectedWorkgroupInfo:function(e,t,n){n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName,e.containBranch=this.containBranch,e.ids.push(t.id),e.workgroups.push(n),e.codes.push(n.code),e.names.push(t.name)},loadNode:function(e,t){var n=0;n=0===e.level?0:e.data.id;var r=[];this.$refs.workgroupTree&&(r=this.$refs.workgroupTree.getCheckedKeys()),this.initLoad(n,e,t,r)},renderContent:function(e,t){var n,r=t.node,o=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",o.nodeType&&"WORKGROUP"===o.nodeType&&this.searchValue&&o.name.indexOf(this.searchValue)>-1?e("span",[e("i",{class:n}),e("span",{class:"searchResult",attrs:{title:r.label}},[r.label])]):e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])}})},xu=Cu,Su=(n("cdf0"),f(xu,gu,vu,!1,null,null,null)),Ou=Su.exports,ku={name:"WorkgroupTree",components:{InlineWorkgroupTree:Ou},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectATeam");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("close",e)},selectWorkgroup:function(){this.$refs.workgroupTree.selectWorkgroup()}}},Eu=ku,Tu=f(Eu,pu,mu,!1,null,null,null),Du=Tu.exports;Du.install=function(e){e.component(Du.name,Du)};var Iu=Du,Nu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("inline-workgroup-user-tree",{ref:"workgroupUserTree",attrs:{multiple:e.multiple,"branch-info":e.branchInfo,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroupUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Au=[],Pu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-container",{staticStyle:{height:"395px"}},[n("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[n("el-autocomplete",{staticClass:"inline-input inline-input-custom",attrs:{size:"small","select-when-unmatched":"","fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),"trigger-on-focus":!1},on:{select:e.handleSelect},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.clickSearch.apply(null,arguments)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),n("el-main",{staticStyle:{padding:"10px"}},[n("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[n("el-tree",{ref:"workgroupUserTree",attrs:{props:e.defaultProps,load:e.loadNode,lazy:"","show-checkbox":e.multiple,"node-key":"nodeId","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{check:e.handleCheckNode,"node-click":e.handleNodeClick}})],1)])],1)],1)},Mu=[],Ru={filterAppendNodes:function(e){var t=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/searches",this.searchParam).then((function(n){if(n){if(0===n.length)return void t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")});n.forEach((function(n){var r=n,o="~";n.indexOf(o)>-1&&(r=n.substring(n.indexOf("~")+1)),-1===t.allSearchNodeIds.indexOf(n)&&(t.allSearchNodeIds.push(n),t.loadWorkgroup(r,n,!0,e))}))}else t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))},checkedNode:function(e,t){var n=this,r=e.children;if(r&&r.length>0)this.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e);else if(!e.leaf)if(t)this.isClickNode=!0;else{var o={parentId:e.id,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",o).then((function(t){n.$refs.workgroupUserTree.updateKeyChildren(e.nodeId,t),n.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,n.checkedNodeAndChildren(e)}))}},getAllSelectedWorkgroupUsers:function(e,t){var n=this;this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/user-in-workgroups",e).then((function(e){e.forEach((function(e){n.addSelectedUserInfo(t,e)})),t.userIds.length>0?n.$emit("result",t):n.$alert(Object(x["e"])().t("imatrixUIMessage.pleaseSelectPersonnel"),Object(x["e"])().t("imatrixUIMessage.tips"),{confirmButtonText:Object(x["e"])().t("imatrixUIPublicModel.sure")})}))},loadNode:function(e,t){var n=0,r="0";0===e.level?(n=0,r="0"):(n=e.data.id,r=e.data.nodeId);var o=[];this.$refs.workgroupUserTree&&(o=this.$refs.workgroupUserTree.getCheckedKeys()),this.initLoad(n,r,e,t,o)},initLoad:function(e,t,n,r,o){var i=this,a={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",a).then((function(a){if(r(a),i.$refs.workgroupUserTree.updateKeyChildren(t,a),0===e){var s=a[0].data;i.tenantInfo=JSON.parse(s),i.containBranch=a[0].containBranch,i.loadWorkgroup(i.tenantNodeId,i.tenantNodeId+"")}i.isClickNode?(i.isClickNode=!1,i.checkedNode(n.data)):o&&o.indexOf(t)>-1&&i.checkedNode(n.data)}))},loadWorkgroup:function(e,t,n,r){var o=this,i={parentId:e,departmentInfo:this.branchInfo};this.$http.post(O.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",i).then((function(e){o.$refs.workgroupUserTree.updateKeyChildren(t,e),o.$refs.workgroupUserTree.store.nodesMap[t]&&(o.$refs.workgroupUserTree.store.nodesMap[t].expanded=!0),n&&(-1===o.allExpandNodeIds.indexOf(t)&&o.allExpandNodeIds.push(t),o.allExpandNodeIds.length===o.allSearchNodeIds.length&&(o.$refs.workgroupUserTree.filter(r),o.allExpandNodeIds=[],o.allSearchNodeIds=[]))}))}},Bu=Ru;function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $u={name:"InlineWorkgroupUserTree",props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){return{filterText:"",defaultProps:{id:"id",label:"name",children:"children",isLeaf:"leaf"},searchParam:{userField:null,searchValue:null,treeType:"MAN_GROUP_TREE",departmentInfo:null},containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchWorkgroupUser",selectNodeInfo:null,tenantInfo:{}}},computed:{},watch:{filterText:function(e){e||(this.searchValue=e,this.loadWorkgroup(this.tenantNodeId,this.tenantNodeId+""))}},created:function(){},mounted:function(){var e=_["a"].getObject(this.searchStoreKey);this.restaurants=e||[]},methods:Fu(Fu(Fu({},E),Bu),{},{handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e;var t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.branchInfo,this.filterAppendNodes(e)},clickSearch:function(){this.storeSeachValue(_["a"],this.searchStoreKey,this.filterText),this.search(this.filterText)},filterNode:function(e,t,n){if(e){if(t.nodeType&&"USER"===t.nodeType){var r=JSON.parse(t.data);return this.filterUserVal(r,e)}return!1}return!0},filterUserVal:function(e,t){for(var n=["name","loginName","email","telephone","jobNumber","honorificName"],r=!1,o=0;o<n.length;o++){var i=n[o],a=e[i];if(!(-1!==a.indexOf(t)||"name"===i&&e["enName"]&&-1!==e["enName"].indexOf(t))){r=!1;break}r=!0}return r},handleCheckNode:function(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?this.checkedNode(e,!1):this.cancelCheckedNode(e)},checkedNodeAndChildren:function(e){var t=this;this.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,this.$refs.workgroupUserTree.setChecked(e.nodeId,!0);var n=e.children;n&&n.forEach((function(e){t.checkedNodeAndChildren(e)}))},cancelCheckedNode:function(e){e.id===this.tenantNodeId?this.$refs.workgroupUserTree.setCheckedKeys([]):e.nodeType&&"WORKGROUP"===e.nodeType&&this.cancelCheckedUserNodesWithWorkgroup(e)},checkedAllWorkgroups:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.workgroupUserTree.setChecked(e.nodeId,!0)}))},cancelCheckedUserNodesWithWorkgroup:function(e){var t=this,n=e.children;n&&n.forEach((function(e){t.$refs.workgroupUserTree.setChecked(e.nodeId,!1)}))},handleNodeClick:function(e,t,n){this.multiple&&this.clickNodeWhenMultiple(e),this.selectSingleNode(e,!1)},selectSingleNode:function(e,t){if(this.isUserNode(e)&&!this.multiple){var n=JSON.parse(e.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName;var r=n.name;n.enName&&""!==n.enName.trim()&&(r=r+"("+n.enName+")");var o={id:n.id,name:r,loginName:n.loginName,email:n.email,telephone:n.telephone,containBranch:this.containBranch,user:n,enName:n.enName,subCompanyName:n.subCompanyName};this.selectNodeInfo=o,!0===t&&this.$emit("result",o)}},clickNodeWhenMultiple:function(e){var t=[];this.$refs.workgroupUserTree&&(t=this.$refs.workgroupUserTree.getCheckedKeys()),this.$refs.workgroupUserTree.store.nodesMap[e.nodeId].expanded=!0,t.indexOf(e.nodeId)>-1?(this.$refs.workgroupUserTree.setChecked(e.nodeId,!1),this.cancelCheckedNode(e)):(this.$refs.workgroupUserTree.setChecked(e.nodeId,!0),this.checkedNode(e,!0))},isUserNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"USER"===e.nodeType},selectWorkgroupUser:function(){var e=this,t=!1;if(this.multiple){var n={userIds:[],userNames:[],loginNames:[],emails:[],telephones:[],users:[]},r=[],o=this.$refs.workgroupUserTree.getCheckedNodes();if(o)if(0===o.length)t=!0;else{for(var i=0;i<o.length;i++){var a=o[i];if(this.isSelectTenantNode(a.id)){n.userIds=[],n.userNames=[],n.userIds.push(a.id),n.userNames.push("所有工作组人员");break}if(a.id!==this.tenantNodeId)if(a.leaf){if(this.isUserNode(a)){var s=JSON.parse(a.data);this.addSelectedUserInfo(n,s)}}else{var u=a.children;u&&u.length>0?u.forEach((function(t){var r=JSON.parse(t.data);e.addSelectedUserInfo(n,r)})):r.push(a.id)}}r.length>0?(this.getAllSelectedWorkgroupUsers(r,n),t=!1):n.userIds.length>0?this.$emit("result",n):t=!0}else t=!0}else{var l=this.$refs.workgroupUserTree.getCurrentNode();l&&null!==l?this.selectSingleNode(l,!0):t=!0}t&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.branchInfo||0===this.branchInfo.length)},addSelectedUserInfo:function(e,t){var n=e.userIds.filter(this.filterUserNode(t));if(0===n.length){var r=t.name;t.enName&&""!==t.enName&&(r=r+"("+t.enName+")"),t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,e.containBranch=this.containBranch,e.users.push(t),e.userIds.push(t.id),e.loginNames.push(t.loginName),e.userNames.push(r),e.emails.push(t.email),e.telephones.push(t.telephone)}},filterUserNode:function(e){return function(t){return t===e.id}},renderContent:function(e,t){var n,r=t.node,o=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",o.nodeType&&"USER"===o.nodeType&&this.searchValue&&this.filterUserVal(o,this.searchValue)?e("span",[e("i",{class:n}),e("span",{class:"searchResult",attrs:{title:r.label}},[r.label])]):e("span",[e("i",{class:n}),e("span",{attrs:{title:r.label}},[r.label])])}})},ju=$u,Vu=(n("d601"),f(ju,Pu,Mu,!1,null,null,null)),zu=Vu.exports,Hu={name:"WorkgroupUserTree",components:{InlineWorkgroupUserTree:zu},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){var e=this.$t("imatrixUIMessage.pleaseSelectATeam");return this.title&&(e=this.title),{myTitle:e}},methods:{result:function(e){this.$emit("close",e)},selectWorkgroupUser:function(){this.$refs.workgroupUserTree.selectWorkgroupUser()}}},Uu=Hu,Wu=f(Uu,Nu,Au,!1,null,null,null),Gu=Wu.exports;Gu.install=function(e){e.component(Gu.name,Gu)};var qu=Gu;Q.install=function(e){e.component(Q.name,Q)};var Yu=Q,Ku=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.multiple?n("inline-department-user-multi-tree",{ref:"userTree",attrs:{height:e.height,"department-info":e.departmentInfo,"select-user-info":e.selectUserInfo,"search-field":e.searchField,separator:e.separator},on:{result:e.result}}):e._e(),e.multiple?e._e():n("inline-department-user-single-tree",{ref:"userTree",attrs:{height:e.height,"department-info":e.departmentInfo},on:{result:e.result}})],1)},Xu=[],Ju={name:"InlineDepartmentUserTree",components:{InlineDepartmentUserSingleTree:zs,InlineDepartmentUserMultiTree:ou},props:{multiple:{type:Boolean,default:!0},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},isNeedVirtualUser:{type:Boolean,default:!1},selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},separator:{type:String,default:","}},data:function(){return{selectNodeInfo:null}},methods:{result:function(e){this.selectNodeInfo=e,this.$emit("result",e)},confirmSelectUser:function(){this.$refs.userTree.confirmSelectUser()}}},Zu=Ju,Qu=f(Zu,Ku,Xu,!1,null,null,null),el=Qu.exports;el.install=function(e){e.component(el.name,el)};var tl=el;Ou.install=function(e){e.component(Ou.name,Ou)};var nl=Ou;zu.install=function(e){e.component(zu.name,zu)};var rl=zu,ol=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",["undefined"!==typeof e.buttonInfo["theTransactor"]&&!1===e.buttonInfo["theTransactor"]?n("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._t("errorArea"),e._t(e.slotAfter)],2):n("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._l(e.buttons,(function(t,r){return n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:t.permission,expression:"button.permission"}],key:r,class:t.code?t.code:"",attrs:{disabled:e.preventReclick,type:t.type,size:"small"},on:{click:t.clickFun}},[e._v("\n "+e._s(t.i18nButtonName)+"\n ")])})),e._t(e.slotAfter)],2)])},il=[];function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ul={name:"WorkflowButton",props:{buttonInfo:{type:Object,default:null},hiddenBtns:{type:Array,default:null},permissionPrefix:{type:String,default:null},formButtonPosition:{type:String,default:null}},data:function(){var e=this.getButtonsPermission();return{slotBefore:"before",slotAfter:"after",buttons:[],buttonsPermission:e}},computed:sl({},Object(Nn["a"])(["preventReclick"])),provide:function(){return{}},created:function(){var e=[],t=this;("undefined"===typeof this.buttonInfo["processState"]||null===this.buttonInfo["processState"]||"UNSUBMIT"===this.buttonInfo["processState"]&&"WAIT_TRANSACT"===this.buttonInfo["active"])&&("undefined"!==typeof this.buttonInfo["processState"]&&!0!==this.buttonInfo["showButtonSave"]||e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["saveButton"]),permission:this.buttonsPermission["save"],type:"primary",clickFun:function(){t.$emit("save")},code:"saveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["submitProcess"],type:"primary",clickFun:function(){t.$emit("submitProcess")},code:"submitButton"})),this.buttonInfo["processState"]&&("WAIT_TRANSACT"===this.buttonInfo["active"]&&"TYPE_READ"===this.buttonInfo["processingMode"]?(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("readButton"))&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["readButton"]),permission:this.buttonsPermission["completeTask"],type:"primary",clickFun:function(){t.completeTask("READED")},code:"readButton"}):"SUBMIT"===this.buttonInfo["processState"]&&("TYPE_READ"===this.buttonInfo["processingMode"]||!this.buttonInfo["showButtonSave"]||"WAIT_TRANSACT"!==this.buttonInfo["active"]&&"WAIT_DESIGNATE_TRANSACTOR"!==this.buttonInfo["active"]&&"WAIT_CHOICE_TACHE"!==this.buttonInfo["active"]&&"DRAW_WAIT"!==this.buttonInfo["active"]||e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["saveButton"]),permission:this.buttonsPermission["update"],type:"primary",clickFun:function(){t.$emit("update")},code:"saveButton"}),this.buttonInfo["active"]&&"WAIT_DESIGNATE_TRANSACTOR"===this.buttonInfo["active"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("selectTransactor"))&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["selectTransactor"],type:"primary",clickFun:function(){t.$emit("selectTransactors")},code:"submitButton"}),this.buttonInfo["active"]&&"WAIT_CHOICE_TACHE"===this.buttonInfo["active"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("selectTache"))&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["selectTache"],type:"primary",clickFun:function(){t.$emit("selectTaches")},code:"submitButton"}),this.buttonInfo["active"]&&"DRAW_WAIT"===this.buttonInfo["active"]&&this.buttonInfo["showButtonDraw"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["drawButton"]),permission:this.buttonsPermission["drawTask"],type:"primary",clickFun:function(){t.$emit("drawTask")},code:"drawButton"}),this.buttonInfo["drawTask"]&&"WAIT_TRANSACT"===this.buttonInfo["active"]&&this.buttonInfo["showButtonAbandon"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["abandonButton"]),permission:this.buttonsPermission["abandonReceive"],type:"primary",clickFun:function(){t.$emit("abandonDraw")},code:"abandonButton"}),"COMPLETED"===this.buttonInfo["active"]&&"TYPE_READ"!==this.buttonInfo["processingMode"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("retrieveButton"))&&this.buttonInfo["showButtonGetBack"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["backButton"]),permission:this.buttonsPermission["retrieve"],type:"primary",clickFun:function(){t.$emit("retrieveTask")},code:"backButton"}),"WAIT_TRANSACT"===this.buttonInfo["active"]&&"EDIT"===this.buttonInfo["processingMode"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["submitButton"]),permission:this.buttonsPermission["submitTask"],type:"primary",clickFun:function(){t.completeTask("SUBMIT")},code:"submitButton"}),"WAIT_TRANSACT"!==this.buttonInfo["active"]||"APPROVE"!==this.buttonInfo["processingMode"]&&"COUNTERSIGN"!==this.buttonInfo["processingMode"]||(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["agreeButton"]),permission:this.buttonsPermission["approve"],type:"primary",clickFun:function(){t.completeTask("APPROVE")},code:"agreeButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["disagreeButton"]),permission:this.buttonsPermission["refuse"],type:"primary",clickFun:function(){t.completeTask("REFUSE")},code:"disagreeButton"}),"COUNTERSIGN"===this.buttonInfo["processingMode"]&&this.buttonInfo["showButtonAddCounter"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["addSignerButton"]),permission:this.buttonsPermission["addSigner"],type:"primary",clickFun:function(){t.$emit("addSigner")},code:"addSignerButton"}),"COUNTERSIGN"===this.buttonInfo["processingMode"]&&this.buttonInfo["showButtonDelCounter"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["removeSignerButton"]),permission:this.buttonsPermission["removeSigner"],type:"primary",clickFun:function(){t.$emit("removeSigner")},code:"removeSignerButton"})),"WAIT_TRANSACT"===this.buttonInfo["active"]&&"VOTE"===this.buttonInfo["processingMode"]&&(e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["approveButton"]),permission:this.buttonsPermission["agreement"],type:"primary",clickFun:function(){t.completeTask("AGREEMENT")},code:"approveButton"}),e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["opposeButton"]),permission:this.buttonsPermission["oppose"],type:"primary",clickFun:function(){t.completeTask("OPPOSE")},code:"opposeButton"}),this.buttonInfo["showButtonKiken"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["abstainButton"]),permission:this.buttonsPermission["kiken"],type:"primary",clickFun:function(){t.completeTask("KIKEN")},code:"abstainButton"})),"WAIT_TRANSACT"===this.buttonInfo["active"]&&"TYPE_READ"!==this.buttonInfo["processingMode"]&&this.buttonInfo["showButtonCopy"]&&(!this.hiddenBtns||this.hiddenBtns&&-1===this.hiddenBtns.indexOf("copyButton"))&&this.buttonInfo["showButtonCopy"]&&e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["copyButton"]),permission:this.buttonsPermission["copyTask"],type:"",clickFun:function(){t.$emit("createCopyTask")},code:"copyButton"}),"TYPE_READ"===this.buttonInfo["processingMode"]||"WAIT_TRANSACT"!==this.buttonInfo["active"]&&"DRAW_WAIT"!==this.buttonInfo["active"]||this.hiddenBtns&&(!this.hiddenBtns||-1!==this.hiddenBtns.indexOf("assignButton"))||!this.buttonInfo["showButtonAppoint"]||e.push({i18nButtonName:this.i18nButtonName(this.buttonInfo["appointButton"]),permission:this.buttonsPermission["assign"],type:"",clickFun:function(){t.$emit("assignTask")},code:"appointButton"}))),"bottomRight"===this.formButtonPosition?(this.buttons=e.slice().reverse(),this.slotBefore="after",this.slotAfter="before"):this.buttons=e},mounted:function(){},methods:{exportReportButt:function(){this.$emit("exportReport")},completeTask:function(e){this.$emit("completeTask",e)},i18nButtonName:function(e){var t="initVal:";if(e.indexOf(t)>=0){var n=e.substring(e.indexOf(t)+t.length);return this.$t("workflowButton."+n)}return e},getButtonsPermission:function(){var e="true",t=this.permissionPrefix?this.permissionPrefix+".completeTask":e;return{save:this.permissionPrefix?this.permissionPrefix+".save":e,submitProcess:this.permissionPrefix?this.permissionPrefix+".submitProcess":e,approve:this.permissionPrefix?this.permissionPrefix+".approve":t,refuse:this.permissionPrefix?this.permissionPrefix+".refuse":t,submitTask:this.permissionPrefix?this.permissionPrefix+".submit":t,agreement:this.permissionPrefix?this.permissionPrefix+".agreement":t,oppose:this.permissionPrefix?this.permissionPrefix+".oppose":t,kiken:this.permissionPrefix?this.permissionPrefix+".kiken":t,readed:this.permissionPrefix?this.permissionPrefix+".readed":t,drawTask:this.permissionPrefix?this.permissionPrefix+".drawTask":e,abandonReceive:this.permissionPrefix?this.permissionPrefix+".abandonReceive":e,retrieve:this.permissionPrefix?this.permissionPrefix+".retrieve":e,update:this.permissionPrefix?this.permissionPrefix+".update":e,assign:this.permissionPrefix?this.permissionPrefix+".assign":e,selectTransactor:this.permissionPrefix?this.permissionPrefix+".selectTransactor":e,selectTache:this.permissionPrefix?this.permissionPrefix+".selectTache":e,copyTask:this.permissionPrefix?this.permissionPrefix+".copyTask":e,addSigner:this.permissionPrefix?this.permissionPrefix+".addSigner":e,removeSigner:this.permissionPrefix?this.permissionPrefix+".removeSigner":e,exportReport:this.permissionPrefix?this.permissionPrefix+".exportReport":e}}}},ll=ul,cl=f(ll,ol,il,!1,null,null,null),fl=cl.exports;fl.install=function(e){e.component(fl.name,fl)};var dl=fl,hl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loaded?n("el-table",{attrs:{data:e.histories,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":"","row-key":"uuid","tree-props":{children:"children",hasChildren:"hasChildren"},lazy:"",load:e.getChildren}},[n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.index"),align:"left",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,1480515225)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.taskName"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_START"===t.row.historyType?n("span",[e._v(e._s(e.$t("workflowHistoryList.processStart")))]):t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span",[e._v(e._s(e.$t("workflowHistoryList.processEnd")))]):t.row.current?n("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(e.i18nTaskName(t.row)))]):t.row.special?!0===t.row.special?n("span",{staticStyle:{color:"red"}},[e._v(e._s(e.i18nTaskName(t.row)+"["+e.$t("workflowHistoryList.specailText")+"]"))]):e._e():n("span",[e._v(e._s(e.i18nTaskName(t.row)))])]}}],null,!1,298792300)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operator"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.creatorName))])]}}],null,!1,1328406894)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operatorDept"),align:"left",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,1295965654)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operationTime"),align:"left",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.formatCreatedTime))])]}}],null,!1,53914243)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operation"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):t.row.current?n("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(t.row.transactionResult)+" "+e._s(e.$t("workflowHistoryList.toDoText")))]):n("span",[e._v(e._s(e.i18nOperation(t.row)))])]}}],null,!1,3189498206)}),n("el-table-column",{attrs:{label:e.$t("workflowHistoryList.opinion"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.historyType&&"PROCESS_END"===t.row.historyType?n("span"):n("span",[e._v(e._s(t.row.opinion))])]}}],null,!1,1506270213)})],1):e._e()},pl=[];function ml(e,t,n,r){var o=e.transactionResult,i=e.historyType;if(!e.current&&i)if(e.transactionParams){var a=JSON.parse(e.transactionParams),s=i.toLowerCase(),u=gl(i);if(u?s="commonButtonOperation":"process_end"===s&&(s="processEnd"),u||"HISTORY_COMPLETE_TRANSFER"===i){var l=a["2"];a["2"]=Object(x["e"])().t("workflowButton."+l)}if("process_start"===s&&t&&null!==t)a[1]=t,o=Object(x["e"])().t("workflowHistoryList."+s,a);else{var c=a;if(n&&r)for(var f in a){c[f]=a[f];var d=a[f];if(d.indexOf("${taskNodeId:")>=0){var h=d.substring(d.indexOf(":")+1,d.indexOf("##")),p=d.substring(d.indexOf("##")+2,d.lastIndexOf("}")),m=n[h];m&&m[r]&&""!==m[r]?c[f]=m[r]:c[f]=p}}o=Object(x["e"])().t("workflowHistoryList."+s,c)}}else o=Object(x["e"])().t("workflowHistoryList."+i.toLowerCase());return o}function gl(e){return"HISTORY_SUBMIT"===e||"HISTORY_AGREE"===e||"HISTORY_DISAGREE"===e||"HISTORY_AGREEMENT"===e||"HISTORY_OPPOSE"===e||"HISTORY_KIKEN"===e||"HISTORY_SIGNOFF"===e||"HISTORY_SEND"===e||"HISTORY_DISTRIBUTE"===e||"HISTORY_READED"===e}var vl={refresh:function(){this.getData()}},bl=vl;function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _l={name:"WorkflowHistoryList",props:{workflowId:{type:Number,default:null},historyList:{type:Array,default:null},allProcessI18n:{type:Object,default:null}},data:function(){var e=null;return this.historyList&&this.historyList.length>0&&(e=[].concat(this.historyList)),{loaded:!1,histories:e,processI18n:null,processNameI18n:null}},computed:{},provide:function(){return{}},created:function(){var e=this;this.getI18nSet().then((function(t){e.processI18n=t,e.histories&&null!==e.histories?e.loaded=!0:e.getData()}))},mounted:function(){},methods:wl(wl({},bl),{},{getData:function(){var e=this;this.$http.get(O.a.prototype.baseAPI+"/wf-editor/instance-histories/"+this.workflowId).then((function(t){e.histories=t.histories,t&&t.currentTasks&&(e.histories=e.histories.concat(t.currentTasks)),e.loaded=!0})).catch((function(t){console.log(t),e.loaded=!0}))},getI18nSet:function(){var e=this;return new Promise((function(t,n){e.allProcessI18n?t(e.allProcessI18n):e.$http.get(O.a.prototype.baseAPI+"/wf-editor/i18n-settings/get-bundle-info?workflowId="+e.workflowId).then((function(e){t(e)})).catch((function(e){n(e)}))}))},i18nOperation:function(e){var t,n,r=Object(x["f"])(),o=e.bundleCode;return o&&""!==o&&this.processI18n&&(t=this.processI18n[o]),t&&t["processName"]&&(n=t["processName"][r]),ml(e,n,t,r)},i18nTaskName:function(e){var t,n=e.bundleCode;n&&""!==n&&this.processI18n&&(t=this.processI18n[n]);var r=null,o=e.i18nKey;if(o&&t&&t[o]){var i=Object(x["f"])();r=t[o][i]}return r&&null!==r||(r=e.taskName),r},getChildren:function(e,t,n){n(e.children)}})},Cl=_l,xl=f(Cl,hl,pl,!1,null,null,null),Sl=xl.exports;Sl.install=function(e){e.component(Sl.name,Sl)};var Ol=Sl;function kl(e){e.disabled=!1,e.classList.remove("is-disabled")}var El={inserted:function(e,t){e.addEventListener("click",(function(){e.disabled=!0,e.classList.add("is-disabled"),t.value().then((function(t){kl(e)})).catch((function(t){kl(e),console.log("Error",t.message)}))}))}},Tl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ValidCode disabled-select",style:"width:"+e.width+"; height:"+e.height,on:{click:e.refreshCode}},e._l(e.codeList,(function(t,r){return n("span",{key:r,style:e.getStyle(t)},[e._v(e._s(t.code))])})),0)},Dl=[],Il={name:"ValidCode",model:{prop:"value",event:"input"},props:{width:{type:String,default:"100px"},height:{type:String,default:"40px"},length:{type:Number,default:4},refresh:{type:Number,default:null}},data:function(){return{codeList:[]}},watch:{refresh:function(){this.createdCode()}},mounted:function(){this.createdCode()},methods:{refreshCode:function(){this.createdCode()},createdCode:function(){for(var e=this.length,t=[],n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length,o=0;o<e;o++){var i=[Math.round(220*Math.random()),Math.round(240*Math.random()),Math.round(200*Math.random())];t.push({code:n.charAt(Math.floor(Math.random()*r)),color:"rgb(".concat(i,")"),fontSize:"".concat(+[Math.floor(10*Math.random())]+6+10,"px"),padding:"".concat([Math.floor(10*Math.random())],"px"),transform:"rotate(".concat(Math.floor(90*Math.random())-Math.floor(90*Math.random()),"deg)")})}this.codeList=t,this.$emit("input",t.map((function(e){return e.code})).join(""))},getStyle:function(e){return"color: ".concat(e.color,"; font-size: ").concat(e.fontSize,"; padding: ").concat(e.padding,"; transform: ").concat(e.transform)}}},Nl=Il,Al=(n("31b9"),f(Nl,Tl,Dl,!1,null,"0e45e064",null)),Pl=Al.exports;Pl.install=function(e){e.component(Pl.name,Pl)};var Ml=Pl,Rl=new Map,Bl=Rl,Ll=n("5c96");function Fl(e,t,n,r){var o=this;return new Promise((function(i,a){$l(e,t,n,r).then((function(e){Jl("afterExport",r)&&"function"===typeof r.afterExport&&r.afterExport.call(o),i(e)})).catch((function(e){Jl("exportError",r)&&"function"===typeof r.exportError&&r.exportError.call(o),a(e)}))}))}function $l(e,t,n,r){var o=this;return new Promise((function(i,a){var s=!0;if(Jl("beforeExport",r)&&"function"===typeof r.beforeExport&&(s=r.beforeExport.call(o)),s)if(e&&e.hasOwnProperty("data")){var u={};u["_data"]=e.data,Wl(JSON.stringify(u),t,n).then((function(e){i(e)})).catch((function(e){a(e)}))}else e&&e.hasOwnProperty("url")?jl(e,t,n).then((function(e){i(e)})).catch((function(e){a(e)})):Ul(t,n).then((function(e){i(e)})).catch((function(e){a(e)}));else i(!1)}))}function jl(e,t,n){return new Promise((function(r,o){var i=Vl(n),a=Hl(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),O.a.prototype.$http.post(s,a).then((function(e){var n;if(e instanceof Array){var r={};r["_data"]=e,n=JSON.stringify(r)}else n=JSON.stringify(e);return Wl(n,t,i)})).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function Vl(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=ze.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Bl.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function zl(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=ze.get("_list_code")),t=ze.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Bl.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Bl.get(n)),t}function Hl(e){var t={},n=zl(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),o={currentPage:1,pageSize:99999999,showTotal:!1};t=r,r.pagination=o,n.options.extraParam&&(t=pt(r,n))}return t}function Ul(e,t){return new Promise((function(n,r){var o=zl(t);if(void 0===o||null===o)r("导出失败");else{var i=Hl(t);O.a.prototype.$http.post(o.url,i).then((function(n){var r=n.data;r||(r=[]);var o={};return o["_data"]=r,Wl(JSON.stringify(o),e,t)})).then((function(e){n(e)})).catch((function(e){r(e)}))}}))}function Wl(e,t,n){return new Promise((function(r,o){var i=zl(n);if(void 0!==i)if(i.columns){var a=Yl(i.columns);0===a.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):ql(Kl(e,t,n,a)).then((function(e){r(e)})).catch((function(e){o(e)}))}else Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else Gl(e,t,n).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function Gl(e,t,n,r){return new Promise((function(o,i){var a={};r&&""!==r&&(a.additionalParamMap=r),O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){Qa(r,n).then((function(){0===r.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),o(!1)):ql(Kl(e,t,n,r)).then((function(e){o(e)})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))}))}function ql(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return Zl(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(e)+"&_t="+(new Date).getTime(),r)})).then((function(e){t(e)})).catch((function(e){n(e)}))}))}function Yl(e){var t=[];return e.forEach((function(e){e.exportable&&!0===e.exportable&&t.push(e)})),t}function Kl(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:Xl(e,t)}}function Xl(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function Jl(e,t){return"undefined"!==typeof t&&"undefined"!==typeof t[e]}function Zl(e,t){return new Promise((function(n,r){O.a.prototype.$http({method:"GET",url:e,responseType:"blob"}).then((function(e){var r=new Blob([e]);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,t);else{var o=document.createElement("a"),i=document.createEvent("HTMLEvents");i.initEvent("click",!1,!1),o.href=URL.createObjectURL(r),o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(o.href)}n(!0)})).catch((function(e){r(e)}))}))}var Ql={exportData:Fl,download:Zl};function ec(e,t,n,r,o,i){var a=this;return new Promise((function(s,u){tc(e,t,n,i,r,o).then((function(e){pc("afterExport",i)&&"function"===typeof i.afterExport&&i.afterExport.call(a),s(e)})).catch((function(e){pc("exportError",i)&&"function"===typeof i.exportError&&i.exportError.call(a),u(e)}))}))}function tc(e,t,n,r,o,i){var a=this;return new Promise((function(s,u){if(ze.get(n+"basicInfo")){var l=ze.get(n+"basicInfo");l&&l.i18nLable&&(t=l.i18nLable)}var c=!0;pc("beforeExport",r)&&"function"===typeof r.beforeExport&&(c=r.beforeExport.call(a)),c?e&&e.hasOwnProperty("url")?nc(e,t,n).then((function(e){s(e)})).catch((function(e){u(e)})):(e&&e.hasOwnProperty("data")&&console.log("data",e.data),ac(t,n,e.data,o,i).then((function(e){s(e)})).catch((function(e){u(e)}))):s(!1)}))}function nc(e,t,n){return new Promise((function(r,o){var i=rc(n),a=ic(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),O.a.prototype.$http.post(s,a).then((function(e){var n;if(e instanceof Array){var r={};r["_data"]=e,n=JSON.stringify(r)}else n=JSON.stringify(e);return uc(n,t,i)})).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function rc(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=ze.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Bl.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function oc(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=ze.get("_list_code")),t=ze.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Bl.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Bl.get(n)),t}function ic(e){var t={},n=oc(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),o={currentPage:1,pageSize:99999999,showTotal:!1};if(t=r,r.pagination=o,n.options.extraParam){var i;t=pt(r,n);var a=n.options.parentProp;"undefined"!==typeof a&&""!==a&&null!==a&&(i=a),i&&r&&r.searchForm&&r.searchForm.length>0&&(t.listViewTreeSetting=null)}}return t}function ac(e,t,n,r,o){return new Promise((function(i,a){var s=oc(t);if(void 0===s||null===s)a("导出失败");else{var u=ic(t);if(u.data=n,s.columns&&(u.exportColumns=fc(s.columns)),u.exportData={excelName:e},e&&null!==e&&""!==e?e+=".xlsx":e="default.xlsx",!r)return void Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.theButtonIsNotBoundToAResource"),type:"error",showClose:!0});u.functionCode=r,o&&(u.uuid=o),localStorage.setItem(o,"start"),O.a.prototype.$http.post(O.a.prototype.baseURL+"/dsc/commons/export-list-data",u).then((function(t){if(t.indexOf("~~")>=0)return localStorage.setItem(o,"ok"),mc(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(t)+"&_t="+(new Date).getTime(),e);sc(t,u,e)})).then((function(e){i(e)})).catch((function(e){localStorage.setItem(o,"error"),a(e)}))}}))}function sc(e,t,n){setTimeout((function(){O.a.prototype.$http.post(O.a.prototype.baseURL+"/dsc/commons/get-file-uuid/"+e,t).then((function(r){if(r)if(!r.code||"ok"!==r.code&&"error"!==r.code)sc(e,t,n);else{if("ok"===r.code)return localStorage.setItem(e,"ok"),mc(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(r.fileName)+"&uuid="+e+"&_t="+(new Date).getTime(),n);localStorage.setItem(e,"error"),Object(Ll["Message"])({message:r.message,type:"error",showClose:!0})}else localStorage.setItem(e,"ok")})).catch((function(){localStorage.setItem(e,"error")}))}),5e3)}function uc(e,t,n){return new Promise((function(r,o){var i=oc(n);if(void 0!==i)if(i.columns){var a=fc(i.columns);0===a.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):cc(dc(e,t,n,a)).then((function(e){r(e)})).catch((function(e){o(e)}))}else Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else lc(e,t,n).then((function(e){r(e)})).catch((function(e){o(e)}))}))}function lc(e,t,n,r){return new Promise((function(o,i){var a={};r&&""!==r&&(a.additionalParamMap=r),O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){Qa(r,n).then((function(){0===r.length?(Object(Ll["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),o(!1)):cc(dc(e,t,n,r)).then((function(e){o(e)})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))})).catch((function(e){i(e)}))}))}function cc(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",O.a.prototype.$http.post(O.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return mc(O.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(e)+"&_t="+(new Date).getTime(),r)})).then((function(e){t(e)})).catch((function(e){n(e)}))}))}function fc(e){var t=[];return e.forEach((function(e){e.children&&e.children.length>0?t=t.concat(fc(e.children)):e.exportable&&!0===e.exportable&&t.push(e)})),t}function dc(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:hc(e,t)}}function hc(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function pc(e,t){return"undefined"!==typeof t&&"undefined"!==typeof t[e]}function mc(e,t){return new Promise((function(n,r){O.a.prototype.$http({method:"GET",url:e,responseType:"blob"}).then((function(e){var r=new Blob([e]);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,t);else{var o=document.createElement("a"),i=document.createEvent("HTMLEvents");i.initEvent("click",!1,!1),o.href=URL.createObjectURL(r),o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(o.href)}n(!0)})).catch((function(e){r(e)}))}))}var gc={exportData:ec,download:mc};function vc(){return self!==top}function bc(e){if(e){var t=e.split(",");t.forEach((function(e){sessionStorage.setItem("refreshList-"+e,"true")}))}}function yc(e){return void 0!==e&&null!==e&&"string"===typeof e&&(e=e.replace(/</g,"<").replace(/>/g,">")),e}var wc={isInIframe:vc,refreshList:bc,escapeHtml:yc},_c={install:function(e,t){e.prototype.$exportData=Ql.exportData,e.prototype.$isInIframe=wc.isInIframe,e.prototype.$escapeHtml=wc.escapeHtml,e.prototype.$download=Ql.download,e.prototype.$refreshList=wc.refreshList,e.prototype.$exportDataNew=gc.exportData,e.prototype.$downloadNew=gc.download}},Cc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.$t("departmentUserTreeInline.removeUser"),"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.removeAllUser()}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.clear"))+"\n ")])],1),n("el-table",{ref:"removeUserGrid",attrs:{data:e.users,"row-key":"id",border:"",height:e.height}},[n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),prop:"name"}}),n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),prop:"mainDepartmentName"}}),e.containBranch?n("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),prop:"subCompanyName"}}):e._e(),n("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeUser(t.$index)}}})],1)]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},xc=[],Sc={getSelectUsers:function(e,t,n){var r=this;return new Promise((function(o,i){e&&t?r.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){o(e)})).catch((function(e){i(e)})):o([])}))}},Oc=Sc;function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tc={name:"RemoveUser",components:{},props:{selectUserInfo:{type:[String,Number],default:null},searchField:{type:String,default:"loginName"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},data:function(){return{users:[],originalUsers:[],containBranch:!1,tenantNodeId:-1}},created:function(){var e=this;this.selectUserInfo&&("所有用户"===this.selectUserInfo?this.users.push(this.packageAllUser()):"所有工作组人员"===this.selectUserInfo?this.users.push(this.packageAllWgUser()):this.getSelectUsers(this.searchField,this.selectUserInfo,this.separator).then((function(t){e.originalUsers=t,e.users=t})))},methods:Ec(Ec({},Oc),{},{confirmSelectUser:function(){for(var e=[],t={userIds:[],loginNames:[],emails:[],telephones:[],users:[],userNames:[]},n=0;n<this.users.length;n++){var r=this.users[n];t.userIds.push(r.id),t.loginNames.push(r.loginName),r.email&&""!==r.email&&t.emails.push(r.email),r.telephone&&""!==r.telephone&&t.telephones.push(r.telephone),t.users.push(r);var o=r.name;this.containBranch&&r.subCompanyName&&(o=o+"("+r.subCompanyName+")"),t.userNames.push(o),e.push(r[this.searchField])}var i=this.getRemoveItems(this.originalUsers,e,this.searchField);this.$emit("close",t,i)},packageAllUser:function(){var e={id:this.tenantNodeId,name:"所有用户"};return e},packageAllWgUser:function(){var e={id:this.tenantNodeId,name:"所有工作组人员"};return e},removeUser:function(e){this.users.splice(e,1)},removeAllUser:function(){this.users=[]},getRemoveItems:function(e,t,n){return void 0===t||0===t.length?e:e?e.filter((function(e){return-1===t.indexOf(e[n])})):[]}})},Dc=Tc,Ic=f(Dc,Cc,xc,!1,null,null,null),Nc=Ic.exports;Nc.install=function(e){e.component(Nc.name,Nc)};var Ac=Nc,Pc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.$t("departmentTreeInline.removeDepartment"),"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.removeAllDept()}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.clear"))+"\n ")])],1),n("el-table",{ref:"removeDeptGrid",attrs:{data:e.departments,"row-key":"id",border:"",height:e.height}},[n("el-table-column",{attrs:{label:e.$t("departmentTreeInline.name"),prop:"name"}}),n("el-table-column",{attrs:{label:e.$t("departmentTreeInline.code"),prop:"code"}}),n("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeDept(t.$index)}}})],1)]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectDept}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Mc=[],Rc={getSelectDepts:function(e,t,n){var r=this;return new Promise((function(o,i){e&&t?r.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then((function(e){o(e)})).catch((function(e){i(e)})):o([])}))}},Bc=Rc;function Lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $c={name:"RemoveDepartment",components:{},props:{selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},data:function(){return{departments:[],originalDepts:[],containBranch:!1,tenantNodeId:-1}},created:function(){var e=this;this.selectDepartmentInfo&&(this.selectDepartmentInfo===this.tenantNodeId||"所有部门"===this.selectDepartmentInfo?this.departments.push(this.packageAllDept()):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then((function(t){e.originalDepts=t,e.departments=t})))},methods:Fc(Fc({},Bc),{},{confirmSelectDept:function(){for(var e=[],t={ids:[],names:[],codes:[],departments:[]},n=0;n<this.departments.length;n++){var r=this.departments[n];t.ids.push(r.id),t.codes.push(r.code),t.departments.push(r);var o=r.name;this.containBranch&&r.branchName&&(o=o+"("+r.branchName+")"),t.names.push(o),e.push(r[this.searchField])}var i=this.getRemoveItems(this.originalDepts,e,this.searchField);this.$emit("close",t,i)},packageAllDept:function(){var e={id:this.tenantNodeId,name:"所有部门"};return e},removeDept:function(e){this.departments.splice(e,1)},removeAllDept:function(){this.departments=[]},getRemoveItems:function(e,t,n){return void 0===t||0===t.length?e:e?e.filter((function(e){return-1===t.indexOf(e[n])})):[]}})},jc=$c,Vc=f(jc,Pc,Mc,!1,null,null,null),zc=Vc.exports;zc.install=function(e){e.component(zc.name,zc)};var Hc=zc,Uc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.$t("workgroupTree.removeWorkgroup"),"append-to-body":"","close-on-click-modal":!1,width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.removeAllWg()}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.clear"))+"\n ")])],1),n("el-table",{ref:"removeWgGrid",attrs:{data:e.workgroups,"row-key":"id",border:"",height:e.height}},[n("el-table-column",{attrs:{label:e.$t("workgroupTree.name"),prop:"name"}}),n("el-table-column",{attrs:{label:e.$t("workgroupTree.code"),prop:"code"}}),n("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.removeWg(t.$index)}}})],1)]}}])})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectWg}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Wc=[],Gc={getSelectWgs:function(e,t,n){var r=this;return new Promise((function(o,i){e&&t?r.$http.get(O.a.prototype.baseAPI+"/component/organization-trees/select-workgroups?searchField="+e+"&selectWorkgroupInfo="+t+"&separator="+n).then((function(e){o(e)})).catch((function(e){i(e)})):o([])}))}},qc=Gc;function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xc={name:"RemoveWorkgroup",components:{},props:{selectWorkgroupInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},width:{type:String,default:"30%"},height:{type:String,default:"300px"},separator:{type:String,default:","}},data:function(){return{workgroups:[],originalWgs:[],tenantNodeId:-1}},created:function(){var e=this;this.selectWorkgroupInfo&&this.getSelectWgs(this.searchField,this.selectWorkgroupInfo,this.separator).then((function(t){e.originalWgs=t,e.workgroups=t}))},methods:Kc(Kc({},qc),{},{confirmSelectWg:function(){for(var e=[],t={ids:[],names:[],codes:[],workgroups:[]},n=0;n<this.workgroups.length;n++){var r=this.workgroups[n];t.ids.push(r.id),t.codes.push(r.code),t.workgroups.push(r),t.names.push(r.name),e.push(r[this.searchField])}var o=this.getRemoveItems(this.originalWgs,e,this.searchField);this.$emit("close",t,o)},packageAllWg:function(){var e={id:this.tenantNodeId,name:"所有工作组"};return e},removeWg:function(e){this.workgroups.splice(e,1)},removeAllWg:function(){this.workgroups=[]},getRemoveItems:function(e,t,n){return void 0===t||0===t.length?e:e?e.filter((function(e){return-1===t.indexOf(e[n])})):[]}})},Jc=Xc,Zc=f(Jc,Uc,Wc,!1,null,null,null),Qc=Zc.exports;Qc.install=function(e){e.component(Qc.name,Qc)};var ef=Qc,tf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticStyle:{width:"100%"}},[e.disabled?[n("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0,disabled:!0}},[n("template",{slot:"append"},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"}),n("i",{staticClass:"el-input__icon el-icon-delete",attrs:{slot:"suffix"},slot:"suffix"})])],2)]:[n("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0},on:{focus:function(t){return e.showOrganizationTree(!1)}}},[n("template",{slot:"append"},[n("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return e.showOrganizationTree(!1)}}}),n("i",{staticClass:"el-input__icon el-icon-delete",on:{click:function(t){return e.emptyOrganizationResult()}}})])],2)],e.treeType&&"DeptUserTree"===e.treeType&&e.showOrganizationTreeFlag?n("department-user-tree",{attrs:{multiple:"undefined"!==typeof e.multiple&&e.multiple,"department-info":e.departmentInfo,"select-user-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e(),e.treeType&&"DeptTree"===e.treeType&&e.showOrganizationTreeFlag?n("department-tree",{attrs:{width:"30%","check-strictly":"undefined"!==typeof e.checkStrictly&&e.checkStrictly,multiple:"undefined"!==typeof e.multiple&&e.multiple,"select-department-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e(),e.treeType&&"WgTree"===e.treeType&&e.showOrganizationTreeFlag?n("workgroup-tree",{attrs:{width:"30%",multiple:"undefined"!==typeof e.multiple&&e.multiple,"select-workgroup-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e(),e.treeType&&"WgUserTree"===e.treeType&&e.showOrganizationTreeFlag?n("workgroup-user-tree",{attrs:{width:"30%",multiple:"undefined"!==typeof e.multiple&&e.multiple,"branch-info":e.departmentInfo,"select-user-info":e.selectOrganizationInfo,"search-field":e.searchField,separator:e.separator},on:{close:e.closeOrganizationTree}}):e._e()],2)},nf=[],rf={name:"OrganizationInput",components:{},model:{prop:"value",event:"input"},props:{value:{type:String,default:""},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},treeType:{type:String,default:"DeptUserTree"},disabled:{type:Boolean,default:!1},fields:{type:Array,default:null},models:{type:Object,default:null},size:{type:String,default:""},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},separator:{type:String,default:","}},data:function(){return{showOrganizationTreeFlag:!1,isAppendResult:!1,showRemoveComponent:!1,selectOrganizationInfo:null,searchField:null,selectOrganizationAllInfo:{}}},created:function(){},methods:{showOrganizationTree:function(){var e=this.multiple;"undefined"===typeof e&&(e=!1),!0===e&&this.getSelectInfo(),this.$emit("focus"),this.showOrganizationTreeFlag=!0},getPropName:function(e,t,n){return Object(x["h"])(e,t,n)},emptyOrganizationResult:function(){var e=this,t=this.fields;t&&t.length>0&&(t.forEach((function(t){var n=e.getPropName(t.model);e.setValue(n,null)})),this.selectOrganizationAllInfo={},this.selectOrganizationInfo=null,this.searchField=null)},closeOrganizationTree:function(e){e&&this.setOrganizationData(e),this.showOrganizationTreeFlag=!1},setOrganizationData:function(e,t,n){var r=this,o=this.multiple;"undefined"===typeof o&&(o=!1);var i=this.treeType,a=this.fields;a&&a.length>0&&a.forEach((function(a){var s=a.type,u=r.getOrgSelectData(s,e,r.isUserTree(i),o),l=r.getPropName(a.model);r.getOrgDataModel(l,u,o,s,t,n)}))},getOrgDataModel:function(e,t,n,r,o,i){if(n){var a=this.getModelValue(e);this.selectOrganizationAllInfo[r]=t,this.setValue(e,t),this.$emit("replace",e,a,t)}else this.setValue(e,t)},getModelValue:function(e){var t="";if(!1===this.isJoinTable&&e&&e.indexOf(".")>0){var n=this.getParentObject(e,this.models);t=n[e.substring(e.lastIndexOf(".")+1)]}else e=this.getPropName(e),t=this.models[e];return t},isUserTree:function(e){return"DeptUserTree"===e||"WgUserTree"===e},getOrgSelectData:function(e,t,n,r){if(!0!==r){if("mainDeptName"===e){var o=null;if(n){var i=t.user;i&&(o=i.mainDepartmentName)}return o}if("mainDeptId"===e){var a=null;if(n){var s=t.user;s&&(a=s.mainDepartmentId)}return a}if("mainDeptCode"===e){var u=null;if(n){var l=t.user;l&&(u=l.mainDepartmentCode)}return u}if("subCompanyName"===e){var c=null;if(n){var f=t.user;f&&(c=f.subCompanyName)}return c}if("subCompanyId"===e){var d=null;if(n){var h=t.user;h&&(d=h.subCompanyId)}return d}return t[e]}if("id"===e)return n?t.userIds.join(this.separator):t.ids.join(this.separator);if("name"===e)return n?t.userNames.join(this.separator):t.names.join(this.separator);if("code"===e){if(!n)return t.codes.join(this.separator)}else{if("loginName"===e)return t.loginNames.join(this.separator);if("email"===e)return t.emails.join(this.separator);if("telephone"===e)return t.telephones.join(this.separator);if("mainDeptName"===e){var p=[];if(n){var m=t.users;m&&m.forEach((function(e){p.push(e.mainDepartmentName)}))}return p.join(this.separator)}if("mainDeptId"===e){var g=[];if(n){var v=t.users;v&&v.forEach((function(e){e.mainDepartmentId&&g.push(e.mainDepartmentId)}))}return g.join(this.separator)}if("mainDeptCode"===e){var b=[];if(n){var y=t.users;y&&y.forEach((function(e){e.mainDepartmentCode&&b.push(e.mainDepartmentCode)}))}return b.join(this.separator)}if("subCompanyName"===e){var w=[];if(n){var _=t.users;_&&_.forEach((function(e){e.subCompanyName&&w.push(e.subCompanyName)}))}return w.join(this.separator)}if("subCompanyId"===e){var C=[];if(n){var x=t.users;x&&x.forEach((function(e){e.subCompanyId&&C.push(e.subCompanyId)}))}return C.join(this.separator)}}},showMyRemoveComponent:function(){this.getSelectInfo(),this.selectOrganizationInfo&&null!==this.selectOrganizationInfo&&""!==this.selectOrganizationInfo?this.showRemoveComponent=!0:this.$message({showClose:!0,type:"warning",message:this.$t("imatrixUIMessage.organizationTreeNoResultNotRemove")})},getSelectInfo:function(){var e=this,t=["id","code","loginName","email","telephone","name"],n=Object.keys(this.selectOrganizationAllInfo);if(0===n.length)for(var r=function(n){var r=t[n],o=e.fields.filter((function(e){return e.type===r}));if(o&&o.length>0){var i=o[0];if(i){var a=e.getPropName(i.model),s=e.getModelValue(a);if(s&&null!==s&&""!==s)return e.selectOrganizationInfo=s,e.searchField=r,"break"}}},o=0;o<t.length;o++){var i=r(o);if("break"===i)break}else for(var a=0;a<t.length;a++){var s=t[a],u=this.selectOrganizationAllInfo[s];if(u&&null!==u&&""!==u){this.selectOrganizationInfo=u,this.searchField=s;break}}},setValue:function(e,t){if(this.models){if(!1===this.isJoinTable&&e&&e.indexOf(".")>0){var n=this.getParentObject(e,this.models);n&&Object(x["k"])(n,e.substring(e.lastIndexOf(".")+1),t)}else e=this.getPropName(e),Object(x["k"])(this.models,e,t);console.log("this.value",this.models),this.$emit("setValue",e,t),void 0!==t&&null!==t&&""!==t||this.$emit("clear",e)}},getParentObject:function(e,t){var n=e.split(".");if(1===n.length)return t;for(var r,o=0;o<n.length-1;o++)r=0===o?this.getParentModelProp(n[o],t):this.getParentModelProp(n[o],r);return r},getParentModelProp:function(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}}},of=rf,af=f(of,tf,nf,!1,null,null,null),sf=af.exports;sf.install=function(e){e.component(sf.name,sf)};var uf=sf,lf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.hasLoadedColumns?n("search-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"sf",attrs:{columns:e.columns,code:e.code,url:e.url,pagination:e.pagination,query:e.query,"search-param":e.searchFormContent,"init-search-props":e.initSearchProps,"grid-id":e.gridId},on:{search:e.search,reset:e.resetSearch}}):e._e(),n("div",{staticClass:"nine-grid-area"},[n("div",{style:"height:"+e.height+"px;overflow-y: auto;overflow-x: hidden;",attrs:{id:e.gridId}},[n("el-row",{attrs:{gutter:20}},[e.isHasCreate?n("el-col",{directives:[{name:"permission",rawName:"v-permission",value:e.createPermission,expression:"createPermission"}],attrs:{id:"_addCardId_",span:6,offset:1.5}},[n("el-card",{attrs:{"body-style":{padding:"0px"}}},[n("div",{staticClass:"add-screen",on:{click:e.add}},[n("span",{staticStyle:{color:"#6882da"}},[n("em",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$t("superNineGrid.add")))])])])],1):e._e(),e._l(e.gridData,(function(t,r){return n("el-col",{key:t.id,staticClass:"col-content",attrs:{span:6,offset:1.5}},[n("el-card",{attrs:{"body-style":{padding:"0px"},shadow:"hover"}},[n("div",{on:{click:function(n){return e.clickContent(t)}}},[n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"popContainer"},[n("div",{staticClass:"else-button",staticStyle:{background:"rgba(0,0,0,0.5)","min-height":"20%"}},[e._t(e.slotBefore,null,{params:t}),e._l(e.operations,(function(r){return[e.isShowButton(t,r)?[r.icon?n("el-tooltip",{directives:[{name:"permission",rawName:"v-permission",value:r.permission?r.permission:"true",expression:"button.permission?button.permission:'true'"}],key:r.name,staticClass:"item",attrs:{effect:"dark",content:r.name,placement:"top"}},[n("em",{class:r.icon+" icons",on:{click:function(n){return n.stopPropagation(),e.buttonClick(r.event,t)}}})]):n("em",{directives:[{name:"permission",rawName:"v-permission",value:r.permission?r.permission:"true",expression:"button.permission?button.permission:'true'"}],key:r.name,class:r.name+" icons",on:{click:function(n){return n.stopPropagation(),e.buttonClick(r.event,t)}}},[e._v(e._s(r.name)+" ")])]:e._e()]}))],2)])]),e.props&&e.props.imageUrl&&e.objectPropValue(t,e.propCloumns.imageUrl,e.props.imageUrl)?n("img",{staticClass:"image",attrs:{src:e.defaultShowImageAction+e.objectPropValue(t,e.propCloumns.imageUrl,e.props.imageUrl),alt:"加载失败"}}):n("div",{staticClass:"image",staticStyle:{display:"table","text-align":"center"}},[e.props&&e.props.content?n("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("content",t))+"\n ")]):e.props&&e.props.title?n("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("title",t))+"\n ")]):e._e()])],1),n("el-divider"),n("div",{staticStyle:{padding:"10px 10px 10px 10px"}},[n("div",{staticClass:"bottom clearfix"},[n("time",{staticClass:"name"},[e.props&&e.props.title?n("span",[e.multiple?n("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+t.id],"true-label":t.id,"false-label":"false-"+t.id,title:e.getPropValue("title",t)},on:{change:function(t){return e.changeChecked(t,r)}}},[n("span",{style:e.getTitleStyle(t)},[e._v(" "+e._s(e.getPropValue("title",t)))])]):e.isShowRadio?n("el-radio",{staticStyle:{width:"100%"},attrs:{label:t.id,title:e.getPropValue("title",t)},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[n("span",{style:e.getTitleStyle(t)},[e._v(" "+e._s(e.getPropValue("title",t)))])]):n("span",{style:e.getTitleStyle(t),attrs:{title:e.getPropValue("title",t)}},[e._v(" "+e._s(e.getPropValue("title",t)))])],1):e.props&&e.props.content?n("span",[e.multiple?n("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+t.id],"true-label":t.id,"false-label":"false-"+t.id,title:e.getPropValue("content",t)},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(e.getPropValue("content",t)))]):e.isShowRadio?n("el-radio",{staticStyle:{width:"100%"},attrs:{label:t.id,title:e.getPropValue("content",t)},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[e._v(e._s(e.getPropValue("content",t)))]):n("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("content",t)}},[e._v(" "+e._s(e.getPropValue("content",t)))])],1):n("span",[e.multiple?n("el-checkbox",{attrs:{value:e.selectionModels["select"+t.id],"true-label":t.id,"false-label":"false-"+t.id},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(r+1))]):e.isShowRadio?n("el-radio",{attrs:{label:t.id},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[e._v(e._s(r+1))]):n("span",[e._v(" "+e._s(r+1))])],1)]),e.props&&e.props.subTitle?n("time",{staticClass:"state"},[n("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("subTitle",t)}},[e._v(e._s(e.getPropValue("subTitle",t)))])]):e._e()])])],1)],1)}))],2)],1),e.pagination?n("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":e.pagination.pageSizes,"page-size":e.pagination.pageSize,layout:e.pagination.layout,total:e.pagination.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},cf=[],ff={number:function(e,t){var n=t.precision,r=t.delimiter,o=t.scientific,i=t.scientificNum;if(null!=e&&(n>0&&(e=parseFloat(e),e=e.toFixed(n)),r&&(e=e.replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")),null!=o)){var a=!1;i=i?parseInt(i):11,e.length>=i&&(a=!0),a&&(e=""+e,e=parseFloat(e),e=e.toExponential())}return e},currency:function(e,t){var n=t.sign;return n+this.number(e,t)},date:function(e,t){var n=t.format;if(null!=e){var r=new Date(e),o=r.getFullYear(),i=r.getMonth()+1,a=r.getDate(),s=r.getHours(),u=r.getMinutes(),l=r.getSeconds();return i<10&&(i="0"+i),a<10&&(a="0"+a),s<10&&(s="0"+s),u<10&&(u="0"+u),l<10&&(l="0"+l),n.replace("yyyy",o).replace("m",i).replace("d",a).replace("hh",s).replace("mm",u).replace("ss",l)}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return this.number(e,t)+"%"}};function df(e,t){if(void 0===t||void 0===e)return t;if(void 0!==e.valueSet){var n=e.valueSet.filter((function(e){return e.value===t+""}));n.length>0&&(t=n[0].label)}void 0===e.formatter&&("DATE"===e.dataType?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:"TIME"===e.dataType&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));var r=e.formatter;return void 0!==r&&void 0!==ff[r.type]?ff[r.type](t,r.options):t}var hf={isObjectProp:function(e){return e.indexOf(".")>0},objectPropOriginalValue:function(e,t){try{var n=e,r=t.split(".");return r.forEach((function(e){if(!n)throw n="",n;n=n[e]})),n}catch(o){return""}},objectPropValue:function(e,t,n){var r=df(t,this.objectPropOriginalValue(e,n));return r},getColumnValue:function(e,t){var n=t.prop,r=e[n];this.isObjectProp(n)&&(r=this.objectPropOriginalValue(e,n));var o=df(t,r);return{originalValue:r,formatValue:o}},onClickFun:function(e,t,n,r){var o=this.getColumnValue(e,t);n.call(this,o.originalValue,o.formatValue,e,t,r)},isShowButtonFun:function(e,t){var n=t.isShow;if(void 0===n)return!0;if("function"===typeof n){var r=n.call(this,e,t);return void 0===r&&(r=!0),r}return n}},pf=hf,mf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.searchableColumns.length>0?n("el-form",{ref:"searchForm",staticClass:"grid-search-form",attrs:{model:e.searchForm,rules:e.rules,"label-width":e.labelWidth,"label-position":e.query.queryLabelPosition,size:"mini"}},[n("table",e._l(e.rowNum,(function(t){return n("tr",{key:t},e._l(e.getColumnNumPerRow(t,e.searchableColumns.length),(function(r){return n("td",{key:r},[n("el-form-item",{style:{paddingLeft:"10px",minWidth:"200px"},attrs:{prop:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,"label-width":e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabelWidth?e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabelWidth:"80px"}},[n("template",{slot:"label"},[e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabel&&""!==e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabel?n("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchLabel.replace(/\\n/g,"</br>"))}}):n("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].label.replace(/\\n/g,"</br>"))}})]),"DATE"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType||"date"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-date-picker",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop),type:"daterange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd"},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):"dateTimePicker"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-date-picker",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"yyyy-MM-dd HH:mm:ss"},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):"TIME"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType&&"timepicker"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-date-picker",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop),type:"datetimerange","range-separator":e.$t("imatrixUIPublicModel.to"),"unlink-panels":"","start-placeholder":e.$t("imatrixUIMessage.startDate"),"end-placeholder":e.$t("imatrixUIMessage.endDate"),"value-format":"HH:mm:ss"},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):"timepicker"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"TIME"!==e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType&&"DATE"!==e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType?n("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":"HH:mm:ss",value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"select"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType||"BOOLEAN"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].dataType?n("el-select",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}},e._l(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"multiselect"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-select",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{clearable:"",multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}},e._l(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].valueSet,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"inputNumber"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("search-form-number",{attrs:{r:t,n:r},on:{setValue:e.setNumberValue}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"switch"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-switch",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"slider"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-slider",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType&&"rate"===e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentType?n("el-rate",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}}):!0===e.customComponent(e.searchableColumns[e.fieldNum*(t-1)+(r-1)])?n("span",[n(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentName,{ref:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].componentName,refInFor:!0,tag:"component",staticClass:"customComponent",attrs:{prop:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}}})],1):n("el-input",{style:e.searchableColumns[e.fieldNum*(t-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop)},on:{input:function(n){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(t-1)+(r-1)].prop,n)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitForm("searchForm")}}})],2)],1)})),0)})),0),n("el-form-item",{staticClass:"search-btn"},[n("el-button",{attrs:{loading:e.loading,type:"primary",size:"mini"},on:{click:function(t){return e.submitForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")]),n("el-button",{attrs:{loading:e.loading,size:"mini"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")])],1)],1):e._e()},gf=[],vf={packageSearchParam:function(){var e=this,t=[];return this.searchableColumns.forEach((function(n){var r={leftBracket:"",rightBracket:"",joinSign:"and"},o=n.orgProp,i="__";if(o.indexOf(i)>0&&(o=o.replace(i,".")),r.columnProp=n.prop,r.propName=o,r.enumName=n.enumName,r.operator=e.getOperator(n),r.dataType=n.dataType,"DATE"===n.dataType||"TIME"===n.dataType){var a=e.getFormItemValue(n.prop);null!==a&&2===a.length&&null!==a[0]&&null!==a[1]&&(r.startValue=a[0],r.endValue=a[1],t.push(r))}else if("INTEGER"===n.dataType||"LONG"===n.dataType){var s=e.getFormItemValue(n.prop);s&&(!Array.isArray(s)||s.length<2||null===s[0]&&null===s[1]?Array.isArray(s)?s.length<2?(r.propValue=s[0],t.push(r)):null===s[0]?(r.propValue=s[1],t.push(r)):null===s[1]&&(r.propValue=s[0],t.push(r)):(r.propValue=s,t.push(r)):(r.startValue=s[0],r.endValue=s[1],t.push(r)))}else if("multiselect"===n.componentType){var u=e.getFormItemValue(n.prop);e.packageValueWithArray(u,t,r)}else{var l=e.getFormItemValue(n.prop);e.packageValueWithArray(l,t,r)}})),t},getOperator:function(e){return"TEXT"!==e.dataType&&"CLOB"!==e.dataType||!e.fuzzy?"EQ":"CONTAIN"},getFormItemValue:function(e){if(e.indexOf(".")>0){var t=this.getParentObject(e);return t[e.substring(e.lastIndexOf(".")+1)]}return this.searchForm[e]},getParentObject:function(e){var t=e.split(".");if(1===t.length)return this.searchForm;for(var n,r=0;r<t.length-1;r++)n=this.searchForm[t[r]];return n},packageValueWithArray:function(e,t,n){if(e&&Array.isArray(e)){var r=e,o=0;r.forEach((function(e){var i=Object.assign({},n);i.joinSign="or",0===o&&(i.leftBracket="1"),o===r.length-1&&(i.rightBracket="1",i.joinSign="and"),i.propValue=e,i.operator="EQ",e&&t.push(i),o++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))}},bf=vf,yf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),n("span",[e._v("---")]),n("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},wf=[],_f={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data:function(){return{number1:null,number2:null}},methods:{setValue:function(){this.$emit("setValue",[this.number1,this.number2],this.r,this.n)}}},Cf=_f,xf=f(Cf,yf,wf,!1,null,null,null),Sf=xf.exports;function Of(e,t){t||(t=Bl.get("_nine_list_code")),t&&t.indexOf("~")<0&&(t+="~_nineGrid");var n=Bl.get(t);return!(!n.options||"function"!==typeof n.options[e])}function kf(){var e={columns:[],gridData:[],orgGridData:[],showValidateError:!0,options:{}};return O.a.observable(e)}function Ef(e,t,n){var r=t.split(".");if(1!==r.length){for(var o=e,i=0;i<r.length-1;i++)void 0===o[r[i]]&&(o[r[i]]={}),o=o[r[i]];o[r[r.length-1]]=void 0!==n?n:null}else e[t]=void 0!==n?n:null}function Tf(e,t){if(!0===e){var n=0;return t&&(n=t.$el.offsetHeight),window.innerHeight-n-165}return window.innerHeight-165}function Df(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=If(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function If(e,t){if(e){if("string"===typeof e)return Nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nf(e,t):void 0}}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf={name:"SearchForm",components:{searchFormNumber:Sf},props:{columns:{type:Array,default:null},code:{type:String,default:null},url:{type:String,default:null},pagination:{type:Object,default:null},query:{type:Object,default:null},searchParam:{type:Object,default:null},initSearchProps:{type:Array,default:null},gridId:{type:String,default:"_nineGrid"}},data:function(){var e=this,t=this.code+"~"+this.gridId,n=new Set,r=Bl.get(t),o={};null!==this.searchParam&&(o=JSON.parse(JSON.stringify(this.searchParam))),console.log("searchForm=",o);var i=this.getSearchableColumns();void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),i.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop.indexOf(".")>0?Ef(o,t.prop):o[t.prop]=null)}));var a=this.getSpanNum(t),s=this.getFieldNumPerRow(t),u=Math.ceil(i.length/s);return{searchForm:o,rules:{},searchParams:[],labelWidth:r.options.search&&r.options.search.labelWidth?r.options.search.labelWidth:"80px",customComponentNames:n,componentName:"",spanNum:a,fieldNum:s,rowNum:u,loading:!1,storeId:t}},computed:{searchableColumns:function(){return this.getSearchableColumns()}},methods:Pf(Pf({},bf),{},{getColumnNumPerRow:function(e,t){var n=this.fieldNum;return this.fieldNum*e>t&&(n=t-this.fieldNum*(e-1)),n},getFieldNumPerRow:function(e){var t=Bl.get(e);return t.options.search&&t.options.search.fieldNum?t.options.search.fieldNum:4},getSpanNum:function(e){var t=this.getFieldNumPerRow(e);return 1===t?14:2===t?10:3===t?8:4===t?6:4},setValueToModelProp:function(e,t){if(e.indexOf(".")>0){var n=this.getParentObject(e);n[e.substring(e.lastIndexOf(".")+1)]=t}else this.searchForm[e]=t},getSearchableColumns:function(e,t){this.customComponentNames||(this.customComponentNames=new Set),t||(t=[]),e||(e=this.columns);for(var n=0;n<e.length;n++){var r=e[n];if("$index"!==r.prop&&"$selection"!==r.prop&&!r.dynamic)if(r.groupHeader)this.getSearchableColumns(r.children,t);else if("normal"===r.queryType&&!r.custom&&""!==r.prop){if("undefined"!==typeof r.componentType&&""!==r.componentType||(r.componentType="input"),r.querySetting&&""!==r.querySetting){var o=JSON.parse(r.querySetting);o.width&&(r.searchControlWidth="width:"+o.width+"px"),o.labelWidth&&(r.searchLabelWidth=o.labelWidth+"px"),o.label&&(r.searchLabel=o.label)}r.componentType.indexOf("custom:")>=0?(r.componentName=r.componentType.substring(r.componentType.indexOf(":")+1),this.customComponentNames.add(r.componentName)):r.componentName="",t.push(r)}}return t},customComponent:function(e){var t=Bl.get(this.storeId);if(e.componentName&&""!==e.componentName)return this.customComponentNames.add(e.componentName),!0;if((!e.componentName||""===e.componentName)&&t.options&&t.options.search&&t.options.search.customSearchElements){var n=t.options.search.customSearchElements[e.prop];if(n){e.componentName="custom-"+e.prop;var r=n.call(this,e);if(r)return this.customComponentNames.add(e.componentName),O.a.component(e.componentName,r),!0}}return!1},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.loading=!0,t.searchParams=t.packageSearchParam(),t.$emit("search",t.searchParams,!0)}))},resetForm:function(e){var t,n=this,r=Df(this.customComponentNames);try{for(r.s();!(t=r.n()).done;){var o=t.value;this.$refs[o][0].resetField()}}catch(i){r.e(i)}finally{r.f()}this.searchableColumns.forEach((function(e){e.prop.indexOf(".")>0?Ef(n.searchForm,e.prop):n.searchForm[e.prop]=null})),this.$emit("reset")},setNumberValue:function(e,t,n){var r=this.getFormItemValue(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop);r=e,this.setValueToModelProp(this.searchableColumns[this.fieldNum*(t-1)+(n-1)].prop,r)}})},Rf=Mf,Bf=(n("45ae"),f(Rf,mf,gf,!1,null,"398b171b",null)),Lf=Bf.exports,Ff={initialize:function(){var e=this,t=O.a.prototype.baseAPI+"/component/super-grids/"+this.code,n={},r=this.options.isSql;this.options&&"undefined"!==typeof r&&(this.isSql=r,n.isSql=r+""),n.publishVersion=this.publishVersion,this.isLoading=!0,this.$http.post(t,n).then((function(t){if(e.options.pageSizes&&t.pagination){var n=null,r=e.options.pageSizes.split(",");if(r&&r.length>0){n=[];for(var o=0;o<r.length;o++)n.push(1*r[o]);t.pagination.pageSize=n[0]}t.pagination.layout="total, sizes, prev, pager, next, jumper",t.pagination.pageSizes=n}"undefined"!==typeof e.options.initSortInfo&&(Array.isArray(e.options.initSortInfo)?t.sortInfo=e.options.initSortInfo:(t.sortInfo=[],t.sortInfo.push(e.options.initSortInfo))),Object.assign(e,t);var i=Bl.get(e.code+"~"+e.gridId);Qa(e.columns,e.code).then((function(){i.isSql=e.isSql,i.columns=e.columns,i.lineEdit=e.lineEdit,i.basicInfo=e.basicInfo,i.pagination=e.pagination,i.query=e.query,e.hasLoadedColumns=!0;var t=!0;Of("loadBeforeSend",e.storeId)&&(t=i.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:i})),void 0!==t&&!0!==t||"undefined"!==typeof e.options.initSearch&&!1===e.options.initSearch||(e.urlToSaveOrder=e.lineEdit&&e.lineEdit.urlToSaveOrder?e.lineEdit.urlToSaveOrder:null,e.fetchData().then((function(){e.initSelectData()})))}))}))},initSelectData:function(){if(this.options&&this.options.currentIds)for(var e=0;e<this.gridData.length;e++){var t=this.gridData[e];if((t.id||t.ID)&&this.options.currentIds.indexOf(t.id?t.id:t.ID)>=0&&(this.changeSelect(t),!1===this.multiple))break}}},$f=Ff,jf={refresh:function(){var e=this;return new Promise((function(t,n){e.$refs?e.$refs.sf?e.search(e.$refs.sf.searchParams,!0).then((function(){return t()})).catch((function(e){return n(e)})):e.search(null,!0).then((function(){return t()})).catch((function(e){return n(e)})):t()}))},showSearchForm:function(){this.showSearch=!0,this.$emit("showSearch")},cancelSearch:function(){this.showSearch=!1,this.$emit("cancelSearch")},getSearchForm:function(){var e=Bl.get(this.storeId);return e.searchForm?e.searchForm:[]},getGridData:function(e){e||(e=Bl.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Bl.get(e);return t.gridData},getColumns:function(e){e||(e=Bl.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Bl.get(e);return t.columns},getPagination:function(e){e||(e=Bl.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Bl.get(e);return t.pagination},getSelections:function(){return this.selections},getSelectionIds:function(){return this.selectionIds},clearSelections:function(){this.selections=[],this.selectionIds=[],this.selectionModels={},this.currentId=null},getSelection:function(){return this.selections&&this.selections.length>0?this.selections[0]:null},getSelectionId:function(){return this.selectionIds&&this.selectionIds.length>0?this.selectionIds[0]:null}},Vf=jf;function zf(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Hf(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Hf(e,t){if(e){if("string"===typeof e)return Uf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uf(e,t):void 0}}function Uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qf={name:"SuperNineGrid",components:{SearchForm:Lf},props:{code:{type:String,default:""},url:{type:String,default:""},options:{type:Object,default:function(){return{}}},publishVersion:{type:Number,default:0}},data:function(){var e=[];this.options&&this.options.mergeFields&&""!==this.options.mergeFields&&(e=this.options.mergeFields.split(","));var t=O.a.prototype.baseAPI+"/component/super-form/show-image?serverPath=",n=this.options&&this.options.id?this.options.id:"_nineGrid",r=this.code+"~"+n,o=!(!this.options||void 0===this.options.showRadio)&&this.options.showRadio;return{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],pagination:null,query:null,lineEdit:null,gridData:[],sortInfo:null,pageSize:null,showSearch:!1,height:null,isSql:!1,hasLoadData:!1,mergeFields:e,hasLoadedColumns:!1,seen:!1,current:null,isHasCreate:!0,screenBaseUrl:null,props:null,operations:[],propCloumns:null,multiple:!1,createPermission:"true",urlToSaveOrder:null,selections:[],selectionIds:[],selectionModels:{},searchFormContent:null,initSearchProps:[],defaultShowImageAction:t,gridId:n,storeId:r,currentId:null,isShowRadio:o,titleStyle:null,slotBefore:"before"}},computed:{},provide:function(){return{}},created:function(){Bl.set(this.code+"~"+this.gridId,kf()),Bl.set("_nine_list_code",this.code+"~"+this.gridId),this.initSetting(),this.initialize()},mounted:function(){this.$watch("showSearch",(function(e,t){var n=this;this.$nextTick((function(){var t=Tf(e,n.$refs.sf),r=n.resizeHeight();r&&(t=r),n.height=t}))}),{immediate:!0,deep:!0}),this.$watch("hasLoadData",(function(e,t){var n=this;!0===e&&this.$nextTick((function(){var e=Bl.get(n.storeId);Of("gridComplete",n.storeId)&&e.options.gridComplete.call(n,{gridData:n.gridData,columns:e.columns,superGrid:n.$refs.superGrid});var t=n.resizeHeight();t&&(n.height=t)}))}),{immediate:!0,deep:!0})},methods:Gf(Gf(Gf(Gf({},$f),Vf),pf),{},{getTitleStyle:function(e){return this.options&&this.options.titleStyle?this.options.titleStyle.call(this,e):{width:"100%"}},getPropValue:function(e,t){var n="",r=Bl.get(this.storeId);if("content"===e){var o="";Of("setContent",this.storeId)&&(o=r.options.getContent.call(this,t)),void 0!==o&&""!==o||(this.props&&this.props.content?o=this.objectPropValue(t,this.propCloumns.content,this.props.content):this.props&&this.props.title&&(o=this.objectPropValue(t,this.propCloumns.title,this.props.title))),n=o}else if("title"===e){var i="";Of("setTitle",this.storeId)&&(i=r.options.setTitle.call(this,t)),void 0!==i&&""!==i||(this.props&&this.props.title?i=this.objectPropValue(t,this.propCloumns.title,this.props.title):this.props&&this.props.content&&(i=this.objectPropValue(t,this.propCloumns.content,this.props.content))),n=i}else if("subTitle"===e){var a="";Of("setSubTitle",this.storeId)&&(a=r.options.getSubTitle.call(this,t)),void 0!==a&&""!==a||this.props&&this.props.subTitle&&(a=this.objectPropValue(t,this.propCloumns.subTitle,this.props.subTitle)),n=a}return void 0===n&&(n=""),n},resizeHeight:function(){var e=Bl.get(this.storeId);if(Of("resizeHeight",this.storeId)){var t=0;return!0===this.showSearch&&this.$refs.sf&&(t=this.$refs.sf.$el.offsetHeight),e.options.resizeHeight.call(this,{code:this.code,height:this.height,searchHeight:t})}},enter:function(e){this.seen=!0,this.current=e},leave:function(){this.seen=!1,this.current=null},initSetting:function(){var e=Bl.get(this.storeId);"undefined"!==typeof this.options?Object.assign(e.options,this.options):e.options={},this.options&&"undefined"!==typeof this.options.isHasCreate&&(this.isHasCreate=this.options.isHasCreate),this.options&&"undefined"!==typeof this.options.props&&(this.props=this.options.props),this.options&&"undefined"!==typeof this.options.operations&&(this.operations=this.options.operations),this.options&&"undefined"!==typeof this.options.createPermission&&(this.createPermission=this.options.createPermission),this.options&&"undefined"!==typeof this.options.multiple&&(this.multiple=this.options.multiple)},getPropColumns:function(){var e=this;this.columns&&this.columns.length>0&&(this.propCloumns={},this.columns.forEach((function(t){e.props.imageUrl&&e.props.imageUrl===t.prop&&(e.propCloumns.imageUrl=t),e.props.content&&e.props.content===t.prop&&(e.propCloumns.content=t),e.props.title&&e.props.title===t.prop&&(e.propCloumns.title=t),e.props.subTitle&&e.props.subTitle===t.prop&&(e.propCloumns.subTitle=t)})))},fetchData:function(e,t){var n=this;return new Promise((function(r,o){if(n.getPropColumns(),n.isLoading=!0,n.hasLoadData=!1,void 0===t||!1===t){var i=sessionStorage.getItem("refreshList-"+n.storeId);if(void 0!==i&&"true"===i){var a=sessionStorage.getItem("searchParam-"+n.storeId);if(void 0!==a&&null!==a&&""!==a){e=JSON.parse(a);var s=e.pagination;s&&(n.currentPage=s.currentPage,n.pagination.pageSize=s.pageSize,n.pagination.showTotal=s.showTotal),n.getInitSearchForm(e.searchForm)}}}sessionStorage.removeItem("refreshList-"+n.storeId),void 0===e&&(e=n.getSearchParam());var u=Bl.get(n.storeId),l=e;if(u.options.extraParam&&(l={searchParam:e},u.options.extraParam))for(var c in u.options.extraParam)l[c]=u.options.extraParam[c];u.searchParam=e,u.url=n.url;var f=n.url;sessionStorage.setItem("searchParam-"+n.storeId,JSON.stringify(l)),n.$http.post(f,l).then((function(e){if(Of("gridDataLoaded",n.storeId)){var t=u.options.gridDataLoaded.call(n,{gridData:e.data,columns:u.columns});n.gridData=t||e.data}else n.gridData=e.data;n.gridData||(n.gridData=[]),null!==n.pagination&&(n.pagination.total=e.total),u.gridData=n.gridData,u.orgGridData=[].concat(JSON.parse(JSON.stringify(n.gridData))),u.pagination=n.pagination,u.loaded=!0,n.hasLoadData=!0,r()})).catch((function(e){Of("loadError",n.storeId)&&u.options.loadError.call(n,n.code,e),o(e)}))}))},getInitSearchForm:function(e){var t=this,n=Bl.get(this.storeId);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,o=e.dataType;o&&"BOOLEAN"===o&&(n=r),t.initSearchProps.push(n);var i=e.propValue;n.indexOf(".")>0?Ef(t.searchFormContent,n,i):t.searchFormContent[n]=i})),n.searchForm=e,this.showSearchForm()):n.searchForm=null},showDemo:function(){var e=this;this.isLoading=!0,this.$http.get(this.url).then((function(t){Object.assign(e,t);var n=Bl.get(e.storeId);if(n.listCode=e.code,n.columns=e.columns,n.columns&&e.options.dynamicColumns)for(var r=0;r<e.options.dynamicColumns.length;r++)e.options.dynamicColumns[r].dynamic=!0,n.columns.push(e.options.dynamicColumns[r]);if(n.lineEdit=e.lineEdit,n.basicInfo=e.basicInfo,n.pagination=e.pagination,n.query=e.query,e.gridData=t.gridData,Of("gridDataLoaded",e.storeId)){var o=n.options.gridDataLoaded.call(e,t.gridData);e.gridData=o||t.gridData}else e.gridData=t.gridData;null!=e.pagination&&(e.pagination.total=t.total),e.gridData||(e.gridData=[]),n.gridData=e.gridData,n.orgGridData=[].concat(JSON.parse(JSON.stringify(e.gridData))),n.pagination=e.pagination,Of("gridComplete",e.storeId)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(Of("loadError",e.storeId)){var n=Bl.get(e.storeId);n.options.loadError.call(e,e.code,t)}}))},search:function(e){var t=this;return new Promise((function(n,r){var o=Bl.get(t.storeId);o.searchForm="undefined"!==typeof e&&null!==e?e:null,t.fetchData(t.getSearchParam(),!0).then((function(e){void 0!==o.options&&void 0!==o.options.isHiddenSearchForm&&!0===o.options.isHiddenSearchForm&&(t.showSearch=!1,t.$emit("cancel-search")),t.$refs.sf&&(t.$refs.sf.loading=!1),n(e)})).catch((function(e){t.$refs.sf&&(t.$refs.sf.loading=!1),r(e)}))}))},getSearchParam:function(){var e={code:this.code},t=Bl.get(this.storeId);if(null!==this.pagination){var n={currentPage:this.currentPage,pageSize:this.pagination.pageSize,showTotal:this.pagination.showTotal};null!==this.pageSize&&(n.pageSize=this.pageSize),e.pagination=n}if(null!==this.sortInfo&&(e.sorts=this.sortInfo),this.mergeFields&&this.mergeFields.length>0){e.sorts||(e.sorts=[]);var r,o=[],i=zf(this.mergeFields);try{for(i.s();!(r=i.n()).done;){var a,s=r.value,u=!0,l=zf(e.sorts);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.prop===s){u=!1;break}}}catch(f){l.e(f)}finally{l.f()}u&&o.push({prop:s,order:"ascending"})}}catch(f){i.e(f)}finally{i.f()}o.push.apply(o,ke(e.sorts)),e.sorts=o}return t.options&&"undefined"!==typeof t.options.initSearchForm&&(e.initSearchForm=t.options.initSearchForm),"undefined"!==typeof t.searchForm?e.searchForm=t.searchForm:e.searchForm=[],e},handleSizeChange:function(e){this.pageSize=e,this.fetchData(this.getSearchParam())},handleCurrentChange:function(e){this.fetchData(this.getSearchParam())},handleSortChange:function(e){var t=e.column,n=e.prop,r=e.order;this.sortInfo=null!==n?[{prop:n,order:r}]:null,this.fetchData(this.getSearchParam()),this.$emit("sort-change",{column:t,prop:n,order:r})},resetSearch:function(){this.search(null,!1)},add:function(){this.$emit("add")},buttonClick:function(e,t){e&&("function"===typeof e?e.call(this,t):this.$emit(e,t))},clickContent:function(e){this.changeSelect(e),this.$emit("click",e)},rowDrop:function(){if(this.urlToSaveOrder){var e=this.urlToSaveOrder;if(e.indexOf("http:")<0||e.indexOf("https:")<0){var t=O.a.prototype.baseURL;t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.length-1)),e.indexOf("/")>0&&(e="/"+e),e=t+e}var n=document.querySelector("#"+this.gridId+" .el-row");if(null!=n){var r=this;Ni.create(n,{draggable:".col-content",onEnd:function(t){var n=t.newIndex,o=t.oldIndex,i=document.querySelector("#"+r.gridId+" #_addCardId_");null!=i&&(o>0&&(o-=1),n>0&&(n-=1));var a={oldIndex:o,newIndex:n,gridData:r.gridData};r.$http.post(e,a).then((function(e){var t=r.gridData.splice(o,1)[0];r.gridData.splice(n,0,t),r.refresh().then((function(){r.$emit("afterDrag",a)}))}))}})}}},changeChecked:function(e,t){var n=this.gridData[t];(e+"").indexOf("false-")>=0?this.unselect(n):this.select(n)},unselect:function(e){var t=e.id,n=this.selectionIds.indexOf(t);n>-1&&(this.selections.splice(n,1),this.selectionIds.splice(n,1)),this.$emit("unselect",e,this.selections),this.$set(this.selectionModels,"select"+t,"false-"+t)},select:function(e){var t=e.id;this.selectionIds.indexOf(t)<0&&(this.$set(this.selectionIds,this.selectionIds.length,t),this.$set(this.selections,this.selections.length,e)),this.$emit("select",e,this.selections),this.$set(this.selectionModels,"select"+t,t)},changeSelectWhenRadio:function(e,t){var n=this.gridData[t];this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(n)},changeSelect:function(e){var t=e.id;!0===this.multiple?this.selectionIds&&this.selectionIds.indexOf(t)>=0?this.unselect(e):this.select(e):(this.currentId=t,this.selectionIds=[],this.selections=[],this.selectionModels={},this.select(e))},isShowButton:function(e,t){var n=this.isShowButtonFun(e,t);return void 0===n||n}})},Yf=qf,Kf=(n("977f"),f(Yf,lf,cf,!1,null,"a4061422",null)),Xf=Kf.exports;Xf.install=function(e){e.component(Xf.name,Xf)};var Jf=Xf;Bt.install=function(e){e.component(Bt.name,Bt)};var Zf=Bt,Qf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.multiple?n("fs-upload-multi",{attrs:{"system-code":e.systemCode,accept:e.accept,"is-img":e.isImg,"is-show-list":e.isShowList,fit:e.fit,disabled:e.disabled,"is-show-button":e.isShowButton,"is-show-data":e.isShowData,data:e.data,"img-size":e.imgSize,"file-size":e.fileSize,"table-height":e.tableHeight},on:{onSuccess:e.onSuccess,deleteSuccess:e.deleteSuccess}}):e._e(),e.multiple?e._e():n("fs-upload-single",{attrs:{"system-code":e.systemCode,accept:e.accept,"is-img":e.isImg,fit:e.fit,disabled:e.disabled,"is-show-button":e.isShowButton,"is-show-data":e.isShowData,data:e.data},on:{onSuccess:e.onSuccess,deleteSuccess:e.deleteSuccess}})],1)},ed=[],td=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isShowButton&&!e.disabled?n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload2"},on:{click:e.selectDataFile}},[e._v("\n "+e._s(e.$t("fsUpload.upload"))+"\n ")]):e._e(),n("input",{ref:"uploadTemplate",staticStyle:{display:"none"},attrs:{type:"file",name:"uploadTemplate",accept:e.accepts},on:{change:e.upload}}),e.unifiedEnclosures&&e.unifiedEnclosures.length>0&&e.isShowData?n("div",[e.isImg?n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[n("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName,type:"primary"}},[e._v("\n "+e._s(t.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),n("el-table-column",{attrs:{label:e.$t("fsUpload.picture"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-image",{attrs:{src:e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName,"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName]},on:{click:function(n){return e.bigPicture(t.$index)}}})]}}],null,!1,2055571535)}),e.disabled?e._e():n("el-table-column",{attrs:{label:e.$t("fsUpload.operating"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.deleteFile(t.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")])]}}],null,!1,1012280757)})],1)],1):e.isShowList?n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[n("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+t.row.uuid+"&showName="+t.row.fileName,type:"primary"}},[e._v("\n "+e._s(t.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),n("el-table-column",{attrs:{width:"200",label:e.$t("fsUpload.operating")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.disabled?e._e():n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.deleteFile(t.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")]),n("el-button",{attrs:{size:"mini"},on:{click:function(n){return e.preview(t.row)}}},[e._v("\n "+e._s(e.$t("fsUpload.preview"))+"\n ")])]}}],null,!1,1706256729)})],1)],1):n("div",e._l(e.unifiedEnclosures,(function(t,r){return n("div",{key:r},[n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+t.uuid+"&showName="+t.fileName,type:"primary"}},[e._v("\n "+e._s(t.fileName)+"\n ")]),n("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():n("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px"},on:{click:function(t){return e.deleteFile(r)}}})]),n("el-tooltip",{staticStyle:{"margin-left":"10px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[n("i",{staticClass:"el-icon-view",on:{click:function(n){return e.preview(t)}}})])],1)})),0)]):e._e(),e.bigPictureVisible?n("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.unifiedEnclosures},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},nd=[],rd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"close-on-click-modal":!1,visible:"","append-to-body":""},on:{close:function(t){return e.$emit("close")}}},[n("el-carousel",{staticStyle:{width:"100%"},attrs:{height:"600px",autoplay:!1,"indicator-position":"outside","initial-index":e.displayIndex}},e._l(e.unifiedEnclosures,(function(t,r){return n("el-carousel-item",{key:r,attrs:{label:t.fileName}},[n("div",[n("el-image",{staticStyle:{height:"580px"},attrs:{"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+t.uuid+"&showName="+t.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+t.uuid+"&showName="+t.fileName}})],1)])})),1)],1)},od=[],id={props:{unifiedEnclosures:{type:Array,default:null},showIndex:{type:Number,default:0}},data:function(){return{displayIndex:0}},created:function(){this.displayIndex=this.showIndex},methods:{}},ad=id,sd=f(ad,rd,od,!1,null,null,null),ud=sd.exports,ld={name:"FsUploadMulti",components:{seeBigPicture:ud},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null}},data:function(){return{unifiedEnclosures:[],bigPictureVisible:!1,baseURL:"",accepts:"",showIndex:0,loading:""}},created:function(){this.baseURL=O.a.prototype.baseURL,this.data&&(this.unifiedEnclosures=this.data),this.judgeImg()},methods:{bigPicture:function(e){this.showIndex=e,this.bigPictureVisible=!0},onSuccess:function(){var e=this.unifiedEnclosures;this.$emit("onSuccess",e)},judgeImg:function(){this.isImg?this.accepts="image/*":this.accept&&(this.accepts=this.accept)},selectDataFile:function(){this.$refs.uploadTemplate.click()},deleteFile:function(e){this.deleteUuid=this.unifiedEnclosures[e].uuid,this.unifiedEnclosures.splice(e,1),this.deleteSuccess()},deleteSuccess:function(){var e=this.unifiedEnclosures;this.$emit("deleteSuccess",this.deleteUuid,e)},preview:function(e){if(O.a.prototype.isOffice){var t=Object(Ue["a"])(),n={fileName:O.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+t},r=this.$http;r.post(O.a.prototype.baseURL+"/common/fs-upload/des-encrypt",n).then((function(e){window.open(O.a.prototype.isOffice+e)}))}else{var o,i=e.fileName.split(".");o="xls"===i[i.length-1].toLowerCase()||"xlsx"===i[i.length-1].toLowerCase()||"csv"===i[i.length-1].toLowerCase()?i[0]+".html":i[0]+".pdf";var a=Object(Ue["a"])();if(O.a.prototype.customPreviewUrl)window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.uuid+"&showName="+encodeURI(e.fileName),o);else{var s=O.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a;Object(He["c"])(O.a.prototype.systemCode)&&(s=O.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a),window.open(s,o)}}},upload:function(e){var t,n=this;if(this.fileSize&&0!==this.fileSize&&this.unifiedEnclosures.length>=this.fileSize&&(t=this.$t("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs")+":"+this.fileSize),t)e.target.value="",this.$message({showClose:!0,type:"warning",message:t});else{this.loading=!0;var r=new FormData;r.append("file",this.$refs.uploadTemplate.files[0]);var o=this.$http;o.headers="'Content-Type': 'multipart/form-data'",o.post(O.a.prototype.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,r,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){n.unifiedEnclosures.push(t),e.target.value="",console.log("data",t),n.judgeImg(),console.log(" this.unifiedEnclosures",n.unifiedEnclosures),n.onSuccess(),n.$message({showClose:!0,type:"success",message:n.$t("fsUpload.uploadSucceeded")}),n.loading=!1})).catch((function(){e.target.value="",n.loading=!1}))}}}},cd=ld,fd=f(cd,td,nd,!1,null,"55a65746",null),dd=fd.exports,hd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.unifiedEnclosure&&e.unifiedEnclosure.uuid&&e.unifiedEnclosure.fileName&&e.isShowData?n("div",[e.isImg?n("el-image",{attrs:{fit:e.fit,"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName},on:{click:e.bigPicture}}):n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName,type:"primary"}},[e._v("\n "+e._s(e.unifiedEnclosure.fileName)+"\n ")]),n("el-tooltip",{attrs:{content:e.$t("fsUpload.download"),effect:"light"}},[e.isImg?n("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName,type:"primary"}},[n("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px","font-size":"30px"}})]):e._e()],1),n("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():n("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px","font-size":"30px"},on:{click:e.deleteFile}})]),n("el-tooltip",{staticStyle:{"margin-left":"10px","font-size":"30px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[e.isImg?e._e():n("i",{staticClass:"el-icon-view",on:{click:e.preview}})])],1):e._e(),e.isShowButton&&!e.disabled?n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload2"},on:{click:e.selectDataFile}},[e._v("\n "+e._s(e.$t("fsUpload.upload"))+"\n ")]):e._e(),n("input",{ref:"uploadTemplate",staticStyle:{display:"none"},attrs:{type:"file",name:"uploadTemplate",accept:e.accepts},on:{change:e.upload}}),e.bigPictureVisible?n("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.data},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},pd=[],md=n("a78e"),gd=n.n(md),vd={name:"FsUploadSingle",components:{seeBigPicture:ud},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null}},data:function(){return{unifiedEnclosure:{uuid:"",fileName:""},loading:"",baseURL:"",showIndex:0,accepts:"",deleteUuid:"",bigPictureVisible:!1}},created:function(){this.baseURL=O.a.prototype.baseURL,this.data&&(this.unifiedEnclosure=this.data[0]),this.accept?this.accepts=this.accept:this.isImg&&(this.accepts="image/*")},methods:{bigPicture:function(){this.bigPictureVisible=!0},deleteFile:function(){this.deleteUuid=this.unifiedEnclosure.uuid,this.unifiedEnclosure=null,this.deleteSuccess()},deleteSuccess:function(){if(this.unifiedEnclosure){var e=[this.unifiedEnclosure];this.$emit("deleteSuccess",this.deleteUuid,e)}else this.$emit("deleteSuccess",this.deleteUuid)},acceptService:function(){return this.isImg?"image/*":null},selectDataFile:function(){this.$refs.uploadTemplate.click()},onSuccess:function(){if(this.unifiedEnclosure){var e=[this.unifiedEnclosure];this.$emit("onSuccess",e,this.deleteUuid)}else this.$emit("onSuccess",null,this.deleteUuid)},preview:function(){if(O.a.prototype.isOffice){var e=gd.a.get("JWT"),t={fileName:O.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+e},n=this.$http;n.post(O.a.prototype.baseURL+"/common/fs-upload/des-encrypt",t).then((function(e){window.open(O.a.prototype.isOffice+e)}))}else{var r,o=this.unifiedEnclosure.fileName.split(".");r="xls"===o[o.length-1].toLowerCase()||"xlsx"===o[o.length-1].toLowerCase()||"csv"===o[o.length-1].toLowerCase()?o[0]+".html":o[0]+".pdf";var i=Object(Ue["a"])();if(O.a.prototype.customPreviewUrl)window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+encodeURI(this.unifiedEnclosure.fileName),r);else{var a=O.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName;Object(He["c"])(O.a.prototype.systemCode)&&(a=O.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+i),window.open(a,r)}}},upload:function(e){var t=this;this.loading=!0;var n=new FormData;n.append("file",this.$refs.uploadTemplate.files[0]);var r=this.$http;r.headers="'Content-Type': 'multipart/form-data'",this.unifiedEnclosure&&(this.deleteUuid=this.unifiedEnclosure.uuid),r.post(O.a.prototype.baseURL+"/common/fs-upload/upload-template/"+this.systemCode,n,{headers:{"Content-Type":"multipart/form-data"}}).then((function(n){t.unifiedEnclosure=n,e.target.value="",console.log("data",n),console.log(" this.unifiedEnclosure",t.unifiedEnclosure),t.onSuccess(),t.loading=!1,t.$message({showClose:!0,type:"success",message:t.$t("fsUpload.uploadSucceeded")})})).catch((function(){e.target.value="",t.loading=!1}))}}},bd=vd,yd=f(bd,hd,pd,!1,null,"708f569b",null),wd=yd.exports,_d={name:"FsUpload",components:{fsUploadMulti:dd,fsUploadSingle:wd},props:{systemCode:{type:String,default:null},accept:{type:String,default:null},isImg:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isShowList:{type:Boolean,default:!0},fit:{type:String,default:null},disabled:{type:Boolean,default:!1},isShowButton:{type:Boolean,default:!0},isShowData:{type:Boolean,default:!0},data:{type:Array,default:null},imgSize:{type:Number,default:0},fileSize:{type:Number,default:0},tableHeight:{type:String,default:null},isDelete:{type:Boolean,default:!1}},data:function(){return{deleteUuids:[]}},created:function(){},methods:{onSuccess:function(e,t){console.log("data",e),console.log("deleteUuid",t),this.isDelete&&t?(this.deleteFile(t),this.$emit("onSuccess",e)):(t&&this.deleteUuids.push(t),this.$emit("onSuccess",e))},deleteSuccess:function(e,t){console.log("deleteUuid",e),console.log("data",t),this.isDelete?(this.deleteFile(e),this.$emit("deleteSuccess",t)):(e&&this.deleteUuids.push(e),this.$emit("deleteSuccess",t))},deleteFile:function(e){var t=this.$http,n=[e];t.delete(O.a.prototype.baseURL+"/common/fs-upload",{data:n}).then((function(e){}))},getdeleteUuIds:function(){return this.deleteUuids}}},Cd=_d,xd=f(Cd,Qf,ed,!1,null,"91a07efc",null),Sd=xd.exports;Sd.install=function(e){e.component(Sd.name,Sd)};var Od=Sd,kd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-input",{attrs:{value:e.value,disable:e.disable,placeholder:e.placeholder,clearable:e.clearable,readonly:e.readonly,maxlength:e.maxlength},on:{change:e.change,blur:e.blur,focus:e.focus,input:e.input,clear:e.clear}},[e.isMobile?n("el-button",{attrs:{slot:"append",icon:"el-icon-full-screen"},on:{click:e.openVideo},slot:"append"}):e._e()],1),e.isShow?n("scan-code-input-colse",{attrs:{"colse-video":e.colseVideo},on:{close:e.closeVideo}}):e._e()],1)},Ed=[],Td=(n("4917"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("video",{ref:"video",staticClass:"video vjs-fluid",attrs:{id:"video",height:"300",autoplay:""},on:{click:e.clickVideo}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.tipShow,expression:"tipShow"}],staticClass:"tip"},[e._v("\n "+e._s(e.tipMsg)+"\n ")])])}),Dd=[];n("96cf");function Id(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,o)}function Nd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Id(i,r,o,a,s,"next",e)}function s(e){Id(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ad=n("224f"),Pd={name:"ScanCodeInputColse",components:{},props:{colseVideo:{type:Boolean,default:!1}},data:function(){return{loadingShow:!1,codeReader:new Ad["BrowserMultiFormatReader"],textContent:null,vin:null,tipMsg:this.$t("messageVideo.attemptingToIdentify"),tipShow:!1,isVideo:!1}},created:function(){this.openScan()},beforeDestroy:function(){console.log("销毁定时器"),this.codeReader.reset()},methods:{openScan:function(){var e=Nd(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,t.codeReader.listVideoInputDevices().then((function(e){t.tipShow=!0,t.tipMsg=n.$t("messageVideo.callingRearCamera"),console.log("videoInputDevices",e);var r=e[0].deviceId,o=JSON.stringify(e[0].label);e.length>1&&(r=o.indexOf("back")>-1?e[0].deviceId:e[1].deviceId),t.decodeFromInputVideoFunc(r)})).catch((function(e){t.tipShow=!1,console.error(e)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),openScanTwo:function(){var e=Nd(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.next=3,new Ad["BrowserMultiFormatReader"];case 3:t.codeReader=e.sent,t.codeReader.listVideoInputDevices().then((function(e){t.tipShow=!0,t.tipMsg=n.$t("messageVideo.callingRearCamera"),console.log("videoInputDevices",e);var r=e[0].deviceId,o=JSON.stringify(e[0].label);e.length>1&&(r=o.indexOf("back")>-1?e[0].deviceId:e[1].deviceId),t.decodeFromInputVideoFunc(r)})).catch((function(e){t.tipShow=!1,console.error(e)}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),decodeFromInputVideoFunc:function(e){var t=this,n=this;n.codeReader.reset(),n.textContent=null,n.codeReader.decodeFromVideoDevice(e,"video",(function(e,r){n.tipMsg=t.$t("messageVideo.attemptingToIdentify"),n.textContent=null,e&&(console.log(e),n.textContent=e.text,n.textContent&&(n.tipShow=!1,n.msgBoxFunc(n.textContent))),r&&!r&&(n.tipMsg=t.$t("messageVideo.identificationFailed"),setTimeout((function(){n.tipShow=!1}),2e3),console.error(r))}))},msgBoxFunc:function(e){var t=this;t.vin=e,t.$emit("close",t.vin),t.codeReader.reset()},clickVideo:function(){this.colseVideo&&(this.$emit("close",this.vin),this.codeReader.reset())}}},Md=Pd,Rd=f(Md,Td,Dd,!1,null,null,null),Bd=Rd.exports,Ld={change:function(e){this.$emit("change",e)},clear:function(){this.$emit("clear")},blur:function(e){this.$emit("blur",e)},focus:function(e){this.$emit("focus",e)},input:function(e){this.$emit("input",e)}},Fd=Ld;function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$d(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vd={name:"ScanCodeInput",components:{scanCodeInputColse:Bd},model:{prop:"value",event:"input"},props:{colseVideo:{type:Boolean,default:!1},value:{type:String,default:null},disable:{type:Boolean,default:!1},placeholder:{type:String,default:null},clearable:{type:Boolean,default:null},readonly:{type:Boolean,default:!1},maxlength:{type:Number,default:null}},data:function(){return{isMobile:!1,isShow:!1,scanCode:""}},watch:{value:{deep:!0,handler:function(e){this.scanCode=this.value}}},created:function(){this.isMobile=this.equipment(),this.scanCode=this.value},beforeDestroy:function(){},methods:jd(jd({},Fd),{},{equipment:function(){var e=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);if(e)return e;try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}},openVideo:function(){this.isShow?this.isShow=!1:this.isShow=!0},closeVideo:function(e){this.isShow=!1,this.value=e,this.$emit("colse",e)}})},zd=Vd,Hd=f(zd,kd,Ed,!1,null,null,null),Ud=Hd.exports;Ud.install=function(e){e.component(Ud.name,Ud)};var Wd=Ud,Gd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?[n("fs-preview",{attrs:{label:e.value,entity:e.row,"is-sql":e.isSql,"file-set-obj":e.fileSetObj}})]:[n("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),n("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"30%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},[e.annexUploadFlag?n("el-upload",{attrs:{action:e.defaultAction,accept:e.fileSetObj.accept?e.fileSetObj.accept:null,"on-success":e.uploadOnSuccess,headers:e.headers,"before-upload":e.handleBeforeUpload,"with-credentials":!0,name:"file"}},[n("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?n("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),n("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[n("el-table-column",{attrs:{width:"300",prop:"showName"}}),n("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.previewSingle(t.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():n("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.deleteRow(t.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},qd=[],Yd={name:"FsUploadList",components:{FsPreview:Hn},props:{value:{type:String,default:null},fileInfo:{type:Object,default:function(){return{name:null,serverPath:null}}},fileSetObj:{type:Object,default:function(){return{limitFileSize:30,multiple:!1,accept:null}}},customViewUrl:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadAble:{type:Boolean,default:!0},deletaAble:{type:Boolean,default:!0},fileList:{type:Array,default:function(){return[]}},row:{type:Object,default:function(){return{}}},isSql:{type:Boolean,default:!1}},data:function(){var e={Authorization:Object(Ue["a"])()},t=O.a.prototype.baseURL+"/common/fs-upload";return Object(He["c"])(O.a.prototype.systemCode)&&(t=O.a.prototype.baseAPI+"/component/super-form/uploads"),{deleteUuids:[],headers:e,defaultAction:t,annexUploadFlag:!1,showPreviewSingleImage:!1,showPreviewMulti:!1,lastFileName:null,previewImageInfo:{},showFileList:this.fileList}},created:function(){},mounted:function(){},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},handleBeforeUpload:function(e){var t=this.fileSetObj.limitFileSize;if(void 0===t&&(t=30),e.size>1024*t*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},uploadOnSuccess:function(e,t){e&&(this.$emit("upload-success",{showName:e.name,serverPath:e.serverPath}),this.fileSetObj.multiple&&this.fileInfo.showName?(this.fileInfo.showName=this.fileInfo.showName+","+e.name,this.fileInfo.serverPath=this.fileInfo.serverPath+","+e.serverPath):(this.fileInfo.showName=e.name,this.fileInfo.serverPath=e.serverPath)),this.annexUploadFlag=!1},preview:function(){var e=this;this.fileList.length=0;var t=this.fileInfo.serverPath.split(",");this.$http.post(O.a.prototype.baseURL+"/common/fs-upload/search-file-names",t).then((function(n){t.forEach((function(t){e.fileList.push({showName:n[t],serverPath:t})})),e.showFileList=e.fileList,e.showPreviewMulti=!0}))},previewSingle:function(e){e=vt(e.showName,e.serverPath),Object(x["j"])(e.showName)?(this.previewImageInfo=e,this.showPreviewSingleImage=!0):this.previewDoc(e)},previewDoc:function(e){var t=e.showName.replace("#","~~").replace("?","~$").replace("&","$"),n=Object(Ue["a"])(),r=O.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(He["c"])(O.a.prototype.systemCode)&&(r=O.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),O.a.prototype.customPreviewUrl?window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.serverPath+"&showName="+encodeURI(t),e.showName):window.open(r+"&showName="+encodeURI(t)+"&serverPath="+e.serverPath)},deleteRow:function(e){for(var t=this.showFileList[e],n=[],r=[],o=0;o<this.showFileList.length;o++)o!==e&&(n.push(this.showFileList[o].showName),r.push(this.showFileList[o].serverPath));0===n.length?(this.fileInfo.showName=null,this.fileInfo.serverPath=null,this.showFileList=[],this.$emit("delete-success",{deleteFile:t,all:[]}),this.$emit("delete",[],e)):(this.fileInfo.showName=n.join(","),this.fileInfo.serverPath=r.join(","),this.$emit("delete-success",{deleteFile:t,all:this.showFileList}),this.$emit("delete",this.showFileList,e))}}},Kd=Yd,Xd=f(Kd,Gd,qd,!1,null,"2ee62821",null),Jd=Xd.exports;Jd.install=function(e){e.component(Jd.name,Jd)};var Zd=Jd,Qd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-date-picker",{staticStyle:{width:"47%"},attrs:{"value-format":"yyyy",type:"year",placeholder:e.$t("imatrixUIMessage.selectYear")},on:{change:e.changeStart},model:{value:e.value[0],callback:function(t){e.$set(e.value,0,t)},expression:"value[0]"}}),e._v("\n -\n "),n("el-date-picker",{staticStyle:{width:"47%"},attrs:{"value-format":"yyyy",type:"year",placeholder:e.$t("imatrixUIMessage.selectYear")},on:{change:e.changeEnd},model:{value:e.value[1],callback:function(t){e.$set(e.value,1,t)},expression:"value[1]"}})],1)},eh=[],th={name:"YearRangePicker",props:{value:{type:Array,default:function(){return[]}}},data:function(){return{yearStart:"",yearEnd:""}},methods:{changeStart:function(e){this.value[0]=e,this.$emit("change",this.value)},changeEnd:function(e){this.value[1]=e,this.$emit("change",this.value)}}},nh=th,rh=f(nh,Qd,eh,!1,null,null,null),oh=rh.exports;oh.install=function(e){e.component(oh.name,oh)};var ih=oh,ah=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["form"===e.type?n("MultipartUploadForm"):n("MultipartUploadList",{attrs:{disabled:e.disabled,entity:e.entity,value:e.value,"file-set-obj":e.fileSetObj}})],1)},sh=[],uh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?[n("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[n("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"})],1),n("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"40%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},[n("el-upload",{attrs:{id:"upload","show-file-list":!1,"auto-upload":!1,"on-change":e.uploadFile,action:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[e._v("\n 选择文件\n ")]),n("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"12px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n 上传文件不能超过"+e._s(e.fileSetObj.limitFileSize)+"M\n "),e.fileSetObj.accept?n("span",[e._v(",并且只接受"+e._s(e.fileSetObj.accept)+"类型文件")]):e._e()])],1),n("br"),e._l(e.uploadingFile,(function(t,r){return n("el-row",{key:r},[n("el-tag",{attrs:{size:"small form-list-file"}},[n("span",[n("i",{staticClass:"el-icon-paperclip"}),n("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(t.name))])]),n("el-tooltip",{attrs:{content:"取消上传",placement:"right",effect:"light"}},[n("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(n){return e.cancelUpload(t.serverName)}}})])],1),n("el-progress",{attrs:{percentage:t.uploadProgress}})],1)})),n("div",{staticStyle:{}},[n("el-row",[n("el-col",e._l(e.fileContent,(function(t,r){return n("el-tag",{key:r,attrs:{size:"small form-list-file"}},[n("span",{on:{click:function(n){return e.preview(t.name,t.serverName)}}},[n("i",{staticClass:"el-icon-paperclip"}),n("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(t.name))])]),n("el-tooltip",{attrs:{content:"移除已上传文件",placement:"right",effect:"light"}},[n("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(n){return e.handleOnRemove(r,t)}}})])],1)})),1)],1)],1)],2),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),n("el-image",{attrs:{src:e.previewImageInfo.src,"preview-src-list":[e.previewImageInfo.src]}})],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),n("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[n("el-table-column",{attrs:{width:"300",prop:"showName"}}),n("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.previewSingle(t.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():n("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.deleteRow(t.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},lh=[],ch={name:"MultipartUploadList",components:{FsPreview:Hn},props:{value:{type:String,default:null},entity:{type:Object,default:null},fileSetObj:{type:Object,default:function(){return{limitFileSize:10,multiple:!1,accept:null}}},disabled:{type:Boolean,default:!1}},data:function(){var e={Authorization:Object(Ue["a"])()},t=O.a.prototype.baseURL+"/common/fs-upload";return Object(He["c"])(O.a.prototype.systemCode)&&(t=O.a.prototype.baseAPI+"/component/super-form/uploads"),{deleteUuids:[],headers:e,defaultAction:t,annexUploadFlag:!1,showPreviewSingleImage:!1,showPreviewMulti:!1,lastFileName:null,previewImageInfo:{},showFileList:[],uploadingFile:[],cancelUploadFile:[],fileContent:[],chunkSize:5242880}},created:function(){},mounted:function(){var e=this;this.fileSetObj.limitFileSize||(this.fileSetObj.limitFileSize=10);var t=this.entity[this.fileSetObj.showNameData.dbName],n=this.entity[this.fileSetObj.serverNameData.dbName];if(t&&n){var r=t.split(","),o=n.split(",");r.forEach((function(t,n){e.fileContent.push({name:t,serverName:o[n]});var r=Object(Ue["a"])(),i=O.a.prototype.baseURL+"/common/super-form/downloads?jwt="+r;Object(He["c"])(O.a.prototype.systemCode)&&(i=O.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+r);var a=i+"&showName="+encodeURI(t)+"&serverPath="+o[n];e.showFileList.push({showName:t,serverPath:o[n],src:a})}))}},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},uploadFile:function(){var e=Nd(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.uploadingFile.length>0)||this.fileSetObj.multiple){e.next=3;break}return this.$message({showClose:!0,message:"文件单选,请勿同时上传多份文件!",type:"warning"}),e.abrupt("return");case 3:n=Date.now(),this.uploadingFile.push({name:t.raw.name,uploadProgress:0,serverName:n}),r=t.raw,o=r.size,i=Math.ceil(o/this.chunkSize),console.log("文件大小:",r.size/1024/1024+"Mb","分片数:",i),console.log("向后端请求本次分片上传初始化"),a={fileName:r.name,chunkCount:i},this.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/create",a).then(function(){var e=Nd(regeneratorRuntime.mark((function e(t){var u,l,c,f,d,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(s.cancelUploadFile,"sssssssssssss"),!(s.cancelUploadFile.indexOf(a.serverName)>0)){e.next=3;break}return e.abrupt("return");case 3:u=s.uploadingFile.findIndex((function(e){return e.serverName===n})),l=t.serverName,s.uploadingFile[u]={uploadProgress:0,name:r.name,serverName:l,folder:t.folder},console.log(s.uploadingFile,"uploadingFile"),c=[],f=regeneratorRuntime.mark((function e(n){var a,f,d,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=n*s.chunkSize,f=Math.min(o,a+s.chunkSize),d=r.slice(a,f),console.log("开始上传第"+(n+1)+"个分片,共"+i+"个"),h=new FormData,h.append("folder",t.folder),h.append("serverName",l),h.append("file",d),!(s.cancelUploadFile.indexOf(l)>0)){e.next=12;break}return e.abrupt("return","break");case 12:return e.next=14,s.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/upload",h).then((function(e){c.push(e.uploadName);var t=parseInt((n+1)/i*100);s.uploadingFile[u].uploadProgress=t>100?100:t,s.$set(s.uploadingFile,u,s.uploadingFile[u]),console.log("第"+(n+1)+"个分片上传完成",s.uploadingFile)}));case 14:case"end":return e.stop()}}),e)})),d=0;case 10:if(!(d<i)){e.next=18;break}return e.delegateYield(f(d),"t0",12);case 12:if(h=e.t0,"break"!==h){e.next=15;break}return e.abrupt("break",18);case 15:d++,e.next=10;break;case 18:if(!(s.cancelUploadFile.indexOf(l)<0)){e.next=22;break}s.composeFile(r.name,i,o,l,c,t.folder),e.next=24;break;case 22:return e.next=24,s.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/remove-chunks",{serverName:l,folder:t.folder}).then((function(e){console.log("取消上传,并移除已上传的文件碎片")}));case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),composeFile:function(e,t,n,r,o,i){var a=this,s={fileName:e,chunkSize:t,fileSize:n,serverName:r,chunkNames:o,folder:i};console.log(s,"开始请求后端合并文件"),this.$http.post(O.a.prototype.baseURL+"/common/mutipart-upload/merge",s).then((function(t){if(a.uploadingFile.splice(a.uploadingFile.findIndex((function(e){return e.serverName===r})),1),a.fileSetObj.multiple){a.fileContent.push({name:e,serverName:r});var n=a.entity[a.fileSetObj.showNameData.dbName];n&&n.length>0?a.setEntityValue(n+","+e,a.entity[a.fileSetObj.serverNameData.dbName]+","+r):a.setEntityValue(e,r)}else a.fileContent=[{name:e,serverName:r}],a.setEntityValue(e,r);console.log("合并文件完成",t,a.entity)}))},setEntityValue:function(e,t){this.$set(this.entity,this.fileSetObj.showNameData.dbName,e),this.$set(this.entity,this.fileSetObj.serverNameData.dbName,t)},cancelUpload:function(e){this.$set(this.entity,"DOC_NAME",null),this.$set(this.entity,"DOC_PATH",null),this.cancelUploadFile.push(e),this.uploadingFile.splice(this.uploadingFile.findIndex((function(t){return t.serverName===e})),1)},preview:function(e,t){Object(x["j"])(e)?(this.previewImageInfo={src:O.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(Ue["a"])()+"&showName="+e+"&serverPath="+t},this.showPreviewSingleImage=!0):this.previewDoc(e,t)},previewDoc:function(e,t){var n=Object(Ue["a"])(),r=O.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(He["c"])(O.a.prototype.systemCode)&&(r=O.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),O.a.prototype.customPreviewUrl?window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+t+"&showName="+encodeURI(e),e):window.open(r+"&showName="+encodeURI(e)+"&serverPath="+t)},handleOnRemove:function(e){if(this.fileContent.splice(e,1),this.fileSetObj.multiple){var t=[],n=[];this.fileContent.forEach((function(e){e.name&&e.serverName&&(t.push(e.name),n.push(e.serverName))})),this.setEntityValue(t.join(","),n.join(","))}else this.setEntityValue(null,null)}}},fh=ch,dh=f(fh,uh,lh,!1,null,"78bfc762",null),hh=dh.exports,ph=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.disabled?[n("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[n("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),n("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),n("el-dialog",{attrs:{title:e.$t("imatrixUIMessage.tips"),visible:e.annexUploadFlag,"append-to-body":!0,"show-close":!0,width:"30%"},on:{"update:visible":function(t){e.annexUploadFlag=t}}},[e.annexUploadFlag?n("el-upload",{attrs:{action:e.defaultAction,accept:e.fileSetObj.accept?e.fileSetObj.accept:null,"on-success":e.uploadOnSuccess,headers:e.headers,"before-upload":e.handleBeforeUpload,"with-credentials":!0,name:"file"}},[n("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.previewImage"),visible:e.showPreviewSingleImage},on:{"update:visible":function(t){e.showPreviewSingleImage=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?n("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),n("el-dialog",{attrs:{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),visible:e.showPreviewMulti,width:"30%"},on:{"update:visible":function(t){e.showPreviewMulti=t},close:function(t){return e.$emit("close")}}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),n("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[n("el-table-column",{attrs:{width:"300",prop:"showName"}}),n("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.previewSingle(t.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():n("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[n("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(n){return e.deleteRow(t.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},mh=[],gh={name:"MultipartUploadForm",components:{FsPreview:Hn},props:{value:{type:String,default:null},fileInfo:{type:Object,default:function(){return{name:null,serverPath:null}}},fileSetObj:{type:Object,default:function(){return{limitFileSize:30,multiple:!1,accept:null}}},customViewUrl:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadAble:{type:Boolean,default:!0},deletaAble:{type:Boolean,default:!0},fileList:{type:Array,default:function(){return[]}}},data:function(){var e={Authorization:Object(Ue["a"])()},t=O.a.prototype.baseURL+"/common/fs-upload";return Object(He["c"])(O.a.prototype.systemCode)&&(t=O.a.prototype.baseAPI+"/component/super-form/uploads"),{deleteUuids:[],headers:e,defaultAction:t,annexUploadFlag:!1,showPreviewSingleImage:!1,showPreviewMulti:!1,lastFileName:null,previewImageInfo:{},showFileList:this.fileList}},created:function(){},mounted:function(){this.getFileList()},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},handleBeforeUpload:function(e){var t=this.fileSetObj.limitFileSize;if(void 0===t&&(t=30),e.size>1024*t*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},uploadOnSuccess:function(e,t){if(e)if(this.$emit("upload-success",{showName:e.name,serverPath:e.serverPath}),this.fileSetObj.multiple)if(this.fileInfo.showName){var n=this.fileInfo.showName.split(","),r=this.fileInfo.serverPath.split(",");n.push(e.name),r.push(e.serverPath),this.fileInfo.showName=n.join(","),this.fileInfo.serverPath=r.join(",")}else this.fileInfo.showName=e.name,this.fileInfo.serverPath=e.serverPath;else this.fileInfo.showName=e.name,this.fileInfo.serverPath=e.serverPath;this.annexUploadFlag=!1},preview:function(){this.getFileList(),this.showPreviewMulti=!0},previewSingle:function(e){Object(x["j"])(e.showName)?(this.previewImageInfo=e,this.showPreviewSingleImage=!0):this.previewDoc(e)},getFileList:function(){if(this.customViewUrl)this.showFileList=this.fileList;else{var e=this.fileInfo.showName.split(","),t=this.fileInfo.serverPath.split(",");if(0===e.length||0===t.length||e.length!==t.length)return;for(var n=[],r=O.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(Ue["a"])(),o=0;o<e.length;o++){var i=e[o];if(i&&t[o]){var a={showName:i,serverPath:t[o],src:r+"&showName="+i+"&serverPath="+t[o]};Object(x["j"])(i)?a.isImg=!0:a.isImg=!1,n.push(a)}}this.showFileList=n}},previewDoc:function(e){var t=Object(Ue["a"])(),n=O.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+t;Object(He["c"])(O.a.prototype.systemCode)&&(n=O.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+t),O.a.prototype.customPreviewUrl?window.open(Object(He["b"])(O.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.serverPath+"&showName="+encodeURI(e.showName),e.showName):window.open(n+"&showName="+encodeURI(e.showName)+"&serverPath="+e.serverPath)},deleteRow:function(e){for(var t=this.showFileList[e],n=[],r=[],o=0;o<this.showFileList.length;o++)o!==e&&(n.push(this.showFileList[o].showName),r.push(this.showFileList[o].serverPath));this.fileInfo.showName=n.join(","),this.fileInfo.serverPath=r.join(","),this.getFileList(),this.$emit("delete-success",{deleteFile:t,all:this.showFileList}),this.$emit("delete",this.showFileList,e)}}},vh=gh,bh=f(vh,ph,mh,!1,null,"0548435e",null),yh=bh.exports,wh={name:"MultipartUpload",components:{MultipartUploadList:hh,MultipartUploadForm:yh},props:{type:{type:String,default:"form"},value:{type:String,default:null},entity:{type:Object,default:null},fileSetObj:{type:Object,default:function(){return{limitFileSize:30,multiple:!1,accept:null}}},disabled:{type:Boolean,default:!1},uploadAble:{type:Boolean,default:!0},deletaAble:{type:Boolean,default:!0}},data:function(){return{}},created:function(){console.log(this.fileSetObj,"fileSetObj"),console.log(this.entity,"entity")},mounted:function(){},methods:{}},_h=wh,Ch=f(_h,ah,sh,!1,null,"18d0a944",null),xh=Ch.exports;xh.install=function(e){e.component(xh.name,xh)};var Sh=xh,Oh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{maxHeight:e.maxHeight+"px"}},[e.disabled?n("div",[n("div",{staticStyle:{overflow:"auto",border:"1px solid #DCDFE6",padding:"2px"},style:{maxHeight:e.maxHeight+"px"},attrs:{id:e.viewerId}}),n("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.fullScreen"),effect:"dark",placement:"top"}},[n("em",{staticClass:"el-icon-full-screen",staticStyle:{"z-index":"1",right:"20px",position:"absolute",top:"2px"},on:{click:e.fullScreenContent}})]),n("el-image",{ref:"previewImg",staticStyle:{display:"none",width:"100px",height:"100px"},attrs:{src:e.srcList[0],"preview-src-list":e.srcList}})],1):n("Editor",{attrs:{init:e.init,disabled:e.disabled},model:{value:e.contentValue,callback:function(t){e.contentValue=t},expression:"contentValue"}}),n("el-dialog",{attrs:{visible:e.dialogVisible,title:e.title,"destroy-on-close":"","append-to-body":"",fullscreen:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{attrs:{id:e.fullscreenViewerId}})])],1)},kh=[],Eh=(n("34ef"),n("f559"),["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"]),Th=function(e){return-1!==Eh.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},Dh=function(e,t,n){Object.keys(t).filter(Th).forEach((function(r){var o=t[r];"function"===typeof o&&("onInit"===r?o(e,n):n.on(r.substring(2),(function(e){return o(e,n)})))}))},Ih=function(e,t){var n=e.$props.modelEvents?e.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;t.on(r||"change input undo redo",(function(){e.$emit("input",t.getContent({format:e.$props.outputFormat}))}))},Nh=function(e,t,n){var r=t.$props.value?t.$props.value:"",o=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:o)),t.$watch("value",(function(e,r){n&&"string"===typeof e&&e!==r&&e!==n.getContent({format:t.$props.outputFormat})&&n.setContent(e)})),t.$listeners.input&&Ih(t,n),Dh(e,t.$listeners,n),t.initialized=!0},Ah=0,Ph=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return Ah++,e+"_"+n+Ah+String(t)},Mh=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},Rh=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},Bh=function(e,t){return Rh(e).concat(Rh(t))},Lh=function(e){return null===e||void 0===e},Fh=function(){return{listeners:[],scriptId:Ph("tiny-script"),scriptLoaded:!1}},$h=function(){var e=Fh(),t=function(e,t,n,r){var o=t.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=e,o.src=n;var i=function(){o.removeEventListener("load",i),r()};o.addEventListener("load",i),t.head&&t.head.appendChild(o)},n=function(n,r,o){e.scriptLoaded?o():(e.listeners.push(o),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=Fh()};return{load:n,reinitialize:r}},jh=$h(),Vh=n("c4a9"),zh={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},Hh=function(){return Hh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hh.apply(this,arguments)},Uh=function(e,t,n){return e(n||"div",{attrs:{id:t}})},Wh=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},Gh=function(e){return function(){var t=Hh(Hh({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:Bh(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return Nh(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});Mh(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Object(Vh["a"])().init(t)}},qh={props:zh,created:function(){this.elementId=this.$props.id||Ph("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(Vh["a"])())Gh(this)();else if(this.element&&this.element.ownerDocument){var e=this.$props.cloudChannel?this.$props.cloudChannel:"5",t=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=Lh(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;jh.load(this.element.ownerDocument,n,Gh(this))}},beforeDestroy:function(){null!==Object(Vh["a"])()&&Object(Vh["a"])().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Object(Vh["a"])())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&Gh(this)()},render:function(e){return this.inlineEditor?Uh(e,this.elementId,this.$props.tagName):Wh(e,this.elementId)}},Yh=qh,Kh=n("78b7"),Xh=n.n(Kh),Jh=(n("0d68"),n("ec27"),n("0902"),n("855b"),n("3154"),n("2b07"),n("4ea8"),n("4237"),n("84ec"),n("bc54"),n("0a9d"),n("840a"),n("90e7"),n("6957"),n("62e5"),n("07d1"),n("34de"),n("9434"),n("0342"),n("3b2e"),{name:"RichEditor",components:{Editor:Yh},props:{entity:{type:Object,default:null},prop:{type:String,default:null},value:{type:String,default:""},disabled:{type:Boolean,default:!1},options:{type:Object,default:null},title:{type:String,default:""},plugins:{type:[String,Array],default:"paste print preview searchreplace directionality fullscreen image link table hr advlist lists wordcount "},toolbar:{type:[String,Array],default:" undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor | image | lineheight bullist numlist table | print fullscreen preview "}},data:function(){var e=this;"zh_CN"===Object(x["f"])()&&n("e433");var t="400";return this.options&&this.options.maxHeight&&(t=this.options.maxHeight),{maxHeight:t,init:{height:t,language:"zh-Hans",plugins:this.plugins,toolbar:this.toolbar,menubar:!1,fontsize_formats:"12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 48px 56px 72px",font_formats:"微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;",lineheight_formats:"0.5 0.8 1 1.2 1.5 1.75 2 2.5 3 4 5",placeholder:"在这里输入文字",branding:!1,resize:!1,elementpath:!1,image_description:!1,content_style:"img {width:400px;height:300px}",paste_data_images:!0,urlconverter_callback:function(e,t,n,r){return"img"===t&&e.startsWith("blob:")?(console.log("urlconverter_callback ...."),Xh.a.activeEditor&&Xh.a.activeEditor.uploadImages(),e):e},images_upload_handler:function(t,n,r,o){var i;t.blob()instanceof File?(console.log("images_upload_handler .File"),i=t.blob()):(console.log("images_upload_handler .base64"),i=e.base64ToFile(t.base64(),"a.png"));var a=new FormData;a.append("file",i);var s={headers:{"Content-Type":"multipart/form-data"}};e.$http.post("/common/fs-upload/rich-editor-image",a,s).then((function(e){console.log(e),n(e.url)})).catch((function(){r("上传出错,服务器开小差了呢")}))}},contentValue:this.value,markValue:"",srcList:[],psrcList:[],viewerId:"aglie_rich_editor_"+(new Date).getTime(),dialogVisible:!1,fullscreenViewerId:"editor_viewer_"+(new Date).getTime(),ImageComponent:null}},watch:{value:{deep:!0,handler:function(e,t){this.contentValue=e,this.entity[this.prop]=e}},contentValue:{deep:!0,handler:function(e,t){this.$emit("input",e),this.entity[this.prop]=e}},disabled:{deep:!0,handler:function(e,t){e&&this.initViewer()}}},created:function(){},mounted:function(){this.disabled?this.initViewer():Xh.a.init(this.init)},methods:{showImage:function(e){console.log(this.$refs.previewImg),this.srcList=[e.target.currentSrc],this.$refs.previewImg.showViewer=!0},fullScreenContent:function(){var e=this;this.dialogVisible=!0,this.$nextTick((function(){var t=(new e.ImageComponent).$mount();document.getElementById(e.fullscreenViewerId).appendChild(t.$el)}))},initViewer:function(){var e=this,t=this,n=this.value.replaceAll("<img",'<img @click="showImage" ');n="<div> "+n+" </div> ",this.ImageComponent=O.a.extend({methods:{showImage:function(e){console.log(e),t.showImage(e)}},template:n});var r=(new this.ImageComponent).$mount();this.$nextTick((function(){document.getElementById(e.viewerId).appendChild(r.$el)}))},base64ToFile:function(e,t){var n=atob(e),r=n.length,o=new Uint8Array(r);t=(new Date).getTime()+"-"+Math.floor(1e4*Math.random())+".png";while(r--)o[r]=n.charCodeAt(r);return new File([o],t,{type:"image/png"})}}}),Zh=Jh,Qh=f(Zh,Oh,kh,!1,null,null,null),ep=Qh.exports;ep.install=function(e){e.component(ep.name,ep)};var tp=ep,np=function(){var e=this,t=e.$createElement,n=e._self._c||t;return void 0!==e.value&&null!==e.value&&""!==e.value?n("span",[e.isShow?n("span",[e._v("\n "+e._s(e.decryInfo)),n("i",{staticClass:"fa fa-eye",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})]):n("span",[e._v("\n ******"),n("i",{staticClass:"fa fa-eye-slash",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})])]):e._e()},rp=[],op={name:"SecretInfo",props:{entity:{type:Object,default:null},prop:{type:String,default:null},value:{type:String,default:null},tableName:{type:String,default:null},listCode:{type:String,default:null},pageCode:{type:String,default:null},listName:{type:String,default:null},fieldLabel:{type:String,default:null}},data:function(){return{isShow:!1,decryInfo:null}},methods:{showHideSecretInfo:function(){this.isShow?this.isShow=!1:this.decryAndSaveLog()},decryAndSaveLog:function(){var e=this,t={tableName:this.tableName,listCode:this.listCode,listName:this.listName,pageCode:this.pageCode,fieldName:this.prop,fieldCnName:this.fieldLabel,ciphertext:this.value};this.entity&&(t.dataId=this.entity.ID?this.entity.ID:this.entity.id),this.$http.post(this.baseAPI+"/component/super-pages/decodeAndMonitorSecretInfoLog",t).then((function(t){e.decryInfo=t,e.isShow=!0}))}}},ip=op,ap=f(ip,np,rp,!1,null,"75022789",null),sp=ap.exports;sp.install=function(e){e.component(sp.name,sp)};var up=sp;function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fp=[p,oe,fe,be,Cs,hu,Iu,qu,Yu,tl,nl,rl,dl,Ol,Ml,Ac,Hc,ef,uf,Jf,Zf,Od,Wd,Un,Zd,ih,Sh,tp,up],dp=function e(t){t.directive("prevent-reclick",El),t.use(_c),e.installed||(fp.forEach((function(e){t.component(e.name,e)})),window["$plateform_openPage"]=fn)};"undefined"!==typeof window&&window.Vue&&dp(window.Vue);var hp=cp({install:dp},fp);n.d(t,"Breadcrumb",(function(){return p})),n.d(t,"DepartmentTree",(function(){return oe})),n.d(t,"Hamburger",(function(){return fe})),n.d(t,"SvgIcon",(function(){return be})),n.d(t,"SuperGrid",(function(){return Cs})),n.d(t,"DepartmentUserTree",(function(){return hu})),n.d(t,"WorkgroupTree",(function(){return Iu})),n.d(t,"WorkgroupUserTree",(function(){return qu})),n.d(t,"InlineDepartmentTree",(function(){return Yu})),n.d(t,"InlineDepartmentUserTree",(function(){return tl})),n.d(t,"InlineWorkgroupTree",(function(){return nl})),n.d(t,"InlineWorkgroupUserTree",(function(){return rl})),n.d(t,"WorkflowButton",(function(){return dl})),n.d(t,"WorkflowHistoryList",(function(){return Ol})),n.d(t,"ValidCode",(function(){return Ml})),n.d(t,"RemoveUser",(function(){return Ac})),n.d(t,"RemoveDepartment",(function(){return Hc})),n.d(t,"RemoveWorkgroup",(function(){return ef})),n.d(t,"OrganizationInput",(function(){return uf})),n.d(t,"SuperNineGrid",(function(){return Jf})),n.d(t,"DynamicSourceSelect",(function(){return Zf})),n.d(t,"FsUpload",(function(){return Od})),n.d(t,"ScanCodeInput",(function(){return Wd})),n.d(t,"FsPreview",(function(){return Un})),n.d(t,"FsUploadList",(function(){return Zd})),n.d(t,"YearRangePicker",(function(){return ih})),n.d(t,"MultipartUpload",(function(){return Sh})),n.d(t,"RichEditor",(function(){return tp})),n.d(t,"SecretInfo",(function(){return up}));t["default"]=hp},fb63:function(e,t,n){"use strict";var r=function(){function e(){}return e.round=function(e){return NaN===e?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){var o=e[n];t+=o}return t},e}();t["a"]=r},fc39:function(e,t){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},fd77:function(e,t,n){"use strict";n("b373")},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fe96:function(e,t,n){"use strict";var r;(function(e){e[e["OTHER"]=0]="OTHER",e[e["PURE_BARCODE"]=1]="PURE_BARCODE",e[e["POSSIBLE_FORMATS"]=2]="POSSIBLE_FORMATS",e[e["TRY_HARDER"]=3]="TRY_HARDER",e[e["CHARACTER_SET"]=4]="CHARACTER_SET",e[e["ALLOWED_LENGTHS"]=5]="ALLOWED_LENGTHS",e[e["ASSUME_CODE_39_CHECK_DIGIT"]=6]="ASSUME_CODE_39_CHECK_DIGIT",e[e["ASSUME_GS1"]=7]="ASSUME_GS1",e[e["RETURN_CODABAR_START_END"]=8]="RETURN_CODABAR_START_END",e[e["NEED_RESULT_POINT_CALLBACK"]=9]="NEED_RESULT_POINT_CALLBACK",e[e["ALLOWED_EAN_EXTENSIONS"]=10]="ALLOWED_EAN_EXTENSIONS"})(r||(r={})),t["a"]=r}})}));
|
|
37
37
|
//# sourceMappingURL=super-ui.umd.min.js.map
|