imatrix-ui 2.9.68-dw → 2.9.69-dw

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.
@@ -63,5 +63,5 @@ function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;va
63
63
  * @author owenm <owen23355@gmail.com>
64
64
  * @license MIT
65
65
  */
66
- function br(e){return br="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},br(e)}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(){return wr=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},wr.apply(this,arguments)}function _r(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){yr(e,t,n[t])}))}return e}function Cr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function xr(e,t){if(null==e)return{};var n,r,i=Cr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Sr="1.10.2";function kr(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Dr=kr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Or=kr(/Edge/i),Tr=kr(/firefox/i),Er=kr(/safari/i)&&!kr(/chrome/i)&&!kr(/android/i),Ir=kr(/iP(ad|od|hone)/i),Nr=kr(/chrome/i)&&kr(/android/i),Ar={capture:!1,passive:!1};function Pr(e,t,n){e.addEventListener(t,n,!Dr&&Ar)}function Mr(e,t,n){e.removeEventListener(t,n,!Dr&&Ar)}function Rr(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 Fr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Br(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Rr(e,t):Rr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Fr(e))}return null}var Lr,$r=/\s+/g;function Vr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace($r," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace($r," ")}}function jr(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 zr(e,t){var n="";if("string"===typeof e)n=e;else do{var r=jr(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Hr(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Ur(){var e=document.scrollingElement;return e||document.documentElement}function Wr(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,u,c,f;if(e!==window&&e!==Ur()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Dr))do{if(i&&i.getBoundingClientRect&&("none"!==jr(i,"transform")||n&&"static"!==jr(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(jr(i,"border-top-width")),s-=d.left+parseInt(jr(i,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=zr(i||e),p=h&&h.a,m=h&&h.d;h&&(a/=m,s/=p,f/=p,c/=m,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function qr(e,t,n){var r=Zr(e,!0),i=Wr(e)[t];while(r){var o=Wr(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===Ur())break;r=Zr(r,!1)}return!1}function Gr(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==so.ghost&&o[i]!==so.dragged&&Br(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function Yr(e,t){var n=e.lastElementChild;while(n&&(n===so.ghost||"none"===jr(n,"display")||t&&!Rr(n,t)))n=n.previousElementSibling;return n||null}function Kr(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===so.clone||t&&!Rr(e,t)||n++;return n}function Xr(e){var t=0,n=0,r=Ur();if(e)do{var i=zr(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function Jr(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 Zr(e,t){if(!e||!e.getBoundingClientRect)return Ur();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=jr(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Ur();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Ur()}function Qr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ei(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 ti(e,t){return function(){if(!Lr){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Lr=setTimeout((function(){Lr=void 0}),t)}}}function ni(){clearTimeout(Lr),Lr=void 0}function ri(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function ii(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 oi="Sortable"+(new Date).getTime();function ai(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==jr(e,"display")&&e!==so.ghost){t.push({target:e,rect:Wr(e)});var n=_r({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=zr(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(Jr(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=Wr(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,f=zr(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&ei(l,s)&&!ei(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=li(c,l,u,r.options)),ei(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,o=Math.max(o,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),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){jr(e,"transition",""),jr(e,"transform","");var i=zr(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,jr(e,"transform","translate3d("+s+"px,"+l+"px,0)"),si(e),jr(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),jr(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){jr(e,"transition",""),jr(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function si(e){return e.offsetWidth}function li(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 ui=[],ci={initializeByDefault:!0},fi={mount:function(e){for(var t in ci)ci.hasOwnProperty(t)&&!(t in e)&&(e[t]=ci[t]);ui.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ui.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](_r({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](_r({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ui.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,wr(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return ui.forEach((function(r){"function"===typeof r.eventProperties&&wr(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ui.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function di(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[oi],t){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Dr||Or?(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=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var b=_r({},p,fi.getEventProperties(r,t));for(var y in b)m[y]=b[y];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var hi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=xr(n,["evt"]);fi.pluginEvent.bind(so)(e,t,_r({dragEl:mi,parentEl:gi,ghostEl:vi,rootEl:bi,nextEl:yi,lastDownEl:wi,cloneEl:_i,cloneHidden:Ci,dragStarted:Ri,putSortable:Ti,activeSortable:so.active,originalEvent:r,oldIndex:xi,oldDraggableIndex:ki,newIndex:Si,newDraggableIndex:Di,hideGhostForTarget:ro,unhideGhostForTarget:io,cloneNowHidden:function(){Ci=!0},cloneNowShown:function(){Ci=!1},dispatchSortableEvent:function(e){pi({sortable:t,name:e,originalEvent:r})}},i))};function pi(e){di(_r({putSortable:Ti,cloneEl:_i,targetEl:mi,rootEl:bi,oldIndex:xi,oldDraggableIndex:ki,newIndex:Si,newDraggableIndex:Di},e))}var mi,gi,vi,bi,yi,wi,_i,Ci,xi,Si,ki,Di,Oi,Ti,Ei,Ii,Ni,Ai,Pi,Mi,Ri,Fi,Bi,Li,$i,Vi=!1,ji=!1,zi=[],Hi=!1,Ui=!1,Wi=[],qi=!1,Gi=[],Yi="undefined"!==typeof document,Ki=Ir,Xi=Or||Dr?"cssFloat":"float",Ji=Yi&&!Nr&&!Ir&&"draggable"in document.createElement("div"),Zi=function(){if(Yi){if(Dr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qi=function(e,t){var n=jr(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Gr(e,0,t),o=Gr(e,1,t),a=i&&jr(i),s=o&&jr(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Wr(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Wr(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var c="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Xi]||o&&"none"===n[Xi]&&l+u>r)?"vertical":"horizontal"},eo=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},to=function(e,t){var n;return zi.some((function(r){if(!Yr(r)){var i=Wr(r),o=r[oi].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},no=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==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,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==br(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},ro=function(){!Zi&&vi&&jr(vi,"display","none")},io=function(){!Zi&&vi&&jr(vi,"display","")};Yi&&document.addEventListener("click",(function(e){if(ji)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ji=!1,!1}),!0);var oo=function(e){if(mi){e=e.touches?e.touches[0]:e;var t=to(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[oi]._onDragOver(n)}}},ao=function(e){mi&&mi.parentNode[oi]._isOutsideThisEl(e.target)};function so(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=wr({},t),e[oi]=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 Qi(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!==so.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in fi.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in no(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ji,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Pr(e,"pointerdown",this._onTapStart):(Pr(e,"mousedown",this._onTapStart),Pr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Pr(e,"dragover",this),Pr(e,"dragenter",this)),zi.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),wr(this,ai())}function lo(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function uo(e,t,n,r,i,o,a,s){var l,u,c=e[oi],f=c.options.onMove;return!window.CustomEvent||Dr||Or?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Wr(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(u=f.call(c,l,a)),u}function co(e){e.draggable=!1}function fo(){qi=!1}function ho(e,t,n){var r=Wr(Yr(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||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+i}function po(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&Li<u*i){if(!Hi&&(1===Bi?l>c+u*o/2:l<f-u*o/2)&&(Hi=!0),Hi)d=!0;else if(1===Bi?l<c+Li:l>f-Li)return-Bi}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return mo(t);return d=d||a,d&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function mo(e){return Kr(mi)<Kr(e)?1:-1}function go(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 vo(e){Gi.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Gi.push(r)}}function bo(e){return setTimeout(e,0)}function yo(e){return clearTimeout(e)}so.prototype={constructor:so,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Fi=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,mi):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(vo(n),!mi&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(s=Br(s,r.draggable,n,!1),(!s||!s.animated)&&wi!==s)){if(xi=Kr(s),ki=Kr(s,r.draggable),"function"===typeof u){if(u.call(this,e,s,this))return pi({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),hi("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Br(l,r.trim(),n,!1),r)return pi({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),hi("filter",t,{evt:e}),!0})),u))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!Br(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!mi&&n.parentNode===o){var l=Wr(n);if(bi=o,mi=n,gi=mi.parentNode,yi=mi.nextSibling,wi=n,Oi=a.group,so.dragged=mi,Ei={target:mi,clientX:(t||e).clientX,clientY:(t||e).clientY},Pi=Ei.clientX-l.left,Mi=Ei.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,mi.style["will-change"]="all",r=function(){hi("delayEnded",i,{evt:e}),so.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Tr&&i.nativeDraggable&&(mi.draggable=!0),i._triggerDragStart(e,t),pi({sortable:i,name:"choose",originalEvent:e}),Vr(mi,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Hr(mi,e.trim(),co)})),Pr(s,"dragover",oo),Pr(s,"mousemove",oo),Pr(s,"touchmove",oo),Pr(s,"mouseup",i._onDrop),Pr(s,"touchend",i._onDrop),Pr(s,"touchcancel",i._onDrop),Tr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,mi.draggable=!0),hi("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Or||Dr))r();else{if(so.eventCanceled)return void this._onDrop();Pr(s,"mouseup",i._disableDelayedDrag),Pr(s,"touchend",i._disableDelayedDrag),Pr(s,"touchcancel",i._disableDelayedDrag),Pr(s,"mousemove",i._delayedDragTouchMoveHandler),Pr(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Pr(s,"pointermove",i._delayedDragTouchMoveHandler),i._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(){mi&&co(mi),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mr(e,"mouseup",this._disableDelayedDrag),Mr(e,"touchend",this._disableDelayedDrag),Mr(e,"touchcancel",this._disableDelayedDrag),Mr(e,"mousemove",this._delayedDragTouchMoveHandler),Mr(e,"touchmove",this._delayedDragTouchMoveHandler),Mr(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Pr(document,"pointermove",this._onTouchMove):Pr(document,t?"touchmove":"mousemove",this._onTouchMove):(Pr(mi,"dragend",this),Pr(bi,"dragstart",this._onDragStart));try{document.selection?bo((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Vi=!1,bi&&mi){hi("dragStarted",this,{evt:t}),this.nativeDraggable&&Pr(document,"dragover",ao);var n=this.options;!e&&Vr(mi,n.dragClass,!1),Vr(mi,n.ghostClass,!0),so.active=this,e&&this._appendGhost(),pi({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ii){this._lastX=Ii.clientX,this._lastY=Ii.clientY,ro();var e=document.elementFromPoint(Ii.clientX,Ii.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Ii.clientX,Ii.clientY),e===t)break;t=e}if(mi.parentNode[oi]._isOutsideThisEl(e),t)do{if(t[oi]){var n=void 0;if(n=t[oi]._onDragOver({clientX:Ii.clientX,clientY:Ii.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);io()}},_onTouchMove:function(e){if(Ei){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=vi&&zr(vi,!0),a=vi&&o&&o.a,s=vi&&o&&o.d,l=Ki&&$i&&Xr($i),u=(i.clientX-Ei.clientX+r.x)/(a||1)+(l?l[0]-Wi[0]:0)/(a||1),c=(i.clientY-Ei.clientY+r.y)/(s||1)+(l?l[1]-Wi[1]:0)/(s||1);if(!so.active&&!Vi){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(vi){o?(o.e+=u-(Ni||0),o.f+=c-(Ai||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");jr(vi,"webkitTransform",f),jr(vi,"mozTransform",f),jr(vi,"msTransform",f),jr(vi,"transform",f),Ni=u,Ai=c,Ii=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!vi){var e=this.options.fallbackOnBody?document.body:bi,t=Wr(mi,!0,Ki,!0,e),n=this.options;if(Ki){$i=e;while("static"===jr($i,"position")&&"none"===jr($i,"transform")&&$i!==document)$i=$i.parentNode;$i!==document.body&&$i!==document.documentElement?($i===document&&($i=Ur()),t.top+=$i.scrollTop,t.left+=$i.scrollLeft):$i=Ur(),Wi=Xr($i)}vi=mi.cloneNode(!0),Vr(vi,n.ghostClass,!1),Vr(vi,n.fallbackClass,!0),Vr(vi,n.dragClass,!0),jr(vi,"transition",""),jr(vi,"transform",""),jr(vi,"box-sizing","border-box"),jr(vi,"margin",0),jr(vi,"top",t.top),jr(vi,"left",t.left),jr(vi,"width",t.width),jr(vi,"height",t.height),jr(vi,"opacity","0.8"),jr(vi,"position",Ki?"absolute":"fixed"),jr(vi,"zIndex","100000"),jr(vi,"pointerEvents","none"),so.ghost=vi,e.appendChild(vi),jr(vi,"transform-origin",Pi/parseInt(vi.style.width)*100+"% "+Mi/parseInt(vi.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;hi("dragStart",this,{evt:e}),so.eventCanceled?this._onDrop():(hi("setupClone",this),so.eventCanceled||(_i=ii(mi),_i.draggable=!1,_i.style["will-change"]="",this._hideClone(),Vr(_i,this.options.chosenClass,!1),so.clone=_i),n.cloneId=bo((function(){hi("clone",n),so.eventCanceled||(n.options.removeCloneOnHide||bi.insertBefore(_i,mi),n._hideClone(),pi({sortable:n,name:"clone"}))})),!t&&Vr(mi,i.dragClass,!0),t?(ji=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Mr(document,"mouseup",n._onDrop),Mr(document,"touchend",n._onDrop),Mr(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,mi)),Pr(document,"drop",n),jr(mi,"transform","translateZ(0)")),Vi=!0,n._dragStartId=bo(n._dragStarted.bind(n,t,e)),Pr(document,"selectstart",n),Ri=!0,Er&&jr(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,a=e.target,s=this.options,l=s.group,u=so.active,c=Oi===l,f=s.sort,d=Ti||u,h=this,p=!1;if(!qi){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Br(a,s.draggable,o,!0),T("dragOver"),so.eventCanceled)return p;if(mi.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return I(!1);if(ji=!1,u&&!s.disabled&&(c?f||(r=!bi.contains(mi)):Ti===this||(this.lastPutMode=Oi.checkPull(this,u,mi,e))&&l.checkPut(this,u,mi,e))){if(i="vertical"===this._getDirection(e,a),t=Wr(mi),T("dragOverValid"),so.eventCanceled)return p;if(r)return gi=bi,E(),this._hideClone(),T("revert"),so.eventCanceled||(yi?bi.insertBefore(mi,yi):bi.appendChild(mi)),I(!0);var m=Yr(o,s.draggable);if(!m||ho(e,i,this)&&!m.animated){if(m===mi)return I(!1);if(m&&o===e.target&&(a=m),a&&(n=Wr(a)),!1!==uo(bi,o,mi,t,a,n,e,!!a))return E(),o.appendChild(mi),gi=o,N(),I(!0)}else if(a.parentNode===o){n=Wr(a);var g,v,b=0,y=mi.parentNode!==o,w=!eo(mi.animated&&mi.toRect||t,a.animated&&a.toRect||n,i),_=i?"top":"left",C=qr(a,"top","top")||qr(mi,"top","top"),x=C?C.scrollTop:void 0;if(Fi!==a&&(g=n[_],Hi=!1,Ui=!w&&s.invertSwap||y),b=po(e,a,n,i,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ui,Fi===a),0!==b){var S=Kr(mi);do{S-=b,v=gi.children[S]}while(v&&("none"===jr(v,"display")||v===vi))}if(0===b||v===a)return I(!1);Fi=a,Bi=b;var k=a.nextElementSibling,D=!1;D=1===b;var O=uo(bi,o,mi,t,a,n,e,D);if(!1!==O)return 1!==O&&-1!==O||(D=1===O),qi=!0,setTimeout(fo,30),E(),D&&!k?o.appendChild(mi):a.parentNode.insertBefore(mi,D?k:a),C&&ri(C,0,x-C.scrollTop),gi=mi.parentNode,void 0===g||Ui||(Li=Math.abs(g-Wr(a)[_])),N(),I(!0)}if(o.contains(mi))return I(!1)}return!1}function T(s,l){hi(s,h,_r({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:a,completed:I,onMove:function(n,r){return uo(bi,o,mi,t,n,Wr(n),e,r)},changed:N},l))}function E(){T("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function I(t){return T("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==d&&(Vr(mi,Ti?Ti.options.ghostClass:u.options.ghostClass,!1),Vr(mi,s.ghostClass,!0)),Ti!==h&&h!==so.active?Ti=h:h===so.active&&Ti&&(Ti=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){T("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===mi&&!mi.animated||a===o&&!a.animated)&&(Fi=null),s.dragoverBubble||e.rootEl||a===document||(mi.parentNode[oi]._isOutsideThisEl(e.target),!t&&oo(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function N(){Si=Kr(mi),Di=Kr(mi,s.draggable),pi({sortable:h,name:"change",toEl:o,newIndex:Si,newDraggableIndex:Di,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mr(document,"mousemove",this._onTouchMove),Mr(document,"touchmove",this._onTouchMove),Mr(document,"pointermove",this._onTouchMove),Mr(document,"dragover",oo),Mr(document,"mousemove",oo),Mr(document,"touchmove",oo)},_offUpEvents:function(){var e=this.el.ownerDocument;Mr(e,"mouseup",this._onDrop),Mr(e,"touchend",this._onDrop),Mr(e,"pointerup",this._onDrop),Mr(e,"touchcancel",this._onDrop),Mr(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Si=Kr(mi),Di=Kr(mi,n.draggable),hi("drop",this,{evt:e}),gi=mi&&mi.parentNode,Si=Kr(mi),Di=Kr(mi,n.draggable),so.eventCanceled||(Vi=!1,Ui=!1,Hi=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yo(this.cloneId),yo(this._dragStartId),this.nativeDraggable&&(Mr(document,"drop",this),Mr(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Er&&jr(document.body,"user-select",""),jr(mi,"transform",""),e&&(Ri&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),vi&&vi.parentNode&&vi.parentNode.removeChild(vi),(bi===gi||Ti&&"clone"!==Ti.lastPutMode)&&_i&&_i.parentNode&&_i.parentNode.removeChild(_i),mi&&(this.nativeDraggable&&Mr(mi,"dragend",this),co(mi),mi.style["will-change"]="",Ri&&!Vi&&Vr(mi,Ti?Ti.options.ghostClass:this.options.ghostClass,!1),Vr(mi,this.options.chosenClass,!1),pi({sortable:this,name:"unchoose",toEl:gi,newIndex:null,newDraggableIndex:null,originalEvent:e}),bi!==gi?(Si>=0&&(pi({rootEl:gi,name:"add",toEl:gi,fromEl:bi,originalEvent:e}),pi({sortable:this,name:"remove",toEl:gi,originalEvent:e}),pi({rootEl:gi,name:"sort",toEl:gi,fromEl:bi,originalEvent:e}),pi({sortable:this,name:"sort",toEl:gi,originalEvent:e})),Ti&&Ti.save()):Si!==xi&&Si>=0&&(pi({sortable:this,name:"update",toEl:gi,originalEvent:e}),pi({sortable:this,name:"sort",toEl:gi,originalEvent:e})),so.active&&(null!=Si&&-1!==Si||(Si=xi,Di=ki),pi({sortable:this,name:"end",toEl:gi,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){hi("nulling",this),bi=mi=gi=vi=yi=_i=wi=Ci=Ei=Ii=Ri=Si=Di=xi=ki=Fi=Bi=Ti=Oi=so.dragged=so.ghost=so.clone=so.active=null,Gi.forEach((function(e){e.checked=!0})),Gi.length=Ni=Ai=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":mi&&(this._onDragOver(e),lo(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],Br(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||go(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];Br(i,this.options.draggable,n,!1)&&(t[e]=i)}),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 Br(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=fi.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&no(n)},destroy:function(){hi("destroy",this);var e=this.el;e[oi]=null,Mr(e,"mousedown",this._onTapStart),Mr(e,"touchstart",this._onTapStart),Mr(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mr(e,"dragover",this),Mr(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),zi.splice(zi.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ci){if(hi("hideClone",this),so.eventCanceled)return;jr(_i,"display","none"),this.options.removeCloneOnHide&&_i.parentNode&&_i.parentNode.removeChild(_i),Ci=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Ci){if(hi("showClone",this),so.eventCanceled)return;bi.contains(mi)&&!this.options.group.revertClone?bi.insertBefore(_i,mi):yi?bi.insertBefore(_i,yi):bi.appendChild(_i),this.options.group.revertClone&&this.animate(mi,_i),jr(_i,"display",""),Ci=!1}}else this._hideClone()}},Yi&&Pr(document,"touchmove",(function(e){(so.active||Vi)&&e.cancelable&&e.preventDefault()})),so.utils={on:Pr,off:Mr,css:jr,find:Hr,is:function(e,t){return!!Br(e,t,e,!1)},extend:Qr,throttle:ti,closest:Br,toggleClass:Vr,clone:ii,index:Kr,nextTick:bo,cancelNextTick:yo,detectDirection:Qi,getChild:Gr},so.get=function(e){return e[oi]},so.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&&(so.utils=_r({},so.utils,e.utils)),fi.mount(e)}))},so.create=function(e,t){return new so(e,t)},so.version=Sr;var wo,_o,Co,xo,So,ko,Do=[],Oo=!1;function To(){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?Pr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Pr(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Pr(document,"touchmove",this._handleFallbackAutoScroll):Pr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Mr(document,"dragover",this._handleAutoScroll):(Mr(document,"pointermove",this._handleFallbackAutoScroll),Mr(document,"touchmove",this._handleFallbackAutoScroll),Mr(document,"mousemove",this._handleFallbackAutoScroll)),Io(),Eo(),ni()},nulling:function(){So=_o=wo=Oo=ko=Co=xo=null,Do.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(So=e,t||Or||Dr||Er){No(e,this.options,o,t);var a=Zr(o,!0);!Oo||ko&&r===Co&&i===xo||(ko&&Io(),ko=setInterval((function(){var o=Zr(document.elementFromPoint(r,i),!0);o!==a&&(a=o,Eo()),No(e,n.options,o,t)}),10),Co=r,xo=i)}else{if(!this.options.bubbleScroll||Zr(o,!0)===Ur())return void Eo();No(e,this.options,Zr(o,!1),!1)}}},wr(e,{pluginName:"scroll",initializeByDefault:!0})}function Eo(){Do.forEach((function(e){clearInterval(e.pid)})),Do=[]}function Io(){clearInterval(ko)}var No=ti((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=Ur(),c=!1;_o!==n&&(_o=n,Eo(),wo=t.scroll,i=t.scrollFn,!0===wo&&(wo=Zr(n,!0)));var f=0,d=wo;do{var h=d,p=Wr(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,k=jr(h),D=h.scrollLeft,O=h.scrollTop;h===u?(_=y<x&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),C=w<S&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(_=y<x&&("auto"===k.overflowX||"scroll"===k.overflowX),C=w<S&&("auto"===k.overflowY||"scroll"===k.overflowY));var T=_&&(Math.abs(b-o)<=s&&D+y<x)-(Math.abs(v-o)<=s&&!!D),E=C&&(Math.abs(g-a)<=s&&O+w<S)-(Math.abs(m-a)<=s&&!!O);if(!Do[f])for(var I=0;I<=f;I++)Do[I]||(Do[I]={});Do[f].vx==T&&Do[f].vy==E&&Do[f].el===h||(Do[f].el=h,Do[f].vx=T,Do[f].vy=E,clearInterval(Do[f].pid),0==T&&0==E||(c=!0,Do[f].pid=setInterval(function(){r&&0===this.layer&&so.active._onTouchMove(So);var t=Do[this.layer].vy?Do[this.layer].vy*l:0,n=Do[this.layer].vx?Do[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(so.dragged.parentNode[oi],n,t,e,So,Do[this.layer].el)||ri(Do[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==u&&(d=Zr(d,!1)));Oo=c}}),30),Ao=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Po(){}function Mo(){}Po.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=Gr(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:Ao},wr(Po,{pluginName:"revertOnSpill"}),Mo.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:Ao},wr(Mo,{pluginName:"removeOnSpill"});so.mount(new To),so.mount(Mo,Po);var Ro=so,Fo={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(k.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=k.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=k.a.prototype.baseAPI+"/component/super-grids/all-list-columns/"+e.listCode,i=qe.get(e.listCode),o={},a=i.isSql;e.isDragColumn=i.colSetting.isDragColumn,"undefined"!==typeof a&&(o.isSql=a+""),e.$http.post(r,o).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 i=e[n];if(i.displayOrderType="custom",n>t){var o=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var l=a[s];l.displayOrderType="custom",l[r]=0===s?i[r]:a[s-1][r]}i[r]=o}else{var u=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]=i[r]:d[r]=c[f+1][r]}i[r]=u}}},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 i=e;Ro.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(i.columns&&i.columns.length>0){for(var r=i.columns[n],o=n-1;o>=t;o--){var a=i.columns[o];a.displayOrderType="custom",i.columns[o+1]=a}i.columns[t]=r}}else if(i.columns&&i.columns.length>0){for(var s=i.columns[n],l=n+1;l<=t;l++){var u=i.columns[l];u.displayOrderType="custom",i.columns[l-1]=u}i.columns[t]=s}i.hasLoaded=!1,setTimeout((function(){i.hasLoaded=!0,i.$nextTick((function(){i.indexAfterTheChangeUpdateDisplayOrder(i.columns,n,t,"displayOrder"),i.dragColumnDisplayOrder()}))}),100)}})}}))}}},Bo=Fo,Lo=f(Bo,gr,vr,!1,null,null,null),$o=Lo.exports,Vo=function(){var e=this,t=e._self._c;return t("div",[e.searchConditions.length>0?t("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?t("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,"load-complete-query":e.loadCompleteQuery},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?t("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?t("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px","text-align":"center"}},[t("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 ")]),t("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 ")]),t("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?t("span",{staticStyle:{"margin-left":"10px"}},["advanced"===e.searchType?t("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?t("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?t("search-condition-input",{on:{close:e.saveConditionValue}}):e._e()],1)},jo=[],zo={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 i=r.orgProp,o="__";if(i&&i.indexOf(o)>0&&(i=i.replace(o,".")),r.propName=i,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 l=e.isUserTree(r.componentType),u=r.value;if(u&&""!==u){var c=[],f=u;f=Array.isArray(u)?u:u.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(l,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"},i=t.orgProp,o="__";i&&i.indexOf(o)>0&&(i=i.replace(o,".")),r.propName=i,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 l=e.isUserTree(t.componentType),u=e.getFormItemValue(t.prop);if(u&&""!==u){var c=[],f=u;f=Array.isArray(u)?u:u.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(l,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,i="yyyy-MM-dd HH:mm:ss",o="yyyy-m-d";if("dateSection"===e.componentType?r=o:"dateTimePicker"===e.componentType?r=i:"DATE"!==e.dataType&&"date"!==e.componentType||(r=o),!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){if("string"===typeof e&&t){if(-1!==e.indexOf("T"))return new Date(e).getTime();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()}return 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,i=0;r.forEach((function(e){var o=Object.assign({},n);o.joinSign="or",0===i&&(o.leftBracket="1"),i===r.length-1&&(o.rightBracket="1",o.joinSign="and"),o.propValue=e,void 0!==e&&null!==e&&t.push(o),i++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))},saveSearchCondition:function(e){return this.$http.post(k.a.prototype.baseAPI+"/component/super-grids/search-conditions",e)},listSearchCondition:function(e){return this.$http.get(k.a.prototype.baseAPI+"/component/super-grids/search-condition-list/"+e)},removeSearchCondition:function(e){return this.$http.delete(k.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)},getSearchCondition:function(e){return this.$http.get(k.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)},setDefaultQueryValue:function(e,t){if("date"===e.componentType||"dateSection"===e.componentType||"timePicker"===e.componentType||"dateTimePicker"===e.componentType){var n={date:"YYYYMMDD",dateSection:"YYYYMMDDHHMMSS",timePicker:"YYYYMMDD",dateTimePicker:"YYYYMMDDHHMMSS"},r={date:"String",dateSection:"Date",timePicker:"String",dateTimePicker:"String"},i=e["controlConfig"];if(null!==i&&void 0!==i&&""!==i){var o=JSON.parse(i);if(o.timeDefaultQueryRange){var a=n[e.componentType],s=r[e.componentType];if(a&&s){var l=this.getDateQueryRange(e.componentType,a,o.timeDefaultQueryRange,s);t[e.prop]=l}}}}},getDateQueryRange:function(e,t,n,r){var i,o=[],a=new Date,s=new Date;if(null!==n&&n>0&&(i=new Date(a.setDate(a.getDate()-parseInt(n)))),"YYYYMMDD"===t?(o[0]=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate(),o[1]=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate()):(o[0]=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+" 00:00:00",o[1]=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate()+" 23:59:59"),"Date"===r){var l=[];return o.forEach((function(e){var t=e.split(" "),n=t[0].split("-"),r=parseInt(n[0],10),i=parseInt(n[1],10)-1,o=parseInt(n[2],10),a=t[1].split(":"),s=parseInt(a[0],10),u=parseInt(a[1],10),c=parseInt(a[2],10);l.push(new Date(r,i,o,s,u,c))})),l}return o}},Ho=zo,Uo=function(){var e=this,t=e._self._c;return t("div",[e.searchableColumns.length>0?t("el-form",{ref:"searchForm",staticClass:"grid-search-form",attrs:{model:e.searchForm,rules:e.rules,"label-position":"right",size:"small"}},[t("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,"load-complete-query":e.loadCompleteQuery},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)},Wo=[],qo=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"grid-search-row"},e._l(e.rowNum,(function(n){return t("el-row",{directives:[{name:"show",rawName:"v-show",value:e.myOpen||1===n,expression:"myOpen || r === 1"}],key:n},e._l(e.fieldNum,(function(r){return t("el-col",{key:r,attrs:{xs:e.spanNum,sm:e.spanNum,md:e.spanNum,lg:e.spanNum,xl:e.spanNum}},[e.fieldNum*(n-1)+(r-1)<e.searchableColumns.length?[t("search-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.myOpen&&1===n&&r<e.fieldNum||e.myOpen,expression:"(!myOpen && r===1 && n < fieldNum) || (myOpen)"}],attrs:{"search-form":e.searchForm,column:e.searchableColumns[e.fieldNum*(n-1)+(r-1)],code:e.code,"is-sql":e.isSql,"table-name":e.tableName,"is-join-table":e.isJoinTable,index:e.fieldNum*(n-1)+(r-1),length:e.searchableColumns.length,"load-complete-query":e.loadCompleteQuery},on:{"submit-form":function(t){return e.$emit("submit-form")}}})]:e._e(),!e.myOpen&&1===n&&r===e.fieldNum||e.myOpen&&!e.isButtonNewRow&&n===e.rowNum&&r===e.fieldNum?t("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?t("el-row",[t("el-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[t("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)},Go=[],Yo=function(){var e=this,t=e._self._c;return t("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?t("span",{attrs:{title:e.column.searchLabel.replace(/\\n/g,"</br>")},domProps:{innerHTML:e._s(e.column.searchLabel.replace(/\\n/g,"</br>"))}}):t("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)?t("span",[t(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,"additional-settings":e.controlConfig},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,e.column.componentName)}}})],1):"dateSection"===e.column.componentType?t("span",[t("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)}}}),t("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?t("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?t("el-g-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?t("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?t("el-g-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?t("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)?t("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)?t("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 t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.column.componentType&&"multiselect"===e.column.componentType&&!e.isDynamicDataSourceSource(e.column)?t("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 t("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)?t("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?t("search-form-number",{on:{setValue:e.setNumberValue}}):e.column.componentType&&"switch"===e.column.componentType?t("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?t("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?t("el-rate",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):t("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)},Ko=[],Xo=function(){var e=this,t=e._self._c;return t("div",[t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),t("span",[e._v("---")]),t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},Jo=[],Zo={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data:function(){return{number1:null,number2:null}},mounted:function(){var e=this;Kt.$on("reset",(function(){e.number1=null,e.number2=null}))},destroyed:function(){Kt.$off("reset")},methods:{setValue:function(){this.$emit("setValue",[this.number1,this.number2],this.r,this.n)}}},Qo=Zo,ea=f(Qo,Xo,Jo,!1,null,null,null),ta=ea.exports;function na(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 ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ia={name:"SearchFormItem",components:{searchFormNumber:ta},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},index:{type:Number,default:0},length:{type:Number,default:0},loadCompleteQuery:{type:Boolean,default:!1}},data:function(){var e=new Set;return{customComponentNames:e,dateOne:null,dataTwo:null,controlConfig:Dt(this.column)}},mounted:function(){this.index+1===this.length&&this.loadCompleteQuery&&this.$emit("submit-form")},methods:ra(ra({},Ho),{},{getDynamicDataSourceOptions:function(e){var t=qe.get(this.code);return _t(e,this.isSql,t.additionalParamMap)},isDynamicDataSourceSource:function(e){return Ct(e)},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var i=this.getParentObject(e);null!=r&&void 0!==r?this.$set(i[e.substring(e.lastIndexOf(".")+1)],r,t):i[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=qe.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),k.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"]}})},oa=ia,aa=f(oa,Yo,Ko,!1,null,"9d0a6428",null),sa=aa.exports,la=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"text-align":"right"}},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("save-condition")}}},[e._v("\n "+e._s(e.$t("superGrid.saveCondition"))+"\n ")]),t("el-button",{attrs:{loading:e.loading,size:"small"},on:{click:e.resetForm}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),t("el-button",{attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("\n "+e._s(e.$t("imatrixUIMessage.search"))+"\n ")]),t("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)},ua=[],ca={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}}},fa=ca,da=f(fa,la,ua,!1,null,"69b96bdc",null),ha=da.exports;function pa(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 ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ga={name:"SearchFormOpen",components:{SearchFormItem:sa,SearchButton:ha},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},loadCompleteQuery:{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:ma(ma({},Ho),{},{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())}})},va=ga,ba=(n("68d6"),f(va,qo,Go,!1,null,"b20234f4",null)),ya=ba.exports;function wa(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _a(e,t){if(e){if("string"===typeof e)return Ca(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)?Ca(e,t):void 0}}function Ca(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 xa(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 Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ka={name:"SearchForm",components:{SearchFormOpen:ya},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},loadCompleteQuery:{type:Boolean,default:!1}},data:function(){var e,t,n=qe.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:Sa(Sa({},Ho),{},{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=wa(this.customComponentNames);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.$refs[r][0].resetField()}}catch(i){n.e(i)}finally{n.f()}}this.$refs.searchForm.resetFields(),this.searchableColumns.forEach((function(t){t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?pt(e.searchForm,t.prop):ht(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,e.setDefaultQueryValue(t,e.searchForm))})),this.$emit("submit-form")},openFold:function(e){this.isOpen=e,this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchFormContent&&this.$refs.searchFormContent.searchComplete()}})},Da=ka,Oa=(n("febe"),f(Da,Uo,Wo,!1,null,"086b30b6",null)),Ta=Oa.exports,Ea=function(){var e=this,t=e._self._c;return t("div",[t("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[t("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"}},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveCondition}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)]},proxy:!0}])},[t("el-form",{ref:"conditionForm",attrs:{model:e.searchCondition,size:"mini","label-position":"left","label-width":"120px"}},[t("el-form-item",{attrs:{prop:"conditionName",label:e.$t("superGrid.searchConditionName"),rules:[{required:!0,message:this.$t("superGrid.pleaseInputSearchConditionName"),trigger:"blur"}]}},[t("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)},Ia=[],Na={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)}))}}},Aa=Na,Pa=f(Aa,Ea,Ia,!1,null,null,null),Ma=Pa.exports,Ra=function(){var e=this,t=e._self._c;return t("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(n){return t("el-tab-pane",{key:n.id,attrs:{label:n.name,disabled:n.queryType!==e.pageQueryType,closable:n.queryType===e.pageQueryType,name:n.id+""}})})),1)},Fa=[],Ba={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)}}},La=Ba,$a=f(La,Ra,Fa,!1,null,null,null),Va=$a.exports;function ja(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ha={name:"SearchForm",components:{SearchConditionInput:Ma,SearchConditionList:Va,searchFormOrdinarySearch:Ta},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{}}},loadCompleteQuery:{type:Boolean,default:!1}},data:function(){var e=this,t=new Set,n=qe.get(this.code),r={},i={};null!==this.searchParam&&(i=JSON.parse(JSON.stringify(this.searchParam)));var o=this.getSearchableColumns(null,null,r);void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),o.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?pt(i,t.prop):ht(i,t.prop):("dateSection"===t.componentType?i[t.prop]=[new Date,new Date]:"yearRange"===t.componentType?i[t.prop]=["",""]:i[t.prop]=null,e.setDefaultQueryValue(t,i)))}));var a=this.getSpanNum(o),s=this.getFieldNumPerRow(o),l=Math.ceil(o.length/s),u=this.query.advancedQuery,c=this.query.normalQuery;return{searchForm:i,rules:{},searchParams:[],labelWidth:n.options.search&&n.options.search.labelWidth?n.options.search.labelWidth:"80px",customComponentNames:t,componentName:"",spanNum:a,fieldNum:s,rowNum:l,loading:!1,isShowSearchCondition:!1,searchConditions:[],propMap:r,advancedQuery:u,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(){this.listSearchConditions(),this.normalQuery?this.searchType="normal":this.advancedQuery&&(this.searchType="advanced")},methods:za(za({},Ho),{},{getFieldNumPerRow:function(e){var t;if(e&&1===e.length)t=2;else{var n=qe.get(this.code);t=n.options.search&&n.options.search.fieldNum?n.options.search.fieldNum:3}return t},getSpanNum:function(e){var t=this.getFieldNumPerRow(e);return 1===t?22:2===t?12:3===t?8:4===t?6:4},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var i=this.getParentObject(e);null!=r&&void 0!==r?this.$set(i[e.substring(e.lastIndexOf(".")+1)],r,t):i[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 i=e[r];if(n&&(n[i.prop]=i),"$index"!==i.prop&&"$selection"!==i.prop&&!i.dynamic)if(i.groupHeader)this.getSearchableColumns(i.children,t,n);else if("advanced"===i.queryType&&!i.custom&&""!==i.prop){if("undefined"!==typeof i.componentType&&""!==i.componentType||(i.componentType="input"),i.querySetting&&""!==i.querySetting){var o=JSON.parse(i.querySetting);o.width&&(i.searchControlWidth="width:"+o.width+"px"),o.labelWidth&&(i.searchLabelWidth=o.labelWidth+"px"),o.label&&(i.searchLabel=o.label)}i.componentType&&i.componentType.indexOf("custom:")>=0?(i.componentName=i.componentType.substring(i.componentType.indexOf(":")+1),this.customComponentNames.add(i.componentName)):i.componentName="",t.push(i)}}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 i=e[r];if(n&&(n[i.prop]=i),"$index"!==i.prop&&"$selection"!==i.prop&&!i.dynamic)if(i.groupHeader)this.getSearchableColumns(i.children,t,n);else if("normal"===i.queryType&&!i.custom&&""!==i.prop){if("undefined"!==typeof i.componentType&&""!==i.componentType||(i.componentType="input"),i.querySetting&&""!==i.querySetting){var o=JSON.parse(i.querySetting);o.width&&(i.searchControlWidth="width:"+o.width+"px"),o.labelWidth&&(i.searchLabelWidth=o.labelWidth+"px"),o.label&&(i.searchLabel=o.label)}i.componentType&&i.componentType.indexOf("custom:")>=0?(i.componentName=i.componentType.substring(i.componentType.indexOf(":")+1),this.customComponentNames.add(i.componentName)):i.componentName="",t.push(i)}}return t},customComponent:function(e){var t=qe.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),k.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")),Kt.$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),i=t.packageSearchForm(r);i&&(t.searchForm=i),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,i=e.columnProp,o=e.dataType;o&&"BOOLEAN"===o&&i&&(r=i),-1===n.indexOf(r)&&n.push(r);var a=e.propValue;if(r&&r.indexOf(".")>0)ht(t,r,a);else{var s=!1;!o||"DATE"!==o&&"TIME"!==o||e.startValue&&e.endValue&&(s=!0),s?t[r]=[new Date(e.startValue),new Date(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?pt(t,e.prop):ht(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()}})},Ua=Ha,Wa=(n("e56e"),f(Ua,Vo,jo,!1,null,"d64fea14",null)),qa=Wa.exports,Ga=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"show-close":!0,"append-to-body":!0,title:"查询条件",visible:""},on:{close:function(t){return e.$emit("close")}}},[t("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)},Ya=[],Ka={name:"SearchFormDialog",components:{SearchForm:qa},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")}}},Xa=Ka,Ja=f(Xa,Ga,Ya,!1,null,null,null),Za=Ja.exports,Qa={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)}},es=Qa,ts=(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)}}),ns=ts;function rs(e,t){return new Promise((function(n,r){for(var i={listCode:t,valueSetMetas:[]},o=[],a=0;a<e.length;a++){var s=e[a],l=s.prop?s.prop:s.label,u=is(s),c=null,f=s.titleValueSet;if(f&&(c=is(JSON.parse(f))),u||c){var d={prop:l};u&&(d.valueSet=u),c&&(d.titleValueSet=c),i.valueSetMetas.push(d),o.push(a)}}i.valueSetMetas.length>0?k.a.prototype.$http.post(k.a.prototype.baseURL+"/common/super-grids/value-sets",i).then((function(t){o.forEach((function(n){var r,i=e[n].prop?e[n].prop:e[n].label;for(var o in t)if(i===o){r=t[i];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 is(e){var t="enumname:",n="beanname:",r=e.enumName,i=e.beanName;if(r&&""!==r){if(!0===e.remoteEnum)return t+r}else if(i&&""!==i)return n+i}var os={initialize:function(){var e=this;return new Promise((function(t,n){var r=qe.get(e.code);if(e.options.isAdministerListView)e.getShowColumns(e.options.SuperGrid),Object.assign(e,e.options.SuperGrid),r.isSql=e.isSql,r.columns=e.columns,r.query=e.query,r.pagination=e.pagination,e.createBackgroundColorMap(),e.hasLoadedColumns=!0,e.fetchData(null,null,null,null),t();else{var i,o=k.a.prototype.baseAPI+"/component/super-grids/"+e.code,a={},s=e.options.isSql;e.options&&"undefined"!==typeof s&&(e.isSql=s,a.isSql=s+""),a.publishVersion=e.publishVersion,e.options&&"undefined"!==typeof e.options.isAdministerListView&&e.options.isAdministerListView&&(a.isAdminister=e.options.isAdministerListView+"");var l=sessionStorage.getItem("additionalParamMap");if(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 u=JSON.stringify(e.options.additionalParamMap);i?Object.assign(i,u):i=u}else if(e.options.additionalParamMap&&""!==e.options.additionalParamMap){var c=e.options.additionalParamMap;i?Object.assign(i,c):i=c}i&&(a.additionalParamMap=i),e.options.extraParam&&e.options.extraParam.entityMap&&(e.parentFormData=e.options.extraParam.entityMap),e.isLoading=!0,e.$http.post(o,a).then((function(o){e.isLoadCompleteQuery(o.columns);var a=[];if(a=a.concat(JSON.parse(JSON.stringify(o.columns))),e.getShowColumns(o),o.basicInfo&&qe.set(e.code+"basicInfo",o.basicInfo),e.options.pageSizes&&o.pagination){var l=null,u=e.options.pageSizes.split(",");if(u&&u.length>0){l=[];for(var c=0;c<u.length;c++)l.push(1*u[c]);o.pagination.pageSize=l[0]}o.pagination.layout="total, sizes, prev, pager, next, jumper",o.pagination.pageSizes=l}"undefined"!==typeof e.options.initSortInfo&&(Array.isArray(e.options.initSortInfo)?o.sortInfo=e.options.initSortInfo:(o.sortInfo=[],o.sortInfo.push(e.options.initSortInfo))),rs(o.columns,e.code).then((function(){return e.getDynamicColumnByBean(i,o.dynamicColumnInfo,o.columns,r)})).then((function(n){var i=[];"undefined"!==typeof e.options.showColumns&&(i=e.options.showColumns.split(","));var l=n;if(l&&0!==l.length||e.options.dynamicColumns&&e.options.dynamicColumns.length>0&&(l=e.options.dynamicColumns),l&&l.length>0){if(a=a.concat(JSON.parse(JSON.stringify(l))),i&&i.length>0)for(var u=0;u<l.length;u++){var c=l[u].prop;l[u].dynamic=!0,i.indexOf(c)>=0?l[u].show=!0:l[u].show=!1}o.columns=o.columns.concat(l),o.columns=o.columns.sort((function(e,t){return e.displayOrder-t.displayOrder}))}Object.assign(e,o),e.options&&"undefined"===typeof s&&(e.isSql=e.basicInfo.sql),r.isSql=e.isSql,r.allColumns=a,r.columns=e.columns,e.packageColumnOptionMap(r),e.judgeIsFormSubTable(),r.colSetting=e.colSetting,r.lineEdit=e.lineEdit,r.basicInfo=e.basicInfo,r.pagination=e.pagination,e.pagination&&(e.pageSize=e.pagination.pageSize),r.query=e.query,r.dynamicColumnInfo=e.dynamicColumnInfo,r.mainDefaultValueColumns=e.mainDefaultValueColumns,r.contextParameter=e.contextParameter,e.isShowPage=e.isShowPageArea(),e.isSubTableShowPage=!!e.isFormSubTable&&e.isShowPage,r.isSubTableShowPage=e.isSubTableShowPage,e.hasLoadedColumns=!0;var f=!0;ft("loadBeforeSend",e.code)&&(f=r.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:r,additionalParamMap:r.additionalParamMap})),void 0!==f&&!0!==f||e.options.isPageInfo||("undefined"===typeof e.options.initSearch?("undefined"===typeof r.basicInfo.initializationQuery||r.basicInfo.initializationQuery)&&(e.loadCompleteQuery?e.isLoading=!1:e.fetchData()):!1!==e.options.initSearch&&(e.loadCompleteQuery?e.isLoading=!1:e.fetchData())),e.createBackgroundColorMap(),t()})).catch((function(e){n(e)}))})).catch((function(e){n(e)}))}}))},isLoadCompleteQuery:function(e){if(null!==e){var t=0;e.forEach((function(e){e.hasOwnProperty("queryType")&&e.hasOwnProperty("prop")&&"$index"!==e.prop&&"$selection"!==e.prop&&e.queryType&&"no"!==e.queryType&&e.componentType&&("date"===e.componentType||"dateSection"===e.componentType||"timePicker"===e.componentType||"dateTimePicker"===e.componentType)&&e.controlConfig&&t++})),t>0&&(this.loadCompleteQuery=!0)}},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 i=this;return new Promise((function(o,a){if(r.options.extraParam&&r.options.extraParam.entityMap&&(i.parentFormData=r.options.extraParam.entityMap),!i.options.isPageInfo&&t&&t.length>0){var s=[];i.getDynamicColumnByBeanWithOneSet(e,t[0],n,0,t,s,r).then((function(e){o(e)})).catch((function(e){a(e)}))}else o([])}))},getDynamicColumnByBeanWithOneSet:function(e,t,n,r,i,o,a){var s=this;return new Promise((function(l,u){if(t&&t.beanName){var c=k.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,o=o.concat(a),r+1<i.length?s.getDynamicColumnByBeanWithOneSet(e,i[r+1],n,r+1,i,o):l(o)})).catch((function(){l([])}))}else l([])}))},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=Ro.create(r,{animation:180,delay:0,onEnd:function(e){for(var n=e.oldIndex,r=e.newIndex,i=[],o=0;o<t.columns.length;o++)"left"!==t.columns[o].fixed&&"right"!==t.columns[o].fixed||i.push(o);if(i&&i.length>0)for(var a=0;a<i.length;a++)i[a]>=r&&r--,i[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],l=n-1;l>=r;l--){var u=t.columns[l];u.displayOrderType="custom",t.columns[l+1]=u}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(k.a.prototype.baseAPI+"/component/super-grids/drag-columns",p).then((function(e){}))}}))}if("undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView&&!n){var i=document.querySelector(".el-table__header-wrapper tr");null!=i&&(this.sortable=Ro.create(i,{animation:180,delay:0,onEnd:function(t){var n=t.oldIndex,r=t.newIndex,i=e.columns[t.oldIndex],o=e;o.columns.splice(n,1),o.columns.splice(r,0,i),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 i=e[n];if(n>t){var o=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var l=a[s];l[r]=0===s?i[r]:a[s-1][r]}i[r]=o}else{var u=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]=i[r]:d[r]=c[f+1][r]}i[r]=u}}},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 i=e.columns[r],o=i.prop;if("$index"!==o&&"$selection"!==o)if(i.hasOwnProperty("children")){var a=this.getChildrenColumns(i.children,t);i.children=a,a.length>0&&n.push(i)}else t.indexOf(o)>=0&&n.push(i);else n.push(i)}e.columns=n}},getChildrenColumns:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.prop;if(i.hasOwnProperty("children")){var a=this.getChildrenColumns(i.children,t);i.children=a,a.length>0&&n.push(i)}else t.indexOf(o)>=0&&n.push(i)}return n},saveColumnWidth:function(e,t){var n=this;return new Promise((function(r,i){if(void 0!==t){var o={prop:e,width:t+""};n.$http.post(k.a.prototype.baseAPI+"/component/super-grids/setting-column-widths/"+n.code,o).then((function(e){r(t)})).catch((function(e){i(e)}))}else r()}))}},as=os,ss=n("6a95"),ls=function(){var e=this,t=e._self._c;return t("ul",{staticClass:"context-menu"},e._l(e.buttomArr,(function(n){return t("li",{key:n.name},[t("i",{class:n.icon}),t("span",{on:{click:function(t){return e.buttonClick(n.event,n)}}},[e._v(e._s(n.label))])])})),0)},us=[],cs={name:"HeaderContextMenu",components:{},filters:{},props:{buttomArr:{type:Array,default:null},column:{type:Object,default:null}},data:function(){return{}},computed:{},watch:{},created:function(){},methods:{buttonClick:function(e,t){e&&("function"===typeof e?e.call(this,t,this.column):this.$emit(e,t,this.column),this.$emit("clearHeaderContextmenu"))}}},fs=cs,ds=(n("091f"),f(fs,ls,us,!1,null,"4e43e65b",null)),hs=ds.exports;n("a5d8");function ps(e){if(e){var t=!1,n=Object(ss["a"])();if("undefined"!==typeof n&&null!==n){var r=e.replace(/\./g,"__"),i=n[r];void 0!==i&&!0===i&&(t=!0)}return t}return console.error('need permission2! Like v-permission="acs.department.save"'),!1}function ms(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 gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vs(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bs(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function bs(e,t){if(e){if("string"===typeof e)return ys(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)?ys(e,t):void 0}}function ys(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 ws={name:"SuperGrid",components:{IndexColumn:Me,SelectionColumn:Ve,NormalColumn:ur,GroupColumn:mr,ColumnsConfig:$o,SearchForm:qa,headerContextMenu:hs,searchFormDialog:Za},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,i,o=[];this.options&&this.options.mergeFields&&""!==this.options.mergeFields&&(o=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&&(i=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 l="mysql";k.a.prototype.dataSourceType&&(l=k.a.prototype.dataSourceType.toLowerCase());var u=this.options.pageDevMode;return void 0===u&&(u=!1),{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],loadCompleteQuery:!1,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:o,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:i,currentSelectCell:null,isLazy:a,defaultExpandAll:s,parentFormData:null,stripe:!0,dataSourceType:l,pageDevMode:u,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=qe.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&&ps(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 i;if(void 0===r.show||r.show){i=!0;var o=e.options.hiddenColumns;if(o&&o.length>0&&-1!==o.indexOf(r.prop))return i=!1,i;e.initColumnOperation(r,n),t.$dataTypeMap||(t.$dataTypeMap={}),t.$dataTypeMap[r.prop]=r.dataType}else i=!1;return e.storeHasDefaultValueColumns(r,t),r._defaultComponentType=e.getComponentType(r.prop),i}));return r},spanArr:function(){var e,t=[],n=vs(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]=Je(this.gridData,r.prop,r.mergerCellBasis))}}catch(i){n.e(i)}finally{n.f()}return t},showSummary:function(){return void 0!==this.basicInfo.summary&&"no"!==this.basicInfo.summary},getRowKeyProp:function(){var e=qe.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,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=qe.get(this.code);if(this.$emit("change-grid-data",this.subTableData),void 0!==e.isChangePage&&e.isChangePage){var t=xt(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;var e=qe.get(this.code);e&&e.options&&(e.options.validateRules=this.options.validateRules,qe.set(this.code,e))}},"options.subTableCanAdd":{deep:!0,handler:function(){var e=qe.get(this.code);e&&e.options&&(e.options.subTableCanAdd=this.options.subTableCanAdd,qe.set(this.code,e))}},pageSize:{handler:function(e,t){this.$emit("change-rows-per-page",this.pageSize)}},"options.extraParam.entityMap":{deep:!0,handler:function(e,t){this.parentFormData=e}}},provide:function(){return{}},created:function(){qe.set(this.code,dt()),qe.set("_list_code",this.code),this.initSetting(),this.judgeIsFormSubTable();var e=!0;ft("rowStyleRender",this.code)&&(e=!1),this.stripe=e},mounted:function(){var e=this;this.initialize().then((function(){var t=qe.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(){e.columns.forEach((function(t){t.valueSet&&e.$emit("set-select-options",{prop:e.code+"."+t.prop,valueSet:t.valueSet})})),e.rowDrop(),e.columnDrop(),qe.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=qe.get(n.code);ft("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,additionalParamMap:e.additionalParamMap})}))}),{immediate:!0,deep:!0});var t=e,n=null!==document.querySelector(".user-tree");document.querySelector("."+e.code).onkeydown=function(e){if(!t.isShowPageDialog&&!n){var r=e||event||window.event||arguments.callee.caller.arguments[0],i=t.isEditRow(t);r&&37===r.keyCode?i||t.selectLeftCell(t):r&&38===r.keyCode?i||t.selectUpCell(t):r&&39===r.keyCode?i||t.selectRightCell(t):r&&40===r.keyCode?i||t.selectDownCell(t):r&&13===r.keyCode?t.isCallEnterEvent(t)&&t.enterOperation(t):r&&27===r.keyCode&&t.escOperation(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=qe.get(this.code);n.options.extraParam=e}),{deep:!0})}))},methods:gs(gs(gs(gs(gs({},es),ns),as),Jt),{},{isCallEnterEvent:function(e){var t=!0;void 0!==e.options.isEnableEnterEvent&&!1===e.options.isEnableEnterEvent&&(t=!1);var n=qe.get(e.code);return t&&n.options&&n.options.isFormSubTable&&(t=!1),t},isShowPageArea:function(){return!this.isFormSubTable||void 0!==this.options.showPageArea&&!0===this.options.showPageArea},resizeTableHeight:function(){var e=this;this.$nextTick((function(){var t=mt(e.$refs.superGrid,e.code,e.pageHeight),n=qe.get(e.code);if(ft("resizeHeight",e.code)){var r=0;e.$refs.sf&&(r=e.$refs.sf.$el.offsetHeight);var i=n.options.resizeHeight.call(e,{code:e.code,height:t,searchHeight:r,additionalParamMap:n.additionalParamMap});i&&(t=i)}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=qe.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 i=r.querySelector(".el-textarea");if(i)return}var o=t.$rowIndex;if(void 0!==o&&null!==o){var a=t.gridData[o];ct("enter",e.listCode)?t.options.lineEditOptions.enter.call(e,o,e.column,a,t.orgGridData[o],t.additionalParamMap):e.saveRow(o,e.code)}}},escOperation:function(e){var t=qe.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];ct("esc",e.listCode)?t.options.lineEditOptions.esc.call(e,n,e.column,r,t.orgGridData[n],t.additionalParamMap):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,i=null,o=t.attributes["class"];if(o&&(i=o["nodeValue"]),i&&i.indexOf(" ")>0){var a=i.split(" ");r=a[0]}var s=n["previousSibling"];if(s){var l=s.querySelector("."+r);e.currentSelectCell=l}}}},selectDownCell:function(e){var t=e.currentSelectCell;if(t){var n=t.parentNode;if(n){var r=null,i=null,o=t.attributes["class"];if(o&&(i=o["nodeValue"]),i&&i.indexOf(" ")>0){var a=i.split(" ");r=a[0]}var s=n["nextSibling"];if(s){var l=s.querySelector("."+r);e.currentSelectCell=l}}}},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 i=r.parentNode;if(i){var o=i.parentNode;if(o){var a=o.parentNode;if(a){var s=a.attributes["class"];if(s){var l=s["nodeValue"];if(l&&l.indexOf("el-table__fixed-body-wrapper")>=0){var u=null;if(t&&t.indexOf(" ")>0){var c=t.split(" ");u=c[0]}if(u){var f=document.querySelector("."+this.code+" .el-table__body-wrapper .current-row ."+u);e.currentSelectCell=f}}else if(l&&l.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=qe.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=qe.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),ut("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=qe.get(this.code);return this.lineEdit&&this.lineEdit.editable&&e.rowIndex===t.$rowIndex&&tt(e.row,t.orgGridData[t.$rowIndex]),ft("rowStyleRender",this.code)?(e.additionalParamMap=t.additionalParamMap,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=qe.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)),ft("cellStyleRender",this.code))return e.additionalParamMap=t.additionalParamMap,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 i={value:e.row[e.column.property],row:e.row,column:r,prop:e.column.property,additionalParamMap:t.additionalParamMap};return t.options["eventCallBack"][n].call(this,i)}},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=qe.get(this.code),r=null,i=null;if(e&&e.column&&e.column.property&&n&&n.columnOptionMap&&n.columnOptionMap[e.column.property]&&(i=n.columnOptionMap[e.column.property],i.events&&i.events.headerCellStyle&&(r=i.events.headerCellStyle)),n.options.renderHeader&&n.options.renderHeader.props)for(var o=e.column,a=n.options.renderHeader.props,s=a.split(","),l=0;l<s.length;l++){var u=s[l];if(o.property===u.trim()){var c="#c3f4e2";return"undefined"!==typeof n.options.renderHeader.color&&(c=n.options.renderHeader.color),{background:c}}}else if(null!==r&&null!==i&&n.options&&n.options["eventCallBack"]&&n.options["eventCallBack"][r]&&"function"===typeof n.options["eventCallBack"][r])return e.additionalParamMap=n.additionalParamMap,n.options["eventCallBack"][r].call(this,e)}},fetchData:function(e,t,n,r){var i=qe.get(this.code);if(i.options&&i.options.isPageInfo);else if(i.options&&i.options.isAdministerListView){if(i.options.SuperGrid&&i.options.SuperGrid.simulationDate){if(ft("gridDataLoaded",this.code)){var o=i.options.gridDataLoaded.call(this,{gridData:i.options.SuperGrid.simulationDate,columns:i.columns,additionalParamMap:i.additionalParamMap});this.gridData=o||i.options.SuperGrid.simulationDate}else this.gridData=i.options.SuperGrid.simulationDate;i.gridData=this.gridData}}else if(i.options&&i.options.isFormSubTable&&i.options.subTableData&&i.options.subTableData.length>0)this.packageSubTableData(i,i.options.subTableData);else{var a=this.canRefreshTableData(i);if(a)return this.fetchListData(e,t,n,r);if(this.isSubTableEmpty(i)){var s=[];this.packageSubTableData(i,s)}this.hasLoadData=!0,i.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(ft("gridDataLoaded",this.code)){var i=e.options.gridDataLoaded.call(this,{gridData:t,columns:e.columns,additionalParamMap:e.additionalParamMap});i?(r=i,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 i=(n-1)*r,o=i+r;e.length>i&&(o>e.length&&(o=e.length),t=e.slice(i,o))}return void 0!==t&&null!==t||(t=[]),t},fetchListData:function(e,t,n,r){var i=this;return new Promise((function(o,a){if(i.isLoading=!0,i.hasLoadData=!1,void 0===t||!1===t){var s=sessionStorage.getItem("refreshList-"+i.code);if(void 0!==s&&"true"===s){var l=sessionStorage.getItem("searchParam-"+i.code);if(void 0!==l&&null!==l&&""!==l){e=JSON.parse(l);var u=e.pagination;u&&(i.currentPage=u.currentPage,i.pagination.pageSize=u.pageSize,i.pagination.showTotal=u.showTotal),i.getInitSearchForm(e.searchForm)}}}sessionStorage.removeItem("refreshList-"+i.code),void 0===e&&(e=i.getSearchParam());var c=qe.get(i.code),f=e;(c.options.extraParam||void 0!==n)&&(f=gt(e,c)),c.searchParam=e,c.url=i.url;var d=i.url;void 0!==n&&null!==n&&(f=Object.assign({},f),f.searchParam.pagination=null,f["parentIds"]=n,f["parentProp"]=i.parentProp,f.systemCode=Object(ss["b"])(),d=i.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-"+i.code,JSON.stringify(f)),i.parentProp&&e.searchForm&&e.searchForm.length>0&&(f.listViewTreeSetting=null),i.$http.post(d,f).then((function(a){if("undefined"===typeof n||null===n){var s=[];if(ft("gridDataLoaded",i.code)){var l={gridData:a.data,columns:c.columns,additionalParamMap:c.additionalParamMap};e&&(l.searchForm=e.searchForm,l.additionalParamMap=e.additionalParamMap);var u=c.options.gridDataLoaded.call(i,l);s=u||a.data}else s=a.data;s||(s=[]),c.options.isFormSubTable?(s&&s.forEach((function(e){i.setColumnsDefaultValue(c.allColumns,e)})),i.pagination&&!0===i.isSubTableShowPage?(i.subTableData=s,i.gridData=i.getSubTableGridData(i.subTableData),c.subTableData=i.subTableData):i.gridData=s,null!==i.pagination&&(i.pagination.total=s.length)):(i.gridData=s,null!==i.pagination&&(i.pagination.total=a.total)),a.summaries&&Object.keys(a.summaries).length>0&&(i.summaries=a.summaries),c.gridData=i.gridData,c.orgGridData=[].concat(JSON.parse(JSON.stringify(i.gridData))),c.pagination=i.pagination,c.loaded=!0,i.lineEdit.editable&&("undefined"!==typeof t&&!1!==t||(0===i.gridData.length&&i.options&&null!==i.options.isDefaultShowEdit&&void 0!==i.options.isDefaultShowEdit&&!0===i.options.isDefaultShowEdit&&i.createRow(i.code,null,i.gridData),i.gridData.length>0&&i.$set(i.lineEdit,"editingCell",{row:0,prop:Ze(i.code)}))),i.hasLoadData=!0}else ft("gridDataLoaded",i.code)&&c.options.gridDataLoaded.call(i,{gridData:a,additionalParamMap:c.additionalParamMap}),ft("loadChildrenComplete",i.code)&&c.options.loadChildrenComplete.call(i,{parentRowIds:n,gridData:a,columns:c.columns,additionalParamMap:c.additionalParamMap}),"undefined"!==typeof r&&null!==r?(i.removeGridStoreSelection(n),r(a[n[0]])):(n.forEach((function(e){i.$refs.superGrid.store.states.lazyTreeNodeMap[e]=a[e],i.$refs.superGrid.store.states.treeData[e].children=a[e]})),i.removeGridStoreSelection(n)),i.hasLoadData=!0;o()})).catch((function(e){ft("loadError",i.code)&&c.options.loadError.call(i,i.code,e),a(e)}))}))},getInitSearchForm:function(e){var t=this,n=qe.get(this.code);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,i=e.dataType;i&&"BOOLEAN"===i&&(n=r),t.initSearchProps.push(n);var o=e.propValue;n&&n.indexOf(".")>0?ht(t.searchFormContent,n,o):t.searchFormContent[n]=o})),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=qe.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,ft("gridDataLoaded",e.code)){var i=n.options.gridDataLoaded.call(e,{gridData:t.gridData,additionalParamMap:n.additionalParamMap});e.gridData=i||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:Ze(e.code)})),ft("gridComplete",e.code)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(ft("loadError",e.code)){var n=qe.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 i=this;return new Promise((function(o,a){var s,l=qe.get(i.code);if(l.searchForm="undefined"!==typeof e&&null!==e?e:null,l.options&&l.options.isAdministerListView)l.options.SuperGrid&&l.options.SuperGrid.simulationDate&&(ft("gridDataLoaded",i.code)?(s=l.options.gridDataLoaded.call(r,{gridData:l.options.SuperGrid.simulationDate,columns:l.columns,additionalParamMap:l.additionalParamMap}),s||(s=l.options.SuperGrid.simulationDate)):s=l.options.SuperGrid.simulationDate,o(s));else if(l.options&&l.options.isFormSubTable&&l.options.subTableData&&l.options.subTableData.length>0){var u;i.hasLoadData=!1,l.loaded=!0,ft("gridDataLoaded",i.code)?(u=l.options.gridDataLoaded.call(r,{gridData:l.options.subTableData,columns:l.columns,additionalParamMap:l.additionalParamMap}),u||(u=l.options.subTableData,i.hasLoadData=!0)):(u=l.options.subTableData,i.hasLoadData=!0),o(u)}else i.fetchData(i.getSearchParam(),t,n).then((function(e){void 0!==l&&void 0!==l.options&&void 0!==l.options.isHiddenSearchForm&&!0===l.options.isHiddenSearchForm&&(i.showSearch=!1,i.$emit("cancel-search")),i.$refs&&i.$refs.sf&&(i.$refs.sf.loading=!1,i.$refs.sf.searchComplete()),r.resizeTableHeight(),o(e)})).catch((function(e){i.$refs.sf&&(i.$refs.sf.loading=!1,i.$refs.sf.searchComplete()),a(e)}))}))},getPaginationInfo:function(){var e=qe.get(this.code);if(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}return{currentPage:1,pageSize:20,showTotal:!0}},getSearchParam:function(){var e={code:this.code},t=qe.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,i=[],o=vs(this.mergeFields);try{for(o.s();!(r=o.n()).done;){var a,s=r.value,l=!0,u=vs(e.sorts);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(c.prop===s){l=!1;break}}}catch(d){u.e(d)}finally{u.f()}l&&i.push({prop:s,order:"ascending"})}}catch(d){o.e(d)}finally{o.f()}i.push.apply(i,Te(e.sorts)),e.sorts=i}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?(qe.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=Ze(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=qe.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 i=null,o=this.visibleColumns.filter((function(e){return t.property===e.prop}));if(o&&o.length>0&&(i=o[0]),it(this.code)){if(null!==n&&i&&null!==i){var a=i.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:i,prop:n,order:r,column:t})}else this.$refs.superGrid.clearSort()}},isMergeable:function(e){var t,n=vs(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(i){n.e(i)}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],i=r>0?1:0;return{rowspan:r,colspan:i}}},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 i=e.property,o=t[i];r[n]=void 0!==o&&null!==o?o:""})),r},getDefaultSummaries:function(e){var t=this,n=[],r=this.packageSummaryColumnProps();if(r.length>0){var i=e.columns,o=e.data,a=null;i.forEach((function(e,i){var s=0,l=e.property;if(l&&"$selection"!==l&&"$index"!==l&&(void 0===a||null===a))return a=i,void(n[i]="合计");r.indexOf(l)>=0?(o&&o.forEach((function(e){var n,r=Object(x["d"])(e,l);if(void 0!==r&&null!==r)n=Number(r);else{var i=/[A-Z]+/;t.isSql&&i.test(l)&&(r=Object(x["d"])(e,l.toLowerCase()),void 0!==r&&null!==r&&(n=Number(r)))}void 0===n||null===n||isNaN(n)||(s+=n)})),n[i]=s):n[i]=""}))}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;Ro.create(e,{onEnd:function(e){var n=e.newIndex,r=e.oldIndex,i={oldIndex:r,newIndex:n};this.$http.post(this.lineEdit.urlToSaveOrder,i).then((function(e){var i=t.gridData.splice(r,1)[0];t.gridData.splice(n,0,i)}))}})}}},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 i=[];i.push(e.id?e.id:e.ID),this.fetchData(this.getSearchParam(),!1,i,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 i=this,o=e-5,a=o;this.dragColumnProp=n.property;var s=qe.get(this.code);if(ft("resizeColumn",this.code)){var l=s.options.resizeColumn.call(this,{code:this.code,newWidth:l,oldWidth:t,column:n,additionalParamMap:s.additionalParamMap});l&&(a=l)}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=i.getColumnByElementColumn(n);e&&e.length>0&&(e[0].widthType="custom",e[0].width=i.newWidth+"")}))},resetSearch:function(){var e=null;this.toolbarFieldParam&&this.toolbarFieldParam.length>0&&(e=this.toolbarFieldParam),this.currentPage=1,this.search(e,!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(){(new Date).getTime();var e=this.getColumnInformation(),t={};if(e&&e.length>0)for(var n=0;n<e.length;n++){var r=e[n];void 0===r.show||r.show||(t[r.prop]="#808080"),this.backgroundColorMap&&"#409EFF"===this.backgroundColorMap[r.prop]&&this.externalClickFlag&&(t[r.prop]="#409EFF")}this.backgroundColorMap=t,this.externalClickFlag=!1,this.$refs&&this.$refs.superGrid&&this.$refs.superGrid.doLayout()},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 i=r[0];this.$emit("header-click",r[0]),this.changeHeaderStyleTwo(r[0]),this.showHeaderContextmenu=!0,this.rightClickColumn=i,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=Yt.getValidator(this.code),r=0;r<e.length;r++){var i=e[r];void 0!==i.$editing&&!0===i.$editing&&(Object(x["k"])(i,"$editing",!1),Kt.$emit("un-edit",{row:i}));var o=!0;ut("isEnableValidate",this.code)&&(o=this.gridParams.options.lineEditOptions["isEnableValidate"]);var a=!0;if(!0===o){var s=void 0,l=void 0;this.isSubTableShowPage&&void 0!==t&&t>0&&(s=Math.ceil((r+1)/t),l=r+1-(s-1)*t),a=Yt.validator(i,this.code,r,n,this.isSubTableShowPage,s,l)}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=this,i=qe.get(this.code);if(i.options&&i.options.isFormSubTable&&i.options.isPdfEditor);else if(this.isFormSubTable){if(t.property&&"operation"!==t.property){var o=!0,a=qe.get(this.code);if(ct("beforeEdit",this.code)){var s=a.isSubTableShowPage,l=a.pagination&&a.pagination.pageSize;o=a.options.lineEditOptions.beforeEdit.call(this,{gridData:s?a.subTableData:a.gridData,listCode:this.code,entity:e,columns:a.columns,isMobile:!1,pageGridData:s?a.gridData:null,pageSize:l,additionalParamMap:a.additionalParamMap})}Object(Ue["d"])(o)?o.then((function(t){void 0!==t&&!0!==t||r.rowDbClickEditRow(a,e)})):void 0!==o&&!0!==o||this.rowDbClickEditRow(a,e)}}else if(e&&i&&i.lineEdit&&i.lineEdit.editable&&i.canntEdit){var u=this.gridData.findIndex((function(t){return t.id&&t.id===e.id||t.ID&&t.ID===e.ID}));u<0&&(u=0),this.editRow(u)}this.rowDblClick(e,t,n)},rowDbClickEditRow:function(e,t){var n;n=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})),n&&n.length>0&&n.forEach((function(e){Object(x["k"])(e,"$editing",!1),Kt.$emit("un-edit",{row:e})})),e.isEditRow=!1,Object(x["k"])(t,"$editing",!0),e.$editRow=t,e.isEditRow=!0},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=qe.get(this.code),r=this.jumpPageSetting.closeEvent,i=this.jumpPageSetting.row;if(n.options.eventCallBack&&r&&null!==r&&n.options.eventCallBack[r]&&(t=n.options.eventCallBack[r]),t){var o={params:n.additionalParamMap,additionalParamMap:n.additionalParamMap,entity:i};e&&(o.eventParams={popEntity:e.entity,popPageCode:e.pageCode,pageCode:this.pageCode}),t.call(this,o)}var a=this.jumpPageSetting.isRefreshWhenClosePopup;if(void 0!==a&&!0===a){var s=qe.get(this.code);this.search(s.searchForm)}}this.isShowPageDialog=!1,this.jumpPageSetting=null},updateValues:function(e,t,n){var r=qe.get(this.code),i=n;if(void 0!==i&&null!==i&&i<this.gridData.length){var o=!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;In(e,t,this.jumpPageSetting,this.gridData[i],a,!o);var s,l=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;r.options.eventCallBack&&l&&null!==l&&r.options.eventCallBack[l]&&(s=r.options.eventCallBack[l]),s&&s.call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.gridData[i],targetTableName:a,isNeedReplaceFieldName:!o,additionalParamMap:r.additionalParamMap})}},closeSearchFormDialog:function(){this.showSearch=!1},getQueryMode:function(){return this.query&&"popup"===this.query.showType?"popup":"embedded"},selectCell:function(e,t,n,r){var i=this;n&&(this.cellClick(e,t,n,r),this.$nextTick((function(){i.$set(n.style,"border","2px solid #409EFF"),i.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())},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},openFold:function(e){this.resizeTableHeight()},fnProhibitToEdit:function(e){if(e)for(var t in e.isForceUpdate&&this.$emit("prohibitToEdit",e),e)this.$refs[t]&&this.$refs[t][0].fnProhibitToEdit(e[t])},prohibitToEdit:function(e){this.fnProhibitToEdit(e)},getTreeProps:function(e,t,n,r){var i={children:"children",hasChildren:"_has_children"};if(e){i={children:"children"};var o="hasChildren";n&&t&&(o="oracle"===r?"HAS_CHILDREN":"has_children"),i.hasChildren=o}return i}})},_s=ws,Cs=(n("1e03"),f(_s,_e,Ce,!1,null,"db2a51e0",null)),xs=Cs.exports;xs.install=function(e){e.component(xs.name,xs)};var Ss=xs,ks=function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("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():t("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)},Ds=[],Os=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("inline-department-user-single-tree",{ref:"inlineDepartmentUser",attrs:{"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser},on:{result:e.result}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Ts=[],Es=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input searchDepartmentUser",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),size:"small"},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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px",width:"100%"}},[e.searchValue&&0!==e.searchResult.length?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("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)},Is=[],Ns=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("el-table",{ref:"superGrid",attrs:{data:e.gridData,"row-class-name":e.tableRowClassName,"max-height":e.myHeight,"row-key":"id",border:"",fit:""},on:{"row-click":e.rowClick,"row-dblclick":e.rowDblclick}},[!1===e.multiple?t("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,1685606562)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),fixed:"",align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{disabled:e.isDisable(n.row),type:"primary",size:"mini",icon:"el-icon-plus",circle:""},on:{click:function(t){return e.addUser(n.$index,n.row)}}})],1)]}}],null,!1,4261266503)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),fixed:"",align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeUser(n.$index,n.row)}}})],1)]}}],null,!1,3810037523)}):e._e(),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.user"),prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.enName&&""!==n.row.enName.trim()?t("div",[t("div",{attrs:{title:n.row.name+"("+n.row.enName+")["+n.row.loginName+"]"}},[t("span",{staticStyle:{"white-space":"pre"}},[e._v(e._s(n.row.name+"("+n.row.enName+")")+"["+e._s(n.row.loginName)+"]")])]),t("div",{staticStyle:{color:"#ccc"},attrs:{title:e.getDeptName(n.row)}},[e._v("\n "+e._s(e.getDeptName(n.row))+"\n ")])]):t("div",[t("div",{attrs:{title:n.row.name+"["+n.row.loginName+"]"}},[t("span",{staticStyle:{"white-space":"pre"}},[e._v(e._s(n.row.name)+"["+e._s(n.row.loginName)+"]")])]),t("div",{staticStyle:{color:"#ccc"},attrs:{title:e.getDeptName(n.row)}},[e._v("\n "+e._s(e.getDeptName(n.row))+"\n ")])])]}}])})],1)],1)},As=[],Ps={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:{getDeptName:function(e){var t=e.superiorDeptNameFullPath;return t||(this.language&&"cn"!==this.language&&(t=e.mainDepartmentEnName),t||e.mainDepartmentName)},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}}}},Ms=Ps,Rs=(n("d5b2c"),f(Ms,Ns,As,!1,null,null,null)),Fs=Rs.exports,Bs={filterAppendNodes:function(e){var t=this;this.$http.post(k.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.filterText||0!==this.filterText.length?(this.search(this.filterText),t([])):this.memorySearch(e,t)},handleSelect:function(e){var t=this;this.$http.get(k.a.prototype.baseAPI+"/api/users?loginName="+e.loginName).then((function(n){if(null!==n)for(var r in n)e.hasOwnProperty(r)&&(e[r]=n[r]);t.filterText="",t.searchValue="",t.packageSelectResult(e),t.setMemoryCacheData(e,"departmentUser"),t.$emit("result",t.selectNodeInfo)}))},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,i){var o=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(i)>-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(k.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(t){if(n(t),o.$refs.deparmentUserTree.updateKeyChildren(i,t),0===e){var r=t[0].data;o.tenantInfo=JSON.parse(r),o.containBranch=t[0].containBranch,o.departmentInfo&&o.departmentInfo.length>0?o.loadPointDepartments(o):o.loadDepartment(o.tenantNodeId,o.tenantNodeId+"")}}))}},loadDepartment:function(e,t,n,r){var i=this,o={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/department-users",o).then((function(e){i.$refs.deparmentUserTree.updateKeyChildren(t,e),i.$refs.deparmentUserTree.store.nodesMap[t]&&(i.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0)}))},loadPointDepartments:function(){var e=this;this.$http.post(k.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)}))}},Ls=Bs;function $s(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 Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var js={name:"InlineDepartmentUserSingleTree",components:{UserResult:Fs},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,memoryCacheKey:"DEPARTMENT_USER_MEMORY_KEY",memoryCacheData:[]}},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||[],this.getMemoryCacheData("departmentUser")},methods:Vs(Vs(Vs(Vs({},O),Ls),B),{},{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.setMemoryCacheData(r,"departmentUser"),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 i=this;setTimeout((function(){i.notMultipleClickNum=0,i.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 i=[];this.$refs.deparmentUserTree&&(i=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,i,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.setMemoryCacheData(e,"departmentUser"),this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)}})},zs=js,Hs=(n("b232"),f(zs,Es,Is,!1,null,null,null)),Us=Hs.exports,Ws={name:"DepartmentUserSingleTree",components:{InlineDepartmentUserSingleTree:Us},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)}}},qs=Ws,Gs=f(qs,Os,Ts,!1,null,null,null),Ys=Gs.exports,Ks=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("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}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Xs=[],Js=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"430px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input inline-input-custom searchDepartmentUser",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),size:"small"},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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("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),t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("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"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentUserTree.selectedPeople"))+":\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("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)},Zs=[],Qs={filterAppendNodes:function(e){var t=this;this.$http.post(k.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.filterText||0!==this.filterText.length?(this.search(this.filterText),t([])):this.memorySearch(e,t)},handleSelect:function(e){var t=this;this.$http.get(k.a.prototype.baseAPI+"/api/users?loginName="+e.loginName).then((function(n){if(null!==n)for(var r in n)e.hasOwnProperty(r)&&(e[r]=n[r]);t.filterText="",t.searchValue="",t.selectUser(-1,e),t.setMemoryCacheData(e,"departmentUser")}))},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(k.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,i){var o=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(i)>-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(k.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(a){if(n(a),o.$refs.deparmentUserTree.updateKeyChildren(i,a),0===e){var s=a[0].data;o.tenantInfo=JSON.parse(s),o.containBranch=a[0].containBranch,o.departmentInfo&&o.departmentInfo.length>0?o.loadPointDepartments():o.loadDepartment(o.tenantNodeId,o.tenantNodeId+"")}o.isClickNode?(o.isClickNode=!1,o.staticCheckedUserNodes(t.data)):r&&r.indexOf(i)>-1&&o.checkedChildrenUserNodes(t.data,t.data.children)}))}},loadDepartment:function(e,t,n,r){var i=this,o={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/department-users",o).then((function(e){i.$refs.deparmentUserTree.updateKeyChildren(t,e),i.$refs.deparmentUserTree.store.nodesMap[t]&&(i.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0),n&&(-1===i.allExpandNodeIds.indexOf(t)&&i.allExpandNodeIds.push(t),i.allExpandNodeIds.length===i.allSearchNodeIds.length&&(i.$refs.deparmentUserTree.filter(r),i.allExpandNodeIds=[],i.allSearchNodeIds=[]))}))},loadPointDepartments:function(){var e=this;this.$http.post(k.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(k.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,i){e&&t?k.a.prototype.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){r(e)})).catch((function(e){i(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(i,o){var a=[];t?"所有用户"===t?(a.push(r.packageAllUser()),i(a)):"所有工作组人员"===t?(a.push(r.packageAllWgUser()),i(a)):r.getSelectUsers(e,t,n).then((function(e){i(e)})).catch((function(e){o(e)})):i(a)}))}},el=Qs;function tl(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 nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rl={name:"InlineDepartmentUserMultiTree",components:{UserResult:Fs},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:{},memoryCacheKey:"DEPARTMENT_USER_MEMORY_KEY",memoryCacheData:[]}},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||[],this.getMemoryCacheData("departmentUser")},methods:nl(nl(nl(nl({},O),el),B),{},{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),this.setMemoryCacheData(t,"departmentUser"))}},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 i=this.$refs.deparmentUserTree.getCheckedKeys(),o=i.filter(this.filterUserNode(t));o.length>0&&o.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+""}},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),i=this.packageSelectUser(r);i&&(this.selectResult.push(i),this.setMemoryCacheData(r,"departmentUser"))}},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),i=n.packageSelectUser(t);i&&(i.nodeId=e.nodeId,n.selectResult.push(i))}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 i=this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded,o=!i;this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=o,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 i=r.name;e.userZhNames.push(i),r.enName&&""!==r.enName.trim()?(e.userEnNames.push(r.enName),i=i+"("+r.enName+")"):e.userEnNames.push(""),e.userNames.push(i)}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 i=[];this.$refs.deparmentUserTree&&(i=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,i,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])])}})},il=rl,ol=(n("f8ab"),f(il,Js,Zs,!1,null,null,null)),al=ol.exports,sl={name:"DepartmentUserMultiTree",components:{InlineDepartmentUserMultiTree:al},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()}}},ll=sl,ul=(n("9219"),f(ll,Ks,Xs,!1,null,null,null)),cl=ul.exports,fl={name:"DepartmentUserTree",components:{DepartmentUserSingleTree:Ys,DepartmentUserMultiTree:cl},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")}}},dl=fl,hl=f(dl,ks,Ds,!1,null,null,null),pl=hl.exports;pl.install=function(e){e.component(pl.name,pl)};var ml=pl,gl=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.multiple?"60%":"40%"},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")}}},[t("inline-workgroup-tree",{ref:"workgroupTree",attrs:{multiple:e.multiple,"branch-info":e.branchInfo},on:{result:e.result}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroup}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},vl=[],bl=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"430px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px"}},[t("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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("workgroup-result",{ref:"workgroupResult",attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!0},on:{selectResult:e.getSelectWorkgroup,resultRowDblclick:e.resultRowDblclick,addWorkgroup:e.addWorkgroup}})],1):e._e()])],1)],1),e.multiple?t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("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"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("imatrixUIMessage.selectedWorkingGroup"))+":\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("workgroup-result",{attrs:{"grid-data":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!1},on:{selectResult:e.getSelectWorkgroup,resultRowDblclick:e.resultRowDblclick,removeWorkgroup:e.removeWorkgroup}})],1)])],1):e._e()],1)],1)},yl=[],wl={initLoad:function(e,t,n,r){var i=this,o={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroups",o).then((function(o){if(n(o),i.$refs.workgroupTree.updateKeyChildren(e,o),0===e){var a=o[0].data;i.tenantInfo=JSON.parse(a),i.containBranch=o[0].containBranch,i.loadWorkgroup(i.tenantNodeId)}r&&r.indexOf(e)>-1&&e===i.tenantNodeId&&i.checkedAllWorkgroups(t.data)}))},loadWorkgroup:function(e){var t=this,n={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.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)}))},querySearch:function(e,t){this.searchValue=e,this.searchResult=[],this.selectNodeInfo=null,e&&e.length>0?(this.filterAppendNodes(e),t([])):t([])},filterAppendNodes:function(e){var t=this,n={searchValue:e};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/search-workgroups",n).then((function(e){t.searchResult=e,0!==t.searchResult.length||t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))}},_l=wl,Cl=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("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?t("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectWorkgroup},model:{value:e.singleWorkgroupIndex,callback:function(t){e.singleWorkgroupIndex=t},expression:"singleWorkgroupIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,1572511618)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(n.row),circle:""},on:{click:function(t){return e.addWorkgroup(n.$index,n.row)}}})],1)]}}],null,!1,2838316040)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeWorkgroup(n.$index,n.row)}}})],1)]}}],null,!1,3509659964)}):e._e(),e.multiple?t("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(),t("el-table-column",{attrs:{label:e.$t("workgroupTree.workingGroupName"),width:110,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.name}},[e._v(e._s(n.row.name))])]}}])}),t("el-table-column",{attrs:{label:e.$t("workgroupTree.workingGroupNumber"),width:110,prop:"code"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.code}},[e._v(e._s(n.row.code))])]}}])}),t("el-table-column",{attrs:{label:e.$t("workgroupTree.workgroupDescription"),width:300,prop:"description"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.description}},[e._v(e._s(n.row.description))])]}}])})],1)],1)},xl=[],Sl={name:"WorkgroupResult",props:{gridData:{type:Array,default:null},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{singleWorkgroupIndex:null,selectedWorkgroup:null,myHeight:t,language:window.$locale?window.$locale:"cn"}},created:function(){},methods:{removeWorkgroup:function(e,t){this.$emit("removeWorkgroup",e,t)},addWorkgroup:function(e,t){this.$emit("addWorkgroup",e,t)},selectWorkgroup:function(e){this.$emit("selectResult",this.gridData[e])},rowClick:function(e,t,n){this.singleWorkgroupIndex=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("addWorkgroup",null,e):this.$emit("resultRowDblclick",e)},isDisable:function(e){if(this.selectResult){var t=this.selectResult.filter(this.filterWorkgroup(e));if(t&&t.length>0)return!0}return!1},filterWorkgroup:function(e){return function(t){return t.id===e.id}}}},kl=Sl,Dl=(n("18ed"),f(kl,Cl,xl,!1,null,null,null)),Ol=Dl.exports;function Tl(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 El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Il={name:"InlineWorkgroupTree",components:{WorkgroupResult:Ol},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,searchResult:[],selectResult:[],searchStoreKey:"searchWorkgroup",selectNodeInfo:null,selectWorkgroupData: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:El(El(El({},O),_l),{},{addWorkgroup:function(e,t){var n=this.selectResult.filter(this.filterWorkgroup(t));n&&0===n.length&&this.selectResult.push(t)},filterWorkgroup:function(e){return function(t){return t.id===e.id}},removeWorkgroup:function(e,t){var n=this;if(this.$refs.workgroupTree){var r=this.$refs.workgroupTree.getCheckedKeys(),i=r.filter(this.filterWorkgroupNode(t));i.length>0&&i.forEach((function(e){n.$refs.workgroupTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.workgroupTree&&this.$refs.workgroupTree.setCheckedKeys([])},filterWorkgroupNode:function(e){return function(t){return t===e.id}},getSelectWorkgroup:function(e){this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)},packageSelectResult:function(e){e.tenantCode=this.tenantInfo.code,e.tenantName=this.tenantInfo.tenantName;var t={id:e.id,name:e.name,code:e.code,subCompanyName:e.subCompanyName,workgroup:e};this.selectNodeInfo=t},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):this.selectResult.push(JSON.parse(e.data)):e.id===this.tenantNodeId?this.$refs.workgroupTree.setCheckedKeys([]):this.selectResult=this.removeRow(this.selectResult,JSON.parse(e.data))},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.selectResult=this.removeRow(this.selectResult,JSON.parse(e.data))):(this.$refs.workgroupTree.setChecked(e.id,!0),e.id===this.tenantNodeId?this.checkedAllWorkgroups(e):this.selectResult.push(JSON.parse(e.data)))},isWorkgroupNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"WORKGROUP"===e.nodeType},singleSetValue:function(){var e=!1;if(this.searchValue)this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):e=!0;else{var t=this.$refs.workgroupTree.getCurrentNode();t&&null!==t&&this.isWorkgroupNode(t)?this.selectSingleNode(t,!0):e=!0}this.showTip(e)},multipleSetValue:function(){var e=this,t=!1,n={ids:[],names:[],codes:[],workgroups:[]};if(this.searchValue)this.selectResult.length>0?(this.selectResult.forEach((function(t){var r={id:t.id,name:t.name,code:t.code};e.addSelectedWorkgroupInfo(n,r,t)})),this.$emit("result",n)):t=!0;else{var r=this.$refs.workgroupTree.getCheckedNodes();if(r)if(0===r.length)t=!0;else{for(var i=0;i<r.length;i++){var o=r[i];if(o.id!==this.tenantNodeId){var a=JSON.parse(o.data);this.addSelectedWorkgroupInfo(n,o,a)}}n.ids.length>0?this.$emit("result",n):t=!0}else t=!0}this.showTip(t)},selectWorkgroup:function(){this.multiple?this.multipleSetValue():this.singleSetValue()},showTip:function(e){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,i=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",i.nodeType&&"WORKGROUP"===i.nodeType&&this.searchValue&&i.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])])}})},Nl=Il,Al=(n("4873"),f(Nl,bl,yl,!1,null,null,null)),Pl=Al.exports,Ml={name:"WorkgroupTree",components:{InlineWorkgroupTree:Pl},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"60%"}},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()}}},Rl=Ml,Fl=f(Rl,gl,vl,!1,null,null,null),Bl=Fl.exports;Bl.install=function(e){e.component(Bl.name,Bl)};var Ll=Bl,$l=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.multiple?"60%":"40%"},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")}}},[t("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}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroupUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Vl=[],jl=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"430px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[t("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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("workgroup-user-result",{ref:"workgroupUserResult",attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!0},on:{selectResult:e.getSelectWorkgroupUser,resultRowDblclick:e.resultRowDblclick,addWorkgroupUser:e.addWorkgroupUser}})],1):e._e()])],1)],1),e.multiple?t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("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"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentUserTree.selectedPeople"))+"::\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("workgroup-user-result",{attrs:{"grid-data":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!1},on:{selectResult:e.getSelectWorkgroupUser,resultRowDblclick:e.resultRowDblclick,removeWorkgroupUser:e.removeWorkgroupUser}})],1)])],1):e._e()],1)],1)},zl=[],Hl={filterAppendNodes:function(e){var t=this;this.$http.post(k.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,i="~";n.indexOf(i)>-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)this.addWorkgroupUser(null,JSON.parse(e.data));else if(t)this.isClickNode=!0;else{var i={parentId:e.id,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",i).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(k.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 i=[];this.$refs.workgroupUserTree&&(i=this.$refs.workgroupUserTree.getCheckedKeys()),this.initLoad(n,r,e,t,i)},initLoad:function(e,t,n,r,i){var o=this,a={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",a).then((function(a){if(r(a),o.$refs.workgroupUserTree.updateKeyChildren(t,a),0===e){var s=a[0].data;o.tenantInfo=JSON.parse(s),o.containBranch=a[0].containBranch,o.loadWorkgroup(o.tenantNodeId,o.tenantNodeId+"")}o.isClickNode?(o.isClickNode=!1,o.checkedNode(n.data)):i&&i.indexOf(t)>-1&&o.checkedNode(n.data)}))},loadWorkgroup:function(e,t,n,r){var i=this,o={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",o).then((function(e){i.$refs.workgroupUserTree.updateKeyChildren(t,e),i.$refs.workgroupUserTree.store.nodesMap[t]&&(i.$refs.workgroupUserTree.store.nodesMap[t].expanded=!0),n&&(-1===i.allExpandNodeIds.indexOf(t)&&i.allExpandNodeIds.push(t),i.allExpandNodeIds.length===i.allSearchNodeIds.length&&(i.$refs.workgroupUserTree.filter(r),i.allExpandNodeIds=[],i.allSearchNodeIds=[]))}))},querySearch:function(e,t){this.searchValue=e,this.searchResult=[],this.selectNodeInfo=null,e&&e.length>0?(this.searchWorkgroupUsers(e),t([])):t([])},searchWorkgroupUsers:function(e){var t=this,n={searchValue:e};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/search-workgroup-users",n).then((function(e){t.searchResult=e,0!==t.searchResult.length||t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))}},Ul=Hl,Wl=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("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?t("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectWorkgroupUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,784242716)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(n.row),circle:""},on:{click:function(t){return e.addWorkgroupUser(n.$index,n.row)}}})],1)]}}],null,!1,3052625657)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeWorkgroupUser(n.$index,n.row)}}})],1)]}}],null,!1,1975637517)}):e._e(),e.multiple?t("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(),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),width:130,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.enName&&""!==n.row.enName.trim()?t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.name+"("+n.row.enName+")"}},[e._v(e._s(n.row.name+"("+n.row.enName+")"))]):t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.name}},[e._v(e._s(n.row.name))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.loginName"),width:110,prop:"loginName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.loginName}},[e._v(e._s(n.row.loginName))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),"min-width":160,prop:"mainDepartmentName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:e.language&&"cn"!==e.language&&n.row.mainDepartmentEnName?n.row.mainDepartmentEnName:n.row.mainDepartmentName}},[e._v(e._s(e.language&&"cn"!==e.language&&n.row.mainDepartmentEnName?n.row.mainDepartmentEnName:n.row.mainDepartmentName))])]}}])}),e.containBranch?t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),width:130,prop:"subCompanyName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.subCompanyName}},[e._v(e._s(n.row.subCompanyName))])]}}],null,!1,2922352565)}):e._e()],1)],1)},ql=[],Gl={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:{removeWorkgroupUser:function(e,t){this.$emit("removeWorkgroupUser",e,t)},addWorkgroupUser:function(e,t){this.$emit("addWorkgroupUser",e,t)},selectWorkgroupUser: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("addWorkgroupUser",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}}}},Yl=Gl,Kl=(n("cb76"),f(Yl,Wl,ql,!1,null,null,null)),Xl=Kl.exports;function Jl(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 Zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ql={name:"InlineWorkgroupUserTree",components:{WorkgroupUserResult:Xl},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,searchResult:[],selectResult:[],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:Zl(Zl(Zl({},O),Ul),{},{addWorkgroupUser:function(e,t){var n=this.selectResult.filter(this.filterWorkgroup(t));n&&0===n.length&&this.selectResult.push(t)},filterWorkgroup:function(e){return function(t){return t.id===e.id}},removeWorkgroupUser:function(e,t){var n=this;if(this.$refs.workgroupUserTree){var r=this.$refs.workgroupUserTree.getCheckedKeys(),i=r.filter(this.filterUserNode(t));i.length>0&&i.forEach((function(e){n.$refs.workgroupUserTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.workgroupUserTree&&this.$refs.workgroupUserTree.setCheckedKeys([])},getSelectWorkgroupUser:function(e){this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)},packageSelectResult:function(e){e.tenantCode=this.tenantInfo.code,e.tenantName=this.tenantInfo.tenantName;var t=e.name;e.enName&&""!==e.enName.trim()&&(t=t+"("+e.enName+")");var n={id:e.id,name:t,loginName:e.loginName,email:e.email,telephone:e.telephone,containBranch:this.containBranch,user:e,enName:e.enName,subCompanyName:e.subCompanyName};this.selectNodeInfo=n},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e,this.$refs.workgroupUserTree.filter(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,i=0;i<n.length;i++){var o=n[i],a=e[o];if(!(-1!==a.indexOf(t)||"name"===o&&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),t.selectResult.push(JSON.parse(e.data))}))},cancelCheckedNode:function(e){e.id===this.tenantNodeId?this.$refs.workgroupUserTree.setCheckedKeys([]):e.nodeType&&"WORKGROUP"===e.nodeType?this.cancelCheckedUserNodesWithWorkgroup(e):this.selectResult=this.removeRow(this.selectResult,JSON.parse(e.data))},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),t.selectResult=t.removeRow(t.selectResult,JSON.parse(e.data))}))},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 i={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=i,!0===t&&this.$emit("result",i)}},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},singleSetValue:function(){var e=!1;if(this.searchValue)this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):e=!0;else{var t=this.$refs.workgroupUserTree.getCurrentNode();t&&null!==t&&this.isUserNode(t)?this.selectSingleNode(t,!0):e=!0}this.showTip(e)},multipleSetValue:function(){var e=this,t=!1,n={userIds:[],userNames:[],loginNames:[],emails:[],telephones:[],users:[]};if(this.searchValue)this.selectResult.length>0?(this.selectResult.forEach((function(t){e.addSelectedUserInfo(n,t)})),this.$emit("result",n)):t=!0;else{var r=[],i=this.$refs.workgroupUserTree.getCheckedNodes();if(i)if(0===i.length)t=!0;else{for(var o=0;o<i.length;o++){var a=i[o];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 l=a.children;l&&l.length>0?l.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}this.showTip(t)},showTip:function(e){e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},selectWorkgroupUser:function(){this.multiple?this.multipleSetValue():this.singleSetValue()},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.branchInfo||0===this.branchInfo.length)},addSelectedUserInfo:function(e,t){var n=e.userIds.filter(this.filterUserId(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)}},filterUserId:function(e){return function(t){return t===e.id}},filterUserNode:function(e){return function(t){var n="~",r=t.substring(t.lastIndexOf(n)+1);return r===e.id+""}},renderContent:function(e,t){var n,r=t.node,i=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",i.nodeType&&"USER"===i.nodeType&&this.searchValue&&this.filterUserVal(i,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])])}})},eu=Ql,tu=(n("2981"),f(eu,jl,zl,!1,null,null,null)),nu=tu.exports,ru={name:"WorkgroupUserTree",components:{InlineWorkgroupUserTree:nu},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()}}},iu=ru,ou=f(iu,$l,Vl,!1,null,null,null),au=ou.exports;au.install=function(e){e.component(au.name,au)};var su=au;te.install=function(e){e.component(te.name,te)};var lu=te,uu=function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("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():t("inline-department-user-single-tree",{ref:"userTree",attrs:{height:e.height,"department-info":e.departmentInfo},on:{result:e.result}})],1)},cu=[],fu={name:"InlineDepartmentUserTree",components:{InlineDepartmentUserSingleTree:Us,InlineDepartmentUserMultiTree:al},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()}}},du=fu,hu=f(du,uu,cu,!1,null,null,null),pu=hu.exports;pu.install=function(e){e.component(pu.name,pu)};var mu=pu;Pl.install=function(e){e.component(Pl.name,Pl)};var gu=Pl;nu.install=function(e){e.component(nu.name,nu)};var vu=nu,bu=function(){var e=this,t=e._self._c;return t("span",["undefined"!==typeof e.buttonInfo["theTransactor"]&&!1===e.buttonInfo["theTransactor"]?t("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._t("errorArea"),e._t(e.slotAfter)],2):t("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._l(e.buttons,(function(n,r){return t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:n.permission,expression:"button.permission"}],key:r,class:n.code?n.code:"",attrs:{disabled:e.preventReclick,type:n.type,size:"small"},on:{click:n.clickFun}},[e._v("\n "+e._s(n.i18nButtonName)+"\n ")])})),e._t(e.slotAfter)],2)])},yu=[];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(i["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:"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:_u({},Object(Rn["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}}}},xu=Cu,Su=f(xu,bu,yu,!1,null,null,null),ku=Su.exports;ku.install=function(e){e.component(ku.name,ku)};var Du=ku,Ou=function(){var e=this,t=e._self._c;return e.loaded?t("el-table",{ref:"historyList",staticStyle:{width:"100%"},attrs:{height:e.tableHeight,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}},[t("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)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.taskName"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_START"===n.row.historyType?t("span",[e._v(e._s(e.$t("workflowHistoryList.processStart")))]):n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span",[e._v(e._s(e.$t("workflowHistoryList.processEnd")))]):n.row.current?t("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(e.i18nTaskName(n.row)))]):n.row.special?!0===n.row.special?t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.i18nTaskName(n.row)+"["+e.$t("workflowHistoryList.specailText")+"]"))]):e._e():t("span",[e._v(e._s(e.i18nTaskName(n.row)))])]}}],null,!1,298792300)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operator"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.creatorName))])]}}],null,!1,1328406894)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operatorLg"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.creator))])]}}],null,!1,3777006953)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operatorDept"),align:"left",width:"150"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.departmentName))])]}}],null,!1,1295965654)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operationTime"),align:"left",width:"200"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.formatCreatedTime))])]}}],null,!1,53914243)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operation"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):n.row.current?t("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(n.row.transactionResult)+" "+e._s(e.$t("workflowHistoryList.toDoText")))]):t("span",[e._v(e._s(e.i18nOperation(n.row)))])]}}],null,!1,3189498206)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.opinion"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.opinion))])]}}],null,!1,1506270213)})],1):e._e()},Tu=[];function Eu(e,t,n,r){var i=e.transactionResult,o=e.historyType;if(!e.current&&o)if(e.transactionParams){var a=JSON.parse(e.transactionParams),s=o.toLowerCase(),l=Iu(o);if(l?s="commonButtonOperation":"process_end"===s&&(s="processEnd"),l||"HISTORY_COMPLETE_TRANSFER"===o){var u=a["2"];a["2"]=Object(x["e"])().t("workflowButton."+u)}if("process_start"===s&&t&&null!==t)a[1]=t,i=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}}i=Object(x["e"])().t("workflowHistoryList."+s,c)}}else i=Object(x["e"])().t("workflowHistoryList."+o.toLowerCase());return i}function Iu(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 Nu={refresh:function(){this.getData()}},Au=Nu;function Pu(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 Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ru={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,tableHeight: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(){var e=this;this.$nextTick((function(){e.tableHeight=window.innerHeight-120}))},methods:Mu(Mu({},Au),{},{getData:function(){var e=this;this.$http.get(k.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(k.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"])(),i=e.bundleCode;return i&&""!==i&&this.processI18n&&(t=this.processI18n[i]),t&&t["processName"]&&(n=t["processName"][r]),Eu(e,n,t,r)},i18nTaskName:function(e){var t,n=e.bundleCode;n&&""!==n&&this.processI18n&&(t=this.processI18n[n]);var r=null,i=e.i18nKey;if(i&&t&&t[i]){var o=Object(x["f"])();r=t[i][o]}return r&&null!==r||(r=e.taskName),r},getChildren:function(e,t,n){n(e.children)}})},Fu=Ru,Bu=f(Fu,Ou,Tu,!1,null,null,null),Lu=Bu.exports;Lu.install=function(e){e.component(Lu.name,Lu)};var $u=Lu;function Vu(e){e.disabled=!1,e.classList.remove("is-disabled")}var ju={inserted:function(e,t){e.addEventListener("click",(function(){e.disabled=!0,e.classList.add("is-disabled"),t.value().then((function(t){Vu(e)})).catch((function(t){Vu(e),console.log("Error",t.message)}))}))}},zu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ValidCode disabled-select",style:"width:".concat(e.width,"; height:").concat(e.height),on:{click:e.refreshCode}},e._l(e.codeList,(function(n,r){return t("span",{key:r,style:e.getStyle(n)},[e._v(e._s(n.code))])})),0)},Hu=[],Uu={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,i=0;i<e;i++){var o=[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(o,")"),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)}}},Wu=Uu,qu=(n("7324"),f(Wu,zu,Hu,!1,null,"0e45e064",null)),Gu=qu.exports;Gu.install=function(e){e.component(Gu.name,Gu)};var Yu=Gu,Ku=new Map,Xu=Ku,Ju=n("16e5");function Zu(e,t,n,r){var i=this;return new Promise((function(o,a){Qu(e,t,n,r).then((function(e){fc("afterExport",r)&&"function"===typeof r.afterExport&&r.afterExport.call(i),o(e)})).catch((function(e){fc("exportError",r)&&"function"===typeof r.exportError&&r.exportError.call(i),a(e)}))}))}function Qu(e,t,n,r){var i=this;return new Promise((function(o,a){var s=!0;if(fc("beforeExport",r)&&"function"===typeof r.beforeExport&&(s=r.beforeExport.call(i)),s)if(e&&e.hasOwnProperty("data")){var l={};l["_data"]=e.data,oc(JSON.stringify(l),t,n).then((function(e){o(e)})).catch((function(e){a(e)}))}else e&&e.hasOwnProperty("url")?ec(e,t,n).then((function(e){o(e)})).catch((function(e){a(e)})):ic(t,n).then((function(e){o(e)})).catch((function(e){a(e)}));else o(!1)}))}function ec(e,t,n){return new Promise((function(r,i){var o=tc(n),a=rc(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),k.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 oc(n,t,o)})).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function tc(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=qe.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Xu.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function nc(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=qe.get("_list_code")),t=qe.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Xu.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Xu.get(n)),t}function rc(e){var t={},n=nc(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),i={currentPage:1,pageSize:99999999,showTotal:!1};t=r,r.pagination=i,n.options.extraParam&&(t=gt(r,n))}return t}function ic(e,t){return new Promise((function(n,r){var i=nc(t);if(void 0===i||null===i)r("导出失败");else{var o=rc(t);k.a.prototype.$http.post(i.url,o).then((function(n){var r=n.data;r||(r=[]);var i={};return i["_data"]=r,oc(JSON.stringify(i),e,t)})).then((function(e){n(e)})).catch((function(e){r(e)}))}}))}function oc(e,t,n){return new Promise((function(r,i){var o=nc(n);if(void 0!==o)if(o.columns){var a=lc(o.columns);0===a.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):sc(uc(e,t,n,a)).then((function(e){r(e)})).catch((function(e){i(e)}))}else Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else ac(e,t,n).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function ac(e,t,n,r){return new Promise((function(i,o){var a={};r&&""!==r&&(a.additionalParamMap=r),k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){rs(r,n).then((function(){0===r.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),i(!1)):sc(uc(e,t,n,r)).then((function(e){i(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}function sc(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return dc(k.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 lc(e){var t=[];return e.forEach((function(e){e.exportable&&!0===e.exportable&&t.push(e)})),t}function uc(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:cc(e,t)}}function cc(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function fc(e,t){return"undefined"!==typeof t&&"undefined"!==typeof t[e]}function dc(e,t){return new Promise((function(n,r){k.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 i=document.createElement("a"),o=document.createEvent("HTMLEvents");o.initEvent("click",!1,!1),i.href=URL.createObjectURL(r),i.download=t,i.style.display="none",document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(i.href)}n(!0)})).catch((function(e){r(e)}))}))}var hc={exportData:Zu,download:dc};function pc(e,t,n,r,i,o,a,s,l){var u=this;return new Promise((function(c,f){mc(e,t,n,o,r,i,a,s,l).then((function(e){Ec("afterExport",o)&&"function"===typeof o.afterExport&&o.afterExport.call(u),c(e)})).catch((function(e){Ec("exportError",o)&&"function"===typeof o.exportError&&o.exportError.call(u),f(e)}))}))}function mc(e,t,n,r,i,o,a,s,l){var u=this;return new Promise((function(c,f){if(qe.get(n+"basicInfo")){var d=qe.get(n+"basicInfo");d&&d.i18nLable&&(t=d.i18nLable)}var h=!0;Ec("beforeExport",r)&&"function"===typeof r.beforeExport&&(h=r.beforeExport.call(u)),h?e&&e.hasOwnProperty("url")?gc(e,t,n).then((function(e){c(e)})).catch((function(e){f(e)})):wc(t,n,e.data,i,o,a,s,l).then((function(e){c(e)})).catch((function(e){f(e)})):c(!1)}))}function gc(e,t,n){return new Promise((function(r,i){var o=vc(n),a=yc(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),k.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 xc(n,t,o)})).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function vc(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=qe.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Xu.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function bc(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=qe.get("_list_code")),t=qe.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Xu.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Xu.get(n)),t}function yc(e){var t={},n=bc(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),i={currentPage:1,pageSize:99999999,showTotal:!1};if(t=r,r.pagination=i,n.options.extraParam){var o;t=gt(r,n);var a=n.options.parentProp;"undefined"!==typeof a&&""!==a&&null!==a&&(o=a),o&&r&&r.searchForm&&r.searchForm.length>0&&(t.listViewTreeSetting=null)}}return t}function wc(e,t,n,r,i,o,a,s){return new Promise((function(l,u){var c=bc(t);if(void 0===c||null===c)u("导出失败");else{var f=yc(t);if(f.data=n,c.columns&&(f.exportColumns=Dc(c.columns)),f.exportData={excelName:e},e&&null!==e&&""!==e?e+=".xlsx":e="default.xlsx",!r)return void Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.theButtonIsNotBoundToAResource"),type:"error",showClose:!0});f.functionCode=r,i&&(f.uuid=i),localStorage.setItem(i,"start"),f["async"]=o,f["pageCode"]=a,f["isPermission"]=s,k.a.prototype.$http.post(k.a.prototype.baseURL+"/dsc/commons/export-list-data",f).then((function(t){if(o){var n,r=Object(x["e"])().t("imatrixUIMessage.asyncExport"),a=_c();if(a){n="<p><span>"+r+"</span>";var s=Object(x["e"])().t("imatrixUIMessage.asyncExportJumpMsg");n+='<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\''+a+"')\">"+s+"</a>",n+="</p>"}n?Object(Ju["Message"])({showClose:!0,dangerouslyUseHTMLString:!0,message:n,type:"success",duration:1e4}):Object(Ju["Message"])({showClose:!0,message:r,type:"success",duration:5e3}),localStorage.setItem(i,"ok")}else{if(t.indexOf("~~")>=0)return localStorage.setItem(i,"ok"),Ic(k.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(t)+"&_t="+(new Date).getTime(),e);Cc(t,f,e)}})).then((function(e){l(e)})).catch((function(e){localStorage.setItem(i,"error"),u(e)}))}}))}function _c(){var e,t=k.a.prototype.baseAPI;if(t){var n=t.split("/"),r=n[0]+"//"+n[2];e=r+"/document-center/#/file-task/file-export-task/list"}return e}function Cc(e,t,n){setTimeout((function(){k.a.prototype.$http.post(k.a.prototype.baseURL+"/dsc/commons/get-file-uuid/"+e,t).then((function(r){if(r)if(!r.code||"ok"!==r.code&&"error"!==r.code)Cc(e,t,n);else{if("ok"===r.code)return localStorage.setItem(e,"ok"),Ic(k.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(r.fileName)+"&uuid="+e+"&_t="+(new Date).getTime(),n);localStorage.setItem(e,"error"),Object(Ju["Message"])({message:r.message,type:"error",showClose:!0})}else localStorage.setItem(e,"ok")})).catch((function(){localStorage.setItem(e,"error")}))}),5e3)}function xc(e,t,n){return new Promise((function(r,i){var o=bc(n);if(void 0!==o)if(o.columns){var a=Dc(o.columns);0===a.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):kc(Oc(e,t,n,a)).then((function(e){r(e)})).catch((function(e){i(e)}))}else Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else Sc(e,t,n).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function Sc(e,t,n,r){return new Promise((function(i,o){var a={};r&&""!==r&&(a.additionalParamMap=r),k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){rs(r,n).then((function(){0===r.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),i(!1)):kc(Oc(e,t,n,r)).then((function(e){i(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}function kc(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return Ic(k.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 Dc(e){var t=[];return e.forEach((function(e){e.children&&e.children.length>0?t=t.concat(Dc(e.children)):e.exportable&&!0===e.exportable&&t.push(e)})),t}function Oc(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:Tc(e,t)}}function Tc(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function Ec(e,t){return null!==t&&"undefined"!==typeof t&&"undefined"!==typeof t[e]}function Ic(e,t){return new Promise((function(n,r){k.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 i=document.createElement("a"),o=document.createEvent("HTMLEvents");o.initEvent("click",!1,!1),i.href=URL.createObjectURL(r),i.download=t,i.style.display="none",document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(i.href)}n(!0)})).catch((function(e){r(e)}))}))}var Nc={exportData:pc,download:Ic};function Ac(){return self!==top}function Pc(e){if(e){var t=e.split(",");t.forEach((function(e){sessionStorage.setItem("refreshList-"+e,"true")}))}}function Mc(e){return void 0!==e&&null!==e&&"string"===typeof e&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;")),e}var Rc={isInIframe:Ac,refreshList:Pc,escapeHtml:Mc},Fc={install:function(e,t){e.prototype.$exportData=hc.exportData,e.prototype.$isInIframe=Rc.isInIframe,e.prototype.$escapeHtml=Rc.escapeHtml,e.prototype.$download=hc.download,e.prototype.$refreshList=Rc.refreshList,e.prototype.$exportDataNew=Nc.exportData,e.prototype.$downloadNew=Nc.download}},Bc=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("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),t("el-table",{ref:"removeUserGrid",attrs:{data:e.users,"row-key":"id",border:"",height:e.height}},[t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),prop:"name"}}),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),prop:"mainDepartmentName"}}),e.containBranch?t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),prop:"subCompanyName"}}):e._e(),t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeUser(n.$index)}}})],1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Lc=[],$c={getSelectUsers:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},Vc=$c;function jc(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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hc={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:zc(zc({},Vc),{},{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 i=r.name;this.containBranch&&r.subCompanyName&&(i=i+"("+r.subCompanyName+")"),t.userNames.push(i),e.push(r[this.searchField])}var o=this.getRemoveItems(this.originalUsers,e,this.searchField);this.$emit("close",t,o)},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])})):[]}})},Uc=Hc,Wc=f(Uc,Bc,Lc,!1,null,null,null),qc=Wc.exports;qc.install=function(e){e.component(qc.name,qc)};var Gc=qc,Yc=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("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),t("el-table",{ref:"removeDeptGrid",attrs:{data:e.departments,"row-key":"id",border:"",height:e.height}},[t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.name"),prop:"name"}}),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.code"),prop:"code"}}),t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeDept(n.$index)}}})],1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectDept}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Kc=[],Xc={getSelectDepts:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},Jc=Xc;function Zc(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 Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ef={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:Qc(Qc({},Jc),{},{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 i=r.name;this.containBranch&&r.branchName&&(i=i+"("+r.branchName+")"),t.names.push(i),e.push(r[this.searchField])}var o=this.getRemoveItems(this.originalDepts,e,this.searchField);this.$emit("close",t,o)},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])})):[]}})},tf=ef,nf=f(tf,Yc,Kc,!1,null,null,null),rf=nf.exports;rf.install=function(e){e.component(rf.name,rf)};var of=rf,af=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("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),t("el-table",{ref:"removeWgGrid",attrs:{data:e.workgroups,"row-key":"id",border:"",height:e.height}},[t("el-table-column",{attrs:{label:e.$t("workgroupTree.name"),prop:"name"}}),t("el-table-column",{attrs:{label:e.$t("workgroupTree.code"),prop:"code"}}),t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeWg(n.$index)}}})],1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectWg}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},sf=[],lf={getSelectWgs:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-workgroups?searchField="+e+"&selectWorkgroupInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},uf=lf;function cf(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 ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var df={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:ff(ff({},uf),{},{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 i=this.getRemoveItems(this.originalWgs,e,this.searchField);this.$emit("close",t,i)},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])})):[]}})},hf=df,pf=f(hf,af,sf,!1,null,null,null),mf=pf.exports;mf.install=function(e){e.component(mf.name,mf)};var gf=mf,vf=function(){var e=this,t=e._self._c;return t("span",{staticStyle:{width:"100%"}},[e.disabled?[t("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0,disabled:!0}},[t("template",{slot:"append"},[t("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"}),t("i",{staticClass:"el-input__icon el-icon-delete",attrs:{slot:"suffix"},slot:"suffix"})])],2)]:[t("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0},on:{focus:function(t){return e.showOrganizationTree(!1)}}},[t("template",{slot:"append"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return e.showOrganizationTree(!1)}}}),t("i",{staticClass:"el-input__icon el-icon-delete",on:{click:function(t){return e.emptyOrganizationResult()}}})])],2)],e.treeType&&"DeptUserTree"===e.treeType&&e.showOrganizationTreeFlag?t("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?t("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?t("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?t("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)},bf=[],yf={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,i=this.multiple;"undefined"===typeof i&&(i=!1);var o=this.treeType,a=this.fields;a&&a.length>0&&a.forEach((function(a){var s=a.type,l=r.getOrgSelectData(s,e,r.isUserTree(o),i),u=r.getPropName(a.model);r.getOrgDataModel(u,l,i,s,t,n)}))},getOrgDataModel:function(e,t,n,r,i,o){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 i=null;if(n){var o=t.user;o&&(i=o.mainDepartmentName)}return i}if("mainDeptId"===e){var a=null;if(n){var s=t.user;s&&(a=s.mainDepartmentId)}return a}if("mainDeptCode"===e){var l=null;if(n){var u=t.user;u&&(l=u.mainDepartmentCode)}return l}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(){var n=t[i],r=e.fields.filter((function(e){return e.type===n}));if(r&&r.length>0){var o=r[0];if(o){var a=e.getPropName(o.model),s=e.getModelValue(a);if(s&&null!==s&&""!==s)return e.selectOrganizationInfo=s,e.searchField=n,1}}},i=0;i<t.length;i++)if(r())break}else for(var o=0;o<t.length;o++){var a=t[o],s=this.selectOrganizationAllInfo[a];if(s&&null!==s&&""!==s){this.selectOrganizationInfo=s,this.searchField=a;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);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,i=0;i<n.length-1;i++)r=0===i?this.getParentModelProp(n[i],t):this.getParentModelProp(n[i],r);return r},getParentModelProp:function(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}}},wf=yf,_f=f(wf,vf,bf,!1,null,null,null),Cf=_f.exports;Cf.install=function(e){e.component(Cf.name,Cf)};var xf=Cf,Sf=function(){var e=this,t=e._self._c;return t("div",[e.hasLoadedColumns?t("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(),t("div",{staticClass:"nine-grid-area"},[t("div",{style:"height:"+e.height+"px;overflow-y: auto;overflow-x: hidden;",attrs:{id:e.gridId}},[t("el-row",{attrs:{gutter:20}},[e.isHasCreate?t("el-col",{directives:[{name:"permission",rawName:"v-permission",value:e.createPermission,expression:"createPermission"}],attrs:{id:"_addCardId_",span:6,offset:1.5}},[t("el-card",{attrs:{"body-style":{padding:"0px"}}},[t("div",{staticClass:"add-screen",on:{click:e.add}},[t("span",{staticStyle:{color:"#6882da"}},[t("em",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$t("superNineGrid.add")))])])])],1):e._e(),e._l(e.gridData,(function(n,r){return t("el-col",{key:n.id,staticClass:"col-content",attrs:{span:6,offset:1.5}},[t("el-card",{attrs:{"body-style":{padding:"0px"},shadow:"hover"}},[t("div",{on:{click:function(t){return e.clickContent(n)}}},[t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"popContainer"},[t("div",{staticClass:"else-button",staticStyle:{background:"rgba(0,0,0,0.5)","min-height":"20%"}},[e._t(e.slotBefore,null,{params:n}),e._l(e.operations,(function(r){return[e.isShowButton(n,r)?[r.icon?t("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"}},[t("em",{class:r.icon+" icons",on:{click:function(t){return t.stopPropagation(),e.buttonClick(r.event,n)}}})]):t("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(t){return t.stopPropagation(),e.buttonClick(r.event,n)}}},[e._v(e._s(r.name)+" ")])]:e._e()]}))],2)])]),e.props&&e.props.imageUrl&&e.objectPropValue(n,e.propCloumns.imageUrl,e.props.imageUrl)?t("img",{staticClass:"image",attrs:{src:e.defaultShowImageAction+e.objectPropValue(n,e.propCloumns.imageUrl,e.props.imageUrl),alt:"加载失败"}}):t("div",{staticClass:"image",staticStyle:{display:"table","text-align":"center"}},[e.props&&e.props.content?t("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("content",n))+"\n ")]):e.props&&e.props.title?t("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("title",n))+"\n ")]):e._e()])],1),t("el-divider"),t("div",{staticStyle:{padding:"10px 10px 10px 10px"}},[t("div",{staticClass:"bottom clearfix"},[t("time",{staticClass:"name"},[e.props&&e.props.title?t("span",[e.multiple?t("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+n.id],"true-label":n.id,"false-label":"false-"+n.id,title:e.getPropValue("title",n)},on:{change:function(t){return e.changeChecked(t,r)}}},[t("span",{style:e.getTitleStyle(n)},[e._v(" "+e._s(e.getPropValue("title",n)))])]):e.isShowRadio?t("el-radio",{staticStyle:{width:"100%"},attrs:{label:n.id,title:e.getPropValue("title",n)},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[t("span",{style:e.getTitleStyle(n)},[e._v(" "+e._s(e.getPropValue("title",n)))])]):t("span",{style:e.getTitleStyle(n),attrs:{title:e.getPropValue("title",n)}},[e._v(" "+e._s(e.getPropValue("title",n)))])],1):e.props&&e.props.content?t("span",[e.multiple?t("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+n.id],"true-label":n.id,"false-label":"false-"+n.id,title:e.getPropValue("content",n)},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(e.getPropValue("content",n)))]):e.isShowRadio?t("el-radio",{staticStyle:{width:"100%"},attrs:{label:n.id,title:e.getPropValue("content",n)},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",n)))]):t("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("content",n)}},[e._v(" "+e._s(e.getPropValue("content",n)))])],1):t("span",[e.multiple?t("el-checkbox",{attrs:{value:e.selectionModels["select"+n.id],"true-label":n.id,"false-label":"false-"+n.id},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(r+1))]):e.isShowRadio?t("el-radio",{attrs:{label:n.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))]):t("span",[e._v(" "+e._s(r+1))])],1)]),e.props&&e.props.subTitle?t("time",{staticClass:"state"},[t("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("subTitle",n)}},[e._v(e._s(e.getPropValue("subTitle",n)))])]):e._e()])])],1)],1)}))],2)],1),e.pagination?t("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)},kf=[],Df={number:function(e,t){var n=t.precision,r=t.delimiter,i=t.scientific,o=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!=i)){var a=!1;o=o?parseInt(o):11,e.length>=o&&(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),i=r.getFullYear(),o=r.getMonth()+1,a=r.getDate(),s=r.getHours(),l=r.getMinutes(),u=r.getSeconds();return o<10&&(o="0"+o),a<10&&(a="0"+a),s<10&&(s="0"+s),l<10&&(l="0"+l),u<10&&(u="0"+u),n.replace("yyyy",i).replace("m",o).replace("d",a).replace("hh",s).replace("mm",l).replace("ss",u)}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return this.number(e,t)+"%"}};function Of(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!==Df[r.type]?Df[r.type](t,r.options):t}var Tf={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(i){return""}},objectPropValue:function(e,t,n){var r=Of(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 i=Of(t,r);return{originalValue:r,formatValue:i}},onClickFun:function(e,t,n,r){var i=this.getColumnValue(e,t);n.call(this,i.originalValue,i.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}},Ef=Tf,If=function(){var e=this,t=e._self._c;return e.searchableColumns.length>0?t("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"}},[t("table",e._l(e.rowNum,(function(n){return t("tr",{key:n},e._l(e.getColumnNumPerRow(n,e.searchableColumns.length),(function(r){return t("td",{key:r},[t("el-form-item",{style:{paddingLeft:"10px",minWidth:"200px"},attrs:{prop:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,"label-width":e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabelWidth?e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabelWidth:"80px"}},[t("template",{slot:"label"},[e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabel&&""!==e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabel?t("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabel.replace(/\\n/g,"</br>"))}}):t("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].label.replace(/\\n/g,"</br>"))}})]),"DATE"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType||"date"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-date-picker",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-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(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):"dateTimePicker"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-date-picker",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-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(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):"TIME"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType&&"timepicker"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-date-picker",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-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(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):"timepicker"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"TIME"!==e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType&&"DATE"!==e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType?t("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*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"select"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType||"BOOLEAN"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType?t("el-select",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}},e._l(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].valueSet,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"multiselect"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-select",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{clearable:"",multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}},e._l(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].valueSet,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"inputNumber"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("search-form-number",{attrs:{r:n,n:r},on:{setValue:e.setNumberValue}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"switch"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-switch",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"slider"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-slider",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"rate"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-rate",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):!0===e.customComponent(e.searchableColumns[e.fieldNum*(n-1)+(r-1)])?t("span",[t(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentName,{ref:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentName,refInFor:!0,tag:"component",staticClass:"customComponent",attrs:{prop:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}})],1):t("el-input",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}},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),t("el-form-item",{staticClass:"search-btn"},[t("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 ")]),t("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()},Nf=[],Af={packageSearchParam:function(){var e=this,t=[];return this.searchableColumns.forEach((function(n){var r={leftBracket:"",rightBracket:"",joinSign:"and"},i=n.orgProp,o="__";if(i.indexOf(o)>0&&(i=i.replace(o,".")),r.columnProp=n.prop,r.propName=i,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 l=e.getFormItemValue(n.prop);e.packageValueWithArray(l,t,r)}else{var u=e.getFormItemValue(n.prop);e.packageValueWithArray(u,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,i=0;r.forEach((function(e){var o=Object.assign({},n);o.joinSign="or",0===i&&(o.leftBracket="1"),i===r.length-1&&(o.rightBracket="1",o.joinSign="and"),o.propValue=e,o.operator="EQ",e&&t.push(o),i++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))}},Pf=Af,Mf=function(){var e=this,t=e._self._c;return t("div",[t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),t("span",[e._v("---")]),t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},Rf=[],Ff={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)}}},Bf=Ff,Lf=f(Bf,Mf,Rf,!1,null,null,null),$f=Lf.exports;function Vf(e,t){t||(t=Xu.get("_nine_list_code")),t&&t.indexOf("~")<0&&(t+="~_nineGrid");var n=Xu.get(t);return!(!n.options||"function"!==typeof n.options[e])}function jf(){var e={columns:[],gridData:[],orgGridData:[],showValidateError:!0,options:{}};return k.a.observable(e)}function zf(e,t,n){var r=t.split(".");if(1!==r.length){for(var i=e,o=0;o<r.length-1;o++)void 0===i[r[o]]&&(i[r[o]]={}),i=i[r[o]];i[r[r.length-1]]=void 0!==n?n:null}else e[t]=void 0!==n?n:null}function Hf(e,t){if(!0===e){var n=0;return t&&(n=t.$el.offsetHeight),window.innerHeight-n-165}return window.innerHeight-165}function Uf(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wf(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Wf(e,t){if(e){if("string"===typeof e)return qf(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)?qf(e,t):void 0}}function qf(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 Gf(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 Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf={name:"SearchForm",components:{searchFormNumber:$f},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=Xu.get(t),i={};null!==this.searchParam&&(i=JSON.parse(JSON.stringify(this.searchParam)));var o=this.getSearchableColumns();void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),o.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop.indexOf(".")>0?zf(i,t.prop):i[t.prop]=null)}));var a=this.getSpanNum(t),s=this.getFieldNumPerRow(t),l=Math.ceil(o.length/s);return{searchForm:i,rules:{},searchParams:[],labelWidth:r.options.search&&r.options.search.labelWidth?r.options.search.labelWidth:"80px",customComponentNames:n,componentName:"",spanNum:a,fieldNum:s,rowNum:l,loading:!1,storeId:t}},computed:{searchableColumns:function(){return this.getSearchableColumns()}},methods:Yf(Yf({},Pf),{},{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=Xu.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 i=JSON.parse(r.querySetting);i.width&&(r.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(r.searchLabelWidth=i.labelWidth+"px"),i.label&&(r.searchLabel=i.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=Xu.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),k.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=Uf(this.customComponentNames);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.$refs[i][0].resetField()}}catch(o){r.e(o)}finally{r.f()}this.searchableColumns.forEach((function(e){e.prop.indexOf(".")>0?zf(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)}})},Xf=Kf,Jf=(n("2210"),f(Xf,If,Nf,!1,null,"03fdf3c6",null)),Zf=Jf.exports,Qf={initialize:function(){var e=this,t=k.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 i=0;i<r.length;i++)n.push(1*r[i]);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 o=Xu.get(e.code+"~"+e.gridId);rs(e.columns,e.code).then((function(){o.isSql=e.isSql,o.columns=e.columns,o.lineEdit=e.lineEdit,o.basicInfo=e.basicInfo,o.pagination=e.pagination,o.query=e.query,e.hasLoadedColumns=!0;var t=!0;Vf("loadBeforeSend",e.storeId)&&(t=o.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:o,additionalParamMap:o.additionalParamMap})),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}}},ed=Qf,td={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=Xu.get(this.storeId);return e.searchForm?e.searchForm:[]},getGridData:function(e){e||(e=Xu.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Xu.get(e);return t.gridData},getColumns:function(e){e||(e=Xu.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Xu.get(e);return t.columns},getPagination:function(e){e||(e=Xu.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Xu.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}},nd=td;function rd(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=id(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function id(e,t){if(e){if("string"===typeof e)return od(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)?od(e,t):void 0}}function od(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 ad(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ld={name:"SuperNineGrid",components:{SearchForm:Zf},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=k.a.prototype.baseAPI+"/component/super-form/show-image?serverPath=",n=this.options&&this.options.id?this.options.id:"_nineGrid",r=this.code+"~"+n,i=!(!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:i,titleStyle:null,slotBefore:"before"}},computed:{},provide:function(){return{}},created:function(){Xu.set(this.code+"~"+this.gridId,jf()),Xu.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=Hf(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=Xu.get(n.storeId);Vf("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:sd(sd(sd(sd({},ed),nd),Ef),{},{getTitleStyle:function(e){return this.options&&this.options.titleStyle?this.options.titleStyle.call(this,e):{width:"100%"}},getPropValue:function(e,t){var n="",r=Xu.get(this.storeId);if("content"===e){var i="";Vf("setContent",this.storeId)&&(i=r.options.getContent.call(this,t)),void 0!==i&&""!==i||(this.props&&this.props.content?i=this.objectPropValue(t,this.propCloumns.content,this.props.content):this.props&&this.props.title&&(i=this.objectPropValue(t,this.propCloumns.title,this.props.title))),n=i}else if("title"===e){var o="";Vf("setTitle",this.storeId)&&(o=r.options.setTitle.call(this,t)),void 0!==o&&""!==o||(this.props&&this.props.title?o=this.objectPropValue(t,this.propCloumns.title,this.props.title):this.props&&this.props.content&&(o=this.objectPropValue(t,this.propCloumns.content,this.props.content))),n=o}else if("subTitle"===e){var a="";Vf("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=Xu.get(this.storeId);if(Vf("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=Xu.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,i){if(n.getPropColumns(),n.isLoading=!0,n.hasLoadData=!1,void 0===t||!1===t){var o=sessionStorage.getItem("refreshList-"+n.storeId);if(void 0!==o&&"true"===o){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 l=Xu.get(n.storeId),u=e;if(l.options.extraParam&&(u={searchParam:e},l.options.extraParam))for(var c in l.options.extraParam)u[c]=l.options.extraParam[c];l.searchParam=e,l.url=n.url;var f=n.url;sessionStorage.setItem("searchParam-"+n.storeId,JSON.stringify(u)),n.$http.post(f,u).then((function(e){if(Vf("gridDataLoaded",n.storeId)){var t=l.options.gridDataLoaded.call(n,{gridData:e.data,columns:l.columns});n.gridData=t||e.data}else n.gridData=e.data;n.gridData||(n.gridData=[]),null!==n.pagination&&(n.pagination.total=e.total),l.gridData=n.gridData,l.orgGridData=[].concat(JSON.parse(JSON.stringify(n.gridData))),l.pagination=n.pagination,l.loaded=!0,n.hasLoadData=!0,r()})).catch((function(e){Vf("loadError",n.storeId)&&l.options.loadError.call(n,n.code,e),i(e)}))}))},getInitSearchForm:function(e){var t=this,n=Xu.get(this.storeId);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,i=e.dataType;i&&"BOOLEAN"===i&&(n=r),t.initSearchProps.push(n);var o=e.propValue;n.indexOf(".")>0?zf(t.searchFormContent,n,o):t.searchFormContent[n]=o})),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=Xu.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,Vf("gridDataLoaded",e.storeId)){var i=n.options.gridDataLoaded.call(e,t.gridData);e.gridData=i||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,Vf("gridComplete",e.storeId)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(Vf("loadError",e.storeId)){var n=Xu.get(e.storeId);n.options.loadError.call(e,e.code,t)}}))},search:function(e){var t=this;return new Promise((function(n,r){var i=Xu.get(t.storeId);i.searchForm="undefined"!==typeof e&&null!==e?e:null,t.fetchData(t.getSearchParam(),!0).then((function(e){void 0!==i.options&&void 0!==i.options.isHiddenSearchForm&&!0===i.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=Xu.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,i=[],o=rd(this.mergeFields);try{for(o.s();!(r=o.n()).done;){var a,s=r.value,l=!0,u=rd(e.sorts);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(c.prop===s){l=!1;break}}}catch(f){u.e(f)}finally{u.f()}l&&i.push({prop:s,order:"ascending"})}}catch(f){o.e(f)}finally{o.f()}i.push.apply(i,Te(e.sorts)),e.sorts=i}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=k.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;Ro.create(n,{draggable:".col-content",onEnd:function(t){var n=t.newIndex,i=t.oldIndex,o=document.querySelector("#"+r.gridId+" #_addCardId_");null!=o&&(i>0&&(i-=1),n>0&&(n-=1));var a={oldIndex:i,newIndex:n,gridData:r.gridData};r.$http.post(e,a).then((function(e){var t=r.gridData.splice(i,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}})},ud=ld,cd=(n("d6e2"),f(ud,Sf,kf,!1,null,"a4061422",null)),fd=cd.exports;fd.install=function(e){e.component(fd.name,fd)};var dd=fd;Vt.install=function(e){e.component(Vt.name,Vt)};var hd=Vt,pd=function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("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():t("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)},md=[],gd=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isShowButton&&!e.disabled?t("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(),t("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?t("div",[e.isImg?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[t("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName,type:"primary"}},[e._v("\n "+e._s(n.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),t("el-table-column",{attrs:{label:e.$t("fsUpload.picture"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-image",{attrs:{src:e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName,"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName]},on:{click:function(t){return e.bigPicture(n.$index)}}})]}}],null,!1,2055571535)}),e.disabled?e._e():t("el-table-column",{attrs:{label:e.$t("fsUpload.operating"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.deleteFile(n.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")])]}}],null,!1,1012280757)})],1)],1):e.isShowList?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[t("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName,type:"primary"}},[e._v("\n "+e._s(n.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),t("el-table-column",{attrs:{width:"200",label:e.$t("fsUpload.operating")},scopedSlots:e._u([{key:"default",fn:function(n){return[e.disabled?e._e():t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.deleteFile(n.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.preview(n.row)}}},[e._v("\n "+e._s(e.$t("fsUpload.preview"))+"\n ")])]}}],null,!1,1706256729)})],1)],1):t("div",e._l(e.unifiedEnclosures,(function(n,r){return t("div",{key:r},[t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+n.uuid+"&showName="+n.fileName,type:"primary"}},[e._v("\n "+e._s(n.fileName)+"\n ")]),t("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():t("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px"},on:{click:function(t){return e.deleteFile(r)}}})]),t("el-tooltip",{staticStyle:{"margin-left":"10px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[t("i",{staticClass:"el-icon-view",on:{click:function(t){return e.preview(n)}}})])],1)})),0)]):e._e(),e.bigPictureVisible?t("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.unifiedEnclosures},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},vd=[],bd=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"close-on-click-modal":!1,visible:"","append-to-body":""},on:{close:function(t){return e.$emit("close")}}},[t("el-carousel",{staticStyle:{width:"100%"},attrs:{height:"600px",autoplay:!1,"indicator-position":"outside","initial-index":e.displayIndex}},e._l(e.unifiedEnclosures,(function(n,r){return t("el-carousel-item",{key:r,attrs:{label:n.fileName}},[t("div",[t("el-image",{staticStyle:{height:"580px"},attrs:{"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+n.uuid+"&showName="+n.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+n.uuid+"&showName="+n.fileName}})],1)])})),1)],1)},yd=[],wd={props:{unifiedEnclosures:{type:Array,default:null},showIndex:{type:Number,default:0}},data:function(){return{displayIndex:0}},created:function(){this.displayIndex=this.showIndex},methods:{}},_d=wd,Cd=f(_d,bd,yd,!1,null,null,null),xd=Cd.exports,Sd={name:"FsUploadMulti",components:{seeBigPicture:xd},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=k.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(k.a.prototype.isOffice){var t=Object(He["c"])(),n={fileName:k.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+t},r=this.$http;r.post(k.a.prototype.baseURL+"/common/fs-upload/des-encrypt",n).then((function(e){window.open(k.a.prototype.isOffice+e)}))}else{var i,o=e.fileName.split(".");i="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 a=Object(He["c"])();if(k.a.prototype.customPreviewUrl)window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.uuid+"&showName="+encodeURI(e.fileName),i);else{var s=k.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a;Object(Ue["c"])(k.a.prototype.systemCode)&&(s=k.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a),window.open(s,i)}}},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 i=this.$http;i.headers="'Content-Type': 'multipart/form-data'",i.post(k.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}))}}}},kd=Sd,Dd=f(kd,gd,vd,!1,null,"55a65746",null),Od=Dd.exports,Td=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.unifiedEnclosure&&e.unifiedEnclosure.uuid&&e.unifiedEnclosure.fileName&&e.isShowData?t("div",[e.isImg?t("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}}):t("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 ")]),t("el-tooltip",{attrs:{content:e.$t("fsUpload.download"),effect:"light"}},[e.isImg?t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName,type:"primary"}},[t("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px","font-size":"30px"}})]):e._e()],1),t("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():t("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px","font-size":"30px"},on:{click:e.deleteFile}})]),t("el-tooltip",{staticStyle:{"margin-left":"10px","font-size":"30px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[e.isImg?e._e():t("i",{staticClass:"el-icon-view",on:{click:e.preview}})])],1):e._e(),e.isShowButton&&!e.disabled?t("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(),t("input",{ref:"uploadTemplate",staticStyle:{display:"none"},attrs:{type:"file",name:"uploadTemplate",accept:e.accepts},on:{change:e.upload}}),e.bigPictureVisible?t("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.data},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},Ed=[],Id=n("a78e"),Nd=n.n(Id),Ad={name:"FsUploadSingle",components:{seeBigPicture:xd},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=k.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(k.a.prototype.isOffice){var e=Nd.a.get("JWT"),t={fileName:k.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+e},n=this.$http;n.post(k.a.prototype.baseURL+"/common/fs-upload/des-encrypt",t).then((function(e){window.open(k.a.prototype.isOffice+e)}))}else{var r,i=this.unifiedEnclosure.fileName.split(".");r="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 o=Object(He["c"])();if(k.a.prototype.customPreviewUrl)window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+encodeURI(this.unifiedEnclosure.fileName),r);else{var a=k.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName;Object(Ue["c"])(k.a.prototype.systemCode)&&(a=k.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+o),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(k.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}))}}},Pd=Ad,Md=f(Pd,Td,Ed,!1,null,"708f569b",null),Rd=Md.exports,Fd={name:"FsUpload",components:{fsUploadMulti:Od,fsUploadSingle:Rd},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(k.a.prototype.baseURL+"/common/fs-upload",{data:n}).then((function(e){}))},getdeleteUuIds:function(){return this.deleteUuids}}},Bd=Fd,Ld=f(Bd,pd,md,!1,null,"91a07efc",null),$d=Ld.exports;$d.install=function(e){e.component($d.name,$d)};var Vd=$d,jd=function(){var e=this,t=e._self._c;return t("div",[t("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?t("el-button",{attrs:{slot:"append",icon:"el-icon-full-screen"},on:{click:e.openVideo},slot:"append"}):e._e()],1),e.isShow?t("scan-code-input-colse",{attrs:{"colse-video":e.colseVideo},on:{close:e.closeVideo}}):e._e()],1)},zd=[],Hd=(n("4917"),function(){var e=this,t=e._self._c;return t("div",{},[t("video",{ref:"video",staticClass:"video vjs-fluid",attrs:{id:"video",height:"300",autoplay:""},on:{click:e.clickVideo}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.tipShow,expression:"tipShow"}],staticClass:"tip"},[e._v("\n "+e._s(e.tipMsg)+"\n ")])])}),Ud=[];n("96cf");function Wd(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function qd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Wd(o,r,i,a,s,"next",e)}function s(e){Wd(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Gd=n("224f"),Yd={name:"ScanCodeInputColse",components:{},props:{colseVideo:{type:Boolean,default:!1}},data:function(){return{loadingShow:!1,codeReader:new Gd["BrowserMultiFormatReader"],textContent:null,vin:null,tipMsg:this.$t("messageVideo.attemptingToIdentify"),tipShow:!1,isVideo:!1}},created:function(){this.openScan()},beforeDestroy:function(){this.codeReader.reset()},methods:{openScan:function(){var e=qd(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");var r=e[0].deviceId,i=JSON.stringify(e[0].label);e.length>1&&(r=i.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=qd(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 Gd["BrowserMultiFormatReader"];case 3:t.codeReader=e.sent,t.codeReader.listVideoInputDevices().then((function(e){t.tipShow=!0,t.tipMsg=n.$t("messageVideo.callingRearCamera");var r=e[0].deviceId,i=JSON.stringify(e[0].label);e.length>1&&(r=i.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&&(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())}}},Kd=Yd,Xd=f(Kd,Hd,Ud,!1,null,null,null),Jd=Xd.exports,Zd={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)}},Qd=Zd;function eh(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nh={name:"ScanCodeInput",components:{scanCodeInputColse:Jd},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:th(th({},Qd),{},{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)}})},rh=nh,ih=f(rh,jd,zd,!1,null,null,null),oh=ih.exports;oh.install=function(e){e.component(oh.name,oh)};var ah=oh,sh=function(){var e=this,t=e._self._c;return t("div",[e.disabled?[t("fs-preview",{attrs:{label:e.value,entity:e.row,"is-sql":e.isSql,"file-set-obj":e.fileSetObj}})]:[t("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),t("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?t("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"}},[t("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?t("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[t("el-table-column",{attrs:{width:"300",prop:"showName"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteRow(n.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},lh=[],uh={name:"FsUploadList",components:{FsPreview:Gn},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(He["c"])()},t=k.a.prototype.baseURL+"/common/fs-upload";return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.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(k.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=yt(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(He["c"])(),r=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(Ue["c"])(k.a.prototype.systemCode)&&(r=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.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=[],i=0;i<this.showFileList.length;i++)i!==e&&(n.push(this.showFileList[i].showName),r.push(this.showFileList[i].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))}}},ch=uh,fh=f(ch,sh,lh,!1,null,"2ee62821",null),dh=fh.exports;dh.install=function(e){e.component(dh.name,dh)};var hh=dh,ph=function(){var e=this,t=e._self._c;return t("div",[t("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 "),t("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)},mh=[],gh={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)}}},vh=gh,bh=f(vh,ph,mh,!1,null,null,null),yh=bh.exports;yh.install=function(e){e.component(yh.name,yh)};var wh=yh,_h=function(){var e=this,t=e._self._c;return t("div",["form"===e.type?t("MultipartUploadForm"):t("MultipartUploadList",{attrs:{disabled:e.disabled,entity:e.entity,value:e.value,"file-set-obj":e.fileSetObj}})],1)},Ch=[],xh=function(){var e=this,t=e._self._c;return t("div",[e.disabled?[t("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[t("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"})],1),t("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}}},[t("el-upload",{attrs:{id:"upload","show-file-list":!1,"auto-upload":!1,"on-change":e.uploadFile,action:""}},[t("el-button",{attrs:{size:"small",type:"primary"}},[e._v("\n 选择文件\n ")]),t("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?t("span",[e._v(",并且只接受"+e._s(e.fileSetObj.accept)+"类型文件")]):e._e()])],1),t("br"),e._l(e.uploadingFile,(function(n,r){return t("el-row",{key:r},[t("el-tag",{attrs:{size:"small form-list-file"}},[t("span",[t("i",{staticClass:"el-icon-paperclip"}),t("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(n.name))])]),t("el-tooltip",{attrs:{content:"取消上传",placement:"right",effect:"light"}},[t("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(t){return e.cancelUpload(n.serverName)}}})])],1),t("el-progress",{attrs:{percentage:n.uploadProgress}})],1)})),t("div",{staticStyle:{}},[t("el-row",[t("el-col",e._l(e.fileContent,(function(n,r){return t("el-tag",{key:r,attrs:{size:"small form-list-file"}},[t("span",{on:{click:function(t){return e.preview(n.name,n.serverName)}}},[t("i",{staticClass:"el-icon-paperclip"}),t("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(n.name))])]),t("el-tooltip",{attrs:{content:"移除已上传文件",placement:"right",effect:"light"}},[t("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(t){return e.handleOnRemove(r,n)}}})])],1)})),1)],1)],1)],2),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),t("el-image",{attrs:{src:e.previewImageInfo.src,"preview-src-list":[e.previewImageInfo.src]}})],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[t("el-table-column",{attrs:{width:"300",prop:"showName"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteRow(n.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},Sh=[],kh={name:"MultipartUploadList",components:{FsPreview:Gn},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(He["c"])()},t=k.a.prototype.baseURL+"/common/fs-upload";return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.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(","),i=n.split(",");r.forEach((function(t,n){e.fileContent.push({name:t,serverName:i[n]});var r=Object(He["c"])(),o=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+r;Object(Ue["c"])(k.a.prototype.systemCode)&&(o=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+r);var a=o+"&showName="+encodeURI(t)+"&serverPath="+i[n];e.showFileList.push({showName:t,serverPath:i[n],src:a})}))}},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},uploadFile:function(){var e=qd(regeneratorRuntime.mark((function e(t){var n,r,i,o,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,i=r.size,o=Math.ceil(i/this.chunkSize),console.log("文件大小:",r.size/1024/1024+"Mb","分片数:",o),console.log("向后端请求本次分片上传初始化"),a={fileName:r.name,chunkCount:o},this.$http.post(k.a.prototype.baseURL+"/common/mutipart-upload/create",a).then(function(){var e=qd(regeneratorRuntime.mark((function e(t){var l,u,c,f,d;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:l=s.uploadingFile.findIndex((function(e){return e.serverName===n})),u=t.serverName,s.uploadingFile[l]={uploadProgress:0,name:r.name,serverName:u,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(i,a+s.chunkSize),d=r.slice(a,f),console.log("开始上传第"+(n+1)+"个分片,共"+o+"个"),h=new FormData,h.append("folder",t.folder),h.append("serverName",u),h.append("file",d),!(s.cancelUploadFile.indexOf(u)>0)){e.next=12;break}return e.abrupt("return",1);case 12:return e.next=14,s.$http.post(k.a.prototype.baseURL+"/common/mutipart-upload/upload",h).then((function(e){c.push(e.uploadName);var t=parseInt((n+1)/o*100);s.uploadingFile[l].uploadProgress=t>100?100:t,s.$set(s.uploadingFile,l,s.uploadingFile[l]),console.log("第"+(n+1)+"个分片上传完成",s.uploadingFile)}));case 14:case"end":return e.stop()}}),e)})),d=0;case 10:if(!(d<o)){e.next=17;break}return e.delegateYield(f(d),"t0",12);case 12:if(!e.t0){e.next=14;break}return e.abrupt("break",17);case 14:d++,e.next=10;break;case 17:if(!(s.cancelUploadFile.indexOf(u)<0)){e.next=21;break}s.composeFile(r.name,o,i,u,c,t.folder),e.next=23;break;case 21:return e.next=23,s.$http.post(k.a.prototype.baseURL+"/common/mutipart-upload/remove-chunks",{serverName:u,folder:t.folder}).then((function(e){console.log("取消上传,并移除已上传的文件碎片")}));case 23: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,i,o){var a=this,s={fileName:e,chunkSize:t,fileSize:n,serverName:r,chunkNames:i,folder:o};console.log(s,"开始请求后端合并文件"),this.$http.post(k.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:k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(He["c"])()+"&showName="+e+"&serverPath="+t},this.showPreviewSingleImage=!0):this.previewDoc(e,t)},previewDoc:function(e,t){var n=Object(He["c"])(),r=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(Ue["c"])(k.a.prototype.systemCode)&&(r=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.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)}}},Dh=kh,Oh=f(Dh,xh,Sh,!1,null,"78bfc762",null),Th=Oh.exports,Eh=function(){var e=this,t=e._self._c;return t("div",[e.disabled?[t("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[t("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),t("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?t("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"}},[t("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?t("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[t("el-table-column",{attrs:{width:"300",prop:"showName"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteRow(n.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},Ih=[],Nh={name:"MultipartUploadForm",components:{FsPreview:Gn},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(He["c"])()},t=k.a.prototype.baseURL+"/common/fs-upload";return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.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=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(He["c"])(),i=0;i<e.length;i++){var o=e[i];if(o&&t[i]){var a={showName:o,serverPath:t[i],src:r+"&showName="+o+"&serverPath="+t[i]};Object(x["j"])(o)?a.isImg=!0:a.isImg=!1,n.push(a)}}this.showFileList=n}},previewDoc:function(e){var t=Object(He["c"])(),n=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+t;Object(Ue["c"])(k.a.prototype.systemCode)&&(n=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+t),k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.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=[],i=0;i<this.showFileList.length;i++)i!==e&&(n.push(this.showFileList[i].showName),r.push(this.showFileList[i].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)}}},Ah=Nh,Ph=f(Ah,Eh,Ih,!1,null,"0548435e",null),Mh=Ph.exports,Rh={name:"MultipartUpload",components:{MultipartUploadList:Th,MultipartUploadForm:Mh},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:{}},Fh=Rh,Bh=f(Fh,_h,Ch,!1,null,"18d0a944",null),Lh=Bh.exports;Lh.install=function(e){e.component(Lh.name,Lh)};var $h=Lh,Vh=function(){var e=this,t=e._self._c;return t("div",{style:{maxHeight:e.maxHeight+"px"}},[e.disabled?t("div",[t("div",{staticStyle:{overflow:"auto",border:"1px solid #DCDFE6",padding:"2px"},style:{maxHeight:e.maxHeight+"px"},attrs:{id:e.viewerId}}),t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.fullScreen"),effect:"dark",placement:"top"}},[t("em",{staticClass:"el-icon-full-screen",staticStyle:{"z-index":"1",right:"20px",position:"absolute",top:"2px"},on:{click:e.fullScreenContent}})]),t("el-image",{ref:"previewImg",staticStyle:{display:"none",width:"100px",height:"100px"},attrs:{src:e.srcList[0],"preview-src-list":e.srcList}})],1):t("Editor",{attrs:{init:e.init,disabled:e.disabled},model:{value:e.contentValue,callback:function(t){e.contentValue=t},expression:"contentValue"}}),t("el-dialog",{attrs:{visible:e.dialogVisible,title:e.title,"destroy-on-close":"","append-to-body":"",fullscreen:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{attrs:{id:e.fullscreenViewerId}})])],1)},jh=[],zh=(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"]),Hh=function(e){return-1!==zh.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},Uh=function(e,t,n){Object.keys(t).filter(Hh).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},Wh=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}))}))},qh=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:i)),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&&Wh(t,n),Uh(e,t.$listeners,n),t.initialized=!0},Gh=0,Yh=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return Gh++,e+"_"+n+Gh+String(t)},Kh=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},Xh=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},Jh=function(e,t){return Xh(e).concat(Xh(t))},Zh=function(e){return null===e||void 0===e},Qh=function(){return{listeners:[],scriptId:Yh("tiny-script"),scriptLoaded:!1}},ep=function(){var e=Qh(),t=function(e,t,n,r){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e,i.src=n;var o=function(){i.removeEventListener("load",o),r()};i.addEventListener("load",o),t.head&&t.head.appendChild(i)},n=function(n,r,i){e.scriptLoaded?i():(e.listeners.push(i),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=Qh()};return{load:n,reinitialize:r}},tp=ep(),np=n("c4a9"),rp={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}}},ip=function(){return ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ip.apply(this,arguments)},op=function(e,t,n){return e(n||"div",{attrs:{id:t}})},ap=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},sp=function(e){return function(){var t=ip(ip({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:Jh(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 qh(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});Kh(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Object(np["a"])().init(t)}},lp={props:rp,created:function(){this.elementId=this.$props.id||Yh("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(np["a"])())sp(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=Zh(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;tp.load(this.element.ownerDocument,n,sp(this))}},beforeDestroy:function(){null!==Object(np["a"])()&&Object(np["a"])().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Object(np["a"])())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&sp(this)()},render:function(e){return this.inlineEditor?op(e,this.elementId,this.$props.tagName):ap(e,this.elementId)}},up=lp,cp=n("78b7"),fp=n.n(cp),dp=(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:up},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| link | 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:")?(fp.a.activeEditor&&fp.a.activeEditor.uploadImages(),e):e},images_upload_handler:function(t,n,r,i){var o;o=t.blob()instanceof File?t.blob():e.base64ToFile(t.base64(),"a.png");var a=new FormData;a.append("file",o);var s={headers:{"Content-Type":"multipart/form-data"}};e.$http.post("/common/fs-upload/rich-editor-image",a,s).then((function(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():fp.a.init(this.init)},methods:{showImage:function(e){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=k.a.extend({methods:{showImage:function(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,i=new Uint8Array(r);t=(new Date).getTime()+"-"+Math.floor(1e4*Math.random())+".png";while(r--)i[r]=n.charCodeAt(r);return new File([i],t,{type:"image/png"})}}}),hp=dp,pp=f(hp,Vh,jh,!1,null,null,null),mp=pp.exports;mp.install=function(e){e.component(mp.name,mp)};var gp=mp,vp=function(){var e=this,t=e._self._c;return void 0!==e.value&&null!==e.value&&""!==e.value?t("span",[e.isShow?t("span",[e._v("\n "+e._s(e.decryInfo)),t("i",{staticClass:"fa fa-eye",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})]):t("span",[e._v("\n ******"),t("i",{staticClass:"fa fa-eye-slash",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})])]):e._e()},bp=[],yp={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}))}}},wp=yp,_p=f(wp,vp,bp,!1,null,"75022789",null),Cp=_p.exports;Cp.install=function(e){e.component(Cp.name,Cp)};var xp=Cp;function Sp(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 kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dp=[p,ae,he,we,Ss,ml,Ll,su,lu,mu,gu,vu,Du,$u,Yu,Gc,of,gf,xf,dd,hd,Vd,ah,Yn,hh,wh,$h,gp,xp],Op=function e(t){t.directive("prevent-reclick",ju),t.use(Fc),e.installed||(Dp.forEach((function(e){t.component(e.name,e)})),window["$plateform_openPage"]=mn)};"undefined"!==typeof window&&window.Vue&&Op(window.Vue);var Tp=kp({install:Op},Dp);n.d(t,"Breadcrumb",(function(){return p})),n.d(t,"DepartmentTree",(function(){return ae})),n.d(t,"Hamburger",(function(){return he})),n.d(t,"SvgIcon",(function(){return we})),n.d(t,"SuperGrid",(function(){return Ss})),n.d(t,"DepartmentUserTree",(function(){return ml})),n.d(t,"WorkgroupTree",(function(){return Ll})),n.d(t,"WorkgroupUserTree",(function(){return su})),n.d(t,"InlineDepartmentTree",(function(){return lu})),n.d(t,"InlineDepartmentUserTree",(function(){return mu})),n.d(t,"InlineWorkgroupTree",(function(){return gu})),n.d(t,"InlineWorkgroupUserTree",(function(){return vu})),n.d(t,"WorkflowButton",(function(){return Du})),n.d(t,"WorkflowHistoryList",(function(){return $u})),n.d(t,"ValidCode",(function(){return Yu})),n.d(t,"RemoveUser",(function(){return Gc})),n.d(t,"RemoveDepartment",(function(){return of})),n.d(t,"RemoveWorkgroup",(function(){return gf})),n.d(t,"OrganizationInput",(function(){return xf})),n.d(t,"SuperNineGrid",(function(){return dd})),n.d(t,"DynamicSourceSelect",(function(){return hd})),n.d(t,"FsUpload",(function(){return Vd})),n.d(t,"ScanCodeInput",(function(){return ah})),n.d(t,"FsPreview",(function(){return Yn})),n.d(t,"FsUploadList",(function(){return hh})),n.d(t,"YearRangePicker",(function(){return wh})),n.d(t,"MultipartUpload",(function(){return $h})),n.d(t,"RichEditor",(function(){return gp})),n.d(t,"SecretInfo",(function(){return xp}));t["default"]=Tp},fb3f:function(e,t,n){"use strict";n("321e")},fb63:function(e,t,n){"use strict";var r=function(){function e(){}return e.round=function(e){return isNaN(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 i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){var i=e[n];t+=i}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>'}})},fcd1:function(e,t,n){"use strict";n("efd5")},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},fdfd:function(e,t,n){e.exports={default:n("9e1c"),__esModule:!0}},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},febe:function(e,t,n){"use strict";n("8575")}})}));
66
+ function br(e){return br="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},br(e)}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(){return wr=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},wr.apply(this,arguments)}function _r(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){yr(e,t,n[t])}))}return e}function Cr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function xr(e,t){if(null==e)return{};var n,r,i=Cr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Sr="1.10.2";function kr(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Dr=kr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Or=kr(/Edge/i),Tr=kr(/firefox/i),Er=kr(/safari/i)&&!kr(/chrome/i)&&!kr(/android/i),Ir=kr(/iP(ad|od|hone)/i),Nr=kr(/chrome/i)&&kr(/android/i),Ar={capture:!1,passive:!1};function Pr(e,t,n){e.addEventListener(t,n,!Dr&&Ar)}function Mr(e,t,n){e.removeEventListener(t,n,!Dr&&Ar)}function Rr(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 Fr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Br(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Rr(e,t):Rr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Fr(e))}return null}var Lr,$r=/\s+/g;function Vr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace($r," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace($r," ")}}function jr(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 zr(e,t){var n="";if("string"===typeof e)n=e;else do{var r=jr(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Hr(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Ur(){var e=document.scrollingElement;return e||document.documentElement}function Wr(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,u,c,f;if(e!==window&&e!==Ur()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Dr))do{if(i&&i.getBoundingClientRect&&("none"!==jr(i,"transform")||n&&"static"!==jr(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(jr(i,"border-top-width")),s-=d.left+parseInt(jr(i,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=zr(i||e),p=h&&h.a,m=h&&h.d;h&&(a/=m,s/=p,f/=p,c/=m,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function qr(e,t,n){var r=Zr(e,!0),i=Wr(e)[t];while(r){var o=Wr(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===Ur())break;r=Zr(r,!1)}return!1}function Gr(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==so.ghost&&o[i]!==so.dragged&&Br(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function Yr(e,t){var n=e.lastElementChild;while(n&&(n===so.ghost||"none"===jr(n,"display")||t&&!Rr(n,t)))n=n.previousElementSibling;return n||null}function Kr(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===so.clone||t&&!Rr(e,t)||n++;return n}function Xr(e){var t=0,n=0,r=Ur();if(e)do{var i=zr(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function Jr(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 Zr(e,t){if(!e||!e.getBoundingClientRect)return Ur();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=jr(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Ur();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Ur()}function Qr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ei(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 ti(e,t){return function(){if(!Lr){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Lr=setTimeout((function(){Lr=void 0}),t)}}}function ni(){clearTimeout(Lr),Lr=void 0}function ri(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function ii(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 oi="Sortable"+(new Date).getTime();function ai(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==jr(e,"display")&&e!==so.ghost){t.push({target:e,rect:Wr(e)});var n=_r({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=zr(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(Jr(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=Wr(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,f=zr(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&ei(l,s)&&!ei(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=li(c,l,u,r.options)),ei(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,o=Math.max(o,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),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){jr(e,"transition",""),jr(e,"transform","");var i=zr(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,jr(e,"transform","translate3d("+s+"px,"+l+"px,0)"),si(e),jr(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),jr(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){jr(e,"transition",""),jr(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function si(e){return e.offsetWidth}function li(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 ui=[],ci={initializeByDefault:!0},fi={mount:function(e){for(var t in ci)ci.hasOwnProperty(t)&&!(t in e)&&(e[t]=ci[t]);ui.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ui.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](_r({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](_r({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ui.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,wr(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return ui.forEach((function(r){"function"===typeof r.eventProperties&&wr(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ui.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function di(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[oi],t){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Dr||Or?(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=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var b=_r({},p,fi.getEventProperties(r,t));for(var y in b)m[y]=b[y];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var hi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=xr(n,["evt"]);fi.pluginEvent.bind(so)(e,t,_r({dragEl:mi,parentEl:gi,ghostEl:vi,rootEl:bi,nextEl:yi,lastDownEl:wi,cloneEl:_i,cloneHidden:Ci,dragStarted:Ri,putSortable:Ti,activeSortable:so.active,originalEvent:r,oldIndex:xi,oldDraggableIndex:ki,newIndex:Si,newDraggableIndex:Di,hideGhostForTarget:ro,unhideGhostForTarget:io,cloneNowHidden:function(){Ci=!0},cloneNowShown:function(){Ci=!1},dispatchSortableEvent:function(e){pi({sortable:t,name:e,originalEvent:r})}},i))};function pi(e){di(_r({putSortable:Ti,cloneEl:_i,targetEl:mi,rootEl:bi,oldIndex:xi,oldDraggableIndex:ki,newIndex:Si,newDraggableIndex:Di},e))}var mi,gi,vi,bi,yi,wi,_i,Ci,xi,Si,ki,Di,Oi,Ti,Ei,Ii,Ni,Ai,Pi,Mi,Ri,Fi,Bi,Li,$i,Vi=!1,ji=!1,zi=[],Hi=!1,Ui=!1,Wi=[],qi=!1,Gi=[],Yi="undefined"!==typeof document,Ki=Ir,Xi=Or||Dr?"cssFloat":"float",Ji=Yi&&!Nr&&!Ir&&"draggable"in document.createElement("div"),Zi=function(){if(Yi){if(Dr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qi=function(e,t){var n=jr(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Gr(e,0,t),o=Gr(e,1,t),a=i&&jr(i),s=o&&jr(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Wr(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Wr(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var c="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Xi]||o&&"none"===n[Xi]&&l+u>r)?"vertical":"horizontal"},eo=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},to=function(e,t){var n;return zi.some((function(r){if(!Yr(r)){var i=Wr(r),o=r[oi].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},no=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==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,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==br(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},ro=function(){!Zi&&vi&&jr(vi,"display","none")},io=function(){!Zi&&vi&&jr(vi,"display","")};Yi&&document.addEventListener("click",(function(e){if(ji)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ji=!1,!1}),!0);var oo=function(e){if(mi){e=e.touches?e.touches[0]:e;var t=to(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[oi]._onDragOver(n)}}},ao=function(e){mi&&mi.parentNode[oi]._isOutsideThisEl(e.target)};function so(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=wr({},t),e[oi]=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 Qi(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!==so.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in fi.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in no(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ji,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Pr(e,"pointerdown",this._onTapStart):(Pr(e,"mousedown",this._onTapStart),Pr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Pr(e,"dragover",this),Pr(e,"dragenter",this)),zi.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),wr(this,ai())}function lo(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function uo(e,t,n,r,i,o,a,s){var l,u,c=e[oi],f=c.options.onMove;return!window.CustomEvent||Dr||Or?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Wr(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(u=f.call(c,l,a)),u}function co(e){e.draggable=!1}function fo(){qi=!1}function ho(e,t,n){var r=Wr(Yr(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||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+i}function po(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&Li<u*i){if(!Hi&&(1===Bi?l>c+u*o/2:l<f-u*o/2)&&(Hi=!0),Hi)d=!0;else if(1===Bi?l<c+Li:l>f-Li)return-Bi}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return mo(t);return d=d||a,d&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function mo(e){return Kr(mi)<Kr(e)?1:-1}function go(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 vo(e){Gi.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Gi.push(r)}}function bo(e){return setTimeout(e,0)}function yo(e){return clearTimeout(e)}so.prototype={constructor:so,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Fi=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,mi):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(vo(n),!mi&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(s=Br(s,r.draggable,n,!1),(!s||!s.animated)&&wi!==s)){if(xi=Kr(s),ki=Kr(s,r.draggable),"function"===typeof u){if(u.call(this,e,s,this))return pi({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),hi("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Br(l,r.trim(),n,!1),r)return pi({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),hi("filter",t,{evt:e}),!0})),u))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!Br(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!mi&&n.parentNode===o){var l=Wr(n);if(bi=o,mi=n,gi=mi.parentNode,yi=mi.nextSibling,wi=n,Oi=a.group,so.dragged=mi,Ei={target:mi,clientX:(t||e).clientX,clientY:(t||e).clientY},Pi=Ei.clientX-l.left,Mi=Ei.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,mi.style["will-change"]="all",r=function(){hi("delayEnded",i,{evt:e}),so.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Tr&&i.nativeDraggable&&(mi.draggable=!0),i._triggerDragStart(e,t),pi({sortable:i,name:"choose",originalEvent:e}),Vr(mi,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Hr(mi,e.trim(),co)})),Pr(s,"dragover",oo),Pr(s,"mousemove",oo),Pr(s,"touchmove",oo),Pr(s,"mouseup",i._onDrop),Pr(s,"touchend",i._onDrop),Pr(s,"touchcancel",i._onDrop),Tr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,mi.draggable=!0),hi("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Or||Dr))r();else{if(so.eventCanceled)return void this._onDrop();Pr(s,"mouseup",i._disableDelayedDrag),Pr(s,"touchend",i._disableDelayedDrag),Pr(s,"touchcancel",i._disableDelayedDrag),Pr(s,"mousemove",i._delayedDragTouchMoveHandler),Pr(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Pr(s,"pointermove",i._delayedDragTouchMoveHandler),i._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(){mi&&co(mi),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mr(e,"mouseup",this._disableDelayedDrag),Mr(e,"touchend",this._disableDelayedDrag),Mr(e,"touchcancel",this._disableDelayedDrag),Mr(e,"mousemove",this._delayedDragTouchMoveHandler),Mr(e,"touchmove",this._delayedDragTouchMoveHandler),Mr(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Pr(document,"pointermove",this._onTouchMove):Pr(document,t?"touchmove":"mousemove",this._onTouchMove):(Pr(mi,"dragend",this),Pr(bi,"dragstart",this._onDragStart));try{document.selection?bo((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Vi=!1,bi&&mi){hi("dragStarted",this,{evt:t}),this.nativeDraggable&&Pr(document,"dragover",ao);var n=this.options;!e&&Vr(mi,n.dragClass,!1),Vr(mi,n.ghostClass,!0),so.active=this,e&&this._appendGhost(),pi({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ii){this._lastX=Ii.clientX,this._lastY=Ii.clientY,ro();var e=document.elementFromPoint(Ii.clientX,Ii.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Ii.clientX,Ii.clientY),e===t)break;t=e}if(mi.parentNode[oi]._isOutsideThisEl(e),t)do{if(t[oi]){var n=void 0;if(n=t[oi]._onDragOver({clientX:Ii.clientX,clientY:Ii.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);io()}},_onTouchMove:function(e){if(Ei){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=vi&&zr(vi,!0),a=vi&&o&&o.a,s=vi&&o&&o.d,l=Ki&&$i&&Xr($i),u=(i.clientX-Ei.clientX+r.x)/(a||1)+(l?l[0]-Wi[0]:0)/(a||1),c=(i.clientY-Ei.clientY+r.y)/(s||1)+(l?l[1]-Wi[1]:0)/(s||1);if(!so.active&&!Vi){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(vi){o?(o.e+=u-(Ni||0),o.f+=c-(Ai||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");jr(vi,"webkitTransform",f),jr(vi,"mozTransform",f),jr(vi,"msTransform",f),jr(vi,"transform",f),Ni=u,Ai=c,Ii=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!vi){var e=this.options.fallbackOnBody?document.body:bi,t=Wr(mi,!0,Ki,!0,e),n=this.options;if(Ki){$i=e;while("static"===jr($i,"position")&&"none"===jr($i,"transform")&&$i!==document)$i=$i.parentNode;$i!==document.body&&$i!==document.documentElement?($i===document&&($i=Ur()),t.top+=$i.scrollTop,t.left+=$i.scrollLeft):$i=Ur(),Wi=Xr($i)}vi=mi.cloneNode(!0),Vr(vi,n.ghostClass,!1),Vr(vi,n.fallbackClass,!0),Vr(vi,n.dragClass,!0),jr(vi,"transition",""),jr(vi,"transform",""),jr(vi,"box-sizing","border-box"),jr(vi,"margin",0),jr(vi,"top",t.top),jr(vi,"left",t.left),jr(vi,"width",t.width),jr(vi,"height",t.height),jr(vi,"opacity","0.8"),jr(vi,"position",Ki?"absolute":"fixed"),jr(vi,"zIndex","100000"),jr(vi,"pointerEvents","none"),so.ghost=vi,e.appendChild(vi),jr(vi,"transform-origin",Pi/parseInt(vi.style.width)*100+"% "+Mi/parseInt(vi.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;hi("dragStart",this,{evt:e}),so.eventCanceled?this._onDrop():(hi("setupClone",this),so.eventCanceled||(_i=ii(mi),_i.draggable=!1,_i.style["will-change"]="",this._hideClone(),Vr(_i,this.options.chosenClass,!1),so.clone=_i),n.cloneId=bo((function(){hi("clone",n),so.eventCanceled||(n.options.removeCloneOnHide||bi.insertBefore(_i,mi),n._hideClone(),pi({sortable:n,name:"clone"}))})),!t&&Vr(mi,i.dragClass,!0),t?(ji=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Mr(document,"mouseup",n._onDrop),Mr(document,"touchend",n._onDrop),Mr(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,mi)),Pr(document,"drop",n),jr(mi,"transform","translateZ(0)")),Vi=!0,n._dragStartId=bo(n._dragStarted.bind(n,t,e)),Pr(document,"selectstart",n),Ri=!0,Er&&jr(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,a=e.target,s=this.options,l=s.group,u=so.active,c=Oi===l,f=s.sort,d=Ti||u,h=this,p=!1;if(!qi){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Br(a,s.draggable,o,!0),T("dragOver"),so.eventCanceled)return p;if(mi.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return I(!1);if(ji=!1,u&&!s.disabled&&(c?f||(r=!bi.contains(mi)):Ti===this||(this.lastPutMode=Oi.checkPull(this,u,mi,e))&&l.checkPut(this,u,mi,e))){if(i="vertical"===this._getDirection(e,a),t=Wr(mi),T("dragOverValid"),so.eventCanceled)return p;if(r)return gi=bi,E(),this._hideClone(),T("revert"),so.eventCanceled||(yi?bi.insertBefore(mi,yi):bi.appendChild(mi)),I(!0);var m=Yr(o,s.draggable);if(!m||ho(e,i,this)&&!m.animated){if(m===mi)return I(!1);if(m&&o===e.target&&(a=m),a&&(n=Wr(a)),!1!==uo(bi,o,mi,t,a,n,e,!!a))return E(),o.appendChild(mi),gi=o,N(),I(!0)}else if(a.parentNode===o){n=Wr(a);var g,v,b=0,y=mi.parentNode!==o,w=!eo(mi.animated&&mi.toRect||t,a.animated&&a.toRect||n,i),_=i?"top":"left",C=qr(a,"top","top")||qr(mi,"top","top"),x=C?C.scrollTop:void 0;if(Fi!==a&&(g=n[_],Hi=!1,Ui=!w&&s.invertSwap||y),b=po(e,a,n,i,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ui,Fi===a),0!==b){var S=Kr(mi);do{S-=b,v=gi.children[S]}while(v&&("none"===jr(v,"display")||v===vi))}if(0===b||v===a)return I(!1);Fi=a,Bi=b;var k=a.nextElementSibling,D=!1;D=1===b;var O=uo(bi,o,mi,t,a,n,e,D);if(!1!==O)return 1!==O&&-1!==O||(D=1===O),qi=!0,setTimeout(fo,30),E(),D&&!k?o.appendChild(mi):a.parentNode.insertBefore(mi,D?k:a),C&&ri(C,0,x-C.scrollTop),gi=mi.parentNode,void 0===g||Ui||(Li=Math.abs(g-Wr(a)[_])),N(),I(!0)}if(o.contains(mi))return I(!1)}return!1}function T(s,l){hi(s,h,_r({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:a,completed:I,onMove:function(n,r){return uo(bi,o,mi,t,n,Wr(n),e,r)},changed:N},l))}function E(){T("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function I(t){return T("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==d&&(Vr(mi,Ti?Ti.options.ghostClass:u.options.ghostClass,!1),Vr(mi,s.ghostClass,!0)),Ti!==h&&h!==so.active?Ti=h:h===so.active&&Ti&&(Ti=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){T("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===mi&&!mi.animated||a===o&&!a.animated)&&(Fi=null),s.dragoverBubble||e.rootEl||a===document||(mi.parentNode[oi]._isOutsideThisEl(e.target),!t&&oo(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function N(){Si=Kr(mi),Di=Kr(mi,s.draggable),pi({sortable:h,name:"change",toEl:o,newIndex:Si,newDraggableIndex:Di,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mr(document,"mousemove",this._onTouchMove),Mr(document,"touchmove",this._onTouchMove),Mr(document,"pointermove",this._onTouchMove),Mr(document,"dragover",oo),Mr(document,"mousemove",oo),Mr(document,"touchmove",oo)},_offUpEvents:function(){var e=this.el.ownerDocument;Mr(e,"mouseup",this._onDrop),Mr(e,"touchend",this._onDrop),Mr(e,"pointerup",this._onDrop),Mr(e,"touchcancel",this._onDrop),Mr(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Si=Kr(mi),Di=Kr(mi,n.draggable),hi("drop",this,{evt:e}),gi=mi&&mi.parentNode,Si=Kr(mi),Di=Kr(mi,n.draggable),so.eventCanceled||(Vi=!1,Ui=!1,Hi=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yo(this.cloneId),yo(this._dragStartId),this.nativeDraggable&&(Mr(document,"drop",this),Mr(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Er&&jr(document.body,"user-select",""),jr(mi,"transform",""),e&&(Ri&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),vi&&vi.parentNode&&vi.parentNode.removeChild(vi),(bi===gi||Ti&&"clone"!==Ti.lastPutMode)&&_i&&_i.parentNode&&_i.parentNode.removeChild(_i),mi&&(this.nativeDraggable&&Mr(mi,"dragend",this),co(mi),mi.style["will-change"]="",Ri&&!Vi&&Vr(mi,Ti?Ti.options.ghostClass:this.options.ghostClass,!1),Vr(mi,this.options.chosenClass,!1),pi({sortable:this,name:"unchoose",toEl:gi,newIndex:null,newDraggableIndex:null,originalEvent:e}),bi!==gi?(Si>=0&&(pi({rootEl:gi,name:"add",toEl:gi,fromEl:bi,originalEvent:e}),pi({sortable:this,name:"remove",toEl:gi,originalEvent:e}),pi({rootEl:gi,name:"sort",toEl:gi,fromEl:bi,originalEvent:e}),pi({sortable:this,name:"sort",toEl:gi,originalEvent:e})),Ti&&Ti.save()):Si!==xi&&Si>=0&&(pi({sortable:this,name:"update",toEl:gi,originalEvent:e}),pi({sortable:this,name:"sort",toEl:gi,originalEvent:e})),so.active&&(null!=Si&&-1!==Si||(Si=xi,Di=ki),pi({sortable:this,name:"end",toEl:gi,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){hi("nulling",this),bi=mi=gi=vi=yi=_i=wi=Ci=Ei=Ii=Ri=Si=Di=xi=ki=Fi=Bi=Ti=Oi=so.dragged=so.ghost=so.clone=so.active=null,Gi.forEach((function(e){e.checked=!0})),Gi.length=Ni=Ai=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":mi&&(this._onDragOver(e),lo(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],Br(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||go(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];Br(i,this.options.draggable,n,!1)&&(t[e]=i)}),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 Br(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=fi.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&no(n)},destroy:function(){hi("destroy",this);var e=this.el;e[oi]=null,Mr(e,"mousedown",this._onTapStart),Mr(e,"touchstart",this._onTapStart),Mr(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mr(e,"dragover",this),Mr(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),zi.splice(zi.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ci){if(hi("hideClone",this),so.eventCanceled)return;jr(_i,"display","none"),this.options.removeCloneOnHide&&_i.parentNode&&_i.parentNode.removeChild(_i),Ci=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Ci){if(hi("showClone",this),so.eventCanceled)return;bi.contains(mi)&&!this.options.group.revertClone?bi.insertBefore(_i,mi):yi?bi.insertBefore(_i,yi):bi.appendChild(_i),this.options.group.revertClone&&this.animate(mi,_i),jr(_i,"display",""),Ci=!1}}else this._hideClone()}},Yi&&Pr(document,"touchmove",(function(e){(so.active||Vi)&&e.cancelable&&e.preventDefault()})),so.utils={on:Pr,off:Mr,css:jr,find:Hr,is:function(e,t){return!!Br(e,t,e,!1)},extend:Qr,throttle:ti,closest:Br,toggleClass:Vr,clone:ii,index:Kr,nextTick:bo,cancelNextTick:yo,detectDirection:Qi,getChild:Gr},so.get=function(e){return e[oi]},so.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&&(so.utils=_r({},so.utils,e.utils)),fi.mount(e)}))},so.create=function(e,t){return new so(e,t)},so.version=Sr;var wo,_o,Co,xo,So,ko,Do=[],Oo=!1;function To(){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?Pr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Pr(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Pr(document,"touchmove",this._handleFallbackAutoScroll):Pr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Mr(document,"dragover",this._handleAutoScroll):(Mr(document,"pointermove",this._handleFallbackAutoScroll),Mr(document,"touchmove",this._handleFallbackAutoScroll),Mr(document,"mousemove",this._handleFallbackAutoScroll)),Io(),Eo(),ni()},nulling:function(){So=_o=wo=Oo=ko=Co=xo=null,Do.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(So=e,t||Or||Dr||Er){No(e,this.options,o,t);var a=Zr(o,!0);!Oo||ko&&r===Co&&i===xo||(ko&&Io(),ko=setInterval((function(){var o=Zr(document.elementFromPoint(r,i),!0);o!==a&&(a=o,Eo()),No(e,n.options,o,t)}),10),Co=r,xo=i)}else{if(!this.options.bubbleScroll||Zr(o,!0)===Ur())return void Eo();No(e,this.options,Zr(o,!1),!1)}}},wr(e,{pluginName:"scroll",initializeByDefault:!0})}function Eo(){Do.forEach((function(e){clearInterval(e.pid)})),Do=[]}function Io(){clearInterval(ko)}var No=ti((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=Ur(),c=!1;_o!==n&&(_o=n,Eo(),wo=t.scroll,i=t.scrollFn,!0===wo&&(wo=Zr(n,!0)));var f=0,d=wo;do{var h=d,p=Wr(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,k=jr(h),D=h.scrollLeft,O=h.scrollTop;h===u?(_=y<x&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),C=w<S&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(_=y<x&&("auto"===k.overflowX||"scroll"===k.overflowX),C=w<S&&("auto"===k.overflowY||"scroll"===k.overflowY));var T=_&&(Math.abs(b-o)<=s&&D+y<x)-(Math.abs(v-o)<=s&&!!D),E=C&&(Math.abs(g-a)<=s&&O+w<S)-(Math.abs(m-a)<=s&&!!O);if(!Do[f])for(var I=0;I<=f;I++)Do[I]||(Do[I]={});Do[f].vx==T&&Do[f].vy==E&&Do[f].el===h||(Do[f].el=h,Do[f].vx=T,Do[f].vy=E,clearInterval(Do[f].pid),0==T&&0==E||(c=!0,Do[f].pid=setInterval(function(){r&&0===this.layer&&so.active._onTouchMove(So);var t=Do[this.layer].vy?Do[this.layer].vy*l:0,n=Do[this.layer].vx?Do[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(so.dragged.parentNode[oi],n,t,e,So,Do[this.layer].el)||ri(Do[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==u&&(d=Zr(d,!1)));Oo=c}}),30),Ao=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Po(){}function Mo(){}Po.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=Gr(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:Ao},wr(Po,{pluginName:"revertOnSpill"}),Mo.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:Ao},wr(Mo,{pluginName:"removeOnSpill"});so.mount(new To),so.mount(Mo,Po);var Ro=so,Fo={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(k.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=k.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=k.a.prototype.baseAPI+"/component/super-grids/all-list-columns/"+e.listCode,i=qe.get(e.listCode),o={},a=i.isSql;e.isDragColumn=i.colSetting.isDragColumn,"undefined"!==typeof a&&(o.isSql=a+""),e.$http.post(r,o).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 i=e[n];if(i.displayOrderType="custom",n>t){var o=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var l=a[s];l.displayOrderType="custom",l[r]=0===s?i[r]:a[s-1][r]}i[r]=o}else{var u=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]=i[r]:d[r]=c[f+1][r]}i[r]=u}}},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 i=e;Ro.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(i.columns&&i.columns.length>0){for(var r=i.columns[n],o=n-1;o>=t;o--){var a=i.columns[o];a.displayOrderType="custom",i.columns[o+1]=a}i.columns[t]=r}}else if(i.columns&&i.columns.length>0){for(var s=i.columns[n],l=n+1;l<=t;l++){var u=i.columns[l];u.displayOrderType="custom",i.columns[l-1]=u}i.columns[t]=s}i.hasLoaded=!1,setTimeout((function(){i.hasLoaded=!0,i.$nextTick((function(){i.indexAfterTheChangeUpdateDisplayOrder(i.columns,n,t,"displayOrder"),i.dragColumnDisplayOrder()}))}),100)}})}}))}}},Bo=Fo,Lo=f(Bo,gr,vr,!1,null,null,null),$o=Lo.exports,Vo=function(){var e=this,t=e._self._c;return t("div",[e.searchConditions.length>0?t("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?t("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,"load-complete-query":e.loadCompleteQuery},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?t("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?t("div",{staticStyle:{"padding-top":"10px","padding-bottom":"10px","text-align":"center"}},[t("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 ")]),t("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 ")]),t("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?t("span",{staticStyle:{"margin-left":"10px"}},["advanced"===e.searchType?t("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?t("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?t("search-condition-input",{on:{close:e.saveConditionValue}}):e._e()],1)},jo=[],zo={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 i=r.orgProp,o="__";if(i&&i.indexOf(o)>0&&(i=i.replace(o,".")),r.propName=i,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 l=e.isUserTree(r.componentType),u=r.value;if(u&&""!==u){var c=[],f=u;f=Array.isArray(u)?u:u.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(l,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"},i=t.orgProp,o="__";i&&i.indexOf(o)>0&&(i=i.replace(o,".")),r.propName=i,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 l=e.isUserTree(t.componentType),u=e.getFormItemValue(t.prop);if(u&&""!==u){var c=[],f=u;f=Array.isArray(u)?u:u.split(","),Array.isArray(f)&&f&&f.length>0&&f.forEach((function(t){var n=e.getUserName(l,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,i="yyyy-MM-dd HH:mm:ss",o="yyyy-m-d";if("dateSection"===e.componentType?r=o:"dateTimePicker"===e.componentType?r=i:"DATE"!==e.dataType&&"date"!==e.componentType||(r=o),!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){if("string"===typeof e&&t){if(-1!==e.indexOf("T"))return new Date(e).getTime();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()}return 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,i=0;r.forEach((function(e){var o=Object.assign({},n);o.joinSign="or",0===i&&(o.leftBracket="1"),i===r.length-1&&(o.rightBracket="1",o.joinSign="and"),o.propValue=e,void 0!==e&&null!==e&&t.push(o),i++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))},saveSearchCondition:function(e){return this.$http.post(k.a.prototype.baseAPI+"/component/super-grids/search-conditions",e)},listSearchCondition:function(e){return this.$http.get(k.a.prototype.baseAPI+"/component/super-grids/search-condition-list/"+e)},removeSearchCondition:function(e){return this.$http.delete(k.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)},getSearchCondition:function(e){return this.$http.get(k.a.prototype.baseAPI+"/component/super-grids/search-conditions/"+e)},setDefaultQueryValue:function(e,t){if("date"===e.componentType||"dateSection"===e.componentType||"timePicker"===e.componentType||"dateTimePicker"===e.componentType){var n={date:"YYYYMMDD",dateSection:"YYYYMMDDHHMMSS",timePicker:"YYYYMMDD",dateTimePicker:"YYYYMMDDHHMMSS"},r={date:"String",dateSection:"Date",timePicker:"String",dateTimePicker:"String"},i=e["controlConfig"];if(null!==i&&void 0!==i&&""!==i){var o=JSON.parse(i);if(o.timeDefaultQueryRange){var a=n[e.componentType],s=r[e.componentType];if(a&&s){var l=this.getDateQueryRange(e.componentType,a,o.timeDefaultQueryRange,s);t[e.prop]=l}}}}},getDateQueryRange:function(e,t,n,r){var i,o=[],a=new Date,s=new Date;if(null!==n&&n>0&&(i=new Date(a.setDate(a.getDate()-parseInt(n)))),"YYYYMMDD"===t?(o[0]=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate(),o[1]=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate()):(o[0]=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+" 00:00:00",o[1]=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate()+" 23:59:59"),"Date"===r){var l=[];return o.forEach((function(e){var t=e.split(" "),n=t[0].split("-"),r=parseInt(n[0],10),i=parseInt(n[1],10)-1,o=parseInt(n[2],10),a=t[1].split(":"),s=parseInt(a[0],10),u=parseInt(a[1],10),c=parseInt(a[2],10);l.push(new Date(r,i,o,s,u,c))})),l}return o}},Ho=zo,Uo=function(){var e=this,t=e._self._c;return t("div",[e.searchableColumns.length>0?t("el-form",{ref:"searchForm",staticClass:"grid-search-form",attrs:{model:e.searchForm,rules:e.rules,"label-position":"right",size:"small"}},[t("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,"load-complete-query":e.loadCompleteQuery},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)},Wo=[],qo=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"grid-search-row"},e._l(e.rowNum,(function(n){return t("el-row",{directives:[{name:"show",rawName:"v-show",value:e.myOpen||1===n,expression:"myOpen || r === 1"}],key:n},e._l(e.fieldNum,(function(r){return t("el-col",{key:r,attrs:{xs:e.spanNum,sm:e.spanNum,md:e.spanNum,lg:e.spanNum,xl:e.spanNum}},[e.fieldNum*(n-1)+(r-1)<e.searchableColumns.length?[t("search-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.myOpen&&1===n&&r<e.fieldNum||e.myOpen,expression:"(!myOpen && r===1 && n < fieldNum) || (myOpen)"}],attrs:{"search-form":e.searchForm,column:e.searchableColumns[e.fieldNum*(n-1)+(r-1)],code:e.code,"is-sql":e.isSql,"table-name":e.tableName,"is-join-table":e.isJoinTable,index:e.fieldNum*(n-1)+(r-1),length:e.searchableColumns.length,"load-complete-query":e.loadCompleteQuery},on:{"submit-form":function(t){return e.$emit("submit-form")}}})]:e._e(),!e.myOpen&&1===n&&r===e.fieldNum||e.myOpen&&!e.isButtonNewRow&&n===e.rowNum&&r===e.fieldNum?t("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?t("el-row",[t("el-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:24}},[t("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)},Go=[],Yo=function(){var e=this,t=e._self._c;return t("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?t("span",{attrs:{title:e.column.searchLabel.replace(/\\n/g,"</br>")},domProps:{innerHTML:e._s(e.column.searchLabel.replace(/\\n/g,"</br>"))}}):t("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)?t("span",[t(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,"additional-settings":e.controlConfig},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t,e.column.componentName)}}})],1):"dateSection"===e.column.componentType?t("span",[t("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)}}}),t("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?t("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?t("el-g-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?t("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?t("el-g-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?t("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)?t("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)?t("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 t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.column.componentType&&"multiselect"===e.column.componentType&&!e.isDynamicDataSourceSource(e.column)?t("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 t("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)?t("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?t("search-form-number",{on:{setValue:e.setNumberValue}}):e.column.componentType&&"switch"===e.column.componentType?t("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?t("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?t("el-rate",{style:e.column.searchControlWidth,attrs:{value:e.getFormItemValue(e.column.prop)},on:{input:function(t){return e.setValueToModelProp(e.column.prop,t)}}}):t("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)},Ko=[],Xo=function(){var e=this,t=e._self._c;return t("div",[t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),t("span",[e._v("---")]),t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},Jo=[],Zo={props:{r:{type:Number,default:null},n:{type:Number,default:null}},data:function(){return{number1:null,number2:null}},mounted:function(){var e=this;Kt.$on("reset",(function(){e.number1=null,e.number2=null}))},destroyed:function(){Kt.$off("reset")},methods:{setValue:function(){this.$emit("setValue",[this.number1,this.number2],this.r,this.n)}}},Qo=Zo,ea=f(Qo,Xo,Jo,!1,null,null,null),ta=ea.exports;function na(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 ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ia={name:"SearchFormItem",components:{searchFormNumber:ta},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},index:{type:Number,default:0},length:{type:Number,default:0},loadCompleteQuery:{type:Boolean,default:!1}},data:function(){var e=new Set;return{customComponentNames:e,dateOne:null,dataTwo:null,controlConfig:Dt(this.column)}},mounted:function(){this.index+1===this.length&&this.loadCompleteQuery&&this.$emit("submit-form")},methods:ra(ra({},Ho),{},{getDynamicDataSourceOptions:function(e){var t=qe.get(this.code);return _t(e,this.isSql,t.additionalParamMap)},isDynamicDataSourceSource:function(e){return Ct(e)},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var i=this.getParentObject(e);null!=r&&void 0!==r?this.$set(i[e.substring(e.lastIndexOf(".")+1)],r,t):i[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=qe.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),k.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"]}})},oa=ia,aa=f(oa,Yo,Ko,!1,null,"9d0a6428",null),sa=aa.exports,la=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{"text-align":"right"}},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("save-condition")}}},[e._v("\n "+e._s(e.$t("superGrid.saveCondition"))+"\n ")]),t("el-button",{attrs:{loading:e.loading,size:"small"},on:{click:e.resetForm}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.reset"))+"\n ")]),t("el-button",{attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("\n "+e._s(e.$t("imatrixUIMessage.search"))+"\n ")]),t("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)},ua=[],ca={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}}},fa=ca,da=f(fa,la,ua,!1,null,"69b96bdc",null),ha=da.exports;function pa(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 ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ga={name:"SearchFormOpen",components:{SearchFormItem:sa,SearchButton:ha},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},loadCompleteQuery:{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:ma(ma({},Ho),{},{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())}})},va=ga,ba=(n("68d6"),f(va,qo,Go,!1,null,"b20234f4",null)),ya=ba.exports;function wa(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _a(e,t){if(e){if("string"===typeof e)return Ca(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)?Ca(e,t):void 0}}function Ca(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 xa(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 Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ka={name:"SearchForm",components:{SearchFormOpen:ya},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},loadCompleteQuery:{type:Boolean,default:!1}},data:function(){var e,t,n=qe.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:Sa(Sa({},Ho),{},{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=wa(this.customComponentNames);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.$refs[r][0].resetField()}}catch(i){n.e(i)}finally{n.f()}}this.$refs.searchForm.resetFields(),this.searchableColumns.forEach((function(t){t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?pt(e.searchForm,t.prop):ht(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,e.setDefaultQueryValue(t,e.searchForm))})),this.$emit("submit-form")},openFold:function(e){this.isOpen=e,this.$emit("open-fold",e)},searchComplete:function(){this.$refs.searchFormContent&&this.$refs.searchFormContent.searchComplete()}})},Da=ka,Oa=(n("febe"),f(Da,Uo,Wo,!1,null,"086b30b6",null)),Ta=Oa.exports,Ea=function(){var e=this,t=e._self._c;return t("div",[t("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[t("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"}},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveCondition}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)]},proxy:!0}])},[t("el-form",{ref:"conditionForm",attrs:{model:e.searchCondition,size:"mini","label-position":"left","label-width":"120px"}},[t("el-form-item",{attrs:{prop:"conditionName",label:e.$t("superGrid.searchConditionName"),rules:[{required:!0,message:this.$t("superGrid.pleaseInputSearchConditionName"),trigger:"blur"}]}},[t("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)},Ia=[],Na={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)}))}}},Aa=Na,Pa=f(Aa,Ea,Ia,!1,null,null,null),Ma=Pa.exports,Ra=function(){var e=this,t=e._self._c;return t("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(n){return t("el-tab-pane",{key:n.id,attrs:{label:n.name,disabled:n.queryType!==e.pageQueryType,closable:n.queryType===e.pageQueryType,name:n.id+""}})})),1)},Fa=[],Ba={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)}}},La=Ba,$a=f(La,Ra,Fa,!1,null,null,null),Va=$a.exports;function ja(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ha={name:"SearchForm",components:{SearchConditionInput:Ma,SearchConditionList:Va,searchFormOrdinarySearch:Ta},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{}}},loadCompleteQuery:{type:Boolean,default:!1}},data:function(){var e=this,t=new Set,n=qe.get(this.code),r={},i={};null!==this.searchParam&&(i=JSON.parse(JSON.stringify(this.searchParam)));var o=this.getSearchableColumns(null,null,r);void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),o.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop&&t.prop.indexOf(".")>0?"dateSection"===t.componentType?pt(i,t.prop):ht(i,t.prop):("dateSection"===t.componentType?i[t.prop]=[new Date,new Date]:"yearRange"===t.componentType?i[t.prop]=["",""]:i[t.prop]=null,e.setDefaultQueryValue(t,i)))}));var a=this.getSpanNum(o),s=this.getFieldNumPerRow(o),l=Math.ceil(o.length/s),u=this.query.advancedQuery,c=this.query.normalQuery;return{searchForm:i,rules:{},searchParams:[],labelWidth:n.options.search&&n.options.search.labelWidth?n.options.search.labelWidth:"80px",customComponentNames:t,componentName:"",spanNum:a,fieldNum:s,rowNum:l,loading:!1,isShowSearchCondition:!1,searchConditions:[],propMap:r,advancedQuery:u,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(){this.listSearchConditions(),this.normalQuery?this.searchType="normal":this.advancedQuery&&(this.searchType="advanced")},methods:za(za({},Ho),{},{getFieldNumPerRow:function(e){var t;if(e&&1===e.length)t=2;else{var n=qe.get(this.code);t=n.options.search&&n.options.search.fieldNum?n.options.search.fieldNum:3}return t},getSpanNum:function(e){var t=this.getFieldNumPerRow(e);return 1===t?22:2===t?12:3===t?8:4===t?6:4},setValueToModelProp:function(e,t,n,r){if(e&&e.indexOf(".")>0){var i=this.getParentObject(e);null!=r&&void 0!==r?this.$set(i[e.substring(e.lastIndexOf(".")+1)],r,t):i[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 i=e[r];if(n&&(n[i.prop]=i),"$index"!==i.prop&&"$selection"!==i.prop&&!i.dynamic)if(i.groupHeader)this.getSearchableColumns(i.children,t,n);else if("advanced"===i.queryType&&!i.custom&&""!==i.prop){if("undefined"!==typeof i.componentType&&""!==i.componentType||(i.componentType="input"),i.querySetting&&""!==i.querySetting){var o=JSON.parse(i.querySetting);o.width&&(i.searchControlWidth="width:"+o.width+"px"),o.labelWidth&&(i.searchLabelWidth=o.labelWidth+"px"),o.label&&(i.searchLabel=o.label)}i.componentType&&i.componentType.indexOf("custom:")>=0?(i.componentName=i.componentType.substring(i.componentType.indexOf(":")+1),this.customComponentNames.add(i.componentName)):i.componentName="",t.push(i)}}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 i=e[r];if(n&&(n[i.prop]=i),"$index"!==i.prop&&"$selection"!==i.prop&&!i.dynamic)if(i.groupHeader)this.getSearchableColumns(i.children,t,n);else if("normal"===i.queryType&&!i.custom&&""!==i.prop){if("undefined"!==typeof i.componentType&&""!==i.componentType||(i.componentType="input"),i.querySetting&&""!==i.querySetting){var o=JSON.parse(i.querySetting);o.width&&(i.searchControlWidth="width:"+o.width+"px"),o.labelWidth&&(i.searchLabelWidth=o.labelWidth+"px"),o.label&&(i.searchLabel=o.label)}i.componentType&&i.componentType.indexOf("custom:")>=0?(i.componentName=i.componentType.substring(i.componentType.indexOf(":")+1),this.customComponentNames.add(i.componentName)):i.componentName="",t.push(i)}}return t},customComponent:function(e){var t=qe.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),k.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")),Kt.$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),i=t.packageSearchForm(r);i&&(t.searchForm=i),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,i=e.columnProp,o=e.dataType;o&&"BOOLEAN"===o&&i&&(r=i),-1===n.indexOf(r)&&n.push(r);var a=e.propValue;if(r&&r.indexOf(".")>0)ht(t,r,a);else{var s=!1;!o||"DATE"!==o&&"TIME"!==o||e.startValue&&e.endValue&&(s=!0),s?t[r]=[new Date(e.startValue),new Date(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?pt(t,e.prop):ht(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()}})},Ua=Ha,Wa=(n("e56e"),f(Ua,Vo,jo,!1,null,"d64fea14",null)),qa=Wa.exports,Ga=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"show-close":!0,"append-to-body":!0,title:"查询条件",visible:""},on:{close:function(t){return e.$emit("close")}}},[t("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)},Ya=[],Ka={name:"SearchFormDialog",components:{SearchForm:qa},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")}}},Xa=Ka,Ja=f(Xa,Ga,Ya,!1,null,null,null),Za=Ja.exports,Qa={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)}},es=Qa,ts=(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)}}),ns=ts;function rs(e,t){return new Promise((function(n,r){for(var i={listCode:t,valueSetMetas:[]},o=[],a=0;a<e.length;a++){var s=e[a],l=s.prop?s.prop:s.label,u=is(s),c=null,f=s.titleValueSet;if(f&&(c=is(JSON.parse(f))),u||c){var d={prop:l};u&&(d.valueSet=u),c&&(d.titleValueSet=c),i.valueSetMetas.push(d),o.push(a)}}i.valueSetMetas.length>0?k.a.prototype.$http.post(k.a.prototype.baseURL+"/common/super-grids/value-sets",i).then((function(t){o.forEach((function(n){var r,i=e[n].prop?e[n].prop:e[n].label;for(var o in t)if(i===o){r=t[i];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 is(e){var t="enumname:",n="beanname:",r=e.enumName,i=e.beanName;if(r&&""!==r){if(!0===e.remoteEnum)return t+r}else if(i&&""!==i)return n+i}var os={initialize:function(){var e=this;return new Promise((function(t,n){var r=qe.get(e.code);if(e.options.isAdministerListView)e.getShowColumns(e.options.SuperGrid),Object.assign(e,e.options.SuperGrid),r.isSql=e.isSql,r.columns=e.columns,r.query=e.query,r.pagination=e.pagination,e.createBackgroundColorMap(),e.hasLoadedColumns=!0,e.fetchData(null,null,null,null),t();else{var i,o=k.a.prototype.baseAPI+"/component/super-grids/"+e.code,a={},s=e.options.isSql;e.options&&"undefined"!==typeof s&&(e.isSql=s,a.isSql=s+""),a.publishVersion=e.publishVersion,e.options&&"undefined"!==typeof e.options.isAdministerListView&&e.options.isAdministerListView&&(a.isAdminister=e.options.isAdministerListView+"");var l=sessionStorage.getItem("additionalParamMap");if(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 u=JSON.stringify(e.options.additionalParamMap);i?Object.assign(i,u):i=u}else if(e.options.additionalParamMap&&""!==e.options.additionalParamMap){var c=e.options.additionalParamMap;i?Object.assign(i,c):i=c}i&&(a.additionalParamMap=i),e.options.extraParam&&e.options.extraParam.entityMap&&(e.parentFormData=e.options.extraParam.entityMap),e.isLoading=!0,e.$http.post(o,a).then((function(o){e.isLoadCompleteQuery(o.columns);var a=[];if(a=a.concat(JSON.parse(JSON.stringify(o.columns))),e.getShowColumns(o),o.basicInfo&&qe.set(e.code+"basicInfo",o.basicInfo),e.options.pageSizes&&o.pagination){var l=null,u=e.options.pageSizes.split(",");if(u&&u.length>0){l=[];for(var c=0;c<u.length;c++)l.push(1*u[c]);o.pagination.pageSize=l[0]}o.pagination.layout="total, sizes, prev, pager, next, jumper",o.pagination.pageSizes=l}"undefined"!==typeof e.options.initSortInfo&&(Array.isArray(e.options.initSortInfo)?o.sortInfo=e.options.initSortInfo:(o.sortInfo=[],o.sortInfo.push(e.options.initSortInfo))),rs(o.columns,e.code).then((function(){return e.getDynamicColumnByBean(i,o.dynamicColumnInfo,o.columns,r)})).then((function(n){var i=[];"undefined"!==typeof e.options.showColumns&&(i=e.options.showColumns.split(","));var l=n;if(l&&0!==l.length||e.options.dynamicColumns&&e.options.dynamicColumns.length>0&&(l=e.options.dynamicColumns),l&&l.length>0){if(a=a.concat(JSON.parse(JSON.stringify(l))),i&&i.length>0)for(var u=0;u<l.length;u++){var c=l[u].prop;l[u].dynamic=!0,i.indexOf(c)>=0?l[u].show=!0:l[u].show=!1}o.columns=o.columns.concat(l),o.columns=o.columns.sort((function(e,t){return e.displayOrder-t.displayOrder}))}Object.assign(e,o),e.options&&"undefined"===typeof s&&(e.isSql=e.basicInfo.sql),r.isSql=e.isSql,r.allColumns=a,r.columns=e.columns,e.packageColumnOptionMap(r),e.judgeIsFormSubTable(),r.colSetting=e.colSetting,r.lineEdit=e.lineEdit,r.basicInfo=e.basicInfo,r.pagination=e.pagination,e.pagination&&(e.pageSize=e.pagination.pageSize),r.query=e.query,r.dynamicColumnInfo=e.dynamicColumnInfo,r.mainDefaultValueColumns=e.mainDefaultValueColumns,r.contextParameter=e.contextParameter,e.isShowPage=e.isShowPageArea(),e.isSubTableShowPage=!!e.isFormSubTable&&e.isShowPage,r.isSubTableShowPage=e.isSubTableShowPage,e.hasLoadedColumns=!0;var f=!0;ft("loadBeforeSend",e.code)&&(f=r.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:r,additionalParamMap:r.additionalParamMap})),void 0!==f&&!0!==f||e.options.isPageInfo||("undefined"===typeof e.options.initSearch?("undefined"===typeof r.basicInfo.initializationQuery||r.basicInfo.initializationQuery)&&(e.loadCompleteQuery?e.isLoading=!1:e.fetchData()):!1!==e.options.initSearch&&(e.loadCompleteQuery?e.isLoading=!1:e.fetchData())),e.createBackgroundColorMap(),t()})).catch((function(e){n(e)}))})).catch((function(e){n(e)}))}}))},isLoadCompleteQuery:function(e){if(null!==e){var t=0;e.forEach((function(e){e.hasOwnProperty("queryType")&&e.hasOwnProperty("prop")&&"$index"!==e.prop&&"$selection"!==e.prop&&e.queryType&&"no"!==e.queryType&&e.componentType&&("date"===e.componentType||"dateSection"===e.componentType||"timePicker"===e.componentType||"dateTimePicker"===e.componentType)&&e.controlConfig&&t++})),t>0&&(this.loadCompleteQuery=!0)}},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 i=this;return new Promise((function(o,a){if(r.options.extraParam&&r.options.extraParam.entityMap&&(i.parentFormData=r.options.extraParam.entityMap),!i.options.isPageInfo&&t&&t.length>0){var s=[];i.getDynamicColumnByBeanWithOneSet(e,t[0],n,0,t,s,r).then((function(e){o(e)})).catch((function(e){a(e)}))}else o([])}))},getDynamicColumnByBeanWithOneSet:function(e,t,n,r,i,o,a){var s=this;return new Promise((function(l,u){if(t&&t.beanName){var c=k.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,o=o.concat(a),r+1<i.length?s.getDynamicColumnByBeanWithOneSet(e,i[r+1],n,r+1,i,o):l(o)})).catch((function(){l([])}))}else l([])}))},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=Ro.create(r,{animation:180,delay:0,onEnd:function(e){for(var n=e.oldIndex,r=e.newIndex,i=[],o=0;o<t.columns.length;o++)"left"!==t.columns[o].fixed&&"right"!==t.columns[o].fixed||i.push(o);if(i&&i.length>0)for(var a=0;a<i.length;a++)i[a]>=r&&r--,i[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],l=n-1;l>=r;l--){var u=t.columns[l];u.displayOrderType="custom",t.columns[l+1]=u}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(k.a.prototype.baseAPI+"/component/super-grids/drag-columns",p).then((function(e){}))}}))}if("undefined"!==typeof this.options.isAdministerListView&&null!=this.options.isAdministerListView&&!0===this.options.isAdministerListView&&!n){var i=document.querySelector(".el-table__header-wrapper tr");null!=i&&(this.sortable=Ro.create(i,{animation:180,delay:0,onEnd:function(t){var n=t.oldIndex,r=t.newIndex,i=e.columns[t.oldIndex],o=e;o.columns.splice(n,1),o.columns.splice(r,0,i),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 i=e[n];if(n>t){var o=e[n-1][r],a=e.slice(t,n);if(a&&a.length>0)for(var s=a.length-1;s>-1;s--){var l=a[s];l[r]=0===s?i[r]:a[s-1][r]}i[r]=o}else{var u=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]=i[r]:d[r]=c[f+1][r]}i[r]=u}}},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 i=e.columns[r],o=i.prop;if("$index"!==o&&"$selection"!==o)if(i.hasOwnProperty("children")){var a=this.getChildrenColumns(i.children,t);i.children=a,a.length>0&&n.push(i)}else t.indexOf(o)>=0&&n.push(i);else n.push(i)}e.columns=n}},getChildrenColumns:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.prop;if(i.hasOwnProperty("children")){var a=this.getChildrenColumns(i.children,t);i.children=a,a.length>0&&n.push(i)}else t.indexOf(o)>=0&&n.push(i)}return n},saveColumnWidth:function(e,t){var n=this;return new Promise((function(r,i){if(void 0!==t){var o={prop:e,width:t+""};n.$http.post(k.a.prototype.baseAPI+"/component/super-grids/setting-column-widths/"+n.code,o).then((function(e){r(t)})).catch((function(e){i(e)}))}else r()}))}},as=os,ss=n("6a95"),ls=function(){var e=this,t=e._self._c;return t("ul",{staticClass:"context-menu"},e._l(e.buttomArr,(function(n){return t("li",{key:n.name},[t("i",{class:n.icon}),t("span",{on:{click:function(t){return e.buttonClick(n.event,n)}}},[e._v(e._s(n.label))])])})),0)},us=[],cs={name:"HeaderContextMenu",components:{},filters:{},props:{buttomArr:{type:Array,default:null},column:{type:Object,default:null}},data:function(){return{}},computed:{},watch:{},created:function(){},methods:{buttonClick:function(e,t){e&&("function"===typeof e?e.call(this,t,this.column):this.$emit(e,t,this.column),this.$emit("clearHeaderContextmenu"))}}},fs=cs,ds=(n("091f"),f(fs,ls,us,!1,null,"4e43e65b",null)),hs=ds.exports;n("a5d8");function ps(e){if(e){var t=!1,n=Object(ss["a"])();if("undefined"!==typeof n&&null!==n){var r=e.replace(/\./g,"__"),i=n[r];void 0!==i&&!0===i&&(t=!0)}return t}return console.error('need permission2! Like v-permission="acs.department.save"'),!1}function ms(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 gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vs(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bs(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function bs(e,t){if(e){if("string"===typeof e)return ys(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)?ys(e,t):void 0}}function ys(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 ws={name:"SuperGrid",components:{IndexColumn:Me,SelectionColumn:Ve,NormalColumn:ur,GroupColumn:mr,ColumnsConfig:$o,SearchForm:qa,headerContextMenu:hs,searchFormDialog:Za},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,i,o=[];this.options&&this.options.mergeFields&&""!==this.options.mergeFields&&(o=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&&(i=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 l="mysql";k.a.prototype.dataSourceType&&(l=k.a.prototype.dataSourceType.toLowerCase());var u=this.options.pageDevMode;return void 0===u&&(u=!1),{isLoading:!1,currentPage:1,showColumnConfig:!1,basicInfo:{summary:"no"},columns:[],loadCompleteQuery:!1,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:o,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:i,currentSelectCell:null,isLazy:a,defaultExpandAll:s,parentFormData:null,stripe:!0,dataSourceType:l,pageDevMode:u,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=qe.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&&ps(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 i;if(void 0===r.show||r.show){i=!0;var o=e.options.hiddenColumns;if(o&&o.length>0&&-1!==o.indexOf(r.prop))return i=!1,i;e.initColumnOperation(r,n),t.$dataTypeMap||(t.$dataTypeMap={}),t.$dataTypeMap[r.prop]=r.dataType}else i=!1;return e.storeHasDefaultValueColumns(r,t),r._defaultComponentType=e.getComponentType(r.prop),i}));return r},spanArr:function(){var e,t=[],n=vs(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]=Je(this.gridData,r.prop,r.mergerCellBasis))}}catch(i){n.e(i)}finally{n.f()}return t},showSummary:function(){return void 0!==this.basicInfo.summary&&"no"!==this.basicInfo.summary},getRowKeyProp:function(){var e=qe.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,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=qe.get(this.code);if(this.$emit("change-grid-data",this.subTableData),void 0!==e.isChangePage&&e.isChangePage){var t=xt(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;var e=qe.get(this.code);e&&e.options&&(e.options.validateRules=this.options.validateRules,qe.set(this.code,e))}},"options.subTableCanAdd":{deep:!0,handler:function(){var e=qe.get(this.code);e&&e.options&&(e.options.subTableCanAdd=this.options.subTableCanAdd,qe.set(this.code,e))}},pageSize:{handler:function(e,t){this.$emit("change-rows-per-page",this.pageSize)}},"options.extraParam.entityMap":{deep:!0,handler:function(e,t){this.parentFormData=e}}},provide:function(){return{}},created:function(){qe.set(this.code,dt()),qe.set("_list_code",this.code),this.initSetting(),this.judgeIsFormSubTable();var e=!0;ft("rowStyleRender",this.code)&&(e=!1),this.stripe=e},mounted:function(){var e=this;this.initialize().then((function(){var t=qe.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(){e.columns.forEach((function(t){t.valueSet&&e.$emit("set-select-options",{prop:e.code+"."+t.prop,valueSet:t.valueSet})})),e.rowDrop(),e.columnDrop(),qe.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=qe.get(n.code);ft("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,additionalParamMap:e.additionalParamMap})}))}),{immediate:!0,deep:!0});var t=e,n=null!==document.querySelector(".user-tree");document.querySelector("."+e.code).onkeydown=function(e){if(!t.isShowPageDialog&&!n){var r=e||event||window.event||arguments.callee.caller.arguments[0],i=t.isEditRow(t);r&&37===r.keyCode?i||t.selectLeftCell(t):r&&38===r.keyCode?i||t.selectUpCell(t):r&&39===r.keyCode?i||t.selectRightCell(t):r&&40===r.keyCode?i||t.selectDownCell(t):r&&13===r.keyCode?t.isCallEnterEvent(t)&&t.enterOperation(t):r&&27===r.keyCode&&t.escOperation(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=qe.get(this.code);n.options.extraParam=e}),{deep:!0})}))},methods:gs(gs(gs(gs(gs({},es),ns),as),Jt),{},{isCallEnterEvent:function(e){var t=!0;void 0!==e.options.isEnableEnterEvent&&!1===e.options.isEnableEnterEvent&&(t=!1);var n=qe.get(e.code);return t&&n.options&&n.options.isFormSubTable&&(t=!1),t},isShowPageArea:function(){return!this.isFormSubTable||void 0!==this.options.showPageArea&&!0===this.options.showPageArea},resizeTableHeight:function(){var e=this;this.$nextTick((function(){var t=mt(e.$refs.superGrid,e.code,e.pageHeight),n=qe.get(e.code);if(ft("resizeHeight",e.code)){var r=0;e.$refs.sf&&(r=e.$refs.sf.$el.offsetHeight);var i=n.options.resizeHeight.call(e,{code:e.code,height:t,searchHeight:r,additionalParamMap:n.additionalParamMap});i&&(t=i)}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=qe.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 i=r.querySelector(".el-textarea");if(i)return}var o=t.$rowIndex;if(void 0!==o&&null!==o){var a=t.gridData[o];ct("enter",e.listCode)?t.options.lineEditOptions.enter.call(e,o,e.column,a,t.orgGridData[o],t.additionalParamMap):e.saveRow(o,e.code)}}},escOperation:function(e){var t=qe.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];ct("esc",e.listCode)?t.options.lineEditOptions.esc.call(e,n,e.column,r,t.orgGridData[n],t.additionalParamMap):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,i=null,o=t.attributes["class"];if(o&&(i=o["nodeValue"]),i&&i.indexOf(" ")>0){var a=i.split(" ");r=a[0]}var s=n["previousSibling"];if(s){var l=s.querySelector("."+r);e.currentSelectCell=l}}}},selectDownCell:function(e){var t=e.currentSelectCell;if(t){var n=t.parentNode;if(n){var r=null,i=null,o=t.attributes["class"];if(o&&(i=o["nodeValue"]),i&&i.indexOf(" ")>0){var a=i.split(" ");r=a[0]}var s=n["nextSibling"];if(s){var l=s.querySelector("."+r);e.currentSelectCell=l}}}},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 i=r.parentNode;if(i){var o=i.parentNode;if(o){var a=o.parentNode;if(a){var s=a.attributes["class"];if(s){var l=s["nodeValue"];if(l&&l.indexOf("el-table__fixed-body-wrapper")>=0){var u=null;if(t&&t.indexOf(" ")>0){var c=t.split(" ");u=c[0]}if(u){var f=document.querySelector("."+this.code+" .el-table__body-wrapper .current-row ."+u);e.currentSelectCell=f}}else if(l&&l.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=qe.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=qe.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),ut("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=qe.get(this.code);return this.lineEdit&&this.lineEdit.editable&&e.rowIndex===t.$rowIndex&&tt(e.row,t.orgGridData[t.$rowIndex]),ft("rowStyleRender",this.code)?(e.additionalParamMap=t.additionalParamMap,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=qe.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)),ft("cellStyleRender",this.code))return e.additionalParamMap=t.additionalParamMap,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 i={value:e.row[e.column.property],row:e.row,column:r,prop:e.column.property,additionalParamMap:t.additionalParamMap};return t.options["eventCallBack"][n].call(this,i)}},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=qe.get(this.code),r=null,i=null;if(e&&e.column&&e.column.property&&n&&n.columnOptionMap&&n.columnOptionMap[e.column.property]&&(i=n.columnOptionMap[e.column.property],i.events&&i.events.headerCellStyle&&(r=i.events.headerCellStyle)),n.options.renderHeader&&n.options.renderHeader.props)for(var o=e.column,a=n.options.renderHeader.props,s=a.split(","),l=0;l<s.length;l++){var u=s[l];if(o.property===u.trim()){var c="#c3f4e2";return"undefined"!==typeof n.options.renderHeader.color&&(c=n.options.renderHeader.color),{background:c}}}else if(null!==r&&null!==i&&n.options&&n.options["eventCallBack"]&&n.options["eventCallBack"][r]&&"function"===typeof n.options["eventCallBack"][r])return e.additionalParamMap=n.additionalParamMap,n.options["eventCallBack"][r].call(this,e)}},fetchData:function(e,t,n,r){var i=qe.get(this.code);if(i.options&&i.options.isPageInfo);else if(i.options&&i.options.isAdministerListView){if(i.options.SuperGrid&&i.options.SuperGrid.simulationDate){if(ft("gridDataLoaded",this.code)){var o=i.options.gridDataLoaded.call(this,{gridData:i.options.SuperGrid.simulationDate,columns:i.columns,additionalParamMap:i.additionalParamMap});this.gridData=o||i.options.SuperGrid.simulationDate}else this.gridData=i.options.SuperGrid.simulationDate;i.gridData=this.gridData}}else if(i.options&&i.options.isFormSubTable&&i.options.subTableData&&i.options.subTableData.length>0)this.packageSubTableData(i,i.options.subTableData);else{var a=this.canRefreshTableData(i);if(a)return this.fetchListData(e,t,n,r);if(this.isSubTableEmpty(i)){var s=[];this.packageSubTableData(i,s)}this.hasLoadData=!0,i.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(ft("gridDataLoaded",this.code)){var i=e.options.gridDataLoaded.call(this,{gridData:t,columns:e.columns,additionalParamMap:e.additionalParamMap});i?(r=i,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 i=(n-1)*r,o=i+r;e.length>i&&(o>e.length&&(o=e.length),t=e.slice(i,o))}return void 0!==t&&null!==t||(t=[]),t},fetchListData:function(e,t,n,r){var i=this;return new Promise((function(o,a){if(i.isLoading=!0,i.hasLoadData=!1,void 0===t||!1===t){var s=sessionStorage.getItem("refreshList-"+i.code);if(void 0!==s&&"true"===s){var l=sessionStorage.getItem("searchParam-"+i.code);if(void 0!==l&&null!==l&&""!==l){e=JSON.parse(l);var u=e.pagination;u&&(i.currentPage=u.currentPage,i.pagination.pageSize=u.pageSize,i.pagination.showTotal=u.showTotal),i.getInitSearchForm(e.searchForm)}}}sessionStorage.removeItem("refreshList-"+i.code),void 0===e&&(e=i.getSearchParam());var c=qe.get(i.code),f=e;(c.options.extraParam||void 0!==n)&&(f=gt(e,c)),c.searchParam=e,c.url=i.url;var d=i.url;void 0!==n&&null!==n&&(f=Object.assign({},f),f.searchParam.pagination=null,f["parentIds"]=n,f["parentProp"]=i.parentProp,f.systemCode=Object(ss["b"])(),d=i.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-"+i.code,JSON.stringify(f)),i.parentProp&&e.searchForm&&e.searchForm.length>0&&(f.listViewTreeSetting=null),i.$http.post(d,f).then((function(a){if("undefined"===typeof n||null===n){var s=[];if(ft("gridDataLoaded",i.code)){var l={gridData:a.data,columns:c.columns,additionalParamMap:c.additionalParamMap};e&&(l.searchForm=e.searchForm,l.additionalParamMap=e.additionalParamMap);var u=c.options.gridDataLoaded.call(i,l);s=u||a.data}else s=a.data;s||(s=[]),c.options.isFormSubTable?(s&&s.forEach((function(e){i.setColumnsDefaultValue(c.allColumns,e)})),i.pagination&&!0===i.isSubTableShowPage?(i.subTableData=s,i.gridData=i.getSubTableGridData(i.subTableData),c.subTableData=i.subTableData):i.gridData=s,null!==i.pagination&&(i.pagination.total=s.length)):(i.gridData=s,null!==i.pagination&&(i.pagination.total=a.total)),a.summaries&&Object.keys(a.summaries).length>0&&(i.summaries=a.summaries),c.gridData=i.gridData,c.orgGridData=[].concat(JSON.parse(JSON.stringify(i.gridData))),c.pagination=i.pagination,c.loaded=!0,i.lineEdit.editable&&("undefined"!==typeof t&&!1!==t||(0===i.gridData.length&&i.options&&null!==i.options.isDefaultShowEdit&&void 0!==i.options.isDefaultShowEdit&&!0===i.options.isDefaultShowEdit&&i.createRow(i.code,null,i.gridData),i.gridData.length>0&&i.$set(i.lineEdit,"editingCell",{row:0,prop:Ze(i.code)}))),i.hasLoadData=!0}else ft("gridDataLoaded",i.code)&&c.options.gridDataLoaded.call(i,{gridData:a,additionalParamMap:c.additionalParamMap}),ft("loadChildrenComplete",i.code)&&c.options.loadChildrenComplete.call(i,{parentRowIds:n,gridData:a,columns:c.columns,additionalParamMap:c.additionalParamMap}),"undefined"!==typeof r&&null!==r?(i.removeGridStoreSelection(n),r(a[n[0]])):(n.forEach((function(e){i.$refs.superGrid.store.states.lazyTreeNodeMap[e]=a[e],i.$refs.superGrid.store.states.treeData[e].children=a[e]})),i.removeGridStoreSelection(n)),i.hasLoadData=!0;o()})).catch((function(e){ft("loadError",i.code)&&c.options.loadError.call(i,i.code,e),a(e)}))}))},getInitSearchForm:function(e){var t=this,n=qe.get(this.code);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,i=e.dataType;i&&"BOOLEAN"===i&&(n=r),t.initSearchProps.push(n);var o=e.propValue;n&&n.indexOf(".")>0?ht(t.searchFormContent,n,o):t.searchFormContent[n]=o})),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=qe.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,ft("gridDataLoaded",e.code)){var i=n.options.gridDataLoaded.call(e,{gridData:t.gridData,additionalParamMap:n.additionalParamMap});e.gridData=i||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:Ze(e.code)})),ft("gridComplete",e.code)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(ft("loadError",e.code)){var n=qe.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 i=this;return new Promise((function(o,a){var s,l=qe.get(i.code);if(l.searchForm="undefined"!==typeof e&&null!==e?e:null,l.options&&l.options.isAdministerListView)l.options.SuperGrid&&l.options.SuperGrid.simulationDate&&(ft("gridDataLoaded",i.code)?(s=l.options.gridDataLoaded.call(r,{gridData:l.options.SuperGrid.simulationDate,columns:l.columns,additionalParamMap:l.additionalParamMap}),s||(s=l.options.SuperGrid.simulationDate)):s=l.options.SuperGrid.simulationDate,o(s));else if(l.options&&l.options.isFormSubTable&&l.options.subTableData&&l.options.subTableData.length>0){var u;i.hasLoadData=!1,l.loaded=!0,ft("gridDataLoaded",i.code)?(u=l.options.gridDataLoaded.call(r,{gridData:l.options.subTableData,columns:l.columns,additionalParamMap:l.additionalParamMap}),u||(u=l.options.subTableData,i.hasLoadData=!0)):(u=l.options.subTableData,i.hasLoadData=!0),o(u)}else i.fetchData(i.getSearchParam(),t,n).then((function(e){void 0!==l&&void 0!==l.options&&void 0!==l.options.isHiddenSearchForm&&!0===l.options.isHiddenSearchForm&&(i.showSearch=!1,i.$emit("cancel-search")),i.$refs&&i.$refs.sf&&(i.$refs.sf.loading=!1,i.$refs.sf.searchComplete()),r.resizeTableHeight(),o(e)})).catch((function(e){i.$refs.sf&&(i.$refs.sf.loading=!1,i.$refs.sf.searchComplete()),a(e)}))}))},getPaginationInfo:function(){var e=qe.get(this.code);if(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}return{currentPage:1,pageSize:20,showTotal:!0}},getSearchParam:function(){var e={code:this.code},t=qe.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,i=[],o=vs(this.mergeFields);try{for(o.s();!(r=o.n()).done;){var a,s=r.value,l=!0,u=vs(e.sorts);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(c.prop===s){l=!1;break}}}catch(d){u.e(d)}finally{u.f()}l&&i.push({prop:s,order:"ascending"})}}catch(d){o.e(d)}finally{o.f()}i.push.apply(i,Te(e.sorts)),e.sorts=i}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?(qe.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=Ze(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=qe.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 i=null,o=this.visibleColumns.filter((function(e){return t.property===e.prop}));if(o&&o.length>0&&(i=o[0]),it(this.code)){if(null!==n&&i&&null!==i){var a=i.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:i,prop:n,order:r,column:t})}else this.$refs.superGrid.clearSort()}},isMergeable:function(e){var t,n=vs(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(i){n.e(i)}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],i=r>0?1:0;return{rowspan:r,colspan:i}}},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 i=e.property,o=t[i];r[n]=void 0!==o&&null!==o?o:""})),r},getDefaultSummaries:function(e){var t=this,n=[],r=this.packageSummaryColumnProps();if(r.length>0){var i=e.columns,o=e.data,a=null;i.forEach((function(e,i){var s=0,l=e.property;if(l&&"$selection"!==l&&"$index"!==l&&(void 0===a||null===a))return a=i,void(n[i]="合计");r.indexOf(l)>=0?(o&&o.forEach((function(e){var n,r=Object(x["d"])(e,l);if(void 0!==r&&null!==r)n=Number(r);else{var i=/[A-Z]+/;t.isSql&&i.test(l)&&(r=Object(x["d"])(e,l.toLowerCase()),void 0!==r&&null!==r&&(n=Number(r)))}void 0===n||null===n||isNaN(n)||(s+=n)})),n[i]=s):n[i]=""}))}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;Ro.create(e,{onEnd:function(e){var n=e.newIndex,r=e.oldIndex,i={oldIndex:r,newIndex:n};this.$http.post(this.lineEdit.urlToSaveOrder,i).then((function(e){var i=t.gridData.splice(r,1)[0];t.gridData.splice(n,0,i)}))}})}}},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 i=[];i.push(e.id?e.id:e.ID),this.fetchData(this.getSearchParam(),!1,i,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 i=this,o=e-5,a=o;this.dragColumnProp=n.property;var s=qe.get(this.code);if(ft("resizeColumn",this.code)){var l=s.options.resizeColumn.call(this,{code:this.code,newWidth:l,oldWidth:t,column:n,additionalParamMap:s.additionalParamMap});l&&(a=l)}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=i.getColumnByElementColumn(n);e&&e.length>0&&(e[0].widthType="custom",e[0].width=i.newWidth+"")}))},resetSearch:function(){var e=null;this.toolbarFieldParam&&this.toolbarFieldParam.length>0&&(e=this.toolbarFieldParam),this.currentPage=1,this.search(e,!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(){(new Date).getTime();var e=this.getColumnInformation(),t={};if(e&&e.length>0)for(var n=0;n<e.length;n++){var r=e[n];void 0===r.show||r.show||(t[r.prop]="#808080"),this.backgroundColorMap&&"#409EFF"===this.backgroundColorMap[r.prop]&&this.externalClickFlag&&(t[r.prop]="#409EFF")}this.backgroundColorMap=t,this.externalClickFlag=!1,this.$refs&&this.$refs.superGrid&&this.$refs.superGrid.doLayout()},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 i=r[0];this.$emit("header-click",r[0]),this.changeHeaderStyleTwo(r[0]),this.showHeaderContextmenu=!0,this.rightClickColumn=i,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=Yt.getValidator(this.code),r=0;r<e.length;r++){var i=e[r];void 0!==i.$editing&&!0===i.$editing&&(Object(x["k"])(i,"$editing",!1),Kt.$emit("un-edit",{row:i}));var o=!0;ut("isEnableValidate",this.code)&&(o=this.gridParams.options.lineEditOptions["isEnableValidate"]);var a=!0;if(!0===o){var s=void 0,l=void 0;this.isSubTableShowPage&&void 0!==t&&t>0&&(s=Math.ceil((r+1)/t),l=r+1-(s-1)*t),a=Yt.validator(i,this.code,r,n,this.isSubTableShowPage,s,l)}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=this,i=qe.get(this.code);if(i.options&&i.options.isFormSubTable&&i.options.isPdfEditor);else if(this.isFormSubTable){if(t.property&&"operation"!==t.property){var o=!0,a=qe.get(this.code);if(ct("beforeEdit",this.code)){var s=a.isSubTableShowPage,l=a.pagination&&a.pagination.pageSize;o=a.options.lineEditOptions.beforeEdit.call(this,{gridData:s?a.subTableData:a.gridData,listCode:this.code,entity:e,columns:a.columns,isMobile:!1,pageGridData:s?a.gridData:null,pageSize:l,additionalParamMap:a.additionalParamMap})}Object(Ue["d"])(o)?o.then((function(t){void 0!==t&&!0!==t||r.rowDbClickEditRow(a,e)})):void 0!==o&&!0!==o||this.rowDbClickEditRow(a,e)}}else if(e&&i&&i.lineEdit&&i.lineEdit.editable&&i.canntEdit){var u=this.gridData.findIndex((function(t){return t.id&&t.id===e.id||t.ID&&t.ID===e.ID}));u<0&&(u=0),this.editRow(u)}this.rowDblClick(e,t,n)},rowDbClickEditRow:function(e,t){var n;n=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})),n&&n.length>0&&n.forEach((function(e){Object(x["k"])(e,"$editing",!1),Kt.$emit("un-edit",{row:e})})),e.isEditRow=!1,Object(x["k"])(t,"$editing",!0),e.$editRow=t,e.isEditRow=!0},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=qe.get(this.code),r=this.jumpPageSetting.closeEvent,i=this.jumpPageSetting.row;if(n.options.eventCallBack&&r&&null!==r&&n.options.eventCallBack[r]&&(t=n.options.eventCallBack[r]),t){var o={params:n.additionalParamMap,additionalParamMap:n.additionalParamMap,entity:i};e&&(o.eventParams={popEntity:e.entity,popPageCode:e.pageCode,pageCode:this.pageCode}),t.call(this,o)}var a=this.jumpPageSetting.isRefreshWhenClosePopup;if(void 0!==a&&!0===a){var s=qe.get(this.code);this.search(s.searchForm)}}this.isShowPageDialog=!1,this.jumpPageSetting=null},updateValues:function(e,t,n){var r=qe.get(this.code),i=n;if(void 0!==i&&null!==i&&i<this.gridData.length){var o=!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;In(e,t,this.jumpPageSetting,this.gridData[i],a,!o);var s,l=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;r.options.eventCallBack&&l&&null!==l&&r.options.eventCallBack[l]&&(s=r.options.eventCallBack[l]),s&&s.call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.gridData[i],targetTableName:a,isNeedReplaceFieldName:!o,additionalParamMap:r.additionalParamMap})}},closeSearchFormDialog:function(){this.showSearch=!1},getQueryMode:function(){return this.query&&"popup"===this.query.showType?"popup":"embedded"},selectCell:function(e,t,n,r){var i=this;n&&(this.cellClick(e,t,n,r),this.$nextTick((function(){i.$set(n.style,"border","2px solid #409EFF"),i.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())},refresMainTableFields:function(e){this.$emit("refresMainTableFields",e)},openFold:function(e){this.resizeTableHeight()},fnProhibitToEdit:function(e){if(e)for(var t in e.isForceUpdate&&this.$emit("prohibitToEdit",e),e)this.$refs[t]&&this.$refs[t][0].fnProhibitToEdit(e[t])},prohibitToEdit:function(e){this.fnProhibitToEdit(e)},getTreeProps:function(e,t,n,r){var i={children:"children",hasChildren:"_has_children"};if(e){i={children:"children"};var o="hasChildren";n&&t&&(o="oracle"===r?"HAS_CHILDREN":"has_children"),i.hasChildren=o}return i}})},_s=ws,Cs=(n("1e03"),f(_s,_e,Ce,!1,null,"db2a51e0",null)),xs=Cs.exports;xs.install=function(e){e.component(xs.name,xs)};var Ss=xs,ks=function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("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():t("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)},Ds=[],Os=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("inline-department-user-single-tree",{ref:"inlineDepartmentUser",attrs:{"department-info":e.departmentInfo,"is-need-virtual-user":e.isNeedVirtualUser},on:{result:e.result}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Ts=[],Es=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input searchDepartmentUser",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),size:"small"},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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px",width:"100%"}},[e.searchValue&&0!==e.searchResult.length?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("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)},Is=[],Ns=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("el-table",{ref:"superGrid",attrs:{data:e.gridData,"row-class-name":e.tableRowClassName,"max-height":e.myHeight,"row-key":"id",border:"",fit:""},on:{"row-click":e.rowClick,"row-dblclick":e.rowDblclick}},[!1===e.multiple?t("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,1685606562)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),fixed:"",align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{disabled:e.isDisable(n.row),type:"primary",size:"mini",icon:"el-icon-plus",circle:""},on:{click:function(t){return e.addUser(n.$index,n.row)}}})],1)]}}],null,!1,4261266503)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),fixed:"",align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeUser(n.$index,n.row)}}})],1)]}}],null,!1,3810037523)}):e._e(),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.user"),prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.enName&&""!==n.row.enName.trim()?t("div",[t("div",{attrs:{title:n.row.name+"("+n.row.enName+")["+n.row.loginName+"]"}},[t("span",{staticStyle:{"white-space":"pre"}},[e._v(e._s(n.row.name+"("+n.row.enName+")")+"["+e._s(n.row.loginName)+"]")])]),t("div",{staticStyle:{color:"#ccc"},attrs:{title:e.getDeptName(n.row)}},[e._v("\n "+e._s(e.getDeptName(n.row))+"\n ")])]):t("div",[t("div",{attrs:{title:n.row.name+"["+n.row.loginName+"]"}},[t("span",{staticStyle:{"white-space":"pre"}},[e._v(e._s(n.row.name)+"["+e._s(n.row.loginName)+"]")])]),t("div",{staticStyle:{color:"#ccc"},attrs:{title:e.getDeptName(n.row)}},[e._v("\n "+e._s(e.getDeptName(n.row))+"\n ")])])]}}])})],1)],1)},As=[],Ps={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:{getDeptName:function(e){var t=e.superiorDeptNameFullPath;return t||(this.language&&"cn"!==this.language&&(t=e.mainDepartmentEnName),t||e.mainDepartmentName)},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}}}},Ms=Ps,Rs=(n("d5b2c"),f(Ms,Ns,As,!1,null,null,null)),Fs=Rs.exports,Bs={filterAppendNodes:function(e){var t=this;this.$http.post(k.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.filterText||0!==this.filterText.length?(this.search(this.filterText),t([])):this.memorySearch(e,t)},handleSelect:function(e){var t=this;this.$http.get(k.a.prototype.baseAPI+"/api/users?loginName="+e.loginName).then((function(n){if(null!==n)for(var r in n)e.hasOwnProperty(r)&&(e[r]=n[r]);t.filterText="",t.searchValue="",t.packageSelectResult(e),t.setMemoryCacheData(e,"departmentUser"),t.$emit("result",t.selectNodeInfo)}))},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,i){var o=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(i)>-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(k.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(t){if(n(t),o.$refs.deparmentUserTree.updateKeyChildren(i,t),0===e){var r=t[0].data;o.tenantInfo=JSON.parse(r),o.containBranch=t[0].containBranch,o.departmentInfo&&o.departmentInfo.length>0?o.loadPointDepartments(o):o.loadDepartment(o.tenantNodeId,o.tenantNodeId+"")}}))}},loadDepartment:function(e,t,n,r){var i=this,o={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/department-users",o).then((function(e){i.$refs.deparmentUserTree.updateKeyChildren(t,e),i.$refs.deparmentUserTree.store.nodesMap[t]&&(i.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0)}))},loadPointDepartments:function(){var e=this;this.$http.post(k.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)}))}},Ls=Bs;function $s(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 Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var js={name:"InlineDepartmentUserSingleTree",components:{UserResult:Fs},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,memoryCacheKey:"DEPARTMENT_USER_MEMORY_KEY",memoryCacheData:[]}},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||[],this.getMemoryCacheData("departmentUser")},methods:Vs(Vs(Vs(Vs({},O),Ls),B),{},{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.setMemoryCacheData(r,"departmentUser"),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 i=this;setTimeout((function(){i.notMultipleClickNum=0,i.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 i=[];this.$refs.deparmentUserTree&&(i=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,i,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.setMemoryCacheData(e,"departmentUser"),this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)}})},zs=js,Hs=(n("b232"),f(zs,Es,Is,!1,null,null,null)),Us=Hs.exports,Ws={name:"DepartmentUserSingleTree",components:{InlineDepartmentUserSingleTree:Us},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)}}},qs=Ws,Gs=f(qs,Os,Ts,!1,null,null,null),Ys=Gs.exports,Ks=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("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}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("closeDialog")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Xs=[],Js=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"430px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"font-size":"12px",height:"35px"}},[t("el-autocomplete",{staticClass:"inline-input inline-input-custom searchDepartmentUser",attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentUserTree.pleaseEnterUserInformation"),size:"small"},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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("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),t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("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"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentUserTree.selectedPeople"))+":\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("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)},Zs=[],Qs={filterAppendNodes:function(e){var t=this;this.$http.post(k.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.filterText||0!==this.filterText.length?(this.search(this.filterText),t([])):this.memorySearch(e,t)},handleSelect:function(e){var t=this;this.$http.get(k.a.prototype.baseAPI+"/api/users?loginName="+e.loginName).then((function(n){if(null!==n)for(var r in n)e.hasOwnProperty(r)&&(e[r]=n[r]);t.filterText="",t.searchValue="",t.selectUser(-1,e),t.setMemoryCacheData(e,"departmentUser")}))},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(k.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,i){var o=this,a=[];if(t.data&&t.data.children&&(a=t.data.children),a&&a.length>0)n(a),r&&r.indexOf(i)>-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(k.a.prototype.baseAPI+"/component/organization-trees/department-users",s).then((function(a){if(n(a),o.$refs.deparmentUserTree.updateKeyChildren(i,a),0===e){var s=a[0].data;o.tenantInfo=JSON.parse(s),o.containBranch=a[0].containBranch,o.departmentInfo&&o.departmentInfo.length>0?o.loadPointDepartments():o.loadDepartment(o.tenantNodeId,o.tenantNodeId+"")}o.isClickNode?(o.isClickNode=!1,o.staticCheckedUserNodes(t.data)):r&&r.indexOf(i)>-1&&o.checkedChildrenUserNodes(t.data,t.data.children)}))}},loadDepartment:function(e,t,n,r){var i=this,o={parentId:e,needVirtualUser:this.isNeedVirtualUser};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/department-users",o).then((function(e){i.$refs.deparmentUserTree.updateKeyChildren(t,e),i.$refs.deparmentUserTree.store.nodesMap[t]&&(i.$refs.deparmentUserTree.store.nodesMap[t].expanded=!0),n&&(-1===i.allExpandNodeIds.indexOf(t)&&i.allExpandNodeIds.push(t),i.allExpandNodeIds.length===i.allSearchNodeIds.length&&(i.$refs.deparmentUserTree.filter(r),i.allExpandNodeIds=[],i.allSearchNodeIds=[]))}))},loadPointDepartments:function(){var e=this;this.$http.post(k.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(k.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,i){e&&t?k.a.prototype.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){r(e)})).catch((function(e){i(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(i,o){var a=[];t?"所有用户"===t?(a.push(r.packageAllUser()),i(a)):"所有工作组人员"===t?(a.push(r.packageAllWgUser()),i(a)):r.getSelectUsers(e,t,n).then((function(e){i(e)})).catch((function(e){o(e)})):i(a)}))}},el=Qs;function tl(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 nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rl={name:"InlineDepartmentUserMultiTree",components:{UserResult:Fs},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:{},memoryCacheKey:"DEPARTMENT_USER_MEMORY_KEY",memoryCacheData:[]}},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||[],this.getMemoryCacheData("departmentUser")},methods:nl(nl(nl(nl({},O),el),B),{},{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),this.setMemoryCacheData(t,"departmentUser"))}},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 i=this.$refs.deparmentUserTree.getCheckedKeys(),o=i.filter(this.filterUserNode(t));o.length>0&&o.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+""}},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),i=this.packageSelectUser(r);i&&(this.selectResult.push(i),this.setMemoryCacheData(r,"departmentUser"))}},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),i=n.packageSelectUser(t);i&&(i.nodeId=e.nodeId,n.selectResult.push(i))}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 i=this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded,o=!i;this.$refs.deparmentUserTree.store.nodesMap[e.nodeId].expanded=o,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 i=r.name;e.userZhNames.push(i),r.enName&&""!==r.enName.trim()?(e.userEnNames.push(r.enName),i=i+"("+r.enName+")"):e.userEnNames.push(""),e.userNames.push(i)}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 i=[];this.$refs.deparmentUserTree&&(i=this.$refs.deparmentUserTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,i,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])])}})},il=rl,ol=(n("f8ab"),f(il,Js,Zs,!1,null,null,null)),al=ol.exports,sl={name:"DepartmentUserMultiTree",components:{InlineDepartmentUserMultiTree:al},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()}}},ll=sl,ul=(n("9219"),f(ll,Ks,Xs,!1,null,null,null)),cl=ul.exports,fl={name:"DepartmentUserTree",components:{DepartmentUserSingleTree:Ys,DepartmentUserMultiTree:cl},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")}}},dl=fl,hl=f(dl,ks,Ds,!1,null,null,null),pl=hl.exports;pl.install=function(e){e.component(pl.name,pl)};var ml=pl,gl=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.multiple?"60%":"40%"},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")}}},[t("inline-workgroup-tree",{ref:"workgroupTree",attrs:{multiple:e.multiple,"branch-info":e.branchInfo},on:{result:e.result}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroup}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},vl=[],bl=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"430px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px"}},[t("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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("workgroup-result",{ref:"workgroupResult",attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!0},on:{selectResult:e.getSelectWorkgroup,resultRowDblclick:e.resultRowDblclick,addWorkgroup:e.addWorkgroup}})],1):e._e()])],1)],1),e.multiple?t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("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"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("imatrixUIMessage.selectedWorkingGroup"))+":\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("workgroup-result",{attrs:{"grid-data":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!1},on:{selectResult:e.getSelectWorkgroup,resultRowDblclick:e.resultRowDblclick,removeWorkgroup:e.removeWorkgroup}})],1)])],1):e._e()],1)],1)},yl=[],wl={initLoad:function(e,t,n,r){var i=this,o={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroups",o).then((function(o){if(n(o),i.$refs.workgroupTree.updateKeyChildren(e,o),0===e){var a=o[0].data;i.tenantInfo=JSON.parse(a),i.containBranch=o[0].containBranch,i.loadWorkgroup(i.tenantNodeId)}r&&r.indexOf(e)>-1&&e===i.tenantNodeId&&i.checkedAllWorkgroups(t.data)}))},loadWorkgroup:function(e){var t=this,n={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.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)}))},querySearch:function(e,t){this.searchValue=e,this.searchResult=[],this.selectNodeInfo=null,e&&e.length>0?(this.filterAppendNodes(e),t([])):t([])},filterAppendNodes:function(e){var t=this,n={searchValue:e};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/search-workgroups",n).then((function(e){t.searchResult=e,0!==t.searchResult.length||t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))}},_l=wl,Cl=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("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?t("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectWorkgroup},model:{value:e.singleWorkgroupIndex,callback:function(t){e.singleWorkgroupIndex=t},expression:"singleWorkgroupIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,1572511618)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(n.row),circle:""},on:{click:function(t){return e.addWorkgroup(n.$index,n.row)}}})],1)]}}],null,!1,2838316040)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeWorkgroup(n.$index,n.row)}}})],1)]}}],null,!1,3509659964)}):e._e(),e.multiple?t("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(),t("el-table-column",{attrs:{label:e.$t("workgroupTree.workingGroupName"),width:110,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.name}},[e._v(e._s(n.row.name))])]}}])}),t("el-table-column",{attrs:{label:e.$t("workgroupTree.workingGroupNumber"),width:110,prop:"code"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.code}},[e._v(e._s(n.row.code))])]}}])}),t("el-table-column",{attrs:{label:e.$t("workgroupTree.workgroupDescription"),width:300,prop:"description"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.description}},[e._v(e._s(n.row.description))])]}}])})],1)],1)},xl=[],Sl={name:"WorkgroupResult",props:{gridData:{type:Array,default:null},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{singleWorkgroupIndex:null,selectedWorkgroup:null,myHeight:t,language:window.$locale?window.$locale:"cn"}},created:function(){},methods:{removeWorkgroup:function(e,t){this.$emit("removeWorkgroup",e,t)},addWorkgroup:function(e,t){this.$emit("addWorkgroup",e,t)},selectWorkgroup:function(e){this.$emit("selectResult",this.gridData[e])},rowClick:function(e,t,n){this.singleWorkgroupIndex=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("addWorkgroup",null,e):this.$emit("resultRowDblclick",e)},isDisable:function(e){if(this.selectResult){var t=this.selectResult.filter(this.filterWorkgroup(e));if(t&&t.length>0)return!0}return!1},filterWorkgroup:function(e){return function(t){return t.id===e.id}}}},kl=Sl,Dl=(n("18ed"),f(kl,Cl,xl,!1,null,null,null)),Ol=Dl.exports;function Tl(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 El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Il={name:"InlineWorkgroupTree",components:{WorkgroupResult:Ol},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,searchResult:[],selectResult:[],searchStoreKey:"searchWorkgroup",selectNodeInfo:null,selectWorkgroupData: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:El(El(El({},O),_l),{},{addWorkgroup:function(e,t){var n=this.selectResult.filter(this.filterWorkgroup(t));n&&0===n.length&&this.selectResult.push(t)},filterWorkgroup:function(e){return function(t){return t.id===e.id}},removeWorkgroup:function(e,t){var n=this;if(this.$refs.workgroupTree){var r=this.$refs.workgroupTree.getCheckedKeys(),i=r.filter(this.filterWorkgroupNode(t));i.length>0&&i.forEach((function(e){n.$refs.workgroupTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.workgroupTree&&this.$refs.workgroupTree.setCheckedKeys([])},filterWorkgroupNode:function(e){return function(t){return t===e.id}},getSelectWorkgroup:function(e){this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)},packageSelectResult:function(e){e.tenantCode=this.tenantInfo.code,e.tenantName=this.tenantInfo.tenantName;var t={id:e.id,name:e.name,code:e.code,subCompanyName:e.subCompanyName,workgroup:e};this.selectNodeInfo=t},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):this.selectResult.push(JSON.parse(e.data)):e.id===this.tenantNodeId?this.$refs.workgroupTree.setCheckedKeys([]):this.selectResult=this.removeRow(this.selectResult,JSON.parse(e.data))},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.selectResult=this.removeRow(this.selectResult,JSON.parse(e.data))):(this.$refs.workgroupTree.setChecked(e.id,!0),e.id===this.tenantNodeId?this.checkedAllWorkgroups(e):this.selectResult.push(JSON.parse(e.data)))},isWorkgroupNode:function(e){return e.id!==this.tenantNodeId&&e.nodeType&&"WORKGROUP"===e.nodeType},singleSetValue:function(){var e=!1;if(this.searchValue)this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):e=!0;else{var t=this.$refs.workgroupTree.getCurrentNode();t&&null!==t&&this.isWorkgroupNode(t)?this.selectSingleNode(t,!0):e=!0}this.showTip(e)},multipleSetValue:function(){var e=this,t=!1,n={ids:[],names:[],codes:[],workgroups:[]};if(this.searchValue)this.selectResult.length>0?(this.selectResult.forEach((function(t){var r={id:t.id,name:t.name,code:t.code};e.addSelectedWorkgroupInfo(n,r,t)})),this.$emit("result",n)):t=!0;else{var r=this.$refs.workgroupTree.getCheckedNodes();if(r)if(0===r.length)t=!0;else{for(var i=0;i<r.length;i++){var o=r[i];if(o.id!==this.tenantNodeId){var a=JSON.parse(o.data);this.addSelectedWorkgroupInfo(n,o,a)}}n.ids.length>0?this.$emit("result",n):t=!0}else t=!0}this.showTip(t)},selectWorkgroup:function(){this.multiple?this.multipleSetValue():this.singleSetValue()},showTip:function(e){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,i=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",i.nodeType&&"WORKGROUP"===i.nodeType&&this.searchValue&&i.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])])}})},Nl=Il,Al=(n("4873"),f(Nl,bl,yl,!1,null,null,null)),Pl=Al.exports,Ml={name:"WorkgroupTree",components:{InlineWorkgroupTree:Pl},props:{multiple:{type:Boolean,default:!0},branchInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"60%"}},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()}}},Rl=Ml,Fl=f(Rl,gl,vl,!1,null,null,null),Bl=Fl.exports;Bl.install=function(e){e.component(Bl.name,Bl)};var Ll=Bl,$l=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{staticClass:"user-tree",attrs:{visible:"",title:e.myTitle,"close-on-click-modal":!1,"append-to-body":"",width:e.multiple?"60%":"40%"},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")}}},[t("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}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.selectWorkgroupUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Vl=[],jl=function(){var e=this,t=e._self._c;return t("div",[t("el-container",{staticStyle:{height:"395px"}},[t("el-aside",{attrs:{width:"430px"}},[t("el-container",{staticStyle:{height:"390px"}},[t("el-header",{staticStyle:{"text-align":"right","font-size":"12px",height:"35px"}},[t("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"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.clickSearch},slot:"append"})],1)],1),t("el-main",{staticStyle:{padding:"10px"}},[e.searchValue?e._e():t("div",{staticStyle:{"padding-top":"5px",overflow:"auto",width:"auto",display:"inline-block !important"}},[t("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),e.searchValue&&e.searchValue.length>0?t("div",{staticStyle:{height:"100%",overflow:"hidden"}},[t("workgroup-user-result",{ref:"workgroupUserResult",attrs:{"grid-data":e.searchResult,"select-result":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!0},on:{selectResult:e.getSelectWorkgroupUser,resultRowDblclick:e.resultRowDblclick,addWorkgroupUser:e.addWorkgroupUser}})],1):e._e()])],1)],1),e.multiple?t("el-container",[t("el-aside",{attrs:{width:"2px"}},[t("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"}})]),t("el-main",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{"text-align":"left","font-size":"16px"}},[e._v("\n "+e._s(e.$t("departmentUserTree.selectedPeople"))+"::\n ")]),t("div",{style:"padding-top: 5px;height:90%;overflow: hidden;"},[t("workgroup-user-result",{attrs:{"grid-data":e.selectResult,height:e.height,multiple:e.multiple,"is-search-result":!1},on:{selectResult:e.getSelectWorkgroupUser,resultRowDblclick:e.resultRowDblclick,removeWorkgroupUser:e.removeWorkgroupUser}})],1)])],1):e._e()],1)],1)},zl=[],Hl={filterAppendNodes:function(e){var t=this;this.$http.post(k.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,i="~";n.indexOf(i)>-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)this.addWorkgroupUser(null,JSON.parse(e.data));else if(t)this.isClickNode=!0;else{var i={parentId:e.id,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",i).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(k.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 i=[];this.$refs.workgroupUserTree&&(i=this.$refs.workgroupUserTree.getCheckedKeys()),this.initLoad(n,r,e,t,i)},initLoad:function(e,t,n,r,i){var o=this,a={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",a).then((function(a){if(r(a),o.$refs.workgroupUserTree.updateKeyChildren(t,a),0===e){var s=a[0].data;o.tenantInfo=JSON.parse(s),o.containBranch=a[0].containBranch,o.loadWorkgroup(o.tenantNodeId,o.tenantNodeId+"")}o.isClickNode?(o.isClickNode=!1,o.checkedNode(n.data)):i&&i.indexOf(t)>-1&&o.checkedNode(n.data)}))},loadWorkgroup:function(e,t,n,r){var i=this,o={parentId:e,departmentInfo:this.branchInfo};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/workgroup-users",o).then((function(e){i.$refs.workgroupUserTree.updateKeyChildren(t,e),i.$refs.workgroupUserTree.store.nodesMap[t]&&(i.$refs.workgroupUserTree.store.nodesMap[t].expanded=!0),n&&(-1===i.allExpandNodeIds.indexOf(t)&&i.allExpandNodeIds.push(t),i.allExpandNodeIds.length===i.allSearchNodeIds.length&&(i.$refs.workgroupUserTree.filter(r),i.allExpandNodeIds=[],i.allSearchNodeIds=[]))}))},querySearch:function(e,t){this.searchValue=e,this.searchResult=[],this.selectNodeInfo=null,e&&e.length>0?(this.searchWorkgroupUsers(e),t([])):t([])},searchWorkgroupUsers:function(e){var t=this,n={searchValue:e};this.$http.post(k.a.prototype.baseAPI+"/component/organization-trees/search-workgroup-users",n).then((function(e){t.searchResult=e,0!==t.searchResult.length||t.$message({showClose:!0,type:"error",message:Object(x["e"])().t("imatrixUIMessage.queryResultIsEmpty")})}))}},Ul=Hl,Wl=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("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?t("el-table-column",{attrs:{width:"60",fixed:""},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-radio",{attrs:{label:n.$index},on:{change:e.selectWorkgroupUser},model:{value:e.singleUserIndex,callback:function(t){e.singleUserIndex=t},expression:"singleUserIndex"}},[e._v("\n "+e._s(n.$index+1)+"\n ")])]}}],null,!1,784242716)}):e._e(),e.multiple&&e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",disabled:e.isDisable(n.row),circle:""},on:{click:function(t){return e.addWorkgroupUser(n.$index,n.row)}}})],1)]}}],null,!1,3052625657)}):e._e(),e.multiple&&!e.isSearchResult?t("el-table-column",{attrs:{fixed:"",label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeWorkgroupUser(n.$index,n.row)}}})],1)]}}],null,!1,1975637517)}):e._e(),e.multiple?t("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(),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),width:130,prop:"name"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.enName&&""!==n.row.enName.trim()?t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.name+"("+n.row.enName+")"}},[e._v(e._s(n.row.name+"("+n.row.enName+")"))]):t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.name}},[e._v(e._s(n.row.name))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.loginName"),width:110,prop:"loginName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.loginName}},[e._v(e._s(n.row.loginName))])]}}])}),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),"min-width":160,prop:"mainDepartmentName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:e.language&&"cn"!==e.language&&n.row.mainDepartmentEnName?n.row.mainDepartmentEnName:n.row.mainDepartmentName}},[e._v(e._s(e.language&&"cn"!==e.language&&n.row.mainDepartmentEnName?n.row.mainDepartmentEnName:n.row.mainDepartmentName))])]}}])}),e.containBranch?t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),width:130,prop:"subCompanyName"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("span",{staticClass:"ellipsis cell--span",attrs:{title:n.row.subCompanyName}},[e._v(e._s(n.row.subCompanyName))])]}}],null,!1,2922352565)}):e._e()],1)],1)},ql=[],Gl={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:{removeWorkgroupUser:function(e,t){this.$emit("removeWorkgroupUser",e,t)},addWorkgroupUser:function(e,t){this.$emit("addWorkgroupUser",e,t)},selectWorkgroupUser: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("addWorkgroupUser",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}}}},Yl=Gl,Kl=(n("cb76"),f(Yl,Wl,ql,!1,null,null,null)),Xl=Kl.exports;function Jl(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 Zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ql={name:"InlineWorkgroupUserTree",components:{WorkgroupUserResult:Xl},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,searchResult:[],selectResult:[],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:Zl(Zl(Zl({},O),Ul),{},{addWorkgroupUser:function(e,t){var n=this.selectResult.filter(this.filterWorkgroup(t));n&&0===n.length&&this.selectResult.push(t)},filterWorkgroup:function(e){return function(t){return t.id===e.id}},removeWorkgroupUser:function(e,t){var n=this;if(this.$refs.workgroupUserTree){var r=this.$refs.workgroupUserTree.getCheckedKeys(),i=r.filter(this.filterUserNode(t));i.length>0&&i.forEach((function(e){n.$refs.workgroupUserTree.setChecked(e,!1)}))}this.selectResult=this.removeRow(this.selectResult,t),this.selectResult&&0!==this.selectResult.length||this.$refs.workgroupUserTree&&this.$refs.workgroupUserTree.setCheckedKeys([])},getSelectWorkgroupUser:function(e){this.packageSelectResult(e)},resultRowDblclick:function(e){this.packageSelectResult(e),this.$emit("result",this.selectNodeInfo)},packageSelectResult:function(e){e.tenantCode=this.tenantInfo.code,e.tenantName=this.tenantInfo.tenantName;var t=e.name;e.enName&&""!==e.enName.trim()&&(t=t+"("+e.enName+")");var n={id:e.id,name:t,loginName:e.loginName,email:e.email,telephone:e.telephone,containBranch:this.containBranch,user:e,enName:e.enName,subCompanyName:e.subCompanyName};this.selectNodeInfo=n},handleSelect:function(e){this.handleSelectUtil(e,_["a"])},search:function(e){this.searchValue=e,this.$refs.workgroupUserTree.filter(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,i=0;i<n.length;i++){var o=n[i],a=e[o];if(!(-1!==a.indexOf(t)||"name"===o&&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),t.selectResult.push(JSON.parse(e.data))}))},cancelCheckedNode:function(e){e.id===this.tenantNodeId?this.$refs.workgroupUserTree.setCheckedKeys([]):e.nodeType&&"WORKGROUP"===e.nodeType?this.cancelCheckedUserNodesWithWorkgroup(e):this.selectResult=this.removeRow(this.selectResult,JSON.parse(e.data))},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),t.selectResult=t.removeRow(t.selectResult,JSON.parse(e.data))}))},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 i={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=i,!0===t&&this.$emit("result",i)}},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},singleSetValue:function(){var e=!1;if(this.searchValue)this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):e=!0;else{var t=this.$refs.workgroupUserTree.getCurrentNode();t&&null!==t&&this.isUserNode(t)?this.selectSingleNode(t,!0):e=!0}this.showTip(e)},multipleSetValue:function(){var e=this,t=!1,n={userIds:[],userNames:[],loginNames:[],emails:[],telephones:[],users:[]};if(this.searchValue)this.selectResult.length>0?(this.selectResult.forEach((function(t){e.addSelectedUserInfo(n,t)})),this.$emit("result",n)):t=!0;else{var r=[],i=this.$refs.workgroupUserTree.getCheckedNodes();if(i)if(0===i.length)t=!0;else{for(var o=0;o<i.length;o++){var a=i[o];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 l=a.children;l&&l.length>0?l.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}this.showTip(t)},showTip:function(e){e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectPersonnel"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},selectWorkgroupUser:function(){this.multiple?this.multipleSetValue():this.singleSetValue()},isSelectTenantNode:function(e){return e===this.tenantNodeId&&(!this.branchInfo||0===this.branchInfo.length)},addSelectedUserInfo:function(e,t){var n=e.userIds.filter(this.filterUserId(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)}},filterUserId:function(e){return function(t){return t===e.id}},filterUserNode:function(e){return function(t){var n="~",r=t.substring(t.lastIndexOf(n)+1);return r===e.id+""}},renderContent:function(e,t){var n,r=t.node,i=t.data;t.store;return n=-1===r.data.id?"el-icon-menu":"el-icon-date",i.nodeType&&"USER"===i.nodeType&&this.searchValue&&this.filterUserVal(i,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])])}})},eu=Ql,tu=(n("2981"),f(eu,jl,zl,!1,null,null,null)),nu=tu.exports,ru={name:"WorkgroupUserTree",components:{InlineWorkgroupUserTree:nu},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()}}},iu=ru,ou=f(iu,$l,Vl,!1,null,null,null),au=ou.exports;au.install=function(e){e.component(au.name,au)};var su=au;te.install=function(e){e.component(te.name,te)};var lu=te,uu=function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("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():t("inline-department-user-single-tree",{ref:"userTree",attrs:{height:e.height,"department-info":e.departmentInfo},on:{result:e.result}})],1)},cu=[],fu={name:"InlineDepartmentUserTree",components:{InlineDepartmentUserSingleTree:Us,InlineDepartmentUserMultiTree:al},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()}}},du=fu,hu=f(du,uu,cu,!1,null,null,null),pu=hu.exports;pu.install=function(e){e.component(pu.name,pu)};var mu=pu;Pl.install=function(e){e.component(Pl.name,Pl)};var gu=Pl;nu.install=function(e){e.component(nu.name,nu)};var vu=nu,bu=function(){var e=this,t=e._self._c;return t("span",["undefined"!==typeof e.buttonInfo["theTransactor"]&&!1===e.buttonInfo["theTransactor"]?t("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._t("errorArea"),e._t(e.slotAfter)],2):t("span",{staticClass:"operation-area"},[e._t(e.slotBefore),e._l(e.buttons,(function(n,r){return t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:n.permission,expression:"button.permission"}],key:r,class:n.code?n.code:"",attrs:{disabled:e.preventReclick,type:n.type,size:"small"},on:{click:n.clickFun}},[e._v("\n "+e._s(n.i18nButtonName)+"\n ")])})),e._t(e.slotAfter)],2)])},yu=[];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(i["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:"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:_u({},Object(Rn["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}}}},xu=Cu,Su=f(xu,bu,yu,!1,null,null,null),ku=Su.exports;ku.install=function(e){e.component(ku.name,ku)};var Du=ku,Ou=function(){var e=this,t=e._self._c;return e.loaded?t("el-table",{ref:"historyList",staticStyle:{width:"100%"},attrs:{height:e.tableHeight,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}},[t("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)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.taskName"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_START"===n.row.historyType?t("span",[e._v(e._s(e.$t("workflowHistoryList.processStart")))]):n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span",[e._v(e._s(e.$t("workflowHistoryList.processEnd")))]):n.row.current?t("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(e.i18nTaskName(n.row)))]):n.row.special?!0===n.row.special?t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.i18nTaskName(n.row)+"["+e.$t("workflowHistoryList.specailText")+"]"))]):e._e():t("span",[e._v(e._s(e.i18nTaskName(n.row)))])]}}],null,!1,298792300)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operator"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.creatorName))])]}}],null,!1,1328406894)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operatorLg"),align:"left",width:"250"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.creator))])]}}],null,!1,3777006953)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operatorDept"),align:"left",width:"150"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.departmentName))])]}}],null,!1,1295965654)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operationTime"),align:"left",width:"200"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.formatCreatedTime))])]}}],null,!1,53914243)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.operation"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):n.row.current?t("span",{staticStyle:{color:"#E6A23C"}},[e._v(e._s(n.row.transactionResult)+" "+e._s(e.$t("workflowHistoryList.toDoText")))]):t("span",[e._v(e._s(e.i18nOperation(n.row)))])]}}],null,!1,3189498206)}),t("el-table-column",{attrs:{label:e.$t("workflowHistoryList.opinion"),align:"left",width:"400"},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.historyType&&"PROCESS_END"===n.row.historyType?t("span"):t("span",[e._v(e._s(n.row.opinion))])]}}],null,!1,1506270213)})],1):e._e()},Tu=[];function Eu(e,t,n,r){var i=e.transactionResult,o=e.historyType;if(!e.current&&o)if(e.transactionParams){var a=JSON.parse(e.transactionParams),s=o.toLowerCase(),l=Iu(o);if(l?s="commonButtonOperation":"process_end"===s&&(s="processEnd"),l||"HISTORY_COMPLETE_TRANSFER"===o){var u=a["2"];a["2"]=Object(x["e"])().t("workflowButton."+u)}if("process_start"===s&&t&&null!==t)a[1]=t,i=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}}i=Object(x["e"])().t("workflowHistoryList."+s,c)}}else i=Object(x["e"])().t("workflowHistoryList."+o.toLowerCase());return i}function Iu(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 Nu={refresh:function(){this.getData()}},Au=Nu;function Pu(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 Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ru={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,tableHeight: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(){var e=this;this.$nextTick((function(){e.tableHeight=window.innerHeight-120}))},methods:Mu(Mu({},Au),{},{getData:function(){var e=this;this.$http.get(k.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(k.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"])(),i=e.bundleCode;return i&&""!==i&&this.processI18n&&(t=this.processI18n[i]),t&&t["processName"]&&(n=t["processName"][r]),Eu(e,n,t,r)},i18nTaskName:function(e){var t,n=e.bundleCode;n&&""!==n&&this.processI18n&&(t=this.processI18n[n]);var r=null,i=e.i18nKey;if(i&&t&&t[i]){var o=Object(x["f"])();r=t[i][o]}return r&&null!==r||(r=e.taskName),r},getChildren:function(e,t,n){n(e.children)}})},Fu=Ru,Bu=f(Fu,Ou,Tu,!1,null,null,null),Lu=Bu.exports;Lu.install=function(e){e.component(Lu.name,Lu)};var $u=Lu;function Vu(e){e.disabled=!1,e.classList.remove("is-disabled")}var ju={inserted:function(e,t){e.addEventListener("click",(function(){e.disabled=!0,e.classList.add("is-disabled"),t.value().then((function(t){Vu(e)})).catch((function(t){Vu(e),console.log("Error",t.message)}))}))}},zu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ValidCode disabled-select",style:"width:".concat(e.width,"; height:").concat(e.height),on:{click:e.refreshCode}},e._l(e.codeList,(function(n,r){return t("span",{key:r,style:e.getStyle(n)},[e._v(e._s(n.code))])})),0)},Hu=[],Uu={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,i=0;i<e;i++){var o=[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(o,")"),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)}}},Wu=Uu,qu=(n("7324"),f(Wu,zu,Hu,!1,null,"0e45e064",null)),Gu=qu.exports;Gu.install=function(e){e.component(Gu.name,Gu)};var Yu=Gu,Ku=new Map,Xu=Ku,Ju=n("16e5");function Zu(e,t,n,r){var i=this;return new Promise((function(o,a){Qu(e,t,n,r).then((function(e){fc("afterExport",r)&&"function"===typeof r.afterExport&&r.afterExport.call(i),o(e)})).catch((function(e){fc("exportError",r)&&"function"===typeof r.exportError&&r.exportError.call(i),a(e)}))}))}function Qu(e,t,n,r){var i=this;return new Promise((function(o,a){var s=!0;if(fc("beforeExport",r)&&"function"===typeof r.beforeExport&&(s=r.beforeExport.call(i)),s)if(e&&e.hasOwnProperty("data")){var l={};l["_data"]=e.data,oc(JSON.stringify(l),t,n).then((function(e){o(e)})).catch((function(e){a(e)}))}else e&&e.hasOwnProperty("url")?ec(e,t,n).then((function(e){o(e)})).catch((function(e){a(e)})):ic(t,n).then((function(e){o(e)})).catch((function(e){a(e)}));else o(!1)}))}function ec(e,t,n){return new Promise((function(r,i){var o=tc(n),a=rc(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),k.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 oc(n,t,o)})).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function tc(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=qe.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Xu.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function nc(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=qe.get("_list_code")),t=qe.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Xu.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Xu.get(n)),t}function rc(e){var t={},n=nc(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),i={currentPage:1,pageSize:99999999,showTotal:!1};t=r,r.pagination=i,n.options.extraParam&&(t=gt(r,n))}return t}function ic(e,t){return new Promise((function(n,r){var i=nc(t);if(void 0===i||null===i)r("导出失败");else{var o=rc(t);k.a.prototype.$http.post(i.url,o).then((function(n){var r=n.data;r||(r=[]);var i={};return i["_data"]=r,oc(JSON.stringify(i),e,t)})).then((function(e){n(e)})).catch((function(e){r(e)}))}}))}function oc(e,t,n){return new Promise((function(r,i){var o=nc(n);if(void 0!==o)if(o.columns){var a=lc(o.columns);0===a.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):sc(uc(e,t,n,a)).then((function(e){r(e)})).catch((function(e){i(e)}))}else Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else ac(e,t,n).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function ac(e,t,n,r){return new Promise((function(i,o){var a={};r&&""!==r&&(a.additionalParamMap=r),k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){rs(r,n).then((function(){0===r.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),i(!1)):sc(uc(e,t,n,r)).then((function(e){i(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}function sc(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return dc(k.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 lc(e){var t=[];return e.forEach((function(e){e.exportable&&!0===e.exportable&&t.push(e)})),t}function uc(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:cc(e,t)}}function cc(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function fc(e,t){return"undefined"!==typeof t&&"undefined"!==typeof t[e]}function dc(e,t){return new Promise((function(n,r){k.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 i=document.createElement("a"),o=document.createEvent("HTMLEvents");o.initEvent("click",!1,!1),i.href=URL.createObjectURL(r),i.download=t,i.style.display="none",document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(i.href)}n(!0)})).catch((function(e){r(e)}))}))}var hc={exportData:Zu,download:dc};function pc(e,t,n,r,i,o,a,s,l){var u=this;return new Promise((function(c,f){mc(e,t,n,o,r,i,a,s,l).then((function(e){Ec("afterExport",o)&&"function"===typeof o.afterExport&&o.afterExport.call(u),c(e)})).catch((function(e){Ec("exportError",o)&&"function"===typeof o.exportError&&o.exportError.call(u),f(e)}))}))}function mc(e,t,n,r,i,o,a,s,l){var u=this;return new Promise((function(c,f){if(qe.get(n+"basicInfo")){var d=qe.get(n+"basicInfo");d&&d.i18nLable&&(t=d.i18nLable)}var h=!0;Ec("beforeExport",r)&&"function"===typeof r.beforeExport&&(h=r.beforeExport.call(u)),h?e&&e.hasOwnProperty("url")?gc(e,t,n).then((function(e){c(e)})).catch((function(e){f(e)})):wc(t,n,e.data,i,o,a,s,l).then((function(e){c(e)})).catch((function(e){f(e)})):c(!1)}))}function gc(e,t,n){return new Promise((function(r,i){var o=vc(n),a=yc(n),s=e.url;e.hasOwnProperty("param")&&(a=Object.assign(a,e.param)),k.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 xc(n,t,o)})).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function vc(e){if(null!==e&&void 0!==e&&""!==e)return e;var t=e;return e&&null!==e&&""!==e||(t=qe.get("_list_code")),void 0!==t&&null!==t&&""!==t||(t=Xu.get("_nine_list_code"),t&&t.indexOf("~")<0&&(t+="~_nineGrid")),t&&t.indexOf("~")>0&&(t=t.substring(0,t.indexOf("~"))),t}function bc(e){var t=null,n=e;return e&&null!==e&&""!==e||(n=qe.get("_list_code")),t=qe.get(n),void 0!==t&&null!==t||(e&&null!==e&&""!==e||(n=Xu.get("_nine_list_code")),n&&n.indexOf("~")<0&&(n+="~_nineGrid"),t=Xu.get(n)),t}function yc(e){var t={},n=bc(e);if(void 0!==n&&null!==n){var r=Object.assign({},n.searchParam),i={currentPage:1,pageSize:99999999,showTotal:!1};if(t=r,r.pagination=i,n.options.extraParam){var o;t=gt(r,n);var a=n.options.parentProp;"undefined"!==typeof a&&""!==a&&null!==a&&(o=a),o&&r&&r.searchForm&&r.searchForm.length>0&&(t.listViewTreeSetting=null)}}return t}function wc(e,t,n,r,i,o,a,s){return new Promise((function(l,u){var c=bc(t);if(void 0===c||null===c)u("导出失败");else{var f=yc(t);if(f.data=n,c.columns&&(f.exportColumns=Dc(c.columns)),f.exportData={excelName:e},e&&null!==e&&""!==e?e+=".xlsx":e="default.xlsx",!r)return void Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.theButtonIsNotBoundToAResource"),type:"error",showClose:!0});f.functionCode=r,i&&(f.uuid=i),localStorage.setItem(i,"start"),f["async"]=o,f["pageCode"]=a,f["isPermission"]=s,k.a.prototype.$http.post(k.a.prototype.baseURL+"/dsc/commons/export-list-data",f).then((function(t){if(o){var n,r=Object(x["e"])().t("imatrixUIMessage.asyncExport"),a=_c();if(a){n="<p><span>"+r+"</span>";var s=Object(x["e"])().t("imatrixUIMessage.asyncExportJumpMsg");n+='<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\''+a+"')\">"+s+"</a>",n+="</p>"}n?Object(Ju["Message"])({showClose:!0,dangerouslyUseHTMLString:!0,message:n,type:"success",duration:1e4}):Object(Ju["Message"])({showClose:!0,message:r,type:"success",duration:5e3}),localStorage.setItem(i,"ok")}else{if(t.indexOf("~~")>=0)return localStorage.setItem(i,"ok"),Ic(k.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(t)+"&_t="+(new Date).getTime(),e);Cc(t,f,e)}})).then((function(e){l(e)})).catch((function(e){localStorage.setItem(i,"error"),u(e)}))}}))}function _c(){var e,t=k.a.prototype.baseAPI;if(t){var n=t.split("/"),r=n[0]+"//"+n[2];e=r+"/document-center/#/file-task/file-export-task/list"}return e}function Cc(e,t,n){setTimeout((function(){k.a.prototype.$http.post(k.a.prototype.baseURL+"/dsc/commons/get-file-uuid/"+e,t).then((function(r){if(r)if(!r.code||"ok"!==r.code&&"error"!==r.code)Cc(e,t,n);else{if("ok"===r.code)return localStorage.setItem(e,"ok"),Ic(k.a.prototype.baseAPI+"/component/super-grids/downloads?fileName="+encodeURI(r.fileName)+"&uuid="+e+"&_t="+(new Date).getTime(),n);localStorage.setItem(e,"error"),Object(Ju["Message"])({message:r.message,type:"error",showClose:!0})}else localStorage.setItem(e,"ok")})).catch((function(){localStorage.setItem(e,"error")}))}),5e3)}function xc(e,t,n){return new Promise((function(r,i){var o=bc(n);if(void 0!==o)if(o.columns){var a=Dc(o.columns);0===a.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1)):kc(Oc(e,t,n,a)).then((function(e){r(e)})).catch((function(e){i(e)}))}else Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),r(!1);else Sc(e,t,n).then((function(e){r(e)})).catch((function(e){i(e)}))}))}function Sc(e,t,n,r){return new Promise((function(i,o){var a={};r&&""!==r&&(a.additionalParamMap=r),k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/"+n+"/export-columns",a).then((function(r){rs(r,n).then((function(){0===r.length?(Object(Ju["Message"])({message:Object(x["e"])().t("imatrixUIMessage.noExportColumnsConfigured"),type:"warning",showClose:!0}),i(!1)):kc(Oc(e,t,n,r)).then((function(e){i(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}function kc(e){return new Promise((function(t,n){var r=e.exportData.excelName;r&&null!==r&&""!==r?r+=".xlsx":r="default.xlsx",k.a.prototype.$http.post(k.a.prototype.baseAPI+"/component/super-grids/exports",e).then((function(e){return Ic(k.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 Dc(e){var t=[];return e.forEach((function(e){e.children&&e.children.length>0?t=t.concat(Dc(e.children)):e.exportable&&!0===e.exportable&&t.push(e)})),t}function Oc(e,t,n,r){return t&&null!==t&&""!==t||(t=n),{exportColumns:r,exportData:Tc(e,t)}}function Tc(e,t){return{excelName:t,exportSheetData:[{data:e,sheetName:t}]}}function Ec(e,t){return null!==t&&"undefined"!==typeof t&&"undefined"!==typeof t[e]}function Ic(e,t){return new Promise((function(n,r){k.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 i=document.createElement("a"),o=document.createEvent("HTMLEvents");o.initEvent("click",!1,!1),i.href=URL.createObjectURL(r),i.download=t,i.style.display="none",document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(i.href)}n(!0)})).catch((function(e){r(e)}))}))}var Nc={exportData:pc,download:Ic};function Ac(){return self!==top}function Pc(e){if(e){var t=e.split(",");t.forEach((function(e){sessionStorage.setItem("refreshList-"+e,"true")}))}}function Mc(e){return void 0!==e&&null!==e&&"string"===typeof e&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;")),e}var Rc={isInIframe:Ac,refreshList:Pc,escapeHtml:Mc},Fc={install:function(e,t){e.prototype.$exportData=hc.exportData,e.prototype.$isInIframe=Rc.isInIframe,e.prototype.$escapeHtml=Rc.escapeHtml,e.prototype.$download=hc.download,e.prototype.$refreshList=Rc.refreshList,e.prototype.$exportDataNew=Nc.exportData,e.prototype.$downloadNew=Nc.download}},Bc=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("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),t("el-table",{ref:"removeUserGrid",attrs:{data:e.users,"row-key":"id",border:"",height:e.height}},[t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.name"),prop:"name"}}),t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.department"),prop:"mainDepartmentName"}}),e.containBranch?t("el-table-column",{attrs:{label:e.$t("departmentUserTreeInline.branch"),prop:"subCompanyName"}}):e._e(),t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeUser(n.$index)}}})],1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectUser}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Lc=[],$c={getSelectUsers:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},Vc=$c;function jc(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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hc={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:zc(zc({},Vc),{},{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 i=r.name;this.containBranch&&r.subCompanyName&&(i=i+"("+r.subCompanyName+")"),t.userNames.push(i),e.push(r[this.searchField])}var o=this.getRemoveItems(this.originalUsers,e,this.searchField);this.$emit("close",t,o)},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])})):[]}})},Uc=Hc,Wc=f(Uc,Bc,Lc,!1,null,null,null),qc=Wc.exports;qc.install=function(e){e.component(qc.name,qc)};var Gc=qc,Yc=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("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),t("el-table",{ref:"removeDeptGrid",attrs:{data:e.departments,"row-key":"id",border:"",height:e.height}},[t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.name"),prop:"name"}}),t("el-table-column",{attrs:{label:e.$t("departmentTreeInline.code"),prop:"code"}}),t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeDept(n.$index)}}})],1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectDept}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},Kc=[],Xc={getSelectDepts:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},Jc=Xc;function Zc(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 Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ef={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:Qc(Qc({},Jc),{},{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 i=r.name;this.containBranch&&r.branchName&&(i=i+"("+r.branchName+")"),t.names.push(i),e.push(r[this.searchField])}var o=this.getRemoveItems(this.originalDepts,e,this.searchField);this.$emit("close",t,o)},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])})):[]}})},tf=ef,nf=f(tf,Yc,Kc,!1,null,null,null),rf=nf.exports;rf.install=function(e){e.component(rf.name,rf)};var of=rf,af=function(){var e=this,t=e._self._c;return t("div",[t("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")}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("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),t("el-table",{ref:"removeWgGrid",attrs:{data:e.workgroups,"row-key":"id",border:"",height:e.height}},[t("el-table-column",{attrs:{label:e.$t("workgroupTree.name"),prop:"name"}}),t("el-table-column",{attrs:{label:e.$t("workgroupTree.code"),prop:"code"}}),t("el-table-column",{attrs:{label:e.$t("imatrixUIPublicModel.edit"),align:"center",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",[t("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete",circle:""},on:{click:function(t){return e.removeWg(n.$index)}}})],1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.cancel"))+"\n ")]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSelectWg}},[e._v("\n "+e._s(e.$t("imatrixUIPublicModel.sure"))+"\n ")])],1)],1)],1)},sf=[],lf={getSelectWgs:function(e,t,n){var r=this;return new Promise((function(i,o){e&&t?r.$http.get(k.a.prototype.baseAPI+"/component/organization-trees/select-workgroups?searchField="+e+"&selectWorkgroupInfo="+t+"&separator="+n).then((function(e){i(e)})).catch((function(e){o(e)})):i([])}))}},uf=lf;function cf(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 ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var df={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:ff(ff({},uf),{},{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 i=this.getRemoveItems(this.originalWgs,e,this.searchField);this.$emit("close",t,i)},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])})):[]}})},hf=df,pf=f(hf,af,sf,!1,null,null,null),mf=pf.exports;mf.install=function(e){e.component(mf.name,mf)};var gf=mf,vf=function(){var e=this,t=e._self._c;return t("span",{staticStyle:{width:"100%"}},[e.disabled?[t("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0,disabled:!0}},[t("template",{slot:"append"},[t("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},slot:"suffix"}),t("i",{staticClass:"el-input__icon el-icon-delete",attrs:{slot:"suffix"},slot:"suffix"})])],2)]:[t("el-input",{attrs:{value:e.value,type:"text",size:e.size,readonly:!0},on:{focus:function(t){return e.showOrganizationTree(!1)}}},[t("template",{slot:"append"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(t){return e.showOrganizationTree(!1)}}}),t("i",{staticClass:"el-input__icon el-icon-delete",on:{click:function(t){return e.emptyOrganizationResult()}}})])],2)],e.treeType&&"DeptUserTree"===e.treeType&&e.showOrganizationTreeFlag?t("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?t("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?t("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?t("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)},bf=[],yf={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,i=this.multiple;"undefined"===typeof i&&(i=!1);var o=this.treeType,a=this.fields;a&&a.length>0&&a.forEach((function(a){var s=a.type,l=r.getOrgSelectData(s,e,r.isUserTree(o),i),u=r.getPropName(a.model);r.getOrgDataModel(u,l,i,s,t,n)}))},getOrgDataModel:function(e,t,n,r,i,o){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 i=null;if(n){var o=t.user;o&&(i=o.mainDepartmentName)}return i}if("mainDeptId"===e){var a=null;if(n){var s=t.user;s&&(a=s.mainDepartmentId)}return a}if("mainDeptCode"===e){var l=null;if(n){var u=t.user;u&&(l=u.mainDepartmentCode)}return l}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(){var n=t[i],r=e.fields.filter((function(e){return e.type===n}));if(r&&r.length>0){var o=r[0];if(o){var a=e.getPropName(o.model),s=e.getModelValue(a);if(s&&null!==s&&""!==s)return e.selectOrganizationInfo=s,e.searchField=n,1}}},i=0;i<t.length;i++)if(r())break}else for(var o=0;o<t.length;o++){var a=t[o],s=this.selectOrganizationAllInfo[a];if(s&&null!==s&&""!==s){this.selectOrganizationInfo=s,this.searchField=a;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);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,i=0;i<n.length-1;i++)r=0===i?this.getParentModelProp(n[i],t):this.getParentModelProp(n[i],r);return r},getParentModelProp:function(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}}},wf=yf,_f=f(wf,vf,bf,!1,null,null,null),Cf=_f.exports;Cf.install=function(e){e.component(Cf.name,Cf)};var xf=Cf,Sf=function(){var e=this,t=e._self._c;return t("div",[e.hasLoadedColumns?t("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(),t("div",{staticClass:"nine-grid-area"},[t("div",{style:"height:"+e.height+"px;overflow-y: auto;overflow-x: hidden;",attrs:{id:e.gridId}},[t("el-row",{attrs:{gutter:20}},[e.isHasCreate?t("el-col",{directives:[{name:"permission",rawName:"v-permission",value:e.createPermission,expression:"createPermission"}],attrs:{id:"_addCardId_",span:6,offset:1.5}},[t("el-card",{attrs:{"body-style":{padding:"0px"}}},[t("div",{staticClass:"add-screen",on:{click:e.add}},[t("span",{staticStyle:{color:"#6882da"}},[t("em",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$t("superNineGrid.add")))])])])],1):e._e(),e._l(e.gridData,(function(n,r){return t("el-col",{key:n.id,staticClass:"col-content",attrs:{span:6,offset:1.5}},[t("el-card",{attrs:{"body-style":{padding:"0px"},shadow:"hover"}},[t("div",{on:{click:function(t){return e.clickContent(n)}}},[t("transition",{attrs:{name:"fade"}},[t("div",{staticClass:"popContainer"},[t("div",{staticClass:"else-button",staticStyle:{background:"rgba(0,0,0,0.5)","min-height":"20%"}},[e._t(e.slotBefore,null,{params:n}),e._l(e.operations,(function(r){return[e.isShowButton(n,r)?[r.icon?t("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"}},[t("em",{class:r.icon+" icons",on:{click:function(t){return t.stopPropagation(),e.buttonClick(r.event,n)}}})]):t("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(t){return t.stopPropagation(),e.buttonClick(r.event,n)}}},[e._v(e._s(r.name)+" ")])]:e._e()]}))],2)])]),e.props&&e.props.imageUrl&&e.objectPropValue(n,e.propCloumns.imageUrl,e.props.imageUrl)?t("img",{staticClass:"image",attrs:{src:e.defaultShowImageAction+e.objectPropValue(n,e.propCloumns.imageUrl,e.props.imageUrl),alt:"加载失败"}}):t("div",{staticClass:"image",staticStyle:{display:"table","text-align":"center"}},[e.props&&e.props.content?t("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("content",n))+"\n ")]):e.props&&e.props.title?t("div",{staticStyle:{display:"table-cell","vertical-align":"middle"}},[e._v("\n "+e._s(e.getPropValue("title",n))+"\n ")]):e._e()])],1),t("el-divider"),t("div",{staticStyle:{padding:"10px 10px 10px 10px"}},[t("div",{staticClass:"bottom clearfix"},[t("time",{staticClass:"name"},[e.props&&e.props.title?t("span",[e.multiple?t("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+n.id],"true-label":n.id,"false-label":"false-"+n.id,title:e.getPropValue("title",n)},on:{change:function(t){return e.changeChecked(t,r)}}},[t("span",{style:e.getTitleStyle(n)},[e._v(" "+e._s(e.getPropValue("title",n)))])]):e.isShowRadio?t("el-radio",{staticStyle:{width:"100%"},attrs:{label:n.id,title:e.getPropValue("title",n)},on:{change:function(t){return e.changeSelectWhenRadio(t,r)}},model:{value:e.currentId,callback:function(t){e.currentId=t},expression:"currentId"}},[t("span",{style:e.getTitleStyle(n)},[e._v(" "+e._s(e.getPropValue("title",n)))])]):t("span",{style:e.getTitleStyle(n),attrs:{title:e.getPropValue("title",n)}},[e._v(" "+e._s(e.getPropValue("title",n)))])],1):e.props&&e.props.content?t("span",[e.multiple?t("el-checkbox",{staticStyle:{width:"100%"},attrs:{value:e.selectionModels["select"+n.id],"true-label":n.id,"false-label":"false-"+n.id,title:e.getPropValue("content",n)},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(e.getPropValue("content",n)))]):e.isShowRadio?t("el-radio",{staticStyle:{width:"100%"},attrs:{label:n.id,title:e.getPropValue("content",n)},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",n)))]):t("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("content",n)}},[e._v(" "+e._s(e.getPropValue("content",n)))])],1):t("span",[e.multiple?t("el-checkbox",{attrs:{value:e.selectionModels["select"+n.id],"true-label":n.id,"false-label":"false-"+n.id},on:{change:function(t){return e.changeChecked(t,r)}}},[e._v(e._s(r+1))]):e.isShowRadio?t("el-radio",{attrs:{label:n.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))]):t("span",[e._v(" "+e._s(r+1))])],1)]),e.props&&e.props.subTitle?t("time",{staticClass:"state"},[t("span",{staticStyle:{width:"100%"},attrs:{title:e.getPropValue("subTitle",n)}},[e._v(e._s(e.getPropValue("subTitle",n)))])]):e._e()])])],1)],1)}))],2)],1),e.pagination?t("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)},kf=[],Df={number:function(e,t){var n=t.precision,r=t.delimiter,i=t.scientific,o=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!=i)){var a=!1;o=o?parseInt(o):11,e.length>=o&&(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),i=r.getFullYear(),o=r.getMonth()+1,a=r.getDate(),s=r.getHours(),l=r.getMinutes(),u=r.getSeconds();return o<10&&(o="0"+o),a<10&&(a="0"+a),s<10&&(s="0"+s),l<10&&(l="0"+l),u<10&&(u="0"+u),n.replace("yyyy",i).replace("m",o).replace("d",a).replace("hh",s).replace("mm",l).replace("ss",u)}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return this.number(e,t)+"%"}};function Of(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!==Df[r.type]?Df[r.type](t,r.options):t}var Tf={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(i){return""}},objectPropValue:function(e,t,n){var r=Of(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 i=Of(t,r);return{originalValue:r,formatValue:i}},onClickFun:function(e,t,n,r){var i=this.getColumnValue(e,t);n.call(this,i.originalValue,i.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}},Ef=Tf,If=function(){var e=this,t=e._self._c;return e.searchableColumns.length>0?t("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"}},[t("table",e._l(e.rowNum,(function(n){return t("tr",{key:n},e._l(e.getColumnNumPerRow(n,e.searchableColumns.length),(function(r){return t("td",{key:r},[t("el-form-item",{style:{paddingLeft:"10px",minWidth:"200px"},attrs:{prop:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,"label-width":e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabelWidth?e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabelWidth:"80px"}},[t("template",{slot:"label"},[e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabel&&""!==e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabel?t("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchLabel.replace(/\\n/g,"</br>"))}}):t("span",{domProps:{innerHTML:e._s(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].label.replace(/\\n/g,"</br>"))}})]),"DATE"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType||"date"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-date-picker",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-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(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):"dateTimePicker"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-date-picker",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-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(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):"TIME"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType&&"timepicker"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-date-picker",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-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(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):"timepicker"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"TIME"!==e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType&&"DATE"!==e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType?t("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*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"select"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType||"BOOLEAN"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].dataType?t("el-select",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{clearable:"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}},e._l(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].valueSet,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"multiselect"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-select",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{clearable:"",multiple:"","collapse-tags":"",placeholder:e.$t("imatrixUIMessage.pleaseSelect"),value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}},e._l(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].valueSet,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"inputNumber"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("search-form-number",{attrs:{r:n,n:r},on:{setValue:e.setNumberValue}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"switch"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-switch",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"slider"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-slider",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType&&"rate"===e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentType?t("el-rate",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}}):!0===e.customComponent(e.searchableColumns[e.fieldNum*(n-1)+(r-1)])?t("span",[t(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentName,{ref:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].componentName,refInFor:!0,tag:"component",staticClass:"customComponent",attrs:{prop:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}}})],1):t("el-input",{style:e.searchableColumns[e.fieldNum*(n-1)+(r-1)].searchControlWidth,attrs:{value:e.getFormItemValue(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop)},on:{input:function(t){e.setValueToModelProp(e.searchableColumns[e.fieldNum*(n-1)+(r-1)].prop,t)}},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),t("el-form-item",{staticClass:"search-btn"},[t("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 ")]),t("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()},Nf=[],Af={packageSearchParam:function(){var e=this,t=[];return this.searchableColumns.forEach((function(n){var r={leftBracket:"",rightBracket:"",joinSign:"and"},i=n.orgProp,o="__";if(i.indexOf(o)>0&&(i=i.replace(o,".")),r.columnProp=n.prop,r.propName=i,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 l=e.getFormItemValue(n.prop);e.packageValueWithArray(l,t,r)}else{var u=e.getFormItemValue(n.prop);e.packageValueWithArray(u,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,i=0;r.forEach((function(e){var o=Object.assign({},n);o.joinSign="or",0===i&&(o.leftBracket="1"),i===r.length-1&&(o.rightBracket="1",o.joinSign="and"),o.propValue=e,o.operator="EQ",e&&t.push(o),i++}))}else"undefined"===typeof e||""===e||null===e||Array.isArray(e)||(n.propValue=e,t.push(n))}},Pf=Af,Mf=function(){var e=this,t=e._self._c;return t("div",[t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number1,callback:function(t){e.number1=t},expression:"number1"}}),t("span",[e._v("---")]),t("el-input-number",{on:{change:function(t){return e.setValue()}},model:{value:e.number2,callback:function(t){e.number2=t},expression:"number2"}})],1)},Rf=[],Ff={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)}}},Bf=Ff,Lf=f(Bf,Mf,Rf,!1,null,null,null),$f=Lf.exports;function Vf(e,t){t||(t=Xu.get("_nine_list_code")),t&&t.indexOf("~")<0&&(t+="~_nineGrid");var n=Xu.get(t);return!(!n.options||"function"!==typeof n.options[e])}function jf(){var e={columns:[],gridData:[],orgGridData:[],showValidateError:!0,options:{}};return k.a.observable(e)}function zf(e,t,n){var r=t.split(".");if(1!==r.length){for(var i=e,o=0;o<r.length-1;o++)void 0===i[r[o]]&&(i[r[o]]={}),i=i[r[o]];i[r[r.length-1]]=void 0!==n?n:null}else e[t]=void 0!==n?n:null}function Hf(e,t){if(!0===e){var n=0;return t&&(n=t.$el.offsetHeight),window.innerHeight-n-165}return window.innerHeight-165}function Uf(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wf(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Wf(e,t){if(e){if("string"===typeof e)return qf(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)?qf(e,t):void 0}}function qf(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 Gf(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 Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf={name:"SearchForm",components:{searchFormNumber:$f},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=Xu.get(t),i={};null!==this.searchParam&&(i=JSON.parse(JSON.stringify(this.searchParam)));var o=this.getSearchableColumns();void 0!==this.initSearchProps&&null!==this.initSearchProps||(this.initSearchProps=[]),o.forEach((function(t){e.initSearchProps.indexOf(t.prop)<0&&(t.prop.indexOf(".")>0?zf(i,t.prop):i[t.prop]=null)}));var a=this.getSpanNum(t),s=this.getFieldNumPerRow(t),l=Math.ceil(o.length/s);return{searchForm:i,rules:{},searchParams:[],labelWidth:r.options.search&&r.options.search.labelWidth?r.options.search.labelWidth:"80px",customComponentNames:n,componentName:"",spanNum:a,fieldNum:s,rowNum:l,loading:!1,storeId:t}},computed:{searchableColumns:function(){return this.getSearchableColumns()}},methods:Yf(Yf({},Pf),{},{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=Xu.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 i=JSON.parse(r.querySetting);i.width&&(r.searchControlWidth="width:"+i.width+"px"),i.labelWidth&&(r.searchLabelWidth=i.labelWidth+"px"),i.label&&(r.searchLabel=i.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=Xu.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),k.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=Uf(this.customComponentNames);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.$refs[i][0].resetField()}}catch(o){r.e(o)}finally{r.f()}this.searchableColumns.forEach((function(e){e.prop.indexOf(".")>0?zf(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)}})},Xf=Kf,Jf=(n("2210"),f(Xf,If,Nf,!1,null,"03fdf3c6",null)),Zf=Jf.exports,Qf={initialize:function(){var e=this,t=k.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 i=0;i<r.length;i++)n.push(1*r[i]);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 o=Xu.get(e.code+"~"+e.gridId);rs(e.columns,e.code).then((function(){o.isSql=e.isSql,o.columns=e.columns,o.lineEdit=e.lineEdit,o.basicInfo=e.basicInfo,o.pagination=e.pagination,o.query=e.query,e.hasLoadedColumns=!0;var t=!0;Vf("loadBeforeSend",e.storeId)&&(t=o.options.loadBeforeSend.call(e,{columns:e.columns,gridParams:o,additionalParamMap:o.additionalParamMap})),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}}},ed=Qf,td={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=Xu.get(this.storeId);return e.searchForm?e.searchForm:[]},getGridData:function(e){e||(e=Xu.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Xu.get(e);return t.gridData},getColumns:function(e){e||(e=Xu.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Xu.get(e);return t.columns},getPagination:function(e){e||(e=Xu.get("_nine_list_code")),e&&e.indexOf("~")<0&&(e+="~_nineGrid");var t=Xu.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}},nd=td;function rd(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=id(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function id(e,t){if(e){if("string"===typeof e)return od(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)?od(e,t):void 0}}function od(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 ad(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ld={name:"SuperNineGrid",components:{SearchForm:Zf},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=k.a.prototype.baseAPI+"/component/super-form/show-image?serverPath=",n=this.options&&this.options.id?this.options.id:"_nineGrid",r=this.code+"~"+n,i=!(!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:i,titleStyle:null,slotBefore:"before"}},computed:{},provide:function(){return{}},created:function(){Xu.set(this.code+"~"+this.gridId,jf()),Xu.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=Hf(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=Xu.get(n.storeId);Vf("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:sd(sd(sd(sd({},ed),nd),Ef),{},{getTitleStyle:function(e){return this.options&&this.options.titleStyle?this.options.titleStyle.call(this,e):{width:"100%"}},getPropValue:function(e,t){var n="",r=Xu.get(this.storeId);if("content"===e){var i="";Vf("setContent",this.storeId)&&(i=r.options.getContent.call(this,t)),void 0!==i&&""!==i||(this.props&&this.props.content?i=this.objectPropValue(t,this.propCloumns.content,this.props.content):this.props&&this.props.title&&(i=this.objectPropValue(t,this.propCloumns.title,this.props.title))),n=i}else if("title"===e){var o="";Vf("setTitle",this.storeId)&&(o=r.options.setTitle.call(this,t)),void 0!==o&&""!==o||(this.props&&this.props.title?o=this.objectPropValue(t,this.propCloumns.title,this.props.title):this.props&&this.props.content&&(o=this.objectPropValue(t,this.propCloumns.content,this.props.content))),n=o}else if("subTitle"===e){var a="";Vf("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=Xu.get(this.storeId);if(Vf("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=Xu.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,i){if(n.getPropColumns(),n.isLoading=!0,n.hasLoadData=!1,void 0===t||!1===t){var o=sessionStorage.getItem("refreshList-"+n.storeId);if(void 0!==o&&"true"===o){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 l=Xu.get(n.storeId),u=e;if(l.options.extraParam&&(u={searchParam:e},l.options.extraParam))for(var c in l.options.extraParam)u[c]=l.options.extraParam[c];l.searchParam=e,l.url=n.url;var f=n.url;sessionStorage.setItem("searchParam-"+n.storeId,JSON.stringify(u)),n.$http.post(f,u).then((function(e){if(Vf("gridDataLoaded",n.storeId)){var t=l.options.gridDataLoaded.call(n,{gridData:e.data,columns:l.columns});n.gridData=t||e.data}else n.gridData=e.data;n.gridData||(n.gridData=[]),null!==n.pagination&&(n.pagination.total=e.total),l.gridData=n.gridData,l.orgGridData=[].concat(JSON.parse(JSON.stringify(n.gridData))),l.pagination=n.pagination,l.loaded=!0,n.hasLoadData=!0,r()})).catch((function(e){Vf("loadError",n.storeId)&&l.options.loadError.call(n,n.code,e),i(e)}))}))},getInitSearchForm:function(e){var t=this,n=Xu.get(this.storeId);e&&e.length>0?(this.searchFormContent={},e.forEach((function(e){var n=e.propName,r=e.columnProp,i=e.dataType;i&&"BOOLEAN"===i&&(n=r),t.initSearchProps.push(n);var o=e.propValue;n.indexOf(".")>0?zf(t.searchFormContent,n,o):t.searchFormContent[n]=o})),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=Xu.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,Vf("gridDataLoaded",e.storeId)){var i=n.options.gridDataLoaded.call(e,t.gridData);e.gridData=i||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,Vf("gridComplete",e.storeId)&&n.options.gridComplete.call(e,e.gridData,n.columns)})).catch((function(t){if(Vf("loadError",e.storeId)){var n=Xu.get(e.storeId);n.options.loadError.call(e,e.code,t)}}))},search:function(e){var t=this;return new Promise((function(n,r){var i=Xu.get(t.storeId);i.searchForm="undefined"!==typeof e&&null!==e?e:null,t.fetchData(t.getSearchParam(),!0).then((function(e){void 0!==i.options&&void 0!==i.options.isHiddenSearchForm&&!0===i.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=Xu.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,i=[],o=rd(this.mergeFields);try{for(o.s();!(r=o.n()).done;){var a,s=r.value,l=!0,u=rd(e.sorts);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(c.prop===s){l=!1;break}}}catch(f){u.e(f)}finally{u.f()}l&&i.push({prop:s,order:"ascending"})}}catch(f){o.e(f)}finally{o.f()}i.push.apply(i,Te(e.sorts)),e.sorts=i}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=k.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;Ro.create(n,{draggable:".col-content",onEnd:function(t){var n=t.newIndex,i=t.oldIndex,o=document.querySelector("#"+r.gridId+" #_addCardId_");null!=o&&(i>0&&(i-=1),n>0&&(n-=1));var a={oldIndex:i,newIndex:n,gridData:r.gridData};r.$http.post(e,a).then((function(e){var t=r.gridData.splice(i,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}})},ud=ld,cd=(n("d6e2"),f(ud,Sf,kf,!1,null,"a4061422",null)),fd=cd.exports;fd.install=function(e){e.component(fd.name,fd)};var dd=fd;Vt.install=function(e){e.component(Vt.name,Vt)};var hd=Vt,pd=function(){var e=this,t=e._self._c;return t("div",[e.multiple?t("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():t("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)},md=[],gd=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isShowButton&&!e.disabled?t("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(),t("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?t("div",[e.isImg?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[t("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName,type:"primary"}},[e._v("\n "+e._s(n.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),t("el-table-column",{attrs:{label:e.$t("fsUpload.picture"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-image",{attrs:{src:e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName,"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName]},on:{click:function(t){return e.bigPicture(n.$index)}}})]}}],null,!1,2055571535)}),e.disabled?e._e():t("el-table-column",{attrs:{label:e.$t("fsUpload.operating"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.deleteFile(n.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")])]}}],null,!1,1012280757)})],1)],1):e.isShowList?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.unifiedEnclosures,height:e.tableHeight}},[t("el-table-column",{attrs:{label:e.$t("fsUpload.name"),width:"240"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+n.row.uuid+"&showName="+n.row.fileName,type:"primary"}},[e._v("\n "+e._s(n.row.fileName)+"\n ")])]}}],null,!1,1021191954)}),t("el-table-column",{attrs:{width:"200",label:e.$t("fsUpload.operating")},scopedSlots:e._u([{key:"default",fn:function(n){return[e.disabled?e._e():t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.deleteFile(n.$index)}}},[e._v("\n "+e._s(e.$t("fsUpload.delete"))+"\n ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.preview(n.row)}}},[e._v("\n "+e._s(e.$t("fsUpload.preview"))+"\n ")])]}}],null,!1,1706256729)})],1)],1):t("div",e._l(e.unifiedEnclosures,(function(n,r){return t("div",{key:r},[t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+n.uuid+"&showName="+n.fileName,type:"primary"}},[e._v("\n "+e._s(n.fileName)+"\n ")]),t("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():t("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px"},on:{click:function(t){return e.deleteFile(r)}}})]),t("el-tooltip",{staticStyle:{"margin-left":"10px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[t("i",{staticClass:"el-icon-view",on:{click:function(t){return e.preview(n)}}})])],1)})),0)]):e._e(),e.bigPictureVisible?t("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.unifiedEnclosures},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},vd=[],bd=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"close-on-click-modal":!1,visible:"","append-to-body":""},on:{close:function(t){return e.$emit("close")}}},[t("el-carousel",{staticStyle:{width:"100%"},attrs:{height:"600px",autoplay:!1,"indicator-position":"outside","initial-index":e.displayIndex}},e._l(e.unifiedEnclosures,(function(n,r){return t("el-carousel-item",{key:r,attrs:{label:n.fileName}},[t("div",[t("el-image",{staticStyle:{height:"580px"},attrs:{"preview-src-list":[e.baseURL+"/common/fs-upload/download?serverPath="+n.uuid+"&showName="+n.fileName],src:e.baseURL+"/common/fs-upload/download?serverPath="+n.uuid+"&showName="+n.fileName}})],1)])})),1)],1)},yd=[],wd={props:{unifiedEnclosures:{type:Array,default:null},showIndex:{type:Number,default:0}},data:function(){return{displayIndex:0}},created:function(){this.displayIndex=this.showIndex},methods:{}},_d=wd,Cd=f(_d,bd,yd,!1,null,null,null),xd=Cd.exports,Sd={name:"FsUploadMulti",components:{seeBigPicture:xd},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=k.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(k.a.prototype.isOffice){var t=Object(He["c"])(),n={fileName:k.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+t},r=this.$http;r.post(k.a.prototype.baseURL+"/common/fs-upload/des-encrypt",n).then((function(e){window.open(k.a.prototype.isOffice+e)}))}else{var i,o=e.fileName.split(".");i="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 a=Object(He["c"])();if(k.a.prototype.customPreviewUrl)window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+e.uuid+"&showName="+encodeURI(e.fileName),i);else{var s=k.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a;Object(Ue["c"])(k.a.prototype.systemCode)&&(s=k.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+e.uuid+"&showName="+e.fileName+"&jwt="+a),window.open(s,i)}}},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 i=this.$http;i.headers="'Content-Type': 'multipart/form-data'",i.post(k.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}))}}}},kd=Sd,Dd=f(kd,gd,vd,!1,null,"55a65746",null),Od=Dd.exports,Td=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.unifiedEnclosure&&e.unifiedEnclosure.uuid&&e.unifiedEnclosure.fileName&&e.isShowData?t("div",[e.isImg?t("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}}):t("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 ")]),t("el-tooltip",{attrs:{content:e.$t("fsUpload.download"),effect:"light"}},[e.isImg?t("el-link",{attrs:{href:e.baseURL+"/common/fs-upload/download?serverPath="+e.unifiedEnclosure.uuid+"&showName="+e.unifiedEnclosure.fileName,type:"primary"}},[t("i",{staticClass:"el-icon-download",staticStyle:{"margin-left":"10px","font-size":"30px"}})]):e._e()],1),t("el-tooltip",{attrs:{content:e.$t("fsUpload.delete"),effect:"light"}},[e.disabled?e._e():t("i",{staticClass:"el-icon-delete",staticStyle:{color:"red","margin-left":"10px","font-size":"30px"},on:{click:e.deleteFile}})]),t("el-tooltip",{staticStyle:{"margin-left":"10px","font-size":"30px"},attrs:{content:e.$t("fsUpload.preview"),effect:"light"}},[e.isImg?e._e():t("i",{staticClass:"el-icon-view",on:{click:e.preview}})])],1):e._e(),e.isShowButton&&!e.disabled?t("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(),t("input",{ref:"uploadTemplate",staticStyle:{display:"none"},attrs:{type:"file",name:"uploadTemplate",accept:e.accepts},on:{change:e.upload}}),e.bigPictureVisible?t("see-big-picture",{attrs:{"show-index":e.showIndex,"unified-enclosures":e.data},on:{close:function(t){e.bigPictureVisible=!1}}}):e._e()],1)},Ed=[],Id=n("a78e"),Nd=n.n(Id),Ad={name:"FsUploadSingle",components:{seeBigPicture:xd},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=k.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(k.a.prototype.isOffice){var e=Nd.a.get("JWT"),t={fileName:k.a.prototype.officeweb365Url+"/common/fs-upload/download?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+e},n=this.$http;n.post(k.a.prototype.baseURL+"/common/fs-upload/des-encrypt",t).then((function(e){window.open(k.a.prototype.isOffice+e)}))}else{var r,i=this.unifiedEnclosure.fileName.split(".");r="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 o=Object(He["c"])();if(k.a.prototype.customPreviewUrl)window.open(Object(Ue["b"])(k.a.prototype.portalUrl)+"/#/file-service/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+encodeURI(this.unifiedEnclosure.fileName),r);else{var a=k.a.prototype.baseURL+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName;Object(Ue["c"])(k.a.prototype.systemCode)&&(a=k.a.prototype.baseAPI+"/common/fs-upload/preview?serverPath="+this.unifiedEnclosure.uuid+"&showName="+this.unifiedEnclosure.fileName+"&jwt="+o),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(k.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}))}}},Pd=Ad,Md=f(Pd,Td,Ed,!1,null,"708f569b",null),Rd=Md.exports,Fd={name:"FsUpload",components:{fsUploadMulti:Od,fsUploadSingle:Rd},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(k.a.prototype.baseURL+"/common/fs-upload",{data:n}).then((function(e){}))},getdeleteUuIds:function(){return this.deleteUuids}}},Bd=Fd,Ld=f(Bd,pd,md,!1,null,"91a07efc",null),$d=Ld.exports;$d.install=function(e){e.component($d.name,$d)};var Vd=$d,jd=function(){var e=this,t=e._self._c;return t("div",[t("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?t("el-button",{attrs:{slot:"append",icon:"el-icon-full-screen"},on:{click:e.openVideo},slot:"append"}):e._e()],1),e.isShow?t("scan-code-input-colse",{attrs:{"colse-video":e.colseVideo},on:{close:e.closeVideo}}):e._e()],1)},zd=[],Hd=(n("4917"),function(){var e=this,t=e._self._c;return t("div",{},[t("video",{ref:"video",staticClass:"video vjs-fluid",attrs:{id:"video",height:"300",autoplay:""},on:{click:e.clickVideo}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.tipShow,expression:"tipShow"}],staticClass:"tip"},[e._v("\n "+e._s(e.tipMsg)+"\n ")])])}),Ud=[];n("96cf");function Wd(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function qd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Wd(o,r,i,a,s,"next",e)}function s(e){Wd(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Gd=n("224f"),Yd={name:"ScanCodeInputColse",components:{},props:{colseVideo:{type:Boolean,default:!1}},data:function(){return{loadingShow:!1,codeReader:new Gd["BrowserMultiFormatReader"],textContent:null,vin:null,tipMsg:this.$t("messageVideo.attemptingToIdentify"),tipShow:!1,isVideo:!1}},created:function(){this.openScan()},beforeDestroy:function(){this.codeReader.reset()},methods:{openScan:function(){var e=qd(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");var r=e[0].deviceId,i=JSON.stringify(e[0].label);e.length>1&&(r=i.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=qd(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 Gd["BrowserMultiFormatReader"];case 3:t.codeReader=e.sent,t.codeReader.listVideoInputDevices().then((function(e){t.tipShow=!0,t.tipMsg=n.$t("messageVideo.callingRearCamera");var r=e[0].deviceId,i=JSON.stringify(e[0].label);e.length>1&&(r=i.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&&(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())}}},Kd=Yd,Xd=f(Kd,Hd,Ud,!1,null,null,null),Jd=Xd.exports,Zd={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)}},Qd=Zd;function eh(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nh={name:"ScanCodeInput",components:{scanCodeInputColse:Jd},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:th(th({},Qd),{},{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)}})},rh=nh,ih=f(rh,jd,zd,!1,null,null,null),oh=ih.exports;oh.install=function(e){e.component(oh.name,oh)};var ah=oh,sh=function(){var e=this,t=e._self._c;return t("div",[e.disabled?[t("fs-preview",{attrs:{label:e.value,entity:e.row,"is-sql":e.isSql,"file-set-obj":e.fileSetObj}})]:[t("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),t("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?t("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"}},[t("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?t("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[t("el-table-column",{attrs:{width:"300",prop:"showName"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteRow(n.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},lh=[],uh={name:"FsUploadList",components:{FsPreview:Gn},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(He["c"])()},t=k.a.prototype.baseURL+"/common/fs-upload";return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.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(k.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=yt(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(He["c"])(),r=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(Ue["c"])(k.a.prototype.systemCode)&&(r=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.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=[],i=0;i<this.showFileList.length;i++)i!==e&&(n.push(this.showFileList[i].showName),r.push(this.showFileList[i].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))}}},ch=uh,fh=f(ch,sh,lh,!1,null,"2ee62821",null),dh=fh.exports;dh.install=function(e){e.component(dh.name,dh)};var hh=dh,ph=function(){var e=this,t=e._self._c;return t("div",[t("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 "),t("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)},mh=[],gh={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)}}},vh=gh,bh=f(vh,ph,mh,!1,null,null,null),yh=bh.exports;yh.install=function(e){e.component(yh.name,yh)};var wh=yh,_h=function(){var e=this,t=e._self._c;return t("div",["form"===e.type?t("MultipartUploadForm"):t("MultipartUploadList",{attrs:{disabled:e.disabled,entity:e.entity,value:e.value,"file-set-obj":e.fileSetObj}})],1)},Ch=[],xh=function(){var e=this,t=e._self._c;return t("div",[e.disabled?[t("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[t("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"})],1),t("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}}},[t("el-upload",{attrs:{id:"upload","show-file-list":!1,"auto-upload":!1,"on-change":e.uploadFile,action:""}},[t("el-button",{attrs:{size:"small",type:"primary"}},[e._v("\n 选择文件\n ")]),t("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?t("span",[e._v(",并且只接受"+e._s(e.fileSetObj.accept)+"类型文件")]):e._e()])],1),t("br"),e._l(e.uploadingFile,(function(n,r){return t("el-row",{key:r},[t("el-tag",{attrs:{size:"small form-list-file"}},[t("span",[t("i",{staticClass:"el-icon-paperclip"}),t("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(n.name))])]),t("el-tooltip",{attrs:{content:"取消上传",placement:"right",effect:"light"}},[t("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(t){return e.cancelUpload(n.serverName)}}})])],1),t("el-progress",{attrs:{percentage:n.uploadProgress}})],1)})),t("div",{staticStyle:{}},[t("el-row",[t("el-col",e._l(e.fileContent,(function(n,r){return t("el-tag",{key:r,attrs:{size:"small form-list-file"}},[t("span",{on:{click:function(t){return e.preview(n.name,n.serverName)}}},[t("i",{staticClass:"el-icon-paperclip"}),t("span",{staticStyle:{"margin-left":"6.5px"}},[e._v(e._s(n.name))])]),t("el-tooltip",{attrs:{content:"移除已上传文件",placement:"right",effect:"light"}},[t("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"8px"},on:{click:function(t){return e.handleOnRemove(r,n)}}})])],1)})),1)],1)],1)],2),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),t("el-image",{attrs:{src:e.previewImageInfo.src,"preview-src-list":[e.previewImageInfo.src]}})],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[t("el-table-column",{attrs:{width:"300",prop:"showName"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteRow(n.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},Sh=[],kh={name:"MultipartUploadList",components:{FsPreview:Gn},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(He["c"])()},t=k.a.prototype.baseURL+"/common/fs-upload";return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.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(","),i=n.split(",");r.forEach((function(t,n){e.fileContent.push({name:t,serverName:i[n]});var r=Object(He["c"])(),o=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+r;Object(Ue["c"])(k.a.prototype.systemCode)&&(o=k.a.prototype.baseAPI+"/component/super-form/downloads?jwt="+r);var a=o+"&showName="+encodeURI(t)+"&serverPath="+i[n];e.showFileList.push({showName:t,serverPath:i[n],src:a})}))}},methods:{openAnnexUpload:function(){this.annexUploadFlag=!0},uploadFile:function(){var e=qd(regeneratorRuntime.mark((function e(t){var n,r,i,o,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,i=r.size,o=Math.ceil(i/this.chunkSize),console.log("文件大小:",r.size/1024/1024+"Mb","分片数:",o),console.log("向后端请求本次分片上传初始化"),a={fileName:r.name,chunkCount:o},this.$http.post(k.a.prototype.baseURL+"/common/mutipart-upload/create",a).then(function(){var e=qd(regeneratorRuntime.mark((function e(t){var l,u,c,f,d;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:l=s.uploadingFile.findIndex((function(e){return e.serverName===n})),u=t.serverName,s.uploadingFile[l]={uploadProgress:0,name:r.name,serverName:u,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(i,a+s.chunkSize),d=r.slice(a,f),console.log("开始上传第"+(n+1)+"个分片,共"+o+"个"),h=new FormData,h.append("folder",t.folder),h.append("serverName",u),h.append("file",d),!(s.cancelUploadFile.indexOf(u)>0)){e.next=12;break}return e.abrupt("return",1);case 12:return e.next=14,s.$http.post(k.a.prototype.baseURL+"/common/mutipart-upload/upload",h).then((function(e){c.push(e.uploadName);var t=parseInt((n+1)/o*100);s.uploadingFile[l].uploadProgress=t>100?100:t,s.$set(s.uploadingFile,l,s.uploadingFile[l]),console.log("第"+(n+1)+"个分片上传完成",s.uploadingFile)}));case 14:case"end":return e.stop()}}),e)})),d=0;case 10:if(!(d<o)){e.next=17;break}return e.delegateYield(f(d),"t0",12);case 12:if(!e.t0){e.next=14;break}return e.abrupt("break",17);case 14:d++,e.next=10;break;case 17:if(!(s.cancelUploadFile.indexOf(u)<0)){e.next=21;break}s.composeFile(r.name,o,i,u,c,t.folder),e.next=23;break;case 21:return e.next=23,s.$http.post(k.a.prototype.baseURL+"/common/mutipart-upload/remove-chunks",{serverName:u,folder:t.folder}).then((function(e){console.log("取消上传,并移除已上传的文件碎片")}));case 23: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,i,o){var a=this,s={fileName:e,chunkSize:t,fileSize:n,serverName:r,chunkNames:i,folder:o};console.log(s,"开始请求后端合并文件"),this.$http.post(k.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:k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(He["c"])()+"&showName="+e+"&serverPath="+t},this.showPreviewSingleImage=!0):this.previewDoc(e,t)},previewDoc:function(e,t){var n=Object(He["c"])(),r=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+n;Object(Ue["c"])(k.a.prototype.systemCode)&&(r=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+n),k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.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)}}},Dh=kh,Oh=f(Dh,xh,Sh,!1,null,"78bfc762",null),Th=Oh.exports,Eh=function(){var e=this,t=e._self._c;return t("div",[e.disabled?[t("fs-preview",{attrs:{label:e.value,"file-list":e.showFileList}})]:[t("el-input",{ref:"item",attrs:{readonly:!0,disabled:e.disabled,value:e.value,placeholder:e.$t("imatrixUIMessage.fileUpload")}},[e.disabled?e._e():t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-upload2"},on:{click:e.openAnnexUpload},slot:"append"}),t("el-button",{attrs:{slot:"append",size:"mini",icon:"el-icon-zoom-in"},on:{click:e.preview},slot:"append"})],1),t("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?t("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"}},[t("el-button",[e._v(e._s(e.$t("imatrixUIMessage.upload")))])],1):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.previewImage"))+"\n ")]),e.previewImageInfo&&e.previewImageInfo.isImg?t("el-image",{attrs:{"preview-src-list":[e.previewImageInfo.src],src:e.previewImageInfo.src}}):e._e()],1),t("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")}}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("imatrixUIPublicModel.preview"))+"\n ")]),t("el-table",{attrs:{"show-header":!1,data:e.showFileList}},[t("el-table-column",{attrs:{width:"300",prop:"showName"}}),t("el-table-column",{attrs:{align:"right"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.preview"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-view",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.previewSingle(n.row)}}})])]}}],null,!1,3592000678)}),e.disabled?e._e():t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.delete"),effect:"dark",placement:"top"}},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteRow(n.$index)}}})])]}}],null,!1,3714707570)})],1)],1)]],2)},Ih=[],Nh={name:"MultipartUploadForm",components:{FsPreview:Gn},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(He["c"])()},t=k.a.prototype.baseURL+"/common/fs-upload";return Object(Ue["c"])(k.a.prototype.systemCode)&&(t=k.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=k.a.prototype.baseURL+"/common/super-form/downloads?jwt="+Object(He["c"])(),i=0;i<e.length;i++){var o=e[i];if(o&&t[i]){var a={showName:o,serverPath:t[i],src:r+"&showName="+o+"&serverPath="+t[i]};Object(x["j"])(o)?a.isImg=!0:a.isImg=!1,n.push(a)}}this.showFileList=n}},previewDoc:function(e){var t=Object(He["c"])(),n=k.a.prototype.baseURL+"/common/fs-upload/preview?jwt="+t;Object(Ue["c"])(k.a.prototype.systemCode)&&(n=k.a.prototype.baseAPI+"/component/fs-upload/preview?jwt="+t),k.a.prototype.customPreviewUrl?window.open(Object(Ue["b"])(k.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=[],i=0;i<this.showFileList.length;i++)i!==e&&(n.push(this.showFileList[i].showName),r.push(this.showFileList[i].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)}}},Ah=Nh,Ph=f(Ah,Eh,Ih,!1,null,"0548435e",null),Mh=Ph.exports,Rh={name:"MultipartUpload",components:{MultipartUploadList:Th,MultipartUploadForm:Mh},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:{}},Fh=Rh,Bh=f(Fh,_h,Ch,!1,null,"18d0a944",null),Lh=Bh.exports;Lh.install=function(e){e.component(Lh.name,Lh)};var $h=Lh,Vh=function(){var e=this,t=e._self._c;return t("div",{style:{maxHeight:e.maxHeight+"px"}},[e.disabled?t("div",[t("div",{staticStyle:{overflow:"auto",border:"1px solid #DCDFE6",padding:"2px"},style:{maxHeight:e.maxHeight+"px"},attrs:{id:e.viewerId}}),t("el-tooltip",{staticClass:"item",attrs:{content:e.$t("imatrixUIPublicModel.fullScreen"),effect:"dark",placement:"top"}},[t("em",{staticClass:"el-icon-full-screen",staticStyle:{"z-index":"1",right:"20px",position:"absolute",top:"2px"},on:{click:e.fullScreenContent}})]),t("el-image",{ref:"previewImg",staticStyle:{display:"none",width:"100px",height:"100px"},attrs:{src:e.srcList[0],"preview-src-list":e.srcList}})],1):t("Editor",{attrs:{init:e.init,disabled:e.disabled},model:{value:e.contentValue,callback:function(t){e.contentValue=t},expression:"contentValue"}}),t("el-dialog",{attrs:{visible:e.dialogVisible,title:e.title,"destroy-on-close":"","append-to-body":"",fullscreen:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{attrs:{id:e.fullscreenViewerId}})])],1)},jh=[],zh=(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"]),Hh=function(e){return-1!==zh.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},Uh=function(e,t,n){Object.keys(t).filter(Hh).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},Wh=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}))}))},qh=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:i)),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&&Wh(t,n),Uh(e,t.$listeners,n),t.initialized=!0},Gh=0,Yh=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return Gh++,e+"_"+n+Gh+String(t)},Kh=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},Xh=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},Jh=function(e,t){return Xh(e).concat(Xh(t))},Zh=function(e){return null===e||void 0===e},Qh=function(){return{listeners:[],scriptId:Yh("tiny-script"),scriptLoaded:!1}},ep=function(){var e=Qh(),t=function(e,t,n,r){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e,i.src=n;var o=function(){i.removeEventListener("load",o),r()};i.addEventListener("load",o),t.head&&t.head.appendChild(i)},n=function(n,r,i){e.scriptLoaded?i():(e.listeners.push(i),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=Qh()};return{load:n,reinitialize:r}},tp=ep(),np=n("c4a9"),rp={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}}},ip=function(){return ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ip.apply(this,arguments)},op=function(e,t,n){return e(n||"div",{attrs:{id:t}})},ap=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},sp=function(e){return function(){var t=ip(ip({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:Jh(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 qh(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});Kh(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Object(np["a"])().init(t)}},lp={props:rp,created:function(){this.elementId=this.$props.id||Yh("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(np["a"])())sp(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=Zh(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;tp.load(this.element.ownerDocument,n,sp(this))}},beforeDestroy:function(){null!==Object(np["a"])()&&Object(np["a"])().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Object(np["a"])())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&sp(this)()},render:function(e){return this.inlineEditor?op(e,this.elementId,this.$props.tagName):ap(e,this.elementId)}},up=lp,cp=n("78b7"),fp=n.n(cp),dp=(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:up},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| link | 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){if("img"===t&&e.startsWith("blob:"))return fp.a.activeEditor&&fp.a.activeEditor.uploadImages(),e;var i=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return i.test(e)?e:(alert("url invalid"),"")},images_upload_handler:function(t,n,r,i){var o;o=t.blob()instanceof File?t.blob():e.base64ToFile(t.base64(),"a.png");var a=new FormData;a.append("file",o);var s={headers:{"Content-Type":"multipart/form-data"}};e.$http.post("/common/fs-upload/rich-editor-image",a,s).then((function(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():fp.a.init(this.init)},methods:{showImage:function(e){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=k.a.extend({methods:{showImage:function(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,i=new Uint8Array(r);t=(new Date).getTime()+"-"+Math.floor(1e4*Math.random())+".png";while(r--)i[r]=n.charCodeAt(r);return new File([i],t,{type:"image/png"})}}}),hp=dp,pp=f(hp,Vh,jh,!1,null,null,null),mp=pp.exports;mp.install=function(e){e.component(mp.name,mp)};var gp=mp,vp=function(){var e=this,t=e._self._c;return void 0!==e.value&&null!==e.value&&""!==e.value?t("span",[e.isShow?t("span",[e._v("\n "+e._s(e.decryInfo)),t("i",{staticClass:"fa fa-eye",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})]):t("span",[e._v("\n ******"),t("i",{staticClass:"fa fa-eye-slash",staticStyle:{"margin-left":"5px"},on:{click:e.showHideSecretInfo}})])]):e._e()},bp=[],yp={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}))}}},wp=yp,_p=f(wp,vp,bp,!1,null,"75022789",null),Cp=_p.exports;Cp.install=function(e){e.component(Cp.name,Cp)};var xp=Cp;function Sp(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 kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dp=[p,ae,he,we,Ss,ml,Ll,su,lu,mu,gu,vu,Du,$u,Yu,Gc,of,gf,xf,dd,hd,Vd,ah,Yn,hh,wh,$h,gp,xp],Op=function e(t){t.directive("prevent-reclick",ju),t.use(Fc),e.installed||(Dp.forEach((function(e){t.component(e.name,e)})),window["$plateform_openPage"]=mn)};"undefined"!==typeof window&&window.Vue&&Op(window.Vue);var Tp=kp({install:Op},Dp);n.d(t,"Breadcrumb",(function(){return p})),n.d(t,"DepartmentTree",(function(){return ae})),n.d(t,"Hamburger",(function(){return he})),n.d(t,"SvgIcon",(function(){return we})),n.d(t,"SuperGrid",(function(){return Ss})),n.d(t,"DepartmentUserTree",(function(){return ml})),n.d(t,"WorkgroupTree",(function(){return Ll})),n.d(t,"WorkgroupUserTree",(function(){return su})),n.d(t,"InlineDepartmentTree",(function(){return lu})),n.d(t,"InlineDepartmentUserTree",(function(){return mu})),n.d(t,"InlineWorkgroupTree",(function(){return gu})),n.d(t,"InlineWorkgroupUserTree",(function(){return vu})),n.d(t,"WorkflowButton",(function(){return Du})),n.d(t,"WorkflowHistoryList",(function(){return $u})),n.d(t,"ValidCode",(function(){return Yu})),n.d(t,"RemoveUser",(function(){return Gc})),n.d(t,"RemoveDepartment",(function(){return of})),n.d(t,"RemoveWorkgroup",(function(){return gf})),n.d(t,"OrganizationInput",(function(){return xf})),n.d(t,"SuperNineGrid",(function(){return dd})),n.d(t,"DynamicSourceSelect",(function(){return hd})),n.d(t,"FsUpload",(function(){return Vd})),n.d(t,"ScanCodeInput",(function(){return ah})),n.d(t,"FsPreview",(function(){return Yn})),n.d(t,"FsUploadList",(function(){return hh})),n.d(t,"YearRangePicker",(function(){return wh})),n.d(t,"MultipartUpload",(function(){return $h})),n.d(t,"RichEditor",(function(){return gp})),n.d(t,"SecretInfo",(function(){return xp}));t["default"]=Tp},fb3f:function(e,t,n){"use strict";n("321e")},fb63:function(e,t,n){"use strict";var r=function(){function e(){}return e.round=function(e){return isNaN(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 i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){var i=e[n];t+=i}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>'}})},fcd1:function(e,t,n){"use strict";n("efd5")},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},fdfd:function(e,t,n){e.exports={default:n("9e1c"),__esModule:!0}},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},febe:function(e,t,n){"use strict";n("8575")}})}));
67
67
  //# sourceMappingURL=super-ui.umd.min.js.map