react-luminus-components 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/.vite/manifest.json +10 -10
- package/dist/{SimpleTooltip-vqBAkdBP.mjs → SimpleTooltip-C8wTRZNZ.mjs} +214 -222
- package/dist/SimpleTooltip-HYwwaCn4.js +1 -0
- package/dist/layout/SideMenu/SideMenu.d.ts +3 -2
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +128 -128
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/SimpleTooltip-CqpIzhpc.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("react"),T=require("./HomeDashboard.module-BI8obEZ_.js"),O=require("./hasClass-DABt6TfW.js"),Gt=require("react-dom");function Jt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const K=Jt(b);var gt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},et=b.createContext&&b.createContext(gt),Qt=["attr","size","title"];function Zt(e,t){if(e==null)return{};var r=er(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function er(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tt(Object(r),!0).forEach(function(n){tr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tr(e,t,r){return t=rr(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rr(e){var t=nr(e,"string");return typeof t=="symbol"?t:String(t)}function nr(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yt(e){return e&&e.map((t,r)=>b.createElement(t.tag,Re({key:r},t.attr),yt(t.child)))}function ee(e){return t=>b.createElement(or,je({attr:Re({},e.attr)},t),yt(e.child))}function or(e){var t=r=>{var{attr:n,size:o,title:i}=e,c=Zt(e,Qt),s=o||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),b.createElement("svg",je({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,c,{className:a,style:Re(Re({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&b.createElement("title",null,i),e.children)};return et!==void 0?b.createElement(et.Consumer,null,r=>t(r)):t(gt)}function ir(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function ar(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function sr(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function ur(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function cr(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function lr(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function fr(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}function rt(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function dr(e){var t=pr(e,"string");return typeof t=="symbol"?t:String(t)}function pr(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wt(e,t,r){var n=b.useRef(e!==void 0),o=b.useState(t),i=o[0],c=o[1],s=e!==void 0,a=n.current;return n.current=s,!s&&a&&i!==t&&c(t),[s?e:i,b.useCallback(function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),h=1;h<u;h++)p[h-1]=arguments[h];r&&r.apply(void 0,[l].concat(p)),c(l)},[r])]}function vr(e,t){return Object.keys(t).reduce(function(r,n){var o,i=r,c=i[rt(n)],s=i[n],a=O._objectWithoutPropertiesLoose(i,[rt(n),n].map(dr)),l=t[n],u=wt(s,c,e[l]),p=u[0],h=u[1];return Se({},a,(o={},o[n]=p,o[l]=h,o))},e)}const $e=2**31-1;function bt(e,t,r){const n=r-Date.now();e.current=n<=$e?setTimeout(t,n):setTimeout(()=>bt(e,t,r),$e)}function hr(){const e=O.useMounted(),t=b.useRef();return O.useWillUnmount(()=>clearTimeout(t.current)),b.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=$e?t.current=setTimeout(o,i):bt(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var nt=Object.prototype.hasOwnProperty;function ot(e,t,r){for(r of e.keys())if(ce(r,t))return r}function ce(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&ce(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=ot(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=ot(t,o),!o)||!ce(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(nt.call(e,r)&&++n&&!nt.call(t,r)||!(r in t)||!ce(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function mr(e){const t=O.useMounted();return[e[0],b.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var B="top",W="bottom",F="right",L="left",ke="auto",ve=[B,W,F,L],re="start",de="end",gr="clippingParents",Ot="viewport",ue="popper",yr="reference",it=ve.reduce(function(e,t){return e.concat([t+"-"+re,t+"-"+de])},[]),xt=[].concat(ve,[ke]).reduce(function(e,t){return e.concat([t,t+"-"+re,t+"-"+de])},[]),wr="beforeRead",br="read",Or="afterRead",xr="beforeMain",Er="main",jr="afterMain",Rr="beforeWrite",Pr="write",Mr="afterWrite",Cr=[wr,br,Or,xr,Er,jr,Rr,Pr,Mr];function _(e){return e.split("-")[0]}function H(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=H(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=H(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ne(e){if(typeof ShadowRoot>"u")return!1;var t=H(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Q=Math.max,Pe=Math.min,ne=Math.round;function Be(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Et(){return!/^((?!chrome|android).)*safari/i.test(Be())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&V(e)&&(o=e.offsetWidth>0&&ne(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ne(n.height)/e.offsetHeight||1);var c=Z(e)?H(e):window,s=c.visualViewport,a=!Et()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/o,u=(n.top+(a&&s?s.offsetTop:0))/i,p=n.width/o,h=n.height/i;return{width:p,height:h,top:u,right:l+p,bottom:u+h,left:l,x:l,y:u}}function He(e){var t=oe(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ne(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function q(e){return e?(e.nodeName||"").toLowerCase():null}function I(e){return H(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(q(e))>=0}function X(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Me(e){return q(e)==="html"?e:e.assignedSlot||e.parentNode||(Ne(e)?e.host:null)||X(e)}function at(e){return!V(e)||I(e).position==="fixed"?null:e.offsetParent}function Dr(e){var t=/firefox/i.test(Be()),r=/Trident/i.test(Be());if(r&&V(e)){var n=I(e);if(n.position==="fixed")return null}var o=Me(e);for(Ne(o)&&(o=o.host);V(o)&&["html","body"].indexOf(q(o))<0;){var i=I(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function he(e){for(var t=H(e),r=at(e);r&&Ar(r)&&I(r).position==="static";)r=at(r);return r&&(q(r)==="html"||q(r)==="body"&&I(r).position==="static")?t:r||Dr(e)||t}function We(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function le(e,t,r){return Q(e,Pe(t,r))}function Tr(e,t,r){var n=le(e,t,r);return n>r?r:n}function Rt(){return{top:0,right:0,bottom:0,left:0}}function Pt(e){return Object.assign({},Rt(),e)}function Mt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Sr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Pt(typeof t!="number"?t:Mt(t,ve))};function $r(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,c=r.modifiersData.popperOffsets,s=_(r.placement),a=We(s),l=[L,F].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!c)){var p=Sr(o.padding,r),h=He(i),d=a==="y"?B:L,v=a==="y"?W:F,g=r.rects.reference[u]+r.rects.reference[a]-c[a]-r.rects.popper[u],f=c[a]-r.rects.reference[a],y=he(i),m=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-f/2,w=p[d],j=m-h[u]-p[v],x=m/2-h[u]/2+E,R=le(w,x,j),M=a;r.modifiersData[n]=(t={},t[M]=R,t.centerOffset=R-x,t)}}function Br(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||jt(t.elements.popper,o)&&(t.elements.arrow=o))}const Lr={name:"arrow",enabled:!0,phase:"main",fn:$r,effect:Br,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ie(e){return e.split("-")[1]}var kr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nr(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ne(r*o)/o||0,y:ne(n*o)/o||0}}function st(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,s=e.position,a=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,p=e.isFixed,h=c.x,d=h===void 0?0:h,v=c.y,g=v===void 0?0:v,f=typeof u=="function"?u({x:d,y:g}):{x:d,y:g};d=f.x,g=f.y;var y=c.hasOwnProperty("x"),m=c.hasOwnProperty("y"),E=L,w=B,j=window;if(l){var x=he(r),R="clientHeight",M="clientWidth";if(x===H(r)&&(x=X(r),I(x).position!=="static"&&s==="absolute"&&(R="scrollHeight",M="scrollWidth")),x=x,o===B||(o===L||o===F)&&i===de){w=W;var C=p&&x===j&&j.visualViewport?j.visualViewport.height:x[R];g-=C-n.height,g*=a?1:-1}if(o===L||(o===B||o===W)&&i===de){E=F;var P=p&&x===j&&j.visualViewport?j.visualViewport.width:x[M];d-=P-n.width,d*=a?1:-1}}var A=Object.assign({position:s},l&&kr),k=u===!0?Nr({x:d,y:g},H(r)):{x:d,y:g};if(d=k.x,g=k.y,a){var D;return Object.assign({},A,(D={},D[w]=m?"0":"",D[E]=y?"0":"",D.transform=(j.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",D))}return Object.assign({},A,(t={},t[w]=m?g+"px":"",t[E]=y?d+"px":"",t.transform="",t))}function Hr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,c=i===void 0?!0:i,s=r.roundOffsets,a=s===void 0?!0:s,l={placement:_(t.placement),variation:ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hr,data:{}};var Oe={passive:!0};function Fr(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,c=n.resize,s=c===void 0?!0:c,a=H(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",r.update,Oe)}),s&&a.addEventListener("resize",r.update,Oe),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",r.update,Oe)}),s&&a.removeEventListener("resize",r.update,Oe)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fr,data:{}};var _r={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return _r[t]})}var Vr={start:"end",end:"start"};function ut(e){return e.replace(/start|end/g,function(t){return Vr[t]})}function Fe(e){var t=H(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ze(e){return oe(X(e)).left+Fe(e).scrollLeft}function Ir(e,t){var r=H(e),n=X(e),o=r.visualViewport,i=n.clientWidth,c=n.clientHeight,s=0,a=0;if(o){i=o.width,c=o.height;var l=Et();(l||!l&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:c,x:s+ze(e),y:a}}function Ur(e){var t,r=X(e),n=Fe(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Q(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Q(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+ze(e),a=-n.scrollTop;return I(o||r).direction==="rtl"&&(s+=Q(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:s,y:a}}function _e(e){var t=I(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ct(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:V(e)&&_e(e)?e:Ct(Me(e))}function fe(e,t){var r;t===void 0&&(t=[]);var n=Ct(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=H(n),c=o?[i].concat(i.visualViewport||[],_e(n)?n:[]):n,s=t.concat(c);return o?s:s.concat(fe(Me(c)))}function Le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===Ot?Le(Ir(e,r)):Z(t)?Kr(t,r):Le(Ur(X(e)))}function qr(e){var t=fe(Me(e)),r=["absolute","fixed"].indexOf(I(e).position)>=0,n=r&&V(e)?he(e):e;return Z(n)?t.filter(function(o){return Z(o)&&jt(o,n)&&q(o)!=="body"}):[]}function Xr(e,t,r,n){var o=t==="clippingParents"?qr(e):[].concat(t),i=[].concat(o,[r]),c=i[0],s=i.reduce(function(a,l){var u=ct(e,l,n);return a.top=Q(u.top,a.top),a.right=Pe(u.right,a.right),a.bottom=Pe(u.bottom,a.bottom),a.left=Q(u.left,a.left),a},ct(e,c,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,n=e.placement,o=n?_(n):null,i=n?ie(n):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,a;switch(o){case B:a={x:c,y:t.y-r.height};break;case W:a={x:c,y:t.y+t.height};break;case F:a={x:t.x+t.width,y:s};break;case L:a={x:t.x-r.width,y:s};break;default:a={x:t.x,y:t.y}}var l=o?We(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case re:a[l]=a[l]-(t[u]/2-r[u]/2);break;case de:a[l]=a[l]+(t[u]/2-r[u]/2);break}}return a}function pe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,c=i===void 0?e.strategy:i,s=r.boundary,a=s===void 0?gr:s,l=r.rootBoundary,u=l===void 0?Ot:l,p=r.elementContext,h=p===void 0?ue:p,d=r.altBoundary,v=d===void 0?!1:d,g=r.padding,f=g===void 0?0:g,y=Pt(typeof f!="number"?f:Mt(f,ve)),m=h===ue?yr:ue,E=e.rects.popper,w=e.elements[v?m:h],j=Xr(Z(w)?w:w.contextElement||X(e.elements.popper),a,u,c),x=oe(e.elements.reference),R=At({reference:x,element:E,strategy:"absolute",placement:o}),M=Le(Object.assign({},E,R)),C=h===ue?M:x,P={top:j.top-C.top+y.top,bottom:C.bottom-j.bottom+y.bottom,left:j.left-C.left+y.left,right:C.right-j.right+y.right},A=e.modifiersData.offset;if(h===ue&&A){var k=A[o];Object.keys(P).forEach(function(D){var $=[F,W].indexOf(D)>=0?1:-1,S=[B,W].indexOf(D)>=0?"y":"x";P[D]+=k[S]*$})}return P}function Yr(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,c=r.padding,s=r.flipVariations,a=r.allowedAutoPlacements,l=a===void 0?xt:a,u=ie(n),p=u?s?it:it.filter(function(v){return ie(v)===u}):ve,h=p.filter(function(v){return l.indexOf(v)>=0});h.length===0&&(h=p);var d=h.reduce(function(v,g){return v[g]=pe(e,{placement:g,boundary:o,rootBoundary:i,padding:c})[_(g)],v},{});return Object.keys(d).sort(function(v,g){return d[v]-d[g]})}function Gr(e){if(_(e)===ke)return[];var t=xe(e);return[ut(e),t,ut(t)]}function Jr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,s=c===void 0?!0:c,a=r.fallbackPlacements,l=r.padding,u=r.boundary,p=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,v=d===void 0?!0:d,g=r.allowedAutoPlacements,f=t.options.placement,y=_(f),m=y===f,E=a||(m||!v?[xe(f)]:Gr(f)),w=[f].concat(E).reduce(function(te,U){return te.concat(_(U)===ke?Yr(t,{placement:U,boundary:u,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:g}):U)},[]),j=t.rects.reference,x=t.rects.popper,R=new Map,M=!0,C=w[0],P=0;P<w.length;P++){var A=w[P],k=_(A),D=ie(A)===re,$=[B,W].indexOf(k)>=0,S=$?"width":"height",N=pe(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:h,padding:l}),z=$?D?F:L:D?W:B;j[S]>x[S]&&(z=xe(z));var me=xe(z),Y=[];if(i&&Y.push(N[k]<=0),s&&Y.push(N[z]<=0,N[me]<=0),Y.every(function(te){return te})){C=A,M=!1;break}R.set(A,Y)}if(M)for(var ge=v?3:1,Ce=function(U){var se=w.find(function(we){var G=R.get(we);if(G)return G.slice(0,U).every(function(Ae){return Ae})});if(se)return C=se,"break"},ae=ge;ae>0;ae--){var ye=Ce(ae);if(ye==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}const Qr={name:"flip",enabled:!0,phase:"main",fn:Jr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ft(e){return[B,F,W,L].some(function(t){return e[t]>=0})}function Zr(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),a=lt(c,n),l=lt(s,o,i),u=ft(a),p=ft(l);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const en={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function tn(e,t,r){var n=_(e),o=[L,B].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=i[0],s=i[1];return c=c||0,s=(s||0)*o,[L,F].indexOf(n)>=0?{x:s,y:c}:{x:c,y:s}}function rn(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,c=xt.reduce(function(u,p){return u[p]=tn(p,t.rects,i),u},{}),s=c[t.placement],a=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=c}const nn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rn};function on(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const an={name:"popperOffsets",enabled:!0,phase:"read",fn:on,data:{}};function sn(e){return e==="x"?"y":"x"}function un(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,s=c===void 0?!1:c,a=r.boundary,l=r.rootBoundary,u=r.altBoundary,p=r.padding,h=r.tether,d=h===void 0?!0:h,v=r.tetherOffset,g=v===void 0?0:v,f=pe(t,{boundary:a,rootBoundary:l,padding:p,altBoundary:u}),y=_(t.placement),m=ie(t.placement),E=!m,w=We(y),j=sn(w),x=t.modifiersData.popperOffsets,R=t.rects.reference,M=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(x){if(i){var D,$=w==="y"?B:L,S=w==="y"?W:F,N=w==="y"?"height":"width",z=x[w],me=z+f[$],Y=z-f[S],ge=d?-M[N]/2:0,Ce=m===re?R[N]:M[N],ae=m===re?-M[N]:-R[N],ye=t.elements.arrow,te=d&&ye?He(ye):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rt(),se=U[$],we=U[S],G=le(0,R[N],te[N]),Ae=E?R[N]/2-ge-G-se-P.mainAxis:Ce-G-se-P.mainAxis,It=E?-R[N]/2+ge+G+we+P.mainAxis:ae+G+we+P.mainAxis,De=t.elements.arrow&&he(t.elements.arrow),Ut=De?w==="y"?De.clientTop||0:De.clientLeft||0:0,Ue=(D=A==null?void 0:A[w])!=null?D:0,Kt=z+Ae-Ue-Ut,qt=z+It-Ue,Ke=le(d?Pe(me,Kt):me,z,d?Q(Y,qt):Y);x[w]=Ke,k[w]=Ke-z}if(s){var qe,Xt=w==="x"?B:L,Yt=w==="x"?W:F,J=x[j],be=j==="y"?"height":"width",Xe=J+f[Xt],Ye=J-f[Yt],Te=[B,L].indexOf(y)!==-1,Ge=(qe=A==null?void 0:A[j])!=null?qe:0,Je=Te?Xe:J-R[be]-M[be]-Ge+P.altAxis,Qe=Te?J+R[be]+M[be]-Ge-P.altAxis:Ye,Ze=d&&Te?Tr(Je,J,Qe):le(d?Je:Xe,J,d?Qe:Ye);x[j]=Ze,k[j]=Ze-J}t.modifiersData[n]=k}}const cn={name:"preventOverflow",enabled:!0,phase:"main",fn:un,requiresIfExists:["offset"]};function ln(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fn(e){return e===H(e)||!V(e)?Fe(e):ln(e)}function dn(e){var t=e.getBoundingClientRect(),r=ne(t.width)/e.offsetWidth||1,n=ne(t.height)/e.offsetHeight||1;return r!==1||n!==1}function pn(e,t,r){r===void 0&&(r=!1);var n=V(t),o=V(t)&&dn(t),i=X(t),c=oe(e,o,r),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!r)&&((q(t)!=="body"||_e(i))&&(s=fn(t)),V(t)?(a=oe(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=ze(i))),{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function vn(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var a=t.get(s);a&&o(a)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function hn(e){var t=vn(e);return Cr.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function mn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function gn(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var dt={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function yn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?dt:o;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},p=[],h=!1,d={state:u,setOptions:function(y){var m=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,m),u.scrollParents={reference:Z(s)?fe(s):s.contextElement?fe(s.contextElement):[],popper:fe(a)};var E=hn(gn([].concat(n,u.options.modifiers)));return u.orderedModifiers=E.filter(function(w){return w.enabled}),v(),d.update()},forceUpdate:function(){if(!h){var y=u.elements,m=y.reference,E=y.popper;if(pt(m,E)){u.rects={reference:pn(m,he(E),u.options.strategy==="fixed"),popper:He(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var j=u.orderedModifiers[w],x=j.fn,R=j.options,M=R===void 0?{}:R,C=j.name;typeof x=="function"&&(u=x({state:u,options:M,name:C,instance:d})||u)}}}},update:mn(function(){return new Promise(function(f){d.forceUpdate(),f(u)})}),destroy:function(){g(),h=!0}};if(!pt(s,a))return d;d.setOptions(l).then(function(f){!h&&l.onFirstUpdate&&l.onFirstUpdate(f)});function v(){u.orderedModifiers.forEach(function(f){var y=f.name,m=f.options,E=m===void 0?{}:m,w=f.effect;if(typeof w=="function"){var j=w({state:u,name:y,instance:d,options:E}),x=function(){};p.push(j||x)}})}function g(){p.forEach(function(f){return f()}),p=[]}return d}}const wn=yn({defaultModifiers:[en,an,Wr,zr,nn,Qr,cn,Lr]}),bn=["enabled","placement","strategy","modifiers"];function On(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const xn={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},En={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,o=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&o==="tooltip"&&"setAttribute"in n){const i=n.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",i?`${i},${r.id}`:r.id)}}},jn=[];function Dt(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:c=jn}=r,s=On(r,bn);const a=b.useRef(c),l=b.useRef(),u=b.useCallback(()=>{var f;(f=l.current)==null||f.update()},[]),p=b.useCallback(()=>{var f;(f=l.current)==null||f.forceUpdate()},[]),[h,d]=mr(b.useState({placement:o,update:u,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),v=b.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:f})=>{const y={},m={};Object.keys(f.elements).forEach(E=>{y[E]=f.styles[E],m[E]=f.attributes[E]}),d({state:f,styles:y,attributes:m,update:u,forceUpdate:p,placement:f.placement})}}),[u,p,d]),g=b.useMemo(()=>(ce(a.current,c)||(a.current=c),a.current),[c]);return b.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:o,strategy:i,modifiers:[...g,v,xn]})},[i,o,v,n,g]),b.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=wn(e,t,Object.assign({},s,{placement:o,strategy:i,modifiers:[...g,En,v]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,d(f=>Object.assign({},f,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h}var Rn=process.env.NODE_ENV!=="production",Tt=function(){};if(Rn){var Pn=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var o=1;o<n;o++)r[o-1]=arguments[o];var i=0,c="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};Tt=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Pn.apply(null,[t].concat(r))}}var Mn=Tt;const Ve=T.getDefaultExportFromCjs(Mn),vt=()=>{};function Cn(e){return e.button===0}function An(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ee=e=>e&&("current"in e?e.current:e),ht={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function St(e,t=vt,{disabled:r,clickTrigger:n="click"}={}){const o=b.useRef(!1),i=b.useRef(!1),c=b.useCallback(l=>{const u=Ee(e);Ve(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!u||An(l)||!Cn(l)||!!O.contains(u,l.target)||i.current,i.current=!1},[e]),s=O.useEventCallback(l=>{const u=Ee(e);u&&O.contains(u,l.target)&&(i.current=!0)}),a=O.useEventCallback(l=>{o.current||t(l)});b.useEffect(()=>{var l,u;if(r||e==null)return;const p=O.ownerDocument(Ee(e)),h=p.defaultView||window;let d=(l=h.event)!=null?l:(u=h.parent)==null?void 0:u.event,v=null;ht[n]&&(v=O.listen(p,ht[n],s,!0));const g=O.listen(p,n,c,!0),f=O.listen(p,n,m=>{if(m===d){d=void 0;return}a(m)});let y=[];return"ontouchstart"in p.documentElement&&(y=[].slice.call(p.body.children).map(m=>O.listen(m,"mousemove",vt))),()=>{v==null||v(),g(),f(),y.forEach(m=>m())}},[e,r,n,c,s,a])}function Dn(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function Tn(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function $t({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:c,arrowElement:s,popperConfig:a={}}){var l,u,p,h,d;const v=Dn(a.modifiers);return Object.assign({},a,{placement:r,enabled:e,strategy:i?"fixed":a.strategy,modifiers:Tn(Object.assign({},v,{eventListeners:{enabled:t,options:(l=v.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},v.preventOverflow,{options:c?Object.assign({padding:c},(u=v.preventOverflow)==null?void 0:u.options):(p=v.preventOverflow)==null?void 0:p.options}),offset:{options:Object.assign({offset:o},(h=v.offset)==null?void 0:h.options)},arrow:Object.assign({},v.arrow,{enabled:!!s,options:Object.assign({},(d=v.arrow)==null?void 0:d.options,{element:s})}),flip:Object.assign({enabled:!!n},v.flip)}))})}const Sn=()=>{};function $n(e,t,{disabled:r,clickTrigger:n}={}){const o=t||Sn;St(e,o,{disabled:r,clickTrigger:n});const i=O.useEventCallback(c=>{O.isEscKey(c)&&o(c)});b.useEffect(()=>{if(r||e==null)return;const c=O.ownerDocument(Ee(e));let s=(c.defaultView||window).event;const a=O.listen(c,"keyup",l=>{if(l===s){s=void 0;return}i(l)});return()=>{a()}},[e,r,i])}const Bt=K.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:c={},transition:s,runTransition:a}=e,[l,u]=O.useCallbackRef(),[p,h]=O.useCallbackRef(),d=O.useMergedRefs(u,t),v=O.useWaitForDOMRef(e.container),g=O.useWaitForDOMRef(e.target),[f,y]=b.useState(!e.show),m=Dt(g,l,$t({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:p,popperConfig:c}));e.show&&f&&y(!1);const E=(...A)=>{y(!0),e.onExited&&e.onExited(...A)},w=e.show||!f;if($n(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;const{onExit:j,onExiting:x,onEnter:R,onEntering:M,onEntered:C}=e;let P=e.children(Object.assign({},m.attributes.popper,{style:m.styles.popper,ref:d}),{popper:m,placement:o,show:!!e.show,arrowProps:Object.assign({},m.attributes.arrow,{style:m.styles.arrow,ref:h})});return P=O.renderTransition(s,a,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:j,onExiting:x,onExited:E,onEnter:R,onEntering:M,onEntered:C}),v?Gt.createPortal(P,v):null});Bt.displayName="Overlay";const Bn=Bt,Lt=K.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=O.useBootstrapPrefix(t,"popover-header"),T.jsxRuntimeExports.jsx(r,{ref:o,className:T.classNames(e,t),...n})));Lt.displayName="PopoverHeader";const Ln=Lt,kt=K.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=O.useBootstrapPrefix(t,"popover-body"),T.jsxRuntimeExports.jsx(r,{ref:o,className:T.classNames(e,t),...n})));kt.displayName="PopoverBody";const Nt=kt;function Ht(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function Wt(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const kn=K.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,body:i,arrowProps:c,hasDoneInitialMeasure:s,popper:a,show:l,...u},p)=>{const h=O.useBootstrapPrefix(e,"popover"),d=O.useIsRTL(),[v]=(t==null?void 0:t.split("-"))||[],g=Ht(v,d);let f=n;return l&&!s&&(f={...n,...Wt(a==null?void 0:a.strategy)}),T.jsxRuntimeExports.jsxs("div",{ref:p,role:"tooltip",style:f,"x-placement":v,className:T.classNames(r,h,v&&`bs-popover-${g}`),...u,children:[T.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...c}),i?T.jsxRuntimeExports.jsx(Nt,{children:o}):o]})}),Ft=Object.assign(kn,{Header:Ln,Body:Nt,POPPER_OFFSET:[0,8]}),zt=K.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:c,popper:s,show:a,...l},u)=>{e=O.useBootstrapPrefix(e,"tooltip");const p=O.useIsRTL(),[h]=(t==null?void 0:t.split("-"))||[],d=Ht(h,p);let v=n;return a&&!c&&(v={...n,...Wt(s==null?void 0:s.strategy)}),T.jsxRuntimeExports.jsxs("div",{ref:u,style:v,role:"tooltip","x-placement":h,className:T.classNames(r,e,`bs-tooltip-${d}`),...l,children:[T.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...i}),T.jsxRuntimeExports.jsx("div",{className:`${e}-inner`,children:o})]})});zt.displayName="Tooltip";const Ie=Object.assign(zt,{TOOLTIP_OFFSET:[0,6]});function Nn(e){const t=b.useRef(null),r=O.useBootstrapPrefix(void 0,"popover"),n=O.useBootstrapPrefix(void 0,"tooltip"),o=b.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(O.hasClass(t.current,r))return Ft.POPPER_OFFSET;if(O.hasClass(t.current,n))return Ie.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function Hn(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(O.safeFindDOMNode(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(O.safeFindDOMNode(o)))}const _t=K.forwardRef(({children:e,transition:t=O.Fade,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...c},s)=>{const a=b.useRef({}),[l,u]=b.useState(null),[p,h]=Nn(c.offset),d=O.useMergedRefs(s,p),v=t===!0?O.Fade:t||void 0,g=O.useEventCallback(f=>{u(f),r==null||r.onFirstUpdate==null||r.onFirstUpdate(f)});return O.useIsomorphicEffect(()=>{l&&c.target&&(a.current.scheduleUpdate==null||a.current.scheduleUpdate())},[l,c.target]),b.useEffect(()=>{i||u(null)},[i]),T.jsxRuntimeExports.jsx(Bn,{...c,ref:d,popperConfig:{...r,modifiers:h.concat(r.modifiers||[]),onFirstUpdate:g},transition:v,rootClose:n,placement:o,show:i,children:(f,{arrowProps:y,popper:m,show:E})=>{var w,j;Hn(f,y);const x=m==null?void 0:m.placement,R=Object.assign(a.current,{state:m==null?void 0:m.state,scheduleUpdate:m==null?void 0:m.update,placement:x,outOfBoundaries:(m==null||(w=m.state)==null||(j=w.modifiersData.hide)==null?void 0:j.isReferenceHidden)||!1,strategy:r.strategy}),M=!!l;return typeof e=="function"?e({...f,placement:x,show:E,...!t&&E&&{className:"show"},popper:R,arrowProps:y,hasDoneInitialMeasure:M}):K.cloneElement(e,{...f,placement:x,arrowProps:y,popper:R,hasDoneInitialMeasure:M,className:T.classNames(e.props.className,!t&&E&&"show"),style:{...e.props.style,...f.style}})}})});_t.displayName="Overlay";const Wn=_t;function Fn(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function mt(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!O.contains(o,i)&&e(...t)}O.PropTypes.oneOf(["click","hover","focus"]);const zn=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:o,defaultShow:i=!1,onToggle:c,delay:s,placement:a,flip:l=a&&a.indexOf("auto")!==-1,...u})=>{const p=b.useRef(null),h=O.useMergedRefs(p,r.ref),d=hr(),v=b.useRef(""),[g,f]=wt(o,i,c),y=Fn(s),{onFocus:m,onBlur:E,onClick:w}=typeof r!="function"?K.Children.only(r).props:{},j=S=>{h(O.safeFindDOMNode(S))},x=b.useCallback(()=>{if(d.clear(),v.current="show",!y.show){f(!0);return}d.set(()=>{v.current==="show"&&f(!0)},y.show)},[y.show,f,d]),R=b.useCallback(()=>{if(d.clear(),v.current="hide",!y.hide){f(!1);return}d.set(()=>{v.current==="hide"&&f(!1)},y.hide)},[y.hide,f,d]),M=b.useCallback((...S)=>{x(),m==null||m(...S)},[x,m]),C=b.useCallback((...S)=>{R(),E==null||E(...S)},[R,E]),P=b.useCallback((...S)=>{f(!g),w==null||w(...S)},[w,f,g]),A=b.useCallback((...S)=>{mt(x,S,"fromElement")},[x]),k=b.useCallback((...S)=>{mt(R,S,"toElement")},[R]),D=e==null?[]:[].concat(e),$={ref:j};return D.indexOf("click")!==-1&&($.onClick=P),D.indexOf("focus")!==-1&&($.onFocus=M,$.onBlur=C),D.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Ve(D.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),$.onMouseOver=A,$.onMouseOut=k),T.jsxRuntimeExports.jsxs(T.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r($):b.cloneElement(r,$),T.jsxRuntimeExports.jsx(Wn,{...u,show:g,onHide:R,flip:l,placement:a,popperConfig:n,target:p.current,children:t})]})},Vt=zn,_n=({text:e,placement:t,children:r})=>T.jsxRuntimeExports.jsx(Vt,{placement:t,overlay:T.jsxRuntimeExports.jsx(Ie,{className:"luminus-tooltip",children:e}),children:r});exports.MdClear=ir;exports.MdOutlineAddCircleOutline=ur;exports.MdOutlineDelete=ar;exports.MdOutlineExpand=sr;exports.MdOutlineKeyboardArrowDown=cr;exports.MdOutlineKeyboardArrowLeft=lr;exports.MdOutlineKeyboardArrowRight=fr;exports.OverlayTrigger=Vt;exports.Popover=Ft;exports.SimpleTooltip=_n;exports.Tooltip=Ie;exports.mergeOptionsWithPopperConfig=$t;exports.useClickOutside=St;exports.usePopper=Dt;exports.useUncontrolled=vr;exports.warning=Ve;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import MenuItemType from '@models/types/MenuItemType';
|
|
3
3
|
type Props = {
|
|
4
|
+
headerItem: React.ReactNode;
|
|
4
5
|
mainItems: MenuItemType[];
|
|
5
6
|
secondaryItems: MenuItemType[];
|
|
6
7
|
expanded: boolean;
|
|
7
|
-
|
|
8
|
+
setExpanded: (expanded: boolean) => void;
|
|
8
9
|
};
|
|
9
|
-
declare const SideMenu: ({ mainItems, secondaryItems, expanded,
|
|
10
|
+
declare const SideMenu: ({ headerItem, mainItems, secondaryItems, expanded, setExpanded }: Props) => import("react").JSX.Element;
|
|
10
11
|
export default SideMenu;
|
package/dist/layout.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./HomeDashboard.module-BI8obEZ_.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./HomeDashboard.module-BI8obEZ_.js"),d=require("react"),v=require("./SimpleTooltip-HYwwaCn4.js"),x=require("./hasClass-DABt6TfW.js");function _(...e){return e.filter(n=>n!=null).reduce((n,t)=>{if(typeof t!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return n===null?t:function(...i){n.apply(this,i),t.apply(this,i)}},null)}const L={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function D(e,n){const t=`offset${e[0].toUpperCase()}${e.slice(1)}`,a=n[t],i=L[e];return a+parseInt(x.style(n,i[0]),10)+parseInt(x.style(n,i[1]),10)}const O={[x.EXITED]:"collapse",[x.EXITING]:"collapsing",[x.ENTERING]:"collapsing",[x.ENTERED]:"collapse show"},q=d.forwardRef(({onEnter:e,onEntering:n,onEntered:t,onExit:a,onExiting:i,className:p,children:c,dimension:j="height",in:u=!1,timeout:m=300,mountOnEnter:B=!1,unmountOnExit:w=!1,appear:g=!1,getDimensionValue:f=D,...N},y)=>{const l=typeof j=="function"?j():j,I=d.useMemo(()=>_(r=>{r.style[l]="0"},e),[l,e]),S=d.useMemo(()=>_(r=>{const E=`scroll${l[0].toUpperCase()}${l.slice(1)}`;r.style[l]=`${r[E]}px`},n),[l,n]),T=d.useMemo(()=>_(r=>{r.style[l]=null},t),[l,t]),$=d.useMemo(()=>_(r=>{r.style[l]=`${f(l,r)}px`,x.triggerBrowserReflow(r)},a),[a,f,l]),k=d.useMemo(()=>_(r=>{r.style[l]=null},i),[l,i]);return s.jsxRuntimeExports.jsx(x.TransitionWrapper,{ref:y,addEndListener:x.transitionEndListener,...N,"aria-expanded":N.role?u:null,onEnter:I,onEntering:S,onEntered:T,onExit:$,onExiting:k,childRef:c.ref,in:u,timeout:m,mountOnEnter:B,unmountOnExit:w,appear:g,children:(r,E)=>d.cloneElement(c,{...E,className:s.classNames(p,c.props.className,O[r],l==="width"&&"collapse-horizontal")})})}),F=q,H="_side-menu-item_8j1cd_1",A="_nav-button_8j1cd_4",G="_child_8j1cd_11",U="_text_8j1cd_14",X="_icon_8j1cd_17",z="_collapse-icon_8j1cd_23",K="_collapsed_8j1cd_33",W="_expanded_8j1cd_40",o={"side-menu-item":"_side-menu-item_8j1cd_1",sideMenuItem:H,"nav-button":"_nav-button_8j1cd_4",navButton:A,child:G,text:U,icon:X,"collapse-icon":"_collapse-icon_8j1cd_23",collapseIcon:z,collapsed:K,expanded:W},R=({item:e,menuExpanded:n,children:t})=>e.tooltip&&!n?s.jsxRuntimeExports.jsx(v.SimpleTooltip,{text:e.tooltip,placement:"right",children:t}):t,b=({item:e,menuExpanded:n,collapsed:t,onCollapse:a})=>{var p;const{LinkComponent:i}=d.useContext(s.LuminusComponentsContext);return e.children?s.jsxRuntimeExports.jsx("li",{className:s.classNames("luminus-side-menu-item",o.sideMenuItem,{[o.expanded]:n}),children:s.jsxRuntimeExports.jsx(R,{item:e,menuExpanded:n,children:s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames("nav-link",o.navButton),onClick:()=>a(),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),n&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title}),n&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("collapse-icon",o.collapseIcon,{[o.collapsed]:t}),children:s.jsxRuntimeExports.jsx(v.MdOutlineKeyboardArrowDown,{})})]}),s.jsxRuntimeExports.jsx(F,{in:t,children:s.jsxRuntimeExports.jsx("div",{children:(p=e.children)==null?void 0:p.map(c=>s.jsxRuntimeExports.jsx(i,{to:c.linkTo??"/",className:s.classNames("nav-link",o.navButton,o.child),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:c.title})},c.linkTo))})})]})})}):s.jsxRuntimeExports.jsx("li",{className:s.classNames("luminus-side-menu-item",o.sideMenuItem,{[o.expanded]:n}),children:s.jsxRuntimeExports.jsx(R,{item:e,menuExpanded:n,children:s.jsxRuntimeExports.jsxs(i,{to:e.linkTo??"/",className:s.classNames("nav-link",o.navButton),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),n&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title})]})})})},J="_side-menu_s0700_1",P="_sidebar-header_s0700_14",Q="_side-menu-content_s0700_19",V="_expand_s0700_23",h={"side-menu":"_side-menu_s0700_1",sideMenu:J,"sidebar-header":"_sidebar-header_s0700_14",sidebarHeader:P,"side-menu-content":"_side-menu-content_s0700_19",sideMenuContent:Q,expand:V},Y=({headerItem:e,mainItems:n,secondaryItems:t,expanded:a,setExpanded:i})=>{const[p,c]=d.useState(-1),j=u=>{c(u===p?-1:u)};return d.useEffect(()=>{a||c(-1)},[a]),s.jsxRuntimeExports.jsxs("section",{className:s.classNames("luminus-side-menu",h.sideMenu,"shadow",{[h.expand]:a},{expand:a}),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("sidebar-header",h.sidebarHeader),children:e}),s.jsxRuntimeExports.jsxs("ul",{className:h.sideMenuContent,children:[n.map((u,m)=>s.jsxRuntimeExports.jsx(b,{item:u,menuExpanded:a,collapsed:m===p,onCollapse:()=>j(m)},u.title)),s.jsxRuntimeExports.jsx("hr",{}),t.map((u,m)=>s.jsxRuntimeExports.jsx(b,{item:u,menuExpanded:a,collapsed:m===p,onCollapse:()=>j(m)},u.title))]})]})},Z="_top-bar_1t428_1",ss="_top-bar-brand_1t428_11",C={"top-bar":"_top-bar_1t428_1",topBar:Z,"top-bar-brand":"_top-bar-brand_1t428_11",topBarBrand:ss},es=({appName:e,children:n})=>{const{LinkComponent:t}=d.useContext(s.LuminusComponentsContext);return s.jsxRuntimeExports.jsxs("nav",{className:s.classNames("shadow luminus-top-bar",C.topBar),children:[s.jsxRuntimeExports.jsx(t,{to:"/",className:s.classNames("luminus-top-bar-brand",C.topBarBrand),children:e}),s.jsxRuntimeExports.jsx("div",{className:"w-100 d-flex justify-content-end align-items-center gap-2",children:n})]})},ns="_side-content-bar_17kwd_1",ts={"side-content-bar":"_side-content-bar_17kwd_1",sideContentBar:ns},M=({width:e,children:n})=>s.jsxRuntimeExports.jsx("section",{className:s.classNames("shadow luminus-side-content-bar",ts.sideContentBar),style:{width:`${e}px`},children:n}),os=({children:e,sideContent:n})=>s.jsxRuntimeExports.jsxs("div",{className:"container-fluid p-3",children:[s.jsxRuntimeExports.jsx("div",{style:{paddingRight:n?"250px":void 0},children:e}),n&&s.jsxRuntimeExports.jsx(M,{width:250,children:n})]}),as="_full-screen-container_1c9bu_1",is={"full-screen-container":"_full-screen-container_1c9bu_1",fullScreenContainer:as},ls=({children:e})=>s.jsxRuntimeExports.jsx("div",{className:s.classNames("container-fluid p-3 overflow-hidden luminus-full-screen-container",is.fullScreenContainer),children:e});exports.FullScreenContainer=ls;exports.MainContainer=os;exports.SideContentBar=M;exports.SideMenu=Y;exports.TopBar=es;
|
package/dist/layout.es.js
CHANGED
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import { M as F, S as G
|
|
4
|
-
import { T as
|
|
5
|
-
function
|
|
6
|
-
return
|
|
1
|
+
import { j as e, e as o, L as M } from "./HomeDashboard.module-CuVVnp4t.mjs";
|
|
2
|
+
import N, { useMemo as x, useContext as g, useState as O, useEffect as A } from "react";
|
|
3
|
+
import { M as F, S as G } from "./SimpleTooltip-C8wTRZNZ.mjs";
|
|
4
|
+
import { T as H, t as U, s as C, E as X, a as z, b as K, c as W, d as q } from "./hasClass-D3KZs5y_.mjs";
|
|
5
|
+
function h(...n) {
|
|
6
|
+
return n.filter((s) => s != null).reduce((s, t) => {
|
|
7
7
|
if (typeof t != "function")
|
|
8
8
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
9
|
-
return s === null ? t : function(...
|
|
10
|
-
s.apply(this,
|
|
9
|
+
return s === null ? t : function(...c) {
|
|
10
|
+
s.apply(this, c), t.apply(this, c);
|
|
11
11
|
};
|
|
12
12
|
}, null);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const J = {
|
|
15
15
|
height: ["marginTop", "marginBottom"],
|
|
16
16
|
width: ["marginLeft", "marginRight"]
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
const t = `offset${
|
|
20
|
-
return
|
|
21
|
-
parseInt(
|
|
22
|
-
parseInt(
|
|
18
|
+
function Q(n, s) {
|
|
19
|
+
const t = `offset${n[0].toUpperCase()}${n.slice(1)}`, l = s[t], c = J[n];
|
|
20
|
+
return l + // @ts-ignore
|
|
21
|
+
parseInt(C(s, c[0]), 10) + // @ts-ignore
|
|
22
|
+
parseInt(C(s, c[1]), 10);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
},
|
|
30
|
-
onEnter:
|
|
24
|
+
const V = {
|
|
25
|
+
[X]: "collapse",
|
|
26
|
+
[z]: "collapsing",
|
|
27
|
+
[K]: "collapsing",
|
|
28
|
+
[W]: "collapse show"
|
|
29
|
+
}, Y = /* @__PURE__ */ N.forwardRef(({
|
|
30
|
+
onEnter: n,
|
|
31
31
|
onEntering: s,
|
|
32
32
|
onEntered: t,
|
|
33
|
-
onExit:
|
|
34
|
-
onExiting:
|
|
33
|
+
onExit: l,
|
|
34
|
+
onExiting: c,
|
|
35
35
|
className: p,
|
|
36
|
-
children:
|
|
37
|
-
dimension:
|
|
38
|
-
in:
|
|
39
|
-
timeout:
|
|
36
|
+
children: d,
|
|
37
|
+
dimension: m = "height",
|
|
38
|
+
in: u = !1,
|
|
39
|
+
timeout: _ = 300,
|
|
40
40
|
mountOnEnter: y = !1,
|
|
41
41
|
unmountOnExit: E = !1,
|
|
42
|
-
appear:
|
|
43
|
-
getDimensionValue:
|
|
44
|
-
...
|
|
45
|
-
},
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}, s), [
|
|
52
|
-
|
|
53
|
-
}, t), [
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
return /* @__PURE__ */
|
|
59
|
-
ref:
|
|
60
|
-
addEndListener:
|
|
61
|
-
...
|
|
62
|
-
"aria-expanded":
|
|
63
|
-
onEnter:
|
|
42
|
+
appear: T = !1,
|
|
43
|
+
getDimensionValue: b = Q,
|
|
44
|
+
...v
|
|
45
|
+
}, $) => {
|
|
46
|
+
const i = typeof m == "function" ? m() : m, k = x(() => h((r) => {
|
|
47
|
+
r.style[i] = "0";
|
|
48
|
+
}, n), [i, n]), S = x(() => h((r) => {
|
|
49
|
+
const j = `scroll${i[0].toUpperCase()}${i.slice(1)}`;
|
|
50
|
+
r.style[i] = `${r[j]}px`;
|
|
51
|
+
}, s), [i, s]), R = x(() => h((r) => {
|
|
52
|
+
r.style[i] = null;
|
|
53
|
+
}, t), [i, t]), L = x(() => h((r) => {
|
|
54
|
+
r.style[i] = `${b(i, r)}px`, q(r);
|
|
55
|
+
}, l), [l, b, i]), D = x(() => h((r) => {
|
|
56
|
+
r.style[i] = null;
|
|
57
|
+
}, c), [i, c]);
|
|
58
|
+
return /* @__PURE__ */ e.jsx(H, {
|
|
59
|
+
ref: $,
|
|
60
|
+
addEndListener: U,
|
|
61
|
+
...v,
|
|
62
|
+
"aria-expanded": v.role ? u : null,
|
|
63
|
+
onEnter: k,
|
|
64
64
|
onEntering: S,
|
|
65
65
|
onEntered: R,
|
|
66
66
|
onExit: L,
|
|
67
|
-
onExiting:
|
|
68
|
-
childRef:
|
|
69
|
-
in:
|
|
70
|
-
timeout:
|
|
67
|
+
onExiting: D,
|
|
68
|
+
childRef: d.ref,
|
|
69
|
+
in: u,
|
|
70
|
+
timeout: _,
|
|
71
71
|
mountOnEnter: y,
|
|
72
72
|
unmountOnExit: E,
|
|
73
|
-
appear:
|
|
74
|
-
children: (
|
|
75
|
-
...
|
|
76
|
-
className: o(p,
|
|
73
|
+
appear: T,
|
|
74
|
+
children: (r, j) => /* @__PURE__ */ N.cloneElement(d, {
|
|
75
|
+
...j,
|
|
76
|
+
className: o(p, d.props.className, V[r], i === "width" && "collapse-horizontal")
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
|
-
}),
|
|
79
|
+
}), Z = Y, P = "_side-menu-item_8j1cd_1", ee = "_nav-button_8j1cd_4", ne = "_child_8j1cd_11", se = "_text_8j1cd_14", te = "_icon_8j1cd_17", oe = "_collapse-icon_8j1cd_23", ae = "_collapsed_8j1cd_33", le = "_expanded_8j1cd_40", a = {
|
|
80
80
|
"side-menu-item": "_side-menu-item_8j1cd_1",
|
|
81
|
-
sideMenuItem:
|
|
81
|
+
sideMenuItem: P,
|
|
82
82
|
"nav-button": "_nav-button_8j1cd_4",
|
|
83
|
-
navButton:
|
|
84
|
-
child:
|
|
85
|
-
text:
|
|
86
|
-
icon:
|
|
83
|
+
navButton: ee,
|
|
84
|
+
child: ne,
|
|
85
|
+
text: se,
|
|
86
|
+
icon: te,
|
|
87
87
|
"collapse-icon": "_collapse-icon_8j1cd_23",
|
|
88
|
-
collapseIcon:
|
|
89
|
-
collapsed:
|
|
90
|
-
expanded:
|
|
91
|
-
},
|
|
88
|
+
collapseIcon: oe,
|
|
89
|
+
collapsed: ae,
|
|
90
|
+
expanded: le
|
|
91
|
+
}, w = ({ item: n, menuExpanded: s, children: t }) => n.tooltip && !s ? /* @__PURE__ */ e.jsx(G, { text: n.tooltip, placement: "right", children: t }) : t, B = ({ item: n, menuExpanded: s, collapsed: t, onCollapse: l }) => {
|
|
92
92
|
var p;
|
|
93
|
-
const { LinkComponent:
|
|
94
|
-
return
|
|
95
|
-
[
|
|
96
|
-
}), children: /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
s && /* @__PURE__ */
|
|
100
|
-
s && /* @__PURE__ */
|
|
101
|
-
[
|
|
102
|
-
}), children: /* @__PURE__ */
|
|
93
|
+
const { LinkComponent: c } = g(M);
|
|
94
|
+
return n.children ? /* @__PURE__ */ e.jsx("li", { className: o("luminus-side-menu-item", a.sideMenuItem, {
|
|
95
|
+
[a.expanded]: s
|
|
96
|
+
}), children: /* @__PURE__ */ e.jsx(w, { item: n, menuExpanded: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
97
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", className: o("nav-link", a.navButton), onClick: () => l(), children: [
|
|
98
|
+
/* @__PURE__ */ e.jsx("div", { className: o("icon", a.icon), children: n.icon }),
|
|
99
|
+
s && /* @__PURE__ */ e.jsx("div", { className: o("text", a.text, "text-nowrap"), children: n.title }),
|
|
100
|
+
s && /* @__PURE__ */ e.jsx("div", { className: o("collapse-icon", a.collapseIcon, {
|
|
101
|
+
[a.collapsed]: t
|
|
102
|
+
}), children: /* @__PURE__ */ e.jsx(F, {}) })
|
|
103
103
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
] }) }) }) : /* @__PURE__ */
|
|
106
|
-
[
|
|
107
|
-
}), children: /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
s && /* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ e.jsx(Z, { in: t, children: /* @__PURE__ */ e.jsx("div", { children: (p = n.children) == null ? void 0 : p.map((d) => /* @__PURE__ */ e.jsx(c, { to: d.linkTo ?? "/", className: o("nav-link", a.navButton, a.child), children: /* @__PURE__ */ e.jsx("div", { className: o("text", a.text, "text-nowrap"), children: d.title }) }, d.linkTo)) }) })
|
|
105
|
+
] }) }) }) : /* @__PURE__ */ e.jsx("li", { className: o("luminus-side-menu-item", a.sideMenuItem, {
|
|
106
|
+
[a.expanded]: s
|
|
107
|
+
}), children: /* @__PURE__ */ e.jsx(w, { item: n, menuExpanded: s, children: /* @__PURE__ */ e.jsxs(c, { to: n.linkTo ?? "/", className: o("nav-link", a.navButton), children: [
|
|
108
|
+
/* @__PURE__ */ e.jsx("div", { className: o("icon", a.icon), children: n.icon }),
|
|
109
|
+
s && /* @__PURE__ */ e.jsx("div", { className: o("text", a.text, "text-nowrap"), children: n.title })
|
|
110
110
|
] }) }) });
|
|
111
|
-
},
|
|
112
|
-
"side-menu": "_side-
|
|
113
|
-
sideMenu:
|
|
114
|
-
"sidebar-header": "_sidebar-
|
|
115
|
-
sidebarHeader:
|
|
116
|
-
"side-menu-content": "_side-menu-
|
|
117
|
-
sideMenuContent:
|
|
118
|
-
expand:
|
|
119
|
-
},
|
|
120
|
-
const [
|
|
121
|
-
|
|
111
|
+
}, ce = "_side-menu_s0700_1", ie = "_sidebar-header_s0700_14", re = "_side-menu-content_s0700_19", de = "_expand_s0700_23", f = {
|
|
112
|
+
"side-menu": "_side-menu_s0700_1",
|
|
113
|
+
sideMenu: ce,
|
|
114
|
+
"sidebar-header": "_sidebar-header_s0700_14",
|
|
115
|
+
sidebarHeader: ie,
|
|
116
|
+
"side-menu-content": "_side-menu-content_s0700_19",
|
|
117
|
+
sideMenuContent: re,
|
|
118
|
+
expand: de
|
|
119
|
+
}, Ce = ({ headerItem: n, mainItems: s, secondaryItems: t, expanded: l, setExpanded: c }) => {
|
|
120
|
+
const [p, d] = O(-1), m = (u) => {
|
|
121
|
+
d(u === p ? -1 : u);
|
|
122
122
|
};
|
|
123
123
|
return A(() => {
|
|
124
|
-
|
|
125
|
-
}, [
|
|
126
|
-
[
|
|
127
|
-
}, { expand:
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
124
|
+
l || d(-1);
|
|
125
|
+
}, [l]), /* @__PURE__ */ e.jsxs("section", { className: o("luminus-side-menu", f.sideMenu, "shadow", {
|
|
126
|
+
[f.expand]: l
|
|
127
|
+
}, { expand: l }), onMouseEnter: () => c(!0), onMouseLeave: () => c(!1), children: [
|
|
128
|
+
/* @__PURE__ */ e.jsx("div", { className: o("sidebar-header", f.sidebarHeader), children: n }),
|
|
129
|
+
/* @__PURE__ */ e.jsxs("ul", { className: f.sideMenuContent, children: [
|
|
130
|
+
s.map((u, _) => /* @__PURE__ */ e.jsx(B, { item: u, menuExpanded: l, collapsed: _ === p, onCollapse: () => m(_) }, u.title)),
|
|
131
|
+
/* @__PURE__ */ e.jsx("hr", {}),
|
|
132
|
+
t.map((u, _) => /* @__PURE__ */ e.jsx(B, { item: u, menuExpanded: l, collapsed: _ === p, onCollapse: () => m(_) }, u.title))
|
|
133
133
|
] })
|
|
134
134
|
] });
|
|
135
|
-
},
|
|
136
|
-
"top-bar": "_top-
|
|
137
|
-
topBar:
|
|
138
|
-
"top-bar-brand": "_top-bar-
|
|
139
|
-
topBarBrand:
|
|
140
|
-
},
|
|
141
|
-
const { LinkComponent: t } = M
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
135
|
+
}, ue = "_top-bar_1t428_1", pe = "_top-bar-brand_1t428_11", I = {
|
|
136
|
+
"top-bar": "_top-bar_1t428_1",
|
|
137
|
+
topBar: ue,
|
|
138
|
+
"top-bar-brand": "_top-bar-brand_1t428_11",
|
|
139
|
+
topBarBrand: pe
|
|
140
|
+
}, we = ({ appName: n, children: s }) => {
|
|
141
|
+
const { LinkComponent: t } = g(M);
|
|
142
|
+
return /* @__PURE__ */ e.jsxs("nav", { className: o("shadow luminus-top-bar", I.topBar), children: [
|
|
143
|
+
/* @__PURE__ */ e.jsx(t, { to: "/", className: o("luminus-top-bar-brand", I.topBarBrand), children: n }),
|
|
144
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-100 d-flex justify-content-end align-items-center gap-2", children: s })
|
|
145
145
|
] });
|
|
146
|
-
},
|
|
146
|
+
}, _e = "_side-content-bar_17kwd_1", me = {
|
|
147
147
|
"side-content-bar": "_side-content-bar_17kwd_1",
|
|
148
|
-
sideContentBar:
|
|
149
|
-
},
|
|
150
|
-
width: `${
|
|
151
|
-
}, children: s }),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
s && /* @__PURE__ */
|
|
154
|
-
] }),
|
|
148
|
+
sideContentBar: _e
|
|
149
|
+
}, xe = ({ width: n, children: s }) => /* @__PURE__ */ e.jsx("section", { className: o("shadow luminus-side-content-bar", me.sideContentBar), style: {
|
|
150
|
+
width: `${n}px`
|
|
151
|
+
}, children: s }), Be = ({ children: n, sideContent: s }) => /* @__PURE__ */ e.jsxs("div", { className: "container-fluid p-3", children: [
|
|
152
|
+
/* @__PURE__ */ e.jsx("div", { style: { paddingRight: s ? "250px" : void 0 }, children: n }),
|
|
153
|
+
s && /* @__PURE__ */ e.jsx(xe, { width: 250, children: s })
|
|
154
|
+
] }), he = "_full-screen-container_1c9bu_1", fe = {
|
|
155
155
|
"full-screen-container": "_full-screen-container_1c9bu_1",
|
|
156
|
-
fullScreenContainer:
|
|
157
|
-
},
|
|
156
|
+
fullScreenContainer: he
|
|
157
|
+
}, Ie = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: o("container-fluid p-3 overflow-hidden luminus-full-screen-container", fe.fullScreenContainer), children: n });
|
|
158
158
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
Ie as FullScreenContainer,
|
|
160
|
+
Be as MainContainer,
|
|
161
|
+
xe as SideContentBar,
|
|
162
|
+
Ce as SideMenu,
|
|
163
|
+
we as TopBar
|
|
164
164
|
};
|