react-luminus-components 1.2.3 → 1.2.5
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 +41 -41
- package/dist/{DataKey-CBV-NBJf.js → DataKey-BNQs8-2u.js} +1 -1
- package/dist/{DataKey-CBMsR50b.cjs → DataKey-BllxlutQ.cjs} +1 -1
- package/dist/{SimpleTooltip-D6DtiDiF.cjs → SimpleTooltip-B7uLYPYV.cjs} +1 -1
- package/dist/{SimpleTooltip-DxazAlXp.js → SimpleTooltip-qmn_7UT2.js} +1 -1
- package/dist/{Typography-CHfAgqP5.js → Typography-CEiQhQ-u.js} +1 -1
- package/dist/{Typography-ni7LYA_5.cjs → Typography-z6yGwy1k.cjs} +1 -1
- package/dist/{UserAvatarToggle-B-BYsINz.js → UserAvatarToggle--4sSvh4e.js} +2 -1
- package/dist/{UserAvatarToggle-cPWBMa9z.cjs → UserAvatarToggle-DVtkEr7E.cjs} +1 -1
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +4 -0
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/index.d.ts +1 -0
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +30 -2
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +30 -2
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +11 -6
- 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 +57 -55
- 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.d.ts +1 -1
- package/dist/main.es.js +1456 -1402
- package/dist/models/index.d.ts +2 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +2 -0
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +9 -5
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -2
- package/dist/models/texts/CustomSelectTexts.d.ts +5 -0
- package/dist/models/types/DropdownPickerOption.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/{useConfirm-BC-OkqG0.cjs → useConfirm-8L-hW_Lc.cjs} +1 -1
- package/dist/{useConfirm-CkSyQrSF.js → useConfirm-BXglMff3.js} +1 -1
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_DataKey-
|
|
3
|
-
"file": "DataKey-
|
|
2
|
+
"_DataKey-BNQs8-2u.js": {
|
|
3
|
+
"file": "DataKey-BNQs8-2u.js",
|
|
4
4
|
"name": "DataKey",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_UserAvatarToggle
|
|
6
|
+
"_UserAvatarToggle--4sSvh4e.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_DataKey-
|
|
10
|
-
"file": "DataKey-
|
|
9
|
+
"_DataKey-BllxlutQ.cjs": {
|
|
10
|
+
"file": "DataKey-BllxlutQ.cjs",
|
|
11
11
|
"name": "DataKey",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_UserAvatarToggle-
|
|
13
|
+
"_UserAvatarToggle-DVtkEr7E.cjs"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_SimpleTooltip-
|
|
17
|
-
"file": "SimpleTooltip-
|
|
16
|
+
"_SimpleTooltip-B7uLYPYV.cjs": {
|
|
17
|
+
"file": "SimpleTooltip-B7uLYPYV.cjs",
|
|
18
18
|
"name": "SimpleTooltip",
|
|
19
19
|
"imports": [
|
|
20
|
-
"_UserAvatarToggle-
|
|
20
|
+
"_UserAvatarToggle-DVtkEr7E.cjs"
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
|
-
"_SimpleTooltip-
|
|
24
|
-
"file": "SimpleTooltip-
|
|
23
|
+
"_SimpleTooltip-qmn_7UT2.js": {
|
|
24
|
+
"file": "SimpleTooltip-qmn_7UT2.js",
|
|
25
25
|
"name": "SimpleTooltip",
|
|
26
26
|
"imports": [
|
|
27
|
-
"_UserAvatarToggle
|
|
27
|
+
"_UserAvatarToggle--4sSvh4e.js"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"_Typography-
|
|
31
|
-
"file": "Typography-
|
|
30
|
+
"_Typography-CEiQhQ-u.js": {
|
|
31
|
+
"file": "Typography-CEiQhQ-u.js",
|
|
32
32
|
"name": "Typography",
|
|
33
33
|
"imports": [
|
|
34
|
-
"_UserAvatarToggle
|
|
34
|
+
"_UserAvatarToggle--4sSvh4e.js"
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
"_Typography-
|
|
38
|
-
"file": "Typography-
|
|
37
|
+
"_Typography-z6yGwy1k.cjs": {
|
|
38
|
+
"file": "Typography-z6yGwy1k.cjs",
|
|
39
39
|
"name": "Typography",
|
|
40
40
|
"imports": [
|
|
41
|
-
"_UserAvatarToggle-
|
|
41
|
+
"_UserAvatarToggle-DVtkEr7E.cjs"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
-
"_UserAvatarToggle
|
|
45
|
-
"file": "UserAvatarToggle
|
|
44
|
+
"_UserAvatarToggle--4sSvh4e.js": {
|
|
45
|
+
"file": "UserAvatarToggle--4sSvh4e.js",
|
|
46
46
|
"name": "UserAvatarToggle",
|
|
47
47
|
"imports": [
|
|
48
48
|
"_textUtils-BLtD0zaS.js"
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
|
-
"_UserAvatarToggle-
|
|
52
|
-
"file": "UserAvatarToggle-
|
|
51
|
+
"_UserAvatarToggle-DVtkEr7E.cjs": {
|
|
52
|
+
"file": "UserAvatarToggle-DVtkEr7E.cjs",
|
|
53
53
|
"name": "UserAvatarToggle",
|
|
54
54
|
"imports": [
|
|
55
55
|
"_textUtils-CHVVh2oi.cjs"
|
|
@@ -71,18 +71,18 @@
|
|
|
71
71
|
"file": "useClickOutside-DsVG12Cs.cjs",
|
|
72
72
|
"name": "useClickOutside"
|
|
73
73
|
},
|
|
74
|
-
"_useConfirm-
|
|
75
|
-
"file": "useConfirm-
|
|
74
|
+
"_useConfirm-8L-hW_Lc.cjs": {
|
|
75
|
+
"file": "useConfirm-8L-hW_Lc.cjs",
|
|
76
76
|
"name": "useConfirm",
|
|
77
77
|
"imports": [
|
|
78
|
-
"_UserAvatarToggle-
|
|
78
|
+
"_UserAvatarToggle-DVtkEr7E.cjs"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"_useConfirm-
|
|
82
|
-
"file": "useConfirm-
|
|
81
|
+
"_useConfirm-BXglMff3.js": {
|
|
82
|
+
"file": "useConfirm-BXglMff3.js",
|
|
83
83
|
"name": "useConfirm",
|
|
84
84
|
"imports": [
|
|
85
|
-
"_UserAvatarToggle
|
|
85
|
+
"_UserAvatarToggle--4sSvh4e.js"
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"src/contexts/index.ts": {
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"src": "src/contexts/index.ts",
|
|
92
92
|
"isEntry": true,
|
|
93
93
|
"imports": [
|
|
94
|
-
"_UserAvatarToggle-
|
|
95
|
-
"_useConfirm-
|
|
96
|
-
"_Typography-
|
|
97
|
-
"_DataKey-
|
|
94
|
+
"_UserAvatarToggle-DVtkEr7E.cjs",
|
|
95
|
+
"_useConfirm-8L-hW_Lc.cjs",
|
|
96
|
+
"_Typography-z6yGwy1k.cjs",
|
|
97
|
+
"_DataKey-BllxlutQ.cjs"
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
"src/hooks/index.ts": {
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"src": "src/hooks/index.ts",
|
|
104
104
|
"isEntry": true,
|
|
105
105
|
"imports": [
|
|
106
|
-
"_UserAvatarToggle-
|
|
107
|
-
"_useConfirm-
|
|
106
|
+
"_UserAvatarToggle-DVtkEr7E.cjs",
|
|
107
|
+
"_useConfirm-8L-hW_Lc.cjs",
|
|
108
108
|
"_textUtils-CHVVh2oi.cjs",
|
|
109
109
|
"src/utils/index.ts",
|
|
110
110
|
"_useClickOutside-DsVG12Cs.cjs"
|
|
@@ -116,9 +116,9 @@
|
|
|
116
116
|
"src": "src/layout/index.ts",
|
|
117
117
|
"isEntry": true,
|
|
118
118
|
"imports": [
|
|
119
|
-
"_UserAvatarToggle-
|
|
120
|
-
"_SimpleTooltip-
|
|
121
|
-
"_Typography-
|
|
119
|
+
"_UserAvatarToggle-DVtkEr7E.cjs",
|
|
120
|
+
"_SimpleTooltip-B7uLYPYV.cjs",
|
|
121
|
+
"_Typography-z6yGwy1k.cjs"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
"src/main.ts": {
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
"src": "src/main.ts",
|
|
128
128
|
"isEntry": true,
|
|
129
129
|
"imports": [
|
|
130
|
-
"_UserAvatarToggle-
|
|
131
|
-
"_DataKey-
|
|
130
|
+
"_UserAvatarToggle-DVtkEr7E.cjs",
|
|
131
|
+
"_DataKey-BllxlutQ.cjs",
|
|
132
132
|
"_textUtils-CHVVh2oi.cjs",
|
|
133
|
-
"_Typography-
|
|
133
|
+
"_Typography-z6yGwy1k.cjs",
|
|
134
134
|
"_useClickOutside-DsVG12Cs.cjs",
|
|
135
|
-
"_SimpleTooltip-
|
|
135
|
+
"_SimpleTooltip-B7uLYPYV.cjs"
|
|
136
136
|
]
|
|
137
137
|
},
|
|
138
138
|
"src/utils/index.ts": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as o } from "./UserAvatarToggle
|
|
1
|
+
import { j as t, c as o } from "./UserAvatarToggle--4sSvh4e.js";
|
|
2
2
|
import { useRef as e, useEffect as i } from "react";
|
|
3
3
|
const a = "_loading_14qfh_1", c = "_spinner-grow_14qfh_10", u = "_second_14qfh_14", l = "_third_14qfh_17", n = {
|
|
4
4
|
loading: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./UserAvatarToggle-
|
|
1
|
+
"use strict";const s=require("./UserAvatarToggle-DVtkEr7E.cjs"),e=require("react"),o="_loading_14qfh_1",i="_spinner-grow_14qfh_10",a="_second_14qfh_14",c="_third_14qfh_17",n={loading:o,"spinner-grow":"_spinner-grow_14qfh_10",spinnerGrow:i,second:a,third:c},u=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",n.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary",n.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary",n.third),role:"status"})]});function l(r){const t=e.useRef(null);return e.useEffect(()=>{t.current=r}),t.current}var d=Function.prototype.bind.call(Function.prototype.call,[].slice);function p(r,t){return d(r.querySelectorAll(t))}const _="data-rr-ui-",m="rrUi";function g(r){return`${_}${r}`}function x(r){return`${m}${r}`}exports.Loading=u;exports.dataAttr=g;exports.dataProp=x;exports.qsa=p;exports.usePrevious=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./UserAvatarToggle-
|
|
1
|
+
"use strict";const e=require("./UserAvatarToggle-DVtkEr7E.cjs"),s=({text:t,placement:o,children:r})=>e.jsxRuntimeExports.jsx(e.OverlayTrigger,{placement:o,overlay:e.jsxRuntimeExports.jsx(e.Tooltip,{className:"luminus-tooltip",children:t}),children:r});exports.SimpleTooltip=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o, O as e, T as i } from "./UserAvatarToggle
|
|
1
|
+
import { j as o, O as e, T as i } from "./UserAvatarToggle--4sSvh4e.js";
|
|
2
2
|
const a = ({ text: s, placement: r, children: t }) => /* @__PURE__ */ o.jsx(e, { placement: r, overlay: /* @__PURE__ */ o.jsx(i, { className: "luminus-tooltip", children: s }), children: t });
|
|
3
3
|
export {
|
|
4
4
|
a as S
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as o } from "./UserAvatarToggle
|
|
1
|
+
import { j as t, c as o } from "./UserAvatarToggle--4sSvh4e.js";
|
|
2
2
|
const n = "_h1_14r4v_1", a = "_h3_14r4v_8", m = "_h6_14r4v_15", l = "_subtitle_14r4v_22", i = "_body_14r4v_29", _ = "_body2_14r4v_36", b = "_caption_14r4v_43", c = "_form-label_14r4v_50", e = {
|
|
3
3
|
h1: n,
|
|
4
4
|
h3: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./UserAvatarToggle-
|
|
1
|
+
"use strict";const s=require("./UserAvatarToggle-DVtkEr7E.cjs"),r="_h1_14r4v_1",a="_h3_14r4v_8",n="_h6_14r4v_15",m="_subtitle_14r4v_22",i="_body_14r4v_29",x="_body2_14r4v_36",l="_caption_14r4v_43",c="_form-label_14r4v_50",e={h1:r,h3:a,h6:n,subtitle:m,body:i,body2:x,caption:l,"form-label":"_form-label_14r4v_50",formLabel:c},_=({variant:o,className:u,children:t})=>{switch(o){case"h1":return s.jsxRuntimeExports.jsx("h1",{className:s.classNames("luminus-text-primary luminus-h1",e.h1,u),children:t});case"h3":return s.jsxRuntimeExports.jsx("h3",{className:s.classNames("luminus-text luminus-h3",e.h3,u),children:t});case"h6":return s.jsxRuntimeExports.jsx("h6",{className:s.classNames("luminus-text luminus-h6",e.h6,u),children:t});case"subtitle":return s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-text luminus-subtitle",e.subtitle,u),children:t});case"body":return s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-text luminus-body",e.body,u),children:t});case"body2":return s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-text luminus-body2",e.body2,u),children:t});case"caption":return s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-text-muted luminus-caption",e.caption,u),children:t});case"form-label":return s.jsxRuntimeExports.jsx("div",{className:s.classNames("luminus-text luminus-form-label",e.formLabel,u),children:t});default:return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:t})}},b=({variant:o,className:u,children:t})=>s.jsxRuntimeExports.jsx(_,{variant:o,className:u,children:t});exports.Typography=b;
|
|
@@ -870,7 +870,8 @@ const Fo = Rt({
|
|
|
870
870
|
formValidationTexts: {},
|
|
871
871
|
homeDashboardTexts: {},
|
|
872
872
|
formSubmitTexts: {},
|
|
873
|
-
appSearchTexts: {}
|
|
873
|
+
appSearchTexts: {},
|
|
874
|
+
customSelectTexts: {}
|
|
874
875
|
});
|
|
875
876
|
let _a = { data: "" }, Pa = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || _a, Aa = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, ja = /\/\*[^]*?\*\/| +/g, Bn = /\n+/g, Xe = (e, t) => {
|
|
876
877
|
let r = "", n = "", o = "";
|
|
@@ -31,7 +31,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
33
33
|
http://jedwatson.github.io/classnames
|
|
34
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Do);var xa=Do.exports;const we=vr(xa);function No(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Lo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Oa(e,t){const r=+No(e);return Lo(e,r+t)}function Ra(e,t){return Oa(e,t*ln.millisecondsInHour)}var $o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bn=b.createContext&&b.createContext($o),Sa=["attr","size","title"];function Ta(e,t){if(e==null)return{};var r=Ca(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 Ca(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ar(){return ar=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},ar.apply(this,arguments)}function zn(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 sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zn(Object(r),!0).forEach(function(n){_a(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _a(e,t,r){return t=Pa(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pa(e){var t=Aa(e,"string");return typeof t=="symbol"?t:t+""}function Aa(e,t){if(typeof e!="object"||!e)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 Io(e){return e&&e.map((t,r)=>b.createElement(t.tag,sr({key:r},t.attr),Io(t.child)))}function he(e){return t=>b.createElement(ja,ar({attr:sr({},e.attr)},t),Io(e.child))}function ja(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=Ta(e,Sa),s=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),b.createElement("svg",ar({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:sr(sr({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 Bn!==void 0?b.createElement(Bn.Consumer,null,r=>t(r)):t($o)}function Ma(e){return he({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 ka(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Da(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function Na(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function La(e){return he({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 $a(e){return he({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 Ia(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Fa(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Ua(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Ba(e){return he({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 za(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function Ha(e){return he({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 Va(e){return he({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 Wa(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function qa(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Fo(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function Ya(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Uo(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},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 12 19 6.41z"},child:[]}]})(e)}function Ka(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}const fn=b.createContext({cookieDomain:"",axiosInstance:{},LinkComponent:{},language:"",axiosTexts:{},confirmTexts:{},formValidationTexts:{},homeDashboardTexts:{},formSubmitTexts:{},appSearchTexts:{}});let Ja={data:""},Xa=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ja,Ga=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Za=/\/\*[^]*?\*\/| +/g,Hn=/\n+/g,Ye=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+a+";":n+=i[1]=="f"?Ye(a,i):i+"{"+Ye(a,i[1]=="k"?"":t)+"}":typeof a=="object"?n+=Ye(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ye.p?Ye.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Ie={},Bo=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Bo(e[r]);return t}return e},Qa=(e,t,r,n,o)=>{let i=Bo(e),a=Ie[i]||(Ie[i]=(c=>{let u=0,l=11;for(;u<c.length;)l=101*l+c.charCodeAt(u++)>>>0;return"go"+l})(i));if(!Ie[a]){let c=i!==e?e:(u=>{let l,d,v=[{}];for(;l=Ga.exec(u.replace(Za,""));)l[4]?v.shift():l[3]?(d=l[3].replace(Hn," ").trim(),v.unshift(v[0][d]=v[0][d]||{})):v[0][l[1]]=l[2].replace(Hn," ").trim();return v[0]})(e);Ie[a]=Ye(o?{["@keyframes "+a]:c}:c,r?"":"."+a)}let s=r&&Ie.g?Ie.g:null;return r&&(Ie.g=Ie[a]),((c,u,l,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=l?c+u.data:u.data+c)})(Ie[a],t,n,s),a},es=(e,t,r)=>e.reduce((n,o,i)=>{let a=t[i];if(a&&a.call){let s=a(r),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=c?"."+c:s&&typeof s=="object"?s.props?"":Ye(s,""):s===!1?"":s}return n+o+(a??"")},"");function mr(e){let t=this||{},r=e.call?e(t.p):e;return Qa(r.unshift?r.raw?es(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Xa(t.target),t.g,t.o,t.k)}let zo,Hr,Vr;mr.bind({g:1});let Ue=mr.bind({k:1});function ts(e,t,r,n){Ye.p=t,zo=e,Hr=r,Vr=n}function Ge(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),c=s.className||o.className;r.p=Object.assign({theme:Hr&&Hr()},s),r.o=/ *go\d+/.test(c),s.className=mr.apply(r,n)+(c?" "+c:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),Vr&&u[0]&&Vr(s),zo(u,s)}return o}}var rs=e=>typeof e=="function",cr=(e,t)=>rs(e)?e(t):e,ns=(()=>{let e=0;return()=>(++e).toString()})(),Ho=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),os=20,Qt=new Map,is=1e3,Vn=e=>{if(Qt.has(e))return;let t=setTimeout(()=>{Qt.delete(e),at({type:4,toastId:e})},is);Qt.set(e,t)},as=e=>{let t=Qt.get(e);t&&clearTimeout(t)},Wr=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,os)};case 1:return t.toast.id&&as(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?Wr(e,{type:1,toast:r}):Wr(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Vn(n):e.toasts.forEach(i=>{Vn(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},er=[],tr={toasts:[],pausedAt:void 0},at=e=>{tr=Wr(tr,e),er.forEach(t=>{t(tr)})},ss={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},cs=(e={})=>{let[t,r]=b.useState(tr);b.useEffect(()=>(er.push(r),()=>{let o=er.indexOf(r);o>-1&&er.splice(o,1)}),[t]);let n=t.toasts.map(o=>{var i,a;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||ss[o.type],style:{...e.style,...(a=e[o.type])==null?void 0:a.style,...o.style}}});return{...t,toasts:n}},us=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||ns()}),$t=e=>(t,r)=>{let n=us(t,e,r);return at({type:2,toast:n}),n.id},Se=(e,t)=>$t("blank")(e,t);Se.error=$t("error");Se.success=$t("success");Se.loading=$t("loading");Se.custom=$t("custom");Se.dismiss=e=>{at({type:3,toastId:e})};Se.remove=e=>at({type:4,toastId:e});Se.promise=(e,t,r)=>{let n=Se.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(Se.success(cr(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{Se.error(cr(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var ls=(e,t)=>{at({type:1,toast:{id:e,height:t}})},fs=()=>{at({type:5,time:Date.now()})},ds=e=>{let{toasts:t,pausedAt:r}=cs(e);b.useEffect(()=>{if(r)return;let i=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&Se.dismiss(s.id);return}return setTimeout(()=>Se.dismiss(s.id),c)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,r]);let n=b.useCallback(()=>{r&&at({type:6,time:Date.now()})},[r]),o=b.useCallback((i,a)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:u}=a||{},l=t.filter(m=>(m.position||u)===(i.position||u)&&m.height),d=l.findIndex(m=>m.id===i.id),v=l.filter((m,h)=>h<d&&m.visible).length;return l.filter(m=>m.visible).slice(...s?[v+1]:[0,v]).reduce((m,h)=>m+(h.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:ls,startPause:fs,endPause:n,calculateOffset:o}}},ps=Ue`
|
|
34
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Do);var xa=Do.exports;const we=vr(xa);function No(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Lo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Oa(e,t){const r=+No(e);return Lo(e,r+t)}function Ra(e,t){return Oa(e,t*ln.millisecondsInHour)}var $o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bn=b.createContext&&b.createContext($o),Sa=["attr","size","title"];function Ta(e,t){if(e==null)return{};var r=Ca(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 Ca(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ar(){return ar=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},ar.apply(this,arguments)}function zn(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 sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zn(Object(r),!0).forEach(function(n){_a(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _a(e,t,r){return t=Pa(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pa(e){var t=Aa(e,"string");return typeof t=="symbol"?t:t+""}function Aa(e,t){if(typeof e!="object"||!e)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 Io(e){return e&&e.map((t,r)=>b.createElement(t.tag,sr({key:r},t.attr),Io(t.child)))}function he(e){return t=>b.createElement(ja,ar({attr:sr({},e.attr)},t),Io(e.child))}function ja(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=Ta(e,Sa),s=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),b.createElement("svg",ar({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:sr(sr({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 Bn!==void 0?b.createElement(Bn.Consumer,null,r=>t(r)):t($o)}function Ma(e){return he({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 ka(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function Da(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function Na(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function La(e){return he({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 $a(e){return he({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 Ia(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function Fa(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Ua(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Ba(e){return he({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 za(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function Ha(e){return he({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 Va(e){return he({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 Wa(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function qa(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Fo(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function Ya(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Uo(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},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 12 19 6.41z"},child:[]}]})(e)}function Ka(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}const fn=b.createContext({cookieDomain:"",axiosInstance:{},LinkComponent:{},language:"",axiosTexts:{},confirmTexts:{},formValidationTexts:{},homeDashboardTexts:{},formSubmitTexts:{},appSearchTexts:{},customSelectTexts:{}});let Ja={data:""},Xa=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ja,Ga=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Za=/\/\*[^]*?\*\/| +/g,Hn=/\n+/g,Ye=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+a+";":n+=i[1]=="f"?Ye(a,i):i+"{"+Ye(a,i[1]=="k"?"":t)+"}":typeof a=="object"?n+=Ye(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ye.p?Ye.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Ie={},Bo=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Bo(e[r]);return t}return e},Qa=(e,t,r,n,o)=>{let i=Bo(e),a=Ie[i]||(Ie[i]=(c=>{let u=0,l=11;for(;u<c.length;)l=101*l+c.charCodeAt(u++)>>>0;return"go"+l})(i));if(!Ie[a]){let c=i!==e?e:(u=>{let l,d,v=[{}];for(;l=Ga.exec(u.replace(Za,""));)l[4]?v.shift():l[3]?(d=l[3].replace(Hn," ").trim(),v.unshift(v[0][d]=v[0][d]||{})):v[0][l[1]]=l[2].replace(Hn," ").trim();return v[0]})(e);Ie[a]=Ye(o?{["@keyframes "+a]:c}:c,r?"":"."+a)}let s=r&&Ie.g?Ie.g:null;return r&&(Ie.g=Ie[a]),((c,u,l,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=l?c+u.data:u.data+c)})(Ie[a],t,n,s),a},es=(e,t,r)=>e.reduce((n,o,i)=>{let a=t[i];if(a&&a.call){let s=a(r),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=c?"."+c:s&&typeof s=="object"?s.props?"":Ye(s,""):s===!1?"":s}return n+o+(a??"")},"");function mr(e){let t=this||{},r=e.call?e(t.p):e;return Qa(r.unshift?r.raw?es(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Xa(t.target),t.g,t.o,t.k)}let zo,Hr,Vr;mr.bind({g:1});let Ue=mr.bind({k:1});function ts(e,t,r,n){Ye.p=t,zo=e,Hr=r,Vr=n}function Ge(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),c=s.className||o.className;r.p=Object.assign({theme:Hr&&Hr()},s),r.o=/ *go\d+/.test(c),s.className=mr.apply(r,n)+(c?" "+c:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),Vr&&u[0]&&Vr(s),zo(u,s)}return o}}var rs=e=>typeof e=="function",cr=(e,t)=>rs(e)?e(t):e,ns=(()=>{let e=0;return()=>(++e).toString()})(),Ho=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),os=20,Qt=new Map,is=1e3,Vn=e=>{if(Qt.has(e))return;let t=setTimeout(()=>{Qt.delete(e),at({type:4,toastId:e})},is);Qt.set(e,t)},as=e=>{let t=Qt.get(e);t&&clearTimeout(t)},Wr=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,os)};case 1:return t.toast.id&&as(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?Wr(e,{type:1,toast:r}):Wr(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Vn(n):e.toasts.forEach(i=>{Vn(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},er=[],tr={toasts:[],pausedAt:void 0},at=e=>{tr=Wr(tr,e),er.forEach(t=>{t(tr)})},ss={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},cs=(e={})=>{let[t,r]=b.useState(tr);b.useEffect(()=>(er.push(r),()=>{let o=er.indexOf(r);o>-1&&er.splice(o,1)}),[t]);let n=t.toasts.map(o=>{var i,a;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||ss[o.type],style:{...e.style,...(a=e[o.type])==null?void 0:a.style,...o.style}}});return{...t,toasts:n}},us=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||ns()}),$t=e=>(t,r)=>{let n=us(t,e,r);return at({type:2,toast:n}),n.id},Se=(e,t)=>$t("blank")(e,t);Se.error=$t("error");Se.success=$t("success");Se.loading=$t("loading");Se.custom=$t("custom");Se.dismiss=e=>{at({type:3,toastId:e})};Se.remove=e=>at({type:4,toastId:e});Se.promise=(e,t,r)=>{let n=Se.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(Se.success(cr(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{Se.error(cr(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var ls=(e,t)=>{at({type:1,toast:{id:e,height:t}})},fs=()=>{at({type:5,time:Date.now()})},ds=e=>{let{toasts:t,pausedAt:r}=cs(e);b.useEffect(()=>{if(r)return;let i=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&Se.dismiss(s.id);return}return setTimeout(()=>Se.dismiss(s.id),c)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,r]);let n=b.useCallback(()=>{r&&at({type:6,time:Date.now()})},[r]),o=b.useCallback((i,a)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:u}=a||{},l=t.filter(m=>(m.position||u)===(i.position||u)&&m.height),d=l.findIndex(m=>m.id===i.id),v=l.filter((m,h)=>h<d&&m.visible).length;return l.filter(m=>m.visible).slice(...s?[v+1]:[0,v]).reduce((m,h)=>m+(h.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:ls,startPause:fs,endPause:n,calculateOffset:o}}},ps=Ue`
|
|
35
35
|
from {
|
|
36
36
|
transform: scale(0) rotate(45deg);
|
|
37
37
|
opacity: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DropdownPickerProps } from '@models/index';
|
|
3
|
-
declare const DropdownPicker: ({ InputContainer, items, defaultSelection, onClickSelectedItem, onSearchQueryChange, texts, isLoading, isNumber, onSelect, label, withoutLabel, size, hidden, disabled, }: DropdownPickerProps) => import("react").JSX.Element;
|
|
3
|
+
declare const DropdownPicker: ({ InputContainer, items, defaultSelection, onClickSelectedItem, onSearchQueryChange, texts, isLoading, isNumber, onSelect, label, withoutLabel, size, additionalColumns, hidden, disabled, }: DropdownPickerProps) => import("react").JSX.Element;
|
|
4
4
|
export default DropdownPicker;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HookFormSelectInputProps } from '@models/index';
|
|
3
|
+
declare const CustomSelectInput: ({ InputContainer, options, formField, label, size, resetsFields, isNumber, required, hidden, disabled, withoutLabel, noSortOptions, }: HookFormSelectInputProps) => import("react").JSX.Element;
|
|
4
|
+
export default CustomSelectInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import HookFormDropdownPickerProps from '@models/prop-types/HookFormInputProps/HookFormDropdownPickerProps';
|
|
3
|
-
declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, onClickSelectedItem, texts, isLoading, withoutLabel, }: HookFormDropdownPickerProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, onClickSelectedItem, texts, isLoading, withoutLabel, additionalColumns, }: HookFormDropdownPickerProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormDropdownPicker;
|
|
@@ -6,3 +6,4 @@ export { default as HookFormTextInput } from './TextInput/HookFormTextInput';
|
|
|
6
6
|
export { default as HookFormDropdownPicker } from './DropdownPicker/HookFormDropdownPicker';
|
|
7
7
|
export { default as HookFormFileInput } from './FileInput/HookFormFileInput';
|
|
8
8
|
export { default as HookFormFloatingSubmit } from './FloatingSubmit/HookFormFloatingSubmit';
|
|
9
|
+
export { default as CustomSelectInput } from './CustomSelectInput/CustomSelectInput';
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const FloatingLabelInput: import("react").ForwardRefExoticComponent<(Omit<{
|
|
3
|
+
hidden?: boolean | undefined;
|
|
4
|
+
children: import("react").ReactNode;
|
|
5
|
+
isInvalid?: boolean | undefined;
|
|
6
|
+
isForCheckInput?: boolean | undefined;
|
|
7
|
+
isForRadioInput?: boolean | undefined;
|
|
8
|
+
inputContainerClassName?: string | undefined;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
withoutLabel?: false | undefined;
|
|
14
|
+
label: string;
|
|
15
|
+
} & {
|
|
16
|
+
withoutLabel?: false | undefined;
|
|
17
|
+
}, "ref"> | Omit<{
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
children: import("react").ReactNode;
|
|
20
|
+
isInvalid?: boolean | undefined;
|
|
21
|
+
isForCheckInput?: boolean | undefined;
|
|
22
|
+
isForRadioInput?: boolean | undefined;
|
|
23
|
+
inputContainerClassName?: string | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
withoutLabel: true;
|
|
29
|
+
} & {
|
|
30
|
+
withoutLabel: true;
|
|
31
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
32
|
export default FloatingLabelInput;
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const RowLabelInput: import("react").ForwardRefExoticComponent<(Omit<{
|
|
3
|
+
hidden?: boolean | undefined;
|
|
4
|
+
children: import("react").ReactNode;
|
|
5
|
+
isInvalid?: boolean | undefined;
|
|
6
|
+
isForCheckInput?: boolean | undefined;
|
|
7
|
+
isForRadioInput?: boolean | undefined;
|
|
8
|
+
inputContainerClassName?: string | undefined;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
withoutLabel?: false | undefined;
|
|
14
|
+
label: string;
|
|
15
|
+
} & {
|
|
16
|
+
withoutLabel?: false | undefined;
|
|
17
|
+
}, "ref"> | Omit<{
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
children: import("react").ReactNode;
|
|
20
|
+
isInvalid?: boolean | undefined;
|
|
21
|
+
isForCheckInput?: boolean | undefined;
|
|
22
|
+
isForRadioInput?: boolean | undefined;
|
|
23
|
+
inputContainerClassName?: string | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
withoutLabel: true;
|
|
29
|
+
} & {
|
|
30
|
+
withoutLabel: true;
|
|
31
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
32
|
export default RowLabelInput;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { DropdownPickerOption, DropdownPickerTexts } from '@models/index';
|
|
3
3
|
type Props = {
|
|
4
4
|
show: boolean;
|
|
5
5
|
onCancel: () => void;
|
|
6
|
-
items:
|
|
7
|
-
currentSelection:
|
|
8
|
-
onSelectionChange: (item:
|
|
9
|
-
onClickSelectedItem
|
|
6
|
+
items: DropdownPickerOption[];
|
|
7
|
+
currentSelection: DropdownPickerOption | null;
|
|
8
|
+
onSelectionChange: (item: DropdownPickerOption | null) => void;
|
|
9
|
+
onClickSelectedItem?: (item: DropdownPickerOption) => void;
|
|
10
10
|
onSearchQueryChange: (query: string) => void;
|
|
11
11
|
texts: DropdownPickerTexts;
|
|
12
|
+
inputRect?: DOMRect;
|
|
13
|
+
additionalColumns?: {
|
|
14
|
+
key: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
12
17
|
disabled?: boolean;
|
|
13
18
|
isLoading?: boolean;
|
|
14
19
|
};
|
|
15
|
-
declare const SimplePicker: ({ show, onCancel, items, currentSelection, onSelectionChange, onClickSelectedItem, onSearchQueryChange, texts, disabled, isLoading, }: Props) => import("react").JSX.Element;
|
|
20
|
+
declare const SimplePicker: ({ show, onCancel, items, currentSelection, onSelectionChange, onClickSelectedItem, onSearchQueryChange, texts, additionalColumns, disabled, isLoading, inputRect, }: Props) => import("react").JSX.Element;
|
|
16
21
|
export default SimplePicker;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { LinkProps } from 'react-router-dom';
|
|
4
|
-
import { AppSearchTexts, AxiosTexts, ConfirmTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
4
|
+
import { AppSearchTexts, AxiosTexts, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
5
5
|
interface ILuminusComponentsContext {
|
|
6
6
|
cookieDomain: string;
|
|
7
7
|
axiosInstance: AxiosInstance;
|
|
@@ -13,6 +13,7 @@ interface ILuminusComponentsContext {
|
|
|
13
13
|
homeDashboardTexts: HomeDashboardTexts;
|
|
14
14
|
formSubmitTexts: FormSubmitTexts;
|
|
15
15
|
appSearchTexts: AppSearchTexts;
|
|
16
|
+
customSelectTexts: CustomSelectTexts;
|
|
16
17
|
}
|
|
17
18
|
declare const LuminusComponentsContext: import("react").Context<ILuminusComponentsContext>;
|
|
18
19
|
export default LuminusComponentsContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
|
3
3
|
import { AxiosInstance } from 'axios';
|
|
4
|
-
import { AppSearchTexts, AxiosTexts, ConfirmTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
4
|
+
import { AppSearchTexts, AxiosTexts, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
5
5
|
type Props = {
|
|
6
6
|
cookieDomain: string;
|
|
7
7
|
axiosInstance: AxiosInstance;
|
|
@@ -13,7 +13,8 @@ type Props = {
|
|
|
13
13
|
homeDashboardTexts: HomeDashboardTexts;
|
|
14
14
|
formSubmitTexts: FormSubmitTexts;
|
|
15
15
|
appSearchTexts: AppSearchTexts;
|
|
16
|
+
customSelectTexts: CustomSelectTexts;
|
|
16
17
|
children: React.ReactNode;
|
|
17
18
|
};
|
|
18
|
-
declare const LuminusComponentsProvider: ({ cookieDomain, axiosInstance, LinkComponent, language, axiosTexts, confirmTexts, formValidationTexts, homeDashboardTexts, formSubmitTexts, appSearchTexts, children, }: Props) => import("react").JSX.Element;
|
|
19
|
+
declare const LuminusComponentsProvider: ({ cookieDomain, axiosInstance, LinkComponent, language, axiosTexts, confirmTexts, formValidationTexts, homeDashboardTexts, formSubmitTexts, appSearchTexts, customSelectTexts, children, }: Props) => import("react").JSX.Element;
|
|
19
20
|
export default LuminusComponentsProvider;
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./UserAvatarToggle-cPWBMa9z.cjs"),a=require("react"),je=require("./useConfirm-BC-OkqG0.cjs"),De=require("./Typography-ni7LYA_5.cjs"),v=require("./DataKey-CBMsR50b.cjs"),Fe=require("react-dom");function Ie(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>s[n]})}}return t.default=s,Object.freeze(t)}const g=Ie(a),Pe=s=>g.forwardRef((t,n)=>e.jsxRuntimeExports.jsx("div",{...t,ref:n,className:e.classNames(t.className,s)})),Ue={"aria-label":e.PropTypes.string,onClick:e.PropTypes.func,variant:e.PropTypes.oneOf(["white"])},me=g.forwardRef(({className:s,variant:t,"aria-label":n="Close",...o},r)=>e.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:e.classNames("btn-close",t&&`btn-close-${t}`,s),"aria-label":n,...o}));me.displayName="CloseButton";me.propTypes=Ue;var J;function ge(s){if((!J&&J!==0||s)&&e.canUseDOM){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),J=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return J}function ce(s){s===void 0&&(s=e.ownerDocument());try{var t=s.activeElement;return!t||!t.nodeName?null:t}catch{return s.body}}function We(s=document){const t=s.defaultView;return Math.abs(t.innerWidth-s.documentElement.clientWidth)}const Ee=v.dataAttr("modal-open");class fe{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return We(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();t.style={overflow:r.style.overflow,[o]:r.style[o]},t.scrollBarWidth&&(n[o]=`${parseInt(e.style(r,o)||"0",10)+t.scrollBarWidth}px`),r.setAttribute(Ee,""),e.style(r,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Ee),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const He=["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 _e(s,t){if(s==null)return{};var n={},o=Object.keys(s),r,i;for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(n[r]=s[r]);return n}let ue;function $e(s){return ue||(ue=new fe({ownerDocument:s==null?void 0:s.document})),ue}function qe(s){const t=e.useWindow(),n=s||$e(t),o=a.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:a.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:a.useCallback(r=>{o.current.backdrop=r},[])})}const Re=a.forwardRef((s,t)=>{let{show:n=!1,role:o="dialog",className:r,style:i,children:m,backdrop:c=!0,keyboard:f=!0,onBackdropClick:p,onEscapeKeyDown:u,transition:h,runTransition:C,backdropTransition:w,runBackdropTransition:Q,autoFocus:W=!0,enforceFocus:Z=!0,restoreFocus:N=!0,restoreFocusOptions:ee,renderDialog:H,renderBackdrop:te=d=>e.jsxRuntimeExports.jsx("div",Object.assign({},d)),manager:se,container:ne,onShow:_,onHide:A=()=>{},onExit:oe,onExited:D,onExiting:$,onEnter:q,onEntering:K,onEntered:z}=s,re=_e(s,He);const j=e.useWindow(),M=e.useWaitForDOMRef(ne),x=qe(se),ae=e.useMounted(),G=v.usePrevious(n),[y,T]=a.useState(!n),E=a.useRef(null);a.useImperativeHandle(t,()=>x,[x]),e.canUseDOM&&!G&&n&&(E.current=ce(j==null?void 0:j.document)),n&&y&&T(!1);const R=e.useEventCallback(()=>{if(x.add(),k.current=e.listen(document,"keydown",le),I.current=e.listen(document,"focus",()=>setTimeout(ie),!0),_&&_(),W){var d,Y;const U=ce((d=(Y=x.dialog)==null?void 0:Y.ownerDocument)!=null?d:j==null?void 0:j.document);x.dialog&&U&&!e.contains(x.dialog,U)&&(E.current=U,x.dialog.focus())}}),F=e.useEventCallback(()=>{if(x.remove(),k.current==null||k.current(),I.current==null||I.current(),N){var d;(d=E.current)==null||d.focus==null||d.focus(ee),E.current=null}});a.useEffect(()=>{!n||!M||R()},[n,M,R]),a.useEffect(()=>{y&&F()},[y,F]),e.useWillUnmount(()=>{F()});const ie=e.useEventCallback(()=>{if(!Z||!ae()||!x.isTopModal())return;const d=ce(j==null?void 0:j.document);x.dialog&&d&&!e.contains(x.dialog,d)&&x.dialog.focus()}),V=e.useEventCallback(d=>{d.target===d.currentTarget&&(p==null||p(d),c===!0&&A())}),le=e.useEventCallback(d=>{f&&e.isEscKey(d)&&x.isTopModal()&&(u==null||u(d),d.defaultPrevented||A())}),I=a.useRef(),k=a.useRef(),X=(...d)=>{T(!0),D==null||D(...d)};if(!M)return null;const S=Object.assign({role:o,ref:x.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},re,{style:i,className:r,tabIndex:-1});let P=H?H(S):e.jsxRuntimeExports.jsx("div",Object.assign({},S,{children:g.cloneElement(m,{role:"document"})}));P=e.renderTransition(h,C,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:oe,onExiting:$,onExited:X,onEnter:q,onEntering:K,onEntered:z,children:P});let O=null;return c&&(O=te({ref:x.setBackdropRef,onClick:V}),O=e.renderTransition(w,Q,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O})),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:Fe.createPortal(e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[O,P]}),M)})});Re.displayName="Modal";const Ke=Object.assign(Re,{Manager:fe});function ze(s,t){s.classList?s.classList.add(t):e.hasClass(s,t)||(typeof s.className=="string"?s.className=s.className+" "+t:s.setAttribute("class",(s.className&&s.className.baseVal||"")+" "+t))}function ve(s,t){return s.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ge(s,t){s.classList?s.classList.remove(t):typeof s.className=="string"?s.className=ve(s.className,t):s.setAttribute("class",ve(s.className&&s.className.baseVal||"",t))}const B={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Ve extends fe{adjustAndStore(t,n,o){const r=n.style[t];n.dataset[t]=r,e.style(n,{[t]:`${parseFloat(e.style(n,t))+o}px`})}restore(t,n){const o=n.dataset[t];o!==void 0&&(delete n.dataset[t],e.style(n,{[t]:o}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(ze(n,"modal-open"),!t.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";v.qsa(n,B.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth)),v.qsa(n,B.STICKY_CONTENT).forEach(i=>this.adjustAndStore(r,i,-t.scrollBarWidth)),v.qsa(n,B.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Ge(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";v.qsa(n,B.FIXED_CONTENT).forEach(i=>this.restore(o,i)),v.qsa(n,B.STICKY_CONTENT).forEach(i=>this.restore(r,i)),v.qsa(n,B.NAVBAR_TOGGLER).forEach(i=>this.restore(r,i))}}let de;function Xe(s){return de||(de=new Ve(s)),de}const Ce=g.forwardRef(({className:s,bsPrefix:t,as:n="div",...o},r)=>(t=e.useBootstrapPrefix(t,"modal-body"),e.jsxRuntimeExports.jsx(n,{ref:r,className:e.classNames(s,t),...o})));Ce.displayName="ModalBody";const ye=g.createContext({onHide(){}}),pe=g.forwardRef(({bsPrefix:s,className:t,contentClassName:n,centered:o,size:r,fullscreen:i,children:m,scrollable:c,...f},p)=>{s=e.useBootstrapPrefix(s,"modal");const u=`${s}-dialog`,h=typeof i=="string"?`${s}-fullscreen-${i}`:`${s}-fullscreen`;return e.jsxRuntimeExports.jsx("div",{...f,ref:p,className:e.classNames(u,t,r&&`${s}-${r}`,o&&`${u}-centered`,c&&`${u}-scrollable`,i&&h),children:e.jsxRuntimeExports.jsx("div",{className:e.classNames(`${s}-content`,n),children:m})})});pe.displayName="ModalDialog";const be=g.forwardRef(({className:s,bsPrefix:t,as:n="div",...o},r)=>(t=e.useBootstrapPrefix(t,"modal-footer"),e.jsxRuntimeExports.jsx(n,{ref:r,className:e.classNames(s,t),...o})));be.displayName="ModalFooter";const Ye=g.forwardRef(({closeLabel:s="Close",closeVariant:t,closeButton:n=!1,onHide:o,children:r,...i},m)=>{const c=a.useContext(ye),f=e.useEventCallback(()=>{c==null||c.onHide(),o==null||o()});return e.jsxRuntimeExports.jsxs("div",{ref:m,...i,children:[r,n&&e.jsxRuntimeExports.jsx(me,{"aria-label":s,variant:t,onClick:f})]})}),we=g.forwardRef(({bsPrefix:s,className:t,closeLabel:n="Close",closeButton:o=!1,...r},i)=>(s=e.useBootstrapPrefix(s,"modal-header"),e.jsxRuntimeExports.jsx(Ye,{ref:i,...r,className:e.classNames(t,s),closeLabel:n,closeButton:o})));we.displayName="ModalHeader";const Je=Pe("h4"),Ne=g.forwardRef(({className:s,bsPrefix:t,as:n=Je,...o},r)=>(t=e.useBootstrapPrefix(t,"modal-title"),e.jsxRuntimeExports.jsx(n,{ref:r,className:e.classNames(s,t),...o})));Ne.displayName="ModalTitle";function Qe(s){return e.jsxRuntimeExports.jsx(e.Fade,{...s,timeout:null})}function Ze(s){return e.jsxRuntimeExports.jsx(e.Fade,{...s,timeout:null})}const Me=g.forwardRef(({bsPrefix:s,className:t,style:n,dialogClassName:o,contentClassName:r,children:i,dialogAs:m=pe,"data-bs-theme":c,"aria-labelledby":f,"aria-describedby":p,"aria-label":u,show:h=!1,animation:C=!0,backdrop:w=!0,keyboard:Q=!0,onEscapeKeyDown:W,onShow:Z,onHide:N,container:ee,autoFocus:H=!0,enforceFocus:te=!0,restoreFocus:se=!0,restoreFocusOptions:ne,onEntered:_,onExit:A,onExiting:oe,onEnter:D,onEntering:$,onExited:q,backdropClassName:K,manager:z,...re},j)=>{const[M,x]=a.useState({}),[ae,G]=a.useState(!1),y=a.useRef(!1),T=a.useRef(!1),E=a.useRef(null),[R,F]=e.useCallbackRef(),ie=e.useMergedRefs(j,F),V=e.useEventCallback(N),le=e.useIsRTL();s=e.useBootstrapPrefix(s,"modal");const I=a.useMemo(()=>({onHide:V}),[V]);function k(){return z||Xe({isRTL:le})}function X(l){if(!e.canUseDOM)return;const L=k().getScrollbarWidth()>0,he=l.scrollHeight>e.ownerDocument(l).documentElement.clientHeight;x({paddingRight:L&&!he?ge():void 0,paddingLeft:!L&&he?ge():void 0})}const S=e.useEventCallback(()=>{R&&X(R.dialog)});e.useWillUnmount(()=>{e.removeEventListener(window,"resize",S),E.current==null||E.current()});const P=()=>{y.current=!0},O=l=>{y.current&&R&&l.target===R.dialog&&(T.current=!0),y.current=!1},d=()=>{G(!0),E.current=e.transitionEnd(R.dialog,()=>{G(!1)})},Y=l=>{l.target===l.currentTarget&&d()},U=l=>{if(w==="static"){Y(l);return}if(T.current||l.target!==l.currentTarget){T.current=!1;return}N==null||N()},Te=l=>{Q?W==null||W(l):(l.preventDefault(),w==="static"&&d())},ke=(l,L)=>{l&&X(l),D==null||D(l,L)},Se=l=>{E.current==null||E.current(),A==null||A(l)},Oe=(l,L)=>{$==null||$(l,L),e.addEventListener(window,"resize",S)},Le=l=>{l&&(l.style.display=""),q==null||q(l),e.removeEventListener(window,"resize",S)},Be=a.useCallback(l=>e.jsxRuntimeExports.jsx("div",{...l,className:e.classNames(`${s}-backdrop`,K,!C&&"show")}),[C,K,s]),xe={...n,...M};xe.display="block";const Ae=l=>e.jsxRuntimeExports.jsx("div",{role:"dialog",...l,style:xe,className:e.classNames(t,s,ae&&`${s}-static`,!C&&"show"),onClick:w?U:void 0,onMouseUp:O,"data-bs-theme":c,"aria-label":u,"aria-labelledby":f,"aria-describedby":p,children:e.jsxRuntimeExports.jsx(m,{...re,onMouseDown:P,className:o,contentClassName:r,children:i})});return e.jsxRuntimeExports.jsx(ye.Provider,{value:I,children:e.jsxRuntimeExports.jsx(Ke,{show:h,ref:ie,backdrop:w,container:ee,keyboard:!0,autoFocus:H,enforceFocus:te,restoreFocus:se,restoreFocusOptions:ne,onEscapeKeyDown:Te,onShow:Z,onHide:N,onEnter:ke,onEntering:Oe,onEntered:_,onExit:Se,onExiting:oe,onExited:Le,manager:k(),transition:C?Qe:void 0,backdropTransition:C?Ze:void 0,renderBackdrop:Be,renderDialog:Ae})})});Me.displayName="Modal";const b=Object.assign(Me,{Body:Ce,Header:we,Title:Ne,Footer:be,Dialog:pe,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),et=()=>{const{confirmTexts:s}=a.useContext(e.LuminusComponentsContext),{isShown:t,text:n,onFinish:o}=je.usePrompt(),{options:r}=a.useContext(e.PromptContext),[i,m]=a.useState(""),c=a.useCallback(()=>{o(null)},[o]),f=a.useCallback(()=>{o(i)},[o,i]);a.useEffect(()=>{t===!0&&m("")},[t]);const p=a.useMemo(()=>({value:i,onChange:u=>m(u.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[i]);return e.jsxRuntimeExports.jsxs(b,{show:t,size:"sm",centered:!0,onHide:c,children:[e.jsxRuntimeExports.jsx(b.Header,{children:e.jsxRuntimeExports.jsx(b.Title,{children:n})}),e.jsxRuntimeExports.jsxs(b.Body,{children:[r.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...p,rows:5}):void 0,r.input==="input"?e.jsxRuntimeExports.jsx("input",{...p,type:r.type}):void 0]}),e.jsxRuntimeExports.jsxs(b.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:c,children:s.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:f,disabled:r.required&&!i,children:s.confirm})]})]})},tt=({children:s})=>{const[t,n]=a.useState(!1),[o,r]=a.useState(""),[i,m]=a.useState({input:"textarea",type:"text"}),c=a.useRef(()=>{}),f=a.useCallback(h=>{r(h),n(!0),console.log("showprompt")},[]),p=a.useCallback(()=>{n(!1)},[]),u=a.useMemo(()=>({isShown:t,text:o,showPrompt:f,hidePrompt:p,resolveRef:c,options:i,setOptions:m}),[t,o,f,p,i]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:u,children:[s,e.jsxRuntimeExports.jsx(et,{})]})},st=({children:s})=>{const[t,n]=a.useState(!1),[o,r]=a.useState(""),i=a.useCallback(f=>{n(!0),r(f)},[]),m=a.useCallback(()=>{n(!1)},[]),c=a.useMemo(()=>({show:t,text:o,showConfirm:i,hideConfirm:m}),[t,o,i,m]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:c,children:[e.jsxRuntimeExports.jsx(at,{}),s]})},nt=({cookieDomain:s,axiosInstance:t,LinkComponent:n,language:o,axiosTexts:r,confirmTexts:i,formValidationTexts:m,homeDashboardTexts:c,formSubmitTexts:f,appSearchTexts:p,children:u})=>{const h=a.useMemo(()=>({axiosInstance:t,cookieDomain:s,LinkComponent:n,language:o,axiosTexts:r,confirmTexts:i,formValidationTexts:m,homeDashboardTexts:c,formSubmitTexts:f,appSearchTexts:p}),[t,s,n,o,r,i,m,c,f,p]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:h,children:e.jsxRuntimeExports.jsx(st,{children:e.jsxRuntimeExports.jsxs(tt,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),u]})})})},ot=({children:s})=>{const[t,n]=a.useState(!1),[o]=a.useState(new Set),r=a.useCallback(c=>{o.add(c),n(!0)},[o]),i=a.useCallback(c=>{o.delete(c),o.size===0&&n(!1)},[o]),m=a.useMemo(()=>({isLoading:t,startLoading:r,stopLoading:i}),[t,r,i]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:m,children:[t&&e.jsxRuntimeExports.jsx(v.Loading,{}),s]})},rt=({children:s})=>{const t=e.useAxios(),n=a.useCallback(()=>{const u=localStorage.getItem("user")??null;return u?JSON.parse(u):null},[]),[o,r]=a.useState(n()),i=a.useCallback(async()=>{let u=null;return await t.get("/user/detail").then(h=>{u=h.data}).catch(()=>{u=null}),localStorage.setItem("user",JSON.stringify(u)),u},[t]),m=a.useCallback(()=>{localStorage.removeItem("user")},[]),c=a.useCallback(async()=>{const u=await i();return u?(r(u),!0):!1},[i]),f=a.useCallback(()=>{m(),r(null)},[m]),p=a.useMemo(()=>({user:o,loginUser:c,logoutUser:f}),[o,c,f]);return a.useEffect(()=>{r(n())},[n]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:p,children:s})},at=()=>{const{confirmTexts:s}=a.useContext(e.LuminusComponentsContext),{onConfirm:t,onCancel:n,text:o,show:r}=je.useConfirm();return e.jsxRuntimeExports.jsx(b,{show:r,size:"sm",centered:!0,onHide:n,children:e.jsxRuntimeExports.jsxs(b.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(De.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:n,children:s.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:t,children:s.yes})]})]})})};exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.LoadingProvider=ot;exports.LuminusComponentsProvider=nt;exports.UserProvider=rt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./UserAvatarToggle-DVtkEr7E.cjs"),a=require("react"),je=require("./useConfirm-8L-hW_Lc.cjs"),De=require("./Typography-z6yGwy1k.cjs"),j=require("./DataKey-BllxlutQ.cjs"),Fe=require("react-dom");function Ie(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>s[n]})}}return t.default=s,Object.freeze(t)}const g=Ie(a),Pe=s=>g.forwardRef((t,n)=>e.jsxRuntimeExports.jsx("div",{...t,ref:n,className:e.classNames(t.className,s)})),Ue={"aria-label":e.PropTypes.string,onClick:e.PropTypes.func,variant:e.PropTypes.oneOf(["white"])},me=g.forwardRef(({className:s,variant:t,"aria-label":n="Close",...o},r)=>e.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:e.classNames("btn-close",t&&`btn-close-${t}`,s),"aria-label":n,...o}));me.displayName="CloseButton";me.propTypes=Ue;var J;function ge(s){if((!J&&J!==0||s)&&e.canUseDOM){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),J=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return J}function ce(s){s===void 0&&(s=e.ownerDocument());try{var t=s.activeElement;return!t||!t.nodeName?null:t}catch{return s.body}}function We(s=document){const t=s.defaultView;return Math.abs(t.innerWidth-s.documentElement.clientWidth)}const Ee=j.dataAttr("modal-open");class fe{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return We(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();t.style={overflow:r.style.overflow,[o]:r.style[o]},t.scrollBarWidth&&(n[o]=`${parseInt(e.style(r,o)||"0",10)+t.scrollBarWidth}px`),r.setAttribute(Ee,""),e.style(r,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Ee),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const He=["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 _e(s,t){if(s==null)return{};var n={},o=Object.keys(s),r,i;for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(n[r]=s[r]);return n}let ue;function $e(s){return ue||(ue=new fe({ownerDocument:s==null?void 0:s.document})),ue}function qe(s){const t=e.useWindow(),n=s||$e(t),o=a.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:a.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:a.useCallback(r=>{o.current.backdrop=r},[])})}const Re=a.forwardRef((s,t)=>{let{show:n=!1,role:o="dialog",className:r,style:i,children:m,backdrop:c=!0,keyboard:f=!0,onBackdropClick:p,onEscapeKeyDown:u,transition:h,runTransition:v,backdropTransition:w,runBackdropTransition:Q,autoFocus:W=!0,enforceFocus:Z=!0,restoreFocus:N=!0,restoreFocusOptions:ee,renderDialog:H,renderBackdrop:te=d=>e.jsxRuntimeExports.jsx("div",Object.assign({},d)),manager:se,container:ne,onShow:_,onHide:A=()=>{},onExit:oe,onExited:D,onExiting:$,onEnter:q,onEntering:K,onEntered:z}=s,re=_e(s,He);const R=e.useWindow(),M=e.useWaitForDOMRef(ne),x=qe(se),ae=e.useMounted(),G=j.usePrevious(n),[y,k]=a.useState(!n),E=a.useRef(null);a.useImperativeHandle(t,()=>x,[x]),e.canUseDOM&&!G&&n&&(E.current=ce(R==null?void 0:R.document)),n&&y&&k(!1);const C=e.useEventCallback(()=>{if(x.add(),T.current=e.listen(document,"keydown",le),I.current=e.listen(document,"focus",()=>setTimeout(ie),!0),_&&_(),W){var d,Y;const U=ce((d=(Y=x.dialog)==null?void 0:Y.ownerDocument)!=null?d:R==null?void 0:R.document);x.dialog&&U&&!e.contains(x.dialog,U)&&(E.current=U,x.dialog.focus())}}),F=e.useEventCallback(()=>{if(x.remove(),T.current==null||T.current(),I.current==null||I.current(),N){var d;(d=E.current)==null||d.focus==null||d.focus(ee),E.current=null}});a.useEffect(()=>{!n||!M||C()},[n,M,C]),a.useEffect(()=>{y&&F()},[y,F]),e.useWillUnmount(()=>{F()});const ie=e.useEventCallback(()=>{if(!Z||!ae()||!x.isTopModal())return;const d=ce(R==null?void 0:R.document);x.dialog&&d&&!e.contains(x.dialog,d)&&x.dialog.focus()}),V=e.useEventCallback(d=>{d.target===d.currentTarget&&(p==null||p(d),c===!0&&A())}),le=e.useEventCallback(d=>{f&&e.isEscKey(d)&&x.isTopModal()&&(u==null||u(d),d.defaultPrevented||A())}),I=a.useRef(),T=a.useRef(),X=(...d)=>{k(!0),D==null||D(...d)};if(!M)return null;const S=Object.assign({role:o,ref:x.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},re,{style:i,className:r,tabIndex:-1});let P=H?H(S):e.jsxRuntimeExports.jsx("div",Object.assign({},S,{children:g.cloneElement(m,{role:"document"})}));P=e.renderTransition(h,v,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:oe,onExiting:$,onExited:X,onEnter:q,onEntering:K,onEntered:z,children:P});let O=null;return c&&(O=te({ref:x.setBackdropRef,onClick:V}),O=e.renderTransition(w,Q,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O})),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:Fe.createPortal(e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[O,P]}),M)})});Re.displayName="Modal";const Ke=Object.assign(Re,{Manager:fe});function ze(s,t){s.classList?s.classList.add(t):e.hasClass(s,t)||(typeof s.className=="string"?s.className=s.className+" "+t:s.setAttribute("class",(s.className&&s.className.baseVal||"")+" "+t))}function ve(s,t){return s.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ge(s,t){s.classList?s.classList.remove(t):typeof s.className=="string"?s.className=ve(s.className,t):s.setAttribute("class",ve(s.className&&s.className.baseVal||"",t))}const B={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Ve extends fe{adjustAndStore(t,n,o){const r=n.style[t];n.dataset[t]=r,e.style(n,{[t]:`${parseFloat(e.style(n,t))+o}px`})}restore(t,n){const o=n.dataset[t];o!==void 0&&(delete n.dataset[t],e.style(n,{[t]:o}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(ze(n,"modal-open"),!t.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j.qsa(n,B.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth)),j.qsa(n,B.STICKY_CONTENT).forEach(i=>this.adjustAndStore(r,i,-t.scrollBarWidth)),j.qsa(n,B.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Ge(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j.qsa(n,B.FIXED_CONTENT).forEach(i=>this.restore(o,i)),j.qsa(n,B.STICKY_CONTENT).forEach(i=>this.restore(r,i)),j.qsa(n,B.NAVBAR_TOGGLER).forEach(i=>this.restore(r,i))}}let de;function Xe(s){return de||(de=new Ve(s)),de}const Ce=g.forwardRef(({className:s,bsPrefix:t,as:n="div",...o},r)=>(t=e.useBootstrapPrefix(t,"modal-body"),e.jsxRuntimeExports.jsx(n,{ref:r,className:e.classNames(s,t),...o})));Ce.displayName="ModalBody";const ye=g.createContext({onHide(){}}),pe=g.forwardRef(({bsPrefix:s,className:t,contentClassName:n,centered:o,size:r,fullscreen:i,children:m,scrollable:c,...f},p)=>{s=e.useBootstrapPrefix(s,"modal");const u=`${s}-dialog`,h=typeof i=="string"?`${s}-fullscreen-${i}`:`${s}-fullscreen`;return e.jsxRuntimeExports.jsx("div",{...f,ref:p,className:e.classNames(u,t,r&&`${s}-${r}`,o&&`${u}-centered`,c&&`${u}-scrollable`,i&&h),children:e.jsxRuntimeExports.jsx("div",{className:e.classNames(`${s}-content`,n),children:m})})});pe.displayName="ModalDialog";const be=g.forwardRef(({className:s,bsPrefix:t,as:n="div",...o},r)=>(t=e.useBootstrapPrefix(t,"modal-footer"),e.jsxRuntimeExports.jsx(n,{ref:r,className:e.classNames(s,t),...o})));be.displayName="ModalFooter";const Ye=g.forwardRef(({closeLabel:s="Close",closeVariant:t,closeButton:n=!1,onHide:o,children:r,...i},m)=>{const c=a.useContext(ye),f=e.useEventCallback(()=>{c==null||c.onHide(),o==null||o()});return e.jsxRuntimeExports.jsxs("div",{ref:m,...i,children:[r,n&&e.jsxRuntimeExports.jsx(me,{"aria-label":s,variant:t,onClick:f})]})}),we=g.forwardRef(({bsPrefix:s,className:t,closeLabel:n="Close",closeButton:o=!1,...r},i)=>(s=e.useBootstrapPrefix(s,"modal-header"),e.jsxRuntimeExports.jsx(Ye,{ref:i,...r,className:e.classNames(t,s),closeLabel:n,closeButton:o})));we.displayName="ModalHeader";const Je=Pe("h4"),Ne=g.forwardRef(({className:s,bsPrefix:t,as:n=Je,...o},r)=>(t=e.useBootstrapPrefix(t,"modal-title"),e.jsxRuntimeExports.jsx(n,{ref:r,className:e.classNames(s,t),...o})));Ne.displayName="ModalTitle";function Qe(s){return e.jsxRuntimeExports.jsx(e.Fade,{...s,timeout:null})}function Ze(s){return e.jsxRuntimeExports.jsx(e.Fade,{...s,timeout:null})}const Me=g.forwardRef(({bsPrefix:s,className:t,style:n,dialogClassName:o,contentClassName:r,children:i,dialogAs:m=pe,"data-bs-theme":c,"aria-labelledby":f,"aria-describedby":p,"aria-label":u,show:h=!1,animation:v=!0,backdrop:w=!0,keyboard:Q=!0,onEscapeKeyDown:W,onShow:Z,onHide:N,container:ee,autoFocus:H=!0,enforceFocus:te=!0,restoreFocus:se=!0,restoreFocusOptions:ne,onEntered:_,onExit:A,onExiting:oe,onEnter:D,onEntering:$,onExited:q,backdropClassName:K,manager:z,...re},R)=>{const[M,x]=a.useState({}),[ae,G]=a.useState(!1),y=a.useRef(!1),k=a.useRef(!1),E=a.useRef(null),[C,F]=e.useCallbackRef(),ie=e.useMergedRefs(R,F),V=e.useEventCallback(N),le=e.useIsRTL();s=e.useBootstrapPrefix(s,"modal");const I=a.useMemo(()=>({onHide:V}),[V]);function T(){return z||Xe({isRTL:le})}function X(l){if(!e.canUseDOM)return;const L=T().getScrollbarWidth()>0,he=l.scrollHeight>e.ownerDocument(l).documentElement.clientHeight;x({paddingRight:L&&!he?ge():void 0,paddingLeft:!L&&he?ge():void 0})}const S=e.useEventCallback(()=>{C&&X(C.dialog)});e.useWillUnmount(()=>{e.removeEventListener(window,"resize",S),E.current==null||E.current()});const P=()=>{y.current=!0},O=l=>{y.current&&C&&l.target===C.dialog&&(k.current=!0),y.current=!1},d=()=>{G(!0),E.current=e.transitionEnd(C.dialog,()=>{G(!1)})},Y=l=>{l.target===l.currentTarget&&d()},U=l=>{if(w==="static"){Y(l);return}if(k.current||l.target!==l.currentTarget){k.current=!1;return}N==null||N()},ke=l=>{Q?W==null||W(l):(l.preventDefault(),w==="static"&&d())},Te=(l,L)=>{l&&X(l),D==null||D(l,L)},Se=l=>{E.current==null||E.current(),A==null||A(l)},Oe=(l,L)=>{$==null||$(l,L),e.addEventListener(window,"resize",S)},Le=l=>{l&&(l.style.display=""),q==null||q(l),e.removeEventListener(window,"resize",S)},Be=a.useCallback(l=>e.jsxRuntimeExports.jsx("div",{...l,className:e.classNames(`${s}-backdrop`,K,!v&&"show")}),[v,K,s]),xe={...n,...M};xe.display="block";const Ae=l=>e.jsxRuntimeExports.jsx("div",{role:"dialog",...l,style:xe,className:e.classNames(t,s,ae&&`${s}-static`,!v&&"show"),onClick:w?U:void 0,onMouseUp:O,"data-bs-theme":c,"aria-label":u,"aria-labelledby":f,"aria-describedby":p,children:e.jsxRuntimeExports.jsx(m,{...re,onMouseDown:P,className:o,contentClassName:r,children:i})});return e.jsxRuntimeExports.jsx(ye.Provider,{value:I,children:e.jsxRuntimeExports.jsx(Ke,{show:h,ref:ie,backdrop:w,container:ee,keyboard:!0,autoFocus:H,enforceFocus:te,restoreFocus:se,restoreFocusOptions:ne,onEscapeKeyDown:ke,onShow:Z,onHide:N,onEnter:Te,onEntering:Oe,onEntered:_,onExit:Se,onExiting:oe,onExited:Le,manager:T(),transition:v?Qe:void 0,backdropTransition:v?Ze:void 0,renderBackdrop:Be,renderDialog:Ae})})});Me.displayName="Modal";const b=Object.assign(Me,{Body:Ce,Header:we,Title:Ne,Footer:be,Dialog:pe,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),et=()=>{const{confirmTexts:s}=a.useContext(e.LuminusComponentsContext),{isShown:t,text:n,onFinish:o}=je.usePrompt(),{options:r}=a.useContext(e.PromptContext),[i,m]=a.useState(""),c=a.useCallback(()=>{o(null)},[o]),f=a.useCallback(()=>{o(i)},[o,i]);a.useEffect(()=>{t===!0&&m("")},[t]);const p=a.useMemo(()=>({value:i,onChange:u=>m(u.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[i]);return e.jsxRuntimeExports.jsxs(b,{show:t,size:"sm",centered:!0,onHide:c,children:[e.jsxRuntimeExports.jsx(b.Header,{children:e.jsxRuntimeExports.jsx(b.Title,{children:n})}),e.jsxRuntimeExports.jsxs(b.Body,{children:[r.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...p,rows:5}):void 0,r.input==="input"?e.jsxRuntimeExports.jsx("input",{...p,type:r.type}):void 0]}),e.jsxRuntimeExports.jsxs(b.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:c,children:s.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:f,disabled:r.required&&!i,children:s.confirm})]})]})},tt=({children:s})=>{const[t,n]=a.useState(!1),[o,r]=a.useState(""),[i,m]=a.useState({input:"textarea",type:"text"}),c=a.useRef(()=>{}),f=a.useCallback(h=>{r(h),n(!0),console.log("showprompt")},[]),p=a.useCallback(()=>{n(!1)},[]),u=a.useMemo(()=>({isShown:t,text:o,showPrompt:f,hidePrompt:p,resolveRef:c,options:i,setOptions:m}),[t,o,f,p,i]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:u,children:[s,e.jsxRuntimeExports.jsx(et,{})]})},st=({children:s})=>{const[t,n]=a.useState(!1),[o,r]=a.useState(""),i=a.useCallback(f=>{n(!0),r(f)},[]),m=a.useCallback(()=>{n(!1)},[]),c=a.useMemo(()=>({show:t,text:o,showConfirm:i,hideConfirm:m}),[t,o,i,m]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:c,children:[e.jsxRuntimeExports.jsx(at,{}),s]})},nt=({cookieDomain:s,axiosInstance:t,LinkComponent:n,language:o,axiosTexts:r,confirmTexts:i,formValidationTexts:m,homeDashboardTexts:c,formSubmitTexts:f,appSearchTexts:p,customSelectTexts:u,children:h})=>{const v=a.useMemo(()=>({axiosInstance:t,cookieDomain:s,LinkComponent:n,language:o,axiosTexts:r,confirmTexts:i,formValidationTexts:m,homeDashboardTexts:c,formSubmitTexts:f,appSearchTexts:p,customSelectTexts:u}),[t,s,n,o,r,i,m,c,f,p,u]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:v,children:e.jsxRuntimeExports.jsx(st,{children:e.jsxRuntimeExports.jsxs(tt,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),h]})})})},ot=({children:s})=>{const[t,n]=a.useState(!1),[o]=a.useState(new Set),r=a.useCallback(c=>{o.add(c),n(!0)},[o]),i=a.useCallback(c=>{o.delete(c),o.size===0&&n(!1)},[o]),m=a.useMemo(()=>({isLoading:t,startLoading:r,stopLoading:i}),[t,r,i]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:m,children:[t&&e.jsxRuntimeExports.jsx(j.Loading,{}),s]})},rt=({children:s})=>{const t=e.useAxios(),n=a.useCallback(()=>{const u=localStorage.getItem("user")??null;return u?JSON.parse(u):null},[]),[o,r]=a.useState(n()),i=a.useCallback(async()=>{let u=null;return await t.get("/user/detail").then(h=>{u=h.data}).catch(()=>{u=null}),localStorage.setItem("user",JSON.stringify(u)),u},[t]),m=a.useCallback(()=>{localStorage.removeItem("user")},[]),c=a.useCallback(async()=>{const u=await i();return u?(r(u),!0):!1},[i]),f=a.useCallback(()=>{m(),r(null)},[m]),p=a.useMemo(()=>({user:o,loginUser:c,logoutUser:f}),[o,c,f]);return a.useEffect(()=>{r(n())},[n]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:p,children:s})},at=()=>{const{confirmTexts:s}=a.useContext(e.LuminusComponentsContext),{onConfirm:t,onCancel:n,text:o,show:r}=je.useConfirm();return e.jsxRuntimeExports.jsx(b,{show:r,size:"sm",centered:!0,onHide:n,children:e.jsxRuntimeExports.jsxs(b.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(De.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:n,children:s.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:t,children:s.yes})]})]})})};exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.LoadingProvider=ot;exports.LuminusComponentsProvider=nt;exports.UserProvider=rt;
|