webman/public/apidoc/assets/Skeleton.be316f96.js

2 lines
81 KiB
JavaScript
Raw Permalink Normal View History

2025-02-16 00:39:18 +08:00
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(t,n,i)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,o=(e,t)=>{for(var n in t||(t={}))r.call(t,n)&&a(e,n,t[n]);if(i)for(var n of i(t))s.call(t,n)&&a(e,n,t[n]);return e},l=(e,i)=>t(e,n(i));import{aY as c,a6 as u,aZ as h,a_ as p,w as g,d,K as f,o as b,j as m,S as k,V as x,a$ as w,b0 as _,u as v,a9 as y,_ as E,b1 as S,c as A,W as O,X as T,b2 as I,b3 as R,ac as $,a8 as C,U as N,b4 as M,b5 as z,b6 as L,ab as B,h as D,P as j,q as P,k as U,A as Z,s as H,aw as F,G as q,z as K,F as G,D as Q,y as W,m as X,l as J,v as V,t as Y,b7 as ee,B as te,x as ne,aQ as ie,aF as re,b8 as se,b9 as ae,ba as oe}from"./index.5c1bd6c6.js";function le(e){var t,n=function(n){return function(){t=null,e.apply(void 0,u(n))}},i=function(){if(null==t){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];t=c(n(i))}};return i.cancel=function(){return c.cancel(t)},i}function ce(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ue(e,t,n){if(void 0!==n&&t.top>e.top-n)return"".concat(n+t.top,"px")}function he(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n){var i=window.innerHeight-t.bottom;return"".concat(n+i,"px")}}var pe,ge,de=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],fe=[];function be(e,t){if(e){var n=fe.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},fe.push(n),de.forEach((function(t){n.eventHandlers[t]=h(e,t,(function(){n.affixList.forEach((function(e){(0,e.exposed.lazyUpdatePosition)()}),!("touchstart"!==t&&"touchmove"!==t||!p)&&{passive:!0})}))})))}}function me(e){var t=fe.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(fe=fe.filter((function(e){return e!==t})),de.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}function ke(){return"undefined"!=typeof window?window:null}(ge=pe||(pe={}))[ge.None=0]="None",ge[ge.Prepare=1]="Prepare";var xe=g(d({compatConfig:{MODE:3},name:"AAffix",props:{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:ke},prefixCls:String,onChange:Function,onTestUpdatePosition:Function},setup:function(e,t){var n=t.slots,i=t.emit,r=t.expose,s=f(),a=f(),o=b({affixStyle:void 0,placeholderStyle:void 0,status:pe.None,lastAffix:!1,prevTarget:null,timeout:null}),l=R(),c=m((function(){return void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop})),u=m((function(){return e.offsetBottom})),h=function(){I(o,{status:pe.Prepare,affixStyle:void 0,placeholderStyle:void 0}),l.update()},p=le((function(){h()})),g=le((function(){var t=e.target,n=o.affixStyle;if(t&&n){var i=t();if(i&&s.value){var r=ce(i),a=ce(s.value),l=ue(a,r,c.value),p=he(a,r,u.value);if(void 0!==l&&n.top===l||void 0!==p&&n.bottom===p)return}}h()}));r({updatePosition:p,lazyUpdatePosition:g}),k((function(){return e.target}),(function(e){var t=(null==e?void 0:e())||null;o.prevTarget!==t&&(me(l),t&&(be(t,l),p()),o.prevTarget=t)})),k((function(){return[e.offsetTop,e.offsetBottom]}),p),x((function(){var t=e.target;t&&(o.timeout=setTimeout((function(){be(t(),l),p()})))})),w((function(){!function(){var t=o.status,n=o.lastAffix,r=e.target;if(t===pe.Prepare&&a.value&&s.value&&r){var l=r();if(l){var h={status:pe.None},p=ce(l),g=ce(s.value),d=ue(g,p,c.value),f=he(g,p,u.value);void 0!==d?(h.affixStyle={position:"fixed",top:d,width:g.width+"px",height:g.height+"px"},h.placeholderStyle={width:g.width+"px",height:g.height+"px"}):void 0!==f&&(h.affixStyle={position:"fixed",bottom:f,width:g.width+"px",height:g.height+"px"},h.placeholderStyle={width:g.width+"px",height:g.height+"px"}),h.lastAffix=!!h.affixStyle,n!==h.lastAffix&&i("change",h.lastAffix),I(o,h)}}}()})),_((function(){clearTimeout(o.timeout),me(l),p.cancel(),g.cancel()}));var d=v("affix",e).prefixCls;return fu