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,fj as Z,U as G,_ as T,Z as k,dp as J,x as X,y as Q,bP as Y,cZ as K,L as tt,bt as E,bD as et,fk as nt,b as rt,f as L,k as _,bM as x,aG as b,o as S,h as ot,j as P,l as B,q as at,F as it}from"./index.78bf44cb.js";import{c as I,u as st}from"./index.6f9a21f7.js";import ct from"./SessionTimeoutLogin.548129da.js";import{s as lt,g as ut}from"./scrollTo.8e9c7571.js";import"./FullscreenOutlined.0d89f50e.js";import"./index.e01793fa.js";import"./useWindowSizeFn.17456a25.js";import"./useContentViewHeight.8345518e.js";import"./uniqBy.92064fd0.js";import"./_baseIteratee.ce9ec913.js";import"./get.9d515986.js";import"./index.4e88fed7.js";import"./index.05a03ca0.js";import"./useRefs.6f73fc2f.js";import"./RedoOutlined.6da51422.js";import"./index.21e4e1d1.js";import"./lock.879e169a.js";import"./Login.b5876d2d.js";import"./LoginForm.60567cdb.js";import"./index.ca11d1b3.js";import"./Checkbox.7e06e027.js";import"./index.927d6482.js";import"./index.28622d8a.js";import"./useSize.fa022eab.js";import"./index.5ffdb515.js";import"./LoginFormTitle.9e212a8f.js";import"./GithubFilled.e3815505.js";import"./index.6573eee3.js";import"./ForgetPasswordForm.67cee2c6.js";import"./index.51b9d3e8.js";import"./RegisterForm.eaae8b0d.js";import"./index.3ceae34c.js";import"./MobileForm.22668298.js";import"./QrCodeForm.512b7e0d.js";import"./download.5e22f0fc.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;au}),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={},k(i,"".concat(a.value),!0),k(i,"".concat(o.class),o.class),k(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.1b5f6e86.js"),["assets/index.1b5f6e86.js","assets/index.78bf44cb.js","assets/index.ffc461ea.css","assets/LockPage.9291d33c.js","assets/LockPage.ad5cabd1.css","assets/lock.879e169a.js","assets/dateUtil.323b91fe.js","assets/dayjs.min.5a28968b.js","assets/header.d801b988.js"])),SettingDrawer:I(()=>E(()=>import("./index.f36d81bf.js").then(function(e){return e.i}),["assets/index.f36d81bf.js","assets/index.0ac429b9.js","assets/index.5c7227e9.css","assets/index.78bf44cb.js","assets/index.ffc461ea.css","assets/index.4e88fed7.js","assets/index.464798c8.css","assets/ArrowLeftOutlined.3f664644.js","assets/index.5ffdb515.js","assets/index.3a3c1369.css","assets/index.6f9a21f7.js","assets/index.5924ac04.css","assets/FullscreenOutlined.0d89f50e.js","assets/index.e01793fa.js","assets/index.0935299d.css","assets/useWindowSizeFn.17456a25.js","assets/useContentViewHeight.8345518e.js","assets/uniqBy.92064fd0.js","assets/_baseIteratee.ce9ec913.js","assets/get.9d515986.js","assets/index.05a03ca0.js","assets/index.a2831ae3.css","assets/useRefs.6f73fc2f.js","assets/RedoOutlined.6da51422.js","assets/index.21e4e1d1.js","assets/lock.879e169a.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(),P(a,{key:0,target:e.getTarget},null,8,["target"])):B("",!0),e.getIsFixedSettingDrawer?(S(),P(v,{key:1,class:at(e.prefixCls)},null,8,["class"])):B("",!0),e.getIsSessionTimeout?(S(),P(l,{key:2})):B("",!0)],64)}var re=tt(bt,[["render",St]]);export{re as default};