react-luminus-components 1.2.71 → 1.2.73

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.
@@ -1,44 +1,44 @@
1
1
  {
2
- "_EventType-C7yHDXD-.cjs": {
3
- "file": "EventType-C7yHDXD-.cjs",
2
+ "_EventType-BYwx1aU3.cjs": {
3
+ "file": "EventType-BYwx1aU3.cjs",
4
4
  "name": "EventType",
5
5
  "imports": [
6
- "_NoInputContainer-CAwCEVT5.cjs"
6
+ "_NoInputContainer-BMw6_o8g.cjs"
7
7
  ]
8
8
  },
9
- "_EventType-CnIS_MxK.js": {
10
- "file": "EventType-CnIS_MxK.js",
9
+ "_EventType-CtFbVRB_.js": {
10
+ "file": "EventType-CtFbVRB_.js",
11
11
  "name": "EventType",
12
12
  "imports": [
13
- "_NoInputContainer-BnAPYzCz.js"
13
+ "_NoInputContainer-B6VOLjlx.js"
14
14
  ]
15
15
  },
16
- "_NoInputContainer-BnAPYzCz.js": {
17
- "file": "NoInputContainer-BnAPYzCz.js",
16
+ "_NoInputContainer-B6VOLjlx.js": {
17
+ "file": "NoInputContainer-B6VOLjlx.js",
18
18
  "name": "NoInputContainer",
19
19
  "imports": [
20
20
  "_textUtils-BbxuIsKq.js"
21
21
  ]
22
22
  },
23
- "_NoInputContainer-CAwCEVT5.cjs": {
24
- "file": "NoInputContainer-CAwCEVT5.cjs",
23
+ "_NoInputContainer-BMw6_o8g.cjs": {
24
+ "file": "NoInputContainer-BMw6_o8g.cjs",
25
25
  "name": "NoInputContainer",
26
26
  "imports": [
27
27
  "_textUtils-CHVVh2oi.cjs"
28
28
  ]
29
29
  },
30
- "_SimpleTooltip-DsGhy1Oy.cjs": {
31
- "file": "SimpleTooltip-DsGhy1Oy.cjs",
30
+ "_SimpleTooltip-AU3G1UCk.js": {
31
+ "file": "SimpleTooltip-AU3G1UCk.js",
32
32
  "name": "SimpleTooltip",
33
33
  "imports": [
34
- "_NoInputContainer-CAwCEVT5.cjs"
34
+ "_NoInputContainer-B6VOLjlx.js"
35
35
  ]
36
36
  },
37
- "_SimpleTooltip-ty5BQkX3.js": {
38
- "file": "SimpleTooltip-ty5BQkX3.js",
37
+ "_SimpleTooltip-BRu35hBA.cjs": {
38
+ "file": "SimpleTooltip-BRu35hBA.cjs",
39
39
  "name": "SimpleTooltip",
40
40
  "imports": [
41
- "_NoInputContainer-BnAPYzCz.js"
41
+ "_NoInputContainer-BMw6_o8g.cjs"
42
42
  ]
43
43
  },
44
44
  "_dateUtils-CWKBTsx7.cjs": {
@@ -63,18 +63,18 @@
63
63
  "file": "textUtils-CHVVh2oi.cjs",
64
64
  "name": "textUtils"
65
65
  },
66
- "_useConfirm-D_-tO0nr.cjs": {
67
- "file": "useConfirm-D_-tO0nr.cjs",
66
+ "_useConfirm-Csp-DPDa.js": {
67
+ "file": "useConfirm-Csp-DPDa.js",
68
68
  "name": "useConfirm",
69
69
  "imports": [
70
- "_NoInputContainer-CAwCEVT5.cjs"
70
+ "_NoInputContainer-B6VOLjlx.js"
71
71
  ]
72
72
  },
73
- "_useConfirm-Td63xw5L.js": {
74
- "file": "useConfirm-Td63xw5L.js",
73
+ "_useConfirm-XkaUQify.cjs": {
74
+ "file": "useConfirm-XkaUQify.cjs",
75
75
  "name": "useConfirm",
76
76
  "imports": [
77
- "_NoInputContainer-BnAPYzCz.js"
77
+ "_NoInputContainer-BMw6_o8g.cjs"
78
78
  ]
79
79
  },
80
80
  "_useFormControlType-BAFqxupC.js": {
@@ -85,18 +85,18 @@
85
85
  "file": "useFormControlType-Dqz8sV4J.cjs",
86
86
  "name": "useFormControlType"
87
87
  },
88
- "_usePermissions-Cv-1FsfG.cjs": {
89
- "file": "usePermissions-Cv-1FsfG.cjs",
88
+ "_usePermissions-BGA3fWpK.cjs": {
89
+ "file": "usePermissions-BGA3fWpK.cjs",
90
90
  "name": "usePermissions",
91
91
  "imports": [
92
- "_NoInputContainer-CAwCEVT5.cjs"
92
+ "_NoInputContainer-BMw6_o8g.cjs"
93
93
  ]
94
94
  },
95
- "_usePermissions-Dn_gKjni.js": {
96
- "file": "usePermissions-Dn_gKjni.js",
95
+ "_usePermissions-YJIPNrrU.js": {
96
+ "file": "usePermissions-YJIPNrrU.js",
97
97
  "name": "usePermissions",
98
98
  "imports": [
99
- "_NoInputContainer-BnAPYzCz.js"
99
+ "_NoInputContainer-B6VOLjlx.js"
100
100
  ]
101
101
  },
102
102
  "src/contexts/index.ts": {
@@ -105,9 +105,9 @@
105
105
  "src": "src/contexts/index.ts",
106
106
  "isEntry": true,
107
107
  "imports": [
108
- "_NoInputContainer-CAwCEVT5.cjs",
109
- "_useConfirm-D_-tO0nr.cjs",
110
- "_EventType-C7yHDXD-.cjs"
108
+ "_NoInputContainer-BMw6_o8g.cjs",
109
+ "_useConfirm-XkaUQify.cjs",
110
+ "_EventType-BYwx1aU3.cjs"
111
111
  ]
112
112
  },
113
113
  "src/hooks/index.ts": {
@@ -116,12 +116,12 @@
116
116
  "src": "src/hooks/index.ts",
117
117
  "isEntry": true,
118
118
  "imports": [
119
- "_NoInputContainer-CAwCEVT5.cjs",
120
- "_useConfirm-D_-tO0nr.cjs",
119
+ "_NoInputContainer-BMw6_o8g.cjs",
120
+ "_useConfirm-XkaUQify.cjs",
121
121
  "_textUtils-CHVVh2oi.cjs",
122
122
  "_dateUtils-CWKBTsx7.cjs",
123
123
  "_useFormControlType-Dqz8sV4J.cjs",
124
- "_usePermissions-Cv-1FsfG.cjs"
124
+ "_usePermissions-BGA3fWpK.cjs"
125
125
  ]
126
126
  },
127
127
  "src/layout/index.ts": {
@@ -130,9 +130,9 @@
130
130
  "src": "src/layout/index.ts",
131
131
  "isEntry": true,
132
132
  "imports": [
133
- "_NoInputContainer-CAwCEVT5.cjs",
134
- "_usePermissions-Cv-1FsfG.cjs",
135
- "_SimpleTooltip-DsGhy1Oy.cjs"
133
+ "_NoInputContainer-BMw6_o8g.cjs",
134
+ "_usePermissions-BGA3fWpK.cjs",
135
+ "_SimpleTooltip-BRu35hBA.cjs"
136
136
  ]
137
137
  },
138
138
  "src/main.ts": {
@@ -141,11 +141,11 @@
141
141
  "src": "src/main.ts",
142
142
  "isEntry": true,
143
143
  "imports": [
144
- "_NoInputContainer-CAwCEVT5.cjs",
145
- "_EventType-C7yHDXD-.cjs",
144
+ "_NoInputContainer-BMw6_o8g.cjs",
145
+ "_EventType-BYwx1aU3.cjs",
146
146
  "_textUtils-CHVVh2oi.cjs",
147
147
  "_useFormControlType-Dqz8sV4J.cjs",
148
- "_SimpleTooltip-DsGhy1Oy.cjs"
148
+ "_SimpleTooltip-BRu35hBA.cjs"
149
149
  ]
150
150
  },
151
151
  "src/utils/index.ts": {
@@ -1 +1 @@
1
- "use strict";const s=require("./NoInputContainer-CAwCEVT5.cjs"),c=require("react"),De=require("react-dom");function Fe(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const u=Fe(c),Ue="_loading_14qfh_1",We="_spinner-grow_14qfh_10",Ge="_second_14qfh_14",Ke="_third_14qfh_17",b={loading:Ue,"spinner-grow":"_spinner-grow_14qfh_10",spinnerGrow:We,second:Ge,third:Ke},qe=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",b.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary",b.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary",b.third),role:"status"})]}),xe=t=>u.forwardRef((e,n)=>s.jsxRuntimeExports.jsx("div",{...e,ref:n,className:s.classNames(e.className,t)}));function Ce(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const He={"aria-label":s.PropTypes.string,onClick:s.PropTypes.func,variant:s.PropTypes.oneOf(["white"])},Z=u.forwardRef(({className:t,variant:e,"aria-label":n="Close",...o},r)=>s.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:s.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":n,...o}));Z.displayName="CloseButton";Z.propTypes=He;var $e=Function.prototype.bind.call(Function.prototype.call,[].slice);function C(t,e){return $e(t.querySelectorAll(e))}const Pe="data-rr-ui-";function ve(t){return`${Pe}${t}`}var X;function ge(t){if((!X&&X!==0||t)&&s.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),X=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return X}function de(t){t===void 0&&(t=s.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ze(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const Re=ve("modal-open");class fe{constructor({ownerDocument:e,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ze(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[o]:r.style[o]},e.scrollBarWidth&&(n[o]=`${parseInt(s.style(r,o)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Re,""),s.style(r,n)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const n=this.getElement();n.removeAttribute(Re),Object.assign(n.style,e.style)}add(e){let n=this.modals.indexOf(e);return n!==-1||(n=this.modals.length,this.modals.push(e),this.setModalAttributes(e),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(e){const n=this.modals.indexOf(e);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const Ve=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Qe(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}let ue;function Ye(t){return ue||(ue=new fe({ownerDocument:t==null?void 0:t.document})),ue}function Xe(t){const e=s.useWindow(),n=t||Ye(e),o=c.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:c.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:c.useCallback(r=>{o.current.backdrop=r},[])})}const Ne=c.forwardRef((t,e)=>{let{show:n=!1,role:o="dialog",className:r,style:i,children:g,backdrop:f=!0,keyboard:R=!0,onBackdropClick:v,onEscapeKeyDown:E,transition:k,runTransition:T,backdropTransition:N,runBackdropTransition:J,autoFocus:W=!0,enforceFocus:ee=!0,restoreFocus:y=!0,restoreFocusOptions:te,renderDialog:G,renderBackdrop:se=l=>s.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:ne,container:oe,onShow:K,onHide:I=()=>{},onExit:re,onExited:B,onExiting:q,onEnter:H,onEntering:$,onEntered:P}=t,ae=Qe(t,Ve);const p=s.useWindow(),S=s.useWaitForDOMRef(oe),d=Xe(ne),ie=s.useMounted(),z=Ce(n),[x,O]=c.useState(!n),m=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),s.canUseDOM&&!z&&n&&(m.current=de(p==null?void 0:p.document)),n&&x&&O(!1);const h=s.useEventCallback(()=>{if(d.add(),_.current=s.listen(document,"keydown",ce),D.current=s.listen(document,"focus",()=>setTimeout(le),!0),K&&K(),W){var l,Y;const U=de((l=(Y=d.dialog)==null?void 0:Y.ownerDocument)!=null?l:p==null?void 0:p.document);d.dialog&&U&&!s.contains(d.dialog,U)&&(m.current=U,d.dialog.focus())}}),L=s.useEventCallback(()=>{if(d.remove(),_.current==null||_.current(),D.current==null||D.current(),y){var l;(l=m.current)==null||l.focus==null||l.focus(te),m.current=null}});c.useEffect(()=>{!n||!S||h()},[n,S,h]),c.useEffect(()=>{x&&L()},[x,L]),s.useWillUnmount(()=>{L()});const le=s.useEventCallback(()=>{if(!ee||!ie()||!d.isTopModal())return;const l=de(p==null?void 0:p.document);d.dialog&&l&&!s.contains(d.dialog,l)&&d.dialog.focus()}),V=s.useEventCallback(l=>{l.target===l.currentTarget&&(v==null||v(l),f===!0&&I())}),ce=s.useEventCallback(l=>{R&&s.isEscKey(l)&&d.isTopModal()&&(E==null||E(l),l.defaultPrevented||I())}),D=c.useRef(),_=c.useRef(),Q=(...l)=>{O(!0),B==null||B(...l)};if(!S)return null;const w=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},ae,{style:i,className:r,tabIndex:-1});let F=G?G(w):s.jsxRuntimeExports.jsx("div",Object.assign({},w,{children:u.cloneElement(g,{role:"document"})}));F=s.renderTransition(k,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:re,onExiting:q,onExited:Q,onEnter:H,onEntering:$,onEntered:P,children:F});let A=null;return f&&(A=se({ref:d.setBackdropRef,onClick:V}),A=s.renderTransition(N,J,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:A})),s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:De.createPortal(s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[A,F]}),S)})});Ne.displayName="Modal";const Ze=Object.assign(Ne,{Manager:fe});function Je(t,e){t.classList?t.classList.add(e):s.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Te(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function et(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Te(t.className,e):t.setAttribute("class",Te(t.className&&t.className.baseVal||"",e))}const M={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class tt extends fe{adjustAndStore(e,n,o){const r=n.style[e];n.dataset[e]=r,s.style(n,{[e]:`${parseFloat(s.style(n,e))+o}px`})}restore(e,n){const o=n.dataset[e];o!==void 0&&(delete n.dataset[e],s.style(n,{[e]:o}))}setContainerStyle(e){super.setContainerStyle(e);const n=this.getElement();if(Je(n,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";C(n,M.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,e.scrollBarWidth)),C(n,M.STICKY_CONTENT).forEach(i=>this.adjustAndStore(r,i,-e.scrollBarWidth)),C(n,M.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(r,i,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const n=this.getElement();et(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";C(n,M.FIXED_CONTENT).forEach(i=>this.restore(o,i)),C(n,M.STICKY_CONTENT).forEach(i=>this.restore(r,i)),C(n,M.NAVBAR_TOGGLER).forEach(i=>this.restore(r,i))}}let me;function st(t){return me||(me=new tt(t)),me}const ye=u.forwardRef(({className:t,bsPrefix:e,as:n="div",...o},r)=>(e=s.useBootstrapPrefix(e,"modal-body"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));ye.displayName="ModalBody";const Se=u.createContext({onHide(){}}),Ee=u.forwardRef(({bsPrefix:t,className:e,contentClassName:n,centered:o,size:r,fullscreen:i,children:g,scrollable:f,...R},v)=>{t=s.useBootstrapPrefix(t,"modal");const E=`${t}-dialog`,k=typeof i=="string"?`${t}-fullscreen-${i}`:`${t}-fullscreen`;return s.jsxRuntimeExports.jsx("div",{...R,ref:v,className:s.classNames(E,e,r&&`${t}-${r}`,o&&`${E}-centered`,f&&`${E}-scrollable`,i&&k),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames(`${t}-content`,n),children:g})})});Ee.displayName="ModalDialog";const Oe=u.forwardRef(({className:t,bsPrefix:e,as:n="div",...o},r)=>(e=s.useBootstrapPrefix(e,"modal-footer"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));Oe.displayName="ModalFooter";const nt=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:n=!1,onHide:o,children:r,...i},g)=>{const f=c.useContext(Se),R=s.useEventCallback(()=>{f==null||f.onHide(),o==null||o()});return s.jsxRuntimeExports.jsxs("div",{ref:g,...i,children:[r,n&&s.jsxRuntimeExports.jsx(Z,{"aria-label":t,variant:e,onClick:R})]})}),_e=u.forwardRef(({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:o=!1,...r},i)=>(t=s.useBootstrapPrefix(t,"modal-header"),s.jsxRuntimeExports.jsx(nt,{ref:i,...r,className:s.classNames(e,t),closeLabel:n,closeButton:o})));_e.displayName="ModalHeader";const ot=xe("h4"),we=u.forwardRef(({className:t,bsPrefix:e,as:n=ot,...o},r)=>(e=s.useBootstrapPrefix(e,"modal-title"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));we.displayName="ModalTitle";function rt(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}function at(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}const Ae=u.forwardRef(({bsPrefix:t,className:e,style:n,dialogClassName:o,contentClassName:r,children:i,dialogAs:g=Ee,"data-bs-theme":f,"aria-labelledby":R,"aria-describedby":v,"aria-label":E,show:k=!1,animation:T=!0,backdrop:N=!0,keyboard:J=!0,onEscapeKeyDown:W,onShow:ee,onHide:y,container:te,autoFocus:G=!0,enforceFocus:se=!0,restoreFocus:ne=!0,restoreFocusOptions:oe,onEntered:K,onExit:I,onExiting:re,onEnter:B,onEntering:q,onExited:H,backdropClassName:$,manager:P,...ae},p)=>{const[S,d]=c.useState({}),[ie,z]=c.useState(!1),x=c.useRef(!1),O=c.useRef(!1),m=c.useRef(null),[h,L]=s.useCallbackRef(),le=s.useMergedRefs(p,L),V=s.useEventCallback(y),ce=s.useIsRTL();t=s.useBootstrapPrefix(t,"modal");const D=c.useMemo(()=>({onHide:V}),[V]);function _(){return P||st({isRTL:ce})}function Q(a){if(!s.canUseDOM)return;const j=_().getScrollbarWidth()>0,he=a.scrollHeight>s.ownerDocument(a).documentElement.clientHeight;d({paddingRight:j&&!he?ge():void 0,paddingLeft:!j&&he?ge():void 0})}const w=s.useEventCallback(()=>{h&&Q(h.dialog)});s.useWillUnmount(()=>{s.removeEventListener(window,"resize",w),m.current==null||m.current()});const F=()=>{x.current=!0},A=a=>{x.current&&h&&a.target===h.dialog&&(O.current=!0),x.current=!1},l=()=>{z(!0),m.current=s.transitionEnd(h.dialog,()=>{z(!1)})},Y=a=>{a.target===a.currentTarget&&l()},U=a=>{if(N==="static"){Y(a);return}if(O.current||a.target!==a.currentTarget){O.current=!1;return}y==null||y()},je=a=>{J?W==null||W(a):(a.preventDefault(),N==="static"&&l())},be=(a,j)=>{a&&Q(a),B==null||B(a,j)},Me=a=>{m.current==null||m.current(),I==null||I(a)},ke=(a,j)=>{q==null||q(a,j),s.addEventListener(window,"resize",w)},Ie=a=>{a&&(a.style.display=""),H==null||H(a),s.removeEventListener(window,"resize",w)},Be=c.useCallback(a=>s.jsxRuntimeExports.jsx("div",{...a,className:s.classNames(`${t}-backdrop`,$,!T&&"show")}),[T,$,t]),pe={...n,...S};pe.display="block";const Le=a=>s.jsxRuntimeExports.jsx("div",{role:"dialog",...a,style:pe,className:s.classNames(e,t,ie&&`${t}-static`,!T&&"show"),onClick:N?U:void 0,onMouseUp:A,"data-bs-theme":f,"aria-label":E,"aria-labelledby":R,"aria-describedby":v,children:s.jsxRuntimeExports.jsx(g,{...ae,onMouseDown:F,className:o,contentClassName:r,children:i})});return s.jsxRuntimeExports.jsx(Se.Provider,{value:D,children:s.jsxRuntimeExports.jsx(Ze,{show:k,ref:le,backdrop:N,container:te,keyboard:!0,autoFocus:G,enforceFocus:se,restoreFocus:ne,restoreFocusOptions:oe,onEscapeKeyDown:je,onShow:ee,onHide:y,onEnter:be,onEntering:ke,onEntered:K,onExit:Me,onExiting:re,onExited:Ie,manager:_(),transition:T?rt:void 0,backdropTransition:T?at:void 0,renderBackdrop:Be,renderDialog:Le})})});Ae.displayName="Modal";const it=Object.assign(Ae,{Body:ye,Header:_e,Title:we,Footer:Oe,Dialog:Ee,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});/*! @azure/msal-browser v3.14.0 2024-05-07 */const lt={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};exports.CloseButton=Z;exports.EventType=lt;exports.Loading=qe;exports.Modal=it;exports.dataAttr=ve;exports.divWithClassName=xe;exports.qsa=C;exports.usePrevious=Ce;
1
+ "use strict";const s=require("./NoInputContainer-BMw6_o8g.cjs"),c=require("react"),De=require("react-dom");function Fe(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const u=Fe(c),Ue="_loading_14qfh_1",We="_spinner-grow_14qfh_10",Ge="_second_14qfh_14",Ke="_third_14qfh_17",b={loading:Ue,"spinner-grow":"_spinner-grow_14qfh_10",spinnerGrow:We,second:Ge,third:Ke},qe=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",b.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary",b.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary",b.third),role:"status"})]}),xe=t=>u.forwardRef((e,n)=>s.jsxRuntimeExports.jsx("div",{...e,ref:n,className:s.classNames(e.className,t)}));function Ce(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const He={"aria-label":s.PropTypes.string,onClick:s.PropTypes.func,variant:s.PropTypes.oneOf(["white"])},Z=u.forwardRef(({className:t,variant:e,"aria-label":n="Close",...o},r)=>s.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:s.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":n,...o}));Z.displayName="CloseButton";Z.propTypes=He;var $e=Function.prototype.bind.call(Function.prototype.call,[].slice);function C(t,e){return $e(t.querySelectorAll(e))}const Pe="data-rr-ui-";function ve(t){return`${Pe}${t}`}var X;function ge(t){if((!X&&X!==0||t)&&s.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),X=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return X}function de(t){t===void 0&&(t=s.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ze(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const Re=ve("modal-open");class fe{constructor({ownerDocument:e,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ze(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[o]:r.style[o]},e.scrollBarWidth&&(n[o]=`${parseInt(s.style(r,o)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Re,""),s.style(r,n)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const n=this.getElement();n.removeAttribute(Re),Object.assign(n.style,e.style)}add(e){let n=this.modals.indexOf(e);return n!==-1||(n=this.modals.length,this.modals.push(e),this.setModalAttributes(e),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(e){const n=this.modals.indexOf(e);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const Ve=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Qe(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}let ue;function Ye(t){return ue||(ue=new fe({ownerDocument:t==null?void 0:t.document})),ue}function Xe(t){const e=s.useWindow(),n=t||Ye(e),o=c.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:c.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:c.useCallback(r=>{o.current.backdrop=r},[])})}const Ne=c.forwardRef((t,e)=>{let{show:n=!1,role:o="dialog",className:r,style:i,children:g,backdrop:f=!0,keyboard:R=!0,onBackdropClick:v,onEscapeKeyDown:E,transition:k,runTransition:T,backdropTransition:N,runBackdropTransition:J,autoFocus:W=!0,enforceFocus:ee=!0,restoreFocus:y=!0,restoreFocusOptions:te,renderDialog:G,renderBackdrop:se=l=>s.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:ne,container:oe,onShow:K,onHide:I=()=>{},onExit:re,onExited:B,onExiting:q,onEnter:H,onEntering:$,onEntered:P}=t,ae=Qe(t,Ve);const p=s.useWindow(),S=s.useWaitForDOMRef(oe),d=Xe(ne),ie=s.useMounted(),z=Ce(n),[x,O]=c.useState(!n),m=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),s.canUseDOM&&!z&&n&&(m.current=de(p==null?void 0:p.document)),n&&x&&O(!1);const h=s.useEventCallback(()=>{if(d.add(),_.current=s.listen(document,"keydown",ce),D.current=s.listen(document,"focus",()=>setTimeout(le),!0),K&&K(),W){var l,Y;const U=de((l=(Y=d.dialog)==null?void 0:Y.ownerDocument)!=null?l:p==null?void 0:p.document);d.dialog&&U&&!s.contains(d.dialog,U)&&(m.current=U,d.dialog.focus())}}),L=s.useEventCallback(()=>{if(d.remove(),_.current==null||_.current(),D.current==null||D.current(),y){var l;(l=m.current)==null||l.focus==null||l.focus(te),m.current=null}});c.useEffect(()=>{!n||!S||h()},[n,S,h]),c.useEffect(()=>{x&&L()},[x,L]),s.useWillUnmount(()=>{L()});const le=s.useEventCallback(()=>{if(!ee||!ie()||!d.isTopModal())return;const l=de(p==null?void 0:p.document);d.dialog&&l&&!s.contains(d.dialog,l)&&d.dialog.focus()}),V=s.useEventCallback(l=>{l.target===l.currentTarget&&(v==null||v(l),f===!0&&I())}),ce=s.useEventCallback(l=>{R&&s.isEscKey(l)&&d.isTopModal()&&(E==null||E(l),l.defaultPrevented||I())}),D=c.useRef(),_=c.useRef(),Q=(...l)=>{O(!0),B==null||B(...l)};if(!S)return null;const w=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},ae,{style:i,className:r,tabIndex:-1});let F=G?G(w):s.jsxRuntimeExports.jsx("div",Object.assign({},w,{children:u.cloneElement(g,{role:"document"})}));F=s.renderTransition(k,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:re,onExiting:q,onExited:Q,onEnter:H,onEntering:$,onEntered:P,children:F});let A=null;return f&&(A=se({ref:d.setBackdropRef,onClick:V}),A=s.renderTransition(N,J,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:A})),s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:De.createPortal(s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[A,F]}),S)})});Ne.displayName="Modal";const Ze=Object.assign(Ne,{Manager:fe});function Je(t,e){t.classList?t.classList.add(e):s.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Te(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function et(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Te(t.className,e):t.setAttribute("class",Te(t.className&&t.className.baseVal||"",e))}const M={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class tt extends fe{adjustAndStore(e,n,o){const r=n.style[e];n.dataset[e]=r,s.style(n,{[e]:`${parseFloat(s.style(n,e))+o}px`})}restore(e,n){const o=n.dataset[e];o!==void 0&&(delete n.dataset[e],s.style(n,{[e]:o}))}setContainerStyle(e){super.setContainerStyle(e);const n=this.getElement();if(Je(n,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";C(n,M.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,e.scrollBarWidth)),C(n,M.STICKY_CONTENT).forEach(i=>this.adjustAndStore(r,i,-e.scrollBarWidth)),C(n,M.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(r,i,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const n=this.getElement();et(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";C(n,M.FIXED_CONTENT).forEach(i=>this.restore(o,i)),C(n,M.STICKY_CONTENT).forEach(i=>this.restore(r,i)),C(n,M.NAVBAR_TOGGLER).forEach(i=>this.restore(r,i))}}let me;function st(t){return me||(me=new tt(t)),me}const ye=u.forwardRef(({className:t,bsPrefix:e,as:n="div",...o},r)=>(e=s.useBootstrapPrefix(e,"modal-body"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));ye.displayName="ModalBody";const Se=u.createContext({onHide(){}}),Ee=u.forwardRef(({bsPrefix:t,className:e,contentClassName:n,centered:o,size:r,fullscreen:i,children:g,scrollable:f,...R},v)=>{t=s.useBootstrapPrefix(t,"modal");const E=`${t}-dialog`,k=typeof i=="string"?`${t}-fullscreen-${i}`:`${t}-fullscreen`;return s.jsxRuntimeExports.jsx("div",{...R,ref:v,className:s.classNames(E,e,r&&`${t}-${r}`,o&&`${E}-centered`,f&&`${E}-scrollable`,i&&k),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames(`${t}-content`,n),children:g})})});Ee.displayName="ModalDialog";const Oe=u.forwardRef(({className:t,bsPrefix:e,as:n="div",...o},r)=>(e=s.useBootstrapPrefix(e,"modal-footer"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));Oe.displayName="ModalFooter";const nt=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:n=!1,onHide:o,children:r,...i},g)=>{const f=c.useContext(Se),R=s.useEventCallback(()=>{f==null||f.onHide(),o==null||o()});return s.jsxRuntimeExports.jsxs("div",{ref:g,...i,children:[r,n&&s.jsxRuntimeExports.jsx(Z,{"aria-label":t,variant:e,onClick:R})]})}),_e=u.forwardRef(({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:o=!1,...r},i)=>(t=s.useBootstrapPrefix(t,"modal-header"),s.jsxRuntimeExports.jsx(nt,{ref:i,...r,className:s.classNames(e,t),closeLabel:n,closeButton:o})));_e.displayName="ModalHeader";const ot=xe("h4"),we=u.forwardRef(({className:t,bsPrefix:e,as:n=ot,...o},r)=>(e=s.useBootstrapPrefix(e,"modal-title"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));we.displayName="ModalTitle";function rt(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}function at(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}const Ae=u.forwardRef(({bsPrefix:t,className:e,style:n,dialogClassName:o,contentClassName:r,children:i,dialogAs:g=Ee,"data-bs-theme":f,"aria-labelledby":R,"aria-describedby":v,"aria-label":E,show:k=!1,animation:T=!0,backdrop:N=!0,keyboard:J=!0,onEscapeKeyDown:W,onShow:ee,onHide:y,container:te,autoFocus:G=!0,enforceFocus:se=!0,restoreFocus:ne=!0,restoreFocusOptions:oe,onEntered:K,onExit:I,onExiting:re,onEnter:B,onEntering:q,onExited:H,backdropClassName:$,manager:P,...ae},p)=>{const[S,d]=c.useState({}),[ie,z]=c.useState(!1),x=c.useRef(!1),O=c.useRef(!1),m=c.useRef(null),[h,L]=s.useCallbackRef(),le=s.useMergedRefs(p,L),V=s.useEventCallback(y),ce=s.useIsRTL();t=s.useBootstrapPrefix(t,"modal");const D=c.useMemo(()=>({onHide:V}),[V]);function _(){return P||st({isRTL:ce})}function Q(a){if(!s.canUseDOM)return;const j=_().getScrollbarWidth()>0,he=a.scrollHeight>s.ownerDocument(a).documentElement.clientHeight;d({paddingRight:j&&!he?ge():void 0,paddingLeft:!j&&he?ge():void 0})}const w=s.useEventCallback(()=>{h&&Q(h.dialog)});s.useWillUnmount(()=>{s.removeEventListener(window,"resize",w),m.current==null||m.current()});const F=()=>{x.current=!0},A=a=>{x.current&&h&&a.target===h.dialog&&(O.current=!0),x.current=!1},l=()=>{z(!0),m.current=s.transitionEnd(h.dialog,()=>{z(!1)})},Y=a=>{a.target===a.currentTarget&&l()},U=a=>{if(N==="static"){Y(a);return}if(O.current||a.target!==a.currentTarget){O.current=!1;return}y==null||y()},je=a=>{J?W==null||W(a):(a.preventDefault(),N==="static"&&l())},be=(a,j)=>{a&&Q(a),B==null||B(a,j)},Me=a=>{m.current==null||m.current(),I==null||I(a)},ke=(a,j)=>{q==null||q(a,j),s.addEventListener(window,"resize",w)},Ie=a=>{a&&(a.style.display=""),H==null||H(a),s.removeEventListener(window,"resize",w)},Be=c.useCallback(a=>s.jsxRuntimeExports.jsx("div",{...a,className:s.classNames(`${t}-backdrop`,$,!T&&"show")}),[T,$,t]),pe={...n,...S};pe.display="block";const Le=a=>s.jsxRuntimeExports.jsx("div",{role:"dialog",...a,style:pe,className:s.classNames(e,t,ie&&`${t}-static`,!T&&"show"),onClick:N?U:void 0,onMouseUp:A,"data-bs-theme":f,"aria-label":E,"aria-labelledby":R,"aria-describedby":v,children:s.jsxRuntimeExports.jsx(g,{...ae,onMouseDown:F,className:o,contentClassName:r,children:i})});return s.jsxRuntimeExports.jsx(Se.Provider,{value:D,children:s.jsxRuntimeExports.jsx(Ze,{show:k,ref:le,backdrop:N,container:te,keyboard:!0,autoFocus:G,enforceFocus:se,restoreFocus:ne,restoreFocusOptions:oe,onEscapeKeyDown:je,onShow:ee,onHide:y,onEnter:be,onEntering:ke,onEntered:K,onExit:Me,onExiting:re,onExited:Ie,manager:_(),transition:T?rt:void 0,backdropTransition:T?at:void 0,renderBackdrop:Be,renderDialog:Le})})});Ae.displayName="Modal";const it=Object.assign(Ae,{Body:ye,Header:_e,Title:we,Footer:Oe,Dialog:Ee,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});/*! @azure/msal-browser v3.14.0 2024-05-07 */const lt={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};exports.CloseButton=Z;exports.EventType=lt;exports.Loading=qe;exports.Modal=it;exports.dataAttr=ve;exports.divWithClassName=xe;exports.qsa=C;exports.usePrevious=Ce;
@@ -1,4 +1,4 @@
1
- import { j as i, b as c, P as me, as as ve, at as xe, s as H, r as Le, au as Pe, av as Ze, i as p, aw as _e, ax as we, ay as Be, az as Je, aA as Ae, aB as et, u as B, n as tt, w as nt, z as ot, aC as Me, F as De, v as at, aD as st } from "./NoInputContainer-BnAPYzCz.js";
1
+ import { j as i, b as c, P as me, as as ve, at as xe, s as H, r as Le, au as Pe, av as Ze, i as p, aw as _e, ax as we, ay as Be, az as Je, aA as Ae, aB as et, u as B, n as tt, w as nt, z as ot, aC as Me, F as De, v as at, aD as st } from "./NoInputContainer-B6VOLjlx.js";
2
2
  import * as u from "react";
3
3
  import { useRef as T, useEffect as pe, forwardRef as rt, useState as Te, useImperativeHandle as it, useCallback as Ce, useContext as lt, useMemo as dt } from "react";
4
4
  import ct from "react-dom";
@@ -6759,14 +6759,15 @@ const id = "_toast_1s57i_1", Bt = {
6759
6759
  var v, m, h;
6760
6760
  return t && !f.headers.Authorization && (f.headers.Authorization = `Bearer ${c()}`), (v = f.url) != null && v.includes("culture=") ? f.url = (m = f.url) == null ? void 0 : m.replace(/culture=[a-z]{2}/, `culture=${i}`) : f.url = `${f.url}${(h = f.url) != null && h.includes("?") ? "&" : "?"}culture=${i}`, f;
6761
6761
  }, (f) => Promise.reject(f)), u = o.interceptors.response.use((f) => f, (f) => {
6762
- if (de.isCancel(f))
6762
+ var m;
6763
+ if (console.log(f), de.isCancel(f))
6763
6764
  return Promise.reject(f);
6764
6765
  const v = Sa(f);
6765
6766
  if (v.length > 0) {
6766
- const m = v.find((h) => h.name.toLowerCase() === "others");
6767
- return m ? (!n && s(m.errors, "danger"), Promise.reject(f)) : (!n && s(a.validationError, "warning"), Promise.reject(f));
6767
+ const h = v.find((g) => g.name.toLowerCase() === "others");
6768
+ return h ? (!n && s(h.errors, "danger"), Promise.reject(f)) : (!n && s(a.validationError, "warning"), Promise.reject(f));
6768
6769
  }
6769
- return f.message && f.message === "Network Error" ? (!n && s(a.networkError, "danger"), Promise.reject(f)) : (de.isCancel(f) || !n && s(a.unexpectedError, "danger"), Promise.reject(f));
6770
+ return ((m = f.response) == null ? void 0 : m.status) === 403 ? (!n && s(a.forbiddenError, "danger"), Promise.reject(f)) : f.message && f.message === "Network Error" ? (!n && s(a.networkError, "danger"), Promise.reject(f)) : (de.isCancel(f) || !n && s(a.unexpectedError, "danger"), Promise.reject(f));
6770
6771
  });
6771
6772
  return () => {
6772
6773
  o.interceptors.request.eject(l), o.interceptors.response.eject(u);