jwt-ui 1.11.2 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/jwt-ui.es.js +2 -1
- package/lib/jwt-ui.umd.js +1 -1
- package/package.json +1 -1
package/lib/jwt-ui.umd.js
CHANGED
|
@@ -215,7 +215,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
215
215
|
* @author RubaXa <trash@rubaxa.org>
|
|
216
216
|
* @author owenm <owen23355@gmail.com>
|
|
217
217
|
* @license MIT
|
|
218
|
-
*/function WK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WK(Object(n),!0).forEach(function(i){n8e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WK(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pb=function(t){return typeof t}:Pb=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pb(e)}function n8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ra.apply(this,arguments)}function i8e(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function r8e(e,t){if(e==null)return{};var n=i8e(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var o8e="1.15.2";function Na(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ma=Na(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),um=Na(/Edge/i),KK=Na(/firefox/i),fm=Na(/safari/i)&&!Na(/chrome/i)&&!Na(/android/i),GK=Na(/iP(ad|od|hone)/i),JK=Na(/chrome/i)&&Na(/android/i),YK={capture:!1,passive:!1};function sn(e,t,n){e.addEventListener(t,n,!Ma&&YK)}function tn(e,t,n){e.removeEventListener(t,n,!Ma&&YK)}function jb(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{return!1}return!1}}function a8e(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Do(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&jb(e,t):jb(e,t))||i&&e===n)return e;if(e===n)break}while(e=a8e(e))}return null}var XK=/\s+/g;function jr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(XK," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(XK," ")}}function Ct(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function Qd(e,t){var n="";if(typeof e=="string")n=e;else do{var i=Ct(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ZK(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function sa(){var e=document.scrollingElement;return e||document.documentElement}function di(e,t,n,i,r){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,u,f,d,c;if(e!==window&&e.parentNode&&e!==sa()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,u=o.bottom,f=o.right,d=o.height,c=o.width):(s=0,a=0,u=window.innerHeight,f=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!Ma))do if(r&&r.getBoundingClientRect&&(Ct(r,"transform")!=="none"||n&&Ct(r,"position")!=="static")){var h=r.getBoundingClientRect();s-=h.top+parseInt(Ct(r,"border-top-width")),a-=h.left+parseInt(Ct(r,"border-left-width")),u=s+o.height,f=a+o.width;break}while(r=r.parentNode);if(i&&e!==window){var p=Qd(r||e),m=p&&p.a,y=p&&p.d;p&&(s/=y,a/=m,c/=m,d/=y,u=s+d,f=a+c)}return{top:s,left:a,bottom:u,right:f,width:c,height:d}}}function QK(e,t,n){for(var i=hl(e,!0),r=di(e)[t];i;){var o=di(i)[n],s=void 0;if(s=r>=o,!s)return i;if(i===sa())break;i=hl(i,!1)}return!1}function $d(e,t,n,i){for(var r=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==St.ghost&&(i||s[o]!==St.dragged)&&Do(s[o],n.draggable,e,!1)){if(r===t)return s[o];r++}o++}return null}function AE(e,t){for(var n=e.lastElementChild;n&&(n===St.ghost||Ct(n,"display")==="none"||t&&!jb(n,t));)n=n.previousElementSibling;return n||null}function oo(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==St.clone&&(!t||jb(e,t))&&n++;return n}function $K(e){var t=0,n=0,i=sa();if(e)do{var r=Qd(e),o=r.a,s=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function s8e(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function hl(e,t){if(!e||!e.getBoundingClientRect)return sa();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Ct(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return sa();if(i||t)return n;i=!0}}while(n=n.parentNode);return sa()}function l8e(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TE(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)}var dm;function eG(e,t){return function(){if(!dm){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),dm=setTimeout(function(){dm=void 0},t)}}}function u8e(){clearTimeout(dm),dm=void 0}function tG(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function nG(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)}function iG(e,t,n){var i={};return Array.from(e.children).forEach(function(r){var o,s,a,u;if(!(!Do(r,t.draggable,e,!1)||r.animated||r===n)){var f=di(r);i.left=Math.min((o=i.left)!==null&&o!==void 0?o:1/0,f.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,f.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,f.right),i.bottom=Math.max((u=i.bottom)!==null&&u!==void 0?u:-1/0,f.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Ir="Sortable"+new Date().getTime();function f8e(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(Ct(i,"display")==="none"||i===St.ghost)){e.push({target:i,rect:di(i)});var r=aa({},e[e.length-1].rect);if(i.thisAnimationDuration){var o=Qd(i,!0);o&&(r.top-=o.f,r.left-=o.e)}i.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(s8e(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,o=0;e.forEach(function(s){var a=0,u=s.target,f=u.fromRect,d=di(u),c=u.prevFromRect,h=u.prevToRect,p=s.rect,m=Qd(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&TE(c,d)&&!TE(f,d)&&(p.top-d.top)/(p.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(a=c8e(p,c,h,i.options)),TE(d,f)||(u.prevFromRect=f,u.prevToRect=d,a||(a=i.options.animation),i.animate(u,p,d,a)),a&&(r=!0,o=Math.max(o,a),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},a),u.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),e=[]},animate:function(n,i,r,o){if(o){Ct(n,"transition",""),Ct(n,"transform","");var s=Qd(this.el),a=s&&s.a,u=s&&s.d,f=(i.left-r.left)/(a||1),d=(i.top-r.top)/(u||1);n.animatingX=!!f,n.animatingY=!!d,Ct(n,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=d8e(n),Ct(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ct(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Ct(n,"transition",""),Ct(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function d8e(e){return e.offsetWidth}function c8e(e,t,n,i){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))*i.animation}var ec=[],OE={initializeByDefault:!0},cm={mount:function(e){for(var t in OE)OE.hasOwnProperty(t)&&!(t in e)&&(e[t]=OE[t]);ec.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ec.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ec.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](aa({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](aa({sortable:t},n)))})},initializePlugins:function(e,t,n,i){ec.forEach(function(s){var a=s.pluginName;if(!(!e.options[a]&&!s.initializeByDefault)){var u=new s(e,t,e.options);u.sortable=e,u.options=e.options,e[a]=u,Ra(n,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);typeof o<"u"&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return ec.forEach(function(i){typeof i.eventProperties=="function"&&Ra(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return ec.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(i=r.optionListeners[t].call(e[r.pluginName],n))}),i}};function h8e(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,u=e.oldIndex,f=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[Ir],!!t){var y,v=t.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Ma&&!um?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=r||n,y.clone=o,y.oldIndex=u,y.newIndex=f,y.oldDraggableIndex=d,y.newDraggableIndex=c,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var g=aa(aa({},m),cm.getEventProperties(i,t));for(var k in g)y[k]=g[k];n&&n.dispatchEvent(y),v[b]&&v[b].call(t,y)}}var p8e=["evt"],yr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=r8e(n,p8e);cm.pluginEvent.bind(St)(e,t,aa({dragEl:ot,parentEl:qn,ghostEl:jt,rootEl:jn,nextEl:Yu,lastDownEl:Ib,cloneEl:zn,cloneHidden:pl,dragStarted:pm,putSortable:ji,activeSortable:St.active,originalEvent:i,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl,hideGhostForTarget:fG,unhideGhostForTarget:dG,cloneNowHidden:function(){pl=!0},cloneNowShown:function(){pl=!1},dispatchSortableEvent:function(o){nr({sortable:t,name:o,originalEvent:i})}},r))};function nr(e){h8e(aa({putSortable:ji,cloneEl:zn,targetEl:ot,rootEl:jn,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl},e))}var ot,qn,jt,jn,Yu,Ib,zn,pl,tc,Rr,hm,gl,Rb,ji,nc=!1,Nb=!1,Mb=[],Xu,Ao,FE,PE,rG,oG,pm,ic,gm,mm=!1,Lb=!1,zb,Yi,jE=[],IE=!1,Vb=[],Ub=typeof document<"u",Hb=GK,aG=um||Ma?"cssFloat":"float",g8e=Ub&&!JK&&!GK&&"draggable"in document.createElement("div"),sG=function(){if(Ub){if(Ma)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),lG=function(e,t){var n=Ct(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=$d(e,0,t),o=$d(e,1,t),s=r&&Ct(r),a=o&&Ct(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+di(r).width,f=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+di(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return o&&(a.clear==="both"||a.clear===d)?"vertical":"horizontal"}return r&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&n[aG]==="none"||o&&n[aG]==="none"&&u+f>i)?"vertical":"horizontal"},m8e=function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,o=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,u=n?t.width:t.height;return i===s||r===a||i+o/2===s+u/2},v8e=function(e,t){var n;return Mb.some(function(i){var r=i[Ir].options.emptyInsertThreshold;if(!(!r||AE(i))){var o=di(i),s=e>=o.left-r&&e<=o.right+r,a=t>=o.top-r&&t<=o.bottom+r;if(s&&a)return n=i}}),n},uG=function(e){function t(r,o){return function(s,a,u,f){var d=s.options.group.name&&a.options.group.name&&s.options.group.name===a.options.group.name;if(r==null&&(o||d))return!0;if(r==null||r===!1)return!1;if(o&&r==="clone")return r;if(typeof r=="function")return t(r(s,a,u,f),o)(s,a,u,f);var c=(o?s:a).options.group.name;return r===!0||typeof r=="string"&&r===c||r.join&&r.indexOf(c)>-1}}var n={},i=e.group;(!i||Pb(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},fG=function(){!sG&&jt&&Ct(jt,"display","none")},dG=function(){!sG&&jt&&Ct(jt,"display","")};Ub&&!JK&&document.addEventListener("click",function(e){if(Nb)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Nb=!1,!1},!0);var Zu=function(e){if(ot){e=e.touches?e.touches[0]:e;var t=v8e(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ir]._onDragOver(n)}}},y8e=function(e){ot&&ot.parentNode[Ir]._isOutsideThisEl(e.target)};function St(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ra({},t),e[Ir]=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 lG(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(o,s){o.setData("Text",s.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:St.supportPointer!==!1&&"PointerEvent"in window&&!fm,emptyInsertThreshold:5};cm.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);uG(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:g8e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?sn(e,"pointerdown",this._onTapStart):(sn(e,"mousedown",this._onTapStart),sn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(sn(e,"dragover",this),sn(e,"dragenter",this)),Mb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ra(this,f8e())}St.prototype={constructor:St,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ic=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ot):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,a=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,f=i.filter;if(E8e(n),!ot&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&fm&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Do(a,i.draggable,n,!1),!(a&&a.animated)&&Ib!==a)){if(tc=oo(a),hm=oo(a,i.draggable),typeof f=="function"){if(f.call(this,e,a,this)){nr({sortable:t,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),yr("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Do(u,d.trim(),n,!1),d)return nr({sortable:t,rootEl:d,name:"filter",targetEl:a,fromEl:n,toEl:n}),yr("filter",t,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!Do(u,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i=this,r=i.el,o=i.options,s=r.ownerDocument,a;if(n&&!ot&&n.parentNode===r){var u=di(n);if(jn=r,ot=n,qn=ot.parentNode,Yu=ot.nextSibling,Ib=n,Rb=o.group,St.dragged=ot,Xu={target:ot,clientX:(t||e).clientX,clientY:(t||e).clientY},rG=Xu.clientX-u.left,oG=Xu.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ot.style["will-change"]="all",a=function(){if(yr("delayEnded",i,{evt:e}),St.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!KK&&i.nativeDraggable&&(ot.draggable=!0),i._triggerDragStart(e,t),nr({sortable:i,name:"choose",originalEvent:e}),jr(ot,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){ZK(ot,f.trim(),RE)}),sn(s,"dragover",Zu),sn(s,"mousemove",Zu),sn(s,"touchmove",Zu),sn(s,"mouseup",i._onDrop),sn(s,"touchend",i._onDrop),sn(s,"touchcancel",i._onDrop),KK&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(um||Ma))){if(St.eventCanceled){this._onDrop();return}sn(s,"mouseup",i._disableDelayedDrag),sn(s,"touchend",i._disableDelayedDrag),sn(s,"touchcancel",i._disableDelayedDrag),sn(s,"mousemove",i._delayedDragTouchMoveHandler),sn(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&sn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,o.delay)}else a()}},_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(){ot&&RE(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._disableDelayedDrag),tn(e,"touchend",this._disableDelayedDrag),tn(e,"touchcancel",this._disableDelayedDrag),tn(e,"mousemove",this._delayedDragTouchMoveHandler),tn(e,"touchmove",this._delayedDragTouchMoveHandler),tn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?sn(document,"pointermove",this._onTouchMove):t?sn(document,"touchmove",this._onTouchMove):sn(document,"mousemove",this._onTouchMove):(sn(ot,"dragend",this),sn(jn,"dragstart",this._onDragStart));try{document.selection?Wb(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(nc=!1,jn&&ot){yr("dragStarted",this,{evt:t}),this.nativeDraggable&&sn(document,"dragover",y8e);var n=this.options;!e&&jr(ot,n.dragClass,!1),jr(ot,n.ghostClass,!0),St.active=this,e&&this._appendGhost(),nr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ao){this._lastX=Ao.clientX,this._lastY=Ao.clientY,fG();for(var e=document.elementFromPoint(Ao.clientX,Ao.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ao.clientX,Ao.clientY),e!==t);)t=e;if(ot.parentNode[Ir]._isOutsideThisEl(e),t)do{if(t[Ir]){var n=void 0;if(n=t[Ir]._onDragOver({clientX:Ao.clientX,clientY:Ao.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dG()}},_onTouchMove:function(e){if(Xu){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=jt&&Qd(jt,!0),s=jt&&o&&o.a,a=jt&&o&&o.d,u=Hb&&Yi&&$K(Yi),f=(r.clientX-Xu.clientX+i.x)/(s||1)+(u?u[0]-jE[0]:0)/(s||1),d=(r.clientY-Xu.clientY+i.y)/(a||1)+(u?u[1]-jE[1]:0)/(a||1);if(!St.active&&!nc){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(jt){o?(o.e+=f-(FE||0),o.f+=d-(PE||0)):o={a:1,b:0,c:0,d:1,e:f,f:d};var c="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Ct(jt,"webkitTransform",c),Ct(jt,"mozTransform",c),Ct(jt,"msTransform",c),Ct(jt,"transform",c),FE=f,PE=d,Ao=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!jt){var e=this.options.fallbackOnBody?document.body:jn,t=di(ot,!0,Hb,!0,e),n=this.options;if(Hb){for(Yi=e;Ct(Yi,"position")==="static"&&Ct(Yi,"transform")==="none"&&Yi!==document;)Yi=Yi.parentNode;Yi!==document.body&&Yi!==document.documentElement?(Yi===document&&(Yi=sa()),t.top+=Yi.scrollTop,t.left+=Yi.scrollLeft):Yi=sa(),jE=$K(Yi)}jt=ot.cloneNode(!0),jr(jt,n.ghostClass,!1),jr(jt,n.fallbackClass,!0),jr(jt,n.dragClass,!0),Ct(jt,"transition",""),Ct(jt,"transform",""),Ct(jt,"box-sizing","border-box"),Ct(jt,"margin",0),Ct(jt,"top",t.top),Ct(jt,"left",t.left),Ct(jt,"width",t.width),Ct(jt,"height",t.height),Ct(jt,"opacity","0.8"),Ct(jt,"position",Hb?"absolute":"fixed"),Ct(jt,"zIndex","100000"),Ct(jt,"pointerEvents","none"),St.ghost=jt,e.appendChild(jt),Ct(jt,"transform-origin",rG/parseInt(jt.style.width)*100+"% "+oG/parseInt(jt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;if(yr("dragStart",this,{evt:e}),St.eventCanceled){this._onDrop();return}yr("setupClone",this),St.eventCanceled||(zn=nG(ot),zn.removeAttribute("id"),zn.draggable=!1,zn.style["will-change"]="",this._hideClone(),jr(zn,this.options.chosenClass,!1),St.clone=zn),n.cloneId=Wb(function(){yr("clone",n),!St.eventCanceled&&(n.options.removeCloneOnHide||jn.insertBefore(zn,ot),n._hideClone(),nr({sortable:n,name:"clone"}))}),!t&&jr(ot,r.dragClass,!0),t?(Nb=!0,n._loopId=setInterval(n._emulateDragOver,50)):(tn(document,"mouseup",n._onDrop),tn(document,"touchend",n._onDrop),tn(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,ot)),sn(document,"drop",n),Ct(ot,"transform","translateZ(0)")),nc=!0,n._dragStartId=Wb(n._dragStarted.bind(n,t,e)),sn(document,"selectstart",n),pm=!0,fm&&Ct(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,i,r,o,s=this.options,a=s.group,u=St.active,f=Rb===a,d=s.sort,c=ji||u,h,p=this,m=!1;if(IE)return;function y(H,Q){yr(H,p,aa({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:r,canSort:d,fromSortable:c,target:n,completed:b,onMove:function(ie,ae){return qb(jn,t,ot,i,ie,di(ie),e,ae)},changed:g},Q))}function v(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==c&&c.captureAnimationState()}function b(H){return y("dragOverCompleted",{insertion:H}),H&&(f?u._hideClone():u._showClone(p),p!==c&&(jr(ot,ji?ji.options.ghostClass:u.options.ghostClass,!1),jr(ot,s.ghostClass,!0)),ji!==p&&p!==St.active?ji=p:p===St.active&&ji&&(ji=null),c===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==c&&(c.animateAll(),c._ignoreWhileAnimating=null)),(n===ot&&!ot.animated||n===t&&!n.animated)&&(ic=null),!s.dragoverBubble&&!e.rootEl&&n!==document&&(ot.parentNode[Ir]._isOutsideThisEl(e.target),!H&&Zu(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function g(){Rr=oo(ot),gl=oo(ot,s.draggable),nr({sortable:p,name:"change",toEl:t,newIndex:Rr,newDraggableIndex:gl,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Do(n,s.draggable,t,!0),y("dragOver"),St.eventCanceled)return m;if(ot.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return b(!1);if(Nb=!1,u&&!s.disabled&&(f?d||(o=qn!==jn):ji===this||(this.lastPutMode=Rb.checkPull(this,u,ot,e))&&a.checkPut(this,u,ot,e))){if(h=this._getDirection(e,n)==="vertical",i=di(ot),y("dragOverValid"),St.eventCanceled)return m;if(o)return qn=jn,v(),this._hideClone(),y("revert"),St.eventCanceled||(Yu?jn.insertBefore(ot,Yu):jn.appendChild(ot)),b(!0);var k=AE(t,s.draggable);if(!k||_8e(e,h,this)&&!k.animated){if(k===ot)return b(!1);if(k&&t===e.target&&(n=k),n&&(r=di(n)),qb(jn,t,ot,i,n,r,e,!!n)!==!1)return v(),k&&k.nextSibling?t.insertBefore(ot,k.nextSibling):t.appendChild(ot),qn=t,g(),b(!0)}else if(k&&w8e(e,h,this)){var w=$d(t,0,s,!0);if(w===ot)return b(!1);if(n=w,r=di(n),qb(jn,t,ot,i,n,r,e,!1)!==!1)return v(),t.insertBefore(ot,w),qn=t,g(),b(!0)}else if(n.parentNode===t){r=di(n);var T=0,S,_=ot.parentNode!==t,A=!m8e(ot.animated&&ot.toRect||i,n.animated&&n.toRect||r,h),D=h?"top":"left",x=QK(n,"top","top")||QK(ot,"top","top"),B=x?x.scrollTop:void 0;ic!==n&&(S=r[D],mm=!1,Lb=!A&&s.invertSwap||_),T=C8e(e,n,r,h,A?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Lb,ic===n);var E;if(T!==0){var F=oo(ot);do F-=T,E=qn.children[F];while(E&&(Ct(E,"display")==="none"||E===jt))}if(T===0||E===n)return b(!1);ic=n,gm=T;var C=n.nextElementSibling,I=!1;I=T===1;var N=qb(jn,t,ot,i,n,r,e,I);if(N!==!1)return(N===1||N===-1)&&(I=N===1),IE=!0,setTimeout(k8e,30),v(),I&&!C?t.appendChild(ot):n.parentNode.insertBefore(ot,I?C:n),x&&tG(x,0,B-x.scrollTop),qn=ot.parentNode,S!==void 0&&!Lb&&(zb=Math.abs(S-di(n)[D])),g(),b(!0)}if(t.contains(ot))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){tn(document,"mousemove",this._onTouchMove),tn(document,"touchmove",this._onTouchMove),tn(document,"pointermove",this._onTouchMove),tn(document,"dragover",Zu),tn(document,"mousemove",Zu),tn(document,"touchmove",Zu)},_offUpEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._onDrop),tn(e,"touchend",this._onDrop),tn(e,"pointerup",this._onDrop),tn(e,"touchcancel",this._onDrop),tn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(Rr=oo(ot),gl=oo(ot,n.draggable),yr("drop",this,{evt:e}),qn=ot&&ot.parentNode,Rr=oo(ot),gl=oo(ot,n.draggable),St.eventCanceled){this._nulling();return}nc=!1,Lb=!1,mm=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),NE(this.cloneId),NE(this._dragStartId),this.nativeDraggable&&(tn(document,"drop",this),tn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),fm&&Ct(document.body,"user-select",""),Ct(ot,"transform",""),e&&(pm&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),jt&&jt.parentNode&&jt.parentNode.removeChild(jt),(jn===qn||ji&&ji.lastPutMode!=="clone")&&zn&&zn.parentNode&&zn.parentNode.removeChild(zn),ot&&(this.nativeDraggable&&tn(ot,"dragend",this),RE(ot),ot.style["will-change"]="",pm&&!nc&&jr(ot,ji?ji.options.ghostClass:this.options.ghostClass,!1),jr(ot,this.options.chosenClass,!1),nr({sortable:this,name:"unchoose",toEl:qn,newIndex:null,newDraggableIndex:null,originalEvent:e}),jn!==qn?(Rr>=0&&(nr({rootEl:qn,name:"add",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"remove",toEl:qn,originalEvent:e}),nr({rootEl:qn,name:"sort",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),ji&&ji.save()):Rr!==tc&&Rr>=0&&(nr({sortable:this,name:"update",toEl:qn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),St.active&&((Rr==null||Rr===-1)&&(Rr=tc,gl=hm),nr({sortable:this,name:"end",toEl:qn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yr("nulling",this),jn=ot=qn=jt=Yu=zn=Ib=pl=Xu=Ao=pm=Rr=gl=tc=hm=ic=gm=ji=Rb=St.dragged=St.ghost=St.clone=St.active=null,Vb.forEach(function(e){e.checked=!0}),Vb.length=FE=PE=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ot&&(this._onDragOver(e),b8e(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],Do(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||x8e(t));return e},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(r,o){var s=i.children[o];Do(s,this.options.draggable,i,!1)&&(n[r]=s)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Do(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var i=cm.modifyOption(this,e,t);typeof i<"u"?n[e]=i:n[e]=t,e==="group"&&uG(n)},destroy:function(){yr("destroy",this);var e=this.el;e[Ir]=null,tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart),tn(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Mb.splice(Mb.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pl){if(yr("hideClone",this),St.eventCanceled)return;Ct(zn,"display","none"),this.options.removeCloneOnHide&&zn.parentNode&&zn.parentNode.removeChild(zn),pl=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pl){if(yr("showClone",this),St.eventCanceled)return;ot.parentNode==jn&&!this.options.group.revertClone?jn.insertBefore(zn,ot):Yu?jn.insertBefore(zn,Yu):jn.appendChild(zn),this.options.group.revertClone&&this.animate(ot,zn),Ct(zn,"display",""),pl=!1}}};function b8e(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function qb(e,t,n,i,r,o,s,a){var u,f=e[Ir],d=f.options.onMove,c;return window.CustomEvent&&!Ma&&!um?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=n,u.draggedRect=i,u.related=r||t,u.relatedRect=o||di(t),u.willInsertAfter=a,u.originalEvent=s,e.dispatchEvent(u),d&&(c=d.call(f,u,s)),c}function RE(e){e.draggable=!1}function k8e(){IE=!1}function w8e(e,t,n){var i=di($d(n.el,0,n.options,!0)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX<r.left-o||e.clientY<i.top&&e.clientX<i.right:e.clientY<r.top-o||e.clientY<i.bottom&&e.clientX<i.left}function _8e(e,t,n){var i=di(AE(n.el,n.options.draggable)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX>r.right+o||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>r.bottom+o||e.clientX>i.right&&e.clientY>i.top}function C8e(e,t,n,i,r,o,s,a){var u=i?e.clientY:e.clientX,f=i?n.height:n.width,d=i?n.top:n.left,c=i?n.bottom:n.right,h=!1;if(!s){if(a&&zb<f*r){if(!mm&&(gm===1?u>d+f*o/2:u<c-f*o/2)&&(mm=!0),mm)h=!0;else if(gm===1?u<d+zb:u>c-zb)return-gm}else if(u>d+f*(1-r)/2&&u<c-f*(1-r)/2)return S8e(t)}return h=h||s,h&&(u<d+f*o/2||u>c-f*o/2)?u>d+f/2?1:-1:0}function S8e(e){return oo(ot)<oo(e)?1:-1}function x8e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function E8e(e){Vb.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Vb.push(i)}}function Wb(e){return setTimeout(e,0)}function NE(e){return clearTimeout(e)}Ub&&sn(document,"touchmove",function(e){(St.active||nc)&&e.cancelable&&e.preventDefault()}),St.utils={on:sn,off:tn,css:Ct,find:ZK,is:function(e,t){return!!Do(e,t,e,!1)},extend:l8e,throttle:eG,closest:Do,toggleClass:jr,clone:nG,index:oo,nextTick:Wb,cancelNextTick:NE,detectDirection:lG,getChild:$d},St.get=function(e){return e[Ir]},St.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(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(St.utils=aa(aa({},St.utils),i.utils)),cm.mount(i)})},St.create=function(e,t){return new St(e,t)},St.version=o8e;var ci=[],vm,ME,LE=!1,zE,VE,Kb,ym;function B8e(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?sn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?sn(document,"pointermove",this._handleFallbackAutoScroll):n.touches?sn(document,"touchmove",this._handleFallbackAutoScroll):sn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):(tn(document,"pointermove",this._handleFallbackAutoScroll),tn(document,"touchmove",this._handleFallbackAutoScroll),tn(document,"mousemove",this._handleFallbackAutoScroll)),cG(),Gb(),u8e()},nulling:function(){Kb=ME=vm=LE=ym=zE=VE=null,ci.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(r,o);if(Kb=t,n||this.options.forceAutoScrollFallback||um||Ma||fm){UE(t,this.options,s,n);var a=hl(s,!0);LE&&(!ym||r!==zE||o!==VE)&&(ym&&cG(),ym=setInterval(function(){var u=hl(document.elementFromPoint(r,o),!0);u!==a&&(a=u,Gb()),UE(t,i.options,u,n)},10),zE=r,VE=o)}else{if(!this.options.bubbleScroll||hl(s,!0)===sa()){Gb();return}UE(t,this.options,hl(s,!1),!1)}}},Ra(e,{pluginName:"scroll",initializeByDefault:!0})}function Gb(){ci.forEach(function(e){clearInterval(e.pid)}),ci=[]}function cG(){clearInterval(ym)}var UE=eG(function(e,t,n,i){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,u=sa(),f=!1,d;ME!==n&&(ME=n,Gb(),vm=t.scroll,d=t.scrollFn,vm===!0&&(vm=hl(n,!0)));var c=0,h=vm;do{var p=h,m=di(p),y=m.top,v=m.bottom,b=m.left,g=m.right,k=m.width,w=m.height,T=void 0,S=void 0,_=p.scrollWidth,A=p.scrollHeight,D=Ct(p),x=p.scrollLeft,B=p.scrollTop;p===u?(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"));var E=T&&(Math.abs(g-r)<=s&&x+k<_)-(Math.abs(b-r)<=s&&!!x),F=S&&(Math.abs(v-o)<=s&&B+w<A)-(Math.abs(y-o)<=s&&!!B);if(!ci[c])for(var C=0;C<=c;C++)ci[C]||(ci[C]={});(ci[c].vx!=E||ci[c].vy!=F||ci[c].el!==p)&&(ci[c].el=p,ci[c].vx=E,ci[c].vy=F,clearInterval(ci[c].pid),(E!=0||F!=0)&&(f=!0,ci[c].pid=setInterval((function(){i&&this.layer===0&&St.active._onTouchMove(Kb);var I=ci[this.layer].vy?ci[this.layer].vy*a:0,N=ci[this.layer].vx?ci[this.layer].vx*a:0;typeof d=="function"&&d.call(St.dragged.parentNode[Ir],N,I,e,Kb,ci[this.layer].el)!=="continue"||tG(ci[this.layer].el,N,I)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&h!==u&&(h=hl(h,!1)));LE=f}},30),hG=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var u=n||r;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);a(),u&&!u.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function HE(){}HE.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 i=$d(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:hG},Ra(HE,{pluginName:"revertOnSpill"});function qE(){}qE.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:hG},Ra(qE,{pluginName:"removeOnSpill"}),St.mount(new B8e),St.mount(qE,HE);function D8e(e){return e==null?e:JSON.parse(JSON.stringify(e))}function A8e(e){l.getCurrentInstance()&&l.onUnmounted(e)}function T8e(e){l.getCurrentInstance()?l.onMounted(e):l.nextTick(e)}let pG=null,gG=null;function mG(e=null,t=null){pG=e,gG=t}function O8e(){return{data:pG,clonedData:gG}}const vG=Symbol("cloneElement");function F8e(...e){var t,n;const i=(t=l.getCurrentInstance())==null?void 0:t.proxy;let r=null;const o=e[0];let[,s,a]=e;Array.isArray(l.unref(s))||(a=s,s=null);let u=null;const{immediate:f=!0,clone:d=D8e,customUpdate:c}=(n=l.unref(a))!=null?n:{};function h(A){var D;const{from:x,oldIndex:B,item:E}=A;r=Array.from(x.childNodes);const F=l.unref((D=l.unref(s))==null?void 0:D[B]),C=d(F);mG(F,C),E[vG]=C}function p(A){const D=A.item[vG];if(!J5e(D)){if(DE(A.item),l.isRef(s)){const x=[...l.unref(s)];s.value=UK(x,A.newDraggableIndex,D);return}UK(l.unref(s),A.newDraggableIndex,D)}}function m(A){const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,pullMode:F,clone:C}=A;if(HK(D,x,B),F==="clone"){DE(C);return}if(l.isRef(s)){const I=[...l.unref(s)];s.value=VK(I,E);return}VK(l.unref(s),E)}function y(A){if(c){c(A);return}const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,newDraggableIndex:F}=A;if(DE(x),HK(D,x,B),l.isRef(s)){const C=[...l.unref(s)];s.value=zK(C,E,F);return}zK(l.unref(s),E,F)}function v(A){const{newIndex:D,oldIndex:x,from:B,to:E}=A;let F=null;const C=D===x&&B===E;try{if(C){let I=null;r==null||r.some((N,H)=>{if(I&&(r==null?void 0:r.length)!==E.childNodes.length)return B.insertBefore(I,N.nextSibling),!0;const Q=E.childNodes[H];I=E==null?void 0:E.replaceChild(N,Q)})}}catch(I){F=I}finally{r=null}l.nextTick(()=>{if(mG(),F)throw F})}const b={onUpdate:y,onStart:h,onAdd:p,onRemove:m,onEnd:v};function g(A){const D=l.unref(o);return A||(A=Y5e(D)?X5e(D,i==null?void 0:i.$el):D),A&&!$5e(A)&&(A=A.$el),A||void 0,A}function k(){var A;const D=(A=l.unref(a))!=null?A:{},x=LK(D,["immediate","clone"]);return qK(x,(B,E)=>{e8e(B)&&(x[B]=(F,...C)=>{const I=O8e();return t8e(F,I),E(F,...C)})}),Q5e(s===null?{}:b,x)}const w=A=>{A=g(A),u&&T.destroy(),u=new St(A,k())};l.watch(()=>a,()=>{u&&qK(k(),(A,D)=>{u==null||u.option(A,D)})},{deep:!0});const T={option:(A,D)=>u==null?void 0:u.option(A,D),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...A)=>u==null?void 0:u.closest(...A)},S=()=>T==null?void 0:T.option("disabled",!0),_=()=>T==null?void 0:T.option("disabled",!1);return T8e(()=>{f&&w()}),A8e(T.destroy),Zd({start:w,pause:S,resume:_},T)}const WE=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],P8e=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...WE.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],yG=l.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:P8e,emits:["update:modelValue",...WE],setup(e,{slots:t,emit:n,expose:i,attrs:r}){const o=WE.reduce((d,c)=>{const h=`on${c.replace(/^\S/,p=>p.toUpperCase())}`;return d[h]=(...p)=>n(c,...p),d},{}),s=l.computed(()=>{const d=l.toRefs(e),c=LK(d,["modelValue"]),h=Object.entries(c).reduce((p,[m,y])=>{const v=l.unref(y);return v!==void 0&&(p[m]=v),p},{});return Zd(Zd({},o),G5e(Zd(Zd({},r),h)))}),a=l.computed({get:()=>e.modelValue,set:d=>n("update:modelValue",d)}),u=l.ref(),f=l.reactive(F8e(e.target||u,a,s));return i(f),()=>{var d;return l.h(e.tag||"div",{ref:u},(d=t==null?void 0:t.default)==null?void 0:d.call(t,f))}}}),j8e={class:"c0 omit ex fs13 plr4"},I8e={class:"b g6"},R8e=["title"],bG={__name:"tableContentControl",props:{modelValue:{type:Array,default:()=>[]},dragTitleKey:{type:String,default:"title"}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:u=>{i("update:modelValue",u)}}),o=l.computed(()=>{let u=1/0;return n.modelValue.forEach(f=>{u=Math.min(u,f.rank)}),u||1});function s(u){return rr(n.dragTitleKey,u)}function a(u){i("sort",u,o.value)}return(u,f)=>{const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-button"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:60vh;overflow-y:auto;",trigger:"hover",width:240},{reference:l.withCtx(()=>[l.createVNode(c,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(d,{icon:"draggable",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:a},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(p,m)=>(l.openBlock(),l.createElementBlock("div",{key:p.id,class:"cpm ptb4 w fxmc"},[l.createVNode(d,{class:"g9",icon:"drag-drop-line"}),l.createElementVNode("div",j8e,[l.createElementVNode("span",I8e,l.toDisplayString(o.value+m),1),l.createElementVNode("span",{class:"ml4",title:s(p)},l.toDisplayString(s(p)),9,R8e)])]))),128))]),_:1},8,["modelValue"])]),_:1})}}},N8e=Object.freeze(Object.defineProperty({__proto__:null,default:bG},Symbol.toStringTag,{value:"Module"})),KE={__name:"tableFieldControl",props:{modelValue:{type:Array,default:()=>[]}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:a=>{i("update:modelValue",a)}});function o(a){i("sort",a)}function s(a,u){i("change",a,u)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-checkbox"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:70vh;overflow-y:auto;",trigger:"hover",width:210},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"settings-line",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,p=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:p.id},[l.createVNode(f,{icon:"drag-drop-line"}),l.createVNode(c,{checked:p.checked,class:"ml5",onChange:m=>s(p,a.index)},{default:l.withCtx(()=>[l.createElementVNode("span",{class:l.normalizeClass(p.label.length>6?"fs12":"")},l.toDisplayString(p.label),3)]),_:2},1032,["checked","onChange"])],512)),[[l.vShow,!p.isOperate]])),128))]),_:1},8,["modelValue"])]),_:1})}}},M8e=Object.freeze(Object.defineProperty({__proto__:null,default:KE},Symbol.toStringTag,{value:"Module"})),kG={__name:"tableListContent",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:null},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","show-file"],setup(e,{expose:t,emit:n}){const i=e,r=n,o=l.ref(null),s=l.computed(()=>{var b,g;return((((b=i==null?void 0:i.pagination)==null?void 0:b.currentPage)||1)-1)*(((g=i==null?void 0:i.pagination)==null?void 0:g.pageSize)||15)});function a(b){r("table-current-change",b)}function u(b,g,k,w){r("header-dragend",b,g,k,w)}function f(b){r("selection-change",b)}function d(b={}){r("sort-change",b)}function c(b){r("change-table-column","fixed",b)}function h(b,g,k){r("table-action",b,g,k)}function p(b={},g={}){r("edit-row",b,g)}function m(b,g){r("click-cell",b,g)}function y(b){r("show-file",b)}function v(b,g,k,w){var T;r("dbclick-cell",{row:b,column:g,cell:k,event:w,text:((T=w==null?void 0:w.target)==null?void 0:T.textContent)||""})}return t({tableRef:o}),(b,g)=>{const k=l.resolveComponent("jwt-table-button"),w=l.resolveComponent("jwt-column-item"),T=l.resolveComponent("el-table-column"),S=l.resolveComponent("el-table"),_=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createBlock(S,l.mergeProps(e.tableAttr,{ref_key:"tableRef",ref:o,"default-sort":e.defaultSort,class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.tableEvents),{onCellDblclick:v,onCurrentChange:a,onHeaderDragend:u,onSelectionChange:f,onSortChange:d}),{default:l.withCtx(()=>[l.renderSlot(b.$slots,"table-content-before"),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(A,D)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:D},[A.checked?(l.openBlock(),l.createBlock(T,l.mergeProps({key:0,align:A.align||"center",fixed:A.fixed,ref_for:!0},A.attrs,{"min-width":A.minWidth?A.minWidth:null,prop:A.prop,sortable:A.sortable,type:A.type,width:A.width?A.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(Ob,{item:A,onFixed:x=>c(A)},null,8,["item","onFixed"])]),_:2},[A.type?A.type==="expand"?{name:"default",fn:l.withCtx(({row:x})=>[l.renderSlot(b.$slots,A.prop,{index:D,scope:x})]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:x,$index:B})=>[A.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(b.$slots,"action-before",{scope:x}),l.createVNode(k,{config:A,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:x,"show-button-num":e.tableButtonNum,onTableAction:E=>h(E,x,A)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(b.$slots,"action-after",{scope:x})],64)):A.isColumn?l.renderSlot(b.$slots,A.prop,{key:1,index:D,scope:x}):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(A==null?void 0:A.columnCls)||"fxmc","w mw"])},[l.renderSlot(b.$slots,A.slotPreName,{scope:x}),l.renderSlot(b.$slots,A.prop,{index:D,rowindex:B,pagestart:s.value,scope:x},()=>[l.createVNode(w,{index:B,item:A,row:x,pagestart:s.value,onChange:p,onClickCell:m,onShowFile:y},null,8,["index","item","row","pagestart"])]),l.renderSlot(b.$slots,A.slotSufName,{scope:x})],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(b.$slots,"table-content-after",{list:e.tableData})]),_:3},16,["default-sort","data","element-loading-text","height","size"])),[[_,e.ajaxLoading]])}}},L8e=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),z8e={class:"table-list-actions"},V8e={class:"fx fxwp"},U8e=l.defineComponent({name:"JwtTableButton"}),wG=l.defineComponent({...U8e,props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showButtonNum:{type:Number,default:3},showIcon:{type:Boolean,default:!1},showText:{type:Boolean,default:!0}},emits:["table-action"],setup(e,{emit:t}){const n=e,i=t,{visibleActions:r,tableButtonActions:o,hasOverflowActions:s}=PK(n),a=(u,f)=>{i("table-action",{action:f,e:u})};return(u,f)=>{var h;const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-popover");return l.openBlock(),l.createElementBlock("div",z8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,link:"",size:"small",action:p,"show-icon":e.showIcon,"show-text":e.showText,onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128)),l.unref(s)?(l.openBlock(),l.createBlock(c,{key:0,placement:"bottom",trigger:"hover",persistent:!1,width:150},{reference:l.withCtx(()=>[l.createVNode(d,{class:"ml5 cp",icon:"more-fill"})]),default:l.withCtx(()=>[l.createElementVNode("div",V8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,action:p,link:"","show-icon":e.showIcon,"show-text":e.showText,size:"small",onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128))])]),_:1})):l.createCommentVNode("",!0),(h=l.unref(r))!=null&&h.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(" ")],64))])}}}),H8e=Object.freeze(Object.defineProperty({__proto__:null,default:wG},Symbol.toStringTag,{value:"Module"})),q8e=["element-loading-text"],W8e={class:"fxmc c0",style:{padding:"10px 0","justify-content":"center",height:"100%","background-color":"var(--el-table-row-hover-bg-color)"}},_G=Qt({__name:"tableListContentVirtualized",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:"72vh"},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},estimatedRowHeight:{type:Number,default:50},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","selection-header-change","selection-column-change","show-file"],setup(e,{emit:t}){const n=e,i=l.computed(()=>{var h,p;return((h=n.tableAttr)==null?void 0:h["show-summary"])&&((p=n.tableAttr)==null?void 0:p.summaryMethod)}),r=l.computed(()=>{var h,p;return((((h=n==null?void 0:n.pagination)==null?void 0:h.currentPage)||1)-1)*(((p=n==null?void 0:n.pagination)==null?void 0:p.pageSize)||15)}),o=t,s=l.useSlots(),a=l.computed(()=>n.appTableColumn.map(h=>({...h,align:h.align||"center",title:h.label,key:h.prop,property:h.prop,width:h.width||h.minWidth||150,dataKey:h.prop,headerCellRenderer:()=>l.h(Ob,{item:h,tableData:n.tableData,onFixed:()=>o("change-table-column","fixed",h),onSelect:p=>o("selection-header-change",p)}),cellRenderer:({rowData:p,rowIndex:m,columnIndex:y})=>{const v={index:y,rowindex:m,scope:p,row:p,item:h,pagestart:r.value};return h.action?l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[s["action-before"]?s["action-before"]({scope:p}):null,l.h(wG,{config:h,"current-path":n.currentPagePath,"menus-obj":n.userMenusAuth,row:p,"show-button-num":n.tableButtonNum,onTableAction:b=>o("table-action",b,p,h)}),s["action-after"]?s["action-after"]({scope:p}):null]):(h==null?void 0:h.type)==="selection"?l.h(lt.ElCheckbox,{modelValue:p.selectionChecked,onChange:b=>{p.selectionChecked=b,o("selection-column-change",b,p)}}):l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[h.slotPreName&&s[h.slotPreName]?s[h.slotPreName](v):null,s[h.prop]?s[h.prop](v):l.h(R7,{item:h,row:p,index:m,pagestart:r.value,onChange:(b,g)=>o("edit-row",b,g),onClickCell:(b,g)=>o("click-cell",b,g),onShowFile:b=>o("show-file",b)}),h.slotSufName&&s[h.slotSufName]?s[h.slotSufName](v):null])}})).filter(h=>!h.hide)),u=l.computed(()=>{var h;if(i.value){const p=(h=n.tableAttr)==null?void 0:h.summaryMethod({columns:a.value,data:n.tableData});let m=[];return p.forEach((y,v)=>{y&&y!=="-"&&v&&m.push(`${a.value[v].label}: ${y}`)}),m.length?`总计:${m.join("、")}`:""}return""}),f=l.ref({order:"desc"});function d(h){o("sort-change",{prop:h.key,order:h.order==="asc"?"ascending":"descending",column:h.column}),f.value=h}function c(h,p,m){var y;o("dbclick-cell",{row:p,column:m,event:h,text:((y=h==null?void 0:h.currentTarget)==null?void 0:y.textContent)||""})}return(h,p)=>{const m=l.resolveComponent("el-table-v2"),y=l.resolveComponent("el-auto-resizer"),v=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",{"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,style:l.normalizeStyle({height:e.tableHeight})},[l.createVNode(y,null,{default:l.withCtx(({height:b,width:g})=>[l.createVNode(m,l.mergeProps({columns:a.value,data:e.tableData,"estimated-row-height":e.estimatedRowHeight,fixed:"","footer-height":40,height:b,"sort-by":e.defaultSort,width:g},e.tableAttr,l.toHandlers(e.tableEvents),{onColumnSort:d}),l.createSlots({_:2},[i.value&&u.value?{name:"footer",fn:l.withCtx(()=>[l.createElementVNode("div",W8e,l.toDisplayString(u.value),1)]),key:"0"}:void 0]),1040,["columns","data","estimated-row-height","height","sort-by","width"])]),_:1})],12,q8e)),[[v,e.ajaxLoading]])}}},[["__scopeId","data-v-7ecf0778"]]),K8e=Object.freeze(Object.defineProperty({__proto__:null,default:_G},Symbol.toStringTag,{value:"Module"})),GE={__name:"tableSizeSetting",emits:["tableSize"],setup(e,{emit:t}){const n=t,i=ir.get("tableSize")||"default",r=l.ref(i),o=[{title:Pe("大"),size:"large",imgSize:70},{title:Pe("中"),size:"default",imgSize:60},{title:Pe("小"),size:"small",imgSize:40}];function s(a){n("tableSize",a)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-radio"),h=l.resolveComponent("el-radio-group"),p=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(p,{persistent:!1,placement:"bottom",trigger:"hover",width:200},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"line-height",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(h,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=m=>r.value=m),onChange:s},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(o,(m,y)=>l.createVNode(c,{key:y,label:m.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.title),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])])]),_:1})}}},G8e=Object.freeze(Object.defineProperty({__proto__:null,default:GE},Symbol.toStringTag,{value:"Module"})),J8e=l.defineComponent({name:"JwtTableCopy",components:{TableSizeSetting:GE,TableFieldControl:KE,TableColumnHeader:Ob},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change"],setup(e,{emit:t}){var se,xe,Le,Te;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.shallowRef(null),v=l.computed(()=>d.value.map(ne=>ne.id).join(",")),b=l.computed(()=>{var ne;return((ne=p.value)==null?void 0:ne.editBoxRefModel)||{}}),g=l.computed(()=>{var ne;return((ne=m.value)==null?void 0:ne.editBoxRefModel)||{}}),k=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),w=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),T=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),S=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0},virtualized:!1,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let _=Ke.merge({},S,{useField:!0,keepAliveTabs:!0},e.config);const A=()=>{var ne;return((ne=e==null?void 0:e.config)==null?void 0:ne.tablePageSizeName)||"pageSize"},D=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(A())||((se=_.tableListParams)==null?void 0:se.per_page)||_.pagination["page-sizes"][2],totalCount:1,sort:((xe=_.tableListParams)==null?void 0:xe.sort)||"id",order:((Le=_.tableListParams)==null?void 0:Le.order)||"desc"}),x=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),E={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},F=l.shallowReactive({attrs:{...E},visible:!1,config:{},detailInfo:{},contentConfig:{}}),C=l.computed(()=>{var ne;return F.descriptionEdit||(ne=F==null?void 0:F.attrs)!=null&&ne.refresh?l.reactive(F.detailInfo):F.detailInfo}),I=()=>{var Ce;const ne={};for(const Re in e.userMenusAuth){const{id:ze}=((Ce=e.userMenusAuth)==null?void 0:Ce[Re])||"";ze&&(ne[ze]=Re)}return ne},N=l.computed(()=>{let ne=e.route.path||"";return e!=null&&e.refMenuId&&(ne=I()[e.refMenuId]),e!=null&&e.pageUrl&&(ne=e==null?void 0:e.pageUrl),ne||""}),H=l.computed(()=>Pe("加载数据中")||"加载数据中..."),Q=(ne={})=>{const{query:Ce}=e.route;let Re={...c.value,...ne};if((Ce.fromJump||Ce.openType)&&!(e!=null&&e.refMenuId)){for(let[ze,$e]of Object.entries(Ce))Ke.isArray($e)?Re[ze]=$e.map(ut=>+ut):Re[ze]=$e;Re.openType&&delete Re.openType,delete Re.fromJump}c.value=Re,ae(ne)},ie=()=>{var ne,Ce;return{..._.tableListParams||{},page:D.currentPage,per_page:D.pageSize,sort:D.sort||((ne=_.tableListParams)==null?void 0:ne.sort)||"",order:D.order||((Ce=_.tableListParams)==null?void 0:Ce.order)||"",...c.value||{}}},ae=(ne={})=>{const Ce=ie(),Re=Ke.merge({},Ce,ne);M(Re)},M=ne=>{if(!_.tableListApi){_.tableData&&(o.value=_.tableData);return}a.ajaxLoading=!0,n.request({url:_.tableListApi,method:"get",params:ne}).then(Ce=>{let Re=null;_.hasPagination?(_!=null&&_.tableListCallback&&Ke.isFunction(_.tableListCallback)?Re=_.tableListCallback(Ce.data,Ce):Re=Ce.data,o.value=e.freezeList?l.markRaw(Re.map(ze=>l.markRaw(ze))):Re,D.pageCount=Ce==null?void 0:Ce.totalPage,D.totalCount=Ce.total,D.currentPage=Ce.current_page):(Re=Ce,o.value=e.freezeList?l.markRaw(Re):Re),Re=null,a.tableStatistics=(Ce==null?void 0:Ce.statistics)||null,a.ajaxLoading=!1,j(Ce.data),t("tablelist-change",Ce.data)}).catch(()=>{a.ajaxLoading=!1})},j=(ne=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:Ce,openType:Re}}=e.route;if(Re&&Ce&&ne.length===1){if(Re==="edit")$n(ne[0],{});else if(Re.includes("Detail")){const ze=s.value.find($e=>{var ut;return((ut=$e==null?void 0:$e.publicDrawerConfig)==null?void 0:ut.openName)===Re});ze!=null&&ze.id&&t("click-cell",ne[0],ze)}}},V=()=>{D.currentPage=1;const ne={page:1,per_page:D.pageSize};c.value={},l.nextTick(()=>{ae(ne)})},L=(ne,Ce)=>{c.value[ne]=Ce},W=ne=>{var Ce,Re;D.currentPage=1,(Re=(Ce=e.config)==null?void 0:Ce.tableSearch)!=null&&Re.onlyData?c.value={...ne}:c.value={...c.value,...ne},t("search-result",ne),ae(ne)},G=ne=>{D.currentPage=ne,ae({page:ne})},$=ne=>{D.pageSize=ne;const Ce=A();ir.set(Ce,ne),ae({per_page:ne})},re=ne=>{d.value=ne,t("selection-change",ne)},be=({prop:ne,order:Ce})=>{D.sort=ne,D.order=Ce==="ascending"?"asc":"desc",ae({sort:ne,order:Ce==="ascending"?"asc":"desc"})},Se=ne=>{t("table-current-change",ne)},ee=()=>{var ne,Ce,Re,ze;if(B.visible){B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1;return}F.visible&&Oe(),(Ce=(ne=x==null?void 0:x.config)==null?void 0:ne.api)!=null&&Ce.refreshDraw&&t("refresh-draw"),((ze=(Re=x==null?void 0:x.config)==null?void 0:Re.api)!=null&&ze.refreshTable||x!=null&&x.refreshTable)&&t("refresh-table"),x.visible=!1,x.config=null,x.model=null,a.submitLoading=!1,t("list-change"),!x.stopGetList&&ae()},we=(ne,Ce)=>{var Re,ze,$e;x.visible&&(Re=x==null?void 0:x.config)!=null&&Re.addSuccess&&Ke.isFunction((ze=x==null?void 0:x.config)==null?void 0:ze.addSuccess)&&(($e=x==null?void 0:x.config)==null||$e.addSuccess(c,L)),ee(),t("add-success",ne,Ce)},Ee=(ne,Ce)=>{ee(),t("edit-success",ne,Ce)},P=()=>{F.visible=!0},le=(ne,Ce)=>{n.request({url:_.tableCopyApi,method:"post",data:ne}).then(()=>{t("copy-success",Ce),ae()})},me=(ne,Ce,Re,ze=[],$e=!1)=>{Ik(ne,Ce,Re,{selectionRow:ze,cancel:$e,callback:(ut,We)=>{var ft,dt;t("des-edit-success",ut,We),Ce.refreshTable&&R(),Ce!=null&&Ce.refreshDraw&&ve(),(dt=(ft=Ce==null?void 0:Ce.api)==null?void 0:ft.callback)==null||dt.call(ft,ut)}})},J=(ne={})=>{const Ce=ie();kB(ne,Ce,{url:_.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:_.tableExportPathKey})},Y=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!1})},fe=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!0})},oe=()=>{var ne;if(!((ne=_.tableFileImport)!=null&&ne.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},pe=(ne,Ce,Re=!0)=>{ne[`isEdit${Ce.prop}`]=Re},de=(ne={},Ce={},Re="table")=>{var Ne,Ge,Je,gt,et;const{id:ze}=ne,{prop:$e,refreshTable:ut,api:We}=Ce;if(t("row-change",ne,Ce),!ze||!_.tableRowEdit)return;const ft={table:{url:_.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((Ne=F==null?void 0:F.api)==null?void 0:Ne.update)||((Je=(Ge=F==null?void 0:F.descriptions)==null?void 0:Ge.api)==null?void 0:Je.update)||((et=(gt=_==null?void 0:_.tableDrawer)==null?void 0:gt.api)==null?void 0:et.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let dt=(We==null?void 0:We.url)||ft[Re].url;if(!dt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${ft[Re].des}`);var Z={id:ze};const{startKey:ge,endKey:Me}=Ce;if(ge&&Me?(Z[ge]=ne[$e][0]||"",Z[Me]=ne[$e][1]||""):Z[$e]=ne[$e]||"",We!=null&&We.params){let qt=Ke.isFunction(We.params)?We.params(ne,Z):We.params;Z={...Z,...qt}}n.request({url:dt,method:"post",data:Z}).then(()=>{ne[`isEdit${$e}`]=!1,Re==="drawDes"&&(a.refreshTable=!0),ut&&R(),t("des-edit-success",Ce)})},Oe=(ne="")=>{if(!F.visible){t("refresh-draw");return}const{url:Ce,row:Re,searchKey:ze,valueKey:$e}=F.params||{};if(!Ce)return lt.ElMessage.info(Pe("请配置详情接口"));const ut={};ut[ze]=ne||rr($e,Re),n.request({url:Ce,method:"get",params:ut}).then(We=>{F.detailInfo=We})},ve=(ne="")=>{Oe(ne),a.refreshTable=!0},_e=(ne,Ce)=>{var ut,We,ft,dt,Z;const Re=Ke.merge({},E,((ut=Ce.drawerConfig)==null?void 0:ut.attrs)||{});F.attrs=Re;const ze=(We=Ce==null?void 0:Ce.drawerConfig)==null?void 0:We.tabPaneName,$e=(ft=Ce==null?void 0:Ce.drawerConfig)==null?void 0:ft.desListName;ze&&(_!=null&&_.tableDrawer[ze])&&(F.config={..._==null?void 0:_.tableDrawer[ze],api:Ke.merge({},((dt=_==null?void 0:_.tableDrawer)==null?void 0:dt.api)||{},((Z=Ce.drawerConfig)==null?void 0:Z.api)||{}),attrs:Re,descriptions:$e&&(_!=null&&_.tableDrawer[$e])?_==null?void 0:_.tableDrawer[$e]:{}}),F.detailInfo=ne,F.contentConfig={row:l.toRaw(ne),item:l.toRaw(Ce)},l.nextTick(()=>{F.visible=!0})},Ue=(ne,Ce)=>{var Re;t("click-cell",ne,Ce),Ce.drawerConfig?_e(ne,Ce):((Re=Ce==null?void 0:Ce.actions)==null?void 0:Re.type)==="editBox"&&$n(ne,Ce.actions)},st=()=>{},it=()=>{a.refreshTable&&(ae(),a.refreshTable=!1),F.visible=!1},xt=ne=>{t("upload-btn",ne)},yt=()=>{var ne;(ne=_==null?void 0:_.tableFileImport)!=null&&ne.refreshTable&&R()},je=(...ne)=>{t("event-name",...ne)},ce=ne=>{const Ce=ne==null?void 0:ne.action;Xe("",Ce)},ke=(ne,Ce)=>{B.visible?m.value.setModelVal(ne,Ce):p.value.setModelVal(ne,Ce)},Be=(ne,Ce)=>{B.visible?m.value.handleSetModelVal(ne,Ce):p.value.handleSetModelVal(ne,Ce)},Ve=(ne="editBoxInfo")=>{ne==="editBoxInfo"?(x.model={},x.config={}):ne==="addBoxInfo"&&(B.model={},B.config={}),t("dialog-close")},He=ne=>{a.tableSize=ne,ir.set("tableSize",ne)},rt=(ne,Ce,Re,ze)=>{if(a.tableFields){const $e=s.value.find(ut=>ut.prop===Re.property);$e!=null&&$e.id&&t("change-table-column","width",{width:ne,column:$e})}},ct=ne=>{a.tableFields&&(t("change-table-column","toggle",ne),ne.checked=!ne.checked)},vt=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},_t=ne=>{a.tableFields&&(t("change-table-column","fixed",ne),ne.fixed=!ne.fixed)},Rt=()=>{h.value.formReset()},zt=(ne,Ce)=>{h.value.setModelVal(ne,Ce)},Ot=()=>{var ze,$e,ut;const{path:ne}=e.route,Ce=(e==null?void 0:e.refMenuId)||(($e=(ze=e.userMenusAuth)==null?void 0:ze[ne])==null?void 0:$e.id);return((ut=e==null?void 0:e.config)==null?void 0:ut.useField)&&(e==null?void 0:e.userFieldList[Ce])||null},bn=()=>{var Ce,Re,ze;return((ze=(Re=(Ce=e.userMenusAuth)==null?void 0:Ce[N.value])==null?void 0:Re.operations)==null?void 0:ze.filter($e=>$e==null?void 0:$e.show_table))||[]},In=()=>{var ze,$e;let ne=[];const Ce=Ot();a.tableFields=Ce,((ze=e==null?void 0:e.tableColumn)!=null&&ze.length?e==null?void 0:e.tableColumn:($e=e==null?void 0:e.config)==null?void 0:$e.tableColumn).forEach(ut=>{var dt,Z,ge,Me;const We={...ut,label:Ke.isFunction(ut.label)?ut.label():Pe(ut.label),tips:Ke.isFunction(ut.tips)?ut.tips():Pe(ut.tips)};We.isEdit=!!(We.editType||We.dateTimeFormat||We.isImg||We.isImgs||We.editTypeFun);let ft=!0;if(We.isOperate){const Ne=bn(),Ge=We.fixed==="right"&&(((dt=We==null?void 0:We.action)==null?void 0:dt.list)||[]);Ne!=null&&Ne.length&&Ge.length?ft=Ne.some(Je=>Ge.includes(Je.code)):ft=!1}Ce?(Ce[We.prop]&&ne.push({...We,...Ce[We.prop],isControl:!0,fixed:!!((Z=Ce[We.prop])!=null&&Z.is_fixed),checked:We.hide?!1:!!Ce[We.prop].is_show,width:((ge=Ce[We.prop])==null?void 0:ge.width)||(We==null?void 0:We.width)||""}),We.isOperate&&ne.push({...We,rank:We!=null&&We.type?-1/0:1/0,checked:(We==null?void 0:We.type)||ft,isControl:!1,fixed:(We==null?void 0:We.fixed)||"",width:((Me=Ce[We.prop])==null?void 0:Me.width)||(We==null?void 0:We.width)||""})):ne.push({...We,checked:We.isOperate?ft:!We.hide})}),Ce&&(ne=ne.sort((ut,We)=>ut.rank-We.rank)),s.value=ne},Rn=()=>{const ne={},Ce=Ot();if(Ce&&Ke.isObject(Ce))for(const[Re,ze]of Object.entries(Ce))ze.is_default_sort&&(ne.sort=Re,ne.order=ze.sort);ne!=null&&ne.order&&(D.sort=ne.sort,D.order=ne.order)},It=async()=>await p.value.createSubmitData(),mn=()=>{In()},Wn=(ne,Ce,Re)=>{ne&&n.request({url:ne,method:"get",params:{}}).then(ze=>{Ce==null||Ce(ze,Re.model)})},hi=(ne={},Ce={})=>{var $e;const Re=ne.formList;let ze=Re;return a.tableFields&&(ze=Re.filter(ut=>{const We=!ut.privacyId||!!a.tableFields[ut.privacyId];return(ne==null?void 0:ne.privacyKey)==="disabled"?(ut.formAttrs={...ut.formAttrs,disabled:!We},!0):We})),($e=ne==null?void 0:ne.beforeCreate)!=null&&$e.formatFormList&&Ke.isFunction(ne.beforeCreate.formatFormList)&&(ze=ne.beforeCreate.formatFormList(ze,Ce)),ze},Ni=async(ne,Ce,Re={},ze)=>{const $e={id:ne.id,...Re};n.request({url:_[Ce].form.api.detail,method:"get",params:$e}).then(ut=>{ze?x.model=ze(ut):x.model=ut,x.title=jk(!0,_,Ce,Pe),t("get-detail-success",ut)})},Nr={filterFormList:hi,handleGetDetail:Ni,handleBeforeCreateReq:Wn,t:Pe},$n=(ne,Ce)=>{af(ne,Ce,_,x,Nr),l.nextTick(()=>{_.editBoxOnDialog?x.visible=!0:P()})},Xe=(ne,Ce)=>{af(ne,Ce,_,B,Nr),B.visible=!0},Mr=(ne="",Ce,Re,ze)=>{n.request({url:ne||_.tableDeleteApi,method:"post",data:Ce}).then(()=>{t("delete-success",ze),ae(),Re!=null&&Re.refreshDraw&&ve()})},Ai={deleteText:((Te=_==null?void 0:_.headerActions)==null?void 0:Te.deleteText)||"",tableCopyText:_.tableCopyText,handleEdit:$n,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:Mr,handleExportRequest:Y,handleExportTempRequest:fe,handlePrintRequest:J,handleImportRequest:oe,handleSimpleRequest:me,handleCopyRequest:le},ua=(ne,Ce={},Re=null)=>{var ut,We,ft;const{code:ze}=ne,$e=Re||((ut=_.headerActions)==null?void 0:ut[ze])||((ft=(We=F==null?void 0:F.descriptions)==null?void 0:We.headerActions)==null?void 0:ft[ze]);hc(ne,Ce,$e,d.value,"tableHeader",Ai),t("header-action",ne,d.value,C.value,$e)},O=(ne,Ce,Re)=>{const{action:ze}=ne,$e=Re.action[ze.code];hc(ze,Ce,$e,d.value,"",{...Ai,deleteText:_.tableDeleteText}),t("table-action",ze,Ce,$e,ne)},X=l.watchEffect(()=>{}),z=l.watch(e,ne=>{_=Ke.merge({},S,ne.config),ne.config.tableData&&(o.value=ne.config.tableData||[])}),R=()=>{ae(),t("refresh-table")},q=(ne,Ce,Re)=>{t("form-item-change",ne,Ce,Re)},K=async()=>{var Re;const ne=await((Re=h==null?void 0:h.value)==null?void 0:Re.createSubmitData());for(const ze in ne)ne[ze]===""&&delete ne[ze];const Ce=te(!1);return Ce&&(Object.assign(ne,Ce),h.value.handleSetModelValue(ne)),ne},te=(ne=!1)=>{var Ce;if(e.cacheSearch){const Re=r||N.value;return((Ce=n==null?void 0:n.handleCacheSearch)==null?void 0:Ce.call(n,Re,ne,ne?c.value:null))||null}return null},ye=l.watch(()=>N.value,(ne,Ce)=>{ne!==r&&(r=Ce)});l.onMounted(async()=>{var Ce;const ne=await K();c.value=ne,Rn(),In(),(Ce=_.tableAttr)!=null&&Ce.immediate&&Q()});function Fe(){_=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{te(!0),X(),z(),Fe(),ye()}),{tableRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:N,appConfig:_,pagination:D,editBoxRef:p,editBoxRefModel:b,editBoxInfo:x,addBoxInfo:B,addBoxRef:m,addBoxRefModel:g,tableDrawerConfig:F,selectionRow:d,selectionRowIds:v,tableSearchModel:c,loadingText:H,searchFormRef:h,showPagination:k,showHeaderActions:w,showHeaderSearch:T,onSearchSubmit:W,onSearchReset:V,handleEdit:$n,handleCurrentChange:G,handleSizeChange:$,handleSelectionChange:re,handleTableCurrentChange:Se,handleSortChange:be,handleHeaderAction:ua,handleTableAction:O,handleGetDetail:Ni,getList:ae,initSearch:Q,handleError:st,handleAddSuccess:we,handleEditSuccess:Ee,handleEditRow:pe,handleEditRowProp:de,handleImportRequest:oe,handleClickRow:Ue,handleCloseDrawer:it,handleUploadBtn:xt,handleUploadSuccess:yt,handleRefreshDrawerDetail:ve,handleComponentEvent:je,handleAddOption:ce,setFormModelVal:ke,handleSetFormModelVal:Be,handleSetSearchModelVal:zt,handleDialogClose:Ve,handleTableSizeChange:He,handleTableHeaderDragend:rt,handleFieldCheck:ct,handleTableColumnSort:vt,handleSearchFormReset:Rt,getSubmitData:It,handleFixedCell:_t,handleDoLayoutTable:mn,handleItemChange:q}}}),Y8e={key:0,class:"app-table-wrapper"},X8e={key:0,class:"table-header-wrapper fx"},Z8e={class:"fxm pr10 ex"},Q8e={class:"fxmj"},$8e={class:"ex"};function e9e(e,t,n,i,r,o){var w,T,S,_,A,D,x;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableColumnHeader"),c=l.resolveComponent("jwt-table-button"),h=l.resolveComponent("jwt-column-item"),p=l.resolveComponent("el-table-column"),m=l.resolveComponent("el-table"),y=l.resolveComponent("el-pagination"),v=l.resolveComponent("JwtDialogForm"),b=l.resolveComponent("jwt-detail-drawer"),g=l.resolveComponent("el-drawer"),k=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",Y8e,[l.createElementVNode("div",{class:l.normalizeClass([(w=e.appConfig)!=null&&w.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",X8e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(_=(S=(T=e.config)==null?void 0:T.tableSearch)==null?void 0:S.formList)!=null&&_.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":B=>e.tableSearchModel=B,class:"app-table-search",config:(A=e.config)==null?void 0:A.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(D=e.appConfig)!=null&&D.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",Z8e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((x=e.config)==null?void 0:x.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=B=>e.appTableColumn=B),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[l.withDirectives((l.openBlock(),l.createBlock(m,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.appConfig.tableEvents),{onCurrentChange:e.handleTableCurrentChange,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"table-content-before",{},void 0,!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(B,E)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:E},[B.checked?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0,align:B.align||"center",fixed:B.fixed,ref_for:!0},B.attrs,{"min-width":B.minWidth?B.minWidth:null,prop:B.prop,sortable:B.sortable,type:B.type,width:B.width?B.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(d,{item:B,onFixed:F=>e.handleFixedCell(B)},null,8,["item","onFixed"])]),_:2},[B.type?B.type==="expand"?{name:"default",fn:l.withCtx(({row:F})=>[l.renderSlot(e.$slots,B.prop,{index:E,scope:F},void 0,!0)]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:F,$index:C})=>[B.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(e.$slots,"action-before",{scope:F},void 0,!0),l.createVNode(c,{config:B,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:F,"show-button-num":e.appConfig.tableButtonNum,onTableAction:I=>e.handleTableAction(I,F,B)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(e.$slots,"action-after",{scope:F},void 0,!0)],64)):B.isColumn?l.renderSlot(e.$slots,B.prop,{key:1,index:E,scope:F},void 0,!0):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(B==null?void 0:B.columnCls)||"fxmc","w mw"])},[l.renderSlot(e.$slots,B.slotPreName,{scope:F},void 0,!0),l.renderSlot(e.$slots,B.prop,{index:E,scope:F},()=>[l.createVNode(h,{index:C,item:B,row:F,onChange:e.handleEditRowProp,onClickCell:e.handleClickRow},null,8,["index","item","row","onChange","onClickCell"])],!0),l.renderSlot(e.$slots,B.slotSufName,{scope:F},void 0,!0)],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(e.$slots,"table-content-after",{list:e.tableData},void 0,!0)]),_:3},16,["data","element-loading-text","height","size","onCurrentChange","onHeaderDragend","onSelectionChange","onSortChange"])),[[k,e.ajaxLoading]])],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",Q8e,[l.createElementVNode("div",$8e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(y,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onEditSuccess","onError","onItemChange","onUploadBtn"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(g,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[2]||(t[2]=B=>e.tableDrawerConfig.visible=B)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(b,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({scope:E,model:F,row:C})=>[l.renderSlot(e.$slots,B,{model:F,row:C,scope:E},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const t9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(J8e,[["render",e9e],["__scopeId","data-v-e15df54b"]])},Symbol.toStringTag,{value:"Module"})),n9e=l.defineComponent({name:"JwtTable",components:{TableSizeSetting:GE,TableFieldControl:KE,TableListContent:kG,TableContentControl:bG,TableListContentVirtualized:_G},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change","dbclick-cell","change-table-rank","after-btns-click","show-file","sort-change"],setup(e,{emit:t}){var $e,ut,We,ft,dt;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=($e=e==null?void 0:e.config)!=null&&$e.virtualized?l.ref([]):l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.ref(null),v=l.computed(()=>{var Z;return(Z=y==null?void 0:y.value)==null?void 0:Z.tableRef}),b=l.computed(()=>d.value.map(Z=>Z.id).join(",")),g=l.computed(()=>{var Z;return((Z=p.value)==null?void 0:Z.editBoxRefModel)||{}}),k=l.computed(()=>{var Z;return((Z=m.value)==null?void 0:Z.editBoxRefModel)||{}}),w=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),T=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),S=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),_=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0,defaultSort:{prop:"",order:""},sortBy:{key:"",order:""}},virtualized:!1,dragTitleKey:"title",estimatedRowHeight:50,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableCacheSortOrder:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,showTableDrag:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let A=Ke.merge({},_,{useField:!0,keepAliveTabs:!0},e.config);const D=()=>{var Z;return((Z=e==null?void 0:e.config)==null?void 0:Z.tablePageSizeName)||"pageSize"},x=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(D())||((ut=A.tableListParams)==null?void 0:ut.per_page)||A.pagination["page-sizes"][2],totalCount:1,sort:((We=A.tableListParams)==null?void 0:We.sort)||"id",order:((ft=A.tableListParams)==null?void 0:ft.order)||"desc"}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),E=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),F={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},C=l.shallowReactive({attrs:{...F},visible:!1,config:{},detailInfo:{},contentConfig:{}}),I=l.computed(()=>A.virtualized?{key:x.sort,order:x.order}:{prop:x.sort,order:x.order==="asc"?"ascending":"descending"}),N=l.computed(()=>{var Z;return C.descriptionEdit||(Z=C==null?void 0:C.attrs)!=null&&Z.refresh?l.reactive(C.detailInfo):C.detailInfo}),H=()=>{var ge;const Z={};for(const Me in e.userMenusAuth){const{id:Ne}=((ge=e.userMenusAuth)==null?void 0:ge[Me])||"";Ne&&(Z[Ne]=Me)}return Z},Q=l.computed(()=>{var ge;let Z=((ge=e==null?void 0:e.route)==null?void 0:ge.path)||"";return e!=null&&e.refMenuId&&(Z=H()[e.refMenuId]),e!=null&&e.pageUrl&&(Z=e==null?void 0:e.pageUrl),Z||""}),ie=l.computed(()=>Pe("加载数据中")||"加载数据中..."),ae=(Z={})=>{const{query:ge}=e.route||{};let Me={...c.value,...Z};if((ge!=null&&ge.fromJump||ge!=null&&ge.openType)&&!(e!=null&&e.refMenuId)){for(let[Ne,Ge]of Object.entries(ge))Ke.isArray(Ge)?Me[Ne]=Ge.map(Je=>+Je):Me[Ne]=Ge;Me.openType&&delete Me.openType,delete Me.fromJump}c.value=Me,j(Z)},M=()=>{var Z,ge;return{...A.tableListParams||{},page:x.currentPage,per_page:x.pageSize,sort:x.sort||((Z=A.tableListParams)==null?void 0:Z.sort)||"",order:x.order||((ge=A.tableListParams)==null?void 0:ge.order)||"",...c.value||{}}},j=(Z={})=>{const ge=M(),Me=Ke.merge({},ge,Z);V(Me)},V=Z=>{if(!A.tableListApi){A.tableData&&(o.value=A.tableData);return}a.ajaxLoading=!0,n.request({url:A.tableListApi,method:"get",params:Z}).then(ge=>{let Me=null;if(A.hasPagination){A!=null&&A.tableListCallback&&Ke.isFunction(A.tableListCallback)?Me=A.tableListCallback(ge.data,ge):Me=ge.data,o.value=e.freezeList?l.markRaw(Me.map(Ge=>l.markRaw(Ge))):Me;let Ne=ge;A!=null&&A.paginationCback&&Ke.isFunction(A.paginationCback)&&(Ne=A.paginationCback(ge)),x.pageCount=Ne==null?void 0:Ne.totalPage,x.totalCount=Ne.total,x.currentPage=Ne.current_page}else Me=ge,o.value=e.freezeList?l.markRaw(Me):Me;Me=null,a.tableStatistics=(ge==null?void 0:ge.statistics)||null,a.ajaxLoading=!1,L(ge.data),t("tablelist-change",ge.data)}).catch(()=>{a.ajaxLoading=!1})},L=(Z=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:ge,openType:Me}}=e.route;if(Me&&ge&&Z.length===1){if(Me==="edit")R(Z[0],{});else if(Me.includes("Detail")){const Ne=s.value.find(Ge=>{var Je;return((Je=Ge==null?void 0:Ge.publicDrawerConfig)==null?void 0:Je.openName)===Me});Ne!=null&&Ne.id&&t("click-cell",Z[0],Ne)}}},W=()=>{x.currentPage=1;const Z={page:1,per_page:x.pageSize};c.value={},l.nextTick(()=>{j(Z)})},G=(Z,ge)=>{c.value[Z]=ge},$=Z=>{var ge,Me;x.currentPage=1,(Me=(ge=e.config)==null?void 0:ge.tableSearch)!=null&&Me.onlyData?c.value={...Z}:c.value={...c.value,...Z},t("search-result",Z),j(Z)},re=Z=>{x.currentPage=Z,j({page:Z})},be=Z=>{x.pageSize=Z;const ge=D();ir.set(ge,Z),j({per_page:Z})},Se=Z=>{d.value=Z,t("selection-change",Z)},ee=Z=>{o.value=o.value.map(ge=>(ge.selectionChecked=Z,ge)),Z?(d.value=o.value,t("selection-change",o.value)):(d.value=[],t("selection-change",[]))},we=()=>{l.nextTick(()=>{const Z=o.value.filter(ge=>ge.selectionChecked);d.value=Z,t("selection-change",Z)})},Ee=({prop:Z,order:ge})=>{var Ne;x.sort=Z,x.order=ge==="ascending"?"asc":"desc";const Me={sort:Z,order:ge==="ascending"?"asc":"desc"};ge&&((Ne=A==null?void 0:A.tableListParams)!=null&&Ne.sorts)&&(Me.sorts=""),t("sort-change",{prop:Z,order:ge,param:Me,tableFields:a.tableFields}),j(Me)},P=Z=>{t("table-current-change",Z)},le=()=>{var Z,ge,Me,Ne;if(E.visible){E.visible=!1,E.config=null,E.model=null,a.submitLoading=!1;return}C.visible&&it(),(ge=(Z=B==null?void 0:B.config)==null?void 0:Z.api)!=null&&ge.refreshDraw&&t("refresh-draw"),((Ne=(Me=B==null?void 0:B.config)==null?void 0:Me.api)!=null&&Ne.refreshTable||B!=null&&B.refreshTable)&&t("refresh-table"),B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1,t("list-change"),!B.stopGetList&&j()},me=(Z,ge)=>{var Me,Ne,Ge;B.visible&&(Me=B==null?void 0:B.config)!=null&&Me.addSuccess&&Ke.isFunction((Ne=B==null?void 0:B.config)==null?void 0:Ne.addSuccess)&&((Ge=B==null?void 0:B.config)==null||Ge.addSuccess(c,G)),le(),t("add-success",Z,ge)},J=(Z,ge)=>{le(),t("edit-success",Z,ge)},Y=()=>{C.visible=!0},fe=(Z,ge)=>{n.request({url:A.tableCopyApi,method:"post",data:Z}).then(()=>{t("copy-success",ge),j()})},oe=(Z,ge,Me,Ne=[],Ge=!1)=>{Ik(Z,ge,Me,{selectionRow:Ne,cancel:Ge,callback:(Je,gt)=>{var et,qt;t("des-edit-success",Je,gt),ge.refreshTable&&Le(),ge!=null&&ge.refreshDraw&&xt(),(qt=(et=ge==null?void 0:ge.api)==null?void 0:et.callback)==null||qt.call(et,Je)}})},pe=(Z={})=>{const ge=M();kB(Z,ge,{url:A.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:A.tableExportPathKey})},de=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!1})},Oe=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!0})},ve=()=>{var Z;if(!((Z=A.tableFileImport)!=null&&Z.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},_e=(Z,ge,Me=!0)=>{Z[`isEdit${ge.prop}`]=Me},Ue=(Z={},ge={},Me="table")=>{var un,ki,Li,Lr,so;const{id:Ne}=Z,{prop:Ge,refreshTable:Je,api:gt}=ge;if(t("row-change",Z,ge),!Ne||!A.tableRowEdit)return;const et={table:{url:A.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((un=C==null?void 0:C.api)==null?void 0:un.update)||((Li=(ki=C==null?void 0:C.descriptions)==null?void 0:ki.api)==null?void 0:Li.update)||((so=(Lr=A==null?void 0:A.tableDrawer)==null?void 0:Lr.api)==null?void 0:so.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let qt=(gt==null?void 0:gt.url)||et[Me].url;if(!qt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${et[Me].des}`);var nn={id:Ne};const{startKey:Mi,endKey:bi}=ge;if(Mi&&bi?(nn[Mi]=ck(Z[Ge][0]),nn[bi]=ck(Z[Ge][1])):nn[Ge]=ck(Z[Ge]),gt!=null&>.params){let $u=Ke.isFunction(gt.params)?gt.params(Z,nn):gt.params;nn={...nn,...$u}}n.request({url:qt,method:"post",data:nn}).then(()=>{Z[`isEdit${Ge}`]=!1,Me==="drawDes"&&(a.refreshTable=!0),Je&&Le(),t("des-edit-success",ge)})},st=Z=>{t("dbclick-cell",Z)},it=(Z="")=>{if(!C.visible){t("refresh-draw");return}const{url:ge,row:Me,searchKey:Ne,valueKey:Ge}=C.params||{};if(!ge)return lt.ElMessage.info(Pe("请配置详情接口"));const Je={};Je[Ne]=Z||rr(Ge,Me),n.request({url:ge,method:"get",params:Je}).then(gt=>{C.detailInfo=gt})},xt=(Z="")=>{it(Z),a.refreshTable=!0},yt=(Z,ge)=>{var Je,gt,et,qt,nn;const Me=Ke.merge({},F,((Je=ge.drawerConfig)==null?void 0:Je.attrs)||{});C.attrs=Me;const Ne=(gt=ge==null?void 0:ge.drawerConfig)==null?void 0:gt.tabPaneName,Ge=(et=ge==null?void 0:ge.drawerConfig)==null?void 0:et.desListName;Ne&&(A!=null&&A.tableDrawer[Ne])&&(C.config={...A==null?void 0:A.tableDrawer[Ne],api:Ke.merge({},((qt=A==null?void 0:A.tableDrawer)==null?void 0:qt.api)||{},((nn=ge.drawerConfig)==null?void 0:nn.api)||{}),attrs:Me,descriptions:Ge&&(A!=null&&A.tableDrawer[Ge])?A==null?void 0:A.tableDrawer[Ge]:{}}),C.detailInfo=Z,C.contentConfig={row:l.toRaw(Z),item:l.toRaw(ge)},l.nextTick(()=>{C.visible=!0})},je=(Z,ge)=>{var Me;t("click-cell",Z,ge),ge.drawerConfig?yt(Z,ge):((Me=ge==null?void 0:ge.actions)==null?void 0:Me.type)==="editBox"&&R(Z,ge.actions)},ce=Z=>{t("show-file",Z)},ke=()=>{},Be=()=>{a.refreshTable&&(j(),a.refreshTable=!1),C.visible=!1},Ve=Z=>{t("upload-btn",Z)},He=(Z,ge,Me,Ne)=>{t("after-btns-click",Z,ge,Me,Ne)},rt=()=>{var Z;(Z=A==null?void 0:A.tableFileImport)!=null&&Z.refreshTable&&Le()},ct=(...Z)=>{t("event-name",...Z)},vt=Z=>{const ge=Z==null?void 0:Z.action;q("",ge)},_t=(Z,ge)=>{E.visible?m.value.setModelVal(Z,ge):p.value.setModelVal(Z,ge)},Rt=(Z,ge)=>{E.visible?m.value.handleSetModelVal(Z,ge):p.value.handleSetModelVal(Z,ge)},zt=(Z="editBoxInfo")=>{Z==="editBoxInfo"?(B.model={},B.config={}):Z==="addBoxInfo"&&(E.model={},E.config={}),t("dialog-close")},Ot=Z=>{a.tableSize=Z,ir.set("tableSize",Z)},bn=(Z,ge,Me,Ne)=>{if(a.tableFields){const Ge=s.value.find(Je=>Je.prop===Me.property);Ge!=null&&Ge.id&&t("change-table-column","width",{width:Z,column:Ge})}},In=Z=>{a.tableFields&&(t("change-table-column","toggle",Z),Z.checked=!Z.checked)},Rn=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},It=(Z,ge)=>{o.value=o.value.map((Me,Ne)=>({...Me,rank:ge+Ne})),l.nextTick(()=>{t("change-table-rank",o.value)})},mn=(Z,ge)=>{a.tableFields&&(t("change-table-column",Z,ge),ge.fixed=!ge.fixed)},Wn=()=>{h.value.formReset()},hi=(Z,ge)=>{h.value.setModelVal(Z,ge)},Ni=()=>{var Ne,Ge,Je;const{path:Z}=(e==null?void 0:e.route)||{},ge=(e==null?void 0:e.refMenuId)||((Ge=(Ne=e.userMenusAuth)==null?void 0:Ne[Z])==null?void 0:Ge.id);return((Je=e==null?void 0:e.config)==null?void 0:Je.useField)&&(e==null?void 0:e.userFieldList[ge])||null},Nr=()=>{var ge,Me,Ne;return((Ne=(Me=(ge=e.userMenusAuth)==null?void 0:ge[Q.value])==null?void 0:Me.operations)==null?void 0:Ne.filter(Ge=>Ge==null?void 0:Ge.show_table))||[]},$n=()=>{var Ne,Ge;let Z=[];const ge=Ni();a.tableFields=ge,((Ne=e==null?void 0:e.tableColumn)!=null&&Ne.length?e==null?void 0:e.tableColumn:(Ge=e==null?void 0:e.config)==null?void 0:Ge.tableColumn).forEach(Je=>{var nn,Mi,bi,un,ki,Li;const gt=Ke.isFunction(Je.label)?Je.label():Je.label,et={...Je,label:Pe(gt),tips:Ke.isFunction(Je.tips)?Je.tips():Pe(Je.tips)};et.isEdit=!!(et.editType||et.dateTimeFormat||et.isImg||et.isImgs||et.editTypeFun);let qt=!0;if(et.isOperate){const Lr=Nr(),so=et.fixed==="right"&&(((nn=et==null?void 0:et.action)==null?void 0:nn.list)||[]);Lr!=null&&Lr.length&&so.length?qt=Lr.some($u=>so.includes($u.code)):qt=!1}ge?(ge[et.prop]&&Z.push({...et,...ge[et.prop],label:et!=null&&et.customLabel?et.label:((Mi=ge[et.prop])==null?void 0:Mi.label)||et.label,isControl:!0,fixed:!!((bi=ge[et.prop])!=null&&bi.is_fixed),checked:et.hide?!1:!!ge[et.prop].is_show,width:((un=ge[et.prop])==null?void 0:un.width)||(et==null?void 0:et.width)||"",sortable:(ki=ge[et.prop])!=null&&ki.support_sort?"custome":!1}),et.isOperate&&Z.push({...et,rank:et!=null&&et.type?-1/0:1/0,checked:(et==null?void 0:et.type)||qt,isControl:!1,fixed:(et==null?void 0:et.fixed)||"",width:((Li=ge[et.prop])==null?void 0:Li.width)||(et==null?void 0:et.width)||""})):Z.push({...et,checked:et.isOperate?qt:!et.hide})}),ge&&(Z=Z.sort((Je,gt)=>Je.rank-gt.rank)),s.value=Z},Xe=()=>{var Me,Ne,Ge;const Z={},ge=Ni();if(ge&&Ke.isObject(ge))for(const[Je,gt]of Object.entries(ge))gt.is_default_sort&&(Z.sort=Je,Z.order=gt.sort);(Me=A==null?void 0:A.tableCacheSortOrder)!=null&&Me.order&&(Z.order=(Ne=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ne.order,Z.sort=(Ge=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ge.sort),Z!=null&&Z.order&&(x.sort=Z.sort,x.order=Z.order)},Mr=async()=>await p.value.createSubmitData(),Ai=()=>{$n()},ua=(Z,ge,Me)=>{Z&&n.request({url:Z,method:"get",params:{}}).then(Ne=>{ge==null||ge(Ne,Me.model)})},O=(Z={},ge={})=>{var Ge;const Me=Z.formList;let Ne=Me;return a.tableFields&&(Ne=Me.filter(Je=>{const gt=!Je.privacyId||!!a.tableFields[Je.privacyId];return(Z==null?void 0:Z.privacyKey)==="disabled"?(Je.formAttrs={...Je.formAttrs,disabled:!gt},!0):gt})),(Ge=Z==null?void 0:Z.beforeCreate)!=null&&Ge.formatFormList&&Ke.isFunction(Z.beforeCreate.formatFormList)&&(Ne=Z.beforeCreate.formatFormList(Ne,ge)),Ne},X=async(Z,ge,Me={},Ne)=>{const Ge={id:Z.id,...Me};n.request({url:A[ge].form.api.detail,method:"get",params:Ge}).then(Je=>{var gt,et,qt,nn;Ne?B.model=Ne(Je):B.model=Je,(gt=A[ge].form.api)!=null&>.detailCallback&&Ke.isFunction((et=A[ge].form.api)==null?void 0:et.detailCallback)&&((nn=(qt=A[ge].form.api)==null?void 0:qt.detailCallback)==null||nn.call(qt,Je)),B.title=jk(!0,A,ge,Pe),t("get-detail-success",Je)})},z={filterFormList:O,handleGetDetail:X,handleBeforeCreateReq:ua,t:Pe},R=(Z,ge)=>{af(Z,ge,A,B,z),l.nextTick(()=>{A.editBoxOnDialog?B.visible=!0:Y()})},q=(Z,ge)=>{af(Z,ge,A,E,z),E.visible=!0},K=(Z="",ge,Me,Ne)=>{n.request({url:Z||A.tableDeleteApi,method:"post",data:ge}).then(()=>{t("delete-success",Ne),j(),Me!=null&&Me.refreshDraw&&xt()})},te={deleteText:((dt=A==null?void 0:A.headerActions)==null?void 0:dt.deleteText)||"",tableCopyText:A.tableCopyText,handleEdit:R,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:K,handleExportRequest:de,handleExportTempRequest:Oe,handlePrintRequest:pe,handleImportRequest:ve,handleSimpleRequest:oe,handleCopyRequest:fe},ye=(Z,ge={},Me=null)=>{var Je,gt,et;const{code:Ne}=Z,Ge=Me||((Je=A.headerActions)==null?void 0:Je[Ne])||((et=(gt=C==null?void 0:C.descriptions)==null?void 0:gt.headerActions)==null?void 0:et[Ne]);hc(Z,ge,Ge,d.value,"tableHeader",te),t("header-action",Z,d.value,N.value,Ge)},Fe=(Z,ge,Me)=>{const{action:Ne}=Z,Ge=Me.action[Ne.code];hc(Ne,ge,Ge,d.value,"",{...te,deleteText:A.tableDeleteText}),t("table-action",Ne,ge,Ge,Z)},se=l.watchEffect(()=>{}),xe=l.watch(e,Z=>{A=Ke.merge({},_,Z.config),Z.config.tableData&&(o.value=Z.config.tableData||[])}),Le=()=>{j(),t("refresh-table")},Te=(Z,ge,Me)=>{t("form-item-change",Z,ge,Me)},ne=async()=>{var Me;const Z=await((Me=h==null?void 0:h.value)==null?void 0:Me.createSubmitData());for(const Ne in Z)Z[Ne]===""&&delete Z[Ne];const ge=Ce(!1);return ge&&(Object.assign(Z,ge),h.value.handleSetModelValue(Z)),Z},Ce=(Z=!1)=>{var ge;if(e.cacheSearch){const Me=r||Q.value;return((ge=n==null?void 0:n.handleCacheSearch)==null?void 0:ge.call(n,Me,Z,Z?c.value:null))||null}return null},Re=l.watch(()=>Q.value,(Z,ge)=>{Z!==r&&(r=ge)});l.onMounted(async()=>{var ge;const Z=await ne();c.value=Z,Xe(),$n(),(ge=A.tableAttr)!=null&&ge.immediate&&ae()});function ze(){A=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{Ce(!0),se(),xe(),ze(),Re()}),{tableRef:v,tableListContentRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:Q,appConfig:A,pagination:x,editBoxRef:p,editBoxRefModel:g,editBoxInfo:B,addBoxInfo:E,addBoxRef:m,addBoxRefModel:k,tableDrawerConfig:C,selectionRow:d,selectionRowIds:b,tableSearchModel:c,loadingText:ie,searchFormRef:h,showPagination:w,showHeaderActions:T,showHeaderSearch:S,defaultSort:I,onSearchSubmit:$,onSearchReset:W,handleEdit:R,handleCurrentChange:re,handleSizeChange:be,handleSelectionChange:Se,handleTableCurrentChange:P,handleSortChange:Ee,handleHeaderAction:ye,handleTableAction:Fe,handleGetDetail:X,getList:j,initSearch:ae,handleError:ke,handleAddSuccess:me,handleEditSuccess:J,handleEditRow:_e,handleEditRowProp:Ue,handleImportRequest:ve,handleClickRow:je,handleShowFile:ce,handleCloseDrawer:Be,handleUploadBtn:Ve,handleUploadSuccess:rt,handleRefreshDrawerDetail:xt,handleComponentEvent:ct,handleAddOption:vt,setFormModelVal:_t,handleSetFormModelVal:Rt,handleSetSearchModelVal:hi,handleDialogClose:zt,handleTableSizeChange:Ot,handleTableHeaderDragend:bn,handleFieldCheck:In,handleTableColumnSort:Rn,handleSearchFormReset:Wn,getSubmitData:Mr,handleFixedCell:mn,handleDoLayoutTable:Ai,handleItemChange:Te,handleDbCellClick:st,handleTableDataSort:It,handleAfterBtnsClick:He,handleSelectionHeaderChange:ee,handleSelectionColumnChange:we}}}),i9e={key:0,class:"app-table-wrapper"},r9e={key:0,class:"table-header-wrapper fx"},o9e={class:"fxm pr10 ex"},a9e={class:"fxmj"},s9e={class:"ex"};function l9e(e,t,n,i,r,o){var b,g,k,w,T,S,_,A,D;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableContentControl"),c=l.resolveComponent("TableListContentVirtualized"),h=l.resolveComponent("TableListContent"),p=l.resolveComponent("el-pagination"),m=l.resolveComponent("JwtDialogForm"),y=l.resolveComponent("jwt-detail-drawer"),v=l.resolveComponent("el-drawer");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",i9e,[l.createElementVNode("div",{class:l.normalizeClass([(b=e.appConfig)!=null&&b.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",r9e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(w=(k=(g=e.config)==null?void 0:g.tableSearch)==null?void 0:k.formList)!=null&&w.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":x=>e.tableSearchModel=x,class:"app-table-search",config:(T=e.config)==null?void 0:T.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(S=e.appConfig)!=null&&S.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",o9e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((_=e.config)==null?void 0:_.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"total-count":e.pagination.totalCount,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","total-count","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=x=>e.appTableColumn=x),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0),(A=e.appConfig)!=null&&A.showTableDrag&&((D=e.tableData)!=null&&D.length)?(l.openBlock(),l.createBlock(d,{key:2,modelValue:e.tableData,"onUpdate:modelValue":t[2]||(t[2]=x=>e.tableData=x),"drag-title-key":e.appConfig.dragTitleKey,onSort:e.handleTableDataSort},null,8,["modelValue","drag-title-key","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[e.appConfig.virtualized?(l.openBlock(),l.createBlock(c,{key:0,"ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"estimated-row-height":e.appConfig.estimatedRowHeight,"loading-text":e.loadingText,pagination:e.pagination,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onSelectionColumnChange:e.handleSelectionColumnChange,onSelectionHeaderChange:e.handleSelectionHeaderChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","estimated-row-height","loading-text","pagination","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onSelectionColumnChange","onSelectionHeaderChange","onSortChange","onTableAction","onShowFile"])):(l.openBlock(),l.createBlock(h,{key:1,ref:"tableListContentRef","ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"loading-text":e.loadingText,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,pagination:e.pagination,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onTableCurrentChange:e.handleTableCurrentChange,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","loading-text","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","pagination","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onHeaderDragend","onSelectionChange","onSortChange","onTableAction","onTableCurrentChange","onShowFile"]))],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",a9e,[l.createElementVNode("div",s9e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn,onAfterBtnsClick:e.handleAfterBtnsClick},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onItemChange","onUploadBtn","onAfterBtnsClick"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(v,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[3]||(t[3]=x=>e.tableDrawerConfig.visible=x)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(y,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,model:E,row:F})=>[l.renderSlot(e.$slots,x,{model:E,row:F,scope:B},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const u9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(n9e,[["render",l9e],["__scopeId","data-v-7924fa11"]])},Symbol.toStringTag,{value:"Module"})),f9e={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},d9e=l.defineComponent({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=Nn(),i=l.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1});let r=l.reactive(Ke.merge({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:f9e,showPagination:!0},e.config));const o=l.reactive({currentPage:1,pageCount:1,pageSize:r.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),s=l.ref([]),a=l.ref({}),u=l.ref(null),f=l.computed(()=>e.userMenusAuth||{}),d=()=>{c()},c=()=>{const A=Ke.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},r.tableListParams,a.value);h(A)},h=A=>{if(!r.tableListApi){r.tableData&&(i.tableData=r.tableData);return}i.ajaxLoading=!0,n.request({url:r.tableListApi,method:"get",params:A}).then(D=>{i.tableData=D.data,o.pageCount=D.totalPage,o.totalCount=D.total,i.ajaxLoading=!1,t("tablelist-change")})},p=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c()},m=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c(a.value)},y=A=>{o.currentPage=A,c()},v=A=>{o.pageSize=A,c()},b=(A,D="")=>A===null||A===""||A===void 0?"-":D?fa(A).format(D):A,g=A=>{s.value=A,t("selection-change",A)},k=({prop:A,order:D})=>{o.sort=A,o.order=D==="ascending"?"asc":"desc",c()},w=A=>{t("table-current-change",A)},T=(A,D,x=!0)=>{A[`isEdit${D.prop}`]=x},S=(A,D)=>{const{id:x}=A,{prop:B}=D;if(x){var E={id:x};if(E[B]=A[B],!r.tableUpdateApi)return lt.ElMessage.info("请配置编辑接口!tableUpdateApi");n.request({url:r.tableUpdateApi,method:"post",data:E}).then(()=>{A[`isEdit${B}`]=!1})}},_=A=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(A):A;return l.watch(e,A=>{r=Ke.merge(r,A.config),A.config.tableData&&(i.tableData=A.config.tableData||[])}),l.onBeforeMount(()=>{d()}),{...l.toRefs(i),appConfig:r,pagination:o,selectionRow:s,tableSearchModel:a,editBoxRef:u,dayjs:fa,userMenusAuthObj:f,onSearchSubmit:m,onSearchReset:p,handleCurrentChange:y,handleSizeChange:v,handleSelectionChange:g,handleTableCurrentChange:w,handleSortChange:k,filterVal:b,initSearch:d,handleEditRow:T,handleEditRowProp:S,handleFillUrl:_}}}),c9e={class:"app-table-wrapper"},h9e=["onDblclick"],p9e={class:"image-slot wh fxmc"},g9e={class:"fxr"};function m9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("el-input-number"),u=l.resolveComponent("jwt-upload-image"),f=l.resolveComponent("el-switch"),d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-image"),h=l.resolveComponent("el-table-column"),p=l.resolveComponent("el-table"),m=l.resolveComponent("el-pagination"),y=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",c9e,[l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.withDirectives((l.openBlock(),l.createBlock(p,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appConfig.tableColumn,(v,b)=>(l.openBlock(),l.createBlock(h,{key:b,align:v.align||"center",fixed:v.fixed,label:v.label,"min-width":v.minWidth?v.minWidth:null,prop:v.prop,sortable:v.sortable,type:v.type,width:v.width?v.width:null},l.createSlots({_:2},[v.type?void 0:{name:"default",fn:l.withCtx(({row:g,$index:k})=>[v.dateTimeFormat?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop],v.dateTimeFormat)),1)],64)):v.editType?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[v.editType==="input"?(l.openBlock(),l.createBlock(s,{key:0,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onKeydown:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):v.editType==="inputNumber"?(l.openBlock(),l.createBlock(a,{key:1,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"controls-position":"right",min:0,onBlur:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):v.editType==="uploadImg"?(l.openBlock(),l.createBlock(u,{key:2,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,onOnChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):v.editType==="switch"?(l.openBlock(),l.createBlock(f,{key:3,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"active-value":1,"inactive-value":0,onChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onChange"])):l.createCommentVNode("",!0)],64)):v.editInput?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.withDirectives(l.createElementVNode("div",{onDblclick:w=>e.handleEditRow(g,v)},l.toDisplayString(e.filterVal(g[v.prop])),41,h9e),[[l.vShow,!g[`isEdit${v.prop}`]]]),l.withDirectives(l.createVNode(s,{modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onBlur:w=>e.handleEditRowProp(g,v),onKeyup:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[l.vShow,g[`isEdit${v.prop}`]]])],64)):v.isImg?(l.openBlock(),l.createBlock(c,{key:3,"preview-src-list":[e.handleFillUrl(g[v.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(g[v.prop]),teleported:""},{error:l.withCtx(()=>[l.createElementVNode("div",p9e,[l.createVNode(d,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):l.renderSlot(e.$slots,v.prop,{key:4,index:k,scope:g},()=>[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[y,e.ajaxLoading]]),l.createElementVNode("div",g9e,[e.appConfig.showPagination?(l.openBlock(),l.createBlock(m,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)])])}const v9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(d9e,[["render",m9e],["__scopeId","data-v-3311d9e5"]])},Symbol.toStringTag,{value:"Module"})),y9e=l.defineComponent({name:"JwtTabs"}),b9e=l.defineComponent({...y9e,props:{config:{type:Object,require:!0,default:()=>{}},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},info:{type:Object,require:!0,default:()=>{}},keepAlive:{type:Boolean,default:!0}},emits:["tab-click","event-name"],setup(e,{expose:t,emit:n}){var b,g;const i=e,r=n,o=l.ref(null),s=l.ref(!1),a=l.computed(()=>{var w,T;return((T=(w=i.menusObj)==null?void 0:w[i==null?void 0:i.currentPath])==null?void 0:T.id)||""}),u=l.computed(()=>{var k,w;return((w=(k=i.config)==null?void 0:k.tabPaneList)==null?void 0:w.filter(T=>T.condition&&Ke.isFunction(T.condition)?T.condition(i.info):!0))||[]}),f=l.computed(()=>{var T;const k=((i==null?void 0:i.menusObj)||{})[i==null?void 0:i.currentPath];let w=u.value;if(k&&((T=k==null?void 0:k.operations)!=null&&T.length)){const S={};if(k.operations.forEach(_=>{_.show_tab&&(S[_.code]=_)}),Object.keys(S).length)return w.filter(_=>{var A,D,x;if(S[_.name]){_.refMenuId=((A=S[_.name])==null?void 0:A.ref_menu_id)||"",_.rank=((D=S[_.name])==null?void 0:D.rank)||"";let B=((x=S[_.name])==null?void 0:x.show_title)||_.label||"";return _.numKey&&(B=`${Pe(B)} (${i.info[_.numKey]||0})`),_.label=B,!0}}).sort((_,A)=>_.rank-A.rank)}return w}),d=l.computed(()=>{if(!i.keepAlive||s.value)return[""];const k=[];return f.value.map(w=>{w.unKeepAlive||k.push(w.name)}),k}),c=l.ref(((b=i.config)==null?void 0:b.activeName)||((g=f.value[0])==null?void 0:g.name)),h=l.computed(()=>f.value.find(w=>w.name===c.value)),p=l.computed(()=>{var w,T;const k=((w=h.value)==null?void 0:w.params)||{};return{refMenuId:((T=h.value)==null?void 0:T.refMenuId)||a.value||"",...k}}),m=(k,w)=>{l.nextTick(()=>{r("tab-click",k,w,h.value)})},y=(...k)=>{r("event-name",...k)},v=k=>{f.value.find(T=>T.name===k)&&(c.value=k)};return l.onBeforeUnmount(()=>{s.value=!0}),t({componentRef:o,handleChangeTab:v}),(k,w)=>{var _;const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createBlock(S,l.mergeProps({modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=A=>c.value=A)},(_=e.config)==null?void 0:_.tabsAttrs,{onTabClick:m}),{default:l.withCtx(()=>{var A,D;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(x,B)=>(l.openBlock(),l.createBlock(T,l.mergeProps({key:B,ref_for:!0},x,{label:x.label}),null,16,["label"]))),128)),(l.openBlock(),l.createBlock(l.KeepAlive,{include:d.value},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value.component),l.mergeProps({key:h.value.name,ref_key:"componentRef",ref:o,info:e.info,params:p.value,"ref-menu-id":((A=h.value)==null?void 0:A.refMenuId)||a.value||""},((D=h.value)==null?void 0:D.attrs)||{},{onEventName:y}),null,16,["info","params","ref-menu-id"]))],1032,["include"]))]}),_:1},16,["modelValue"])}}}),k9e=Object.freeze(Object.defineProperty({__proto__:null,default:b9e},Symbol.toStringTag,{value:"Module"})),w9e=l.defineComponent({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"添加"},disabled:{type:Boolean,default:!1},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},isArray:{type:Boolean,default:!1},isInput:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=l.ref(null),i=l.reactive({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),r=()=>{var c;if(i.initOnce)return;let d=[];return e.modelValue&&on.isString(e.modelValue)?d=(c=e==null?void 0:e.modelValue)==null?void 0:c.split(","):e.modelValue&&on.isArray(e.modelValue)&&(d=e.modelValue.map(h=>({...h,title:h[e.labelKey],id:h[e.valueKey]}))),i.initOnce=!0,d},o=l.watch(()=>e.modelValue,d=>{i.initOnce||d!=null&&d.isTrusted||(d?i.tagList=r():i.tagList=[])},{immediate:!0}),s=()=>{i.inputVisible=!0,l.nextTick(()=>{var d,c;(c=(d=n.value)==null?void 0:d.input)==null||c.focus()})},a=d=>{i.tagList.splice(i.tagList.indexOf(d),1),u()},u=()=>{const d=e.isArray?i.tagList:i.tagList.join(",");t("update:modelValue",d)},f=()=>{i.inputValue&&(e.isArray?i.tagList.push({[e.labelKey]:i.inputValue,[e.valueKey]:""}):i.tagList.push(i.inputValue)),i.inputVisible=!1,i.inputValue="",u()};return l.onUpdated(()=>{}),l.onBeforeMount(()=>{i.initOnce=!1}),l.onBeforeUnmount(()=>{o()}),{...l.toRefs(i),inputRef:n,showInput:s,handleClose:a,handleEmitResult:u,handleInputConfirm:f}}}),_9e={class:"fx fxwp w"};function C9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-tag"),f=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",_9e,[e.isInput?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.tagList,(d,c)=>(l.openBlock(),l.createElementBlock("div",{key:d,class:"rel tags-input-wrapper mb10 mr10"},[l.createVNode(s,{modelValue:d[e.labelKey],"onUpdate:modelValue":h=>d[e.labelKey]=h,class:"w220",clearable:"",placeholder:"请输入",onBlur:e.handleEmitResult},null,8,["modelValue","onUpdate:modelValue","onBlur"]),l.createVNode(a,{class:"cd cp tags-input-close",icon:"close-circle-fill abs_rt",size:"18",style:{right:"-10px",top:"-15px"},onClick:h=>e.handleClose(d,c)},null,8,["onClick"])]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.tagList,d=>(l.openBlock(),l.createBlock(u,{key:d,class:"mb4",closable:"","disable-transitions":!1,disabled:e.disabled,onClose:c=>e.handleClose(d,e.index)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.isArray?d[e.labelKey]:d),1)]),_:2},1032,["disabled","onClose"]))),128)),e.inputVisible?(l.openBlock(),l.createBlock(s,{key:2,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=d=>e.inputValue=d),class:l.normalizeClass([e.isInput?"w220 mr10 mb10":"w120"]),placeholder:"请输入",onBlur:e.handleInputConfirm,onKeyup:l.withKeys(e.handleInputConfirm,["enter"])},null,8,["modelValue","class","onBlur","onKeyup"])):(l.openBlock(),l.createBlock(f,{key:3,class:"button-new-tag",disabled:e.disabled,size:e.isInput?"":"small",onClick:e.showInput},{default:l.withCtx(()=>[l.createTextVNode(" + "+l.toDisplayString(e.btnTitle),1)]),_:1},8,["disabled","size","onClick"]))])}const S9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(w9e,[["render",C9e],["__scopeId","data-v-44fc3183"]])},Symbol.toStringTag,{value:"Module"})),x9e=["id"],JE={__name:"TreeNodeTitle",props:{node:{type:Object,default:()=>{}},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},isOpt:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["check","show"],setup(e,{emit:t}){const n=e,i=t,r=l.inject("menusIdObj"),o=l.ref(n.expandAll),s=l.computed(()=>n.node[n.nodeKey]),a=l.computed(()=>n.isOpt?"":`menu-id-${n.node[n.nodeKey]}`),u=l.computed(()=>{var v;if(n.isOpt)return((v=n==null?void 0:n.node)==null?void 0:v.remark)||"";if(n.node.rid){const b=r==null?void 0:r[n.node.rid];return b!=null&&b[n.optTitleKey]?`权限关联:${b[n.optTitleKey]}`:""}return""}),f=l.computed(()=>{var v;return((v=n.node[n.children])==null?void 0:v.length)>0}),d=(v=n.node)=>{const b=[],g=k=>{var w;(w=k[n.children])!=null&&w.length&&k[n.children].forEach(T=>{b.push(T[n.nodeKey]),g(T)})};return g(v),b},c=l.computed(()=>d()),h=l.computed({get(){return f.value?c.value.length>0&&c.value.every(v=>n.checkedKeys.includes(v)):n.checkedKeys.includes(s.value)},set(v){m(v)}}),p=l.computed(()=>{if(!f.value)return!1;const v=c.value.filter(b=>n.checkedKeys.includes(b)).length;return v>0&&v<c.value.length}),m=v=>{i("check",{key:s.value,checked:v,level:n.level})};function y(){o.value=!o.value,l.nextTick(()=>{i("show",o.value,n.node)})}return l.onUnmounted(()=>{}),(v,b)=>{var T,S,_,A;const g=l.resolveComponent("jwt-icon"),k=l.resolveComponent("el-popover"),w=l.resolveComponent("el-checkbox");return l.openBlock(),l.createElementBlock("div",{id:a.value||"",class:l.normalizeClass(["fxm jwt-menu-opt-item-title",[e.isOpt?"mr20":""]])},[e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(g,{key:0,class:l.normalizeClass(["cp fs20 mr5 g9 linear",[(S=(T=e.node)==null?void 0:T.children)!=null&&S.length||(A=(_=e.node)==null?void 0:_.operations)!=null&&A.length?"":"gtp",o.value?"":"up-90"]]),icon:"arrow-down-s-fill",onClick:y},null,8,["class"])),l.createVNode(w,{modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=D=>h.value=D),indeterminate:p.value,disabled:e.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.node[e.menuTitleKey])+" ",1),l.createVNode(k,{content:u.value,persistent:!1,placement:"bottom",title:"权限说明",width:"240"},{reference:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock(g,{key:0,icon:"information-fill"})):l.createCommentVNode("",!0)]),_:1},8,["content"])]),_:1},8,["modelValue","indeterminate","disabled"]),e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:"ex h30",onClick:y}))],10,x9e)}}},E9e=Object.freeze(Object.defineProperty({__proto__:null,default:JE},Symbol.toStringTag,{value:"Module"})),B9e={class:"jwt-menu-opt-item"},D9e={class:"fx fxwp"},CG={__name:"TreeNode",props:{node:{type:Object,required:!0},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},disabled:{type:Boolean,default:!1}},emits:["check","toggle"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(!0),o=l.computed(()=>n.node[n.children]||[]),s=l.computed(()=>{var c;return((c=o.value)==null?void 0:c.length)>0}),a=l.computed(()=>{const c=[],h=[],p=[],m=[];return o.value.forEach(y=>{y.show_tab?c.push(y):y.show_header?p.push(y):y.show_table?h.push(y):m.push(y)}),[{title:"表头权限",list:p},{title:"表格权限",list:h},{title:"tab权限",list:c},{title:"其他权限",list:m}]});function u(c,h){r.value=c,i("toggle",h)}function f(c){i("toggle",c)}const d=c=>{i("check",c)};return(c,h)=>{const p=l.resolveComponent("TreeNode",!0),m=l.resolveComponent("el-divider");return l.openBlock(),l.createElementBlock("div",B9e,[l.createVNode(JE,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:e.node,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,disabled:e.disabled,onCheck:d,onShow:u},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","opt-title-key","disabled"]),s.value?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass([e.node.isOptChild?"fs16 lhm jwt-menu-opt-item-opt-wrapper":"pl25"])},[e.node.isOptChild?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(a.value,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v,class:"plr25"},[y.list.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(m,{"border-style":"dashed",class:"jwt-menu-opt-item-opt-divider","content-position":"center"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title),1)]),_:2},1024),l.createElementVNode("div",D9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.list,b=>(l.openBlock(),l.createBlock(JE,{key:b.id,"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,"is-opt":"",disabled:e.disabled,level:e.level+1,"menu-title-key":e.menuTitleKey,node:b,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,onCheck:d},null,8,["checked-keys","children","expand-all","disabled","level","menu-title-key","node","node-key","opt-title-key"]))),128))])],64)):l.createCommentVNode("",!0)]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.node.children,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v},[l.createVNode(p,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:y,"node-key":e.nodeKey,disabled:e.disabled,"opt-title-key":e.optTitleKey,onCheck:d,onToggle:f},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","disabled","opt-title-key"])]))),128))],2)),[[l.vShow,r.value]]):l.createCommentVNode("",!0)])}}},A9e=Object.freeze(Object.defineProperty({__proto__:null,default:CG},Symbol.toStringTag,{value:"Module"})),T9e={class:"rel"},O9e={key:0,class:"menu-opt-nav-wrapper"},F9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Object.assign({name:"JwtTree"},{props:{treeData:{type:Array,default:()=>[]},nodeKey:{type:String,default:"id"},menuTitleKey:{type:String,default:"title"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},menusIdObj:{type:Object,default:()=>{}},showNav:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:checked-keys","change","toggle","tab-change"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(n.checkedKeys||[]),o=l.ref([]),s=l.ref(""),a=new Map,u=new Map;l.provide("menusIdObj",n.menusIdObj||{});const f=(k,w=null)=>{const T=new Map,S=(_,A)=>{_&&_.forEach(D=>{var B,E;const x=D[n.nodeKey];T.set(x,{node:D,parentKey:A,childrenKeys:((B=D[n.children])==null?void 0:B.map(F=>F[n.nodeKey]))||[]}),(E=D[n.children])!=null&&E.length&&S(D[n.children],x)})};return S(k,w),T},d=l.computed(()=>f(n.treeData)),c=l.computed(()=>{var k,w;return Ke.isArray(n.treeData)&&((k=n.treeData)!=null&&k.length)?((w=n.treeData)==null?void 0:w.length)>1?n.treeDatap:n.treeData[0][n.children]:[]}),h=l.computed(()=>c.value.map(k=>`menu-id-${k[n.nodeKey]}`)),p=k=>{if(a.has(k))return a.get(k);const w=[],T=[k];for(;T.length;){const S=T.pop(),_=d.value.get(S);_&&_.childrenKeys.length&&(w.push(..._.childrenKeys),T.push(..._.childrenKeys))}return a.set(k,w),w},m=k=>{if(u.has(k))return u.get(k);const w=[];let T=k;for(;T;){const S=d.value.get(T);S&&S.parentKey?(w.push(S.parentKey),T=S.parentKey):T=null}return u.set(k,w),w},y=({key:k,level:w,checked:T})=>{const S=new Set(r.value),_=new Set(o.value);T?S.add(k):S.delete(k),_.delete(k),p(k).forEach(x=>{_.delete(x),T?S.add(x):S.delete(x)}),m(k).forEach(x=>{const B=d.value.get(x);B&&(B.childrenKeys.every(F=>S.has(F))?(S.add(x),_.delete(x)):(S.delete(x),B.childrenKeys.some(I=>S.has(I))?_.add(x):_.delete(x),B.childrenKeys.some(I=>_.has(I))&&_.add(x)))}),r.value=Array.from(S),o.value=Array.from(_),i("update:checked-keys",r.value),i("change",{key:k,checked:T,level:w,data:d.value.get(k),checkedKeys:r.value,halfCheckedKeys:o.value})},v=()=>{a.clear(),u.clear()};function b(k){i("toggle",k,h.value)}function g(k){i("tab-change",k)}return l.onMounted(()=>{setTimeout(()=>{b("")},1e3)}),l.watchEffect(()=>{n.checkedKeys&&(r.value=[...n.checkedKeys],v())}),l.onUnmounted(()=>{v()}),(k,w)=>{const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createElementBlock("div",T9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.treeData,(_,A)=>(l.openBlock(),l.createBlock(CG,{key:A,"checked-keys":r.value,"expand-all":e.expandAll,level:0,"menu-title-key":e.menuTitleKey,node:_,"node-key":e.nodeKey,disabled:e.disabled,onCheck:y,onToggle:b},null,8,["checked-keys","expand-all","menu-title-key","node","node-key","disabled"]))),128)),e.showNav?(l.openBlock(),l.createElementBlock("div",O9e,[l.createVNode(S,{modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=_=>s.value=_),"tab-position":"right",onTabChange:g},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,_=>(l.openBlock(),l.createBlock(T,{key:_[e.nodeKey],label:_[e.menuTitleKey]},null,8,["label"]))),128))]),_:1},8,["modelValue"])])):l.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-392b12fd"]])},Symbol.toStringTag,{value:"Module"})),P9e=l.defineComponent({name:"JwtUploadFile",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],initOnce:!1,onUploadProgress:!1,uploadFiles:[],uploadSuccessFiles:[],selectUploadFileNum:0}),s=l.computed(()=>e.disabled||(e.isCosBacthUpload?o.uploadProgress:!1)),a=v=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(v,"","",""):v,u=()=>{let v=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else return o.initOnce=!1,[];else v=e.modelValue?[{url:a(e.modelValue),org_url:e.modelValue,name:a(e.modelValue)}]:[];return o.initOnce=!0,v},f=l.watch(()=>e.modelValue,v=>{l.nextTick(()=>{if(!(v!=null&&v.isTrusted))if(v){const b=u();o.fileList=b}else o.fileList=[]})},{immediate:!0}),d=l.computed(()=>vl()),c=v=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const b=v.type,g=parseInt(e.limitSize),k=g/1024,w=v.size/1024<g;w||(k>1?lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${k}MB!`):lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${g}KB!`));const T=w;return T&&(o.onUploadProgress=!0),T},h=()=>{o.onUploadProgress=!1},p=(v,b)=>{if(o.onUploadProgress=!1,v.code===0){let g=o.fileList.concat([b]);y(g)}else lt.ElMessage.error(v.msg),this.dialogVisible=!1},m=(v,b)=>{y(b)},y=v=>{const b=(n==null?void 0:n.imgUploadResKey)||"";o.initOnce=!0;let g=[];v.map(k=>{var T,S,_;const w=(b?(S=(T=k==null?void 0:k.response)==null?void 0:T.data)==null?void 0:S[b]:(_=k==null?void 0:k.response)==null?void 0:_.data)||k.org_url;w&&g.push(w)}),e.multiple?(t("update:modelValue",g),t("onChange",g)):(t("update:modelValue",g[0]||""),t("onChange",g[0]||""))};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onMounted(()=>{}),l.onBeforeUnmount(()=>{f()}),{attrs:i,uploadRef:r,appOptions:n,...l.toRefs(o),headers:d,uploadDisabled:s,handleRemove:m,handleBeforeUpload:c,handleUploadSuccess:p,handleUploadError:h,t:Pe}}}),j9e={class:"w"};function I9e(e,t,n,i,r,o){const s=l.resolveComponent("el-button"),a=l.resolveComponent("el-upload");return l.openBlock(),l.createElementBlock("div",j9e,[l.createVNode(a,l.mergeProps({ref:"uploadRef","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=u=>e.fileList=u),accept:e.attrs.accept||"application/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"with-credentials":""},e.attrs),{default:l.withCtx(()=>[l.createVNode(s,{type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("上传")),1)]),_:1})]),_:1},16,["file-list","accept","action","before-upload","data","disabled","headers","multiple","drag","on-error","on-remove","on-success"])])}const R9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(P9e,[["render",I9e]])},Symbol.toStringTag,{value:"Module"})),N9e=["src"],M9e=["title"],L9e={class:"picture-card-operation"},z9e=["onClick"],SG=Qt({__name:"fileSlot",props:{listType:{type:String,default:"picture-card"},file:{type:Object,default:()=>{}},pictureActions:{type:Array,default:()=>[]}},emits:["remove","on-preview","action"],setup(e,{emit:t}){const n=t,{t:i}=lt.useLocale(),r=lt.useNamespace("upload"),o=lt.useNamespace("icon"),s=lt.useFormDisabled(),a=d=>{n("remove",d)},u=d=>{n("on-preview",d)},f=(d,c)=>{n("action",{item:d,file:c})};return(d,c)=>{const h=l.resolveComponent("el-icon"),p=l.resolveComponent("el-progress");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.listType==="picture"||e.file.status!=="uploading"&&e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("img",{key:0,alt:"",class:l.normalizeClass(l.unref(r).be("list","item-thumbnail")),src:e.file.url},null,10,N9e)):l.createCommentVNode("",!0),e.file.status==="uploading"||e.listType!=="picture-card"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(l.unref(r).be("list","item-info"))},[l.createElementVNode("a",{class:l.normalizeClass(l.unref(r).be("list","item-name")),onClick:c[0]||(c[0]=l.withModifiers(m=>u(e.file),["prevent"]))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("document"))},{default:l.withCtx(()=>[l.createVNode(l.unref(FX))]),_:1},8,["class"]),l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-file-name")),title:e.file.name},l.toDisplayString(e.file.name),11,M9e)],2),e.file.status==="uploading"?(l.openBlock(),l.createBlock(p,{key:0,percentage:Number(e.file.percentage),"stroke-width":e.listType==="picture-card"?6:2,style:l.normalizeStyle(e.listType==="picture-card"?"":"margin-top: 0.5rem"),type:e.listType==="picture-card"?"circle":"line"},null,8,["percentage","stroke-width","style","type"])):l.createCommentVNode("",!0)],2)):l.createCommentVNode("",!0),l.createElementVNode("label",{class:l.normalizeClass(l.unref(r).be("list","item-status-label"))},[e.listType==="text"?(l.openBlock(),l.createBlock(h,{key:0,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("circle-check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(BX))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(l.openBlock(),l.createBlock(h,{key:1,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(xX))]),_:1},8,["class"])):l.createCommentVNode("",!0)],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(h,{key:2,class:l.normalizeClass(l.unref(o).m("close")),onClick:c[1]||(c[1]=m=>a(e.file))},{default:l.withCtx(()=>[l.createVNode(l.unref(vB))]),_:1},8,["class"])),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(l.unref(o).m("close-tip"))},l.toDisplayString(l.unref(i)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(l.unref(r).be("list","item-actions"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-preview")),onClick:c[2]||(c[2]=m=>u(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("zoom-in"))},{default:l.withCtx(()=>[l.createVNode(l.unref(jX))]),_:1},8,["class"])],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(l.unref(r).be("list","item-delete")),onClick:c[3]||(c[3]=m=>a(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("delete"))},{default:l.withCtx(()=>[l.createVNode(l.unref(TX))]),_:1},8,["class"])],2)),l.createElementVNode("div",L9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.pictureActions,(m,y)=>(l.openBlock(),l.createElementBlock("span",{key:y,onClick:l.withModifiers(v=>f(m,e.file),["stop"])},l.toDisplayString(m.label),9,z9e))),128))])],2)):l.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-5526a394"]]),V9e=Object.freeze(Object.defineProperty({__proto__:null,default:SG},Symbol.toStringTag,{value:"Module"})),U9e=l.defineComponent({name:"JwtUploadImage",components:{FileSlot:SG,PasteUpload:Db},props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},uploadPrefixName:{type:String,default:""},copyImgUploade:{type:Boolean,default:!1},verifyFileType:{type:Boolean,default:!0},uploadName:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click","picture-action","after-btns-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadParams:{...e.uploadParam,name:"",goods_matting:0}}),s=(C="")=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(C):C,a=l.computed(()=>(e==null?void 0:e.uploadName)||(n==null?void 0:n.uploadFileName)||"filedata"),u=l.computed(()=>({"--upload-picture-card-size":(i==null?void 0:i.cardSize)||"148px"})),f=l.computed(()=>(e==null?void 0:e.listType)==="picture-card"),d=l.computed(()=>{var C;return e.multiple?!1:!!((C=e==null?void 0:e.modelValue)!=null&&C.length)||o.onUploadProgress}),c=()=>{var I;if(!e.modelValue)return[];let C=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if((I=e.modelValue)!=null&&I.length)C=[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}];else return o.initOnce=!1,[];else C=e.modelValue?[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}]:[];return o.initOnce=!0,C},h=l.watch(()=>e.modelValue,C=>{l.nextTick(()=>{if(!(C!=null&&C.isTrusted))if(C){const I=c();o.fileList=I}else o.fileList=[]})},{immediate:!0}),p=l.computed(()=>vl()),m=C=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));o.uploadParams.name=`${e.uploadPrefixName}${e.uploadPrefixName?"_":""}${C.name}`;const I=C.type,N=parseInt(e.limitSize),H=N/1024,Q=C.size/1024<N,ie=["image/jpeg","image/png","image/gif","image/webp","image/x-icon"];let ae=e.verifyFileType?ie.includes(I):!0;I.includes(".icon")&&(ae=!0),ae||lt.ElMessage.error(Pe("上传图片只能是JPG,PNG,GIF,WEBP格式")),Q||(H>1?lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${H}MB!`):lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${N}KB!`));const M=ae&&Q;return M&&(o.onUploadProgress=!0),M},y=()=>{o.onUploadProgress=!1},v=(C,I,N)=>{const H=N.every(Q=>Q.status==="success");o.onUploadProgress=!1,H&&g(N)},b=(C,I)=>{g(I)},g=C=>{const I=n.imgUploadResKey||"";o.initOnce=!0;let N=[];C.map(H=>{var ie,ae,M;const Q=(I?(ae=(ie=H==null?void 0:H.response)==null?void 0:ie.data)==null?void 0:ae[I]:(M=H==null?void 0:H.response)==null?void 0:M.data)||H.org_url;Q&&N.push(Q)}),e.multiple?(t("update:modelValue",N),t("onChange",N)):(t("update:modelValue",N[0]||""),t("onChange",N[0]||""))},k=C=>{o.dialogImageUrl=C.url,o.dialogVisible=!0},w=C=>{r.value.handleStart(C),r.value.submit()},T=()=>{t("after-btn-click")},S=(C,I)=>{t("after-btns-click",C,I)},_=(C,I)=>{const N=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});i.mattingUrl&&i.requestFun({url:i.mattingUrl,method:"post",data:{http_path:C,...e.uploadParam}}).then(H=>{const Q=H==null?void 0:H.relative_path.split(",").map(ie=>({url:s(ie),org_url:ie,name:ie}));t("picture-action",{file:Q,item:I}),N.close()}).catch(()=>{N.close()})},A=C=>{r.value.handleRemove(C)},D=l.computed(()=>o.fileList.length&&i.mattingAll),x=l.computed(()=>{const C=(i==null?void 0:i.actionList)||[];return C.length===0?[]:[{label:Pe("设为主图"),code:"setMain"},{label:Pe("抠图"),code:"mattingImg"},{label:Pe("设计"),code:"design"}].filter(H=>C.includes(H.code))}),B=({file:C,item:I})=>{if(I.code==="mattingImg"){_(C.url,I);return}t("picture-action",{file:C,item:I})},E=()=>{var I,N;const C=(N=(I=o.fileList)==null?void 0:I.map(H=>H.org_url))==null?void 0:N.join(",");C&&_(C,{code:"mattingAll"})},F=(C,I)=>{};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onBeforeUnmount(()=>{o.fileList=[],o.initOnce=!1,h()}),{attrs:i,uploadRef:r,appOptions:n,isPictureCard:f,...l.toRefs(o),headers:p,showOnlyOne:d,pictureActions:x,showMattingAll:D,styleObj:u,uploadFileName:a,handleRemove:b,handleBeforeUpload:m,handleUploadSuccess:v,handlePictureCardPreview:k,handleUploadError:y,handleUploadPaste:w,t:Pe,handleAfterBtn:T,handleClickAfterBtns:S,handleFileRemove:A,handlePictureAction:B,handleAllMattingImg:E,handleUploadOnChange:F}}}),H9e={key:0,class:"fv fxr ml5"},q9e=["src"];function W9e(e,t,n,i,r,o){const s=l.resolveComponent("PasteUpload"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-button"),f=l.resolveComponent("file-slot"),d=l.resolveComponent("el-upload"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",{class:"w jwt-upload-image-wrapper",style:l.normalizeStyle(e.styleObj)},[l.createVNode(s,{"btn-list":e.attrs.btnList,"btn-text":e.attrs.afterBtnText,copy:e.copyImgUploade,disabled:e.disabled,limit:e.showOnlyOne,onAfterBtnClick:e.handleAfterBtn,onAfterBtnsClick:e.handleClickAfterBtns,onUploadPaste:e.handleUploadPaste},null,8,["btn-list","btn-text","copy","disabled","limit","onAfterBtnClick","onAfterBtnsClick","onUploadPaste"]),l.createElementVNode("div",{class:l.normalizeClass([e.isPictureCard?"fx":""])},[l.createVNode(d,{ref:"uploadRef",accept:e.attrs.accept||"image/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParams,disabled:e.disabled,drag:e.dragUpload,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:e.uploadFileName,"on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0,"with-credentials":""},l.createSlots({trigger:l.withCtx(()=>[e.isPictureCard?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...h)=>e.handleAfterBtn&&e.handleAfterBtn(...h),["stop"]))},[l.createVNode(a,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(a,{key:1,icon:"add-line",size:40}))],64)):(l.openBlock(),l.createBlock(u,{key:1,type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("选择文件")),1)]),_:1}))]),_:2},[e.attrs.mattingUrl?{name:"file",fn:l.withCtx(({file:h})=>[l.createVNode(f,{file:h,"list-type":e.listType,"picture-actions":e.pictureActions,onAction:e.handlePictureAction,onOnPreview:e.handlePictureCardPreview,onRemove:e.handleFileRemove},null,8,["file","list-type","picture-actions","onAction","onOnPreview","onRemove"])]),key:"0"}:void 0]),1032,["accept","action","before-upload","class","data","disabled","drag","file-list","headers","list-type","multiple","name","on-change","on-error","on-preview","on-remove","on-success"]),e.showMattingAll?(l.openBlock(),l.createElementBlock("div",H9e,[l.createVNode(u,{type:"primary",onClick:e.handleAllMattingImg},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("一键抠图")),1)]),_:1},8,["onClick"])])):l.createCommentVNode("",!0)],2),e.attrs.tips1?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.attrs.tipsCls)},l.toDisplayString(e.attrs.tips),3)):l.createCommentVNode("",!0),l.createVNode(c,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=h=>e.dialogVisible=h),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,q9e)]),_:1},8,["modelValue"])],4)}const K9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(U9e,[["render",W9e]])},Symbol.toStringTag,{value:"Module"})),G9e=l.defineComponent({name:"JwtUploadVideo",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},copyImgUploade:{type:Boolean,default:!1},isCosSdk:{type:Boolean,default:!1},isCosBacthUpload:{type:Boolean,default:!0},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn();var i=null;const r=l.useAttrs(),o=l.ref(null),s=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadFiles:[],uploadSuccessFiles:[],uploadFileNum:0,selectUploadFileNum:0,uploadTips:"",uploadProgress:!1,uploadPercent:0,cosConfig:{}}),a=l.computed(()=>e.disabled||(e.isCosBacthUpload?s.uploadProgress:!1)),u=x=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(x,"","",""):x,f=l.computed(()=>{var x;return e.multiple?!1:!!((x=e==null?void 0:e.modelValue)!=null&&x.length)||s.onUploadProgress}),d=()=>{let x=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else return s.initOnce=!1,[];else x=e.modelValue?[{url:u(e.modelValue),org_url:e.modelValue,name:u(e.modelValue)}]:[];return s.initOnce=!0,x};l.watch(()=>e.modelValue,x=>{l.nextTick(()=>{if(!(x!=null&&x.isTrusted))if(x){const B=d();s.fileList=B}else s.fileList=[]})},{immediate:!0});const c=l.computed(()=>vl()),h=x=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const B=x.type,E=parseInt(e.limitSize),F=E/1024,C=x.size/1024<E;C||(F>1?lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${F}MB!`):lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${E}KB!`));const I=C;return I&&(s.onUploadProgress=!0),I},p=()=>{s.onUploadProgress=!1},m=(x,B)=>{if(s.onUploadProgress=!1,x.code===0){let E=s.fileList.concat([B]);v(E)}else lt.ElMessage.error(x.msg),this.dialogVisible=!1},y=(x,B)=>{v(B)},v=x=>{const B=n.imgUploadResKey||"";s.initOnce=!0;let E=[];x.map(F=>{var I,N,H;const C=(B?(N=(I=F==null?void 0:F.response)==null?void 0:I.data)==null?void 0:N[B]:(H=F==null?void 0:F.response)==null?void 0:H.data)||F.org_url;C&&E.push(C)}),e.multiple?(t("update:modelValue",E),t("onChange",E)):(t("update:modelValue",E[0]||""),t("onChange",E[0]||""))},b=(x,B)=>{if(!e.isCosSdk)return;s.uploadFiles.push(x);let E=B.length;s.selectUploadFileNum=Math.max(E,s.selectUploadFileNum),setTimeout(()=>{s.selectUploadFileNum!==E||s.uploadProgress&&e.isCosBacthUpload||(s.uploadProgress=!0,s.uploadTips=Pe("正在上传中")+"...",s.uploadSuccessFiles=[],g(s.uploadFiles))},50)},g=async x=>{Bb.handleUploadFiles(x,e.isCosBacthUpload,{onProgress:k,onFileFinish:w,handlePath:T})},k=(x,B)=>{e.isCosBacthUpload&&(s.uploadPercent=x)},w=(x,B,E,F)=>{if(e.isCosBacthUpload)if(x)lt.ElMessage.error(Pe("上传失败请重新上传")),s.uploadTips=Pe("上传失败请重新上传")+"...",s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0;else{s.uploadFileNum+=1;const C=`/${E.Key}`,I=s.uploadFiles.findIndex(N=>N.keyPath===E.Key);if(I>=0&&(s.uploadFiles[I].uploadDone="done",s.uploadFiles[I].uploadPercent=100),s.uploadSuccessFiles.push({org_url:C}),s.uploadFileNum===F.length){s.uploadTips=Pe("上传完成");let N=s.fileList.concat(s.uploadSuccessFiles);v(N),setTimeout(()=>{s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0},500)}}else if(x)lt.ElMessage.error(Pe("上传失败请重新上传"));else{const C=`/${E.Key}`;let I=s.fileList.concat([{org_url:C}]);v(I)}},T=x=>`${ir.get("companyId")}/${e.module}/${fa().format("YYYYMMDD")}/${u7(x.name+`${c7(0,1e4)}`)}.${x.ext}`,S=x=>{s.dialogImageUrl=x,s.dialogVisible=!0},_=()=>{t("after-btn-click")},A=(x,B)=>{if(s.fileList.splice(x,1),l.nextTick(()=>{v(s.fileList)}),s.uploadFileList.length){const E=s.uploadFileList.findIndex(F=>F.org_url===B.org_url);E>=0&&s.uploadFileList.splice(E,1)}},D=()=>{i=Bb.getInstance(n.txCosUploadFileUrl)};return l.onBeforeMount(()=>{s.fileList=[],s.initOnce=!1}),l.onMounted(()=>{e.isCosSdk&&D()}),{attrs:r,uploadRef:o,appOptions:n,...l.toRefs(s),headers:c,showOnlyOne:f,uploadDisabled:a,handleRemove:y,handleBeforeUpload:h,handleUploadSuccess:m,handleVideoPreview:S,handleUploadError:p,t:Pe,handleAfterBtn:_,handleDeleteVideo:A,handleUploadOnChange:b,handleInitCosSdk:D}}}),J9e={class:"w"},Y9e={class:"fx fxwp el-upload-list el-upload-list--picture-card"},X9e=["src"],Z9e={key:0,class:"jwt-material-img-mask"},Q9e=["onClick"],$9e=["onClick"],eEe={class:"fx mb10 fxb"},tEe={key:0},nEe={class:"g6 fs12 lh1"},iEe={key:1,style:{width:"50%"}},rEe={class:"cd"},oEe=["src"];function aEe(e,t,n,i,r,o){const s=l.resolveComponent("jwt-icon"),a=l.resolveComponent("el-upload"),u=l.resolveComponent("el-button"),f=l.resolveComponent("el-progress"),d=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",J9e,[l.createElementVNode("ul",Y9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.fileList,(c,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"el-upload-list__item is-success rel"},[l.createElementVNode("video",{class:"wh",controls:"",src:c.url},null,8,X9e),c.url?(l.openBlock(),l.createElementBlock("div",Z9e,[l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleVideoPreview(c.url),["stop"])},t[2]||(t[2]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z",fill:"currentColor"})],-1)]),8,Q9e),l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleDeleteVideo(h,c),["stop"])},t[3]||(t[3]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z",fill:"currentColor"})],-1)]),8,$9e)])):l.createCommentVNode("",!0)]))),128)),l.createVNode(a,{ref:"uploadRef",accept:"video/*",action:e.appOptions.uploadImgUrl,"auto-upload":!e.isCosSdk,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,"list-type":e.listType,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...c)=>e.handleAfterBtn&&e.handleAfterBtn(...c),["stop"]))},[l.createVNode(s,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(s,{key:1,icon:"add-line",size:40}))]),_:1},8,["action","auto-upload","before-upload","class","data","disabled","headers","list-type","multiple","drag","on-change","on-error","on-remove","on-success"]),l.createElementVNode("div",eEe,[e.attrs.afterBtnText?(l.openBlock(),l.createBlock(u,{key:0,class:"ml10",disabled:e.disabled,size:"default",type:"primary",onClick:e.handleAfterBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t(e.attrs.afterBtnText)||e.t("从素材库选")),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0)])]),e.isCosBacthUpload?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",tEe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.uploadFiles,(c,h)=>(l.openBlock(),l.createElementBlock("div",{key:h,class:"lh1"},[l.createElementVNode("span",nEe,l.toDisplayString(c.name),1),l.createVNode(f,{class:"mt2",percentage:c.uploadPercent,"stroke-width":3},null,8,["percentage"])]))),128))])),e.isCosBacthUpload&&e.uploadProgress?(l.openBlock(),l.createElementBlock("div",iEe,[l.createVNode(f,{percentage:e.uploadPercent},null,8,["percentage"]),l.createElementVNode("span",rEe,l.toDisplayString(e.uploadTips),1)])):l.createCommentVNode("",!0),l.createVNode(d,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=c=>e.dialogVisible=c),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("video",{controls:"",src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,oEe)]),_:1},8,["modelValue"])])}const sEe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(G9e,[["render",aEe],["__scopeId","data-v-bbd8a00e"]])},Symbol.toStringTag,{value:"Module"})),lEe={beforeMount(e,t){var a;const n=t.arg||{},i=((a=t==null?void 0:t.modifiers)==null?void 0:a.once)||!1,r=n.root||null,o=n.rootMargin||"0px",s=n.threshold||0;e.intersectionObserver=new IntersectionObserver(u=>{u[0].isIntersecting&&(t.value(),i&&e.intersectionObserver.disconnect())},{root:r,rootMargin:o,threshold:s}),e.intersectionObserver.observe(e)},unmounted(e){e.intersectionObserver.disconnect()}};function uEe(e){const t=new Map;return function(...n){const i=JSON.stringify(n);if(t.has(i))return t.get(i);const r=l.computed(()=>e(...n));return t.set(i,r),r}}var xG={exports:{}};const fEe=DSe(nSe);(function(e,t){(function(n,i){e.exports=i(fEe)})(self,n=>(()=>{var i={857:a=>{a.exports=n}},r={};function o(a){var u=r[a];if(u!==void 0)return u.exports;var f=r[a]={exports:{}};return i[a](f,f.exports,o),f.exports}o.d=(a,u)=>{for(var f in u)o.o(u,f)&&!o.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},o.o=(a,u)=>Object.prototype.hasOwnProperty.call(a,u),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{default:()=>V});var a=o(857);(0,a.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,a.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function u(L,W,G,$,re){return{sel:L,data:W,children:G,text:$,elm:re,key:W===void 0?void 0:W.key}}const f=Array.isArray;function d(L){return typeof L=="string"||typeof L=="number"||L instanceof String||L instanceof Number}function c(L,W,G){if(L.ns="http://www.w3.org/2000/svg",G!=="foreignObject"&&W!==void 0)for(let $=0;$<W.length;++$){const re=W[$];if(typeof re=="string")continue;const be=re.data;be!==void 0&&c(be,re.children,re.sel)}}function h(L,W,G){let $,re,be,Se={};if(G!==void 0?(W!==null&&(Se=W),f(G)?$=G:d(G)?re=G.toString():G&&G.sel&&($=[G])):W!=null&&(f(W)?$=W:d(W)?re=W.toString():W&&W.sel?$=[W]:Se=W),$!==void 0)for(be=0;be<$.length;++be)d($[be])&&($[be]=u(void 0,void 0,void 0,$[be],void 0));return L[0]!=="s"||L[1]!=="v"||L[2]!=="g"||L.length!==3&&L[3]!=="."&&L[3]!=="#"||c(Se,$,L),u(L,Se,$,re,void 0)}const p={type:"attachment",renderElem:function(L,W,G){var $=G.isDisabled(),re=a.DomEditor.isNodeSelected(G,L),be=L,Se=be.fileName,ee=Se===void 0?"":Se,we=be.link,Ee=we===void 0?"":we;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:re&&!$?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:$?"pointer":"inherit"},on:{click:function(){$&&Ee&&window.open(Ee,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),ee])}};function m(L){return L!==null&&typeof L=="object"&&"constructor"in L&&L.constructor===Object}function y(L={},W={}){Object.keys(W).forEach(G=>{L[G]===void 0?L[G]=W[G]:m(W[G])&&m(L[G])&&Object.keys(W[G]).length>0&&y(L[G],W[G])})}const v={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const L=typeof document<"u"?document:{};return y(L,v),L}const g={document:v,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:L=>typeof setTimeout>"u"?(L(),null):setTimeout(L,0),cancelAnimationFrame(L){typeof setTimeout<"u"&&clearTimeout(L)}};function k(){const L=typeof window<"u"?window:{};return y(L,g),L}class w extends Array{constructor(W){typeof W=="number"?super(W):(super(...W||[]),function(G){const $=G.__proto__;Object.defineProperty(G,"__proto__",{get:()=>$,set(re){$.__proto__=re}})}(this))}}function T(L,W){const G=k(),$=b();let re=[];if(!W&&L instanceof w)return L;if(!L)return new w(re);if(typeof L=="string"){const be=L.trim();if(be.indexOf("<")>=0&&be.indexOf(">")>=0){let Se="div";be.indexOf("<li")===0&&(Se="ul"),be.indexOf("<tr")===0&&(Se="tbody"),be.indexOf("<td")!==0&&be.indexOf("<th")!==0||(Se="tr"),be.indexOf("<tbody")===0&&(Se="table"),be.indexOf("<option")===0&&(Se="select");const ee=$.createElement(Se);ee.innerHTML=be;for(let we=0;we<ee.childNodes.length;we+=1)re.push(ee.childNodes[we])}else re=function(Se,ee){if(typeof Se!="string")return[Se];const we=[],Ee=ee.querySelectorAll(Se);for(let P=0;P<Ee.length;P+=1)we.push(Ee[P]);return we}(L.trim(),W||$)}else if(L.nodeType||L===G||L===$)re.push(L);else if(Array.isArray(L)){if(L instanceof w)return L;re=L}return new w(function(be){const Se=[];for(let ee=0;ee<be.length;ee+=1)Se.indexOf(be[ee])===-1&&Se.push(be[ee]);return Se}(re))}function S(...L){let[W,G,$,re]=L;function be(Ee){const P=Ee.target;if(!P)return;const le=Ee.target.dom7EventData||[];if(le.indexOf(Ee)<0&&le.unshift(Ee),T(P).is(G))$.apply(P,le);else{const me=T(P).parents();for(let J=0;J<me.length;J+=1)T(me[J]).is(G)&&$.apply(me[J],le)}}function Se(Ee){const P=Ee&&Ee.target&&Ee.target.dom7EventData||[];P.indexOf(Ee)<0&&P.unshift(Ee),$.apply(this,P)}typeof L[1]=="function"&&([W,$,re]=L,G=void 0),re||(re=!1);const ee=W.split(" ");let we;for(let Ee=0;Ee<this.length;Ee+=1){const P=this[Ee];if(G)for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7LiveListeners||(P.dom7LiveListeners={}),P.dom7LiveListeners[le]||(P.dom7LiveListeners[le]=[]),P.dom7LiveListeners[le].push({listener:$,proxyListener:be}),P.addEventListener(le,be,re)}else for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7Listeners||(P.dom7Listeners={}),P.dom7Listeners[le]||(P.dom7Listeners[le]=[]),P.dom7Listeners[le].push({listener:$,proxyListener:Se}),P.addEventListener(le,Se,re)}}return this}function _(){for(let L=0;L<this.length;L+=1)this[L].style.display="none";return this}function A(...L){let W;const G=b();for(let $=0;$<L.length;$+=1){W=L[$];for(let re=0;re<this.length;re+=1)if(typeof W=="string"){const be=G.createElement("div");for(be.innerHTML=W;be.firstChild;)this[re].appendChild(be.firstChild)}else if(W instanceof w)for(let be=0;be<W.length;be+=1)this[re].appendChild(W[be]);else this[re].appendChild(W)}return this}T.fn=w.prototype;const D="resize scroll".split(" ");function x(L){return function(...W){if(W[0]===void 0){for(let G=0;G<this.length;G+=1)D.indexOf(L)<0&&(L in this[G]?this[G][L]():T(this[G]).trigger(L));return this}return this.on(L,...W)}}const B=x("click"),E=T;E.fn.hide=_,E.fn.append=A,E.fn.click=B,E.fn.on=S;const F=E;var C=function(){return C=Object.assign||function(L){for(var W,G=1,$=arguments.length;G<$;G++)for(var re in W=arguments[G])Object.prototype.hasOwnProperty.call(W,re)&&(L[re]=W[re]);return L},C.apply(this,arguments)},I=function(L,W,G,$){return new(G||(G=Promise))(function(re,be){function Se(Ee){try{we($.next(Ee))}catch(P){be(P)}}function ee(Ee){try{we($.throw(Ee))}catch(P){be(P)}}function we(Ee){var P;Ee.done?re(Ee.value):(P=Ee.value,P instanceof G?P:new G(function(le){le(P)})).then(Se,ee)}we(($=$.apply(L,[])).next())})},N=function(L,W){var G,$,re,be,Se={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return be={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function ee(we){return function(Ee){return function(P){if(G)throw new TypeError("Generator is already executing.");for(;Se;)try{if(G=1,$&&(re=2&P[0]?$.return:P[0]?$.throw||((re=$.return)&&re.call($),0):$.next)&&!(re=re.call($,P[1])).done)return re;switch($=0,re&&(P=[2&P[0],re.value]),P[0]){case 0:case 1:re=P;break;case 4:return Se.label++,{value:P[1],done:!1};case 5:Se.label++,$=P[1],P=[0];continue;case 7:P=Se.ops.pop(),Se.trys.pop();continue;default:if(!((re=(re=Se.trys).length>0&&re[re.length-1])||P[0]!==6&&P[0]!==2)){Se=0;continue}if(P[0]===3&&(!re||P[1]>re[0]&&P[1]<re[3])){Se.label=P[1];break}if(P[0]===6&&Se.label<re[1]){Se.label=re[1],re=P;break}if(re&&Se.label<re[2]){Se.label=re[2],Se.ops.push(P);break}re[2]&&Se.ops.pop(),Se.trys.pop();continue}P=W.call(L,Se)}catch(le){P=[6,le],$=0}finally{G=re=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([we,Ee])}}};function H(L){return L.getMenuConfig("uploadAttachment")}function Q(L,W,G){if(W&&G){L.restoreSelection();var $={type:"attachment",fileName:W,link:G,children:[{text:""}]};L.insertNode($),L.move(1);var re=H(L).onInsertedAttachment;re&&re($)}}function ie(L,W){return I(this,void 0,void 0,function(){var G,$,re,be;return N(this,function(Se){switch(Se.label){case 0:return G=function(ee){var we=ae.get(ee);if(we!=null)return we;var Ee=H(ee),P=Ee.onSuccess,le=Ee.onProgress,me=Ee.onFailed,J=Ee.customInsert,Y=Ee.onError;return we=(0,a.createUploader)(C(C({},Ee),{onProgress:function(fe){ee.showProgressBar(fe),le&&le(fe)},onSuccess:function(fe,oe){if(J)J(oe,fe,function(st,it){return Q(ee,st,it)});else{var pe=oe.errno,de=pe===void 0?1:pe,Oe=oe.data,ve=Oe===void 0?{}:Oe;if(de!==0)return void me(fe,oe);var _e=ve.url,Ue=_e===void 0?"":_e;Q(ee,fe.name,Ue),P(fe,oe)}},onError:function(fe,oe,pe){var de=fe.name;Y&&Y(fe,oe,pe)}})),ae.set(ee,we),we}(L),$=W.name,re=W.type,be=W.size,G.addFile({name:$,type:re,size:be,data:W}),[4,G.upload()];case 1:return Se.sent(),[2]}})})}var ae=new WeakMap;const M=function(){function L(){this.title=(0,a.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return L.prototype.getValue=function(W){return""},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){var $=this.getMenuConfig(W),re=$.allowedFileTypes,be=re===void 0?[]:re,Se=$.customBrowseAndUpload;if(Se)Se(function(P,le){return Q(W,P,le)});else{var ee="";be.length>0&&(ee='accept="'.concat(be.join(", "),'"'));var we=F("body"),Ee=F('<input type="file" '.concat(ee," multiple/>"));Ee.hide(),we.append(Ee),Ee.click(),Ee.on("change",function(){var P=Ee[0].files;(function(le,me){var J,Y;I(this,void 0,void 0,function(){var fe,oe,pe,de,Oe,ve;return N(this,function(_e){switch(_e.label){case 0:if(me==null)return[2];fe=Array.prototype.slice.call(me),oe=H(le).customUpload,_e.label=1;case 1:_e.trys.push([1,9,10,15]),pe=function(Ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var st,it=Ue[Symbol.asyncIterator];return it?it.call(Ue):(Ue=typeof __values=="function"?__values(Ue):Ue[Symbol.iterator](),st={},xt("next"),xt("throw"),xt("return"),st[Symbol.asyncIterator]=function(){return this},st);function xt(yt){st[yt]=Ue[yt]&&function(je){return new Promise(function(ce,ke){(function(Be,Ve,He,rt){Promise.resolve(rt).then(function(ct){Be({value:ct,done:He})},Ve)})(ce,ke,(je=Ue[yt](je)).done,je.value)})}}}(fe),_e.label=2;case 2:return[4,pe.next()];case 3:return(de=_e.sent()).done?[3,8]:(Oe=de.value,oe?[4,oe(Oe,function(Ue,st){return Q(le,Ue,st)})]:[3,5]);case 4:return _e.sent(),[3,7];case 5:return[4,ie(le,Oe)];case 6:_e.sent(),_e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return ve=_e.sent(),J={error:ve},[3,15];case 10:return _e.trys.push([10,,13,14]),de&&!de.done&&(Y=pe.return)?[4,Y.call(pe)]:[3,12];case 11:_e.sent(),_e.label=12;case 12:return[3,14];case 13:if(J)throw J.error;return[7];case 14:return[7];case 15:return[2]}})})})(W,P)})}},L.prototype.isDisabled=function(W){var G=W.selection;if(G==null||a.SlateRange.isExpanded(G))return!0;var $=a.DomEditor.getSelectedElems(W);return!!$.some(function(re){return W.isVoid(re)})||!!$.some(function(re){return a.DomEditor.getNodeType(re)==="pre"})},L.prototype.getMenuConfig=function(W){return W.getMenuConfig("uploadAttachment")},L}(),j=function(){function L(){this.title=(0,a.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return L.prototype.getValue=function(W){var G=this.getSelectedElem(W);return G==null?"":G.link},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){G&&typeof G=="string"&&window.open(G,"_blank")},L.prototype.isDisabled=function(W){var G=W.selection;return G==null||!!a.SlateRange.isExpanded(G)||this.getSelectedElem(W)==null},L.prototype.getSelectedElem=function(W){var G=a.DomEditor.getSelectedNodeByType(W,"attachment");return G??null},L}(),V={editorPlugin:function(L){var W=L.isInline,G=L.isVoid,$=L;return $.isInline=function(re){return a.DomEditor.getNodeType(re)==="attachment"||W(re)},$.isVoid=function(re){return a.DomEditor.getNodeType(re)==="attachment"||G(re)},$},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(L,W){var G=L,$=G.link,re=$===void 0?"":$,be=G.fileName,Se=be===void 0?"":be;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(re,'" download="').concat(Se,'">').concat(Se,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(L,W,G){return{type:"attachment",link:L.getAttribute("href")||"",fileName:L.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new M},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(L){return L},onProgress:function(L){},onSuccess:function(L,W){},onFailed:function(L,W){},onError:function(L,W,G){},onInsertedAttachment:function(L){}}},{key:"downloadAttachment",factory:function(){return new j}}]}})(),s})())})(xG);var dEe=xG.exports;const cEe=bE(dEe),hEe=(e,t={})=>{_J(t);const n=Object.assign({"./JwtCascaderArea/index.vue":TJ,"./JwtCascaderServer/index.vue":jJ,"./JwtColumnItme/components/ColumnDateTimeFormat.vue":x7,"./JwtColumnItme/components/ColumnDefault.vue":E7,"./JwtColumnItme/components/ColumnFile.vue":B7,"./JwtColumnItme/components/ColumnHtml.vue":D7,"./JwtColumnItme/components/ColumnImg.vue":A7,"./JwtColumnItme/components/ColumnImgAdd.vue":T7,"./JwtColumnItme/components/ColumnImgs.vue":O7,"./JwtColumnItme/components/ColumnLink.vue":F7,"./JwtColumnItme/components/ColumnTag.vue":P7,"./JwtColumnItme/components/ColumnTagList.vue":j7,"./JwtColumnItme/components/ColumnText.vue":gk,"./JwtColumnItme/components/ColumnVideo.vue":I7,"./JwtColumnItme/index.vue":lY,"./JwtCount/index.vue":dY,"./JwtCropper/index.vue":aX,"./JwtCropperDialog/index.vue":fX,"./JwtDesHeader/index.vue":Pk,"./JwtDesInfo/index.vue":yX,"./JwtDesTable/index.vue":wX,"./JwtDetailDrawer/index.vue":XX,"./JwtDialogForm/index.vue":oZ,"./JwtEditor/index.vue":wSe,"./JwtEmojiSelect/index.vue":ESe,"./JwtFileIcon/index.vue":BSe,"./JwtFileUpload/index.vue":XSe,"./JwtForm/components/FormLabel.vue":exe,"./JwtForm/index.vue":oxe,"./JwtFormItem/components/FormAutocomplete.vue":bK,"./JwtFormItem/components/FormCascader.vue":kE,"./JwtFormItem/components/FormCascaderPanel.vue":kK,"./JwtFormItem/components/FormCheckbox.vue":wK,"./JwtFormItem/components/FormColorPicker.vue":_K,"./JwtFormItem/components/FormDatePicker.vue":wE,"./JwtFormItem/components/FormDivider.vue":_E,"./JwtFormItem/components/FormEditInput.vue":CE,"./JwtFormItem/components/FormInput.vue":SE,"./JwtFormItem/components/FormInputHidden.vue":CK,"./JwtFormItem/components/FormInputSelect.vue":SK,"./JwtFormItem/components/FormNumberInput.vue":xE,"./JwtFormItem/components/FormRadio.vue":xK,"./JwtFormItem/components/FormRate.vue":EK,"./JwtFormItem/components/FormSelect.vue":BK,"./JwtFormItem/components/FormSlider.vue":DK,"./JwtFormItem/components/FormSwitch.vue":EE,"./JwtFormItem/components/FormTabs.vue":AK,"./JwtFormItem/components/FormTimePicker.vue":BE,"./JwtFormItem/components/FormTimeSelect.vue":TK,"./JwtFormItem/components/FormTips.vue":OK,"./JwtFormItem/components/FormTransfer.vue":FK,"./JwtFormItem/index.vue":fxe,"./JwtHeaderButton/index.vue":vxe,"./JwtIcon/index.vue":_xe,"./JwtIconSelect/index.vue":Dxe,"./JwtImage/index.vue":Fxe,"./JwtInput/index.vue":Ixe,"./JwtMaterial/index.vue":C5e,"./JwtMaterialItemMask/index.vue":Lxe,"./JwtPrefixSuffix/index.vue":B5e,"./JwtRateIcon/index.vue":O5e,"./JwtSelectServer/index.vue":H5e,"./JwtTable/components/tableColumnHeader.vue":q5e,"./JwtTable/components/tableContentControl.vue":N8e,"./JwtTable/components/tableFieldControl.vue":M8e,"./JwtTable/components/tableListContent.vue":L8e,"./JwtTable/components/tableListContentVirtualized.vue":K8e,"./JwtTable/components/tableSizeSetting.vue":G8e,"./JwtTable/index copy.vue":t9e,"./JwtTable/index.vue":u9e,"./JwtTableButton/components/ActionButton.vue":dxe,"./JwtTableButton/index.vue":H8e,"./JwtTableOnly/index.vue":v9e,"./JwtTabs/index.vue":k9e,"./JwtTags/index.vue":S9e,"./JwtTree/components/TreeNode.vue":A9e,"./JwtTree/components/TreeNodeTitle.vue":E9e,"./JwtTree/index.vue":F9e,"./JwtUploadFile/index.vue":R9e,"./JwtUploadImage/components/fileSlot.vue":V9e,"./JwtUploadImage/components/pasteUpload.vue":HSe,"./JwtUploadImage/index.vue":K9e,"./JwtUploadVideo/index.vue":sEe});for(const i in n){const r=n[i];r.default.name&&e.component(r.default.name,r.default||r)}e.directive("jwt-observe-viewport",lEe)};fi.registerModule(cEe);function EG(e){return e&&e.__esModule?e.default:e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jb,bt,BG,bm,DG,AG,Yb={},TG=[],pEe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ml(e,t){for(var n in t)e[n]=t[n];return e}function OG(e){var t=e.parentNode;t&&t.removeChild(e)}function YE(e,t,n){var i,r,o,s={};for(o in t)o=="key"?i=t[o]:o=="ref"?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Jb.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Xb(e,s,i,r,null)}function Xb(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++BG};return r==null&&bt.vnode!=null&&bt.vnode(o),o}function La(){return{current:null}}function rc(e){return e.children}function la(e,t){this.props=e,this.context=t}function oc(e,t){if(t==null)return e.__?oc(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?oc(e):null}function FG(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return FG(e)}}function PG(e){(!e.__d&&(e.__d=!0)&&bm.push(e)&&!Zb.__r++||AG!==bt.debounceRendering)&&((AG=bt.debounceRendering)||DG)(Zb)}function Zb(){for(var e;Zb.__r=bm.length;)e=bm.sort(function(t,n){return t.__v.__b-n.__v.__b}),bm=[],e.some(function(t){var n,i,r,o,s,a;t.__d&&(s=(o=(n=t).__v).__e,(a=n.__P)&&(i=[],(r=ml({},o)).__v=o.__v+1,XE(a,o,r,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,i,s??oc(o),o.__h),zG(i,o),o.__e!=s&&FG(o)))})}function jG(e,t,n,i,r,o,s,a,u,f){var d,c,h,p,m,y,v,b=i&&i.__k||TG,g=b.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Xb(null,p,null,null,p):Array.isArray(p)?Xb(rc,{children:p},null,null,null):p.__b>0?Xb(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(h=b[d])===null||h&&p.key==h.key&&p.type===h.type)b[d]=void 0;else for(c=0;c<g;c++){if((h=b[c])&&p.key==h.key&&p.type===h.type){b[c]=void 0;break}h=null}XE(e,p,h=h||Yb,r,o,s,a,u,f),m=p.__e,(c=p.ref)&&h.ref!=c&&(v||(v=[]),h.ref&&v.push(h.ref,null,p),v.push(c,p.__c||m,p)),m!=null?(y==null&&(y=m),typeof p.type=="function"&&p.__k===h.__k?p.__d=u=IG(p,u,e):u=RG(e,p,h,b,m,u),typeof n.type=="function"&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=oc(h))}for(n.__e=y,d=g;d--;)b[d]!=null&&(typeof n.type=="function"&&b[d].__e!=null&&b[d].__e==n.__d&&(n.__d=oc(i,d+1)),UG(b[d],b[d]));if(v)for(d=0;d<v.length;d++)VG(v[d],v[++d],v[++d])}function IG(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t=typeof i.type=="function"?IG(i,t,n):RG(n,i,i,r,i.__e,t));return t}function Qb(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Qb(n,t)}):t.push(e)),t}function RG(e,t,n,i,r,o){var s,a,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||r!=o||r.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,u=0;(a=a.nextSibling)&&u<i.length;u+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return s!==void 0?s:r.nextSibling}function gEe(e,t,n,i,r){var o;for(o in n)o==="children"||o==="key"||o in t||$b(e,o,null,n[o],i);for(o in t)r&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||$b(e,o,t[o],n[o],i)}function NG(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||pEe.test(t)?n:n+"px"}function $b(e,t,n,i,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||NG(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||NG(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?LG:MG,o):e.removeEventListener(t,o?LG:MG,o);else if(t!=="dangerouslySetInnerHTML"){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function MG(e){this.l[e.type+!1](bt.event?bt.event(e):e)}function LG(e){this.l[e.type+!0](bt.event?bt.event(e):e)}function XE(e,t,n,i,r,o,s,a,u){var f,d,c,h,p,m,y,v,b,g,k,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(f=bt.__b)&&f(t);try{e:if(typeof w=="function"){if(v=t.props,b=(f=w.contextType)&&i[f.__c],g=f?b?b.props.value:f.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(v,g):(t.__c=d=new la(v,g),d.constructor=w,d.render=vEe),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=g,d.__n=i,c=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),w.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ml({},d.__s)),ml(d.__s,w.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,c)w.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(w.getDerivedStateFromProps==null&&v!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,g),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,g)===!1||t.__v===n.__v){d.props=v,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,g),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,p,m)})}d.context=g,d.props=v,d.state=d.__s,(f=bt.__r)&&f(t),d.__d=!1,d.__v=t,d.__P=e,f=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=ml(ml({},i),d.getChildContext())),c||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(h,p)),k=f!=null&&f.type===rc&&f.key==null?f.props.children:f,jG(e,Array.isArray(k)?k:[k],t,n,i,r,o,s,a,u),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mEe(n.__e,t,n,i,r,o,s,u);(f=bt.diffed)&&f(t)}catch(T){t.__v=null,(u||o!=null)&&(t.__e=a,t.__h=!!u,o[o.indexOf(a)]=null),bt.__e(T,t,n)}}function zG(e,t){bt.__c&&bt.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){bt.__e(i,n.__v)}})}function mEe(e,t,n,i,r,o,s,a){var u,f,d,c=n.props,h=t.props,p=t.type,m=0;if(p==="svg"&&(r=!0),o!=null){for(;m<o.length;m++)if((u=o[m])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),o=null,a=!1}if(p===null)c===h||a&&e.data===h||(e.data=h);else{if(o=o&&Jb.call(e.childNodes),f=(c=n.props||Yb).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(o!=null)for(c={},m=0;m<e.attributes.length;m++)c[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(gEe(e,h,c,r,a),d)t.__k=[];else if(m=t.props.children,jG(e,Array.isArray(m)?m:[m],t,n,i,r&&p!=="foreignObject",o,s,o?o[0]:n.__k&&oc(n,0),a),o!=null)for(m=o.length;m--;)o[m]!=null&&OG(o[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==c.value||m!==e.value||p==="progress"&&!m)&&$b(e,"value",m,c.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&$b(e,"checked",m,c.checked,!1))}return e}function VG(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(i){bt.__e(i,n)}}function UG(e,t,n){var i,r;if(bt.unmount&&bt.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||VG(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){bt.__e(o,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&UG(i[r],t,typeof e.type!="function");n||e.__e==null||OG(e.__e),e.__e=e.__d=void 0}function vEe(e,t,n){return this.constructor(e,n)}function HG(e,t,n){var i,r,o;bt.__&&bt.__(e,t),r=(i=typeof n=="function")?null:n&&n.__k||t.__k,o=[],XE(t,e=(!i&&n||t).__k=YE(rc,null,[e]),r||Yb,Yb,t.ownerSVGElement!==void 0,!i&&n?[n]:r?null:t.firstChild?Jb.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),zG(o,e)}Jb=TG.slice,bt={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(o){e=o}throw e}},BG=0,la.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ml({},this.state),typeof e=="function"&&(e=e(ml({},n),this.props)),e&&ml(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),PG(this))},la.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),PG(this))},la.prototype.render=rc,bm=[],DG=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zb.__r=0;var yEe=0;function qe(e,t,n,i,r){var o,s,a={};for(s in t)s=="ref"?o=t[s]:a[s]=t[s];var u={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--yEe,__source:i,__self:r};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)a[s]===void 0&&(a[s]=o[s]);return bt.vnode&&bt.vnode(u),u}function bEe(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch{}}function kEe(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch{}}var za={set:bEe,get:kEe};const ZE=new Map,wEe=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function _Ee(){for(const{v:e,emoji:t}of wEe)if(qG(t))return e}function CEe(){return!qG("🇨🇦")}function qG(e){if(ZE.has(e))return ZE.get(e);const t=SEe(e);return ZE.set(e,t),t}const SEe=(()=>{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,i=Math.floor(t/2);return e.font=i+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,r=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,n,22);const o=e.getImageData(0,0,n,t).data,s=o.length;let a=0;for(;a<s&&!o[a+3];a+=4);if(a>=s)return!1;const u=n+a/4%n,f=Math.floor(a/4/n),d=e.getImageData(u,f,1,1).data;return!(o[a]!==d[0]||o[a+2]!==d[2]||e.measureText(r).width>=n)}})();var WG={latestVersion:_Ee,noCountryFlags:CEe};const QE=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Ii=null;function xEe(e){Ii||(Ii=za.get("frequently")||{});const t=e.id||e;t&&(Ii[t]||(Ii[t]=0),Ii[t]+=1,za.set("last",t),za.set("frequently",Ii))}function EEe({maxFrequentRows:e,perLine:t}){if(!e)return[];Ii||(Ii=za.get("frequently"));let n=[];if(!Ii){Ii={};for(let o in QE.slice(0,t)){const s=QE[o];Ii[s]=t-o,n.push(s)}return n}const i=e*t,r=za.get("last");for(let o in Ii)n.push(o);if(n.sort((o,s)=>{const a=Ii[s],u=Ii[o];return a==u?o.localeCompare(s):a-u}),n.length>i){const o=n.slice(i);n=n.slice(0,i);for(let s of o)s!=r&&delete Ii[s];r&&n.indexOf(r)==-1&&(delete Ii[n[n.length-1]],n.splice(-1,1,r)),za.set("frequently",Ii)}return n}var $E={add:xEe,get:EEe,DEFAULTS:QE},KG={};KG=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Va={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ri=null,Wt=null;const e7={};async function GG(e){if(e7[e])return e7[e];const n=await(await fetch(e)).json();return e7[e]=n,n}let t7=null,JG=null,YG=!1;function km(e,{caller:t}={}){return t7||(t7=new Promise(n=>{JG=n})),e&&BEe(e),t7}async function BEe(e){YG=!0;let{emojiVersion:t,set:n,locale:i}=e;if(t||(t=Va.emojiVersion.value),n||(n=Va.set.value),i||(i=Va.locale.value),Wt)Wt.categories=Wt.categories.filter(u=>!u.name);else{Wt=(typeof e.data=="function"?await e.data():e.data)||await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Wt.emoticons={},Wt.natives={},Wt.categories.unshift({id:"frequent",emojis:[]});for(const u in Wt.aliases){const f=Wt.aliases[u],d=Wt.emojis[f];d&&(d.aliases||(d.aliases=[]),d.aliases.push(u))}Wt.originalCategories=Wt.categories}if(Ri=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(i=="en"?EG(KG):await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),e.custom)for(let u in e.custom){u=parseInt(u);const f=e.custom[u],d=e.custom[u-1];if(!(!f.emojis||!f.emojis.length)){f.id||(f.id=`custom_${u+1}`),f.name||(f.name=Ri.categories.custom),d&&!f.icon&&(f.target=d.target||d),Wt.categories.push(f);for(const c of f.emojis)Wt.emojis[c.id]=c}}e.categories&&(Wt.categories=Wt.originalCategories.filter(u=>e.categories.indexOf(u.id)!=-1).sort((u,f)=>{const d=e.categories.indexOf(u.id),c=e.categories.indexOf(f.id);return d-c}));let r=null,o=null;n=="native"&&(r=WG.latestVersion(),o=e.noCountryFlags||WG.noCountryFlags());let s=Wt.categories.length,a=!1;for(;s--;){const u=Wt.categories[s];if(u.id=="frequent"){let{maxFrequentRows:c,perLine:h}=e;c=c>=0?c:Va.maxFrequentRows.value,h||(h=Va.perLine.value),u.emojis=$E.get({maxFrequentRows:c,perLine:h})}if(!u.emojis||!u.emojis.length){Wt.categories.splice(s,1);continue}const{categoryIcons:f}=e;if(f){const c=f[u.id];c&&!u.icon&&(u.icon=c)}let d=u.emojis.length;for(;d--;){const c=u.emojis[d],h=c.id?c:Wt.emojis[c],p=()=>{u.emojis.splice(d,1)};if(!h||e.exceptEmojis&&e.exceptEmojis.includes(h.id)){p();continue}if(r&&h.version>r){p();continue}if(o&&u.id=="flags"&&!QG.includes(h.id)){p();continue}if(!h.search){if(a=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,v])=>{if(y)return(Array.isArray(y)?y:[y]).map(b=>(v?b.split(/[-|_|\s]+/):[b]).map(g=>g.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)Wt.emoticons[y]||(Wt.emoticons[y]=h.id);let m=0;for(const y of h.skins){if(!y)continue;m++;const{native:v}=y;v&&(Wt.natives[v]=h.id,h.search+=`,${v}`);const b=m==1?"":`:skin-tone-${m}:`;y.shortcodes=`:${h.id}:${b}`}}}}a&&Qu.reset(),JG()}function XG(e,t,n){e||(e={});const i={};for(let r in t)i[r]=ZG(r,e,t,n);return i}function ZG(e,t,n,i){const r=n[e];let o=i&&i.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return r&&(o!=null&&r.value&&typeof r.value!=typeof o&&(typeof r.value=="boolean"?o=o!="false":o=r.value.constructor(o)),r.transform&&o&&(o=r.transform(o)),(o==null||r.choices&&r.choices.indexOf(o)==-1)&&(o=r.value)),o}const DEe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let n7=null;function AEe(e){return e.id?e:Wt.emojis[e]||Wt.emojis[Wt.aliases[e]]||Wt.emojis[Wt.natives[e]]}function TEe(){n7=null}async function OEe(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await km(null,{caller:n||"SearchIndex.search"});const i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((a,u,f)=>a.trim()&&f.indexOf(a)==u);if(!i.length)return;let r=n7||(n7=Object.values(Wt.emojis)),o,s;for(const a of i){if(!r.length)break;o=[],s={};for(const u of r){if(!u.search)continue;const f=u.search.indexOf(`,${a}`);f!=-1&&(o.push(u),s[u.id]||(s[u.id]=0),s[u.id]+=u.id==a?0:f+1)}r=o}return o.length<2||(o.sort((a,u)=>{const f=s[a.id],d=s[u.id];return f==d?a.id.localeCompare(u.id):f-d}),o.length>t&&(o=o.slice(0,t))),o}var Qu={search:OEe,get:AEe,reset:TEe,SHORTCODES_REGEX:DEe};const QG=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function FEe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,i)=>n==t[i])}async function PEe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function jEe(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),i={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(i.skin=t+1),n.src&&(i.src=n.src),e.aliases&&e.aliases.length&&(i.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(i.emoticons=e.emoticons),i}var ek={categories:{activity:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:qe("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),qe("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:qe("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),qe("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:qe("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),qe("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),qe("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function i7(e){let{id:t,skin:n,emoji:i}=e;if(e.shortcodes){const a=e.shortcodes.match(Qu.SHORTCODES_REGEX);a&&(t=a[1],a[2]&&(n=a[2]))}if(i||(i=Qu.get(t||e.native)),!i)return e.fallback;const r=i.skins[n-1]||i.skins[0],o=r.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${r.unified}.png`:void 0),s=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return qe("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?qe("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:o}):e.set=="native"?qe("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):qe("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*Wt.sheet.cols}% ${100*Wt.sheet.rows}%`,backgroundPosition:`${100/(Wt.sheet.cols-1)*r.x}% ${100/(Wt.sheet.rows-1)*r.y}%`}})})}const IEe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class $G extends IEe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,i){if(!this.component)return;const r=ZG(t,{[t]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:r}):(this.component.props[t]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const i=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class REe extends $G{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var eJ={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Va.set,skin:Va.skin};class r7 extends $G{async connectedCallback(){const t=XG(this.props,eJ,this);t.element=this,t.ref=n=>{this.component=n},await km(),!this.disconnected&&HG(qe(i7,{...t}),this)}constructor(t){super(t)}}ao(r7,"Props",eJ),typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",r7);var tJ,o7=[],nJ=bt.__b,iJ=bt.__r,rJ=bt.diffed,oJ=bt.__c,aJ=bt.unmount;function NEe(){var e;for(o7.sort(function(t,n){return t.__v.__b-n.__v.__b});e=o7.pop();)if(e.__P)try{e.__H.__h.forEach(tk),e.__H.__h.forEach(a7),e.__H.__h=[]}catch(t){e.__H.__h=[],bt.__e(t,e.__v)}}bt.__b=function(e){nJ&&nJ(e)},bt.__r=function(e){iJ&&iJ(e);var t=e.__c.__H;t&&(t.__h.forEach(tk),t.__h.forEach(a7),t.__h=[])},bt.diffed=function(e){rJ&&rJ(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(o7.push(t)!==1&&tJ===bt.requestAnimationFrame||((tJ=bt.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(o),sJ&&cancelAnimationFrame(i),setTimeout(n)},o=setTimeout(r,100);sJ&&(i=requestAnimationFrame(r))})(NEe))},bt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tk),n.__h=n.__h.filter(function(i){return!i.__||a7(i)})}catch(i){t.some(function(r){r.__h&&(r.__h=[])}),t=[],bt.__e(i,n.__v)}}),oJ&&oJ(e,t)},bt.unmount=function(e){aJ&&aJ(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{tk(i)}catch(r){t=r}}),t&&bt.__e(t,n.__v))};var sJ=typeof requestAnimationFrame=="function";function tk(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function a7(e){e.__c=e.__()}function MEe(e,t){for(var n in t)e[n]=t[n];return e}function lJ(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var i in t)if(i!=="__source"&&e[i]!==t[i])return!0;return!1}function nk(e){this.props=e}(nk.prototype=new la).isPureReactComponent=!0,nk.prototype.shouldComponentUpdate=function(e,t){return lJ(this.props,e)||lJ(this.state,t)};var uJ=bt.__b;bt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),uJ&&uJ(e)};var LEe=bt.__e;bt.__e=function(e,t,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}LEe(e,t,n)};var fJ=bt.unmount;function s7(){this.__u=0,this.t=null,this.__b=null}function dJ(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ik(){this.u=null,this.o=null}bt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),fJ&&fJ(e)},(s7.prototype=new la).__c=function(e,t){var n=t.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=dJ(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__e){var f=i.state.__e;i.__v.__k[0]=function c(h,p,m){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return c(y,p,m)}),h.__c&&h.__c.__P===p&&(h.__e&&m.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=m)),h}(f,f.__c.__P,f.__c.__O)}var d;for(i.setState({__e:i.__b=null});d=i.t.pop();)d.forceUpdate()}},u=t.__h===!0;i.__u++||u||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},s7.prototype.componentWillUnmount=function(){this.t=[]},s7.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function o(s,a,u){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),s.__c.__H=null),(s=MEe({},s)).__c!=null&&(s.__c.__P===u&&(s.__c.__P=a),s.__c=null),s.__k=s.__k&&s.__k.map(function(f){return o(f,a,u)})),s}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&YE(rc,null,e.fallback);return r&&(r.__h=null),[YE(rc,null,t.__e?null:e.children),r]};var cJ=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ik.prototype=new la).__e=function(e){var t=this,n=dJ(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),cJ(t,e,i)):r()};n?n(o):o()}},ik.prototype.render=function(e){this.u=null,this.o=new Map;var t=Qb(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ik.prototype.componentDidUpdate=ik.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){cJ(e,n,t)})};var zEe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,VEe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,UEe=typeof document<"u",HEe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};la.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(la.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hJ=bt.event;function qEe(){}function WEe(){return this.cancelBubble}function KEe(){return this.defaultPrevented}bt.event=function(e){return hJ&&(e=hJ(e)),e.persist=qEe,e.isPropagationStopped=WEe,e.isDefaultPrevented=KEe,e.nativeEvent=e};var pJ={configurable:!0,get:function(){return this.class}},gJ=bt.vnode;bt.vnode=function(e){var t=e.type,n=e.props,i=n;if(typeof t=="string"){var r=t.indexOf("-")===-1;for(var o in i={},n){var s=n[o];UEe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!HEe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&VEe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),i[o]=s)}t=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),t=="select"&&i.defaultValue!=null&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),e.props=i,n.class!=n.className&&(pJ.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",pJ))}e.$$typeof=zEe,gJ&&gJ(e)};var mJ=bt.__r;bt.__r=function(e){mJ&&mJ(e),e.__c};const GEe={light:"outline",dark:"solid"};class JEe extends nk{renderIcon(t){const{icon:n}=t;if(n){if(n.svg)return qe("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return qe("img",{src:n.src})}const i=ek.categories[t.id]||ek.categories.custom,r=this.props.icons=="auto"?GEe[this.props.theme]:this.props.icons;return i[r]||i}render(){let t=null;return qe("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:qe("div",{class:"flex relative",children:[this.categories.map((n,i)=>{const r=n.name||Ri.categories[n.id],o=!this.props.unfocused&&n.id==this.state.categoryId;return o&&(t=i),qe("button",{"aria-label":r,"aria-selected":o||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),qe("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Wt.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class YEe extends nk{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const rk={rowsPerRender:10};class XEe extends la{getInitialState(t=this.props){return{skin:za.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Ri.rtl?"rtl":"ltr",this.refs={menu:La(),navigation:La(),scroll:La(),search:La(),searchInput:La(),skinToneButton:La(),skinToneRadio:La()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(t={}){await km(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Wt;this.refs.categories=new Map;const n=Wt.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,o)=>{const s=[];s.__categoryId=o.id,s.__index=r.length,this.grid.push(s);const a=this.grid.length-1,u=a%rk.rowsPerRender?{}:La();return u.index=a,u.posinset=this.grid.setsize+1,r.push(u),s};for(let r of t){const o=[];let s=i(o,r);for(let a of r.emojis)s.length==this.getPerLine()&&(s=i(o,r)),this.grid.setsize+=1,s.push(a);this.refs.categories.set(r.id,{root:La(),rows:o})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:i}=t,r=()=>{const{width:s}=n.getBoundingClientRect();return Math.floor(s/i)},o=new ResizeObserver(()=>{this.unobserve({except:o}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return o.observe(n),this.observers.push(o),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const i=this.state.searchResults||this.grid,r=i[t]&&i[t][n];if(r)return Qu.get(r)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,i=s=>{s!=t.state.categoryId&&t.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},o=new IntersectionObserver(s=>{for(const u of s){const f=u.target.dataset.id;n.set(f,u.intersectionRatio)}const a=[...n];for(const[u,f]of a)if(f){i(u);break}},r);for(const{root:s}of this.refs.categories.values())o.observe(s.current);this.observers.push(o)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const o=parseInt(r.target.dataset.index);r.isIntersecting?t[o]=!0:delete t[o]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(rk.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*rk.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:i,right:r,up:o,down:s}){const a=this.state.searchResults||this.grid;if(!a.length)return;let[u,f]=this.state.pos;const d=(()=>{if(u==0&&f==0&&!t.repeat&&(i||o))return null;if(u==-1)return!t.repeat&&(r||s)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let c=a[u];const h=i?-1:1;if(f+=h,!c[f]){if(u+=h,c=a[u],!c)return u=i?0:a.length-1,f=i?0:a[u].length-1,[u,f];f=i?c.length-1:0}return[u,f]}if(o||s){u+=o?-1:1;const c=a[u];return c?(c[f]||(f=c.length-1),[u,f]):(u=o?0:a.length-1,f=o?0:a[u].length-1,[u,f])}})();if(d)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:d,keyboard:!0},()=>{this.scrollTo({row:d[0]})})}scrollTo({categoryId:t,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,o=r.getBoundingClientRect();let s=0;if(n>=0&&(t=i[n].__categoryId),t&&(s=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(o.top-r.scrollTop)+1),n>=0)if(!n)s=0;else{const a=i[n].__index,u=s+a*this.props.emojiButtonSize,f=u+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(u<r.scrollTop)s=u;else if(f>r.scrollTop+o.height)s=f-o.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=jEe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&$E.add(r,this.props),this.props.onEmojiSelect(r,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),za.set("skin",t)}renderNav(){return qe(JEe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return qe("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[qe("div",{class:"flex flex-middle flex-grow",children:[qe("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:qe(i7,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),qe("div",{class:`margin-${this.dir[0]}`,children:t||n?qe("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[qe("div",{class:"preview-title ellipsis",children:t?t.name:Ri.search_no_results_1}),qe("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Ri.search_no_results_2})]}):qe("div",{class:"preview-placeholder color-c",children:Ri.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:i,grid:r}){const o=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,u=(t.skins[s-1]||t.skins[0]).native,f=FEe(this.state.pos,n),d=n.concat(t.id).join("");return qe(YEe,{selected:f,skin:s,size:o,children:qe("button",{"aria-label":u,"aria-selected":f||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:c=>this.handleEmojiClick({e:c,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[qe("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),qe(i7,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},d)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return qe("div",{children:[qe("div",{class:"spacer"}),qe("div",{class:"flex flex-middle",children:[qe("div",{class:"search relative flex-grow",children:[qe("input",{type:"search",ref:this.refs.searchInput,placeholder:Ri.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),qe("span",{class:"icon loupe flex",children:ek.search.loupe}),this.state.searchResults&&qe("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:ek.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?qe("div",{class:"category",ref:this.refs.search,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ri.categories.search}),qe("div",{children:t.length?t.map((n,i)=>qe("div",{class:"flex",children:n.map((r,o)=>this.renderEmojiButton(r,{pos:[i,o],posinset:i*this.props.perLine+o+1,grid:t}))})):qe("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&qe("a",{onClick:this.props.onAddCustomEmoji,children:Ri.add_custom})})})]}):null}renderCategories(){const{categories:t}=Wt,n=!!this.state.searchResults,i=this.getPerLine();return qe("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(r=>{const{root:o,rows:s}=this.refs.categories.get(r.id);return qe("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:o,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Ri.categories[r.id]}),qe("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((a,u)=>{const f=a.index-a.index%rk.rowsPerRender,d=this.state.visibleRows[f],c="current"in a?a:void 0;if(!d&&!c)return null;const h=u*i,p=h+i,m=r.emojis.slice(h,p);return m.length<i&&m.push(...new Array(i-m.length)),qe("div",{"data-index":a.index,ref:c,class:"flex row",style:{top:u*this.props.emojiButtonSize},children:d&&m.map((y,v)=>{if(!y)return qe("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const b=Qu.get(y);return this.renderEmojiButton(b,{pos:[a.index,v],posinset:a.posinset+v,grid:this.grid})})},a.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:qe("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:qe("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ri.skins.choose,title:Ri.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:qe("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return qe("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),qe("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ri.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(o=>{const s=o+1,a=this.state.skin==s;return qe("div",{children:[qe("input",{type:"radio",name:"skin-tone",value:s,"aria-label":Ri.skins[s],ref:a?this.refs.skinToneRadio:null,defaultChecked:a,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:u=>{(u.code=="Enter"||u.code=="Space"||u.code=="Tab")&&(u.preventDefault(),this.handleSkinClick(s))}}),qe("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[qe("span",{class:`skin-tone skin-tone-${s}`}),qe("span",{class:"margin-small-lr",children:Ri.skins[s]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return qe("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&qe("div",{class:"padding-lr",children:this.renderSearch()}),qe("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:qe("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),ao(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ao(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),ao(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),ao(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),ao(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ao(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await Qu.search(i),o=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},o);const s=n.selectionStart==n.value.length?[0,0]:[-1,-1],a=[];a.setsize=r.length;let u=null;for(let f of r)(!a.length||u.length==this.getPerLine())&&(u=[],u.__categoryId="search",u.__index=a.length,a.push(u)),u.push(f);this.ignoreMouse(),this.setState({searchResults:a,pos:s},o)}),ao(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),ao(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),ao(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),ao(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await PEe(2);const o=this.refs.menu.current;o&&(o.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class l7 extends REe{async connectedCallback(){const t=XG(this.props,Va,this);t.element=this,t.ref=n=>{this.component=n},await km(t),!this.disconnected&&HG(qe(XEe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:EG(vJ)})}}ao(l7,"Props",Va),typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",l7);var vJ={};vJ=`:host {
|
|
218
|
+
*/function WK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WK(Object(n),!0).forEach(function(i){n8e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WK(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pb=function(t){return typeof t}:Pb=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pb(e)}function n8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ra.apply(this,arguments)}function i8e(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function r8e(e,t){if(e==null)return{};var n=i8e(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var o8e="1.15.2";function Na(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ma=Na(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),um=Na(/Edge/i),KK=Na(/firefox/i),fm=Na(/safari/i)&&!Na(/chrome/i)&&!Na(/android/i),GK=Na(/iP(ad|od|hone)/i),JK=Na(/chrome/i)&&Na(/android/i),YK={capture:!1,passive:!1};function sn(e,t,n){e.addEventListener(t,n,!Ma&&YK)}function tn(e,t,n){e.removeEventListener(t,n,!Ma&&YK)}function jb(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{return!1}return!1}}function a8e(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Do(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&jb(e,t):jb(e,t))||i&&e===n)return e;if(e===n)break}while(e=a8e(e))}return null}var XK=/\s+/g;function jr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(XK," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(XK," ")}}function Ct(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function Qd(e,t){var n="";if(typeof e=="string")n=e;else do{var i=Ct(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ZK(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function sa(){var e=document.scrollingElement;return e||document.documentElement}function di(e,t,n,i,r){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,u,f,d,c;if(e!==window&&e.parentNode&&e!==sa()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,u=o.bottom,f=o.right,d=o.height,c=o.width):(s=0,a=0,u=window.innerHeight,f=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!Ma))do if(r&&r.getBoundingClientRect&&(Ct(r,"transform")!=="none"||n&&Ct(r,"position")!=="static")){var h=r.getBoundingClientRect();s-=h.top+parseInt(Ct(r,"border-top-width")),a-=h.left+parseInt(Ct(r,"border-left-width")),u=s+o.height,f=a+o.width;break}while(r=r.parentNode);if(i&&e!==window){var p=Qd(r||e),m=p&&p.a,y=p&&p.d;p&&(s/=y,a/=m,c/=m,d/=y,u=s+d,f=a+c)}return{top:s,left:a,bottom:u,right:f,width:c,height:d}}}function QK(e,t,n){for(var i=hl(e,!0),r=di(e)[t];i;){var o=di(i)[n],s=void 0;if(s=r>=o,!s)return i;if(i===sa())break;i=hl(i,!1)}return!1}function $d(e,t,n,i){for(var r=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==St.ghost&&(i||s[o]!==St.dragged)&&Do(s[o],n.draggable,e,!1)){if(r===t)return s[o];r++}o++}return null}function AE(e,t){for(var n=e.lastElementChild;n&&(n===St.ghost||Ct(n,"display")==="none"||t&&!jb(n,t));)n=n.previousElementSibling;return n||null}function oo(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==St.clone&&(!t||jb(e,t))&&n++;return n}function $K(e){var t=0,n=0,i=sa();if(e)do{var r=Qd(e),o=r.a,s=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function s8e(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function hl(e,t){if(!e||!e.getBoundingClientRect)return sa();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Ct(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return sa();if(i||t)return n;i=!0}}while(n=n.parentNode);return sa()}function l8e(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TE(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)}var dm;function eG(e,t){return function(){if(!dm){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),dm=setTimeout(function(){dm=void 0},t)}}}function u8e(){clearTimeout(dm),dm=void 0}function tG(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function nG(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)}function iG(e,t,n){var i={};return Array.from(e.children).forEach(function(r){var o,s,a,u;if(!(!Do(r,t.draggable,e,!1)||r.animated||r===n)){var f=di(r);i.left=Math.min((o=i.left)!==null&&o!==void 0?o:1/0,f.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,f.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,f.right),i.bottom=Math.max((u=i.bottom)!==null&&u!==void 0?u:-1/0,f.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Ir="Sortable"+new Date().getTime();function f8e(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(Ct(i,"display")==="none"||i===St.ghost)){e.push({target:i,rect:di(i)});var r=aa({},e[e.length-1].rect);if(i.thisAnimationDuration){var o=Qd(i,!0);o&&(r.top-=o.f,r.left-=o.e)}i.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(s8e(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,o=0;e.forEach(function(s){var a=0,u=s.target,f=u.fromRect,d=di(u),c=u.prevFromRect,h=u.prevToRect,p=s.rect,m=Qd(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&TE(c,d)&&!TE(f,d)&&(p.top-d.top)/(p.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(a=c8e(p,c,h,i.options)),TE(d,f)||(u.prevFromRect=f,u.prevToRect=d,a||(a=i.options.animation),i.animate(u,p,d,a)),a&&(r=!0,o=Math.max(o,a),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},a),u.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),e=[]},animate:function(n,i,r,o){if(o){Ct(n,"transition",""),Ct(n,"transform","");var s=Qd(this.el),a=s&&s.a,u=s&&s.d,f=(i.left-r.left)/(a||1),d=(i.top-r.top)/(u||1);n.animatingX=!!f,n.animatingY=!!d,Ct(n,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=d8e(n),Ct(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ct(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Ct(n,"transition",""),Ct(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function d8e(e){return e.offsetWidth}function c8e(e,t,n,i){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))*i.animation}var ec=[],OE={initializeByDefault:!0},cm={mount:function(e){for(var t in OE)OE.hasOwnProperty(t)&&!(t in e)&&(e[t]=OE[t]);ec.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ec.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ec.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](aa({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](aa({sortable:t},n)))})},initializePlugins:function(e,t,n,i){ec.forEach(function(s){var a=s.pluginName;if(!(!e.options[a]&&!s.initializeByDefault)){var u=new s(e,t,e.options);u.sortable=e,u.options=e.options,e[a]=u,Ra(n,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);typeof o<"u"&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return ec.forEach(function(i){typeof i.eventProperties=="function"&&Ra(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return ec.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(i=r.optionListeners[t].call(e[r.pluginName],n))}),i}};function h8e(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,u=e.oldIndex,f=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[Ir],!!t){var y,v=t.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Ma&&!um?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=r||n,y.clone=o,y.oldIndex=u,y.newIndex=f,y.oldDraggableIndex=d,y.newDraggableIndex=c,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var g=aa(aa({},m),cm.getEventProperties(i,t));for(var k in g)y[k]=g[k];n&&n.dispatchEvent(y),v[b]&&v[b].call(t,y)}}var p8e=["evt"],yr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=r8e(n,p8e);cm.pluginEvent.bind(St)(e,t,aa({dragEl:ot,parentEl:qn,ghostEl:jt,rootEl:jn,nextEl:Yu,lastDownEl:Ib,cloneEl:zn,cloneHidden:pl,dragStarted:pm,putSortable:ji,activeSortable:St.active,originalEvent:i,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl,hideGhostForTarget:fG,unhideGhostForTarget:dG,cloneNowHidden:function(){pl=!0},cloneNowShown:function(){pl=!1},dispatchSortableEvent:function(o){nr({sortable:t,name:o,originalEvent:i})}},r))};function nr(e){h8e(aa({putSortable:ji,cloneEl:zn,targetEl:ot,rootEl:jn,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl},e))}var ot,qn,jt,jn,Yu,Ib,zn,pl,tc,Rr,hm,gl,Rb,ji,nc=!1,Nb=!1,Mb=[],Xu,Ao,FE,PE,rG,oG,pm,ic,gm,mm=!1,Lb=!1,zb,Yi,jE=[],IE=!1,Vb=[],Ub=typeof document<"u",Hb=GK,aG=um||Ma?"cssFloat":"float",g8e=Ub&&!JK&&!GK&&"draggable"in document.createElement("div"),sG=function(){if(Ub){if(Ma)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),lG=function(e,t){var n=Ct(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=$d(e,0,t),o=$d(e,1,t),s=r&&Ct(r),a=o&&Ct(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+di(r).width,f=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+di(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return o&&(a.clear==="both"||a.clear===d)?"vertical":"horizontal"}return r&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&n[aG]==="none"||o&&n[aG]==="none"&&u+f>i)?"vertical":"horizontal"},m8e=function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,o=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,u=n?t.width:t.height;return i===s||r===a||i+o/2===s+u/2},v8e=function(e,t){var n;return Mb.some(function(i){var r=i[Ir].options.emptyInsertThreshold;if(!(!r||AE(i))){var o=di(i),s=e>=o.left-r&&e<=o.right+r,a=t>=o.top-r&&t<=o.bottom+r;if(s&&a)return n=i}}),n},uG=function(e){function t(r,o){return function(s,a,u,f){var d=s.options.group.name&&a.options.group.name&&s.options.group.name===a.options.group.name;if(r==null&&(o||d))return!0;if(r==null||r===!1)return!1;if(o&&r==="clone")return r;if(typeof r=="function")return t(r(s,a,u,f),o)(s,a,u,f);var c=(o?s:a).options.group.name;return r===!0||typeof r=="string"&&r===c||r.join&&r.indexOf(c)>-1}}var n={},i=e.group;(!i||Pb(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},fG=function(){!sG&&jt&&Ct(jt,"display","none")},dG=function(){!sG&&jt&&Ct(jt,"display","")};Ub&&!JK&&document.addEventListener("click",function(e){if(Nb)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Nb=!1,!1},!0);var Zu=function(e){if(ot){e=e.touches?e.touches[0]:e;var t=v8e(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ir]._onDragOver(n)}}},y8e=function(e){ot&&ot.parentNode[Ir]._isOutsideThisEl(e.target)};function St(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ra({},t),e[Ir]=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 lG(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(o,s){o.setData("Text",s.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:St.supportPointer!==!1&&"PointerEvent"in window&&!fm,emptyInsertThreshold:5};cm.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);uG(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:g8e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?sn(e,"pointerdown",this._onTapStart):(sn(e,"mousedown",this._onTapStart),sn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(sn(e,"dragover",this),sn(e,"dragenter",this)),Mb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ra(this,f8e())}St.prototype={constructor:St,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ic=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ot):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,a=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,f=i.filter;if(E8e(n),!ot&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&fm&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Do(a,i.draggable,n,!1),!(a&&a.animated)&&Ib!==a)){if(tc=oo(a),hm=oo(a,i.draggable),typeof f=="function"){if(f.call(this,e,a,this)){nr({sortable:t,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),yr("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Do(u,d.trim(),n,!1),d)return nr({sortable:t,rootEl:d,name:"filter",targetEl:a,fromEl:n,toEl:n}),yr("filter",t,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!Do(u,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i=this,r=i.el,o=i.options,s=r.ownerDocument,a;if(n&&!ot&&n.parentNode===r){var u=di(n);if(jn=r,ot=n,qn=ot.parentNode,Yu=ot.nextSibling,Ib=n,Rb=o.group,St.dragged=ot,Xu={target:ot,clientX:(t||e).clientX,clientY:(t||e).clientY},rG=Xu.clientX-u.left,oG=Xu.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ot.style["will-change"]="all",a=function(){if(yr("delayEnded",i,{evt:e}),St.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!KK&&i.nativeDraggable&&(ot.draggable=!0),i._triggerDragStart(e,t),nr({sortable:i,name:"choose",originalEvent:e}),jr(ot,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){ZK(ot,f.trim(),RE)}),sn(s,"dragover",Zu),sn(s,"mousemove",Zu),sn(s,"touchmove",Zu),sn(s,"mouseup",i._onDrop),sn(s,"touchend",i._onDrop),sn(s,"touchcancel",i._onDrop),KK&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(um||Ma))){if(St.eventCanceled){this._onDrop();return}sn(s,"mouseup",i._disableDelayedDrag),sn(s,"touchend",i._disableDelayedDrag),sn(s,"touchcancel",i._disableDelayedDrag),sn(s,"mousemove",i._delayedDragTouchMoveHandler),sn(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&sn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,o.delay)}else a()}},_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(){ot&&RE(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._disableDelayedDrag),tn(e,"touchend",this._disableDelayedDrag),tn(e,"touchcancel",this._disableDelayedDrag),tn(e,"mousemove",this._delayedDragTouchMoveHandler),tn(e,"touchmove",this._delayedDragTouchMoveHandler),tn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?sn(document,"pointermove",this._onTouchMove):t?sn(document,"touchmove",this._onTouchMove):sn(document,"mousemove",this._onTouchMove):(sn(ot,"dragend",this),sn(jn,"dragstart",this._onDragStart));try{document.selection?Wb(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(nc=!1,jn&&ot){yr("dragStarted",this,{evt:t}),this.nativeDraggable&&sn(document,"dragover",y8e);var n=this.options;!e&&jr(ot,n.dragClass,!1),jr(ot,n.ghostClass,!0),St.active=this,e&&this._appendGhost(),nr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ao){this._lastX=Ao.clientX,this._lastY=Ao.clientY,fG();for(var e=document.elementFromPoint(Ao.clientX,Ao.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ao.clientX,Ao.clientY),e!==t);)t=e;if(ot.parentNode[Ir]._isOutsideThisEl(e),t)do{if(t[Ir]){var n=void 0;if(n=t[Ir]._onDragOver({clientX:Ao.clientX,clientY:Ao.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dG()}},_onTouchMove:function(e){if(Xu){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=jt&&Qd(jt,!0),s=jt&&o&&o.a,a=jt&&o&&o.d,u=Hb&&Yi&&$K(Yi),f=(r.clientX-Xu.clientX+i.x)/(s||1)+(u?u[0]-jE[0]:0)/(s||1),d=(r.clientY-Xu.clientY+i.y)/(a||1)+(u?u[1]-jE[1]:0)/(a||1);if(!St.active&&!nc){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(jt){o?(o.e+=f-(FE||0),o.f+=d-(PE||0)):o={a:1,b:0,c:0,d:1,e:f,f:d};var c="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Ct(jt,"webkitTransform",c),Ct(jt,"mozTransform",c),Ct(jt,"msTransform",c),Ct(jt,"transform",c),FE=f,PE=d,Ao=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!jt){var e=this.options.fallbackOnBody?document.body:jn,t=di(ot,!0,Hb,!0,e),n=this.options;if(Hb){for(Yi=e;Ct(Yi,"position")==="static"&&Ct(Yi,"transform")==="none"&&Yi!==document;)Yi=Yi.parentNode;Yi!==document.body&&Yi!==document.documentElement?(Yi===document&&(Yi=sa()),t.top+=Yi.scrollTop,t.left+=Yi.scrollLeft):Yi=sa(),jE=$K(Yi)}jt=ot.cloneNode(!0),jr(jt,n.ghostClass,!1),jr(jt,n.fallbackClass,!0),jr(jt,n.dragClass,!0),Ct(jt,"transition",""),Ct(jt,"transform",""),Ct(jt,"box-sizing","border-box"),Ct(jt,"margin",0),Ct(jt,"top",t.top),Ct(jt,"left",t.left),Ct(jt,"width",t.width),Ct(jt,"height",t.height),Ct(jt,"opacity","0.8"),Ct(jt,"position",Hb?"absolute":"fixed"),Ct(jt,"zIndex","100000"),Ct(jt,"pointerEvents","none"),St.ghost=jt,e.appendChild(jt),Ct(jt,"transform-origin",rG/parseInt(jt.style.width)*100+"% "+oG/parseInt(jt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;if(yr("dragStart",this,{evt:e}),St.eventCanceled){this._onDrop();return}yr("setupClone",this),St.eventCanceled||(zn=nG(ot),zn.removeAttribute("id"),zn.draggable=!1,zn.style["will-change"]="",this._hideClone(),jr(zn,this.options.chosenClass,!1),St.clone=zn),n.cloneId=Wb(function(){yr("clone",n),!St.eventCanceled&&(n.options.removeCloneOnHide||jn.insertBefore(zn,ot),n._hideClone(),nr({sortable:n,name:"clone"}))}),!t&&jr(ot,r.dragClass,!0),t?(Nb=!0,n._loopId=setInterval(n._emulateDragOver,50)):(tn(document,"mouseup",n._onDrop),tn(document,"touchend",n._onDrop),tn(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,ot)),sn(document,"drop",n),Ct(ot,"transform","translateZ(0)")),nc=!0,n._dragStartId=Wb(n._dragStarted.bind(n,t,e)),sn(document,"selectstart",n),pm=!0,fm&&Ct(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,i,r,o,s=this.options,a=s.group,u=St.active,f=Rb===a,d=s.sort,c=ji||u,h,p=this,m=!1;if(IE)return;function y(H,Q){yr(H,p,aa({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:r,canSort:d,fromSortable:c,target:n,completed:b,onMove:function(ie,ae){return qb(jn,t,ot,i,ie,di(ie),e,ae)},changed:g},Q))}function v(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==c&&c.captureAnimationState()}function b(H){return y("dragOverCompleted",{insertion:H}),H&&(f?u._hideClone():u._showClone(p),p!==c&&(jr(ot,ji?ji.options.ghostClass:u.options.ghostClass,!1),jr(ot,s.ghostClass,!0)),ji!==p&&p!==St.active?ji=p:p===St.active&&ji&&(ji=null),c===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==c&&(c.animateAll(),c._ignoreWhileAnimating=null)),(n===ot&&!ot.animated||n===t&&!n.animated)&&(ic=null),!s.dragoverBubble&&!e.rootEl&&n!==document&&(ot.parentNode[Ir]._isOutsideThisEl(e.target),!H&&Zu(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function g(){Rr=oo(ot),gl=oo(ot,s.draggable),nr({sortable:p,name:"change",toEl:t,newIndex:Rr,newDraggableIndex:gl,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Do(n,s.draggable,t,!0),y("dragOver"),St.eventCanceled)return m;if(ot.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return b(!1);if(Nb=!1,u&&!s.disabled&&(f?d||(o=qn!==jn):ji===this||(this.lastPutMode=Rb.checkPull(this,u,ot,e))&&a.checkPut(this,u,ot,e))){if(h=this._getDirection(e,n)==="vertical",i=di(ot),y("dragOverValid"),St.eventCanceled)return m;if(o)return qn=jn,v(),this._hideClone(),y("revert"),St.eventCanceled||(Yu?jn.insertBefore(ot,Yu):jn.appendChild(ot)),b(!0);var k=AE(t,s.draggable);if(!k||_8e(e,h,this)&&!k.animated){if(k===ot)return b(!1);if(k&&t===e.target&&(n=k),n&&(r=di(n)),qb(jn,t,ot,i,n,r,e,!!n)!==!1)return v(),k&&k.nextSibling?t.insertBefore(ot,k.nextSibling):t.appendChild(ot),qn=t,g(),b(!0)}else if(k&&w8e(e,h,this)){var w=$d(t,0,s,!0);if(w===ot)return b(!1);if(n=w,r=di(n),qb(jn,t,ot,i,n,r,e,!1)!==!1)return v(),t.insertBefore(ot,w),qn=t,g(),b(!0)}else if(n.parentNode===t){r=di(n);var T=0,S,_=ot.parentNode!==t,A=!m8e(ot.animated&&ot.toRect||i,n.animated&&n.toRect||r,h),D=h?"top":"left",x=QK(n,"top","top")||QK(ot,"top","top"),B=x?x.scrollTop:void 0;ic!==n&&(S=r[D],mm=!1,Lb=!A&&s.invertSwap||_),T=C8e(e,n,r,h,A?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Lb,ic===n);var E;if(T!==0){var F=oo(ot);do F-=T,E=qn.children[F];while(E&&(Ct(E,"display")==="none"||E===jt))}if(T===0||E===n)return b(!1);ic=n,gm=T;var C=n.nextElementSibling,I=!1;I=T===1;var N=qb(jn,t,ot,i,n,r,e,I);if(N!==!1)return(N===1||N===-1)&&(I=N===1),IE=!0,setTimeout(k8e,30),v(),I&&!C?t.appendChild(ot):n.parentNode.insertBefore(ot,I?C:n),x&&tG(x,0,B-x.scrollTop),qn=ot.parentNode,S!==void 0&&!Lb&&(zb=Math.abs(S-di(n)[D])),g(),b(!0)}if(t.contains(ot))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){tn(document,"mousemove",this._onTouchMove),tn(document,"touchmove",this._onTouchMove),tn(document,"pointermove",this._onTouchMove),tn(document,"dragover",Zu),tn(document,"mousemove",Zu),tn(document,"touchmove",Zu)},_offUpEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._onDrop),tn(e,"touchend",this._onDrop),tn(e,"pointerup",this._onDrop),tn(e,"touchcancel",this._onDrop),tn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(Rr=oo(ot),gl=oo(ot,n.draggable),yr("drop",this,{evt:e}),qn=ot&&ot.parentNode,Rr=oo(ot),gl=oo(ot,n.draggable),St.eventCanceled){this._nulling();return}nc=!1,Lb=!1,mm=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),NE(this.cloneId),NE(this._dragStartId),this.nativeDraggable&&(tn(document,"drop",this),tn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),fm&&Ct(document.body,"user-select",""),Ct(ot,"transform",""),e&&(pm&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),jt&&jt.parentNode&&jt.parentNode.removeChild(jt),(jn===qn||ji&&ji.lastPutMode!=="clone")&&zn&&zn.parentNode&&zn.parentNode.removeChild(zn),ot&&(this.nativeDraggable&&tn(ot,"dragend",this),RE(ot),ot.style["will-change"]="",pm&&!nc&&jr(ot,ji?ji.options.ghostClass:this.options.ghostClass,!1),jr(ot,this.options.chosenClass,!1),nr({sortable:this,name:"unchoose",toEl:qn,newIndex:null,newDraggableIndex:null,originalEvent:e}),jn!==qn?(Rr>=0&&(nr({rootEl:qn,name:"add",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"remove",toEl:qn,originalEvent:e}),nr({rootEl:qn,name:"sort",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),ji&&ji.save()):Rr!==tc&&Rr>=0&&(nr({sortable:this,name:"update",toEl:qn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),St.active&&((Rr==null||Rr===-1)&&(Rr=tc,gl=hm),nr({sortable:this,name:"end",toEl:qn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yr("nulling",this),jn=ot=qn=jt=Yu=zn=Ib=pl=Xu=Ao=pm=Rr=gl=tc=hm=ic=gm=ji=Rb=St.dragged=St.ghost=St.clone=St.active=null,Vb.forEach(function(e){e.checked=!0}),Vb.length=FE=PE=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ot&&(this._onDragOver(e),b8e(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],Do(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||x8e(t));return e},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(r,o){var s=i.children[o];Do(s,this.options.draggable,i,!1)&&(n[r]=s)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Do(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var i=cm.modifyOption(this,e,t);typeof i<"u"?n[e]=i:n[e]=t,e==="group"&&uG(n)},destroy:function(){yr("destroy",this);var e=this.el;e[Ir]=null,tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart),tn(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Mb.splice(Mb.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pl){if(yr("hideClone",this),St.eventCanceled)return;Ct(zn,"display","none"),this.options.removeCloneOnHide&&zn.parentNode&&zn.parentNode.removeChild(zn),pl=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pl){if(yr("showClone",this),St.eventCanceled)return;ot.parentNode==jn&&!this.options.group.revertClone?jn.insertBefore(zn,ot):Yu?jn.insertBefore(zn,Yu):jn.appendChild(zn),this.options.group.revertClone&&this.animate(ot,zn),Ct(zn,"display",""),pl=!1}}};function b8e(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function qb(e,t,n,i,r,o,s,a){var u,f=e[Ir],d=f.options.onMove,c;return window.CustomEvent&&!Ma&&!um?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=n,u.draggedRect=i,u.related=r||t,u.relatedRect=o||di(t),u.willInsertAfter=a,u.originalEvent=s,e.dispatchEvent(u),d&&(c=d.call(f,u,s)),c}function RE(e){e.draggable=!1}function k8e(){IE=!1}function w8e(e,t,n){var i=di($d(n.el,0,n.options,!0)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX<r.left-o||e.clientY<i.top&&e.clientX<i.right:e.clientY<r.top-o||e.clientY<i.bottom&&e.clientX<i.left}function _8e(e,t,n){var i=di(AE(n.el,n.options.draggable)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX>r.right+o||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>r.bottom+o||e.clientX>i.right&&e.clientY>i.top}function C8e(e,t,n,i,r,o,s,a){var u=i?e.clientY:e.clientX,f=i?n.height:n.width,d=i?n.top:n.left,c=i?n.bottom:n.right,h=!1;if(!s){if(a&&zb<f*r){if(!mm&&(gm===1?u>d+f*o/2:u<c-f*o/2)&&(mm=!0),mm)h=!0;else if(gm===1?u<d+zb:u>c-zb)return-gm}else if(u>d+f*(1-r)/2&&u<c-f*(1-r)/2)return S8e(t)}return h=h||s,h&&(u<d+f*o/2||u>c-f*o/2)?u>d+f/2?1:-1:0}function S8e(e){return oo(ot)<oo(e)?1:-1}function x8e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function E8e(e){Vb.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Vb.push(i)}}function Wb(e){return setTimeout(e,0)}function NE(e){return clearTimeout(e)}Ub&&sn(document,"touchmove",function(e){(St.active||nc)&&e.cancelable&&e.preventDefault()}),St.utils={on:sn,off:tn,css:Ct,find:ZK,is:function(e,t){return!!Do(e,t,e,!1)},extend:l8e,throttle:eG,closest:Do,toggleClass:jr,clone:nG,index:oo,nextTick:Wb,cancelNextTick:NE,detectDirection:lG,getChild:$d},St.get=function(e){return e[Ir]},St.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(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(St.utils=aa(aa({},St.utils),i.utils)),cm.mount(i)})},St.create=function(e,t){return new St(e,t)},St.version=o8e;var ci=[],vm,ME,LE=!1,zE,VE,Kb,ym;function B8e(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?sn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?sn(document,"pointermove",this._handleFallbackAutoScroll):n.touches?sn(document,"touchmove",this._handleFallbackAutoScroll):sn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):(tn(document,"pointermove",this._handleFallbackAutoScroll),tn(document,"touchmove",this._handleFallbackAutoScroll),tn(document,"mousemove",this._handleFallbackAutoScroll)),cG(),Gb(),u8e()},nulling:function(){Kb=ME=vm=LE=ym=zE=VE=null,ci.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(r,o);if(Kb=t,n||this.options.forceAutoScrollFallback||um||Ma||fm){UE(t,this.options,s,n);var a=hl(s,!0);LE&&(!ym||r!==zE||o!==VE)&&(ym&&cG(),ym=setInterval(function(){var u=hl(document.elementFromPoint(r,o),!0);u!==a&&(a=u,Gb()),UE(t,i.options,u,n)},10),zE=r,VE=o)}else{if(!this.options.bubbleScroll||hl(s,!0)===sa()){Gb();return}UE(t,this.options,hl(s,!1),!1)}}},Ra(e,{pluginName:"scroll",initializeByDefault:!0})}function Gb(){ci.forEach(function(e){clearInterval(e.pid)}),ci=[]}function cG(){clearInterval(ym)}var UE=eG(function(e,t,n,i){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,u=sa(),f=!1,d;ME!==n&&(ME=n,Gb(),vm=t.scroll,d=t.scrollFn,vm===!0&&(vm=hl(n,!0)));var c=0,h=vm;do{var p=h,m=di(p),y=m.top,v=m.bottom,b=m.left,g=m.right,k=m.width,w=m.height,T=void 0,S=void 0,_=p.scrollWidth,A=p.scrollHeight,D=Ct(p),x=p.scrollLeft,B=p.scrollTop;p===u?(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"));var E=T&&(Math.abs(g-r)<=s&&x+k<_)-(Math.abs(b-r)<=s&&!!x),F=S&&(Math.abs(v-o)<=s&&B+w<A)-(Math.abs(y-o)<=s&&!!B);if(!ci[c])for(var C=0;C<=c;C++)ci[C]||(ci[C]={});(ci[c].vx!=E||ci[c].vy!=F||ci[c].el!==p)&&(ci[c].el=p,ci[c].vx=E,ci[c].vy=F,clearInterval(ci[c].pid),(E!=0||F!=0)&&(f=!0,ci[c].pid=setInterval((function(){i&&this.layer===0&&St.active._onTouchMove(Kb);var I=ci[this.layer].vy?ci[this.layer].vy*a:0,N=ci[this.layer].vx?ci[this.layer].vx*a:0;typeof d=="function"&&d.call(St.dragged.parentNode[Ir],N,I,e,Kb,ci[this.layer].el)!=="continue"||tG(ci[this.layer].el,N,I)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&h!==u&&(h=hl(h,!1)));LE=f}},30),hG=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var u=n||r;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);a(),u&&!u.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function HE(){}HE.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 i=$d(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:hG},Ra(HE,{pluginName:"revertOnSpill"});function qE(){}qE.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:hG},Ra(qE,{pluginName:"removeOnSpill"}),St.mount(new B8e),St.mount(qE,HE);function D8e(e){return e==null?e:JSON.parse(JSON.stringify(e))}function A8e(e){l.getCurrentInstance()&&l.onUnmounted(e)}function T8e(e){l.getCurrentInstance()?l.onMounted(e):l.nextTick(e)}let pG=null,gG=null;function mG(e=null,t=null){pG=e,gG=t}function O8e(){return{data:pG,clonedData:gG}}const vG=Symbol("cloneElement");function F8e(...e){var t,n;const i=(t=l.getCurrentInstance())==null?void 0:t.proxy;let r=null;const o=e[0];let[,s,a]=e;Array.isArray(l.unref(s))||(a=s,s=null);let u=null;const{immediate:f=!0,clone:d=D8e,customUpdate:c}=(n=l.unref(a))!=null?n:{};function h(A){var D;const{from:x,oldIndex:B,item:E}=A;r=Array.from(x.childNodes);const F=l.unref((D=l.unref(s))==null?void 0:D[B]),C=d(F);mG(F,C),E[vG]=C}function p(A){const D=A.item[vG];if(!J5e(D)){if(DE(A.item),l.isRef(s)){const x=[...l.unref(s)];s.value=UK(x,A.newDraggableIndex,D);return}UK(l.unref(s),A.newDraggableIndex,D)}}function m(A){const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,pullMode:F,clone:C}=A;if(HK(D,x,B),F==="clone"){DE(C);return}if(l.isRef(s)){const I=[...l.unref(s)];s.value=VK(I,E);return}VK(l.unref(s),E)}function y(A){if(c){c(A);return}const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,newDraggableIndex:F}=A;if(DE(x),HK(D,x,B),l.isRef(s)){const C=[...l.unref(s)];s.value=zK(C,E,F);return}zK(l.unref(s),E,F)}function v(A){const{newIndex:D,oldIndex:x,from:B,to:E}=A;let F=null;const C=D===x&&B===E;try{if(C){let I=null;r==null||r.some((N,H)=>{if(I&&(r==null?void 0:r.length)!==E.childNodes.length)return B.insertBefore(I,N.nextSibling),!0;const Q=E.childNodes[H];I=E==null?void 0:E.replaceChild(N,Q)})}}catch(I){F=I}finally{r=null}l.nextTick(()=>{if(mG(),F)throw F})}const b={onUpdate:y,onStart:h,onAdd:p,onRemove:m,onEnd:v};function g(A){const D=l.unref(o);return A||(A=Y5e(D)?X5e(D,i==null?void 0:i.$el):D),A&&!$5e(A)&&(A=A.$el),A||void 0,A}function k(){var A;const D=(A=l.unref(a))!=null?A:{},x=LK(D,["immediate","clone"]);return qK(x,(B,E)=>{e8e(B)&&(x[B]=(F,...C)=>{const I=O8e();return t8e(F,I),E(F,...C)})}),Q5e(s===null?{}:b,x)}const w=A=>{A=g(A),u&&T.destroy(),u=new St(A,k())};l.watch(()=>a,()=>{u&&qK(k(),(A,D)=>{u==null||u.option(A,D)})},{deep:!0});const T={option:(A,D)=>u==null?void 0:u.option(A,D),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...A)=>u==null?void 0:u.closest(...A)},S=()=>T==null?void 0:T.option("disabled",!0),_=()=>T==null?void 0:T.option("disabled",!1);return T8e(()=>{f&&w()}),A8e(T.destroy),Zd({start:w,pause:S,resume:_},T)}const WE=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],P8e=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...WE.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],yG=l.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:P8e,emits:["update:modelValue",...WE],setup(e,{slots:t,emit:n,expose:i,attrs:r}){const o=WE.reduce((d,c)=>{const h=`on${c.replace(/^\S/,p=>p.toUpperCase())}`;return d[h]=(...p)=>n(c,...p),d},{}),s=l.computed(()=>{const d=l.toRefs(e),c=LK(d,["modelValue"]),h=Object.entries(c).reduce((p,[m,y])=>{const v=l.unref(y);return v!==void 0&&(p[m]=v),p},{});return Zd(Zd({},o),G5e(Zd(Zd({},r),h)))}),a=l.computed({get:()=>e.modelValue,set:d=>n("update:modelValue",d)}),u=l.ref(),f=l.reactive(F8e(e.target||u,a,s));return i(f),()=>{var d;return l.h(e.tag||"div",{ref:u},(d=t==null?void 0:t.default)==null?void 0:d.call(t,f))}}}),j8e={class:"c0 omit ex fs13 plr4"},I8e={class:"b g6"},R8e=["title"],bG={__name:"tableContentControl",props:{modelValue:{type:Array,default:()=>[]},dragTitleKey:{type:String,default:"title"}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:u=>{i("update:modelValue",u)}}),o=l.computed(()=>{let u=1/0;return n.modelValue.forEach(f=>{u=Math.min(u,f.rank)}),u||1});function s(u){return rr(n.dragTitleKey,u)}function a(u){i("sort",u,o.value)}return(u,f)=>{const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-button"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:60vh;overflow-y:auto;",trigger:"hover",width:240},{reference:l.withCtx(()=>[l.createVNode(c,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(d,{icon:"draggable",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:a},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(p,m)=>(l.openBlock(),l.createElementBlock("div",{key:p.id,class:"cpm ptb4 w fxmc"},[l.createVNode(d,{class:"g9",icon:"drag-drop-line"}),l.createElementVNode("div",j8e,[l.createElementVNode("span",I8e,l.toDisplayString(o.value+m),1),l.createElementVNode("span",{class:"ml4",title:s(p)},l.toDisplayString(s(p)),9,R8e)])]))),128))]),_:1},8,["modelValue"])]),_:1})}}},N8e=Object.freeze(Object.defineProperty({__proto__:null,default:bG},Symbol.toStringTag,{value:"Module"})),KE={__name:"tableFieldControl",props:{modelValue:{type:Array,default:()=>[]}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:a=>{i("update:modelValue",a)}});function o(a){i("sort",a)}function s(a,u){i("change",a,u)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-checkbox"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:70vh;overflow-y:auto;",trigger:"hover",width:210},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"settings-line",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,p=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:p.id},[l.createVNode(f,{icon:"drag-drop-line"}),l.createVNode(c,{checked:p.checked,class:"ml5",onChange:m=>s(p,a.index)},{default:l.withCtx(()=>[l.createElementVNode("span",{class:l.normalizeClass(p.label.length>6?"fs12":"")},l.toDisplayString(p.label),3)]),_:2},1032,["checked","onChange"])],512)),[[l.vShow,!p.isOperate]])),128))]),_:1},8,["modelValue"])]),_:1})}}},M8e=Object.freeze(Object.defineProperty({__proto__:null,default:KE},Symbol.toStringTag,{value:"Module"})),kG={__name:"tableListContent",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:null},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","show-file"],setup(e,{expose:t,emit:n}){const i=e,r=n,o=l.ref(null),s=l.computed(()=>{var b,g;return((((b=i==null?void 0:i.pagination)==null?void 0:b.currentPage)||1)-1)*(((g=i==null?void 0:i.pagination)==null?void 0:g.pageSize)||15)});function a(b){r("table-current-change",b)}function u(b,g,k,w){r("header-dragend",b,g,k,w)}function f(b){r("selection-change",b)}function d(b={}){r("sort-change",b)}function c(b){r("change-table-column","fixed",b)}function h(b,g,k){r("table-action",b,g,k)}function p(b={},g={}){r("edit-row",b,g)}function m(b,g){r("click-cell",b,g)}function y(b){r("show-file",b)}function v(b,g,k,w){var T;r("dbclick-cell",{row:b,column:g,cell:k,event:w,text:((T=w==null?void 0:w.target)==null?void 0:T.textContent)||""})}return t({tableRef:o}),(b,g)=>{const k=l.resolveComponent("jwt-table-button"),w=l.resolveComponent("jwt-column-item"),T=l.resolveComponent("el-table-column"),S=l.resolveComponent("el-table"),_=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createBlock(S,l.mergeProps(e.tableAttr,{ref_key:"tableRef",ref:o,"default-sort":e.defaultSort,class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.tableEvents),{onCellDblclick:v,onCurrentChange:a,onHeaderDragend:u,onSelectionChange:f,onSortChange:d}),{default:l.withCtx(()=>[l.renderSlot(b.$slots,"table-content-before"),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(A,D)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:D},[A.checked?(l.openBlock(),l.createBlock(T,l.mergeProps({key:0,align:A.align||"center",fixed:A.fixed,ref_for:!0},A.attrs,{"min-width":A.minWidth?A.minWidth:null,prop:A.prop,sortable:A.sortable,type:A.type,width:A.width?A.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(Ob,{item:A,onFixed:x=>c(A)},null,8,["item","onFixed"])]),_:2},[A.type?A.type==="expand"?{name:"default",fn:l.withCtx(({row:x})=>[l.renderSlot(b.$slots,A.prop,{index:D,scope:x})]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:x,$index:B})=>[A.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(b.$slots,"action-before",{scope:x}),l.createVNode(k,{config:A,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:x,"show-button-num":e.tableButtonNum,onTableAction:E=>h(E,x,A)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(b.$slots,"action-after",{scope:x})],64)):A.isColumn?l.renderSlot(b.$slots,A.prop,{key:1,index:D,scope:x}):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(A==null?void 0:A.columnCls)||"fxmc","w mw"])},[l.renderSlot(b.$slots,A.slotPreName,{scope:x}),l.renderSlot(b.$slots,A.prop,{index:D,rowindex:B,pagestart:s.value,scope:x},()=>[l.createVNode(w,{index:B,item:A,row:x,pagestart:s.value,onChange:p,onClickCell:m,onShowFile:y},null,8,["index","item","row","pagestart"])]),l.renderSlot(b.$slots,A.slotSufName,{scope:x})],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(b.$slots,"table-content-after",{list:e.tableData})]),_:3},16,["default-sort","data","element-loading-text","height","size"])),[[_,e.ajaxLoading]])}}},L8e=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),z8e={class:"table-list-actions"},V8e={class:"fx fxwp"},U8e=l.defineComponent({name:"JwtTableButton"}),wG=l.defineComponent({...U8e,props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showButtonNum:{type:Number,default:3},showIcon:{type:Boolean,default:!1},showText:{type:Boolean,default:!0}},emits:["table-action"],setup(e,{emit:t}){const n=e,i=t,{visibleActions:r,tableButtonActions:o,hasOverflowActions:s}=PK(n),a=(u,f)=>{i("table-action",{action:f,e:u})};return(u,f)=>{var h;const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-popover");return l.openBlock(),l.createElementBlock("div",z8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,link:"",size:"small",action:p,"show-icon":e.showIcon,"show-text":e.showText,onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128)),l.unref(s)?(l.openBlock(),l.createBlock(c,{key:0,placement:"bottom",trigger:"hover",persistent:!1,width:150},{reference:l.withCtx(()=>[l.createVNode(d,{class:"ml5 cp",icon:"more-fill"})]),default:l.withCtx(()=>[l.createElementVNode("div",V8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,action:p,link:"","show-icon":e.showIcon,"show-text":e.showText,size:"small",onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128))])]),_:1})):l.createCommentVNode("",!0),(h=l.unref(r))!=null&&h.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(" ")],64))])}}}),H8e=Object.freeze(Object.defineProperty({__proto__:null,default:wG},Symbol.toStringTag,{value:"Module"})),q8e=["element-loading-text"],W8e={class:"fxmc c0",style:{padding:"10px 0","justify-content":"center",height:"100%","background-color":"var(--el-table-row-hover-bg-color)"}},_G=Qt({__name:"tableListContentVirtualized",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:"72vh"},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},estimatedRowHeight:{type:Number,default:50},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","selection-header-change","selection-column-change","show-file"],setup(e,{emit:t}){const n=e,i=l.computed(()=>{var h,p;return((h=n.tableAttr)==null?void 0:h["show-summary"])&&((p=n.tableAttr)==null?void 0:p.summaryMethod)}),r=l.computed(()=>{var h,p;return((((h=n==null?void 0:n.pagination)==null?void 0:h.currentPage)||1)-1)*(((p=n==null?void 0:n.pagination)==null?void 0:p.pageSize)||15)}),o=t,s=l.useSlots(),a=l.computed(()=>n.appTableColumn.map(h=>({...h,align:h.align||"center",title:h.label,key:h.prop,property:h.prop,width:h.width||h.minWidth||150,dataKey:h.prop,headerCellRenderer:()=>l.h(Ob,{item:h,tableData:n.tableData,onFixed:()=>o("change-table-column","fixed",h),onSelect:p=>o("selection-header-change",p)}),cellRenderer:({rowData:p,rowIndex:m,columnIndex:y})=>{const v={index:y,rowindex:m,scope:p,row:p,item:h,pagestart:r.value};return h.action?l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[s["action-before"]?s["action-before"]({scope:p}):null,l.h(wG,{config:h,"current-path":n.currentPagePath,"menus-obj":n.userMenusAuth,row:p,"show-button-num":n.tableButtonNum,onTableAction:b=>o("table-action",b,p,h)}),s["action-after"]?s["action-after"]({scope:p}):null]):(h==null?void 0:h.type)==="selection"?l.h(lt.ElCheckbox,{modelValue:p.selectionChecked,onChange:b=>{p.selectionChecked=b,o("selection-column-change",b,p)}}):l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[h.slotPreName&&s[h.slotPreName]?s[h.slotPreName](v):null,s[h.prop]?s[h.prop](v):l.h(R7,{item:h,row:p,index:m,pagestart:r.value,onChange:(b,g)=>o("edit-row",b,g),onClickCell:(b,g)=>o("click-cell",b,g),onShowFile:b=>o("show-file",b)}),h.slotSufName&&s[h.slotSufName]?s[h.slotSufName](v):null])}})).filter(h=>!h.hide)),u=l.computed(()=>{var h;if(i.value){const p=(h=n.tableAttr)==null?void 0:h.summaryMethod({columns:a.value,data:n.tableData});let m=[];return p.forEach((y,v)=>{y&&y!=="-"&&v&&m.push(`${a.value[v].label}: ${y}`)}),m.length?`总计:${m.join("、")}`:""}return""}),f=l.ref({order:"desc"});function d(h){o("sort-change",{prop:h.key,order:h.order==="asc"?"ascending":"descending",column:h.column}),f.value=h}function c(h,p,m){var y;o("dbclick-cell",{row:p,column:m,event:h,text:((y=h==null?void 0:h.currentTarget)==null?void 0:y.textContent)||""})}return(h,p)=>{const m=l.resolveComponent("el-table-v2"),y=l.resolveComponent("el-auto-resizer"),v=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",{"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,style:l.normalizeStyle({height:e.tableHeight})},[l.createVNode(y,null,{default:l.withCtx(({height:b,width:g})=>[l.createVNode(m,l.mergeProps({columns:a.value,data:e.tableData,"estimated-row-height":e.estimatedRowHeight,fixed:"","footer-height":40,height:b,"sort-by":e.defaultSort,width:g},e.tableAttr,l.toHandlers(e.tableEvents),{onColumnSort:d}),l.createSlots({_:2},[i.value&&u.value?{name:"footer",fn:l.withCtx(()=>[l.createElementVNode("div",W8e,l.toDisplayString(u.value),1)]),key:"0"}:void 0]),1040,["columns","data","estimated-row-height","height","sort-by","width"])]),_:1})],12,q8e)),[[v,e.ajaxLoading]])}}},[["__scopeId","data-v-7ecf0778"]]),K8e=Object.freeze(Object.defineProperty({__proto__:null,default:_G},Symbol.toStringTag,{value:"Module"})),GE={__name:"tableSizeSetting",emits:["tableSize"],setup(e,{emit:t}){const n=t,i=ir.get("tableSize")||"default",r=l.ref(i),o=[{title:Pe("大"),size:"large",imgSize:70},{title:Pe("中"),size:"default",imgSize:60},{title:Pe("小"),size:"small",imgSize:40}];function s(a){n("tableSize",a)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-radio"),h=l.resolveComponent("el-radio-group"),p=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(p,{persistent:!1,placement:"bottom",trigger:"hover",width:200},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"line-height",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(h,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=m=>r.value=m),onChange:s},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(o,(m,y)=>l.createVNode(c,{key:y,label:m.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.title),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])])]),_:1})}}},G8e=Object.freeze(Object.defineProperty({__proto__:null,default:GE},Symbol.toStringTag,{value:"Module"})),J8e=l.defineComponent({name:"JwtTableCopy",components:{TableSizeSetting:GE,TableFieldControl:KE,TableColumnHeader:Ob},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change"],setup(e,{emit:t}){var se,xe,Le,Te;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.shallowRef(null),v=l.computed(()=>d.value.map(ne=>ne.id).join(",")),b=l.computed(()=>{var ne;return((ne=p.value)==null?void 0:ne.editBoxRefModel)||{}}),g=l.computed(()=>{var ne;return((ne=m.value)==null?void 0:ne.editBoxRefModel)||{}}),k=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),w=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),T=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),S=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0},virtualized:!1,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let _=Ke.merge({},S,{useField:!0,keepAliveTabs:!0},e.config);const A=()=>{var ne;return((ne=e==null?void 0:e.config)==null?void 0:ne.tablePageSizeName)||"pageSize"},D=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(A())||((se=_.tableListParams)==null?void 0:se.per_page)||_.pagination["page-sizes"][2],totalCount:1,sort:((xe=_.tableListParams)==null?void 0:xe.sort)||"id",order:((Le=_.tableListParams)==null?void 0:Le.order)||"desc"}),x=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),E={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},F=l.shallowReactive({attrs:{...E},visible:!1,config:{},detailInfo:{},contentConfig:{}}),C=l.computed(()=>{var ne;return F.descriptionEdit||(ne=F==null?void 0:F.attrs)!=null&&ne.refresh?l.reactive(F.detailInfo):F.detailInfo}),I=()=>{var Ce;const ne={};for(const Re in e.userMenusAuth){const{id:ze}=((Ce=e.userMenusAuth)==null?void 0:Ce[Re])||"";ze&&(ne[ze]=Re)}return ne},N=l.computed(()=>{let ne=e.route.path||"";return e!=null&&e.refMenuId&&(ne=I()[e.refMenuId]),e!=null&&e.pageUrl&&(ne=e==null?void 0:e.pageUrl),ne||""}),H=l.computed(()=>Pe("加载数据中")||"加载数据中..."),Q=(ne={})=>{const{query:Ce}=e.route;let Re={...c.value,...ne};if((Ce.fromJump||Ce.openType)&&!(e!=null&&e.refMenuId)){for(let[ze,$e]of Object.entries(Ce))Ke.isArray($e)?Re[ze]=$e.map(ut=>+ut):Re[ze]=$e;Re.openType&&delete Re.openType,delete Re.fromJump}c.value=Re,ae(ne)},ie=()=>{var ne,Ce;return{..._.tableListParams||{},page:D.currentPage,per_page:D.pageSize,sort:D.sort||((ne=_.tableListParams)==null?void 0:ne.sort)||"",order:D.order||((Ce=_.tableListParams)==null?void 0:Ce.order)||"",...c.value||{}}},ae=(ne={})=>{const Ce=ie(),Re=Ke.merge({},Ce,ne);M(Re)},M=ne=>{if(!_.tableListApi){_.tableData&&(o.value=_.tableData);return}a.ajaxLoading=!0,n.request({url:_.tableListApi,method:"get",params:ne}).then(Ce=>{let Re=null;_.hasPagination?(_!=null&&_.tableListCallback&&Ke.isFunction(_.tableListCallback)?Re=_.tableListCallback(Ce.data,Ce):Re=Ce.data,o.value=e.freezeList?l.markRaw(Re.map(ze=>l.markRaw(ze))):Re,D.pageCount=Ce==null?void 0:Ce.totalPage,D.totalCount=Ce.total,D.currentPage=Ce.current_page):(Re=Ce,o.value=e.freezeList?l.markRaw(Re):Re),Re=null,a.tableStatistics=(Ce==null?void 0:Ce.statistics)||null,a.ajaxLoading=!1,j(Ce.data),t("tablelist-change",Ce.data)}).catch(()=>{a.ajaxLoading=!1})},j=(ne=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:Ce,openType:Re}}=e.route;if(Re&&Ce&&ne.length===1){if(Re==="edit")$n(ne[0],{});else if(Re.includes("Detail")){const ze=s.value.find($e=>{var ut;return((ut=$e==null?void 0:$e.publicDrawerConfig)==null?void 0:ut.openName)===Re});ze!=null&&ze.id&&t("click-cell",ne[0],ze)}}},V=()=>{D.currentPage=1;const ne={page:1,per_page:D.pageSize};c.value={},l.nextTick(()=>{ae(ne)})},L=(ne,Ce)=>{c.value[ne]=Ce},W=ne=>{var Ce,Re;D.currentPage=1,(Re=(Ce=e.config)==null?void 0:Ce.tableSearch)!=null&&Re.onlyData?c.value={...ne}:c.value={...c.value,...ne},t("search-result",ne),ae(ne)},G=ne=>{D.currentPage=ne,ae({page:ne})},$=ne=>{D.pageSize=ne;const Ce=A();ir.set(Ce,ne),ae({per_page:ne})},re=ne=>{d.value=ne,t("selection-change",ne)},be=({prop:ne,order:Ce})=>{D.sort=ne,D.order=Ce==="ascending"?"asc":"desc",ae({sort:ne,order:Ce==="ascending"?"asc":"desc"})},Se=ne=>{t("table-current-change",ne)},ee=()=>{var ne,Ce,Re,ze;if(B.visible){B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1;return}F.visible&&Oe(),(Ce=(ne=x==null?void 0:x.config)==null?void 0:ne.api)!=null&&Ce.refreshDraw&&t("refresh-draw"),((ze=(Re=x==null?void 0:x.config)==null?void 0:Re.api)!=null&&ze.refreshTable||x!=null&&x.refreshTable)&&t("refresh-table"),x.visible=!1,x.config=null,x.model=null,a.submitLoading=!1,t("list-change"),!x.stopGetList&&ae()},we=(ne,Ce)=>{var Re,ze,$e;x.visible&&(Re=x==null?void 0:x.config)!=null&&Re.addSuccess&&Ke.isFunction((ze=x==null?void 0:x.config)==null?void 0:ze.addSuccess)&&(($e=x==null?void 0:x.config)==null||$e.addSuccess(c,L)),ee(),t("add-success",ne,Ce)},Ee=(ne,Ce)=>{ee(),t("edit-success",ne,Ce)},P=()=>{F.visible=!0},le=(ne,Ce)=>{n.request({url:_.tableCopyApi,method:"post",data:ne}).then(()=>{t("copy-success",Ce),ae()})},me=(ne,Ce,Re,ze=[],$e=!1)=>{Ik(ne,Ce,Re,{selectionRow:ze,cancel:$e,callback:(ut,We)=>{var ft,dt;t("des-edit-success",ut,We),Ce.refreshTable&&R(),Ce!=null&&Ce.refreshDraw&&ve(),(dt=(ft=Ce==null?void 0:Ce.api)==null?void 0:ft.callback)==null||dt.call(ft,ut)}})},J=(ne={})=>{const Ce=ie();kB(ne,Ce,{url:_.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:_.tableExportPathKey})},Y=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!1})},fe=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!0})},oe=()=>{var ne;if(!((ne=_.tableFileImport)!=null&&ne.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},pe=(ne,Ce,Re=!0)=>{ne[`isEdit${Ce.prop}`]=Re},de=(ne={},Ce={},Re="table")=>{var Ne,Ge,Je,gt,et;const{id:ze}=ne,{prop:$e,refreshTable:ut,api:We}=Ce;if(t("row-change",ne,Ce),!ze||!_.tableRowEdit)return;const ft={table:{url:_.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((Ne=F==null?void 0:F.api)==null?void 0:Ne.update)||((Je=(Ge=F==null?void 0:F.descriptions)==null?void 0:Ge.api)==null?void 0:Je.update)||((et=(gt=_==null?void 0:_.tableDrawer)==null?void 0:gt.api)==null?void 0:et.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let dt=(We==null?void 0:We.url)||ft[Re].url;if(!dt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${ft[Re].des}`);var Z={id:ze};const{startKey:ge,endKey:Me}=Ce;if(ge&&Me?(Z[ge]=ne[$e][0]||"",Z[Me]=ne[$e][1]||""):Z[$e]=ne[$e]||"",We!=null&&We.params){let qt=Ke.isFunction(We.params)?We.params(ne,Z):We.params;Z={...Z,...qt}}n.request({url:dt,method:"post",data:Z}).then(()=>{ne[`isEdit${$e}`]=!1,Re==="drawDes"&&(a.refreshTable=!0),ut&&R(),t("des-edit-success",Ce)})},Oe=(ne="")=>{if(!F.visible){t("refresh-draw");return}const{url:Ce,row:Re,searchKey:ze,valueKey:$e}=F.params||{};if(!Ce)return lt.ElMessage.info(Pe("请配置详情接口"));const ut={};ut[ze]=ne||rr($e,Re),n.request({url:Ce,method:"get",params:ut}).then(We=>{F.detailInfo=We})},ve=(ne="")=>{Oe(ne),a.refreshTable=!0},_e=(ne,Ce)=>{var ut,We,ft,dt,Z;const Re=Ke.merge({},E,((ut=Ce.drawerConfig)==null?void 0:ut.attrs)||{});F.attrs=Re;const ze=(We=Ce==null?void 0:Ce.drawerConfig)==null?void 0:We.tabPaneName,$e=(ft=Ce==null?void 0:Ce.drawerConfig)==null?void 0:ft.desListName;ze&&(_!=null&&_.tableDrawer[ze])&&(F.config={..._==null?void 0:_.tableDrawer[ze],api:Ke.merge({},((dt=_==null?void 0:_.tableDrawer)==null?void 0:dt.api)||{},((Z=Ce.drawerConfig)==null?void 0:Z.api)||{}),attrs:Re,descriptions:$e&&(_!=null&&_.tableDrawer[$e])?_==null?void 0:_.tableDrawer[$e]:{}}),F.detailInfo=ne,F.contentConfig={row:l.toRaw(ne),item:l.toRaw(Ce)},l.nextTick(()=>{F.visible=!0})},Ue=(ne,Ce)=>{var Re;t("click-cell",ne,Ce),Ce.drawerConfig?_e(ne,Ce):((Re=Ce==null?void 0:Ce.actions)==null?void 0:Re.type)==="editBox"&&$n(ne,Ce.actions)},st=()=>{},it=()=>{a.refreshTable&&(ae(),a.refreshTable=!1),F.visible=!1},xt=ne=>{t("upload-btn",ne)},yt=()=>{var ne;(ne=_==null?void 0:_.tableFileImport)!=null&&ne.refreshTable&&R()},je=(...ne)=>{t("event-name",...ne)},ce=ne=>{const Ce=ne==null?void 0:ne.action;Xe("",Ce)},ke=(ne,Ce)=>{B.visible?m.value.setModelVal(ne,Ce):p.value.setModelVal(ne,Ce)},Be=(ne,Ce)=>{B.visible?m.value.handleSetModelVal(ne,Ce):p.value.handleSetModelVal(ne,Ce)},Ve=(ne="editBoxInfo")=>{ne==="editBoxInfo"?(x.model={},x.config={}):ne==="addBoxInfo"&&(B.model={},B.config={}),t("dialog-close")},He=ne=>{a.tableSize=ne,ir.set("tableSize",ne)},rt=(ne,Ce,Re,ze)=>{if(a.tableFields){const $e=s.value.find(ut=>ut.prop===Re.property);$e!=null&&$e.id&&t("change-table-column","width",{width:ne,column:$e})}},ct=ne=>{a.tableFields&&(t("change-table-column","toggle",ne),ne.checked=!ne.checked)},vt=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},_t=ne=>{a.tableFields&&(t("change-table-column","fixed",ne),ne.fixed=!ne.fixed)},Rt=()=>{h.value.formReset()},zt=(ne,Ce)=>{h.value.setModelVal(ne,Ce)},Ot=()=>{var ze,$e,ut;const{path:ne}=e.route,Ce=(e==null?void 0:e.refMenuId)||(($e=(ze=e.userMenusAuth)==null?void 0:ze[ne])==null?void 0:$e.id);return((ut=e==null?void 0:e.config)==null?void 0:ut.useField)&&(e==null?void 0:e.userFieldList[Ce])||null},bn=()=>{var Ce,Re,ze;return((ze=(Re=(Ce=e.userMenusAuth)==null?void 0:Ce[N.value])==null?void 0:Re.operations)==null?void 0:ze.filter($e=>$e==null?void 0:$e.show_table))||[]},In=()=>{var ze,$e;let ne=[];const Ce=Ot();a.tableFields=Ce,((ze=e==null?void 0:e.tableColumn)!=null&&ze.length?e==null?void 0:e.tableColumn:($e=e==null?void 0:e.config)==null?void 0:$e.tableColumn).forEach(ut=>{var dt,Z,ge,Me;const We={...ut,label:Ke.isFunction(ut.label)?ut.label():Pe(ut.label),tips:Ke.isFunction(ut.tips)?ut.tips():Pe(ut.tips)};We.isEdit=!!(We.editType||We.dateTimeFormat||We.isImg||We.isImgs||We.editTypeFun);let ft=!0;if(We.isOperate){const Ne=bn(),Ge=We.fixed==="right"&&(((dt=We==null?void 0:We.action)==null?void 0:dt.list)||[]);Ne!=null&&Ne.length&&Ge.length?ft=Ne.some(Je=>Ge.includes(Je.code)):ft=!1}Ce?(Ce[We.prop]&&ne.push({...We,...Ce[We.prop],isControl:!0,fixed:!!((Z=Ce[We.prop])!=null&&Z.is_fixed),checked:We.hide?!1:!!Ce[We.prop].is_show,width:((ge=Ce[We.prop])==null?void 0:ge.width)||(We==null?void 0:We.width)||""}),We.isOperate&&ne.push({...We,rank:We!=null&&We.type?-1/0:1/0,checked:(We==null?void 0:We.type)||ft,isControl:!1,fixed:(We==null?void 0:We.fixed)||"",width:((Me=Ce[We.prop])==null?void 0:Me.width)||(We==null?void 0:We.width)||""})):ne.push({...We,checked:We.isOperate?ft:!We.hide})}),Ce&&(ne=ne.sort((ut,We)=>ut.rank-We.rank)),s.value=ne},Rn=()=>{const ne={},Ce=Ot();if(Ce&&Ke.isObject(Ce))for(const[Re,ze]of Object.entries(Ce))ze.is_default_sort&&(ne.sort=Re,ne.order=ze.sort);ne!=null&&ne.order&&(D.sort=ne.sort,D.order=ne.order)},It=async()=>await p.value.createSubmitData(),mn=()=>{In()},Wn=(ne,Ce,Re)=>{ne&&n.request({url:ne,method:"get",params:{}}).then(ze=>{Ce==null||Ce(ze,Re.model)})},hi=(ne={},Ce={})=>{var $e;const Re=ne.formList;let ze=Re;return a.tableFields&&(ze=Re.filter(ut=>{const We=!ut.privacyId||!!a.tableFields[ut.privacyId];return(ne==null?void 0:ne.privacyKey)==="disabled"?(ut.formAttrs={...ut.formAttrs,disabled:!We},!0):We})),($e=ne==null?void 0:ne.beforeCreate)!=null&&$e.formatFormList&&Ke.isFunction(ne.beforeCreate.formatFormList)&&(ze=ne.beforeCreate.formatFormList(ze,Ce)),ze},Ni=async(ne,Ce,Re={},ze)=>{const $e={id:ne.id,...Re};n.request({url:_[Ce].form.api.detail,method:"get",params:$e}).then(ut=>{ze?x.model=ze(ut):x.model=ut,x.title=jk(!0,_,Ce,Pe),t("get-detail-success",ut)})},Nr={filterFormList:hi,handleGetDetail:Ni,handleBeforeCreateReq:Wn,t:Pe},$n=(ne,Ce)=>{af(ne,Ce,_,x,Nr),l.nextTick(()=>{_.editBoxOnDialog?x.visible=!0:P()})},Xe=(ne,Ce)=>{af(ne,Ce,_,B,Nr),B.visible=!0},Mr=(ne="",Ce,Re,ze)=>{n.request({url:ne||_.tableDeleteApi,method:"post",data:Ce}).then(()=>{t("delete-success",ze),ae(),Re!=null&&Re.refreshDraw&&ve()})},Ai={deleteText:((Te=_==null?void 0:_.headerActions)==null?void 0:Te.deleteText)||"",tableCopyText:_.tableCopyText,handleEdit:$n,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:Mr,handleExportRequest:Y,handleExportTempRequest:fe,handlePrintRequest:J,handleImportRequest:oe,handleSimpleRequest:me,handleCopyRequest:le},ua=(ne,Ce={},Re=null)=>{var ut,We,ft;const{code:ze}=ne,$e=Re||((ut=_.headerActions)==null?void 0:ut[ze])||((ft=(We=F==null?void 0:F.descriptions)==null?void 0:We.headerActions)==null?void 0:ft[ze]);hc(ne,Ce,$e,d.value,"tableHeader",Ai),t("header-action",ne,d.value,C.value,$e)},O=(ne,Ce,Re)=>{const{action:ze}=ne,$e=Re.action[ze.code];hc(ze,Ce,$e,d.value,"",{...Ai,deleteText:_.tableDeleteText}),t("table-action",ze,Ce,$e,ne)},X=l.watchEffect(()=>{}),z=l.watch(e,ne=>{_=Ke.merge({},S,ne.config),ne.config.tableData&&(o.value=ne.config.tableData||[])}),R=()=>{ae(),t("refresh-table")},q=(ne,Ce,Re)=>{t("form-item-change",ne,Ce,Re)},K=async()=>{var Re;const ne=await((Re=h==null?void 0:h.value)==null?void 0:Re.createSubmitData());for(const ze in ne)ne[ze]===""&&delete ne[ze];const Ce=te(!1);return Ce&&(Object.assign(ne,Ce),h.value.handleSetModelValue(ne)),ne},te=(ne=!1)=>{var Ce;if(e.cacheSearch){const Re=r||N.value;return((Ce=n==null?void 0:n.handleCacheSearch)==null?void 0:Ce.call(n,Re,ne,ne?c.value:null))||null}return null},ye=l.watch(()=>N.value,(ne,Ce)=>{ne!==r&&(r=Ce)});l.onMounted(async()=>{var Ce;const ne=await K();c.value=ne,Rn(),In(),(Ce=_.tableAttr)!=null&&Ce.immediate&&Q()});function Fe(){_=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{te(!0),X(),z(),Fe(),ye()}),{tableRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:N,appConfig:_,pagination:D,editBoxRef:p,editBoxRefModel:b,editBoxInfo:x,addBoxInfo:B,addBoxRef:m,addBoxRefModel:g,tableDrawerConfig:F,selectionRow:d,selectionRowIds:v,tableSearchModel:c,loadingText:H,searchFormRef:h,showPagination:k,showHeaderActions:w,showHeaderSearch:T,onSearchSubmit:W,onSearchReset:V,handleEdit:$n,handleCurrentChange:G,handleSizeChange:$,handleSelectionChange:re,handleTableCurrentChange:Se,handleSortChange:be,handleHeaderAction:ua,handleTableAction:O,handleGetDetail:Ni,getList:ae,initSearch:Q,handleError:st,handleAddSuccess:we,handleEditSuccess:Ee,handleEditRow:pe,handleEditRowProp:de,handleImportRequest:oe,handleClickRow:Ue,handleCloseDrawer:it,handleUploadBtn:xt,handleUploadSuccess:yt,handleRefreshDrawerDetail:ve,handleComponentEvent:je,handleAddOption:ce,setFormModelVal:ke,handleSetFormModelVal:Be,handleSetSearchModelVal:zt,handleDialogClose:Ve,handleTableSizeChange:He,handleTableHeaderDragend:rt,handleFieldCheck:ct,handleTableColumnSort:vt,handleSearchFormReset:Rt,getSubmitData:It,handleFixedCell:_t,handleDoLayoutTable:mn,handleItemChange:q}}}),Y8e={key:0,class:"app-table-wrapper"},X8e={key:0,class:"table-header-wrapper fx"},Z8e={class:"fxm pr10 ex"},Q8e={class:"fxmj"},$8e={class:"ex"};function e9e(e,t,n,i,r,o){var w,T,S,_,A,D,x;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableColumnHeader"),c=l.resolveComponent("jwt-table-button"),h=l.resolveComponent("jwt-column-item"),p=l.resolveComponent("el-table-column"),m=l.resolveComponent("el-table"),y=l.resolveComponent("el-pagination"),v=l.resolveComponent("JwtDialogForm"),b=l.resolveComponent("jwt-detail-drawer"),g=l.resolveComponent("el-drawer"),k=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",Y8e,[l.createElementVNode("div",{class:l.normalizeClass([(w=e.appConfig)!=null&&w.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",X8e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(_=(S=(T=e.config)==null?void 0:T.tableSearch)==null?void 0:S.formList)!=null&&_.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":B=>e.tableSearchModel=B,class:"app-table-search",config:(A=e.config)==null?void 0:A.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(D=e.appConfig)!=null&&D.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",Z8e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((x=e.config)==null?void 0:x.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=B=>e.appTableColumn=B),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[l.withDirectives((l.openBlock(),l.createBlock(m,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.appConfig.tableEvents),{onCurrentChange:e.handleTableCurrentChange,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"table-content-before",{},void 0,!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(B,E)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:E},[B.checked?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0,align:B.align||"center",fixed:B.fixed,ref_for:!0},B.attrs,{"min-width":B.minWidth?B.minWidth:null,prop:B.prop,sortable:B.sortable,type:B.type,width:B.width?B.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(d,{item:B,onFixed:F=>e.handleFixedCell(B)},null,8,["item","onFixed"])]),_:2},[B.type?B.type==="expand"?{name:"default",fn:l.withCtx(({row:F})=>[l.renderSlot(e.$slots,B.prop,{index:E,scope:F},void 0,!0)]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:F,$index:C})=>[B.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(e.$slots,"action-before",{scope:F},void 0,!0),l.createVNode(c,{config:B,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:F,"show-button-num":e.appConfig.tableButtonNum,onTableAction:I=>e.handleTableAction(I,F,B)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(e.$slots,"action-after",{scope:F},void 0,!0)],64)):B.isColumn?l.renderSlot(e.$slots,B.prop,{key:1,index:E,scope:F},void 0,!0):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(B==null?void 0:B.columnCls)||"fxmc","w mw"])},[l.renderSlot(e.$slots,B.slotPreName,{scope:F},void 0,!0),l.renderSlot(e.$slots,B.prop,{index:E,scope:F},()=>[l.createVNode(h,{index:C,item:B,row:F,onChange:e.handleEditRowProp,onClickCell:e.handleClickRow},null,8,["index","item","row","onChange","onClickCell"])],!0),l.renderSlot(e.$slots,B.slotSufName,{scope:F},void 0,!0)],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(e.$slots,"table-content-after",{list:e.tableData},void 0,!0)]),_:3},16,["data","element-loading-text","height","size","onCurrentChange","onHeaderDragend","onSelectionChange","onSortChange"])),[[k,e.ajaxLoading]])],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",Q8e,[l.createElementVNode("div",$8e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(y,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onEditSuccess","onError","onItemChange","onUploadBtn"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(g,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[2]||(t[2]=B=>e.tableDrawerConfig.visible=B)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(b,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({scope:E,model:F,row:C})=>[l.renderSlot(e.$slots,B,{model:F,row:C,scope:E},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const t9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(J8e,[["render",e9e],["__scopeId","data-v-e15df54b"]])},Symbol.toStringTag,{value:"Module"})),n9e=l.defineComponent({name:"JwtTable",components:{TableSizeSetting:GE,TableFieldControl:KE,TableListContent:kG,TableContentControl:bG,TableListContentVirtualized:_G},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change","dbclick-cell","change-table-rank","after-btns-click","show-file","sort-change"],setup(e,{emit:t}){var $e,ut,We,ft,dt;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=($e=e==null?void 0:e.config)!=null&&$e.virtualized?l.ref([]):l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.ref(null),v=l.computed(()=>{var Z;return(Z=y==null?void 0:y.value)==null?void 0:Z.tableRef}),b=l.computed(()=>d.value.map(Z=>Z.id).join(",")),g=l.computed(()=>{var Z;return((Z=p.value)==null?void 0:Z.editBoxRefModel)||{}}),k=l.computed(()=>{var Z;return((Z=m.value)==null?void 0:Z.editBoxRefModel)||{}}),w=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),T=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),S=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),_=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0,defaultSort:{prop:"",order:""},sortBy:{key:"",order:""}},virtualized:!1,dragTitleKey:"title",estimatedRowHeight:50,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableCacheSortOrder:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,showTableDrag:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let A=Ke.merge({},_,{useField:!0,keepAliveTabs:!0},e.config);const D=()=>{var Z;return((Z=e==null?void 0:e.config)==null?void 0:Z.tablePageSizeName)||"pageSize"},x=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(D())||((ut=A.tableListParams)==null?void 0:ut.per_page)||A.pagination["page-sizes"][2],totalCount:1,sort:((We=A.tableListParams)==null?void 0:We.sort)||"id",order:((ft=A.tableListParams)==null?void 0:ft.order)||"desc"}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),E=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),F={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},C=l.shallowReactive({attrs:{...F},visible:!1,config:{},detailInfo:{},contentConfig:{}}),I=l.computed(()=>A.virtualized?{key:x.sort,order:x.order}:{prop:x.sort,order:x.order==="asc"?"ascending":"descending"}),N=l.computed(()=>{var Z;return C.descriptionEdit||(Z=C==null?void 0:C.attrs)!=null&&Z.refresh?l.reactive(C.detailInfo):C.detailInfo}),H=()=>{var ge;const Z={};for(const Me in e.userMenusAuth){const{id:Ne}=((ge=e.userMenusAuth)==null?void 0:ge[Me])||"";Ne&&(Z[Ne]=Me)}return Z},Q=l.computed(()=>{var ge;let Z=((ge=e==null?void 0:e.route)==null?void 0:ge.path)||"";return e!=null&&e.refMenuId&&(Z=H()[e.refMenuId]),e!=null&&e.pageUrl&&(Z=e==null?void 0:e.pageUrl),Z||""}),ie=l.computed(()=>Pe("加载数据中")||"加载数据中..."),ae=(Z={})=>{const{query:ge}=e.route||{};let Me={...c.value,...Z};if((ge!=null&&ge.fromJump||ge!=null&&ge.openType)&&!(e!=null&&e.refMenuId)){for(let[Ne,Ge]of Object.entries(ge))Ke.isArray(Ge)?Me[Ne]=Ge.map(Je=>+Je):Me[Ne]=Ge;Me.openType&&delete Me.openType,delete Me.fromJump}c.value=Me,j(Z)},M=()=>{var Z,ge;return{...A.tableListParams||{},page:x.currentPage,per_page:x.pageSize,sort:x.sort||((Z=A.tableListParams)==null?void 0:Z.sort)||"",order:x.order||((ge=A.tableListParams)==null?void 0:ge.order)||"",...c.value||{}}},j=(Z={})=>{const ge=M(),Me=Ke.merge({},ge,Z);V(Me)},V=Z=>{if(!A.tableListApi){A.tableData&&(o.value=A.tableData);return}a.ajaxLoading=!0,n.request({url:A.tableListApi,method:"get",params:Z}).then(ge=>{let Me=null;if(A.hasPagination){A!=null&&A.tableListCallback&&Ke.isFunction(A.tableListCallback)?Me=A.tableListCallback(ge.data,ge):Me=ge.data,o.value=e.freezeList?l.markRaw(Me.map(Ge=>l.markRaw(Ge))):Me;let Ne=ge;A!=null&&A.paginationCback&&Ke.isFunction(A.paginationCback)&&(Ne=A.paginationCback(ge)),x.pageCount=Ne==null?void 0:Ne.totalPage,x.totalCount=Ne.total,x.currentPage=Ne.current_page}else Me=ge,o.value=e.freezeList?l.markRaw(Me):Me;Me=null,a.tableStatistics=(ge==null?void 0:ge.statistics)||null,a.ajaxLoading=!1,L(ge.data),t("tablelist-change",ge.data)}).catch(()=>{a.ajaxLoading=!1})},L=(Z=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:ge,openType:Me}}=e.route;if(Me&&ge&&Z.length===1){if(Me==="edit")R(Z[0],{});else if(Me.includes("Detail")){const Ne=s.value.find(Ge=>{var Je;return((Je=Ge==null?void 0:Ge.publicDrawerConfig)==null?void 0:Je.openName)===Me});Ne!=null&&Ne.id&&t("click-cell",Z[0],Ne)}}},W=()=>{x.currentPage=1;const Z={page:1,per_page:x.pageSize};c.value={},l.nextTick(()=>{j(Z)})},G=(Z,ge)=>{c.value[Z]=ge},$=Z=>{var ge,Me;x.currentPage=1,(Me=(ge=e.config)==null?void 0:ge.tableSearch)!=null&&Me.onlyData?c.value={...Z}:c.value={...c.value,...Z},t("search-result",Z),j(Z)},re=Z=>{x.currentPage=Z,j({page:Z})},be=Z=>{x.pageSize=Z;const ge=D();ir.set(ge,Z),j({per_page:Z})},Se=Z=>{d.value=Z,t("selection-change",Z)},ee=Z=>{o.value=o.value.map(ge=>(ge.selectionChecked=Z,ge)),Z?(d.value=o.value,t("selection-change",o.value)):(d.value=[],t("selection-change",[]))},we=()=>{l.nextTick(()=>{const Z=o.value.filter(ge=>ge.selectionChecked);d.value=Z,t("selection-change",Z)})},Ee=({prop:Z,order:ge})=>{var Ne;x.sort=Z,x.order=ge==="ascending"?"asc":"desc";const Me={sort:Z,order:ge==="ascending"?"asc":"desc"};ge&&((Ne=A==null?void 0:A.tableListParams)!=null&&Ne.sorts)&&(Me.sorts=""),t("sort-change",{prop:Z,order:ge,param:Me,tableFields:a.tableFields}),j(Me)},P=Z=>{t("table-current-change",Z)},le=()=>{var Z,ge,Me,Ne;if(E.visible){E.visible=!1,E.config=null,E.model=null,a.submitLoading=!1;return}C.visible&&it(),(ge=(Z=B==null?void 0:B.config)==null?void 0:Z.api)!=null&&ge.refreshDraw&&t("refresh-draw"),((Ne=(Me=B==null?void 0:B.config)==null?void 0:Me.api)!=null&&Ne.refreshTable||B!=null&&B.refreshTable)&&t("refresh-table"),B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1,t("list-change"),!B.stopGetList&&j()},me=(Z,ge)=>{var Me,Ne,Ge;B.visible&&(Me=B==null?void 0:B.config)!=null&&Me.addSuccess&&Ke.isFunction((Ne=B==null?void 0:B.config)==null?void 0:Ne.addSuccess)&&((Ge=B==null?void 0:B.config)==null||Ge.addSuccess(c,G)),le(),t("add-success",Z,ge)},J=(Z,ge)=>{le(),t("edit-success",Z,ge)},Y=()=>{C.visible=!0},fe=(Z,ge)=>{n.request({url:A.tableCopyApi,method:"post",data:Z}).then(()=>{t("copy-success",ge),j()})},oe=(Z,ge,Me,Ne=[],Ge=!1)=>{Ik(Z,ge,Me,{selectionRow:Ne,cancel:Ge,callback:(Je,gt)=>{var et,qt;t("des-edit-success",Je,gt),ge.refreshTable&&Le(),ge!=null&&ge.refreshDraw&&xt(),(qt=(et=ge==null?void 0:ge.api)==null?void 0:et.callback)==null||qt.call(et,Je)}})},pe=(Z={})=>{const ge=M();kB(Z,ge,{url:A.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:A.tableExportPathKey})},de=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!1})},Oe=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!0})},ve=()=>{var Z;if(!((Z=A.tableFileImport)!=null&&Z.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},_e=(Z,ge,Me=!0)=>{Z[`isEdit${ge.prop}`]=Me},Ue=(Z={},ge={},Me="table")=>{var un,ki,Li,Lr,so;const{id:Ne}=Z,{prop:Ge,refreshTable:Je,api:gt}=ge;if(t("row-change",Z,ge),!Ne||!A.tableRowEdit)return;const et={table:{url:A.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((un=C==null?void 0:C.api)==null?void 0:un.update)||((Li=(ki=C==null?void 0:C.descriptions)==null?void 0:ki.api)==null?void 0:Li.update)||((so=(Lr=A==null?void 0:A.tableDrawer)==null?void 0:Lr.api)==null?void 0:so.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let qt=(gt==null?void 0:gt.url)||et[Me].url;if(!qt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${et[Me].des}`);var nn={id:Ne};const{startKey:Mi,endKey:bi}=ge;if(Mi&&bi?(nn[Mi]=ck(Z[Ge][0]),nn[bi]=ck(Z[Ge][1])):nn[Ge]=ck(Z[Ge]),gt!=null&>.params){let $u=Ke.isFunction(gt.params)?gt.params(Z,nn):gt.params;nn={...nn,...$u}}n.request({url:qt,method:"post",data:nn}).then(()=>{Z[`isEdit${Ge}`]=!1,Me==="drawDes"&&(a.refreshTable=!0),Je&&Le(),t("des-edit-success",ge)})},st=Z=>{t("dbclick-cell",Z)},it=(Z="")=>{if(!C.visible){t("refresh-draw");return}const{url:ge,row:Me,searchKey:Ne,valueKey:Ge}=C.params||{};if(!ge)return lt.ElMessage.info(Pe("请配置详情接口"));const Je={};Je[Ne]=Z||rr(Ge,Me),n.request({url:ge,method:"get",params:Je}).then(gt=>{C.detailInfo=gt})},xt=(Z="")=>{it(Z),a.refreshTable=!0},yt=(Z,ge)=>{var Je,gt,et,qt,nn;const Me=Ke.merge({},F,((Je=ge.drawerConfig)==null?void 0:Je.attrs)||{});C.attrs=Me;const Ne=(gt=ge==null?void 0:ge.drawerConfig)==null?void 0:gt.tabPaneName,Ge=(et=ge==null?void 0:ge.drawerConfig)==null?void 0:et.desListName;Ne&&(A!=null&&A.tableDrawer[Ne])&&(C.config={...A==null?void 0:A.tableDrawer[Ne],api:Ke.merge({},((qt=A==null?void 0:A.tableDrawer)==null?void 0:qt.api)||{},((nn=ge.drawerConfig)==null?void 0:nn.api)||{}),attrs:Me,descriptions:Ge&&(A!=null&&A.tableDrawer[Ge])?A==null?void 0:A.tableDrawer[Ge]:{}}),C.detailInfo=Z,C.contentConfig={row:l.toRaw(Z),item:l.toRaw(ge)},l.nextTick(()=>{C.visible=!0})},je=(Z,ge)=>{var Me;t("click-cell",Z,ge),ge.drawerConfig?yt(Z,ge):((Me=ge==null?void 0:ge.actions)==null?void 0:Me.type)==="editBox"&&R(Z,ge.actions)},ce=Z=>{t("show-file",Z)},ke=()=>{},Be=()=>{a.refreshTable&&(j(),a.refreshTable=!1),C.visible=!1},Ve=Z=>{t("upload-btn",Z)},He=(Z,ge,Me,Ne)=>{t("after-btns-click",Z,ge,Me,Ne)},rt=()=>{var Z;(Z=A==null?void 0:A.tableFileImport)!=null&&Z.refreshTable&&Le()},ct=(...Z)=>{t("event-name",...Z)},vt=Z=>{const ge=Z==null?void 0:Z.action;q("",ge)},_t=(Z,ge)=>{E.visible?m.value.setModelVal(Z,ge):p.value.setModelVal(Z,ge)},Rt=(Z,ge)=>{E.visible?m.value.handleSetModelVal(Z,ge):p.value.handleSetModelVal(Z,ge)},zt=(Z="editBoxInfo")=>{Z==="editBoxInfo"?(B.model={},B.config={}):Z==="addBoxInfo"&&(E.model={},E.config={}),t("dialog-close")},Ot=Z=>{a.tableSize=Z,ir.set("tableSize",Z)},bn=(Z,ge,Me,Ne)=>{if(a.tableFields){const Ge=s.value.find(Je=>Je.prop===Me.property);Ge!=null&&Ge.id&&t("change-table-column","width",{width:Z,column:Ge})}},In=Z=>{a.tableFields&&(t("change-table-column","toggle",Z),Z.checked=!Z.checked)},Rn=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},It=(Z,ge)=>{o.value=o.value.map((Me,Ne)=>({...Me,rank:ge+Ne})),l.nextTick(()=>{t("change-table-rank",o.value)})},mn=(Z,ge)=>{a.tableFields&&(t("change-table-column",Z,ge),ge.fixed=!ge.fixed)},Wn=()=>{h.value.formReset()},hi=(Z,ge)=>{h.value.setModelVal(Z,ge)},Ni=()=>{var Ne,Ge,Je;const{path:Z}=(e==null?void 0:e.route)||{},ge=(e==null?void 0:e.refMenuId)||((Ge=(Ne=e.userMenusAuth)==null?void 0:Ne[Z])==null?void 0:Ge.id);return((Je=e==null?void 0:e.config)==null?void 0:Je.useField)&&(e==null?void 0:e.userFieldList[ge])||null},Nr=()=>{var ge,Me,Ne;return((Ne=(Me=(ge=e.userMenusAuth)==null?void 0:ge[Q.value])==null?void 0:Me.operations)==null?void 0:Ne.filter(Ge=>Ge==null?void 0:Ge.show_table))||[]},$n=()=>{var Ne,Ge;let Z=[];const ge=Ni();a.tableFields=ge,((Ne=e==null?void 0:e.tableColumn)!=null&&Ne.length?e==null?void 0:e.tableColumn:(Ge=e==null?void 0:e.config)==null?void 0:Ge.tableColumn).forEach(Je=>{var nn,Mi,bi,un,ki,Li;const gt=Ke.isFunction(Je.label)?Je.label():Je.label,et={...Je,label:Pe(gt),tips:Ke.isFunction(Je.tips)?Je.tips():Pe(Je.tips)};et.isEdit=!!(et.editType||et.dateTimeFormat||et.isImg||et.isImgs||et.editTypeFun);let qt=!0;if(et.isOperate){const Lr=Nr(),so=et.fixed==="right"&&(((nn=et==null?void 0:et.action)==null?void 0:nn.list)||[]);Lr!=null&&Lr.length&&so.length?qt=Lr.some($u=>so.includes($u.code)):qt=!1}ge?(ge[et.prop]&&Z.push({...et,...ge[et.prop],label:et!=null&&et.customLabel?et.label:((Mi=ge[et.prop])==null?void 0:Mi.label)||et.label,isControl:!0,fixed:!!((bi=ge[et.prop])!=null&&bi.is_fixed),checked:et.hide?!1:!!ge[et.prop].is_show,width:((un=ge[et.prop])==null?void 0:un.width)||(et==null?void 0:et.width)||"",sortable:(ki=ge[et.prop])!=null&&ki.support_sort?"custome":!1}),et.isOperate&&Z.push({...et,rank:et!=null&&et.type?-1/0:1/0,checked:(et==null?void 0:et.type)||qt,isControl:!1,fixed:(et==null?void 0:et.fixed)||"",width:((Li=ge[et.prop])==null?void 0:Li.width)||(et==null?void 0:et.width)||""})):Z.push({...et,checked:et.isOperate?qt:!et.hide})}),ge&&(Z=Z.sort((Je,gt)=>Je.rank-gt.rank)),s.value=Z},Xe=()=>{var Me,Ne,Ge;const Z={},ge=Ni();if(ge&&Ke.isObject(ge))for(const[Je,gt]of Object.entries(ge))gt.is_default_sort&&(Z.sort=Je,Z.order=gt.sort);(Me=A==null?void 0:A.tableCacheSortOrder)!=null&&Me.order&&(Z.order=(Ne=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ne.order,Z.sort=(Ge=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ge.sort),Z!=null&&Z.order&&(x.sort=Z.sort,x.order=Z.order)},Mr=async()=>await p.value.createSubmitData(),Ai=()=>{$n()},ua=(Z,ge,Me)=>{Z&&n.request({url:Z,method:"get",params:{}}).then(Ne=>{ge==null||ge(Ne,Me.model)})},O=(Z={},ge={})=>{var Ge;const Me=Z.formList;let Ne=Me;return a.tableFields&&(Ne=Me.filter(Je=>{const gt=!Je.privacyId||!!a.tableFields[Je.privacyId];return(Z==null?void 0:Z.privacyKey)==="disabled"?(Je.formAttrs={...Je.formAttrs,disabled:!gt},!0):gt})),(Ge=Z==null?void 0:Z.beforeCreate)!=null&&Ge.formatFormList&&Ke.isFunction(Z.beforeCreate.formatFormList)&&(Ne=Z.beforeCreate.formatFormList(Ne,ge)),Ne},X=async(Z,ge,Me={},Ne)=>{const Ge={id:Z.id,...Me};n.request({url:A[ge].form.api.detail,method:"get",params:Ge}).then(Je=>{var gt,et,qt,nn;Ne?B.model=Ne(Je):B.model=Je,(gt=A[ge].form.api)!=null&>.detailCallback&&Ke.isFunction((et=A[ge].form.api)==null?void 0:et.detailCallback)&&((nn=(qt=A[ge].form.api)==null?void 0:qt.detailCallback)==null||nn.call(qt,Je)),B.title=jk(!0,A,ge,Pe),t("get-detail-success",Je)})},z={filterFormList:O,handleGetDetail:X,handleBeforeCreateReq:ua,t:Pe},R=(Z,ge)=>{af(Z,ge,A,B,z),l.nextTick(()=>{A.editBoxOnDialog?B.visible=!0:Y()})},q=(Z,ge)=>{af(Z,ge,A,E,z),E.visible=!0},K=(Z="",ge,Me,Ne)=>{n.request({url:Z||A.tableDeleteApi,method:"post",data:ge}).then(()=>{t("delete-success",Ne),j(),Me!=null&&Me.refreshDraw&&xt()})},te={deleteText:((dt=A==null?void 0:A.headerActions)==null?void 0:dt.deleteText)||"",tableCopyText:A.tableCopyText,handleEdit:R,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:K,handleExportRequest:de,handleExportTempRequest:Oe,handlePrintRequest:pe,handleImportRequest:ve,handleSimpleRequest:oe,handleCopyRequest:fe},ye=(Z,ge={},Me=null)=>{var Je,gt,et;const{code:Ne}=Z,Ge=Me||((Je=A.headerActions)==null?void 0:Je[Ne])||((et=(gt=C==null?void 0:C.descriptions)==null?void 0:gt.headerActions)==null?void 0:et[Ne]);hc(Z,ge,Ge,d.value,"tableHeader",te),t("header-action",Z,d.value,N.value,Ge)},Fe=(Z,ge,Me)=>{const{action:Ne}=Z,Ge=Me.action[Ne.code];hc(Ne,ge,Ge,d.value,"",{...te,deleteText:A.tableDeleteText}),t("table-action",Ne,ge,Ge,Z)},se=l.watchEffect(()=>{}),xe=l.watch(e,Z=>{A=Ke.merge({},_,Z.config),Z.config.tableData&&(o.value=Z.config.tableData||[])}),Le=()=>{j(),t("refresh-table")},Te=(Z,ge,Me)=>{t("form-item-change",Z,ge,Me)},ne=async()=>{var Me;const Z=await((Me=h==null?void 0:h.value)==null?void 0:Me.createSubmitData());for(const Ne in Z)Z[Ne]===""&&delete Z[Ne];const ge=Ce(!1);return ge&&(Object.assign(Z,ge),h.value.handleSetModelValue(Z)),Z},Ce=(Z=!1)=>{var ge;if(e.cacheSearch){const Me=r||Q.value;return((ge=n==null?void 0:n.handleCacheSearch)==null?void 0:ge.call(n,Me,Z,Z?c.value:null))||null}return null},Re=l.watch(()=>Q.value,(Z,ge)=>{Z!==r&&(r=ge)});l.onMounted(async()=>{var ge;const Z=await ne();c.value=Z,Xe(),$n(),(ge=A.tableAttr)!=null&&ge.immediate&&ae()});function ze(){A=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{Ce(!0),se(),xe(),ze(),Re()}),{tableRef:v,tableListContentRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:Q,appConfig:A,pagination:x,editBoxRef:p,editBoxRefModel:g,editBoxInfo:B,addBoxInfo:E,addBoxRef:m,addBoxRefModel:k,tableDrawerConfig:C,selectionRow:d,selectionRowIds:b,tableSearchModel:c,loadingText:ie,searchFormRef:h,showPagination:w,showHeaderActions:T,showHeaderSearch:S,defaultSort:I,onSearchSubmit:$,onSearchReset:W,handleEdit:R,handleCurrentChange:re,handleSizeChange:be,handleSelectionChange:Se,handleTableCurrentChange:P,handleSortChange:Ee,handleHeaderAction:ye,handleTableAction:Fe,handleGetDetail:X,getList:j,initSearch:ae,handleError:ke,handleAddSuccess:me,handleEditSuccess:J,handleEditRow:_e,handleEditRowProp:Ue,handleImportRequest:ve,handleClickRow:je,handleShowFile:ce,handleCloseDrawer:Be,handleUploadBtn:Ve,handleUploadSuccess:rt,handleRefreshDrawerDetail:xt,handleComponentEvent:ct,handleAddOption:vt,setFormModelVal:_t,handleSetFormModelVal:Rt,handleSetSearchModelVal:hi,handleDialogClose:zt,handleTableSizeChange:Ot,handleTableHeaderDragend:bn,handleFieldCheck:In,handleTableColumnSort:Rn,handleSearchFormReset:Wn,getSubmitData:Mr,handleFixedCell:mn,handleDoLayoutTable:Ai,handleItemChange:Te,handleDbCellClick:st,handleTableDataSort:It,handleAfterBtnsClick:He,handleSelectionHeaderChange:ee,handleSelectionColumnChange:we}}}),i9e={key:0,class:"app-table-wrapper"},r9e={key:0,class:"table-header-wrapper fx"},o9e={class:"fxm pr10 ex"},a9e={class:"fxmj"},s9e={class:"ex"};function l9e(e,t,n,i,r,o){var b,g,k,w,T,S,_,A,D;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableContentControl"),c=l.resolveComponent("TableListContentVirtualized"),h=l.resolveComponent("TableListContent"),p=l.resolveComponent("el-pagination"),m=l.resolveComponent("JwtDialogForm"),y=l.resolveComponent("jwt-detail-drawer"),v=l.resolveComponent("el-drawer");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",i9e,[l.createElementVNode("div",{class:l.normalizeClass([(b=e.appConfig)!=null&&b.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",r9e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(w=(k=(g=e.config)==null?void 0:g.tableSearch)==null?void 0:k.formList)!=null&&w.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":x=>e.tableSearchModel=x,class:"app-table-search",config:(T=e.config)==null?void 0:T.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(S=e.appConfig)!=null&&S.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",o9e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((_=e.config)==null?void 0:_.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"total-count":e.pagination.totalCount,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","total-count","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=x=>e.appTableColumn=x),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0),(A=e.appConfig)!=null&&A.showTableDrag&&((D=e.tableData)!=null&&D.length)?(l.openBlock(),l.createBlock(d,{key:2,modelValue:e.tableData,"onUpdate:modelValue":t[2]||(t[2]=x=>e.tableData=x),"drag-title-key":e.appConfig.dragTitleKey,onSort:e.handleTableDataSort},null,8,["modelValue","drag-title-key","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[e.appConfig.virtualized?(l.openBlock(),l.createBlock(c,{key:0,"ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"estimated-row-height":e.appConfig.estimatedRowHeight,"loading-text":e.loadingText,pagination:e.pagination,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onSelectionColumnChange:e.handleSelectionColumnChange,onSelectionHeaderChange:e.handleSelectionHeaderChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","estimated-row-height","loading-text","pagination","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onSelectionColumnChange","onSelectionHeaderChange","onSortChange","onTableAction","onShowFile"])):(l.openBlock(),l.createBlock(h,{key:1,ref:"tableListContentRef","ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"loading-text":e.loadingText,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,pagination:e.pagination,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onTableCurrentChange:e.handleTableCurrentChange,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","loading-text","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","pagination","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onHeaderDragend","onSelectionChange","onSortChange","onTableAction","onTableCurrentChange","onShowFile"]))],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",a9e,[l.createElementVNode("div",s9e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn,onAfterBtnsClick:e.handleAfterBtnsClick},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onItemChange","onUploadBtn","onAfterBtnsClick"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(v,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[3]||(t[3]=x=>e.tableDrawerConfig.visible=x)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(y,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,model:E,row:F})=>[l.renderSlot(e.$slots,x,{model:E,row:F,scope:B},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const u9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(n9e,[["render",l9e],["__scopeId","data-v-7924fa11"]])},Symbol.toStringTag,{value:"Module"})),f9e={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},d9e=l.defineComponent({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=Nn(),i=l.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1});let r=l.reactive(Ke.merge({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:f9e,showPagination:!0},e.config));const o=l.reactive({currentPage:1,pageCount:1,pageSize:r.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),s=l.ref([]),a=l.ref({}),u=l.ref(null),f=l.computed(()=>e.userMenusAuth||{}),d=()=>{c()},c=()=>{const A=Ke.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},r.tableListParams,a.value);h(A)},h=A=>{if(!r.tableListApi){r.tableData&&(i.tableData=r.tableData);return}i.ajaxLoading=!0,n.request({url:r.tableListApi,method:"get",params:A}).then(D=>{i.tableData=D.data,o.pageCount=D.totalPage,o.totalCount=D.total,i.ajaxLoading=!1,t("tablelist-change")})},p=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c()},m=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c(a.value)},y=A=>{o.currentPage=A,c()},v=A=>{o.pageSize=A,c()},b=(A,D="")=>A===null||A===""||A===void 0?"-":D?fa(A).format(D):A,g=A=>{s.value=A,t("selection-change",A)},k=({prop:A,order:D})=>{o.sort=A,o.order=D==="ascending"?"asc":"desc",c()},w=A=>{t("table-current-change",A)},T=(A,D,x=!0)=>{A[`isEdit${D.prop}`]=x},S=(A,D)=>{const{id:x}=A,{prop:B}=D;if(x){var E={id:x};if(E[B]=A[B],!r.tableUpdateApi)return lt.ElMessage.info("请配置编辑接口!tableUpdateApi");n.request({url:r.tableUpdateApi,method:"post",data:E}).then(()=>{A[`isEdit${B}`]=!1})}},_=A=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(A):A;return l.watch(e,A=>{r=Ke.merge(r,A.config),A.config.tableData&&(i.tableData=A.config.tableData||[])}),l.onBeforeMount(()=>{d()}),{...l.toRefs(i),appConfig:r,pagination:o,selectionRow:s,tableSearchModel:a,editBoxRef:u,dayjs:fa,userMenusAuthObj:f,onSearchSubmit:m,onSearchReset:p,handleCurrentChange:y,handleSizeChange:v,handleSelectionChange:g,handleTableCurrentChange:w,handleSortChange:k,filterVal:b,initSearch:d,handleEditRow:T,handleEditRowProp:S,handleFillUrl:_}}}),c9e={class:"app-table-wrapper"},h9e=["onDblclick"],p9e={class:"image-slot wh fxmc"},g9e={class:"fxr"};function m9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("el-input-number"),u=l.resolveComponent("jwt-upload-image"),f=l.resolveComponent("el-switch"),d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-image"),h=l.resolveComponent("el-table-column"),p=l.resolveComponent("el-table"),m=l.resolveComponent("el-pagination"),y=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",c9e,[l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.withDirectives((l.openBlock(),l.createBlock(p,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appConfig.tableColumn,(v,b)=>(l.openBlock(),l.createBlock(h,{key:b,align:v.align||"center",fixed:v.fixed,label:v.label,"min-width":v.minWidth?v.minWidth:null,prop:v.prop,sortable:v.sortable,type:v.type,width:v.width?v.width:null},l.createSlots({_:2},[v.type?void 0:{name:"default",fn:l.withCtx(({row:g,$index:k})=>[v.dateTimeFormat?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop],v.dateTimeFormat)),1)],64)):v.editType?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[v.editType==="input"?(l.openBlock(),l.createBlock(s,{key:0,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onKeydown:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):v.editType==="inputNumber"?(l.openBlock(),l.createBlock(a,{key:1,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"controls-position":"right",min:0,onBlur:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):v.editType==="uploadImg"?(l.openBlock(),l.createBlock(u,{key:2,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,onOnChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):v.editType==="switch"?(l.openBlock(),l.createBlock(f,{key:3,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"active-value":1,"inactive-value":0,onChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onChange"])):l.createCommentVNode("",!0)],64)):v.editInput?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.withDirectives(l.createElementVNode("div",{onDblclick:w=>e.handleEditRow(g,v)},l.toDisplayString(e.filterVal(g[v.prop])),41,h9e),[[l.vShow,!g[`isEdit${v.prop}`]]]),l.withDirectives(l.createVNode(s,{modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onBlur:w=>e.handleEditRowProp(g,v),onKeyup:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[l.vShow,g[`isEdit${v.prop}`]]])],64)):v.isImg?(l.openBlock(),l.createBlock(c,{key:3,"preview-src-list":[e.handleFillUrl(g[v.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(g[v.prop]),teleported:""},{error:l.withCtx(()=>[l.createElementVNode("div",p9e,[l.createVNode(d,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):l.renderSlot(e.$slots,v.prop,{key:4,index:k,scope:g},()=>[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[y,e.ajaxLoading]]),l.createElementVNode("div",g9e,[e.appConfig.showPagination?(l.openBlock(),l.createBlock(m,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)])])}const v9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(d9e,[["render",m9e],["__scopeId","data-v-3311d9e5"]])},Symbol.toStringTag,{value:"Module"})),y9e=l.defineComponent({name:"JwtTabs"}),b9e=l.defineComponent({...y9e,props:{config:{type:Object,require:!0,default:()=>{}},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},info:{type:Object,require:!0,default:()=>{}},keepAlive:{type:Boolean,default:!0}},emits:["tab-click","event-name"],setup(e,{expose:t,emit:n}){var b,g;const i=e,r=n,o=l.ref(null),s=l.ref(!1),a=l.computed(()=>{var w,T;return((T=(w=i.menusObj)==null?void 0:w[i==null?void 0:i.currentPath])==null?void 0:T.id)||""}),u=l.computed(()=>{var k,w;return((w=(k=i.config)==null?void 0:k.tabPaneList)==null?void 0:w.filter(T=>T.condition&&Ke.isFunction(T.condition)?T.condition(i.info):!0))||[]}),f=l.computed(()=>{var T;const k=((i==null?void 0:i.menusObj)||{})[i==null?void 0:i.currentPath];let w=u.value;if(k&&((T=k==null?void 0:k.operations)!=null&&T.length)){const S={};if(k.operations.forEach(_=>{_.show_tab&&(S[_.code]=_)}),Object.keys(S).length)return w.filter(_=>{var A,D,x;if(S[_.name]){_.refMenuId=((A=S[_.name])==null?void 0:A.ref_menu_id)||"",_.rank=((D=S[_.name])==null?void 0:D.rank)||"";let B=((x=S[_.name])==null?void 0:x.show_title)||_.label||"";return _.numKey&&(B=`${Pe(B)} (${i.info[_.numKey]||0})`),_.label=B,!0}}).sort((_,A)=>_.rank-A.rank)}return w}),d=l.computed(()=>{if(!i.keepAlive||s.value)return[""];const k=[];return f.value.map(w=>{w.unKeepAlive||k.push(w.name)}),k}),c=l.ref(((b=i.config)==null?void 0:b.activeName)||((g=f.value[0])==null?void 0:g.name)),h=l.computed(()=>f.value.find(w=>w.name===c.value)),p=l.computed(()=>{var w,T;const k=((w=h.value)==null?void 0:w.params)||{};return{refMenuId:((T=h.value)==null?void 0:T.refMenuId)||a.value||"",...k}}),m=(k,w)=>{l.nextTick(()=>{r("tab-click",k,w,h.value)})},y=(...k)=>{r("event-name",...k)},v=k=>{f.value.find(T=>T.name===k)&&(c.value=k)};return l.onBeforeUnmount(()=>{s.value=!0}),t({componentRef:o,handleChangeTab:v}),(k,w)=>{var _;const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createBlock(S,l.mergeProps({modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=A=>c.value=A)},(_=e.config)==null?void 0:_.tabsAttrs,{onTabClick:m}),{default:l.withCtx(()=>{var A,D;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(x,B)=>(l.openBlock(),l.createBlock(T,l.mergeProps({key:B,ref_for:!0},x,{label:x.label}),null,16,["label"]))),128)),(l.openBlock(),l.createBlock(l.KeepAlive,{include:d.value},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value.component),l.mergeProps({key:h.value.name,ref_key:"componentRef",ref:o,info:e.info,params:p.value,"ref-menu-id":((A=h.value)==null?void 0:A.refMenuId)||a.value||""},((D=h.value)==null?void 0:D.attrs)||{},{onEventName:y}),null,16,["info","params","ref-menu-id"]))],1032,["include"]))]}),_:1},16,["modelValue"])}}}),k9e=Object.freeze(Object.defineProperty({__proto__:null,default:b9e},Symbol.toStringTag,{value:"Module"})),w9e=l.defineComponent({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"添加"},disabled:{type:Boolean,default:!1},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},isArray:{type:Boolean,default:!1},isInput:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=l.ref(null),i=l.reactive({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),r=()=>{var c;if(i.initOnce)return;let d=[];return e.modelValue&&on.isString(e.modelValue)?d=(c=e==null?void 0:e.modelValue)==null?void 0:c.split(","):e.modelValue&&on.isArray(e.modelValue)&&(d=e.modelValue.map(h=>({...h,title:h[e.labelKey],id:h[e.valueKey]}))),i.initOnce=!0,d},o=l.watch(()=>e.modelValue,d=>{i.initOnce||d!=null&&d.isTrusted||(d?i.tagList=r():i.tagList=[])},{immediate:!0}),s=()=>{i.inputVisible=!0,l.nextTick(()=>{var d,c;(c=(d=n.value)==null?void 0:d.input)==null||c.focus()})},a=d=>{i.tagList.splice(i.tagList.indexOf(d),1),u()},u=()=>{const d=e.isArray?i.tagList:i.tagList.join(",");t("update:modelValue",d)},f=()=>{i.inputValue&&(e.isArray?i.tagList.push({[e.labelKey]:i.inputValue,[e.valueKey]:""}):i.tagList.push(i.inputValue)),i.inputVisible=!1,i.inputValue="",u()};return l.onUpdated(()=>{}),l.onBeforeMount(()=>{i.initOnce=!1}),l.onBeforeUnmount(()=>{o()}),{...l.toRefs(i),inputRef:n,showInput:s,handleClose:a,handleEmitResult:u,handleInputConfirm:f}}}),_9e={class:"fx fxwp w"};function C9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-tag"),f=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",_9e,[e.isInput?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.tagList,(d,c)=>(l.openBlock(),l.createElementBlock("div",{key:d,class:"rel tags-input-wrapper mb10 mr10"},[l.createVNode(s,{modelValue:d[e.labelKey],"onUpdate:modelValue":h=>d[e.labelKey]=h,class:"w220",clearable:"",placeholder:"请输入",onBlur:e.handleEmitResult},null,8,["modelValue","onUpdate:modelValue","onBlur"]),l.createVNode(a,{class:"cd cp tags-input-close",icon:"close-circle-fill abs_rt",size:"18",style:{right:"-10px",top:"-15px"},onClick:h=>e.handleClose(d,c)},null,8,["onClick"])]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.tagList,d=>(l.openBlock(),l.createBlock(u,{key:d,class:"mb4",closable:"","disable-transitions":!1,disabled:e.disabled,onClose:c=>e.handleClose(d,e.index)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.isArray?d[e.labelKey]:d),1)]),_:2},1032,["disabled","onClose"]))),128)),e.inputVisible?(l.openBlock(),l.createBlock(s,{key:2,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=d=>e.inputValue=d),class:l.normalizeClass([e.isInput?"w220 mr10 mb10":"w120"]),placeholder:"请输入",onBlur:e.handleInputConfirm,onKeyup:l.withKeys(e.handleInputConfirm,["enter"])},null,8,["modelValue","class","onBlur","onKeyup"])):(l.openBlock(),l.createBlock(f,{key:3,class:"button-new-tag",disabled:e.disabled,size:e.isInput?"":"small",onClick:e.showInput},{default:l.withCtx(()=>[l.createTextVNode(" + "+l.toDisplayString(e.btnTitle),1)]),_:1},8,["disabled","size","onClick"]))])}const S9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(w9e,[["render",C9e],["__scopeId","data-v-44fc3183"]])},Symbol.toStringTag,{value:"Module"})),x9e=["id"],JE={__name:"TreeNodeTitle",props:{node:{type:Object,default:()=>{}},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},isOpt:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["check","show"],setup(e,{emit:t}){const n=e,i=t,r=l.inject("menusIdObj"),o=l.ref(n.expandAll),s=l.computed(()=>n.node[n.nodeKey]),a=l.computed(()=>n.isOpt?"":`menu-id-${n.node[n.nodeKey]}`),u=l.computed(()=>{var v;if(n.isOpt)return((v=n==null?void 0:n.node)==null?void 0:v.remark)||"";if(n.node.rid){const b=r==null?void 0:r[n.node.rid];return b!=null&&b[n.optTitleKey]?`权限关联:${b[n.optTitleKey]}`:""}return""}),f=l.computed(()=>{var v;return((v=n.node[n.children])==null?void 0:v.length)>0}),d=(v=n.node)=>{const b=[],g=k=>{var w;(w=k[n.children])!=null&&w.length&&k[n.children].forEach(T=>{b.push(T[n.nodeKey]),g(T)})};return g(v),b},c=l.computed(()=>d()),h=l.computed({get(){return f.value?c.value.length>0&&c.value.every(v=>n.checkedKeys.includes(v)):n.checkedKeys.includes(s.value)},set(v){m(v)}}),p=l.computed(()=>{if(!f.value)return!1;const v=c.value.filter(b=>n.checkedKeys.includes(b)).length;return v>0&&v<c.value.length}),m=v=>{i("check",{key:s.value,checked:v,level:n.level})};function y(){o.value=!o.value,l.nextTick(()=>{i("show",o.value,n.node)})}return l.onUnmounted(()=>{}),(v,b)=>{var T,S,_,A;const g=l.resolveComponent("jwt-icon"),k=l.resolveComponent("el-popover"),w=l.resolveComponent("el-checkbox");return l.openBlock(),l.createElementBlock("div",{id:a.value||"",class:l.normalizeClass(["fxm jwt-menu-opt-item-title",[e.isOpt?"mr20":""]])},[e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(g,{key:0,class:l.normalizeClass(["cp fs20 mr5 g9 linear",[(S=(T=e.node)==null?void 0:T.children)!=null&&S.length||(A=(_=e.node)==null?void 0:_.operations)!=null&&A.length?"":"gtp",o.value?"":"up-90"]]),icon:"arrow-down-s-fill",onClick:y},null,8,["class"])),l.createVNode(w,{modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=D=>h.value=D),indeterminate:p.value,disabled:e.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.node[e.menuTitleKey])+" ",1),l.createVNode(k,{content:u.value,persistent:!1,placement:"bottom",title:"权限说明",width:"240"},{reference:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock(g,{key:0,icon:"information-fill"})):l.createCommentVNode("",!0)]),_:1},8,["content"])]),_:1},8,["modelValue","indeterminate","disabled"]),e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:"ex h30",onClick:y}))],10,x9e)}}},E9e=Object.freeze(Object.defineProperty({__proto__:null,default:JE},Symbol.toStringTag,{value:"Module"})),B9e={class:"jwt-menu-opt-item"},D9e={class:"fx fxwp"},CG={__name:"TreeNode",props:{node:{type:Object,required:!0},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},disabled:{type:Boolean,default:!1}},emits:["check","toggle"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(!0),o=l.computed(()=>n.node[n.children]||[]),s=l.computed(()=>{var c;return((c=o.value)==null?void 0:c.length)>0}),a=l.computed(()=>{const c=[],h=[],p=[],m=[];return o.value.forEach(y=>{y.show_tab?c.push(y):y.show_header?p.push(y):y.show_table?h.push(y):m.push(y)}),[{title:"表头权限",list:p},{title:"表格权限",list:h},{title:"tab权限",list:c},{title:"其他权限",list:m}]});function u(c,h){r.value=c,i("toggle",h)}function f(c){i("toggle",c)}const d=c=>{i("check",c)};return(c,h)=>{const p=l.resolveComponent("TreeNode",!0),m=l.resolveComponent("el-divider");return l.openBlock(),l.createElementBlock("div",B9e,[l.createVNode(JE,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:e.node,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,disabled:e.disabled,onCheck:d,onShow:u},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","opt-title-key","disabled"]),s.value?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass([e.node.isOptChild?"fs16 lhm jwt-menu-opt-item-opt-wrapper":"pl25"])},[e.node.isOptChild?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(a.value,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v,class:"plr25"},[y.list.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(m,{"border-style":"dashed",class:"jwt-menu-opt-item-opt-divider","content-position":"center"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title),1)]),_:2},1024),l.createElementVNode("div",D9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.list,b=>(l.openBlock(),l.createBlock(JE,{key:b.id,"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,"is-opt":"",disabled:e.disabled,level:e.level+1,"menu-title-key":e.menuTitleKey,node:b,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,onCheck:d},null,8,["checked-keys","children","expand-all","disabled","level","menu-title-key","node","node-key","opt-title-key"]))),128))])],64)):l.createCommentVNode("",!0)]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.node.children,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v},[l.createVNode(p,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:y,"node-key":e.nodeKey,disabled:e.disabled,"opt-title-key":e.optTitleKey,onCheck:d,onToggle:f},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","disabled","opt-title-key"])]))),128))],2)),[[l.vShow,r.value]]):l.createCommentVNode("",!0)])}}},A9e=Object.freeze(Object.defineProperty({__proto__:null,default:CG},Symbol.toStringTag,{value:"Module"})),T9e={class:"rel"},O9e={key:0,class:"menu-opt-nav-wrapper"},F9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Object.assign({name:"JwtTree"},{props:{treeData:{type:Array,default:()=>[]},nodeKey:{type:String,default:"id"},menuTitleKey:{type:String,default:"title"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},menusIdObj:{type:Object,default:()=>{}},showNav:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:checked-keys","change","toggle","tab-change"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(n.checkedKeys||[]),o=l.ref([]),s=l.ref(""),a=new Map,u=new Map;l.provide("menusIdObj",n.menusIdObj||{});const f=(k,w=null)=>{const T=new Map,S=(_,A)=>{_&&_.forEach(D=>{var B,E;const x=D[n.nodeKey];T.set(x,{node:D,parentKey:A,childrenKeys:((B=D[n.children])==null?void 0:B.map(F=>F[n.nodeKey]))||[]}),(E=D[n.children])!=null&&E.length&&S(D[n.children],x)})};return S(k,w),T},d=l.computed(()=>f(n.treeData)),c=l.computed(()=>{var k,w;return Ke.isArray(n.treeData)&&((k=n.treeData)!=null&&k.length)?((w=n.treeData)==null?void 0:w.length)>1?n.treeDatap:n.treeData[0][n.children]:[]}),h=l.computed(()=>c.value.map(k=>`menu-id-${k[n.nodeKey]}`)),p=k=>{if(a.has(k))return a.get(k);const w=[],T=[k];for(;T.length;){const S=T.pop(),_=d.value.get(S);_&&_.childrenKeys.length&&(w.push(..._.childrenKeys),T.push(..._.childrenKeys))}return a.set(k,w),w},m=k=>{if(u.has(k))return u.get(k);const w=[];let T=k;for(;T;){const S=d.value.get(T);S&&S.parentKey?(w.push(S.parentKey),T=S.parentKey):T=null}return u.set(k,w),w},y=({key:k,level:w,checked:T})=>{const S=new Set(r.value),_=new Set(o.value);T?S.add(k):S.delete(k),_.delete(k),p(k).forEach(x=>{_.delete(x),T?S.add(x):S.delete(x)}),m(k).forEach(x=>{const B=d.value.get(x);B&&(B.childrenKeys.every(F=>S.has(F))?(S.add(x),_.delete(x)):(S.delete(x),B.childrenKeys.some(I=>S.has(I))?_.add(x):_.delete(x),B.childrenKeys.some(I=>_.has(I))&&_.add(x)))}),r.value=Array.from(S),o.value=Array.from(_),i("update:checked-keys",r.value),i("change",{key:k,checked:T,level:w,data:d.value.get(k),checkedKeys:r.value,halfCheckedKeys:o.value})},v=()=>{a.clear(),u.clear()};function b(k){i("toggle",k,h.value)}function g(k){i("tab-change",k)}return l.onMounted(()=>{setTimeout(()=>{b("")},1e3)}),l.watchEffect(()=>{n.checkedKeys&&(r.value=[...n.checkedKeys],v())}),l.onUnmounted(()=>{v()}),(k,w)=>{const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createElementBlock("div",T9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.treeData,(_,A)=>(l.openBlock(),l.createBlock(CG,{key:A,"checked-keys":r.value,"expand-all":e.expandAll,level:0,"menu-title-key":e.menuTitleKey,node:_,"node-key":e.nodeKey,disabled:e.disabled,onCheck:y,onToggle:b},null,8,["checked-keys","expand-all","menu-title-key","node","node-key","disabled"]))),128)),e.showNav?(l.openBlock(),l.createElementBlock("div",O9e,[l.createVNode(S,{modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=_=>s.value=_),"tab-position":"right",onTabChange:g},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,_=>(l.openBlock(),l.createBlock(T,{key:_[e.nodeKey],label:_[e.menuTitleKey]},null,8,["label"]))),128))]),_:1},8,["modelValue"])])):l.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-392b12fd"]])},Symbol.toStringTag,{value:"Module"})),P9e=l.defineComponent({name:"JwtUploadFile",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],initOnce:!1,onUploadProgress:!1,uploadFiles:[],uploadSuccessFiles:[],selectUploadFileNum:0}),s=l.computed(()=>e.disabled||(e.isCosBacthUpload?o.uploadProgress:!1)),a=v=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(v,"","",""):v,u=()=>{let v=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else return o.initOnce=!1,[];else v=e.modelValue?[{url:a(e.modelValue),org_url:e.modelValue,name:a(e.modelValue)}]:[];return o.initOnce=!0,v},f=l.watch(()=>e.modelValue,v=>{l.nextTick(()=>{if(!(v!=null&&v.isTrusted))if(v){const b=u();o.fileList=b}else o.fileList=[]})},{immediate:!0}),d=l.computed(()=>vl()),c=v=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const b=v.type,g=parseInt(e.limitSize),k=g/1024,w=v.size/1024<g;w||(k>1?lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${k}MB!`):lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${g}KB!`));const T=w;return T&&(o.onUploadProgress=!0),T},h=()=>{o.onUploadProgress=!1},p=(v,b)=>{if(o.onUploadProgress=!1,v.code===0){let g=o.fileList.concat([b]);y(g)}else lt.ElMessage.error(v.msg),this.dialogVisible=!1},m=(v,b)=>{y(b)},y=v=>{const b=(n==null?void 0:n.imgUploadResKey)||"";o.initOnce=!0;let g=[];v.map(k=>{var T,S,_;const w=(b?(S=(T=k==null?void 0:k.response)==null?void 0:T.data)==null?void 0:S[b]:(_=k==null?void 0:k.response)==null?void 0:_.data)||k.org_url;w&&g.push(w)}),e.multiple?(t("update:modelValue",g),t("onChange",g)):(t("update:modelValue",g[0]||""),t("onChange",g[0]||""))};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onMounted(()=>{}),l.onBeforeUnmount(()=>{f()}),{attrs:i,uploadRef:r,appOptions:n,...l.toRefs(o),headers:d,uploadDisabled:s,handleRemove:m,handleBeforeUpload:c,handleUploadSuccess:p,handleUploadError:h,t:Pe}}}),j9e={class:"w"};function I9e(e,t,n,i,r,o){const s=l.resolveComponent("el-button"),a=l.resolveComponent("el-upload");return l.openBlock(),l.createElementBlock("div",j9e,[l.createVNode(a,l.mergeProps({ref:"uploadRef","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=u=>e.fileList=u),accept:e.attrs.accept||"application/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,limit:e.limit,"with-credentials":""},e.attrs),{default:l.withCtx(()=>[l.createVNode(s,{type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("上传")),1)]),_:1})]),_:1},16,["file-list","accept","action","before-upload","data","disabled","headers","multiple","drag","on-error","on-remove","on-success","limit"])])}const R9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(P9e,[["render",I9e]])},Symbol.toStringTag,{value:"Module"})),N9e=["src"],M9e=["title"],L9e={class:"picture-card-operation"},z9e=["onClick"],SG=Qt({__name:"fileSlot",props:{listType:{type:String,default:"picture-card"},file:{type:Object,default:()=>{}},pictureActions:{type:Array,default:()=>[]}},emits:["remove","on-preview","action"],setup(e,{emit:t}){const n=t,{t:i}=lt.useLocale(),r=lt.useNamespace("upload"),o=lt.useNamespace("icon"),s=lt.useFormDisabled(),a=d=>{n("remove",d)},u=d=>{n("on-preview",d)},f=(d,c)=>{n("action",{item:d,file:c})};return(d,c)=>{const h=l.resolveComponent("el-icon"),p=l.resolveComponent("el-progress");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.listType==="picture"||e.file.status!=="uploading"&&e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("img",{key:0,alt:"",class:l.normalizeClass(l.unref(r).be("list","item-thumbnail")),src:e.file.url},null,10,N9e)):l.createCommentVNode("",!0),e.file.status==="uploading"||e.listType!=="picture-card"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(l.unref(r).be("list","item-info"))},[l.createElementVNode("a",{class:l.normalizeClass(l.unref(r).be("list","item-name")),onClick:c[0]||(c[0]=l.withModifiers(m=>u(e.file),["prevent"]))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("document"))},{default:l.withCtx(()=>[l.createVNode(l.unref(FX))]),_:1},8,["class"]),l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-file-name")),title:e.file.name},l.toDisplayString(e.file.name),11,M9e)],2),e.file.status==="uploading"?(l.openBlock(),l.createBlock(p,{key:0,percentage:Number(e.file.percentage),"stroke-width":e.listType==="picture-card"?6:2,style:l.normalizeStyle(e.listType==="picture-card"?"":"margin-top: 0.5rem"),type:e.listType==="picture-card"?"circle":"line"},null,8,["percentage","stroke-width","style","type"])):l.createCommentVNode("",!0)],2)):l.createCommentVNode("",!0),l.createElementVNode("label",{class:l.normalizeClass(l.unref(r).be("list","item-status-label"))},[e.listType==="text"?(l.openBlock(),l.createBlock(h,{key:0,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("circle-check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(BX))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(l.openBlock(),l.createBlock(h,{key:1,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(xX))]),_:1},8,["class"])):l.createCommentVNode("",!0)],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(h,{key:2,class:l.normalizeClass(l.unref(o).m("close")),onClick:c[1]||(c[1]=m=>a(e.file))},{default:l.withCtx(()=>[l.createVNode(l.unref(vB))]),_:1},8,["class"])),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(l.unref(o).m("close-tip"))},l.toDisplayString(l.unref(i)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(l.unref(r).be("list","item-actions"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-preview")),onClick:c[2]||(c[2]=m=>u(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("zoom-in"))},{default:l.withCtx(()=>[l.createVNode(l.unref(jX))]),_:1},8,["class"])],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(l.unref(r).be("list","item-delete")),onClick:c[3]||(c[3]=m=>a(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("delete"))},{default:l.withCtx(()=>[l.createVNode(l.unref(TX))]),_:1},8,["class"])],2)),l.createElementVNode("div",L9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.pictureActions,(m,y)=>(l.openBlock(),l.createElementBlock("span",{key:y,onClick:l.withModifiers(v=>f(m,e.file),["stop"])},l.toDisplayString(m.label),9,z9e))),128))])],2)):l.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-5526a394"]]),V9e=Object.freeze(Object.defineProperty({__proto__:null,default:SG},Symbol.toStringTag,{value:"Module"})),U9e=l.defineComponent({name:"JwtUploadImage",components:{FileSlot:SG,PasteUpload:Db},props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},uploadPrefixName:{type:String,default:""},copyImgUploade:{type:Boolean,default:!1},verifyFileType:{type:Boolean,default:!0},uploadName:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click","picture-action","after-btns-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadParams:{...e.uploadParam,name:"",goods_matting:0}}),s=(C="")=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(C):C,a=l.computed(()=>(e==null?void 0:e.uploadName)||(n==null?void 0:n.uploadFileName)||"filedata"),u=l.computed(()=>({"--upload-picture-card-size":(i==null?void 0:i.cardSize)||"148px"})),f=l.computed(()=>(e==null?void 0:e.listType)==="picture-card"),d=l.computed(()=>{var C;return e.multiple?!1:!!((C=e==null?void 0:e.modelValue)!=null&&C.length)||o.onUploadProgress}),c=()=>{var I;if(!e.modelValue)return[];let C=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if((I=e.modelValue)!=null&&I.length)C=[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}];else return o.initOnce=!1,[];else C=e.modelValue?[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}]:[];return o.initOnce=!0,C},h=l.watch(()=>e.modelValue,C=>{l.nextTick(()=>{if(!(C!=null&&C.isTrusted))if(C){const I=c();o.fileList=I}else o.fileList=[]})},{immediate:!0}),p=l.computed(()=>vl()),m=C=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));o.uploadParams.name=`${e.uploadPrefixName}${e.uploadPrefixName?"_":""}${C.name}`;const I=C.type,N=parseInt(e.limitSize),H=N/1024,Q=C.size/1024<N,ie=["image/jpeg","image/png","image/gif","image/webp","image/x-icon"];let ae=e.verifyFileType?ie.includes(I):!0;I.includes(".icon")&&(ae=!0),ae||lt.ElMessage.error(Pe("上传图片只能是JPG,PNG,GIF,WEBP格式")),Q||(H>1?lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${H}MB!`):lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${N}KB!`));const M=ae&&Q;return M&&(o.onUploadProgress=!0),M},y=()=>{o.onUploadProgress=!1},v=(C,I,N)=>{const H=N.every(Q=>Q.status==="success");o.onUploadProgress=!1,H&&g(N)},b=(C,I)=>{g(I)},g=C=>{const I=n.imgUploadResKey||"";o.initOnce=!0;let N=[];C.map(H=>{var ie,ae,M;const Q=(I?(ae=(ie=H==null?void 0:H.response)==null?void 0:ie.data)==null?void 0:ae[I]:(M=H==null?void 0:H.response)==null?void 0:M.data)||H.org_url;Q&&N.push(Q)}),e.multiple?(t("update:modelValue",N),t("onChange",N)):(t("update:modelValue",N[0]||""),t("onChange",N[0]||""))},k=C=>{o.dialogImageUrl=C.url,o.dialogVisible=!0},w=C=>{r.value.handleStart(C),r.value.submit()},T=()=>{t("after-btn-click")},S=(C,I)=>{t("after-btns-click",C,I)},_=(C,I)=>{const N=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});i.mattingUrl&&i.requestFun({url:i.mattingUrl,method:"post",data:{http_path:C,...e.uploadParam}}).then(H=>{const Q=H==null?void 0:H.relative_path.split(",").map(ie=>({url:s(ie),org_url:ie,name:ie}));t("picture-action",{file:Q,item:I}),N.close()}).catch(()=>{N.close()})},A=C=>{r.value.handleRemove(C)},D=l.computed(()=>o.fileList.length&&i.mattingAll),x=l.computed(()=>{const C=(i==null?void 0:i.actionList)||[];return C.length===0?[]:[{label:Pe("设为主图"),code:"setMain"},{label:Pe("抠图"),code:"mattingImg"},{label:Pe("设计"),code:"design"}].filter(H=>C.includes(H.code))}),B=({file:C,item:I})=>{if(I.code==="mattingImg"){_(C.url,I);return}t("picture-action",{file:C,item:I})},E=()=>{var I,N;const C=(N=(I=o.fileList)==null?void 0:I.map(H=>H.org_url))==null?void 0:N.join(",");C&&_(C,{code:"mattingAll"})},F=(C,I)=>{};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onBeforeUnmount(()=>{o.fileList=[],o.initOnce=!1,h()}),{attrs:i,uploadRef:r,appOptions:n,isPictureCard:f,...l.toRefs(o),headers:p,showOnlyOne:d,pictureActions:x,showMattingAll:D,styleObj:u,uploadFileName:a,handleRemove:b,handleBeforeUpload:m,handleUploadSuccess:v,handlePictureCardPreview:k,handleUploadError:y,handleUploadPaste:w,t:Pe,handleAfterBtn:T,handleClickAfterBtns:S,handleFileRemove:A,handlePictureAction:B,handleAllMattingImg:E,handleUploadOnChange:F}}}),H9e={key:0,class:"fv fxr ml5"},q9e=["src"];function W9e(e,t,n,i,r,o){const s=l.resolveComponent("PasteUpload"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-button"),f=l.resolveComponent("file-slot"),d=l.resolveComponent("el-upload"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",{class:"w jwt-upload-image-wrapper",style:l.normalizeStyle(e.styleObj)},[l.createVNode(s,{"btn-list":e.attrs.btnList,"btn-text":e.attrs.afterBtnText,copy:e.copyImgUploade,disabled:e.disabled,limit:e.showOnlyOne,onAfterBtnClick:e.handleAfterBtn,onAfterBtnsClick:e.handleClickAfterBtns,onUploadPaste:e.handleUploadPaste},null,8,["btn-list","btn-text","copy","disabled","limit","onAfterBtnClick","onAfterBtnsClick","onUploadPaste"]),l.createElementVNode("div",{class:l.normalizeClass([e.isPictureCard?"fx":""])},[l.createVNode(d,{ref:"uploadRef",accept:e.attrs.accept||"image/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParams,disabled:e.disabled,drag:e.dragUpload,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:e.uploadFileName,"on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0,"with-credentials":""},l.createSlots({trigger:l.withCtx(()=>[e.isPictureCard?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...h)=>e.handleAfterBtn&&e.handleAfterBtn(...h),["stop"]))},[l.createVNode(a,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(a,{key:1,icon:"add-line",size:40}))],64)):(l.openBlock(),l.createBlock(u,{key:1,type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("选择文件")),1)]),_:1}))]),_:2},[e.attrs.mattingUrl?{name:"file",fn:l.withCtx(({file:h})=>[l.createVNode(f,{file:h,"list-type":e.listType,"picture-actions":e.pictureActions,onAction:e.handlePictureAction,onOnPreview:e.handlePictureCardPreview,onRemove:e.handleFileRemove},null,8,["file","list-type","picture-actions","onAction","onOnPreview","onRemove"])]),key:"0"}:void 0]),1032,["accept","action","before-upload","class","data","disabled","drag","file-list","headers","list-type","multiple","name","on-change","on-error","on-preview","on-remove","on-success"]),e.showMattingAll?(l.openBlock(),l.createElementBlock("div",H9e,[l.createVNode(u,{type:"primary",onClick:e.handleAllMattingImg},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("一键抠图")),1)]),_:1},8,["onClick"])])):l.createCommentVNode("",!0)],2),e.attrs.tips1?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.attrs.tipsCls)},l.toDisplayString(e.attrs.tips),3)):l.createCommentVNode("",!0),l.createVNode(c,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=h=>e.dialogVisible=h),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,q9e)]),_:1},8,["modelValue"])],4)}const K9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(U9e,[["render",W9e]])},Symbol.toStringTag,{value:"Module"})),G9e=l.defineComponent({name:"JwtUploadVideo",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},copyImgUploade:{type:Boolean,default:!1},isCosSdk:{type:Boolean,default:!1},isCosBacthUpload:{type:Boolean,default:!0},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn();var i=null;const r=l.useAttrs(),o=l.ref(null),s=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadFiles:[],uploadSuccessFiles:[],uploadFileNum:0,selectUploadFileNum:0,uploadTips:"",uploadProgress:!1,uploadPercent:0,cosConfig:{}}),a=l.computed(()=>e.disabled||(e.isCosBacthUpload?s.uploadProgress:!1)),u=x=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(x,"","",""):x,f=l.computed(()=>{var x;return e.multiple?!1:!!((x=e==null?void 0:e.modelValue)!=null&&x.length)||s.onUploadProgress}),d=()=>{let x=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else return s.initOnce=!1,[];else x=e.modelValue?[{url:u(e.modelValue),org_url:e.modelValue,name:u(e.modelValue)}]:[];return s.initOnce=!0,x};l.watch(()=>e.modelValue,x=>{l.nextTick(()=>{if(!(x!=null&&x.isTrusted))if(x){const B=d();s.fileList=B}else s.fileList=[]})},{immediate:!0});const c=l.computed(()=>vl()),h=x=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const B=x.type,E=parseInt(e.limitSize),F=E/1024,C=x.size/1024<E;C||(F>1?lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${F}MB!`):lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${E}KB!`));const I=C;return I&&(s.onUploadProgress=!0),I},p=()=>{s.onUploadProgress=!1},m=(x,B)=>{if(s.onUploadProgress=!1,x.code===0){let E=s.fileList.concat([B]);v(E)}else lt.ElMessage.error(x.msg),this.dialogVisible=!1},y=(x,B)=>{v(B)},v=x=>{const B=n.imgUploadResKey||"";s.initOnce=!0;let E=[];x.map(F=>{var I,N,H;const C=(B?(N=(I=F==null?void 0:F.response)==null?void 0:I.data)==null?void 0:N[B]:(H=F==null?void 0:F.response)==null?void 0:H.data)||F.org_url;C&&E.push(C)}),e.multiple?(t("update:modelValue",E),t("onChange",E)):(t("update:modelValue",E[0]||""),t("onChange",E[0]||""))},b=(x,B)=>{if(!e.isCosSdk)return;s.uploadFiles.push(x);let E=B.length;s.selectUploadFileNum=Math.max(E,s.selectUploadFileNum),setTimeout(()=>{s.selectUploadFileNum!==E||s.uploadProgress&&e.isCosBacthUpload||(s.uploadProgress=!0,s.uploadTips=Pe("正在上传中")+"...",s.uploadSuccessFiles=[],g(s.uploadFiles))},50)},g=async x=>{Bb.handleUploadFiles(x,e.isCosBacthUpload,{onProgress:k,onFileFinish:w,handlePath:T})},k=(x,B)=>{e.isCosBacthUpload&&(s.uploadPercent=x)},w=(x,B,E,F)=>{if(e.isCosBacthUpload)if(x)lt.ElMessage.error(Pe("上传失败请重新上传")),s.uploadTips=Pe("上传失败请重新上传")+"...",s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0;else{s.uploadFileNum+=1;const C=`/${E.Key}`,I=s.uploadFiles.findIndex(N=>N.keyPath===E.Key);if(I>=0&&(s.uploadFiles[I].uploadDone="done",s.uploadFiles[I].uploadPercent=100),s.uploadSuccessFiles.push({org_url:C}),s.uploadFileNum===F.length){s.uploadTips=Pe("上传完成");let N=s.fileList.concat(s.uploadSuccessFiles);v(N),setTimeout(()=>{s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0},500)}}else if(x)lt.ElMessage.error(Pe("上传失败请重新上传"));else{const C=`/${E.Key}`;let I=s.fileList.concat([{org_url:C}]);v(I)}},T=x=>`${ir.get("companyId")}/${e.module}/${fa().format("YYYYMMDD")}/${u7(x.name+`${c7(0,1e4)}`)}.${x.ext}`,S=x=>{s.dialogImageUrl=x,s.dialogVisible=!0},_=()=>{t("after-btn-click")},A=(x,B)=>{if(s.fileList.splice(x,1),l.nextTick(()=>{v(s.fileList)}),s.uploadFileList.length){const E=s.uploadFileList.findIndex(F=>F.org_url===B.org_url);E>=0&&s.uploadFileList.splice(E,1)}},D=()=>{i=Bb.getInstance(n.txCosUploadFileUrl)};return l.onBeforeMount(()=>{s.fileList=[],s.initOnce=!1}),l.onMounted(()=>{e.isCosSdk&&D()}),{attrs:r,uploadRef:o,appOptions:n,...l.toRefs(s),headers:c,showOnlyOne:f,uploadDisabled:a,handleRemove:y,handleBeforeUpload:h,handleUploadSuccess:m,handleVideoPreview:S,handleUploadError:p,t:Pe,handleAfterBtn:_,handleDeleteVideo:A,handleUploadOnChange:b,handleInitCosSdk:D}}}),J9e={class:"w"},Y9e={class:"fx fxwp el-upload-list el-upload-list--picture-card"},X9e=["src"],Z9e={key:0,class:"jwt-material-img-mask"},Q9e=["onClick"],$9e=["onClick"],eEe={class:"fx mb10 fxb"},tEe={key:0},nEe={class:"g6 fs12 lh1"},iEe={key:1,style:{width:"50%"}},rEe={class:"cd"},oEe=["src"];function aEe(e,t,n,i,r,o){const s=l.resolveComponent("jwt-icon"),a=l.resolveComponent("el-upload"),u=l.resolveComponent("el-button"),f=l.resolveComponent("el-progress"),d=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",J9e,[l.createElementVNode("ul",Y9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.fileList,(c,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"el-upload-list__item is-success rel"},[l.createElementVNode("video",{class:"wh",controls:"",src:c.url},null,8,X9e),c.url?(l.openBlock(),l.createElementBlock("div",Z9e,[l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleVideoPreview(c.url),["stop"])},t[2]||(t[2]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z",fill:"currentColor"})],-1)]),8,Q9e),l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleDeleteVideo(h,c),["stop"])},t[3]||(t[3]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z",fill:"currentColor"})],-1)]),8,$9e)])):l.createCommentVNode("",!0)]))),128)),l.createVNode(a,{ref:"uploadRef",accept:"video/*",action:e.appOptions.uploadImgUrl,"auto-upload":!e.isCosSdk,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,"list-type":e.listType,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...c)=>e.handleAfterBtn&&e.handleAfterBtn(...c),["stop"]))},[l.createVNode(s,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(s,{key:1,icon:"add-line",size:40}))]),_:1},8,["action","auto-upload","before-upload","class","data","disabled","headers","list-type","multiple","drag","on-change","on-error","on-remove","on-success"]),l.createElementVNode("div",eEe,[e.attrs.afterBtnText?(l.openBlock(),l.createBlock(u,{key:0,class:"ml10",disabled:e.disabled,size:"default",type:"primary",onClick:e.handleAfterBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t(e.attrs.afterBtnText)||e.t("从素材库选")),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0)])]),e.isCosBacthUpload?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",tEe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.uploadFiles,(c,h)=>(l.openBlock(),l.createElementBlock("div",{key:h,class:"lh1"},[l.createElementVNode("span",nEe,l.toDisplayString(c.name),1),l.createVNode(f,{class:"mt2",percentage:c.uploadPercent,"stroke-width":3},null,8,["percentage"])]))),128))])),e.isCosBacthUpload&&e.uploadProgress?(l.openBlock(),l.createElementBlock("div",iEe,[l.createVNode(f,{percentage:e.uploadPercent},null,8,["percentage"]),l.createElementVNode("span",rEe,l.toDisplayString(e.uploadTips),1)])):l.createCommentVNode("",!0),l.createVNode(d,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=c=>e.dialogVisible=c),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("video",{controls:"",src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,oEe)]),_:1},8,["modelValue"])])}const sEe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(G9e,[["render",aEe],["__scopeId","data-v-bbd8a00e"]])},Symbol.toStringTag,{value:"Module"})),lEe={beforeMount(e,t){var a;const n=t.arg||{},i=((a=t==null?void 0:t.modifiers)==null?void 0:a.once)||!1,r=n.root||null,o=n.rootMargin||"0px",s=n.threshold||0;e.intersectionObserver=new IntersectionObserver(u=>{u[0].isIntersecting&&(t.value(),i&&e.intersectionObserver.disconnect())},{root:r,rootMargin:o,threshold:s}),e.intersectionObserver.observe(e)},unmounted(e){e.intersectionObserver.disconnect()}};function uEe(e){const t=new Map;return function(...n){const i=JSON.stringify(n);if(t.has(i))return t.get(i);const r=l.computed(()=>e(...n));return t.set(i,r),r}}var xG={exports:{}};const fEe=DSe(nSe);(function(e,t){(function(n,i){e.exports=i(fEe)})(self,n=>(()=>{var i={857:a=>{a.exports=n}},r={};function o(a){var u=r[a];if(u!==void 0)return u.exports;var f=r[a]={exports:{}};return i[a](f,f.exports,o),f.exports}o.d=(a,u)=>{for(var f in u)o.o(u,f)&&!o.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},o.o=(a,u)=>Object.prototype.hasOwnProperty.call(a,u),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{default:()=>V});var a=o(857);(0,a.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,a.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function u(L,W,G,$,re){return{sel:L,data:W,children:G,text:$,elm:re,key:W===void 0?void 0:W.key}}const f=Array.isArray;function d(L){return typeof L=="string"||typeof L=="number"||L instanceof String||L instanceof Number}function c(L,W,G){if(L.ns="http://www.w3.org/2000/svg",G!=="foreignObject"&&W!==void 0)for(let $=0;$<W.length;++$){const re=W[$];if(typeof re=="string")continue;const be=re.data;be!==void 0&&c(be,re.children,re.sel)}}function h(L,W,G){let $,re,be,Se={};if(G!==void 0?(W!==null&&(Se=W),f(G)?$=G:d(G)?re=G.toString():G&&G.sel&&($=[G])):W!=null&&(f(W)?$=W:d(W)?re=W.toString():W&&W.sel?$=[W]:Se=W),$!==void 0)for(be=0;be<$.length;++be)d($[be])&&($[be]=u(void 0,void 0,void 0,$[be],void 0));return L[0]!=="s"||L[1]!=="v"||L[2]!=="g"||L.length!==3&&L[3]!=="."&&L[3]!=="#"||c(Se,$,L),u(L,Se,$,re,void 0)}const p={type:"attachment",renderElem:function(L,W,G){var $=G.isDisabled(),re=a.DomEditor.isNodeSelected(G,L),be=L,Se=be.fileName,ee=Se===void 0?"":Se,we=be.link,Ee=we===void 0?"":we;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:re&&!$?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:$?"pointer":"inherit"},on:{click:function(){$&&Ee&&window.open(Ee,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),ee])}};function m(L){return L!==null&&typeof L=="object"&&"constructor"in L&&L.constructor===Object}function y(L={},W={}){Object.keys(W).forEach(G=>{L[G]===void 0?L[G]=W[G]:m(W[G])&&m(L[G])&&Object.keys(W[G]).length>0&&y(L[G],W[G])})}const v={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const L=typeof document<"u"?document:{};return y(L,v),L}const g={document:v,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:L=>typeof setTimeout>"u"?(L(),null):setTimeout(L,0),cancelAnimationFrame(L){typeof setTimeout<"u"&&clearTimeout(L)}};function k(){const L=typeof window<"u"?window:{};return y(L,g),L}class w extends Array{constructor(W){typeof W=="number"?super(W):(super(...W||[]),function(G){const $=G.__proto__;Object.defineProperty(G,"__proto__",{get:()=>$,set(re){$.__proto__=re}})}(this))}}function T(L,W){const G=k(),$=b();let re=[];if(!W&&L instanceof w)return L;if(!L)return new w(re);if(typeof L=="string"){const be=L.trim();if(be.indexOf("<")>=0&&be.indexOf(">")>=0){let Se="div";be.indexOf("<li")===0&&(Se="ul"),be.indexOf("<tr")===0&&(Se="tbody"),be.indexOf("<td")!==0&&be.indexOf("<th")!==0||(Se="tr"),be.indexOf("<tbody")===0&&(Se="table"),be.indexOf("<option")===0&&(Se="select");const ee=$.createElement(Se);ee.innerHTML=be;for(let we=0;we<ee.childNodes.length;we+=1)re.push(ee.childNodes[we])}else re=function(Se,ee){if(typeof Se!="string")return[Se];const we=[],Ee=ee.querySelectorAll(Se);for(let P=0;P<Ee.length;P+=1)we.push(Ee[P]);return we}(L.trim(),W||$)}else if(L.nodeType||L===G||L===$)re.push(L);else if(Array.isArray(L)){if(L instanceof w)return L;re=L}return new w(function(be){const Se=[];for(let ee=0;ee<be.length;ee+=1)Se.indexOf(be[ee])===-1&&Se.push(be[ee]);return Se}(re))}function S(...L){let[W,G,$,re]=L;function be(Ee){const P=Ee.target;if(!P)return;const le=Ee.target.dom7EventData||[];if(le.indexOf(Ee)<0&&le.unshift(Ee),T(P).is(G))$.apply(P,le);else{const me=T(P).parents();for(let J=0;J<me.length;J+=1)T(me[J]).is(G)&&$.apply(me[J],le)}}function Se(Ee){const P=Ee&&Ee.target&&Ee.target.dom7EventData||[];P.indexOf(Ee)<0&&P.unshift(Ee),$.apply(this,P)}typeof L[1]=="function"&&([W,$,re]=L,G=void 0),re||(re=!1);const ee=W.split(" ");let we;for(let Ee=0;Ee<this.length;Ee+=1){const P=this[Ee];if(G)for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7LiveListeners||(P.dom7LiveListeners={}),P.dom7LiveListeners[le]||(P.dom7LiveListeners[le]=[]),P.dom7LiveListeners[le].push({listener:$,proxyListener:be}),P.addEventListener(le,be,re)}else for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7Listeners||(P.dom7Listeners={}),P.dom7Listeners[le]||(P.dom7Listeners[le]=[]),P.dom7Listeners[le].push({listener:$,proxyListener:Se}),P.addEventListener(le,Se,re)}}return this}function _(){for(let L=0;L<this.length;L+=1)this[L].style.display="none";return this}function A(...L){let W;const G=b();for(let $=0;$<L.length;$+=1){W=L[$];for(let re=0;re<this.length;re+=1)if(typeof W=="string"){const be=G.createElement("div");for(be.innerHTML=W;be.firstChild;)this[re].appendChild(be.firstChild)}else if(W instanceof w)for(let be=0;be<W.length;be+=1)this[re].appendChild(W[be]);else this[re].appendChild(W)}return this}T.fn=w.prototype;const D="resize scroll".split(" ");function x(L){return function(...W){if(W[0]===void 0){for(let G=0;G<this.length;G+=1)D.indexOf(L)<0&&(L in this[G]?this[G][L]():T(this[G]).trigger(L));return this}return this.on(L,...W)}}const B=x("click"),E=T;E.fn.hide=_,E.fn.append=A,E.fn.click=B,E.fn.on=S;const F=E;var C=function(){return C=Object.assign||function(L){for(var W,G=1,$=arguments.length;G<$;G++)for(var re in W=arguments[G])Object.prototype.hasOwnProperty.call(W,re)&&(L[re]=W[re]);return L},C.apply(this,arguments)},I=function(L,W,G,$){return new(G||(G=Promise))(function(re,be){function Se(Ee){try{we($.next(Ee))}catch(P){be(P)}}function ee(Ee){try{we($.throw(Ee))}catch(P){be(P)}}function we(Ee){var P;Ee.done?re(Ee.value):(P=Ee.value,P instanceof G?P:new G(function(le){le(P)})).then(Se,ee)}we(($=$.apply(L,[])).next())})},N=function(L,W){var G,$,re,be,Se={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return be={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function ee(we){return function(Ee){return function(P){if(G)throw new TypeError("Generator is already executing.");for(;Se;)try{if(G=1,$&&(re=2&P[0]?$.return:P[0]?$.throw||((re=$.return)&&re.call($),0):$.next)&&!(re=re.call($,P[1])).done)return re;switch($=0,re&&(P=[2&P[0],re.value]),P[0]){case 0:case 1:re=P;break;case 4:return Se.label++,{value:P[1],done:!1};case 5:Se.label++,$=P[1],P=[0];continue;case 7:P=Se.ops.pop(),Se.trys.pop();continue;default:if(!((re=(re=Se.trys).length>0&&re[re.length-1])||P[0]!==6&&P[0]!==2)){Se=0;continue}if(P[0]===3&&(!re||P[1]>re[0]&&P[1]<re[3])){Se.label=P[1];break}if(P[0]===6&&Se.label<re[1]){Se.label=re[1],re=P;break}if(re&&Se.label<re[2]){Se.label=re[2],Se.ops.push(P);break}re[2]&&Se.ops.pop(),Se.trys.pop();continue}P=W.call(L,Se)}catch(le){P=[6,le],$=0}finally{G=re=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([we,Ee])}}};function H(L){return L.getMenuConfig("uploadAttachment")}function Q(L,W,G){if(W&&G){L.restoreSelection();var $={type:"attachment",fileName:W,link:G,children:[{text:""}]};L.insertNode($),L.move(1);var re=H(L).onInsertedAttachment;re&&re($)}}function ie(L,W){return I(this,void 0,void 0,function(){var G,$,re,be;return N(this,function(Se){switch(Se.label){case 0:return G=function(ee){var we=ae.get(ee);if(we!=null)return we;var Ee=H(ee),P=Ee.onSuccess,le=Ee.onProgress,me=Ee.onFailed,J=Ee.customInsert,Y=Ee.onError;return we=(0,a.createUploader)(C(C({},Ee),{onProgress:function(fe){ee.showProgressBar(fe),le&&le(fe)},onSuccess:function(fe,oe){if(J)J(oe,fe,function(st,it){return Q(ee,st,it)});else{var pe=oe.errno,de=pe===void 0?1:pe,Oe=oe.data,ve=Oe===void 0?{}:Oe;if(de!==0)return void me(fe,oe);var _e=ve.url,Ue=_e===void 0?"":_e;Q(ee,fe.name,Ue),P(fe,oe)}},onError:function(fe,oe,pe){var de=fe.name;Y&&Y(fe,oe,pe)}})),ae.set(ee,we),we}(L),$=W.name,re=W.type,be=W.size,G.addFile({name:$,type:re,size:be,data:W}),[4,G.upload()];case 1:return Se.sent(),[2]}})})}var ae=new WeakMap;const M=function(){function L(){this.title=(0,a.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return L.prototype.getValue=function(W){return""},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){var $=this.getMenuConfig(W),re=$.allowedFileTypes,be=re===void 0?[]:re,Se=$.customBrowseAndUpload;if(Se)Se(function(P,le){return Q(W,P,le)});else{var ee="";be.length>0&&(ee='accept="'.concat(be.join(", "),'"'));var we=F("body"),Ee=F('<input type="file" '.concat(ee," multiple/>"));Ee.hide(),we.append(Ee),Ee.click(),Ee.on("change",function(){var P=Ee[0].files;(function(le,me){var J,Y;I(this,void 0,void 0,function(){var fe,oe,pe,de,Oe,ve;return N(this,function(_e){switch(_e.label){case 0:if(me==null)return[2];fe=Array.prototype.slice.call(me),oe=H(le).customUpload,_e.label=1;case 1:_e.trys.push([1,9,10,15]),pe=function(Ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var st,it=Ue[Symbol.asyncIterator];return it?it.call(Ue):(Ue=typeof __values=="function"?__values(Ue):Ue[Symbol.iterator](),st={},xt("next"),xt("throw"),xt("return"),st[Symbol.asyncIterator]=function(){return this},st);function xt(yt){st[yt]=Ue[yt]&&function(je){return new Promise(function(ce,ke){(function(Be,Ve,He,rt){Promise.resolve(rt).then(function(ct){Be({value:ct,done:He})},Ve)})(ce,ke,(je=Ue[yt](je)).done,je.value)})}}}(fe),_e.label=2;case 2:return[4,pe.next()];case 3:return(de=_e.sent()).done?[3,8]:(Oe=de.value,oe?[4,oe(Oe,function(Ue,st){return Q(le,Ue,st)})]:[3,5]);case 4:return _e.sent(),[3,7];case 5:return[4,ie(le,Oe)];case 6:_e.sent(),_e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return ve=_e.sent(),J={error:ve},[3,15];case 10:return _e.trys.push([10,,13,14]),de&&!de.done&&(Y=pe.return)?[4,Y.call(pe)]:[3,12];case 11:_e.sent(),_e.label=12;case 12:return[3,14];case 13:if(J)throw J.error;return[7];case 14:return[7];case 15:return[2]}})})})(W,P)})}},L.prototype.isDisabled=function(W){var G=W.selection;if(G==null||a.SlateRange.isExpanded(G))return!0;var $=a.DomEditor.getSelectedElems(W);return!!$.some(function(re){return W.isVoid(re)})||!!$.some(function(re){return a.DomEditor.getNodeType(re)==="pre"})},L.prototype.getMenuConfig=function(W){return W.getMenuConfig("uploadAttachment")},L}(),j=function(){function L(){this.title=(0,a.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return L.prototype.getValue=function(W){var G=this.getSelectedElem(W);return G==null?"":G.link},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){G&&typeof G=="string"&&window.open(G,"_blank")},L.prototype.isDisabled=function(W){var G=W.selection;return G==null||!!a.SlateRange.isExpanded(G)||this.getSelectedElem(W)==null},L.prototype.getSelectedElem=function(W){var G=a.DomEditor.getSelectedNodeByType(W,"attachment");return G??null},L}(),V={editorPlugin:function(L){var W=L.isInline,G=L.isVoid,$=L;return $.isInline=function(re){return a.DomEditor.getNodeType(re)==="attachment"||W(re)},$.isVoid=function(re){return a.DomEditor.getNodeType(re)==="attachment"||G(re)},$},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(L,W){var G=L,$=G.link,re=$===void 0?"":$,be=G.fileName,Se=be===void 0?"":be;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(re,'" download="').concat(Se,'">').concat(Se,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(L,W,G){return{type:"attachment",link:L.getAttribute("href")||"",fileName:L.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new M},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(L){return L},onProgress:function(L){},onSuccess:function(L,W){},onFailed:function(L,W){},onError:function(L,W,G){},onInsertedAttachment:function(L){}}},{key:"downloadAttachment",factory:function(){return new j}}]}})(),s})())})(xG);var dEe=xG.exports;const cEe=bE(dEe),hEe=(e,t={})=>{_J(t);const n=Object.assign({"./JwtCascaderArea/index.vue":TJ,"./JwtCascaderServer/index.vue":jJ,"./JwtColumnItme/components/ColumnDateTimeFormat.vue":x7,"./JwtColumnItme/components/ColumnDefault.vue":E7,"./JwtColumnItme/components/ColumnFile.vue":B7,"./JwtColumnItme/components/ColumnHtml.vue":D7,"./JwtColumnItme/components/ColumnImg.vue":A7,"./JwtColumnItme/components/ColumnImgAdd.vue":T7,"./JwtColumnItme/components/ColumnImgs.vue":O7,"./JwtColumnItme/components/ColumnLink.vue":F7,"./JwtColumnItme/components/ColumnTag.vue":P7,"./JwtColumnItme/components/ColumnTagList.vue":j7,"./JwtColumnItme/components/ColumnText.vue":gk,"./JwtColumnItme/components/ColumnVideo.vue":I7,"./JwtColumnItme/index.vue":lY,"./JwtCount/index.vue":dY,"./JwtCropper/index.vue":aX,"./JwtCropperDialog/index.vue":fX,"./JwtDesHeader/index.vue":Pk,"./JwtDesInfo/index.vue":yX,"./JwtDesTable/index.vue":wX,"./JwtDetailDrawer/index.vue":XX,"./JwtDialogForm/index.vue":oZ,"./JwtEditor/index.vue":wSe,"./JwtEmojiSelect/index.vue":ESe,"./JwtFileIcon/index.vue":BSe,"./JwtFileUpload/index.vue":XSe,"./JwtForm/components/FormLabel.vue":exe,"./JwtForm/index.vue":oxe,"./JwtFormItem/components/FormAutocomplete.vue":bK,"./JwtFormItem/components/FormCascader.vue":kE,"./JwtFormItem/components/FormCascaderPanel.vue":kK,"./JwtFormItem/components/FormCheckbox.vue":wK,"./JwtFormItem/components/FormColorPicker.vue":_K,"./JwtFormItem/components/FormDatePicker.vue":wE,"./JwtFormItem/components/FormDivider.vue":_E,"./JwtFormItem/components/FormEditInput.vue":CE,"./JwtFormItem/components/FormInput.vue":SE,"./JwtFormItem/components/FormInputHidden.vue":CK,"./JwtFormItem/components/FormInputSelect.vue":SK,"./JwtFormItem/components/FormNumberInput.vue":xE,"./JwtFormItem/components/FormRadio.vue":xK,"./JwtFormItem/components/FormRate.vue":EK,"./JwtFormItem/components/FormSelect.vue":BK,"./JwtFormItem/components/FormSlider.vue":DK,"./JwtFormItem/components/FormSwitch.vue":EE,"./JwtFormItem/components/FormTabs.vue":AK,"./JwtFormItem/components/FormTimePicker.vue":BE,"./JwtFormItem/components/FormTimeSelect.vue":TK,"./JwtFormItem/components/FormTips.vue":OK,"./JwtFormItem/components/FormTransfer.vue":FK,"./JwtFormItem/index.vue":fxe,"./JwtHeaderButton/index.vue":vxe,"./JwtIcon/index.vue":_xe,"./JwtIconSelect/index.vue":Dxe,"./JwtImage/index.vue":Fxe,"./JwtInput/index.vue":Ixe,"./JwtMaterial/index.vue":C5e,"./JwtMaterialItemMask/index.vue":Lxe,"./JwtPrefixSuffix/index.vue":B5e,"./JwtRateIcon/index.vue":O5e,"./JwtSelectServer/index.vue":H5e,"./JwtTable/components/tableColumnHeader.vue":q5e,"./JwtTable/components/tableContentControl.vue":N8e,"./JwtTable/components/tableFieldControl.vue":M8e,"./JwtTable/components/tableListContent.vue":L8e,"./JwtTable/components/tableListContentVirtualized.vue":K8e,"./JwtTable/components/tableSizeSetting.vue":G8e,"./JwtTable/index copy.vue":t9e,"./JwtTable/index.vue":u9e,"./JwtTableButton/components/ActionButton.vue":dxe,"./JwtTableButton/index.vue":H8e,"./JwtTableOnly/index.vue":v9e,"./JwtTabs/index.vue":k9e,"./JwtTags/index.vue":S9e,"./JwtTree/components/TreeNode.vue":A9e,"./JwtTree/components/TreeNodeTitle.vue":E9e,"./JwtTree/index.vue":F9e,"./JwtUploadFile/index.vue":R9e,"./JwtUploadImage/components/fileSlot.vue":V9e,"./JwtUploadImage/components/pasteUpload.vue":HSe,"./JwtUploadImage/index.vue":K9e,"./JwtUploadVideo/index.vue":sEe});for(const i in n){const r=n[i];r.default.name&&e.component(r.default.name,r.default||r)}e.directive("jwt-observe-viewport",lEe)};fi.registerModule(cEe);function EG(e){return e&&e.__esModule?e.default:e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jb,bt,BG,bm,DG,AG,Yb={},TG=[],pEe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ml(e,t){for(var n in t)e[n]=t[n];return e}function OG(e){var t=e.parentNode;t&&t.removeChild(e)}function YE(e,t,n){var i,r,o,s={};for(o in t)o=="key"?i=t[o]:o=="ref"?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Jb.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Xb(e,s,i,r,null)}function Xb(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++BG};return r==null&&bt.vnode!=null&&bt.vnode(o),o}function La(){return{current:null}}function rc(e){return e.children}function la(e,t){this.props=e,this.context=t}function oc(e,t){if(t==null)return e.__?oc(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?oc(e):null}function FG(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return FG(e)}}function PG(e){(!e.__d&&(e.__d=!0)&&bm.push(e)&&!Zb.__r++||AG!==bt.debounceRendering)&&((AG=bt.debounceRendering)||DG)(Zb)}function Zb(){for(var e;Zb.__r=bm.length;)e=bm.sort(function(t,n){return t.__v.__b-n.__v.__b}),bm=[],e.some(function(t){var n,i,r,o,s,a;t.__d&&(s=(o=(n=t).__v).__e,(a=n.__P)&&(i=[],(r=ml({},o)).__v=o.__v+1,XE(a,o,r,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,i,s??oc(o),o.__h),zG(i,o),o.__e!=s&&FG(o)))})}function jG(e,t,n,i,r,o,s,a,u,f){var d,c,h,p,m,y,v,b=i&&i.__k||TG,g=b.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Xb(null,p,null,null,p):Array.isArray(p)?Xb(rc,{children:p},null,null,null):p.__b>0?Xb(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(h=b[d])===null||h&&p.key==h.key&&p.type===h.type)b[d]=void 0;else for(c=0;c<g;c++){if((h=b[c])&&p.key==h.key&&p.type===h.type){b[c]=void 0;break}h=null}XE(e,p,h=h||Yb,r,o,s,a,u,f),m=p.__e,(c=p.ref)&&h.ref!=c&&(v||(v=[]),h.ref&&v.push(h.ref,null,p),v.push(c,p.__c||m,p)),m!=null?(y==null&&(y=m),typeof p.type=="function"&&p.__k===h.__k?p.__d=u=IG(p,u,e):u=RG(e,p,h,b,m,u),typeof n.type=="function"&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=oc(h))}for(n.__e=y,d=g;d--;)b[d]!=null&&(typeof n.type=="function"&&b[d].__e!=null&&b[d].__e==n.__d&&(n.__d=oc(i,d+1)),UG(b[d],b[d]));if(v)for(d=0;d<v.length;d++)VG(v[d],v[++d],v[++d])}function IG(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t=typeof i.type=="function"?IG(i,t,n):RG(n,i,i,r,i.__e,t));return t}function Qb(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Qb(n,t)}):t.push(e)),t}function RG(e,t,n,i,r,o){var s,a,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||r!=o||r.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,u=0;(a=a.nextSibling)&&u<i.length;u+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return s!==void 0?s:r.nextSibling}function gEe(e,t,n,i,r){var o;for(o in n)o==="children"||o==="key"||o in t||$b(e,o,null,n[o],i);for(o in t)r&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||$b(e,o,t[o],n[o],i)}function NG(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||pEe.test(t)?n:n+"px"}function $b(e,t,n,i,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||NG(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||NG(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?LG:MG,o):e.removeEventListener(t,o?LG:MG,o);else if(t!=="dangerouslySetInnerHTML"){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function MG(e){this.l[e.type+!1](bt.event?bt.event(e):e)}function LG(e){this.l[e.type+!0](bt.event?bt.event(e):e)}function XE(e,t,n,i,r,o,s,a,u){var f,d,c,h,p,m,y,v,b,g,k,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(f=bt.__b)&&f(t);try{e:if(typeof w=="function"){if(v=t.props,b=(f=w.contextType)&&i[f.__c],g=f?b?b.props.value:f.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(v,g):(t.__c=d=new la(v,g),d.constructor=w,d.render=vEe),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=g,d.__n=i,c=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),w.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ml({},d.__s)),ml(d.__s,w.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,c)w.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(w.getDerivedStateFromProps==null&&v!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,g),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,g)===!1||t.__v===n.__v){d.props=v,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,g),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,p,m)})}d.context=g,d.props=v,d.state=d.__s,(f=bt.__r)&&f(t),d.__d=!1,d.__v=t,d.__P=e,f=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=ml(ml({},i),d.getChildContext())),c||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(h,p)),k=f!=null&&f.type===rc&&f.key==null?f.props.children:f,jG(e,Array.isArray(k)?k:[k],t,n,i,r,o,s,a,u),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mEe(n.__e,t,n,i,r,o,s,u);(f=bt.diffed)&&f(t)}catch(T){t.__v=null,(u||o!=null)&&(t.__e=a,t.__h=!!u,o[o.indexOf(a)]=null),bt.__e(T,t,n)}}function zG(e,t){bt.__c&&bt.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){bt.__e(i,n.__v)}})}function mEe(e,t,n,i,r,o,s,a){var u,f,d,c=n.props,h=t.props,p=t.type,m=0;if(p==="svg"&&(r=!0),o!=null){for(;m<o.length;m++)if((u=o[m])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),o=null,a=!1}if(p===null)c===h||a&&e.data===h||(e.data=h);else{if(o=o&&Jb.call(e.childNodes),f=(c=n.props||Yb).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(o!=null)for(c={},m=0;m<e.attributes.length;m++)c[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(gEe(e,h,c,r,a),d)t.__k=[];else if(m=t.props.children,jG(e,Array.isArray(m)?m:[m],t,n,i,r&&p!=="foreignObject",o,s,o?o[0]:n.__k&&oc(n,0),a),o!=null)for(m=o.length;m--;)o[m]!=null&&OG(o[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==c.value||m!==e.value||p==="progress"&&!m)&&$b(e,"value",m,c.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&$b(e,"checked",m,c.checked,!1))}return e}function VG(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(i){bt.__e(i,n)}}function UG(e,t,n){var i,r;if(bt.unmount&&bt.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||VG(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){bt.__e(o,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&UG(i[r],t,typeof e.type!="function");n||e.__e==null||OG(e.__e),e.__e=e.__d=void 0}function vEe(e,t,n){return this.constructor(e,n)}function HG(e,t,n){var i,r,o;bt.__&&bt.__(e,t),r=(i=typeof n=="function")?null:n&&n.__k||t.__k,o=[],XE(t,e=(!i&&n||t).__k=YE(rc,null,[e]),r||Yb,Yb,t.ownerSVGElement!==void 0,!i&&n?[n]:r?null:t.firstChild?Jb.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),zG(o,e)}Jb=TG.slice,bt={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(o){e=o}throw e}},BG=0,la.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ml({},this.state),typeof e=="function"&&(e=e(ml({},n),this.props)),e&&ml(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),PG(this))},la.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),PG(this))},la.prototype.render=rc,bm=[],DG=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zb.__r=0;var yEe=0;function qe(e,t,n,i,r){var o,s,a={};for(s in t)s=="ref"?o=t[s]:a[s]=t[s];var u={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--yEe,__source:i,__self:r};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)a[s]===void 0&&(a[s]=o[s]);return bt.vnode&&bt.vnode(u),u}function bEe(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch{}}function kEe(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch{}}var za={set:bEe,get:kEe};const ZE=new Map,wEe=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function _Ee(){for(const{v:e,emoji:t}of wEe)if(qG(t))return e}function CEe(){return!qG("🇨🇦")}function qG(e){if(ZE.has(e))return ZE.get(e);const t=SEe(e);return ZE.set(e,t),t}const SEe=(()=>{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,i=Math.floor(t/2);return e.font=i+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,r=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,n,22);const o=e.getImageData(0,0,n,t).data,s=o.length;let a=0;for(;a<s&&!o[a+3];a+=4);if(a>=s)return!1;const u=n+a/4%n,f=Math.floor(a/4/n),d=e.getImageData(u,f,1,1).data;return!(o[a]!==d[0]||o[a+2]!==d[2]||e.measureText(r).width>=n)}})();var WG={latestVersion:_Ee,noCountryFlags:CEe};const QE=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Ii=null;function xEe(e){Ii||(Ii=za.get("frequently")||{});const t=e.id||e;t&&(Ii[t]||(Ii[t]=0),Ii[t]+=1,za.set("last",t),za.set("frequently",Ii))}function EEe({maxFrequentRows:e,perLine:t}){if(!e)return[];Ii||(Ii=za.get("frequently"));let n=[];if(!Ii){Ii={};for(let o in QE.slice(0,t)){const s=QE[o];Ii[s]=t-o,n.push(s)}return n}const i=e*t,r=za.get("last");for(let o in Ii)n.push(o);if(n.sort((o,s)=>{const a=Ii[s],u=Ii[o];return a==u?o.localeCompare(s):a-u}),n.length>i){const o=n.slice(i);n=n.slice(0,i);for(let s of o)s!=r&&delete Ii[s];r&&n.indexOf(r)==-1&&(delete Ii[n[n.length-1]],n.splice(-1,1,r)),za.set("frequently",Ii)}return n}var $E={add:xEe,get:EEe,DEFAULTS:QE},KG={};KG=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Va={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ri=null,Wt=null;const e7={};async function GG(e){if(e7[e])return e7[e];const n=await(await fetch(e)).json();return e7[e]=n,n}let t7=null,JG=null,YG=!1;function km(e,{caller:t}={}){return t7||(t7=new Promise(n=>{JG=n})),e&&BEe(e),t7}async function BEe(e){YG=!0;let{emojiVersion:t,set:n,locale:i}=e;if(t||(t=Va.emojiVersion.value),n||(n=Va.set.value),i||(i=Va.locale.value),Wt)Wt.categories=Wt.categories.filter(u=>!u.name);else{Wt=(typeof e.data=="function"?await e.data():e.data)||await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Wt.emoticons={},Wt.natives={},Wt.categories.unshift({id:"frequent",emojis:[]});for(const u in Wt.aliases){const f=Wt.aliases[u],d=Wt.emojis[f];d&&(d.aliases||(d.aliases=[]),d.aliases.push(u))}Wt.originalCategories=Wt.categories}if(Ri=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(i=="en"?EG(KG):await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),e.custom)for(let u in e.custom){u=parseInt(u);const f=e.custom[u],d=e.custom[u-1];if(!(!f.emojis||!f.emojis.length)){f.id||(f.id=`custom_${u+1}`),f.name||(f.name=Ri.categories.custom),d&&!f.icon&&(f.target=d.target||d),Wt.categories.push(f);for(const c of f.emojis)Wt.emojis[c.id]=c}}e.categories&&(Wt.categories=Wt.originalCategories.filter(u=>e.categories.indexOf(u.id)!=-1).sort((u,f)=>{const d=e.categories.indexOf(u.id),c=e.categories.indexOf(f.id);return d-c}));let r=null,o=null;n=="native"&&(r=WG.latestVersion(),o=e.noCountryFlags||WG.noCountryFlags());let s=Wt.categories.length,a=!1;for(;s--;){const u=Wt.categories[s];if(u.id=="frequent"){let{maxFrequentRows:c,perLine:h}=e;c=c>=0?c:Va.maxFrequentRows.value,h||(h=Va.perLine.value),u.emojis=$E.get({maxFrequentRows:c,perLine:h})}if(!u.emojis||!u.emojis.length){Wt.categories.splice(s,1);continue}const{categoryIcons:f}=e;if(f){const c=f[u.id];c&&!u.icon&&(u.icon=c)}let d=u.emojis.length;for(;d--;){const c=u.emojis[d],h=c.id?c:Wt.emojis[c],p=()=>{u.emojis.splice(d,1)};if(!h||e.exceptEmojis&&e.exceptEmojis.includes(h.id)){p();continue}if(r&&h.version>r){p();continue}if(o&&u.id=="flags"&&!QG.includes(h.id)){p();continue}if(!h.search){if(a=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,v])=>{if(y)return(Array.isArray(y)?y:[y]).map(b=>(v?b.split(/[-|_|\s]+/):[b]).map(g=>g.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)Wt.emoticons[y]||(Wt.emoticons[y]=h.id);let m=0;for(const y of h.skins){if(!y)continue;m++;const{native:v}=y;v&&(Wt.natives[v]=h.id,h.search+=`,${v}`);const b=m==1?"":`:skin-tone-${m}:`;y.shortcodes=`:${h.id}:${b}`}}}}a&&Qu.reset(),JG()}function XG(e,t,n){e||(e={});const i={};for(let r in t)i[r]=ZG(r,e,t,n);return i}function ZG(e,t,n,i){const r=n[e];let o=i&&i.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return r&&(o!=null&&r.value&&typeof r.value!=typeof o&&(typeof r.value=="boolean"?o=o!="false":o=r.value.constructor(o)),r.transform&&o&&(o=r.transform(o)),(o==null||r.choices&&r.choices.indexOf(o)==-1)&&(o=r.value)),o}const DEe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let n7=null;function AEe(e){return e.id?e:Wt.emojis[e]||Wt.emojis[Wt.aliases[e]]||Wt.emojis[Wt.natives[e]]}function TEe(){n7=null}async function OEe(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await km(null,{caller:n||"SearchIndex.search"});const i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((a,u,f)=>a.trim()&&f.indexOf(a)==u);if(!i.length)return;let r=n7||(n7=Object.values(Wt.emojis)),o,s;for(const a of i){if(!r.length)break;o=[],s={};for(const u of r){if(!u.search)continue;const f=u.search.indexOf(`,${a}`);f!=-1&&(o.push(u),s[u.id]||(s[u.id]=0),s[u.id]+=u.id==a?0:f+1)}r=o}return o.length<2||(o.sort((a,u)=>{const f=s[a.id],d=s[u.id];return f==d?a.id.localeCompare(u.id):f-d}),o.length>t&&(o=o.slice(0,t))),o}var Qu={search:OEe,get:AEe,reset:TEe,SHORTCODES_REGEX:DEe};const QG=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function FEe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,i)=>n==t[i])}async function PEe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function jEe(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),i={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(i.skin=t+1),n.src&&(i.src=n.src),e.aliases&&e.aliases.length&&(i.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(i.emoticons=e.emoticons),i}var ek={categories:{activity:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:qe("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),qe("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:qe("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),qe("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:qe("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),qe("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),qe("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function i7(e){let{id:t,skin:n,emoji:i}=e;if(e.shortcodes){const a=e.shortcodes.match(Qu.SHORTCODES_REGEX);a&&(t=a[1],a[2]&&(n=a[2]))}if(i||(i=Qu.get(t||e.native)),!i)return e.fallback;const r=i.skins[n-1]||i.skins[0],o=r.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${r.unified}.png`:void 0),s=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return qe("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?qe("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:o}):e.set=="native"?qe("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):qe("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*Wt.sheet.cols}% ${100*Wt.sheet.rows}%`,backgroundPosition:`${100/(Wt.sheet.cols-1)*r.x}% ${100/(Wt.sheet.rows-1)*r.y}%`}})})}const IEe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class $G extends IEe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,i){if(!this.component)return;const r=ZG(t,{[t]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:r}):(this.component.props[t]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const i=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class REe extends $G{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var eJ={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Va.set,skin:Va.skin};class r7 extends $G{async connectedCallback(){const t=XG(this.props,eJ,this);t.element=this,t.ref=n=>{this.component=n},await km(),!this.disconnected&&HG(qe(i7,{...t}),this)}constructor(t){super(t)}}ao(r7,"Props",eJ),typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",r7);var tJ,o7=[],nJ=bt.__b,iJ=bt.__r,rJ=bt.diffed,oJ=bt.__c,aJ=bt.unmount;function NEe(){var e;for(o7.sort(function(t,n){return t.__v.__b-n.__v.__b});e=o7.pop();)if(e.__P)try{e.__H.__h.forEach(tk),e.__H.__h.forEach(a7),e.__H.__h=[]}catch(t){e.__H.__h=[],bt.__e(t,e.__v)}}bt.__b=function(e){nJ&&nJ(e)},bt.__r=function(e){iJ&&iJ(e);var t=e.__c.__H;t&&(t.__h.forEach(tk),t.__h.forEach(a7),t.__h=[])},bt.diffed=function(e){rJ&&rJ(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(o7.push(t)!==1&&tJ===bt.requestAnimationFrame||((tJ=bt.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(o),sJ&&cancelAnimationFrame(i),setTimeout(n)},o=setTimeout(r,100);sJ&&(i=requestAnimationFrame(r))})(NEe))},bt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tk),n.__h=n.__h.filter(function(i){return!i.__||a7(i)})}catch(i){t.some(function(r){r.__h&&(r.__h=[])}),t=[],bt.__e(i,n.__v)}}),oJ&&oJ(e,t)},bt.unmount=function(e){aJ&&aJ(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{tk(i)}catch(r){t=r}}),t&&bt.__e(t,n.__v))};var sJ=typeof requestAnimationFrame=="function";function tk(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function a7(e){e.__c=e.__()}function MEe(e,t){for(var n in t)e[n]=t[n];return e}function lJ(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var i in t)if(i!=="__source"&&e[i]!==t[i])return!0;return!1}function nk(e){this.props=e}(nk.prototype=new la).isPureReactComponent=!0,nk.prototype.shouldComponentUpdate=function(e,t){return lJ(this.props,e)||lJ(this.state,t)};var uJ=bt.__b;bt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),uJ&&uJ(e)};var LEe=bt.__e;bt.__e=function(e,t,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}LEe(e,t,n)};var fJ=bt.unmount;function s7(){this.__u=0,this.t=null,this.__b=null}function dJ(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ik(){this.u=null,this.o=null}bt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),fJ&&fJ(e)},(s7.prototype=new la).__c=function(e,t){var n=t.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=dJ(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__e){var f=i.state.__e;i.__v.__k[0]=function c(h,p,m){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return c(y,p,m)}),h.__c&&h.__c.__P===p&&(h.__e&&m.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=m)),h}(f,f.__c.__P,f.__c.__O)}var d;for(i.setState({__e:i.__b=null});d=i.t.pop();)d.forceUpdate()}},u=t.__h===!0;i.__u++||u||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},s7.prototype.componentWillUnmount=function(){this.t=[]},s7.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function o(s,a,u){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),s.__c.__H=null),(s=MEe({},s)).__c!=null&&(s.__c.__P===u&&(s.__c.__P=a),s.__c=null),s.__k=s.__k&&s.__k.map(function(f){return o(f,a,u)})),s}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&YE(rc,null,e.fallback);return r&&(r.__h=null),[YE(rc,null,t.__e?null:e.children),r]};var cJ=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ik.prototype=new la).__e=function(e){var t=this,n=dJ(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),cJ(t,e,i)):r()};n?n(o):o()}},ik.prototype.render=function(e){this.u=null,this.o=new Map;var t=Qb(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ik.prototype.componentDidUpdate=ik.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){cJ(e,n,t)})};var zEe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,VEe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,UEe=typeof document<"u",HEe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};la.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(la.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hJ=bt.event;function qEe(){}function WEe(){return this.cancelBubble}function KEe(){return this.defaultPrevented}bt.event=function(e){return hJ&&(e=hJ(e)),e.persist=qEe,e.isPropagationStopped=WEe,e.isDefaultPrevented=KEe,e.nativeEvent=e};var pJ={configurable:!0,get:function(){return this.class}},gJ=bt.vnode;bt.vnode=function(e){var t=e.type,n=e.props,i=n;if(typeof t=="string"){var r=t.indexOf("-")===-1;for(var o in i={},n){var s=n[o];UEe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!HEe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&VEe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),i[o]=s)}t=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),t=="select"&&i.defaultValue!=null&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),e.props=i,n.class!=n.className&&(pJ.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",pJ))}e.$$typeof=zEe,gJ&&gJ(e)};var mJ=bt.__r;bt.__r=function(e){mJ&&mJ(e),e.__c};const GEe={light:"outline",dark:"solid"};class JEe extends nk{renderIcon(t){const{icon:n}=t;if(n){if(n.svg)return qe("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return qe("img",{src:n.src})}const i=ek.categories[t.id]||ek.categories.custom,r=this.props.icons=="auto"?GEe[this.props.theme]:this.props.icons;return i[r]||i}render(){let t=null;return qe("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:qe("div",{class:"flex relative",children:[this.categories.map((n,i)=>{const r=n.name||Ri.categories[n.id],o=!this.props.unfocused&&n.id==this.state.categoryId;return o&&(t=i),qe("button",{"aria-label":r,"aria-selected":o||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),qe("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Wt.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class YEe extends nk{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const rk={rowsPerRender:10};class XEe extends la{getInitialState(t=this.props){return{skin:za.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Ri.rtl?"rtl":"ltr",this.refs={menu:La(),navigation:La(),scroll:La(),search:La(),searchInput:La(),skinToneButton:La(),skinToneRadio:La()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(t={}){await km(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Wt;this.refs.categories=new Map;const n=Wt.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,o)=>{const s=[];s.__categoryId=o.id,s.__index=r.length,this.grid.push(s);const a=this.grid.length-1,u=a%rk.rowsPerRender?{}:La();return u.index=a,u.posinset=this.grid.setsize+1,r.push(u),s};for(let r of t){const o=[];let s=i(o,r);for(let a of r.emojis)s.length==this.getPerLine()&&(s=i(o,r)),this.grid.setsize+=1,s.push(a);this.refs.categories.set(r.id,{root:La(),rows:o})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:i}=t,r=()=>{const{width:s}=n.getBoundingClientRect();return Math.floor(s/i)},o=new ResizeObserver(()=>{this.unobserve({except:o}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return o.observe(n),this.observers.push(o),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const i=this.state.searchResults||this.grid,r=i[t]&&i[t][n];if(r)return Qu.get(r)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,i=s=>{s!=t.state.categoryId&&t.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},o=new IntersectionObserver(s=>{for(const u of s){const f=u.target.dataset.id;n.set(f,u.intersectionRatio)}const a=[...n];for(const[u,f]of a)if(f){i(u);break}},r);for(const{root:s}of this.refs.categories.values())o.observe(s.current);this.observers.push(o)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const o=parseInt(r.target.dataset.index);r.isIntersecting?t[o]=!0:delete t[o]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(rk.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*rk.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:i,right:r,up:o,down:s}){const a=this.state.searchResults||this.grid;if(!a.length)return;let[u,f]=this.state.pos;const d=(()=>{if(u==0&&f==0&&!t.repeat&&(i||o))return null;if(u==-1)return!t.repeat&&(r||s)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let c=a[u];const h=i?-1:1;if(f+=h,!c[f]){if(u+=h,c=a[u],!c)return u=i?0:a.length-1,f=i?0:a[u].length-1,[u,f];f=i?c.length-1:0}return[u,f]}if(o||s){u+=o?-1:1;const c=a[u];return c?(c[f]||(f=c.length-1),[u,f]):(u=o?0:a.length-1,f=o?0:a[u].length-1,[u,f])}})();if(d)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:d,keyboard:!0},()=>{this.scrollTo({row:d[0]})})}scrollTo({categoryId:t,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,o=r.getBoundingClientRect();let s=0;if(n>=0&&(t=i[n].__categoryId),t&&(s=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(o.top-r.scrollTop)+1),n>=0)if(!n)s=0;else{const a=i[n].__index,u=s+a*this.props.emojiButtonSize,f=u+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(u<r.scrollTop)s=u;else if(f>r.scrollTop+o.height)s=f-o.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=jEe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&$E.add(r,this.props),this.props.onEmojiSelect(r,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),za.set("skin",t)}renderNav(){return qe(JEe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return qe("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[qe("div",{class:"flex flex-middle flex-grow",children:[qe("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:qe(i7,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),qe("div",{class:`margin-${this.dir[0]}`,children:t||n?qe("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[qe("div",{class:"preview-title ellipsis",children:t?t.name:Ri.search_no_results_1}),qe("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Ri.search_no_results_2})]}):qe("div",{class:"preview-placeholder color-c",children:Ri.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:i,grid:r}){const o=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,u=(t.skins[s-1]||t.skins[0]).native,f=FEe(this.state.pos,n),d=n.concat(t.id).join("");return qe(YEe,{selected:f,skin:s,size:o,children:qe("button",{"aria-label":u,"aria-selected":f||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:c=>this.handleEmojiClick({e:c,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[qe("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),qe(i7,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},d)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return qe("div",{children:[qe("div",{class:"spacer"}),qe("div",{class:"flex flex-middle",children:[qe("div",{class:"search relative flex-grow",children:[qe("input",{type:"search",ref:this.refs.searchInput,placeholder:Ri.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),qe("span",{class:"icon loupe flex",children:ek.search.loupe}),this.state.searchResults&&qe("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:ek.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?qe("div",{class:"category",ref:this.refs.search,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ri.categories.search}),qe("div",{children:t.length?t.map((n,i)=>qe("div",{class:"flex",children:n.map((r,o)=>this.renderEmojiButton(r,{pos:[i,o],posinset:i*this.props.perLine+o+1,grid:t}))})):qe("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&qe("a",{onClick:this.props.onAddCustomEmoji,children:Ri.add_custom})})})]}):null}renderCategories(){const{categories:t}=Wt,n=!!this.state.searchResults,i=this.getPerLine();return qe("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(r=>{const{root:o,rows:s}=this.refs.categories.get(r.id);return qe("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:o,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Ri.categories[r.id]}),qe("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((a,u)=>{const f=a.index-a.index%rk.rowsPerRender,d=this.state.visibleRows[f],c="current"in a?a:void 0;if(!d&&!c)return null;const h=u*i,p=h+i,m=r.emojis.slice(h,p);return m.length<i&&m.push(...new Array(i-m.length)),qe("div",{"data-index":a.index,ref:c,class:"flex row",style:{top:u*this.props.emojiButtonSize},children:d&&m.map((y,v)=>{if(!y)return qe("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const b=Qu.get(y);return this.renderEmojiButton(b,{pos:[a.index,v],posinset:a.posinset+v,grid:this.grid})})},a.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:qe("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:qe("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ri.skins.choose,title:Ri.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:qe("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return qe("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),qe("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ri.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(o=>{const s=o+1,a=this.state.skin==s;return qe("div",{children:[qe("input",{type:"radio",name:"skin-tone",value:s,"aria-label":Ri.skins[s],ref:a?this.refs.skinToneRadio:null,defaultChecked:a,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:u=>{(u.code=="Enter"||u.code=="Space"||u.code=="Tab")&&(u.preventDefault(),this.handleSkinClick(s))}}),qe("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[qe("span",{class:`skin-tone skin-tone-${s}`}),qe("span",{class:"margin-small-lr",children:Ri.skins[s]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return qe("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&qe("div",{class:"padding-lr",children:this.renderSearch()}),qe("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:qe("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),ao(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ao(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),ao(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),ao(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),ao(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ao(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await Qu.search(i),o=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},o);const s=n.selectionStart==n.value.length?[0,0]:[-1,-1],a=[];a.setsize=r.length;let u=null;for(let f of r)(!a.length||u.length==this.getPerLine())&&(u=[],u.__categoryId="search",u.__index=a.length,a.push(u)),u.push(f);this.ignoreMouse(),this.setState({searchResults:a,pos:s},o)}),ao(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),ao(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),ao(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),ao(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await PEe(2);const o=this.refs.menu.current;o&&(o.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class l7 extends REe{async connectedCallback(){const t=XG(this.props,Va,this);t.element=this,t.ref=n=>{this.component=n},await km(t),!this.disconnected&&HG(qe(XEe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:EG(vJ)})}}ao(l7,"Props",Va),typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",l7);var vJ={};vJ=`:host {
|
|
219
219
|
width: min-content;
|
|
220
220
|
height: 435px;
|
|
221
221
|
min-height: 230px;
|