2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{cd as D,a1 as j,n as m,r as R,aB as H,a as $,R as U,v as M,w as N,K as q,aq as O,J as z,cx as W,fi as Z,U as G,_ as T,Z as P,dp as J,x as X,y as Q,bP as Y,cZ as K,L as tt,bt as E,bD as et,fj as nt,b as rt,f as L,k as _,bM as x,aG as b,o as S,h as ot,j as k,l as B,q as at,F as it}from"./index.15bf95a0.js";import{c as I,u as st}from"./index.6858ef6d.js";import ct from"./SessionTimeoutLogin.a23967e3.js";import{s as lt,g as ut}from"./scrollTo.9e4b15a0.js";import"./FullscreenOutlined.dca4c038.js";import"./index.aaf498b4.js";import"./useWindowSizeFn.496bb47f.js";import"./useContentViewHeight.f193840f.js";import"./uniqBy.b7a1b0f6.js";import"./_baseIteratee.08430898.js";import"./get.05ad8139.js";import"./index.6b3f1a50.js";import"./index.253e68b1.js";import"./useRefs.5c9b400e.js";import"./RedoOutlined.42c5349c.js";import"./lock.aa41b2e8.js";import"./Login.0b5b6331.js";import"./LoginForm.51bcb437.js";import"./index.b8a6ac82.js";import"./Checkbox.c8b0f008.js";import"./index.c1fc898b.js";import"./index.4bba8946.js";import"./useSize.ddd952c6.js";import"./index.b95f149a.js";import"./LoginFormTitle.ac2d5b31.js";import"./GithubFilled.65318a65.js";import"./index.5cc5de85.js";import"./ForgetPasswordForm.0d858324.js";import"./index.6f837330.js";import"./RegisterForm.cf95d53e.js";import"./index.2589f34c.js";import"./MobileForm.48ad0dcf.js";import"./QrCodeForm.9ef558bc.js";import"./download.8641eee6.js";function pt(e){var t,n=function(s){return function(){t=null,e.apply(void 0,j(s))}},r=function(){if(t==null){for(var s=arguments.length,c=new Array(s),a=0;a<s;a++)c[a]=arguments[a];t=D(n(c))}};return r.cancel=function(){return D.cancel(t)},r}var mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},ft=mt;function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){vt(e,o,n[o])})}return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=function(t,n){var r=V({},t,n.attrs);return m(R,V({},r,{icon:ft}),null)};A.displayName="VerticalAlignTopOutlined";A.inheritAttrs=!1;var gt=A,dt=function(){return{visibilityHeight:{type:Number,default:400},duration:{type:Number,default:450},target:Function,prefixCls:String,onClick:Function}},Tt=$({compatConfig:{MODE:3},name:"ABackTop",inheritAttrs:!1,props:dt(),setup:function(t,n){var r=n.slots,o=n.attrs,s=n.emit,c=U("back-top",t),a=c.prefixCls,v=c.direction,l=M(),g=N({visible:!1,scrollEvent:null}),C=function(){return l.value&&l.value.ownerDocument?l.value.ownerDocument:window},F=function(u){var p=t.target,f=p===void 0?C:p,d=t.duration;lt(0,{getContainer:f,duration:d}),s("click",u)},h=pt(function(i){var u=t.visibilityHeight,p=ut(i.target,!0);g.visible=p>u}),y=function(){var u=t.target,p=u||C,f=p();g.scrollEvent=K(f,"scroll",function(d){h(d)}),h({target:f})},w=function(){g.scrollEvent&&g.scrollEvent.remove(),h.cancel()};return q(function(){return t.target},function(){w(),O(function(){y()})}),z(function(){O(function(){y()})}),W(function(){O(function(){y()})}),Z(function(){w()}),G(function(){w()}),function(){var i,u,p=m("div",{class:"".concat(a.value,"-content")},[m("div",{class:"".concat(a.value,"-icon")},[m(gt,null,null)])]),f=T(T({},o),{},{onClick:F,class:(i={},P(i,"".concat(a.value),!0),P(i,"".concat(o.class),o.class),P(i,"".concat(a.value,"-rtl"),v.value==="rtl"),i)}),d=J("fade");return m(Y,d,{default:function(){return[X(m("div",T(T({},f),{},{ref:l}),[((u=r.default)===null||u===void 0?void 0:u.call(r))||p]),[[Q,g.visible]])]}})}}}),_t=H(Tt);const bt=$({name:"LayoutFeatures",components:{BackTop:_t,LayoutLockPage:I(()=>E(()=>import("./index.34728f7d.js"),["assets/index.34728f7d.js","assets/index.15bf95a0.js","assets/index.25dbe96d.css","assets/LockPage.484db442.js","assets/LockPage.ad5cabd1.css","assets/lock.aa41b2e8.js","assets/dateUtil.55a85352.js","assets/dayjs.min.11553ab0.js","assets/header.d801b988.js"])),SettingDrawer:I(()=>E(()=>import("./index.13c3b32e.js").then(function(e){return e.i}),["assets/index.13c3b32e.js","assets/index.bc0989a7.js","assets/index.5c7227e9.css","assets/index.15bf95a0.js","assets/index.25dbe96d.css","assets/index.6b3f1a50.js","assets/index.464798c8.css","assets/ArrowLeftOutlined.2f86be89.js","assets/index.b95f149a.js","assets/index.3a3c1369.css","assets/index.6858ef6d.js","assets/index.5924ac04.css","assets/FullscreenOutlined.dca4c038.js","assets/index.aaf498b4.js","assets/index.0935299d.css","assets/useWindowSizeFn.496bb47f.js","assets/useContentViewHeight.f193840f.js","assets/uniqBy.b7a1b0f6.js","assets/_baseIteratee.08430898.js","assets/get.05ad8139.js","assets/index.253e68b1.js","assets/index.a2831ae3.css","assets/useRefs.5c9b400e.js","assets/RedoOutlined.42c5349c.js","assets/lock.aa41b2e8.js"])),SessionTimeoutLogin:ct},setup(){const{getUseOpenBackTop:e,getShowSettingButton:t,getSettingButtonPosition:n,getFullContent:r}=et(),o=nt(),{prefixCls:s}=rt("setting-drawer-feature"),{getShowHeader:c}=st(),a=L(()=>o.getSessionTimeout),v=L(()=>{if(!_(t))return!1;const l=_(n);return l===x.AUTO?!_(c)||_(r):l===x.FIXED});return{getTarget:()=>document.body,getUseOpenBackTop:e,getIsFixedSettingDrawer:v,prefixCls:s,getIsSessionTimeout:a}}});function St(e,t,n,r,o,s){const c=b("LayoutLockPage"),a=b("BackTop"),v=b("SettingDrawer"),l=b("SessionTimeoutLogin");return S(),ot(it,null,[m(c),e.getUseOpenBackTop?(S(),k(a,{key:0,target:e.getTarget},null,8,["target"])):B("",!0),e.getIsFixedSettingDrawer?(S(),k(v,{key:1,class:at(e.prefixCls)},null,8,["class"])):B("",!0),e.getIsSessionTimeout?(S(),k(l,{key:2})):B("",!0)],64)}var ne=tt(bt,[["render",St]]);export{ne as default};
|