lcny-vue3-antd-admin/dist/assets/index.73fc70b4.js

2 lines
6.0 KiB
JavaScript

import{cd as D,O as j,p as m,aX as H,aL as R,a as $,a3 as M,r as N,s as U,H as z,ak as w,G as W,cP as X,g0 as q,af as G,_ as T,V as P,di as J,w as Q,v as Y,bP as Z,cO as K,J as tt,bs as E,bC as et,gh as nt,b as rt,f as L,k as _,bM as V,aA as b,o as S,h as ot,j as k,l as A,n as at,F as it}from"./index.6f10b46a.js";import{c as I,u as st}from"./index.5dd8c134.js";import ct from"./SessionTimeoutLogin.f1ddf455.js";import{s as lt,g as ut}from"./scrollTo.8fc0b618.js";import"./FullscreenOutlined.205f97f6.js";import"./index.9dd93478.js";import"./useWindowSizeFn.5f9c58eb.js";import"./useContentViewHeight.37c68daa.js";import"./uniqBy.6225c1e0.js";import"./_baseIteratee.e4edbf90.js";import"./get.de375d54.js";import"./index.fd1a6a12.js";import"./index.aedfb658.js";import"./useRefs.79978461.js";import"./PlusOutlined.9d52d21d.js";import"./RedoOutlined.41ead4e6.js";import"./index.3a1aa940.js";import"./lock.c89b6c60.js";import"./Login.4908c48a.js";import"./LoginForm.89735a30.js";import"./index.91ba81e2.js";import"./index.1c81fdba.js";import"./useSize.3f7a1258.js";import"./LoginFormTitle.f3bf4eb6.js";import"./ForgetPasswordForm.bad2f5c3.js";import"./index.a49969bd.js";import"./RegisterForm.4b0b077c.js";import"./index.065bf3d2.js";import"./Checkbox.b3b9d2a6.js";import"./MobileForm.d416519f.js";import"./QrCodeForm.339c90ef.js";import"./index.0211eb77.js";import"./download.fac879dd.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 x(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 C=function(t,n){var r=x({},t,n.attrs);return m(H,x({},r,{icon:ft}),null)};C.displayName="VerticalAlignTopOutlined";C.inheritAttrs=!1;var gt=C,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=M("back-top",t),a=c.prefixCls,v=c.direction,l=N(),g=U({visible:!1,scrollEvent:null}),B=function(){return l.value&&l.value.ownerDocument?l.value.ownerDocument:window},F=function(u){var p=t.target,f=p===void 0?B: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}),O=function(){var u=t.target,p=u||B,f=p();g.scrollEvent=K(f,"scroll",function(d){h(d)}),h({target:f})},y=function(){g.scrollEvent&&g.scrollEvent.remove(),h.cancel()};return z(function(){return t.target},function(){y(),w(function(){O()})}),W(function(){w(function(){O()})}),X(function(){w(function(){O()})}),q(function(){y()}),G(function(){y()}),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(Z,d,{default:function(){return[Q(m("div",T(T({},f),{},{ref:l}),[((u=r.default)===null||u===void 0?void 0:u.call(r))||p]),[[Y,g.visible]])]}})}}}),_t=R(Tt);const bt=$({name:"LayoutFeatures",components:{BackTop:_t,LayoutLockPage:I(()=>E(()=>import("./index.4a6974d4.js"),["assets/index.4a6974d4.js","assets/index.6f10b46a.js","assets/index.5def8d0a.css","assets/LockPage.5b2752c8.js","assets/LockPage.afa0c1ae.css","assets/lock.c89b6c60.js","assets/dateUtil.fc0b2e7e.js","assets/header.d801b988.js"])),SettingDrawer:I(()=>E(()=>import("./index.10ed6738.js").then(function(e){return e.i}),["assets/index.10ed6738.js","assets/index.8f496f5e.js","assets/index.5c7227e9.css","assets/index.6f10b46a.js","assets/index.5def8d0a.css","assets/index.fd1a6a12.js","assets/index.464798c8.css","assets/ArrowLeftOutlined.985a0d70.js","assets/index.0211eb77.js","assets/index.3a3c1369.css","assets/index.5dd8c134.js","assets/index.48abc832.css","assets/FullscreenOutlined.205f97f6.js","assets/index.9dd93478.js","assets/index.55076fdd.css","assets/useWindowSizeFn.5f9c58eb.js","assets/useContentViewHeight.37c68daa.js","assets/uniqBy.6225c1e0.js","assets/_baseIteratee.e4edbf90.js","assets/get.de375d54.js","assets/index.aedfb658.js","assets/index.a2831ae3.css","assets/useRefs.79978461.js","assets/PlusOutlined.9d52d21d.js","assets/RedoOutlined.41ead4e6.js","assets/index.3a1aa940.js","assets/lock.c89b6c60.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===V.AUTO?!_(c)||_(r):l===V.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"])):A("",!0),e.getIsFixedSettingDrawer?(S(),k(v,{key:1,class:at(e.prefixCls)},null,8,["class"])):A("",!0),e.getIsSessionTimeout?(S(),k(l,{key:2})):A("",!0)],64)}var ee=tt(bt,[["render",St]]);export{ee as default};