react-luminus-components 1.0.0 → 1.0.1
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/dist/.vite/manifest.json +52 -52
- package/dist/{useAxios-ZEhq7C_H.js → HomeDashboard.module-BI8obEZ_.js} +30 -30
- package/dist/{useAxios-BU-BqYrK.mjs → HomeDashboard.module-CuVVnp4t.mjs} +220 -219
- package/dist/Modal-DmUjIS_Q.js +1 -0
- package/dist/{Modal-_FnSEPRk.mjs → Modal-DsY3WNWM.mjs} +2 -2
- package/dist/SimpleTooltip-CqpIzhpc.js +1 -0
- package/dist/{SimpleTooltip-BjlbHsKC.mjs → SimpleTooltip-vqBAkdBP.mjs} +2 -2
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +1 -3
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +2 -1
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +3 -2
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +40 -38
- package/dist/{hasClass-3JW9Qluf.mjs → hasClass-D3KZs5y_.mjs} +1 -1
- package/dist/{hasClass-6m1Qq_DA.js → hasClass-DABt6TfW.js} +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +70 -70
- package/dist/useConfirm-CQCMwQlb.js +1 -0
- package/dist/{useConfirm-DH9Pmz_w.mjs → useConfirm-Yw2xz-A-.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Modal-JLnYbEat.js +0 -1
- package/dist/SimpleTooltip-D9shMl1R.js +0 -1
- package/dist/useConfirm-BazFQNRI.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const b=require("react"),T=require("./useAxios-ZEhq7C_H.js"),O=require("./hasClass-6m1Qq_DA.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 q=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,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(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),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);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(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(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,Me({key:r},t.attr),yt(t.child)))}function U(e){return t=>b.createElement(ir,je({attr:Me({},e.attr)},t),yt(e.child))}function ir(e){var t=r=>{var{attr:n,size:i,title:o}=e,c=Zt(e,Qt),s=i||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:Me(Me({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&b.createElement("title",null,o),e.children)};return et!==void 0?b.createElement(et.Consumer,null,r=>t(r)):t(gt)}function or(e){return U({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 U({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 U({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 U({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 U({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 U({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 U({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 dr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}function pr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},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 vr(e){var t=hr(e,"string");return typeof t=="symbol"?t:String(t)}function hr(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),i=b.useState(t),o=i[0],c=i[1],s=e!==void 0,a=n.current;return n.current=s,!s&&a&&o!==t&&c(t),[s?e:o,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 mr(e,t){return Object.keys(t).reduce(function(r,n){var i,o=r,c=o[rt(n)],s=o[n],a=O._objectWithoutPropertiesLoose(o,[rt(n),n].map(vr)),l=t[n],u=wt(s,c,e[l]),p=u[0],h=u[1];return Se({},a,(i={},i[n]=p,i[l]=h,i))},e)}const Be=2**31-1;function bt(e,t,r){const n=r-Date.now();e.current=n<=Be?setTimeout(t,n):setTimeout(()=>bt(e,t,r),Be)}function gr(){const e=O.useMounted(),t=b.useRef();return O.useWillUnmount(()=>clearTimeout(t.current)),b.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(i,o=0){e()&&(r(),o<=Be?t.current=setTimeout(i,o):bt(t,i,Date.now()+o))}return{set:n,clear:r,handleRef:t}},[])}var nt=Object.prototype.hasOwnProperty;function it(e,t,r){for(r of e.keys())if(ce(r,t))return r}function ce(e,t){var r,n,i;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(i=n,i&&typeof i=="object"&&(i=it(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=it(t,i),!i)||!ce(n[1],t.get(i)))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 yr(e){const t=O.useMounted();return[e[0],b.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var $="top",z="bottom",W="right",L="left",ke="auto",ve=[$,z,W,L],re="start",de="end",wr="clippingParents",Ot="viewport",ue="popper",br="reference",ot=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])},[]),Or="beforeRead",xr="read",Er="afterRead",jr="beforeMain",Mr="main",Rr="afterMain",Pr="beforeWrite",Cr="write",Ar="afterWrite",Dr=[Or,xr,Er,jr,Mr,Rr,Pr,Cr,Ar];function V(e){return e.split("-")[0]}function N(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ee(e){var t=N(e).Element;return e instanceof t||e instanceof Element}function _(e){var t=N(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function He(e){if(typeof ShadowRoot>"u")return!1;var t=N(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Z=Math.max,Re=Math.min,ne=Math.round;function $e(){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($e())}function ie(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&_(e)&&(i=e.offsetWidth>0&&ne(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ne(n.height)/e.offsetHeight||1);var c=ee(e)?N(e):window,s=c.visualViewport,a=!Et()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/i,u=(n.top+(a&&s?s.offsetTop:0))/o,p=n.width/i,h=n.height/o;return{width:p,height:h,top:u,right:l+p,bottom:u+h,left:l,x:l,y:u}}function Ne(e){var t=ie(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&&He(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function X(e){return e?(e.nodeName||"").toLowerCase():null}function I(e){return N(e).getComputedStyle(e)}function Tr(e){return["table","td","th"].indexOf(X(e))>=0}function Y(e){return((ee(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(He(e)?e.host:null)||Y(e)}function at(e){return!_(e)||I(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&_(e)){var n=I(e);if(n.position==="fixed")return null}var i=Pe(e);for(He(i)&&(i=i.host);_(i)&&["html","body"].indexOf(X(i))<0;){var o=I(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function he(e){for(var t=N(e),r=at(e);r&&Tr(r)&&I(r).position==="static";)r=at(r);return r&&(X(r)==="html"||X(r)==="body"&&I(r).position==="static")?t:r||Sr(e)||t}function ze(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function le(e,t,r){return Z(e,Re(t,r))}function Br(e,t,r){var n=le(e,t,r);return n>r?r:n}function Mt(){return{top:0,right:0,bottom:0,left:0}}function Rt(e){return Object.assign({},Mt(),e)}function Pt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var $r=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Rt(typeof t!="number"?t:Pt(t,ve))};function Lr(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,c=r.modifiersData.popperOffsets,s=V(r.placement),a=ze(s),l=[L,W].indexOf(s)>=0,u=l?"height":"width";if(!(!o||!c)){var p=$r(i.padding,r),h=Ne(o),d=a==="y"?$:L,v=a==="y"?z:W,g=r.rects.reference[u]+r.rects.reference[a]-c[a]-r.rects.popper[u],f=c[a]-r.rects.reference[a],y=he(o),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,M=le(w,x,j),P=a;r.modifiersData[n]=(t={},t[P]=M,t.centerOffset=M-x,t)}}function kr(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||jt(t.elements.popper,i)&&(t.elements.arrow=i))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:Lr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zr(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:ne(r*i)/i||0,y:ne(n*i)/i||0}}function st(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=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=$,j=window;if(l){var x=he(r),M="clientHeight",P="clientWidth";if(x===N(r)&&(x=Y(r),I(x).position!=="static"&&s==="absolute"&&(M="scrollHeight",P="scrollWidth")),x=x,i===$||(i===L||i===W)&&o===de){w=z;var C=p&&x===j&&j.visualViewport?j.visualViewport.height:x[M];g-=C-n.height,g*=a?1:-1}if(i===L||(i===$||i===z)&&o===de){E=W;var R=p&&x===j&&j.visualViewport?j.visualViewport.width:x[P];d-=R-n.width,d*=a?1:-1}}var A=Object.assign({position:s},l&&Nr),k=u===!0?zr({x:d,y:g},N(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 Wr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,c=o===void 0?!0:o,s=r.roundOffsets,a=s===void 0?!0:s,l={placement:V(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,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 Fr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wr,data:{}};var Oe={passive:!0};function Vr(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,c=n.resize,s=c===void 0?!0:c,a=N(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",r.update,Oe)}),s&&a.addEventListener("resize",r.update,Oe),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",r.update,Oe)}),s&&a.removeEventListener("resize",r.update,Oe)}}const _r={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Ir={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Ir[t]})}var Ur={start:"end",end:"start"};function ut(e){return e.replace(/start|end/g,function(t){return Ur[t]})}function We(e){var t=N(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fe(e){return ie(Y(e)).left+We(e).scrollLeft}function Kr(e,t){var r=N(e),n=Y(e),i=r.visualViewport,o=n.clientWidth,c=n.clientHeight,s=0,a=0;if(i){o=i.width,c=i.height;var l=Et();(l||!l&&t==="fixed")&&(s=i.offsetLeft,a=i.offsetTop)}return{width:o,height:c,x:s+Fe(e),y:a}}function qr(e){var t,r=Y(e),n=We(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Z(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),c=Z(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Fe(e),a=-n.scrollTop;return I(i||r).direction==="rtl"&&(s+=Z(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:c,x:s,y:a}}function Ve(e){var t=I(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ct(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:_(e)&&Ve(e)?e:Ct(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var n=Ct(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=N(n),c=i?[o].concat(o.visualViewport||[],Ve(n)?n:[]):n,s=t.concat(c);return i?s:s.concat(fe(Pe(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 Xr(e,t){var r=ie(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(Kr(e,r)):ee(t)?Xr(t,r):Le(qr(Y(e)))}function Yr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(I(e).position)>=0,n=r&&_(e)?he(e):e;return ee(n)?t.filter(function(i){return ee(i)&&jt(i,n)&&X(i)!=="body"}):[]}function Gr(e,t,r,n){var i=t==="clippingParents"?Yr(e):[].concat(t),o=[].concat(i,[r]),c=o[0],s=o.reduce(function(a,l){var u=ct(e,l,n);return a.top=Z(u.top,a.top),a.right=Re(u.right,a.right),a.bottom=Re(u.bottom,a.bottom),a.left=Z(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,i=n?V(n):null,o=n?oe(n):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,a;switch(i){case $:a={x:c,y:t.y-r.height};break;case z:a={x:c,y:t.y+t.height};break;case W: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=i?ze(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){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,i=n===void 0?e.placement:n,o=r.strategy,c=o===void 0?e.strategy:o,s=r.boundary,a=s===void 0?wr: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=Rt(typeof f!="number"?f:Pt(f,ve)),m=h===ue?br:ue,E=e.rects.popper,w=e.elements[v?m:h],j=Gr(ee(w)?w:w.contextElement||Y(e.elements.popper),a,u,c),x=ie(e.elements.reference),M=At({reference:x,element:E,strategy:"absolute",placement:i}),P=Le(Object.assign({},E,M)),C=h===ue?P:x,R={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[i];Object.keys(R).forEach(function(D){var B=[W,z].indexOf(D)>=0?1:-1,S=[$,z].indexOf(D)>=0?"y":"x";R[D]+=k[S]*B})}return R}function Jr(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,c=r.padding,s=r.flipVariations,a=r.allowedAutoPlacements,l=a===void 0?xt:a,u=oe(n),p=u?s?ot:ot.filter(function(v){return oe(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:i,rootBoundary:o,padding:c})[V(g)],v},{});return Object.keys(d).sort(function(v,g){return d[v]-d[g]})}function Qr(e){if(V(e)===ke)return[];var t=xe(e);return[ut(e),t,ut(t)]}function Zr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,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=V(f),m=y===f,E=a||(m||!v?[xe(f)]:Qr(f)),w=[f].concat(E).reduce(function(te,K){return te.concat(V(K)===ke?Jr(t,{placement:K,boundary:u,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:g}):K)},[]),j=t.rects.reference,x=t.rects.popper,M=new Map,P=!0,C=w[0],R=0;R<w.length;R++){var A=w[R],k=V(A),D=oe(A)===re,B=[$,z].indexOf(k)>=0,S=B?"width":"height",H=pe(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:h,padding:l}),F=B?D?W:L:D?z:$;j[S]>x[S]&&(F=xe(F));var me=xe(F),G=[];if(o&&G.push(H[k]<=0),s&&G.push(H[F]<=0,H[me]<=0),G.every(function(te){return te})){C=A,P=!1;break}M.set(A,G)}if(P)for(var ge=v?3:1,Ce=function(K){var se=w.find(function(we){var J=M.get(we);if(J)return J.slice(0,K).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 en={name:"flip",enabled:!0,phase:"main",fn:Zr,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[$,W,z,L].some(function(t){return e[t]>=0})}function tn(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),a=lt(c,n),l=lt(s,i,o),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 rn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tn};function nn(e,t,r){var n=V(e),i=[L,$].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=o[0],s=o[1];return c=c||0,s=(s||0)*i,[L,W].indexOf(n)>=0?{x:s,y:c}:{x:c,y:s}}function on(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,c=xt.reduce(function(u,p){return u[p]=nn(p,t.rects,o),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 an={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:on};function sn(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 un={name:"popperOffsets",enabled:!0,phase:"read",fn:sn,data:{}};function cn(e){return e==="x"?"y":"x"}function ln(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,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=V(t.placement),m=oe(t.placement),E=!m,w=ze(y),j=cn(w),x=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=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(o){var D,B=w==="y"?$:L,S=w==="y"?z:W,H=w==="y"?"height":"width",F=x[w],me=F+f[B],G=F-f[S],ge=d?-P[H]/2:0,Ce=m===re?M[H]:P[H],ae=m===re?-P[H]:-M[H],ye=t.elements.arrow,te=d&&ye?Ne(ye):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mt(),se=K[B],we=K[S],J=le(0,M[H],te[H]),Ae=E?M[H]/2-ge-J-se-R.mainAxis:Ce-J-se-R.mainAxis,It=E?-M[H]/2+ge+J+we+R.mainAxis:ae+J+we+R.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=F+Ae-Ue-Ut,qt=F+It-Ue,Ke=le(d?Re(me,Kt):me,F,d?Z(G,qt):G);x[w]=Ke,k[w]=Ke-F}if(s){var qe,Xt=w==="x"?$:L,Yt=w==="x"?z:W,Q=x[j],be=j==="y"?"height":"width",Xe=Q+f[Xt],Ye=Q-f[Yt],Te=[$,L].indexOf(y)!==-1,Ge=(qe=A==null?void 0:A[j])!=null?qe:0,Je=Te?Xe:Q-M[be]-P[be]-Ge+R.altAxis,Qe=Te?Q+M[be]+P[be]-Ge-R.altAxis:Ye,Ze=d&&Te?Br(Je,Q,Qe):le(d?Je:Xe,Q,d?Qe:Ye);x[j]=Ze,k[j]=Ze-Q}t.modifiersData[n]=k}}const fn={name:"preventOverflow",enabled:!0,phase:"main",fn:ln,requiresIfExists:["offset"]};function dn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pn(e){return e===N(e)||!_(e)?We(e):dn(e)}function vn(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 hn(e,t,r){r===void 0&&(r=!1);var n=_(t),i=_(t)&&vn(t),o=Y(t),c=ie(e,i,r),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!r)&&((X(t)!=="body"||Ve(o))&&(s=pn(t)),_(t)?(a=ie(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Fe(o))),{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function mn(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var a=t.get(s);a&&i(a)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function gn(e){var t=mn(e);return Dr.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function yn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function wn(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.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 bn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?dt:i;return function(s,a,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,o),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({},o,u.options,m),u.scrollParents={reference:ee(s)?fe(s):s.contextElement?fe(s.contextElement):[],popper:fe(a)};var E=gn(wn([].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:hn(m,he(E),u.options.strategy==="fixed"),popper:Ne(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.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,M=j.options,P=M===void 0?{}:M,C=j.name;typeof x=="function"&&(u=x({state:u,options:P,name:C,instance:d})||u)}}}},update:yn(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 On=bn({defaultModifiers:[rn,un,Fr,_r,an,en,fn,Hr]}),xn=["enabled","placement","strategy","modifiers"];function En(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}const jn={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Mn={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(i=>i.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,i=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&i==="tooltip"&&"setAttribute"in n){const o=n.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",o?`${o},${r.id}`:r.id)}}},Rn=[];function Dt(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:o="absolute",modifiers:c=Rn}=r,s=En(r,xn);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]=yr(b.useState({placement:i,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:i,strategy:o,modifiers:[...g,v,jn]})},[o,i,v,n,g]),b.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=On(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,Mn,v]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,d(f=>Object.assign({},f,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h}var Pn=process.env.NODE_ENV!=="production",Tt=function(){};if(Pn){var Cn=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var i=1;i<n;i++)r[i-1]=arguments[i];var o=0,c="Warning: "+t.replace(/%s/g,function(){return r[o++]});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 i=2;i<n;i++)r[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Cn.apply(null,[t].concat(r))}}var An=Tt;const _e=T.getDefaultExportFromCjs(An),vt=()=>{};function Dn(e){return e.button===0}function Tn(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 i=b.useRef(!1),o=b.useRef(!1),c=b.useCallback(l=>{const u=Ee(e);_e(!!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"),i.current=!u||Tn(l)||!Dn(l)||!!O.contains(u,l.target)||o.current,o.current=!1},[e]),s=O.useEventCallback(l=>{const u=Ee(e);u&&O.contains(u,l.target)&&(o.current=!0)}),a=O.useEventCallback(l=>{i.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 Sn(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function Bn(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Bt({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:o,containerPadding:c,arrowElement:s,popperConfig:a={}}){var l,u,p,h,d;const v=Sn(a.modifiers);return Object.assign({},a,{placement:r,enabled:e,strategy:o?"fixed":a.strategy,modifiers:Bn(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:i},(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 $n=()=>{};function Ln(e,t,{disabled:r,clickTrigger:n}={}){const i=t||$n;St(e,i,{disabled:r,clickTrigger:n});const o=O.useEventCallback(c=>{O.isEscKey(c)&&i(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}o(l)});return()=>{a()}},[e,r,o])}const $t=q.forwardRef((e,t)=>{const{flip:r,offset:n,placement:i,containerPadding:o,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,Bt({placement:i,enableEvents:!!e.show,containerPadding:o||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(Ln(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;const{onExit:j,onExiting:x,onEnter:M,onEntering:P,onEntered:C}=e;let R=e.children(Object.assign({},m.attributes.popper,{style:m.styles.popper,ref:d}),{popper:m,placement:i,show:!!e.show,arrowProps:Object.assign({},m.attributes.arrow,{style:m.styles.arrow,ref:h})});return R=O.renderTransition(s,a,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:j,onExiting:x,onExited:E,onEnter:M,onEntering:P,onEntered:C}),v?Gt.createPortal(R,v):null});$t.displayName="Overlay";const kn=$t,Lt=q.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=O.useBootstrapPrefix(t,"popover-header"),T.jsxRuntimeExports.jsx(r,{ref:i,className:T.classNames(e,t),...n})));Lt.displayName="PopoverHeader";const Hn=Lt,kt=q.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=O.useBootstrapPrefix(t,"popover-body"),T.jsxRuntimeExports.jsx(r,{ref:i,className:T.classNames(e,t),...n})));kt.displayName="PopoverBody";const Ht=kt;function Nt(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function zt(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Nn=q.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:i,body:o,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=Nt(v,d);let f=n;return l&&!s&&(f={...n,...zt(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}),o?T.jsxRuntimeExports.jsx(Ht,{children:i}):i]})}),Wt=Object.assign(Nn,{Header:Hn,Body:Ht,POPPER_OFFSET:[0,8]}),Ft=q.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:i,arrowProps:o,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=Nt(h,p);let v=n;return a&&!c&&(v={...n,...zt(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",...o}),T.jsxRuntimeExports.jsx("div",{className:`${e}-inner`,children:i})]})});Ft.displayName="Tooltip";const Ie=Object.assign(Ft,{TOOLTIP_OFFSET:[0,6]});function zn(e){const t=b.useRef(null),r=O.useBootstrapPrefix(void 0,"popover"),n=O.useBootstrapPrefix(void 0,"tooltip"),i=b.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(O.hasClass(t.current,r))return Wt.POPPER_OFFSET;if(O.hasClass(t.current,n))return Ie.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[i]]}function Wn(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=i=>r(O.safeFindDOMNode(i))),t.ref=n.__wrapped||(n.__wrapped=i=>n(O.safeFindDOMNode(i)))}const Vt=q.forwardRef(({children:e,transition:t=O.Fade,popperConfig:r={},rootClose:n=!1,placement:i="top",show:o=!1,...c},s)=>{const a=b.useRef({}),[l,u]=b.useState(null),[p,h]=zn(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(()=>{o||u(null)},[o]),T.jsxRuntimeExports.jsx(kn,{...c,ref:d,popperConfig:{...r,modifiers:h.concat(r.modifiers||[]),onFirstUpdate:g},transition:v,rootClose:n,placement:i,show:o,children:(f,{arrowProps:y,popper:m,show:E})=>{var w,j;Wn(f,y);const x=m==null?void 0:m.placement,M=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}),P=!!l;return typeof e=="function"?e({...f,placement:x,show:E,...!t&&E&&{className:"show"},popper:M,arrowProps:y,hasDoneInitialMeasure:P}):q.cloneElement(e,{...f,placement:x,arrowProps:y,popper:M,hasDoneInitialMeasure:P,className:T.classNames(e.props.className,!t&&E&&"show"),style:{...e.props.style,...f.style}})}})});Vt.displayName="Overlay";const Fn=Vt;function Vn(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function mt(e,t,r){const[n]=t,i=n.currentTarget,o=n.relatedTarget||n.nativeEvent[r];(!o||o!==i)&&!O.contains(i,o)&&e(...t)}O.PropTypes.oneOf(["click","hover","focus"]);const _n=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:i,defaultShow:o=!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=gr(),v=b.useRef(""),[g,f]=wt(i,o,c),y=Vn(s),{onFocus:m,onBlur:E,onClick:w}=typeof r!="function"?q.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]),M=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]),P=b.useCallback((...S)=>{x(),m==null||m(...S)},[x,m]),C=b.useCallback((...S)=>{M(),E==null||E(...S)},[M,E]),R=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(M,S,"toElement")},[M]),D=e==null?[]:[].concat(e),B={ref:j};return D.indexOf("click")!==-1&&(B.onClick=R),D.indexOf("focus")!==-1&&(B.onFocus=P,B.onBlur=C),D.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&_e(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.'),B.onMouseOver=A,B.onMouseOut=k),T.jsxRuntimeExports.jsxs(T.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r(B):b.cloneElement(r,B),T.jsxRuntimeExports.jsx(Fn,{...u,show:g,onHide:M,flip:l,placement:a,popperConfig:n,target:p.current,children:t})]})},_t=_n,In=({text:e,placement:t,children:r})=>T.jsxRuntimeExports.jsx(_t,{placement:t,overlay:T.jsxRuntimeExports.jsx(Ie,{className:"luminus-tooltip",children:e}),children:r});exports.MdClear=or;exports.MdOutlineAddCircleOutline=ur;exports.MdOutlineArrowBack=dr;exports.MdOutlineDelete=ar;exports.MdOutlineExpand=sr;exports.MdOutlineKeyboardArrowDown=cr;exports.MdOutlineKeyboardArrowLeft=lr;exports.MdOutlineKeyboardArrowRight=fr;exports.MdOutlineMenu=pr;exports.OverlayTrigger=_t;exports.Popover=Wt;exports.SimpleTooltip=In;exports.Tooltip=Ie;exports.mergeOptionsWithPopperConfig=Bt;exports.useClickOutside=St;exports.usePopper=Dt;exports.useUncontrolled=mr;exports.warning=_e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const C=require("./useAxios-ZEhq7C_H.js"),f=require("react");let n;const m=()=>{const{show:e,text:r,showConfirm:s,hideConfirm:t}=f.useContext(C.ConfirmContext),o=()=>{t()};return{confirm:async c=>(s(c),new Promise(i=>{n=i})),onConfirm:()=>{o(),n(!0)},onCancel:()=>{o(),n(!1)},show:e,text:r}};exports.useConfirm=m;
|