master-components-react-ts 2.5.14 → 2.5.16
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{width:100%;height:100%}.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%;height: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}.mc__Table-module__tableContainer th{cursor:pointer}.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__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;max-width:400px}.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}.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__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__pageNumber{min-width:32px!important;height:32px!important;padding:4px 8px!important;font-size:14px!important;font-weight:500!important;border-radius:6px!important}.mc__Table-module__pageNumber.mc__Table-module__active{background-color:#0058ff!important;color:#fff!important}.mc__Table-module__pageNumber.mc__Table-module__active:hover{background-color:#0048cc!important;color:#fff!important}.mc__Table-module__pageNumber:hover:not(.mc__Table-module__active):not(:disabled){background-color:#f8f9fa!important;color:#0058ff!important}.mc__Table-module__ellipsis{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-size:14px;color:#6b7280;font-weight:500;padding:0 4px}.mc__Table-module__actionsHeader .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__actionsHeader .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__actionsHeader .mc__Table-module__actionsContainer{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.mc__Table-module__actionsHeader .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__actionsHeader .mc__Table-module__actionsTrigger:hover{background-color:#f2f2f2}.mc__Table-module__actionsHeader .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__actionsHeader .mc__Table-module__actionsMenu.mc__Table-module__actionsMenuFixed{position:fixed;margin-top:0;top:auto;right:auto}.mc__Table-module__actionsHeader .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__actionsHeader .mc__Table-module__actionItem:hover{background-color:#f6f8ff}.mc__Table-module__actionsHeader .mc__Table-module__actionItem:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mc__Table-module__actionsHeader .mc__Table-module__actionItem:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mc__Table-module__actionsHeader .mc__Table-module__actionItem svg{flex-shrink:0}.mc__Table-module__actionsHeader .mc__Table-module__gridHeader{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.mc__Table-module__actionsHeader .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration{display:flex;align-items:center;gap:8px;position:relative}.mc__Table-module__actionsHeader .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__actionsHeader .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration .mc__Table-module__columnConfigurationIcon:hover{cursor:pointer;background-color:#f2f2f2}.mc__Table-module__actionsHeader .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__actionsHeader .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__actionsHeader .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li:hover{cursor:pointer;background-color:#f2f2f2}.mc__Table-module__actionsHeader .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__actionsHeader .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__actionsHeader .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__actionsHeader .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li .mc__Table-module__columnConfigurationItemIcon:active{cursor:grabbing}.mc__Table-module__actionsHeader .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}.mc__Table-module__rowsPerPageDropdown{position:relative;display:inline-block}.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__rowsPerPageList.mc__Table-module__openDownward{top:calc(100% + 4px)}.mc__Table-module__rowsPerPageList.mc__Table-module__openUpward{bottom:calc(100% + 4px)}.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__rowsPerPageOption:hover{background:#f2f2f2}.mc__Table-module__rowsPerPageOption.mc__Table-module__selected{background:#ecf3ff}.mc__Table-module__rowsPerPageOption:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.mc__Table-module__rowsPerPageOption:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}: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}.mc__DropdownPill-module__dropdownPill{cursor:pointer;width:100%;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:6px 10px;gap:8px}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected{width:100%;border-radius:4px}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected .mc__DropdownPill-module__dropdownItemLabel{width:100%}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected .mc__DropdownPill-module__dropdownItemLabel p{width:100%;overflow:hidden;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__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected.mc__DropdownPill-module__defaultSelected{background:#ecf3ff}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected.mc__DropdownPill-module__defaultSelected p{color:#0058ff!important}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected.mc__DropdownPill-module__altSelected{background:#0058ff}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__selected.mc__DropdownPill-module__altSelected p{color:#fff!important}.mc__DropdownPill-module__dropdownPill:hover{background:#f2f2f2}.mc__DropdownPill-module__dropdownPill.mc__DropdownPill-module__disabled p:first-of-type{color:#95969c!important}.mc__DropdownPill-module__dropdownPill .mc__DropdownPill-module__dropdownPillText{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}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsx as e, jsxs as i, Fragment as st } from "react/jsx-runtime";
|
|
3
|
-
import { useState as V, useRef as ae, useEffect as
|
|
3
|
+
import { useState as V, useRef as ae, useEffect as ee, useContext as Nt, createContext as $t, useCallback as ot } from "react";
|
|
4
4
|
import $ from "dayjs";
|
|
5
|
-
const ze = 50 / 2, Wt = ({ size: t = 24, strokeWidth: o = 5, linecap: l = "round", duration: r = 1, stroke: s = "#2753dd", ...
|
|
5
|
+
const ze = 50 / 2, Wt = ({ size: t = 24, strokeWidth: o = 5, linecap: l = "round", duration: r = 1, stroke: s = "#2753dd", ...f }) => {
|
|
6
6
|
const a = ze;
|
|
7
|
-
return /* @__PURE__ */ e("svg", { ...
|
|
7
|
+
return /* @__PURE__ */ e("svg", { ...f, viewBox: `0 0 ${ze * 2} ${ze * 2}`, width: t, height: t, children: /* @__PURE__ */ i(
|
|
8
8
|
"circle",
|
|
9
9
|
{
|
|
10
10
|
fill: "none",
|
|
@@ -57,13 +57,13 @@ const ze = 50 / 2, Wt = ({ size: t = 24, strokeWidth: o = 5, linecap: l = "round
|
|
|
57
57
|
color: l = "#A4A7AE",
|
|
58
58
|
xmlns: r = "http://www.w3.org/2000/svg",
|
|
59
59
|
viewBox: s = "0 0 14 14",
|
|
60
|
-
fill:
|
|
60
|
+
fill: f = "none",
|
|
61
61
|
d: a = "M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",
|
|
62
62
|
stroke: n = "#A4A7AE",
|
|
63
|
-
strokeWidth:
|
|
63
|
+
strokeWidth: v = "1.66667",
|
|
64
64
|
strokeLinecap: B = "round",
|
|
65
|
-
strokeLinejoin:
|
|
66
|
-
}) => /* @__PURE__ */ e("svg", { xmlns: r, width: t, height: o, viewBox: s, fill:
|
|
65
|
+
strokeLinejoin: b = "round"
|
|
66
|
+
}) => /* @__PURE__ */ e("svg", { xmlns: r, width: t, height: o, viewBox: s, fill: f, children: /* @__PURE__ */ e("path", { d: a, stroke: n, strokeWidth: v, strokeLinecap: B, strokeLinejoin: b }) }), Mt = ({ 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",
|
|
@@ -250,49 +250,49 @@ const ze = 50 / 2, Wt = ({ size: t = 24, strokeWidth: o = 5, linecap: l = "round
|
|
|
250
250
|
leftSlot: l,
|
|
251
251
|
rightSlot: r,
|
|
252
252
|
buttonSlot: s,
|
|
253
|
-
type:
|
|
253
|
+
type: f = "button",
|
|
254
254
|
colorType: a = "neutral",
|
|
255
255
|
buttonType: n = "primary",
|
|
256
|
-
withFocus:
|
|
256
|
+
withFocus: v = !1,
|
|
257
257
|
onlyIcon: B = !1,
|
|
258
|
-
customFocus:
|
|
258
|
+
customFocus: b,
|
|
259
259
|
disabled: A,
|
|
260
260
|
loading: w = !1,
|
|
261
261
|
spaceBetween: P = !1,
|
|
262
262
|
customLoader: D,
|
|
263
263
|
buttonStyle: g,
|
|
264
264
|
mainButtonContentStyle: d,
|
|
265
|
-
mainButtonLabelStyle:
|
|
266
|
-
leftSlotStyle:
|
|
267
|
-
rightSlotStyle:
|
|
268
|
-
onClick:
|
|
265
|
+
mainButtonLabelStyle: C,
|
|
266
|
+
leftSlotStyle: L,
|
|
267
|
+
rightSlotStyle: u,
|
|
268
|
+
onClick: Z
|
|
269
269
|
}) => {
|
|
270
|
-
const [
|
|
271
|
-
A || w || (
|
|
272
|
-
},
|
|
273
|
-
let
|
|
274
|
-
return a === "neutral" && n !== "primary" && (
|
|
270
|
+
const [q, K] = V(b || !1), E = ae(null), ne = (Y) => {
|
|
271
|
+
A || w || (v && K((te) => !te), Z?.(Y));
|
|
272
|
+
}, j = () => {
|
|
273
|
+
let Y = "#ffffff";
|
|
274
|
+
return a === "neutral" && n !== "primary" && (Y = "#0058FF"), a === "positive" && n !== "primary" && (Y = "#328707"), a === "negative" && n !== "primary" && (Y = "#E3292F"), Y;
|
|
275
275
|
};
|
|
276
|
-
return
|
|
277
|
-
const
|
|
278
|
-
!
|
|
276
|
+
return ee(() => {
|
|
277
|
+
const Y = (te) => {
|
|
278
|
+
!E.current || A || te.composedPath().includes(E.current) || K(!1);
|
|
279
279
|
};
|
|
280
|
-
return document.addEventListener("click",
|
|
281
|
-
document.removeEventListener("click",
|
|
280
|
+
return document.addEventListener("click", Y), () => {
|
|
281
|
+
document.removeEventListener("click", Y);
|
|
282
282
|
};
|
|
283
283
|
}, []), /* @__PURE__ */ e(
|
|
284
284
|
"button",
|
|
285
285
|
{
|
|
286
|
-
ref:
|
|
286
|
+
ref: E,
|
|
287
287
|
style: { ...g, ...B && { minWidth: "initial" } },
|
|
288
|
-
type:
|
|
288
|
+
type: f,
|
|
289
289
|
disabled: A,
|
|
290
|
-
className: `${Le.mainButton} ${Le[o]} ${w ? Le.loading : ""} ${
|
|
291
|
-
onClick:
|
|
292
|
-
children: w ? D || /* @__PURE__ */ e(Wt, { size: 20, stroke:
|
|
293
|
-
l && /* @__PURE__ */ e("div", { className: Le.leftSlot, style:
|
|
294
|
-
/* @__PURE__ */ e("p", { className: Le.mainButtonLabel, style:
|
|
295
|
-
r && /* @__PURE__ */ e("div", { className: Le.rightSlot, style:
|
|
290
|
+
className: `${Le.mainButton} ${Le[o]} ${w ? Le.loading : ""} ${q ? Le.focused : ""} ${Le[n]} ${Le[a]} ${A ? Le.disabled : ""}`,
|
|
291
|
+
onClick: ne,
|
|
292
|
+
children: w ? D || /* @__PURE__ */ e(Wt, { size: 20, stroke: j() }) : s || /* @__PURE__ */ i("div", { className: Le.mainButtonContent, style: { ...d, justifyContent: P ? "space-between" : "center" }, children: [
|
|
293
|
+
l && /* @__PURE__ */ e("div", { className: Le.leftSlot, style: L, children: l }),
|
|
294
|
+
/* @__PURE__ */ e("p", { className: Le.mainButtonLabel, style: C, children: t }),
|
|
295
|
+
r && /* @__PURE__ */ e("div", { className: Le.rightSlot, style: u, children: r })
|
|
296
296
|
] })
|
|
297
297
|
}
|
|
298
298
|
);
|
|
@@ -348,53 +348,53 @@ const Co = "mc__FormInput-module__inputWrapper", go = "mc__FormInput-module__sm"
|
|
|
348
348
|
helperText: l,
|
|
349
349
|
required: r = !1,
|
|
350
350
|
disabled: s = !1,
|
|
351
|
-
readOnly:
|
|
351
|
+
readOnly: f = !1,
|
|
352
352
|
withFocus: a = !0,
|
|
353
353
|
withActive: n = !0,
|
|
354
|
-
searchComponent:
|
|
354
|
+
searchComponent: v = !1,
|
|
355
355
|
size: B = "md",
|
|
356
|
-
toggleFocus:
|
|
356
|
+
toggleFocus: b = !1,
|
|
357
357
|
rightSlot: A,
|
|
358
358
|
leftSlot: w,
|
|
359
359
|
helperSlot: P,
|
|
360
360
|
type: D = "text",
|
|
361
361
|
value: g,
|
|
362
362
|
maxLength: d,
|
|
363
|
-
forDropdown:
|
|
364
|
-
customFocus:
|
|
365
|
-
inputState:
|
|
366
|
-
inputSlot:
|
|
367
|
-
onChange:
|
|
368
|
-
onFocus:
|
|
369
|
-
onBlur:
|
|
370
|
-
onEnter:
|
|
371
|
-
onFocusChange:
|
|
372
|
-
formInputWrapperStyle:
|
|
373
|
-
inputWrapperStyle:
|
|
374
|
-
formInputStyle:
|
|
375
|
-
helperTextStyle:
|
|
376
|
-
labelStyle:
|
|
377
|
-
inputSlotStyle:
|
|
363
|
+
forDropdown: C = !1,
|
|
364
|
+
customFocus: L = null,
|
|
365
|
+
inputState: u = { error: !1, success: !1, loading: !1 },
|
|
366
|
+
inputSlot: Z,
|
|
367
|
+
onChange: q,
|
|
368
|
+
onFocus: K,
|
|
369
|
+
onBlur: E,
|
|
370
|
+
onEnter: ne,
|
|
371
|
+
onFocusChange: j,
|
|
372
|
+
formInputWrapperStyle: Y,
|
|
373
|
+
inputWrapperStyle: te,
|
|
374
|
+
formInputStyle: O,
|
|
375
|
+
helperTextStyle: z,
|
|
376
|
+
labelStyle: U,
|
|
377
|
+
inputSlotStyle: k
|
|
378
378
|
}) => {
|
|
379
|
-
const
|
|
380
|
-
|
|
379
|
+
const y = ae(null), [h, H] = V(g ?? ""), [m, W] = V(!1), [Q, ce] = V(!1), le = (J) => {
|
|
380
|
+
v && H(J.target.value), q?.(J.target.value);
|
|
381
381
|
}, he = () => {
|
|
382
|
-
|
|
382
|
+
K?.(), !C && W(!0);
|
|
383
383
|
}, ie = () => {
|
|
384
|
-
W(
|
|
385
|
-
},
|
|
384
|
+
W(b ? L ?? !1 : !1), E?.();
|
|
385
|
+
}, F = (J) => {
|
|
386
386
|
const fe = J.currentTarget.value, R = fe.length === 0;
|
|
387
|
-
D === "number" && (J.keyCode === 69 || !R && (J.keyCode === 187 || J.keyCode === 107 || J.keyCode === 189 || J.keyCode === 109)) && J.preventDefault(), J.key === "Enter" && fe && fe.length > 0 &&
|
|
387
|
+
D === "number" && (J.keyCode === 69 || !R && (J.keyCode === 187 || J.keyCode === 107 || J.keyCode === 189 || J.keyCode === 109)) && J.preventDefault(), J.key === "Enter" && fe && fe.length > 0 && ne?.();
|
|
388
388
|
}, se = (J) => typeof J == "function" ? J(g) : J, de = () => {
|
|
389
|
-
|
|
389
|
+
v && (H(""), q?.(""));
|
|
390
390
|
};
|
|
391
|
-
return
|
|
392
|
-
|
|
393
|
-
}, [
|
|
394
|
-
|
|
395
|
-
}, [
|
|
391
|
+
return ee(() => {
|
|
392
|
+
j?.(m);
|
|
393
|
+
}, [m]), ee(() => {
|
|
394
|
+
L != null && W(L);
|
|
395
|
+
}, [L]), /* @__PURE__ */ i("div", { className: `${me.inputWrapper} ${s ? me.disabled : ""} ${me[B]}`, style: te ?? {}, children: [
|
|
396
396
|
t && /* @__PURE__ */ i("div", { className: me.formInputLabelWrapper, children: [
|
|
397
|
-
/* @__PURE__ */ i("label", { style:
|
|
397
|
+
/* @__PURE__ */ i("label", { style: U ?? {}, className: me.formInputLabel, children: [
|
|
398
398
|
t,
|
|
399
399
|
" ",
|
|
400
400
|
typeof t == "string" && r && /* @__PURE__ */ e("span", { className: me.formInputRequired, children: "*" })
|
|
@@ -404,46 +404,46 @@ const Co = "mc__FormInput-module__inputWrapper", go = "mc__FormInput-module__sm"
|
|
|
404
404
|
/* @__PURE__ */ i(
|
|
405
405
|
"div",
|
|
406
406
|
{
|
|
407
|
-
className: `${me.formInputWrapper} ${
|
|
408
|
-
style:
|
|
409
|
-
onClick: () =>
|
|
407
|
+
className: `${me.formInputWrapper} ${u.error ? me.errorState : ""} ${a && m ? u.error ? me.errorFocused : me.focused : ""} ${n && Q ? u.error ? me.errorActive : me.active : ""} ${u.error ? me.error : ""} ${u.success ? me.success : ""}`,
|
|
408
|
+
style: Y ?? {},
|
|
409
|
+
onClick: () => b && W((J) => !J),
|
|
410
410
|
children: [
|
|
411
411
|
w && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: se(w) }),
|
|
412
|
-
|
|
413
|
-
|
|
412
|
+
v && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: se(/* @__PURE__ */ e(Bt, {})) }),
|
|
413
|
+
Z ? /* @__PURE__ */ e("div", { className: me.formInputSlot, style: k ?? {}, children: se(Z) }) : /* @__PURE__ */ e(
|
|
414
414
|
"input",
|
|
415
415
|
{
|
|
416
416
|
className: me.formInput,
|
|
417
|
-
ref:
|
|
418
|
-
style:
|
|
417
|
+
ref: y,
|
|
418
|
+
style: O ?? {},
|
|
419
419
|
type: D ?? "text",
|
|
420
|
-
value:
|
|
420
|
+
value: v ? h : g,
|
|
421
421
|
onChange: (J) => le(J),
|
|
422
|
-
onMouseDown: () => !
|
|
423
|
-
onMouseUp: () => !
|
|
424
|
-
onMouseLeave: () => !
|
|
422
|
+
onMouseDown: () => !C && ce(!0),
|
|
423
|
+
onMouseUp: () => !C && ce(!1),
|
|
424
|
+
onMouseLeave: () => !C && ce(!1),
|
|
425
425
|
onFocus: he,
|
|
426
426
|
onBlur: ie,
|
|
427
427
|
disabled: s,
|
|
428
428
|
required: r,
|
|
429
|
-
onKeyDown:
|
|
430
|
-
readOnly:
|
|
429
|
+
onKeyDown: F,
|
|
430
|
+
readOnly: f,
|
|
431
431
|
spellCheck: !1,
|
|
432
432
|
placeholder: o ?? "",
|
|
433
433
|
autoComplete: "off",
|
|
434
434
|
maxLength: d
|
|
435
435
|
}
|
|
436
436
|
),
|
|
437
|
-
A && /* @__PURE__ */ e("div", { style:
|
|
438
|
-
|
|
437
|
+
A && /* @__PURE__ */ e("div", { style: v ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: se(A) }),
|
|
438
|
+
v && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: /* @__PURE__ */ e("div", { onClick: de, style: v ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: h?.length > 0 ? se(/* @__PURE__ */ e(nt, {})) : null }) })
|
|
439
439
|
]
|
|
440
440
|
}
|
|
441
441
|
),
|
|
442
442
|
l && /* @__PURE__ */ e(
|
|
443
443
|
"p",
|
|
444
444
|
{
|
|
445
|
-
style:
|
|
446
|
-
className: `${me.formInputHelperText} ${
|
|
445
|
+
style: z ?? {},
|
|
446
|
+
className: `${me.formInputHelperText} ${u.error ? me.errorHelperText : u.success ? me.successHelperText : ""}`,
|
|
447
447
|
children: l
|
|
448
448
|
}
|
|
449
449
|
)
|
|
@@ -505,99 +505,99 @@ const Ro = "mc__Textarea-module__textareaContainer", Wo = "mc__Textarea-module__
|
|
|
505
505
|
cols: l = 30,
|
|
506
506
|
rows: r = 5,
|
|
507
507
|
value: s,
|
|
508
|
-
inputState:
|
|
508
|
+
inputState: f = { error: !1, success: !0 },
|
|
509
509
|
maxLength: a,
|
|
510
510
|
withMaxLength: n = !1,
|
|
511
|
-
withFocus:
|
|
511
|
+
withFocus: v = !0,
|
|
512
512
|
withActive: B = !0,
|
|
513
|
-
withResize:
|
|
513
|
+
withResize: b = !0,
|
|
514
514
|
withClose: A = !0,
|
|
515
515
|
onChange: w,
|
|
516
516
|
onFocus: P,
|
|
517
517
|
onBlur: D,
|
|
518
518
|
disabled: g,
|
|
519
519
|
required: d,
|
|
520
|
-
textareaContainerStyle:
|
|
521
|
-
textareaLabelStyle:
|
|
522
|
-
requiredStyle:
|
|
523
|
-
labelSlot:
|
|
524
|
-
textareaFooterStyle:
|
|
520
|
+
textareaContainerStyle: C,
|
|
521
|
+
textareaLabelStyle: L,
|
|
522
|
+
requiredStyle: u,
|
|
523
|
+
labelSlot: Z,
|
|
524
|
+
textareaFooterStyle: q
|
|
525
525
|
}) => {
|
|
526
|
-
const
|
|
527
|
-
let W =
|
|
526
|
+
const K = ae(null), [E, ne] = V(!1), [j, Y] = V(!1), te = (m) => {
|
|
527
|
+
let W = m.target.value;
|
|
528
528
|
w && typeof w == "function" && w(W);
|
|
529
|
-
},
|
|
530
|
-
|
|
531
|
-
},
|
|
532
|
-
|
|
529
|
+
}, O = (m) => m, z = (m) => {
|
|
530
|
+
ne(!0), P && typeof P == "function" && P(m);
|
|
531
|
+
}, U = (m) => {
|
|
532
|
+
ne(!1), D && typeof D == "function" && D(m);
|
|
533
533
|
};
|
|
534
|
-
let
|
|
535
|
-
|
|
536
|
-
if (!
|
|
537
|
-
const
|
|
538
|
-
if (!
|
|
534
|
+
let k = !1;
|
|
535
|
+
ee(() => {
|
|
536
|
+
if (!K.current) return;
|
|
537
|
+
const m = K.current.querySelector("textarea");
|
|
538
|
+
if (!m) return;
|
|
539
539
|
let W = !1;
|
|
540
540
|
const Q = (le) => {
|
|
541
|
-
const he =
|
|
541
|
+
const he = m.getBoundingClientRect();
|
|
542
542
|
le.clientX > he.right - 20 && le.clientY > he.bottom - 20 && (W = !0);
|
|
543
543
|
}, ce = new ResizeObserver(() => {
|
|
544
|
-
W && (
|
|
544
|
+
W && (k = !0, W = !1);
|
|
545
545
|
});
|
|
546
|
-
return
|
|
547
|
-
|
|
546
|
+
return m.addEventListener("mousedown", Q), ce.observe(m), () => {
|
|
547
|
+
m.removeEventListener("mousedown", Q), ce.disconnect();
|
|
548
548
|
};
|
|
549
549
|
}, []);
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
552
|
-
const
|
|
553
|
-
!
|
|
550
|
+
const y = () => {
|
|
551
|
+
if (!K.current) return;
|
|
552
|
+
const m = K.current.querySelector("textarea");
|
|
553
|
+
!m || k || (m.style.height = "auto", m.style.height = `${m.scrollHeight}px`);
|
|
554
554
|
};
|
|
555
|
-
|
|
556
|
-
if (!
|
|
557
|
-
const
|
|
558
|
-
|
|
555
|
+
ee(() => {
|
|
556
|
+
if (!K.current) return;
|
|
557
|
+
const m = K.current.querySelector("textarea"), W = new ResizeObserver(() => {
|
|
558
|
+
k = m.offsetHeight < m.scrollHeight;
|
|
559
559
|
});
|
|
560
|
-
return W.observe(
|
|
560
|
+
return W.observe(m), () => W.disconnect();
|
|
561
561
|
}, []);
|
|
562
|
-
const
|
|
563
|
-
|
|
562
|
+
const h = (m) => {
|
|
563
|
+
k = !1, w?.(m.target.value), y();
|
|
564
564
|
}, H = () => {
|
|
565
565
|
w && typeof w == "function" && w("");
|
|
566
566
|
};
|
|
567
567
|
return /* @__PURE__ */ i(
|
|
568
568
|
"div",
|
|
569
569
|
{
|
|
570
|
-
style:
|
|
571
|
-
className: `${ye.textareaContainer} ${
|
|
570
|
+
style: C ?? {},
|
|
571
|
+
className: `${ye.textareaContainer} ${f.error ? ye.error : ""} ${g ? ye.disabled : null}`,
|
|
572
572
|
children: [
|
|
573
|
-
o && /* @__PURE__ */ i("div", { style:
|
|
573
|
+
o && /* @__PURE__ */ i("div", { style: L, className: ye.textAreaLabel, children: [
|
|
574
574
|
/* @__PURE__ */ e("p", { children: o }),
|
|
575
|
-
/* @__PURE__ */ e("span", { style:
|
|
576
|
-
|
|
575
|
+
/* @__PURE__ */ e("span", { style: u ?? {}, className: ye.required, children: d && "*" }),
|
|
576
|
+
Z && O(Z)
|
|
577
577
|
] }),
|
|
578
|
-
/* @__PURE__ */ i("div", { className: `${ye.wrap} ${
|
|
578
|
+
/* @__PURE__ */ i("div", { className: `${ye.wrap} ${b ? ye.resize : ""}`, ref: K, children: [
|
|
579
579
|
/* @__PURE__ */ e(
|
|
580
580
|
"textarea",
|
|
581
581
|
{
|
|
582
|
-
className: `${ye.textarea} ${
|
|
582
|
+
className: `${ye.textarea} ${E ? ye.focused : ""} ${g ? ye.disabled : ""} ${v && E ? f.error ? ye.errorFocused : ye.focused : ""} ${B && j ? f.error ? ye.errorActive : ye.active : ""} ${f.error ? ye.error : ""} ${f.success ? ye.success : ""}`,
|
|
583
583
|
value: s,
|
|
584
584
|
placeholder: t ?? "",
|
|
585
585
|
cols: l,
|
|
586
586
|
rows: r,
|
|
587
|
-
maxLength: a
|
|
588
|
-
onInput:
|
|
589
|
-
onFocus:
|
|
587
|
+
maxLength: n ? a : void 0,
|
|
588
|
+
onInput: h,
|
|
589
|
+
onFocus: z,
|
|
590
590
|
disabled: g,
|
|
591
|
-
onBlur:
|
|
592
|
-
onChange:
|
|
593
|
-
onMouseDown: () =>
|
|
594
|
-
onMouseUp: () =>
|
|
595
|
-
onMouseLeave: () =>
|
|
591
|
+
onBlur: U,
|
|
592
|
+
onChange: te,
|
|
593
|
+
onMouseDown: () => Y(!0),
|
|
594
|
+
onMouseUp: () => Y(!1),
|
|
595
|
+
onMouseLeave: () => Y(!1)
|
|
596
596
|
}
|
|
597
597
|
),
|
|
598
598
|
A && s && /* @__PURE__ */ e("div", { className: ye.textareaIconClose, onClick: H, children: /* @__PURE__ */ e(qt, {}) })
|
|
599
599
|
] }),
|
|
600
|
-
n && /* @__PURE__ */ e("div", { style:
|
|
600
|
+
n && /* @__PURE__ */ e("div", { style: q ?? {}, className: ye.textareaFooter, children: /* @__PURE__ */ i("p", { children: [
|
|
601
601
|
s?.length,
|
|
602
602
|
"/",
|
|
603
603
|
a
|
|
@@ -614,6 +614,7 @@ ct.propKeys = [
|
|
|
614
614
|
"value",
|
|
615
615
|
"inputState",
|
|
616
616
|
"maxLength",
|
|
617
|
+
"withMaxLength",
|
|
617
618
|
"withFocus",
|
|
618
619
|
"withActive",
|
|
619
620
|
"withResize",
|
|
@@ -640,14 +641,14 @@ const Ko = "mc__Toggle-module__toggleWrapper", qo = "mc__Toggle-module__checked"
|
|
|
640
641
|
toggleState: Go,
|
|
641
642
|
md: en,
|
|
642
643
|
lg: tn
|
|
643
|
-
}, dt = ({ checked: t, change: o, disabled: l = !1, size: r = "md", toggleType: s = "default", required:
|
|
644
|
+
}, dt = ({ checked: t, change: o, disabled: l = !1, size: r = "md", toggleType: s = "default", required: f = !1 }) => /* @__PURE__ */ e(
|
|
644
645
|
"div",
|
|
645
646
|
{
|
|
646
647
|
onClick: () => {
|
|
647
648
|
l || o?.(!t);
|
|
648
649
|
},
|
|
649
650
|
className: `${je.toggleWrapper} ${s === "error" ? je.error : ""} ${je[r]} ${t ? je.checked : ""} ${l ? je.disabled : ""}`,
|
|
650
|
-
children: /* @__PURE__ */ e("div", { className: je.toggleState, children: /* @__PURE__ */ e("input", { type: "checkbox", checked: t, readOnly: !0, disabled: l ?? !1, hidden: !0, required:
|
|
651
|
+
children: /* @__PURE__ */ e("div", { className: je.toggleState, children: /* @__PURE__ */ e("input", { type: "checkbox", checked: t, readOnly: !0, disabled: l ?? !1, hidden: !0, required: f }) })
|
|
651
652
|
}
|
|
652
653
|
);
|
|
653
654
|
dt.propKeys = ["checked", "change", "disabled", "required", "size", "toggleType"];
|
|
@@ -667,26 +668,26 @@ const on = "mc__Checkbox-module__checkboxWrapper", nn = "mc__Checkbox-module__ch
|
|
|
667
668
|
change: l,
|
|
668
669
|
type: r = "default",
|
|
669
670
|
disabled: s = !1,
|
|
670
|
-
required:
|
|
671
|
+
required: f = !1,
|
|
671
672
|
multipleChecked: a = !1,
|
|
672
673
|
activeStyle: n,
|
|
673
|
-
checkBoxStyle:
|
|
674
|
+
checkBoxStyle: v,
|
|
674
675
|
theme: B = "light"
|
|
675
676
|
}) => {
|
|
676
|
-
const
|
|
677
|
+
const b = ut(), [A, w] = V(!1), P = () => {
|
|
677
678
|
s || l && typeof l == "function" && l(!t);
|
|
678
679
|
};
|
|
679
680
|
return /* @__PURE__ */ i(
|
|
680
681
|
"div",
|
|
681
682
|
{
|
|
682
|
-
style: A ? s ? { boxShadow: "none" } : n ?? {} :
|
|
683
|
-
className: `${B === "dark" ? Ee.dark : ""} ${Ee[
|
|
683
|
+
style: A ? s ? { boxShadow: "none" } : n ?? {} : v ?? {},
|
|
684
|
+
className: `${B === "dark" ? Ee.dark : ""} ${Ee[b]} ${Ee.checkboxWrapper} ${r === "error" ? Ee.error : ""} ${t ? Ee.checked : Ee.unChecked} ${s ? Ee.disabled : ""}`,
|
|
684
685
|
onMouseDown: () => w(!0),
|
|
685
686
|
onMouseUp: () => w(!1),
|
|
686
687
|
onMouseLeave: () => w(!1),
|
|
687
688
|
onClick: P,
|
|
688
689
|
children: [
|
|
689
|
-
/* @__PURE__ */ e("input", { ref: o, type: "checkbox", disabled: s, checked: t ?? !1, hidden: !0, readOnly: !0, required:
|
|
690
|
+
/* @__PURE__ */ e("input", { ref: o, type: "checkbox", disabled: s, checked: t ?? !1, hidden: !0, readOnly: !0, required: f ?? !1 }),
|
|
690
691
|
t ? a ? /* @__PURE__ */ e(Ot, {}) : /* @__PURE__ */ e(Ft, {}) : ""
|
|
691
692
|
]
|
|
692
693
|
}
|
|
@@ -745,91 +746,104 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
745
746
|
checkboxProps: l,
|
|
746
747
|
onCollapse: r,
|
|
747
748
|
onSelect: s,
|
|
748
|
-
fromDropdown:
|
|
749
|
+
fromDropdown: f = !1,
|
|
749
750
|
withSelectAll: a = !1,
|
|
750
751
|
withClearAll: n = !1,
|
|
751
|
-
expandedNodes:
|
|
752
|
+
expandedNodes: v,
|
|
752
753
|
SearchValue: B,
|
|
753
|
-
SelectedData:
|
|
754
|
+
SelectedData: b,
|
|
754
755
|
treeContainerStyle: A,
|
|
755
756
|
treeNodeItemStyle: w,
|
|
756
757
|
treeFooterStyle: P,
|
|
757
758
|
treeFooterTextStyle: D,
|
|
758
759
|
treeNodeStyle: g,
|
|
759
760
|
labelRowStyle: d,
|
|
760
|
-
collapseToggleStyle:
|
|
761
|
+
collapseToggleStyle: C,
|
|
762
|
+
checkIndividualItems: L = !1
|
|
761
763
|
}) => {
|
|
762
|
-
const [
|
|
763
|
-
if (
|
|
764
|
-
|
|
764
|
+
const [u, Z] = V(t || []), q = (O, z, U = u) => U.map((k) => {
|
|
765
|
+
if (k.id === O) {
|
|
766
|
+
if (L)
|
|
767
|
+
return {
|
|
768
|
+
...k,
|
|
769
|
+
selected: z
|
|
770
|
+
};
|
|
771
|
+
const y = k.children && k.children.length > 0;
|
|
765
772
|
return {
|
|
766
|
-
...
|
|
773
|
+
...k,
|
|
767
774
|
selected: z,
|
|
768
|
-
children:
|
|
775
|
+
children: y ? K(k.children, z) : k.children || []
|
|
769
776
|
};
|
|
770
777
|
}
|
|
771
|
-
if (
|
|
772
|
-
const
|
|
778
|
+
if (k.children && k.children.length > 0) {
|
|
779
|
+
const y = q(O, z, k.children);
|
|
780
|
+
if (L)
|
|
781
|
+
return {
|
|
782
|
+
...k,
|
|
783
|
+
children: y
|
|
784
|
+
};
|
|
785
|
+
const H = y.filter((m) => m.selected).length === y.length && y.length > 0;
|
|
773
786
|
return {
|
|
774
|
-
...
|
|
775
|
-
selected:
|
|
776
|
-
children:
|
|
787
|
+
...k,
|
|
788
|
+
selected: H,
|
|
789
|
+
children: y
|
|
777
790
|
};
|
|
778
791
|
}
|
|
779
|
-
return
|
|
780
|
-
}),
|
|
781
|
-
...
|
|
792
|
+
return k;
|
|
793
|
+
}), K = (O, z) => O.map((U) => ({
|
|
794
|
+
...U,
|
|
782
795
|
selected: z,
|
|
783
|
-
children:
|
|
784
|
-
})), E = (
|
|
785
|
-
const
|
|
786
|
-
|
|
787
|
-
const
|
|
788
|
-
s?.(
|
|
789
|
-
},
|
|
790
|
-
r?.(
|
|
791
|
-
},
|
|
796
|
+
children: U.children ? K(U.children, z) : []
|
|
797
|
+
})), E = (O, z) => {
|
|
798
|
+
const U = q(O, z);
|
|
799
|
+
Z(U);
|
|
800
|
+
const k = j(U);
|
|
801
|
+
s?.(k);
|
|
802
|
+
}, ne = (O, z) => {
|
|
803
|
+
r?.(O, z);
|
|
804
|
+
}, j = (O) => {
|
|
792
805
|
let z = [];
|
|
793
|
-
return
|
|
794
|
-
|
|
806
|
+
return O.forEach((U) => {
|
|
807
|
+
U.selected && z.push(U), U.children?.length && (z = [...z, ...j(U.children)]);
|
|
795
808
|
}), z;
|
|
796
|
-
},
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
},
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
const z =
|
|
809
|
+
}, Y = () => {
|
|
810
|
+
const O = K(u, !1);
|
|
811
|
+
Z(O), s?.([]);
|
|
812
|
+
}, te = () => {
|
|
813
|
+
const O = K(u, !0);
|
|
814
|
+
Z(O);
|
|
815
|
+
const z = j(O);
|
|
803
816
|
s?.(z);
|
|
804
817
|
};
|
|
805
|
-
return
|
|
806
|
-
|
|
818
|
+
return ee(() => {
|
|
819
|
+
Z(t || []);
|
|
807
820
|
}, [t]), /* @__PURE__ */ i("div", { className: `${ke.treeNodeContainer}`, style: A, children: [
|
|
808
|
-
/* @__PURE__ */ e("div", { className: `${ke.treeNodeItem} ${
|
|
821
|
+
/* @__PURE__ */ e("div", { className: `${ke.treeNodeItem} ${f ? ke.inDropDown : ""}`, style: w, children: u.map((O) => /* @__PURE__ */ e(
|
|
809
822
|
Dt,
|
|
810
823
|
{
|
|
811
|
-
node:
|
|
824
|
+
node: O,
|
|
812
825
|
onSelect: E,
|
|
813
826
|
defaultCollapsed: o,
|
|
814
827
|
checkboxProps: l,
|
|
815
|
-
onCollapse:
|
|
828
|
+
onCollapse: ne,
|
|
816
829
|
depth: 0,
|
|
817
|
-
expandedNodes:
|
|
830
|
+
expandedNodes: v,
|
|
818
831
|
SearchValue: B,
|
|
819
|
-
SelectedData:
|
|
832
|
+
SelectedData: b,
|
|
820
833
|
treeContainerStyle: A,
|
|
821
834
|
treeNodeItemStyle: w,
|
|
822
835
|
treeFooterStyle: P,
|
|
823
836
|
treeFooterTextStyle: D,
|
|
824
837
|
treeNodeStyle: g,
|
|
825
838
|
labelRowStyle: d,
|
|
826
|
-
collapseToggleStyle:
|
|
839
|
+
collapseToggleStyle: C,
|
|
840
|
+
checkIndividualItems: L
|
|
827
841
|
},
|
|
828
|
-
|
|
842
|
+
O.id
|
|
829
843
|
)) }),
|
|
830
|
-
|
|
831
|
-
n && /* @__PURE__ */ e("span", { onClick:
|
|
832
|
-
a && B === "" && /* @__PURE__ */ e("span", { onClick:
|
|
844
|
+
f && /* @__PURE__ */ i("div", { className: ke.dropdownListFooter, style: P, children: [
|
|
845
|
+
n && /* @__PURE__ */ e("span", { onClick: Y, style: D, children: "Clear All" }),
|
|
846
|
+
a && B === "" && /* @__PURE__ */ e("span", { onClick: te, style: D, children: "Select All" })
|
|
833
847
|
] })
|
|
834
848
|
] });
|
|
835
849
|
}, Dt = ({
|
|
@@ -838,36 +852,37 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
838
852
|
defaultCollapsed: l,
|
|
839
853
|
checkboxProps: r,
|
|
840
854
|
onCollapse: s,
|
|
841
|
-
depth:
|
|
855
|
+
depth: f,
|
|
842
856
|
expandedNodes: a,
|
|
843
857
|
SearchValue: n,
|
|
844
|
-
SelectedData:
|
|
858
|
+
SelectedData: v,
|
|
845
859
|
treeContainerStyle: B,
|
|
846
|
-
treeNodeItemStyle:
|
|
860
|
+
treeNodeItemStyle: b,
|
|
847
861
|
treeFooterStyle: A,
|
|
848
862
|
treeFooterTextStyle: w,
|
|
849
863
|
treeNodeStyle: P,
|
|
850
864
|
labelRowStyle: D,
|
|
851
|
-
collapseToggleStyle: g
|
|
865
|
+
collapseToggleStyle: g,
|
|
866
|
+
checkIndividualItems: d
|
|
852
867
|
}) => {
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
const [
|
|
856
|
-
|
|
857
|
-
},
|
|
868
|
+
const C = a?.find((E) => E.id === t.id);
|
|
869
|
+
v?.find((E) => E.id === t.id);
|
|
870
|
+
const [L, u] = V(C ? !1 : l || !0), Z = () => {
|
|
871
|
+
u((E) => !E), s?.(L, t);
|
|
872
|
+
}, q = () => {
|
|
858
873
|
o?.(t.id, !t.selected);
|
|
859
|
-
},
|
|
860
|
-
let
|
|
861
|
-
const
|
|
862
|
-
|
|
874
|
+
}, K = (E) => {
|
|
875
|
+
let ne = !1;
|
|
876
|
+
const j = (te) => te?.toLowerCase().replace(/\s/g, "") || "", Y = (te, O) => {
|
|
877
|
+
O.label && j(O.label).includes(j(te)) && (ne = !0), O.children?.forEach((z) => Y(te, z));
|
|
863
878
|
};
|
|
864
|
-
return !E || E.trim() === "" ? !0 : (
|
|
879
|
+
return !E || E.trim() === "" ? !0 : (Y(E, t), ne);
|
|
865
880
|
};
|
|
866
|
-
return
|
|
867
|
-
n &&
|
|
868
|
-
}, [n]), /* @__PURE__ */ i("div", { className: `${ke.treeNode} ${
|
|
869
|
-
/* @__PURE__ */ i("div", { className: ke.labelRow, onClick:
|
|
870
|
-
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${
|
|
881
|
+
return ee(() => {
|
|
882
|
+
n && u(!1);
|
|
883
|
+
}, [n]), /* @__PURE__ */ i("div", { className: `${ke.treeNode} ${K(n) ? ke.visible : ke.hidden}`, style: P, children: [
|
|
884
|
+
/* @__PURE__ */ i("div", { className: ke.labelRow, onClick: Z, style: D, children: [
|
|
885
|
+
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${f}rem` }, onClick: (E) => E.stopPropagation(), children: /* @__PURE__ */ e(Re, { checked: t?.selected ?? !1, change: q, ...r, withActive: !1 }) }),
|
|
871
886
|
/* @__PURE__ */ e("span", { className: ke.collapseToggle, style: g, children: /* @__PURE__ */ e(
|
|
872
887
|
"div",
|
|
873
888
|
{
|
|
@@ -875,14 +890,14 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
875
890
|
display: "flex",
|
|
876
891
|
alignItems: "center",
|
|
877
892
|
justifyContent: "center",
|
|
878
|
-
transform:
|
|
893
|
+
transform: L ? "rotate(0deg)" : "rotate(90deg)"
|
|
879
894
|
},
|
|
880
895
|
children: /* @__PURE__ */ e(zn, {})
|
|
881
896
|
}
|
|
882
897
|
) }),
|
|
883
898
|
/* @__PURE__ */ e("span", { className: `${ke.label} ${t.selected ? ke.selected : ""}`, children: t.label })
|
|
884
899
|
] }),
|
|
885
|
-
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: ke.children, style: { display:
|
|
900
|
+
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: ke.children, style: { display: L ? "none" : "block" }, children: t.children.map((E) => /* @__PURE__ */ e(
|
|
886
901
|
Dt,
|
|
887
902
|
{
|
|
888
903
|
node: E,
|
|
@@ -890,17 +905,18 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
890
905
|
defaultCollapsed: l,
|
|
891
906
|
checkboxProps: r,
|
|
892
907
|
onCollapse: s,
|
|
893
|
-
depth:
|
|
908
|
+
depth: f + 1,
|
|
894
909
|
expandedNodes: a,
|
|
895
910
|
SearchValue: n,
|
|
896
|
-
SelectedData:
|
|
911
|
+
SelectedData: v,
|
|
897
912
|
treeContainerStyle: B,
|
|
898
|
-
treeNodeItemStyle:
|
|
913
|
+
treeNodeItemStyle: b,
|
|
899
914
|
treeFooterStyle: A,
|
|
900
915
|
treeFooterTextStyle: w,
|
|
901
916
|
treeNodeStyle: P,
|
|
902
917
|
labelRowStyle: D,
|
|
903
|
-
collapseToggleStyle: g
|
|
918
|
+
collapseToggleStyle: g,
|
|
919
|
+
checkIndividualItems: d
|
|
904
920
|
},
|
|
905
921
|
E.id
|
|
906
922
|
)) })
|
|
@@ -911,154 +927,154 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
911
927
|
withClose: l = !0,
|
|
912
928
|
disableAll: r = !1,
|
|
913
929
|
withMultiselect: s = !1,
|
|
914
|
-
selectedOptionID:
|
|
930
|
+
selectedOptionID: f,
|
|
915
931
|
withInput: a = !1,
|
|
916
932
|
withTree: n = !1,
|
|
917
|
-
withSelectAll:
|
|
933
|
+
withSelectAll: v = !0,
|
|
918
934
|
dropdownType: B = "country",
|
|
919
|
-
closeOnScroll:
|
|
935
|
+
closeOnScroll: b = !1,
|
|
920
936
|
customSelectedSlot: A,
|
|
921
937
|
onSelect: w,
|
|
922
938
|
onFocus: P,
|
|
923
939
|
onBlur: D,
|
|
924
940
|
onValueChange: g,
|
|
925
941
|
onApply: d,
|
|
926
|
-
customInputSlot:
|
|
927
|
-
dropdownWrapperStyle:
|
|
928
|
-
dropdownInputWrapperStyle:
|
|
929
|
-
dropdownInputSlotStyle:
|
|
930
|
-
dropdownInputSlotItemStyle:
|
|
931
|
-
dropdownInputSlotItemLabelStyle:
|
|
932
|
-
dropdownInputSlotItemCloseStyle:
|
|
933
|
-
dropdownInputSlotItemMoreStyle:
|
|
934
|
-
dropdownItemStyle:
|
|
935
|
-
dropdownItemLabelStyle:
|
|
936
|
-
itemCheckboxStyle:
|
|
937
|
-
dropdownItemLabelTextStyle:
|
|
938
|
-
dropdownListStyle:
|
|
939
|
-
treeProps:
|
|
940
|
-
withApply:
|
|
941
|
-
applyButtonProps:
|
|
942
|
-
...
|
|
942
|
+
customInputSlot: C,
|
|
943
|
+
dropdownWrapperStyle: L,
|
|
944
|
+
dropdownInputWrapperStyle: u,
|
|
945
|
+
dropdownInputSlotStyle: Z,
|
|
946
|
+
dropdownInputSlotItemStyle: q,
|
|
947
|
+
dropdownInputSlotItemLabelStyle: K,
|
|
948
|
+
dropdownInputSlotItemCloseStyle: E,
|
|
949
|
+
dropdownInputSlotItemMoreStyle: ne,
|
|
950
|
+
dropdownItemStyle: j,
|
|
951
|
+
dropdownItemLabelStyle: Y,
|
|
952
|
+
itemCheckboxStyle: te,
|
|
953
|
+
dropdownItemLabelTextStyle: O,
|
|
954
|
+
dropdownListStyle: z,
|
|
955
|
+
treeProps: U,
|
|
956
|
+
withApply: k = !1,
|
|
957
|
+
applyButtonProps: y = { label: "Apply" },
|
|
958
|
+
...h
|
|
943
959
|
}) => {
|
|
944
|
-
const [H,
|
|
945
|
-
|
|
946
|
-
|
|
960
|
+
const [H, m] = V(!1), [W, Q] = V(""), [ce, le] = V(!1), [he, ie] = V(!1), [F, se] = V(!1), de = ae(null), J = ae(null), fe = ae(null), R = ae(null), [_, S] = V([]), N = ae([]), re = ae(0), [G, we] = V(""), [_e, ge] = V(null), Me = (p) => `https://flagsapi.com/${p}/flat/64.png`, Se = (p, x) => {
|
|
961
|
+
p.forEach((oe) => {
|
|
962
|
+
oe.selected = x.some((c) => c.id === oe.id), oe.children && Array.isArray(oe.children) && Se(oe.children, x);
|
|
947
963
|
});
|
|
948
|
-
}, De = (
|
|
949
|
-
let
|
|
950
|
-
|
|
964
|
+
}, De = (p) => {
|
|
965
|
+
let x = p.flatMap((oe) => [
|
|
966
|
+
oe,
|
|
951
967
|
// Include the parent item
|
|
952
|
-
...
|
|
968
|
+
...oe.children || []
|
|
953
969
|
// Spread the children
|
|
954
970
|
]);
|
|
955
|
-
|
|
956
|
-
}, Pe = (
|
|
957
|
-
if (
|
|
958
|
-
w?.(
|
|
971
|
+
x = at(x, "id"), Se(_, x), N.current = x, w?.(p), m((oe) => !oe);
|
|
972
|
+
}, Pe = (p) => {
|
|
973
|
+
if (p.selected = !p.selected, !s && !n) {
|
|
974
|
+
w?.(p);
|
|
959
975
|
return;
|
|
960
976
|
}
|
|
961
|
-
N.current = [...N.current, ...
|
|
962
|
-
}, Te = (
|
|
963
|
-
ge(
|
|
977
|
+
N.current = [...N.current, ..._.filter((x) => x.selected == !0), ..._.filter((x) => x.id === p.id)], N.current = at(N.current, "id").filter((x) => x.selected).filter((x) => x.id !== "SELECT_ALL"), p.id === "SELECT_ALL" ? (le(p.selected), ie(!0)) : (le(!1), w?.(N.current), ie(!1)), m((x) => !x);
|
|
978
|
+
}, Te = (p) => {
|
|
979
|
+
ge(p), w?.(p), se(!1);
|
|
964
980
|
}, We = () => {
|
|
965
981
|
d?.(), se(!1);
|
|
966
982
|
}, Be = () => {
|
|
967
983
|
if (!J.current || !de.current) return;
|
|
968
|
-
const
|
|
969
|
-
if (!
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
const I = c -
|
|
973
|
-
I >=
|
|
984
|
+
const p = J.current, x = de.current;
|
|
985
|
+
if (!x || !p) return;
|
|
986
|
+
const oe = p.getBoundingClientRect(), c = window.innerHeight, T = 16;
|
|
987
|
+
x.style.width = oe.width + "px", x.style.position = "fixed", x.style.left = `${oe.left}px`, x.style.overflowY = "visible", x.style.maxHeight = "none";
|
|
988
|
+
const I = c - oe.bottom - T, ue = oe.top - T;
|
|
989
|
+
I >= x.offsetHeight ? (x.style.top = `${oe.bottom + 8}px`, x.style.bottom = "unset") : ue >= x.offsetHeight ? (x.style.top = `${oe.top - x.offsetHeight - 8}px`, x.style.bottom = "unset") : I >= ue ? (x.style.top = `${oe.bottom + 8}px`, x.style.bottom = "unset", x.style.maxHeight = `${I - 8}px`, x.style.overflowY = "auto") : (x.style.top = `${T}px`, x.style.bottom = "unset", x.style.maxHeight = `${ue - 8}px`, x.style.overflowY = "auto");
|
|
974
990
|
}, He = () => {
|
|
975
991
|
requestAnimationFrame(() => {
|
|
976
992
|
Be();
|
|
977
993
|
});
|
|
978
994
|
};
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}, [de,
|
|
982
|
-
if (n || (N.current = t?.length ? t.filter((
|
|
995
|
+
ee(() => {
|
|
996
|
+
F && He();
|
|
997
|
+
}, [de, F]), ee(() => {
|
|
998
|
+
if (n || (N.current = t?.length ? t.filter((oe) => oe.selected) : []), !s && !n) {
|
|
983
999
|
S(t);
|
|
984
1000
|
return;
|
|
985
1001
|
}
|
|
986
|
-
const
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}), S([...
|
|
990
|
-
}, [JSON.stringify(t)]),
|
|
991
|
-
!s && !n || t?.every((
|
|
992
|
-
}, [N.current.length]),
|
|
993
|
-
!s && !n &&
|
|
994
|
-
}, [
|
|
995
|
-
if (!(!s && !n) &&
|
|
996
|
-
const
|
|
997
|
-
S(
|
|
998
|
-
|
|
999
|
-
}), N.current =
|
|
1002
|
+
const p = t?.some((oe) => "selected" in oe), x = v && s ? [{ id: "SELECT_ALL", label: "Select All", selected: ce }] : [];
|
|
1003
|
+
p ? S([...x, ...t]) : (t?.forEach((oe) => {
|
|
1004
|
+
oe.selected = !1;
|
|
1005
|
+
}), S([...x, ...t])), He();
|
|
1006
|
+
}, [JSON.stringify(t)]), ee(() => {
|
|
1007
|
+
!s && !n || t?.every((p) => p.selected) || le(!1);
|
|
1008
|
+
}, [N.current.length]), ee(() => {
|
|
1009
|
+
!s && !n && f && ge(t?.find((p) => p.id === f));
|
|
1010
|
+
}, [f]), ee(() => {
|
|
1011
|
+
if (!(!s && !n) && _.length > 0 && he) {
|
|
1012
|
+
const p = _.map((x) => x.id === "SELECT_ALL" ? { ...x, selected: ce } : x.disabled ? x : { ...x, selected: ce });
|
|
1013
|
+
S(p), t?.forEach((x) => {
|
|
1014
|
+
x.id === "SELECT_ALL" ? x.selected = ce : x.disabled || (x.selected = ce);
|
|
1015
|
+
}), N.current = p.filter((x) => x.selected && x.id !== "SELECT_ALL"), w?.(N.current);
|
|
1000
1016
|
}
|
|
1001
1017
|
}, [H]);
|
|
1002
|
-
const qe = (
|
|
1003
|
-
J.current && (
|
|
1004
|
-
}, et = (
|
|
1005
|
-
|
|
1018
|
+
const qe = (p) => {
|
|
1019
|
+
J.current && (p.composedPath().includes(J.current) || se(!1));
|
|
1020
|
+
}, et = (p) => {
|
|
1021
|
+
b && (!J.current || !de.current || p.composedPath().includes(J.current) || p.composedPath().includes(de.current) || se(!1));
|
|
1006
1022
|
};
|
|
1007
|
-
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1023
|
+
ee(() => {
|
|
1024
|
+
const p = () => {
|
|
1025
|
+
F && He();
|
|
1010
1026
|
};
|
|
1011
|
-
return document.addEventListener("click", qe), document.addEventListener("wheel", et), window.addEventListener("scroll",
|
|
1012
|
-
document.removeEventListener("click", qe), document.removeEventListener("wheel", et), window.removeEventListener("scroll",
|
|
1027
|
+
return document.addEventListener("click", qe), document.addEventListener("wheel", et), window.addEventListener("scroll", p), () => {
|
|
1028
|
+
document.removeEventListener("click", qe), document.removeEventListener("wheel", et), window.removeEventListener("scroll", p);
|
|
1013
1029
|
};
|
|
1014
|
-
}, [
|
|
1030
|
+
}, [F]), ee(() => {
|
|
1015
1031
|
if (!s && !n) return;
|
|
1016
|
-
const
|
|
1017
|
-
const
|
|
1018
|
-
if (!
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1032
|
+
const p = () => {
|
|
1033
|
+
const x = J.current?.getBoundingClientRect();
|
|
1034
|
+
if (!x) return;
|
|
1035
|
+
const oe = x.width;
|
|
1036
|
+
oe <= 150 ? re.current = 0 : oe <= 250 ? re.current = 1 : oe <= 350 ? re.current = 2 : oe <= 450 ? re.current = 3 : re.current = 4;
|
|
1021
1037
|
};
|
|
1022
|
-
return
|
|
1038
|
+
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
1023
1039
|
}, []);
|
|
1024
1040
|
const tt = ae(!0);
|
|
1025
|
-
return
|
|
1041
|
+
return ee(() => {
|
|
1026
1042
|
if (tt.current) {
|
|
1027
1043
|
tt.current = !1;
|
|
1028
1044
|
return;
|
|
1029
1045
|
}
|
|
1030
|
-
|
|
1031
|
-
}, [
|
|
1046
|
+
F || D?.(), F && P?.();
|
|
1047
|
+
}, [F]), /* @__PURE__ */ i("div", { className: `${pe.dropdownWrapper}`, style: L ?? {}, children: [
|
|
1032
1048
|
/* @__PURE__ */ e(
|
|
1033
1049
|
"div",
|
|
1034
1050
|
{
|
|
1035
1051
|
ref: J,
|
|
1036
1052
|
className: pe.dropdownInputWrapper,
|
|
1037
|
-
style:
|
|
1038
|
-
onClick: () => (se((
|
|
1053
|
+
style: u ?? {},
|
|
1054
|
+
onClick: () => (se((p) => !p), He()),
|
|
1039
1055
|
children: /* @__PURE__ */ e(
|
|
1040
1056
|
Ze,
|
|
1041
1057
|
{
|
|
1042
|
-
...
|
|
1043
|
-
onFocusChange: (
|
|
1044
|
-
customFocus:
|
|
1058
|
+
...h,
|
|
1059
|
+
onFocusChange: (p) => se(p),
|
|
1060
|
+
customFocus: F,
|
|
1045
1061
|
withActive: !1,
|
|
1046
1062
|
value: a ? W : _e?.label ?? "",
|
|
1047
|
-
onChange: (
|
|
1048
|
-
Q(
|
|
1063
|
+
onChange: (p) => {
|
|
1064
|
+
Q(p), g?.(p);
|
|
1049
1065
|
},
|
|
1050
1066
|
toggleFocus: !0,
|
|
1051
1067
|
formInputStyle: { cursor: a ? "text" : "pointer" },
|
|
1052
1068
|
leftSlot: a && /* @__PURE__ */ i("div", { className: pe.dropdownInputSlot, children: [
|
|
1053
1069
|
B === "currency" ? /* @__PURE__ */ e("p", { children: _e?.label }) : /* @__PURE__ */ e("img", { src: Me(_e?.code), alt: "flag" }),
|
|
1054
|
-
/* @__PURE__ */ e("div", { className: `${pe.dropdownRightIconArrow} ${
|
|
1070
|
+
/* @__PURE__ */ e("div", { className: `${pe.dropdownRightIconArrow} ${F ? pe.focused : ""}`, children: /* @__PURE__ */ e(Ge, {}) })
|
|
1055
1071
|
] }),
|
|
1056
|
-
rightSlot: /* @__PURE__ */ i("div", { className: `${pe.dropdownRightIcon} ${
|
|
1072
|
+
rightSlot: /* @__PURE__ */ i("div", { className: `${pe.dropdownRightIcon} ${F ? pe.focused : ""}`, children: [
|
|
1057
1073
|
l && (a ? W : !s && !n && _e) && /* @__PURE__ */ e(
|
|
1058
1074
|
"div",
|
|
1059
1075
|
{
|
|
1060
|
-
onClick: (
|
|
1061
|
-
|
|
1076
|
+
onClick: (p) => {
|
|
1077
|
+
p.stopPropagation(), a ? (Q(""), se(!1), g?.("")) : (ge(null), w?.(null));
|
|
1062
1078
|
},
|
|
1063
1079
|
className: pe.dropdownRightIconClose,
|
|
1064
1080
|
children: /* @__PURE__ */ e(nt, {})
|
|
@@ -1069,38 +1085,38 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
1069
1085
|
readOnly: !a,
|
|
1070
1086
|
forDropdown: !0,
|
|
1071
1087
|
inputSlotStyle: { width: "100%", placeItems: A ? "initial" : "center" },
|
|
1072
|
-
inputSlot: A || ((n || s) && N.current.length > 0 ?
|
|
1073
|
-
N.current.slice(0, re.current).map((
|
|
1088
|
+
inputSlot: A || ((n || s) && N.current.length > 0 ? C || /* @__PURE__ */ i("ul", { className: pe.dropdownInputSlot, style: Z ?? {}, children: [
|
|
1089
|
+
N.current.slice(0, re.current).map((p, x) => /* @__PURE__ */ i(
|
|
1074
1090
|
"li",
|
|
1075
1091
|
{
|
|
1076
1092
|
ref: R,
|
|
1077
1093
|
className: pe.dropdownInputSlotItem,
|
|
1078
|
-
style:
|
|
1079
|
-
onClick: n ? void 0 : (
|
|
1094
|
+
style: q ?? {},
|
|
1095
|
+
onClick: n ? void 0 : (oe) => oe.stopPropagation(),
|
|
1080
1096
|
children: [
|
|
1081
|
-
/* @__PURE__ */ e("div", { title:
|
|
1097
|
+
/* @__PURE__ */ e("div", { title: p.label, className: pe.dropdownInputSlotItemLabel, style: K ?? {}, children: typeof p.customLabel == "function" ? p.customLabel(p) : p.label }),
|
|
1082
1098
|
!n && /* @__PURE__ */ e(
|
|
1083
1099
|
"div",
|
|
1084
1100
|
{
|
|
1085
|
-
style:
|
|
1101
|
+
style: E ?? {},
|
|
1086
1102
|
className: pe.dropdownInputSlotItemClose,
|
|
1087
|
-
onClick: (
|
|
1088
|
-
|
|
1103
|
+
onClick: (oe) => {
|
|
1104
|
+
oe.stopPropagation(), Pe(p);
|
|
1089
1105
|
},
|
|
1090
1106
|
children: /* @__PURE__ */ e(Et, { width: "16", height: "16", viewBox: "0 0 16 16", stroke: "#95969C" })
|
|
1091
1107
|
}
|
|
1092
1108
|
)
|
|
1093
1109
|
]
|
|
1094
1110
|
},
|
|
1095
|
-
|
|
1111
|
+
x
|
|
1096
1112
|
)),
|
|
1097
|
-
N.current.length > re.current && /* @__PURE__ */ e("li", { className: `${pe.dropdownInputSlotItem} ${pe.dropdownInputSlotItemMore}`, style:
|
|
1113
|
+
N.current.length > re.current && /* @__PURE__ */ e("li", { className: `${pe.dropdownInputSlotItem} ${pe.dropdownInputSlotItemMore}`, style: ne ?? {}, children: /* @__PURE__ */ e("p", { className: pe.dropdownInputSlotItemLabel, style: K ?? {}, children: `+${N.current.length - re.current}` }) })
|
|
1098
1114
|
] }) : null)
|
|
1099
1115
|
}
|
|
1100
1116
|
)
|
|
1101
1117
|
}
|
|
1102
1118
|
),
|
|
1103
|
-
t && t.length > 0 &&
|
|
1119
|
+
t && t.length > 0 && F && /* @__PURE__ */ i("div", { ref: de, onClick: (p) => p.stopPropagation(), className: pe.dropdownListContainer, children: [
|
|
1104
1120
|
o && /* @__PURE__ */ e(
|
|
1105
1121
|
Ze,
|
|
1106
1122
|
{
|
|
@@ -1108,60 +1124,60 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
|
|
|
1108
1124
|
searchComponent: !0,
|
|
1109
1125
|
withFocus: !1,
|
|
1110
1126
|
withActive: !1,
|
|
1111
|
-
value:
|
|
1112
|
-
onChange: (
|
|
1127
|
+
value: G,
|
|
1128
|
+
onChange: (p) => we(p)
|
|
1113
1129
|
}
|
|
1114
1130
|
),
|
|
1115
1131
|
n ? /* @__PURE__ */ e(
|
|
1116
1132
|
Un,
|
|
1117
1133
|
{
|
|
1118
|
-
SearchValue:
|
|
1134
|
+
SearchValue: G,
|
|
1119
1135
|
data: t,
|
|
1120
|
-
onSelect: (
|
|
1121
|
-
onCollapse: (
|
|
1122
|
-
He(),
|
|
1136
|
+
onSelect: (p) => De(p),
|
|
1137
|
+
onCollapse: (p, x) => {
|
|
1138
|
+
He(), U?.onCollapse?.(p, x);
|
|
1123
1139
|
},
|
|
1124
|
-
...
|
|
1140
|
+
...U
|
|
1125
1141
|
}
|
|
1126
|
-
) : /* @__PURE__ */ e("ul", { onClick: (
|
|
1142
|
+
) : /* @__PURE__ */ e("ul", { onClick: (p) => p.stopPropagation(), className: pe.dropdownList, ref: fe, style: z ?? {}, children: _.filter((p) => p?.label?.toLowerCase().includes(G.toLowerCase())).map((p, x) => /* @__PURE__ */ i(
|
|
1127
1143
|
"li",
|
|
1128
1144
|
{
|
|
1129
|
-
style: { ...
|
|
1130
|
-
className: `${pe.dropdownItem} ${!s && !n && _e?.id ===
|
|
1131
|
-
onClick: (
|
|
1132
|
-
|
|
1145
|
+
style: { ...j, cursor: !s && !n && p?.disabled ? "not-allowed" : "pointer" },
|
|
1146
|
+
className: `${pe.dropdownItem} ${!s && !n && _e?.id === p.id ? pe.selected : ""} ${!p?.label || p.label === void 0 || r || p?.disabled ? pe.disabled : ""} ${!s && !n && !p?.disabled ? pe.hovered : ""}`,
|
|
1147
|
+
onClick: (oe) => {
|
|
1148
|
+
oe.stopPropagation(), !s && !n && !p?.disabled && Te(p);
|
|
1133
1149
|
},
|
|
1134
1150
|
children: [
|
|
1135
|
-
(s || n) && !
|
|
1151
|
+
(s || n) && !p.noCheckbox && /* @__PURE__ */ e("div", { className: pe.itemCheckbox, style: te ?? {}, children: /* @__PURE__ */ e(
|
|
1136
1152
|
Re,
|
|
1137
1153
|
{
|
|
1138
|
-
multipleChecked:
|
|
1139
|
-
disabled: r ||
|
|
1140
|
-
checked:
|
|
1141
|
-
change: () => Pe(
|
|
1154
|
+
multipleChecked: p.id === "SELECT_ALL",
|
|
1155
|
+
disabled: r || p?.disabled,
|
|
1156
|
+
checked: p?.selected,
|
|
1157
|
+
change: () => Pe(p)
|
|
1142
1158
|
}
|
|
1143
1159
|
) }),
|
|
1144
|
-
/* @__PURE__ */ i("div", { className: pe.dropdownItemLabel, style:
|
|
1160
|
+
/* @__PURE__ */ i("div", { className: pe.dropdownItemLabel, style: Y ?? {}, children: [
|
|
1145
1161
|
a ? /* @__PURE__ */ i("div", { className: pe.dropdownItemLabelInput, children: [
|
|
1146
|
-
/* @__PURE__ */ e("img", { src: Me(
|
|
1147
|
-
/* @__PURE__ */ e("span", { title:
|
|
1148
|
-
/* @__PURE__ */ e("span", { className: pe.countryDialCode, children: B === "country" ?
|
|
1162
|
+
/* @__PURE__ */ e("img", { src: Me(p.code), style: { width: "1.375rem", height: "1.375rem", objectFit: "contain" }, alt: p.name }),
|
|
1163
|
+
/* @__PURE__ */ e("span", { title: p.name, className: pe.countryName, children: p.name || p.label }),
|
|
1164
|
+
/* @__PURE__ */ e("span", { className: pe.countryDialCode, children: B === "country" ? p.dialCode : p?.label })
|
|
1149
1165
|
] }) : /* @__PURE__ */ e(
|
|
1150
1166
|
"p",
|
|
1151
1167
|
{
|
|
1152
|
-
title: typeof
|
|
1153
|
-
className: `${
|
|
1154
|
-
style:
|
|
1155
|
-
children: typeof
|
|
1168
|
+
title: typeof p.label == "string" ? p.label : "",
|
|
1169
|
+
className: `${p.id === "SELECT_ALL" ? pe.selectAll : ""}`,
|
|
1170
|
+
style: O ?? {},
|
|
1171
|
+
children: typeof p.customLabel == "function" ? p.customLabel(p) : p.label
|
|
1156
1172
|
}
|
|
1157
1173
|
),
|
|
1158
|
-
(s || n) && /* @__PURE__ */ e("p", { children:
|
|
1174
|
+
(s || n) && /* @__PURE__ */ e("p", { children: p.id === "SELECT_ALL" ? `${_.filter((oe) => oe.id !== "SELECT_ALL" && oe.selected).length}/${t.length}` : "" })
|
|
1159
1175
|
] })
|
|
1160
1176
|
]
|
|
1161
1177
|
},
|
|
1162
|
-
|
|
1163
|
-
)) },
|
|
1164
|
-
|
|
1178
|
+
x
|
|
1179
|
+
)) }, _.length),
|
|
1180
|
+
k && (s || n) && /* @__PURE__ */ e($e, { ...y, onClick: We })
|
|
1165
1181
|
] })
|
|
1166
1182
|
] });
|
|
1167
1183
|
};
|
|
@@ -1175,6 +1191,7 @@ pt.propKeys = [
|
|
|
1175
1191
|
"withInput",
|
|
1176
1192
|
"dropdownType",
|
|
1177
1193
|
"closeOnScroll",
|
|
1194
|
+
"customSelectedSlot",
|
|
1178
1195
|
"onSelect",
|
|
1179
1196
|
"onFocus",
|
|
1180
1197
|
"onBlur",
|
|
@@ -1197,13 +1214,13 @@ pt.displayName = "Dropdown";
|
|
|
1197
1214
|
pt.description = "A feature-rich dropdown component with multi-select, filtering, and smart positioning capabilities.";
|
|
1198
1215
|
const Yn = "mc__Radio-module__radioWrapper", jn = {
|
|
1199
1216
|
radioWrapper: Yn
|
|
1200
|
-
}, mt = ({ checked: t, change: o, disabled: l, required: r, withUncheckState: s = !1, radioType:
|
|
1217
|
+
}, mt = ({ checked: t, change: o, disabled: l, required: r, withUncheckState: s = !1, radioType: f = "default" }) => {
|
|
1201
1218
|
ut(), V(!1);
|
|
1202
1219
|
const a = () => {
|
|
1203
1220
|
l || o?.(s ? !t : !0);
|
|
1204
1221
|
}, n = () => {
|
|
1205
|
-
let
|
|
1206
|
-
return t ? l ?
|
|
1222
|
+
let v = null, B = l ? "#95969C" : f === "error" ? "#E3292F" : "#0058FF";
|
|
1223
|
+
return t ? l ? v = /* @__PURE__ */ e(zt, { color: B }) : v = /* @__PURE__ */ e(Vt, { color: B }) : l ? v = /* @__PURE__ */ e(Ut, { color: B }) : v = /* @__PURE__ */ e(Zt, { color: B }), v;
|
|
1207
1224
|
};
|
|
1208
1225
|
return /* @__PURE__ */ i("div", { className: jn.radioWrapper, style: { cursor: l ? "not-allowed" : "pointer" }, onClick: a, children: [
|
|
1209
1226
|
/* @__PURE__ */ e("input", { type: "radio", checked: !0, readOnly: !0, hidden: !0, disabled: l ?? !1, required: r }),
|
|
@@ -1230,40 +1247,40 @@ const Kn = "mc__Tooltip-module__tooltipContainer", qn = "mc__Tooltip-module__too
|
|
|
1230
1247
|
delay: l = 400,
|
|
1231
1248
|
placement: r = "top",
|
|
1232
1249
|
trigger: s = "hover",
|
|
1233
|
-
title:
|
|
1250
|
+
title: f,
|
|
1234
1251
|
text: a,
|
|
1235
1252
|
customText: n,
|
|
1236
|
-
tooltipStyleType:
|
|
1253
|
+
tooltipStyleType: v = "default",
|
|
1237
1254
|
tooltipContentStyle: B,
|
|
1238
|
-
tooltipTitlestyle:
|
|
1255
|
+
tooltipTitlestyle: b,
|
|
1239
1256
|
tooltipTextStyle: A,
|
|
1240
1257
|
tooltipContainerStyle: w,
|
|
1241
1258
|
pointerPosition: P = "10%",
|
|
1242
1259
|
withPointer: D = !1,
|
|
1243
1260
|
theme: g,
|
|
1244
1261
|
topCustomOffset: d = 0,
|
|
1245
|
-
bottomCustomOffset:
|
|
1246
|
-
leftCustomOffset:
|
|
1247
|
-
rightCustomOffset:
|
|
1248
|
-
forceClose:
|
|
1249
|
-
onClick:
|
|
1262
|
+
bottomCustomOffset: C = 0,
|
|
1263
|
+
leftCustomOffset: L = 0,
|
|
1264
|
+
rightCustomOffset: u = 0,
|
|
1265
|
+
forceClose: Z = !1,
|
|
1266
|
+
onClick: q
|
|
1250
1267
|
}) => {
|
|
1251
|
-
const
|
|
1252
|
-
let
|
|
1253
|
-
const [
|
|
1254
|
-
s === "hover" &&
|
|
1255
|
-
|
|
1268
|
+
const K = ae(null), E = ae(null);
|
|
1269
|
+
let ne;
|
|
1270
|
+
const [j, Y] = V(!1), te = o || f || a || n, O = () => {
|
|
1271
|
+
s === "hover" && te && (ne = setTimeout(() => {
|
|
1272
|
+
Y(!0);
|
|
1256
1273
|
}, l));
|
|
1257
|
-
},
|
|
1258
|
-
s === "hover" && (clearTimeout(
|
|
1259
|
-
|
|
1274
|
+
}, z = () => {
|
|
1275
|
+
s === "hover" && (clearTimeout(ne), setTimeout(() => {
|
|
1276
|
+
Y(!1);
|
|
1260
1277
|
}, l));
|
|
1261
|
-
},
|
|
1262
|
-
s === "click" && (
|
|
1263
|
-
},
|
|
1264
|
-
const
|
|
1265
|
-
if (!H || !
|
|
1266
|
-
const
|
|
1278
|
+
}, U = () => {
|
|
1279
|
+
s === "click" && (q?.(), Y((h) => !h));
|
|
1280
|
+
}, k = () => {
|
|
1281
|
+
const h = K.current, H = E.current;
|
|
1282
|
+
if (!H || !h) return;
|
|
1283
|
+
const m = h.getBoundingClientRect(), W = H.getBoundingClientRect(), Q = window.innerWidth, ce = window.innerHeight;
|
|
1267
1284
|
H.style.position = "fixed";
|
|
1268
1285
|
const le = (se, de) => ({
|
|
1269
1286
|
fitsTop: se >= 0,
|
|
@@ -1273,52 +1290,52 @@ const Kn = "mc__Tooltip-module__tooltipContainer", qn = "mc__Tooltip-module__too
|
|
|
1273
1290
|
}), he = (se, de) => {
|
|
1274
1291
|
H.style.top = `${se}px`, H.style.left = `${de}px`;
|
|
1275
1292
|
};
|
|
1276
|
-
let ie,
|
|
1293
|
+
let ie, F;
|
|
1277
1294
|
switch (r) {
|
|
1278
1295
|
case "top":
|
|
1279
|
-
ie =
|
|
1280
|
-
const se = le(ie,
|
|
1281
|
-
se.fitsTop || (ie =
|
|
1296
|
+
ie = m.top - W.height - 8 + d - C, F = m.left + L - u;
|
|
1297
|
+
const se = le(ie, F);
|
|
1298
|
+
se.fitsTop || (ie = m.bottom + 8 + C - d), se.fitsLeft ? se.fitsRight || (F = Q - W.width) : F = 0, he(ie, F);
|
|
1282
1299
|
break;
|
|
1283
1300
|
case "bottom":
|
|
1284
|
-
ie =
|
|
1285
|
-
const de = le(ie,
|
|
1286
|
-
de.fitsBottom || (ie =
|
|
1301
|
+
ie = m.bottom + 8 + C - d, F = m.left + L - u;
|
|
1302
|
+
const de = le(ie, F);
|
|
1303
|
+
de.fitsBottom || (ie = m.top - W.height - 8 + d - C), de.fitsLeft ? de.fitsRight || (F = Q - W.width) : F = 0, he(ie, F);
|
|
1287
1304
|
break;
|
|
1288
1305
|
case "left":
|
|
1289
|
-
ie =
|
|
1290
|
-
const J = le(ie,
|
|
1291
|
-
J.fitsLeft || (
|
|
1306
|
+
ie = m.top + d - C, F = m.left - W.width - 8 + L - u;
|
|
1307
|
+
const J = le(ie, F);
|
|
1308
|
+
J.fitsLeft || (F = m.right + 8 + u - L), J.fitsTop ? J.fitsBottom || (ie = ce - W.height) : ie = 0, he(ie, F);
|
|
1292
1309
|
break;
|
|
1293
1310
|
case "right":
|
|
1294
|
-
ie =
|
|
1295
|
-
const fe = le(ie,
|
|
1296
|
-
fe.fitsRight || (
|
|
1311
|
+
ie = m.top + d - C, F = m.right + 8 + u - L;
|
|
1312
|
+
const fe = le(ie, F);
|
|
1313
|
+
fe.fitsRight || (F = m.left - W.width - 8 + L - u), fe.fitsTop ? fe.fitsBottom || (ie = ce - W.height) : ie = 0, he(ie, F);
|
|
1297
1314
|
break;
|
|
1298
1315
|
}
|
|
1299
1316
|
};
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
}, [
|
|
1303
|
-
const
|
|
1304
|
-
|
|
1317
|
+
ee(() => {
|
|
1318
|
+
k();
|
|
1319
|
+
}, [K, j, t, r, o, n, f, a]), ee(() => {
|
|
1320
|
+
const h = (W) => {
|
|
1321
|
+
K.current?.contains(W.target) || Y(!1);
|
|
1305
1322
|
}, H = (W) => {
|
|
1306
|
-
W.composedPath().includes(
|
|
1307
|
-
},
|
|
1308
|
-
|
|
1323
|
+
W.composedPath().includes(K.current) || Y(!1);
|
|
1324
|
+
}, m = () => {
|
|
1325
|
+
j && k();
|
|
1309
1326
|
};
|
|
1310
|
-
return document.addEventListener("click", H), document.addEventListener("scroll",
|
|
1311
|
-
document.removeEventListener("scroll",
|
|
1327
|
+
return document.addEventListener("click", H), document.addEventListener("scroll", h, !0), window.addEventListener("resize", m), () => {
|
|
1328
|
+
document.removeEventListener("scroll", h, !0), document.removeEventListener("click", H), window.removeEventListener("resize", m);
|
|
1312
1329
|
};
|
|
1313
|
-
}, [
|
|
1314
|
-
|
|
1315
|
-
}, [
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1318
|
-
}, [
|
|
1319
|
-
const
|
|
1330
|
+
}, [j]), ee(() => {
|
|
1331
|
+
Z && Y(!1);
|
|
1332
|
+
}, [Z]), ee(() => {
|
|
1333
|
+
const h = E.current;
|
|
1334
|
+
h && (h.style.setProperty("--pointer-position", `${P}`), D || h.classList.add(xe.withoutPointer));
|
|
1335
|
+
}, [j]);
|
|
1336
|
+
const y = () => ({
|
|
1320
1337
|
...B,
|
|
1321
|
-
...
|
|
1338
|
+
...v === "secondary" && {
|
|
1322
1339
|
borderRadius: "12px",
|
|
1323
1340
|
border: "1px solid #E6E6E6",
|
|
1324
1341
|
background: "#FFF",
|
|
@@ -1328,33 +1345,33 @@ const Kn = "mc__Tooltip-module__tooltipContainer", qn = "mc__Tooltip-module__too
|
|
|
1328
1345
|
return /* @__PURE__ */ i(
|
|
1329
1346
|
"div",
|
|
1330
1347
|
{
|
|
1331
|
-
ref:
|
|
1348
|
+
ref: K,
|
|
1332
1349
|
className: `${g === "dark" ? xe.dark : ""} ${xe.tooltipContainer}`,
|
|
1333
|
-
onClick:
|
|
1334
|
-
onMouseEnter:
|
|
1335
|
-
onMouseLeave:
|
|
1350
|
+
onClick: U,
|
|
1351
|
+
onMouseEnter: O,
|
|
1352
|
+
onMouseLeave: z,
|
|
1336
1353
|
style: w ?? {},
|
|
1337
1354
|
children: [
|
|
1338
1355
|
t,
|
|
1339
|
-
|
|
1356
|
+
j && o ? /* @__PURE__ */ e(
|
|
1340
1357
|
"div",
|
|
1341
1358
|
{
|
|
1342
|
-
style:
|
|
1343
|
-
onClick: (
|
|
1344
|
-
ref:
|
|
1359
|
+
style: y(),
|
|
1360
|
+
onClick: (h) => h.stopPropagation(),
|
|
1361
|
+
ref: E,
|
|
1345
1362
|
className: `${xe.tooltipContent} ${r ? xe[r] : xe.bottom}`,
|
|
1346
1363
|
children: o
|
|
1347
1364
|
}
|
|
1348
|
-
) :
|
|
1365
|
+
) : j && /* @__PURE__ */ i(
|
|
1349
1366
|
"div",
|
|
1350
1367
|
{
|
|
1351
|
-
style:
|
|
1352
|
-
onClick: (
|
|
1353
|
-
ref:
|
|
1368
|
+
style: y(),
|
|
1369
|
+
onClick: (h) => h.stopPropagation(),
|
|
1370
|
+
ref: E,
|
|
1354
1371
|
className: `${xe.tooltipContent} ${r ? xe[r] : xe.bottom}`,
|
|
1355
1372
|
children: [
|
|
1356
1373
|
n && typeof n == "string" && n,
|
|
1357
|
-
|
|
1374
|
+
f && f.length > 0 && typeof f == "string" && /* @__PURE__ */ e("h2", { className: xe.tooltipTitle, style: b ?? {}, children: f }),
|
|
1358
1375
|
a && a.length > 0 && typeof a == "string" && /* @__PURE__ */ e("p", { className: xe.tooltipText, style: A ?? {}, children: a })
|
|
1359
1376
|
]
|
|
1360
1377
|
}
|
|
@@ -1401,27 +1418,27 @@ const ll = "mc__Popup-module__modalOverlay", rl = "mc__Popup-module__popupDrawer
|
|
|
1401
1418
|
mode: l,
|
|
1402
1419
|
children: r,
|
|
1403
1420
|
onClickOutside: s,
|
|
1404
|
-
onClose:
|
|
1421
|
+
onClose: f,
|
|
1405
1422
|
widthType: a,
|
|
1406
1423
|
// "horizontal"
|
|
1407
1424
|
modalOverlayStyle: n,
|
|
1408
|
-
popupContainerStyle:
|
|
1425
|
+
popupContainerStyle: v,
|
|
1409
1426
|
templateWrapperStyle: B,
|
|
1410
|
-
closeButtonStyle:
|
|
1427
|
+
closeButtonStyle: b
|
|
1411
1428
|
}) => {
|
|
1412
1429
|
const A = () => {
|
|
1413
|
-
|
|
1430
|
+
f && typeof f == "function" && f();
|
|
1414
1431
|
}, w = ae(null), P = (D) => {
|
|
1415
1432
|
D.target === w.current && s && typeof s == "function" && s();
|
|
1416
1433
|
};
|
|
1417
|
-
return
|
|
1434
|
+
return ee(() => {
|
|
1418
1435
|
if (t) {
|
|
1419
1436
|
const D = document.body.style.overflow;
|
|
1420
1437
|
return document.body.style.overflow = "hidden", () => {
|
|
1421
1438
|
document.body.style.overflow = D;
|
|
1422
1439
|
};
|
|
1423
1440
|
}
|
|
1424
|
-
}, [t]),
|
|
1441
|
+
}, [t]), ee(() => (document.addEventListener("click", P), () => {
|
|
1425
1442
|
document.removeEventListener("click", P);
|
|
1426
1443
|
}), []), t && /* @__PURE__ */ e(
|
|
1427
1444
|
"div",
|
|
@@ -1435,14 +1452,14 @@ const ll = "mc__Popup-module__modalOverlay", rl = "mc__Popup-module__popupDrawer
|
|
|
1435
1452
|
children: /* @__PURE__ */ i(
|
|
1436
1453
|
"div",
|
|
1437
1454
|
{
|
|
1438
|
-
style:
|
|
1455
|
+
style: v ?? {},
|
|
1439
1456
|
className: `
|
|
1440
1457
|
mcPopup_global
|
|
1441
1458
|
${Ke.popupContainer}
|
|
1442
1459
|
${a === "horizontal" ? Ke.horizontal : ""}
|
|
1443
1460
|
`,
|
|
1444
1461
|
children: [
|
|
1445
|
-
/* @__PURE__ */ e("div", { className: Ke.closeButton, style:
|
|
1462
|
+
/* @__PURE__ */ e("div", { className: Ke.closeButton, style: b ?? {}, onClick: A, children: /* @__PURE__ */ e(Mt, { color: "#131314" }) }),
|
|
1446
1463
|
/* @__PURE__ */ i("div", { className: Ke.templateWrapper, style: B ?? {}, children: [
|
|
1447
1464
|
o && o,
|
|
1448
1465
|
r && r
|
|
@@ -1495,23 +1512,23 @@ const dl = "mc__NotificationToast-module__toastContainer", ul = "mc__Notificatio
|
|
|
1495
1512
|
filled: l = !1,
|
|
1496
1513
|
withClose: r = !1,
|
|
1497
1514
|
withUndo: s = !1,
|
|
1498
|
-
withInfoIcon:
|
|
1515
|
+
withInfoIcon: f = !0,
|
|
1499
1516
|
description: a,
|
|
1500
1517
|
customAction: n,
|
|
1501
|
-
timeout:
|
|
1518
|
+
timeout: v = 4e3,
|
|
1502
1519
|
children: B,
|
|
1503
|
-
onUndo:
|
|
1520
|
+
onUndo: b,
|
|
1504
1521
|
onClose: A
|
|
1505
1522
|
}) => {
|
|
1506
1523
|
const [w, P] = V("fadeIn");
|
|
1507
|
-
|
|
1508
|
-
const g =
|
|
1524
|
+
ee(() => {
|
|
1525
|
+
const g = v, d = 300, C = setTimeout(() => {
|
|
1509
1526
|
P("fadeOut"), setTimeout(() => {
|
|
1510
1527
|
A?.();
|
|
1511
1528
|
}, d);
|
|
1512
1529
|
}, g);
|
|
1513
1530
|
return () => {
|
|
1514
|
-
clearTimeout(
|
|
1531
|
+
clearTimeout(C);
|
|
1515
1532
|
};
|
|
1516
1533
|
}, [A]);
|
|
1517
1534
|
const D = () => {
|
|
@@ -1520,7 +1537,7 @@ const dl = "mc__NotificationToast-module__toastContainer", ul = "mc__Notificatio
|
|
|
1520
1537
|
};
|
|
1521
1538
|
return /* @__PURE__ */ e("div", { className: `${ve.notificationToast} ${ve[o]} ${l ? "" : ve.filled} ${ve[w]}`, style: D(), children: /* @__PURE__ */ i("div", { className: ve.notificationToastContent, style: a ? { alignItems: "flex-start" } : {}, children: [
|
|
1522
1539
|
/* @__PURE__ */ i("div", { className: ve.notificationToastContentLeft, style: a ? { alignItems: "flex-start" } : {}, children: [
|
|
1523
|
-
|
|
1540
|
+
f && /* @__PURE__ */ e("div", { className: ve.notificationToastContentInfoIcon, children: o === "success" ? /* @__PURE__ */ e(jt, { color: l ? "#fff" : "#328707" }) : /* @__PURE__ */ e(Yt, { color: l ? "#fff" : o === "neutral" ? "#131314" : o === "error" ? "#E3292F" : "#0058FF" }) }),
|
|
1524
1541
|
/* @__PURE__ */ i("div", { className: ve.notificationToastContentLeftText, children: [
|
|
1525
1542
|
t && /* @__PURE__ */ e("p", { className: ve.notificationToastContentLeftTextTitle, children: t }),
|
|
1526
1543
|
a && /* @__PURE__ */ e("p", { className: ve.notificationToastContentLeftTextDescription, children: a }),
|
|
@@ -1530,7 +1547,7 @@ const dl = "mc__NotificationToast-module__toastContainer", ul = "mc__Notificatio
|
|
|
1530
1547
|
/* @__PURE__ */ e("div", { className: ve.notificationToastContentDescription }),
|
|
1531
1548
|
/* @__PURE__ */ i("div", { className: ve.notificationToastContentRight, children: [
|
|
1532
1549
|
n && n,
|
|
1533
|
-
!a && s && /* @__PURE__ */ e("p", { className: ve.notificationToastContentRightUndoText, onClick: () =>
|
|
1550
|
+
!a && s && /* @__PURE__ */ e("p", { className: ve.notificationToastContentRightUndoText, onClick: () => b?.(), children: "Undo" }),
|
|
1534
1551
|
r && /* @__PURE__ */ e("div", { className: ve.notificationToastContentRightClose, style: a || !s ? { border: "none" } : {}, onClick: () => A?.(), children: /* @__PURE__ */ e(
|
|
1535
1552
|
Mt,
|
|
1536
1553
|
{
|
|
@@ -1542,14 +1559,14 @@ const dl = "mc__NotificationToast-module__toastContainer", ul = "mc__Notificatio
|
|
|
1542
1559
|
}, St = $t(null);
|
|
1543
1560
|
let $l = 0;
|
|
1544
1561
|
const Ml = ({ children: t }) => {
|
|
1545
|
-
const [o, l] = V([]), r = (
|
|
1562
|
+
const [o, l] = V([]), r = (f) => {
|
|
1546
1563
|
l((a) => {
|
|
1547
|
-
const n =
|
|
1564
|
+
const n = f.max ?? 1 / 0;
|
|
1548
1565
|
if (a.length >= n) return a;
|
|
1549
|
-
const
|
|
1566
|
+
const v = $l++;
|
|
1550
1567
|
return setTimeout(() => {
|
|
1551
|
-
l((B) => B.filter((
|
|
1552
|
-
},
|
|
1568
|
+
l((B) => B.filter((b) => b.id !== v));
|
|
1569
|
+
}, f.timeout || 4e3), [...a, { id: v, props: f }];
|
|
1553
1570
|
});
|
|
1554
1571
|
}, s = ot(() => {
|
|
1555
1572
|
if (o.length > 0)
|
|
@@ -1572,15 +1589,15 @@ const Ml = ({ children: t }) => {
|
|
|
1572
1589
|
}, [o.length]);
|
|
1573
1590
|
return /* @__PURE__ */ i(St.Provider, { value: { showToast: r }, children: [
|
|
1574
1591
|
t,
|
|
1575
|
-
o.length > 0 && /* @__PURE__ */ e("div", { className: ve.toastContainer, style: s(), children: o.map(({ id:
|
|
1592
|
+
o.length > 0 && /* @__PURE__ */ e("div", { className: ve.toastContainer, style: s(), children: o.map(({ id: f, props: a }) => /* @__PURE__ */ e(
|
|
1576
1593
|
Nl,
|
|
1577
1594
|
{
|
|
1578
1595
|
...a,
|
|
1579
1596
|
onClose: () => {
|
|
1580
|
-
l((n) => n.filter((
|
|
1597
|
+
l((n) => n.filter((v) => v.id !== f));
|
|
1581
1598
|
}
|
|
1582
1599
|
},
|
|
1583
|
-
|
|
1600
|
+
f
|
|
1584
1601
|
)) })
|
|
1585
1602
|
] });
|
|
1586
1603
|
};
|
|
@@ -1632,30 +1649,30 @@ var Pt = { exports: {} };
|
|
|
1632
1649
|
(function(l, r) {
|
|
1633
1650
|
t.exports = r();
|
|
1634
1651
|
})(Yl, function() {
|
|
1635
|
-
var l = { 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, s = /\d/,
|
|
1652
|
+
var l = { 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, s = /\d/, f = /\d\d/, a = /\d\d?/, n = /\d*[^-_:/,()\s\d]+/, v = {}, B = function(d) {
|
|
1636
1653
|
return (d = +d) + (d > 68 ? 1900 : 2e3);
|
|
1637
|
-
},
|
|
1638
|
-
return function(
|
|
1639
|
-
this[d] = +
|
|
1654
|
+
}, b = function(d) {
|
|
1655
|
+
return function(C) {
|
|
1656
|
+
this[d] = +C;
|
|
1640
1657
|
};
|
|
1641
1658
|
}, A = [/[+-]\d\d:?(\d\d)?|Z/, function(d) {
|
|
1642
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
1643
|
-
if (!
|
|
1644
|
-
var
|
|
1645
|
-
return
|
|
1659
|
+
(this.zone || (this.zone = {})).offset = function(C) {
|
|
1660
|
+
if (!C || C === "Z") return 0;
|
|
1661
|
+
var L = C.match(/([+-]|\d\d)/g), u = 60 * L[1] + (+L[2] || 0);
|
|
1662
|
+
return u === 0 ? 0 : L[0] === "+" ? -u : u;
|
|
1646
1663
|
}(d);
|
|
1647
1664
|
}], w = function(d) {
|
|
1648
|
-
var
|
|
1649
|
-
return
|
|
1650
|
-
}, P = function(d,
|
|
1651
|
-
var
|
|
1652
|
-
if (
|
|
1653
|
-
for (var
|
|
1654
|
-
|
|
1665
|
+
var C = v[d];
|
|
1666
|
+
return C && (C.indexOf ? C : C.s.concat(C.f));
|
|
1667
|
+
}, P = function(d, C) {
|
|
1668
|
+
var L, u = v.meridiem;
|
|
1669
|
+
if (u) {
|
|
1670
|
+
for (var Z = 1; Z <= 24; Z += 1) if (d.indexOf(u(Z, 0, C)) > -1) {
|
|
1671
|
+
L = Z > 12;
|
|
1655
1672
|
break;
|
|
1656
1673
|
}
|
|
1657
|
-
} else
|
|
1658
|
-
return
|
|
1674
|
+
} else L = d === (C ? "pm" : "PM");
|
|
1675
|
+
return L;
|
|
1659
1676
|
}, D = { A: [n, function(d) {
|
|
1660
1677
|
this.afternoon = P(d, !1);
|
|
1661
1678
|
}], a: [n, function(d) {
|
|
@@ -1664,86 +1681,86 @@ var Pt = { exports: {} };
|
|
|
1664
1681
|
this.month = 3 * (d - 1) + 1;
|
|
1665
1682
|
}], S: [s, function(d) {
|
|
1666
1683
|
this.milliseconds = 100 * +d;
|
|
1667
|
-
}], SS: [
|
|
1684
|
+
}], SS: [f, function(d) {
|
|
1668
1685
|
this.milliseconds = 10 * +d;
|
|
1669
1686
|
}], SSS: [/\d{3}/, function(d) {
|
|
1670
1687
|
this.milliseconds = +d;
|
|
1671
|
-
}], s: [a,
|
|
1672
|
-
var
|
|
1673
|
-
if (this.day =
|
|
1674
|
-
}], w: [a,
|
|
1675
|
-
var
|
|
1676
|
-
return
|
|
1688
|
+
}], s: [a, b("seconds")], ss: [a, b("seconds")], m: [a, b("minutes")], mm: [a, b("minutes")], H: [a, b("hours")], h: [a, b("hours")], HH: [a, b("hours")], hh: [a, b("hours")], D: [a, b("day")], DD: [f, b("day")], Do: [n, function(d) {
|
|
1689
|
+
var C = v.ordinal, L = d.match(/\d+/);
|
|
1690
|
+
if (this.day = L[0], C) for (var u = 1; u <= 31; u += 1) C(u).replace(/\[|\]/g, "") === d && (this.day = u);
|
|
1691
|
+
}], w: [a, b("week")], ww: [f, b("week")], M: [a, b("month")], MM: [f, b("month")], MMM: [n, function(d) {
|
|
1692
|
+
var C = w("months"), L = (w("monthsShort") || C.map(function(u) {
|
|
1693
|
+
return u.slice(0, 3);
|
|
1677
1694
|
})).indexOf(d) + 1;
|
|
1678
|
-
if (
|
|
1679
|
-
this.month =
|
|
1695
|
+
if (L < 1) throw new Error();
|
|
1696
|
+
this.month = L % 12 || L;
|
|
1680
1697
|
}], MMMM: [n, function(d) {
|
|
1681
|
-
var
|
|
1682
|
-
if (
|
|
1683
|
-
this.month =
|
|
1684
|
-
}], Y: [/[+-]?\d+/,
|
|
1698
|
+
var C = w("months").indexOf(d) + 1;
|
|
1699
|
+
if (C < 1) throw new Error();
|
|
1700
|
+
this.month = C % 12 || C;
|
|
1701
|
+
}], Y: [/[+-]?\d+/, b("year")], YY: [f, function(d) {
|
|
1685
1702
|
this.year = B(d);
|
|
1686
|
-
}], YYYY: [/\d{4}/,
|
|
1703
|
+
}], YYYY: [/\d{4}/, b("year")], Z: A, ZZ: A };
|
|
1687
1704
|
function g(d) {
|
|
1688
|
-
var
|
|
1689
|
-
|
|
1690
|
-
for (var
|
|
1691
|
-
var
|
|
1692
|
-
return
|
|
1693
|
-
return
|
|
1705
|
+
var C, L;
|
|
1706
|
+
C = d, L = v && v.formats;
|
|
1707
|
+
for (var u = (d = C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Y, te, O) {
|
|
1708
|
+
var z = O && O.toUpperCase();
|
|
1709
|
+
return te || L[O] || l[O] || L[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(U, k, y) {
|
|
1710
|
+
return k || y.slice(1);
|
|
1694
1711
|
});
|
|
1695
|
-
})).match(r),
|
|
1696
|
-
var
|
|
1697
|
-
|
|
1712
|
+
})).match(r), Z = u.length, q = 0; q < Z; q += 1) {
|
|
1713
|
+
var K = u[q], E = D[K], ne = E && E[0], j = E && E[1];
|
|
1714
|
+
u[q] = j ? { regex: ne, parser: j } : K.replace(/^\[|\]$/g, "");
|
|
1698
1715
|
}
|
|
1699
|
-
return function(
|
|
1700
|
-
for (var
|
|
1701
|
-
var
|
|
1702
|
-
if (typeof
|
|
1716
|
+
return function(Y) {
|
|
1717
|
+
for (var te = {}, O = 0, z = 0; O < Z; O += 1) {
|
|
1718
|
+
var U = u[O];
|
|
1719
|
+
if (typeof U == "string") z += U.length;
|
|
1703
1720
|
else {
|
|
1704
|
-
var
|
|
1705
|
-
|
|
1721
|
+
var k = U.regex, y = U.parser, h = Y.slice(z), H = k.exec(h)[0];
|
|
1722
|
+
y.call(te, H), Y = Y.replace(H, "");
|
|
1706
1723
|
}
|
|
1707
1724
|
}
|
|
1708
|
-
return function(
|
|
1709
|
-
var W =
|
|
1725
|
+
return function(m) {
|
|
1726
|
+
var W = m.afternoon;
|
|
1710
1727
|
if (W !== void 0) {
|
|
1711
|
-
var Q =
|
|
1712
|
-
W ? Q < 12 && (
|
|
1728
|
+
var Q = m.hours;
|
|
1729
|
+
W ? Q < 12 && (m.hours += 12) : Q === 12 && (m.hours = 0), delete m.afternoon;
|
|
1713
1730
|
}
|
|
1714
|
-
}(
|
|
1731
|
+
}(te), te;
|
|
1715
1732
|
};
|
|
1716
1733
|
}
|
|
1717
|
-
return function(d,
|
|
1718
|
-
|
|
1719
|
-
var
|
|
1720
|
-
|
|
1721
|
-
var
|
|
1722
|
-
this.$u =
|
|
1723
|
-
var
|
|
1724
|
-
if (typeof
|
|
1725
|
-
var
|
|
1726
|
-
|
|
1734
|
+
return function(d, C, L) {
|
|
1735
|
+
L.p.customParseFormat = !0, d && d.parseTwoDigitYear && (B = d.parseTwoDigitYear);
|
|
1736
|
+
var u = C.prototype, Z = u.parse;
|
|
1737
|
+
u.parse = function(q) {
|
|
1738
|
+
var K = q.date, E = q.utc, ne = q.args;
|
|
1739
|
+
this.$u = E;
|
|
1740
|
+
var j = ne[1];
|
|
1741
|
+
if (typeof j == "string") {
|
|
1742
|
+
var Y = ne[2] === !0, te = ne[3] === !0, O = Y || te, z = ne[2];
|
|
1743
|
+
te && (z = ne[2]), v = this.$locale(), !Y && z && (v = L.Ls[z]), this.$d = function(h, H, m, W) {
|
|
1727
1744
|
try {
|
|
1728
|
-
if (["x", "X"].indexOf(H) > -1) return new Date((H === "X" ? 1e3 : 1) *
|
|
1729
|
-
var Q = g(H)(
|
|
1745
|
+
if (["x", "X"].indexOf(H) > -1) return new Date((H === "X" ? 1e3 : 1) * h);
|
|
1746
|
+
var Q = g(H)(h), ce = Q.year, le = Q.month, he = Q.day, ie = Q.hours, F = Q.minutes, se = Q.seconds, de = Q.milliseconds, J = Q.zone, fe = Q.week, R = /* @__PURE__ */ new Date(), _ = he || (ce || le ? 1 : R.getDate()), S = ce || R.getFullYear(), N = 0;
|
|
1730
1747
|
ce && !le || (N = le > 0 ? le - 1 : R.getMonth());
|
|
1731
|
-
var re,
|
|
1732
|
-
return J ? new Date(Date.UTC(S, N,
|
|
1748
|
+
var re, G = ie || 0, we = F || 0, _e = se || 0, ge = de || 0;
|
|
1749
|
+
return J ? new Date(Date.UTC(S, N, _, G, we, _e, ge + 60 * J.offset * 1e3)) : m ? new Date(Date.UTC(S, N, _, G, we, _e, ge)) : (re = new Date(S, N, _, G, we, _e, ge), fe && (re = W(re).week(fe).toDate()), re);
|
|
1733
1750
|
} catch {
|
|
1734
1751
|
return /* @__PURE__ */ new Date("");
|
|
1735
1752
|
}
|
|
1736
|
-
}(
|
|
1737
|
-
} else if (
|
|
1738
|
-
|
|
1739
|
-
var
|
|
1740
|
-
if (
|
|
1741
|
-
this.$d =
|
|
1753
|
+
}(K, j, E, L), this.init(), z && z !== !0 && (this.$L = this.locale(z).$L), O && K != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), v = {};
|
|
1754
|
+
} else if (j instanceof Array) for (var U = j.length, k = 1; k <= U; k += 1) {
|
|
1755
|
+
ne[1] = j[k - 1];
|
|
1756
|
+
var y = L.apply(this, ne);
|
|
1757
|
+
if (y.isValid()) {
|
|
1758
|
+
this.$d = y.$d, this.$L = y.$L, this.init();
|
|
1742
1759
|
break;
|
|
1743
1760
|
}
|
|
1744
|
-
|
|
1761
|
+
k === U && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1745
1762
|
}
|
|
1746
|
-
else
|
|
1763
|
+
else Z.call(this, q);
|
|
1747
1764
|
};
|
|
1748
1765
|
};
|
|
1749
1766
|
});
|
|
@@ -1757,71 +1774,71 @@ const _t = ({
|
|
|
1757
1774
|
defaultAmPm: l = "AM",
|
|
1758
1775
|
withConfirm: r = !0,
|
|
1759
1776
|
mode: s = "single",
|
|
1760
|
-
closeOnScroll:
|
|
1777
|
+
closeOnScroll: f = !1,
|
|
1761
1778
|
onChange: a,
|
|
1762
1779
|
onFocus: n,
|
|
1763
|
-
onBlur:
|
|
1780
|
+
onBlur: v,
|
|
1764
1781
|
...B
|
|
1765
1782
|
}) => {
|
|
1766
|
-
const
|
|
1767
|
-
if (!
|
|
1768
|
-
const
|
|
1769
|
-
if (!
|
|
1770
|
-
const H =
|
|
1771
|
-
|
|
1772
|
-
},
|
|
1783
|
+
const b = ae(null), A = ae(null), [w, P] = V(!1), [D, g] = V(o), d = Array.from({ length: 12 }, (y, h) => h < 10 ? `0${h}` : `${h}`), C = Array.from({ length: 24 }, (y, h) => h < 10 ? `0${h}` : `${h}`), L = Array.from({ length: 60 }, (y, h) => h < 10 ? `0${h}` : `${h}`), [u, Z] = V(""), [q, K] = V(null), [E, ne] = V(null), [j, Y] = V(l), te = () => {
|
|
1784
|
+
if (!b.current || !A.current) return;
|
|
1785
|
+
const y = b.current, h = A.current;
|
|
1786
|
+
if (!h || !y) return;
|
|
1787
|
+
const H = y.getBoundingClientRect(), m = window.innerHeight, W = window.innerWidth;
|
|
1788
|
+
h.style.position = "fixed", H.bottom + h.offsetHeight > m ? (h.style.top = `${H.top - h.offsetHeight + 20}px`, h.style.bottom = "unset") : (h.style.top = `${H.bottom + 8}px`, h.style.bottom = "unset"), H.right + H.width > W - 120 ? h.style.left = `${H.left + H.width - h.offsetWidth}px` : h.style.left = `${H.left}px`;
|
|
1789
|
+
}, O = () => {
|
|
1773
1790
|
requestAnimationFrame(() => {
|
|
1774
|
-
|
|
1791
|
+
te();
|
|
1775
1792
|
});
|
|
1776
|
-
},
|
|
1793
|
+
}, z = () => {
|
|
1777
1794
|
n?.();
|
|
1778
|
-
},
|
|
1779
|
-
|
|
1795
|
+
}, U = () => {
|
|
1796
|
+
Z(""), ne(null), K(null), Y("AM");
|
|
1780
1797
|
};
|
|
1781
|
-
|
|
1782
|
-
t && t.length > 0 &&
|
|
1783
|
-
}, [t]),
|
|
1784
|
-
if (!
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1787
|
-
}, [
|
|
1788
|
-
const
|
|
1789
|
-
return
|
|
1790
|
-
if (
|
|
1791
|
-
|
|
1798
|
+
ee(() => {
|
|
1799
|
+
t && t.length > 0 && Z(t);
|
|
1800
|
+
}, [t]), ee(() => {
|
|
1801
|
+
if (!E && !q) return;
|
|
1802
|
+
const y = parseInt(E ?? "0", 10), h = parseInt(q ?? "0", 10), H = D === "12" ? j === "PM" && y < 12 ? y + 12 : j === "AM" && y === 12 ? 0 : y : y, m = $().hour(H).minute(h).format(D === "12" ? "hh:mm A" : "HH:mm");
|
|
1803
|
+
Z(m), r || a?.(m);
|
|
1804
|
+
}, [E, q, j, D]);
|
|
1805
|
+
const k = ae(!0);
|
|
1806
|
+
return ee(() => {
|
|
1807
|
+
if (k.current) {
|
|
1808
|
+
k.current = !1;
|
|
1792
1809
|
return;
|
|
1793
1810
|
}
|
|
1794
|
-
w ||
|
|
1795
|
-
}, [w]),
|
|
1796
|
-
|
|
1797
|
-
}, [
|
|
1798
|
-
const
|
|
1799
|
-
!
|
|
1800
|
-
},
|
|
1801
|
-
!
|
|
1811
|
+
w || v?.();
|
|
1812
|
+
}, [w]), ee(() => {
|
|
1813
|
+
O();
|
|
1814
|
+
}, [b, w]), ee(() => {
|
|
1815
|
+
const y = (m) => {
|
|
1816
|
+
!b.current || !A.current || m.composedPath().includes(b.current) || m.composedPath().includes(A.current) || P(!1);
|
|
1817
|
+
}, h = (m) => {
|
|
1818
|
+
!b.current || A.current || P(!1);
|
|
1802
1819
|
}, H = () => {
|
|
1803
|
-
w &&
|
|
1820
|
+
w && O();
|
|
1804
1821
|
};
|
|
1805
|
-
return document.addEventListener("click",
|
|
1806
|
-
document.removeEventListener("click",
|
|
1822
|
+
return document.addEventListener("click", y), document.addEventListener("wheel", h), window.addEventListener("scroll", H), () => {
|
|
1823
|
+
document.removeEventListener("click", y), document.removeEventListener("wheel", h), window.removeEventListener("scroll", H);
|
|
1807
1824
|
};
|
|
1808
1825
|
}, [w]), /* @__PURE__ */ i("div", { className: `${Ce.timepickerWrapper} ${w ? Ce.focused : ""}`, children: [
|
|
1809
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1826
|
+
/* @__PURE__ */ e("div", { ref: b, className: Ce.timepickerInputWrapper, onClick: () => (P((y) => !y), O()), onFocus: z, children: /* @__PURE__ */ e(
|
|
1810
1827
|
Ze,
|
|
1811
1828
|
{
|
|
1812
1829
|
...B,
|
|
1813
|
-
onFocusChange: (
|
|
1830
|
+
onFocusChange: (y) => P(y),
|
|
1814
1831
|
customFocus: w,
|
|
1815
1832
|
withActive: !1,
|
|
1816
|
-
value:
|
|
1833
|
+
value: u,
|
|
1817
1834
|
toggleFocus: !0,
|
|
1818
1835
|
formInputStyle: { cursor: "pointer" },
|
|
1819
1836
|
rightSlot: /* @__PURE__ */ i("div", { className: `${Ce.dropdownRightIcon} ${w ? Ce.focused : ""}`, children: [
|
|
1820
|
-
|
|
1837
|
+
u && /* @__PURE__ */ e(
|
|
1821
1838
|
"div",
|
|
1822
1839
|
{
|
|
1823
|
-
onClick: (
|
|
1824
|
-
|
|
1840
|
+
onClick: (y) => {
|
|
1841
|
+
y.stopPropagation(), U();
|
|
1825
1842
|
},
|
|
1826
1843
|
className: Ce.dropdownRightIconClose,
|
|
1827
1844
|
children: /* @__PURE__ */ e(nt, {})
|
|
@@ -1840,7 +1857,7 @@ const _t = ({
|
|
|
1840
1857
|
{
|
|
1841
1858
|
className: D === "12" ? Ce.active : "",
|
|
1842
1859
|
onClick: () => {
|
|
1843
|
-
|
|
1860
|
+
U(), g("12");
|
|
1844
1861
|
},
|
|
1845
1862
|
children: "AM -PM"
|
|
1846
1863
|
}
|
|
@@ -1850,21 +1867,21 @@ const _t = ({
|
|
|
1850
1867
|
{
|
|
1851
1868
|
className: D === "24" ? Ce.active : "",
|
|
1852
1869
|
onClick: () => {
|
|
1853
|
-
|
|
1870
|
+
U(), g("24");
|
|
1854
1871
|
},
|
|
1855
1872
|
children: "24 Hours"
|
|
1856
1873
|
}
|
|
1857
1874
|
)
|
|
1858
1875
|
] }) }),
|
|
1859
1876
|
/* @__PURE__ */ i("div", { className: Ce.timepickerDropdownBody, children: [
|
|
1860
|
-
/* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyHours, children: (D === "12" ? d :
|
|
1861
|
-
/* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyMinutes, children:
|
|
1877
|
+
/* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyHours, children: (D === "12" ? d : C).map((y) => /* @__PURE__ */ e("p", { className: E === y || u?.split(":")[0] === y ? Ce.active : "", onClick: () => ne(y), children: y }, y)) }),
|
|
1878
|
+
/* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyMinutes, children: L.map((y) => /* @__PURE__ */ e("p", { className: q === y || u?.split(":")[1] === y ? Ce.active : "", onClick: () => K(y), children: y }, y)) }),
|
|
1862
1879
|
D === "12" && /* @__PURE__ */ i("div", { className: Ce.timepickerDropdownBodyAmPm, children: [
|
|
1863
|
-
/* @__PURE__ */ e("p", { className:
|
|
1864
|
-
/* @__PURE__ */ e("p", { className:
|
|
1880
|
+
/* @__PURE__ */ e("p", { className: j === "AM" ? Ce.active : "", onClick: () => Y("AM"), children: "AM" }, "AM"),
|
|
1881
|
+
/* @__PURE__ */ e("p", { className: j === "PM" ? Ce.active : "", onClick: () => Y("PM"), children: "PM" }, "PM")
|
|
1865
1882
|
] })
|
|
1866
1883
|
] }),
|
|
1867
|
-
r && /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownFooter, children: /* @__PURE__ */ e($e, { label: "Confirm time", onClick: () => a?.(
|
|
1884
|
+
r && /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownFooter, children: /* @__PURE__ */ e($e, { label: "Confirm time", onClick: () => a?.(u) }) })
|
|
1868
1885
|
] })
|
|
1869
1886
|
] });
|
|
1870
1887
|
};
|
|
@@ -1876,7 +1893,7 @@ const ql = "mc__Datepicker-module__datepickerContainer", Xl = "mc__Datepicker-mo
|
|
|
1876
1893
|
datepickerInputWrapper: Xl,
|
|
1877
1894
|
datepickerLeftIcon: Ql,
|
|
1878
1895
|
datepickerRightIcon: Jl
|
|
1879
|
-
}, Gl = "mc__Calendar-module__datePicker", er = "mc__Calendar-module__dualCalendar", tr = "mc__Calendar-module__dualCalendarWithQuick", or = "mc__Calendar-module__border", nr = "mc__Calendar-module__calendarWrapper", lr = "mc__Calendar-module__quickPick", rr = "mc__Calendar-module__datePickerHeader", ir = "mc__Calendar-module__div", sr = "mc__Calendar-module__currentDateHeader", ar = "mc__Calendar-module__left", cr = "mc__Calendar-module__right", dr = "mc__Calendar-module__singleIcon", ur = "mc__Calendar-module__doubleIcon", pr = "mc__Calendar-module__spacerRow", mr = "mc__Calendar-module__day", hr = "mc__Calendar-module__today", fr = "mc__Calendar-module__inRange", _r = "mc__Calendar-module__selected", Cr = "mc__Calendar-module__startDate", gr = "mc__Calendar-module__endDate", wr = "mc__Calendar-module__disabled", yr = "mc__Calendar-module__otherMonth", vr = "mc__Calendar-module__monthsWrapper", br = "mc__Calendar-module__month", kr = "mc__Calendar-module__pickedMonth", Lr = "mc__Calendar-module__buttonWrapper",
|
|
1896
|
+
}, Gl = "mc__Calendar-module__datePicker", er = "mc__Calendar-module__dualCalendar", tr = "mc__Calendar-module__dualCalendarWithQuick", or = "mc__Calendar-module__border", nr = "mc__Calendar-module__calendarWrapper", lr = "mc__Calendar-module__quickPick", rr = "mc__Calendar-module__datePickerHeader", ir = "mc__Calendar-module__div", sr = "mc__Calendar-module__currentDateHeader", ar = "mc__Calendar-module__left", cr = "mc__Calendar-module__right", dr = "mc__Calendar-module__singleIcon", ur = "mc__Calendar-module__doubleIcon", pr = "mc__Calendar-module__spacerRow", mr = "mc__Calendar-module__day", hr = "mc__Calendar-module__today", fr = "mc__Calendar-module__inRange", _r = "mc__Calendar-module__selected", Cr = "mc__Calendar-module__startDate", gr = "mc__Calendar-module__endDate", wr = "mc__Calendar-module__disabled", yr = "mc__Calendar-module__otherMonth", vr = "mc__Calendar-module__monthsWrapper", br = "mc__Calendar-module__month", kr = "mc__Calendar-module__pickedMonth", Lr = "mc__Calendar-module__buttonWrapper", X = {
|
|
1880
1897
|
datePicker: Gl,
|
|
1881
1898
|
dualCalendar: er,
|
|
1882
1899
|
dualCalendarWithQuick: tr,
|
|
@@ -1911,149 +1928,149 @@ const xr = ({
|
|
|
1911
1928
|
onChange: l,
|
|
1912
1929
|
CurrentMonth: r,
|
|
1913
1930
|
setCurrentMonth: s,
|
|
1914
|
-
SelectedDate:
|
|
1931
|
+
SelectedDate: f,
|
|
1915
1932
|
namespace: a,
|
|
1916
1933
|
customYears: n,
|
|
1917
|
-
setSelectedDate:
|
|
1934
|
+
setSelectedDate: v,
|
|
1918
1935
|
IsFocused: B,
|
|
1919
|
-
setIsFocused:
|
|
1936
|
+
setIsFocused: b,
|
|
1920
1937
|
mode: A,
|
|
1921
1938
|
RangeSelection: w,
|
|
1922
1939
|
setRangeSelection: P,
|
|
1923
1940
|
pickerType: D,
|
|
1924
1941
|
disabledDatesRange: g,
|
|
1925
1942
|
disabledDatesTill: d,
|
|
1926
|
-
disabledDatesFrom:
|
|
1927
|
-
CalendarRef:
|
|
1928
|
-
defaultValue:
|
|
1929
|
-
selectedStyle:
|
|
1930
|
-
endDateStyle:
|
|
1931
|
-
startDateStyle:
|
|
1932
|
-
inRangeStyle:
|
|
1933
|
-
otherMonthStyle:
|
|
1934
|
-
todayStyle:
|
|
1935
|
-
weekDayStyle:
|
|
1936
|
-
quickPickStyle:
|
|
1937
|
-
monthStyle:
|
|
1943
|
+
disabledDatesFrom: C,
|
|
1944
|
+
CalendarRef: L,
|
|
1945
|
+
defaultValue: u,
|
|
1946
|
+
selectedStyle: Z,
|
|
1947
|
+
endDateStyle: q,
|
|
1948
|
+
startDateStyle: K,
|
|
1949
|
+
inRangeStyle: E,
|
|
1950
|
+
otherMonthStyle: ne,
|
|
1951
|
+
todayStyle: j,
|
|
1952
|
+
weekDayStyle: Y,
|
|
1953
|
+
quickPickStyle: te,
|
|
1954
|
+
monthStyle: O
|
|
1938
1955
|
}) => {
|
|
1939
|
-
const
|
|
1956
|
+
const z = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], U = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1940
1957
|
$().year();
|
|
1941
|
-
const [
|
|
1958
|
+
const [k, y] = V(""), h = ae([]), [H, m] = V(!1), W = (R) => {
|
|
1942
1959
|
if (n?.length && !n.includes(R.year().toString()))
|
|
1943
1960
|
return [];
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1946
|
-
for (let ge = 0; ge <
|
|
1947
|
-
|
|
1948
|
-
date: R.subtract(1, "month").date(N -
|
|
1961
|
+
const _ = (R.startOf("month").day() + 6) % 7, S = R.endOf("month").date(), N = R.subtract(1, "month").endOf("month").date(), re = [];
|
|
1962
|
+
let G = [], we = 1;
|
|
1963
|
+
for (let ge = 0; ge < _; ge++)
|
|
1964
|
+
G.push({
|
|
1965
|
+
date: R.subtract(1, "month").date(N - _ + ge + 1),
|
|
1949
1966
|
currentMonth: !1
|
|
1950
1967
|
});
|
|
1951
1968
|
for (; we <= S; )
|
|
1952
|
-
|
|
1969
|
+
G.push({ date: R.date(we++), currentMonth: !0 }), G.length === 7 && (re.push(G), G = []);
|
|
1953
1970
|
let _e = 1;
|
|
1954
1971
|
for (; re.length < 5; )
|
|
1955
|
-
|
|
1972
|
+
G.length === 7 && (re.push(G), G = []), G.push({
|
|
1956
1973
|
date: R.add(1, "month").date(_e++),
|
|
1957
1974
|
currentMonth: !1
|
|
1958
1975
|
});
|
|
1959
|
-
if (
|
|
1960
|
-
for (;
|
|
1961
|
-
|
|
1976
|
+
if (G.length) {
|
|
1977
|
+
for (; G.length < 7; )
|
|
1978
|
+
G.push({
|
|
1962
1979
|
date: R.add(1, "month").date(_e++),
|
|
1963
1980
|
currentMonth: !1
|
|
1964
1981
|
});
|
|
1965
|
-
re.push(
|
|
1982
|
+
re.push(G);
|
|
1966
1983
|
}
|
|
1967
1984
|
return re;
|
|
1968
1985
|
}, Q = W(r), ce = D === "dual" ? W(r.add(1, "month")) : null, le = () => {
|
|
1969
1986
|
let R = [];
|
|
1970
|
-
return o && Array.isArray(o) && o.length > 0 && o.forEach((
|
|
1971
|
-
switch (
|
|
1987
|
+
return o && Array.isArray(o) && o.length > 0 && o.forEach((_) => {
|
|
1988
|
+
switch (_) {
|
|
1972
1989
|
case "today":
|
|
1973
|
-
|
|
1990
|
+
h.current.push({ name: "Today", key: "Today" });
|
|
1974
1991
|
break;
|
|
1975
1992
|
case "yesterday":
|
|
1976
|
-
|
|
1993
|
+
h.current.push({ name: "Yesterday", key: "Yesterday" });
|
|
1977
1994
|
break;
|
|
1978
1995
|
case "thisweek":
|
|
1979
|
-
|
|
1996
|
+
h.current.push({ name: "This week", key: "Thisweek" });
|
|
1980
1997
|
break;
|
|
1981
1998
|
case "lastweek":
|
|
1982
|
-
|
|
1999
|
+
h.current.push({ name: "Last week", key: "Lastweek" });
|
|
1983
2000
|
break;
|
|
1984
2001
|
case "thismonth":
|
|
1985
|
-
|
|
2002
|
+
h.current.push({ name: "This month", key: "Thismonth" });
|
|
1986
2003
|
break;
|
|
1987
2004
|
case "lastmonth":
|
|
1988
|
-
|
|
2005
|
+
h.current.push({ name: "Last month", key: "Lastmonth" });
|
|
1989
2006
|
break;
|
|
1990
2007
|
case "thisyear":
|
|
1991
|
-
|
|
2008
|
+
h.current.push({ name: "This year", key: "Thisyear" });
|
|
1992
2009
|
break;
|
|
1993
2010
|
case "lastyear":
|
|
1994
|
-
|
|
2011
|
+
h.current.push({ name: "Last year", key: "Lastyear" });
|
|
1995
2012
|
break;
|
|
1996
2013
|
case "alltime":
|
|
1997
|
-
|
|
2014
|
+
h.current.push({ name: "All time", key: "Alltime" });
|
|
1998
2015
|
break;
|
|
1999
2016
|
}
|
|
2000
|
-
}),
|
|
2017
|
+
}), h.current = at(h.current, "key"), R = h.current, R;
|
|
2001
2018
|
}, he = (R) => {
|
|
2002
|
-
let
|
|
2003
|
-
switch (
|
|
2019
|
+
let _ = { start: "", end: "" };
|
|
2020
|
+
switch (v(null), R.key?.toLowerCase()) {
|
|
2004
2021
|
case "today":
|
|
2005
2022
|
P({
|
|
2006
2023
|
start: $(),
|
|
2007
2024
|
end: $()
|
|
2008
|
-
}),
|
|
2025
|
+
}), _.start = $();
|
|
2009
2026
|
break;
|
|
2010
2027
|
case "yesterday":
|
|
2011
|
-
|
|
2028
|
+
v($().subtract(1, "day")), P({
|
|
2012
2029
|
start: $().subtract(1, "day"),
|
|
2013
2030
|
end: $().subtract(1, "day")
|
|
2014
|
-
}),
|
|
2031
|
+
}), _.start = $().subtract(1, "day");
|
|
2015
2032
|
break;
|
|
2016
2033
|
case "thisweek":
|
|
2017
2034
|
P({
|
|
2018
2035
|
start: $().startOf("week"),
|
|
2019
2036
|
end: $().endOf("week")
|
|
2020
|
-
}),
|
|
2037
|
+
}), _.start = $().startOf("week"), _.end = $().endOf("week");
|
|
2021
2038
|
break;
|
|
2022
2039
|
case "lastweek":
|
|
2023
2040
|
P({
|
|
2024
2041
|
start: $().subtract(1, "week").startOf("week"),
|
|
2025
2042
|
end: $().subtract(1, "week").endOf("week")
|
|
2026
|
-
}),
|
|
2043
|
+
}), _.start = $().subtract(1, "week").startOf("week"), _.end = $().subtract(1, "week").endOf("week");
|
|
2027
2044
|
break;
|
|
2028
2045
|
case "thismonth":
|
|
2029
2046
|
P({
|
|
2030
2047
|
start: $().startOf("month"),
|
|
2031
2048
|
end: $().endOf("month")
|
|
2032
|
-
}),
|
|
2049
|
+
}), _.start = $().startOf("month"), _.end = $().endOf("month");
|
|
2033
2050
|
break;
|
|
2034
2051
|
case "lastmonth":
|
|
2035
2052
|
P({
|
|
2036
2053
|
start: $().subtract(1, "month").startOf("month"),
|
|
2037
2054
|
end: $().subtract(1, "month").endOf("month")
|
|
2038
|
-
}),
|
|
2055
|
+
}), _.start = $().subtract(1, "month").startOf("month"), _.end = $().subtract(1, "month").endOf("month");
|
|
2039
2056
|
break;
|
|
2040
2057
|
case "thisyear":
|
|
2041
2058
|
P({
|
|
2042
2059
|
start: $().startOf("year"),
|
|
2043
2060
|
end: $().endOf("year")
|
|
2044
|
-
}),
|
|
2061
|
+
}), _.start = $().startOf("year"), _.end = $().endOf("year");
|
|
2045
2062
|
break;
|
|
2046
2063
|
case "lastyear":
|
|
2047
2064
|
P({
|
|
2048
2065
|
start: $().subtract(1, "year").startOf("year"),
|
|
2049
2066
|
end: $().subtract(1, "year").endOf("year")
|
|
2050
|
-
}),
|
|
2067
|
+
}), _.start = $().subtract(1, "year").startOf("year"), _.end = $().subtract(1, "year").endOf("year");
|
|
2051
2068
|
break;
|
|
2052
2069
|
case "alltime":
|
|
2053
2070
|
P({
|
|
2054
2071
|
start: "",
|
|
2055
2072
|
end: ""
|
|
2056
|
-
}),
|
|
2073
|
+
}), _.start = "", _.end = "";
|
|
2057
2074
|
break;
|
|
2058
2075
|
default:
|
|
2059
2076
|
console.warn("Unsupported quick pick option:", R);
|
|
@@ -2061,14 +2078,14 @@ const xr = ({
|
|
|
2061
2078
|
}
|
|
2062
2079
|
if (l && typeof l == "function") {
|
|
2063
2080
|
const S = {
|
|
2064
|
-
start:
|
|
2065
|
-
end:
|
|
2081
|
+
start: _.start ? _.start : "",
|
|
2082
|
+
end: _.end ? _.end : ""
|
|
2066
2083
|
};
|
|
2067
|
-
|
|
2084
|
+
b(!1), l(S.end === "" ? S.start : S);
|
|
2068
2085
|
}
|
|
2069
2086
|
}, ie = () => {
|
|
2070
|
-
},
|
|
2071
|
-
|
|
2087
|
+
}, F = (R, _, S = !1) => {
|
|
2088
|
+
_ || s(R.startOf("month")), A === "range" ? P((N) => !N.start || N.start && N.end ? (l && typeof l == "function" && l({
|
|
2072
2089
|
start: R ?? "",
|
|
2073
2090
|
end: ""
|
|
2074
2091
|
}), { start: R ?? "", end: "" }) : N.start && !N.end ? R.isBefore(N.start, "day") ? (l && typeof l == "function" && l({
|
|
@@ -2077,7 +2094,7 @@ const xr = ({
|
|
|
2077
2094
|
}), { start: R ?? "", end: N?.start ?? "" }) : (l({
|
|
2078
2095
|
...N,
|
|
2079
2096
|
end: R ?? ""
|
|
2080
|
-
}), { ...N, end: R ?? "" }) : N) : (P({ start: null, end: null }),
|
|
2097
|
+
}), { ...N, end: R ?? "" }) : N) : (P({ start: null, end: null }), v(R), S || (b(!1), l && typeof l == "function" && l(R.format(t))));
|
|
2081
2098
|
}, se = () => {
|
|
2082
2099
|
s(r.add(1, "month"));
|
|
2083
2100
|
}, de = () => {
|
|
@@ -2087,64 +2104,64 @@ const xr = ({
|
|
|
2087
2104
|
}, fe = () => {
|
|
2088
2105
|
s(r.subtract(1, "year"));
|
|
2089
2106
|
};
|
|
2090
|
-
return
|
|
2091
|
-
|
|
2107
|
+
return ee(() => {
|
|
2108
|
+
u?.state && (Array.isArray(u?.value) ? P({ start: $(u?.value[0], t), end: $(u?.value[1], t) }) : F($(u.value), !1, !0), u.state = !1);
|
|
2092
2109
|
}, []), /* @__PURE__ */ e(
|
|
2093
2110
|
"div",
|
|
2094
2111
|
{
|
|
2095
|
-
ref:
|
|
2096
|
-
className: `${a === "namespaceHr" ?
|
|
2112
|
+
ref: L,
|
|
2113
|
+
className: `${a === "namespaceHr" ? X.namespaceHr : ""} ${X.datePicker} ${B ? X.focused : ""} ${D === "dual" ? o && Array.isArray(o) && o.length > 0 ? X.dualCalendarWithQuick : X.dualCalendar : ""} `,
|
|
2097
2114
|
onClick: (R) => R.stopPropagation(),
|
|
2098
2115
|
style: D === "dual" && o && Array.isArray(o) && o.length > 0 ? { width: "848px" } : {},
|
|
2099
|
-
children: /* @__PURE__ */ i("div", { className:
|
|
2116
|
+
children: /* @__PURE__ */ i("div", { className: X.div, children: [
|
|
2100
2117
|
D === "dual" ? /* @__PURE__ */ i("div", { style: { width: "100%", display: "flex", justifyContent: "space-between" }, children: [
|
|
2101
2118
|
/* @__PURE__ */ i("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-start", gap: "80px" }, children: [
|
|
2102
|
-
/* @__PURE__ */ i("div", { className:
|
|
2103
|
-
(!n || n.length > 1) && (!n || r.year() > Math.min(...n.map(Number))) ? /* @__PURE__ */ i("div", { className:
|
|
2119
|
+
/* @__PURE__ */ i("div", { className: X.left, children: [
|
|
2120
|
+
(!n || n.length > 1) && (!n || r.year() > Math.min(...n.map(Number))) ? /* @__PURE__ */ i("div", { className: X.doubleIcon, onClick: fe, children: [
|
|
2104
2121
|
/* @__PURE__ */ e(Ue, {}),
|
|
2105
2122
|
/* @__PURE__ */ e(Ue, {})
|
|
2106
2123
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2107
|
-
!n || n && r.format("MMMM YYYY") !== `January ${Math.min(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className:
|
|
2124
|
+
!n || n && r.format("MMMM YYYY") !== `January ${Math.min(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: de, children: /* @__PURE__ */ e(Ue, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2108
2125
|
] }),
|
|
2109
|
-
/* @__PURE__ */ e("div", { style:
|
|
2126
|
+
/* @__PURE__ */ e("div", { style: O ?? {}, children: n && n.length === 1 ? r.format("MMMM") : r.format("MMMM YYYY") })
|
|
2110
2127
|
] }),
|
|
2111
2128
|
/* @__PURE__ */ i("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-end", gap: "80px" }, children: [
|
|
2112
|
-
/* @__PURE__ */ e("span", { style:
|
|
2113
|
-
/* @__PURE__ */ i("div", { className:
|
|
2114
|
-
!n || n && r.format("MMMM YYYY") !== `December ${Math.max(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className:
|
|
2115
|
-
(!n || n.length > 1) && (!n || r.year() < Math.max(...n.map(Number))) ? /* @__PURE__ */ i("div", { className:
|
|
2129
|
+
/* @__PURE__ */ e("span", { style: O ?? {}, children: n && n.length === 1 ? r.add(1, "month").format("MMMM") : r.add(1, "month").format("MMMM YYYY") }),
|
|
2130
|
+
/* @__PURE__ */ i("div", { className: X.right, children: [
|
|
2131
|
+
!n || n && r.format("MMMM YYYY") !== `December ${Math.max(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: se, children: /* @__PURE__ */ e(Ye, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2132
|
+
(!n || n.length > 1) && (!n || r.year() < Math.max(...n.map(Number))) ? /* @__PURE__ */ i("div", { className: X.doubleIcon, onClick: J, children: [
|
|
2116
2133
|
/* @__PURE__ */ e(Ye, {}),
|
|
2117
2134
|
/* @__PURE__ */ e(Ye, {})
|
|
2118
2135
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2119
2136
|
] })
|
|
2120
2137
|
] })
|
|
2121
|
-
] }) : /* @__PURE__ */ i("div", { className:
|
|
2138
|
+
] }) : /* @__PURE__ */ i("div", { className: X.datePickerHeader, children: [
|
|
2122
2139
|
/* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
2123
|
-
/* @__PURE__ */ i("div", { className:
|
|
2124
|
-
(!n || n.length > 1) && (!n || r.year() > Math.min(...n.map(Number))) ? /* @__PURE__ */ i("div", { className:
|
|
2140
|
+
/* @__PURE__ */ i("div", { className: X.left, children: [
|
|
2141
|
+
(!n || n.length > 1) && (!n || r.year() > Math.min(...n.map(Number))) ? /* @__PURE__ */ i("div", { className: X.doubleIcon, onClick: fe, children: [
|
|
2125
2142
|
/* @__PURE__ */ e(Ue, {}),
|
|
2126
2143
|
/* @__PURE__ */ e(Ue, {})
|
|
2127
2144
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2128
|
-
!n || n && r.format("MMMM YYYY") !== `January ${Math.min(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className:
|
|
2145
|
+
!n || n && r.format("MMMM YYYY") !== `January ${Math.min(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: de, children: /* @__PURE__ */ e(Ue, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2129
2146
|
] }),
|
|
2130
|
-
/* @__PURE__ */ e("div", { className:
|
|
2131
|
-
/* @__PURE__ */ i("div", { className:
|
|
2132
|
-
!n || n && r.format("MMMM YYYY") !== `December ${Math.max(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className:
|
|
2133
|
-
(!n || n.length > 1) && (!n || r.year() < Math.max(...n.map(Number))) ? /* @__PURE__ */ i("div", { className:
|
|
2147
|
+
/* @__PURE__ */ e("div", { className: X.currentDateHeader, style: O ?? {}, onClick: ie, children: n && n.length === 1 ? r.format("MMMM") : r.format("MMMM YYYY") }),
|
|
2148
|
+
/* @__PURE__ */ i("div", { className: X.right, children: [
|
|
2149
|
+
!n || n && r.format("MMMM YYYY") !== `December ${Math.max(...n.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: se, children: /* @__PURE__ */ e(Ye, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2150
|
+
(!n || n.length > 1) && (!n || r.year() < Math.max(...n.map(Number))) ? /* @__PURE__ */ i("div", { className: X.doubleIcon, onClick: J, children: [
|
|
2134
2151
|
/* @__PURE__ */ e(Ye, {}),
|
|
2135
2152
|
/* @__PURE__ */ e(Ye, {})
|
|
2136
|
-
] }) : /* @__PURE__ */ e("div", { className:
|
|
2153
|
+
] }) : /* @__PURE__ */ e("div", { className: X.doubleIcon })
|
|
2137
2154
|
] })
|
|
2138
2155
|
] }),
|
|
2139
|
-
D === "single" && o && Array.isArray(o) && o.length > 0 && /* @__PURE__ */ e("ul", { className:
|
|
2156
|
+
D === "single" && o && Array.isArray(o) && o.length > 0 && /* @__PURE__ */ e("ul", { className: X.quickPick, children: le().slice(0, 3).map((R) => /* @__PURE__ */ e("li", { style: te ?? {}, onClick: () => he(R), children: R.name }, R.key)) })
|
|
2140
2157
|
] }),
|
|
2141
|
-
/* @__PURE__ */ i("div", { className:
|
|
2142
|
-
H ? /* @__PURE__ */ e("ul", { className:
|
|
2143
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children:
|
|
2158
|
+
/* @__PURE__ */ i("div", { className: X.calendarWrapper, children: [
|
|
2159
|
+
H ? /* @__PURE__ */ e("ul", { className: X.monthsWrapper, children: U.map((R) => /* @__PURE__ */ e("li", { className: `${X.month} ${k === R ? X.pickedMonth : ""}`, onClick: () => y(R), children: /* @__PURE__ */ e("div", { className: X.monthName, children: R }) })) }) : /* @__PURE__ */ i("table", { children: [
|
|
2160
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: z.map((R) => /* @__PURE__ */ e("th", { style: Y ?? {}, children: R }, R)) }) }),
|
|
2144
2161
|
/* @__PURE__ */ i("tbody", { children: [
|
|
2145
|
-
/* @__PURE__ */ e("tr", { className:
|
|
2146
|
-
Q.map((R,
|
|
2147
|
-
const
|
|
2162
|
+
/* @__PURE__ */ e("tr", { className: X.spacerRow, children: /* @__PURE__ */ e("td", {}) }),
|
|
2163
|
+
Q.map((R, _) => /* @__PURE__ */ e("tr", { children: R.map(({ date: S, currentMonth: N }, re) => {
|
|
2164
|
+
const G = w.start && w.end && S.isAfter(w.start, "day") && S.isBefore(w.end, "day"), we = w.start && S.isSame(w.start, "day"), _e = w.end && S.isSame(w.end, "day"), ge = A === "single" && f && S.isSame(f, "day"), Me = d && S.isBefore($(d), "day"), Se = C && S.isAfter($(C), "day");
|
|
2148
2165
|
let De = !1;
|
|
2149
2166
|
if (g?.length === 2) {
|
|
2150
2167
|
const [Te, We] = g.map((Be) => $(Be));
|
|
@@ -2155,35 +2172,35 @@ const xr = ({
|
|
|
2155
2172
|
"td",
|
|
2156
2173
|
{
|
|
2157
2174
|
style: {
|
|
2158
|
-
...N ? {} :
|
|
2159
|
-
...S.isSame($(), "day") ?
|
|
2160
|
-
...
|
|
2161
|
-
...we ?
|
|
2162
|
-
..._e ?
|
|
2163
|
-
...ge ?
|
|
2175
|
+
...N ? {} : ne,
|
|
2176
|
+
...S.isSame($(), "day") ? j : {},
|
|
2177
|
+
...G ? E : {},
|
|
2178
|
+
...we ? K : {},
|
|
2179
|
+
..._e ? q : {},
|
|
2180
|
+
...ge ? Z : {}
|
|
2164
2181
|
},
|
|
2165
|
-
className: `${
|
|
2166
|
-
${N ? "" :
|
|
2167
|
-
${N && S.isSame($(), "day") ?
|
|
2168
|
-
${N &&
|
|
2169
|
-
${N && we ?
|
|
2170
|
-
${N && _e ?
|
|
2171
|
-
${!N && !
|
|
2172
|
-
${Pe ?
|
|
2173
|
-
onClick: () =>
|
|
2182
|
+
className: `${X.day}
|
|
2183
|
+
${N ? "" : X.otherMonth}
|
|
2184
|
+
${N && S.isSame($(), "day") ? X.today : ""}
|
|
2185
|
+
${N && G ? X.inRange : ""}
|
|
2186
|
+
${N && we ? X.startDate : ""}
|
|
2187
|
+
${N && _e ? X.endDate : ""}
|
|
2188
|
+
${!N && !G && !_e ? "" : ge ? X.selected : ""}
|
|
2189
|
+
${Pe ? X.disabled : ""}`,
|
|
2190
|
+
onClick: () => F(S, N),
|
|
2174
2191
|
children: S.date()
|
|
2175
2192
|
},
|
|
2176
2193
|
re
|
|
2177
2194
|
);
|
|
2178
|
-
}) },
|
|
2195
|
+
}) }, _))
|
|
2179
2196
|
] })
|
|
2180
2197
|
] }),
|
|
2181
|
-
/* @__PURE__ */ e("div", { className:
|
|
2182
|
-
D === "dual" && /* @__PURE__ */ e("div", { className:
|
|
2198
|
+
/* @__PURE__ */ e("div", { className: X.buttonWrapper, children: /* @__PURE__ */ e($e, { label: "Current date", onClick: () => F($(), !0) }) }),
|
|
2199
|
+
D === "dual" && /* @__PURE__ */ e("div", { className: X.border }),
|
|
2183
2200
|
D === "dual" && /* @__PURE__ */ i("table", { children: [
|
|
2184
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children:
|
|
2185
|
-
/* @__PURE__ */ e("tbody", { children: ce?.map((R,
|
|
2186
|
-
const
|
|
2201
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: z.map((R) => /* @__PURE__ */ e("th", { style: Y ?? {}, children: R }, R)) }) }),
|
|
2202
|
+
/* @__PURE__ */ e("tbody", { children: ce?.map((R, _) => /* @__PURE__ */ e("tr", { children: R.map(({ date: S, currentMonth: N }, re) => {
|
|
2203
|
+
const G = w.start && w.end && S.isAfter(w.start, "day") && S.isBefore(w.end, "day"), we = w.start && S.isSame(w.start, "day"), _e = w.end && S.isSame(w.end, "day"), ge = A === "single" && f && S.isSame(f, "day"), Me = d && S.isBefore($(d), "day"), Se = C && S.isAfter($(C), "day");
|
|
2187
2204
|
let De = !1;
|
|
2188
2205
|
if (g?.length === 2) {
|
|
2189
2206
|
const [Te, We] = g.map((Be) => $(Be));
|
|
@@ -2194,27 +2211,27 @@ const xr = ({
|
|
|
2194
2211
|
"td",
|
|
2195
2212
|
{
|
|
2196
2213
|
style: {
|
|
2197
|
-
...N ? {} :
|
|
2198
|
-
...S.isSame($(), "day") ?
|
|
2199
|
-
...
|
|
2200
|
-
...we ?
|
|
2201
|
-
..._e ?
|
|
2202
|
-
...ge ?
|
|
2214
|
+
...N ? {} : ne,
|
|
2215
|
+
...S.isSame($(), "day") ? j : {},
|
|
2216
|
+
...G ? E : {},
|
|
2217
|
+
...we ? K : {},
|
|
2218
|
+
..._e ? q : {},
|
|
2219
|
+
...ge ? Z : {}
|
|
2203
2220
|
},
|
|
2204
|
-
className: `${
|
|
2205
|
-
${N ? "" :
|
|
2206
|
-
${N && S.isSame($(), "day") ?
|
|
2207
|
-
${N &&
|
|
2208
|
-
${N && we ?
|
|
2209
|
-
${N && _e ?
|
|
2210
|
-
${!N && !
|
|
2211
|
-
${Pe ?
|
|
2212
|
-
onClick: () =>
|
|
2221
|
+
className: `${X.day}
|
|
2222
|
+
${N ? "" : X.otherMonth}
|
|
2223
|
+
${N && S.isSame($(), "day") ? X.today : ""}
|
|
2224
|
+
${N && G ? X.inRange : ""}
|
|
2225
|
+
${N && we ? X.startDate : ""}
|
|
2226
|
+
${N && _e ? X.endDate : ""}
|
|
2227
|
+
${!N && !G && !_e ? "" : ge ? X.selected : ""}
|
|
2228
|
+
${Pe ? X.disabled : ""}`,
|
|
2229
|
+
onClick: () => F(S, N),
|
|
2213
2230
|
children: S.date()
|
|
2214
2231
|
},
|
|
2215
2232
|
re
|
|
2216
2233
|
);
|
|
2217
|
-
}) },
|
|
2234
|
+
}) }, _)) })
|
|
2218
2235
|
] })
|
|
2219
2236
|
] })
|
|
2220
2237
|
] })
|
|
@@ -2228,125 +2245,125 @@ const Ct = ({
|
|
|
2228
2245
|
onChange: l,
|
|
2229
2246
|
onBlur: r,
|
|
2230
2247
|
onFocus: s,
|
|
2231
|
-
customYears:
|
|
2248
|
+
customYears: f,
|
|
2232
2249
|
fixedDropdown: a = !0,
|
|
2233
2250
|
disabledDatesFrom: n,
|
|
2234
|
-
disabledDatesTill:
|
|
2251
|
+
disabledDatesTill: v,
|
|
2235
2252
|
disabledDatesRange: B,
|
|
2236
|
-
datepickerStyle:
|
|
2253
|
+
datepickerStyle: b,
|
|
2237
2254
|
datepickerLabelStyle: A,
|
|
2238
2255
|
closeOnScroll: w = !0,
|
|
2239
2256
|
requiredStyle: P,
|
|
2240
2257
|
datepickerHelperTextStyle: D,
|
|
2241
2258
|
selectedStyle: g,
|
|
2242
2259
|
endDateStyle: d,
|
|
2243
|
-
startDateStyle:
|
|
2244
|
-
inRangeStyle:
|
|
2245
|
-
otherMonthStyle:
|
|
2246
|
-
todayStyle:
|
|
2247
|
-
weekDayStyle:
|
|
2248
|
-
quickPickStyle:
|
|
2249
|
-
monthStyle:
|
|
2250
|
-
quickPick:
|
|
2251
|
-
mode:
|
|
2252
|
-
pickerType:
|
|
2253
|
-
disabled:
|
|
2254
|
-
...
|
|
2260
|
+
startDateStyle: C,
|
|
2261
|
+
inRangeStyle: L,
|
|
2262
|
+
otherMonthStyle: u,
|
|
2263
|
+
todayStyle: Z,
|
|
2264
|
+
weekDayStyle: q,
|
|
2265
|
+
quickPickStyle: K,
|
|
2266
|
+
monthStyle: E,
|
|
2267
|
+
quickPick: ne,
|
|
2268
|
+
mode: j = "single",
|
|
2269
|
+
pickerType: Y = "single",
|
|
2270
|
+
disabled: te = !1,
|
|
2271
|
+
...O
|
|
2255
2272
|
}) => {
|
|
2256
|
-
const
|
|
2257
|
-
const
|
|
2258
|
-
return
|
|
2273
|
+
const z = ut(), [U, k] = V(!1), [y, h] = V(""), H = ae({ state: !1, value: "" }), m = ae(null), [W, Q] = V(() => {
|
|
2274
|
+
const _ = $().year().toString();
|
|
2275
|
+
return f?.length ? f.includes(_) ? $() : $(`${Math.min(...f.map(Number))}-01-01`) : $();
|
|
2259
2276
|
});
|
|
2260
|
-
|
|
2261
|
-
const
|
|
2262
|
-
|
|
2263
|
-
}, [
|
|
2277
|
+
ee(() => {
|
|
2278
|
+
const _ = $().year().toString();
|
|
2279
|
+
f?.length && Q(f.includes(_) ? $() : $(`${Math.min(...f.map(Number))}-01-01`));
|
|
2280
|
+
}, [f]);
|
|
2264
2281
|
const [ce, le] = V(""), [he, ie] = V({
|
|
2265
2282
|
start: null,
|
|
2266
2283
|
end: null
|
|
2267
|
-
}),
|
|
2268
|
-
let re = "",
|
|
2269
|
-
(
|
|
2270
|
-
}, de = (
|
|
2271
|
-
|
|
2284
|
+
}), F = ae(null), se = (_, S, N) => {
|
|
2285
|
+
let re = "", G = { start: "", end: "" };
|
|
2286
|
+
(j === "single" || typeof _ == "string") && (re = _, h(re)), (j !== "single" || typeof _ != "string") && (_?.start || _?.end ? re = `${_?.start ? $(_?.start).format(o) : ""} / ${_?.end ? $(_?.end).format(o) : ""}` : re = "", G.start = _?.start ? $(_?.start).format(o) : "", G.end = _?.end ? $(_?.end).format(o) : "", h(re)), _?.end && k(!1), l && typeof l == "function" && !N && (l(G.start !== "" ? G : re), H.current.value = G.start !== "" ? G : re);
|
|
2287
|
+
}, de = (_) => {
|
|
2288
|
+
_.stopPropagation(), le(""), H.current.value = "", h(""), ie({
|
|
2272
2289
|
start: null,
|
|
2273
2290
|
end: null
|
|
2274
2291
|
}), l && typeof l == "function" && l("");
|
|
2275
|
-
}, J = (
|
|
2276
|
-
|
|
2277
|
-
}, fe = (
|
|
2278
|
-
w && (!
|
|
2292
|
+
}, J = (_) => {
|
|
2293
|
+
F.current && (_.composedPath().includes(F.current) || k(!1));
|
|
2294
|
+
}, fe = (_) => {
|
|
2295
|
+
w && (!F.current || !m.current || _.composedPath().includes(F.current) || _.composedPath().includes(m.current) || k(!1));
|
|
2279
2296
|
}, R = () => {
|
|
2280
|
-
if (!
|
|
2281
|
-
const
|
|
2282
|
-
if (!S || !
|
|
2283
|
-
const N =
|
|
2284
|
-
S.style.position = "fixed", N.bottom + S.offsetHeight > re ? (S.style.top = `${N.top - S.offsetHeight + 20}px`, S.style.bottom = "unset") : (S.style.top = `${N.bottom + 8}px`, S.style.bottom = "unset"), N.right + N.width >
|
|
2297
|
+
if (!F.current || !m.current) return;
|
|
2298
|
+
const _ = F.current, S = m.current;
|
|
2299
|
+
if (!S || !_) return;
|
|
2300
|
+
const N = _.getBoundingClientRect(), re = window.innerHeight, G = window.innerWidth;
|
|
2301
|
+
S.style.position = "fixed", N.bottom + S.offsetHeight > re ? (S.style.top = `${N.top - S.offsetHeight + 20}px`, S.style.bottom = "unset") : (S.style.top = `${N.bottom + 8}px`, S.style.bottom = "unset"), N.right + N.width > G - 120 ? S.style.left = `${N.left + N.width - S.offsetWidth}px` : S.style.left = `${N.left}px`;
|
|
2285
2302
|
};
|
|
2286
|
-
return
|
|
2303
|
+
return ee(() => {
|
|
2287
2304
|
if (t && t.length > 0 && H.current.value === "") {
|
|
2288
|
-
let
|
|
2305
|
+
let _ = Array.isArray(t) ? {
|
|
2289
2306
|
start: t[0] ? $(t[0], o) : "",
|
|
2290
2307
|
end: t[1] ? $(t[1], o) : null
|
|
2291
2308
|
} : $(t, o).format(o);
|
|
2292
|
-
H.current.value = t, H.current.state = !0,
|
|
2309
|
+
H.current.value = t, H.current.state = !0, _ && se(_, !1, !0);
|
|
2293
2310
|
}
|
|
2294
|
-
}, []),
|
|
2295
|
-
|
|
2296
|
-
}, [
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2311
|
+
}, []), ee(() => {
|
|
2312
|
+
U && R();
|
|
2313
|
+
}, [m, U]), ee(() => {
|
|
2314
|
+
const _ = () => {
|
|
2315
|
+
U && R();
|
|
2299
2316
|
};
|
|
2300
|
-
return document.addEventListener("click", J), document.addEventListener("wheel", fe), window.addEventListener("scroll",
|
|
2301
|
-
document.removeEventListener("click", J), document.removeEventListener("wheel", fe), window.removeEventListener("scroll",
|
|
2317
|
+
return document.addEventListener("click", J), document.addEventListener("wheel", fe), window.addEventListener("scroll", _), () => {
|
|
2318
|
+
document.removeEventListener("click", J), document.removeEventListener("wheel", fe), window.removeEventListener("scroll", _);
|
|
2302
2319
|
};
|
|
2303
|
-
}, [
|
|
2304
|
-
/* @__PURE__ */ e("div", { ref:
|
|
2320
|
+
}, [U]), /* @__PURE__ */ i("div", { className: `${z === "namespaceHr" ? Qe.namespaceHr : ""} ${Qe.datepickerContainer}`, children: [
|
|
2321
|
+
/* @__PURE__ */ e("div", { ref: F, className: Qe.datepickerInputWrapper, onClick: () => (k((_) => !_), R()), children: /* @__PURE__ */ e(
|
|
2305
2322
|
Ze,
|
|
2306
2323
|
{
|
|
2307
|
-
...
|
|
2308
|
-
customFocus:
|
|
2324
|
+
...O,
|
|
2325
|
+
customFocus: U,
|
|
2309
2326
|
withActive: !1,
|
|
2310
|
-
value:
|
|
2327
|
+
value: y,
|
|
2311
2328
|
toggleFocus: !0,
|
|
2312
2329
|
formInputStyle: { cursor: "pointer" },
|
|
2313
2330
|
leftSlot: /* @__PURE__ */ e("div", { className: Qe.datepickerLeftIcon, children: /* @__PURE__ */ e(Kt, {}) }),
|
|
2314
|
-
rightSlot: /* @__PURE__ */ e("div", { className: `${Qe.datepickerRightIcon}`, onClick: de, children:
|
|
2331
|
+
rightSlot: /* @__PURE__ */ e("div", { className: `${Qe.datepickerRightIcon}`, onClick: de, children: y && /* @__PURE__ */ e(nt, {}) }),
|
|
2315
2332
|
readOnly: !0
|
|
2316
2333
|
}
|
|
2317
2334
|
) }),
|
|
2318
|
-
|
|
2335
|
+
U && /* @__PURE__ */ e(
|
|
2319
2336
|
xr,
|
|
2320
2337
|
{
|
|
2321
|
-
namespace:
|
|
2338
|
+
namespace: z,
|
|
2322
2339
|
defaultValue: H.current,
|
|
2323
|
-
CalendarRef:
|
|
2340
|
+
CalendarRef: m,
|
|
2324
2341
|
disabledDatesFrom: n,
|
|
2325
|
-
disabledDatesTill:
|
|
2342
|
+
disabledDatesTill: v,
|
|
2326
2343
|
disabledDatesRange: B,
|
|
2327
2344
|
valueFormat: o,
|
|
2328
|
-
onChange: (
|
|
2329
|
-
customYears:
|
|
2345
|
+
onChange: (_) => se(_, !1, !1),
|
|
2346
|
+
customYears: f,
|
|
2330
2347
|
CurrentMonth: W,
|
|
2331
2348
|
setCurrentMonth: Q,
|
|
2332
2349
|
SelectedDate: ce,
|
|
2333
2350
|
setSelectedDate: le,
|
|
2334
|
-
IsFocused:
|
|
2335
|
-
setIsFocused:
|
|
2336
|
-
quickPick:
|
|
2337
|
-
mode:
|
|
2351
|
+
IsFocused: U,
|
|
2352
|
+
setIsFocused: k,
|
|
2353
|
+
quickPick: ne,
|
|
2354
|
+
mode: j,
|
|
2338
2355
|
RangeSelection: he,
|
|
2339
2356
|
setRangeSelection: ie,
|
|
2340
|
-
pickerType:
|
|
2357
|
+
pickerType: Y,
|
|
2341
2358
|
selectedStyle: g,
|
|
2342
2359
|
endDateStyle: d,
|
|
2343
|
-
startDateStyle:
|
|
2344
|
-
inRangeStyle:
|
|
2345
|
-
otherMonthStyle:
|
|
2346
|
-
todayStyle:
|
|
2347
|
-
weekDayStyle:
|
|
2348
|
-
quickPickStyle:
|
|
2349
|
-
monthStyle:
|
|
2360
|
+
startDateStyle: C,
|
|
2361
|
+
inRangeStyle: L,
|
|
2362
|
+
otherMonthStyle: u,
|
|
2363
|
+
todayStyle: Z,
|
|
2364
|
+
weekDayStyle: q,
|
|
2365
|
+
quickPickStyle: K,
|
|
2366
|
+
monthStyle: E
|
|
2350
2367
|
}
|
|
2351
2368
|
)
|
|
2352
2369
|
] });
|
|
@@ -2403,28 +2420,28 @@ const Dr = "mc__ActionDropdown-module__actionDropdownContainer", Sr = "mc__Actio
|
|
|
2403
2420
|
actionDropdownItem: Wr,
|
|
2404
2421
|
selected: Br
|
|
2405
2422
|
}, wt = ({ title: t, data: o, closeOnScroll: l = !1, onSelect: r }) => {
|
|
2406
|
-
const [s,
|
|
2407
|
-
B(g), r?.(g),
|
|
2423
|
+
const [s, f] = V(!1), a = ae(null), n = ae(null), [v, B] = V(null), b = (g) => {
|
|
2424
|
+
B(g), r?.(g), f(!1);
|
|
2408
2425
|
}, A = () => {
|
|
2409
2426
|
if (!a.current || !n.current) return;
|
|
2410
2427
|
const g = a.current, d = n.current;
|
|
2411
2428
|
if (!d || !g) return;
|
|
2412
|
-
const
|
|
2413
|
-
d.style.width =
|
|
2429
|
+
const C = g.getBoundingClientRect(), L = window.innerHeight;
|
|
2430
|
+
d.style.width = C.width + "px", d.style.position = "fixed", C.bottom + d.offsetHeight > L ? (d.style.top = `${C.top - d.offsetHeight - 8}px`, d.style.bottom = "unset") : (d.style.top = `${C.bottom + 8}px`, d.style.bottom = "unset");
|
|
2414
2431
|
}, w = () => {
|
|
2415
2432
|
requestAnimationFrame(() => {
|
|
2416
2433
|
A();
|
|
2417
2434
|
});
|
|
2418
2435
|
};
|
|
2419
|
-
|
|
2436
|
+
ee(() => {
|
|
2420
2437
|
w();
|
|
2421
2438
|
}, [a, s]);
|
|
2422
2439
|
const P = (g) => {
|
|
2423
|
-
a.current && (g.composedPath().includes(a.current) ||
|
|
2440
|
+
a.current && (g.composedPath().includes(a.current) || f(!1));
|
|
2424
2441
|
}, D = (g) => {
|
|
2425
|
-
l && (!a.current || !n.current || g.composedPath().includes(a.current) || g.composedPath().includes(n.current) ||
|
|
2442
|
+
l && (!a.current || !n.current || g.composedPath().includes(a.current) || g.composedPath().includes(n.current) || f(!1));
|
|
2426
2443
|
};
|
|
2427
|
-
return
|
|
2444
|
+
return ee(() => {
|
|
2428
2445
|
const g = () => {
|
|
2429
2446
|
s && w();
|
|
2430
2447
|
};
|
|
@@ -2432,17 +2449,17 @@ const Dr = "mc__ActionDropdown-module__actionDropdownContainer", Sr = "mc__Actio
|
|
|
2432
2449
|
document.removeEventListener("click", P), document.removeEventListener("wheel", D), window.removeEventListener("scroll", g);
|
|
2433
2450
|
};
|
|
2434
2451
|
}, [s]), /* @__PURE__ */ i("div", { className: `${Ae.actionDropdownContainer} ${s ? Ae.collapsed : ""}`, children: [
|
|
2435
|
-
/* @__PURE__ */ i("div", { ref: a, className: Ae.actionDropdownContent, onClick: () => (
|
|
2436
|
-
/* @__PURE__ */ e("p", { title: t, className: Ae.actionDropdownTitle, children:
|
|
2452
|
+
/* @__PURE__ */ i("div", { ref: a, className: Ae.actionDropdownContent, onClick: () => (f((g) => !g), w()), children: [
|
|
2453
|
+
/* @__PURE__ */ e("p", { title: t, className: Ae.actionDropdownTitle, children: v?.label || t }),
|
|
2437
2454
|
/* @__PURE__ */ e("div", { className: Ae.actionDropdownIcon, children: /* @__PURE__ */ e(Ge, { width: "10", height: "6", color: "#131314" }) })
|
|
2438
2455
|
] }),
|
|
2439
2456
|
s && /* @__PURE__ */ e("ul", { ref: n, onClick: (g) => g.stopPropagation(), className: Ae.actionDropdownList, children: o.map((g) => /* @__PURE__ */ e(
|
|
2440
2457
|
"li",
|
|
2441
2458
|
{
|
|
2442
2459
|
onClick: (d) => {
|
|
2443
|
-
d.stopPropagation(),
|
|
2460
|
+
d.stopPropagation(), b(g);
|
|
2444
2461
|
},
|
|
2445
|
-
className: `${Ae.actionDropdownItem} ${
|
|
2462
|
+
className: `${Ae.actionDropdownItem} ${v?.id === g.id ? Ae.selected : ""}`,
|
|
2446
2463
|
children: g.label
|
|
2447
2464
|
},
|
|
2448
2465
|
g.id
|
|
@@ -2520,7 +2537,7 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
|
|
|
2520
2537
|
}, s ?? 500)
|
|
2521
2538
|
);
|
|
2522
2539
|
};
|
|
2523
|
-
return
|
|
2540
|
+
return ee(() => () => {
|
|
2524
2541
|
t && clearTimeout(t);
|
|
2525
2542
|
}, []), l;
|
|
2526
2543
|
}, vt = ({
|
|
@@ -2529,80 +2546,80 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
|
|
|
2529
2546
|
maxValue: l,
|
|
2530
2547
|
min: r = 0,
|
|
2531
2548
|
max: s = 100,
|
|
2532
|
-
range:
|
|
2549
|
+
range: f = !0,
|
|
2533
2550
|
debounceTime: a,
|
|
2534
2551
|
onChange: n,
|
|
2535
|
-
sliderContainerStyle:
|
|
2552
|
+
sliderContainerStyle: v,
|
|
2536
2553
|
sliderStyle: B,
|
|
2537
|
-
sliderProgressStyle:
|
|
2554
|
+
sliderProgressStyle: b,
|
|
2538
2555
|
thumbStyle: A,
|
|
2539
2556
|
unit: w
|
|
2540
2557
|
}) => {
|
|
2541
|
-
const P = ae(!0), D =
|
|
2558
|
+
const P = ae(!0), D = f || o !== void 0 && l !== void 0, [g, d] = V({
|
|
2542
2559
|
minValue: o ?? r,
|
|
2543
2560
|
maxValue: l ?? s,
|
|
2544
2561
|
singleValue: t ?? r
|
|
2545
|
-
}), [
|
|
2562
|
+
}), [C, L] = V({
|
|
2546
2563
|
min: !1,
|
|
2547
2564
|
max: !1,
|
|
2548
2565
|
single: !1
|
|
2549
|
-
}), [
|
|
2566
|
+
}), [u, Z] = V({
|
|
2550
2567
|
min: !1,
|
|
2551
2568
|
max: !1,
|
|
2552
2569
|
single: !1
|
|
2553
|
-
}),
|
|
2554
|
-
const
|
|
2570
|
+
}), q = Jr(), K = ae(null), E = ae(null), ne = ae(null), j = ae(null), Y = (k) => {
|
|
2571
|
+
const h = K.current?.getBoundingClientRect(), H = Math.min(Math.max(0, (k - h.left) / h.width), 1);
|
|
2555
2572
|
return Math.round(H * (s - r) + r);
|
|
2556
|
-
},
|
|
2557
|
-
|
|
2558
|
-
const
|
|
2559
|
-
const W =
|
|
2560
|
-
d((Q) =>
|
|
2573
|
+
}, te = (k) => (y) => {
|
|
2574
|
+
y.preventDefault(), Z((m) => ({ ...m, [k]: !0 })), L((m) => ({ ...m, [k]: !0 }));
|
|
2575
|
+
const h = (m) => {
|
|
2576
|
+
const W = Y(m.clientX);
|
|
2577
|
+
d((Q) => k === "single" ? { ...Q, singleValue: W } : k === "min" ? { ...Q, minValue: Math.min(W, Q.maxValue - 1) } : { ...Q, maxValue: Math.max(W, Q.minValue + 1) });
|
|
2561
2578
|
}, H = () => {
|
|
2562
|
-
|
|
2579
|
+
Z((m) => ({ ...m, [k]: !1 })), L((m) => ({ ...m, [k]: !1 })), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", H);
|
|
2563
2580
|
};
|
|
2564
|
-
document.addEventListener("mousemove",
|
|
2565
|
-
},
|
|
2566
|
-
const
|
|
2581
|
+
document.addEventListener("mousemove", h), document.addEventListener("mouseup", H);
|
|
2582
|
+
}, O = (k) => {
|
|
2583
|
+
const y = Y(k.clientX);
|
|
2567
2584
|
if (D) {
|
|
2568
|
-
const
|
|
2569
|
-
d((W) =>
|
|
2585
|
+
const h = Math.abs(y - g.minValue), H = Math.abs(y - g.maxValue), m = h < H ? "min" : "max";
|
|
2586
|
+
d((W) => m === "min" ? { ...W, minValue: Math.min(y, W.maxValue - 1) } : { ...W, maxValue: Math.max(y, W.minValue + 1) }), te(m)(k);
|
|
2570
2587
|
} else
|
|
2571
|
-
d((
|
|
2572
|
-
},
|
|
2588
|
+
d((h) => ({ ...h, singleValue: y })), te("single")(k);
|
|
2589
|
+
}, z = D ? {
|
|
2573
2590
|
left: `${(g.minValue - r) / (s - r) * 100}%`,
|
|
2574
2591
|
width: `${(g.maxValue - g.minValue) / (s - r) * 100}%`
|
|
2575
2592
|
} : {
|
|
2576
2593
|
left: "0%",
|
|
2577
2594
|
width: `${(g.singleValue - r) / (s - r) * 100}%`
|
|
2578
|
-
},
|
|
2579
|
-
const
|
|
2580
|
-
if (!
|
|
2581
|
-
const
|
|
2582
|
-
|
|
2595
|
+
}, U = (k) => {
|
|
2596
|
+
const y = k.current;
|
|
2597
|
+
if (!y) return;
|
|
2598
|
+
const h = y.getBoundingClientRect(), H = window.innerWidth, m = h.width;
|
|
2599
|
+
y.style.transform = "translateX(-50%)";
|
|
2583
2600
|
let W = "50%";
|
|
2584
|
-
if (
|
|
2585
|
-
const Q =
|
|
2586
|
-
|
|
2587
|
-
const ce =
|
|
2588
|
-
W = `${Math.min(
|
|
2601
|
+
if (h.right > H - 10) {
|
|
2602
|
+
const Q = h.right - H + 10;
|
|
2603
|
+
y.style.transform = `translateX(calc(-50% - ${Q}px))`;
|
|
2604
|
+
const ce = m - 10;
|
|
2605
|
+
W = `${Math.min(m / 2 + Q, ce)}px`;
|
|
2589
2606
|
}
|
|
2590
|
-
if (
|
|
2591
|
-
const Q = 10 -
|
|
2592
|
-
|
|
2607
|
+
if (h.left < 10) {
|
|
2608
|
+
const Q = 10 - h.left;
|
|
2609
|
+
y.style.transform = `translateX(calc(-50% + ${Q}px))`, W = `${Math.max(m / 2 - Q, 10)}px`;
|
|
2593
2610
|
}
|
|
2594
|
-
|
|
2611
|
+
y.style.setProperty("--arrow-position", W);
|
|
2595
2612
|
};
|
|
2596
|
-
return
|
|
2597
|
-
(
|
|
2598
|
-
}, [g,
|
|
2613
|
+
return ee(() => {
|
|
2614
|
+
(C.min || u.min) && U(E), (C.max || u.max) && U(ne), (C.single || u.single) && U(j);
|
|
2615
|
+
}, [g, C, u]), ee(() => {
|
|
2599
2616
|
if (P.current) {
|
|
2600
2617
|
P.current = !1;
|
|
2601
2618
|
return;
|
|
2602
2619
|
}
|
|
2603
|
-
n && typeof n == "function" &&
|
|
2604
|
-
}, [g]), /* @__PURE__ */ e("div", { style:
|
|
2605
|
-
/* @__PURE__ */ e("div", { className: be.sliderProgress, style: { ...
|
|
2620
|
+
n && typeof n == "function" && q(D ? () => n([g.minValue, g.maxValue]) : () => n(g.singleValue), a ?? 100);
|
|
2621
|
+
}, [g]), /* @__PURE__ */ e("div", { style: v ?? {}, className: `${be.sliderContainer}`, children: /* @__PURE__ */ i("div", { ref: K, style: B ?? {}, className: be.slider, onMouseDown: O, children: [
|
|
2622
|
+
/* @__PURE__ */ e("div", { className: be.sliderProgress, style: { ...z, ...b ?? {} } }),
|
|
2606
2623
|
D ? /* @__PURE__ */ i(st, { children: [
|
|
2607
2624
|
/* @__PURE__ */ e(
|
|
2608
2625
|
"div",
|
|
@@ -2612,10 +2629,10 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
|
|
|
2612
2629
|
left: `${(g.minValue - r) / (s - r) * 100}%`,
|
|
2613
2630
|
...A ?? {}
|
|
2614
2631
|
},
|
|
2615
|
-
onMouseEnter: () => !
|
|
2616
|
-
onMouseLeave: () => !
|
|
2617
|
-
onMouseDown:
|
|
2618
|
-
children: (
|
|
2632
|
+
onMouseEnter: () => !u.min && L((k) => ({ ...k, min: !0 })),
|
|
2633
|
+
onMouseLeave: () => !u.min && L((k) => ({ ...k, min: !1 })),
|
|
2634
|
+
onMouseDown: te("min"),
|
|
2635
|
+
children: (C.min || u.min) && /* @__PURE__ */ i("div", { ref: E, className: be.tooltip, children: [
|
|
2619
2636
|
g.minValue,
|
|
2620
2637
|
"%"
|
|
2621
2638
|
] })
|
|
@@ -2629,10 +2646,10 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
|
|
|
2629
2646
|
left: `${(g.maxValue - r) / (s - r) * 100}%`,
|
|
2630
2647
|
...A ?? {}
|
|
2631
2648
|
},
|
|
2632
|
-
onMouseEnter: () => !
|
|
2633
|
-
onMouseLeave: () => !
|
|
2634
|
-
onMouseDown:
|
|
2635
|
-
children: (
|
|
2649
|
+
onMouseEnter: () => !u.max && L((k) => ({ ...k, max: !0 })),
|
|
2650
|
+
onMouseLeave: () => !u.max && L((k) => ({ ...k, max: !1 })),
|
|
2651
|
+
onMouseDown: te("max"),
|
|
2652
|
+
children: (C.max || u.max) && /* @__PURE__ */ i("div", { ref: ne, className: be.tooltip, children: [
|
|
2636
2653
|
g.maxValue,
|
|
2637
2654
|
"%"
|
|
2638
2655
|
] })
|
|
@@ -2646,10 +2663,10 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
|
|
|
2646
2663
|
left: `${(g.singleValue - r) / (s - r) * 100}%`,
|
|
2647
2664
|
...A ?? {}
|
|
2648
2665
|
},
|
|
2649
|
-
onMouseEnter: () => !
|
|
2650
|
-
onMouseLeave: () => !
|
|
2651
|
-
onMouseDown:
|
|
2652
|
-
children: (
|
|
2666
|
+
onMouseEnter: () => !u.single && L((k) => ({ ...k, single: !0 })),
|
|
2667
|
+
onMouseLeave: () => !u.single && L((k) => ({ ...k, single: !1 })),
|
|
2668
|
+
onMouseDown: te("single"),
|
|
2669
|
+
children: (C.single || u.single) && /* @__PURE__ */ i("div", { ref: j, className: be.tooltip, children: [
|
|
2653
2670
|
g.singleValue,
|
|
2654
2671
|
" ",
|
|
2655
2672
|
w
|
|
@@ -2697,11 +2714,11 @@ const Gr = "mc__FilterWithTags-module__filterWithTagsContainer", ei = "mc__Filte
|
|
|
2697
2714
|
onApply: l,
|
|
2698
2715
|
onClearAll: r,
|
|
2699
2716
|
mainButtonProps: s,
|
|
2700
|
-
popupProps:
|
|
2717
|
+
popupProps: f,
|
|
2701
2718
|
cancelButtonProps: a,
|
|
2702
2719
|
applyButtonProps: n
|
|
2703
2720
|
}) => {
|
|
2704
|
-
const [
|
|
2721
|
+
const [v, B] = V(!1), b = () => {
|
|
2705
2722
|
o && B(!0);
|
|
2706
2723
|
};
|
|
2707
2724
|
return /* @__PURE__ */ i("div", { className: Fe.filterWithTagsContainer, children: [
|
|
@@ -2712,13 +2729,13 @@ const Gr = "mc__FilterWithTags-module__filterWithTagsContainer", ei = "mc__Filte
|
|
|
2712
2729
|
buttonStyle: { minWidth: "initial" },
|
|
2713
2730
|
buttonType: "tertiaryV3",
|
|
2714
2731
|
buttonSlot: /* @__PURE__ */ e(Qt, {}),
|
|
2715
|
-
onClick:
|
|
2732
|
+
onClick: b,
|
|
2716
2733
|
...s
|
|
2717
2734
|
}
|
|
2718
2735
|
) }) }),
|
|
2719
|
-
/* @__PURE__ */ i(rt, { ...
|
|
2736
|
+
/* @__PURE__ */ i(rt, { ...f, popupContainerStyle: { width: "725px" }, onClose: () => B(!1), visible: v, children: [
|
|
2720
2737
|
/* @__PURE__ */ e("h2", { className: Fe.filterWithTagsPopupTitle, children: "Filter" }),
|
|
2721
|
-
/* @__PURE__ */ e("div", { className: `${Fe.filterWithTagsPopupContent} ${
|
|
2738
|
+
/* @__PURE__ */ e("div", { className: `${Fe.filterWithTagsPopupContent} ${f?.mode === "drawer" ? Fe.filterWithTagsPopupContentDrawer : ""}`, children: /* @__PURE__ */ e(di, { filterOptions: t }) }),
|
|
2722
2739
|
/* @__PURE__ */ i("div", { className: Fe.filterWithTagsPopupFooter, children: [
|
|
2723
2740
|
/* @__PURE__ */ e($e, { buttonStyle: { width: "130px" }, ...a, label: "Clear", buttonType: "tertiaryV2", onClick: r }),
|
|
2724
2741
|
/* @__PURE__ */ e($e, { buttonStyle: { width: "130px" }, ...n, label: "Show", onClick: l })
|
|
@@ -2792,59 +2809,59 @@ function Ve() {
|
|
|
2792
2809
|
const os = (t, o, l = {}) => {
|
|
2793
2810
|
const [r, s] = V(() => {
|
|
2794
2811
|
const d = {};
|
|
2795
|
-
return o.forEach((
|
|
2796
|
-
|
|
2812
|
+
return o.forEach((C) => {
|
|
2813
|
+
C.key && C.customWidth && (d[C.key] = typeof C.customWidth == "number" ? C.customWidth : parseInt(C.customWidth.toString(), 10));
|
|
2797
2814
|
}), d;
|
|
2798
|
-
}), [
|
|
2799
|
-
(d,
|
|
2800
|
-
console.log("Resize start for column:",
|
|
2801
|
-
const
|
|
2802
|
-
a(!0),
|
|
2815
|
+
}), [f, a] = V(!1), [n, v] = V(null), [B, b] = V(0), [A, w] = V(0), P = ot(
|
|
2816
|
+
(d, C) => {
|
|
2817
|
+
console.log("Resize start for column:", C), d.preventDefault(), d.stopPropagation();
|
|
2818
|
+
const L = d.target.closest("th"), u = L ? L.offsetWidth : r[C];
|
|
2819
|
+
a(!0), v(C), b(d.clientX), w(u || 0);
|
|
2803
2820
|
},
|
|
2804
2821
|
[r]
|
|
2805
2822
|
), D = ot(
|
|
2806
2823
|
(d) => {
|
|
2807
|
-
if (!
|
|
2824
|
+
if (!f || !n) return;
|
|
2808
2825
|
d.preventDefault();
|
|
2809
|
-
const
|
|
2810
|
-
console.log("Resizing column:", n, "new width:",
|
|
2811
|
-
...
|
|
2812
|
-
[n]:
|
|
2826
|
+
const C = d.clientX - B, L = Math.max(50, A + C);
|
|
2827
|
+
console.log("Resizing column:", n, "new width:", L), s((u) => ({
|
|
2828
|
+
...u,
|
|
2829
|
+
[n]: L
|
|
2813
2830
|
}));
|
|
2814
2831
|
},
|
|
2815
|
-
[
|
|
2832
|
+
[f, n, B, A]
|
|
2816
2833
|
), g = ot(() => {
|
|
2817
|
-
console.log("Resize end"), a(!1),
|
|
2834
|
+
console.log("Resize end"), a(!1), v(null);
|
|
2818
2835
|
}, []);
|
|
2819
|
-
return
|
|
2820
|
-
if (
|
|
2836
|
+
return ee(() => {
|
|
2837
|
+
if (f)
|
|
2821
2838
|
return document.addEventListener("mousemove", D), document.addEventListener("mouseup", g), () => {
|
|
2822
2839
|
document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", g);
|
|
2823
2840
|
};
|
|
2824
|
-
}, [
|
|
2841
|
+
}, [f, D, g]), {
|
|
2825
2842
|
columnWidths: r,
|
|
2826
|
-
isResizing:
|
|
2843
|
+
isResizing: f,
|
|
2827
2844
|
resizeColumn: n,
|
|
2828
2845
|
handleResizeStart: P
|
|
2829
2846
|
};
|
|
2830
2847
|
};
|
|
2831
2848
|
function ns({ currentValue: t, options: o, onChange: l }) {
|
|
2832
|
-
const [r, s] = V(!1), [
|
|
2833
|
-
|
|
2834
|
-
if (r && n.current &&
|
|
2835
|
-
const
|
|
2849
|
+
const [r, s] = V(!1), [f, a] = V(!1), n = ae(null), v = ae(null);
|
|
2850
|
+
ee(() => {
|
|
2851
|
+
if (r && n.current && v.current) {
|
|
2852
|
+
const b = n.current.getBoundingClientRect(), A = v.current.offsetHeight, P = window.innerHeight - b.bottom, D = b.top;
|
|
2836
2853
|
a(P < A && D >= A);
|
|
2837
2854
|
}
|
|
2838
|
-
}, [r]),
|
|
2839
|
-
const
|
|
2855
|
+
}, [r]), ee(() => {
|
|
2856
|
+
const b = (A) => {
|
|
2840
2857
|
n.current && !n.current.contains(A.target) && s(!1);
|
|
2841
2858
|
};
|
|
2842
|
-
return document.addEventListener("mousedown",
|
|
2843
|
-
document.removeEventListener("mousedown",
|
|
2859
|
+
return document.addEventListener("mousedown", b), () => {
|
|
2860
|
+
document.removeEventListener("mousedown", b);
|
|
2844
2861
|
};
|
|
2845
2862
|
}, []);
|
|
2846
|
-
const B = (
|
|
2847
|
-
l(
|
|
2863
|
+
const B = (b) => {
|
|
2864
|
+
l(b), s(!1);
|
|
2848
2865
|
};
|
|
2849
2866
|
return /* @__PURE__ */ i("div", { ref: n, className: M.rowsPerPageDropdown, children: [
|
|
2850
2867
|
/* @__PURE__ */ e(
|
|
@@ -2871,16 +2888,16 @@ function ns({ currentValue: t, options: o, onChange: l }) {
|
|
|
2871
2888
|
onClick: () => s(!r)
|
|
2872
2889
|
}
|
|
2873
2890
|
),
|
|
2874
|
-
r && /* @__PURE__ */ e("ul", { ref:
|
|
2891
|
+
r && /* @__PURE__ */ e("ul", { ref: v, className: `${M.rowsPerPageList} ${f ? M.openUpward : M.openDownward}`, role: "listbox", children: o.map((b) => /* @__PURE__ */ e(
|
|
2875
2892
|
"li",
|
|
2876
2893
|
{
|
|
2877
|
-
className: `${M.rowsPerPageOption} ${
|
|
2878
|
-
onClick: () => B(
|
|
2894
|
+
className: `${M.rowsPerPageOption} ${b === t ? M.selected : ""}`,
|
|
2895
|
+
onClick: () => B(b),
|
|
2879
2896
|
role: "option",
|
|
2880
|
-
"aria-selected":
|
|
2881
|
-
children:
|
|
2897
|
+
"aria-selected": b === t,
|
|
2898
|
+
children: b
|
|
2882
2899
|
},
|
|
2883
|
-
|
|
2900
|
+
b
|
|
2884
2901
|
)) })
|
|
2885
2902
|
] });
|
|
2886
2903
|
}
|
|
@@ -2890,44 +2907,44 @@ const kt = ({
|
|
|
2890
2907
|
data: l = [],
|
|
2891
2908
|
onRowClick: r,
|
|
2892
2909
|
onHeaderClick: s,
|
|
2893
|
-
withSortIcons:
|
|
2910
|
+
withSortIcons: f = !1,
|
|
2894
2911
|
sort: a = [],
|
|
2895
2912
|
selectedRows: n = [],
|
|
2896
|
-
onSelectionChange:
|
|
2913
|
+
onSelectionChange: v,
|
|
2897
2914
|
withSelectAll: B = !1,
|
|
2898
|
-
actionButtonText:
|
|
2915
|
+
actionButtonText: b,
|
|
2899
2916
|
actionButtonIcon: A,
|
|
2900
2917
|
onActionButtonClick: w,
|
|
2901
2918
|
actionButtons: P,
|
|
2902
2919
|
withColumnConfiguration: D = !1,
|
|
2903
2920
|
headerSlot: g,
|
|
2904
2921
|
onColumnOrderChange: d,
|
|
2905
|
-
onColumnVisibilityChange:
|
|
2906
|
-
withActions:
|
|
2922
|
+
onColumnVisibilityChange: C,
|
|
2923
|
+
withActions: L = !1,
|
|
2907
2924
|
// Pagination props
|
|
2908
|
-
currentPage:
|
|
2909
|
-
totalPages:
|
|
2910
|
-
onPageChange:
|
|
2911
|
-
showPagination:
|
|
2912
|
-
paginationType:
|
|
2913
|
-
maxVisiblePages:
|
|
2925
|
+
currentPage: u = 0,
|
|
2926
|
+
totalPages: Z = 1,
|
|
2927
|
+
onPageChange: q,
|
|
2928
|
+
showPagination: K = !1,
|
|
2929
|
+
paginationType: E = "simple",
|
|
2930
|
+
maxVisiblePages: ne = 5,
|
|
2914
2931
|
// Rows per page props
|
|
2915
|
-
rowsPerPage:
|
|
2916
|
-
rowsPerPageOptions:
|
|
2917
|
-
onRowsPerPageChange:
|
|
2918
|
-
totalItems:
|
|
2919
|
-
startItem:
|
|
2920
|
-
endItem:
|
|
2932
|
+
rowsPerPage: j = 10,
|
|
2933
|
+
rowsPerPageOptions: Y = [10, 20, 50, 100],
|
|
2934
|
+
onRowsPerPageChange: te,
|
|
2935
|
+
totalItems: O = 1e3,
|
|
2936
|
+
startItem: z = 1,
|
|
2937
|
+
endItem: U = 100,
|
|
2921
2938
|
// Row actions props
|
|
2922
|
-
onRowEdit:
|
|
2923
|
-
onRowDelete:
|
|
2924
|
-
rowActions:
|
|
2939
|
+
onRowEdit: k,
|
|
2940
|
+
onRowDelete: y,
|
|
2941
|
+
rowActions: h = []
|
|
2925
2942
|
}) => {
|
|
2926
|
-
const { columnWidths: H, isResizing:
|
|
2943
|
+
const { columnWidths: H, isResizing: m, resizeColumn: W, handleResizeStart: Q } = os(
|
|
2927
2944
|
l,
|
|
2928
2945
|
o.map((c) => ({ ...c, customWidth: c.customWidth }))
|
|
2929
|
-
), ce = ae(null), [le, he] = V(null), [ie,
|
|
2930
|
-
|
|
2946
|
+
), ce = ae(null), [le, he] = V(null), [ie, F] = V(null), se = ae({}), de = ae(null), J = ae(null), [fe, R] = V(!1), [_, S] = V(null), [N, re] = V(null), [G, we] = V(o);
|
|
2947
|
+
ee(() => {
|
|
2931
2948
|
const c = o.map((T) => ({
|
|
2932
2949
|
...T,
|
|
2933
2950
|
visible: T.visible !== void 0 ? T.visible : !0,
|
|
@@ -2939,39 +2956,39 @@ const kt = ({
|
|
|
2939
2956
|
const _e = (c, T) => {
|
|
2940
2957
|
S(T), c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("text/html", c.currentTarget.outerHTML);
|
|
2941
2958
|
}, ge = (c, T) => {
|
|
2942
|
-
c.preventDefault(), c.dataTransfer.dropEffect = "move", T !==
|
|
2959
|
+
c.preventDefault(), c.dataTransfer.dropEffect = "move", T !== _ && re(T);
|
|
2943
2960
|
}, Me = () => {
|
|
2944
2961
|
re(null);
|
|
2945
2962
|
}, Se = (c, T) => {
|
|
2946
|
-
if (c.preventDefault(),
|
|
2963
|
+
if (c.preventDefault(), _ === null || _ === T) {
|
|
2947
2964
|
S(null), re(null);
|
|
2948
2965
|
return;
|
|
2949
2966
|
}
|
|
2950
|
-
const I = [...
|
|
2951
|
-
I.splice(
|
|
2952
|
-
const Ie =
|
|
2967
|
+
const I = [...G], ue = I[_];
|
|
2968
|
+
I.splice(_, 1);
|
|
2969
|
+
const Ie = _ < T ? T - 1 : T;
|
|
2953
2970
|
I.splice(Ie, 0, ue), we(I), S(null), re(null), d?.(I);
|
|
2954
2971
|
}, De = () => {
|
|
2955
2972
|
S(null), re(null);
|
|
2956
2973
|
}, Pe = (c) => {
|
|
2957
|
-
const T =
|
|
2958
|
-
we(T),
|
|
2959
|
-
}, Te =
|
|
2974
|
+
const T = G.map((I) => I.key === c.key ? { ...I, visible: !I.visible } : I);
|
|
2975
|
+
we(T), C?.(T);
|
|
2976
|
+
}, Te = G.filter((c) => c.visible), We = (c) => {
|
|
2960
2977
|
const T = l.map((I) => I[t]);
|
|
2961
2978
|
if (c) {
|
|
2962
2979
|
const I = [.../* @__PURE__ */ new Set([...n, ...T])];
|
|
2963
|
-
|
|
2980
|
+
v?.(I);
|
|
2964
2981
|
} else {
|
|
2965
2982
|
const I = n.filter((ue) => !T.includes(ue));
|
|
2966
|
-
|
|
2983
|
+
v?.(I);
|
|
2967
2984
|
}
|
|
2968
2985
|
}, Be = (c, T, I = null) => {
|
|
2969
|
-
|
|
2986
|
+
v?.(T ? [...n, c] : n.filter((ue) => ue !== c), I);
|
|
2970
2987
|
}, He = l.map((c) => c[t]), qe = l.length > 0 && He.every((c) => n.includes(c)), et = He.some((c) => n.includes(c)) && !qe, tt = (c, T) => {
|
|
2971
|
-
x?.(c, T);
|
|
2972
|
-
}, u = (c, T) => {
|
|
2973
2988
|
k?.(c, T);
|
|
2974
|
-
},
|
|
2989
|
+
}, p = (c, T) => {
|
|
2990
|
+
y?.(c, T);
|
|
2991
|
+
}, x = (c) => {
|
|
2975
2992
|
const T = se.current[c];
|
|
2976
2993
|
if (!T) return null;
|
|
2977
2994
|
const I = T.getBoundingClientRect(), ue = window.innerHeight, Ie = window.innerWidth, Ne = 120, it = 120;
|
|
@@ -2979,33 +2996,33 @@ const kt = ({
|
|
|
2979
2996
|
Xe < 0 && (Xe = I.left), Xe + it > Ie && (Xe = Ie - it - 10);
|
|
2980
2997
|
const At = ue - I.bottom, Rt = I.top, xt = At < Ne && Rt >= Ne;
|
|
2981
2998
|
return { top: xt ? I.top - Ne + 8 : I.bottom + 4, left: Xe, shouldOpenUpward: xt };
|
|
2982
|
-
},
|
|
2999
|
+
}, oe = (c, T) => {
|
|
2983
3000
|
if (c.stopPropagation(), le === T)
|
|
2984
|
-
he(null),
|
|
3001
|
+
he(null), F(null);
|
|
2985
3002
|
else {
|
|
2986
3003
|
he(T);
|
|
2987
|
-
const I =
|
|
2988
|
-
|
|
3004
|
+
const I = x(T);
|
|
3005
|
+
F(I);
|
|
2989
3006
|
}
|
|
2990
3007
|
};
|
|
2991
|
-
return
|
|
3008
|
+
return ee(() => {
|
|
2992
3009
|
const c = (ue) => {
|
|
2993
|
-
(!ue.target || !ue.target.closest(`.${M.actionsCell}`)) && (he(null),
|
|
3010
|
+
(!ue.target || !ue.target.closest(`.${M.actionsCell}`)) && (he(null), F(null));
|
|
2994
3011
|
}, T = () => {
|
|
2995
3012
|
if (le !== null) {
|
|
2996
|
-
const ue =
|
|
2997
|
-
|
|
3013
|
+
const ue = x(le);
|
|
3014
|
+
F(ue);
|
|
2998
3015
|
}
|
|
2999
3016
|
}, I = () => {
|
|
3000
3017
|
if (le !== null) {
|
|
3001
|
-
const ue =
|
|
3002
|
-
|
|
3018
|
+
const ue = x(le);
|
|
3019
|
+
F(ue);
|
|
3003
3020
|
}
|
|
3004
3021
|
};
|
|
3005
3022
|
return document.addEventListener("click", c), window.addEventListener("scroll", T, !0), window.addEventListener("resize", I), () => {
|
|
3006
3023
|
document.removeEventListener("click", c), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", I);
|
|
3007
3024
|
};
|
|
3008
|
-
}, [le]),
|
|
3025
|
+
}, [le]), ee(() => {
|
|
3009
3026
|
const c = (T) => {
|
|
3010
3027
|
fe && de.current && J.current && !de.current.contains(T.target) && !J.current.contains(T.target) && R(!1);
|
|
3011
3028
|
};
|
|
@@ -3017,10 +3034,10 @@ const kt = ({
|
|
|
3017
3034
|
/* @__PURE__ */ e("div", { children: g }),
|
|
3018
3035
|
D && /* @__PURE__ */ i("div", { className: M.columnConfiguration, children: [
|
|
3019
3036
|
/* @__PURE__ */ e("div", { className: M.columnConfigurationIcon, ref: de, onClick: () => R((c) => !c), children: /* @__PURE__ */ e(Xt, {}) }),
|
|
3020
|
-
fe && /* @__PURE__ */ e("ul", { className: M.columnConfigurationDropdown, ref: J, children:
|
|
3037
|
+
fe && /* @__PURE__ */ e("ul", { className: M.columnConfigurationDropdown, ref: J, children: G.map((c, T) => /* @__PURE__ */ i(
|
|
3021
3038
|
"li",
|
|
3022
3039
|
{
|
|
3023
|
-
className: `${M.columnConfigurationItem} ${
|
|
3040
|
+
className: `${M.columnConfigurationItem} ${_ === T ? M.dragging : ""} ${N === T ? M.dragOver : ""}`,
|
|
3024
3041
|
draggable: !0,
|
|
3025
3042
|
onDragStart: (I) => _e(I, T),
|
|
3026
3043
|
onDragOver: (I) => ge(I, T),
|
|
@@ -3053,7 +3070,7 @@ const kt = ({
|
|
|
3053
3070
|
c.text,
|
|
3054
3071
|
c.icon
|
|
3055
3072
|
] }, c.text || T)) : /* @__PURE__ */ i("div", { className: M.actionButton, onClick: () => w?.(n), children: [
|
|
3056
|
-
|
|
3073
|
+
b || "Delete",
|
|
3057
3074
|
A && A
|
|
3058
3075
|
] })
|
|
3059
3076
|
] })
|
|
@@ -3064,7 +3081,7 @@ const kt = ({
|
|
|
3064
3081
|
{
|
|
3065
3082
|
className: Ve(
|
|
3066
3083
|
M.tableWrapper,
|
|
3067
|
-
{ [M.resizing]:
|
|
3084
|
+
{ [M.resizing]: m }
|
|
3068
3085
|
),
|
|
3069
3086
|
children: /* @__PURE__ */ i("table", { className: M.table, style: !l || l.length === 0 ? { tableLayout: "auto" } : {}, ref: ce, children: [
|
|
3070
3087
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ i("tr", { children: [
|
|
@@ -3081,7 +3098,7 @@ const kt = ({
|
|
|
3081
3098
|
Te.map((c) => /* @__PURE__ */ i("th", { style: { width: H[c.key], position: "relative" }, children: [
|
|
3082
3099
|
/* @__PURE__ */ i("div", { className: M.headerContent, onClick: c.sortable ? () => s?.(c.key) : void 0, children: [
|
|
3083
3100
|
c.label,
|
|
3084
|
-
|
|
3101
|
+
f && c.sortable && a?.[0]?.selector !== c.key && a?.[1]?.selector !== c.key && /* @__PURE__ */ i("svg", { width: "13", height: "13", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3085
3102
|
/* @__PURE__ */ e(
|
|
3086
3103
|
"path",
|
|
3087
3104
|
{
|
|
@@ -3163,13 +3180,13 @@ const kt = ({
|
|
|
3163
3180
|
"div",
|
|
3164
3181
|
{
|
|
3165
3182
|
className: Ve(M.resizeHandle, {
|
|
3166
|
-
[M.resizing]:
|
|
3183
|
+
[M.resizing]: m && W === c.key
|
|
3167
3184
|
}),
|
|
3168
3185
|
onMouseDown: (T) => Q(T, c.key)
|
|
3169
3186
|
}
|
|
3170
3187
|
)
|
|
3171
3188
|
] }, c.key)),
|
|
3172
|
-
|
|
3189
|
+
L && /* @__PURE__ */ e("th", { className: M.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(
|
|
3173
3190
|
"path",
|
|
3174
3191
|
{
|
|
3175
3192
|
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",
|
|
@@ -3190,14 +3207,14 @@ const kt = ({
|
|
|
3190
3207
|
const ue = typeof I.rowTooltipProps == "function" ? I.rowTooltipProps(c) : I.rowTooltipProps;
|
|
3191
3208
|
return /* @__PURE__ */ e("td", { style: { width: H[I.key] }, children: /* @__PURE__ */ e(lt, { ...ue, tooltipContainerStyle: { width: H[I.key] }, text: ue?.text || "", children: /* @__PURE__ */ e("div", { style: { width: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: I.render ? I.render(c) : c[I.key] }) }) }, I.key);
|
|
3192
3209
|
}),
|
|
3193
|
-
|
|
3210
|
+
L && /* @__PURE__ */ e("td", { className: M.actionsCell, children: /* @__PURE__ */ e(
|
|
3194
3211
|
"div",
|
|
3195
3212
|
{
|
|
3196
3213
|
className: M.actionsContainer,
|
|
3197
3214
|
ref: (I) => {
|
|
3198
3215
|
se.current[T] = I;
|
|
3199
3216
|
},
|
|
3200
|
-
children: /* @__PURE__ */ e("div", { className: M.actionsTrigger, onClick: (I) =>
|
|
3217
|
+
children: /* @__PURE__ */ e("div", { className: M.actionsTrigger, onClick: (I) => oe(I, T), children: /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3201
3218
|
/* @__PURE__ */ e(
|
|
3202
3219
|
"path",
|
|
3203
3220
|
{
|
|
@@ -3240,12 +3257,12 @@ const kt = ({
|
|
|
3240
3257
|
zIndex: 1e3
|
|
3241
3258
|
},
|
|
3242
3259
|
children: [
|
|
3243
|
-
|
|
3260
|
+
k && /* @__PURE__ */ i(
|
|
3244
3261
|
"div",
|
|
3245
3262
|
{
|
|
3246
3263
|
className: M.actionItem,
|
|
3247
3264
|
onClick: (c) => {
|
|
3248
|
-
c.stopPropagation(), tt(l[le], le), he(null),
|
|
3265
|
+
c.stopPropagation(), tt(l[le], le), he(null), F(null);
|
|
3249
3266
|
},
|
|
3250
3267
|
children: [
|
|
3251
3268
|
/* @__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(
|
|
@@ -3262,13 +3279,13 @@ const kt = ({
|
|
|
3262
3279
|
]
|
|
3263
3280
|
}
|
|
3264
3281
|
),
|
|
3265
|
-
|
|
3282
|
+
y && /* @__PURE__ */ i(
|
|
3266
3283
|
"div",
|
|
3267
3284
|
{
|
|
3268
3285
|
className: M.actionItem,
|
|
3269
3286
|
style: { color: "#E3292F" },
|
|
3270
3287
|
onClick: (c) => {
|
|
3271
|
-
c.stopPropagation(),
|
|
3288
|
+
c.stopPropagation(), p(l[le], le), he(null), F(null);
|
|
3272
3289
|
},
|
|
3273
3290
|
children: [
|
|
3274
3291
|
/* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -3309,12 +3326,12 @@ const kt = ({
|
|
|
3309
3326
|
]
|
|
3310
3327
|
}
|
|
3311
3328
|
),
|
|
3312
|
-
|
|
3329
|
+
h.map((c, T) => /* @__PURE__ */ i(
|
|
3313
3330
|
"div",
|
|
3314
3331
|
{
|
|
3315
3332
|
className: M.actionItem,
|
|
3316
3333
|
onClick: (I) => {
|
|
3317
|
-
I.stopPropagation(), c.onClick?.(l[le], le), he(null),
|
|
3334
|
+
I.stopPropagation(), c.onClick?.(l[le], le), he(null), F(null);
|
|
3318
3335
|
},
|
|
3319
3336
|
children: [
|
|
3320
3337
|
c.icon && /* @__PURE__ */ e("div", { children: c.icon }),
|
|
@@ -3326,9 +3343,9 @@ const kt = ({
|
|
|
3326
3343
|
]
|
|
3327
3344
|
}
|
|
3328
3345
|
),
|
|
3329
|
-
|
|
3330
|
-
/* @__PURE__ */ e("div", { className: M.pagination, style:
|
|
3331
|
-
/* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () =>
|
|
3346
|
+
K && /* @__PURE__ */ i("div", { className: M.paginationFooter, children: [
|
|
3347
|
+
/* @__PURE__ */ e("div", { className: M.pagination, style: E === "numbered" ? { maxWidth: "400px", gap: "6px" } : {}, children: E === "numbered" ? /* @__PURE__ */ i(st, { children: [
|
|
3348
|
+
/* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () => q?.(Math.max(u - 1, 0)), disabled: u === 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(
|
|
3332
3349
|
"path",
|
|
3333
3350
|
{
|
|
3334
3351
|
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",
|
|
@@ -3336,10 +3353,10 @@ const kt = ({
|
|
|
3336
3353
|
}
|
|
3337
3354
|
) }) }),
|
|
3338
3355
|
(() => {
|
|
3339
|
-
const c = [], T =
|
|
3340
|
-
let ue = Math.max(0,
|
|
3356
|
+
const c = [], T = ne || 5, I = Math.floor(T / 2);
|
|
3357
|
+
let ue = Math.max(0, u - I), Ie = Math.min(Z - 1, ue + T - 1);
|
|
3341
3358
|
Ie - ue < T - 1 && (ue = Math.max(0, Ie - T + 1)), ue > 0 && (c.push(
|
|
3342
|
-
/* @__PURE__ */ e("button", { className: Ve(M.paginationButton, M.pageNumber), onClick: () =>
|
|
3359
|
+
/* @__PURE__ */ e("button", { className: Ve(M.paginationButton, M.pageNumber), onClick: () => q?.(0), children: "1" }, 0)
|
|
3343
3360
|
), ue > 1 && c.push(
|
|
3344
3361
|
/* @__PURE__ */ e("span", { className: M.ellipsis, children: "..." }, "ellipsis1")
|
|
3345
3362
|
));
|
|
@@ -3349,26 +3366,26 @@ const kt = ({
|
|
|
3349
3366
|
"button",
|
|
3350
3367
|
{
|
|
3351
3368
|
className: Ve(M.paginationButton, M.pageNumber, {
|
|
3352
|
-
[M.active]: Ne ===
|
|
3369
|
+
[M.active]: Ne === u
|
|
3353
3370
|
}),
|
|
3354
|
-
onClick: () =>
|
|
3371
|
+
onClick: () => q?.(Ne),
|
|
3355
3372
|
children: Ne + 1
|
|
3356
3373
|
},
|
|
3357
3374
|
Ne
|
|
3358
3375
|
)
|
|
3359
3376
|
);
|
|
3360
|
-
return Ie <
|
|
3377
|
+
return Ie < Z - 1 && (Ie < Z - 2 && c.push(
|
|
3361
3378
|
/* @__PURE__ */ e("span", { className: M.ellipsis, children: "..." }, "ellipsis2")
|
|
3362
3379
|
), c.push(
|
|
3363
|
-
/* @__PURE__ */ e("button", { className: Ve(M.paginationButton, M.pageNumber), onClick: () =>
|
|
3380
|
+
/* @__PURE__ */ e("button", { className: Ve(M.paginationButton, M.pageNumber), onClick: () => q?.(Z - 1), children: Z }, Z - 1)
|
|
3364
3381
|
)), c;
|
|
3365
3382
|
})(),
|
|
3366
3383
|
/* @__PURE__ */ e(
|
|
3367
3384
|
"button",
|
|
3368
3385
|
{
|
|
3369
3386
|
className: M.paginationButton,
|
|
3370
|
-
onClick: () =>
|
|
3371
|
-
disabled:
|
|
3387
|
+
onClick: () => q?.(u + 1 < Z ? u + 1 : u),
|
|
3388
|
+
disabled: u + 1 >= Z,
|
|
3372
3389
|
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(
|
|
3373
3390
|
"path",
|
|
3374
3391
|
{
|
|
@@ -3379,7 +3396,7 @@ const kt = ({
|
|
|
3379
3396
|
}
|
|
3380
3397
|
)
|
|
3381
3398
|
] }) : /* @__PURE__ */ i(st, { children: [
|
|
3382
|
-
/* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () =>
|
|
3399
|
+
/* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () => q?.(Math.max(u - 1, 0)), disabled: u === 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(
|
|
3383
3400
|
"path",
|
|
3384
3401
|
{
|
|
3385
3402
|
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",
|
|
@@ -3388,16 +3405,16 @@ const kt = ({
|
|
|
3388
3405
|
) }) }),
|
|
3389
3406
|
/* @__PURE__ */ i("span", { className: M.paginationInfo, children: [
|
|
3390
3407
|
"Page ",
|
|
3391
|
-
|
|
3408
|
+
u + 1,
|
|
3392
3409
|
" of ",
|
|
3393
|
-
|
|
3410
|
+
Z
|
|
3394
3411
|
] }),
|
|
3395
3412
|
/* @__PURE__ */ e(
|
|
3396
3413
|
"button",
|
|
3397
3414
|
{
|
|
3398
3415
|
className: M.paginationButton,
|
|
3399
|
-
onClick: () =>
|
|
3400
|
-
disabled:
|
|
3416
|
+
onClick: () => q?.(u + 1 < Z ? u + 1 : u),
|
|
3417
|
+
disabled: u + 1 >= Z,
|
|
3401
3418
|
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(
|
|
3402
3419
|
"path",
|
|
3403
3420
|
{
|
|
@@ -3411,15 +3428,15 @@ const kt = ({
|
|
|
3411
3428
|
/* @__PURE__ */ i("div", { className: M.paginationRight, children: [
|
|
3412
3429
|
/* @__PURE__ */ i("p", { className: M.paginationInfo, children: [
|
|
3413
3430
|
"Showing ",
|
|
3414
|
-
|
|
3431
|
+
z,
|
|
3415
3432
|
"-",
|
|
3416
|
-
|
|
3433
|
+
U,
|
|
3417
3434
|
" of ",
|
|
3418
|
-
|
|
3435
|
+
O
|
|
3419
3436
|
] }),
|
|
3420
3437
|
/* @__PURE__ */ e("div", { className: M.divider }),
|
|
3421
3438
|
/* @__PURE__ */ e("p", { className: M.paginationSelectLabel, children: "Rows per page" }),
|
|
3422
|
-
/* @__PURE__ */ e(ns, { currentValue:
|
|
3439
|
+
/* @__PURE__ */ e(ns, { currentValue: j, options: Y, onChange: te || (() => {
|
|
3423
3440
|
}) })
|
|
3424
3441
|
] })
|
|
3425
3442
|
] })
|
|
@@ -3473,16 +3490,16 @@ const is = "mc__DropdownPill-module__dropdownPill", ss = "mc__DropdownPill-modul
|
|
|
3473
3490
|
leftSlot: l,
|
|
3474
3491
|
rightSlot: r,
|
|
3475
3492
|
selected: s,
|
|
3476
|
-
selectedType:
|
|
3493
|
+
selectedType: f = "default",
|
|
3477
3494
|
dropdownPillStyle: a,
|
|
3478
3495
|
dropdownPillTextStyle: n,
|
|
3479
|
-
onClick:
|
|
3496
|
+
onClick: v
|
|
3480
3497
|
}) => /* @__PURE__ */ i(
|
|
3481
3498
|
"div",
|
|
3482
3499
|
{
|
|
3483
3500
|
style: a,
|
|
3484
|
-
className: `${Je.dropdownPill} ${s ? `${Je.selected} ${
|
|
3485
|
-
onClick: () =>
|
|
3501
|
+
className: `${Je.dropdownPill} ${s ? `${Je.selected} ${f === "alt" ? Je.altSelected : Je.defaultSelected}` : ""}`,
|
|
3502
|
+
onClick: () => v?.(),
|
|
3486
3503
|
children: [
|
|
3487
3504
|
l && l,
|
|
3488
3505
|
o || /* @__PURE__ */ e("p", { className: Je.dropdownPillText, style: n, children: t }),
|