detect/detect.gui/Embedded/dist/assets/index-54ac7f7d.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2025-02-18 17:21:56 +08:00
var pe=Object.defineProperty,fe=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var Q=(s,t,r)=>t in s?pe(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r,k=(s,t)=>{for(var r in t||(t={}))he.call(t,r)&&Q(s,r,t[r]);if(X)for(var r of X(t))me.call(t,r)&&Q(s,r,t[r]);return s},V=(s,t)=>fe(s,ge(t));var Y=(s,t,r)=>new Promise((a,m)=>{var b=d=>{try{g(r.next(d))}catch(H){m(H)}},y=d=>{try{g(r.throw(d))}catch(H){m(H)}},g=d=>d.done?a(d.value):Promise.resolve(d.value).then(b,y);g((r=r.apply(s,t)).next())});import{u as K,a as ye,_ as ve,b as be,i as _e,c as ke,p as x,P as He,w as Z,d as xe,e as we,C as Ce,f as A,h as Re}from"./index.js";import{d as N,Z as E,_ as U,$ as I,ab as B,a1 as z,u as e,ad as re,f as D,y as M,w as ae,H as Se,K as je,ae as $e,p as Pe,c as _,a4 as q,aa as Fe,a7 as De,a5 as O,ag as Be,ah as Te,F as Ee,G as ie,a0 as ce,a9 as le,a8 as ee,k as F,i as Oe,I as Ie,g as We,l as te}from"./vue-72a104e4.js";import{u as ue}from"./useContentViewHeight-91c9d265.js";import{o as ze}from"./onMountedOrActivated-ee461833.js";import{u as Ve}from"./useWindowSizeFn-7c45a656.js";import{o as ne,G as Ne,H as se,J as Ae,K as Me}from"./antd-835b28bf.js";import{G as oe,D as Ge,S as Le}from"./siteSetting-efd6ab5b.js";const Ue=N({name:"PageFooter",inheritAttrs:!1,__name:"PageFooter",setup(s){const{prefixCls:t}=K("page-footer"),{getCalcContentWidth:r}=ye();return(a,m)=>(E(),U("div",{class:z(e(t)),style:re({width:e(r)})},[I("div",{class:z(`${e(t)}__left`)},[B(a.$slots,"left",{},void 0,!0)],2),B(a.$slots,"default",{},void 0,!0),I("div",{class:z(`${e(t)}__right`)},[B(a.$slots,"right",{},void 0,!0)],2)],6))}});const de=ve(Ue,[["__scopeId","data-v-7277d5d2"]]);function qe(s,t,r,a,m=0,b=D(0)){const y=D(null),{footerHeightRef:g}=ue();let d={useLayoutFooter:!0};const H=c=>{d=c};function P(){M(()=>{S()})}function w(c,j="all"){var f,v,C,l;function p(o){return Number(o.replace(/[^\d]/g,""))}let n=0;const h="0px";if(c){const o=getComputedStyle(c),u=p((f=o==null?void 0:o.marginTop)!=null?f:h),i=p((v=o==null?void 0:o.marginBottom)!=null?v:h),T=p((C=o==null?void 0:o.paddingTop)!=null?C:h),$=p((l=o==null?void 0:o.paddingBottom)!=null?l:h);j==="all"?(n+=u,n+=i,n+=T,n+=$):j==="top"?(n+=u,n+=T):(n+=i,n+=$)}return n}function R(c){return c==null?null:c instanceof HTMLDivElement?c:c.$el}function S(){return Y(this,null,function*(){var l;if(!s.value)return;yield M();const c=R(e(t));if(!c)return;const{bottomIncludeBody:j}=be(c);let p=0;r.forEach(o=>{var u,i;p+=(i=(u=R(e(o)))==null?void 0:u.offsetHeight)!=null?i:0});let n=(l=w(c))!=null?l:0;a.forEach(o=>{n+=w(R(e(o)))});let h=0;function f(o,u){if(o&&u){const i=o.parentElement;i&&(_e(u)?i.classList.contains(u)?h+=w(i,"bottom"):(h+=w(i,"bottom"),f(i,u)):ke(u)&&u>0&&(h+=w(i,"bottom"),f(i,--u)))}}Se(m)?f(c,e(m)):f(c,m);let v=j-e(g)-e(b)-p-n-h;const C=()=>{var o;(o=d.elements)==null||o.forEach(u=>{var i,T;v+=(T=(i=R(e(u)))==null?void 0:i.offsetHeight)!=null?T:0})};d.useLayoutFooter&&e(g)>0,C(),y.value=v})}return ze(()=>{M(()=>{S()})}),Ve(()=>{S()},{wait:50,immediate:!0}),ae(()=>[g.value],()=>{S()},{flush:"post",immediate:!0}),{redoHeight:P,setCompensation:H,contentHeight:y}}const Ke=N({name:"PageWrapper",inheritAttrs:!1,__name:"PageWrapper",props:{title:x.string,dense:x.bool,ghost:x.bool,headerSticky:x.bool,headerStyle:Object,content:x.string,contentStyle:{type:Object},contentBackground:x.bool,contentFullHeight:x.bool.def(!1),contentClass:x.string,fixedHeight:x.bool,upwardSpace:x.oneOfType([x.number,x.string]).def(0)},setup(s){const t=s,r=je(),a=$e(),m=D(null),b=D(null),y=D(null),g=D(null),{prefixCls:d}=K("page-wrapper");Pe(He,_(()=>t.fixedHeight));const H=_(()=>t.contentFullHeight),P=_(()=>t.upwardSpace),{redoHeight:w,setCompensation:R,contentHeight:S}=qe(H,m,[b,g],[y],P);R({useLayoutFooter:!0,elements:[g]});const c=_(()=>{var l;return[d,{[`${d}--dense`]:t.dense},(l=r.class)!=null?l:{}]}),{headerHeightRef:j}=ue(),p=_(()=>{const{headerSticky:l}=t;return l?k({position:"sticky",top: