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.6439bb26.js";import{c as I,u as st}from"./index.d953fabd.js";import ct from"./SessionTimeoutLogin.faabddce.js";import{s as lt,g as ut}from"./scrollTo.898ba6cd.js";import"./FullscreenOutlined.19455141.js";import"./index.de658af8.js";import"./useWindowSizeFn.cb31d0c4.js";import"./useContentViewHeight.2862c352.js";import"./uniqBy.96e7f320.js";import"./_baseIteratee.253a2d04.js";import"./get.cffab685.js";import"./index.cf1e7e0b.js";import"./index.587a6226.js";import"./useRefs.41331479.js";import"./RedoOutlined.601f48e9.js";import"./index.60cd9faf.js";import"./lock.cb0b5c88.js";import"./Login.b998f3da.js";import"./LoginForm.42be1e1d.js";import"./index.e471cd7d.js";import"./Checkbox.3f4e5762.js";import"./index.41692df4.js";import"./index.9cde543e.js";import"./useSize.eef347a0.js";import"./index.ca3536b8.js";import"./LoginFormTitle.bf7a97dc.js";import"./GithubFilled.823dc130.js";import"./index.a4c71d44.js";import"./ForgetPasswordForm.5422d9fd.js";import"./index.db47ae71.js";import"./RegisterForm.58f9e484.js";import"./index.56556154.js";import"./MobileForm.728f100d.js";import"./QrCodeForm.5f57a278.js";import"./download.bccdd121.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.fb88b66b.js"),["assets/index.fb88b66b.js","assets/index.6439bb26.js","assets/index.ffc461ea.css","assets/LockPage.5a9ca659.js","assets/LockPage.ad5cabd1.css","assets/lock.cb0b5c88.js","assets/dateUtil.61d5ba43.js","assets/dayjs.min.246fef69.js","assets/header.d801b988.js"])),SettingDrawer:I(()=>E(()=>import("./index.3e876407.js").then(function(e){return e.i}),["assets/index.3e876407.js","assets/index.f646240f.js","assets/index.5c7227e9.css","assets/index.6439bb26.js","assets/index.ffc461ea.css","assets/index.cf1e7e0b.js","assets/index.464798c8.css","assets/ArrowLeftOutlined.180eb633.js","assets/index.ca3536b8.js","assets/index.3a3c1369.css","assets/index.d953fabd.js","assets/index.5924ac04.css","assets/FullscreenOutlined.19455141.js","assets/index.de658af8.js","assets/index.0935299d.css","assets/useWindowSizeFn.cb31d0c4.js","assets/useContentViewHeight.2862c352.js","assets/uniqBy.96e7f320.js","assets/_baseIteratee.253a2d04.js","assets/get.cffab685.js","assets/index.587a6226.js","assets/index.a2831ae3.css","assets/useRefs.41331479.js","assets/RedoOutlined.601f48e9.js","assets/index.60cd9faf.js","assets/lock.cb0b5c88.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};