master-components-react-ts 2.4.18 → 2.4.19
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
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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;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;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 Mt } from "react/jsx-runtime";
|
|
3
|
-
import { useState as B, useRef as
|
|
3
|
+
import { useState as B, useRef as se, useEffect as J, useContext as wt, createContext as yt, useCallback as je } from "react";
|
|
4
4
|
import N from "dayjs";
|
|
5
|
-
const Be = 50 / 2, Dt = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round", duration: r = 1, stroke: a = "#2753dd", ...
|
|
5
|
+
const Be = 50 / 2, Dt = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round", duration: r = 1, stroke: a = "#2753dd", ...m }) => {
|
|
6
6
|
const s = Be;
|
|
7
|
-
return /* @__PURE__ */ e("svg", { ...
|
|
7
|
+
return /* @__PURE__ */ e("svg", { ...m, viewBox: `0 0 ${Be * 2} ${Be * 2}`, width: t, height: t, children: /* @__PURE__ */ l(
|
|
8
8
|
"circle",
|
|
9
9
|
{
|
|
10
10
|
fill: "none",
|
|
@@ -57,13 +57,13 @@ const Be = 50 / 2, Dt = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round
|
|
|
57
57
|
color: o = "#A4A7AE",
|
|
58
58
|
xmlns: r = "http://www.w3.org/2000/svg",
|
|
59
59
|
viewBox: a = "0 0 14 14",
|
|
60
|
-
fill:
|
|
60
|
+
fill: m = "none",
|
|
61
61
|
d: s = "M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",
|
|
62
62
|
stroke: i = "#A4A7AE",
|
|
63
63
|
strokeWidth: y = "1.66667",
|
|
64
64
|
strokeLinecap: W = "round",
|
|
65
|
-
strokeLinejoin:
|
|
66
|
-
}) => /* @__PURE__ */ e("svg", { xmlns: r, width: t, height: n, viewBox: a, fill:
|
|
65
|
+
strokeLinejoin: C = "round"
|
|
66
|
+
}) => /* @__PURE__ */ e("svg", { xmlns: r, width: t, height: n, viewBox: a, fill: m, children: /* @__PURE__ */ e("path", { d: s, stroke: i, strokeWidth: y, strokeLinecap: W, strokeLinejoin: C }) }), vt = ({ 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",
|
|
@@ -226,7 +226,7 @@ const Be = 50 / 2, Dt = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round
|
|
|
226
226
|
fill: "#15181A",
|
|
227
227
|
d: "M2 1a1 1 0 11-2 0 1 1 0 012 0zM6 1a1 1 0 11-2 0 1 1 0 012 0zM2 5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 11-2 0 1 1 0 012 0zM2 9a1 1 0 11-2 0 1 1 0 012 0zM6 9a1 1 0 11-2 0 1 1 0 012 0z"
|
|
228
228
|
}
|
|
229
|
-
) }), jt = "mc__MainButton-module__mainButton", Kt = "mc__MainButton-module__sm", qt = "mc__MainButton-module__md", Xt = "mc__MainButton-module__lg", Qt = "mc__MainButton-module__mainButtonContent", Jt = "mc__MainButton-module__mainButtonLabel", Gt = "mc__MainButton-module__primary", en = "mc__MainButton-module__neutral", tn = "mc__MainButton-module__loading", nn = "mc__MainButton-module__disabled", on = "mc__MainButton-module__focused", rn = "mc__MainButton-module__positive", ln = "mc__MainButton-module__negative", sn = "mc__MainButton-module__secondary", an = "mc__MainButton-module__tertiary", cn = "mc__MainButton-module__tertiaryV2", dn = "mc__MainButton-module__tertiaryV3",
|
|
229
|
+
) }), jt = "mc__MainButton-module__mainButton", Kt = "mc__MainButton-module__sm", qt = "mc__MainButton-module__md", Xt = "mc__MainButton-module__lg", Qt = "mc__MainButton-module__mainButtonContent", Jt = "mc__MainButton-module__mainButtonLabel", Gt = "mc__MainButton-module__primary", en = "mc__MainButton-module__neutral", tn = "mc__MainButton-module__loading", nn = "mc__MainButton-module__disabled", on = "mc__MainButton-module__focused", rn = "mc__MainButton-module__positive", ln = "mc__MainButton-module__negative", sn = "mc__MainButton-module__secondary", an = "mc__MainButton-module__tertiary", cn = "mc__MainButton-module__tertiaryV2", dn = "mc__MainButton-module__tertiaryV3", xe = {
|
|
230
230
|
mainButton: jt,
|
|
231
231
|
sm: Kt,
|
|
232
232
|
md: qt,
|
|
@@ -250,48 +250,48 @@ const Be = 50 / 2, Dt = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round
|
|
|
250
250
|
leftSlot: o,
|
|
251
251
|
rightSlot: r,
|
|
252
252
|
buttonSlot: a,
|
|
253
|
-
type:
|
|
253
|
+
type: m = "button",
|
|
254
254
|
colorType: s = "neutral",
|
|
255
255
|
buttonType: i = "primary",
|
|
256
256
|
withFocus: y = !1,
|
|
257
257
|
onlyIcon: W = !1,
|
|
258
|
-
customFocus:
|
|
259
|
-
disabled:
|
|
260
|
-
loading:
|
|
261
|
-
spaceBetween:
|
|
262
|
-
buttonStyle:
|
|
258
|
+
customFocus: C,
|
|
259
|
+
disabled: x,
|
|
260
|
+
loading: L = !1,
|
|
261
|
+
spaceBetween: M = !1,
|
|
262
|
+
buttonStyle: D,
|
|
263
263
|
mainButtonContentStyle: p,
|
|
264
264
|
mainButtonLabelStyle: c,
|
|
265
265
|
leftSlotStyle: _,
|
|
266
|
-
rightSlotStyle:
|
|
267
|
-
onClick:
|
|
266
|
+
rightSlotStyle: g,
|
|
267
|
+
onClick: w
|
|
268
268
|
}) => {
|
|
269
|
-
const [K,
|
|
270
|
-
|
|
271
|
-
},
|
|
272
|
-
let
|
|
273
|
-
return s === "neutral" && i !== "primary" && (
|
|
269
|
+
const [K, Y] = B(C || !1), F = se(null), G = (P) => {
|
|
270
|
+
x || L || (y && Y((Q) => !Q), w?.(P));
|
|
271
|
+
}, te = () => {
|
|
272
|
+
let P = "#ffffff";
|
|
273
|
+
return s === "neutral" && i !== "primary" && (P = "#0058FF"), s === "positive" && i !== "primary" && (P = "#328707"), s === "negative" && i !== "primary" && (P = "#E3292F"), P;
|
|
274
274
|
};
|
|
275
|
-
return
|
|
276
|
-
const
|
|
277
|
-
!
|
|
275
|
+
return J(() => {
|
|
276
|
+
const P = (Q) => {
|
|
277
|
+
!F.current || x || Q.composedPath().includes(F.current) || Y(!1);
|
|
278
278
|
};
|
|
279
|
-
return document.addEventListener("click",
|
|
280
|
-
document.removeEventListener("click",
|
|
279
|
+
return document.addEventListener("click", P), () => {
|
|
280
|
+
document.removeEventListener("click", P);
|
|
281
281
|
};
|
|
282
282
|
}, []), /* @__PURE__ */ e(
|
|
283
283
|
"button",
|
|
284
284
|
{
|
|
285
|
-
ref:
|
|
286
|
-
style: { ...
|
|
287
|
-
type:
|
|
288
|
-
disabled:
|
|
289
|
-
className: `${
|
|
290
|
-
onClick:
|
|
291
|
-
children:
|
|
292
|
-
o && /* @__PURE__ */ e("div", { className:
|
|
293
|
-
/* @__PURE__ */ e("p", { className:
|
|
294
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
285
|
+
ref: F,
|
|
286
|
+
style: { ...D, ...W && { minWidth: "initial" } },
|
|
287
|
+
type: m,
|
|
288
|
+
disabled: x,
|
|
289
|
+
className: `${xe.mainButton} ${xe[n]} ${L ? xe.loading : ""} ${K ? xe.focused : ""} ${xe[i]} ${xe[s]} ${x ? xe.disabled : ""}`,
|
|
290
|
+
onClick: G,
|
|
291
|
+
children: L ? /* @__PURE__ */ e(Dt, { size: 20, stroke: te() }) : a || /* @__PURE__ */ l("div", { className: xe.mainButtonContent, style: { ...p, justifyContent: M ? "space-between" : "center" }, children: [
|
|
292
|
+
o && /* @__PURE__ */ e("div", { className: xe.leftSlot, style: _, children: o }),
|
|
293
|
+
/* @__PURE__ */ e("p", { className: xe.mainButtonLabel, style: c, children: t }),
|
|
294
|
+
r && /* @__PURE__ */ e("div", { className: xe.rightSlot, style: g, children: r })
|
|
295
295
|
] })
|
|
296
296
|
}
|
|
297
297
|
);
|
|
@@ -320,7 +320,7 @@ $e.propKeys = [
|
|
|
320
320
|
];
|
|
321
321
|
$e.displayName = "Button";
|
|
322
322
|
$e.description = "A versatile button component with loading states, multiple styles, and customizable slots.";
|
|
323
|
-
const un = "mc__FormInput-module__inputWrapper", mn = "mc__FormInput-module__sm", pn = "mc__FormInput-module__formInputWrapper", hn = "mc__FormInput-module__md", fn = "mc__FormInput-module__disabled", _n = "mc__FormInput-module__formInputLabel", Cn = "mc__FormInput-module__formInput", gn = "mc__FormInput-module__formInputHelperText", wn = "mc__FormInput-module__formInputLabelWrapper", yn = "mc__FormInput-module__formInputRequired", vn = "mc__FormInput-module__formInputHelperSlot", bn = "mc__FormInput-module__errorState", kn = "mc__FormInput-module__focused", Ln = "mc__FormInput-module__active", Tn = "mc__FormInput-module__errorFocused",
|
|
323
|
+
const un = "mc__FormInput-module__inputWrapper", mn = "mc__FormInput-module__sm", pn = "mc__FormInput-module__formInputWrapper", hn = "mc__FormInput-module__md", fn = "mc__FormInput-module__disabled", _n = "mc__FormInput-module__formInputLabel", Cn = "mc__FormInput-module__formInput", gn = "mc__FormInput-module__formInputHelperText", wn = "mc__FormInput-module__formInputLabelWrapper", yn = "mc__FormInput-module__formInputRequired", vn = "mc__FormInput-module__formInputHelperSlot", bn = "mc__FormInput-module__errorState", kn = "mc__FormInput-module__focused", Ln = "mc__FormInput-module__active", Tn = "mc__FormInput-module__errorFocused", xn = "mc__FormInput-module__errorActive", In = "mc__FormInput-module__formInputSlot", Nn = "mc__FormInput-module__errorHelperText", $n = "mc__FormInput-module__successHelperText", me = {
|
|
324
324
|
inputWrapper: un,
|
|
325
325
|
sm: mn,
|
|
326
326
|
formInputWrapper: pn,
|
|
@@ -336,8 +336,8 @@ const un = "mc__FormInput-module__inputWrapper", mn = "mc__FormInput-module__sm"
|
|
|
336
336
|
focused: kn,
|
|
337
337
|
active: Ln,
|
|
338
338
|
errorFocused: Tn,
|
|
339
|
-
errorActive:
|
|
340
|
-
formInputSlot:
|
|
339
|
+
errorActive: xn,
|
|
340
|
+
formInputSlot: In,
|
|
341
341
|
errorHelperText: Nn,
|
|
342
342
|
successHelperText: $n
|
|
343
343
|
}, Re = ({
|
|
@@ -346,102 +346,102 @@ const un = "mc__FormInput-module__inputWrapper", mn = "mc__FormInput-module__sm"
|
|
|
346
346
|
helperText: o,
|
|
347
347
|
required: r = !1,
|
|
348
348
|
disabled: a = !1,
|
|
349
|
-
readOnly:
|
|
349
|
+
readOnly: m = !1,
|
|
350
350
|
withFocus: s = !0,
|
|
351
351
|
withActive: i = !0,
|
|
352
352
|
searchComponent: y = !1,
|
|
353
353
|
size: W = "md",
|
|
354
|
-
toggleFocus:
|
|
355
|
-
rightSlot:
|
|
356
|
-
leftSlot:
|
|
357
|
-
helperSlot:
|
|
358
|
-
type:
|
|
354
|
+
toggleFocus: C = !1,
|
|
355
|
+
rightSlot: x,
|
|
356
|
+
leftSlot: L,
|
|
357
|
+
helperSlot: M,
|
|
358
|
+
type: D = "text",
|
|
359
359
|
value: p,
|
|
360
360
|
maxLength: c,
|
|
361
361
|
forDropdown: _ = !1,
|
|
362
|
-
customFocus:
|
|
363
|
-
focus:
|
|
362
|
+
customFocus: g = null,
|
|
363
|
+
focus: w = !1,
|
|
364
364
|
inputState: K = { error: !1, success: !1, loading: !1 },
|
|
365
|
-
inputSlot:
|
|
366
|
-
onChange:
|
|
367
|
-
onFocus:
|
|
368
|
-
onBlur:
|
|
369
|
-
onEnter:
|
|
370
|
-
onFocusChange:
|
|
371
|
-
formInputWrapperStyle:
|
|
372
|
-
inputWrapperStyle:
|
|
365
|
+
inputSlot: Y,
|
|
366
|
+
onChange: F,
|
|
367
|
+
onFocus: G,
|
|
368
|
+
onBlur: te,
|
|
369
|
+
onEnter: P,
|
|
370
|
+
onFocusChange: Q,
|
|
371
|
+
formInputWrapperStyle: Z,
|
|
372
|
+
inputWrapperStyle: A,
|
|
373
373
|
formInputStyle: q,
|
|
374
|
-
helperTextStyle:
|
|
375
|
-
labelStyle:
|
|
376
|
-
inputSlotStyle:
|
|
374
|
+
helperTextStyle: E,
|
|
375
|
+
labelStyle: I,
|
|
376
|
+
inputSlotStyle: v
|
|
377
377
|
}) => {
|
|
378
|
-
const u =
|
|
379
|
-
y &&
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
},
|
|
385
|
-
const T =
|
|
386
|
-
|
|
387
|
-
},
|
|
388
|
-
y && (
|
|
378
|
+
const u = se(null), [h, b] = B(p ?? ""), [$, O] = B(!1), [ie, oe] = B(!1), he = (j) => {
|
|
379
|
+
y && b(j.target.value), F?.(j.target.value);
|
|
380
|
+
}, ne = () => {
|
|
381
|
+
G?.(), !_ && O(!0);
|
|
382
|
+
}, ee = () => {
|
|
383
|
+
O(C ? g ?? !1 : !1), te?.();
|
|
384
|
+
}, pe = (j) => {
|
|
385
|
+
const T = j.currentTarget.value, f = T.length === 0;
|
|
386
|
+
D === "number" && (j.keyCode === 69 || !f && (j.keyCode === 187 || j.keyCode === 107 || j.keyCode === 189 || j.keyCode === 109)) && j.preventDefault(), j.key === "Enter" && T && T.length > 0 && P?.();
|
|
387
|
+
}, le = (j) => j, ue = () => {
|
|
388
|
+
y && (b(""), F?.(""));
|
|
389
389
|
};
|
|
390
|
-
return
|
|
391
|
-
|
|
392
|
-
}, [
|
|
393
|
-
|
|
394
|
-
}, [
|
|
390
|
+
return J(() => {
|
|
391
|
+
Q?.($);
|
|
392
|
+
}, [$]), J(() => {
|
|
393
|
+
g != null && O(g);
|
|
394
|
+
}, [g]), /* @__PURE__ */ l("div", { className: `${me.inputWrapper} ${a ? me.disabled : ""} ${me[W]}`, style: A ?? {}, children: [
|
|
395
395
|
t && /* @__PURE__ */ l("div", { className: me.formInputLabelWrapper, children: [
|
|
396
|
-
/* @__PURE__ */ l("label", { style:
|
|
396
|
+
/* @__PURE__ */ l("label", { style: I ?? {}, className: me.formInputLabel, children: [
|
|
397
397
|
t,
|
|
398
398
|
" ",
|
|
399
399
|
typeof t == "string" && r && /* @__PURE__ */ e("span", { className: me.formInputRequired, children: "*" })
|
|
400
400
|
] }),
|
|
401
|
-
|
|
401
|
+
M && /* @__PURE__ */ e("div", { className: me.formInputHelperSlot, children: le(M) })
|
|
402
402
|
] }),
|
|
403
403
|
/* @__PURE__ */ l(
|
|
404
404
|
"div",
|
|
405
405
|
{
|
|
406
|
-
className: `${me.formInputWrapper} ${K.error ? me.errorState : ""} ${s &&
|
|
407
|
-
style:
|
|
408
|
-
onClick: () =>
|
|
406
|
+
className: `${me.formInputWrapper} ${K.error ? me.errorState : ""} ${s && $ ? K.error ? me.errorFocused : me.focused : ""} ${i && ie ? K.error ? me.errorActive : me.active : ""} ${K.error ? me.error : ""} ${K.success ? me.success : ""}`,
|
|
407
|
+
style: Z ?? {},
|
|
408
|
+
onClick: () => C && O((j) => !j),
|
|
409
409
|
children: [
|
|
410
|
-
|
|
411
|
-
y && /* @__PURE__ */ e("div", { className: me.formInputSlot, children:
|
|
412
|
-
|
|
410
|
+
L && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: le(L) }),
|
|
411
|
+
y && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: le(/* @__PURE__ */ e(St, {})) }),
|
|
412
|
+
Y ? /* @__PURE__ */ e("div", { className: me.formInputSlot, style: v ?? {}, children: le(Y) }) : /* @__PURE__ */ e(
|
|
413
413
|
"input",
|
|
414
414
|
{
|
|
415
415
|
className: me.formInput,
|
|
416
416
|
ref: u,
|
|
417
417
|
style: q ?? {},
|
|
418
|
-
type:
|
|
419
|
-
value: y ?
|
|
420
|
-
onChange: (
|
|
421
|
-
onMouseDown: () => !_ &&
|
|
422
|
-
onMouseUp: () => !_ &&
|
|
423
|
-
onMouseLeave: () => !_ &&
|
|
424
|
-
onFocus:
|
|
425
|
-
onBlur:
|
|
418
|
+
type: D ?? "text",
|
|
419
|
+
value: y ? h : p,
|
|
420
|
+
onChange: (j) => he(j),
|
|
421
|
+
onMouseDown: () => !_ && oe(!0),
|
|
422
|
+
onMouseUp: () => !_ && oe(!1),
|
|
423
|
+
onMouseLeave: () => !_ && oe(!1),
|
|
424
|
+
onFocus: ne,
|
|
425
|
+
onBlur: ee,
|
|
426
426
|
disabled: a,
|
|
427
427
|
required: r,
|
|
428
|
-
onKeyDown:
|
|
429
|
-
readOnly:
|
|
428
|
+
onKeyDown: pe,
|
|
429
|
+
readOnly: m,
|
|
430
430
|
spellCheck: !1,
|
|
431
431
|
placeholder: n ?? "",
|
|
432
432
|
autoComplete: "off",
|
|
433
433
|
maxLength: c
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
|
-
|
|
437
|
-
y && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: /* @__PURE__ */ e("div", { onClick:
|
|
436
|
+
x && /* @__PURE__ */ e("div", { style: y ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: le(x) }),
|
|
437
|
+
y && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: /* @__PURE__ */ e("div", { onClick: ue, style: y ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: h?.length > 0 ? le(/* @__PURE__ */ e(Ke, {})) : null }) })
|
|
438
438
|
]
|
|
439
439
|
}
|
|
440
440
|
),
|
|
441
441
|
o && /* @__PURE__ */ e(
|
|
442
442
|
"p",
|
|
443
443
|
{
|
|
444
|
-
style:
|
|
444
|
+
style: E ?? {},
|
|
445
445
|
className: `${me.formInputHelperText} ${K.error ? me.errorHelperText : K.success ? me.successHelperText : ""}`,
|
|
446
446
|
children: o
|
|
447
447
|
}
|
|
@@ -504,96 +504,96 @@ const Mn = "mc__Textarea-module__textareaContainer", Dn = "mc__Textarea-module__
|
|
|
504
504
|
cols: o = 30,
|
|
505
505
|
rows: r = 5,
|
|
506
506
|
value: a,
|
|
507
|
-
inputState:
|
|
507
|
+
inputState: m = { error: !1, success: !0 },
|
|
508
508
|
maxLength: s = 20,
|
|
509
509
|
withFocus: i = !0,
|
|
510
510
|
withActive: y = !0,
|
|
511
511
|
withResize: W = !0,
|
|
512
|
-
withClose:
|
|
513
|
-
onChange:
|
|
514
|
-
onFocus:
|
|
515
|
-
onBlur:
|
|
516
|
-
disabled:
|
|
512
|
+
withClose: C = !0,
|
|
513
|
+
onChange: x,
|
|
514
|
+
onFocus: L,
|
|
515
|
+
onBlur: M,
|
|
516
|
+
disabled: D,
|
|
517
517
|
required: p,
|
|
518
518
|
textareaContainerStyle: c,
|
|
519
519
|
textareaLabelStyle: _,
|
|
520
|
-
requiredStyle:
|
|
521
|
-
labelSlot:
|
|
520
|
+
requiredStyle: g,
|
|
521
|
+
labelSlot: w,
|
|
522
522
|
textareaFooterStyle: K
|
|
523
523
|
}) => {
|
|
524
|
-
const
|
|
525
|
-
let
|
|
526
|
-
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
}, q = (
|
|
530
|
-
|
|
524
|
+
const Y = se(null), [F, G] = B(!1), [te, P] = B(!1), Q = (h) => {
|
|
525
|
+
let b = h.target.value;
|
|
526
|
+
x && typeof x == "function" && x(b);
|
|
527
|
+
}, Z = (h) => h, A = (h) => {
|
|
528
|
+
G(!0), L && typeof L == "function" && L(h);
|
|
529
|
+
}, q = (h) => {
|
|
530
|
+
G(!1), M && typeof M == "function" && M(h);
|
|
531
531
|
};
|
|
532
|
-
let
|
|
533
|
-
|
|
534
|
-
if (!
|
|
535
|
-
const
|
|
536
|
-
if (!
|
|
537
|
-
let
|
|
538
|
-
const
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
},
|
|
542
|
-
|
|
532
|
+
let E = !1;
|
|
533
|
+
J(() => {
|
|
534
|
+
if (!Y.current) return;
|
|
535
|
+
const h = Y.current.querySelector("textarea");
|
|
536
|
+
if (!h) return;
|
|
537
|
+
let b = !1;
|
|
538
|
+
const $ = (ie) => {
|
|
539
|
+
const oe = h.getBoundingClientRect();
|
|
540
|
+
ie.clientX > oe.right - 20 && ie.clientY > oe.bottom - 20 && (b = !0);
|
|
541
|
+
}, O = new ResizeObserver(() => {
|
|
542
|
+
b && (E = !0, b = !1);
|
|
543
543
|
});
|
|
544
|
-
return
|
|
545
|
-
|
|
544
|
+
return h.addEventListener("mousedown", $), O.observe(h), () => {
|
|
545
|
+
h.removeEventListener("mousedown", $), O.disconnect();
|
|
546
546
|
};
|
|
547
547
|
}, []);
|
|
548
|
-
const
|
|
549
|
-
if (!
|
|
550
|
-
const
|
|
551
|
-
!
|
|
548
|
+
const I = () => {
|
|
549
|
+
if (!Y.current) return;
|
|
550
|
+
const h = Y.current.querySelector("textarea");
|
|
551
|
+
!h || E || (h.style.height = "auto", h.style.height = `${h.scrollHeight}px`);
|
|
552
552
|
};
|
|
553
|
-
|
|
554
|
-
if (!
|
|
555
|
-
const
|
|
556
|
-
|
|
553
|
+
J(() => {
|
|
554
|
+
if (!Y.current) return;
|
|
555
|
+
const h = Y.current.querySelector("textarea"), b = new ResizeObserver(() => {
|
|
556
|
+
E = h.offsetHeight < h.scrollHeight;
|
|
557
557
|
});
|
|
558
|
-
return
|
|
558
|
+
return b.observe(h), () => b.disconnect();
|
|
559
559
|
}, []);
|
|
560
|
-
const
|
|
561
|
-
|
|
560
|
+
const v = (h) => {
|
|
561
|
+
E = !1, x?.(h.target.value), I();
|
|
562
562
|
}, u = () => {
|
|
563
|
-
|
|
563
|
+
x && typeof x == "function" && x("");
|
|
564
564
|
};
|
|
565
565
|
return /* @__PURE__ */ l(
|
|
566
566
|
"div",
|
|
567
567
|
{
|
|
568
568
|
style: c ?? {},
|
|
569
|
-
className: `${Ce.textareaContainer} ${
|
|
569
|
+
className: `${Ce.textareaContainer} ${m.error ? Ce.error : ""} ${D ? Ce.disabled : null}`,
|
|
570
570
|
children: [
|
|
571
571
|
n && /* @__PURE__ */ l("div", { style: _, className: Ce.textAreaLabel, children: [
|
|
572
572
|
/* @__PURE__ */ e("p", { children: n }),
|
|
573
|
-
/* @__PURE__ */ e("span", { style:
|
|
574
|
-
|
|
573
|
+
/* @__PURE__ */ e("span", { style: g ?? {}, className: Ce.required, children: p && "*" }),
|
|
574
|
+
w && Z(w)
|
|
575
575
|
] }),
|
|
576
|
-
/* @__PURE__ */ l("div", { className: `${Ce.wrap} ${W ? Ce.resize : ""}`, ref:
|
|
576
|
+
/* @__PURE__ */ l("div", { className: `${Ce.wrap} ${W ? Ce.resize : ""}`, ref: Y, children: [
|
|
577
577
|
/* @__PURE__ */ e(
|
|
578
578
|
"textarea",
|
|
579
579
|
{
|
|
580
|
-
className: `${Ce.textarea} ${
|
|
580
|
+
className: `${Ce.textarea} ${F ? Ce.focused : ""} ${D ? Ce.disabled : ""} ${i && F ? m.error ? Ce.errorFocused : Ce.focused : ""} ${y && te ? m.error ? Ce.errorActive : Ce.active : ""} ${m.error ? Ce.error : ""} ${m.success ? Ce.success : ""}`,
|
|
581
581
|
value: a,
|
|
582
582
|
placeholder: t ?? "",
|
|
583
583
|
cols: o,
|
|
584
584
|
rows: r,
|
|
585
585
|
maxLength: s ?? void 0,
|
|
586
|
-
onInput:
|
|
587
|
-
onFocus:
|
|
588
|
-
disabled:
|
|
586
|
+
onInput: v,
|
|
587
|
+
onFocus: A,
|
|
588
|
+
disabled: D,
|
|
589
589
|
onBlur: q,
|
|
590
|
-
onChange:
|
|
591
|
-
onMouseDown: () =>
|
|
592
|
-
onMouseUp: () =>
|
|
593
|
-
onMouseLeave: () =>
|
|
590
|
+
onChange: Q,
|
|
591
|
+
onMouseDown: () => P(!0),
|
|
592
|
+
onMouseUp: () => P(!1),
|
|
593
|
+
onMouseLeave: () => P(!1)
|
|
594
594
|
}
|
|
595
595
|
),
|
|
596
|
-
|
|
596
|
+
C && a && /* @__PURE__ */ e("div", { className: Ce.textareaIconClose, onClick: u, children: /* @__PURE__ */ e(Zt, {}) })
|
|
597
597
|
] }),
|
|
598
598
|
/* @__PURE__ */ e("div", { style: K ?? {}, className: Ce.textareaFooter, children: /* @__PURE__ */ l("p", { children: [
|
|
599
599
|
a?.length,
|
|
@@ -638,14 +638,14 @@ const Vn = "mc__Toggle-module__toggleWrapper", Zn = "mc__Toggle-module__checked"
|
|
|
638
638
|
toggleState: jn,
|
|
639
639
|
md: Kn,
|
|
640
640
|
lg: qn
|
|
641
|
-
}, tt = ({ checked: t, change: n, disabled: o = !1, size: r = "md", toggleType: a = "default", required:
|
|
641
|
+
}, tt = ({ checked: t, change: n, disabled: o = !1, size: r = "md", toggleType: a = "default", required: m = !1 }) => /* @__PURE__ */ e(
|
|
642
642
|
"div",
|
|
643
643
|
{
|
|
644
644
|
onClick: () => {
|
|
645
645
|
o || n?.(!t);
|
|
646
646
|
},
|
|
647
647
|
className: `${Ee.toggleWrapper} ${a === "error" ? Ee.error : ""} ${Ee[r]} ${t ? Ee.checked : ""} ${o ? Ee.disabled : ""}`,
|
|
648
|
-
children: /* @__PURE__ */ e("div", { className: Ee.toggleState, children: /* @__PURE__ */ e("input", { type: "checkbox", checked: t, readOnly: !0, disabled: o ?? !1, hidden: !0, required:
|
|
648
|
+
children: /* @__PURE__ */ e("div", { className: Ee.toggleState, children: /* @__PURE__ */ e("input", { type: "checkbox", checked: t, readOnly: !0, disabled: o ?? !1, hidden: !0, required: m }) })
|
|
649
649
|
}
|
|
650
650
|
);
|
|
651
651
|
tt.propKeys = ["checked", "change", "disabled", "required", "size", "toggleType"];
|
|
@@ -665,26 +665,26 @@ const Xn = "mc__Checkbox-module__checkboxWrapper", Qn = "mc__Checkbox-module__ch
|
|
|
665
665
|
change: o,
|
|
666
666
|
type: r = "default",
|
|
667
667
|
disabled: a = !1,
|
|
668
|
-
required:
|
|
668
|
+
required: m = !1,
|
|
669
669
|
multipleChecked: s = !1,
|
|
670
670
|
activeStyle: i,
|
|
671
671
|
checkBoxStyle: y,
|
|
672
672
|
theme: W = "light"
|
|
673
673
|
}) => {
|
|
674
|
-
const
|
|
674
|
+
const C = nt(), [x, L] = B(!1), M = () => {
|
|
675
675
|
a || o && typeof o == "function" && o(!t);
|
|
676
676
|
};
|
|
677
677
|
return /* @__PURE__ */ l(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
|
-
style:
|
|
681
|
-
className: `${W === "dark" ? Pe.dark : ""} ${Pe[
|
|
682
|
-
onMouseDown: () =>
|
|
683
|
-
onMouseUp: () =>
|
|
684
|
-
onMouseLeave: () =>
|
|
685
|
-
onClick:
|
|
680
|
+
style: x ? a ? { boxShadow: "none" } : i ?? {} : y ?? {},
|
|
681
|
+
className: `${W === "dark" ? Pe.dark : ""} ${Pe[C]} ${Pe.checkboxWrapper} ${r === "error" ? Pe.error : ""} ${t ? Pe.checked : Pe.unChecked} ${a ? Pe.disabled : ""}`,
|
|
682
|
+
onMouseDown: () => L(!0),
|
|
683
|
+
onMouseUp: () => L(!1),
|
|
684
|
+
onMouseLeave: () => L(!1),
|
|
685
|
+
onClick: M,
|
|
686
686
|
children: [
|
|
687
|
-
/* @__PURE__ */ e("input", { ref: n, type: "checkbox", disabled: a, checked: t ?? !1, hidden: !0, readOnly: !0, required:
|
|
687
|
+
/* @__PURE__ */ e("input", { ref: n, type: "checkbox", disabled: a, checked: t ?? !1, hidden: !0, readOnly: !0, required: m ?? !1 }),
|
|
688
688
|
t ? s ? /* @__PURE__ */ e(At, {}) : /* @__PURE__ */ e(Ht, {}) : ""
|
|
689
689
|
]
|
|
690
690
|
}
|
|
@@ -693,7 +693,7 @@ const Xn = "mc__Checkbox-module__checkboxWrapper", Qn = "mc__Checkbox-module__ch
|
|
|
693
693
|
Se.propKeys = ["ref", "checked", "change", "type", "disabled", "required", "multipleChecked", "activeStyle", "checkBoxStyle", "theme"];
|
|
694
694
|
Se.displayName = "Checkbox";
|
|
695
695
|
Se.description = "A checkbox component with support for checked, indeterminate states and custom styling.";
|
|
696
|
-
const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dropdownInputWrapper", lo = "mc__Dropdown-module__dropdownInputSlot", so = "mc__Dropdown-module__dropdownRightIconArrow", ao = "mc__Dropdown-module__focused", co = "mc__Dropdown-module__dropdownInputSlotItem", uo = "mc__Dropdown-module__dropdownInputSlotItemLabel", mo = "mc__Dropdown-module__dropdownInputSlotItemClose", po = "mc__Dropdown-module__dropdownInputSlotItemMore", ho = "mc__Dropdown-module__dropdownRightIcon", fo = "mc__Dropdown-module__dropdownRightIconClose", _o = "mc__Dropdown-module__dropdownListContainer", Co = "mc__Dropdown-module__dropdownList", go = "mc__Dropdown-module__dropdownItem", wo = "mc__Dropdown-module__selected", yo = "mc__Dropdown-module__dropdownItemLabel", vo = "mc__Dropdown-module__hovered", bo = "mc__Dropdown-module__disabled", ko = "mc__Dropdown-module__itemCheckbox", Lo = "mc__Dropdown-module__dropdownItemLabelInput", To = "mc__Dropdown-module__countryName",
|
|
696
|
+
const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dropdownInputWrapper", lo = "mc__Dropdown-module__dropdownInputSlot", so = "mc__Dropdown-module__dropdownRightIconArrow", ao = "mc__Dropdown-module__focused", co = "mc__Dropdown-module__dropdownInputSlotItem", uo = "mc__Dropdown-module__dropdownInputSlotItemLabel", mo = "mc__Dropdown-module__dropdownInputSlotItemClose", po = "mc__Dropdown-module__dropdownInputSlotItemMore", ho = "mc__Dropdown-module__dropdownRightIcon", fo = "mc__Dropdown-module__dropdownRightIconClose", _o = "mc__Dropdown-module__dropdownListContainer", Co = "mc__Dropdown-module__dropdownList", go = "mc__Dropdown-module__dropdownItem", wo = "mc__Dropdown-module__selected", yo = "mc__Dropdown-module__dropdownItemLabel", vo = "mc__Dropdown-module__hovered", bo = "mc__Dropdown-module__disabled", ko = "mc__Dropdown-module__itemCheckbox", Lo = "mc__Dropdown-module__dropdownItemLabelInput", To = "mc__Dropdown-module__countryName", xo = "mc__Dropdown-module__countryDialCode", Io = "mc__Dropdown-module__selectAll", de = {
|
|
697
697
|
dropdownWrapper: ro,
|
|
698
698
|
dropdownInputWrapper: io,
|
|
699
699
|
dropdownInputSlot: lo,
|
|
@@ -715,8 +715,8 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
715
715
|
itemCheckbox: ko,
|
|
716
716
|
dropdownItemLabelInput: Lo,
|
|
717
717
|
countryName: To,
|
|
718
|
-
countryDialCode:
|
|
719
|
-
selectAll:
|
|
718
|
+
countryDialCode: xo,
|
|
719
|
+
selectAll: Io
|
|
720
720
|
}, bt = (t, n) => {
|
|
721
721
|
const o = /* @__PURE__ */ new Set();
|
|
722
722
|
return t.filter((r) => o.has(r[n]) ? !1 : (o.add(r[n]), !0));
|
|
@@ -743,91 +743,91 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
743
743
|
checkboxProps: o,
|
|
744
744
|
onCollapse: r,
|
|
745
745
|
onSelect: a,
|
|
746
|
-
fromDropdown:
|
|
746
|
+
fromDropdown: m = !1,
|
|
747
747
|
withSelectAll: s = !1,
|
|
748
748
|
withClearAll: i = !1,
|
|
749
749
|
expandedNodes: y,
|
|
750
750
|
SearchValue: W,
|
|
751
|
-
SelectedData:
|
|
752
|
-
treeContainerStyle:
|
|
753
|
-
treeNodeItemStyle:
|
|
754
|
-
treeFooterStyle:
|
|
755
|
-
treeFooterTextStyle:
|
|
751
|
+
SelectedData: C,
|
|
752
|
+
treeContainerStyle: x,
|
|
753
|
+
treeNodeItemStyle: L,
|
|
754
|
+
treeFooterStyle: M,
|
|
755
|
+
treeFooterTextStyle: D,
|
|
756
756
|
treeNodeStyle: p,
|
|
757
757
|
labelRowStyle: c,
|
|
758
758
|
collapseToggleStyle: _
|
|
759
759
|
}) => {
|
|
760
|
-
const [
|
|
761
|
-
if (
|
|
762
|
-
const
|
|
760
|
+
const [g, w] = B(t || []), K = (Z, A, q = g) => q.map((E) => {
|
|
761
|
+
if (E.id === Z) {
|
|
762
|
+
const I = A && E.children && E.children.length > 0;
|
|
763
763
|
return {
|
|
764
|
-
...
|
|
765
|
-
selected:
|
|
766
|
-
children:
|
|
764
|
+
...E,
|
|
765
|
+
selected: A,
|
|
766
|
+
children: I ? Y(E.children, A) : E.children || []
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
|
-
if (
|
|
770
|
-
const
|
|
769
|
+
if (E.children && E.children.length > 0) {
|
|
770
|
+
const I = K(Z, A, E.children), u = I.filter((h) => h.selected).length === I.length && I.length > 0;
|
|
771
771
|
return {
|
|
772
|
-
...
|
|
772
|
+
...E,
|
|
773
773
|
selected: u,
|
|
774
|
-
children:
|
|
774
|
+
children: I
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
return
|
|
778
|
-
}),
|
|
777
|
+
return E;
|
|
778
|
+
}), Y = (Z, A) => Z.map((q) => ({
|
|
779
779
|
...q,
|
|
780
|
-
selected:
|
|
781
|
-
children: q.children ?
|
|
782
|
-
})),
|
|
783
|
-
const q = K(
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
a?.(
|
|
787
|
-
},
|
|
788
|
-
r?.(
|
|
789
|
-
},
|
|
790
|
-
let
|
|
791
|
-
return
|
|
792
|
-
q.selected &&
|
|
793
|
-
}),
|
|
794
|
-
},
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
},
|
|
798
|
-
const
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
-
a?.(
|
|
780
|
+
selected: A,
|
|
781
|
+
children: q.children ? Y(q.children, A) : []
|
|
782
|
+
})), F = (Z, A) => {
|
|
783
|
+
const q = K(Z, A);
|
|
784
|
+
w(q);
|
|
785
|
+
const E = te(q);
|
|
786
|
+
a?.(E);
|
|
787
|
+
}, G = (Z, A) => {
|
|
788
|
+
r?.(Z, A);
|
|
789
|
+
}, te = (Z) => {
|
|
790
|
+
let A = [];
|
|
791
|
+
return Z.forEach((q) => {
|
|
792
|
+
q.selected && A.push(q), q.children?.length && (A = [...A, ...te(q.children)]);
|
|
793
|
+
}), A;
|
|
794
|
+
}, P = () => {
|
|
795
|
+
const Z = Y(g, !1);
|
|
796
|
+
w(Z), a?.([]);
|
|
797
|
+
}, Q = () => {
|
|
798
|
+
const Z = Y(g, !0);
|
|
799
|
+
w(Z);
|
|
800
|
+
const A = te(Z);
|
|
801
|
+
a?.(A);
|
|
802
802
|
};
|
|
803
|
-
return
|
|
804
|
-
|
|
805
|
-
}, [t]), /* @__PURE__ */ l("div", { className: `${Le.treeNodeContainer}`, style:
|
|
806
|
-
/* @__PURE__ */ e("div", { className: `${Le.treeNodeItem} ${
|
|
803
|
+
return J(() => {
|
|
804
|
+
w(t || []);
|
|
805
|
+
}, [t]), /* @__PURE__ */ l("div", { className: `${Le.treeNodeContainer}`, style: x, children: [
|
|
806
|
+
/* @__PURE__ */ e("div", { className: `${Le.treeNodeItem} ${m ? Le.inDropDown : ""}`, style: L, children: g.map((Z) => /* @__PURE__ */ e(
|
|
807
807
|
kt,
|
|
808
808
|
{
|
|
809
|
-
node:
|
|
810
|
-
onSelect:
|
|
809
|
+
node: Z,
|
|
810
|
+
onSelect: F,
|
|
811
811
|
defaultCollapsed: n,
|
|
812
812
|
checkboxProps: o,
|
|
813
|
-
onCollapse:
|
|
813
|
+
onCollapse: G,
|
|
814
814
|
depth: 0,
|
|
815
815
|
expandedNodes: y,
|
|
816
816
|
SearchValue: W,
|
|
817
|
-
SelectedData:
|
|
818
|
-
treeContainerStyle:
|
|
819
|
-
treeNodeItemStyle:
|
|
820
|
-
treeFooterStyle:
|
|
821
|
-
treeFooterTextStyle:
|
|
817
|
+
SelectedData: C,
|
|
818
|
+
treeContainerStyle: x,
|
|
819
|
+
treeNodeItemStyle: L,
|
|
820
|
+
treeFooterStyle: M,
|
|
821
|
+
treeFooterTextStyle: D,
|
|
822
822
|
treeNodeStyle: p,
|
|
823
823
|
labelRowStyle: c,
|
|
824
824
|
collapseToggleStyle: _
|
|
825
825
|
},
|
|
826
|
-
|
|
826
|
+
Z.id
|
|
827
827
|
)) }),
|
|
828
|
-
|
|
829
|
-
i && /* @__PURE__ */ e("span", { onClick:
|
|
830
|
-
s && W === "" && /* @__PURE__ */ e("span", { onClick:
|
|
828
|
+
m && /* @__PURE__ */ l("div", { className: Le.dropdownListFooter, style: M, children: [
|
|
829
|
+
i && /* @__PURE__ */ e("span", { onClick: P, style: D, children: "Clear All" }),
|
|
830
|
+
s && W === "" && /* @__PURE__ */ e("span", { onClick: Q, style: D, children: "Select All" })
|
|
831
831
|
] })
|
|
832
832
|
] });
|
|
833
833
|
}, kt = ({
|
|
@@ -836,36 +836,36 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
836
836
|
defaultCollapsed: o,
|
|
837
837
|
checkboxProps: r,
|
|
838
838
|
onCollapse: a,
|
|
839
|
-
depth:
|
|
839
|
+
depth: m,
|
|
840
840
|
expandedNodes: s,
|
|
841
841
|
SearchValue: i,
|
|
842
842
|
SelectedData: y,
|
|
843
843
|
treeContainerStyle: W,
|
|
844
|
-
treeNodeItemStyle:
|
|
845
|
-
treeFooterStyle:
|
|
846
|
-
treeFooterTextStyle:
|
|
847
|
-
treeNodeStyle:
|
|
848
|
-
labelRowStyle:
|
|
844
|
+
treeNodeItemStyle: C,
|
|
845
|
+
treeFooterStyle: x,
|
|
846
|
+
treeFooterTextStyle: L,
|
|
847
|
+
treeNodeStyle: M,
|
|
848
|
+
labelRowStyle: D,
|
|
849
849
|
collapseToggleStyle: p
|
|
850
850
|
}) => {
|
|
851
|
-
const c = s?.find((
|
|
852
|
-
y?.find((
|
|
853
|
-
const [_,
|
|
854
|
-
|
|
851
|
+
const c = s?.find((F) => F.id === t.id);
|
|
852
|
+
y?.find((F) => F.id === t.id);
|
|
853
|
+
const [_, g] = B(c ? !1 : o || !0), w = () => {
|
|
854
|
+
g((F) => !F), a?.(_, t);
|
|
855
855
|
}, K = () => {
|
|
856
856
|
n?.(t.id, !t.selected);
|
|
857
|
-
},
|
|
858
|
-
let
|
|
859
|
-
const
|
|
860
|
-
|
|
857
|
+
}, Y = (F) => {
|
|
858
|
+
let G = !1;
|
|
859
|
+
const te = (Q) => Q?.toLowerCase().replace(/\s/g, "") || "", P = (Q, Z) => {
|
|
860
|
+
Z.label && te(Z.label).includes(te(Q)) && (G = !0), Z.children?.forEach((A) => P(Q, A));
|
|
861
861
|
};
|
|
862
|
-
return !
|
|
862
|
+
return !F || F.trim() === "" ? !0 : (P(F, t), G);
|
|
863
863
|
};
|
|
864
|
-
return
|
|
865
|
-
i &&
|
|
866
|
-
}, [i]), /* @__PURE__ */ l("div", { className: `${Le.treeNode} ${
|
|
867
|
-
/* @__PURE__ */ l("div", { className: Le.labelRow, onClick:
|
|
868
|
-
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${
|
|
864
|
+
return J(() => {
|
|
865
|
+
i && g(!1);
|
|
866
|
+
}, [i]), /* @__PURE__ */ l("div", { className: `${Le.treeNode} ${Y(i) ? Le.visible : Le.hidden}`, style: M, children: [
|
|
867
|
+
/* @__PURE__ */ l("div", { className: Le.labelRow, onClick: w, style: D, children: [
|
|
868
|
+
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${m}rem` }, onClick: (F) => F.stopPropagation(), children: /* @__PURE__ */ e(Se, { checked: t?.selected ?? !1, change: K, ...r, withActive: !1 }) }),
|
|
869
869
|
/* @__PURE__ */ e("span", { className: Le.collapseToggle, style: p, children: /* @__PURE__ */ e(
|
|
870
870
|
"div",
|
|
871
871
|
{
|
|
@@ -880,27 +880,27 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
880
880
|
) }),
|
|
881
881
|
/* @__PURE__ */ e("span", { className: `${Le.label} ${t.selected ? Le.selected : ""}`, children: t.label })
|
|
882
882
|
] }),
|
|
883
|
-
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: Le.children, style: { display: _ ? "none" : "block" }, children: t.children.map((
|
|
883
|
+
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: Le.children, style: { display: _ ? "none" : "block" }, children: t.children.map((F) => /* @__PURE__ */ e(
|
|
884
884
|
kt,
|
|
885
885
|
{
|
|
886
|
-
node:
|
|
886
|
+
node: F,
|
|
887
887
|
onSelect: n,
|
|
888
888
|
defaultCollapsed: o,
|
|
889
889
|
checkboxProps: r,
|
|
890
890
|
onCollapse: a,
|
|
891
|
-
depth:
|
|
891
|
+
depth: m + 1,
|
|
892
892
|
expandedNodes: s,
|
|
893
893
|
SearchValue: i,
|
|
894
894
|
SelectedData: y,
|
|
895
895
|
treeContainerStyle: W,
|
|
896
|
-
treeNodeItemStyle:
|
|
897
|
-
treeFooterStyle:
|
|
898
|
-
treeFooterTextStyle:
|
|
899
|
-
treeNodeStyle:
|
|
900
|
-
labelRowStyle:
|
|
896
|
+
treeNodeItemStyle: C,
|
|
897
|
+
treeFooterStyle: x,
|
|
898
|
+
treeFooterTextStyle: L,
|
|
899
|
+
treeNodeStyle: M,
|
|
900
|
+
labelRowStyle: D,
|
|
901
901
|
collapseToggleStyle: p
|
|
902
902
|
},
|
|
903
|
-
|
|
903
|
+
F.id
|
|
904
904
|
)) })
|
|
905
905
|
] });
|
|
906
906
|
}, ot = ({
|
|
@@ -909,159 +909,159 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
909
909
|
withClose: o = !0,
|
|
910
910
|
disableAll: r = !1,
|
|
911
911
|
withMultiselect: a = !1,
|
|
912
|
-
selectedOptionID:
|
|
912
|
+
selectedOptionID: m,
|
|
913
913
|
withInput: s = !1,
|
|
914
914
|
withTree: i = !1,
|
|
915
915
|
withSelectAll: y = !0,
|
|
916
916
|
dropdownType: W = "country",
|
|
917
|
-
closeOnScroll:
|
|
918
|
-
onSelect:
|
|
919
|
-
onFocus:
|
|
920
|
-
onBlur:
|
|
921
|
-
onValueChange:
|
|
917
|
+
closeOnScroll: C = !1,
|
|
918
|
+
onSelect: x,
|
|
919
|
+
onFocus: L,
|
|
920
|
+
onBlur: M,
|
|
921
|
+
onValueChange: D,
|
|
922
922
|
customInputSlot: p,
|
|
923
923
|
dropdownWrapperStyle: c,
|
|
924
924
|
dropdownInputWrapperStyle: _,
|
|
925
|
-
dropdownInputSlotStyle:
|
|
926
|
-
dropdownInputSlotItemStyle:
|
|
925
|
+
dropdownInputSlotStyle: g,
|
|
926
|
+
dropdownInputSlotItemStyle: w,
|
|
927
927
|
dropdownInputSlotItemLabelStyle: K,
|
|
928
|
-
dropdownInputSlotItemCloseStyle:
|
|
929
|
-
dropdownInputSlotItemMoreStyle:
|
|
930
|
-
dropdownItemStyle:
|
|
931
|
-
dropdownItemLabelStyle:
|
|
932
|
-
itemCheckboxStyle:
|
|
933
|
-
dropdownItemLabelTextStyle:
|
|
934
|
-
dropdownListStyle:
|
|
935
|
-
treeProps:
|
|
928
|
+
dropdownInputSlotItemCloseStyle: Y,
|
|
929
|
+
dropdownInputSlotItemMoreStyle: F,
|
|
930
|
+
dropdownItemStyle: G,
|
|
931
|
+
dropdownItemLabelStyle: te,
|
|
932
|
+
itemCheckboxStyle: P,
|
|
933
|
+
dropdownItemLabelTextStyle: Q,
|
|
934
|
+
dropdownListStyle: Z,
|
|
935
|
+
treeProps: A,
|
|
936
936
|
...q
|
|
937
937
|
}) => {
|
|
938
|
-
const [
|
|
938
|
+
const [E, I] = B(!1), [v, u] = B(""), [h, b] = B(!1), [$, O] = B(!1), [ie, oe] = B(!1), he = se(null), ne = se(null), ee = se(null), pe = se(null), [le, ue] = B([]), j = se([]), T = se(0), [f, S] = B(""), [H, ae] = B(null), re = (d) => `https://flagsapi.com/${d}/flat/64.png`, ge = (d) => {
|
|
939
939
|
if (d.selected = !d.selected, !a) {
|
|
940
|
-
|
|
940
|
+
x?.(d);
|
|
941
941
|
return;
|
|
942
942
|
}
|
|
943
|
-
|
|
943
|
+
j.current = [...j.current, ...le.filter((U) => U.selected == !0), ...le.filter((U) => U.id === d.id)], j.current = bt(j.current, "id").filter((U) => U.selected).filter((U) => U.id !== "SELECT_ALL"), d.id === "SELECT_ALL" ? (b(d.selected), O(!0)) : (b(!1), x?.(j.current), O(!1)), I((U) => !U);
|
|
944
944
|
}, _e = (d) => {
|
|
945
|
-
ae(d),
|
|
945
|
+
ae(d), x?.(d), oe(!1);
|
|
946
946
|
}, we = () => {
|
|
947
|
-
if (!
|
|
948
|
-
const d =
|
|
949
|
-
if (!
|
|
947
|
+
if (!ne.current || !he.current) return;
|
|
948
|
+
const d = ne.current, U = he.current;
|
|
949
|
+
if (!U || !d) return;
|
|
950
950
|
const ce = d.getBoundingClientRect(), Xe = window.innerHeight;
|
|
951
|
-
|
|
951
|
+
U.style.width = ce.width + "px", U.style.position = "fixed", ce.bottom + U.offsetHeight > Xe ? (U.style.top = `${ce.top - U.offsetHeight + 20}px`, U.style.bottom = "unset") : (U.style.top = `${ce.bottom + 8}px`, U.style.bottom = "unset");
|
|
952
952
|
}, ve = () => {
|
|
953
953
|
requestAnimationFrame(() => {
|
|
954
954
|
we();
|
|
955
955
|
});
|
|
956
956
|
};
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}, [
|
|
960
|
-
if (
|
|
961
|
-
|
|
957
|
+
J(() => {
|
|
958
|
+
ie && ve();
|
|
959
|
+
}, [he, ie]), J(() => {
|
|
960
|
+
if (j.current = t?.length ? t.filter((ce) => ce.selected) : [], !a) {
|
|
961
|
+
ue(t);
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
|
-
const d = t?.some((ce) => "selected" in ce),
|
|
965
|
-
d ?
|
|
964
|
+
const d = t?.some((ce) => "selected" in ce), U = y ? [{ id: "SELECT_ALL", label: "Select All", selected: h }] : [];
|
|
965
|
+
d ? ue([...U, ...t]) : (t?.forEach((ce) => {
|
|
966
966
|
ce.selected = !1;
|
|
967
|
-
}),
|
|
968
|
-
}, [JSON.stringify(t)]),
|
|
969
|
-
a && (t?.every((d) => d.selected) ||
|
|
970
|
-
}, [
|
|
971
|
-
!a &&
|
|
972
|
-
}, [
|
|
973
|
-
if (a &&
|
|
974
|
-
const d =
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
}),
|
|
967
|
+
}), ue([...U, ...t])), ve();
|
|
968
|
+
}, [JSON.stringify(t)]), J(() => {
|
|
969
|
+
a && (t?.every((d) => d.selected) || b(!1));
|
|
970
|
+
}, [j.current.length]), J(() => {
|
|
971
|
+
!a && m && ae(t?.find((d) => d.id === m));
|
|
972
|
+
}, [m]), J(() => {
|
|
973
|
+
if (a && le.length > 0 && $) {
|
|
974
|
+
const d = le.map((U) => U.id === "SELECT_ALL" ? { ...U, selected: h } : U.disabled ? U : { ...U, selected: h });
|
|
975
|
+
ue(d), t?.forEach((U) => {
|
|
976
|
+
U.id === "SELECT_ALL" ? U.selected = h : U.disabled || (U.selected = h);
|
|
977
|
+
}), j.current = d.filter((U) => U.selected && U.id !== "SELECT_ALL"), x?.(j.current);
|
|
978
978
|
}
|
|
979
|
-
}, [
|
|
979
|
+
}, [E]);
|
|
980
980
|
const Te = (d) => {
|
|
981
|
-
|
|
981
|
+
ne.current && (d.composedPath().includes(ne.current) || oe(!1));
|
|
982
982
|
}, Ne = (d) => {
|
|
983
|
-
|
|
983
|
+
C && (!ne.current || !he.current || d.composedPath().includes(ne.current) || d.composedPath().includes(he.current) || oe(!1));
|
|
984
984
|
};
|
|
985
|
-
|
|
985
|
+
J(() => {
|
|
986
986
|
const d = () => {
|
|
987
|
-
|
|
987
|
+
ie && ve();
|
|
988
988
|
};
|
|
989
989
|
return document.addEventListener("click", Te), document.addEventListener("wheel", Ne), window.addEventListener("scroll", d), () => {
|
|
990
990
|
document.removeEventListener("click", Te), document.removeEventListener("wheel", Ne), window.removeEventListener("scroll", d);
|
|
991
991
|
};
|
|
992
|
-
}, [
|
|
992
|
+
}, [ie]), J(() => {
|
|
993
993
|
if (!a) return;
|
|
994
994
|
const d = () => {
|
|
995
|
-
const
|
|
996
|
-
if (!
|
|
997
|
-
const ce =
|
|
995
|
+
const U = ne.current?.getBoundingClientRect();
|
|
996
|
+
if (!U) return;
|
|
997
|
+
const ce = U.width;
|
|
998
998
|
ce <= 150 ? T.current = 0 : ce <= 250 ? T.current = 1 : ce <= 350 ? T.current = 2 : ce <= 450 ? T.current = 3 : T.current = 4;
|
|
999
999
|
};
|
|
1000
1000
|
return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
1001
1001
|
}, []);
|
|
1002
|
-
const Me =
|
|
1003
|
-
return
|
|
1002
|
+
const Me = se(!0);
|
|
1003
|
+
return J(() => {
|
|
1004
1004
|
if (Me.current) {
|
|
1005
1005
|
Me.current = !1;
|
|
1006
1006
|
return;
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1009
|
-
}, [
|
|
1008
|
+
ie || M?.(), ie && L?.();
|
|
1009
|
+
}, [ie]), /* @__PURE__ */ l("div", { className: `${de.dropdownWrapper}`, style: c ?? {}, children: [
|
|
1010
1010
|
/* @__PURE__ */ e(
|
|
1011
1011
|
"div",
|
|
1012
1012
|
{
|
|
1013
|
-
ref:
|
|
1014
|
-
className:
|
|
1013
|
+
ref: ne,
|
|
1014
|
+
className: de.dropdownInputWrapper,
|
|
1015
1015
|
style: _ ?? {},
|
|
1016
|
-
onClick: () => (
|
|
1016
|
+
onClick: () => (oe((d) => !d), ve()),
|
|
1017
1017
|
children: /* @__PURE__ */ e(
|
|
1018
1018
|
Re,
|
|
1019
1019
|
{
|
|
1020
1020
|
...q,
|
|
1021
|
-
onFocusChange: (d) =>
|
|
1022
|
-
customFocus:
|
|
1021
|
+
onFocusChange: (d) => oe(d),
|
|
1022
|
+
customFocus: ie,
|
|
1023
1023
|
withActive: !1,
|
|
1024
|
-
value: s ?
|
|
1024
|
+
value: s ? v : H?.label ?? "",
|
|
1025
1025
|
onChange: (d) => {
|
|
1026
|
-
u(d),
|
|
1026
|
+
u(d), D?.(d);
|
|
1027
1027
|
},
|
|
1028
1028
|
toggleFocus: !0,
|
|
1029
1029
|
formInputStyle: { cursor: s ? "text" : "pointer" },
|
|
1030
|
-
leftSlot: s && /* @__PURE__ */ l("div", { className:
|
|
1031
|
-
W === "currency" ? /* @__PURE__ */ e("p", { children:
|
|
1032
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
1030
|
+
leftSlot: s && /* @__PURE__ */ l("div", { className: de.dropdownInputSlot, children: [
|
|
1031
|
+
W === "currency" ? /* @__PURE__ */ e("p", { children: H?.label }) : /* @__PURE__ */ e("img", { src: re(H?.code), alt: "flag" }),
|
|
1032
|
+
/* @__PURE__ */ e("div", { className: `${de.dropdownRightIconArrow} ${ie ? de.focused : ""}`, children: /* @__PURE__ */ e(ze, {}) })
|
|
1033
1033
|
] }),
|
|
1034
|
-
rightSlot: /* @__PURE__ */ l("div", { className: `${
|
|
1035
|
-
(s ?
|
|
1034
|
+
rightSlot: /* @__PURE__ */ l("div", { className: `${de.dropdownRightIcon} ${ie ? de.focused : ""}`, children: [
|
|
1035
|
+
(s ? v : !a && H) && /* @__PURE__ */ e(
|
|
1036
1036
|
"div",
|
|
1037
1037
|
{
|
|
1038
1038
|
onClick: (d) => {
|
|
1039
|
-
d.stopPropagation(), s ? (u(""),
|
|
1039
|
+
d.stopPropagation(), s ? (u(""), oe(!1)) : ae(null);
|
|
1040
1040
|
},
|
|
1041
|
-
className:
|
|
1041
|
+
className: de.dropdownRightIconClose,
|
|
1042
1042
|
children: /* @__PURE__ */ e(Ke, {})
|
|
1043
1043
|
}
|
|
1044
1044
|
),
|
|
1045
|
-
!s && /* @__PURE__ */ e("div", { className:
|
|
1045
|
+
!s && /* @__PURE__ */ e("div", { className: de.dropdownRightIconArrow, children: /* @__PURE__ */ e(ze, {}) })
|
|
1046
1046
|
] }),
|
|
1047
1047
|
readOnly: !s,
|
|
1048
1048
|
forDropdown: !0,
|
|
1049
1049
|
inputSlotStyle: { width: "100%" },
|
|
1050
|
-
inputSlot: a &&
|
|
1051
|
-
|
|
1050
|
+
inputSlot: a && j.current.length > 0 ? p || /* @__PURE__ */ l("ul", { className: de.dropdownInputSlot, style: g ?? {}, children: [
|
|
1051
|
+
j.current.slice(0, T.current).map((d, U) => /* @__PURE__ */ l(
|
|
1052
1052
|
"li",
|
|
1053
1053
|
{
|
|
1054
|
-
ref:
|
|
1055
|
-
className:
|
|
1056
|
-
style:
|
|
1054
|
+
ref: pe,
|
|
1055
|
+
className: de.dropdownInputSlotItem,
|
|
1056
|
+
style: w ?? {},
|
|
1057
1057
|
onClick: (ce) => ce.stopPropagation(),
|
|
1058
1058
|
children: [
|
|
1059
|
-
/* @__PURE__ */ e("div", { title: d.label, className:
|
|
1059
|
+
/* @__PURE__ */ e("div", { title: d.label, className: de.dropdownInputSlotItemLabel, style: K ?? {}, children: typeof d.customLabel == "function" ? d.customLabel(d) : d.label }),
|
|
1060
1060
|
/* @__PURE__ */ e(
|
|
1061
1061
|
"div",
|
|
1062
1062
|
{
|
|
1063
|
-
style:
|
|
1064
|
-
className:
|
|
1063
|
+
style: Y ?? {},
|
|
1064
|
+
className: de.dropdownInputSlotItemClose,
|
|
1065
1065
|
onClick: (ce) => {
|
|
1066
1066
|
ce.stopPropagation(), ge(d);
|
|
1067
1067
|
},
|
|
@@ -1070,15 +1070,15 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
1070
1070
|
)
|
|
1071
1071
|
]
|
|
1072
1072
|
},
|
|
1073
|
-
|
|
1073
|
+
U
|
|
1074
1074
|
)),
|
|
1075
|
-
|
|
1075
|
+
j.current.length > T.current && /* @__PURE__ */ e("li", { className: `${de.dropdownInputSlotItem} ${de.dropdownInputSlotItemMore}`, style: F ?? {}, children: /* @__PURE__ */ e("p", { className: de.dropdownInputSlotItemLabel, style: K ?? {}, children: `+${j.current.length - T.current}` }) })
|
|
1076
1076
|
] }) : null
|
|
1077
1077
|
}
|
|
1078
1078
|
)
|
|
1079
1079
|
}
|
|
1080
1080
|
),
|
|
1081
|
-
t && t.length > 0 &&
|
|
1081
|
+
t && t.length > 0 && ie && /* @__PURE__ */ l("div", { ref: he, onClick: (d) => d.stopPropagation(), className: de.dropdownListContainer, children: [
|
|
1082
1082
|
n && /* @__PURE__ */ e(
|
|
1083
1083
|
Re,
|
|
1084
1084
|
{
|
|
@@ -1087,7 +1087,7 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
1087
1087
|
withFocus: !1,
|
|
1088
1088
|
withActive: !1,
|
|
1089
1089
|
value: f,
|
|
1090
|
-
onChange: (d) =>
|
|
1090
|
+
onChange: (d) => S(d)
|
|
1091
1091
|
}
|
|
1092
1092
|
),
|
|
1093
1093
|
i ? /* @__PURE__ */ e(
|
|
@@ -1095,22 +1095,22 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
1095
1095
|
{
|
|
1096
1096
|
SearchValue: f,
|
|
1097
1097
|
data: t,
|
|
1098
|
-
onSelect:
|
|
1099
|
-
onCollapse: (d,
|
|
1100
|
-
ve(),
|
|
1098
|
+
onSelect: x,
|
|
1099
|
+
onCollapse: (d, U) => {
|
|
1100
|
+
ve(), A?.onCollapse?.(d, U);
|
|
1101
1101
|
},
|
|
1102
|
-
...
|
|
1102
|
+
...A
|
|
1103
1103
|
}
|
|
1104
|
-
) : /* @__PURE__ */ e("ul", { onClick: (d) => d.stopPropagation(), className:
|
|
1104
|
+
) : /* @__PURE__ */ e("ul", { onClick: (d) => d.stopPropagation(), className: de.dropdownList, ref: ee, style: Z ?? {}, children: le.filter((d) => d?.label?.toLowerCase().includes(f.toLowerCase())).map((d, U) => /* @__PURE__ */ l(
|
|
1105
1105
|
"li",
|
|
1106
1106
|
{
|
|
1107
|
-
style: { ...
|
|
1108
|
-
className: `${
|
|
1107
|
+
style: { ...G, cursor: !a && d?.disabled ? "not-allowed" : "pointer" },
|
|
1108
|
+
className: `${de.dropdownItem} ${!a && H?.id === d.id ? de.selected : ""} ${!d?.label || d.label === void 0 || r || d?.disabled ? de.disabled : ""} ${!a && !d?.disabled ? de.hovered : ""}`,
|
|
1109
1109
|
onClick: (ce) => {
|
|
1110
1110
|
ce.stopPropagation(), !a && !d?.disabled && _e(d);
|
|
1111
1111
|
},
|
|
1112
1112
|
children: [
|
|
1113
|
-
a && !d.noCheckbox && /* @__PURE__ */ e("div", { className:
|
|
1113
|
+
a && !d.noCheckbox && /* @__PURE__ */ e("div", { className: de.itemCheckbox, style: P ?? {}, children: /* @__PURE__ */ e(
|
|
1114
1114
|
Se,
|
|
1115
1115
|
{
|
|
1116
1116
|
multipleChecked: d.id === "SELECT_ALL",
|
|
@@ -1119,26 +1119,26 @@ const ro = "mc__Dropdown-module__dropdownWrapper", io = "mc__Dropdown-module__dr
|
|
|
1119
1119
|
change: () => ge(d)
|
|
1120
1120
|
}
|
|
1121
1121
|
) }),
|
|
1122
|
-
/* @__PURE__ */ l("div", { className:
|
|
1123
|
-
s ? /* @__PURE__ */ l("div", { className:
|
|
1124
|
-
/* @__PURE__ */ e("img", { src:
|
|
1125
|
-
/* @__PURE__ */ e("span", { title: d.name, className:
|
|
1126
|
-
/* @__PURE__ */ e("span", { className:
|
|
1122
|
+
/* @__PURE__ */ l("div", { className: de.dropdownItemLabel, style: te ?? {}, children: [
|
|
1123
|
+
s ? /* @__PURE__ */ l("div", { className: de.dropdownItemLabelInput, children: [
|
|
1124
|
+
/* @__PURE__ */ e("img", { src: re(d.code), style: { width: "1.375rem", height: "1.375rem", objectFit: "contain" }, alt: d.name }),
|
|
1125
|
+
/* @__PURE__ */ e("span", { title: d.name, className: de.countryName, children: d.name || d.label }),
|
|
1126
|
+
/* @__PURE__ */ e("span", { className: de.countryDialCode, children: W === "country" ? d.dialCode : d?.label })
|
|
1127
1127
|
] }) : /* @__PURE__ */ e(
|
|
1128
1128
|
"p",
|
|
1129
1129
|
{
|
|
1130
1130
|
title: typeof d.label == "string" ? d.label : "",
|
|
1131
|
-
className: `${d.id === "SELECT_ALL" ?
|
|
1132
|
-
style:
|
|
1131
|
+
className: `${d.id === "SELECT_ALL" ? de.selectAll : ""}`,
|
|
1132
|
+
style: Q ?? {},
|
|
1133
1133
|
children: typeof d.customLabel == "function" ? d.customLabel(d) : d.label
|
|
1134
1134
|
}
|
|
1135
1135
|
),
|
|
1136
|
-
a && /* @__PURE__ */ e("p", { children: d.id === "SELECT_ALL" ? `${
|
|
1136
|
+
a && /* @__PURE__ */ e("p", { children: d.id === "SELECT_ALL" ? `${le.filter((ce) => ce.id !== "SELECT_ALL" && ce.selected).length}/${t.length}` : "" })
|
|
1137
1137
|
] })
|
|
1138
1138
|
]
|
|
1139
1139
|
},
|
|
1140
|
-
|
|
1141
|
-
)) },
|
|
1140
|
+
U
|
|
1141
|
+
)) }, le.length)
|
|
1142
1142
|
] })
|
|
1143
1143
|
] });
|
|
1144
1144
|
};
|
|
@@ -1174,12 +1174,12 @@ ot.displayName = "Dropdown";
|
|
|
1174
1174
|
ot.description = "A feature-rich dropdown component with multi-select, filtering, and smart positioning capabilities.";
|
|
1175
1175
|
const Eo = "mc__Radio-module__radioWrapper", Oo = {
|
|
1176
1176
|
radioWrapper: Eo
|
|
1177
|
-
}, rt = ({ checked: t, change: n, disabled: o, required: r, withUncheckState: a = !1, radioType:
|
|
1177
|
+
}, rt = ({ checked: t, change: n, disabled: o, required: r, withUncheckState: a = !1, radioType: m = "default" }) => {
|
|
1178
1178
|
nt(), B(!1);
|
|
1179
1179
|
const s = () => {
|
|
1180
1180
|
o || n?.(a ? !t : !0);
|
|
1181
1181
|
}, i = () => {
|
|
1182
|
-
let y = null, W = o ? "#95969C" :
|
|
1182
|
+
let y = null, W = o ? "#95969C" : m === "error" ? "#E3292F" : "#0058FF";
|
|
1183
1183
|
return t ? o ? y = /* @__PURE__ */ e(Wt, { color: W }) : y = /* @__PURE__ */ e(Rt, { color: W }) : o ? y = /* @__PURE__ */ e(Ft, { color: W }) : y = /* @__PURE__ */ e(Bt, { color: W }), y;
|
|
1184
1184
|
};
|
|
1185
1185
|
return /* @__PURE__ */ l("div", { className: Oo.radioWrapper, style: { cursor: o ? "not-allowed" : "pointer" }, onClick: s, children: [
|
|
@@ -1190,7 +1190,7 @@ const Eo = "mc__Radio-module__radioWrapper", Oo = {
|
|
|
1190
1190
|
rt.propKeys = ["checked", "change", "disabled", "required", "withUncheckState", "radioType"];
|
|
1191
1191
|
rt.displayName = "Radio";
|
|
1192
1192
|
rt.description = "A radio button component with customizable states and uncheck functionality for form selections.";
|
|
1193
|
-
const Vo = "mc__Tooltip-module__tooltipContainer", Zo = "mc__Tooltip-module__tooltipContent", zo = "mc__Tooltip-module__withoutPointer", Uo = "mc__Tooltip-module__top", Yo = "mc__Tooltip-module__right", jo = "mc__Tooltip-module__bottom", Ko = "mc__Tooltip-module__left", qo = "mc__Tooltip-module__tooltipTitle", Xo = "mc__Tooltip-module__tooltipText", Qo = "mc__Tooltip-module__dark",
|
|
1193
|
+
const Vo = "mc__Tooltip-module__tooltipContainer", Zo = "mc__Tooltip-module__tooltipContent", zo = "mc__Tooltip-module__withoutPointer", Uo = "mc__Tooltip-module__top", Yo = "mc__Tooltip-module__right", jo = "mc__Tooltip-module__bottom", Ko = "mc__Tooltip-module__left", qo = "mc__Tooltip-module__tooltipTitle", Xo = "mc__Tooltip-module__tooltipText", Qo = "mc__Tooltip-module__dark", Ie = {
|
|
1194
1194
|
tooltipContainer: Vo,
|
|
1195
1195
|
tooltipContent: Zo,
|
|
1196
1196
|
withoutPointer: zo,
|
|
@@ -1207,121 +1207,132 @@ const Vo = "mc__Tooltip-module__tooltipContainer", Zo = "mc__Tooltip-module__too
|
|
|
1207
1207
|
delay: o = 400,
|
|
1208
1208
|
placement: r = "top",
|
|
1209
1209
|
trigger: a = "hover",
|
|
1210
|
-
title:
|
|
1210
|
+
title: m,
|
|
1211
1211
|
text: s,
|
|
1212
1212
|
customText: i,
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1213
|
+
tooltipStyleType: y = "default",
|
|
1214
|
+
tooltipContentStyle: W,
|
|
1215
|
+
tooltipTitlestyle: C,
|
|
1216
|
+
tooltipTextStyle: x,
|
|
1217
|
+
tooltipContainerStyle: L,
|
|
1218
|
+
pointerPosition: M = "10%",
|
|
1219
|
+
withPointer: D = !1,
|
|
1220
|
+
theme: p,
|
|
1221
|
+
topCustomOffset: c = 0,
|
|
1222
|
+
bottomCustomOffset: _ = 0,
|
|
1223
|
+
leftCustomOffset: g = 0,
|
|
1224
|
+
rightCustomOffset: w = 0,
|
|
1225
|
+
forceClose: K = !1,
|
|
1226
|
+
onClick: Y
|
|
1226
1227
|
}) => {
|
|
1227
|
-
const F =
|
|
1228
|
+
const F = se(null), G = se(null);
|
|
1228
1229
|
let te;
|
|
1229
|
-
const [
|
|
1230
|
-
a === "hover" &&
|
|
1231
|
-
|
|
1230
|
+
const [P, Q] = B(!1), Z = n || m || s || i, A = () => {
|
|
1231
|
+
a === "hover" && Z && (te = setTimeout(() => {
|
|
1232
|
+
Q(!0);
|
|
1232
1233
|
}, o));
|
|
1233
|
-
},
|
|
1234
|
+
}, q = () => {
|
|
1234
1235
|
a === "hover" && (clearTimeout(te), setTimeout(() => {
|
|
1235
|
-
|
|
1236
|
+
Q(!1);
|
|
1236
1237
|
}, o));
|
|
1237
|
-
},
|
|
1238
|
-
a === "click" && (
|
|
1239
|
-
},
|
|
1240
|
-
const
|
|
1241
|
-
if (!
|
|
1242
|
-
const
|
|
1243
|
-
|
|
1244
|
-
const
|
|
1245
|
-
fitsTop:
|
|
1246
|
-
fitsBottom:
|
|
1238
|
+
}, E = () => {
|
|
1239
|
+
a === "click" && (Y?.(), Q((u) => !u));
|
|
1240
|
+
}, I = () => {
|
|
1241
|
+
const u = F.current, h = G.current;
|
|
1242
|
+
if (!h || !u) return;
|
|
1243
|
+
const b = u.getBoundingClientRect(), $ = h.getBoundingClientRect(), O = window.innerWidth, ie = window.innerHeight;
|
|
1244
|
+
h.style.position = "fixed";
|
|
1245
|
+
const oe = (pe, le) => ({
|
|
1246
|
+
fitsTop: pe >= 0,
|
|
1247
|
+
fitsBottom: pe + $.height <= ie,
|
|
1247
1248
|
fitsLeft: le >= 0,
|
|
1248
|
-
fitsRight: le +
|
|
1249
|
-
}),
|
|
1250
|
-
|
|
1249
|
+
fitsRight: le + $.width <= O
|
|
1250
|
+
}), he = (pe, le) => {
|
|
1251
|
+
h.style.top = `${pe}px`, h.style.left = `${le}px`;
|
|
1251
1252
|
};
|
|
1252
|
-
let
|
|
1253
|
+
let ne, ee;
|
|
1253
1254
|
switch (r) {
|
|
1254
1255
|
case "top":
|
|
1255
|
-
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1256
|
+
ne = b.top - $.height - 8 + c - _, ee = b.left + g - w;
|
|
1257
|
+
const pe = oe(ne, ee);
|
|
1258
|
+
pe.fitsTop || (ne = b.bottom + 8 + _ - c), pe.fitsLeft ? pe.fitsRight || (ee = O - $.width) : ee = 0, he(ne, ee);
|
|
1258
1259
|
break;
|
|
1259
1260
|
case "bottom":
|
|
1260
|
-
|
|
1261
|
-
const le =
|
|
1262
|
-
le.fitsBottom || (
|
|
1261
|
+
ne = b.bottom + 8 + _ - c, ee = b.left + g - w;
|
|
1262
|
+
const le = oe(ne, ee);
|
|
1263
|
+
le.fitsBottom || (ne = b.top - $.height - 8 + c - _), le.fitsLeft ? le.fitsRight || (ee = O - $.width) : ee = 0, he(ne, ee);
|
|
1263
1264
|
break;
|
|
1264
1265
|
case "left":
|
|
1265
|
-
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1266
|
+
ne = b.top + c - _, ee = b.left - $.width - 8 + g - w;
|
|
1267
|
+
const ue = oe(ne, ee);
|
|
1268
|
+
ue.fitsLeft || (ee = b.right + 8 + w - g), ue.fitsTop ? ue.fitsBottom || (ne = ie - $.height) : ne = 0, he(ne, ee);
|
|
1268
1269
|
break;
|
|
1269
1270
|
case "right":
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1271
|
+
ne = b.top + c - _, ee = b.right + 8 + w - g;
|
|
1272
|
+
const j = oe(ne, ee);
|
|
1273
|
+
j.fitsRight || (ee = b.left - $.width - 8 + g - w), j.fitsTop ? j.fitsBottom || (ne = ie - $.height) : ne = 0, he(ne, ee);
|
|
1273
1274
|
break;
|
|
1274
1275
|
}
|
|
1275
1276
|
};
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
}, [F,
|
|
1279
|
-
const
|
|
1280
|
-
F.current?.contains(
|
|
1281
|
-
},
|
|
1282
|
-
|
|
1283
|
-
},
|
|
1284
|
-
|
|
1277
|
+
J(() => {
|
|
1278
|
+
I();
|
|
1279
|
+
}, [F, P, t, r, n, i, m, s]), J(() => {
|
|
1280
|
+
const u = ($) => {
|
|
1281
|
+
F.current?.contains($.target) || Q(!1);
|
|
1282
|
+
}, h = ($) => {
|
|
1283
|
+
$.composedPath().includes(F.current) || Q(!1);
|
|
1284
|
+
}, b = () => {
|
|
1285
|
+
P && I();
|
|
1285
1286
|
};
|
|
1286
|
-
return document.addEventListener("click",
|
|
1287
|
-
document.removeEventListener("scroll",
|
|
1287
|
+
return document.addEventListener("click", h), document.addEventListener("scroll", u, !0), window.addEventListener("resize", b), () => {
|
|
1288
|
+
document.removeEventListener("scroll", u, !0), document.removeEventListener("click", h), window.removeEventListener("resize", b);
|
|
1288
1289
|
};
|
|
1289
|
-
}, [
|
|
1290
|
-
|
|
1291
|
-
}, [
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1294
|
-
}, [
|
|
1290
|
+
}, [P]), J(() => {
|
|
1291
|
+
K && Q(!1);
|
|
1292
|
+
}, [K]), J(() => {
|
|
1293
|
+
const u = G.current;
|
|
1294
|
+
u && (u.style.setProperty("--pointer-position", `${M}`), D || u.classList.add(Ie.withoutPointer));
|
|
1295
|
+
}, [P]);
|
|
1296
|
+
const v = () => ({
|
|
1297
|
+
...W,
|
|
1298
|
+
...y === "secondary" && {
|
|
1299
|
+
borderRadius: "12px",
|
|
1300
|
+
border: "1px solid #E6E6E6",
|
|
1301
|
+
background: "#FFF",
|
|
1302
|
+
padding: "6px"
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
return /* @__PURE__ */ l(
|
|
1295
1306
|
"div",
|
|
1296
1307
|
{
|
|
1297
1308
|
ref: F,
|
|
1298
|
-
className: `${
|
|
1299
|
-
onClick:
|
|
1300
|
-
onMouseEnter:
|
|
1301
|
-
onMouseLeave:
|
|
1302
|
-
style:
|
|
1309
|
+
className: `${p === "dark" ? Ie.dark : ""} ${Ie.tooltipContainer}`,
|
|
1310
|
+
onClick: E,
|
|
1311
|
+
onMouseEnter: A,
|
|
1312
|
+
onMouseLeave: q,
|
|
1313
|
+
style: L ?? {},
|
|
1303
1314
|
children: [
|
|
1304
1315
|
t,
|
|
1305
|
-
|
|
1316
|
+
P && n ? /* @__PURE__ */ e(
|
|
1306
1317
|
"div",
|
|
1307
1318
|
{
|
|
1308
|
-
style:
|
|
1309
|
-
onClick: (
|
|
1310
|
-
ref:
|
|
1311
|
-
className: `${
|
|
1319
|
+
style: v(),
|
|
1320
|
+
onClick: (u) => u.stopPropagation(),
|
|
1321
|
+
ref: G,
|
|
1322
|
+
className: `${Ie.tooltipContent} ${r ? Ie[r] : Ie.bottom}`,
|
|
1312
1323
|
children: n
|
|
1313
1324
|
}
|
|
1314
|
-
) :
|
|
1325
|
+
) : P && /* @__PURE__ */ l(
|
|
1315
1326
|
"div",
|
|
1316
1327
|
{
|
|
1317
|
-
style:
|
|
1318
|
-
onClick: (
|
|
1319
|
-
ref:
|
|
1320
|
-
className: `${
|
|
1328
|
+
style: v(),
|
|
1329
|
+
onClick: (u) => u.stopPropagation(),
|
|
1330
|
+
ref: G,
|
|
1331
|
+
className: `${Ie.tooltipContent} ${r ? Ie[r] : Ie.bottom}`,
|
|
1321
1332
|
children: [
|
|
1322
1333
|
i && typeof i == "string" && i,
|
|
1323
|
-
|
|
1324
|
-
s && s.length > 0 && typeof s == "string" && /* @__PURE__ */ e("p", { className:
|
|
1334
|
+
m && m.length > 0 && typeof m == "string" && /* @__PURE__ */ e("h2", { className: Ie.tooltipTitle, style: C ?? {}, children: m }),
|
|
1335
|
+
s && s.length > 0 && typeof s == "string" && /* @__PURE__ */ e("p", { className: Ie.tooltipText, style: x ?? {}, children: s })
|
|
1325
1336
|
]
|
|
1326
1337
|
}
|
|
1327
1338
|
)
|
|
@@ -1367,32 +1378,32 @@ const Jo = "mc__Popup-module__modalOverlay", Go = "mc__Popup-module__popupDrawer
|
|
|
1367
1378
|
mode: o,
|
|
1368
1379
|
children: r,
|
|
1369
1380
|
onClickOutside: a,
|
|
1370
|
-
onClose:
|
|
1381
|
+
onClose: m,
|
|
1371
1382
|
widthType: s,
|
|
1372
1383
|
// "horizontal"
|
|
1373
1384
|
modalOverlayStyle: i,
|
|
1374
1385
|
popupContainerStyle: y,
|
|
1375
1386
|
templateWrapperStyle: W,
|
|
1376
|
-
closeButtonStyle:
|
|
1387
|
+
closeButtonStyle: C
|
|
1377
1388
|
}) => {
|
|
1378
|
-
const
|
|
1379
|
-
|
|
1380
|
-
},
|
|
1381
|
-
|
|
1389
|
+
const x = () => {
|
|
1390
|
+
m && typeof m == "function" && m();
|
|
1391
|
+
}, L = se(null), M = (D) => {
|
|
1392
|
+
D.target === L.current && a && typeof a == "function" && a();
|
|
1382
1393
|
};
|
|
1383
|
-
return
|
|
1394
|
+
return J(() => {
|
|
1384
1395
|
if (t) {
|
|
1385
|
-
const
|
|
1396
|
+
const D = document.body.style.overflow;
|
|
1386
1397
|
return document.body.style.overflow = "hidden", () => {
|
|
1387
|
-
document.body.style.overflow =
|
|
1398
|
+
document.body.style.overflow = D;
|
|
1388
1399
|
};
|
|
1389
1400
|
}
|
|
1390
|
-
}, [t]),
|
|
1391
|
-
document.removeEventListener("click",
|
|
1401
|
+
}, [t]), J(() => (document.addEventListener("click", M), () => {
|
|
1402
|
+
document.removeEventListener("click", M);
|
|
1392
1403
|
}), []), t && /* @__PURE__ */ e(
|
|
1393
1404
|
"div",
|
|
1394
1405
|
{
|
|
1395
|
-
ref:
|
|
1406
|
+
ref: L,
|
|
1396
1407
|
style: i ?? {},
|
|
1397
1408
|
className: `
|
|
1398
1409
|
${Oe.modalOverlay}
|
|
@@ -1408,7 +1419,7 @@ const Jo = "mc__Popup-module__modalOverlay", Go = "mc__Popup-module__popupDrawer
|
|
|
1408
1419
|
${s === "horizontal" ? Oe.horizontal : ""}
|
|
1409
1420
|
`,
|
|
1410
1421
|
children: [
|
|
1411
|
-
/* @__PURE__ */ e("div", { className: Oe.closeButton, style:
|
|
1422
|
+
/* @__PURE__ */ e("div", { className: Oe.closeButton, style: C ?? {}, onClick: x, children: /* @__PURE__ */ e(vt, { color: "#131314" }) }),
|
|
1412
1423
|
/* @__PURE__ */ l("div", { className: Oe.templateWrapper, style: W ?? {}, children: [
|
|
1413
1424
|
n && n,
|
|
1414
1425
|
r && r
|
|
@@ -1461,32 +1472,32 @@ const rr = "mc__NotificationToast-module__toastContainer", ir = "mc__Notificatio
|
|
|
1461
1472
|
filled: o = !1,
|
|
1462
1473
|
withClose: r = !1,
|
|
1463
1474
|
withUndo: a = !1,
|
|
1464
|
-
withInfoIcon:
|
|
1475
|
+
withInfoIcon: m = !0,
|
|
1465
1476
|
description: s,
|
|
1466
1477
|
customAction: i,
|
|
1467
1478
|
timeout: y = 4e3,
|
|
1468
1479
|
children: W,
|
|
1469
|
-
onUndo:
|
|
1470
|
-
onClose:
|
|
1480
|
+
onUndo: C,
|
|
1481
|
+
onClose: x
|
|
1471
1482
|
}) => {
|
|
1472
|
-
const [
|
|
1473
|
-
|
|
1483
|
+
const [L, M] = B("fadeIn");
|
|
1484
|
+
J(() => {
|
|
1474
1485
|
const p = y, c = 300, _ = setTimeout(() => {
|
|
1475
|
-
|
|
1476
|
-
|
|
1486
|
+
M("fadeOut"), setTimeout(() => {
|
|
1487
|
+
x?.();
|
|
1477
1488
|
}, c);
|
|
1478
1489
|
}, p);
|
|
1479
1490
|
return () => {
|
|
1480
1491
|
clearTimeout(_);
|
|
1481
1492
|
};
|
|
1482
|
-
}, [
|
|
1483
|
-
const
|
|
1493
|
+
}, [x]);
|
|
1494
|
+
const D = () => {
|
|
1484
1495
|
let p = {};
|
|
1485
1496
|
return s && (p.padding = "12px"), p;
|
|
1486
1497
|
};
|
|
1487
|
-
return /* @__PURE__ */ e("div", { className: `${ye.notificationToast} ${ye[n]} ${o ? "" : ye.filled} ${ye[
|
|
1498
|
+
return /* @__PURE__ */ e("div", { className: `${ye.notificationToast} ${ye[n]} ${o ? "" : ye.filled} ${ye[L]}`, style: D(), children: /* @__PURE__ */ l("div", { className: ye.notificationToastContent, style: s ? { alignItems: "flex-start" } : {}, children: [
|
|
1488
1499
|
/* @__PURE__ */ l("div", { className: ye.notificationToastContentLeft, style: s ? { alignItems: "flex-start" } : {}, children: [
|
|
1489
|
-
|
|
1500
|
+
m && /* @__PURE__ */ e("div", { className: ye.notificationToastContentInfoIcon, children: n === "success" ? /* @__PURE__ */ e(Ot, { color: o ? "#fff" : "#328707" }) : /* @__PURE__ */ e(Et, { color: o ? "#fff" : n === "neutral" ? "#131314" : n === "error" ? "#E3292F" : "#0058FF" }) }),
|
|
1490
1501
|
/* @__PURE__ */ l("div", { className: ye.notificationToastContentLeftText, children: [
|
|
1491
1502
|
t && /* @__PURE__ */ e("p", { className: ye.notificationToastContentLeftTextTitle, children: t }),
|
|
1492
1503
|
s && /* @__PURE__ */ e("p", { className: ye.notificationToastContentLeftTextDescription, children: s }),
|
|
@@ -1496,8 +1507,8 @@ const rr = "mc__NotificationToast-module__toastContainer", ir = "mc__Notificatio
|
|
|
1496
1507
|
/* @__PURE__ */ e("div", { className: ye.notificationToastContentDescription }),
|
|
1497
1508
|
/* @__PURE__ */ l("div", { className: ye.notificationToastContentRight, children: [
|
|
1498
1509
|
i && i,
|
|
1499
|
-
!s && a && /* @__PURE__ */ e("p", { className: ye.notificationToastContentRightUndoText, onClick: () =>
|
|
1500
|
-
r && /* @__PURE__ */ e("div", { className: ye.notificationToastContentRightClose, style: s || !a ? { border: "none" } : {}, onClick: () =>
|
|
1510
|
+
!s && a && /* @__PURE__ */ e("p", { className: ye.notificationToastContentRightUndoText, onClick: () => C?.(), children: "Undo" }),
|
|
1511
|
+
r && /* @__PURE__ */ e("div", { className: ye.notificationToastContentRightClose, style: s || !a ? { border: "none" } : {}, onClick: () => x?.(), children: /* @__PURE__ */ e(
|
|
1501
1512
|
vt,
|
|
1502
1513
|
{
|
|
1503
1514
|
color: o ? "#fff" : n === "neutral" ? "#131314" : n === "error" ? "#E3292F" : n === "info" ? "#0058FF" : "#328707"
|
|
@@ -1508,14 +1519,14 @@ const rr = "mc__NotificationToast-module__toastContainer", ir = "mc__Notificatio
|
|
|
1508
1519
|
}, Lt = yt(null);
|
|
1509
1520
|
let kr = 0;
|
|
1510
1521
|
const Lr = ({ children: t }) => {
|
|
1511
|
-
const [n, o] = B([]), r = (
|
|
1522
|
+
const [n, o] = B([]), r = (m) => {
|
|
1512
1523
|
o((s) => {
|
|
1513
|
-
const i =
|
|
1524
|
+
const i = m.max ?? 1 / 0;
|
|
1514
1525
|
if (s.length >= i) return s;
|
|
1515
1526
|
const y = kr++;
|
|
1516
1527
|
return setTimeout(() => {
|
|
1517
|
-
o((W) => W.filter((
|
|
1518
|
-
},
|
|
1528
|
+
o((W) => W.filter((C) => C.id !== y));
|
|
1529
|
+
}, m.timeout || 4e3), [...s, { id: y, props: m }];
|
|
1519
1530
|
});
|
|
1520
1531
|
}, a = je(() => {
|
|
1521
1532
|
if (n.length > 0)
|
|
@@ -1538,15 +1549,15 @@ const Lr = ({ children: t }) => {
|
|
|
1538
1549
|
}, [n.length]);
|
|
1539
1550
|
return /* @__PURE__ */ l(Lt.Provider, { value: { showToast: r }, children: [
|
|
1540
1551
|
t,
|
|
1541
|
-
n.length > 0 && /* @__PURE__ */ e("div", { className: ye.toastContainer, style: a(), children: n.map(({ id:
|
|
1552
|
+
n.length > 0 && /* @__PURE__ */ e("div", { className: ye.toastContainer, style: a(), children: n.map(({ id: m, props: s }) => /* @__PURE__ */ e(
|
|
1542
1553
|
br,
|
|
1543
1554
|
{
|
|
1544
1555
|
...s,
|
|
1545
1556
|
onClose: () => {
|
|
1546
|
-
o((i) => i.filter((y) => y.id !==
|
|
1557
|
+
o((i) => i.filter((y) => y.id !== m));
|
|
1547
1558
|
}
|
|
1548
1559
|
},
|
|
1549
|
-
|
|
1560
|
+
m
|
|
1550
1561
|
)) })
|
|
1551
1562
|
] });
|
|
1552
1563
|
};
|
|
@@ -1572,10 +1583,10 @@ lt.propKeys = [
|
|
|
1572
1583
|
];
|
|
1573
1584
|
lt.displayName = "Notification Toast";
|
|
1574
1585
|
lt.description = "A function to create a notification toast.";
|
|
1575
|
-
const Tr = "mc__TimePicker-module__timepickerWrapper",
|
|
1586
|
+
const Tr = "mc__TimePicker-module__timepickerWrapper", xr = "mc__TimePicker-module__timepickerInputWrapper", Ir = "mc__TimePicker-module__dropdownRightIcon", Nr = "mc__TimePicker-module__dropdownRightIconClose", $r = "mc__TimePicker-module__dropdownRightIconArrow", Mr = "mc__TimePicker-module__focused", Dr = "mc__TimePicker-module__timepickerDropdownWrapper", Sr = "mc__TimePicker-module__timepickerDropdownHeader", Pr = "mc__TimePicker-module__timepickerDropdownHeaderButtons", Hr = "mc__TimePicker-module__active", Ar = "mc__TimePicker-module__timepickerDropdownBody", Rr = "mc__TimePicker-module__timepickerDropdownBodyHours", Br = "mc__TimePicker-module__timepickerDropdownBodyMinutes", Wr = "mc__TimePicker-module__timepickerDropdownBodyAmPm", Fr = "mc__TimePicker-module__timepickerDropdownFooter", fe = {
|
|
1576
1587
|
timepickerWrapper: Tr,
|
|
1577
|
-
timepickerInputWrapper:
|
|
1578
|
-
dropdownRightIcon:
|
|
1588
|
+
timepickerInputWrapper: xr,
|
|
1589
|
+
dropdownRightIcon: Ir,
|
|
1579
1590
|
dropdownRightIconClose: Nr,
|
|
1580
1591
|
dropdownRightIconArrow: $r,
|
|
1581
1592
|
focused: Mr,
|
|
@@ -1598,118 +1609,118 @@ var Tt = { exports: {} };
|
|
|
1598
1609
|
(function(o, r) {
|
|
1599
1610
|
t.exports = r();
|
|
1600
1611
|
})(Er, function() {
|
|
1601
|
-
var o = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/,
|
|
1612
|
+
var o = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, m = /\d\d/, s = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, y = {}, W = function(c) {
|
|
1602
1613
|
return (c = +c) + (c > 68 ? 1900 : 2e3);
|
|
1603
|
-
},
|
|
1614
|
+
}, C = function(c) {
|
|
1604
1615
|
return function(_) {
|
|
1605
1616
|
this[c] = +_;
|
|
1606
1617
|
};
|
|
1607
|
-
},
|
|
1618
|
+
}, x = [/[+-]\d\d:?(\d\d)?|Z/, function(c) {
|
|
1608
1619
|
(this.zone || (this.zone = {})).offset = function(_) {
|
|
1609
1620
|
if (!_ || _ === "Z") return 0;
|
|
1610
|
-
var
|
|
1611
|
-
return
|
|
1621
|
+
var g = _.match(/([+-]|\d\d)/g), w = 60 * g[1] + (+g[2] || 0);
|
|
1622
|
+
return w === 0 ? 0 : g[0] === "+" ? -w : w;
|
|
1612
1623
|
}(c);
|
|
1613
|
-
}],
|
|
1624
|
+
}], L = function(c) {
|
|
1614
1625
|
var _ = y[c];
|
|
1615
1626
|
return _ && (_.indexOf ? _ : _.s.concat(_.f));
|
|
1616
|
-
},
|
|
1617
|
-
var
|
|
1618
|
-
if (
|
|
1619
|
-
for (var K = 1; K <= 24; K += 1) if (c.indexOf(
|
|
1620
|
-
|
|
1627
|
+
}, M = function(c, _) {
|
|
1628
|
+
var g, w = y.meridiem;
|
|
1629
|
+
if (w) {
|
|
1630
|
+
for (var K = 1; K <= 24; K += 1) if (c.indexOf(w(K, 0, _)) > -1) {
|
|
1631
|
+
g = K > 12;
|
|
1621
1632
|
break;
|
|
1622
1633
|
}
|
|
1623
|
-
} else
|
|
1624
|
-
return
|
|
1625
|
-
},
|
|
1626
|
-
this.afternoon =
|
|
1634
|
+
} else g = c === (_ ? "pm" : "PM");
|
|
1635
|
+
return g;
|
|
1636
|
+
}, D = { A: [i, function(c) {
|
|
1637
|
+
this.afternoon = M(c, !1);
|
|
1627
1638
|
}], a: [i, function(c) {
|
|
1628
|
-
this.afternoon =
|
|
1639
|
+
this.afternoon = M(c, !0);
|
|
1629
1640
|
}], Q: [a, function(c) {
|
|
1630
1641
|
this.month = 3 * (c - 1) + 1;
|
|
1631
1642
|
}], S: [a, function(c) {
|
|
1632
1643
|
this.milliseconds = 100 * +c;
|
|
1633
|
-
}], SS: [
|
|
1644
|
+
}], SS: [m, function(c) {
|
|
1634
1645
|
this.milliseconds = 10 * +c;
|
|
1635
1646
|
}], SSS: [/\d{3}/, function(c) {
|
|
1636
1647
|
this.milliseconds = +c;
|
|
1637
|
-
}], s: [s,
|
|
1638
|
-
var _ = y.ordinal,
|
|
1639
|
-
if (this.day =
|
|
1640
|
-
}], w: [s,
|
|
1641
|
-
var _ =
|
|
1642
|
-
return
|
|
1648
|
+
}], s: [s, C("seconds")], ss: [s, C("seconds")], m: [s, C("minutes")], mm: [s, C("minutes")], H: [s, C("hours")], h: [s, C("hours")], HH: [s, C("hours")], hh: [s, C("hours")], D: [s, C("day")], DD: [m, C("day")], Do: [i, function(c) {
|
|
1649
|
+
var _ = y.ordinal, g = c.match(/\d+/);
|
|
1650
|
+
if (this.day = g[0], _) for (var w = 1; w <= 31; w += 1) _(w).replace(/\[|\]/g, "") === c && (this.day = w);
|
|
1651
|
+
}], w: [s, C("week")], ww: [m, C("week")], M: [s, C("month")], MM: [m, C("month")], MMM: [i, function(c) {
|
|
1652
|
+
var _ = L("months"), g = (L("monthsShort") || _.map(function(w) {
|
|
1653
|
+
return w.slice(0, 3);
|
|
1643
1654
|
})).indexOf(c) + 1;
|
|
1644
|
-
if (
|
|
1645
|
-
this.month =
|
|
1655
|
+
if (g < 1) throw new Error();
|
|
1656
|
+
this.month = g % 12 || g;
|
|
1646
1657
|
}], MMMM: [i, function(c) {
|
|
1647
|
-
var _ =
|
|
1658
|
+
var _ = L("months").indexOf(c) + 1;
|
|
1648
1659
|
if (_ < 1) throw new Error();
|
|
1649
1660
|
this.month = _ % 12 || _;
|
|
1650
|
-
}], Y: [/[+-]?\d+/,
|
|
1661
|
+
}], Y: [/[+-]?\d+/, C("year")], YY: [m, function(c) {
|
|
1651
1662
|
this.year = W(c);
|
|
1652
|
-
}], YYYY: [/\d{4}/,
|
|
1663
|
+
}], YYYY: [/\d{4}/, C("year")], Z: x, ZZ: x };
|
|
1653
1664
|
function p(c) {
|
|
1654
|
-
var _,
|
|
1655
|
-
_ = c,
|
|
1656
|
-
for (var
|
|
1657
|
-
var q =
|
|
1658
|
-
return
|
|
1659
|
-
return
|
|
1665
|
+
var _, g;
|
|
1666
|
+
_ = c, g = y && y.formats;
|
|
1667
|
+
for (var w = (c = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Q, Z, A) {
|
|
1668
|
+
var q = A && A.toUpperCase();
|
|
1669
|
+
return Z || g[A] || o[A] || g[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(E, I, v) {
|
|
1670
|
+
return I || v.slice(1);
|
|
1660
1671
|
});
|
|
1661
|
-
})).match(r), K =
|
|
1662
|
-
var
|
|
1663
|
-
|
|
1672
|
+
})).match(r), K = w.length, Y = 0; Y < K; Y += 1) {
|
|
1673
|
+
var F = w[Y], G = D[F], te = G && G[0], P = G && G[1];
|
|
1674
|
+
w[Y] = P ? { regex: te, parser: P } : F.replace(/^\[|\]$/g, "");
|
|
1664
1675
|
}
|
|
1665
|
-
return function(
|
|
1666
|
-
for (var
|
|
1667
|
-
var
|
|
1668
|
-
if (typeof
|
|
1676
|
+
return function(Q) {
|
|
1677
|
+
for (var Z = {}, A = 0, q = 0; A < K; A += 1) {
|
|
1678
|
+
var E = w[A];
|
|
1679
|
+
if (typeof E == "string") q += E.length;
|
|
1669
1680
|
else {
|
|
1670
|
-
var
|
|
1671
|
-
|
|
1681
|
+
var I = E.regex, v = E.parser, u = Q.slice(q), h = I.exec(u)[0];
|
|
1682
|
+
v.call(Z, h), Q = Q.replace(h, "");
|
|
1672
1683
|
}
|
|
1673
1684
|
}
|
|
1674
|
-
return function(
|
|
1675
|
-
var
|
|
1676
|
-
if (
|
|
1677
|
-
var
|
|
1678
|
-
|
|
1685
|
+
return function(b) {
|
|
1686
|
+
var $ = b.afternoon;
|
|
1687
|
+
if ($ !== void 0) {
|
|
1688
|
+
var O = b.hours;
|
|
1689
|
+
$ ? O < 12 && (b.hours += 12) : O === 12 && (b.hours = 0), delete b.afternoon;
|
|
1679
1690
|
}
|
|
1680
|
-
}(
|
|
1691
|
+
}(Z), Z;
|
|
1681
1692
|
};
|
|
1682
1693
|
}
|
|
1683
|
-
return function(c, _,
|
|
1684
|
-
|
|
1685
|
-
var
|
|
1686
|
-
|
|
1687
|
-
var
|
|
1688
|
-
this.$u =
|
|
1689
|
-
var
|
|
1690
|
-
if (typeof
|
|
1691
|
-
var
|
|
1692
|
-
|
|
1694
|
+
return function(c, _, g) {
|
|
1695
|
+
g.p.customParseFormat = !0, c && c.parseTwoDigitYear && (W = c.parseTwoDigitYear);
|
|
1696
|
+
var w = _.prototype, K = w.parse;
|
|
1697
|
+
w.parse = function(Y) {
|
|
1698
|
+
var F = Y.date, G = Y.utc, te = Y.args;
|
|
1699
|
+
this.$u = G;
|
|
1700
|
+
var P = te[1];
|
|
1701
|
+
if (typeof P == "string") {
|
|
1702
|
+
var Q = te[2] === !0, Z = te[3] === !0, A = Q || Z, q = te[2];
|
|
1703
|
+
Z && (q = te[2]), y = this.$locale(), !Q && q && (y = g.Ls[q]), this.$d = function(u, h, b, $) {
|
|
1693
1704
|
try {
|
|
1694
|
-
if (["x", "X"].indexOf(
|
|
1695
|
-
var
|
|
1696
|
-
|
|
1697
|
-
var ae,
|
|
1698
|
-
return
|
|
1705
|
+
if (["x", "X"].indexOf(h) > -1) return new Date((h === "X" ? 1e3 : 1) * u);
|
|
1706
|
+
var O = p(h)(u), ie = O.year, oe = O.month, he = O.day, ne = O.hours, ee = O.minutes, pe = O.seconds, le = O.milliseconds, ue = O.zone, j = O.week, T = /* @__PURE__ */ new Date(), f = he || (ie || oe ? 1 : T.getDate()), S = ie || T.getFullYear(), H = 0;
|
|
1707
|
+
ie && !oe || (H = oe > 0 ? oe - 1 : T.getMonth());
|
|
1708
|
+
var ae, re = ne || 0, ge = ee || 0, _e = pe || 0, we = le || 0;
|
|
1709
|
+
return ue ? new Date(Date.UTC(S, H, f, re, ge, _e, we + 60 * ue.offset * 1e3)) : b ? new Date(Date.UTC(S, H, f, re, ge, _e, we)) : (ae = new Date(S, H, f, re, ge, _e, we), j && (ae = $(ae).week(j).toDate()), ae);
|
|
1699
1710
|
} catch {
|
|
1700
1711
|
return /* @__PURE__ */ new Date("");
|
|
1701
1712
|
}
|
|
1702
|
-
}(
|
|
1703
|
-
} else if (
|
|
1704
|
-
|
|
1705
|
-
var
|
|
1706
|
-
if (
|
|
1707
|
-
this.$d =
|
|
1713
|
+
}(F, P, G, g), this.init(), q && q !== !0 && (this.$L = this.locale(q).$L), A && F != this.format(P) && (this.$d = /* @__PURE__ */ new Date("")), y = {};
|
|
1714
|
+
} else if (P instanceof Array) for (var E = P.length, I = 1; I <= E; I += 1) {
|
|
1715
|
+
te[1] = P[I - 1];
|
|
1716
|
+
var v = g.apply(this, te);
|
|
1717
|
+
if (v.isValid()) {
|
|
1718
|
+
this.$d = v.$d, this.$L = v.$L, this.init();
|
|
1708
1719
|
break;
|
|
1709
1720
|
}
|
|
1710
|
-
|
|
1721
|
+
I === E && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1711
1722
|
}
|
|
1712
|
-
else K.call(this,
|
|
1723
|
+
else K.call(this, Y);
|
|
1713
1724
|
};
|
|
1714
1725
|
};
|
|
1715
1726
|
});
|
|
@@ -1723,90 +1734,90 @@ const at = ({
|
|
|
1723
1734
|
defaultAmPm: o = "AM",
|
|
1724
1735
|
withConfirm: r = !0,
|
|
1725
1736
|
mode: a = "single",
|
|
1726
|
-
closeOnScroll:
|
|
1737
|
+
closeOnScroll: m = !1,
|
|
1727
1738
|
onChange: s,
|
|
1728
1739
|
onFocus: i,
|
|
1729
1740
|
onBlur: y,
|
|
1730
1741
|
...W
|
|
1731
1742
|
}) => {
|
|
1732
|
-
const
|
|
1733
|
-
if (!
|
|
1734
|
-
const
|
|
1735
|
-
if (!u || !
|
|
1736
|
-
const
|
|
1737
|
-
u.style.position = "fixed",
|
|
1738
|
-
},
|
|
1743
|
+
const C = se(null), x = se(null), [L, M] = B(!1), [D, p] = B(n), c = Array.from({ length: 12 }, (v, u) => u < 10 ? `0${u}` : `${u}`), _ = Array.from({ length: 24 }, (v, u) => u < 10 ? `0${u}` : `${u}`), g = Array.from({ length: 60 }, (v, u) => u < 10 ? `0${u}` : `${u}`), [w, K] = B(""), [Y, F] = B(null), [G, te] = B(null), [P, Q] = B(o), Z = () => {
|
|
1744
|
+
if (!C.current || !x.current) return;
|
|
1745
|
+
const v = C.current, u = x.current;
|
|
1746
|
+
if (!u || !v) return;
|
|
1747
|
+
const h = v.getBoundingClientRect(), b = window.innerHeight, $ = window.innerWidth;
|
|
1748
|
+
u.style.position = "fixed", h.bottom + u.offsetHeight > b ? (u.style.top = `${h.top - u.offsetHeight + 20}px`, u.style.bottom = "unset") : (u.style.top = `${h.bottom + 8}px`, u.style.bottom = "unset"), h.right + h.width > $ - 120 ? u.style.left = `${h.left + h.width - u.offsetWidth}px` : u.style.left = `${h.left}px`;
|
|
1749
|
+
}, A = () => {
|
|
1739
1750
|
requestAnimationFrame(() => {
|
|
1740
|
-
|
|
1751
|
+
Z();
|
|
1741
1752
|
});
|
|
1742
1753
|
}, q = () => {
|
|
1743
1754
|
i?.();
|
|
1744
|
-
},
|
|
1745
|
-
K(""),
|
|
1755
|
+
}, E = () => {
|
|
1756
|
+
K(""), te(null), F(null), Q("AM");
|
|
1746
1757
|
};
|
|
1747
|
-
|
|
1758
|
+
J(() => {
|
|
1748
1759
|
t && t.length > 0 && K(t);
|
|
1749
|
-
}, [t]),
|
|
1750
|
-
if (!
|
|
1751
|
-
const
|
|
1752
|
-
K(
|
|
1753
|
-
}, [
|
|
1754
|
-
const
|
|
1755
|
-
return
|
|
1756
|
-
if (
|
|
1757
|
-
|
|
1760
|
+
}, [t]), J(() => {
|
|
1761
|
+
if (!G && !Y) return;
|
|
1762
|
+
const v = parseInt(G ?? "0", 10), u = parseInt(Y ?? "0", 10), h = D === "12" ? P === "PM" && v < 12 ? v + 12 : P === "AM" && v === 12 ? 0 : v : v, b = N().hour(h).minute(u).format(D === "12" ? "hh:mm A" : "HH:mm");
|
|
1763
|
+
K(b), r || s?.(b);
|
|
1764
|
+
}, [G, Y, P, D]);
|
|
1765
|
+
const I = se(!0);
|
|
1766
|
+
return J(() => {
|
|
1767
|
+
if (I.current) {
|
|
1768
|
+
I.current = !1;
|
|
1758
1769
|
return;
|
|
1759
1770
|
}
|
|
1760
|
-
|
|
1761
|
-
}, [
|
|
1762
|
-
|
|
1763
|
-
}, [
|
|
1764
|
-
const
|
|
1765
|
-
!
|
|
1766
|
-
}, u = (
|
|
1767
|
-
!
|
|
1768
|
-
},
|
|
1769
|
-
|
|
1771
|
+
L || y?.();
|
|
1772
|
+
}, [L]), J(() => {
|
|
1773
|
+
A();
|
|
1774
|
+
}, [C, L]), J(() => {
|
|
1775
|
+
const v = (b) => {
|
|
1776
|
+
!C.current || !x.current || b.composedPath().includes(C.current) || b.composedPath().includes(x.current) || M(!1);
|
|
1777
|
+
}, u = (b) => {
|
|
1778
|
+
!C.current || x.current || M(!1);
|
|
1779
|
+
}, h = () => {
|
|
1780
|
+
L && A();
|
|
1770
1781
|
};
|
|
1771
|
-
return document.addEventListener("click",
|
|
1772
|
-
document.removeEventListener("click",
|
|
1782
|
+
return document.addEventListener("click", v), document.addEventListener("wheel", u), window.addEventListener("scroll", h), () => {
|
|
1783
|
+
document.removeEventListener("click", v), document.removeEventListener("wheel", u), window.removeEventListener("scroll", h);
|
|
1773
1784
|
};
|
|
1774
|
-
}, [
|
|
1775
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1785
|
+
}, [L]), /* @__PURE__ */ l("div", { className: `${fe.timepickerWrapper} ${L ? fe.focused : ""}`, children: [
|
|
1786
|
+
/* @__PURE__ */ e("div", { ref: C, className: fe.timepickerInputWrapper, onClick: () => (M((v) => !v), A()), onFocus: q, children: /* @__PURE__ */ e(
|
|
1776
1787
|
Re,
|
|
1777
1788
|
{
|
|
1778
1789
|
...W,
|
|
1779
|
-
onFocusChange: (
|
|
1780
|
-
customFocus:
|
|
1790
|
+
onFocusChange: (v) => M(v),
|
|
1791
|
+
customFocus: L,
|
|
1781
1792
|
withActive: !1,
|
|
1782
|
-
value:
|
|
1793
|
+
value: w,
|
|
1783
1794
|
toggleFocus: !0,
|
|
1784
1795
|
formInputStyle: { cursor: "pointer" },
|
|
1785
|
-
rightSlot: /* @__PURE__ */ l("div", { className: `${
|
|
1786
|
-
|
|
1796
|
+
rightSlot: /* @__PURE__ */ l("div", { className: `${fe.dropdownRightIcon} ${L ? fe.focused : ""}`, children: [
|
|
1797
|
+
w && /* @__PURE__ */ e(
|
|
1787
1798
|
"div",
|
|
1788
1799
|
{
|
|
1789
|
-
onClick: (
|
|
1790
|
-
|
|
1800
|
+
onClick: (v) => {
|
|
1801
|
+
v.stopPropagation(), E();
|
|
1791
1802
|
},
|
|
1792
|
-
className:
|
|
1803
|
+
className: fe.dropdownRightIconClose,
|
|
1793
1804
|
children: /* @__PURE__ */ e(Ke, {})
|
|
1794
1805
|
}
|
|
1795
1806
|
),
|
|
1796
|
-
/* @__PURE__ */ e("div", { className:
|
|
1807
|
+
/* @__PURE__ */ e("div", { className: fe.dropdownRightIconArrow, children: /* @__PURE__ */ e(ze, {}) })
|
|
1797
1808
|
] }),
|
|
1798
1809
|
readOnly: !0,
|
|
1799
1810
|
forDropdown: !0
|
|
1800
1811
|
}
|
|
1801
1812
|
) }),
|
|
1802
|
-
|
|
1803
|
-
/* @__PURE__ */ e("div", { className:
|
|
1813
|
+
L && /* @__PURE__ */ l("div", { ref: x, className: fe.timepickerDropdownWrapper, children: [
|
|
1814
|
+
/* @__PURE__ */ e("div", { className: fe.timepickerDropdownHeader, children: /* @__PURE__ */ l("div", { className: fe.timepickerDropdownHeaderButtons, children: [
|
|
1804
1815
|
/* @__PURE__ */ e(
|
|
1805
1816
|
"p",
|
|
1806
1817
|
{
|
|
1807
|
-
className:
|
|
1818
|
+
className: D === "12" ? fe.active : "",
|
|
1808
1819
|
onClick: () => {
|
|
1809
|
-
|
|
1820
|
+
E(), p("12");
|
|
1810
1821
|
},
|
|
1811
1822
|
children: "AM -PM"
|
|
1812
1823
|
}
|
|
@@ -1814,23 +1825,23 @@ const at = ({
|
|
|
1814
1825
|
/* @__PURE__ */ e(
|
|
1815
1826
|
"p",
|
|
1816
1827
|
{
|
|
1817
|
-
className:
|
|
1828
|
+
className: D === "24" ? fe.active : "",
|
|
1818
1829
|
onClick: () => {
|
|
1819
|
-
|
|
1830
|
+
E(), p("24");
|
|
1820
1831
|
},
|
|
1821
1832
|
children: "24 Hours"
|
|
1822
1833
|
}
|
|
1823
1834
|
)
|
|
1824
1835
|
] }) }),
|
|
1825
|
-
/* @__PURE__ */ l("div", { className:
|
|
1826
|
-
/* @__PURE__ */ e("div", { className:
|
|
1827
|
-
/* @__PURE__ */ e("div", { className:
|
|
1828
|
-
|
|
1829
|
-
/* @__PURE__ */ e("p", { className:
|
|
1830
|
-
/* @__PURE__ */ e("p", { className:
|
|
1836
|
+
/* @__PURE__ */ l("div", { className: fe.timepickerDropdownBody, children: [
|
|
1837
|
+
/* @__PURE__ */ e("div", { className: fe.timepickerDropdownBodyHours, children: (D === "12" ? c : _).map((v) => /* @__PURE__ */ e("p", { className: G === v || w?.split(":")[0] === v ? fe.active : "", onClick: () => te(v), children: v }, v)) }),
|
|
1838
|
+
/* @__PURE__ */ e("div", { className: fe.timepickerDropdownBodyMinutes, children: g.map((v) => /* @__PURE__ */ e("p", { className: Y === v || w?.split(":")[1] === v ? fe.active : "", onClick: () => F(v), children: v }, v)) }),
|
|
1839
|
+
D === "12" && /* @__PURE__ */ l("div", { className: fe.timepickerDropdownBodyAmPm, children: [
|
|
1840
|
+
/* @__PURE__ */ e("p", { className: P === "AM" ? fe.active : "", onClick: () => Q("AM"), children: "AM" }, "AM"),
|
|
1841
|
+
/* @__PURE__ */ e("p", { className: P === "PM" ? fe.active : "", onClick: () => Q("PM"), children: "PM" }, "PM")
|
|
1831
1842
|
] })
|
|
1832
1843
|
] }),
|
|
1833
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
1844
|
+
r && /* @__PURE__ */ e("div", { className: fe.timepickerDropdownFooter, children: /* @__PURE__ */ e($e, { label: "Confirm time", onClick: () => s?.(w) }) })
|
|
1834
1845
|
] })
|
|
1835
1846
|
] });
|
|
1836
1847
|
};
|
|
@@ -1877,61 +1888,61 @@ const wi = ({
|
|
|
1877
1888
|
onChange: o,
|
|
1878
1889
|
CurrentMonth: r,
|
|
1879
1890
|
setCurrentMonth: a,
|
|
1880
|
-
SelectedDate:
|
|
1891
|
+
SelectedDate: m,
|
|
1881
1892
|
namespace: s,
|
|
1882
1893
|
customYears: i,
|
|
1883
1894
|
setSelectedDate: y,
|
|
1884
1895
|
IsFocused: W,
|
|
1885
|
-
setIsFocused:
|
|
1886
|
-
mode:
|
|
1887
|
-
RangeSelection:
|
|
1888
|
-
setRangeSelection:
|
|
1889
|
-
pickerType:
|
|
1896
|
+
setIsFocused: C,
|
|
1897
|
+
mode: x,
|
|
1898
|
+
RangeSelection: L,
|
|
1899
|
+
setRangeSelection: M,
|
|
1900
|
+
pickerType: D,
|
|
1890
1901
|
disabledDatesRange: p,
|
|
1891
1902
|
disabledDatesTill: c,
|
|
1892
1903
|
disabledDatesFrom: _,
|
|
1893
|
-
CalendarRef:
|
|
1894
|
-
defaultValue:
|
|
1904
|
+
CalendarRef: g,
|
|
1905
|
+
defaultValue: w,
|
|
1895
1906
|
selectedStyle: K,
|
|
1896
|
-
endDateStyle:
|
|
1897
|
-
startDateStyle:
|
|
1898
|
-
inRangeStyle:
|
|
1899
|
-
otherMonthStyle:
|
|
1900
|
-
todayStyle:
|
|
1901
|
-
weekDayStyle:
|
|
1902
|
-
quickPickStyle:
|
|
1903
|
-
monthStyle:
|
|
1907
|
+
endDateStyle: Y,
|
|
1908
|
+
startDateStyle: F,
|
|
1909
|
+
inRangeStyle: G,
|
|
1910
|
+
otherMonthStyle: te,
|
|
1911
|
+
todayStyle: P,
|
|
1912
|
+
weekDayStyle: Q,
|
|
1913
|
+
quickPickStyle: Z,
|
|
1914
|
+
monthStyle: A
|
|
1904
1915
|
}) => {
|
|
1905
|
-
const q = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
|
|
1916
|
+
const q = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], E = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1906
1917
|
N().year();
|
|
1907
|
-
const [
|
|
1918
|
+
const [I, v] = B(""), u = se([]), [h, b] = B(!1), $ = (T) => {
|
|
1908
1919
|
if (i?.length && !i.includes(T.year().toString()))
|
|
1909
1920
|
return [];
|
|
1910
|
-
const f = (T.startOf("month").day() + 6) % 7,
|
|
1911
|
-
let
|
|
1921
|
+
const f = (T.startOf("month").day() + 6) % 7, S = T.endOf("month").date(), H = T.subtract(1, "month").endOf("month").date(), ae = [];
|
|
1922
|
+
let re = [], ge = 1;
|
|
1912
1923
|
for (let we = 0; we < f; we++)
|
|
1913
|
-
|
|
1914
|
-
date: T.subtract(1, "month").date(
|
|
1924
|
+
re.push({
|
|
1925
|
+
date: T.subtract(1, "month").date(H - f + we + 1),
|
|
1915
1926
|
currentMonth: !1
|
|
1916
1927
|
});
|
|
1917
|
-
for (; ge <=
|
|
1918
|
-
|
|
1928
|
+
for (; ge <= S; )
|
|
1929
|
+
re.push({ date: T.date(ge++), currentMonth: !0 }), re.length === 7 && (ae.push(re), re = []);
|
|
1919
1930
|
let _e = 1;
|
|
1920
1931
|
for (; ae.length < 5; )
|
|
1921
|
-
|
|
1932
|
+
re.length === 7 && (ae.push(re), re = []), re.push({
|
|
1922
1933
|
date: T.add(1, "month").date(_e++),
|
|
1923
1934
|
currentMonth: !1
|
|
1924
1935
|
});
|
|
1925
|
-
if (
|
|
1926
|
-
for (;
|
|
1927
|
-
|
|
1936
|
+
if (re.length) {
|
|
1937
|
+
for (; re.length < 7; )
|
|
1938
|
+
re.push({
|
|
1928
1939
|
date: T.add(1, "month").date(_e++),
|
|
1929
1940
|
currentMonth: !1
|
|
1930
1941
|
});
|
|
1931
|
-
ae.push(
|
|
1942
|
+
ae.push(re);
|
|
1932
1943
|
}
|
|
1933
1944
|
return ae;
|
|
1934
|
-
},
|
|
1945
|
+
}, O = $(r), ie = D === "dual" ? $(r.add(1, "month")) : null, oe = () => {
|
|
1935
1946
|
let T = [];
|
|
1936
1947
|
return n && Array.isArray(n) && n.length > 0 && n.forEach((f) => {
|
|
1937
1948
|
switch (f) {
|
|
@@ -1964,59 +1975,59 @@ const wi = ({
|
|
|
1964
1975
|
break;
|
|
1965
1976
|
}
|
|
1966
1977
|
}), u.current = bt(u.current, "key"), T = u.current, T;
|
|
1967
|
-
},
|
|
1978
|
+
}, he = (T) => {
|
|
1968
1979
|
let f = { start: "", end: "" };
|
|
1969
1980
|
switch (y(null), T.key?.toLowerCase()) {
|
|
1970
1981
|
case "today":
|
|
1971
|
-
|
|
1982
|
+
M({
|
|
1972
1983
|
start: N(),
|
|
1973
1984
|
end: N()
|
|
1974
1985
|
}), f.start = N();
|
|
1975
1986
|
break;
|
|
1976
1987
|
case "yesterday":
|
|
1977
|
-
y(N().subtract(1, "day")),
|
|
1988
|
+
y(N().subtract(1, "day")), M({
|
|
1978
1989
|
start: N().subtract(1, "day"),
|
|
1979
1990
|
end: N().subtract(1, "day")
|
|
1980
1991
|
}), f.start = N().subtract(1, "day");
|
|
1981
1992
|
break;
|
|
1982
1993
|
case "thisweek":
|
|
1983
|
-
|
|
1994
|
+
M({
|
|
1984
1995
|
start: N().startOf("week"),
|
|
1985
1996
|
end: N().endOf("week")
|
|
1986
1997
|
}), f.start = N().startOf("week"), f.end = N().endOf("week");
|
|
1987
1998
|
break;
|
|
1988
1999
|
case "lastweek":
|
|
1989
|
-
|
|
2000
|
+
M({
|
|
1990
2001
|
start: N().subtract(1, "week").startOf("week"),
|
|
1991
2002
|
end: N().subtract(1, "week").endOf("week")
|
|
1992
2003
|
}), f.start = N().subtract(1, "week").startOf("week"), f.end = N().subtract(1, "week").endOf("week");
|
|
1993
2004
|
break;
|
|
1994
2005
|
case "thismonth":
|
|
1995
|
-
|
|
2006
|
+
M({
|
|
1996
2007
|
start: N().startOf("month"),
|
|
1997
2008
|
end: N().endOf("month")
|
|
1998
2009
|
}), f.start = N().startOf("month"), f.end = N().endOf("month");
|
|
1999
2010
|
break;
|
|
2000
2011
|
case "lastmonth":
|
|
2001
|
-
|
|
2012
|
+
M({
|
|
2002
2013
|
start: N().subtract(1, "month").startOf("month"),
|
|
2003
2014
|
end: N().subtract(1, "month").endOf("month")
|
|
2004
2015
|
}), f.start = N().subtract(1, "month").startOf("month"), f.end = N().subtract(1, "month").endOf("month");
|
|
2005
2016
|
break;
|
|
2006
2017
|
case "thisyear":
|
|
2007
|
-
|
|
2018
|
+
M({
|
|
2008
2019
|
start: N().startOf("year"),
|
|
2009
2020
|
end: N().endOf("year")
|
|
2010
2021
|
}), f.start = N().startOf("year"), f.end = N().endOf("year");
|
|
2011
2022
|
break;
|
|
2012
2023
|
case "lastyear":
|
|
2013
|
-
|
|
2024
|
+
M({
|
|
2014
2025
|
start: N().subtract(1, "year").startOf("year"),
|
|
2015
2026
|
end: N().subtract(1, "year").endOf("year")
|
|
2016
2027
|
}), f.start = N().subtract(1, "year").startOf("year"), f.end = N().subtract(1, "year").endOf("year");
|
|
2017
2028
|
break;
|
|
2018
2029
|
case "alltime":
|
|
2019
|
-
|
|
2030
|
+
M({
|
|
2020
2031
|
start: "",
|
|
2021
2032
|
end: ""
|
|
2022
2033
|
}), f.start = "", f.end = "";
|
|
@@ -2026,59 +2037,59 @@ const wi = ({
|
|
|
2026
2037
|
break;
|
|
2027
2038
|
}
|
|
2028
2039
|
if (o && typeof o == "function") {
|
|
2029
|
-
const
|
|
2040
|
+
const S = {
|
|
2030
2041
|
start: f.start ? f.start : "",
|
|
2031
2042
|
end: f.end ? f.end : ""
|
|
2032
2043
|
};
|
|
2033
|
-
|
|
2044
|
+
C(!1), o(S.end === "" ? S.start : S);
|
|
2034
2045
|
}
|
|
2035
|
-
},
|
|
2036
|
-
},
|
|
2037
|
-
f || a(T.startOf("month")),
|
|
2046
|
+
}, ne = () => {
|
|
2047
|
+
}, ee = (T, f, S = !1) => {
|
|
2048
|
+
f || a(T.startOf("month")), x === "range" ? M((H) => !H.start || H.start && H.end ? (o && typeof o == "function" && o({
|
|
2038
2049
|
start: T ?? "",
|
|
2039
2050
|
end: ""
|
|
2040
|
-
}), { start: T ?? "", end: "" }) :
|
|
2051
|
+
}), { start: T ?? "", end: "" }) : H.start && !H.end ? T.isBefore(H.start, "day") ? (o && typeof o == "function" && o({
|
|
2041
2052
|
start: T ?? "",
|
|
2042
|
-
end:
|
|
2043
|
-
}), { start: T ?? "", end:
|
|
2044
|
-
...
|
|
2053
|
+
end: H?.start ?? ""
|
|
2054
|
+
}), { start: T ?? "", end: H?.start ?? "" }) : (o({
|
|
2055
|
+
...H,
|
|
2045
2056
|
end: T ?? ""
|
|
2046
|
-
}), { ...
|
|
2047
|
-
},
|
|
2057
|
+
}), { ...H, end: T ?? "" }) : H) : (M({ start: null, end: null }), y(T), S || (C(!1), o && typeof o == "function" && o(T.format(t))));
|
|
2058
|
+
}, pe = () => {
|
|
2048
2059
|
a(r.add(1, "month"));
|
|
2049
|
-
},
|
|
2060
|
+
}, le = () => {
|
|
2050
2061
|
a(r.subtract(1, "month"));
|
|
2051
|
-
},
|
|
2062
|
+
}, ue = () => {
|
|
2052
2063
|
a(r.add(1, "year"));
|
|
2053
|
-
},
|
|
2064
|
+
}, j = () => {
|
|
2054
2065
|
a(r.subtract(1, "year"));
|
|
2055
2066
|
};
|
|
2056
|
-
return
|
|
2057
|
-
|
|
2067
|
+
return J(() => {
|
|
2068
|
+
w?.state && (Array.isArray(w?.value) ? M({ start: N(w?.value[0], t), end: N(w?.value[1], t) }) : ee(N(w.value), !1, !0), w.state = !1);
|
|
2058
2069
|
}, []), /* @__PURE__ */ e(
|
|
2059
2070
|
"div",
|
|
2060
2071
|
{
|
|
2061
|
-
ref:
|
|
2062
|
-
className: `${s === "namespaceHr" ? X.namespaceHr : ""} ${X.datePicker} ${W ? X.focused : ""} ${
|
|
2072
|
+
ref: g,
|
|
2073
|
+
className: `${s === "namespaceHr" ? X.namespaceHr : ""} ${X.datePicker} ${W ? X.focused : ""} ${D === "dual" ? n && Array.isArray(n) && n.length > 0 ? X.dualCalendarWithQuick : X.dualCalendar : ""} `,
|
|
2063
2074
|
onClick: (T) => T.stopPropagation(),
|
|
2064
|
-
style:
|
|
2075
|
+
style: D === "dual" && n && Array.isArray(n) && n.length > 0 ? { width: "848px" } : {},
|
|
2065
2076
|
children: /* @__PURE__ */ l("div", { className: X.div, children: [
|
|
2066
|
-
|
|
2077
|
+
D === "dual" ? /* @__PURE__ */ l("div", { style: { width: "100%", display: "flex", justifyContent: "space-between" }, children: [
|
|
2067
2078
|
/* @__PURE__ */ l("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-start", gap: "80px" }, children: [
|
|
2068
2079
|
/* @__PURE__ */ l("div", { className: X.left, children: [
|
|
2069
|
-
(!i || i.length > 1) && (!i || r.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick:
|
|
2080
|
+
(!i || i.length > 1) && (!i || r.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick: j, children: [
|
|
2070
2081
|
/* @__PURE__ */ e(We, {}),
|
|
2071
2082
|
/* @__PURE__ */ e(We, {})
|
|
2072
2083
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2073
|
-
!i || i && r.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick:
|
|
2084
|
+
!i || i && r.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: le, children: /* @__PURE__ */ e(We, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2074
2085
|
] }),
|
|
2075
|
-
/* @__PURE__ */ e("div", { style:
|
|
2086
|
+
/* @__PURE__ */ e("div", { style: A ?? {}, children: i && i.length === 1 ? r.format("MMMM") : r.format("MMMM YYYY") })
|
|
2076
2087
|
] }),
|
|
2077
2088
|
/* @__PURE__ */ l("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-end", gap: "80px" }, children: [
|
|
2078
|
-
/* @__PURE__ */ e("span", { style:
|
|
2089
|
+
/* @__PURE__ */ e("span", { style: A ?? {}, children: i && i.length === 1 ? r.add(1, "month").format("MMMM") : r.add(1, "month").format("MMMM YYYY") }),
|
|
2079
2090
|
/* @__PURE__ */ l("div", { className: X.right, children: [
|
|
2080
|
-
!i || i && r.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick:
|
|
2081
|
-
(!i || i.length > 1) && (!i || r.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick:
|
|
2091
|
+
!i || i && r.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: pe, children: /* @__PURE__ */ e(Fe, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2092
|
+
(!i || i.length > 1) && (!i || r.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick: ue, children: [
|
|
2082
2093
|
/* @__PURE__ */ e(Fe, {}),
|
|
2083
2094
|
/* @__PURE__ */ e(Fe, {})
|
|
2084
2095
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
@@ -2087,96 +2098,96 @@ const wi = ({
|
|
|
2087
2098
|
] }) : /* @__PURE__ */ l("div", { className: X.datePickerHeader, children: [
|
|
2088
2099
|
/* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
2089
2100
|
/* @__PURE__ */ l("div", { className: X.left, children: [
|
|
2090
|
-
(!i || i.length > 1) && (!i || r.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick:
|
|
2101
|
+
(!i || i.length > 1) && (!i || r.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick: j, children: [
|
|
2091
2102
|
/* @__PURE__ */ e(We, {}),
|
|
2092
2103
|
/* @__PURE__ */ e(We, {})
|
|
2093
2104
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2094
|
-
!i || i && r.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick:
|
|
2105
|
+
!i || i && r.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: le, children: /* @__PURE__ */ e(We, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2095
2106
|
] }),
|
|
2096
|
-
/* @__PURE__ */ e("div", { className: X.currentDateHeader, style:
|
|
2107
|
+
/* @__PURE__ */ e("div", { className: X.currentDateHeader, style: A ?? {}, onClick: ne, children: i && i.length === 1 ? r.format("MMMM") : r.format("MMMM YYYY") }),
|
|
2097
2108
|
/* @__PURE__ */ l("div", { className: X.right, children: [
|
|
2098
|
-
!i || i && r.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick:
|
|
2099
|
-
(!i || i.length > 1) && (!i || r.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick:
|
|
2109
|
+
!i || i && r.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: pe, children: /* @__PURE__ */ e(Fe, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2110
|
+
(!i || i.length > 1) && (!i || r.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ l("div", { className: X.doubleIcon, onClick: ue, children: [
|
|
2100
2111
|
/* @__PURE__ */ e(Fe, {}),
|
|
2101
2112
|
/* @__PURE__ */ e(Fe, {})
|
|
2102
2113
|
] }) : /* @__PURE__ */ e("div", { className: X.doubleIcon })
|
|
2103
2114
|
] })
|
|
2104
2115
|
] }),
|
|
2105
|
-
|
|
2116
|
+
D === "single" && n && Array.isArray(n) && n.length > 0 && /* @__PURE__ */ e("ul", { className: X.quickPick, children: oe().slice(0, 3).map((T) => /* @__PURE__ */ e("li", { style: Z ?? {}, onClick: () => he(T), children: T.name }, T.key)) })
|
|
2106
2117
|
] }),
|
|
2107
2118
|
/* @__PURE__ */ l("div", { className: X.calendarWrapper, children: [
|
|
2108
|
-
|
|
2109
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: q.map((T) => /* @__PURE__ */ e("th", { style:
|
|
2119
|
+
h ? /* @__PURE__ */ e("ul", { className: X.monthsWrapper, children: E.map((T) => /* @__PURE__ */ e("li", { className: `${X.month} ${I === T ? X.pickedMonth : ""}`, onClick: () => v(T), children: /* @__PURE__ */ e("div", { className: X.monthName, children: T }) })) }) : /* @__PURE__ */ l("table", { children: [
|
|
2120
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: q.map((T) => /* @__PURE__ */ e("th", { style: Q ?? {}, children: T }, T)) }) }),
|
|
2110
2121
|
/* @__PURE__ */ l("tbody", { children: [
|
|
2111
2122
|
/* @__PURE__ */ e("tr", { className: X.spacerRow, children: /* @__PURE__ */ e("td", {}) }),
|
|
2112
|
-
|
|
2113
|
-
const
|
|
2123
|
+
O.map((T, f) => /* @__PURE__ */ e("tr", { children: T.map(({ date: S, currentMonth: H }, ae) => {
|
|
2124
|
+
const re = L.start && L.end && S.isAfter(L.start, "day") && S.isBefore(L.end, "day"), ge = L.start && S.isSame(L.start, "day"), _e = L.end && S.isSame(L.end, "day"), we = x === "single" && m && S.isSame(m, "day"), ve = c && S.isBefore(N(c), "day"), Te = _ && S.isAfter(N(_), "day");
|
|
2114
2125
|
let Ne = !1;
|
|
2115
2126
|
if (p?.length === 2) {
|
|
2116
|
-
const [d,
|
|
2117
|
-
Ne =
|
|
2127
|
+
const [d, U] = p.map((ce) => N(ce));
|
|
2128
|
+
Ne = S.isAfter(d.subtract(1, "day")) && S.isBefore(U.add(1, "day"));
|
|
2118
2129
|
}
|
|
2119
2130
|
const Me = Te || ve || Ne;
|
|
2120
2131
|
return /* @__PURE__ */ e(
|
|
2121
2132
|
"td",
|
|
2122
2133
|
{
|
|
2123
2134
|
style: {
|
|
2124
|
-
...
|
|
2125
|
-
...
|
|
2126
|
-
...
|
|
2127
|
-
...ge ?
|
|
2128
|
-
..._e ?
|
|
2135
|
+
...H ? {} : te,
|
|
2136
|
+
...S.isSame(N(), "day") ? P : {},
|
|
2137
|
+
...re ? G : {},
|
|
2138
|
+
...ge ? F : {},
|
|
2139
|
+
..._e ? Y : {},
|
|
2129
2140
|
...we ? K : {}
|
|
2130
2141
|
},
|
|
2131
2142
|
className: `${X.day}
|
|
2132
|
-
${
|
|
2133
|
-
${
|
|
2134
|
-
${
|
|
2135
|
-
${
|
|
2136
|
-
${
|
|
2137
|
-
${!
|
|
2143
|
+
${H ? "" : X.otherMonth}
|
|
2144
|
+
${H && S.isSame(N(), "day") ? X.today : ""}
|
|
2145
|
+
${H && re ? X.inRange : ""}
|
|
2146
|
+
${H && ge ? X.startDate : ""}
|
|
2147
|
+
${H && _e ? X.endDate : ""}
|
|
2148
|
+
${!H && !re && !_e ? "" : we ? X.selected : ""}
|
|
2138
2149
|
${Me ? X.disabled : ""}`,
|
|
2139
|
-
onClick: () =>
|
|
2140
|
-
children:
|
|
2150
|
+
onClick: () => ee(S, H),
|
|
2151
|
+
children: S.date()
|
|
2141
2152
|
},
|
|
2142
2153
|
ae
|
|
2143
2154
|
);
|
|
2144
2155
|
}) }, f))
|
|
2145
2156
|
] })
|
|
2146
2157
|
] }),
|
|
2147
|
-
/* @__PURE__ */ e("div", { className: X.buttonWrapper, children: /* @__PURE__ */ e($e, { label: "Current date", onClick: () =>
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: q.map((T) => /* @__PURE__ */ e("th", { style:
|
|
2151
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
2152
|
-
const
|
|
2158
|
+
/* @__PURE__ */ e("div", { className: X.buttonWrapper, children: /* @__PURE__ */ e($e, { label: "Current date", onClick: () => ee(N(), !0) }) }),
|
|
2159
|
+
D === "dual" && /* @__PURE__ */ e("div", { className: X.border }),
|
|
2160
|
+
D === "dual" && /* @__PURE__ */ l("table", { children: [
|
|
2161
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: q.map((T) => /* @__PURE__ */ e("th", { style: Q ?? {}, children: T }, T)) }) }),
|
|
2162
|
+
/* @__PURE__ */ e("tbody", { children: ie?.map((T, f) => /* @__PURE__ */ e("tr", { children: T.map(({ date: S, currentMonth: H }, ae) => {
|
|
2163
|
+
const re = L.start && L.end && S.isAfter(L.start, "day") && S.isBefore(L.end, "day"), ge = L.start && S.isSame(L.start, "day"), _e = L.end && S.isSame(L.end, "day"), we = x === "single" && m && S.isSame(m, "day"), ve = c && S.isBefore(N(c), "day"), Te = _ && S.isAfter(N(_), "day");
|
|
2153
2164
|
let Ne = !1;
|
|
2154
2165
|
if (p?.length === 2) {
|
|
2155
|
-
const [d,
|
|
2156
|
-
Ne =
|
|
2166
|
+
const [d, U] = p.map((ce) => N(ce));
|
|
2167
|
+
Ne = S.isAfter(d.subtract(1, "day")) && S.isBefore(U.add(1, "day"));
|
|
2157
2168
|
}
|
|
2158
2169
|
const Me = Te || ve || Ne;
|
|
2159
2170
|
return /* @__PURE__ */ e(
|
|
2160
2171
|
"td",
|
|
2161
2172
|
{
|
|
2162
2173
|
style: {
|
|
2163
|
-
...
|
|
2164
|
-
...
|
|
2165
|
-
...
|
|
2166
|
-
...ge ?
|
|
2167
|
-
..._e ?
|
|
2174
|
+
...H ? {} : te,
|
|
2175
|
+
...S.isSame(N(), "day") ? P : {},
|
|
2176
|
+
...re ? G : {},
|
|
2177
|
+
...ge ? F : {},
|
|
2178
|
+
..._e ? Y : {},
|
|
2168
2179
|
...we ? K : {}
|
|
2169
2180
|
},
|
|
2170
2181
|
className: `${X.day}
|
|
2171
|
-
${
|
|
2172
|
-
${
|
|
2173
|
-
${
|
|
2174
|
-
${
|
|
2175
|
-
${
|
|
2176
|
-
${!
|
|
2182
|
+
${H ? "" : X.otherMonth}
|
|
2183
|
+
${H && S.isSame(N(), "day") ? X.today : ""}
|
|
2184
|
+
${H && re ? X.inRange : ""}
|
|
2185
|
+
${H && ge ? X.startDate : ""}
|
|
2186
|
+
${H && _e ? X.endDate : ""}
|
|
2187
|
+
${!H && !re && !_e ? "" : we ? X.selected : ""}
|
|
2177
2188
|
${Me ? X.disabled : ""}`,
|
|
2178
|
-
onClick: () =>
|
|
2179
|
-
children:
|
|
2189
|
+
onClick: () => ee(S, H),
|
|
2190
|
+
children: S.date()
|
|
2180
2191
|
},
|
|
2181
2192
|
ae
|
|
2182
2193
|
);
|
|
@@ -2194,125 +2205,125 @@ const ct = ({
|
|
|
2194
2205
|
onChange: o,
|
|
2195
2206
|
onBlur: r,
|
|
2196
2207
|
onFocus: a,
|
|
2197
|
-
customYears:
|
|
2208
|
+
customYears: m,
|
|
2198
2209
|
fixedDropdown: s = !0,
|
|
2199
2210
|
disabledDatesFrom: i,
|
|
2200
2211
|
disabledDatesTill: y,
|
|
2201
2212
|
disabledDatesRange: W,
|
|
2202
|
-
datepickerStyle:
|
|
2203
|
-
datepickerLabelStyle:
|
|
2204
|
-
closeOnScroll:
|
|
2205
|
-
requiredStyle:
|
|
2206
|
-
datepickerHelperTextStyle:
|
|
2213
|
+
datepickerStyle: C,
|
|
2214
|
+
datepickerLabelStyle: x,
|
|
2215
|
+
closeOnScroll: L = !0,
|
|
2216
|
+
requiredStyle: M,
|
|
2217
|
+
datepickerHelperTextStyle: D,
|
|
2207
2218
|
selectedStyle: p,
|
|
2208
2219
|
endDateStyle: c,
|
|
2209
2220
|
startDateStyle: _,
|
|
2210
|
-
inRangeStyle:
|
|
2211
|
-
otherMonthStyle:
|
|
2221
|
+
inRangeStyle: g,
|
|
2222
|
+
otherMonthStyle: w,
|
|
2212
2223
|
todayStyle: K,
|
|
2213
|
-
weekDayStyle:
|
|
2214
|
-
quickPickStyle:
|
|
2215
|
-
monthStyle:
|
|
2216
|
-
quickPick:
|
|
2217
|
-
mode:
|
|
2218
|
-
pickerType:
|
|
2219
|
-
disabled:
|
|
2220
|
-
...
|
|
2224
|
+
weekDayStyle: Y,
|
|
2225
|
+
quickPickStyle: F,
|
|
2226
|
+
monthStyle: G,
|
|
2227
|
+
quickPick: te,
|
|
2228
|
+
mode: P = "single",
|
|
2229
|
+
pickerType: Q = "single",
|
|
2230
|
+
disabled: Z = !1,
|
|
2231
|
+
...A
|
|
2221
2232
|
}) => {
|
|
2222
|
-
const q = nt(), [
|
|
2233
|
+
const q = nt(), [E, I] = B(!1), [v, u] = B(""), h = se({ state: !1, value: "" }), b = se(null), [$, O] = B(() => {
|
|
2223
2234
|
const f = N().year().toString();
|
|
2224
|
-
return
|
|
2235
|
+
return m?.length ? m.includes(f) ? N() : N(`${Math.min(...m.map(Number))}-01-01`) : N();
|
|
2225
2236
|
});
|
|
2226
|
-
|
|
2237
|
+
J(() => {
|
|
2227
2238
|
const f = N().year().toString();
|
|
2228
|
-
|
|
2229
|
-
}, [
|
|
2230
|
-
const [
|
|
2239
|
+
m?.length && O(m.includes(f) ? N() : N(`${Math.min(...m.map(Number))}-01-01`));
|
|
2240
|
+
}, [m]);
|
|
2241
|
+
const [ie, oe] = B(""), [he, ne] = B({
|
|
2231
2242
|
start: null,
|
|
2232
2243
|
end: null
|
|
2233
|
-
}),
|
|
2234
|
-
let ae = "",
|
|
2235
|
-
(
|
|
2236
|
-
},
|
|
2237
|
-
f.stopPropagation(),
|
|
2244
|
+
}), ee = se(null), pe = (f, S, H) => {
|
|
2245
|
+
let ae = "", re = { start: "", end: "" };
|
|
2246
|
+
(P === "single" || typeof f == "string") && (ae = f, u(ae)), (P !== "single" || typeof f != "string") && (f?.start || f?.end ? ae = `${f?.start ? N(f?.start).format(n) : ""} / ${f?.end ? N(f?.end).format(n) : ""}` : ae = "", re.start = f?.start ? N(f?.start).format(n) : "", re.end = f?.end ? N(f?.end).format(n) : "", u(ae)), f?.end && I(!1), o && typeof o == "function" && !H && (o(re.start !== "" ? re : ae), h.current.value = re.start !== "" ? re : ae);
|
|
2247
|
+
}, le = (f) => {
|
|
2248
|
+
f.stopPropagation(), oe(""), h.current.value = "", u(""), ne({
|
|
2238
2249
|
start: null,
|
|
2239
2250
|
end: null
|
|
2240
2251
|
}), o && typeof o == "function" && o("");
|
|
2241
|
-
},
|
|
2242
|
-
|
|
2243
|
-
},
|
|
2244
|
-
|
|
2252
|
+
}, ue = (f) => {
|
|
2253
|
+
ee.current && (f.composedPath().includes(ee.current) || I(!1));
|
|
2254
|
+
}, j = (f) => {
|
|
2255
|
+
L && (!ee.current || !b.current || f.composedPath().includes(ee.current) || f.composedPath().includes(b.current) || I(!1));
|
|
2245
2256
|
}, T = () => {
|
|
2246
|
-
if (!
|
|
2247
|
-
const f =
|
|
2248
|
-
if (!
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2257
|
+
if (!ee.current || !b.current) return;
|
|
2258
|
+
const f = ee.current, S = b.current;
|
|
2259
|
+
if (!S || !f) return;
|
|
2260
|
+
const H = f.getBoundingClientRect(), ae = window.innerHeight, re = window.innerWidth;
|
|
2261
|
+
S.style.position = "fixed", H.bottom + S.offsetHeight > ae ? (S.style.top = `${H.top - S.offsetHeight + 20}px`, S.style.bottom = "unset") : (S.style.top = `${H.bottom + 8}px`, S.style.bottom = "unset"), H.right + H.width > re - 120 ? S.style.left = `${H.left + H.width - S.offsetWidth}px` : S.style.left = `${H.left}px`;
|
|
2251
2262
|
};
|
|
2252
|
-
return
|
|
2253
|
-
if (t && t.length > 0 &&
|
|
2263
|
+
return J(() => {
|
|
2264
|
+
if (t && t.length > 0 && h.current.value === "") {
|
|
2254
2265
|
let f = Array.isArray(t) ? {
|
|
2255
2266
|
start: t[0] ? N(t[0], n) : "",
|
|
2256
2267
|
end: t[1] ? N(t[1], n) : null
|
|
2257
2268
|
} : N(t, n).format(n);
|
|
2258
|
-
|
|
2269
|
+
h.current.value = t, h.current.state = !0, f && pe(f, !1, !0);
|
|
2259
2270
|
}
|
|
2260
|
-
}, []),
|
|
2261
|
-
|
|
2262
|
-
}, [
|
|
2271
|
+
}, []), J(() => {
|
|
2272
|
+
E && T();
|
|
2273
|
+
}, [b, E]), J(() => {
|
|
2263
2274
|
const f = () => {
|
|
2264
|
-
|
|
2275
|
+
E && T();
|
|
2265
2276
|
};
|
|
2266
|
-
return document.addEventListener("click",
|
|
2267
|
-
document.removeEventListener("click",
|
|
2277
|
+
return document.addEventListener("click", ue), document.addEventListener("wheel", j), window.addEventListener("scroll", f), () => {
|
|
2278
|
+
document.removeEventListener("click", ue), document.removeEventListener("wheel", j), window.removeEventListener("scroll", f);
|
|
2268
2279
|
};
|
|
2269
|
-
}, [
|
|
2270
|
-
/* @__PURE__ */ e("div", { ref:
|
|
2280
|
+
}, [E]), /* @__PURE__ */ l("div", { className: `${q === "namespaceHr" ? Ze.namespaceHr : ""} ${Ze.datepickerContainer}`, children: [
|
|
2281
|
+
/* @__PURE__ */ e("div", { ref: ee, className: Ze.datepickerInputWrapper, onClick: () => (I((f) => !f), T()), children: /* @__PURE__ */ e(
|
|
2271
2282
|
Re,
|
|
2272
2283
|
{
|
|
2273
|
-
...
|
|
2274
|
-
customFocus:
|
|
2284
|
+
...A,
|
|
2285
|
+
customFocus: E,
|
|
2275
2286
|
withActive: !1,
|
|
2276
|
-
value:
|
|
2287
|
+
value: v,
|
|
2277
2288
|
toggleFocus: !0,
|
|
2278
2289
|
formInputStyle: { cursor: "pointer" },
|
|
2279
2290
|
leftSlot: /* @__PURE__ */ e("div", { className: Ze.datepickerLeftIcon, children: /* @__PURE__ */ e(Vt, {}) }),
|
|
2280
|
-
rightSlot: /* @__PURE__ */ e("div", { className: `${Ze.datepickerRightIcon}`, onClick:
|
|
2291
|
+
rightSlot: /* @__PURE__ */ e("div", { className: `${Ze.datepickerRightIcon}`, onClick: le, children: v && /* @__PURE__ */ e(Ke, {}) }),
|
|
2281
2292
|
readOnly: !0
|
|
2282
2293
|
}
|
|
2283
2294
|
) }),
|
|
2284
|
-
|
|
2295
|
+
E && /* @__PURE__ */ e(
|
|
2285
2296
|
wi,
|
|
2286
2297
|
{
|
|
2287
2298
|
namespace: q,
|
|
2288
|
-
defaultValue:
|
|
2289
|
-
CalendarRef:
|
|
2299
|
+
defaultValue: h.current,
|
|
2300
|
+
CalendarRef: b,
|
|
2290
2301
|
disabledDatesFrom: i,
|
|
2291
2302
|
disabledDatesTill: y,
|
|
2292
2303
|
disabledDatesRange: W,
|
|
2293
2304
|
valueFormat: n,
|
|
2294
|
-
onChange: (f) =>
|
|
2295
|
-
customYears:
|
|
2296
|
-
CurrentMonth:
|
|
2297
|
-
setCurrentMonth:
|
|
2298
|
-
SelectedDate:
|
|
2299
|
-
setSelectedDate:
|
|
2300
|
-
IsFocused:
|
|
2301
|
-
setIsFocused:
|
|
2302
|
-
quickPick:
|
|
2303
|
-
mode:
|
|
2304
|
-
RangeSelection:
|
|
2305
|
-
setRangeSelection:
|
|
2306
|
-
pickerType:
|
|
2305
|
+
onChange: (f) => pe(f, !1, !1),
|
|
2306
|
+
customYears: m,
|
|
2307
|
+
CurrentMonth: $,
|
|
2308
|
+
setCurrentMonth: O,
|
|
2309
|
+
SelectedDate: ie,
|
|
2310
|
+
setSelectedDate: oe,
|
|
2311
|
+
IsFocused: E,
|
|
2312
|
+
setIsFocused: I,
|
|
2313
|
+
quickPick: te,
|
|
2314
|
+
mode: P,
|
|
2315
|
+
RangeSelection: he,
|
|
2316
|
+
setRangeSelection: ne,
|
|
2317
|
+
pickerType: Q,
|
|
2307
2318
|
selectedStyle: p,
|
|
2308
2319
|
endDateStyle: c,
|
|
2309
2320
|
startDateStyle: _,
|
|
2310
|
-
inRangeStyle:
|
|
2311
|
-
otherMonthStyle:
|
|
2321
|
+
inRangeStyle: g,
|
|
2322
|
+
otherMonthStyle: w,
|
|
2312
2323
|
todayStyle: K,
|
|
2313
|
-
weekDayStyle:
|
|
2314
|
-
quickPickStyle:
|
|
2315
|
-
monthStyle:
|
|
2324
|
+
weekDayStyle: Y,
|
|
2325
|
+
quickPickStyle: F,
|
|
2326
|
+
monthStyle: G
|
|
2316
2327
|
}
|
|
2317
2328
|
)
|
|
2318
2329
|
] });
|
|
@@ -2359,46 +2370,46 @@ const yi = "mc__Skeleton-module__skeleton", vi = "mc__Skeleton-module__shimmer",
|
|
|
2359
2370
|
dt.propKeys = ["type", "customStyle", "children"];
|
|
2360
2371
|
dt.displayName = "Skeleton";
|
|
2361
2372
|
dt.description = "A loading skeleton component for displaying placeholder content while data is being fetched.";
|
|
2362
|
-
const Ti = "mc__ActionDropdown-module__actionDropdownContainer",
|
|
2373
|
+
const Ti = "mc__ActionDropdown-module__actionDropdownContainer", xi = "mc__ActionDropdown-module__collapsed", Ii = "mc__ActionDropdown-module__actionDropdownIcon", Ni = "mc__ActionDropdown-module__actionDropdownContent", $i = "mc__ActionDropdown-module__actionDropdownTitle", Mi = "mc__ActionDropdown-module__actionDropdownList", Di = "mc__ActionDropdown-module__actionDropdownItem", Si = "mc__ActionDropdown-module__selected", De = {
|
|
2363
2374
|
actionDropdownContainer: Ti,
|
|
2364
|
-
collapsed:
|
|
2365
|
-
actionDropdownIcon:
|
|
2375
|
+
collapsed: xi,
|
|
2376
|
+
actionDropdownIcon: Ii,
|
|
2366
2377
|
actionDropdownContent: Ni,
|
|
2367
2378
|
actionDropdownTitle: $i,
|
|
2368
2379
|
actionDropdownList: Mi,
|
|
2369
2380
|
actionDropdownItem: Di,
|
|
2370
2381
|
selected: Si
|
|
2371
2382
|
}, ut = ({ title: t, data: n, closeOnScroll: o = !1, onSelect: r }) => {
|
|
2372
|
-
const [a,
|
|
2373
|
-
W(p), r?.(p),
|
|
2374
|
-
},
|
|
2383
|
+
const [a, m] = B(!1), s = se(null), i = se(null), [y, W] = B(null), C = (p) => {
|
|
2384
|
+
W(p), r?.(p), m(!1);
|
|
2385
|
+
}, x = () => {
|
|
2375
2386
|
if (!s.current || !i.current) return;
|
|
2376
2387
|
const p = s.current, c = i.current;
|
|
2377
2388
|
if (!c || !p) return;
|
|
2378
|
-
const _ = p.getBoundingClientRect(),
|
|
2379
|
-
c.style.width = _.width + "px", c.style.position = "fixed", _.bottom + c.offsetHeight >
|
|
2380
|
-
},
|
|
2389
|
+
const _ = p.getBoundingClientRect(), g = window.innerHeight;
|
|
2390
|
+
c.style.width = _.width + "px", c.style.position = "fixed", _.bottom + c.offsetHeight > g ? (c.style.top = `${_.top - c.offsetHeight - 8}px`, c.style.bottom = "unset") : (c.style.top = `${_.bottom + 8}px`, c.style.bottom = "unset");
|
|
2391
|
+
}, L = () => {
|
|
2381
2392
|
requestAnimationFrame(() => {
|
|
2382
|
-
|
|
2393
|
+
x();
|
|
2383
2394
|
});
|
|
2384
2395
|
};
|
|
2385
|
-
|
|
2386
|
-
|
|
2396
|
+
J(() => {
|
|
2397
|
+
L();
|
|
2387
2398
|
}, [s, a]);
|
|
2388
|
-
const
|
|
2389
|
-
s.current && (p.composedPath().includes(s.current) ||
|
|
2390
|
-
},
|
|
2391
|
-
o && (!s.current || !i.current || p.composedPath().includes(s.current) || p.composedPath().includes(i.current) ||
|
|
2399
|
+
const M = (p) => {
|
|
2400
|
+
s.current && (p.composedPath().includes(s.current) || m(!1));
|
|
2401
|
+
}, D = (p) => {
|
|
2402
|
+
o && (!s.current || !i.current || p.composedPath().includes(s.current) || p.composedPath().includes(i.current) || m(!1));
|
|
2392
2403
|
};
|
|
2393
|
-
return
|
|
2404
|
+
return J(() => {
|
|
2394
2405
|
const p = () => {
|
|
2395
|
-
a &&
|
|
2406
|
+
a && L();
|
|
2396
2407
|
};
|
|
2397
|
-
return document.addEventListener("click",
|
|
2398
|
-
document.removeEventListener("click",
|
|
2408
|
+
return document.addEventListener("click", M), document.addEventListener("wheel", D), window.addEventListener("scroll", p), () => {
|
|
2409
|
+
document.removeEventListener("click", M), document.removeEventListener("wheel", D), window.removeEventListener("scroll", p);
|
|
2399
2410
|
};
|
|
2400
2411
|
}, [a]), /* @__PURE__ */ l("div", { className: `${De.actionDropdownContainer} ${a ? De.collapsed : ""}`, children: [
|
|
2401
|
-
/* @__PURE__ */ l("div", { ref: s, className: De.actionDropdownContent, onClick: () => (
|
|
2412
|
+
/* @__PURE__ */ l("div", { ref: s, className: De.actionDropdownContent, onClick: () => (m((p) => !p), L()), children: [
|
|
2402
2413
|
/* @__PURE__ */ e("p", { title: t, className: De.actionDropdownTitle, children: y?.label || t }),
|
|
2403
2414
|
/* @__PURE__ */ e("div", { className: De.actionDropdownIcon, children: /* @__PURE__ */ e(ze, { width: "10", height: "6", color: "#131314" }) })
|
|
2404
2415
|
] }),
|
|
@@ -2406,7 +2417,7 @@ const Ti = "mc__ActionDropdown-module__actionDropdownContainer", Ii = "mc__Actio
|
|
|
2406
2417
|
"li",
|
|
2407
2418
|
{
|
|
2408
2419
|
onClick: (c) => {
|
|
2409
|
-
c.stopPropagation(),
|
|
2420
|
+
c.stopPropagation(), C(p);
|
|
2410
2421
|
},
|
|
2411
2422
|
className: `${De.actionDropdownItem} ${y?.id === p.id ? De.selected : ""}`,
|
|
2412
2423
|
children: p.label
|
|
@@ -2486,7 +2497,7 @@ const Wi = "mc__Slider-module__sliderContainer", Fi = "mc__Slider-module__slider
|
|
|
2486
2497
|
}, a ?? 500)
|
|
2487
2498
|
);
|
|
2488
2499
|
};
|
|
2489
|
-
return
|
|
2500
|
+
return J(() => () => {
|
|
2490
2501
|
t && clearTimeout(t);
|
|
2491
2502
|
}, []), o;
|
|
2492
2503
|
}, pt = ({
|
|
@@ -2495,93 +2506,93 @@ const Wi = "mc__Slider-module__sliderContainer", Fi = "mc__Slider-module__slider
|
|
|
2495
2506
|
maxValue: o,
|
|
2496
2507
|
min: r = 0,
|
|
2497
2508
|
max: a = 100,
|
|
2498
|
-
range:
|
|
2509
|
+
range: m = !0,
|
|
2499
2510
|
debounceTime: s,
|
|
2500
2511
|
onChange: i,
|
|
2501
2512
|
sliderContainerStyle: y,
|
|
2502
2513
|
sliderStyle: W,
|
|
2503
|
-
sliderProgressStyle:
|
|
2504
|
-
thumbStyle:
|
|
2505
|
-
unit:
|
|
2514
|
+
sliderProgressStyle: C,
|
|
2515
|
+
thumbStyle: x,
|
|
2516
|
+
unit: L
|
|
2506
2517
|
}) => {
|
|
2507
|
-
const
|
|
2518
|
+
const M = se(!0), D = m || n !== void 0 && o !== void 0, [p, c] = B({
|
|
2508
2519
|
minValue: n ?? r,
|
|
2509
2520
|
maxValue: o ?? a,
|
|
2510
2521
|
singleValue: t ?? r
|
|
2511
|
-
}), [_,
|
|
2522
|
+
}), [_, g] = B({
|
|
2512
2523
|
min: !1,
|
|
2513
2524
|
max: !1,
|
|
2514
2525
|
single: !1
|
|
2515
|
-
}), [
|
|
2526
|
+
}), [w, K] = B({
|
|
2516
2527
|
min: !1,
|
|
2517
2528
|
max: !1,
|
|
2518
2529
|
single: !1
|
|
2519
|
-
}),
|
|
2520
|
-
const u =
|
|
2521
|
-
return Math.round(
|
|
2522
|
-
},
|
|
2523
|
-
|
|
2524
|
-
const u = (
|
|
2525
|
-
const
|
|
2526
|
-
c((
|
|
2527
|
-
},
|
|
2528
|
-
K((
|
|
2530
|
+
}), Y = Yi(), F = se(null), G = se(null), te = se(null), P = se(null), Q = (I) => {
|
|
2531
|
+
const u = F.current?.getBoundingClientRect(), h = Math.min(Math.max(0, (I - u.left) / u.width), 1);
|
|
2532
|
+
return Math.round(h * (a - r) + r);
|
|
2533
|
+
}, Z = (I) => (v) => {
|
|
2534
|
+
v.preventDefault(), K((b) => ({ ...b, [I]: !0 })), g((b) => ({ ...b, [I]: !0 }));
|
|
2535
|
+
const u = (b) => {
|
|
2536
|
+
const $ = Q(b.clientX);
|
|
2537
|
+
c((O) => I === "single" ? { ...O, singleValue: $ } : I === "min" ? { ...O, minValue: Math.min($, O.maxValue - 1) } : { ...O, maxValue: Math.max($, O.minValue + 1) });
|
|
2538
|
+
}, h = () => {
|
|
2539
|
+
K((b) => ({ ...b, [I]: !1 })), g((b) => ({ ...b, [I]: !1 })), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", h);
|
|
2529
2540
|
};
|
|
2530
|
-
document.addEventListener("mousemove", u), document.addEventListener("mouseup",
|
|
2531
|
-
},
|
|
2532
|
-
const
|
|
2533
|
-
if (
|
|
2534
|
-
const u = Math.abs(
|
|
2535
|
-
c((
|
|
2541
|
+
document.addEventListener("mousemove", u), document.addEventListener("mouseup", h);
|
|
2542
|
+
}, A = (I) => {
|
|
2543
|
+
const v = Q(I.clientX);
|
|
2544
|
+
if (D) {
|
|
2545
|
+
const u = Math.abs(v - p.minValue), h = Math.abs(v - p.maxValue), b = u < h ? "min" : "max";
|
|
2546
|
+
c(($) => b === "min" ? { ...$, minValue: Math.min(v, $.maxValue - 1) } : { ...$, maxValue: Math.max(v, $.minValue + 1) }), Z(b)(I);
|
|
2536
2547
|
} else
|
|
2537
|
-
c((u) => ({ ...u, singleValue:
|
|
2538
|
-
}, q =
|
|
2548
|
+
c((u) => ({ ...u, singleValue: v })), Z("single")(I);
|
|
2549
|
+
}, q = D ? {
|
|
2539
2550
|
left: `${(p.minValue - r) / (a - r) * 100}%`,
|
|
2540
2551
|
width: `${(p.maxValue - p.minValue) / (a - r) * 100}%`
|
|
2541
2552
|
} : {
|
|
2542
2553
|
left: "0%",
|
|
2543
2554
|
width: `${(p.singleValue - r) / (a - r) * 100}%`
|
|
2544
|
-
},
|
|
2545
|
-
const
|
|
2546
|
-
if (!
|
|
2547
|
-
const u =
|
|
2548
|
-
|
|
2549
|
-
let
|
|
2550
|
-
if (u.right >
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2553
|
-
const
|
|
2554
|
-
|
|
2555
|
+
}, E = (I) => {
|
|
2556
|
+
const v = I.current;
|
|
2557
|
+
if (!v) return;
|
|
2558
|
+
const u = v.getBoundingClientRect(), h = window.innerWidth, b = u.width;
|
|
2559
|
+
v.style.transform = "translateX(-50%)";
|
|
2560
|
+
let $ = "50%";
|
|
2561
|
+
if (u.right > h - 10) {
|
|
2562
|
+
const O = u.right - h + 10;
|
|
2563
|
+
v.style.transform = `translateX(calc(-50% - ${O}px))`;
|
|
2564
|
+
const ie = b - 10;
|
|
2565
|
+
$ = `${Math.min(b / 2 + O, ie)}px`;
|
|
2555
2566
|
}
|
|
2556
2567
|
if (u.left < 10) {
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2568
|
+
const O = 10 - u.left;
|
|
2569
|
+
v.style.transform = `translateX(calc(-50% + ${O}px))`, $ = `${Math.max(b / 2 - O, 10)}px`;
|
|
2559
2570
|
}
|
|
2560
|
-
|
|
2571
|
+
v.style.setProperty("--arrow-position", $);
|
|
2561
2572
|
};
|
|
2562
|
-
return
|
|
2563
|
-
(_.min ||
|
|
2564
|
-
}, [p, _,
|
|
2565
|
-
if (
|
|
2566
|
-
|
|
2573
|
+
return J(() => {
|
|
2574
|
+
(_.min || w.min) && E(G), (_.max || w.max) && E(te), (_.single || w.single) && E(P);
|
|
2575
|
+
}, [p, _, w]), J(() => {
|
|
2576
|
+
if (M.current) {
|
|
2577
|
+
M.current = !1;
|
|
2567
2578
|
return;
|
|
2568
2579
|
}
|
|
2569
|
-
i && typeof i == "function" &&
|
|
2570
|
-
}, [p]), /* @__PURE__ */ e("div", { style: y ?? {}, className: `${ke.sliderContainer}`, children: /* @__PURE__ */ l("div", { ref:
|
|
2571
|
-
/* @__PURE__ */ e("div", { className: ke.sliderProgress, style: { ...q, ...
|
|
2572
|
-
|
|
2580
|
+
i && typeof i == "function" && Y(D ? () => i([p.minValue, p.maxValue]) : () => i(p.singleValue), s ?? 100);
|
|
2581
|
+
}, [p]), /* @__PURE__ */ e("div", { style: y ?? {}, className: `${ke.sliderContainer}`, children: /* @__PURE__ */ l("div", { ref: F, style: W ?? {}, className: ke.slider, onMouseDown: A, children: [
|
|
2582
|
+
/* @__PURE__ */ e("div", { className: ke.sliderProgress, style: { ...q, ...C ?? {} } }),
|
|
2583
|
+
D ? /* @__PURE__ */ l(Mt, { children: [
|
|
2573
2584
|
/* @__PURE__ */ e(
|
|
2574
2585
|
"div",
|
|
2575
2586
|
{
|
|
2576
2587
|
className: `${ke.thumb} ${ke.thumbLeft}`,
|
|
2577
2588
|
style: {
|
|
2578
2589
|
left: `${(p.minValue - r) / (a - r) * 100}%`,
|
|
2579
|
-
...
|
|
2590
|
+
...x ?? {}
|
|
2580
2591
|
},
|
|
2581
|
-
onMouseEnter: () => !
|
|
2582
|
-
onMouseLeave: () => !
|
|
2583
|
-
onMouseDown:
|
|
2584
|
-
children: (_.min ||
|
|
2592
|
+
onMouseEnter: () => !w.min && g((I) => ({ ...I, min: !0 })),
|
|
2593
|
+
onMouseLeave: () => !w.min && g((I) => ({ ...I, min: !1 })),
|
|
2594
|
+
onMouseDown: Z("min"),
|
|
2595
|
+
children: (_.min || w.min) && /* @__PURE__ */ l("div", { ref: G, className: ke.tooltip, children: [
|
|
2585
2596
|
p.minValue,
|
|
2586
2597
|
"%"
|
|
2587
2598
|
] })
|
|
@@ -2593,12 +2604,12 @@ const Wi = "mc__Slider-module__sliderContainer", Fi = "mc__Slider-module__slider
|
|
|
2593
2604
|
className: `${ke.thumb} ${ke.thumbRight}`,
|
|
2594
2605
|
style: {
|
|
2595
2606
|
left: `${(p.maxValue - r) / (a - r) * 100}%`,
|
|
2596
|
-
...
|
|
2607
|
+
...x ?? {}
|
|
2597
2608
|
},
|
|
2598
|
-
onMouseEnter: () => !
|
|
2599
|
-
onMouseLeave: () => !
|
|
2600
|
-
onMouseDown:
|
|
2601
|
-
children: (_.max ||
|
|
2609
|
+
onMouseEnter: () => !w.max && g((I) => ({ ...I, max: !0 })),
|
|
2610
|
+
onMouseLeave: () => !w.max && g((I) => ({ ...I, max: !1 })),
|
|
2611
|
+
onMouseDown: Z("max"),
|
|
2612
|
+
children: (_.max || w.max) && /* @__PURE__ */ l("div", { ref: te, className: ke.tooltip, children: [
|
|
2602
2613
|
p.maxValue,
|
|
2603
2614
|
"%"
|
|
2604
2615
|
] })
|
|
@@ -2610,15 +2621,15 @@ const Wi = "mc__Slider-module__sliderContainer", Fi = "mc__Slider-module__slider
|
|
|
2610
2621
|
className: `${ke.thumb} ${ke.thumbSingle}`,
|
|
2611
2622
|
style: {
|
|
2612
2623
|
left: `${(p.singleValue - r) / (a - r) * 100}%`,
|
|
2613
|
-
...
|
|
2624
|
+
...x ?? {}
|
|
2614
2625
|
},
|
|
2615
|
-
onMouseEnter: () => !
|
|
2616
|
-
onMouseLeave: () => !
|
|
2617
|
-
onMouseDown:
|
|
2618
|
-
children: (_.single ||
|
|
2626
|
+
onMouseEnter: () => !w.single && g((I) => ({ ...I, single: !0 })),
|
|
2627
|
+
onMouseLeave: () => !w.single && g((I) => ({ ...I, single: !1 })),
|
|
2628
|
+
onMouseDown: Z("single"),
|
|
2629
|
+
children: (_.single || w.single) && /* @__PURE__ */ l("div", { ref: P, className: ke.tooltip, children: [
|
|
2619
2630
|
p.singleValue,
|
|
2620
2631
|
" ",
|
|
2621
|
-
|
|
2632
|
+
L
|
|
2622
2633
|
] })
|
|
2623
2634
|
}
|
|
2624
2635
|
)
|
|
@@ -2663,11 +2674,11 @@ const ji = "mc__FilterWithTags-module__filterWithTagsContainer", Ki = "mc__Filte
|
|
|
2663
2674
|
onApply: o,
|
|
2664
2675
|
onClearAll: r,
|
|
2665
2676
|
mainButtonProps: a,
|
|
2666
|
-
popupProps:
|
|
2677
|
+
popupProps: m,
|
|
2667
2678
|
cancelButtonProps: s,
|
|
2668
2679
|
applyButtonProps: i
|
|
2669
2680
|
}) => {
|
|
2670
|
-
const [y, W] = B(!1),
|
|
2681
|
+
const [y, W] = B(!1), C = () => {
|
|
2671
2682
|
n && W(!0);
|
|
2672
2683
|
};
|
|
2673
2684
|
return /* @__PURE__ */ l("div", { className: He.filterWithTagsContainer, children: [
|
|
@@ -2678,13 +2689,13 @@ const ji = "mc__FilterWithTags-module__filterWithTagsContainer", Ki = "mc__Filte
|
|
|
2678
2689
|
buttonStyle: { minWidth: "initial" },
|
|
2679
2690
|
buttonType: "tertiaryV3",
|
|
2680
2691
|
buttonSlot: /* @__PURE__ */ e(Ut, {}),
|
|
2681
|
-
onClick:
|
|
2692
|
+
onClick: C,
|
|
2682
2693
|
...a
|
|
2683
2694
|
}
|
|
2684
2695
|
) }) }),
|
|
2685
|
-
/* @__PURE__ */ l(qe, { ...
|
|
2696
|
+
/* @__PURE__ */ l(qe, { ...m, popupContainerStyle: { width: "725px" }, onClose: () => W(!1), visible: y, children: [
|
|
2686
2697
|
/* @__PURE__ */ e("h2", { className: He.filterWithTagsPopupTitle, children: "Filter" }),
|
|
2687
|
-
/* @__PURE__ */ e("div", { className: `${He.filterWithTagsPopupContent} ${
|
|
2698
|
+
/* @__PURE__ */ e("div", { className: `${He.filterWithTagsPopupContent} ${m?.mode === "drawer" ? He.filterWithTagsPopupContentDrawer : ""}`, children: /* @__PURE__ */ e(rl, { filterOptions: t }) }),
|
|
2688
2699
|
/* @__PURE__ */ l("div", { className: He.filterWithTagsPopupFooter, children: [
|
|
2689
2700
|
/* @__PURE__ */ e($e, { buttonStyle: { width: "130px" }, ...s, label: "Clear", buttonType: "tertiaryV2", onClick: r }),
|
|
2690
2701
|
/* @__PURE__ */ e($e, { buttonStyle: { width: "130px" }, ...i, label: "Show", onClick: o })
|
|
@@ -2695,7 +2706,7 @@ const ji = "mc__FilterWithTags-module__filterWithTagsContainer", Ki = "mc__Filte
|
|
|
2695
2706
|
ht.propKeys = ["filterOptions", "customOpenPopup", "onApply", "onClearAll", "mainButtonProps", "popupProps"];
|
|
2696
2707
|
ht.displayName = "Filter With Tags";
|
|
2697
2708
|
ht.description = "A component that allows you to filter data with tags";
|
|
2698
|
-
const il = "mc__Table-module__tableContainer", ll = "mc__Table-module__tableWrapper", sl = "mc__Table-module__resizing", al = "mc__Table-module__table", cl = "mc__Table-module__headerContent", dl = "mc__Table-module__resizeHandle", ul = "mc__Table-module__clickable", ml = "mc__Table-module__empty", pl = "mc__Table-module__checkboxHeader", hl = "mc__Table-module__checkboxCell", fl = "mc__Table-module__tableHeader", _l = "mc__Table-module__visible", Cl = "mc__Table-module__tableHeaderLeftContent", gl = "mc__Table-module__actionButton", wl = "mc__Table-module__tableHeaderSeparator", yl = "mc__Table-module__paginationFooter", vl = "mc__Table-module__pagination", bl = "mc__Table-module__paginationButton", kl = "mc__Table-module__paginationInfo", Ll = "mc__Table-module__paginationRight", Tl = "mc__Table-module__paginationSelectLabel",
|
|
2709
|
+
const il = "mc__Table-module__tableContainer", ll = "mc__Table-module__tableWrapper", sl = "mc__Table-module__resizing", al = "mc__Table-module__table", cl = "mc__Table-module__headerContent", dl = "mc__Table-module__resizeHandle", ul = "mc__Table-module__clickable", ml = "mc__Table-module__empty", pl = "mc__Table-module__checkboxHeader", hl = "mc__Table-module__checkboxCell", fl = "mc__Table-module__tableHeader", _l = "mc__Table-module__visible", Cl = "mc__Table-module__tableHeaderLeftContent", gl = "mc__Table-module__actionButton", wl = "mc__Table-module__tableHeaderSeparator", yl = "mc__Table-module__paginationFooter", vl = "mc__Table-module__pagination", bl = "mc__Table-module__paginationButton", kl = "mc__Table-module__paginationInfo", Ll = "mc__Table-module__paginationRight", Tl = "mc__Table-module__paginationSelectLabel", xl = "mc__Table-module__divider", Il = "mc__Table-module__actionsHeader", Nl = "mc__Table-module__actionsCell", $l = "mc__Table-module__actionsContainer", Ml = "mc__Table-module__actionsTrigger", Dl = "mc__Table-module__actionsMenu", Sl = "mc__Table-module__actionsMenuFixed", Pl = "mc__Table-module__actionItem", Hl = "mc__Table-module__rowsPerPageDropdown", Al = "mc__Table-module__rowsPerPageList", Rl = "mc__Table-module__openDownward", Bl = "mc__Table-module__openUpward", Wl = "mc__Table-module__rowsPerPageOption", Fl = "mc__Table-module__selected", El = "mc__Table-module__gridHeader", Ol = "mc__Table-module__columnConfiguration", Vl = "mc__Table-module__columnConfigurationIcon", Zl = "mc__Table-module__columnConfigurationDropdown", zl = "mc__Table-module__dragging", Ul = "mc__Table-module__dragOver", Yl = "mc__Table-module__columnConfigurationItemIcon", z = {
|
|
2699
2710
|
tableContainer: il,
|
|
2700
2711
|
tableWrapper: ll,
|
|
2701
2712
|
resizing: sl,
|
|
@@ -2717,8 +2728,8 @@ const il = "mc__Table-module__tableContainer", ll = "mc__Table-module__tableWrap
|
|
|
2717
2728
|
paginationInfo: kl,
|
|
2718
2729
|
paginationRight: Ll,
|
|
2719
2730
|
paginationSelectLabel: Tl,
|
|
2720
|
-
divider:
|
|
2721
|
-
actionsHeader:
|
|
2731
|
+
divider: xl,
|
|
2732
|
+
actionsHeader: Il,
|
|
2722
2733
|
actionsCell: Nl,
|
|
2723
2734
|
actionsContainer: $l,
|
|
2724
2735
|
actionsTrigger: Ml,
|
|
@@ -2739,17 +2750,17 @@ const il = "mc__Table-module__tableContainer", ll = "mc__Table-module__tableWrap
|
|
|
2739
2750
|
dragOver: Ul,
|
|
2740
2751
|
columnConfigurationItemIcon: Yl
|
|
2741
2752
|
};
|
|
2742
|
-
function
|
|
2753
|
+
function xt(t) {
|
|
2743
2754
|
var n, o, r = "";
|
|
2744
2755
|
if (typeof t == "string" || typeof t == "number") r += t;
|
|
2745
2756
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2746
2757
|
var a = t.length;
|
|
2747
|
-
for (n = 0; n < a; n++) t[n] && (o =
|
|
2758
|
+
for (n = 0; n < a; n++) t[n] && (o = xt(t[n])) && (r && (r += " "), r += o);
|
|
2748
2759
|
} else for (o in t) t[o] && (r && (r += " "), r += o);
|
|
2749
2760
|
return r;
|
|
2750
2761
|
}
|
|
2751
2762
|
function Ye() {
|
|
2752
|
-
for (var t, n, o = 0, r = "", a = arguments.length; o < a; o++) (t = arguments[o]) && (n =
|
|
2763
|
+
for (var t, n, o = 0, r = "", a = arguments.length; o < a; o++) (t = arguments[o]) && (n = xt(t)) && (r && (r += " "), r += n);
|
|
2753
2764
|
return r;
|
|
2754
2765
|
}
|
|
2755
2766
|
const jl = (t, n = {}) => {
|
|
@@ -2758,56 +2769,56 @@ const jl = (t, n = {}) => {
|
|
|
2758
2769
|
return t.forEach((c) => {
|
|
2759
2770
|
c.key && (p[c.key] = n[c.key] || c.width || 200);
|
|
2760
2771
|
}), p;
|
|
2761
|
-
}), [a,
|
|
2772
|
+
}), [a, m] = B(!1), [s, i] = B(null), [y, W] = B(0), [C, x] = B(0), L = je(
|
|
2762
2773
|
(p, c) => {
|
|
2763
|
-
console.log("Resize start for column:", c), p.preventDefault(), p.stopPropagation(),
|
|
2774
|
+
console.log("Resize start for column:", c), p.preventDefault(), p.stopPropagation(), m(!0), i(c), W(p.clientX), x(o[c]);
|
|
2764
2775
|
},
|
|
2765
2776
|
[o]
|
|
2766
|
-
),
|
|
2777
|
+
), M = je(
|
|
2767
2778
|
(p) => {
|
|
2768
2779
|
if (!a || !s) return;
|
|
2769
2780
|
p.preventDefault();
|
|
2770
|
-
const c = p.clientX - y, _ = Math.max(50,
|
|
2771
|
-
console.log("Resizing column:", s, "new width:", _), r((
|
|
2772
|
-
...
|
|
2781
|
+
const c = p.clientX - y, _ = Math.max(50, C + c);
|
|
2782
|
+
console.log("Resizing column:", s, "new width:", _), r((g) => ({
|
|
2783
|
+
...g,
|
|
2773
2784
|
[s]: _
|
|
2774
2785
|
}));
|
|
2775
2786
|
},
|
|
2776
|
-
[a, s, y,
|
|
2777
|
-
),
|
|
2778
|
-
console.log("Resize end"),
|
|
2787
|
+
[a, s, y, C]
|
|
2788
|
+
), D = je(() => {
|
|
2789
|
+
console.log("Resize end"), m(!1), i(null);
|
|
2779
2790
|
}, []);
|
|
2780
|
-
return
|
|
2791
|
+
return J(() => {
|
|
2781
2792
|
if (a)
|
|
2782
|
-
return document.addEventListener("mousemove",
|
|
2783
|
-
document.removeEventListener("mousemove",
|
|
2793
|
+
return document.addEventListener("mousemove", M), document.addEventListener("mouseup", D), () => {
|
|
2794
|
+
document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", D);
|
|
2784
2795
|
};
|
|
2785
|
-
}, [a,
|
|
2796
|
+
}, [a, M, D]), {
|
|
2786
2797
|
columnWidths: o,
|
|
2787
2798
|
isResizing: a,
|
|
2788
2799
|
resizeColumn: s,
|
|
2789
|
-
handleResizeStart:
|
|
2800
|
+
handleResizeStart: L
|
|
2790
2801
|
};
|
|
2791
2802
|
};
|
|
2792
2803
|
function Kl({ currentValue: t, options: n, onChange: o }) {
|
|
2793
|
-
const [r, a] = B(!1), [
|
|
2794
|
-
|
|
2804
|
+
const [r, a] = B(!1), [m, s] = B(!1), i = se(null), y = se(null);
|
|
2805
|
+
J(() => {
|
|
2795
2806
|
if (r && i.current && y.current) {
|
|
2796
|
-
const
|
|
2797
|
-
s(
|
|
2807
|
+
const C = i.current.getBoundingClientRect(), x = y.current.offsetHeight, M = window.innerHeight - C.bottom, D = C.top;
|
|
2808
|
+
s(M < x && D >= x);
|
|
2798
2809
|
}
|
|
2799
|
-
}, [r]),
|
|
2800
|
-
const
|
|
2801
|
-
i.current && !i.current.contains(
|
|
2810
|
+
}, [r]), J(() => {
|
|
2811
|
+
const C = (x) => {
|
|
2812
|
+
i.current && !i.current.contains(x.target) && a(!1);
|
|
2802
2813
|
};
|
|
2803
|
-
return document.addEventListener("mousedown",
|
|
2804
|
-
document.removeEventListener("mousedown",
|
|
2814
|
+
return document.addEventListener("mousedown", C), () => {
|
|
2815
|
+
document.removeEventListener("mousedown", C);
|
|
2805
2816
|
};
|
|
2806
2817
|
}, []);
|
|
2807
|
-
const W = (
|
|
2808
|
-
o(
|
|
2818
|
+
const W = (C) => {
|
|
2819
|
+
o(C), a(!1);
|
|
2809
2820
|
};
|
|
2810
|
-
return /* @__PURE__ */ l("div", { ref: i, className:
|
|
2821
|
+
return /* @__PURE__ */ l("div", { ref: i, className: z.rowsPerPageDropdown, children: [
|
|
2811
2822
|
/* @__PURE__ */ e(
|
|
2812
2823
|
$e,
|
|
2813
2824
|
{
|
|
@@ -2832,16 +2843,16 @@ function Kl({ currentValue: t, options: n, onChange: o }) {
|
|
|
2832
2843
|
onClick: () => a(!r)
|
|
2833
2844
|
}
|
|
2834
2845
|
),
|
|
2835
|
-
r && /* @__PURE__ */ e("ul", { ref: y, className: `${
|
|
2846
|
+
r && /* @__PURE__ */ e("ul", { ref: y, className: `${z.rowsPerPageList} ${m ? z.openUpward : z.openDownward}`, role: "listbox", children: n.map((C) => /* @__PURE__ */ e(
|
|
2836
2847
|
"li",
|
|
2837
2848
|
{
|
|
2838
|
-
className: `${
|
|
2839
|
-
onClick: () => W(
|
|
2849
|
+
className: `${z.rowsPerPageOption} ${C === t ? z.selected : ""}`,
|
|
2850
|
+
onClick: () => W(C),
|
|
2840
2851
|
role: "option",
|
|
2841
|
-
"aria-selected":
|
|
2842
|
-
children:
|
|
2852
|
+
"aria-selected": C === t,
|
|
2853
|
+
children: C
|
|
2843
2854
|
},
|
|
2844
|
-
|
|
2855
|
+
C
|
|
2845
2856
|
)) })
|
|
2846
2857
|
] });
|
|
2847
2858
|
}
|
|
@@ -2851,181 +2862,181 @@ const ft = ({
|
|
|
2851
2862
|
data: o = [],
|
|
2852
2863
|
onRowClick: r,
|
|
2853
2864
|
onHeaderClick: a,
|
|
2854
|
-
sort:
|
|
2865
|
+
sort: m = [],
|
|
2855
2866
|
selectedRows: s = [],
|
|
2856
2867
|
onSelectionChange: i,
|
|
2857
2868
|
withSelectAll: y = !1,
|
|
2858
2869
|
actionButtonText: W,
|
|
2859
|
-
actionButtonIcon:
|
|
2860
|
-
onActionButtonClick:
|
|
2861
|
-
actionButtons:
|
|
2862
|
-
withColumnConfiguration:
|
|
2863
|
-
headerSlot:
|
|
2870
|
+
actionButtonIcon: C,
|
|
2871
|
+
onActionButtonClick: x,
|
|
2872
|
+
actionButtons: L,
|
|
2873
|
+
withColumnConfiguration: M = !1,
|
|
2874
|
+
headerSlot: D,
|
|
2864
2875
|
onColumnOrderChange: p,
|
|
2865
2876
|
onColumnVisibilityChange: c,
|
|
2866
2877
|
withActions: _ = !1,
|
|
2867
2878
|
// Pagination props
|
|
2868
|
-
currentPage:
|
|
2869
|
-
totalPages:
|
|
2879
|
+
currentPage: g = 0,
|
|
2880
|
+
totalPages: w = 1,
|
|
2870
2881
|
onPageChange: K,
|
|
2871
|
-
showPagination:
|
|
2882
|
+
showPagination: Y = !1,
|
|
2872
2883
|
// Rows per page props
|
|
2873
|
-
rowsPerPage:
|
|
2874
|
-
rowsPerPageOptions:
|
|
2875
|
-
onRowsPerPageChange:
|
|
2876
|
-
totalItems:
|
|
2877
|
-
startItem:
|
|
2878
|
-
endItem:
|
|
2884
|
+
rowsPerPage: F = 10,
|
|
2885
|
+
rowsPerPageOptions: G = [10, 20, 50, 100],
|
|
2886
|
+
onRowsPerPageChange: te,
|
|
2887
|
+
totalItems: P = 1e3,
|
|
2888
|
+
startItem: Q = 1,
|
|
2889
|
+
endItem: Z = 100,
|
|
2879
2890
|
// Row actions props
|
|
2880
|
-
onRowEdit:
|
|
2891
|
+
onRowEdit: A,
|
|
2881
2892
|
onRowDelete: q,
|
|
2882
|
-
rowActions:
|
|
2893
|
+
rowActions: E = []
|
|
2883
2894
|
}) => {
|
|
2884
|
-
const { columnWidths:
|
|
2885
|
-
|
|
2886
|
-
const
|
|
2887
|
-
...
|
|
2888
|
-
visible:
|
|
2895
|
+
const { columnWidths: I, isResizing: v, resizeColumn: u, handleResizeStart: h } = jl(n), b = se(null), [$, O] = B(null), [ie, oe] = B(null), he = se({}), ne = se(null), ee = se(null), [pe, le] = B(!1), [ue, j] = B(null), [T, f] = B(null), [S, H] = B(n);
|
|
2896
|
+
J(() => {
|
|
2897
|
+
const k = n.map((R) => ({
|
|
2898
|
+
...R,
|
|
2899
|
+
visible: R.visible !== void 0 ? R.visible : !0
|
|
2889
2900
|
}));
|
|
2890
|
-
|
|
2901
|
+
H(k);
|
|
2891
2902
|
}, [n]);
|
|
2892
|
-
const ae = (
|
|
2893
|
-
|
|
2894
|
-
},
|
|
2895
|
-
|
|
2903
|
+
const ae = (k, R) => {
|
|
2904
|
+
j(R), k.dataTransfer.effectAllowed = "move", k.dataTransfer.setData("text/html", k.currentTarget.outerHTML);
|
|
2905
|
+
}, re = (k, R) => {
|
|
2906
|
+
k.preventDefault(), k.dataTransfer.dropEffect = "move", R !== ue && f(R);
|
|
2896
2907
|
}, ge = () => {
|
|
2897
2908
|
f(null);
|
|
2898
|
-
}, _e = (
|
|
2899
|
-
if (
|
|
2900
|
-
|
|
2909
|
+
}, _e = (k, R) => {
|
|
2910
|
+
if (k.preventDefault(), ue === null || ue === R) {
|
|
2911
|
+
j(null), f(null);
|
|
2901
2912
|
return;
|
|
2902
2913
|
}
|
|
2903
|
-
const V = [...
|
|
2904
|
-
V.splice(
|
|
2905
|
-
const Ue =
|
|
2906
|
-
V.splice(Ue, 0, be),
|
|
2914
|
+
const V = [...S], be = V[ue];
|
|
2915
|
+
V.splice(ue, 1);
|
|
2916
|
+
const Ue = ue < R ? R - 1 : R;
|
|
2917
|
+
V.splice(Ue, 0, be), H(V), j(null), f(null), p?.(V);
|
|
2907
2918
|
}, we = () => {
|
|
2908
|
-
|
|
2909
|
-
}, ve = (
|
|
2910
|
-
const
|
|
2911
|
-
|
|
2912
|
-
}, Te =
|
|
2913
|
-
i?.(
|
|
2914
|
-
}, Me = (
|
|
2915
|
-
i?.(
|
|
2916
|
-
}, d = o.length > 0 && s.length === o.length,
|
|
2917
|
-
|
|
2918
|
-
}, Xe = (
|
|
2919
|
-
q?.(
|
|
2920
|
-
}, Qe = (
|
|
2921
|
-
const
|
|
2922
|
-
if (!
|
|
2923
|
-
const V =
|
|
2919
|
+
j(null), f(null);
|
|
2920
|
+
}, ve = (k) => {
|
|
2921
|
+
const R = S.map((V) => V.key === k.key ? { ...V, visible: !V.visible } : V);
|
|
2922
|
+
H(R), c?.(R);
|
|
2923
|
+
}, Te = S.filter((k) => k.visible), Ne = (k) => {
|
|
2924
|
+
i?.(k ? o.map((R, V) => R[t]) : []);
|
|
2925
|
+
}, Me = (k, R, V = null) => {
|
|
2926
|
+
i?.(R ? [...s, k] : s.filter((be) => be !== k), V);
|
|
2927
|
+
}, d = o.length > 0 && s.length === o.length, U = s.length > 0 && s.length < o.length, ce = (k, R) => {
|
|
2928
|
+
A?.(k, R);
|
|
2929
|
+
}, Xe = (k, R) => {
|
|
2930
|
+
q?.(k, R);
|
|
2931
|
+
}, Qe = (k) => {
|
|
2932
|
+
const R = he.current[k];
|
|
2933
|
+
if (!R) return null;
|
|
2934
|
+
const V = R.getBoundingClientRect(), be = window.innerHeight, Ue = window.innerWidth, Je = 120, Ge = 120;
|
|
2924
2935
|
let Ve = V.right - Ge - 50;
|
|
2925
2936
|
Ve < 0 && (Ve = V.left), Ve + Ge > Ue && (Ve = Ue - Ge - 10);
|
|
2926
2937
|
const Nt = be - V.bottom, $t = V.top, _t = Nt < Je && $t >= Je;
|
|
2927
2938
|
return { top: _t ? V.top - Je + 8 : V.bottom + 4, left: Ve, shouldOpenUpward: _t };
|
|
2928
|
-
},
|
|
2929
|
-
if (
|
|
2930
|
-
|
|
2939
|
+
}, It = (k, R) => {
|
|
2940
|
+
if (k.stopPropagation(), $ === R)
|
|
2941
|
+
O(null), oe(null);
|
|
2931
2942
|
else {
|
|
2932
|
-
|
|
2933
|
-
const V = Qe(
|
|
2934
|
-
|
|
2943
|
+
O(R);
|
|
2944
|
+
const V = Qe(R);
|
|
2945
|
+
oe(V);
|
|
2935
2946
|
}
|
|
2936
2947
|
};
|
|
2937
|
-
return
|
|
2938
|
-
const
|
|
2939
|
-
(!be.target || !be.target.closest(`.${
|
|
2940
|
-
},
|
|
2941
|
-
if (
|
|
2942
|
-
const be = Qe(
|
|
2943
|
-
|
|
2948
|
+
return J(() => {
|
|
2949
|
+
const k = (be) => {
|
|
2950
|
+
(!be.target || !be.target.closest(`.${z.actionsCell}`)) && (O(null), oe(null));
|
|
2951
|
+
}, R = () => {
|
|
2952
|
+
if ($ !== null) {
|
|
2953
|
+
const be = Qe($);
|
|
2954
|
+
oe(be);
|
|
2944
2955
|
}
|
|
2945
2956
|
}, V = () => {
|
|
2946
|
-
if (
|
|
2947
|
-
const be = Qe(
|
|
2948
|
-
|
|
2957
|
+
if ($ !== null) {
|
|
2958
|
+
const be = Qe($);
|
|
2959
|
+
oe(be);
|
|
2949
2960
|
}
|
|
2950
2961
|
};
|
|
2951
|
-
return document.addEventListener("click",
|
|
2952
|
-
document.removeEventListener("click",
|
|
2962
|
+
return document.addEventListener("click", k), window.addEventListener("scroll", R, !0), window.addEventListener("resize", V), () => {
|
|
2963
|
+
document.removeEventListener("click", k), window.removeEventListener("scroll", R, !0), window.removeEventListener("resize", V);
|
|
2953
2964
|
};
|
|
2954
|
-
}, [
|
|
2955
|
-
const
|
|
2956
|
-
|
|
2965
|
+
}, [$]), J(() => {
|
|
2966
|
+
const k = (R) => {
|
|
2967
|
+
pe && ne.current && ee.current && !ne.current.contains(R.target) && !ee.current.contains(R.target) && le(!1);
|
|
2957
2968
|
};
|
|
2958
|
-
return document.addEventListener("click",
|
|
2959
|
-
document.removeEventListener("click",
|
|
2969
|
+
return document.addEventListener("click", k), () => {
|
|
2970
|
+
document.removeEventListener("click", k);
|
|
2960
2971
|
};
|
|
2961
|
-
}, [
|
|
2962
|
-
(
|
|
2963
|
-
/* @__PURE__ */ e("div", { children:
|
|
2964
|
-
|
|
2965
|
-
/* @__PURE__ */ e("div", { className:
|
|
2966
|
-
|
|
2972
|
+
}, [pe]), /* @__PURE__ */ l("div", { className: z.tableContainer, children: [
|
|
2973
|
+
(D || M) && /* @__PURE__ */ l("div", { className: z.gridHeader, children: [
|
|
2974
|
+
/* @__PURE__ */ e("div", { children: D }),
|
|
2975
|
+
M && /* @__PURE__ */ l("div", { className: z.columnConfiguration, children: [
|
|
2976
|
+
/* @__PURE__ */ e("div", { className: z.columnConfigurationIcon, ref: ne, onClick: () => le((k) => !k), children: /* @__PURE__ */ e(zt, {}) }),
|
|
2977
|
+
pe && /* @__PURE__ */ e("ul", { className: z.columnConfigurationDropdown, ref: ee, children: S.map((k, R) => /* @__PURE__ */ l(
|
|
2967
2978
|
"li",
|
|
2968
2979
|
{
|
|
2969
|
-
className: `${
|
|
2980
|
+
className: `${z.columnConfigurationItem} ${ue === R ? z.dragging : ""} ${T === R ? z.dragOver : ""}`,
|
|
2970
2981
|
draggable: !0,
|
|
2971
|
-
onDragStart: (V) => ae(V,
|
|
2972
|
-
onDragOver: (V) =>
|
|
2982
|
+
onDragStart: (V) => ae(V, R),
|
|
2983
|
+
onDragOver: (V) => re(V, R),
|
|
2973
2984
|
onDragLeave: ge,
|
|
2974
|
-
onDrop: (V) => _e(V,
|
|
2985
|
+
onDrop: (V) => _e(V, R),
|
|
2975
2986
|
onDragEnd: we,
|
|
2976
2987
|
children: [
|
|
2977
|
-
/* @__PURE__ */ e("div", { className:
|
|
2978
|
-
/* @__PURE__ */ e("div", { className:
|
|
2979
|
-
/* @__PURE__ */ e("p", { children:
|
|
2988
|
+
/* @__PURE__ */ e("div", { className: z.columnConfigurationItemIcon, children: /* @__PURE__ */ e(Yt, {}) }),
|
|
2989
|
+
/* @__PURE__ */ e("div", { className: z.columnConfigurationItemCheckbox, onClick: (V) => V.stopPropagation(), children: /* @__PURE__ */ e(Se, { checked: k.visible, change: () => ve(k) }) }),
|
|
2990
|
+
/* @__PURE__ */ e("p", { children: k.label })
|
|
2980
2991
|
]
|
|
2981
2992
|
},
|
|
2982
|
-
|
|
2993
|
+
k.key || k.id || R
|
|
2983
2994
|
)) })
|
|
2984
2995
|
] })
|
|
2985
2996
|
] }),
|
|
2986
2997
|
y && s.length > 0 && /* @__PURE__ */ e(
|
|
2987
2998
|
"div",
|
|
2988
2999
|
{
|
|
2989
|
-
className: Ye(
|
|
2990
|
-
[
|
|
3000
|
+
className: Ye(z.tableHeader, {
|
|
3001
|
+
[z.visible]: s.length > 0
|
|
2991
3002
|
}),
|
|
2992
|
-
children: /* @__PURE__ */ l("div", { className:
|
|
3003
|
+
children: /* @__PURE__ */ l("div", { className: z.tableHeaderLeftContent, children: [
|
|
2993
3004
|
/* @__PURE__ */ l("p", { children: [
|
|
2994
3005
|
s.length,
|
|
2995
3006
|
" rows selected"
|
|
2996
3007
|
] }),
|
|
2997
|
-
/* @__PURE__ */ e("div", { className:
|
|
2998
|
-
Array.isArray(
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
] },
|
|
3008
|
+
/* @__PURE__ */ e("div", { className: z.tableHeaderSeparator }),
|
|
3009
|
+
Array.isArray(L) && L.length > 0 ? L.map((k, R) => /* @__PURE__ */ l("div", { className: z.actionButton, onClick: () => k.onClick?.(s), children: [
|
|
3010
|
+
k.text,
|
|
3011
|
+
k.icon
|
|
3012
|
+
] }, k.text || R)) : /* @__PURE__ */ l("div", { className: z.actionButton, onClick: () => x?.(s), children: [
|
|
3002
3013
|
W || "Delete",
|
|
3003
|
-
|
|
3014
|
+
C && C
|
|
3004
3015
|
] })
|
|
3005
3016
|
] })
|
|
3006
3017
|
}
|
|
3007
3018
|
),
|
|
3008
|
-
/* @__PURE__ */ e("div", { className: Ye(
|
|
3019
|
+
/* @__PURE__ */ e("div", { className: Ye(z.tableWrapper, { [z.resizing]: v }), children: /* @__PURE__ */ l("table", { className: z.table, ref: b, children: [
|
|
3009
3020
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
3010
|
-
y && /* @__PURE__ */ e("th", { className:
|
|
3021
|
+
y && /* @__PURE__ */ e("th", { className: z.checkboxHeader, children: /* @__PURE__ */ e(
|
|
3011
3022
|
Se,
|
|
3012
3023
|
{
|
|
3013
|
-
ref: (
|
|
3014
|
-
|
|
3024
|
+
ref: (k) => {
|
|
3025
|
+
k && (k.indeterminate = U);
|
|
3015
3026
|
},
|
|
3016
3027
|
checked: d,
|
|
3017
|
-
change: (
|
|
3028
|
+
change: (k) => Ne(k)
|
|
3018
3029
|
}
|
|
3019
3030
|
) }),
|
|
3020
|
-
Te.map((
|
|
3031
|
+
Te.map((k) => /* @__PURE__ */ l(
|
|
3021
3032
|
"th",
|
|
3022
3033
|
{
|
|
3023
|
-
onClick: () => a?.(
|
|
3024
|
-
style: { width:
|
|
3034
|
+
onClick: () => a?.(k.key),
|
|
3035
|
+
style: { width: I[k.key], position: "relative" },
|
|
3025
3036
|
children: [
|
|
3026
|
-
/* @__PURE__ */ l("div", { className:
|
|
3027
|
-
|
|
3028
|
-
|
|
3037
|
+
/* @__PURE__ */ l("div", { className: z.headerContent, children: [
|
|
3038
|
+
k.label,
|
|
3039
|
+
m?.[0]?.selector === k.key && (m[0].desc ? /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3029
3040
|
/* @__PURE__ */ e(
|
|
3030
3041
|
"path",
|
|
3031
3042
|
{
|
|
@@ -3068,17 +3079,17 @@ const ft = ({
|
|
|
3068
3079
|
/* @__PURE__ */ e(
|
|
3069
3080
|
"div",
|
|
3070
3081
|
{
|
|
3071
|
-
className: Ye(
|
|
3072
|
-
[
|
|
3082
|
+
className: Ye(z.resizeHandle, {
|
|
3083
|
+
[z.resizing]: v && u === k.key
|
|
3073
3084
|
}),
|
|
3074
|
-
onMouseDown: (
|
|
3085
|
+
onMouseDown: (R) => h(R, k.key)
|
|
3075
3086
|
}
|
|
3076
3087
|
)
|
|
3077
3088
|
]
|
|
3078
3089
|
},
|
|
3079
|
-
|
|
3090
|
+
k.key
|
|
3080
3091
|
)),
|
|
3081
|
-
_ && /* @__PURE__ */ e("th", { className:
|
|
3092
|
+
_ && /* @__PURE__ */ e("th", { className: z.actionsHeader, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
|
|
3082
3093
|
"path",
|
|
3083
3094
|
{
|
|
3084
3095
|
d: "M13.8194 22H10.1794C9.70955 22 9.30299 21.673 9.20243 21.214L8.79543 19.33C8.25248 19.0921 7.73765 18.7946 7.26043 18.443L5.42343 19.028C4.97543 19.1709 4.48842 18.9823 4.25343 18.575L2.42943 15.424C2.19702 15.0165 2.27709 14.5025 2.62243 14.185L4.04743 12.885C3.98263 12.2961 3.98263 11.7019 4.04743 11.113L2.62243 9.816C2.27658 9.49837 2.19648 8.98372 2.42943 8.576L4.24943 5.423C4.48442 5.0157 4.97143 4.82714 5.41943 4.97L7.25643 5.555C7.50049 5.37416 7.75456 5.20722 8.01743 5.055C8.26977 4.91269 8.52947 4.78385 8.79543 4.669L9.20343 2.787C9.3035 2.32797 9.70962 2.00049 10.1794 2H13.8194C14.2892 2.00049 14.6954 2.32797 14.7954 2.787L15.2074 4.67C15.4882 4.79352 15.7617 4.93308 16.0264 5.088C16.2734 5.23081 16.5121 5.38739 16.7414 5.557L18.5794 4.972C19.0271 4.82967 19.5135 5.01816 19.7484 5.425L21.5684 8.578C21.8008 8.98548 21.7208 9.49951 21.3754 9.817L19.9504 11.117C20.0152 11.7059 20.0152 12.3001 19.9504 12.889L21.3754 14.189C21.7208 14.5065 21.8008 15.0205 21.5684 15.428L19.7484 18.581C19.5135 18.9878 19.0271 19.1763 18.5794 19.034L16.7414 18.449C16.5089 18.6203 16.2672 18.7789 16.0174 18.924C15.7553 19.0759 15.4848 19.2131 15.2074 19.335L14.7954 21.214C14.695 21.6726 14.2889 21.9996 13.8194 22ZM7.61943 16.229L8.43943 16.829C8.62428 16.9652 8.81694 17.0904 9.01643 17.204C9.20413 17.3127 9.3974 17.4115 9.59543 17.5L10.5284 17.909L10.9854 20H13.0154L13.4724 17.908L14.4054 17.499C14.8127 17.3194 15.1993 17.0961 15.5584 16.833L16.3794 16.233L18.4204 16.883L19.4354 15.125L17.8524 13.682L17.9644 12.67C18.0136 12.2274 18.0136 11.7806 17.9644 11.338L17.8524 10.326L19.4364 8.88L18.4204 7.121L16.3794 7.771L15.5584 7.171C15.1992 6.90671 14.8127 6.68175 14.4054 6.5L13.4724 6.091L13.0154 4H10.9854L10.5264 6.092L9.59543 6.5C9.39724 6.58704 9.20395 6.68486 9.01643 6.793C8.81817 6.90633 8.62652 7.03086 8.44243 7.166L7.62143 7.766L5.58143 7.116L4.56443 8.88L6.14743 10.321L6.03543 11.334C5.98623 11.7766 5.98623 12.2234 6.03543 12.666L6.14743 13.678L4.56443 15.121L5.57943 16.879L7.61943 16.229ZM11.9954 16C9.78629 16 7.99543 14.2091 7.99543 12C7.99543 9.79086 9.78629 8 11.9954 8C14.2046 8 15.9954 9.79086 15.9954 12C15.9927 14.208 14.2034 15.9972 11.9954 16ZM11.9954 10C10.9028 10.0011 10.0133 10.8788 9.99766 11.9713C9.98201 13.0638 10.846 13.9667 11.9381 13.9991C13.0302 14.0315 13.9463 13.1815 13.9954 12.09V12.49V12C13.9954 10.8954 13.1 10 11.9954 10Z",
|
|
@@ -3086,24 +3097,24 @@ const ft = ({
|
|
|
3086
3097
|
}
|
|
3087
3098
|
) }) })
|
|
3088
3099
|
] }) }),
|
|
3089
|
-
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: y ? Te.length + 2 : Te.length + 1, className:
|
|
3100
|
+
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: y ? Te.length + 2 : Te.length + 1, className: z.empty, children: "No data available" }) }) : o.map((k, R) => /* @__PURE__ */ l(
|
|
3090
3101
|
"tr",
|
|
3091
3102
|
{
|
|
3092
|
-
className: Ye({ [
|
|
3103
|
+
className: Ye({ [z.clickable]: !!r }),
|
|
3093
3104
|
onClick: (V) => {
|
|
3094
|
-
V.target.type !== "checkbox" && !V.target.closest(`.${
|
|
3105
|
+
V.target.type !== "checkbox" && !V.target.closest(`.${z.actionsCell}`) && r?.(k, R);
|
|
3095
3106
|
},
|
|
3096
3107
|
children: [
|
|
3097
|
-
y && /* @__PURE__ */ e("td", { className:
|
|
3098
|
-
Te.map((V) => /* @__PURE__ */ e("td", { style: { width:
|
|
3099
|
-
_ && /* @__PURE__ */ e("td", { className:
|
|
3108
|
+
y && /* @__PURE__ */ e("td", { className: z.checkboxCell, onClick: (V) => V.stopPropagation(), children: /* @__PURE__ */ e(Se, { checked: s.includes(k[t]), change: (V) => Me(k[t], V, k) }) }),
|
|
3109
|
+
Te.map((V) => /* @__PURE__ */ e("td", { style: { width: I[V.key] }, children: V.render ? V.render(k) : k[V.key] }, V.key)),
|
|
3110
|
+
_ && /* @__PURE__ */ e("td", { className: z.actionsCell, children: /* @__PURE__ */ e(
|
|
3100
3111
|
"div",
|
|
3101
3112
|
{
|
|
3102
|
-
className:
|
|
3113
|
+
className: z.actionsContainer,
|
|
3103
3114
|
ref: (V) => {
|
|
3104
|
-
|
|
3115
|
+
he.current[R] = V;
|
|
3105
3116
|
},
|
|
3106
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
3117
|
+
children: /* @__PURE__ */ e("div", { className: z.actionsTrigger, onClick: (V) => It(V, R), children: /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3107
3118
|
/* @__PURE__ */ e(
|
|
3108
3119
|
"path",
|
|
3109
3120
|
{
|
|
@@ -3130,26 +3141,26 @@ const ft = ({
|
|
|
3130
3141
|
) })
|
|
3131
3142
|
]
|
|
3132
3143
|
},
|
|
3133
|
-
|
|
3144
|
+
R
|
|
3134
3145
|
)) })
|
|
3135
3146
|
] }) }),
|
|
3136
|
-
|
|
3147
|
+
$ !== null && ie && /* @__PURE__ */ l(
|
|
3137
3148
|
"div",
|
|
3138
3149
|
{
|
|
3139
|
-
className: `${
|
|
3150
|
+
className: `${z.actionsMenu} ${z.actionsMenuFixed}`,
|
|
3140
3151
|
style: {
|
|
3141
3152
|
position: "fixed",
|
|
3142
|
-
top: `${
|
|
3143
|
-
left: `${
|
|
3153
|
+
top: `${ie.top}px`,
|
|
3154
|
+
left: `${ie.left}px`,
|
|
3144
3155
|
zIndex: 1e3
|
|
3145
3156
|
},
|
|
3146
3157
|
children: [
|
|
3147
|
-
|
|
3158
|
+
A && /* @__PURE__ */ l(
|
|
3148
3159
|
"div",
|
|
3149
3160
|
{
|
|
3150
|
-
className:
|
|
3151
|
-
onClick: (
|
|
3152
|
-
|
|
3161
|
+
className: z.actionItem,
|
|
3162
|
+
onClick: (k) => {
|
|
3163
|
+
k.stopPropagation(), ce(o[$], $), O(null), oe(null);
|
|
3153
3164
|
},
|
|
3154
3165
|
children: [
|
|
3155
3166
|
/* @__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(
|
|
@@ -3169,10 +3180,10 @@ const ft = ({
|
|
|
3169
3180
|
q && /* @__PURE__ */ l(
|
|
3170
3181
|
"div",
|
|
3171
3182
|
{
|
|
3172
|
-
className:
|
|
3183
|
+
className: z.actionItem,
|
|
3173
3184
|
style: { color: "#E3292F" },
|
|
3174
|
-
onClick: (
|
|
3175
|
-
|
|
3185
|
+
onClick: (k) => {
|
|
3186
|
+
k.stopPropagation(), Xe(o[$], $), O(null), oe(null);
|
|
3176
3187
|
},
|
|
3177
3188
|
children: [
|
|
3178
3189
|
/* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -3213,44 +3224,44 @@ const ft = ({
|
|
|
3213
3224
|
]
|
|
3214
3225
|
}
|
|
3215
3226
|
),
|
|
3216
|
-
|
|
3227
|
+
E.map((k, R) => /* @__PURE__ */ l(
|
|
3217
3228
|
"div",
|
|
3218
3229
|
{
|
|
3219
|
-
className:
|
|
3230
|
+
className: z.actionItem,
|
|
3220
3231
|
onClick: (V) => {
|
|
3221
|
-
V.stopPropagation(),
|
|
3232
|
+
V.stopPropagation(), k.onClick?.(o[$], $), O(null), oe(null);
|
|
3222
3233
|
},
|
|
3223
3234
|
children: [
|
|
3224
|
-
|
|
3225
|
-
|
|
3235
|
+
k.icon && /* @__PURE__ */ e("div", { children: k.icon }),
|
|
3236
|
+
k.text
|
|
3226
3237
|
]
|
|
3227
3238
|
},
|
|
3228
|
-
|
|
3239
|
+
R
|
|
3229
3240
|
))
|
|
3230
3241
|
]
|
|
3231
3242
|
}
|
|
3232
3243
|
),
|
|
3233
|
-
|
|
3234
|
-
/* @__PURE__ */ l("div", { className:
|
|
3235
|
-
/* @__PURE__ */ e("button", { className:
|
|
3244
|
+
Y && /* @__PURE__ */ l("div", { className: z.paginationFooter, children: [
|
|
3245
|
+
/* @__PURE__ */ l("div", { className: z.pagination, children: [
|
|
3246
|
+
/* @__PURE__ */ e("button", { className: z.paginationButton, onClick: () => K?.(Math.max(g - 1, 0)), disabled: g === 0, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "rotate(180deg)" }, children: /* @__PURE__ */ e(
|
|
3236
3247
|
"path",
|
|
3237
3248
|
{
|
|
3238
3249
|
d: "M12.6008 12.0047L8.70078 8.10469C8.51745 7.92135 8.42578 7.68802 8.42578 7.40469C8.42578 7.12135 8.51745 6.88802 8.70078 6.70469C8.88411 6.52135 9.11745 6.42969 9.40078 6.42969C9.68411 6.42969 9.91745 6.52135 10.1008 6.70469L14.7008 11.3047C14.8008 11.4047 14.8716 11.513 14.9133 11.6297C14.9549 11.7464 14.9758 11.8714 14.9758 12.0047C14.9758 12.138 14.9549 12.263 14.9133 12.3797C14.8716 12.4964 14.8008 12.6047 14.7008 12.7047L10.1008 17.3047C9.91745 17.488 9.68411 17.5797 9.40078 17.5797C9.11745 17.5797 8.88411 17.488 8.70078 17.3047C8.51745 17.1214 8.42578 16.888 8.42578 16.6047C8.42578 16.3214 8.51745 16.088 8.70078 15.9047L12.6008 12.0047Z",
|
|
3239
3250
|
fill: "#131314"
|
|
3240
3251
|
}
|
|
3241
3252
|
) }) }),
|
|
3242
|
-
/* @__PURE__ */ l("span", { className:
|
|
3253
|
+
/* @__PURE__ */ l("span", { className: z.paginationInfo, children: [
|
|
3243
3254
|
"Page ",
|
|
3244
|
-
|
|
3255
|
+
g + 1,
|
|
3245
3256
|
" of ",
|
|
3246
|
-
|
|
3257
|
+
w
|
|
3247
3258
|
] }),
|
|
3248
3259
|
/* @__PURE__ */ e(
|
|
3249
3260
|
"button",
|
|
3250
3261
|
{
|
|
3251
|
-
className:
|
|
3252
|
-
onClick: () => K?.(
|
|
3253
|
-
disabled:
|
|
3262
|
+
className: z.paginationButton,
|
|
3263
|
+
onClick: () => K?.(g + 1 < w ? g + 1 : g),
|
|
3264
|
+
disabled: g + 1 >= w,
|
|
3254
3265
|
children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
|
|
3255
3266
|
"path",
|
|
3256
3267
|
{
|
|
@@ -3261,18 +3272,18 @@ const ft = ({
|
|
|
3261
3272
|
}
|
|
3262
3273
|
)
|
|
3263
3274
|
] }),
|
|
3264
|
-
/* @__PURE__ */ l("div", { className:
|
|
3265
|
-
/* @__PURE__ */ l("p", { className:
|
|
3275
|
+
/* @__PURE__ */ l("div", { className: z.paginationRight, children: [
|
|
3276
|
+
/* @__PURE__ */ l("p", { className: z.paginationInfo, children: [
|
|
3266
3277
|
"Showing ",
|
|
3267
|
-
|
|
3278
|
+
Q,
|
|
3268
3279
|
"-",
|
|
3269
|
-
|
|
3280
|
+
Z,
|
|
3270
3281
|
" of ",
|
|
3271
|
-
|
|
3282
|
+
P
|
|
3272
3283
|
] }),
|
|
3273
|
-
/* @__PURE__ */ e("div", { className:
|
|
3274
|
-
/* @__PURE__ */ e("p", { className:
|
|
3275
|
-
/* @__PURE__ */ e(Kl, { currentValue:
|
|
3284
|
+
/* @__PURE__ */ e("div", { className: z.divider }),
|
|
3285
|
+
/* @__PURE__ */ e("p", { className: z.paginationSelectLabel, children: "Rows per page" }),
|
|
3286
|
+
/* @__PURE__ */ e(Kl, { currentValue: F, options: G, onChange: te || (() => {
|
|
3276
3287
|
}) })
|
|
3277
3288
|
] })
|
|
3278
3289
|
] })
|