3 lines
53 KiB
JavaScript
3 lines
53 KiB
JavaScript
import{P as re,bH as _t,a as F,d as G,bs as be,u as nt,c as d,bI as Ae,_ as it,U as le,$ as ce,ai as R,by as Me,a2 as xe,aC as It,h as j,bJ as Lt,b as Pt,aD as zt,bK as kt,a1 as Ne,bx as Bt,aO as Qt,bL as Mt,aG as we,bq as fe,bM as xt,bN as Te,e as De,bO as Nt,af as H,as as Tt,at as Dt,o as E,m as x,bP as jt,bQ as Ft,bR as Vt,bS as Ht,bT as Ut,a4 as Jt,y as k,bU as Z,H as V,n as g,z as J,A as oe,bV as je,bW as Wt,bX as Yt,B as Rt,L as K,k as Se,x as _,v as S,r as $,bY as rt,V as lt,bZ as Gt,b_ as Kt,M as ot,Z as W,bB as st,b$ as Xt,K as ve,p as N,c0 as qt,W as at,aF as Zt,aw as en,l as ut,c1 as tn,c2 as nn,ah as ee,t as rn,q as ln}from"./index-0ff6a040.js";import{i as on}from"./hook-aa833af6.js";import{f as dt}from"./db-d4ebc7b6.js";var ct=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:re.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},ue=_t(),sn=function(){return F(F({},ct()),{},{type:ue.type,size:String,htmlType:ue.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:re.any,title:String,loading:ue.loading,onClick:{type:Function}})},an=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],un=le.Group;const se=G({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:be(sn(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,s=n.emit,m=function(I){s("update:visible",I),s("visibleChange",I)},c=nt("dropdown-button",t),p=c.prefixCls,o=c.direction,y=c.getPopupContainer;return function(){var O,I,f=F(F({},t),r),L=f.type,h=L===void 0?"default":L,l=f.disabled,v=f.loading,C=f.htmlType,u=f.class,a=u===void 0?"":u,b=f.overlay,w=b===void 0?(O=i.overlay)===null||O===void 0?void 0:O.call(i):b,P=f.trigger,B=f.align,D=f.visible;f.onVisibleChange;var A=f.placement,Q=A===void 0?o.value==="rtl"?"bottomLeft":"bottomRight":A,z=f.href,M=f.title,U=f.icon,X=U===void 0?((I=i.icon)===null||I===void 0?void 0:I.call(i))||d(Ae,null,null):U,T=f.mouseEnterDelay,q=f.mouseLeaveDelay,At=f.overlayClassName,wt=f.overlayStyle,St=f.destroyPopupOnHide,Et=f.onClick;f["onUpdate:visible"];var Ot=it(f,an),Ct={align:B,disabled:l,trigger:l?[]:P,placement:Q,getPopupContainer:y.value,onVisibleChange:m,mouseEnterDelay:T,mouseLeaveDelay:q,visible:D,overlayClassName:At,overlayStyle:wt,destroyPopupOnHide:St},Be=d(le,{type:h,disabled:l,loading:v,onClick:Et,htmlType:C,href:z,title:M},{default:i.default}),Qe=d(le,{type:h,icon:X},null);return d(un,F(F({},Ot),{},{class:ce(p.value,a)}),{default:function(){return[i.leftButton?i.leftButton({button:Be}):Be,d(Y,Ct,{default:function(){return[i.rightButton?i.rightButton({button:Qe}):Qe]},overlay:function(){return w}})]}})}}});var ft=G({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:be(ct(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(t,n){var i=n.slots,r=n.attrs,s=n.emit,m=nt("dropdown",t),c=m.prefixCls,p=m.rootPrefixCls,o=m.direction,y=m.getPopupContainer,O=R(function(){var h=t.placement,l=h===void 0?"":h,v=t.transitionName;return v!==void 0?v:l.indexOf("top")>=0?"".concat(p.value,"-slide-down"):"".concat(p.value,"-slide-up")}),I=function(){var l,v,C,u=t.overlay||((l=i.overlay)===null||l===void 0?void 0:l.call(i)),a=Array.isArray(u)?u[0]:u;if(!a)return null;var b=a.props||{};Me(!b.mode||b.mode==="vertical","Dropdown",'mode="'.concat(b.mode,`" is not supported for Dropdown's Menu.`));var w=b.selectable,P=w===void 0?!1:w,B=b.expandIcon,D=B===void 0?(v=a.children)===null||v===void 0||(C=v.expandIcon)===null||C===void 0?void 0:C.call(v):B,A=typeof D<"u"&&Ne(D)?D:d("span",{class:"".concat(c.value,"-menu-submenu-arrow")},[d(Bt,{class:"".concat(c.value,"-menu-submenu-arrow-icon")},null)]),Q=Ne(a)?xe(a,{mode:"vertical",selectable:P,expandIcon:function(){return A}}):a;return Q},f=R(function(){var h=t.placement;if(!h)return o.value==="rtl"?"bottomRight":"bottomLeft";if(h.includes("Center")){var l=h.slice(0,h.indexOf("Center"));return Me(!h.includes("Center"),"Dropdown","You are using '".concat(h,"' placement in Dropdown, which is deprecated. Try to use '").concat(l,"' instead.")),l}return h}),L=function(l){s("update:visible",l),s("visibleChange",l)};return function(){var h,l,v=t.arrow,C=t.trigger,u=t.disabled,a=t.overlayClassName,b=(h=i.default)===null||h===void 0?void 0:h.call(i)[0],w=xe(b,It({class:ce(b==null||(l=b.props)===null||l===void 0?void 0:l.class,j({},"".concat(c.value,"-rtl"),o.value==="rtl"),"".concat(c.value,"-trigger"))},u?{disabled:u}:{})),P=ce(a,j({},"".concat(c.value,"-rtl"),o.value==="rtl")),B=u?[]:C,D;B&&B.indexOf("contextmenu")!==-1&&(D=!0);var A=Lt({arrowPointAtCenter:Pt(v)==="object"&&v.pointAtCenter,autoAdjustOverflow:!0}),Q=zt(F(F(F({},t),r),{},{builtinPlacements:A,overlayClassName:P,arrow:v,alignPoint:D,prefixCls:c.value,getPopupContainer:y.value,transitionName:O.value,trigger:B,onVisibleChange:L,placement:f.value}),["overlay","onUpdate:visible"]);return d(kt,Q,{default:function(){return[w]},overlay:I})}}});ft.Button=se;const Y=ft;Y.Button=se;Y.install=function(e){return e.component(Y.name,Y),e.component(se.name,se),e};var dn=["class","style"],cn=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:re.any,delay:Number,indicator:re.any}},te=null;function fn(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Ji(e){var t=e.indicator;te=typeof t=="function"?t:function(){return d(t,null,null)}}const Wi=G({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:be(cn(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:Qt("configProvider",Mt)}},data:function(){var t=this.spinning,n=this.delay,i=fn(t,n);return{sSpinning:t&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var t=this;we(function(){t.debouncifyUpdateSpinning(),t.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(t){var n=t||this.$props,i=n.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=fe(this.originalUpdateSpinning,i))},updateSpinning:function(){var t=this.spinning,n=this.sSpinning;n!==t&&(this.sSpinning=t)},cancelExistingSpin:function(){var t=this.updateSpinning;t&&t.cancel&&t.cancel()},renderIndicator:function(t){var n="".concat(t,"-dot"),i=xt(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),Te(i)?De(i,{class:n}):te&&Te(te())?De(te(),{class:n}):d("span",{class:"".concat(n," ").concat(t,"-dot-spin")},[d("i",{class:"".concat(t,"-dot-item")},null),d("i",{class:"".concat(t,"-dot-item")},null),d("i",{class:"".concat(t,"-dot-item")},null),d("i",{class:"".concat(t,"-dot-item")},null)]))}},render:function(){var t,n,i,r=this.$props,s=r.size,m=r.prefixCls,c=r.tip,p=c===void 0?(t=(n=this.$slots).tip)===null||t===void 0?void 0:t.call(n):c,o=r.wrapperClassName,y=this.$attrs,O=y.class,I=y.style,f=it(y,dn),L=this.configProvider,h=L.getPrefixCls,l=L.direction,v=h("spin",m),C=this.sSpinning,u=(i={},j(i,v,!0),j(i,"".concat(v,"-sm"),s==="small"),j(i,"".concat(v,"-lg"),s==="large"),j(i,"".concat(v,"-spinning"),C),j(i,"".concat(v,"-show-text"),!!p),j(i,"".concat(v,"-rtl"),l==="rtl"),j(i,O,!!O),i),a=d("div",F(F({},f),{},{style:I,class:u}),[this.renderIndicator(v),p?d("div",{class:"".concat(v,"-text")},[p]):null]),b=Nt(this);if(b&&b.length){var w,P=(w={},j(w,"".concat(v,"-container"),!0),j(w,"".concat(v,"-blur"),C),w);return d("div",{class:["".concat(v,"-nested-loading"),o]},[C&&d("div",{key:"loading"},[a]),d("div",{class:P,key:"container"},[b])])}return a}});var vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const pn=vn;function Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){mn(e,r,n[r])})}return e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ee=function(t,n){var i=Fe({},t,n.attrs);return d(H,Fe({},i,{icon:pn}),null)};Ee.displayName="StarFilled";Ee.inheritAttrs=!1;const vt=Ee;var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const gn=hn;function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){yn(e,r,n[r])})}return e}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=function(t,n){var i=Ve({},t,n.attrs);return d(H,Ve({},i,{icon:gn}),null)};Oe.displayName="FileOutlined";Oe.inheritAttrs=!1;const He=Oe;var bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const An=bn;function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){wn(e,r,n[r])})}return e}function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=function(t,n){var i=Ue({},t,n.attrs);return d(H,Ue({},i,{icon:An}),null)};Ce.displayName="FolderOpenOutlined";Ce.inheritAttrs=!1;const Je=Ce,Sn="data:image/png;base64,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";var En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const On=En;function We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Cn(e,r,n[r])})}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $e=function(t,n){var i=We({},t,n.attrs);return d(H,We({},i,{icon:On}),null)};$e.displayName="ArrowsAltOutlined";$e.inheritAttrs=!1;const $n=$e;var _n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};const In=_n;function Ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Ln(e,r,n[r])})}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=function(t,n){var i=Ye({},t,n.attrs);return d(H,Ye({},i,{icon:In}),null)};_e.displayName="DragOutlined";_e.inheritAttrs=!1;const Pn=_e;var zn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};const kn=zn;function Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Bn(e,r,n[r])})}return e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=function(t,n){var i=Re({},t,n.attrs);return d(H,Re({},i,{icon:kn}),null)};Ie.displayName="FullscreenExitOutlined";Ie.inheritAttrs=!1;const Qn=Ie;var Mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};const xn=Mn;function Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Nn(e,r,n[r])})}return e}function Nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(t,n){var i=Ge({},t,n.attrs);return d(H,Ge({},i,{icon:xn}),null)};Le.displayName="FullscreenOutlined";Le.inheritAttrs=!1;const Tn=Le;var Dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"left-circle",theme:"outlined"};const jn=Dn;function Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Fn(e,r,n[r])})}return e}function Fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe=function(t,n){var i=Ke({},t,n.attrs);return d(H,Ke({},i,{icon:jn}),null)};Pe.displayName="LeftCircleOutlined";Pe.inheritAttrs=!1;const Yi=Pe;var Vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M666.7 505.5l-246-178A8 8 0 00408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"right-circle",theme:"outlined"};const Hn=Vn;function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Un(e,r,n[r])})}return e}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(t,n){var i=Xe({},t,n.attrs);return d(H,Xe({},i,{icon:Hn}),null)};ze.displayName="RightCircleOutlined";ze.inheritAttrs=!1;const Ri=ze;var Jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};const Wn=Jn;function qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),i.forEach(function(r){Yn(e,r,n[r])})}return e}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=function(t,n){var i=qe({},t,n.attrs);return d(H,qe({},i,{icon:Wn}),null)};ke.displayName="StarOutlined";ke.inheritAttrs=!1;const pt=ke;function Rn(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let ne;function pe(){pe.init||(pe.init=!0,ne=Rn()!==-1)}var ae={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){pe(),we(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",ne&&this.$el.appendChild(e),e.data="about:blank",ne||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ne&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Gn=jt();Tt("data-v-b329ee4c");const Kn={class:"resize-observer",tabindex:"-1"};Dt();const Xn=Gn((e,t,n,i,r,s)=>(E(),x("div",Kn)));ae.render=Xn;ae.__scopeId="data-v-b329ee4c";ae.__file="src/components/ResizeObserver.vue";function ie(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(t){return typeof t}:ie=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(e)}function qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Zn(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),e}function et(e){return ei(e)||ti(e)||ni(e)||ii()}function ei(e){if(Array.isArray(e))return me(e)}function ti(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ni(e,t){if(e){if(typeof e=="string")return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}}function me(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ii(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ri(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function li(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,r,s,m=function(p){for(var o=arguments.length,y=new Array(o>1?o-1:0),O=1;O<o;O++)y[O-1]=arguments[O];if(s=y,!(i&&p===r)){var I=n.leading;typeof I=="function"&&(I=I(p,r)),(!i||p!==r)&&I&&e.apply(void 0,[p].concat(et(s))),r=p,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[p].concat(et(s))),i=0},t)}};return m._clear=function(){clearTimeout(i),i=null},m}function mt(e,t){if(e===t)return!0;if(ie(e)==="object"){for(var n in e)if(!mt(e[n],t[n]))return!1;return!0}return!1}var oi=function(){function e(t,n,i){qn(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return Zn(e,[{key:"createObserver",value:function(n,i){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=ri(n),this.callback=function(c,p){r.options.callback(c,p),c&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var s=this.options.throttleOptions||{},m=s.leading;this.callback=li(this.callback,this.options.throttle,{leading:function(p){return m==="both"||m==="visible"&&p||m==="hidden"&&!p}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(c){var p=c[0];if(c.length>1){var o=c.find(function(O){return O.isIntersecting});o&&(p=o)}if(r.callback){var y=p.isIntersecting&&p.intersectionRatio>=r.threshold;if(y===r.oldResult)return;r.oldResult=y,r.callback(y,p)}},this.options.intersection),we(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function ht(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new oi(e,i,n);e._vue_visibilityState=r}}function si(e,t,n){var i=t.value,r=t.oldValue;if(!mt(i,r)){var s=e._vue_visibilityState;if(!i){gt(e);return}s?s.createObserver(i,n):ht(e,{value:i},n)}}function gt(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var ai={beforeMount:ht,updated:si,unmounted:gt},ui={itemsLimit:1e3},di=/(auto|scroll)/;function yt(e,t){return e.parentNode===null?t:yt(e.parentNode,t.concat([e]))}var de=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},ci=function(t){return de(t,"overflow")+de(t,"overflow-y")+de(t,"overflow-x")},fi=function(t){return di.test(ci(t))};function tt(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=yt(e.parentNode,[]),n=0;n<t.length;n+=1)if(fi(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function he(e){"@babel/helpers - typeof";return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(e)}var vi={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function pi(){return this.items.length&&he(this.items[0])!=="object"}var ge=!1;if(typeof window<"u"){ge=!1;try{var mi=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",null,mi)}catch{}}let hi=0;var bt={name:"RecycleScroller",components:{ResizeObserver:ae},directives:{ObserveVisibility:ai},props:{...vi,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,i=this.minItemSize;let r=1e4,s=0,m;for(let c=0,p=t.length;c<p;c++)m=t[c][n]||i,m<r&&(r=m),s+=m,e[c]={accumulator:s,size:m};return this.$_computedMinItemSize=r,e}return[]},simpleArray:pi,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,r=t.length;i<r;i++)n[t[i][e]]=i;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,r){const s=Ft({id:hi++,index:t,used:!0,key:i,type:r}),m=Vt({item:n,position:0,nr:s});return e.push(m),m},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let r=n.get(i);r||(r=[],n.set(i,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,r=this.itemSecondarySize||n,s=this.$_computedMinItemSize,m=this.typeField,c=this.simpleArray?null:this.keyField,p=this.items,o=p.length,y=this.sizes,O=this.$_views,I=this.$_unusedViews,f=this.pool,L=this.itemIndexByKey;let h,l,v,C,u;if(!o)h=l=C=u=v=0;else if(this.$_prerender)h=C=0,l=u=Math.min(this.prerender,p.length),v=null;else{const A=this.getScroll();if(t){let M=A.start-this.$_lastUpdateScrollPosition;if(M<0&&(M=-M),n===null&&M<s||M<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=A.start;const Q=this.buffer;A.start-=Q,A.end+=Q;let z=0;if(this.$refs.before&&(z=this.$refs.before.scrollHeight,A.start-=z),this.$refs.after){const M=this.$refs.after.scrollHeight;A.end+=M}if(n===null){let M,U=0,X=o-1,T=~~(o/2),q;do q=T,M=y[T].accumulator,M<A.start?U=T:T<o-1&&y[T+1].accumulator>A.start&&(X=T),T=~~((U+X)/2);while(T!==q);for(T<0&&(T=0),h=T,v=y[o-1].accumulator,l=T;l<o&&y[l].accumulator<A.end;l++);for(l===-1?l=p.length-1:(l++,l>o&&(l=o)),C=h;C<o&&z+y[C].accumulator<A.start;C++);for(u=C;u<o&&z+y[u].accumulator<A.end;u++);}else{h=~~(A.start/n*i);const M=h%i;h-=M,l=Math.ceil(A.end/n*i),C=Math.max(0,Math.floor((A.start-z)/n*i)),u=Math.floor((A.end-z)/n*i),h<0&&(h=0),l>o&&(l=o),C<0&&(C=0),u>o&&(u=o),v=Math.ceil(o/i)*n}}l-h>ui.itemsLimit&&this.itemsLimitError(),this.totalSize=v;let a;const b=h<=this.$_endIndex&&l>=this.$_startIndex;if(b)for(let A=0,Q=f.length;A<Q;A++)a=f[A],a.nr.used&&(e&&(a.nr.index=L[a.item[c]]),(a.nr.index==null||a.nr.index<h||a.nr.index>=l)&&this.unuseView(a));const w=b?null:new Map;let P,B,D;for(let A=h;A<l;A++){P=p[A];const Q=c?P[c]:P;if(Q==null)throw new Error(`Key is ${Q} on item (keyField is '${c}')`);if(a=O.get(Q),!n&&!y[A].size){a&&this.unuseView(a);continue}B=P[m];let z=I.get(B),M=!1;if(!a)b?z&&z.length?a=z.pop():a=this.addView(f,A,P,Q,B):(D=w.get(B)||0,(!z||D>=z.length)&&(a=this.addView(f,A,P,Q,B),this.unuseView(a,!0),z=I.get(B)),a=z[D],w.set(B,D+1)),O.delete(a.nr.key),a.nr.used=!0,a.nr.index=A,a.nr.key=Q,a.nr.type=B,O.set(Q,a),M=!0;else if(!a.nr.used&&(a.nr.used=!0,a.nr.index=A,M=!0,z)){const U=z.indexOf(a);U!==-1&&z.splice(U,1)}a.item=P,M&&(A===p.length-1&&this.$emit("scroll-end"),A===0&&this.$emit("scroll-start")),n===null?(a.position=y[A-1].accumulator,a.offset=0):(a.position=Math.floor(A/i)*n,a.offset=A%i*r)}return this.$_startIndex=h,this.$_endIndex=l,this.emitUpdate&&this.$emit("update",h,l,C,u),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=tt(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const r=e.getBoundingClientRect(),s=n?r.height:r.width;let m=-(n?r.top:r.left),c=n?window.innerHeight:window.innerWidth;m<0&&(c+=m,m=0),m+c>s&&(c=s-m),i={start:m,end:m+c}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ge?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,r;if(this.pageMode){const s=tt(this.$el),m=s.tagName==="HTML"?0:s[t.scroll],c=s.getBoundingClientRect(),o=this.$el.getBoundingClientRect()[t.start]-c[t.start];n=s,i=t.scroll,r=e+m+o}else n=this.$el,i=t.scroll,r=e;n[i]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const gi={key:0,ref:"before",class:"vue-recycle-scroller__slot"},yi={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function bi(e,t,n,i,r,s){const m=Ht("ResizeObserver"),c=Ut("observe-visibility");return Jt((E(),k("div",{class:K(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...p)=>s.handleScroll&&s.handleScroll(...p))},[e.$slots.before?(E(),k("div",gi,[Z(e.$slots,"before")],512)):V("v-if",!0),(E(),x(je(n.listTag),{ref:"wrapper",style:Rt({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:K(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:g(()=>[(E(!0),k(J,null,oe(r.pool,p=>(E(),x(je(n.itemTag),Wt({key:p.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${p.position}px) translate${e.direction==="vertical"?"X":"Y"}(${p.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&r.hoverKey===p.nr.key}]]},Yt(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=p.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:g(()=>[Z(e.$slots,"default",{item:p.item,index:p.nr.index,active:p.nr.used})]),_:2},1040,["style","class"]))),128)),Z(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(E(),k("div",yi,[Z(e.$slots,"after")],512)):V("v-if",!0),d(m,{onNotify:s.handleResize},null,8,["onNotify"])],34)),[[c,s.handleVisibilityChange]])}bt.render=bi;bt.__file="src/components/RecycleScroller.vue";const ye=G({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Se(),r=R(()=>{var s;return(((s=i.conf)==null?void 0:s.all_custom_tags)??[]).reduce((m,c)=>[...m,{...c,selected:!!n.selectedTag.find(p=>p.id===c.id)}],[])});return(s,m)=>{const c=lt,p=Gt,o=Kt,y=ot;return E(),x(y,{onClick:m[0]||(m[0]=O=>t("contextMenuClick",O,s.file,s.idx))},{default:g(()=>[d(c,{key:"deleteFiles",disabled:s.disableDelete},{default:g(()=>[_(S(s.$t("deleteSelected")),1)]),_:1},8,["disabled"]),s.file.type==="dir"?(E(),k(J,{key:0},[d(c,{key:"openInNewTab"},{default:g(()=>[_(S(s.$t("openInNewTab")),1)]),_:1}),d(c,{key:"openOnTheRight"},{default:g(()=>[_(S(s.$t("openOnTheRight")),1)]),_:1}),d(c,{key:"openWithWalkMode"},{default:g(()=>[_(S(s.$t("openWithWalkMode")),1)]),_:1})],64)):V("",!0),s.file.type==="file"?(E(),k(J,{key:1},[$(rt)(s.file.name)?(E(),k(J,{key:0},[d(c,{key:"viewGenInfo"},{default:g(()=>[_(S(s.$t("viewGenerationInfo")),1)]),_:1}),d(p),d(c,{key:"send2txt2img"},{default:g(()=>[_(S(s.$t("sendToTxt2img")),1)]),_:1}),d(c,{key:"send2img2img"},{default:g(()=>[_(S(s.$t("sendToImg2img")),1)]),_:1}),d(c,{key:"send2inpaint"},{default:g(()=>[_(S(s.$t("sendToInpaint")),1)]),_:1}),d(c,{key:"send2extras"},{default:g(()=>[_(S(s.$t("sendToExtraFeatures")),1)]),_:1}),d(o,{key:"send2controlnet",title:s.$t("sendToControlNet")},{default:g(()=>[d(c,{key:"send2controlnet-txt2img"},{default:g(()=>[_(S(s.$t("t2i")),1)]),_:1}),d(c,{key:"send2controlnet-img2img"},{default:g(()=>[_(S(s.$t("i2i")),1)]),_:1})]),_:1},8,["title"]),d(c,{key:"send2savedDir"},{default:g(()=>[_(S(s.$t("send2savedDir")),1)]),_:1}),d(p),d(o,{key:"toggle-tag",title:s.$t("toggleTag")},{default:g(()=>[(E(!0),k(J,null,oe(r.value,O=>(E(),x(c,{key:`toggle-tag-${O.id}`},{default:g(()=>[_(S(O.name)+" ",1),O.selected?(E(),x($(vt),{key:0})):(E(),x($(pt),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"]),d(c,{key:"openWithLocalFileBrowser"},{default:g(()=>[_(S(s.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):V("",!0),d(c,{key:"previewInNewWindow"},{default:g(()=>[_(S(s.$t("previewInNewWindow")),1)]),_:1}),d(c,{key:"download"},{default:g(()=>[_(S(s.$t("download")),1)]),_:1}),d(c,{key:"copyPreviewUrl"},{default:g(()=>[_(S(s.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):V("",!0)]),_:1})}}}),Ai=["data-idx"],wi={key:0},Si={class:"more"},Ei={key:1,class:"preview-icon-wrap"},Oi={class:"profile"},Ci={class:"name line-clamp-1"},$i={class:"basic-info"},_i={class:"name line-clamp-1"},Ii={class:"basic-info"},Li=G({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},viewMode:{default:"previewGrid"},fullScreenPreviewImageUrl:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick"],setup(e,{emit:t}){const n=e,i=Se(),r=W([]),s=()=>{var o;((o=n==null?void 0:n.file)==null?void 0:o.type)==="file"&&m.pushAction(()=>dt(n.file.fullpath)).res.then(y=>{r.value=y})},m=st(),c=R(()=>n.viewMode==="previewGrid"?[i.gridThumbnailSize,i.gridThumbnailSize].join("x"):[i.largeGridThumbnailSize,i.largeGridThumbnailSize].join("x")),p=R(()=>i.enableThumbnail?Xt(n.file,c.value):ve(n.file));return(o,y)=>{const O=Y,I=qt;return E(),x(O,{trigger:["contextmenu"],visible:$(i).longPressOpenContextMenu?typeof o.idx=="number"&&o.showMenuIdx===o.idx:void 0,"onUpdate:visible":y[5]||(y[5]=f=>typeof o.idx=="number"&&t("update:showMenuIdx",f?o.idx:-1))},{overlay:g(()=>[d(ye,{file:o.file,idx:o.idx,"selected-tag":r.value,onContextMenuClick:y[4]||(y[4]=(f,L,h)=>t("contextMenuClick",f,L,h))},null,8,["file","idx","selected-tag"])]),default:g(()=>[(E(),k("li",{class:K(["file file-item-trigger",{clickable:o.file.type==="dir",selected:o.selected,grid:o.viewMode==="previewGrid"||o.viewMode==="largePreviewGrid","large-grid":o.viewMode==="largePreviewGrid"}]),"data-idx":o.idx,key:o.file.name,draggable:"true",onDragstart:y[1]||(y[1]=f=>t("dragstart",f,o.idx)),onDragend:y[2]||(y[2]=f=>t("dragend",f,o.idx)),onContextmenu:s,onClickCapture:y[3]||(y[3]=f=>t("fileItemClick",f,o.file,o.idx))},[o.viewMode!=="detailList"?(E(),k("div",wi,[d(O,null,{overlay:g(()=>[d(ye,{file:o.file,idx:o.idx,"selected-tag":r.value,onContextMenuClick:y[0]||(y[0]=(f,L,h)=>t("contextMenuClick",f,L,h))},null,8,["file","idx","selected-tag"])]),default:g(()=>[N("div",Si,[d($(Ae))])]),_:1}),$(rt)(o.file.name)?(E(),x(I,{key:o.file.fullpath,class:K(`idx-${o.idx}`),src:p.value,fallback:$(Sn),preview:{src:o.fullScreenPreviewImageUrl,onVisibleChange:(f,L)=>t("previewVisibleChange",f,L)}},null,8,["class","src","fallback","preview"])):(E(),k("div",Ei,[o.file.type==="file"?(E(),x($(He),{key:0,class:"icon center"})):(E(),x($(Je),{key:1,class:"icon center"}))])),N("div",Oi,[N("div",Ci,S(o.file.name),1),N("div",$i,[N("div",null,S(o.file.size),1),N("div",null,S(o.file.date),1)])])])):(E(),k(J,{key:1},[o.file.type==="file"?(E(),x($(He),{key:0,class:"icon"})):(E(),x($(Je),{key:1,class:"icon"})),N("div",_i,S(o.file.name),1),N("div",Ii,[N("div",null,S(o.file.size),1),N("div",null,S(o.file.date),1)])],64))],42,Ai))]),_:1},8,["visible"])}}});const Gi=at(Li,[["__scopeId","data-v-427cf11d"]]);function Pi(e,t,n,i){const r={x:0,y:0};let s=0,m=0,c=typeof(i==null?void 0:i.width)=="number"?i.width:0,p=typeof(i==null?void 0:i.height)=="number"?i.height:0,o=typeof(i==null?void 0:i.left)=="number"?i.left:0,y=typeof(i==null?void 0:i.top)=="number"?i.top:0,O=!1;const I=u=>{u.stopPropagation(),u.preventDefault(),!(!e.value||!t.value)&&(s=u instanceof MouseEvent?u.clientX:u.touches[0].clientX,m=u instanceof MouseEvent?u.clientY:u.touches[0].clientY,c=e.value.offsetWidth,p=e.value.offsetHeight,r.x=t.value.offsetLeft,r.y=t.value.offsetTop,document.documentElement.addEventListener("mousemove",f),document.documentElement.addEventListener("touchmove",f),document.documentElement.addEventListener("mouseup",L),document.documentElement.addEventListener("touchend",L))},f=u=>{if(!e.value||!t.value)return;let a=c+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-s),b=p+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-m),w=r.x+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-s),P=r.y+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-m);w+t.value.offsetWidth>window.innerWidth&&(w=window.innerWidth-t.value.offsetWidth),e.value.offsetLeft+a>window.innerWidth&&(a=window.innerWidth-e.value.offsetLeft),P+t.value.offsetHeight>window.innerHeight&&(P=window.innerHeight-t.value.offsetHeight),e.value.offsetTop+b>window.innerHeight&&(b=window.innerHeight-e.value.offsetTop),e.value.style.width=`${a}px`,e.value.style.height=`${b}px`,t.value.style.left=`${w}px`,t.value.style.top=`${P}px`,i!=null&&i.onResize&&i.onResize(a,b)},L=()=>{document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",L),document.documentElement.removeEventListener("touchend",L)},h=u=>{u.stopPropagation(),u.preventDefault(),!(!e.value||!n.value)&&(O=!0,o=e.value.offsetLeft,y=e.value.offsetTop,s=u instanceof MouseEvent?u.clientX:u.touches[0].clientX,m=u instanceof MouseEvent?u.clientY:u.touches[0].clientY,document.documentElement.addEventListener("mousemove",l),document.documentElement.addEventListener("touchmove",l),document.documentElement.addEventListener("mouseup",v),document.documentElement.addEventListener("touchend",v))},l=u=>{if(!e.value||!n.value||!O)return;const a=o+((u instanceof MouseEvent?u.clientX:u.touches[0].clientX)-s),b=y+((u instanceof MouseEvent?u.clientY:u.touches[0].clientY)-m);a<0?e.value.style.left="0px":a+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${a}px`,b<0?e.value.style.top="0px":b+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${b}px`,i!=null&&i.onDrag&&i.onDrag(a,b)},v=()=>{O=!1,document.documentElement.removeEventListener("mousemove",l),document.documentElement.removeEventListener("touchmove",l),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v)},C=()=>{if(!e.value||!t.value)return;let u=e.value.offsetLeft,a=e.value.offsetTop,b=e.value.offsetWidth,w=e.value.offsetHeight;u+b>window.innerWidth&&(u=window.innerWidth-b,u<0&&(u=0,b=window.innerWidth)),a+w>window.innerHeight&&(a=window.innerHeight-w,a<0&&(a=0,w=window.innerHeight)),e.value.style.left=`${u}px`,e.value.style.top=`${a}px`,e.value.style.width=`${b}px`,e.value.style.height=`${w}px`};return Zt(()=>{!e.value||!i||(typeof i.width=="number"&&(e.value.style.width=`${i.width}px`),typeof i.height=="number"&&(e.value.style.height=`${i.height}px`),typeof i.left=="number"&&(e.value.style.left=`${i.left}px`),typeof i.top=="number"&&(e.value.style.top=`${i.top}px`),C(),window.addEventListener("resize",C))}),en(()=>{document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",L),document.documentElement.removeEventListener("touchend",L),document.documentElement.removeEventListener("mousemove",l),document.documentElement.removeEventListener("touchmove",l),document.documentElement.removeEventListener("mouseup",v),document.documentElement.removeEventListener("touchend",v),window.removeEventListener("resize",C)}),ut(()=>[e.value,t.value,n.value],([u,a,b])=>{u&&a&&(a.addEventListener("mousedown",I),a.addEventListener("touchstart",I)),u&&b&&(b.addEventListener("mousedown",h),b.addEventListener("touchstart",h))}),{handleResizeMouseDown:I,handleDragMouseDown:h}}const zi={class:"container"},ki={class:"action-bar"},Bi={key:0,class:"icon",style:{cursor:"pointer"}},Qi={key:0,"flex-placeholder":""},Mi={key:1,class:"action-bar"},xi={key:0,class:"gen-info"},Ni={class:"tags"},Ti={class:"name"},Di={class:"value"},ji=G({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e,i=Se(),r=W(),s=W([]),m=R(()=>{var l;return(((l=i.conf)==null?void 0:l.all_custom_tags)??[]).reduce((v,C)=>[...v,{...C,selected:!!s.value.find(u=>u.id===C.id)}],[])}),c=W(""),p=st(),o=W("");ut(()=>{var l;return(l=n==null?void 0:n.file)==null?void 0:l.fullpath},async l=>{l&&(p.tasks.forEach(v=>v.cancel()),p.pushAction(()=>tn(l)).res.then(v=>{o.value=v}))},{immediate:!0});const y=l=>{l&&p.pushAction(()=>dt(n.file.fullpath)).res.then(v=>{s.value=v})},O=W(),I=W(),f=nn("fullScreenContextMenu.vue-drag",{left:100,top:100,width:512,height:384,expanded:!0});Pi(r,O,I,{...f.value,onDrag:fe(function(l,v){f.value={...f.value,left:l,top:v}},300),onResize:fe(function(l,v){f.value={...f.value,width:l,height:v}},300)});function L(l){return l.parentNode}on("load",l=>{const v=l.target;v.className==="ant-image-preview-img"&&(c.value=`${v.naturalWidth} x ${v.naturalHeight}`)},{capture:!0});const h=R(()=>{const l=[{name:ee("fileName"),val:n.file.name},{name:ee("fileSize"),val:n.file.size}];return c.value&&l.push({name:ee("resolution"),val:c.value}),l});return(l,v)=>{const C=Y,u=le,a=lt,b=ot;return E(),k("div",{ref_key:"el",ref:r,class:K(["full-screen-menu",{"unset-size":!$(f).expanded}]),onWheelCapture:v[5]||(v[5]=ln(()=>{},["stop"]))},[N("div",zi,[N("div",ki,[N("div",{ref_key:"dragHandle",ref:I,class:"icon",style:{cursor:"grab"}},[d($(Pn))],512),N("div",{class:"icon",style:{cursor:"pointer"},onClick:v[0]||(v[0]=w=>$(f).expanded=!$(f).expanded)},[$(f).expanded?(E(),x($(Qn),{key:0})):(E(),x($(Tn),{key:1}))]),d(C,{onVisibleChange:y,"get-popup-container":L},{overlay:g(()=>[d(ye,{file:l.file,idx:l.idx,"selected-tag":s.value,"disable-delete":$(ve)(l.file)===$(i).fullscreenPreviewInitialUrl,onContextMenuClick:v[1]||(v[1]=(w,P,B)=>t("contextMenuClick",w,P,B))},null,8,["file","idx","selected-tag","disable-delete"])]),default:g(()=>[$(f).expanded?V("",!0):(E(),k("div",Bi,[d($(Ae))]))]),_:1}),$(f).expanded?(E(),k("div",Qi)):V("",!0),$(f).expanded?(E(),k("div",Mi,[d(C,{trigger:["hover"],"get-popup-container":L,onVisibleChange:y},{overlay:g(()=>[d(b,{onClick:v[2]||(v[2]=w=>t("contextMenuClick",w,l.file,l.idx))},{default:g(()=>[(E(!0),k(J,null,oe(m.value,w=>(E(),x(a,{key:`toggle-tag-${w.id}`},{default:g(()=>[_(S(w.name)+" ",1),w.selected?(E(),x($(vt),{key:0})):(E(),x($(pt),{key:1}))]),_:2},1024))),128))]),_:1})]),default:g(()=>[d(u,null,{default:g(()=>[_(S(l.$t("toggleTag")),1)]),_:1})]),_:1}),d(C,{trigger:["hover"],"get-popup-container":L},{overlay:g(()=>[d(b,{onClick:v[3]||(v[3]=w=>t("contextMenuClick",w,l.file,l.idx))},{default:g(()=>[d(a,{key:"send2txt2img"},{default:g(()=>[_(S(l.$t("sendToTxt2img")),1)]),_:1}),d(a,{key:"send2img2img"},{default:g(()=>[_(S(l.$t("sendToImg2img")),1)]),_:1}),d(a,{key:"send2inpaint"},{default:g(()=>[_(S(l.$t("sendToInpaint")),1)]),_:1}),d(a,{key:"send2extras"},{default:g(()=>[_(S(l.$t("sendToExtraFeatures")),1)]),_:1}),d(a,{key:"send2savedDir"},{default:g(()=>[_(S(l.$t("send2savedDir")),1)]),_:1}),d(a,{key:"deleteFiles",disabled:$(ve)(l.file)===$(i).fullscreenPreviewInitialUrl},{default:g(()=>[_(S(l.$t("deleteSelected")),1)]),_:1},8,["disabled"]),d(a,{key:"previewInNewWindow"},{default:g(()=>[_(S(l.$t("previewInNewWindow")),1)]),_:1}),d(a,{key:"download"},{default:g(()=>[_(S(l.$t("download")),1)]),_:1}),d(a,{key:"copyPreviewUrl"},{default:g(()=>[_(S(l.$t("copySourceFilePreviewLink")),1)]),_:1})]),_:1})]),default:g(()=>[d(u,null,{default:g(()=>[_(S($(ee)("openContextMenu")),1)]),_:1})]),_:1}),d(u,{onClick:v[4]||(v[4]=w=>$(rn)(o.value))},{default:g(()=>[_(S(l.$t("copyPrompt")),1)]),_:1})])):V("",!0)]),$(f).expanded?(E(),k("div",xi,[N("div",Ni,[(E(!0),k(J,null,oe(h.value,w=>(E(),k("span",{class:"tag",key:w.name},[N("span",Ti,S(w.name),1),N("span",Di,S(w.val),1)]))),128))]),_(" "+S(o.value),1)])):V("",!0)]),$(f).expanded?(E(),k("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:O},[d($($n))],512)):V("",!0)],34)}}});const Ki=at(ji,[["__scopeId","data-v-dc83ca29"]]);export{Y as D,Yi as L,Ri as R,Wi as S,bt as a,Ki as b,Gi as f,Ji as s};
|