master-components-react-ts 2.4.5 → 2.4.7
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/index.js +503 -495
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";button.mc__MainButton-module__mainButton{width:100%;display:flex;padding:8px;justify-content:center;align-items:center;border-radius:6px;min-width:100px;outline:none;border:none;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}button.mc__MainButton-module__mainButton.mc__MainButton-module__sm{height:32px}button.mc__MainButton-module__mainButton.mc__MainButton-module__md{height:36px}button.mc__MainButton-module__mainButton.mc__MainButton-module__lg{height:40px}button.mc__MainButton-module__mainButton .mc__MainButton-module__mainButtonContent{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}button.mc__MainButton-module__mainButton .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{overflow:hidden;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral{background:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#004fe5!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral.mc__MainButton-module__focused{outline:2px solid #dee9fc;outline-offset:0px;background:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive{background:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#266905!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive.mc__MainButton-module__focused{outline:2px solid #c3ebb0;outline-offset:0px;background:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative{background:#e3292f}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#db1d23!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative.mc__MainButton-module__focused{outline:2px solid #fcdcdc;outline-offset:0px;background:#e3292f}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral{background:#ecf3ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#dee9fc!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__disabled{background:#f2f2f2;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__focused{outline-offset:0px;background:#ecf3ff;box-shadow:0 0 0 2px #0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive{background:#effce8}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#e0fad2!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive.mc__MainButton-module__focused{outline:2px solid #60bf30;outline-offset:0px;background:#effce8}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative{background:#fff2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#fcdcdc!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative.mc__MainButton-module__focused{outline:2px solid #ff5757;outline-offset:0px;background:#fff2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#db1d23}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral{background:#f2f2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#e6e6e6!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__disabled{background:#f2f2f2;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__focused{outline:2px solid #c1c2c7;outline-offset:0px;background:#f2f2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#131314}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive{background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#effce8!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__disabled{background:#fff;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__focused{outline:2px solid #91e766;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative{background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#fff2f2!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__disabled{background:#fff;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__focused{outline:2px solid #fcdcdc;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#e3292f}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2{background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#ecf3ff!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__disabled{background:#f2f2f2;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__focused{outline:2px solid #dee9fc;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2 .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3{border:1px solid #e6e6e6;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){border-color:#c1c2c7!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__disabled{background:#fff;border:1px solid #e6e6e6;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__focused{border:1px solid transparent;outline:2px solid #dee9fc;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3 .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#292d33}.mc__FormInput-module__inputWrapper{width:100%;display:flex;flex-direction:column;gap:10px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__sm .mc__FormInput-module__formInputWrapper{height:36px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__md .mc__FormInput-module__formInputWrapper{height:40px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputLabel{width:100%;overflow:hidden;color:#95969c;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInput{width:100%;overflow:hidden;color:#7a7b80;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputHelperText{width:100%;overflow:hidden;color:#95969c;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputWrapper{border-radius:6px;border:1px solid #e6e6e6;background:#fafafa}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputWrapper .mc__FormInput-module__formInput{width:100%;overflow:hidden;color:#7a7b80;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px;cursor:not-allowed}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputWrapper .mc__FormInput-module__formInput::placeholder{width:100%;overflow:hidden;color:#7a7b80;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper .mc__FormInput-module__formInputLabel{width:100%;overflow:hidden;color:#131314;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper .mc__FormInput-module__formInputLabel .mc__FormInput-module__formInputRequired{overflow:hidden;color:#e3292f;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper .mc__FormInput-module__formInputHelperSlot{display:flex;align-items:center;justify-content:center}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper{width:100%;display:flex;align-items:center;gap:8px;padding:8px;border-radius:6px;border:1px solid #e6e6e6;background:#fff}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__errorState{border-radius:6px;background:#fff;outline:1px solid #f63e45;outline-offset:-1px;box-shadow:none}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__focused{border-radius:6px;background:#fff;outline:2px solid #0058ff;outline-offset:-2px;box-shadow:none}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__active{border-radius:6px;background:#fff;outline:1.5px solid #0058ff;outline-offset:-1.5px;box-shadow:0 0 0 2px #dee9fc}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__errorFocused{border-radius:6px;background:#fff;outline:2px solid #f63e45;outline-offset:-2px;box-shadow:none}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__errorActive{border-radius:6px;background:#fff;outline:1.5px solid #f63e45;outline-offset:-1.5px;box-shadow:0 0 0 2px #fcdcdd}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper input.mc__FormInput-module__formInput{border:none;outline:none;background-color:transparent;caret-color:#0058ff;width:100%;overflow:hidden;color:#131314;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper input.mc__FormInput-module__formInput::placeholder{width:100%;overflow:hidden;color:#646569;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper .mc__FormInput-module__formInputSlot{display:grid;place-items:center}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputHelperText{width:100%;overflow:hidden;color:#131314;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputHelperText.mc__FormInput-module__errorHelperText{width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px;color:#e3292f}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputHelperText.mc__FormInput-module__successHelperText{width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px;color:#328707}.mc__Textarea-module__textareaContainer{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;flex-shrink:0}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textAreaLabel{justify-content:space-between;display:flex;align-items:center;gap:.125rem;width:100%}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textAreaLabel p{width:100%;overflow:hidden;color:#131314;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textAreaLabel .mc__Textarea-module__required{color:#d92d20;font-size:.875rem;font-family:var(--font-inter-regular);font-style:normal;font-weight:500;line-height:1.25rem}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap{display:inline-block;width:100%;position:relative}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap.mc__Textarea-module__resize textarea{resize:both}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap.mc__Textarea-module__resize:after{content:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%3e%3cpath%20d='M10%202L2%2010'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3cpath%20d='M11%207L7%2011'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3c/svg%3e");width:.9375rem;background:transparent;position:absolute;right:.125rem;bottom:.3125rem;pointer-events:none;border-radius:25%}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textareaIconClose{position:absolute;right:8px;top:8px;cursor:pointer}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea{border-radius:6px;border:1px solid #c1c2c7;background:#fff;padding:8px 12px;resize:none;width:100%;overflow:hidden;color:#131314;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-resizer{display:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-scrollbar{width:0}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-scrollbar-track{-webkit-box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-scrollbar-thumb{background-color:none;outline:0}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__errorState{border-radius:6px;background:#fff;outline:1px solid #f63e45;outline-offset:-1px;box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__focused{border-radius:6px;background:#fff;outline:2px solid #0058ff;outline-offset:-2px;box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__active{border-radius:6px;background:#fff;outline:1.5px solid #0058ff;outline-offset:-1.5px;box-shadow:0 0 0 2px #dee9fc}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__errorFocused{border-radius:6px;background:#fff;outline:2px solid #f63e45;outline-offset:-2px;box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__errorActive{border-radius:6px;background:#fff;outline:1.5px solid #f63e45;outline-offset:-1.5px;box-shadow:0 0 0 2px #fcdcdd}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::placeholder{width:100%;overflow:hidden;color:#646569;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textareaFooter{width:100%;display:flex;justify-content:flex-end;align-items:center}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textareaFooter p{color:#131314;text-align:right;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__Toggle-module__toggleWrapper{position:relative;overflow:hidden;border-radius:13.333px;background:#c1c2c7;padding:4px;cursor:pointer}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__checked{background:#0058ff}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__error{background:#e3292f}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__disabled{background:#d4d5d6;cursor:not-allowed}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__disabled.mc__Toggle-module__checked{background:#95969c}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__sm{width:24px;height:16px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__sm.mc__Toggle-module__checked .mc__Toggle-module__toggleState{left:calc(100% - 12px)}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__sm .mc__Toggle-module__toggleState{width:8px;height:8px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__md{width:32px;height:20px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__md.mc__Toggle-module__checked .mc__Toggle-module__toggleState{left:calc(100% - 16px)}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__md .mc__Toggle-module__toggleState{width:12px;height:12px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__lg{width:40px;height:24px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__lg .mc__Toggle-module__toggleState{width:16px;height:16px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__lg.mc__Toggle-module__checked .mc__Toggle-module__toggleState{left:calc(100% - 20px)}.mc__Toggle-module__toggleWrapper .mc__Toggle-module__toggleState{border-radius:8px;background:#fff;position:absolute;top:50%;left:4px;transform:translateY(-50%);transition:.2s all}.mc__Checkbox-module__checkboxWrapper{overflow:hidden;border:2px solid #c1c2c7;background:#fff;position:relative;padding:5px 4px;border-radius:3px;cursor:pointer;transition:.2;display:grid;place-items:center;width:18px;height:18px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.mc__Checkbox-module__checkboxWrapper .mc__Checkbox-module__checkMark{display:grid;place-items:center}.mc__Checkbox-module__checkboxWrapper .mc__Checkbox-module__checkMark svg{width:.625rem;user-select:none;pointer-events:none}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__error{border-color:#e3292f}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__error.mc__Checkbox-module__checked{background:#e3292f;border:none}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked{background:#0058ff;border:none}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked.mc__Checkbox-module__disabled{background:#95969c}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__disabled{cursor:not-allowed;border-color:#c1c2c7!important}.mc__Checkbox-module__Namespace_Hr.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked{background:#32b45f;border:.0625rem solid #32b45f}.mc__Checkbox-module__Namespace_Hr.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked:hover{background:#24994d;border:.0625rem solid #24994d}.mc__Checkbox-module__dark{background:#373a41;border:unset}.mc__Checkbox-module__dark.mc__Checkbox-module__checked{background:#0158ff;border:.0625rem solid #0158ff}.mc__Checkbox-module__dark.mc__Checkbox-module__checked.mc__Checkbox-module__disabled svg path{stroke:#d5d7da}.mc__Checkbox-module__dark.mc__Checkbox-module__disabled{background:#8d8d8d!important;border:.0625rem solid #373a41!important}.mc__Dropdown-module__dropdownWrapper{user-select:none;width:100%}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper{width:100%;cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot{display:flex;align-items:center;gap:2px;border-right:1px solid #e6e6e6}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot p{overflow:hidden;color:#717680;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:16px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot img{width:30px;height:30px;object-fit:contain}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot .mc__Dropdown-module__dropdownRightIconArrow{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease-in-out;width:29px;height:24px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot .mc__Dropdown-module__dropdownRightIconArrow.mc__Dropdown-module__focused{transform:rotate(180deg)}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot{overflow:hidden;width:100%;display:flex;align-items:center;gap:6px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem{border-radius:999px;background:#f2f2f2;min-width:80px;max-width:100px;display:flex;align-items:center;gap:6px;padding:6px 12px;cursor:default}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem .mc__Dropdown-module__dropdownInputSlotItemLabel{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#131314;font-family:var(--font-inter-regular);font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem .mc__Dropdown-module__dropdownInputSlotItemClose{display:flex;justify-content:center;align-items:center;cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem.mc__Dropdown-module__dropdownInputSlotItemMore{justify-content:center;min-width:44px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon{display:flex;align-items:center;gap:8px;margin:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon .mc__Dropdown-module__dropdownRightIconClose{display:flex;align-items:center;justify-content:center;cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon .mc__Dropdown-module__dropdownRightIconArrow{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease-in-out}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon.mc__Dropdown-module__focused .mc__Dropdown-module__dropdownRightIconArrow{transform:rotate(180deg)}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer{width:100%;z-index:500;padding:8px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 2px 4px #1313140a;display:flex;flex-direction:column;gap:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList{width:100%;max-height:320px;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;align-self:stretch}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem{width:100%;border-radius:4px;background:#fff;display:flex;padding:6px 16px 6px 6px;align-items:center;gap:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__selected{width:100%;border-radius:4px;background:#ecf3ff}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__selected .mc__Dropdown-module__dropdownItemLabel{width:100%}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__selected .mc__Dropdown-module__dropdownItemLabel p{width:100%;overflow:hidden;color:#0058ff!important;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__hovered{cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__hovered:hover{background:#f2f2f2}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__disabled p:first-of-type{color:#95969c!important}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__itemCheckbox{display:flex;justify-content:center;align-items:center}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel{width:calc(100% - 20px);display:flex;align-items:center;justify-content:space-between}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel .mc__Dropdown-module__dropdownItemLabelInput{display:flex;align-items:center;gap:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel .mc__Dropdown-module__dropdownItemLabelInput .mc__Dropdown-module__countryName{overflow:hidden;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel .mc__Dropdown-module__dropdownItemLabelInput .mc__Dropdown-module__countryDialCode{overflow:hidden;color:#646569;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel p:first-of-type:not(.mc__Dropdown-module__selectAll){width:100%}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel p:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#131314;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel p:last-of-type{overflow:hidden;color:#131314;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__TreeNode-module__treeNodeContainer{width:100%;display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNodeItem{display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNodeItem.mc__TreeNode-module__inDropDown{max-height:16rem;overflow:auto}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode{display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode.mc__TreeNode-module__visible{display:flex}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode.mc__TreeNode-module__hidden{display:none}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode .mc__TreeNode-module__labelRow{display:flex;align-items:center;gap:8px;border-radius:.375rem;background:#fff;padding:.5rem;cursor:pointer}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode .mc__TreeNode-module__labelRow:hover{background:#fafafa}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode .mc__TreeNode-module__labelRow .mc__TreeNode-module__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#131314;font-family:var(--font-inter-regular);font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.1px}.mc__TreeNode-module__children{display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__dropdownListFooter{background-color:#fff;width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:2px solid #fafafa;margin-top:8px}.mc__TreeNode-module__dropdownListFooter span{font-size:.875rem;color:#3a3b3e;cursor:pointer}.mc__Radio-module__radioWrapper{width:24px;height:24px;border-radius:50%;overflow:hidden;position:relative;cursor:pointer;transition:.2s}.mc__Tooltip-module__tooltipContainer{position:relative}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent{border-radius:.5rem;background:#181d27;padding:.75rem;max-width:200px;min-width:118px;position:absolute;z-index:99999;word-break:break-word}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__withoutPointer:before{all:initial}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent:before{content:" ";left:50%;border:solid transparent;height:0;width:0;position:absolute;pointer-events:none;border-width:6px;margin-left:-6px}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__top:before{top:100%;border-top-color:#181d27;left:var(--pointer-position)}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__right:before{left:-6px;top:50%;transform:translate(0) translateY(-50%);border-right-color:#181d27}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__bottom:before{bottom:100%;left:var(--pointer-position);border-bottom-color:#181d27}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__left:before{left:auto;right:-12px;top:50%;transform:translate(0) translateY(-50%);border-left-color:#181d27}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipTitle{width:100%;word-break:break-word;color:#fff;font-family:var(--font-inter-regular);font-size:.75rem;font-style:normal;font-weight:600;line-height:1.125rem}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipText{width:100%;word-break:break-word;color:#ffffffe6;font-family:var(--font-inter-regular);font-size:.75rem;font-style:normal;font-weight:500;line-height:1.125rem}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent{background:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__top:before{border-top-color:#fff;left:var(--pointer-position)}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__right:before{border-right-color:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__bottom:before{border-bottom-color:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__left:before{border-left-color:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipTitle{color:#0c0e12}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipText{color:#0c0e12e6}.mc__Popup-module__modalOverlay{width:100vw;height:100vh;display:grid;place-items:center;position:fixed;top:0;left:0;z-index:250;background:#0a0d12b3}.mc__Popup-module__modalOverlay ::-webkit-scrollbar{width:0}.mc__Popup-module__modalOverlay ::-webkit-scrollbar-track{-webkit-box-shadow:none}.mc__Popup-module__modalOverlay ::-webkit-scrollbar-thumb{background-color:none;outline:0}.mc__Popup-module__modalOverlay.mc__Popup-module__popupDrawerMode{overflow:hidden;place-items:end}.mc__Popup-module__modalOverlay.mc__Popup-module__popupDrawerMode .mc__Popup-module__popupContainer{min-height:unset;max-height:unset;min-width:17.5rem;height:100vh;animation:mc__Popup-module__EnterFromLeft .3s forwards}@keyframes mc__Popup-module__EnterFromLeft{0%{left:100%}to{left:0}}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer{padding:1.5rem;min-height:13.75rem;max-height:calc(100vh - 5.625rem);position:relative;transition:.2s;z-index:280;border-radius:.75rem;background:#fff;box-shadow:0 1.25rem 1.5rem -.25rem #0a0d1214,0 .5rem .5rem -.25rem #0a0d1208,0 .1875rem .1875rem -.0938rem #0a0d120a;animation:mc__Popup-module__fadeIn .3s forwards}@keyframes mc__Popup-module__fadeIn{0%{opacity:0}to{opacity:1}}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__closeButton{display:grid;place-items:center;cursor:pointer;position:absolute;top:1.25rem;right:1.5rem;z-index:14}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer.mc__Popup-module__withOptions{width:25rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer.mc__Popup-module__withOptions.mc__Popup-module__horizontal{width:34rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader{width:100%;position:sticky;top:0;background:#fff;z-index:1}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupTitle{margin-top:1rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupTitle h2{color:#181d27;font-size:1.125rem;font-style:normal;font-weight:600;font-family:var(--font-inter-regular);line-height:1.75rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupDescription{margin-top:.25rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupDescription p{color:#535862;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.25rem;font-family:var(--font-inter-regular)}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__typeIcon{display:flex;align-items:center;justify-content:space-between}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__typeIcon .mc__Popup-module__icon{display:grid;place-items:center;width:3rem;height:3rem;border-radius:624.9375rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__templateWrapper{width:100%;position:relative}.mc__Popup-module__dark.mc__Popup-module__modalOverlay{background:#22262f75}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer{background:#0c0e12;box-shadow:0 1.25rem 1.5rem -.25rem #0a0d1214,0 .5rem .5rem -.25rem #0a0d1208,0 .1875rem .1875rem -.0938rem #0a0d120a}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader{background:#0c0e12}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupTitle h2{color:#f7f7f7}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupDescription p{color:#94979c}.mc__NotificationToast-module__toastContainer{display:flex;flex-direction:column;gap:10px;position:fixed;z-index:9999999;width:328px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast{padding:8px;border-radius:8px;width:100%}@keyframes mc__NotificationToast-module__fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes mc__NotificationToast-module__fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__fadeIn{animation:mc__NotificationToast-module__fadeIn .3s ease-out}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__fadeOut{animation:mc__NotificationToast-module__fadeOut .3s ease-in forwards}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral{background:#131314}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled{border:1px solid #222224;background:#f2f2f2}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#131314!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info{background:#0058ff}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled{border:1px solid #0058ff;background:#ecf3ff}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#0058ff!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error{background:#e3292f}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled{border:1px solid #f63e45;background:#fff2f2}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#e3292f!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success{background:#328707}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled{border:1px solid #399c08;background:#effce8}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#328707!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent{width:100%;display:flex;align-items:center;justify-content:space-between}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft{width:100%;display:flex;align-items:center;gap:8px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentInfoIcon{display:flex;align-items:center;justify-content:center}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentLeftText{width:100%;display:flex;flex-direction:column;gap:10px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentLeftText .mc__NotificationToast-module__notificationToastContentLeftTextTitle{width:100%;overflow:hidden;color:#fff;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:14px;font-style:normal;font-weight:450;letter-spacing:.1px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentLeftText .mc__NotificationToast-module__notificationToastContentLeftTextDescription{width:100%;color:#fff;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;letter-spacing:0px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight{display:flex;align-items:center;gap:10px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight .mc__NotificationToast-module__notificationToastContentRightUndoText{overflow:hidden;color:#fff;text-align:center;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px;cursor:pointer}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight .mc__NotificationToast-module__notificationToastContentRightClose{display:flex;align-items:center;justify-content:center;cursor:pointer;padding-left:10px;border-left:2px solid rgba(255,255,255,.25)}.mc__TimePicker-module__timepickerWrapper{user-select:none;scroll-behavior:smooth;width:100%}.mc__TimePicker-module__timepickerWrapper *{scrollbar-width:none}.mc__TimePicker-module__timepickerWrapper *::-webkit-scrollbar{display:none}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper{width:100%}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon{display:flex;align-items:center;gap:8px;margin:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon .mc__TimePicker-module__dropdownRightIconClose{display:flex;align-items:center;justify-content:center;cursor:pointer}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon .mc__TimePicker-module__dropdownRightIconArrow{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease-in-out}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon.mc__TimePicker-module__focused .mc__TimePicker-module__dropdownRightIconArrow{transform:rotate(180deg)}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper{width:218px;border-radius:12px;box-shadow:0 2px 4px #1313140a;border:1px solid #e6e6e6;background:#fff;display:flex;flex-direction:column;gap:8px;z-index:150}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader{padding:8px 8px 0}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader .mc__TimePicker-module__timepickerDropdownHeaderButtons{width:100%;display:flex;justify-content:space-between;gap:2px;border-radius:8px;background:#f2f2f2;padding:2px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader p{padding:5px 20px;color:#646569;font-feature-settings:"liga" off,"clig" off;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px;cursor:pointer}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader p.mc__TimePicker-module__active{color:#131314;border-radius:6px;background:#fff;box-shadow:0 2px 4px #1313140a}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody{width:100%;display:flex;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody .mc__TimePicker-module__timepickerDropdownBodyHours{width:50%;display:flex;flex-direction:column;align-items:center;height:230px;overflow-y:auto;border-right:1px solid #e6e6e6;padding:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody .mc__TimePicker-module__timepickerDropdownBodyMinutes{width:50%;display:flex;flex-direction:column;align-items:center;height:230px;overflow-y:auto;padding:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody .mc__TimePicker-module__timepickerDropdownBodyAmPm{width:50%;display:flex;flex-direction:column;align-items:center;height:230px;overflow-y:auto;border-left:1px solid #e6e6e6;padding:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody p{padding:6px 10px;border-radius:4px;cursor:pointer;width:100%;color:#131314;text-align:center;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody p:hover{background:#fafafa}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody p.mc__TimePicker-module__active{background:#ecf3ff;color:#0058ff}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownFooter{padding:8px}.mc__Datepicker-module__datepickerContainer{width:100%;user-select:none;scroll-behavior:smooth}.mc__Datepicker-module__datepickerContainer::-webkit-scrollbar{display:block!important;width:0}.mc__Datepicker-module__datepickerContainer::-webkit-scrollbar-thumb{opacity:0}.mc__Datepicker-module__datepickerContainer .mc__Datepicker-module__datepickerInputWrapper{width:100%;cursor:pointer}.mc__Datepicker-module__datepickerContainer .mc__Datepicker-module__datepickerInputWrapper .mc__Datepicker-module__datepickerLeftIcon{display:flex;align-items:center;justify-content:center}.mc__Datepicker-module__datepickerContainer .mc__Datepicker-module__datepickerInputWrapper .mc__Datepicker-module__datepickerRightIcon{display:flex;align-items:center;justify-content:center;cursor:pointer}.mc__Calendar-module__datePicker{z-index:500;position:absolute;left:0;top:calc(100% + 8px);display:flex;border-radius:.75rem;border:1px solid #e9eaeb;background:#fff;box-shadow:0 20px 24px -4px #0a0d1214,0 8px 8px -4px #0a0d1208,0 3px 3px -1.5px #0a0d120a;width:279px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick{padding:1rem}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__border,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__border{width:.0625rem;background-color:#e9eaeb;margin:0 8px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__calendarWrapper,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__calendarWrapper{width:100%;display:flex;flex-direction:row;justify-content:space-between}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__quickPick,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__quickPick{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:160px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__quickPick li,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__quickPick li{width:100%;padding:8px;color:#414651;font-family:var(--font-inter-regular);font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem;border-radius:.375rem}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__quickPick li:hover,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__quickPick li:hover{background:#fafafa;text-decoration:unset}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar{width:656px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick{width:848px}.mc__Calendar-module__datePicker .mc__Calendar-module__datePickerHeader{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px}.mc__Calendar-module__datePicker .mc__Calendar-module__datePickerHeader span{color:#414651;text-align:center;font-size:1rem;font-style:normal;font-weight:600;line-height:1.5rem}.mc__Calendar-module__datePicker .mc__Calendar-module__div{width:100%}.mc__Calendar-module__datePicker .mc__Calendar-module__div span{font-family:var(--font-inter-regular)}.mc__Calendar-module__datePicker .mc__Calendar-module__currentDateHeader{overflow:hidden;color:#131314;text-align:center;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px;padding:6px 16px;border-radius:6px;border:1px solid #e6e6e6;background:#fff;cursor:pointer}.mc__Calendar-module__datePicker .mc__Calendar-module__left,.mc__Calendar-module__datePicker .mc__Calendar-module__right{display:flex;justify-content:center;align-items:center;cursor:pointer}.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__singleIcon,.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__doubleIcon,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__singleIcon,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__doubleIcon{display:flex;justify-content:center;align-items:center}.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__singleIcon:hover,.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__doubleIcon:hover,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__singleIcon:hover,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__doubleIcon:hover{opacity:.6}.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__doubleIcon svg:first-of-type,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__doubleIcon svg:first-of-type{margin-right:-15px}.mc__Calendar-module__datePicker .mc__Calendar-module__left span,.mc__Calendar-module__datePicker .mc__Calendar-module__right span{position:relative}.mc__Calendar-module__datePicker .mc__Calendar-module__left span:after,.mc__Calendar-module__datePicker .mc__Calendar-module__right span:after{position:absolute;top:4px;inset-inline-start:4px;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-block-start-width:1.5px;border-block-end-width:0;border-inline-start-width:1.5px;border-inline-end-width:0;color:#a4a7ae;content:""}.mc__Calendar-module__datePicker .mc__Calendar-module__left span:before,.mc__Calendar-module__datePicker .mc__Calendar-module__right span:before{position:absolute;top:0;inset-inline-start:0;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-block-start-width:1.5px;border-block-end-width:0;border-inline-start-width:1.5px;border-inline-end-width:0;color:#a4a7ae;content:""}.mc__Calendar-module__datePicker .mc__Calendar-module__calendarWrapper{padding:0 8px;width:100%;display:flex;flex-direction:column;justify-content:space-between}.mc__Calendar-module__datePicker table{border-collapse:collapse;border-spacing:0 0}.mc__Calendar-module__datePicker table thead{border-bottom:2px solid #e6e6e6}.mc__Calendar-module__datePicker table thead tr th{color:#7a7b80}.mc__Calendar-module__datePicker table tbody{margin-top:12px}.mc__Calendar-module__datePicker table .mc__Calendar-module__spacerRow td{height:4px;border:none;padding:0}.mc__Calendar-module__datePicker table th,.mc__Calendar-module__datePicker table td:not(.mc__Calendar-module__spacerRow td){text-align:center;color:#131314;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px;width:36px;height:36px;padding:6px;border-radius:6px;background:#fff}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day{cursor:pointer;border-radius:6px;font-size:.875rem;line-height:1.25rem;box-sizing:border-box!important}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day:hover{background:#fafafa}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__today{position:relative}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__today:before{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);background-color:#0158ff;width:5px;height:5px;border-radius:50%;z-index:1}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__inRange{background:#f2f2f2}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__selected,.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__startDate,.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__endDate{background-color:#0158ff;color:#fff;position:relative}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__disabled{color:#a4a7ae;pointer-events:none;opacity:.4}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__endDate:before{background-color:#fafafa;width:20px;height:40px;position:absolute;top:0;inset-inline-start:0;inset-inline-end:0;z-index:-1;content:""}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__startDate:before{background-color:#fafafa;width:20px;height:40px;position:absolute;top:0;right:0;z-index:-1;content:""}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__endDate.mc__Calendar-module__startDate:before{content:none}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__otherMonth{color:#95969c;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__otherMonth.mc__Calendar-module__startDate,.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__otherMonth.mc__Calendar-module__endDate{color:#fff}.mc__Calendar-module__datePicker ul.mc__Calendar-module__monthsWrapper{width:100%;display:flex;flex-direction:column;gap:2px;height:257px;overflow:auto}.mc__Calendar-module__datePicker ul.mc__Calendar-module__monthsWrapper li.mc__Calendar-module__month{width:100%;border-radius:4px;background:#fff;padding:6px 10px;cursor:pointer;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Calendar-module__datePicker ul.mc__Calendar-module__monthsWrapper li.mc__Calendar-module__month.mc__Calendar-module__pickedMonth{background:#ecf3ff;color:#0158ff}.mc__Calendar-module__datePicker .mc__Calendar-module__buttonWrapper{margin-top:8px;padding:8px;border-top:1px solid #e6e6e6}.mc__Skeleton-module__skeleton{background-color:#e0e0e0;border-radius:4px;position:relative;overflow:hidden;display:grid;place-items:center}.mc__Skeleton-module__skeleton:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff0,#ffffff80,#fff0);animation:mc__Skeleton-module__shimmer 1.5s infinite}.mc__Skeleton-module__text{height:1rem;width:100%;margin:8px 0}.mc__Skeleton-module__avatar{height:40px;width:40px;border-radius:50%}@keyframes mc__Skeleton-module__shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.mc__Skeleton-module__dark.mc__Skeleton-module__skeleton{background-color:#5a5a5a}.mc__Skeleton-module__dark.mc__Skeleton-module__skeleton:after{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.2) 50%,transparent 100%)}.mc__ActionDropdown-module__actionDropdownContainer{width:100%}.mc__ActionDropdown-module__actionDropdownContainer.mc__ActionDropdown-module__collapsed .mc__ActionDropdown-module__actionDropdownIcon{transform:rotate(180deg)}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownContent{width:100%;border-radius:6px;background:#f2f2f2;display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownContent .mc__ActionDropdown-module__actionDropdownTitle{width:90%;white-space:nowrap;overflow:hidden;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.1px;border-right:1px solid #ffffff;padding:8px 16px}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownContent .mc__ActionDropdown-module__actionDropdownIcon{display:flex;align-items:center;justify-content:center;padding:8px;width:40px;height:40px;transition:transform .2s ease-in-out}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList{width:100%;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 2px 4px #1313140a;height:250px;overflow:auto;padding:8px;z-index:150}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList .mc__ActionDropdown-module__actionDropdownItem{width:100%;border-radius:4px;background:#fff;padding:6px 10px;overflow:hidden;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.1px;cursor:pointer}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList .mc__ActionDropdown-module__actionDropdownItem:hover,.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList .mc__ActionDropdown-module__actionDropdownItem.mc__ActionDropdown-module__selected{border-radius:4px;background:#f2f2f2}.mc__InlineLoading-module__inlineLoadingWrapper{width:100%}.mc__InlineLoading-module__inlineLoadingWrapper div{display:flex;gap:.5rem}.mc__InlineLoading-module__inlineLoadingWrapper div.mc__InlineLoading-module__loading svg{animation:mc__InlineLoading-module__anim 1s infinite linear}@keyframes mc__InlineLoading-module__anim{to{transform:rotate(1turn)}}.mc__InlineLoading-module__inlineLoadingWrapper div span{color:#181d27;font-family:var(--font-inter-regular);font-size:var(--Font-size-text-md, 16px);font-style:normal;font-weight:400;line-height:1.125rem;font-size:.75rem}.mc__InlineLoading-module__dark.mc__InlineLoading-module__inlineLoadingWrapper span{color:#f7f7f7}.mc__Slider-module__sliderContainer{width:100%;display:flex;flex-direction:column;align-items:center}.mc__Slider-module__slider{position:relative;width:100%;height:4px;border-radius:50%;background:#e6e6e6;cursor:pointer}.mc__Slider-module__sliderProgress{position:absolute;height:4px;border-radius:624.9375rem;background:#0058ff}.mc__Slider-module__thumb{position:absolute;top:50%;width:20px;height:20px;cursor:grab;border-radius:999px;border:3px solid #fff;background:#0058ff;box-shadow:0 2px 4px #1313141f;padding:10px;transform:translate(-50%,-50%);z-index:2}.mc__Slider-module__thumb:active{cursor:grabbing}.mc__Slider-module__thumbLeft{z-index:3}.mc__Slider-module__thumbRight{z-index:4}.mc__Slider-module__thumbSingle{z-index:2}.mc__Slider-module__tooltip{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:4px 8px;border-radius:6px;background:#131314;box-shadow:0 2px 4px #1313140a,0 8px 16px #1313141a;color:#fff;font-size:13px;font-family:var(--font-inter-regular);font-style:normal;font-weight:450;line-height:20px;letter-spacing:0;z-index:1000;opacity:1;transition:opacity .2s ease-in-out,transform .2s ease-in-out;min-width:max-content;--arrow-position: 50%}.mc__Slider-module__tooltip:after{content:"";position:absolute;top:100%;left:var(--arrow-position);transform:translate(-50%);border:4px solid transparent;border-top-color:#181d27;transition:left .2s ease-in-out}.mc__Slider-module__values{margin-top:24px;display:flex;padding:.5rem .75rem;border-radius:.5rem;border:1px solid #e9eaeb;background:#fff}.mc__Slider-module__values span{color:#181d27;font-family:var(--font-inter-regular);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.mc__Slider-module__values.mc__Slider-module__top{position:absolute;bottom:calc(100% + .375rem);right:50%;transform:translate(50%)}.mc__Slider-module__values.mc__Slider-module__top span{color:#414651;font-family:Inter,sans-serif;font-size:.75rem;font-style:normal;font-weight:600;line-height:1.125rem}.mc__Slider-module__values.mc__Slider-module__bottom{position:absolute;top:20%;right:50%;transform:translate(50%)}.mc__Slider-module__values.mc__Slider-module__bottom span{color:#414651;font-family:Inter,sans-serif;font-size:.75rem;font-style:normal;font-weight:600;line-height:1.125rem}.mc__FilterWithTags-module__filterWithTagsContainer{width:100%;display:flex;align-items:center}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsButton{display:flex;align-items:center;justify-content:center;width:40px;height:40px;cursor:pointer}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupTitle{color:#181d27;font-family:var(--font-inter-semibold);font-size:20px;font-style:normal;font-weight:600;line-height:30px}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupContent{width:100%}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupContent.mc__FilterWithTags-module__filterWithTagsPopupContentDrawer{height:calc(100vh - 106px)}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupFooter{display:flex;align-items:center;justify-content:space-between;width:100%}.mc__FilterContent-module__filterContent{width:100%;display:flex;flex-direction:column;gap:16px;padding:16px 0}.mc__FilterContent-module__filterContent .mc__FilterContent-module__filterContentOptionHeader .mc__FilterContent-module__filterContentOptionTitle{color:#181d27;font-family:var(--font-inter-semibold);font-size:16px;font-style:normal;font-weight:600;line-height:24px}.mc__FilterContent-module__filterContent .mc__FilterContent-module__filterContentOption:not(.mc__FilterContent-module__filterContentOptionLast){padding-bottom:16px;border-bottom:1px solid #e9eaeb}.mc__Table-module__tableContainer *{font-family:var(--font-inter-regular)}.mc__Table-module__tableContainer *::-webkit-scrollbar{width:4px}.mc__Table-module__tableContainer *::-webkit-scrollbar-track{border-radius:1px;background-color:#f2f2f2}.mc__Table-module__tableContainer *::-webkit-scrollbar-thumb{border-radius:8px;background-color:#13131440}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper{width:100%;overflow-x:auto;background-color:#fff;border:1px solid #e6e6e6;border-bottom:none;border-right:none}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper::-webkit-scrollbar{height:4px}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper::-webkit-scrollbar-track{border-radius:1px;background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper::-webkit-scrollbar-thumb{border-radius:8px;background-color:#13131440}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper.mc__Table-module__resizing{user-select:none;cursor:col-resize}.mc__Table-module__tableContainer .mc__Table-module__table{width:100%;border-collapse:collapse;font-size:14px;font-weight:400;min-width:600px;color:#131314;background-color:#fff;table-layout:fixed}.mc__Table-module__tableContainer th,.mc__Table-module__tableContainer td{padding:12px 16px;border-bottom:1px solid #eaeaea;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #e6e6e6}.mc__Table-module__tableContainer th{background-color:#fdfdfd;font-weight:550;font-size:14px;line-height:20px;color:#131314;letter-spacing:.1px;user-select:none;position:relative}.mc__Table-module__tableContainer .mc__Table-module__headerContent{display:flex;align-items:center;width:100%;overflow:hidden;text-overflow:ellipsis;gap:4px;font-family:var(--font-inter-semibold)}.mc__Table-module__tableContainer .mc__Table-module__resizeHandle{position:absolute;right:0;top:0;bottom:0;width:5px;background-color:transparent;cursor:col-resize;transition:background-color .2s ease;z-index:10}.mc__Table-module__tableContainer tr:hover td{background-color:#fcfcfc}.mc__Table-module__tableContainer .mc__Table-module__clickable:hover{cursor:pointer}.mc__Table-module__tableContainer .mc__Table-module__empty{text-align:center;color:#999;font-style:italic;padding:40px 0;font-size:15px;background-color:#fefefe}.mc__Table-module__tableContainer .mc__Table-module__checkboxHeader{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;padding:0!important;overflow:hidden;white-space:normal!important;text-overflow:clip!important}.mc__Table-module__tableContainer .mc__Table-module__checkboxCell{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;padding:0!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important}.mc__Table-module__tableContainer .mc__Table-module__checkbox{width:16px;height:16px;cursor:pointer;accent-color:#0058ff;appearance:none;-webkit-appearance:none;-moz-appearance:none;border:2px solid #c1c2c7;border-radius:3px;background-color:#fff;position:relative}.mc__Table-module__tableContainer .mc__Table-module__checkbox:checked{background-color:#0058ff;border-color:#0058ff}.mc__Table-module__tableContainer .mc__Table-module__checkbox:checked:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:8px;height:6px;background-color:#fff;mask:url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.7 0.3C7.3 -0.1 6.7 -0.1 6.3 0.3L3 3.6L1.7 2.3C1.3 1.9 0.7 1.9 0.3 2.3C-0.1 2.7 -0.1 3.3 0.3 3.7L2.3 5.7C2.5 5.9 2.7 6 3 6C3.3 6 3.5 5.9 3.7 5.7L7.7 1.7C8.1 1.3 8.1 0.7 7.7 0.3Z' fill='white'/%3E%3C/svg%3E") no-repeat center;mask-size:contain;-webkit-mask:url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.7 0.3C7.3 -0.1 6.7 -0.1 6.3 0.3L3 3.6L1.7 2.3C1.3 1.9 0.7 1.9 0.3 2.3C-0.1 2.7 -0.1 3.3 0.3 3.7L2.3 5.7C2.5 5.9 2.7 6 3 6C3.3 6 3.5 5.9 3.7 5.7L7.7 1.7C8.1 1.3 8.1 0.7 7.7 0.3Z' fill='white'/%3E%3C/svg%3E") no-repeat center;-webkit-mask-size:contain}.mc__Table-module__tableContainer .mc__Table-module__checkbox:hover{border-color:#0058ff}.mc__Table-module__tableContainer .mc__Table-module__checkbox:focus{outline:2px solid rgba(0,88,255,.25);outline-offset:1px}.mc__Table-module__tableContainer .mc__Table-module__tableHeader{color:#131314;font-size:14px;line-height:24px;font-weight:550;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;min-height:24px;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.mc__Table-module__tableContainer .mc__Table-module__tableHeader.mc__Table-module__visible{opacity:1;visibility:visible}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderLeftContent{display:flex;align-items:center;gap:8px}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderLeftContent .mc__Table-module__actionButton{display:flex;align-items:center;gap:8px;background-color:#f2f2f2;padding:6px 12px;border-radius:6px;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.1px}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderLeftContent .mc__Table-module__actionButton:hover{cursor:pointer;background-color:#e6e6e6}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderRightContent{display:flex;align-items:center}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderSeparator{width:2px;height:20px;background-color:#d4d5d6;border-radius:2px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination{display:flex;align-items:center;gap:16px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton{background-color:transparent;border:none;border-radius:6px;padding:8px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;color:#131314;cursor:pointer;transition:all .2s ease}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:hover:not(:disabled){background-color:#f8f9fa;color:#0058ff}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:disabled{border-color:#e5e7eb;color:#9ca3af;cursor:not-allowed}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:disabled svg path{fill:#c1c2c7}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:focus{outline:2px solid rgba(0,88,255,.25);outline-offset:1px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationInfo{font-size:14px;color:#6b7280;font-weight:500;font-family:var(--font-inter-regular)}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight{display:flex;align-items:center;gap:8px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight .mc__Table-module__paginationInfo,.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight .mc__Table-module__paginationSelectLabel{color:#73757a;font-size:14px;font-style:normal;font-weight:400;line-height:36px;letter-spacing:.14px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight .mc__Table-module__divider{font-weight:500;width:2px;height:16px;background-color:#ccc;border-radius:2px}.mc__Table-module__tableContainer .mc__Table-module__actionsHeader{width:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;padding:0!important;overflow:hidden;white-space:normal!important;text-overflow:clip!important;justify-content:center}.mc__Table-module__tableContainer .mc__Table-module__actionsCell{width:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;padding:0!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;position:relative}.mc__Table-module__tableContainer .mc__Table-module__actionsContainer{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.mc__Table-module__tableContainer .mc__Table-module__actionsTrigger{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px;cursor:pointer;transition:background-color .2s ease}.mc__Table-module__tableContainer .mc__Table-module__actionsTrigger:hover{background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__actionsMenu{position:absolute;top:100%;right:0;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:120px;overflow:hidden;margin-top:4px}.mc__Table-module__tableContainer .mc__Table-module__actionsMenu.mc__Table-module__actionsMenuFixed{position:fixed;margin-top:0;top:auto;right:auto}.mc__Table-module__tableContainer .mc__Table-module__actionItem{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:14px;color:#131314;cursor:pointer;transition:background-color .2s ease;white-space:nowrap}.mc__Table-module__tableContainer .mc__Table-module__actionItem:hover{background-color:#f6f8ff}.mc__Table-module__tableContainer .mc__Table-module__actionItem:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mc__Table-module__tableContainer .mc__Table-module__actionItem:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mc__Table-module__tableContainer .mc__Table-module__actionItem svg{flex-shrink:0}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageDropdown{position:relative;display:inline-block}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageList{position:absolute;left:0;background-color:#fff;border:1px solid #e6e6e6;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:100%;margin:0;list-style:none;display:flex;flex-direction:column;gap:2px}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageList.mc__Table-module__openDownward{top:calc(100% + 4px)}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageList.mc__Table-module__openUpward{bottom:calc(100% + 4px)}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption{padding:8px 12px;font-size:14px;color:#131314;cursor:pointer;transition:background-color .2s ease;white-space:nowrap}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption:hover{background:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption.mc__Table-module__selected{background:#ecf3ff}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.mc__Table-module__tableContainer .mc__Table-module__gridHeader{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration{display:flex;align-items:center;gap:8px;position:relative}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration .mc__Table-module__columnConfigurationIcon{padding:8px;width:32px;height:32px;border-radius:8px;background-color:#fafafa;transition:background-color .2s ease;display:flex;align-items:center;justify-content:center}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration .mc__Table-module__columnConfigurationIcon:hover{cursor:pointer;background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown{position:absolute;right:calc(100% - 8px);top:40px;width:200px;max-height:320px;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;align-self:stretch;z-index:1500;padding:8px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 2px 4px #1313140a}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li{width:100%;border-radius:4px;background:#fff;display:flex;padding:6px 16px 6px 6px;align-items:center;gap:8px;transition:all .2s ease}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li:hover{cursor:pointer;background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li.mc__Table-module__dragging{opacity:.5;transform:rotate(2deg);background-color:#e3f2fd;border:1px dashed #2196f3}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li.mc__Table-module__dragOver{background-color:#f2f2f2;border-top:2px solid #0058ff}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li .mc__Table-module__columnConfigurationItemIcon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;cursor:grab;padding:4px}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li .mc__Table-module__columnConfigurationItemIcon:active{cursor:grabbing}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li p{font-size:14px;font-weight:400;line-height:20px;letter-spacing:.1px;color:#131314}:root{--font-inter-regular: "Inter", system-ui, sans-serif;--font-inter-medium: "Inter", system-ui, sans-serif;--font-inter-semibold: "Inter", system-ui, sans-serif}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsx as e, jsxs as l, Fragment as $t } from "react/jsx-runtime";
|
|
3
|
-
import { useState as B, useRef as ne, useEffect as X, useContext as
|
|
3
|
+
import { useState as B, useRef as ne, useEffect as X, useContext as gt, createContext as wt, useCallback as Ke } from "react";
|
|
4
4
|
import $ from "dayjs";
|
|
5
|
-
const
|
|
6
|
-
const d =
|
|
7
|
-
return /* @__PURE__ */ e("svg", { ...c, viewBox: `0 0 ${
|
|
5
|
+
const Re = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round", duration: n = 1, stroke: a = "#2753dd", ...c }) => {
|
|
6
|
+
const d = Re;
|
|
7
|
+
return /* @__PURE__ */ e("svg", { ...c, viewBox: `0 0 ${Re * 2} ${Re * 2}`, width: t, height: t, children: /* @__PURE__ */ l(
|
|
8
8
|
"circle",
|
|
9
9
|
{
|
|
10
10
|
fill: "none",
|
|
11
11
|
stroke: a,
|
|
12
12
|
strokeWidth: o,
|
|
13
13
|
strokeLinecap: r,
|
|
14
|
-
cx:
|
|
15
|
-
cy:
|
|
16
|
-
r:
|
|
14
|
+
cx: Re,
|
|
15
|
+
cy: Re,
|
|
16
|
+
r: Re - o,
|
|
17
17
|
children: [
|
|
18
18
|
/* @__PURE__ */ e(
|
|
19
19
|
"animateTransform",
|
|
@@ -63,7 +63,7 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
63
63
|
strokeWidth: v = "1.66667",
|
|
64
64
|
strokeLinecap: A = "round",
|
|
65
65
|
strokeLinejoin: _ = "round"
|
|
66
|
-
}) => /* @__PURE__ */ e("svg", { xmlns: n, width: t, height: o, viewBox: a, fill: c, children: /* @__PURE__ */ e("path", { d, stroke: i, strokeWidth: v, strokeLinecap: A, strokeLinejoin: _ }) }),
|
|
66
|
+
}) => /* @__PURE__ */ e("svg", { xmlns: n, width: t, height: o, viewBox: a, fill: c, children: /* @__PURE__ */ e("path", { d, stroke: i, strokeWidth: v, strokeLinecap: A, strokeLinejoin: _ }) }), yt = ({ color: t = "#131314" }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", color: t, children: /* @__PURE__ */ e(
|
|
67
67
|
"path",
|
|
68
68
|
{
|
|
69
69
|
fillRule: "evenodd",
|
|
@@ -135,7 +135,7 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
135
135
|
d: "M4.75065 3.75401L8.00065 0.504008C8.15343 0.35123 8.34787 0.274841 8.58398 0.274841C8.8201 0.274841 9.01454 0.35123 9.16732 0.504008C9.3201 0.656786 9.39648 0.85123 9.39648 1.08734C9.39648 1.32345 9.3201 1.5179 9.16732 1.67067L5.33398 5.50401C5.25065 5.58734 5.16037 5.64637 5.06315 5.68109C4.96593 5.71581 4.86176 5.73317 4.75065 5.73317C4.63954 5.73317 4.53537 5.71581 4.43815 5.68109C4.34093 5.64637 4.25065 5.58734 4.16732 5.50401L0.333984 1.67067C0.181207 1.5179 0.104817 1.32345 0.104817 1.08734C0.104817 0.85123 0.181207 0.656785 0.333984 0.504008C0.486762 0.35123 0.681207 0.274841 0.917317 0.274841C1.15343 0.274841 1.34787 0.35123 1.50065 0.504008L4.75065 3.75401Z",
|
|
136
136
|
fill: r
|
|
137
137
|
}
|
|
138
|
-
) }),
|
|
138
|
+
) }), Et = ({ color: t = "#ffffff" }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ e(
|
|
139
139
|
"path",
|
|
140
140
|
{
|
|
141
141
|
fillRule: "evenodd",
|
|
@@ -143,7 +143,7 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
143
143
|
d: "M1.66699 9.99999C1.66699 5.39762 5.39795 1.66666 10.0003 1.66666C14.6027 1.66666 18.3337 5.39762 18.3337 9.99999C18.3337 14.6024 14.6027 18.3333 10.0003 18.3333C5.39795 18.3333 1.66699 14.6024 1.66699 9.99999ZM10.0003 5.83332C10.4606 5.83332 10.8337 6.20642 10.8337 6.66666V9.99999C10.8337 10.4602 10.4606 10.8333 10.0003 10.8333C9.54009 10.8333 9.16699 10.4602 9.16699 9.99999V6.66666C9.16699 6.20642 9.54009 5.83332 10.0003 5.83332ZM9.16699 13.3333C9.16699 12.8731 9.54009 12.5 10.0003 12.5C10.4606 12.5 10.8337 12.8731 10.8337 13.3333C10.8337 13.7936 10.4606 14.1667 10.0003 14.1667C9.54009 14.1667 9.16699 13.7936 9.16699 13.3333Z",
|
|
144
144
|
fill: t
|
|
145
145
|
}
|
|
146
|
-
) }),
|
|
146
|
+
) }), Ft = ({ color: t = "#ffffff" }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ e(
|
|
147
147
|
"path",
|
|
148
148
|
{
|
|
149
149
|
fillRule: "evenodd",
|
|
@@ -176,13 +176,13 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
176
176
|
fill: r
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
|
-
] }),
|
|
179
|
+
] }), We = ({ size: t = "20", color: o = "#131314" }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ e(
|
|
180
180
|
"path",
|
|
181
181
|
{
|
|
182
182
|
d: "M9.00081 10.0039L12.2508 13.2539C12.4036 13.4067 12.48 13.6012 12.48 13.8373C12.48 14.0734 12.4036 14.2678 12.2508 14.4206C12.098 14.5734 11.9036 14.6498 11.6675 14.6498C11.4314 14.6498 11.2369 14.5734 11.0841 14.4206L7.25081 10.5873C7.16748 10.5039 7.10845 10.4137 7.07373 10.3164C7.03901 10.2192 7.02165 10.1151 7.02165 10.0039C7.02165 9.89284 7.03901 9.78867 7.07373 9.69145C7.10845 9.59422 7.16748 9.50395 7.25081 9.42061L11.0841 5.58728C11.2369 5.4345 11.4314 5.35811 11.6675 5.35811C11.9036 5.35811 12.098 5.4345 12.2508 5.58728C12.4036 5.74006 12.48 5.9345 12.48 6.17061C12.48 6.40672 12.4036 6.60117 12.2508 6.75395L9.00081 10.0039Z",
|
|
183
183
|
fill: o
|
|
184
184
|
}
|
|
185
|
-
) }),
|
|
185
|
+
) }), Be = ({ size: t = "20", color: o = "#131314", style: r }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ e(
|
|
186
186
|
"path",
|
|
187
187
|
{
|
|
188
188
|
d: "M10.5007 10.004L7.25065 6.75399C7.09787 6.60121 7.02148 6.40677 7.02148 6.17065C7.02148 5.93454 7.09787 5.7401 7.25065 5.58732C7.40343 5.43454 7.59787 5.35815 7.83398 5.35815C8.0701 5.35815 8.26454 5.43454 8.41732 5.58732L12.2507 9.42065C12.334 9.50399 12.393 9.59427 12.4277 9.69149C12.4625 9.78871 12.4798 9.89288 12.4798 10.004C12.4798 10.1151 12.4625 10.2193 12.4277 10.3165C12.393 10.4137 12.334 10.504 12.2507 10.5873L8.41732 14.4207C8.26454 14.5734 8.0701 14.6498 7.83398 14.6498C7.59787 14.6498 7.40343 14.5734 7.25065 14.4207C7.09787 14.2679 7.02148 14.0734 7.02148 13.8373C7.02148 13.6012 7.09787 13.4068 7.25065 13.254L10.5007 10.004Z",
|
|
@@ -244,7 +244,7 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
244
244
|
tertiary: io,
|
|
245
245
|
tertiaryV2: so,
|
|
246
246
|
tertiaryV3: ao
|
|
247
|
-
},
|
|
247
|
+
}, Ne = ({
|
|
248
248
|
label: t,
|
|
249
249
|
size: o = "md",
|
|
250
250
|
leftSlot: r,
|
|
@@ -265,18 +265,18 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
265
265
|
rightSlotStyle: g,
|
|
266
266
|
onClick: x
|
|
267
267
|
}) => {
|
|
268
|
-
const [L, j] = B(A || !1), R = ne(null),
|
|
269
|
-
_ || p || (v && j((V) => !V), x?.(
|
|
268
|
+
const [L, j] = B(A || !1), R = ne(null), z = (U) => {
|
|
269
|
+
_ || p || (v && j((V) => !V), x?.(U));
|
|
270
270
|
}, J = () => {
|
|
271
|
-
let
|
|
272
|
-
return d === "neutral" && i !== "primary" && (
|
|
271
|
+
let U = "#ffffff";
|
|
272
|
+
return d === "neutral" && i !== "primary" && (U = "#0058FF"), d === "positive" && i !== "primary" && (U = "#328707"), d === "negative" && i !== "primary" && (U = "#E3292F"), U;
|
|
273
273
|
};
|
|
274
274
|
return X(() => {
|
|
275
|
-
const
|
|
275
|
+
const U = (V) => {
|
|
276
276
|
!R.current || _ || V.composedPath().includes(R.current) || j(!1);
|
|
277
277
|
};
|
|
278
|
-
return document.addEventListener("click",
|
|
279
|
-
document.removeEventListener("click",
|
|
278
|
+
return document.addEventListener("click", U), () => {
|
|
279
|
+
document.removeEventListener("click", U);
|
|
280
280
|
};
|
|
281
281
|
}, []), /* @__PURE__ */ e(
|
|
282
282
|
"button",
|
|
@@ -286,7 +286,7 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
286
286
|
type: c,
|
|
287
287
|
disabled: _,
|
|
288
288
|
className: `${Le.mainButton} ${Le[o]} ${p ? Le.loading : ""} ${L ? Le.focused : ""} ${Le[i]} ${Le[d]} ${_ ? Le.disabled : ""}`,
|
|
289
|
-
onClick:
|
|
289
|
+
onClick: z,
|
|
290
290
|
children: p ? /* @__PURE__ */ e(Mt, { size: 20, stroke: J() }) : a || /* @__PURE__ */ l("div", { className: Le.mainButtonContent, style: { ...I, justifyContent: h ? "space-between" : "center" }, children: [
|
|
291
291
|
r && /* @__PURE__ */ e("div", { className: Le.leftSlot, style: f, children: r }),
|
|
292
292
|
/* @__PURE__ */ e("p", { className: Le.mainButtonLabel, style: M, children: t }),
|
|
@@ -295,7 +295,7 @@ const We = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
295
295
|
}
|
|
296
296
|
);
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
Ne.propKeys = [
|
|
299
299
|
"label",
|
|
300
300
|
"size",
|
|
301
301
|
"leftSlot",
|
|
@@ -316,8 +316,8 @@ $e.propKeys = [
|
|
|
316
316
|
"rightSlotStyle",
|
|
317
317
|
"onClick"
|
|
318
318
|
];
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
Ne.displayName = "Button";
|
|
320
|
+
Ne.description = "A versatile button component with loading states, multiple styles, and customizable slots.";
|
|
321
321
|
const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm", mo = "mc__FormInput-module__formInputWrapper", po = "mc__FormInput-module__md", ho = "mc__FormInput-module__disabled", fo = "mc__FormInput-module__formInputLabel", _o = "mc__FormInput-module__formInput", Co = "mc__FormInput-module__formInputHelperText", go = "mc__FormInput-module__formInputLabelWrapper", wo = "mc__FormInput-module__formInputRequired", yo = "mc__FormInput-module__formInputHelperSlot", vo = "mc__FormInput-module__errorState", bo = "mc__FormInput-module__focused", ko = "mc__FormInput-module__active", Lo = "mc__FormInput-module__errorFocused", To = "mc__FormInput-module__errorActive", xo = "mc__FormInput-module__formInputSlot", Io = "mc__FormInput-module__errorHelperText", No = "mc__FormInput-module__successHelperText", ce = {
|
|
322
322
|
inputWrapper: co,
|
|
323
323
|
sm: uo,
|
|
@@ -338,7 +338,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
338
338
|
formInputSlot: xo,
|
|
339
339
|
errorHelperText: Io,
|
|
340
340
|
successHelperText: No
|
|
341
|
-
},
|
|
341
|
+
}, Ae = ({
|
|
342
342
|
label: t,
|
|
343
343
|
placeholder: o,
|
|
344
344
|
helperText: r,
|
|
@@ -361,42 +361,42 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
361
361
|
focus: L = !1,
|
|
362
362
|
inputState: j = { error: !1, success: !1, loading: !1 },
|
|
363
363
|
inputSlot: R,
|
|
364
|
-
onChange:
|
|
364
|
+
onChange: z,
|
|
365
365
|
onFocus: J,
|
|
366
|
-
onBlur:
|
|
366
|
+
onBlur: U,
|
|
367
367
|
onEnter: V,
|
|
368
368
|
onFocusChange: te,
|
|
369
369
|
formInputWrapperStyle: H,
|
|
370
|
-
inputWrapperStyle:
|
|
370
|
+
inputWrapperStyle: E,
|
|
371
371
|
formInputStyle: Y,
|
|
372
372
|
helperTextStyle: F,
|
|
373
373
|
labelStyle: s,
|
|
374
374
|
inputSlotStyle: m
|
|
375
375
|
}) => {
|
|
376
|
-
const w = ne(null), [y, N] = B(M ?? ""), [G, q] = B(!1), [oe,
|
|
377
|
-
v && N(Q.target.value),
|
|
376
|
+
const w = ne(null), [y, N] = B(M ?? ""), [G, q] = B(!1), [oe, se] = B(!1), he = (Q) => {
|
|
377
|
+
v && N(Q.target.value), z?.(Q.target.value);
|
|
378
378
|
}, ue = () => {
|
|
379
379
|
J?.(), !g && q(!0);
|
|
380
380
|
}, de = () => {
|
|
381
|
-
q(_ ? x ?? !1 : !1),
|
|
382
|
-
},
|
|
381
|
+
q(_ ? x ?? !1 : !1), U?.();
|
|
382
|
+
}, ve = (Q) => {
|
|
383
383
|
const b = Q.currentTarget.value, C = b.length === 0;
|
|
384
384
|
I === "number" && (Q.keyCode === 69 || !C && (Q.keyCode === 187 || Q.keyCode === 107 || Q.keyCode === 189 || Q.keyCode === 109)) && Q.preventDefault(), Q.key === "Enter" && b && b.length > 0 && V?.();
|
|
385
|
-
},
|
|
386
|
-
v && (N(""),
|
|
385
|
+
}, le = (Q) => Q, pe = () => {
|
|
386
|
+
v && (N(""), z?.(""));
|
|
387
387
|
};
|
|
388
388
|
return X(() => {
|
|
389
389
|
te?.(G);
|
|
390
390
|
}, [G]), X(() => {
|
|
391
391
|
x != null && q(x);
|
|
392
|
-
}, [x]), /* @__PURE__ */ l("div", { className: `${ce.inputWrapper} ${a ? ce.disabled : ""} ${ce[A]}`, style:
|
|
392
|
+
}, [x]), /* @__PURE__ */ l("div", { className: `${ce.inputWrapper} ${a ? ce.disabled : ""} ${ce[A]}`, style: E ?? {}, children: [
|
|
393
393
|
t && /* @__PURE__ */ l("div", { className: ce.formInputLabelWrapper, children: [
|
|
394
394
|
/* @__PURE__ */ l("label", { style: s ?? {}, className: ce.formInputLabel, children: [
|
|
395
395
|
t,
|
|
396
396
|
" ",
|
|
397
397
|
typeof t == "string" && n && /* @__PURE__ */ e("span", { className: ce.formInputRequired, children: "*" })
|
|
398
398
|
] }),
|
|
399
|
-
T && /* @__PURE__ */ e("div", { className: ce.formInputHelperSlot, children:
|
|
399
|
+
T && /* @__PURE__ */ e("div", { className: ce.formInputHelperSlot, children: le(T) })
|
|
400
400
|
] }),
|
|
401
401
|
/* @__PURE__ */ l(
|
|
402
402
|
"div",
|
|
@@ -405,9 +405,9 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
405
405
|
style: H ?? {},
|
|
406
406
|
onClick: () => _ && q((Q) => !Q),
|
|
407
407
|
children: [
|
|
408
|
-
h && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children:
|
|
409
|
-
v && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children:
|
|
410
|
-
R ? /* @__PURE__ */ e("div", { className: ce.formInputSlot, style: m ?? {}, children:
|
|
408
|
+
h && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: le(h) }),
|
|
409
|
+
v && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: le(/* @__PURE__ */ e(Dt, {})) }),
|
|
410
|
+
R ? /* @__PURE__ */ e("div", { className: ce.formInputSlot, style: m ?? {}, children: le(R) }) : /* @__PURE__ */ e(
|
|
411
411
|
"input",
|
|
412
412
|
{
|
|
413
413
|
className: ce.formInput,
|
|
@@ -416,14 +416,14 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
416
416
|
type: I ?? "text",
|
|
417
417
|
value: v ? y : M,
|
|
418
418
|
onChange: (Q) => he(Q),
|
|
419
|
-
onMouseDown: () => !g &&
|
|
420
|
-
onMouseUp: () => !g &&
|
|
421
|
-
onMouseLeave: () => !g &&
|
|
419
|
+
onMouseDown: () => !g && se(!0),
|
|
420
|
+
onMouseUp: () => !g && se(!1),
|
|
421
|
+
onMouseLeave: () => !g && se(!1),
|
|
422
422
|
onFocus: ue,
|
|
423
423
|
onBlur: de,
|
|
424
424
|
disabled: a,
|
|
425
425
|
required: n,
|
|
426
|
-
onKeyDown:
|
|
426
|
+
onKeyDown: ve,
|
|
427
427
|
readOnly: c,
|
|
428
428
|
spellCheck: !1,
|
|
429
429
|
placeholder: o ?? "",
|
|
@@ -431,8 +431,8 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
431
431
|
maxLength: f
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
|
-
p && /* @__PURE__ */ e("div", { style: v ? { cursor: "pointer" } : {}, className: ce.formInputSlot, children:
|
|
435
|
-
v && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: /* @__PURE__ */ e("div", { onClick: pe, style: v ? { cursor: "pointer" } : {}, className: ce.formInputSlot, children: y?.length > 0 ?
|
|
434
|
+
p && /* @__PURE__ */ e("div", { style: v ? { cursor: "pointer" } : {}, className: ce.formInputSlot, children: le(p) }),
|
|
435
|
+
v && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: /* @__PURE__ */ e("div", { onClick: pe, style: v ? { cursor: "pointer" } : {}, className: ce.formInputSlot, children: y?.length > 0 ? le(/* @__PURE__ */ e(qe, {})) : null }) })
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
438
|
),
|
|
@@ -446,7 +446,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
446
446
|
)
|
|
447
447
|
] });
|
|
448
448
|
};
|
|
449
|
-
|
|
449
|
+
Ae.propKeys = [
|
|
450
450
|
"label",
|
|
451
451
|
"placeholder",
|
|
452
452
|
"helperText",
|
|
@@ -481,9 +481,9 @@ Re.propKeys = [
|
|
|
481
481
|
"labelStyle",
|
|
482
482
|
"inputSlotStyle"
|
|
483
483
|
];
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__textAreaLabel", Do = "mc__Textarea-module__required", So = "mc__Textarea-module__wrap", Ho = "mc__Textarea-module__resize", Po = "mc__Textarea-module__textareaIconClose", Ao = "mc__Textarea-module__textarea", Ro = "mc__Textarea-module__focused", Wo = "mc__Textarea-module__active", Bo = "mc__Textarea-module__errorFocused",
|
|
484
|
+
Ae.displayName = "Input";
|
|
485
|
+
Ae.description = "A flexible input component with search functionality, validation states, and custom slots.";
|
|
486
|
+
const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__textAreaLabel", Do = "mc__Textarea-module__required", So = "mc__Textarea-module__wrap", Ho = "mc__Textarea-module__resize", Po = "mc__Textarea-module__textareaIconClose", Ao = "mc__Textarea-module__textarea", Ro = "mc__Textarea-module__focused", Wo = "mc__Textarea-module__active", Bo = "mc__Textarea-module__errorFocused", Eo = "mc__Textarea-module__errorActive", Fo = "mc__Textarea-module__textareaFooter", _e = {
|
|
487
487
|
textareaContainer: $o,
|
|
488
488
|
textAreaLabel: Mo,
|
|
489
489
|
required: Do,
|
|
@@ -494,9 +494,9 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
494
494
|
focused: Ro,
|
|
495
495
|
active: Wo,
|
|
496
496
|
errorFocused: Bo,
|
|
497
|
-
errorActive:
|
|
498
|
-
textareaFooter:
|
|
499
|
-
},
|
|
497
|
+
errorActive: Eo,
|
|
498
|
+
textareaFooter: Fo
|
|
499
|
+
}, Ge = ({
|
|
500
500
|
placeholder: t,
|
|
501
501
|
label: o,
|
|
502
502
|
cols: r = 30,
|
|
@@ -519,10 +519,10 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
519
519
|
labelSlot: L,
|
|
520
520
|
textareaFooterStyle: j
|
|
521
521
|
}) => {
|
|
522
|
-
const R = ne(null), [
|
|
522
|
+
const R = ne(null), [z, J] = B(!1), [U, V] = B(!1), te = (y) => {
|
|
523
523
|
let N = y.target.value;
|
|
524
524
|
p && typeof p == "function" && p(N);
|
|
525
|
-
}, H = (y) => y,
|
|
525
|
+
}, H = (y) => y, E = (y) => {
|
|
526
526
|
J(!0), h && typeof h == "function" && h(y);
|
|
527
527
|
}, Y = (y) => {
|
|
528
528
|
J(!1), T && typeof T == "function" && T(y);
|
|
@@ -534,8 +534,8 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
534
534
|
if (!y) return;
|
|
535
535
|
let N = !1;
|
|
536
536
|
const G = (oe) => {
|
|
537
|
-
const
|
|
538
|
-
oe.clientX >
|
|
537
|
+
const se = y.getBoundingClientRect();
|
|
538
|
+
oe.clientX > se.right - 20 && oe.clientY > se.bottom - 20 && (N = !0);
|
|
539
539
|
}, q = new ResizeObserver(() => {
|
|
540
540
|
N && (F = !0, N = !1);
|
|
541
541
|
});
|
|
@@ -575,14 +575,14 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
575
575
|
/* @__PURE__ */ e(
|
|
576
576
|
"textarea",
|
|
577
577
|
{
|
|
578
|
-
className: `${_e.textarea} ${
|
|
578
|
+
className: `${_e.textarea} ${z ? _e.focused : ""} ${I ? _e.disabled : ""} ${i && z ? c.error ? _e.errorFocused : _e.focused : ""} ${v && U ? c.error ? _e.errorActive : _e.active : ""} ${c.error ? _e.error : ""} ${c.success ? _e.success : ""}`,
|
|
579
579
|
value: a,
|
|
580
580
|
placeholder: t ?? "",
|
|
581
581
|
cols: r,
|
|
582
582
|
rows: n,
|
|
583
583
|
maxLength: d ?? void 0,
|
|
584
584
|
onInput: m,
|
|
585
|
-
onFocus:
|
|
585
|
+
onFocus: E,
|
|
586
586
|
disabled: I,
|
|
587
587
|
onBlur: Y,
|
|
588
588
|
onChange: te,
|
|
@@ -602,7 +602,7 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
602
602
|
}
|
|
603
603
|
);
|
|
604
604
|
};
|
|
605
|
-
|
|
605
|
+
Ge.propKeys = [
|
|
606
606
|
"placeholder",
|
|
607
607
|
"label",
|
|
608
608
|
"cols",
|
|
@@ -625,8 +625,8 @@ et.propKeys = [
|
|
|
625
625
|
"labelSlot",
|
|
626
626
|
"textareaFooterStyle"
|
|
627
627
|
];
|
|
628
|
-
|
|
629
|
-
|
|
628
|
+
Ge.displayName = "Textarea";
|
|
629
|
+
Ge.description = "A multi-line text input component with auto-resize, character counting, and validation states.";
|
|
630
630
|
const Oo = "mc__Toggle-module__toggleWrapper", Vo = "mc__Toggle-module__checked", Zo = "mc__Toggle-module__error", zo = "mc__Toggle-module__disabled", Uo = "mc__Toggle-module__sm", Yo = "mc__Toggle-module__toggleState", jo = "mc__Toggle-module__md", Ko = "mc__Toggle-module__lg", Ee = {
|
|
631
631
|
toggleWrapper: Oo,
|
|
632
632
|
checked: Vo,
|
|
@@ -636,7 +636,7 @@ const Oo = "mc__Toggle-module__toggleWrapper", Vo = "mc__Toggle-module__checked"
|
|
|
636
636
|
toggleState: Yo,
|
|
637
637
|
md: jo,
|
|
638
638
|
lg: Ko
|
|
639
|
-
},
|
|
639
|
+
}, et = ({ checked: t, change: o, disabled: r = !1, size: n = "md", toggleType: a = "default", required: c = !1 }) => /* @__PURE__ */ e(
|
|
640
640
|
"div",
|
|
641
641
|
{
|
|
642
642
|
onClick: () => {
|
|
@@ -646,10 +646,10 @@ const Oo = "mc__Toggle-module__toggleWrapper", Vo = "mc__Toggle-module__checked"
|
|
|
646
646
|
children: /* @__PURE__ */ e("div", { className: Ee.toggleState, children: /* @__PURE__ */ e("input", { type: "checkbox", checked: t, readOnly: !0, disabled: r ?? !1, hidden: !0, required: c }) })
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__checkMark", Qo = "mc__Checkbox-module__error", Jo = "mc__Checkbox-module__checked", Go = "mc__Checkbox-module__disabled", en = "mc__Checkbox-module__Namespace_Hr", tn = "mc__Checkbox-module__dark",
|
|
649
|
+
et.propKeys = ["checked", "change", "disabled", "required", "size", "toggleType"];
|
|
650
|
+
et.displayName = "Toggle";
|
|
651
|
+
et.description = "A toggle switch component for binary state control with size and styling variants.";
|
|
652
|
+
const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__checkMark", Qo = "mc__Checkbox-module__error", Jo = "mc__Checkbox-module__checked", Go = "mc__Checkbox-module__disabled", en = "mc__Checkbox-module__Namespace_Hr", tn = "mc__Checkbox-module__dark", Se = {
|
|
653
653
|
checkboxWrapper: qo,
|
|
654
654
|
checkMark: Xo,
|
|
655
655
|
error: Qo,
|
|
@@ -657,7 +657,7 @@ const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__ch
|
|
|
657
657
|
disabled: Go,
|
|
658
658
|
namespaceHr: en,
|
|
659
659
|
dark: tn
|
|
660
|
-
}, on =
|
|
660
|
+
}, on = wt("namespaceNebi"), tt = () => gt(on), Oe = ({
|
|
661
661
|
checked: t,
|
|
662
662
|
change: o,
|
|
663
663
|
type: r = "default",
|
|
@@ -668,14 +668,14 @@ const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__ch
|
|
|
668
668
|
checkBoxStyle: i,
|
|
669
669
|
theme: v = "light"
|
|
670
670
|
}) => {
|
|
671
|
-
const A =
|
|
671
|
+
const A = tt(), _ = ne(null), [p, h] = B(!1), T = () => {
|
|
672
672
|
n || o && typeof o == "function" && o(!t);
|
|
673
673
|
};
|
|
674
674
|
return /* @__PURE__ */ l(
|
|
675
675
|
"div",
|
|
676
676
|
{
|
|
677
677
|
style: p ? n ? { boxShadow: "none" } : d ?? {} : i ?? {},
|
|
678
|
-
className: `${v === "dark" ?
|
|
678
|
+
className: `${v === "dark" ? Se.dark : ""} ${Se[A]} ${Se.checkboxWrapper} ${r === "error" ? Se.error : ""} ${t ? Se.checked : Se.unChecked} ${n ? Se.disabled : ""}`,
|
|
679
679
|
onMouseDown: () => h(!0),
|
|
680
680
|
onMouseUp: () => h(!1),
|
|
681
681
|
onMouseLeave: () => h(!1),
|
|
@@ -687,9 +687,9 @@ const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__ch
|
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
689
|
};
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
690
|
+
Oe.propKeys = ["checked", "change", "type", "disabled", "required", "multipleChecked", "activeStyle", "checkBoxStyle", "theme"];
|
|
691
|
+
Oe.displayName = "Checkbox";
|
|
692
|
+
Oe.description = "A checkbox component with support for checked, indeterminate states and custom styling.";
|
|
693
693
|
const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dropdownInputWrapper", ln = "mc__Dropdown-module__dropdownInputSlot", sn = "mc__Dropdown-module__dropdownRightIconArrow", an = "mc__Dropdown-module__focused", cn = "mc__Dropdown-module__dropdownInputSlotItem", dn = "mc__Dropdown-module__dropdownInputSlotItemLabel", un = "mc__Dropdown-module__dropdownInputSlotItemClose", mn = "mc__Dropdown-module__dropdownInputSlotItemMore", pn = "mc__Dropdown-module__dropdownRightIcon", hn = "mc__Dropdown-module__dropdownRightIconClose", fn = "mc__Dropdown-module__dropdownListContainer", _n = "mc__Dropdown-module__dropdownList", Cn = "mc__Dropdown-module__dropdownItem", gn = "mc__Dropdown-module__selected", wn = "mc__Dropdown-module__dropdownItemLabel", yn = "mc__Dropdown-module__hovered", vn = "mc__Dropdown-module__disabled", bn = "mc__Dropdown-module__itemCheckbox", kn = "mc__Dropdown-module__dropdownItemLabelInput", Ln = "mc__Dropdown-module__countryName", Tn = "mc__Dropdown-module__countryDialCode", xn = "mc__Dropdown-module__selectAll", ae = {
|
|
694
694
|
dropdownWrapper: nn,
|
|
695
695
|
dropdownInputWrapper: rn,
|
|
@@ -714,10 +714,10 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
714
714
|
countryName: Ln,
|
|
715
715
|
countryDialCode: Tn,
|
|
716
716
|
selectAll: xn
|
|
717
|
-
},
|
|
717
|
+
}, vt = (t, o) => {
|
|
718
718
|
const r = /* @__PURE__ */ new Set();
|
|
719
719
|
return t.filter((n) => r.has(n[o]) ? !1 : (r.add(n[o]), !0));
|
|
720
|
-
}, In = "mc__TreeNode-module__treeNodeContainer", Nn = "mc__TreeNode-module__treeNodeItem", $n = "mc__TreeNode-module__inDropDown", Mn = "mc__TreeNode-module__treeNode", Dn = "mc__TreeNode-module__visible", Sn = "mc__TreeNode-module__hidden", Hn = "mc__TreeNode-module__labelRow", Pn = "mc__TreeNode-module__label", An = "mc__TreeNode-module__children", Rn = "mc__TreeNode-module__dropdownListFooter",
|
|
720
|
+
}, In = "mc__TreeNode-module__treeNodeContainer", Nn = "mc__TreeNode-module__treeNodeItem", $n = "mc__TreeNode-module__inDropDown", Mn = "mc__TreeNode-module__treeNode", Dn = "mc__TreeNode-module__visible", Sn = "mc__TreeNode-module__hidden", Hn = "mc__TreeNode-module__labelRow", Pn = "mc__TreeNode-module__label", An = "mc__TreeNode-module__children", Rn = "mc__TreeNode-module__dropdownListFooter", ke = {
|
|
721
721
|
treeNodeContainer: In,
|
|
722
722
|
treeNodeItem: Nn,
|
|
723
723
|
inDropDown: $n,
|
|
@@ -754,17 +754,17 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
754
754
|
labelRowStyle: f,
|
|
755
755
|
collapseToggleStyle: g
|
|
756
756
|
}) => {
|
|
757
|
-
const [x, L] = B(t || []), j = (H,
|
|
757
|
+
const [x, L] = B(t || []), j = (H, E, Y = x) => Y.map((F) => {
|
|
758
758
|
if (F.id === H) {
|
|
759
|
-
const s =
|
|
759
|
+
const s = E && F.children && F.children.length > 0;
|
|
760
760
|
return {
|
|
761
761
|
...F,
|
|
762
|
-
selected:
|
|
763
|
-
children: s ? R(F.children,
|
|
762
|
+
selected: E,
|
|
763
|
+
children: s ? R(F.children, E) : F.children || []
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
766
|
if (F.children && F.children.length > 0) {
|
|
767
|
-
const s = j(H,
|
|
767
|
+
const s = j(H, E, F.children), w = s.filter((y) => y.selected).length === s.length && s.length > 0;
|
|
768
768
|
return {
|
|
769
769
|
...F,
|
|
770
770
|
selected: w,
|
|
@@ -772,39 +772,39 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
774
|
return F;
|
|
775
|
-
}), R = (H,
|
|
775
|
+
}), R = (H, E) => H.map((Y) => ({
|
|
776
776
|
...Y,
|
|
777
|
-
selected:
|
|
778
|
-
children: Y.children ? R(Y.children,
|
|
779
|
-
})),
|
|
780
|
-
const Y = j(H,
|
|
777
|
+
selected: E,
|
|
778
|
+
children: Y.children ? R(Y.children, E) : []
|
|
779
|
+
})), z = (H, E) => {
|
|
780
|
+
const Y = j(H, E);
|
|
781
781
|
L(Y);
|
|
782
|
-
const F =
|
|
782
|
+
const F = U(Y);
|
|
783
783
|
a?.(F);
|
|
784
|
-
}, J = (H,
|
|
785
|
-
n?.(H,
|
|
786
|
-
},
|
|
787
|
-
let
|
|
784
|
+
}, J = (H, E) => {
|
|
785
|
+
n?.(H, E);
|
|
786
|
+
}, U = (H) => {
|
|
787
|
+
let E = [];
|
|
788
788
|
return H.forEach((Y) => {
|
|
789
|
-
Y.selected &&
|
|
790
|
-
}),
|
|
789
|
+
Y.selected && E.push(Y), Y.children?.length && (E = [...E, ...U(Y.children)]);
|
|
790
|
+
}), E;
|
|
791
791
|
}, V = () => {
|
|
792
792
|
const H = R(x, !1);
|
|
793
793
|
L(H), a?.([]);
|
|
794
794
|
}, te = () => {
|
|
795
795
|
const H = R(x, !0);
|
|
796
796
|
L(H);
|
|
797
|
-
const
|
|
798
|
-
a?.(
|
|
797
|
+
const E = U(H);
|
|
798
|
+
a?.(E);
|
|
799
799
|
};
|
|
800
800
|
return X(() => {
|
|
801
801
|
L(t || []);
|
|
802
|
-
}, [t]), /* @__PURE__ */ l("div", { className: `${
|
|
803
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
804
|
-
|
|
802
|
+
}, [t]), /* @__PURE__ */ l("div", { className: `${ke.treeNodeContainer}`, style: p, children: [
|
|
803
|
+
/* @__PURE__ */ e("div", { className: `${ke.treeNodeItem} ${c ? ke.inDropDown : ""}`, style: h, children: x.map((H) => /* @__PURE__ */ e(
|
|
804
|
+
bt,
|
|
805
805
|
{
|
|
806
806
|
node: H,
|
|
807
|
-
onSelect:
|
|
807
|
+
onSelect: z,
|
|
808
808
|
defaultCollapsed: o,
|
|
809
809
|
checkboxProps: r,
|
|
810
810
|
onCollapse: J,
|
|
@@ -822,12 +822,12 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
822
822
|
},
|
|
823
823
|
H.id
|
|
824
824
|
)) }),
|
|
825
|
-
c && /* @__PURE__ */ l("div", { className:
|
|
825
|
+
c && /* @__PURE__ */ l("div", { className: ke.dropdownListFooter, style: T, children: [
|
|
826
826
|
i && /* @__PURE__ */ e("span", { onClick: V, style: I, children: "Clear All" }),
|
|
827
827
|
d && A === "" && /* @__PURE__ */ e("span", { onClick: te, style: I, children: "Select All" })
|
|
828
828
|
] })
|
|
829
829
|
] });
|
|
830
|
-
},
|
|
830
|
+
}, bt = ({
|
|
831
831
|
node: t,
|
|
832
832
|
onSelect: o,
|
|
833
833
|
defaultCollapsed: r,
|
|
@@ -845,25 +845,25 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
845
845
|
labelRowStyle: I,
|
|
846
846
|
collapseToggleStyle: M
|
|
847
847
|
}) => {
|
|
848
|
-
const f = d?.find((
|
|
849
|
-
v?.find((
|
|
848
|
+
const f = d?.find((z) => z.id === t.id);
|
|
849
|
+
v?.find((z) => z.id === t.id);
|
|
850
850
|
const [g, x] = B(f ? !1 : r || !0), L = () => {
|
|
851
|
-
x((
|
|
851
|
+
x((z) => !z), a?.(g, t);
|
|
852
852
|
}, j = () => {
|
|
853
853
|
o?.(t.id, !t.selected);
|
|
854
|
-
}, R = (
|
|
854
|
+
}, R = (z) => {
|
|
855
855
|
let J = !1;
|
|
856
|
-
const
|
|
857
|
-
H.label &&
|
|
856
|
+
const U = (te) => te?.toLowerCase().replace(/\s/g, "") || "", V = (te, H) => {
|
|
857
|
+
H.label && U(H.label).includes(U(te)) && (J = !0), H.children?.forEach((E) => V(te, E));
|
|
858
858
|
};
|
|
859
|
-
return !
|
|
859
|
+
return !z || z.trim() === "" ? !0 : (V(z, t), J);
|
|
860
860
|
};
|
|
861
861
|
return X(() => {
|
|
862
862
|
i && x(!1);
|
|
863
|
-
}, [i]), /* @__PURE__ */ l("div", { className: `${
|
|
864
|
-
/* @__PURE__ */ l("div", { className:
|
|
865
|
-
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${c}rem` }, onClick: (
|
|
866
|
-
/* @__PURE__ */ e("span", { className:
|
|
863
|
+
}, [i]), /* @__PURE__ */ l("div", { className: `${ke.treeNode} ${R(i) ? ke.visible : ke.hidden}`, style: T, children: [
|
|
864
|
+
/* @__PURE__ */ l("div", { className: ke.labelRow, onClick: L, style: I, children: [
|
|
865
|
+
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${c}rem` }, onClick: (z) => z.stopPropagation(), children: /* @__PURE__ */ e(Oe, { checked: t?.selected ?? !1, change: j, ...n, withActive: !1 }) }),
|
|
866
|
+
/* @__PURE__ */ e("span", { className: ke.collapseToggle, style: M, children: /* @__PURE__ */ e(
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
869
869
|
style: {
|
|
@@ -875,12 +875,12 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
875
875
|
children: /* @__PURE__ */ e(Wn, {})
|
|
876
876
|
}
|
|
877
877
|
) }),
|
|
878
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
878
|
+
/* @__PURE__ */ e("span", { className: `${ke.label} ${t.selected ? ke.selected : ""}`, children: t.label })
|
|
879
879
|
] }),
|
|
880
|
-
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
881
|
-
|
|
880
|
+
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: ke.children, style: { display: g ? "none" : "block" }, children: t.children.map((z) => /* @__PURE__ */ e(
|
|
881
|
+
bt,
|
|
882
882
|
{
|
|
883
|
-
node:
|
|
883
|
+
node: z,
|
|
884
884
|
onSelect: o,
|
|
885
885
|
defaultCollapsed: r,
|
|
886
886
|
checkboxProps: n,
|
|
@@ -897,10 +897,10 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
897
897
|
labelRowStyle: I,
|
|
898
898
|
collapseToggleStyle: M
|
|
899
899
|
},
|
|
900
|
-
|
|
900
|
+
z.id
|
|
901
901
|
)) })
|
|
902
902
|
] });
|
|
903
|
-
},
|
|
903
|
+
}, ot = ({
|
|
904
904
|
data: t,
|
|
905
905
|
withFilter: o = !0,
|
|
906
906
|
withClose: r = !0,
|
|
@@ -923,88 +923,86 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
923
923
|
dropdownInputSlotItemStyle: L,
|
|
924
924
|
dropdownInputSlotItemLabelStyle: j,
|
|
925
925
|
dropdownInputSlotItemCloseStyle: R,
|
|
926
|
-
dropdownInputSlotItemMoreStyle:
|
|
926
|
+
dropdownInputSlotItemMoreStyle: z,
|
|
927
927
|
dropdownItemStyle: J,
|
|
928
|
-
dropdownItemLabelStyle:
|
|
928
|
+
dropdownItemLabelStyle: U,
|
|
929
929
|
itemCheckboxStyle: V,
|
|
930
930
|
dropdownItemLabelTextStyle: te,
|
|
931
931
|
dropdownListStyle: H,
|
|
932
|
-
treeProps:
|
|
932
|
+
treeProps: E,
|
|
933
933
|
...Y
|
|
934
934
|
}) => {
|
|
935
|
-
const [F, s] = B(!1), [m, w] = B(""), [y, N] = B(!1), [G, q] = B(!1), [oe,
|
|
935
|
+
const [F, s] = B(!1), [m, w] = B(""), [y, N] = B(!1), [G, q] = B(!1), [oe, se] = B(!1), he = ne(null), ue = ne(null), de = ne(null), ve = ne(null), [le, pe] = B([]), Q = ne([]), b = ne(0), [C, D] = B(""), [P, ie] = B(null), ee = (u) => `https://flagsapi.com/${u}/flat/64.png`, Ce = (u) => {
|
|
936
936
|
if (u.selected = !u.selected, !a) {
|
|
937
937
|
p?.(u);
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
|
-
Q.current = [...Q.current, ...
|
|
940
|
+
Q.current = [...Q.current, ...le.filter((Z) => Z.selected == !0), ...le.filter((Z) => Z.id === u.id)], Q.current = vt(Q.current, "id").filter((Z) => Z.selected).filter((Z) => Z.id !== "SELECT_ALL"), u.id === "SELECT_ALL" ? (N(u.selected), q(!0)) : (N(!1), p?.(Q.current), q(!1)), s((Z) => !Z);
|
|
941
941
|
}, fe = (u) => {
|
|
942
|
-
|
|
942
|
+
ie(u), p?.(u), se(!1);
|
|
943
943
|
}, ge = () => {
|
|
944
|
-
h?.(), xe();
|
|
945
|
-
}, ke = () => {
|
|
946
944
|
if (!ue.current || !he.current) return;
|
|
947
|
-
const u = ue.current,
|
|
948
|
-
if (!
|
|
949
|
-
const
|
|
950
|
-
|
|
951
|
-
},
|
|
945
|
+
const u = ue.current, Z = he.current;
|
|
946
|
+
if (!Z || !u) return;
|
|
947
|
+
const re = u.getBoundingClientRect(), Ve = window.innerHeight;
|
|
948
|
+
Z.style.width = re.width + "px", Z.style.position = "fixed", re.bottom + Z.offsetHeight > Ve ? (Z.style.top = `${re.top - Z.offsetHeight + 20}px`, Z.style.bottom = "unset") : (Z.style.top = `${re.bottom + 8}px`, Z.style.bottom = "unset");
|
|
949
|
+
}, we = () => {
|
|
952
950
|
requestAnimationFrame(() => {
|
|
953
|
-
|
|
951
|
+
ge();
|
|
954
952
|
});
|
|
955
953
|
};
|
|
956
954
|
X(() => {
|
|
957
|
-
oe &&
|
|
955
|
+
oe && we();
|
|
958
956
|
}, [he, oe]), X(() => {
|
|
959
|
-
if (Q.current = t?.length ? t.filter((
|
|
957
|
+
if (Q.current = t?.length ? t.filter((re) => re.selected) : [], !a) {
|
|
960
958
|
pe(t);
|
|
961
959
|
return;
|
|
962
960
|
}
|
|
963
|
-
const u = t?.some((
|
|
964
|
-
u ? pe([...
|
|
965
|
-
|
|
966
|
-
}), pe([...
|
|
961
|
+
const u = t?.some((re) => "selected" in re), Z = v ? [{ id: "SELECT_ALL", label: "Select All", selected: y }] : [];
|
|
962
|
+
u ? pe([...Z, ...t]) : (t?.forEach((re) => {
|
|
963
|
+
re.selected = !1;
|
|
964
|
+
}), pe([...Z, ...t])), we();
|
|
967
965
|
}, [JSON.stringify(t)]), X(() => {
|
|
968
966
|
a && (t?.every((u) => u.selected) || N(!1));
|
|
969
967
|
}, [Q.current.length]), X(() => {
|
|
970
|
-
!a && c &&
|
|
968
|
+
!a && c && ie(t?.find((u) => u.id === c));
|
|
971
969
|
}, [c]), X(() => {
|
|
972
|
-
if (a &&
|
|
973
|
-
const u =
|
|
974
|
-
pe(u), t?.forEach((
|
|
975
|
-
|
|
976
|
-
}), Q.current = u.filter((
|
|
970
|
+
if (a && le.length > 0 && G) {
|
|
971
|
+
const u = le.map((Z) => Z.id === "SELECT_ALL" ? { ...Z, selected: y } : Z.disabled ? Z : { ...Z, selected: y });
|
|
972
|
+
pe(u), t?.forEach((Z) => {
|
|
973
|
+
Z.id === "SELECT_ALL" ? Z.selected = y : Z.disabled || (Z.selected = y);
|
|
974
|
+
}), Q.current = u.filter((Z) => Z.selected && Z.id !== "SELECT_ALL"), p?.(Q.current);
|
|
977
975
|
}
|
|
978
976
|
}, [F]);
|
|
979
|
-
const
|
|
980
|
-
ue.current && (u.composedPath().includes(ue.current) ||
|
|
981
|
-
},
|
|
982
|
-
_ && (!ue.current || !he.current || u.composedPath().includes(ue.current) || u.composedPath().includes(he.current) ||
|
|
977
|
+
const $e = (u) => {
|
|
978
|
+
ue.current && (u.composedPath().includes(ue.current) || se(!1));
|
|
979
|
+
}, xe = (u) => {
|
|
980
|
+
_ && (!ue.current || !he.current || u.composedPath().includes(ue.current) || u.composedPath().includes(he.current) || se(!1));
|
|
983
981
|
};
|
|
984
982
|
X(() => {
|
|
985
983
|
const u = () => {
|
|
986
|
-
oe &&
|
|
984
|
+
oe && we();
|
|
987
985
|
};
|
|
988
|
-
return document.addEventListener("click",
|
|
989
|
-
document.removeEventListener("click",
|
|
986
|
+
return document.addEventListener("click", $e), document.addEventListener("wheel", xe), window.addEventListener("scroll", u), () => {
|
|
987
|
+
document.removeEventListener("click", $e), document.removeEventListener("wheel", xe), window.removeEventListener("scroll", u);
|
|
990
988
|
};
|
|
991
989
|
}, [oe]), X(() => {
|
|
992
990
|
if (!a) return;
|
|
993
991
|
const u = () => {
|
|
994
|
-
const
|
|
995
|
-
if (!
|
|
996
|
-
const
|
|
997
|
-
|
|
992
|
+
const Z = ue.current?.getBoundingClientRect();
|
|
993
|
+
if (!Z) return;
|
|
994
|
+
const re = Z.width;
|
|
995
|
+
re <= 150 ? b.current = 0 : re <= 250 ? b.current = 1 : re <= 350 ? b.current = 2 : re <= 450 ? b.current = 3 : b.current = 4;
|
|
998
996
|
};
|
|
999
997
|
return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
1000
998
|
}, []);
|
|
1001
|
-
const
|
|
999
|
+
const Me = ne(!0);
|
|
1002
1000
|
return X(() => {
|
|
1003
|
-
if (
|
|
1004
|
-
|
|
1001
|
+
if (Me.current) {
|
|
1002
|
+
Me.current = !1;
|
|
1005
1003
|
return;
|
|
1006
1004
|
}
|
|
1007
|
-
oe || T?.();
|
|
1005
|
+
oe || T?.(), oe && h?.();
|
|
1008
1006
|
}, [oe]), /* @__PURE__ */ l("div", { className: `${ae.dropdownWrapper}`, style: f ?? {}, children: [
|
|
1009
1007
|
/* @__PURE__ */ e(
|
|
1010
1008
|
"div",
|
|
@@ -1012,13 +1010,12 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1012
1010
|
ref: ue,
|
|
1013
1011
|
className: ae.dropdownInputWrapper,
|
|
1014
1012
|
style: g ?? {},
|
|
1015
|
-
onClick: () => (
|
|
1016
|
-
onFocus: ge,
|
|
1013
|
+
onClick: () => (se((u) => !u), we()),
|
|
1017
1014
|
children: /* @__PURE__ */ e(
|
|
1018
|
-
|
|
1015
|
+
Ae,
|
|
1019
1016
|
{
|
|
1020
1017
|
...Y,
|
|
1021
|
-
onFocusChange: (u) =>
|
|
1018
|
+
onFocusChange: (u) => se(u),
|
|
1022
1019
|
customFocus: oe,
|
|
1023
1020
|
withActive: !1,
|
|
1024
1021
|
value: d ? m : P?.label ?? "",
|
|
@@ -1036,7 +1033,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1036
1033
|
"div",
|
|
1037
1034
|
{
|
|
1038
1035
|
onClick: (u) => {
|
|
1039
|
-
u.stopPropagation(), d ? (w(""),
|
|
1036
|
+
u.stopPropagation(), d ? (w(""), se(!1)) : ie(null);
|
|
1040
1037
|
},
|
|
1041
1038
|
className: ae.dropdownRightIconClose,
|
|
1042
1039
|
children: /* @__PURE__ */ e(qe, {})
|
|
@@ -1048,13 +1045,13 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1048
1045
|
forDropdown: !0,
|
|
1049
1046
|
inputSlotStyle: { width: "100%" },
|
|
1050
1047
|
inputSlot: a && Q.current.length > 0 ? M || /* @__PURE__ */ l("ul", { className: ae.dropdownInputSlot, style: x ?? {}, children: [
|
|
1051
|
-
Q.current.slice(0, b.current).map((u,
|
|
1048
|
+
Q.current.slice(0, b.current).map((u, Z) => /* @__PURE__ */ l(
|
|
1052
1049
|
"li",
|
|
1053
1050
|
{
|
|
1054
|
-
ref:
|
|
1051
|
+
ref: ve,
|
|
1055
1052
|
className: ae.dropdownInputSlotItem,
|
|
1056
1053
|
style: L ?? {},
|
|
1057
|
-
onClick: (
|
|
1054
|
+
onClick: (re) => re.stopPropagation(),
|
|
1058
1055
|
children: [
|
|
1059
1056
|
/* @__PURE__ */ e("p", { title: u.label, className: ae.dropdownInputSlotItemLabel, style: j ?? {}, children: typeof u.customLabel == "function" ? u.customLabel(u) : u.label }),
|
|
1060
1057
|
/* @__PURE__ */ e(
|
|
@@ -1062,17 +1059,17 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1062
1059
|
{
|
|
1063
1060
|
style: R ?? {},
|
|
1064
1061
|
className: ae.dropdownInputSlotItemClose,
|
|
1065
|
-
onClick: (
|
|
1066
|
-
|
|
1062
|
+
onClick: (re) => {
|
|
1063
|
+
re.stopPropagation(), Ce(u);
|
|
1067
1064
|
},
|
|
1068
1065
|
children: /* @__PURE__ */ e(St, { width: "16", height: "16", viewBox: "0 0 16 16", stroke: "#95969C" })
|
|
1069
1066
|
}
|
|
1070
1067
|
)
|
|
1071
1068
|
]
|
|
1072
1069
|
},
|
|
1073
|
-
|
|
1070
|
+
Z
|
|
1074
1071
|
)),
|
|
1075
|
-
Q.current.length > b.current && /* @__PURE__ */ e("li", { className: `${ae.dropdownInputSlotItem} ${ae.dropdownInputSlotItemMore}`, style:
|
|
1072
|
+
Q.current.length > b.current && /* @__PURE__ */ e("li", { className: `${ae.dropdownInputSlotItem} ${ae.dropdownInputSlotItemMore}`, style: z ?? {}, children: /* @__PURE__ */ e("p", { className: ae.dropdownInputSlotItemLabel, style: j ?? {}, children: `+${Q.current.length - b.current}` }) })
|
|
1076
1073
|
] }) : null
|
|
1077
1074
|
}
|
|
1078
1075
|
)
|
|
@@ -1080,7 +1077,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1080
1077
|
),
|
|
1081
1078
|
t && t.length > 0 && oe && /* @__PURE__ */ l("div", { ref: he, onClick: (u) => u.stopPropagation(), className: ae.dropdownListContainer, children: [
|
|
1082
1079
|
o && /* @__PURE__ */ e(
|
|
1083
|
-
|
|
1080
|
+
Ae,
|
|
1084
1081
|
{
|
|
1085
1082
|
placeholder: "Search",
|
|
1086
1083
|
searchComponent: !0,
|
|
@@ -1090,17 +1087,28 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1090
1087
|
onChange: (u) => D(u)
|
|
1091
1088
|
}
|
|
1092
1089
|
),
|
|
1093
|
-
i ? /* @__PURE__ */ e(
|
|
1090
|
+
i ? /* @__PURE__ */ e(
|
|
1091
|
+
Bn,
|
|
1092
|
+
{
|
|
1093
|
+
SearchValue: C,
|
|
1094
|
+
data: t,
|
|
1095
|
+
onSelect: p,
|
|
1096
|
+
onCollapse: (u, Z) => {
|
|
1097
|
+
we(), E?.onCollapse?.(u, Z);
|
|
1098
|
+
},
|
|
1099
|
+
...E
|
|
1100
|
+
}
|
|
1101
|
+
) : /* @__PURE__ */ e("ul", { onClick: (u) => u.stopPropagation(), className: ae.dropdownList, ref: de, style: H ?? {}, children: le.filter((u) => u?.label?.toLowerCase().includes(C.toLowerCase())).map((u, Z) => /* @__PURE__ */ l(
|
|
1094
1102
|
"li",
|
|
1095
1103
|
{
|
|
1096
1104
|
style: { ...J, cursor: !a && u?.disabled ? "not-allowed" : "pointer" },
|
|
1097
1105
|
className: `${ae.dropdownItem} ${!a && P?.id === u.id ? ae.selected : ""} ${!u?.label || u.label === void 0 || n || u?.disabled ? ae.disabled : ""} ${!a && !u?.disabled ? ae.hovered : ""}`,
|
|
1098
|
-
onClick: (
|
|
1099
|
-
|
|
1106
|
+
onClick: (re) => {
|
|
1107
|
+
re.stopPropagation(), !a && !u?.disabled && fe(u);
|
|
1100
1108
|
},
|
|
1101
1109
|
children: [
|
|
1102
|
-
a && /* @__PURE__ */ e("div", { className: ae.itemCheckbox, style: V ?? {}, children: /* @__PURE__ */ e(
|
|
1103
|
-
|
|
1110
|
+
a && !u.noCheckbox && /* @__PURE__ */ e("div", { className: ae.itemCheckbox, style: V ?? {}, children: /* @__PURE__ */ e(
|
|
1111
|
+
Oe,
|
|
1104
1112
|
{
|
|
1105
1113
|
multipleChecked: u.id === "SELECT_ALL",
|
|
1106
1114
|
disabled: n || u?.disabled,
|
|
@@ -1108,7 +1116,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1108
1116
|
change: () => Ce(u)
|
|
1109
1117
|
}
|
|
1110
1118
|
) }),
|
|
1111
|
-
/* @__PURE__ */ l("div", { className: ae.dropdownItemLabel, style:
|
|
1119
|
+
/* @__PURE__ */ l("div", { className: ae.dropdownItemLabel, style: U ?? {}, children: [
|
|
1112
1120
|
d ? /* @__PURE__ */ l("div", { className: ae.dropdownItemLabelInput, children: [
|
|
1113
1121
|
/* @__PURE__ */ e("img", { src: ee(u.code), style: { width: "1.375rem", height: "1.375rem", objectFit: "contain" }, alt: u.name }),
|
|
1114
1122
|
/* @__PURE__ */ e("span", { title: u.name, className: ae.countryName, children: u.name || u.label }),
|
|
@@ -1122,16 +1130,16 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
1122
1130
|
children: typeof u.customLabel == "function" ? u.customLabel(u) : u.label
|
|
1123
1131
|
}
|
|
1124
1132
|
),
|
|
1125
|
-
a && /* @__PURE__ */ e("p", { children: u.id === "SELECT_ALL" ? `${
|
|
1133
|
+
a && /* @__PURE__ */ e("p", { children: u.id === "SELECT_ALL" ? `${le.filter((re) => re.id !== "SELECT_ALL" && re.selected).length}/${t.length}` : "" })
|
|
1126
1134
|
] })
|
|
1127
1135
|
]
|
|
1128
1136
|
},
|
|
1129
|
-
|
|
1130
|
-
)) },
|
|
1137
|
+
Z
|
|
1138
|
+
)) }, le.length)
|
|
1131
1139
|
] })
|
|
1132
1140
|
] });
|
|
1133
1141
|
};
|
|
1134
|
-
|
|
1142
|
+
ot.propKeys = [
|
|
1135
1143
|
"data",
|
|
1136
1144
|
"withFilter",
|
|
1137
1145
|
"withClose",
|
|
@@ -1159,26 +1167,26 @@ nt.propKeys = [
|
|
|
1159
1167
|
"dropdownItemLabelTextStyle",
|
|
1160
1168
|
"dropdownListStyle"
|
|
1161
1169
|
];
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
radioWrapper:
|
|
1166
|
-
},
|
|
1167
|
-
|
|
1170
|
+
ot.displayName = "Dropdown";
|
|
1171
|
+
ot.description = "A feature-rich dropdown component with multi-select, filtering, and smart positioning capabilities.";
|
|
1172
|
+
const En = "mc__Radio-module__radioWrapper", Fn = {
|
|
1173
|
+
radioWrapper: En
|
|
1174
|
+
}, nt = ({ checked: t, change: o, disabled: r, required: n, withUncheckState: a = !1, radioType: c = "default" }) => {
|
|
1175
|
+
tt(), B(!1);
|
|
1168
1176
|
const d = () => {
|
|
1169
1177
|
r || o?.(a ? !t : !0);
|
|
1170
1178
|
}, i = () => {
|
|
1171
1179
|
let v = null, A = r ? "#95969C" : c === "error" ? "#E3292F" : "#0058FF";
|
|
1172
1180
|
return t ? r ? v = /* @__PURE__ */ e(Wt, { color: A }) : v = /* @__PURE__ */ e(At, { color: A }) : r ? v = /* @__PURE__ */ e(Bt, { color: A }) : v = /* @__PURE__ */ e(Rt, { color: A }), v;
|
|
1173
1181
|
};
|
|
1174
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1182
|
+
return /* @__PURE__ */ l("div", { className: Fn.radioWrapper, style: { cursor: r ? "not-allowed" : "pointer" }, onClick: d, children: [
|
|
1175
1183
|
/* @__PURE__ */ e("input", { type: "radio", checked: !0, readOnly: !0, hidden: !0, disabled: r ?? !1, required: n }),
|
|
1176
1184
|
i()
|
|
1177
1185
|
] });
|
|
1178
1186
|
};
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1187
|
+
nt.propKeys = ["checked", "change", "disabled", "required", "withUncheckState", "radioType"];
|
|
1188
|
+
nt.displayName = "Radio";
|
|
1189
|
+
nt.description = "A radio button component with customizable states and uncheck functionality for form selections.";
|
|
1182
1190
|
const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__tooltipContent", Zn = "mc__Tooltip-module__withoutPointer", zn = "mc__Tooltip-module__top", Un = "mc__Tooltip-module__right", Yn = "mc__Tooltip-module__bottom", jn = "mc__Tooltip-module__left", Kn = "mc__Tooltip-module__tooltipTitle", qn = "mc__Tooltip-module__tooltipText", Xn = "mc__Tooltip-module__dark", Te = {
|
|
1183
1191
|
tooltipContainer: On,
|
|
1184
1192
|
tooltipContent: Vn,
|
|
@@ -1190,7 +1198,7 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1190
1198
|
tooltipTitle: Kn,
|
|
1191
1199
|
tooltipText: qn,
|
|
1192
1200
|
dark: Xn
|
|
1193
|
-
},
|
|
1201
|
+
}, rt = ({
|
|
1194
1202
|
children: t,
|
|
1195
1203
|
tooltipSlot: o,
|
|
1196
1204
|
delay: r = 400,
|
|
@@ -1213,20 +1221,20 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1213
1221
|
forceClose: L = !1,
|
|
1214
1222
|
onClick: j
|
|
1215
1223
|
}) => {
|
|
1216
|
-
const R = ne(null),
|
|
1224
|
+
const R = ne(null), z = ne(null);
|
|
1217
1225
|
let J;
|
|
1218
|
-
const [
|
|
1226
|
+
const [U, V] = B(!1), te = o || c || d || i, H = () => {
|
|
1219
1227
|
a === "hover" && te && (J = setTimeout(() => {
|
|
1220
1228
|
V(!0);
|
|
1221
1229
|
}, r));
|
|
1222
|
-
},
|
|
1230
|
+
}, E = () => {
|
|
1223
1231
|
a === "hover" && (clearTimeout(J), setTimeout(() => {
|
|
1224
1232
|
V(!1);
|
|
1225
1233
|
}, r));
|
|
1226
1234
|
}, Y = () => {
|
|
1227
1235
|
a === "click" && (j?.(), V((s) => !s));
|
|
1228
1236
|
}, F = () => {
|
|
1229
|
-
const s = R.current, m =
|
|
1237
|
+
const s = R.current, m = z.current;
|
|
1230
1238
|
if (!m || !s) return;
|
|
1231
1239
|
const w = s.getBoundingClientRect();
|
|
1232
1240
|
switch (m.style.position = "fixed", n) {
|
|
@@ -1246,7 +1254,7 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1246
1254
|
};
|
|
1247
1255
|
return X(() => {
|
|
1248
1256
|
F();
|
|
1249
|
-
}, [R,
|
|
1257
|
+
}, [R, U, t, n, o, i, c, d]), X(() => {
|
|
1250
1258
|
const s = (w) => {
|
|
1251
1259
|
R.current?.contains(w.target) || V(!1);
|
|
1252
1260
|
}, m = (w) => {
|
|
@@ -1258,34 +1266,34 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1258
1266
|
}, []), X(() => {
|
|
1259
1267
|
L && V(!1);
|
|
1260
1268
|
}, [L]), X(() => {
|
|
1261
|
-
const s =
|
|
1269
|
+
const s = z.current;
|
|
1262
1270
|
s && (s.style.setProperty("--pointer-position", `${h}`), T || s.classList.add(Te.withoutPointer));
|
|
1263
|
-
}, [
|
|
1271
|
+
}, [U]), /* @__PURE__ */ l(
|
|
1264
1272
|
"div",
|
|
1265
1273
|
{
|
|
1266
1274
|
ref: R,
|
|
1267
1275
|
className: `${I === "dark" ? Te.dark : ""} ${Te.tooltipContainer}`,
|
|
1268
1276
|
onClick: Y,
|
|
1269
1277
|
onMouseEnter: H,
|
|
1270
|
-
onMouseLeave:
|
|
1278
|
+
onMouseLeave: E,
|
|
1271
1279
|
style: p ?? {},
|
|
1272
1280
|
children: [
|
|
1273
1281
|
t,
|
|
1274
|
-
|
|
1282
|
+
U && o ? /* @__PURE__ */ e(
|
|
1275
1283
|
"div",
|
|
1276
1284
|
{
|
|
1277
1285
|
style: v ?? {},
|
|
1278
1286
|
onClick: (s) => s.stopPropagation(),
|
|
1279
|
-
ref:
|
|
1287
|
+
ref: z,
|
|
1280
1288
|
className: `${Te.tooltipContent} ${n ? Te[n] : Te.bottom}`,
|
|
1281
1289
|
children: o
|
|
1282
1290
|
}
|
|
1283
|
-
) :
|
|
1291
|
+
) : U && /* @__PURE__ */ l(
|
|
1284
1292
|
"div",
|
|
1285
1293
|
{
|
|
1286
1294
|
style: v ?? {},
|
|
1287
1295
|
onClick: (s) => s.stopPropagation(),
|
|
1288
|
-
ref:
|
|
1296
|
+
ref: z,
|
|
1289
1297
|
className: `${Te.tooltipContent} ${n ? Te[n] : Te.bottom}`,
|
|
1290
1298
|
children: [
|
|
1291
1299
|
i && typeof i == "string" && i,
|
|
@@ -1298,7 +1306,7 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1298
1306
|
}
|
|
1299
1307
|
);
|
|
1300
1308
|
};
|
|
1301
|
-
|
|
1309
|
+
rt.propKeys = [
|
|
1302
1310
|
"children",
|
|
1303
1311
|
"tooltipSlot",
|
|
1304
1312
|
"delay",
|
|
@@ -1321,9 +1329,9 @@ lt.propKeys = [
|
|
|
1321
1329
|
"forceClose",
|
|
1322
1330
|
"onClick"
|
|
1323
1331
|
];
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
const Qn = "mc__Popup-module__modalOverlay", Jn = "mc__Popup-module__popupDrawerMode", Gn = "mc__Popup-module__popupContainer", er = "mc__Popup-module__closeButton", tr = "mc__Popup-module__horizontal", or = "mc__Popup-module__templateWrapper",
|
|
1332
|
+
rt.displayName = "Tooltip";
|
|
1333
|
+
rt.description = "A contextual popup component with multiple triggers and smart positioning for displaying helpful information.";
|
|
1334
|
+
const Qn = "mc__Popup-module__modalOverlay", Jn = "mc__Popup-module__popupDrawerMode", Gn = "mc__Popup-module__popupContainer", er = "mc__Popup-module__closeButton", tr = "mc__Popup-module__horizontal", or = "mc__Popup-module__templateWrapper", Fe = {
|
|
1327
1335
|
modalOverlay: Qn,
|
|
1328
1336
|
popupDrawerMode: Jn,
|
|
1329
1337
|
popupContainer: Gn,
|
|
@@ -1364,8 +1372,8 @@ const Qn = "mc__Popup-module__modalOverlay", Jn = "mc__Popup-module__popupDrawer
|
|
|
1364
1372
|
ref: h,
|
|
1365
1373
|
style: i ?? {},
|
|
1366
1374
|
className: `
|
|
1367
|
-
${
|
|
1368
|
-
${r === "drawer" ?
|
|
1375
|
+
${Fe.modalOverlay}
|
|
1376
|
+
${r === "drawer" ? Fe.popupDrawerMode : ""}
|
|
1369
1377
|
`,
|
|
1370
1378
|
children: /* @__PURE__ */ l(
|
|
1371
1379
|
"div",
|
|
@@ -1373,12 +1381,12 @@ const Qn = "mc__Popup-module__modalOverlay", Jn = "mc__Popup-module__popupDrawer
|
|
|
1373
1381
|
style: v ?? {},
|
|
1374
1382
|
className: `
|
|
1375
1383
|
mcPopup_global
|
|
1376
|
-
${
|
|
1377
|
-
${d === "horizontal" ?
|
|
1384
|
+
${Fe.popupContainer}
|
|
1385
|
+
${d === "horizontal" ? Fe.horizontal : ""}
|
|
1378
1386
|
`,
|
|
1379
1387
|
children: [
|
|
1380
|
-
/* @__PURE__ */ e("div", { className:
|
|
1381
|
-
/* @__PURE__ */ l("div", { className:
|
|
1388
|
+
/* @__PURE__ */ e("div", { className: Fe.closeButton, style: _ ?? {}, onClick: p, children: /* @__PURE__ */ e(yt, { color: "#131314" }) }),
|
|
1389
|
+
/* @__PURE__ */ l("div", { className: Fe.templateWrapper, style: A ?? {}, children: [
|
|
1382
1390
|
o && o,
|
|
1383
1391
|
n && n
|
|
1384
1392
|
] })
|
|
@@ -1405,7 +1413,7 @@ Xe.propKeys = [
|
|
|
1405
1413
|
];
|
|
1406
1414
|
Xe.displayName = "Popup";
|
|
1407
1415
|
Xe.description = "A modal popup component with customizable templates, headers, and outside click handling for overlays.";
|
|
1408
|
-
const nr = "mc__NotificationToast-module__toastContainer", rr = "mc__NotificationToast-module__notificationToast", lr = "mc__NotificationToast-module__fadeIn", ir = "mc__NotificationToast-module__fadeOut", sr = "mc__NotificationToast-module__neutral", ar = "mc__NotificationToast-module__filled", cr = "mc__NotificationToast-module__notificationToastContentLeftTextTitle", dr = "mc__NotificationToast-module__notificationToastContentRightUndoText", ur = "mc__NotificationToast-module__notificationToastContentLeftTextDescription", mr = "mc__NotificationToast-module__info", pr = "mc__NotificationToast-module__error", hr = "mc__NotificationToast-module__success", fr = "mc__NotificationToast-module__notificationToastContent", _r = "mc__NotificationToast-module__notificationToastContentLeft", Cr = "mc__NotificationToast-module__notificationToastContentInfoIcon", gr = "mc__NotificationToast-module__notificationToastContentLeftText", wr = "mc__NotificationToast-module__notificationToastContentRight", yr = "mc__NotificationToast-module__notificationToastContentRightClose",
|
|
1416
|
+
const nr = "mc__NotificationToast-module__toastContainer", rr = "mc__NotificationToast-module__notificationToast", lr = "mc__NotificationToast-module__fadeIn", ir = "mc__NotificationToast-module__fadeOut", sr = "mc__NotificationToast-module__neutral", ar = "mc__NotificationToast-module__filled", cr = "mc__NotificationToast-module__notificationToastContentLeftTextTitle", dr = "mc__NotificationToast-module__notificationToastContentRightUndoText", ur = "mc__NotificationToast-module__notificationToastContentLeftTextDescription", mr = "mc__NotificationToast-module__info", pr = "mc__NotificationToast-module__error", hr = "mc__NotificationToast-module__success", fr = "mc__NotificationToast-module__notificationToastContent", _r = "mc__NotificationToast-module__notificationToastContentLeft", Cr = "mc__NotificationToast-module__notificationToastContentInfoIcon", gr = "mc__NotificationToast-module__notificationToastContentLeftText", wr = "mc__NotificationToast-module__notificationToastContentRight", yr = "mc__NotificationToast-module__notificationToastContentRightClose", ye = {
|
|
1409
1417
|
toastContainer: nr,
|
|
1410
1418
|
notificationToast: rr,
|
|
1411
1419
|
fadeIn: lr,
|
|
@@ -1453,28 +1461,28 @@ const nr = "mc__NotificationToast-module__toastContainer", rr = "mc__Notificatio
|
|
|
1453
1461
|
let M = {};
|
|
1454
1462
|
return d && (M.padding = "12px"), M;
|
|
1455
1463
|
};
|
|
1456
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
1457
|
-
/* @__PURE__ */ l("div", { className:
|
|
1458
|
-
c && /* @__PURE__ */ e("div", { className:
|
|
1459
|
-
/* @__PURE__ */ l("div", { className:
|
|
1460
|
-
t && /* @__PURE__ */ e("p", { className:
|
|
1461
|
-
d && /* @__PURE__ */ e("p", { className:
|
|
1464
|
+
return /* @__PURE__ */ e("div", { className: `${ye.notificationToast} ${ye[o]} ${r ? "" : ye.filled} ${ye[h]}`, style: I(), children: /* @__PURE__ */ l("div", { className: ye.notificationToastContent, style: d ? { alignItems: "flex-start" } : {}, children: [
|
|
1465
|
+
/* @__PURE__ */ l("div", { className: ye.notificationToastContentLeft, style: d ? { alignItems: "flex-start" } : {}, children: [
|
|
1466
|
+
c && /* @__PURE__ */ e("div", { className: ye.notificationToastContentInfoIcon, children: o === "success" ? /* @__PURE__ */ e(Ft, { color: r ? "#fff" : "#328707" }) : /* @__PURE__ */ e(Et, { color: r ? "#fff" : o === "neutral" ? "#131314" : o === "error" ? "#E3292F" : "#0058FF" }) }),
|
|
1467
|
+
/* @__PURE__ */ l("div", { className: ye.notificationToastContentLeftText, children: [
|
|
1468
|
+
t && /* @__PURE__ */ e("p", { className: ye.notificationToastContentLeftTextTitle, children: t }),
|
|
1469
|
+
d && /* @__PURE__ */ e("p", { className: ye.notificationToastContentLeftTextDescription, children: d }),
|
|
1462
1470
|
A && A
|
|
1463
1471
|
] })
|
|
1464
1472
|
] }),
|
|
1465
|
-
/* @__PURE__ */ e("div", { className:
|
|
1466
|
-
/* @__PURE__ */ l("div", { className:
|
|
1473
|
+
/* @__PURE__ */ e("div", { className: ye.notificationToastContentDescription }),
|
|
1474
|
+
/* @__PURE__ */ l("div", { className: ye.notificationToastContentRight, children: [
|
|
1467
1475
|
i && i,
|
|
1468
|
-
!d && a && /* @__PURE__ */ e("p", { className:
|
|
1469
|
-
n && /* @__PURE__ */ e("div", { className:
|
|
1470
|
-
|
|
1476
|
+
!d && a && /* @__PURE__ */ e("p", { className: ye.notificationToastContentRightUndoText, onClick: () => _?.(), children: "Undo" }),
|
|
1477
|
+
n && /* @__PURE__ */ e("div", { className: ye.notificationToastContentRightClose, style: d || !a ? { border: "none" } : {}, onClick: () => p?.(), children: /* @__PURE__ */ e(
|
|
1478
|
+
yt,
|
|
1471
1479
|
{
|
|
1472
1480
|
color: r ? "#fff" : o === "neutral" ? "#131314" : o === "error" ? "#E3292F" : o === "info" ? "#0058FF" : "#328707"
|
|
1473
1481
|
}
|
|
1474
1482
|
) })
|
|
1475
1483
|
] })
|
|
1476
1484
|
] }) });
|
|
1477
|
-
},
|
|
1485
|
+
}, kt = wt(null);
|
|
1478
1486
|
let br = 0;
|
|
1479
1487
|
const kr = ({ children: t }) => {
|
|
1480
1488
|
const [o, r] = B([]), n = (c) => {
|
|
@@ -1505,9 +1513,9 @@ const kr = ({ children: t }) => {
|
|
|
1505
1513
|
return {};
|
|
1506
1514
|
}
|
|
1507
1515
|
}, [o.length]);
|
|
1508
|
-
return /* @__PURE__ */ l(
|
|
1516
|
+
return /* @__PURE__ */ l(kt.Provider, { value: { showToast: n }, children: [
|
|
1509
1517
|
t,
|
|
1510
|
-
o.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
1518
|
+
o.length > 0 && /* @__PURE__ */ e("div", { className: ye.toastContainer, style: a(), children: o.map(({ id: c, props: d }) => /* @__PURE__ */ e(
|
|
1511
1519
|
vr,
|
|
1512
1520
|
{
|
|
1513
1521
|
...d,
|
|
@@ -1520,12 +1528,12 @@ const kr = ({ children: t }) => {
|
|
|
1520
1528
|
] });
|
|
1521
1529
|
};
|
|
1522
1530
|
kr.propKeys = ["children"];
|
|
1523
|
-
const
|
|
1524
|
-
const t =
|
|
1531
|
+
const lt = () => {
|
|
1532
|
+
const t = gt(kt);
|
|
1525
1533
|
if (!t) throw new Error("createNotificationToast must be used within ToastProvider");
|
|
1526
1534
|
return t.showToast;
|
|
1527
1535
|
};
|
|
1528
|
-
|
|
1536
|
+
lt.propKeys = [
|
|
1529
1537
|
"title",
|
|
1530
1538
|
"colorType",
|
|
1531
1539
|
"filled",
|
|
@@ -1539,8 +1547,8 @@ it.propKeys = [
|
|
|
1539
1547
|
"onUndo",
|
|
1540
1548
|
"onClose"
|
|
1541
1549
|
];
|
|
1542
|
-
|
|
1543
|
-
|
|
1550
|
+
lt.displayName = "Notification Toast";
|
|
1551
|
+
lt.description = "A function to create a notification toast.";
|
|
1544
1552
|
const Lr = "mc__TimePicker-module__timepickerWrapper", Tr = "mc__TimePicker-module__timepickerInputWrapper", xr = "mc__TimePicker-module__dropdownRightIcon", Ir = "mc__TimePicker-module__dropdownRightIconClose", Nr = "mc__TimePicker-module__dropdownRightIconArrow", $r = "mc__TimePicker-module__focused", Mr = "mc__TimePicker-module__timepickerDropdownWrapper", Dr = "mc__TimePicker-module__timepickerDropdownHeader", Sr = "mc__TimePicker-module__timepickerDropdownHeaderButtons", Hr = "mc__TimePicker-module__active", Pr = "mc__TimePicker-module__timepickerDropdownBody", Ar = "mc__TimePicker-module__timepickerDropdownBodyHours", Rr = "mc__TimePicker-module__timepickerDropdownBodyMinutes", Wr = "mc__TimePicker-module__timepickerDropdownBodyAmPm", Br = "mc__TimePicker-module__timepickerDropdownFooter", me = {
|
|
1545
1553
|
timepickerWrapper: Lr,
|
|
1546
1554
|
timepickerInputWrapper: Tr,
|
|
@@ -1558,15 +1566,15 @@ const Lr = "mc__TimePicker-module__timepickerWrapper", Tr = "mc__TimePicker-modu
|
|
|
1558
1566
|
timepickerDropdownBodyAmPm: Wr,
|
|
1559
1567
|
timepickerDropdownFooter: Br
|
|
1560
1568
|
};
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1569
|
+
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1570
|
+
function Fr(t) {
|
|
1563
1571
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1564
1572
|
}
|
|
1565
|
-
var
|
|
1573
|
+
var Lt = { exports: {} };
|
|
1566
1574
|
(function(t, o) {
|
|
1567
1575
|
(function(r, n) {
|
|
1568
1576
|
t.exports = n();
|
|
1569
|
-
})(
|
|
1577
|
+
})(Er, function() {
|
|
1570
1578
|
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, c = /\d\d/, d = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, v = {}, A = function(f) {
|
|
1571
1579
|
return (f = +f) + (f > 68 ? 1900 : 2e3);
|
|
1572
1580
|
}, _ = function(f) {
|
|
@@ -1622,18 +1630,18 @@ var Tt = { exports: {} };
|
|
|
1622
1630
|
function M(f) {
|
|
1623
1631
|
var g, x;
|
|
1624
1632
|
g = f, x = v && v.formats;
|
|
1625
|
-
for (var L = (f = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(te, H,
|
|
1626
|
-
var Y =
|
|
1627
|
-
return H || x[
|
|
1633
|
+
for (var L = (f = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(te, H, E) {
|
|
1634
|
+
var Y = E && E.toUpperCase();
|
|
1635
|
+
return H || x[E] || r[E] || x[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(F, s, m) {
|
|
1628
1636
|
return s || m.slice(1);
|
|
1629
1637
|
});
|
|
1630
1638
|
})).match(n), j = L.length, R = 0; R < j; R += 1) {
|
|
1631
|
-
var
|
|
1632
|
-
L[R] = V ? { regex:
|
|
1639
|
+
var z = L[R], J = I[z], U = J && J[0], V = J && J[1];
|
|
1640
|
+
L[R] = V ? { regex: U, parser: V } : z.replace(/^\[|\]$/g, "");
|
|
1633
1641
|
}
|
|
1634
1642
|
return function(te) {
|
|
1635
|
-
for (var H = {},
|
|
1636
|
-
var F = L[
|
|
1643
|
+
for (var H = {}, E = 0, Y = 0; E < j; E += 1) {
|
|
1644
|
+
var F = L[E];
|
|
1637
1645
|
if (typeof F == "string") Y += F.length;
|
|
1638
1646
|
else {
|
|
1639
1647
|
var s = F.regex, m = F.parser, w = te.slice(Y), y = s.exec(w)[0];
|
|
@@ -1653,25 +1661,25 @@ var Tt = { exports: {} };
|
|
|
1653
1661
|
x.p.customParseFormat = !0, f && f.parseTwoDigitYear && (A = f.parseTwoDigitYear);
|
|
1654
1662
|
var L = g.prototype, j = L.parse;
|
|
1655
1663
|
L.parse = function(R) {
|
|
1656
|
-
var
|
|
1664
|
+
var z = R.date, J = R.utc, U = R.args;
|
|
1657
1665
|
this.$u = J;
|
|
1658
|
-
var V =
|
|
1666
|
+
var V = U[1];
|
|
1659
1667
|
if (typeof V == "string") {
|
|
1660
|
-
var te =
|
|
1661
|
-
H && (Y =
|
|
1668
|
+
var te = U[2] === !0, H = U[3] === !0, E = te || H, Y = U[2];
|
|
1669
|
+
H && (Y = U[2]), v = this.$locale(), !te && Y && (v = x.Ls[Y]), this.$d = function(w, y, N, G) {
|
|
1662
1670
|
try {
|
|
1663
1671
|
if (["x", "X"].indexOf(y) > -1) return new Date((y === "X" ? 1e3 : 1) * w);
|
|
1664
|
-
var q = M(y)(w), oe = q.year,
|
|
1665
|
-
oe && !
|
|
1666
|
-
var
|
|
1667
|
-
return pe ? new Date(Date.UTC(D, P, C, ee, Ce, fe, ge + 60 * pe.offset * 1e3)) : N ? new Date(Date.UTC(D, P, C, ee, Ce, fe, ge)) : (
|
|
1672
|
+
var q = M(y)(w), oe = q.year, se = q.month, he = q.day, ue = q.hours, de = q.minutes, ve = q.seconds, le = q.milliseconds, pe = q.zone, Q = q.week, b = /* @__PURE__ */ new Date(), C = he || (oe || se ? 1 : b.getDate()), D = oe || b.getFullYear(), P = 0;
|
|
1673
|
+
oe && !se || (P = se > 0 ? se - 1 : b.getMonth());
|
|
1674
|
+
var ie, ee = ue || 0, Ce = de || 0, fe = ve || 0, ge = le || 0;
|
|
1675
|
+
return pe ? new Date(Date.UTC(D, P, C, ee, Ce, fe, ge + 60 * pe.offset * 1e3)) : N ? new Date(Date.UTC(D, P, C, ee, Ce, fe, ge)) : (ie = new Date(D, P, C, ee, Ce, fe, ge), Q && (ie = G(ie).week(Q).toDate()), ie);
|
|
1668
1676
|
} catch {
|
|
1669
1677
|
return /* @__PURE__ */ new Date("");
|
|
1670
1678
|
}
|
|
1671
|
-
}(
|
|
1679
|
+
}(z, V, J, x), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), E && z != this.format(V) && (this.$d = /* @__PURE__ */ new Date("")), v = {};
|
|
1672
1680
|
} else if (V instanceof Array) for (var F = V.length, s = 1; s <= F; s += 1) {
|
|
1673
|
-
|
|
1674
|
-
var m = x.apply(this,
|
|
1681
|
+
U[1] = V[s - 1];
|
|
1682
|
+
var m = x.apply(this, U);
|
|
1675
1683
|
if (m.isValid()) {
|
|
1676
1684
|
this.$d = m.$d, this.$L = m.$L, this.init();
|
|
1677
1685
|
break;
|
|
@@ -1682,11 +1690,11 @@ var Tt = { exports: {} };
|
|
|
1682
1690
|
};
|
|
1683
1691
|
};
|
|
1684
1692
|
});
|
|
1685
|
-
})(
|
|
1686
|
-
var Or =
|
|
1687
|
-
const
|
|
1688
|
-
$.extend(
|
|
1689
|
-
const
|
|
1693
|
+
})(Lt);
|
|
1694
|
+
var Or = Lt.exports;
|
|
1695
|
+
const it = /* @__PURE__ */ Fr(Or);
|
|
1696
|
+
$.extend(it);
|
|
1697
|
+
const st = ({
|
|
1690
1698
|
value: t,
|
|
1691
1699
|
defaultTimeType: o = "24",
|
|
1692
1700
|
defaultAmPm: r = "AM",
|
|
@@ -1698,16 +1706,16 @@ const at = ({
|
|
|
1698
1706
|
onBlur: v,
|
|
1699
1707
|
...A
|
|
1700
1708
|
}) => {
|
|
1701
|
-
const _ = ne(null), p = ne(null), [h, T] = B(!1), [I, M] = B(o), f = Array.from({ length: 12 }, (s, m) => m < 10 ? `0${m}` : `${m}`), g = Array.from({ length: 24 }, (s, m) => m < 10 ? `0${m}` : `${m}`), x = Array.from({ length: 60 }, (s, m) => m < 10 ? `0${m}` : `${m}`), [L, j] = B(""), [R,
|
|
1709
|
+
const _ = ne(null), p = ne(null), [h, T] = B(!1), [I, M] = B(o), f = Array.from({ length: 12 }, (s, m) => m < 10 ? `0${m}` : `${m}`), g = Array.from({ length: 24 }, (s, m) => m < 10 ? `0${m}` : `${m}`), x = Array.from({ length: 60 }, (s, m) => m < 10 ? `0${m}` : `${m}`), [L, j] = B(""), [R, z] = B(null), [J, U] = B(null), [V, te] = B(r), H = () => {
|
|
1702
1710
|
if (!_.current || !p.current) return;
|
|
1703
1711
|
const s = _.current, m = p.current;
|
|
1704
1712
|
if (!m || !s) return;
|
|
1705
1713
|
const w = s.getBoundingClientRect(), y = window.innerHeight, N = window.innerWidth;
|
|
1706
1714
|
m.style.position = "fixed", w.bottom + m.offsetHeight > y ? (m.style.top = `${w.top - m.offsetHeight + 20}px`, m.style.bottom = "unset") : (m.style.top = `${w.bottom + 8}px`, m.style.bottom = "unset"), w.right + w.width > N - 120 ? m.style.left = `${w.left + w.width - m.offsetWidth}px` : m.style.left = `${w.left}px`;
|
|
1707
|
-
},
|
|
1715
|
+
}, E = () => {
|
|
1708
1716
|
i?.();
|
|
1709
1717
|
}, Y = () => {
|
|
1710
|
-
j(""),
|
|
1718
|
+
j(""), U(null), z(null), te("AM");
|
|
1711
1719
|
};
|
|
1712
1720
|
X(() => {
|
|
1713
1721
|
t && t.length > 0 && j(t);
|
|
@@ -1737,8 +1745,8 @@ const at = ({
|
|
|
1737
1745
|
document.removeEventListener("click", s), document.removeEventListener("wheel", m), window.removeEventListener("scroll", w);
|
|
1738
1746
|
};
|
|
1739
1747
|
}, [h]), /* @__PURE__ */ l("div", { className: `${me.timepickerWrapper} ${h ? me.focused : ""}`, children: [
|
|
1740
|
-
/* @__PURE__ */ e("div", { ref: _, className: me.timepickerInputWrapper, onClick: () => (T((s) => !s), H()), onFocus:
|
|
1741
|
-
|
|
1748
|
+
/* @__PURE__ */ e("div", { ref: _, className: me.timepickerInputWrapper, onClick: () => (T((s) => !s), H()), onFocus: E, children: /* @__PURE__ */ e(
|
|
1749
|
+
Ae,
|
|
1742
1750
|
{
|
|
1743
1751
|
...A,
|
|
1744
1752
|
onFocusChange: (s) => T(s),
|
|
@@ -1788,20 +1796,20 @@ const at = ({
|
|
|
1788
1796
|
)
|
|
1789
1797
|
] }) }),
|
|
1790
1798
|
/* @__PURE__ */ l("div", { className: me.timepickerDropdownBody, children: [
|
|
1791
|
-
/* @__PURE__ */ e("div", { className: me.timepickerDropdownBodyHours, children: (I === "12" ? f : g).map((s) => /* @__PURE__ */ e("p", { className: J === s || L?.split(":")[0] === s ? me.active : "", onClick: () =>
|
|
1792
|
-
/* @__PURE__ */ e("div", { className: me.timepickerDropdownBodyMinutes, children: x.map((s) => /* @__PURE__ */ e("p", { className: R === s || L?.split(":")[1] === s ? me.active : "", onClick: () =>
|
|
1799
|
+
/* @__PURE__ */ e("div", { className: me.timepickerDropdownBodyHours, children: (I === "12" ? f : g).map((s) => /* @__PURE__ */ e("p", { className: J === s || L?.split(":")[0] === s ? me.active : "", onClick: () => U(s), children: s }, s)) }),
|
|
1800
|
+
/* @__PURE__ */ e("div", { className: me.timepickerDropdownBodyMinutes, children: x.map((s) => /* @__PURE__ */ e("p", { className: R === s || L?.split(":")[1] === s ? me.active : "", onClick: () => z(s), children: s }, s)) }),
|
|
1793
1801
|
I === "12" && /* @__PURE__ */ l("div", { className: me.timepickerDropdownBodyAmPm, children: [
|
|
1794
1802
|
/* @__PURE__ */ e("p", { className: V === "AM" ? me.active : "", onClick: () => te("AM"), children: "AM" }, "AM"),
|
|
1795
1803
|
/* @__PURE__ */ e("p", { className: V === "PM" ? me.active : "", onClick: () => te("PM"), children: "PM" }, "PM")
|
|
1796
1804
|
] })
|
|
1797
1805
|
] }),
|
|
1798
|
-
n && /* @__PURE__ */ e("div", { className: me.timepickerDropdownFooter, children: /* @__PURE__ */ e(
|
|
1806
|
+
n && /* @__PURE__ */ e("div", { className: me.timepickerDropdownFooter, children: /* @__PURE__ */ e(Ne, { label: "Confirm time", onClick: () => d?.(L) }) })
|
|
1799
1807
|
] })
|
|
1800
1808
|
] });
|
|
1801
1809
|
};
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1810
|
+
st.propKeys = ["value", "defaultTimeType", "defaultAmPm", "withConfirm", "mode", "onChange", "onFocus", "onBlur", "closeOnScroll"];
|
|
1811
|
+
st.displayName = "Timepicker";
|
|
1812
|
+
st.description = "A time selection component with 12/24 hour formats and optional confirmation for precise time input.";
|
|
1805
1813
|
const Vr = "mc__Datepicker-module__datepickerContainer", Zr = "mc__Datepicker-module__datepickerInputWrapper", zr = "mc__Datepicker-module__datepickerLeftIcon", Ur = "mc__Datepicker-module__datepickerRightIcon", ze = {
|
|
1806
1814
|
datepickerContainer: Vr,
|
|
1807
1815
|
datepickerInputWrapper: Zr,
|
|
@@ -1835,7 +1843,7 @@ const Vr = "mc__Datepicker-module__datepickerContainer", Zr = "mc__Datepicker-mo
|
|
|
1835
1843
|
pickedMonth: _l,
|
|
1836
1844
|
buttonWrapper: Cl
|
|
1837
1845
|
};
|
|
1838
|
-
$.extend(
|
|
1846
|
+
$.extend(it);
|
|
1839
1847
|
const gl = ({
|
|
1840
1848
|
valueFormat: t,
|
|
1841
1849
|
quickPick: o,
|
|
@@ -1859,20 +1867,20 @@ const gl = ({
|
|
|
1859
1867
|
defaultValue: L,
|
|
1860
1868
|
selectedStyle: j,
|
|
1861
1869
|
endDateStyle: R,
|
|
1862
|
-
startDateStyle:
|
|
1870
|
+
startDateStyle: z,
|
|
1863
1871
|
inRangeStyle: J,
|
|
1864
|
-
otherMonthStyle:
|
|
1872
|
+
otherMonthStyle: U,
|
|
1865
1873
|
todayStyle: V,
|
|
1866
1874
|
weekDayStyle: te,
|
|
1867
1875
|
quickPickStyle: H,
|
|
1868
|
-
monthStyle:
|
|
1876
|
+
monthStyle: E
|
|
1869
1877
|
}) => {
|
|
1870
1878
|
const Y = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], F = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1871
1879
|
$().year();
|
|
1872
1880
|
const [s, m] = B(""), w = ne([]), [y, N] = B(!1), G = (b) => {
|
|
1873
1881
|
if (i?.length && !i.includes(b.year().toString()))
|
|
1874
1882
|
return [];
|
|
1875
|
-
const C = (b.startOf("month").day() + 6) % 7, D = b.endOf("month").date(), P = b.subtract(1, "month").endOf("month").date(),
|
|
1883
|
+
const C = (b.startOf("month").day() + 6) % 7, D = b.endOf("month").date(), P = b.subtract(1, "month").endOf("month").date(), ie = [];
|
|
1876
1884
|
let ee = [], Ce = 1;
|
|
1877
1885
|
for (let ge = 0; ge < C; ge++)
|
|
1878
1886
|
ee.push({
|
|
@@ -1880,10 +1888,10 @@ const gl = ({
|
|
|
1880
1888
|
currentMonth: !1
|
|
1881
1889
|
});
|
|
1882
1890
|
for (; Ce <= D; )
|
|
1883
|
-
ee.push({ date: b.date(Ce++), currentMonth: !0 }), ee.length === 7 && (
|
|
1891
|
+
ee.push({ date: b.date(Ce++), currentMonth: !0 }), ee.length === 7 && (ie.push(ee), ee = []);
|
|
1884
1892
|
let fe = 1;
|
|
1885
|
-
for (;
|
|
1886
|
-
ee.length === 7 && (
|
|
1893
|
+
for (; ie.length < 5; )
|
|
1894
|
+
ee.length === 7 && (ie.push(ee), ee = []), ee.push({
|
|
1887
1895
|
date: b.add(1, "month").date(fe++),
|
|
1888
1896
|
currentMonth: !1
|
|
1889
1897
|
});
|
|
@@ -1893,10 +1901,10 @@ const gl = ({
|
|
|
1893
1901
|
date: b.add(1, "month").date(fe++),
|
|
1894
1902
|
currentMonth: !1
|
|
1895
1903
|
});
|
|
1896
|
-
|
|
1904
|
+
ie.push(ee);
|
|
1897
1905
|
}
|
|
1898
|
-
return
|
|
1899
|
-
}, q = G(n), oe = I === "dual" ? G(n.add(1, "month")) : null,
|
|
1906
|
+
return ie;
|
|
1907
|
+
}, q = G(n), oe = I === "dual" ? G(n.add(1, "month")) : null, se = () => {
|
|
1900
1908
|
let b = [];
|
|
1901
1909
|
return o && Array.isArray(o) && o.length > 0 && o.forEach((C) => {
|
|
1902
1910
|
switch (C) {
|
|
@@ -1928,7 +1936,7 @@ const gl = ({
|
|
|
1928
1936
|
w.current.push({ name: "All time", key: "Alltime" });
|
|
1929
1937
|
break;
|
|
1930
1938
|
}
|
|
1931
|
-
}), w.current =
|
|
1939
|
+
}), w.current = vt(w.current, "key"), b = w.current, b;
|
|
1932
1940
|
}, he = (b) => {
|
|
1933
1941
|
let C = { start: "", end: "" };
|
|
1934
1942
|
switch (v(null), b.key?.toLowerCase()) {
|
|
@@ -2009,9 +2017,9 @@ const gl = ({
|
|
|
2009
2017
|
...P,
|
|
2010
2018
|
end: b ?? ""
|
|
2011
2019
|
}), { ...P, end: b ?? "" }) : P) : (T({ start: null, end: null }), v(b), D || (_(!1), r && typeof r == "function" && r(b.format(t))));
|
|
2012
|
-
},
|
|
2020
|
+
}, ve = () => {
|
|
2013
2021
|
a(n.add(1, "month"));
|
|
2014
|
-
},
|
|
2022
|
+
}, le = () => {
|
|
2015
2023
|
a(n.subtract(1, "month"));
|
|
2016
2024
|
}, pe = () => {
|
|
2017
2025
|
a(n.add(1, "year"));
|
|
@@ -2032,20 +2040,20 @@ const gl = ({
|
|
|
2032
2040
|
/* @__PURE__ */ l("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-start", gap: "80px" }, children: [
|
|
2033
2041
|
/* @__PURE__ */ l("div", { className: K.left, children: [
|
|
2034
2042
|
(!i || i.length > 1) && (!i || n.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: K.doubleIcon, onClick: Q, children: [
|
|
2035
|
-
/* @__PURE__ */ e(
|
|
2036
|
-
/* @__PURE__ */ e(
|
|
2043
|
+
/* @__PURE__ */ e(We, {}),
|
|
2044
|
+
/* @__PURE__ */ e(We, {})
|
|
2037
2045
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2038
|
-
!i || i && n.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick:
|
|
2046
|
+
!i || i && n.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick: le, children: /* @__PURE__ */ e(We, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2039
2047
|
] }),
|
|
2040
|
-
/* @__PURE__ */ e("div", { style:
|
|
2048
|
+
/* @__PURE__ */ e("div", { style: E ?? {}, children: i && i.length === 1 ? n.format("MMMM") : n.format("MMMM YYYY") })
|
|
2041
2049
|
] }),
|
|
2042
2050
|
/* @__PURE__ */ l("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-end", gap: "80px" }, children: [
|
|
2043
|
-
/* @__PURE__ */ e("span", { style:
|
|
2051
|
+
/* @__PURE__ */ e("span", { style: E ?? {}, children: i && i.length === 1 ? n.add(1, "month").format("MMMM") : n.add(1, "month").format("MMMM YYYY") }),
|
|
2044
2052
|
/* @__PURE__ */ l("div", { className: K.right, children: [
|
|
2045
|
-
!i || i && n.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick:
|
|
2053
|
+
!i || i && n.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick: ve, children: /* @__PURE__ */ e(Be, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2046
2054
|
(!i || i.length > 1) && (!i || n.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: K.doubleIcon, onClick: pe, children: [
|
|
2047
|
-
/* @__PURE__ */ e(
|
|
2048
|
-
/* @__PURE__ */ e(
|
|
2055
|
+
/* @__PURE__ */ e(Be, {}),
|
|
2056
|
+
/* @__PURE__ */ e(Be, {})
|
|
2049
2057
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2050
2058
|
] })
|
|
2051
2059
|
] })
|
|
@@ -2053,43 +2061,43 @@ const gl = ({
|
|
|
2053
2061
|
/* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
2054
2062
|
/* @__PURE__ */ l("div", { className: K.left, children: [
|
|
2055
2063
|
(!i || i.length > 1) && (!i || n.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: K.doubleIcon, onClick: Q, children: [
|
|
2056
|
-
/* @__PURE__ */ e(
|
|
2057
|
-
/* @__PURE__ */ e(
|
|
2064
|
+
/* @__PURE__ */ e(We, {}),
|
|
2065
|
+
/* @__PURE__ */ e(We, {})
|
|
2058
2066
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2059
|
-
!i || i && n.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick:
|
|
2067
|
+
!i || i && n.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick: le, children: /* @__PURE__ */ e(We, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2060
2068
|
] }),
|
|
2061
|
-
/* @__PURE__ */ e("div", { className: K.currentDateHeader, style:
|
|
2069
|
+
/* @__PURE__ */ e("div", { className: K.currentDateHeader, style: E ?? {}, onClick: ue, children: i && i.length === 1 ? n.format("MMMM") : n.format("MMMM YYYY") }),
|
|
2062
2070
|
/* @__PURE__ */ l("div", { className: K.right, children: [
|
|
2063
|
-
!i || i && n.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick:
|
|
2071
|
+
!i || i && n.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: K.singleIcon, onClick: ve, children: /* @__PURE__ */ e(Be, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2064
2072
|
(!i || i.length > 1) && (!i || n.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: K.doubleIcon, onClick: pe, children: [
|
|
2065
|
-
/* @__PURE__ */ e(
|
|
2066
|
-
/* @__PURE__ */ e(
|
|
2073
|
+
/* @__PURE__ */ e(Be, {}),
|
|
2074
|
+
/* @__PURE__ */ e(Be, {})
|
|
2067
2075
|
] }) : /* @__PURE__ */ e("div", { className: K.doubleIcon })
|
|
2068
2076
|
] })
|
|
2069
2077
|
] }),
|
|
2070
|
-
I === "single" && o && Array.isArray(o) && o.length > 0 && /* @__PURE__ */ e("ul", { className: K.quickPick, children:
|
|
2078
|
+
I === "single" && o && Array.isArray(o) && o.length > 0 && /* @__PURE__ */ e("ul", { className: K.quickPick, children: se().slice(0, 3).map((b) => /* @__PURE__ */ e("li", { style: H ?? {}, onClick: () => he(b), children: b.name }, b.key)) })
|
|
2071
2079
|
] }),
|
|
2072
2080
|
/* @__PURE__ */ l("div", { className: K.calendarWrapper, children: [
|
|
2073
2081
|
y ? /* @__PURE__ */ e("ul", { className: K.monthsWrapper, children: F.map((b) => /* @__PURE__ */ e("li", { className: `${K.month} ${s === b ? K.pickedMonth : ""}`, onClick: () => m(b), children: /* @__PURE__ */ e("div", { className: K.monthName, children: b }) })) }) : /* @__PURE__ */ l("table", { children: [
|
|
2074
2082
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Y.map((b) => /* @__PURE__ */ e("th", { style: te ?? {}, children: b }, b)) }) }),
|
|
2075
2083
|
/* @__PURE__ */ l("tbody", { children: [
|
|
2076
2084
|
/* @__PURE__ */ e("tr", { className: K.spacerRow, children: /* @__PURE__ */ e("td", {}) }),
|
|
2077
|
-
q.map((b, C) => /* @__PURE__ */ e("tr", { children: b.map(({ date: D, currentMonth: P },
|
|
2078
|
-
const ee = h.start && h.end && D.isAfter(h.start, "day") && D.isBefore(h.end, "day"), Ce = h.start && D.isSame(h.start, "day"), fe = h.end && D.isSame(h.end, "day"), ge = p === "single" && c && D.isSame(c, "day"),
|
|
2079
|
-
let
|
|
2085
|
+
q.map((b, C) => /* @__PURE__ */ e("tr", { children: b.map(({ date: D, currentMonth: P }, ie) => {
|
|
2086
|
+
const ee = h.start && h.end && D.isAfter(h.start, "day") && D.isBefore(h.end, "day"), Ce = h.start && D.isSame(h.start, "day"), fe = h.end && D.isSame(h.end, "day"), ge = p === "single" && c && D.isSame(c, "day"), we = f && D.isBefore($(f), "day"), $e = g && D.isAfter($(g), "day");
|
|
2087
|
+
let xe = !1;
|
|
2080
2088
|
if (M?.length === 2) {
|
|
2081
|
-
const [
|
|
2082
|
-
|
|
2089
|
+
const [u, Z] = M.map((re) => $(re));
|
|
2090
|
+
xe = D.isAfter(u.subtract(1, "day")) && D.isBefore(Z.add(1, "day"));
|
|
2083
2091
|
}
|
|
2084
|
-
const Me =
|
|
2092
|
+
const Me = $e || we || xe;
|
|
2085
2093
|
return /* @__PURE__ */ e(
|
|
2086
2094
|
"td",
|
|
2087
2095
|
{
|
|
2088
2096
|
style: {
|
|
2089
|
-
...P ? {} :
|
|
2097
|
+
...P ? {} : U,
|
|
2090
2098
|
...D.isSame($(), "day") ? V : {},
|
|
2091
2099
|
...ee ? J : {},
|
|
2092
|
-
...Ce ?
|
|
2100
|
+
...Ce ? z : {},
|
|
2093
2101
|
...fe ? R : {},
|
|
2094
2102
|
...ge ? j : {}
|
|
2095
2103
|
},
|
|
@@ -2104,31 +2112,31 @@ const gl = ({
|
|
|
2104
2112
|
onClick: () => de(D, P),
|
|
2105
2113
|
children: D.date()
|
|
2106
2114
|
},
|
|
2107
|
-
|
|
2115
|
+
ie
|
|
2108
2116
|
);
|
|
2109
2117
|
}) }, C))
|
|
2110
2118
|
] })
|
|
2111
2119
|
] }),
|
|
2112
|
-
/* @__PURE__ */ e("div", { className: K.buttonWrapper, children: /* @__PURE__ */ e(
|
|
2120
|
+
/* @__PURE__ */ e("div", { className: K.buttonWrapper, children: /* @__PURE__ */ e(Ne, { label: "Current date", onClick: () => de($(), !0) }) }),
|
|
2113
2121
|
I === "dual" && /* @__PURE__ */ e("div", { className: K.border }),
|
|
2114
2122
|
I === "dual" && /* @__PURE__ */ l("table", { children: [
|
|
2115
2123
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Y.map((b) => /* @__PURE__ */ e("th", { style: te ?? {}, children: b }, b)) }) }),
|
|
2116
|
-
/* @__PURE__ */ e("tbody", { children: oe?.map((b, C) => /* @__PURE__ */ e("tr", { children: b.map(({ date: D, currentMonth: P },
|
|
2117
|
-
const ee = h.start && h.end && D.isAfter(h.start, "day") && D.isBefore(h.end, "day"), Ce = h.start && D.isSame(h.start, "day"), fe = h.end && D.isSame(h.end, "day"), ge = p === "single" && c && D.isSame(c, "day"),
|
|
2118
|
-
let
|
|
2124
|
+
/* @__PURE__ */ e("tbody", { children: oe?.map((b, C) => /* @__PURE__ */ e("tr", { children: b.map(({ date: D, currentMonth: P }, ie) => {
|
|
2125
|
+
const ee = h.start && h.end && D.isAfter(h.start, "day") && D.isBefore(h.end, "day"), Ce = h.start && D.isSame(h.start, "day"), fe = h.end && D.isSame(h.end, "day"), ge = p === "single" && c && D.isSame(c, "day"), we = f && D.isBefore($(f), "day"), $e = g && D.isAfter($(g), "day");
|
|
2126
|
+
let xe = !1;
|
|
2119
2127
|
if (M?.length === 2) {
|
|
2120
|
-
const [
|
|
2121
|
-
|
|
2128
|
+
const [u, Z] = M.map((re) => $(re));
|
|
2129
|
+
xe = D.isAfter(u.subtract(1, "day")) && D.isBefore(Z.add(1, "day"));
|
|
2122
2130
|
}
|
|
2123
|
-
const Me =
|
|
2131
|
+
const Me = $e || we || xe;
|
|
2124
2132
|
return /* @__PURE__ */ e(
|
|
2125
2133
|
"td",
|
|
2126
2134
|
{
|
|
2127
2135
|
style: {
|
|
2128
|
-
...P ? {} :
|
|
2136
|
+
...P ? {} : U,
|
|
2129
2137
|
...D.isSame($(), "day") ? V : {},
|
|
2130
2138
|
...ee ? J : {},
|
|
2131
|
-
...Ce ?
|
|
2139
|
+
...Ce ? z : {},
|
|
2132
2140
|
...fe ? R : {},
|
|
2133
2141
|
...ge ? j : {}
|
|
2134
2142
|
},
|
|
@@ -2143,7 +2151,7 @@ const gl = ({
|
|
|
2143
2151
|
onClick: () => de(D, P),
|
|
2144
2152
|
children: D.date()
|
|
2145
2153
|
},
|
|
2146
|
-
|
|
2154
|
+
ie
|
|
2147
2155
|
);
|
|
2148
2156
|
}) }, C)) })
|
|
2149
2157
|
] })
|
|
@@ -2152,8 +2160,8 @@ const gl = ({
|
|
|
2152
2160
|
}
|
|
2153
2161
|
);
|
|
2154
2162
|
};
|
|
2155
|
-
$.extend(
|
|
2156
|
-
const
|
|
2163
|
+
$.extend(it);
|
|
2164
|
+
const at = ({
|
|
2157
2165
|
defaultValue: t,
|
|
2158
2166
|
valueFormat: o = "DD-MM-YYYY",
|
|
2159
2167
|
onChange: r,
|
|
@@ -2176,15 +2184,15 @@ const ct = ({
|
|
|
2176
2184
|
otherMonthStyle: L,
|
|
2177
2185
|
todayStyle: j,
|
|
2178
2186
|
weekDayStyle: R,
|
|
2179
|
-
quickPickStyle:
|
|
2187
|
+
quickPickStyle: z,
|
|
2180
2188
|
monthStyle: J,
|
|
2181
|
-
quickPick:
|
|
2189
|
+
quickPick: U,
|
|
2182
2190
|
mode: V = "single",
|
|
2183
2191
|
pickerType: te = "single",
|
|
2184
2192
|
disabled: H = !1,
|
|
2185
|
-
...
|
|
2193
|
+
...E
|
|
2186
2194
|
}) => {
|
|
2187
|
-
const Y =
|
|
2195
|
+
const Y = tt(), [F, s] = B(!1), [m, w] = B(""), y = ne({ state: !1, value: "" }), N = ne(null), [G, q] = B(() => {
|
|
2188
2196
|
const C = $().year().toString();
|
|
2189
2197
|
return c?.length ? c.includes(C) ? $() : $(`${Math.min(...c.map(Number))}-01-01`) : $();
|
|
2190
2198
|
});
|
|
@@ -2192,14 +2200,14 @@ const ct = ({
|
|
|
2192
2200
|
const C = $().year().toString();
|
|
2193
2201
|
c?.length && q(c.includes(C) ? $() : $(`${Math.min(...c.map(Number))}-01-01`));
|
|
2194
2202
|
}, [c]);
|
|
2195
|
-
const [oe,
|
|
2203
|
+
const [oe, se] = B(""), [he, ue] = B({
|
|
2196
2204
|
start: null,
|
|
2197
2205
|
end: null
|
|
2198
|
-
}), de = ne(null),
|
|
2199
|
-
let
|
|
2200
|
-
(V === "single" || typeof C == "string") && (
|
|
2201
|
-
},
|
|
2202
|
-
C.stopPropagation(),
|
|
2206
|
+
}), de = ne(null), ve = (C, D, P) => {
|
|
2207
|
+
let ie = "", ee = { start: "", end: "" };
|
|
2208
|
+
(V === "single" || typeof C == "string") && (ie = C, w(ie)), (V !== "single" || typeof C != "string") && (ie = `${$(C?.start ?? "").format(o)} / ${C?.end ? $(C?.end).format(o) : ""}`, ee.start = $(C?.start ?? "").format(o), ee.end = C?.end ? $(C?.end).format(o) : "", w(ie)), C?.end && s(!1), r && typeof r == "function" && !P && (r(ee.start !== "" ? ee : ie), y.current.value = ee.start !== "" ? ee : ie);
|
|
2209
|
+
}, le = (C) => {
|
|
2210
|
+
C.stopPropagation(), se(""), y.current.value = "", w(""), ue({
|
|
2203
2211
|
start: null,
|
|
2204
2212
|
end: null
|
|
2205
2213
|
}), r && typeof r == "function" && r("");
|
|
@@ -2211,8 +2219,8 @@ const ct = ({
|
|
|
2211
2219
|
if (!de.current || !N.current) return;
|
|
2212
2220
|
const C = de.current, D = N.current;
|
|
2213
2221
|
if (!D || !C) return;
|
|
2214
|
-
const P = C.getBoundingClientRect(),
|
|
2215
|
-
D.style.position = "fixed", P.bottom + D.offsetHeight >
|
|
2222
|
+
const P = C.getBoundingClientRect(), ie = window.innerHeight, ee = window.innerWidth;
|
|
2223
|
+
D.style.position = "fixed", P.bottom + D.offsetHeight > ie ? (D.style.top = `${P.top - D.offsetHeight + 20}px`, D.style.bottom = "unset") : (D.style.top = `${P.bottom + 8}px`, D.style.bottom = "unset"), P.right + P.width > ee - 120 ? D.style.left = `${P.left + P.width - D.offsetWidth}px` : D.style.left = `${P.left}px`;
|
|
2216
2224
|
};
|
|
2217
2225
|
return X(() => {
|
|
2218
2226
|
if (t && y.current.value === "") {
|
|
@@ -2220,7 +2228,7 @@ const ct = ({
|
|
|
2220
2228
|
start: $(t[0], o),
|
|
2221
2229
|
end: t.length > 1 ? $(t[1], o) : ""
|
|
2222
2230
|
} : $(t, o).format(o);
|
|
2223
|
-
y.current.value = t, y.current.state = !0, C &&
|
|
2231
|
+
y.current.value = t, y.current.state = !0, C && ve(C, !1, !0);
|
|
2224
2232
|
}
|
|
2225
2233
|
}, []), X(() => {
|
|
2226
2234
|
F && b();
|
|
@@ -2233,16 +2241,16 @@ const ct = ({
|
|
|
2233
2241
|
};
|
|
2234
2242
|
}, [F]), /* @__PURE__ */ l("div", { className: `${Y === "namespaceHr" ? ze.namespaceHr : ""} ${ze.datepickerContainer}`, children: [
|
|
2235
2243
|
/* @__PURE__ */ e("div", { ref: de, className: ze.datepickerInputWrapper, onClick: () => (s((C) => !C), b()), children: /* @__PURE__ */ e(
|
|
2236
|
-
|
|
2244
|
+
Ae,
|
|
2237
2245
|
{
|
|
2238
|
-
...
|
|
2246
|
+
...E,
|
|
2239
2247
|
customFocus: F,
|
|
2240
2248
|
withActive: !1,
|
|
2241
2249
|
value: m,
|
|
2242
2250
|
toggleFocus: !0,
|
|
2243
2251
|
formInputStyle: { cursor: "pointer" },
|
|
2244
2252
|
leftSlot: /* @__PURE__ */ e("div", { className: ze.datepickerLeftIcon, children: /* @__PURE__ */ e(Ot, {}) }),
|
|
2245
|
-
rightSlot: /* @__PURE__ */ e("div", { className: `${ze.datepickerRightIcon}`, onClick:
|
|
2253
|
+
rightSlot: /* @__PURE__ */ e("div", { className: `${ze.datepickerRightIcon}`, onClick: le, children: m && /* @__PURE__ */ e(qe, {}) }),
|
|
2246
2254
|
readOnly: !0
|
|
2247
2255
|
}
|
|
2248
2256
|
) }),
|
|
@@ -2256,15 +2264,15 @@ const ct = ({
|
|
|
2256
2264
|
disabledDatesTill: v,
|
|
2257
2265
|
disabledDatesRange: A,
|
|
2258
2266
|
valueFormat: o,
|
|
2259
|
-
onChange: (C) =>
|
|
2267
|
+
onChange: (C) => ve(C, !1, !1),
|
|
2260
2268
|
customYears: c,
|
|
2261
2269
|
CurrentMonth: G,
|
|
2262
2270
|
setCurrentMonth: q,
|
|
2263
2271
|
SelectedDate: oe,
|
|
2264
|
-
setSelectedDate:
|
|
2272
|
+
setSelectedDate: se,
|
|
2265
2273
|
IsFocused: F,
|
|
2266
2274
|
setIsFocused: s,
|
|
2267
|
-
quickPick:
|
|
2275
|
+
quickPick: U,
|
|
2268
2276
|
mode: V,
|
|
2269
2277
|
RangeSelection: he,
|
|
2270
2278
|
setRangeSelection: ue,
|
|
@@ -2276,13 +2284,13 @@ const ct = ({
|
|
|
2276
2284
|
otherMonthStyle: L,
|
|
2277
2285
|
todayStyle: j,
|
|
2278
2286
|
weekDayStyle: R,
|
|
2279
|
-
quickPickStyle:
|
|
2287
|
+
quickPickStyle: z,
|
|
2280
2288
|
monthStyle: J
|
|
2281
2289
|
}
|
|
2282
2290
|
)
|
|
2283
2291
|
] });
|
|
2284
2292
|
};
|
|
2285
|
-
|
|
2293
|
+
at.propKeys = [
|
|
2286
2294
|
"defaultValue",
|
|
2287
2295
|
"valueFormat",
|
|
2288
2296
|
"onChange",
|
|
@@ -2312,19 +2320,19 @@ ct.propKeys = [
|
|
|
2312
2320
|
"pickerType",
|
|
2313
2321
|
"disabled"
|
|
2314
2322
|
];
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
const wl = "mc__Skeleton-module__skeleton", yl = "mc__Skeleton-module__shimmer", vl = "mc__Skeleton-module__text", bl = "mc__Skeleton-module__avatar", kl = "mc__Skeleton-module__dark",
|
|
2323
|
+
at.displayName = "Datepicker";
|
|
2324
|
+
at.description = "A comprehensive date selection component with calendar interface, range selection, and quick pick options.";
|
|
2325
|
+
const wl = "mc__Skeleton-module__skeleton", yl = "mc__Skeleton-module__shimmer", vl = "mc__Skeleton-module__text", bl = "mc__Skeleton-module__avatar", kl = "mc__Skeleton-module__dark", _t = {
|
|
2318
2326
|
skeleton: wl,
|
|
2319
2327
|
shimmer: yl,
|
|
2320
2328
|
text: vl,
|
|
2321
2329
|
avatar: bl,
|
|
2322
2330
|
dark: kl
|
|
2323
|
-
},
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
const Ll = "mc__ActionDropdown-module__actionDropdownContainer", Tl = "mc__ActionDropdown-module__collapsed", xl = "mc__ActionDropdown-module__actionDropdownIcon", Il = "mc__ActionDropdown-module__actionDropdownContent", Nl = "mc__ActionDropdown-module__actionDropdownTitle", $l = "mc__ActionDropdown-module__actionDropdownList", Ml = "mc__ActionDropdown-module__actionDropdownItem", Dl = "mc__ActionDropdown-module__selected",
|
|
2331
|
+
}, ct = ({ type: t = "text", customStyle: o, children: r }) => /* @__PURE__ */ e("div", { style: o ?? {}, className: ` ${_t.skeleton} ${_t[t] || ""}`, children: r });
|
|
2332
|
+
ct.propKeys = ["type", "customStyle", "children"];
|
|
2333
|
+
ct.displayName = "Skeleton";
|
|
2334
|
+
ct.description = "A loading skeleton component for displaying placeholder content while data is being fetched.";
|
|
2335
|
+
const Ll = "mc__ActionDropdown-module__actionDropdownContainer", Tl = "mc__ActionDropdown-module__collapsed", xl = "mc__ActionDropdown-module__actionDropdownIcon", Il = "mc__ActionDropdown-module__actionDropdownContent", Nl = "mc__ActionDropdown-module__actionDropdownTitle", $l = "mc__ActionDropdown-module__actionDropdownList", Ml = "mc__ActionDropdown-module__actionDropdownItem", Dl = "mc__ActionDropdown-module__selected", De = {
|
|
2328
2336
|
actionDropdownContainer: Ll,
|
|
2329
2337
|
collapsed: Tl,
|
|
2330
2338
|
actionDropdownIcon: xl,
|
|
@@ -2333,7 +2341,7 @@ const Ll = "mc__ActionDropdown-module__actionDropdownContainer", Tl = "mc__Actio
|
|
|
2333
2341
|
actionDropdownList: $l,
|
|
2334
2342
|
actionDropdownItem: Ml,
|
|
2335
2343
|
selected: Dl
|
|
2336
|
-
},
|
|
2344
|
+
}, dt = ({ title: t, data: o, onSelect: r }) => {
|
|
2337
2345
|
const [n, a] = B(!1), c = ne(null), d = ne(null), [i, v] = B(null), A = (p) => {
|
|
2338
2346
|
v(p), r?.(p), a(!1);
|
|
2339
2347
|
}, _ = () => {
|
|
@@ -2355,28 +2363,28 @@ const Ll = "mc__ActionDropdown-module__actionDropdownContainer", Tl = "mc__Actio
|
|
|
2355
2363
|
return document.addEventListener("click", p), document.addEventListener("wheel", h), window.addEventListener("scroll", T), () => {
|
|
2356
2364
|
document.removeEventListener("click", p), document.removeEventListener("wheel", h), window.removeEventListener("scroll", T);
|
|
2357
2365
|
};
|
|
2358
|
-
}, []), /* @__PURE__ */ l("div", { className: `${
|
|
2359
|
-
/* @__PURE__ */ l("div", { ref: c, className:
|
|
2360
|
-
/* @__PURE__ */ e("p", { title: t, className:
|
|
2361
|
-
/* @__PURE__ */ e("div", { className:
|
|
2366
|
+
}, []), /* @__PURE__ */ l("div", { className: `${De.actionDropdownContainer} ${n ? De.collapsed : ""}`, children: [
|
|
2367
|
+
/* @__PURE__ */ l("div", { ref: c, className: De.actionDropdownContent, onClick: () => a((p) => !p), children: [
|
|
2368
|
+
/* @__PURE__ */ e("p", { title: t, className: De.actionDropdownTitle, children: i?.label || t }),
|
|
2369
|
+
/* @__PURE__ */ e("div", { className: De.actionDropdownIcon, children: /* @__PURE__ */ e(Ue, { width: "10", height: "6", color: "#131314" }) })
|
|
2362
2370
|
] }),
|
|
2363
|
-
n && /* @__PURE__ */ e("ul", { ref: d, onClick: (p) => p.stopPropagation(), className:
|
|
2371
|
+
n && /* @__PURE__ */ e("ul", { ref: d, onClick: (p) => p.stopPropagation(), className: De.actionDropdownList, children: o.map((p) => /* @__PURE__ */ e(
|
|
2364
2372
|
"li",
|
|
2365
2373
|
{
|
|
2366
2374
|
onClick: (h) => {
|
|
2367
2375
|
h.stopPropagation(), A(p);
|
|
2368
2376
|
},
|
|
2369
|
-
className: `${
|
|
2377
|
+
className: `${De.actionDropdownItem} ${i?.id === p.id ? De.selected : ""}`,
|
|
2370
2378
|
children: p.label
|
|
2371
2379
|
},
|
|
2372
2380
|
p.id
|
|
2373
2381
|
)) }, o.length)
|
|
2374
2382
|
] });
|
|
2375
2383
|
};
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
const Sl = "mc__InlineLoading-module__inlineLoadingWrapper", Hl = "mc__InlineLoading-module__loading",
|
|
2384
|
+
dt.propKeys = ["title", "data", "onSelect"];
|
|
2385
|
+
dt.displayName = "Action Dropdown";
|
|
2386
|
+
dt.description = "A dropdown component for selecting actions with smart positioning and auto-close behavior.";
|
|
2387
|
+
const Sl = "mc__InlineLoading-module__inlineLoadingWrapper", Hl = "mc__InlineLoading-module__loading", Ct = {
|
|
2380
2388
|
inlineLoadingWrapper: Sl,
|
|
2381
2389
|
loading: Hl
|
|
2382
2390
|
}, Pl = ({ size: t = "16", color: o = "#DA1A1C" }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ e(
|
|
@@ -2410,8 +2418,8 @@ const Sl = "mc__InlineLoading-module__inlineLoadingWrapper", Hl = "mc__InlineLoa
|
|
|
2410
2418
|
d: "M8 1C4.1 1 1 4.1 1 8C1 11.9 4.1 15 8 15C11.9 15 15 11.9 15 8C15 4.1 11.9 1 8 1ZM7 11L4.3 8.3L5.2 7.5L7 9.3L11 5.4L11.9 6.2L7 11Z",
|
|
2411
2419
|
fill: o
|
|
2412
2420
|
}
|
|
2413
|
-
) }),
|
|
2414
|
-
t?.state && /* @__PURE__ */ l("div", { className:
|
|
2421
|
+
) }), ut = ({ loading: t, success: o, error: r, msg: n }) => /* @__PURE__ */ l("div", { className: `${Ct.inlineLoadingWrapper}`, children: [
|
|
2422
|
+
t?.state && /* @__PURE__ */ l("div", { className: Ct.loading, children: [
|
|
2415
2423
|
/* @__PURE__ */ e(Al, { color1: t?.color1 ?? "#BCC1C2", color2: t?.color2, size: t?.size }),
|
|
2416
2424
|
/* @__PURE__ */ e("span", { style: n?.style ?? {}, children: n?.text ?? "" })
|
|
2417
2425
|
] }),
|
|
@@ -2424,14 +2432,14 @@ const Sl = "mc__InlineLoading-module__inlineLoadingWrapper", Hl = "mc__InlineLoa
|
|
|
2424
2432
|
/* @__PURE__ */ e("span", { style: n?.style ?? {}, children: n?.text ?? "" })
|
|
2425
2433
|
] })
|
|
2426
2434
|
] });
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider",
|
|
2435
|
+
ut.propKeys = ["loading", "success", "error", "msg"];
|
|
2436
|
+
ut.displayName = "Inline Loading";
|
|
2437
|
+
ut.description = "An inline status indicator component displaying loading, success, or error states with customizable styling.";
|
|
2438
|
+
const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider", El = "mc__Slider-module__sliderProgress", Fl = "mc__Slider-module__thumb", Ol = "mc__Slider-module__thumbLeft", Vl = "mc__Slider-module__thumbRight", Zl = "mc__Slider-module__thumbSingle", zl = "mc__Slider-module__tooltip", be = {
|
|
2431
2439
|
sliderContainer: Wl,
|
|
2432
2440
|
slider: Bl,
|
|
2433
|
-
sliderProgress:
|
|
2434
|
-
thumb:
|
|
2441
|
+
sliderProgress: El,
|
|
2442
|
+
thumb: Fl,
|
|
2435
2443
|
thumbLeft: Ol,
|
|
2436
2444
|
thumbRight: Vl,
|
|
2437
2445
|
thumbSingle: Zl,
|
|
@@ -2447,7 +2455,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2447
2455
|
return X(() => () => {
|
|
2448
2456
|
t && clearTimeout(t);
|
|
2449
2457
|
}, []), r;
|
|
2450
|
-
},
|
|
2458
|
+
}, mt = ({
|
|
2451
2459
|
value: t,
|
|
2452
2460
|
minValue: o,
|
|
2453
2461
|
maxValue: r,
|
|
@@ -2474,8 +2482,8 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2474
2482
|
min: !1,
|
|
2475
2483
|
max: !1,
|
|
2476
2484
|
single: !1
|
|
2477
|
-
}), R = Ul(),
|
|
2478
|
-
const w =
|
|
2485
|
+
}), R = Ul(), z = ne(null), J = ne(null), U = ne(null), V = ne(null), te = (s) => {
|
|
2486
|
+
const w = z.current?.getBoundingClientRect(), y = Math.min(Math.max(0, (s - w.left) / w.width), 1);
|
|
2479
2487
|
return Math.round(y * (a - n) + n);
|
|
2480
2488
|
}, H = (s) => (m) => {
|
|
2481
2489
|
m.preventDefault(), j((N) => ({ ...N, [s]: !0 })), x((N) => ({ ...N, [s]: !0 }));
|
|
@@ -2486,7 +2494,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2486
2494
|
j((N) => ({ ...N, [s]: !1 })), x((N) => ({ ...N, [s]: !1 })), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", y);
|
|
2487
2495
|
};
|
|
2488
2496
|
document.addEventListener("mousemove", w), document.addEventListener("mouseup", y);
|
|
2489
|
-
},
|
|
2497
|
+
}, E = (s) => {
|
|
2490
2498
|
const m = te(s.clientX);
|
|
2491
2499
|
if (I) {
|
|
2492
2500
|
const w = Math.abs(m - M.minValue), y = Math.abs(m - M.maxValue), N = w < y ? "min" : "max";
|
|
@@ -2518,20 +2526,20 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2518
2526
|
m.style.setProperty("--arrow-position", G);
|
|
2519
2527
|
};
|
|
2520
2528
|
return X(() => {
|
|
2521
|
-
(g.min || L.min) && F(J), (g.max || L.max) && F(
|
|
2529
|
+
(g.min || L.min) && F(J), (g.max || L.max) && F(U), (g.single || L.single) && F(V);
|
|
2522
2530
|
}, [M, g, L]), X(() => {
|
|
2523
2531
|
if (T.current) {
|
|
2524
2532
|
T.current = !1;
|
|
2525
2533
|
return;
|
|
2526
2534
|
}
|
|
2527
2535
|
i && typeof i == "function" && R(I ? () => i([M.minValue, M.maxValue]) : () => i(M.singleValue), d ?? 100);
|
|
2528
|
-
}, [M]), /* @__PURE__ */ e("div", { style: v ?? {}, className: `${
|
|
2529
|
-
/* @__PURE__ */ e("div", { className:
|
|
2536
|
+
}, [M]), /* @__PURE__ */ e("div", { style: v ?? {}, className: `${be.sliderContainer}`, children: /* @__PURE__ */ l("div", { ref: z, style: A ?? {}, className: be.slider, onMouseDown: E, children: [
|
|
2537
|
+
/* @__PURE__ */ e("div", { className: be.sliderProgress, style: { ...Y, ..._ ?? {} } }),
|
|
2530
2538
|
I ? /* @__PURE__ */ l($t, { children: [
|
|
2531
2539
|
/* @__PURE__ */ e(
|
|
2532
2540
|
"div",
|
|
2533
2541
|
{
|
|
2534
|
-
className: `${
|
|
2542
|
+
className: `${be.thumb} ${be.thumbLeft}`,
|
|
2535
2543
|
style: {
|
|
2536
2544
|
left: `${(M.minValue - n) / (a - n) * 100}%`,
|
|
2537
2545
|
...p ?? {}
|
|
@@ -2539,7 +2547,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2539
2547
|
onMouseEnter: () => !L.min && x((s) => ({ ...s, min: !0 })),
|
|
2540
2548
|
onMouseLeave: () => !L.min && x((s) => ({ ...s, min: !1 })),
|
|
2541
2549
|
onMouseDown: H("min"),
|
|
2542
|
-
children: (g.min || L.min) && /* @__PURE__ */ l("div", { ref: J, className:
|
|
2550
|
+
children: (g.min || L.min) && /* @__PURE__ */ l("div", { ref: J, className: be.tooltip, children: [
|
|
2543
2551
|
M.minValue,
|
|
2544
2552
|
"%"
|
|
2545
2553
|
] })
|
|
@@ -2548,7 +2556,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2548
2556
|
/* @__PURE__ */ e(
|
|
2549
2557
|
"div",
|
|
2550
2558
|
{
|
|
2551
|
-
className: `${
|
|
2559
|
+
className: `${be.thumb} ${be.thumbRight}`,
|
|
2552
2560
|
style: {
|
|
2553
2561
|
left: `${(M.maxValue - n) / (a - n) * 100}%`,
|
|
2554
2562
|
...p ?? {}
|
|
@@ -2556,7 +2564,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2556
2564
|
onMouseEnter: () => !L.max && x((s) => ({ ...s, max: !0 })),
|
|
2557
2565
|
onMouseLeave: () => !L.max && x((s) => ({ ...s, max: !1 })),
|
|
2558
2566
|
onMouseDown: H("max"),
|
|
2559
|
-
children: (g.max || L.max) && /* @__PURE__ */ l("div", { ref:
|
|
2567
|
+
children: (g.max || L.max) && /* @__PURE__ */ l("div", { ref: U, className: be.tooltip, children: [
|
|
2560
2568
|
M.maxValue,
|
|
2561
2569
|
"%"
|
|
2562
2570
|
] })
|
|
@@ -2565,7 +2573,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2565
2573
|
] }) : /* @__PURE__ */ e(
|
|
2566
2574
|
"div",
|
|
2567
2575
|
{
|
|
2568
|
-
className: `${
|
|
2576
|
+
className: `${be.thumb} ${be.thumbSingle}`,
|
|
2569
2577
|
style: {
|
|
2570
2578
|
left: `${(M.singleValue - n) / (a - n) * 100}%`,
|
|
2571
2579
|
...p ?? {}
|
|
@@ -2573,7 +2581,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2573
2581
|
onMouseEnter: () => !L.single && x((s) => ({ ...s, single: !0 })),
|
|
2574
2582
|
onMouseLeave: () => !L.single && x((s) => ({ ...s, single: !1 })),
|
|
2575
2583
|
onMouseDown: H("single"),
|
|
2576
|
-
children: (g.single || L.single) && /* @__PURE__ */ l("div", { ref: V, className:
|
|
2584
|
+
children: (g.single || L.single) && /* @__PURE__ */ l("div", { ref: V, className: be.tooltip, children: [
|
|
2577
2585
|
M.singleValue,
|
|
2578
2586
|
" ",
|
|
2579
2587
|
h
|
|
@@ -2582,7 +2590,7 @@ const Wl = "mc__Slider-module__sliderContainer", Bl = "mc__Slider-module__slider
|
|
|
2582
2590
|
)
|
|
2583
2591
|
] }) });
|
|
2584
2592
|
};
|
|
2585
|
-
|
|
2593
|
+
mt.propKeys = [
|
|
2586
2594
|
"value",
|
|
2587
2595
|
"minValue",
|
|
2588
2596
|
"maxValue",
|
|
@@ -2597,25 +2605,25 @@ pt.propKeys = [
|
|
|
2597
2605
|
"thumbStyle",
|
|
2598
2606
|
"unit"
|
|
2599
2607
|
];
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
const Yl = "mc__FilterWithTags-module__filterWithTagsContainer", jl = "mc__FilterWithTags-module__filterWithTagsButton", Kl = "mc__FilterWithTags-module__filterWithTagsPopupTitle", ql = "mc__FilterWithTags-module__filterWithTagsPopupContent", Xl = "mc__FilterWithTags-module__filterWithTagsPopupContentDrawer", Ql = "mc__FilterWithTags-module__filterWithTagsPopupFooter",
|
|
2608
|
+
mt.displayName = "Slider";
|
|
2609
|
+
mt.description = "A customizable slider component supporting both single value and range selection with smooth interactions and smart tooltip positioning.";
|
|
2610
|
+
const Yl = "mc__FilterWithTags-module__filterWithTagsContainer", jl = "mc__FilterWithTags-module__filterWithTagsButton", Kl = "mc__FilterWithTags-module__filterWithTagsPopupTitle", ql = "mc__FilterWithTags-module__filterWithTagsPopupContent", Xl = "mc__FilterWithTags-module__filterWithTagsPopupContentDrawer", Ql = "mc__FilterWithTags-module__filterWithTagsPopupFooter", He = {
|
|
2603
2611
|
filterWithTagsContainer: Yl,
|
|
2604
2612
|
filterWithTagsButton: jl,
|
|
2605
2613
|
filterWithTagsPopupTitle: Kl,
|
|
2606
2614
|
filterWithTagsPopupContent: ql,
|
|
2607
2615
|
filterWithTagsPopupContentDrawer: Xl,
|
|
2608
2616
|
filterWithTagsPopupFooter: Ql
|
|
2609
|
-
}, Jl = "mc__FilterContent-module__filterContent", Gl = "mc__FilterContent-module__filterContentOptionHeader", ei = "mc__FilterContent-module__filterContentOptionTitle", ti = "mc__FilterContent-module__filterContentOption", oi = "mc__FilterContent-module__filterContentOptionLast",
|
|
2617
|
+
}, Jl = "mc__FilterContent-module__filterContent", Gl = "mc__FilterContent-module__filterContentOptionHeader", ei = "mc__FilterContent-module__filterContentOptionTitle", ti = "mc__FilterContent-module__filterContentOption", oi = "mc__FilterContent-module__filterContentOptionLast", Pe = {
|
|
2610
2618
|
filterContent: Jl,
|
|
2611
2619
|
filterContentOptionHeader: Gl,
|
|
2612
2620
|
filterContentOptionTitle: ei,
|
|
2613
2621
|
filterContentOption: ti,
|
|
2614
2622
|
filterContentOptionLast: oi
|
|
2615
|
-
}, ni = ({ filterOptions: t }) => /* @__PURE__ */ e("div", { className:
|
|
2616
|
-
/* @__PURE__ */ e("div", { className:
|
|
2617
|
-
/* @__PURE__ */ e("div", { style: o?.style ?? {}, className:
|
|
2618
|
-
] }, r)) }),
|
|
2623
|
+
}, ni = ({ filterOptions: t }) => /* @__PURE__ */ e("div", { className: Pe.filterContent, children: t?.map((o, r) => /* @__PURE__ */ l("div", { className: `${Pe.filterContentOption} ${r === t.length - 1 ? Pe.filterContentOptionLast : ""}`, children: [
|
|
2624
|
+
/* @__PURE__ */ e("div", { className: Pe.filterContentOptionHeader, children: /* @__PURE__ */ e("h3", { className: Pe.filterContentOptionTitle, children: o.title }) }),
|
|
2625
|
+
/* @__PURE__ */ e("div", { style: o?.style ?? {}, className: Pe.filterContentOptionBody, children: o.options?.map((n, a) => /* @__PURE__ */ e("div", { style: n.style ?? {}, className: Pe.filterContentOptionBodyItem, children: n.component && /* @__PURE__ */ e(n.component, { ...n.props }) }, a)) })
|
|
2626
|
+
] }, r)) }), pt = ({
|
|
2619
2627
|
filterOptions: t,
|
|
2620
2628
|
customOpenPopup: o = !0,
|
|
2621
2629
|
onApply: r,
|
|
@@ -2628,9 +2636,9 @@ const Yl = "mc__FilterWithTags-module__filterWithTagsContainer", jl = "mc__Filte
|
|
|
2628
2636
|
const [v, A] = B(!1), _ = () => {
|
|
2629
2637
|
o && A(!0);
|
|
2630
2638
|
};
|
|
2631
|
-
return /* @__PURE__ */ l("div", { className:
|
|
2632
|
-
/* @__PURE__ */ e("div", { className:
|
|
2633
|
-
|
|
2639
|
+
return /* @__PURE__ */ l("div", { className: He.filterWithTagsContainer, children: [
|
|
2640
|
+
/* @__PURE__ */ e("div", { className: He.filterWithTagsContent, children: /* @__PURE__ */ e("div", { className: He.filterWithTagsButton, children: /* @__PURE__ */ e(
|
|
2641
|
+
Ne,
|
|
2634
2642
|
{
|
|
2635
2643
|
size: "lg",
|
|
2636
2644
|
buttonStyle: { minWidth: "initial" },
|
|
@@ -2641,19 +2649,19 @@ const Yl = "mc__FilterWithTags-module__filterWithTagsContainer", jl = "mc__Filte
|
|
|
2641
2649
|
}
|
|
2642
2650
|
) }) }),
|
|
2643
2651
|
/* @__PURE__ */ l(Xe, { ...c, popupContainerStyle: { width: "725px" }, onClose: () => A(!1), visible: v, children: [
|
|
2644
|
-
/* @__PURE__ */ e("h2", { className:
|
|
2645
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
2646
|
-
/* @__PURE__ */ l("div", { className:
|
|
2647
|
-
/* @__PURE__ */ e(
|
|
2648
|
-
/* @__PURE__ */ e(
|
|
2652
|
+
/* @__PURE__ */ e("h2", { className: He.filterWithTagsPopupTitle, children: "Filter" }),
|
|
2653
|
+
/* @__PURE__ */ e("div", { className: `${He.filterWithTagsPopupContent} ${c?.mode === "drawer" ? He.filterWithTagsPopupContentDrawer : ""}`, children: /* @__PURE__ */ e(ni, { filterOptions: t }) }),
|
|
2654
|
+
/* @__PURE__ */ l("div", { className: He.filterWithTagsPopupFooter, children: [
|
|
2655
|
+
/* @__PURE__ */ e(Ne, { buttonStyle: { width: "130px" }, ...d, label: "Clear", buttonType: "tertiaryV2", onClick: n }),
|
|
2656
|
+
/* @__PURE__ */ e(Ne, { buttonStyle: { width: "130px" }, ...i, label: "Show", onClick: r })
|
|
2649
2657
|
] })
|
|
2650
2658
|
] })
|
|
2651
2659
|
] });
|
|
2652
2660
|
};
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
const ri = "mc__Table-module__tableContainer", li = "mc__Table-module__tableWrapper", ii = "mc__Table-module__resizing", si = "mc__Table-module__table", ai = "mc__Table-module__headerContent", ci = "mc__Table-module__resizeHandle", di = "mc__Table-module__clickable", ui = "mc__Table-module__empty", mi = "mc__Table-module__checkboxHeader", pi = "mc__Table-module__checkboxCell", hi = "mc__Table-module__checkbox", fi = "mc__Table-module__tableHeader", _i = "mc__Table-module__visible", Ci = "mc__Table-module__tableHeaderLeftContent", gi = "mc__Table-module__actionButton", wi = "mc__Table-module__tableHeaderSeparator", yi = "mc__Table-module__paginationFooter", vi = "mc__Table-module__pagination", bi = "mc__Table-module__paginationButton", ki = "mc__Table-module__paginationInfo", Li = "mc__Table-module__paginationRight", Ti = "mc__Table-module__paginationSelectLabel", xi = "mc__Table-module__divider", Ii = "mc__Table-module__actionsHeader", Ni = "mc__Table-module__actionsCell", $i = "mc__Table-module__actionsContainer", Mi = "mc__Table-module__actionsTrigger", Di = "mc__Table-module__actionsMenu", Si = "mc__Table-module__actionsMenuFixed", Hi = "mc__Table-module__actionItem", Pi = "mc__Table-module__rowsPerPageDropdown", Ai = "mc__Table-module__rowsPerPageList", Ri = "mc__Table-module__openDownward", Wi = "mc__Table-module__openUpward", Bi = "mc__Table-module__rowsPerPageOption",
|
|
2661
|
+
pt.propKeys = ["filterOptions", "customOpenPopup", "onApply", "onClearAll", "mainButtonProps", "popupProps"];
|
|
2662
|
+
pt.displayName = "Filter With Tags";
|
|
2663
|
+
pt.description = "A component that allows you to filter data with tags";
|
|
2664
|
+
const ri = "mc__Table-module__tableContainer", li = "mc__Table-module__tableWrapper", ii = "mc__Table-module__resizing", si = "mc__Table-module__table", ai = "mc__Table-module__headerContent", ci = "mc__Table-module__resizeHandle", di = "mc__Table-module__clickable", ui = "mc__Table-module__empty", mi = "mc__Table-module__checkboxHeader", pi = "mc__Table-module__checkboxCell", hi = "mc__Table-module__checkbox", fi = "mc__Table-module__tableHeader", _i = "mc__Table-module__visible", Ci = "mc__Table-module__tableHeaderLeftContent", gi = "mc__Table-module__actionButton", wi = "mc__Table-module__tableHeaderSeparator", yi = "mc__Table-module__paginationFooter", vi = "mc__Table-module__pagination", bi = "mc__Table-module__paginationButton", ki = "mc__Table-module__paginationInfo", Li = "mc__Table-module__paginationRight", Ti = "mc__Table-module__paginationSelectLabel", xi = "mc__Table-module__divider", Ii = "mc__Table-module__actionsHeader", Ni = "mc__Table-module__actionsCell", $i = "mc__Table-module__actionsContainer", Mi = "mc__Table-module__actionsTrigger", Di = "mc__Table-module__actionsMenu", Si = "mc__Table-module__actionsMenuFixed", Hi = "mc__Table-module__actionItem", Pi = "mc__Table-module__rowsPerPageDropdown", Ai = "mc__Table-module__rowsPerPageList", Ri = "mc__Table-module__openDownward", Wi = "mc__Table-module__openUpward", Bi = "mc__Table-module__rowsPerPageOption", Ei = "mc__Table-module__selected", Fi = "mc__Table-module__gridHeader", Oi = "mc__Table-module__columnConfiguration", Vi = "mc__Table-module__columnConfigurationIcon", Zi = "mc__Table-module__columnConfigurationDropdown", zi = "mc__Table-module__dragging", Ui = "mc__Table-module__dragOver", Yi = "mc__Table-module__columnConfigurationItemIcon", W = {
|
|
2657
2665
|
tableContainer: ri,
|
|
2658
2666
|
tableWrapper: li,
|
|
2659
2667
|
resizing: ii,
|
|
@@ -2689,8 +2697,8 @@ const ri = "mc__Table-module__tableContainer", li = "mc__Table-module__tableWrap
|
|
|
2689
2697
|
openDownward: Ri,
|
|
2690
2698
|
openUpward: Wi,
|
|
2691
2699
|
rowsPerPageOption: Bi,
|
|
2692
|
-
selected:
|
|
2693
|
-
gridHeader:
|
|
2700
|
+
selected: Ei,
|
|
2701
|
+
gridHeader: Fi,
|
|
2694
2702
|
columnConfiguration: Oi,
|
|
2695
2703
|
columnConfigurationIcon: Vi,
|
|
2696
2704
|
columnConfigurationDropdown: Zi,
|
|
@@ -2698,17 +2706,17 @@ const ri = "mc__Table-module__tableContainer", li = "mc__Table-module__tableWrap
|
|
|
2698
2706
|
dragOver: Ui,
|
|
2699
2707
|
columnConfigurationItemIcon: Yi
|
|
2700
2708
|
};
|
|
2701
|
-
function
|
|
2709
|
+
function Tt(t) {
|
|
2702
2710
|
var o, r, n = "";
|
|
2703
2711
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
2704
2712
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2705
2713
|
var a = t.length;
|
|
2706
|
-
for (o = 0; o < a; o++) t[o] && (r =
|
|
2714
|
+
for (o = 0; o < a; o++) t[o] && (r = Tt(t[o])) && (n && (n += " "), n += r);
|
|
2707
2715
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
2708
2716
|
return n;
|
|
2709
2717
|
}
|
|
2710
2718
|
function je() {
|
|
2711
|
-
for (var t, o, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (o =
|
|
2719
|
+
for (var t, o, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (o = Tt(t)) && (n && (n += " "), n += o);
|
|
2712
2720
|
return n;
|
|
2713
2721
|
}
|
|
2714
2722
|
const ji = (t, o = {}) => {
|
|
@@ -2768,7 +2776,7 @@ function Ki({ currentValue: t, options: o, onChange: r }) {
|
|
|
2768
2776
|
};
|
|
2769
2777
|
return /* @__PURE__ */ l("div", { ref: i, className: W.rowsPerPageDropdown, children: [
|
|
2770
2778
|
/* @__PURE__ */ e(
|
|
2771
|
-
|
|
2779
|
+
Ne,
|
|
2772
2780
|
{
|
|
2773
2781
|
size: "lg",
|
|
2774
2782
|
buttonStyle: { minWidth: "initial", width: "66px" },
|
|
@@ -2804,7 +2812,7 @@ function Ki({ currentValue: t, options: o, onChange: r }) {
|
|
|
2804
2812
|
)) })
|
|
2805
2813
|
] });
|
|
2806
2814
|
}
|
|
2807
|
-
const
|
|
2815
|
+
const ht = ({
|
|
2808
2816
|
columns: t = [],
|
|
2809
2817
|
data: o = [],
|
|
2810
2818
|
onRowClick: r,
|
|
@@ -2829,17 +2837,17 @@ const ft = ({
|
|
|
2829
2837
|
showPagination: j = !1,
|
|
2830
2838
|
// Rows per page props
|
|
2831
2839
|
rowsPerPage: R = 10,
|
|
2832
|
-
rowsPerPageOptions:
|
|
2840
|
+
rowsPerPageOptions: z = [10, 20, 50, 100],
|
|
2833
2841
|
onRowsPerPageChange: J,
|
|
2834
|
-
totalItems:
|
|
2842
|
+
totalItems: U = 1e3,
|
|
2835
2843
|
startItem: V = 1,
|
|
2836
2844
|
endItem: te = 100,
|
|
2837
2845
|
// Row actions props
|
|
2838
2846
|
onRowEdit: H,
|
|
2839
|
-
onRowDelete:
|
|
2847
|
+
onRowDelete: E,
|
|
2840
2848
|
rowActions: Y = []
|
|
2841
2849
|
}) => {
|
|
2842
|
-
const { columnWidths: F, isResizing: s, resizeColumn: m, handleResizeStart: w } = ji(t), y = ne(null), [N, G] = B(null), [q, oe] = B(null),
|
|
2850
|
+
const { columnWidths: F, isResizing: s, resizeColumn: m, handleResizeStart: w } = ji(t), y = ne(null), [N, G] = B(null), [q, oe] = B(null), se = ne({}), he = ne(null), ue = ne(null), [de, ve] = B(!1), [le, pe] = B(null), [Q, b] = B(null), [C, D] = B(t);
|
|
2843
2851
|
X(() => {
|
|
2844
2852
|
const k = t.map((S) => ({
|
|
2845
2853
|
...S,
|
|
@@ -2849,69 +2857,69 @@ const ft = ({
|
|
|
2849
2857
|
}, [t]);
|
|
2850
2858
|
const P = (k, S) => {
|
|
2851
2859
|
pe(S), k.dataTransfer.effectAllowed = "move", k.dataTransfer.setData("text/html", k.currentTarget.outerHTML);
|
|
2852
|
-
},
|
|
2853
|
-
k.preventDefault(), k.dataTransfer.dropEffect = "move", S !==
|
|
2860
|
+
}, ie = (k, S) => {
|
|
2861
|
+
k.preventDefault(), k.dataTransfer.dropEffect = "move", S !== le && b(S);
|
|
2854
2862
|
}, ee = () => {
|
|
2855
2863
|
b(null);
|
|
2856
2864
|
}, Ce = (k, S) => {
|
|
2857
|
-
if (k.preventDefault(),
|
|
2865
|
+
if (k.preventDefault(), le === null || le === S) {
|
|
2858
2866
|
pe(null), b(null);
|
|
2859
2867
|
return;
|
|
2860
2868
|
}
|
|
2861
|
-
const
|
|
2862
|
-
|
|
2863
|
-
const Ye =
|
|
2864
|
-
|
|
2869
|
+
const O = [...C], Ie = O[le];
|
|
2870
|
+
O.splice(le, 1);
|
|
2871
|
+
const Ye = le < S ? S - 1 : S;
|
|
2872
|
+
O.splice(Ye, 0, Ie), D(O), pe(null), b(null), I?.(O);
|
|
2865
2873
|
}, fe = () => {
|
|
2866
2874
|
pe(null), b(null);
|
|
2867
2875
|
}, ge = (k) => {
|
|
2868
|
-
const S = C.map((
|
|
2876
|
+
const S = C.map((O) => O.key === k.key ? { ...O, visible: !O.visible } : O);
|
|
2869
2877
|
D(S), M?.(S);
|
|
2870
|
-
},
|
|
2871
|
-
d?.(k ? o.map((S,
|
|
2872
|
-
},
|
|
2873
|
-
d?.(S ? [...c, k] : c.filter((
|
|
2874
|
-
}, Me = o.length > 0 && c.length === o.length,
|
|
2878
|
+
}, we = C.filter((k) => k.visible), $e = (k) => {
|
|
2879
|
+
d?.(k ? o.map((S, O) => O) : []);
|
|
2880
|
+
}, xe = (k, S) => {
|
|
2881
|
+
d?.(S ? [...c, k] : c.filter((O) => O !== k));
|
|
2882
|
+
}, Me = o.length > 0 && c.length === o.length, u = c.length > 0 && c.length < o.length, Z = (k, S) => {
|
|
2875
2883
|
H?.(k, S);
|
|
2876
|
-
},
|
|
2877
|
-
|
|
2878
|
-
},
|
|
2879
|
-
const S =
|
|
2884
|
+
}, re = (k, S) => {
|
|
2885
|
+
E?.(k, S);
|
|
2886
|
+
}, Ve = (k) => {
|
|
2887
|
+
const S = se.current[k];
|
|
2880
2888
|
if (!S) return null;
|
|
2881
|
-
const
|
|
2882
|
-
let Ze =
|
|
2883
|
-
Ze < 0 && (Ze =
|
|
2884
|
-
const It =
|
|
2885
|
-
return { top:
|
|
2886
|
-
},
|
|
2889
|
+
const O = S.getBoundingClientRect(), Ie = window.innerHeight, Ye = window.innerWidth, Qe = 120, Je = 120;
|
|
2890
|
+
let Ze = O.right - Je - 50;
|
|
2891
|
+
Ze < 0 && (Ze = O.left), Ze + Je > Ye && (Ze = Ye - Je - 10);
|
|
2892
|
+
const It = Ie - O.bottom, Nt = O.top, ft = It < Qe && Nt >= Qe;
|
|
2893
|
+
return { top: ft ? O.top - Qe + 8 : O.bottom + 4, left: Ze, shouldOpenUpward: ft };
|
|
2894
|
+
}, xt = (k, S) => {
|
|
2887
2895
|
if (k.stopPropagation(), N === S)
|
|
2888
2896
|
G(null), oe(null);
|
|
2889
2897
|
else {
|
|
2890
2898
|
G(S);
|
|
2891
|
-
const
|
|
2892
|
-
oe(
|
|
2899
|
+
const O = Ve(S);
|
|
2900
|
+
oe(O);
|
|
2893
2901
|
}
|
|
2894
2902
|
};
|
|
2895
2903
|
return X(() => {
|
|
2896
|
-
const k = (
|
|
2897
|
-
(!
|
|
2904
|
+
const k = (Ie) => {
|
|
2905
|
+
(!Ie.target || !Ie.target.closest(`.${W.actionsCell}`)) && (G(null), oe(null));
|
|
2898
2906
|
}, S = () => {
|
|
2899
2907
|
if (N !== null) {
|
|
2900
|
-
const
|
|
2901
|
-
oe(
|
|
2908
|
+
const Ie = Ve(N);
|
|
2909
|
+
oe(Ie);
|
|
2902
2910
|
}
|
|
2903
|
-
},
|
|
2911
|
+
}, O = () => {
|
|
2904
2912
|
if (N !== null) {
|
|
2905
|
-
const
|
|
2906
|
-
oe(
|
|
2913
|
+
const Ie = Ve(N);
|
|
2914
|
+
oe(Ie);
|
|
2907
2915
|
}
|
|
2908
2916
|
};
|
|
2909
|
-
return document.addEventListener("click", k), window.addEventListener("scroll", S, !0), window.addEventListener("resize",
|
|
2910
|
-
document.removeEventListener("click", k), window.removeEventListener("scroll", S, !0), window.removeEventListener("resize",
|
|
2917
|
+
return document.addEventListener("click", k), window.addEventListener("scroll", S, !0), window.addEventListener("resize", O), () => {
|
|
2918
|
+
document.removeEventListener("click", k), window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", O);
|
|
2911
2919
|
};
|
|
2912
2920
|
}, [N]), X(() => {
|
|
2913
2921
|
const k = (S) => {
|
|
2914
|
-
de && he.current && ue.current && !he.current.contains(S.target) && !ue.current.contains(S.target) &&
|
|
2922
|
+
de && he.current && ue.current && !he.current.contains(S.target) && !ue.current.contains(S.target) && ve(!1);
|
|
2915
2923
|
};
|
|
2916
2924
|
return document.addEventListener("click", k), () => {
|
|
2917
2925
|
document.removeEventListener("click", k);
|
|
@@ -2920,20 +2928,20 @@ const ft = ({
|
|
|
2920
2928
|
(T || h) && /* @__PURE__ */ l("div", { className: W.gridHeader, children: [
|
|
2921
2929
|
/* @__PURE__ */ e("div", { children: T }),
|
|
2922
2930
|
h && /* @__PURE__ */ l("div", { className: W.columnConfiguration, children: [
|
|
2923
|
-
/* @__PURE__ */ e("div", { className: W.columnConfigurationIcon, ref: he, onClick: () =>
|
|
2931
|
+
/* @__PURE__ */ e("div", { className: W.columnConfigurationIcon, ref: he, onClick: () => ve((k) => !k), children: /* @__PURE__ */ e(Zt, {}) }),
|
|
2924
2932
|
de && /* @__PURE__ */ e("ul", { className: W.columnConfigurationDropdown, ref: ue, children: C.map((k, S) => /* @__PURE__ */ l(
|
|
2925
2933
|
"li",
|
|
2926
2934
|
{
|
|
2927
|
-
className: `${W.columnConfigurationItem} ${
|
|
2935
|
+
className: `${W.columnConfigurationItem} ${le === S ? W.dragging : ""} ${Q === S ? W.dragOver : ""}`,
|
|
2928
2936
|
draggable: !0,
|
|
2929
|
-
onDragStart: (
|
|
2930
|
-
onDragOver: (
|
|
2937
|
+
onDragStart: (O) => P(O, S),
|
|
2938
|
+
onDragOver: (O) => ie(O, S),
|
|
2931
2939
|
onDragLeave: ee,
|
|
2932
|
-
onDrop: (
|
|
2940
|
+
onDrop: (O) => Ce(O, S),
|
|
2933
2941
|
onDragEnd: fe,
|
|
2934
2942
|
children: [
|
|
2935
2943
|
/* @__PURE__ */ e("div", { className: W.columnConfigurationItemIcon, children: /* @__PURE__ */ e(Ut, {}) }),
|
|
2936
|
-
/* @__PURE__ */ e("div", { className: W.columnConfigurationItemCheckbox, onClick: (
|
|
2944
|
+
/* @__PURE__ */ e("div", { className: W.columnConfigurationItemCheckbox, onClick: (O) => O.stopPropagation(), children: /* @__PURE__ */ e(Oe, { checked: k.visible, change: () => ge(k) }) }),
|
|
2937
2945
|
/* @__PURE__ */ e("p", { children: k.label })
|
|
2938
2946
|
]
|
|
2939
2947
|
},
|
|
@@ -2971,13 +2979,13 @@ const ft = ({
|
|
|
2971
2979
|
type: "checkbox",
|
|
2972
2980
|
checked: Me,
|
|
2973
2981
|
ref: (k) => {
|
|
2974
|
-
k && (k.indeterminate =
|
|
2982
|
+
k && (k.indeterminate = u);
|
|
2975
2983
|
},
|
|
2976
|
-
onChange: (k) =>
|
|
2984
|
+
onChange: (k) => $e(k.target.checked),
|
|
2977
2985
|
className: W.checkbox
|
|
2978
2986
|
}
|
|
2979
2987
|
) }),
|
|
2980
|
-
|
|
2988
|
+
we.map((k) => /* @__PURE__ */ l(
|
|
2981
2989
|
"th",
|
|
2982
2990
|
{
|
|
2983
2991
|
onClick: () => n?.(k.key),
|
|
@@ -3046,12 +3054,12 @@ const ft = ({
|
|
|
3046
3054
|
}
|
|
3047
3055
|
) }) })
|
|
3048
3056
|
] }) }),
|
|
3049
|
-
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: i ?
|
|
3057
|
+
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: i ? we.length + 2 : we.length + 1, className: W.empty, children: "No data available" }) }) : o.map((k, S) => /* @__PURE__ */ l(
|
|
3050
3058
|
"tr",
|
|
3051
3059
|
{
|
|
3052
3060
|
className: je({ [W.clickable]: !!r }),
|
|
3053
|
-
onClick: (
|
|
3054
|
-
|
|
3061
|
+
onClick: (O) => {
|
|
3062
|
+
O.target.type !== "checkbox" && !O.target.closest(`.${W.actionsCell}`) && r?.(k, S);
|
|
3055
3063
|
},
|
|
3056
3064
|
children: [
|
|
3057
3065
|
i && /* @__PURE__ */ e("td", { className: W.checkboxCell, children: /* @__PURE__ */ e(
|
|
@@ -3059,20 +3067,20 @@ const ft = ({
|
|
|
3059
3067
|
{
|
|
3060
3068
|
type: "checkbox",
|
|
3061
3069
|
checked: c.includes(S),
|
|
3062
|
-
onChange: (
|
|
3063
|
-
onClick: (
|
|
3070
|
+
onChange: (O) => xe(S, O.target.checked),
|
|
3071
|
+
onClick: (O) => O.stopPropagation(),
|
|
3064
3072
|
className: W.checkbox
|
|
3065
3073
|
}
|
|
3066
3074
|
) }),
|
|
3067
|
-
|
|
3075
|
+
we.map((O) => /* @__PURE__ */ e("td", { style: { width: F[O.key] }, children: O.render ? O.render(k) : k[O.key] }, O.key)),
|
|
3068
3076
|
f && /* @__PURE__ */ e("td", { className: W.actionsCell, children: /* @__PURE__ */ e(
|
|
3069
3077
|
"div",
|
|
3070
3078
|
{
|
|
3071
3079
|
className: W.actionsContainer,
|
|
3072
|
-
ref: (
|
|
3073
|
-
|
|
3080
|
+
ref: (O) => {
|
|
3081
|
+
se.current[S] = O;
|
|
3074
3082
|
},
|
|
3075
|
-
children: /* @__PURE__ */ e("div", { className: W.actionsTrigger, onClick: (
|
|
3083
|
+
children: /* @__PURE__ */ e("div", { className: W.actionsTrigger, onClick: (O) => xt(O, S), children: /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3076
3084
|
/* @__PURE__ */ e(
|
|
3077
3085
|
"path",
|
|
3078
3086
|
{
|
|
@@ -3118,7 +3126,7 @@ const ft = ({
|
|
|
3118
3126
|
{
|
|
3119
3127
|
className: W.actionItem,
|
|
3120
3128
|
onClick: (k) => {
|
|
3121
|
-
k.stopPropagation(),
|
|
3129
|
+
k.stopPropagation(), Z(o[N], N), G(null), oe(null);
|
|
3122
3130
|
},
|
|
3123
3131
|
children: [
|
|
3124
3132
|
/* @__PURE__ */ e("svg", { width: "23", height: "23", viewBox: "0 0 23 23", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "scale(0.7)" }, children: /* @__PURE__ */ e(
|
|
@@ -3135,13 +3143,13 @@ const ft = ({
|
|
|
3135
3143
|
]
|
|
3136
3144
|
}
|
|
3137
3145
|
),
|
|
3138
|
-
|
|
3146
|
+
E && /* @__PURE__ */ l(
|
|
3139
3147
|
"div",
|
|
3140
3148
|
{
|
|
3141
3149
|
className: W.actionItem,
|
|
3142
3150
|
style: { color: "#E3292F" },
|
|
3143
3151
|
onClick: (k) => {
|
|
3144
|
-
k.stopPropagation(),
|
|
3152
|
+
k.stopPropagation(), re(o[N], N), G(null), oe(null);
|
|
3145
3153
|
},
|
|
3146
3154
|
children: [
|
|
3147
3155
|
/* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -3186,8 +3194,8 @@ const ft = ({
|
|
|
3186
3194
|
"div",
|
|
3187
3195
|
{
|
|
3188
3196
|
className: W.actionItem,
|
|
3189
|
-
onClick: (
|
|
3190
|
-
|
|
3197
|
+
onClick: (O) => {
|
|
3198
|
+
O.stopPropagation(), k.onClick?.(o[N], N), G(null), oe(null);
|
|
3191
3199
|
},
|
|
3192
3200
|
children: [
|
|
3193
3201
|
k.icon && /* @__PURE__ */ e("div", { children: k.icon }),
|
|
@@ -3237,17 +3245,17 @@ const ft = ({
|
|
|
3237
3245
|
"-",
|
|
3238
3246
|
te,
|
|
3239
3247
|
" of ",
|
|
3240
|
-
|
|
3248
|
+
U
|
|
3241
3249
|
] }),
|
|
3242
3250
|
/* @__PURE__ */ e("div", { className: W.divider }),
|
|
3243
3251
|
/* @__PURE__ */ e("p", { className: W.paginationSelectLabel, children: "Rows per page" }),
|
|
3244
|
-
/* @__PURE__ */ e(Ki, { currentValue: R, options:
|
|
3252
|
+
/* @__PURE__ */ e(Ki, { currentValue: R, options: z, onChange: J || (() => {
|
|
3245
3253
|
}) })
|
|
3246
3254
|
] })
|
|
3247
3255
|
] })
|
|
3248
3256
|
] });
|
|
3249
3257
|
};
|
|
3250
|
-
|
|
3258
|
+
ht.propKeys = [
|
|
3251
3259
|
"columns",
|
|
3252
3260
|
"data",
|
|
3253
3261
|
"onRowClick",
|
|
@@ -3278,30 +3286,30 @@ ft.propKeys = [
|
|
|
3278
3286
|
"onRowDelete",
|
|
3279
3287
|
"rowActions"
|
|
3280
3288
|
];
|
|
3281
|
-
|
|
3282
|
-
|
|
3289
|
+
ht.displayName = "Table";
|
|
3290
|
+
ht.description = "A table component with multiple styles and orientations for organizing content sections.";
|
|
3283
3291
|
const qi = {}, Xi = () => /* @__PURE__ */ e("div", { className: qi.fileUploaderWrapper, children: "FileUploader" });
|
|
3284
3292
|
Xi.displayName = "FileUploader";
|
|
3285
3293
|
export {
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3294
|
+
dt as ActionDropdown,
|
|
3295
|
+
Oe as Checkbox,
|
|
3296
|
+
at as DatePicker,
|
|
3297
|
+
ot as Dropdown,
|
|
3290
3298
|
Xi as FileUploader,
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3299
|
+
pt as FilterWithTags,
|
|
3300
|
+
Ae as FormInput,
|
|
3301
|
+
ut as InlineLoading,
|
|
3302
|
+
Ne as MainButton,
|
|
3295
3303
|
Xe as Popup,
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3304
|
+
nt as Radio,
|
|
3305
|
+
ct as Skeleton,
|
|
3306
|
+
mt as Slider,
|
|
3307
|
+
ht as Table,
|
|
3308
|
+
Ge as Textarea,
|
|
3309
|
+
st as TimePicker,
|
|
3302
3310
|
kr as ToastProvider,
|
|
3303
|
-
|
|
3304
|
-
|
|
3311
|
+
et as Toggle,
|
|
3312
|
+
rt as Tooltip,
|
|
3305
3313
|
Bn as TreeNode,
|
|
3306
|
-
|
|
3314
|
+
lt as createNotificationToast
|
|
3307
3315
|
};
|