master-components-react-ts 2.4.20 → 2.4.21
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 +713 -711
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";button.mc__MainButton-module__mainButton{width:100%;display:flex;padding:8px;justify-content:center;align-items:center;border-radius:6px;min-width:100px;outline:none;border:none;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}button.mc__MainButton-module__mainButton.mc__MainButton-module__sm{height:32px}button.mc__MainButton-module__mainButton.mc__MainButton-module__md{height:36px}button.mc__MainButton-module__mainButton.mc__MainButton-module__lg{height:40px}button.mc__MainButton-module__mainButton .mc__MainButton-module__mainButtonContent{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}button.mc__MainButton-module__mainButton .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{overflow:hidden;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral{background:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#004fe5!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral.mc__MainButton-module__focused{outline:2px solid #dee9fc;outline-offset:0px;background:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__neutral .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive{background:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#266905!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive.mc__MainButton-module__focused{outline:2px solid #c3ebb0;outline-offset:0px;background:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__positive .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative{background:#e3292f}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#db1d23!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative.mc__MainButton-module__focused{outline:2px solid #fcdcdc;outline-offset:0px;background:#e3292f}button.mc__MainButton-module__mainButton.mc__MainButton-module__primary.mc__MainButton-module__negative .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral{background:#ecf3ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#dee9fc!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__disabled{background:#f2f2f2;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral.mc__MainButton-module__focused{outline-offset:0px;background:#ecf3ff;box-shadow:0 0 0 2px #0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__neutral .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive{background:#effce8}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#e0fad2!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive.mc__MainButton-module__focused{outline:2px solid #60bf30;outline-offset:0px;background:#effce8}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__positive .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative{background:#fff2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#fcdcdc!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative.mc__MainButton-module__disabled{background:#95969c;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative.mc__MainButton-module__focused{outline:2px solid #ff5757;outline-offset:0px;background:#fff2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__secondary.mc__MainButton-module__negative .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#db1d23}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral{background:#f2f2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#e6e6e6!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__disabled{background:#f2f2f2;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral.mc__MainButton-module__focused{outline:2px solid #c1c2c7;outline-offset:0px;background:#f2f2f2}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__neutral .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#131314}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive{background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#effce8!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__disabled{background:#fff;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive.mc__MainButton-module__focused{outline:2px solid #91e766;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__positive .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#328707}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative{background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#fff2f2!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__disabled{background:#fff;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative.mc__MainButton-module__focused{outline:2px solid #fcdcdc;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiary.mc__MainButton-module__negative .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#e3292f}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2{background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){background:#ecf3ff!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__disabled{background:#f2f2f2;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2.mc__MainButton-module__focused{outline:2px solid #dee9fc;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV2 .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#0058ff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3{border:1px solid #e6e6e6;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__loading{cursor:no-drop}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3:hover:not(.mc__MainButton-module__disabled):not(.mc__MainButton-module__loading){border-color:#c1c2c7!important}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__disabled{background:#fff;border:1px solid #e6e6e6;cursor:not-allowed}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__disabled .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#7a7b80}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3.mc__MainButton-module__focused{border:1px solid transparent;outline:2px solid #dee9fc;outline-offset:0px;background:#fff}button.mc__MainButton-module__mainButton.mc__MainButton-module__tertiaryV3 .mc__MainButton-module__mainButtonContent .mc__MainButton-module__mainButtonLabel{color:#292d33}.mc__FormInput-module__inputWrapper{width:100%;display:flex;flex-direction:column;gap:10px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__sm .mc__FormInput-module__formInputWrapper{height:36px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__md .mc__FormInput-module__formInputWrapper{height:40px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputLabel{width:100%;overflow:hidden;color:#95969c;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInput{width:100%;overflow:hidden;color:#7a7b80;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputHelperText{width:100%;overflow:hidden;color:#95969c;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputWrapper{border-radius:6px;border:1px solid #e6e6e6;background:#fafafa}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputWrapper .mc__FormInput-module__formInput{width:100%;overflow:hidden;color:#7a7b80;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px;cursor:not-allowed}.mc__FormInput-module__inputWrapper.mc__FormInput-module__disabled .mc__FormInput-module__formInputWrapper .mc__FormInput-module__formInput::placeholder{width:100%;overflow:hidden;color:#7a7b80;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper .mc__FormInput-module__formInputLabel{width:100%;overflow:hidden;color:#131314;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper .mc__FormInput-module__formInputLabel .mc__FormInput-module__formInputRequired{overflow:hidden;color:#e3292f;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputLabelWrapper .mc__FormInput-module__formInputHelperSlot{display:flex;align-items:center;justify-content:center}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper{width:100%;display:flex;align-items:center;gap:8px;padding:8px;border-radius:6px;border:1px solid #e6e6e6;background:#fff}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__errorState{border-radius:6px;background:#fff;outline:1px solid #f63e45;outline-offset:-1px;box-shadow:none}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__focused{border-radius:6px;background:#fff;outline:2px solid #0058ff;outline-offset:-2px;box-shadow:none}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__active{border-radius:6px;background:#fff;outline:1.5px solid #0058ff;outline-offset:-1.5px;box-shadow:0 0 0 2px #dee9fc}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__errorFocused{border-radius:6px;background:#fff;outline:2px solid #f63e45;outline-offset:-2px;box-shadow:none}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper.mc__FormInput-module__errorActive{border-radius:6px;background:#fff;outline:1.5px solid #f63e45;outline-offset:-1.5px;box-shadow:0 0 0 2px #fcdcdd}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper input.mc__FormInput-module__formInput{border:none;outline:none;background-color:transparent;caret-color:#0058ff;width:100%;overflow:hidden;color:#131314;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper input.mc__FormInput-module__formInput::placeholder{width:100%;overflow:hidden;color:#646569;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputWrapper .mc__FormInput-module__formInputSlot{display:grid;place-items:center}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputHelperText{width:100%;overflow:hidden;color:#131314;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputHelperText.mc__FormInput-module__errorHelperText{width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px;color:#e3292f}.mc__FormInput-module__inputWrapper .mc__FormInput-module__formInputHelperText.mc__FormInput-module__successHelperText{width:100%;overflow:hidden;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px;color:#328707}.mc__Textarea-module__textareaContainer{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;flex-shrink:0}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textAreaLabel{justify-content:space-between;display:flex;align-items:center;gap:.125rem;width:100%}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textAreaLabel p{width:100%;overflow:hidden;color:#131314;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textAreaLabel .mc__Textarea-module__required{color:#d92d20;font-size:.875rem;font-family:var(--font-inter-regular);font-style:normal;font-weight:500;line-height:1.25rem}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap{display:inline-block;width:100%;position:relative}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap.mc__Textarea-module__resize textarea{resize:both}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap.mc__Textarea-module__resize:after{content:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%3e%3cpath%20d='M10%202L2%2010'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3cpath%20d='M11%207L7%2011'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3c/svg%3e");width:.9375rem;background:transparent;position:absolute;right:.125rem;bottom:.3125rem;pointer-events:none;border-radius:25%}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textareaIconClose{position:absolute;right:8px;top:8px;cursor:pointer}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea{border-radius:6px;border:1px solid #c1c2c7;background:#fff;padding:8px 12px;resize:none;width:100%;overflow:hidden;color:#131314;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-resizer{display:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-scrollbar{width:0}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-scrollbar-track{-webkit-box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::-webkit-scrollbar-thumb{background-color:none;outline:0}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__errorState{border-radius:6px;background:#fff;outline:1px solid #f63e45;outline-offset:-1px;box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__focused{border-radius:6px;background:#fff;outline:2px solid #0058ff;outline-offset:-2px;box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__active{border-radius:6px;background:#fff;outline:1.5px solid #0058ff;outline-offset:-1.5px;box-shadow:0 0 0 2px #dee9fc}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__errorFocused{border-radius:6px;background:#fff;outline:2px solid #f63e45;outline-offset:-2px;box-shadow:none}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea.mc__Textarea-module__errorActive{border-radius:6px;background:#fff;outline:1.5px solid #f63e45;outline-offset:-1.5px;box-shadow:0 0 0 2px #fcdcdd}.mc__Textarea-module__textareaContainer .mc__Textarea-module__wrap .mc__Textarea-module__textarea::placeholder{width:100%;overflow:hidden;color:#646569;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textareaFooter{width:100%;display:flex;justify-content:flex-end;align-items:center}.mc__Textarea-module__textareaContainer .mc__Textarea-module__textareaFooter p{color:#131314;text-align:right;font-family:var(--font-inter-medium);font-size:12px;font-style:normal;font-weight:450;line-height:16px;letter-spacing:.1px}.mc__Toggle-module__toggleWrapper{position:relative;overflow:hidden;border-radius:13.333px;background:#c1c2c7;padding:4px;cursor:pointer}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__checked{background:#0058ff}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__error{background:#e3292f}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__disabled{background:#d4d5d6;cursor:not-allowed}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__disabled.mc__Toggle-module__checked{background:#95969c}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__sm{width:24px;height:16px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__sm.mc__Toggle-module__checked .mc__Toggle-module__toggleState{left:calc(100% - 12px)}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__sm .mc__Toggle-module__toggleState{width:8px;height:8px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__md{width:32px;height:20px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__md.mc__Toggle-module__checked .mc__Toggle-module__toggleState{left:calc(100% - 16px)}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__md .mc__Toggle-module__toggleState{width:12px;height:12px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__lg{width:40px;height:24px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__lg .mc__Toggle-module__toggleState{width:16px;height:16px}.mc__Toggle-module__toggleWrapper.mc__Toggle-module__lg.mc__Toggle-module__checked .mc__Toggle-module__toggleState{left:calc(100% - 20px)}.mc__Toggle-module__toggleWrapper .mc__Toggle-module__toggleState{border-radius:8px;background:#fff;position:absolute;top:50%;left:4px;transform:translateY(-50%);transition:.2s all}.mc__Checkbox-module__checkboxWrapper{overflow:hidden;border:2px solid #c1c2c7;background:#fff;position:relative;padding:5px 4px;border-radius:3px;cursor:pointer;transition:.2;display:grid;place-items:center;width:18px;height:18px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.mc__Checkbox-module__checkboxWrapper .mc__Checkbox-module__checkMark{display:grid;place-items:center}.mc__Checkbox-module__checkboxWrapper .mc__Checkbox-module__checkMark svg{width:.625rem;user-select:none;pointer-events:none}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__error{border-color:#e3292f}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__error.mc__Checkbox-module__checked{background:#e3292f;border:none}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked{background:#0058ff;border:none}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked.mc__Checkbox-module__disabled{background:#95969c}.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__disabled{cursor:not-allowed;border-color:#c1c2c7!important}.mc__Checkbox-module__Namespace_Hr.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked{background:#32b45f;border:.0625rem solid #32b45f}.mc__Checkbox-module__Namespace_Hr.mc__Checkbox-module__checkboxWrapper.mc__Checkbox-module__checked:hover{background:#24994d;border:.0625rem solid #24994d}.mc__Checkbox-module__dark{background:#373a41;border:unset}.mc__Checkbox-module__dark.mc__Checkbox-module__checked{background:#0158ff;border:.0625rem solid #0158ff}.mc__Checkbox-module__dark.mc__Checkbox-module__checked.mc__Checkbox-module__disabled svg path{stroke:#d5d7da}.mc__Checkbox-module__dark.mc__Checkbox-module__disabled{background:#8d8d8d!important;border:.0625rem solid #373a41!important}.mc__Dropdown-module__dropdownWrapper{user-select:none;width:100%}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper{width:100%;cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot{display:flex;align-items:center;gap:2px;border-right:1px solid #e6e6e6}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot p{overflow:hidden;color:#717680;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:16px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot img{width:30px;height:30px;object-fit:contain}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot .mc__Dropdown-module__dropdownRightIconArrow{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease-in-out;width:29px;height:24px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownInputSlot .mc__Dropdown-module__dropdownRightIconArrow.mc__Dropdown-module__focused{transform:rotate(180deg)}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot{overflow:hidden;width:100%;display:flex;align-items:center;gap:6px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem{border-radius:999px;background:#f2f2f2;min-width:80px;max-width:100px;display:flex;align-items:center;gap:6px;padding:6px 12px;cursor:default}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem .mc__Dropdown-module__dropdownInputSlotItemLabel{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#131314;font-family:var(--font-inter-regular);font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem .mc__Dropdown-module__dropdownInputSlotItemClose{display:flex;justify-content:center;align-items:center;cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper ul.mc__Dropdown-module__dropdownInputSlot li.mc__Dropdown-module__dropdownInputSlotItem.mc__Dropdown-module__dropdownInputSlotItemMore{justify-content:center;min-width:44px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon{display:flex;align-items:center;gap:8px;margin:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon .mc__Dropdown-module__dropdownRightIconClose{display:flex;align-items:center;justify-content:center;cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon .mc__Dropdown-module__dropdownRightIconArrow{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease-in-out}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownInputWrapper .mc__Dropdown-module__dropdownRightIcon.mc__Dropdown-module__focused .mc__Dropdown-module__dropdownRightIconArrow{transform:rotate(180deg)}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer{width:100%;z-index:500;padding:8px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 2px 4px #1313140a;display:flex;flex-direction:column;gap:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList{width:100%;max-height:320px;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;align-self:stretch}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem{width:100%;border-radius:4px;background:#fff;display:flex;padding:6px 16px 6px 6px;align-items:center;gap:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__selected{width:100%;border-radius:4px;background:#ecf3ff}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__selected .mc__Dropdown-module__dropdownItemLabel{width:100%}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__selected .mc__Dropdown-module__dropdownItemLabel p{width:100%;overflow:hidden;color:#0058ff!important;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__hovered{cursor:pointer}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__hovered:hover{background:#f2f2f2}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem.mc__Dropdown-module__disabled p:first-of-type{color:#95969c!important}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__itemCheckbox{display:flex;justify-content:center;align-items:center}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel{width:calc(100% - 20px);display:flex;align-items:center;justify-content:space-between}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel .mc__Dropdown-module__dropdownItemLabelInput{display:flex;align-items:center;gap:8px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel .mc__Dropdown-module__dropdownItemLabelInput .mc__Dropdown-module__countryName{overflow:hidden;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel .mc__Dropdown-module__dropdownItemLabelInput .mc__Dropdown-module__countryDialCode{overflow:hidden;color:#646569;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel p:first-of-type:not(.mc__Dropdown-module__selectAll){width:100%}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel p:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#131314;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Dropdown-module__dropdownWrapper .mc__Dropdown-module__dropdownListContainer ul.mc__Dropdown-module__dropdownList li.mc__Dropdown-module__dropdownItem .mc__Dropdown-module__dropdownItemLabel p:last-of-type{overflow:hidden;color:#131314;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__TreeNode-module__treeNodeContainer{width:100%;display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNodeItem{display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNodeItem.mc__TreeNode-module__inDropDown{max-height:16rem;overflow:auto}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode{display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode.mc__TreeNode-module__visible{display:flex}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode.mc__TreeNode-module__hidden{display:none}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode .mc__TreeNode-module__labelRow{display:flex;align-items:center;gap:8px;border-radius:.375rem;background:#fff;padding:.5rem;cursor:pointer}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode .mc__TreeNode-module__labelRow:hover{background:#fafafa}.mc__TreeNode-module__treeNodeContainer .mc__TreeNode-module__treeNode .mc__TreeNode-module__labelRow .mc__TreeNode-module__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#131314;font-family:var(--font-inter-regular);font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.1px}.mc__TreeNode-module__children{display:flex;flex-direction:column;gap:.125rem}.mc__TreeNode-module__dropdownListFooter{background-color:#fff;width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:2px solid #fafafa;margin-top:8px}.mc__TreeNode-module__dropdownListFooter span{font-size:.875rem;color:#3a3b3e;cursor:pointer}.mc__Radio-module__radioWrapper{width:24px;height:24px;border-radius:50%;overflow:hidden;position:relative;cursor:pointer;transition:.2s}.mc__Tooltip-module__tooltipContainer{position:relative}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent{border-radius:.5rem;background:#181d27;padding:.75rem;max-width:200px;min-width:118px;position:absolute;z-index:99999;word-break:break-word}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__withoutPointer:before{all:initial}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent:before{content:" ";left:50%;border:solid transparent;height:0;width:0;position:absolute;pointer-events:none;border-width:6px;margin-left:-6px}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__top:before{top:100%;border-top-color:#181d27;left:var(--pointer-position)}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__right:before{left:-6px;top:50%;transform:translate(0) translateY(-50%);border-right-color:#181d27}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__bottom:before{bottom:100%;left:var(--pointer-position);border-bottom-color:#181d27}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__left:before{left:auto;right:-12px;top:50%;transform:translate(0) translateY(-50%);border-left-color:#181d27}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipTitle{width:100%;word-break:break-word;color:#fff;font-family:var(--font-inter-regular);font-size:.75rem;font-style:normal;font-weight:600;line-height:1.125rem}.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipText{width:100%;word-break:break-word;color:#ffffffe6;font-family:var(--font-inter-regular);font-size:.75rem;font-style:normal;font-weight:500;line-height:1.125rem}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent{background:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__top:before{border-top-color:#fff;left:var(--pointer-position)}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__right:before{border-right-color:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__bottom:before{border-bottom-color:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent.mc__Tooltip-module__left:before{border-left-color:#fff}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipTitle{color:#0c0e12}.mc__Tooltip-module__dark.mc__Tooltip-module__tooltipContainer .mc__Tooltip-module__tooltipContent .mc__Tooltip-module__tooltipText{color:#0c0e12e6}.mc__Popup-module__modalOverlay{width:100vw;height:100vh;display:grid;place-items:center;position:fixed;top:0;left:0;z-index:250;background:#0a0d12b3}.mc__Popup-module__modalOverlay ::-webkit-scrollbar{width:0}.mc__Popup-module__modalOverlay ::-webkit-scrollbar-track{-webkit-box-shadow:none}.mc__Popup-module__modalOverlay ::-webkit-scrollbar-thumb{background-color:none;outline:0}.mc__Popup-module__modalOverlay.mc__Popup-module__popupDrawerMode{overflow:hidden;place-items:end}.mc__Popup-module__modalOverlay.mc__Popup-module__popupDrawerMode .mc__Popup-module__popupContainer{min-height:unset;max-height:unset;min-width:17.5rem;height:100vh;animation:mc__Popup-module__EnterFromLeft .3s forwards}@keyframes mc__Popup-module__EnterFromLeft{0%{left:100%}to{left:0}}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer{padding:1.5rem;min-height:13.75rem;max-height:calc(100vh - 5.625rem);position:relative;transition:.2s;z-index:280;border-radius:.75rem;background:#fff;box-shadow:0 1.25rem 1.5rem -.25rem #0a0d1214,0 .5rem .5rem -.25rem #0a0d1208,0 .1875rem .1875rem -.0938rem #0a0d120a;animation:mc__Popup-module__fadeIn .3s forwards}@keyframes mc__Popup-module__fadeIn{0%{opacity:0}to{opacity:1}}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__closeButton{display:grid;place-items:center;cursor:pointer;position:absolute;top:1.25rem;right:1.5rem;z-index:14}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer.mc__Popup-module__withOptions{width:25rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer.mc__Popup-module__withOptions.mc__Popup-module__horizontal{width:34rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader{width:100%;position:sticky;top:0;background:#fff;z-index:1}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupTitle{margin-top:1rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupTitle h2{color:#181d27;font-size:1.125rem;font-style:normal;font-weight:600;font-family:var(--font-inter-regular);line-height:1.75rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupDescription{margin-top:.25rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupDescription p{color:#535862;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.25rem;font-family:var(--font-inter-regular)}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__typeIcon{display:flex;align-items:center;justify-content:space-between}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__typeIcon .mc__Popup-module__icon{display:grid;place-items:center;width:3rem;height:3rem;border-radius:624.9375rem}.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__templateWrapper{width:100%;position:relative}.mc__Popup-module__dark.mc__Popup-module__modalOverlay{background:#22262f75}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer{background:#0c0e12;box-shadow:0 1.25rem 1.5rem -.25rem #0a0d1214,0 .5rem .5rem -.25rem #0a0d1208,0 .1875rem .1875rem -.0938rem #0a0d120a}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader{background:#0c0e12}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupTitle h2{color:#f7f7f7}.mc__Popup-module__dark.mc__Popup-module__modalOverlay .mc__Popup-module__popupContainer .mc__Popup-module__popupHeader .mc__Popup-module__popupDescription p{color:#94979c}.mc__NotificationToast-module__toastContainer{display:flex;flex-direction:column;gap:10px;position:fixed;z-index:9999999;width:328px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast{padding:8px;border-radius:8px;width:100%}@keyframes mc__NotificationToast-module__fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes mc__NotificationToast-module__fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__fadeIn{animation:mc__NotificationToast-module__fadeIn .3s ease-out}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__fadeOut{animation:mc__NotificationToast-module__fadeOut .3s ease-in forwards}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral{background:#131314}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled{border:1px solid #222224;background:#f2f2f2}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__neutral.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#131314!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info{background:#0058ff}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled{border:1px solid #0058ff;background:#ecf3ff}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__info.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#0058ff!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error{background:#e3292f}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled{border:1px solid #f63e45;background:#fff2f2}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__error.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#e3292f!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success{background:#328707}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled{border:1px solid #399c08;background:#effce8}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextTitle,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentRightUndoText,.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast.mc__NotificationToast-module__success.mc__NotificationToast-module__filled .mc__NotificationToast-module__notificationToastContentLeftTextDescription{color:#328707!important}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent{width:100%;display:flex;align-items:center;justify-content:space-between}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft{width:100%;display:flex;align-items:center;gap:8px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentInfoIcon{display:flex;align-items:center;justify-content:center}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentLeftText{width:100%;display:flex;flex-direction:column;gap:10px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentLeftText .mc__NotificationToast-module__notificationToastContentLeftTextTitle{width:100%;overflow:hidden;color:#fff;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:14px;font-style:normal;font-weight:450;letter-spacing:.1px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentLeft .mc__NotificationToast-module__notificationToastContentLeftText .mc__NotificationToast-module__notificationToastContentLeftTextDescription{width:100%;color:#fff;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;letter-spacing:0px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight{display:flex;align-items:center;gap:10px}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight .mc__NotificationToast-module__notificationToastContentRightUndoText{overflow:hidden;color:#fff;text-align:center;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-medium);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px;cursor:pointer}.mc__NotificationToast-module__toastContainer .mc__NotificationToast-module__notificationToast .mc__NotificationToast-module__notificationToastContent .mc__NotificationToast-module__notificationToastContentRight .mc__NotificationToast-module__notificationToastContentRightClose{display:flex;align-items:center;justify-content:center;cursor:pointer;padding-left:10px;border-left:2px solid rgba(255,255,255,.25)}.mc__TimePicker-module__timepickerWrapper{user-select:none;scroll-behavior:smooth;width:100%}.mc__TimePicker-module__timepickerWrapper *{scrollbar-width:none}.mc__TimePicker-module__timepickerWrapper *::-webkit-scrollbar{display:none}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper{width:100%}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon{display:flex;align-items:center;gap:8px;margin:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon .mc__TimePicker-module__dropdownRightIconClose{display:flex;align-items:center;justify-content:center;cursor:pointer}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon .mc__TimePicker-module__dropdownRightIconArrow{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease-in-out}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerInputWrapper .mc__TimePicker-module__dropdownRightIcon.mc__TimePicker-module__focused .mc__TimePicker-module__dropdownRightIconArrow{transform:rotate(180deg)}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper{width:218px;border-radius:12px;box-shadow:0 2px 4px #1313140a;border:1px solid #e6e6e6;background:#fff;display:flex;flex-direction:column;gap:8px;z-index:150}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader{padding:8px 8px 0}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader .mc__TimePicker-module__timepickerDropdownHeaderButtons{width:100%;display:flex;justify-content:space-between;gap:2px;border-radius:8px;background:#f2f2f2;padding:2px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader p{padding:5px 20px;color:#646569;font-feature-settings:"liga" off,"clig" off;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px;cursor:pointer}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownHeader p.mc__TimePicker-module__active{color:#131314;border-radius:6px;background:#fff;box-shadow:0 2px 4px #1313140a}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody{width:100%;display:flex;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody .mc__TimePicker-module__timepickerDropdownBodyHours{width:50%;display:flex;flex-direction:column;align-items:center;height:230px;overflow-y:auto;border-right:1px solid #e6e6e6;padding:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody .mc__TimePicker-module__timepickerDropdownBodyMinutes{width:50%;display:flex;flex-direction:column;align-items:center;height:230px;overflow-y:auto;padding:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody .mc__TimePicker-module__timepickerDropdownBodyAmPm{width:50%;display:flex;flex-direction:column;align-items:center;height:230px;overflow-y:auto;border-left:1px solid #e6e6e6;padding:8px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody p{padding:6px 10px;border-radius:4px;cursor:pointer;width:100%;color:#131314;text-align:center;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody p:hover{background:#fafafa}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownBody p.mc__TimePicker-module__active{background:#ecf3ff;color:#0058ff}.mc__TimePicker-module__timepickerWrapper .mc__TimePicker-module__timepickerDropdownWrapper .mc__TimePicker-module__timepickerDropdownFooter{padding:8px}.mc__Datepicker-module__datepickerContainer{width:100%;user-select:none;scroll-behavior:smooth}.mc__Datepicker-module__datepickerContainer::-webkit-scrollbar{display:block!important;width:0}.mc__Datepicker-module__datepickerContainer::-webkit-scrollbar-thumb{opacity:0}.mc__Datepicker-module__datepickerContainer .mc__Datepicker-module__datepickerInputWrapper{width:100%;cursor:pointer}.mc__Datepicker-module__datepickerContainer .mc__Datepicker-module__datepickerInputWrapper .mc__Datepicker-module__datepickerLeftIcon{display:flex;align-items:center;justify-content:center}.mc__Datepicker-module__datepickerContainer .mc__Datepicker-module__datepickerInputWrapper .mc__Datepicker-module__datepickerRightIcon{display:flex;align-items:center;justify-content:center;cursor:pointer}.mc__Calendar-module__datePicker{z-index:500;position:absolute;left:0;top:calc(100% + 8px);display:flex;border-radius:.75rem;border:1px solid #e9eaeb;background:#fff;box-shadow:0 20px 24px -4px #0a0d1214,0 8px 8px -4px #0a0d1208,0 3px 3px -1.5px #0a0d120a;width:279px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick{padding:1rem}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__border,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__border{width:.0625rem;background-color:#e9eaeb;margin:0 8px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__calendarWrapper,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__calendarWrapper{width:100%;display:flex;flex-direction:row;justify-content:space-between}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__quickPick,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__quickPick{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:160px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__quickPick li,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__quickPick li{width:100%;padding:8px;color:#414651;font-family:var(--font-inter-regular);font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem;border-radius:.375rem}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar .mc__Calendar-module__quickPick li:hover,.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick .mc__Calendar-module__quickPick li:hover{background:#fafafa;text-decoration:unset}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendar{width:656px}.mc__Calendar-module__datePicker.mc__Calendar-module__dualCalendarWithQuick{width:848px}.mc__Calendar-module__datePicker .mc__Calendar-module__datePickerHeader{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px}.mc__Calendar-module__datePicker .mc__Calendar-module__datePickerHeader span{color:#414651;text-align:center;font-size:1rem;font-style:normal;font-weight:600;line-height:1.5rem}.mc__Calendar-module__datePicker .mc__Calendar-module__div{width:100%}.mc__Calendar-module__datePicker .mc__Calendar-module__div span{font-family:var(--font-inter-regular)}.mc__Calendar-module__datePicker .mc__Calendar-module__currentDateHeader{overflow:hidden;color:#131314;text-align:center;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px;padding:6px 16px;border-radius:6px;border:1px solid #e6e6e6;background:#fff;cursor:pointer}.mc__Calendar-module__datePicker .mc__Calendar-module__left,.mc__Calendar-module__datePicker .mc__Calendar-module__right{display:flex;justify-content:center;align-items:center;cursor:pointer}.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__singleIcon,.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__doubleIcon,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__singleIcon,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__doubleIcon{display:flex;justify-content:center;align-items:center}.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__singleIcon:hover,.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__doubleIcon:hover,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__singleIcon:hover,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__doubleIcon:hover{opacity:.6}.mc__Calendar-module__datePicker .mc__Calendar-module__left .mc__Calendar-module__doubleIcon svg:first-of-type,.mc__Calendar-module__datePicker .mc__Calendar-module__right .mc__Calendar-module__doubleIcon svg:first-of-type{margin-right:-15px}.mc__Calendar-module__datePicker .mc__Calendar-module__left span,.mc__Calendar-module__datePicker .mc__Calendar-module__right span{position:relative}.mc__Calendar-module__datePicker .mc__Calendar-module__left span:after,.mc__Calendar-module__datePicker .mc__Calendar-module__right span:after{position:absolute;top:4px;inset-inline-start:4px;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-block-start-width:1.5px;border-block-end-width:0;border-inline-start-width:1.5px;border-inline-end-width:0;color:#a4a7ae;content:""}.mc__Calendar-module__datePicker .mc__Calendar-module__left span:before,.mc__Calendar-module__datePicker .mc__Calendar-module__right span:before{position:absolute;top:0;inset-inline-start:0;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-block-start-width:1.5px;border-block-end-width:0;border-inline-start-width:1.5px;border-inline-end-width:0;color:#a4a7ae;content:""}.mc__Calendar-module__datePicker .mc__Calendar-module__calendarWrapper{padding:0 8px;width:100%;display:flex;flex-direction:column;justify-content:space-between}.mc__Calendar-module__datePicker table{border-collapse:collapse;border-spacing:0 0}.mc__Calendar-module__datePicker table thead{border-bottom:2px solid #e6e6e6}.mc__Calendar-module__datePicker table thead tr th{color:#7a7b80}.mc__Calendar-module__datePicker table tbody{margin-top:12px}.mc__Calendar-module__datePicker table .mc__Calendar-module__spacerRow td{height:4px;border:none;padding:0}.mc__Calendar-module__datePicker table th,.mc__Calendar-module__datePicker table td:not(.mc__Calendar-module__spacerRow td){text-align:center;color:#131314;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px;width:36px;height:36px;padding:6px;border-radius:6px;background:#fff}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day{cursor:pointer;border-radius:6px;font-size:.875rem;line-height:1.25rem;box-sizing:border-box!important}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day:hover{background:#fafafa}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__today{position:relative}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__today:before{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);background-color:#0158ff;width:5px;height:5px;border-radius:50%;z-index:1}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__inRange{background:#f2f2f2}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__selected,.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__startDate,.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__endDate{background-color:#0158ff;color:#fff;position:relative}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__disabled{color:#a4a7ae;pointer-events:none;opacity:.4}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__endDate:before{background-color:#fafafa;width:20px;height:40px;position:absolute;top:0;inset-inline-start:0;inset-inline-end:0;z-index:-1;content:""}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__startDate:before{background-color:#fafafa;width:20px;height:40px;position:absolute;top:0;right:0;z-index:-1;content:""}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__endDate.mc__Calendar-module__startDate:before{content:none}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__otherMonth{color:#95969c;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:450;line-height:24px;letter-spacing:.1px}.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__otherMonth.mc__Calendar-module__startDate,.mc__Calendar-module__datePicker table td.mc__Calendar-module__day.mc__Calendar-module__otherMonth.mc__Calendar-module__endDate{color:#fff}.mc__Calendar-module__datePicker ul.mc__Calendar-module__monthsWrapper{width:100%;display:flex;flex-direction:column;gap:2px;height:257px;overflow:auto}.mc__Calendar-module__datePicker ul.mc__Calendar-module__monthsWrapper li.mc__Calendar-module__month{width:100%;border-radius:4px;background:#fff;padding:6px 10px;cursor:pointer;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-style:normal;font-weight:400;line-height:24px;letter-spacing:.1px}.mc__Calendar-module__datePicker ul.mc__Calendar-module__monthsWrapper li.mc__Calendar-module__month.mc__Calendar-module__pickedMonth{background:#ecf3ff;color:#0158ff}.mc__Calendar-module__datePicker .mc__Calendar-module__buttonWrapper{margin-top:8px;padding:8px;border-top:1px solid #e6e6e6}.mc__Skeleton-module__skeleton{background-color:#e0e0e0;border-radius:4px;position:relative;overflow:hidden;display:grid;place-items:center}.mc__Skeleton-module__skeleton:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff0,#ffffff80,#fff0);animation:mc__Skeleton-module__shimmer 1.5s infinite}.mc__Skeleton-module__text{height:1rem;width:100%;margin:8px 0}.mc__Skeleton-module__avatar{height:40px;width:40px;border-radius:50%}@keyframes mc__Skeleton-module__shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.mc__Skeleton-module__dark.mc__Skeleton-module__skeleton{background-color:#5a5a5a}.mc__Skeleton-module__dark.mc__Skeleton-module__skeleton:after{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.2) 50%,transparent 100%)}.mc__ActionDropdown-module__actionDropdownContainer{width:100%}.mc__ActionDropdown-module__actionDropdownContainer.mc__ActionDropdown-module__collapsed .mc__ActionDropdown-module__actionDropdownIcon{transform:rotate(180deg)}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownContent{width:100%;border-radius:6px;background:#f2f2f2;display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownContent .mc__ActionDropdown-module__actionDropdownTitle{width:90%;white-space:nowrap;overflow:hidden;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.1px;border-right:1px solid #ffffff;padding:8px 16px}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownContent .mc__ActionDropdown-module__actionDropdownIcon{display:flex;align-items:center;justify-content:center;padding:8px;width:40px;height:40px;transition:transform .2s ease-in-out}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList{width:100%;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 2px 4px #1313140a;height:250px;overflow:auto;padding:8px;z-index:150}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList .mc__ActionDropdown-module__actionDropdownItem{width:100%;border-radius:4px;background:#fff;padding:6px 10px;overflow:hidden;color:#131314;font-feature-settings:"liga" off,"clig" off;text-overflow:ellipsis;font-family:var(--font-inter-regular);font-size:14px;font-weight:400;line-height:24px;letter-spacing:.1px;cursor:pointer}.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList .mc__ActionDropdown-module__actionDropdownItem:hover,.mc__ActionDropdown-module__actionDropdownContainer .mc__ActionDropdown-module__actionDropdownList .mc__ActionDropdown-module__actionDropdownItem.mc__ActionDropdown-module__selected{border-radius:4px;background:#f2f2f2}.mc__InlineLoading-module__inlineLoadingWrapper{width:100%}.mc__InlineLoading-module__inlineLoadingWrapper div{display:flex;gap:.5rem}.mc__InlineLoading-module__inlineLoadingWrapper div.mc__InlineLoading-module__loading svg{animation:mc__InlineLoading-module__anim 1s infinite linear}@keyframes mc__InlineLoading-module__anim{to{transform:rotate(1turn)}}.mc__InlineLoading-module__inlineLoadingWrapper div span{color:#181d27;font-family:var(--font-inter-regular);font-size:var(--Font-size-text-md, 16px);font-style:normal;font-weight:400;line-height:1.125rem;font-size:.75rem}.mc__InlineLoading-module__dark.mc__InlineLoading-module__inlineLoadingWrapper span{color:#f7f7f7}.mc__Slider-module__sliderContainer{width:100%;display:flex;flex-direction:column;align-items:center}.mc__Slider-module__slider{position:relative;width:100%;height:4px;border-radius:50%;background:#e6e6e6;cursor:pointer}.mc__Slider-module__sliderProgress{position:absolute;height:4px;border-radius:624.9375rem;background:#0058ff}.mc__Slider-module__thumb{position:absolute;top:50%;width:20px;height:20px;cursor:grab;border-radius:999px;border:3px solid #fff;background:#0058ff;box-shadow:0 2px 4px #1313141f;padding:10px;transform:translate(-50%,-50%);z-index:2}.mc__Slider-module__thumb:active{cursor:grabbing}.mc__Slider-module__thumbLeft{z-index:3}.mc__Slider-module__thumbRight{z-index:4}.mc__Slider-module__thumbSingle{z-index:2}.mc__Slider-module__tooltip{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:4px 8px;border-radius:6px;background:#131314;box-shadow:0 2px 4px #1313140a,0 8px 16px #1313141a;color:#fff;font-size:13px;font-family:var(--font-inter-regular);font-style:normal;font-weight:450;line-height:20px;letter-spacing:0;z-index:1000;opacity:1;transition:opacity .2s ease-in-out,transform .2s ease-in-out;min-width:max-content;--arrow-position: 50%}.mc__Slider-module__tooltip:after{content:"";position:absolute;top:100%;left:var(--arrow-position);transform:translate(-50%);border:4px solid transparent;border-top-color:#181d27;transition:left .2s ease-in-out}.mc__Slider-module__values{margin-top:24px;display:flex;padding:.5rem .75rem;border-radius:.5rem;border:1px solid #e9eaeb;background:#fff}.mc__Slider-module__values span{color:#181d27;font-family:var(--font-inter-regular);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.mc__Slider-module__values.mc__Slider-module__top{position:absolute;bottom:calc(100% + .375rem);right:50%;transform:translate(50%)}.mc__Slider-module__values.mc__Slider-module__top span{color:#414651;font-family:Inter,sans-serif;font-size:.75rem;font-style:normal;font-weight:600;line-height:1.125rem}.mc__Slider-module__values.mc__Slider-module__bottom{position:absolute;top:20%;right:50%;transform:translate(50%)}.mc__Slider-module__values.mc__Slider-module__bottom span{color:#414651;font-family:Inter,sans-serif;font-size:.75rem;font-style:normal;font-weight:600;line-height:1.125rem}.mc__FilterWithTags-module__filterWithTagsContainer{width:100%;display:flex;align-items:center}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsButton{display:flex;align-items:center;justify-content:center;width:40px;height:40px;cursor:pointer}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupTitle{color:#181d27;font-family:var(--font-inter-semibold);font-size:20px;font-style:normal;font-weight:600;line-height:30px}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupContent{width:100%}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupContent.mc__FilterWithTags-module__filterWithTagsPopupContentDrawer{height:calc(100vh - 106px)}.mc__FilterWithTags-module__filterWithTagsContainer .mc__FilterWithTags-module__filterWithTagsPopupFooter{display:flex;align-items:center;justify-content:space-between;width:100%}.mc__FilterContent-module__filterContent{width:100%;display:flex;flex-direction:column;gap:16px;padding:16px 0}.mc__FilterContent-module__filterContent .mc__FilterContent-module__filterContentOptionHeader .mc__FilterContent-module__filterContentOptionTitle{color:#181d27;font-family:var(--font-inter-semibold);font-size:16px;font-style:normal;font-weight:600;line-height:24px}.mc__FilterContent-module__filterContent .mc__FilterContent-module__filterContentOption:not(.mc__FilterContent-module__filterContentOptionLast){padding-bottom:16px;border-bottom:1px solid #e9eaeb}.mc__Table-module__tableContainer *{font-family:var(--font-inter-regular)}.mc__Table-module__tableContainer *::-webkit-scrollbar{width:4px}.mc__Table-module__tableContainer *::-webkit-scrollbar-track{border-radius:1px;background-color:#f2f2f2}.mc__Table-module__tableContainer *::-webkit-scrollbar-thumb{border-radius:8px;background-color:#13131440}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper{width:100%;overflow-x:auto;background-color:#fff;border:1px solid #e6e6e6;border-bottom:none;border-right:none}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper::-webkit-scrollbar{height:4px}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper::-webkit-scrollbar-track{border-radius:1px;background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper::-webkit-scrollbar-thumb{border-radius:8px;background-color:#13131440}.mc__Table-module__tableContainer .mc__Table-module__tableWrapper.mc__Table-module__resizing{user-select:none;cursor:col-resize}.mc__Table-module__tableContainer .mc__Table-module__table{width:100%;border-collapse:collapse;font-size:14px;font-weight:400;min-width:600px;color:#131314;background-color:#fff;table-layout:fixed}.mc__Table-module__tableContainer th,.mc__Table-module__tableContainer td{padding:12px 16px;border-bottom:1px solid #eaeaea;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #e6e6e6}.mc__Table-module__tableContainer th{background-color:#fdfdfd;font-weight:550;font-size:14px;line-height:20px;color:#131314;letter-spacing:.1px;user-select:none;position:relative}.mc__Table-module__tableContainer .mc__Table-module__headerContent{display:flex;align-items:center;width:100%;overflow:hidden;text-overflow:ellipsis;gap:4px;font-family:var(--font-inter-semibold)}.mc__Table-module__tableContainer .mc__Table-module__resizeHandle{position:absolute;right:0;top:0;bottom:0;width:5px;background-color:transparent;cursor:col-resize;transition:background-color .2s ease;z-index:10}.mc__Table-module__tableContainer tr:hover td{background-color:#fcfcfc}.mc__Table-module__tableContainer .mc__Table-module__clickable:hover{cursor:pointer}.mc__Table-module__tableContainer .mc__Table-module__empty{text-align:center;color:#999;font-style:italic;padding:40px 0;font-size:15px;background-color:#fefefe}.mc__Table-module__tableContainer .mc__Table-module__checkboxHeader{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;overflow:hidden;white-space:normal!important;text-overflow:clip!important}.mc__Table-module__tableContainer .mc__Table-module__checkboxCell{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;overflow:visible!important;white-space:normal!important;text-overflow:clip!important}.mc__Table-module__tableContainer .mc__Table-module__checkbox{width:16px;height:16px;cursor:pointer;accent-color:#0058ff;appearance:none;-webkit-appearance:none;-moz-appearance:none;border:2px solid #c1c2c7;border-radius:3px;background-color:#fff;position:relative}.mc__Table-module__tableContainer .mc__Table-module__checkbox:checked{background-color:#0058ff;border-color:#0058ff}.mc__Table-module__tableContainer .mc__Table-module__checkbox:checked:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:8px;height:6px;background-color:#fff;mask:url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.7 0.3C7.3 -0.1 6.7 -0.1 6.3 0.3L3 3.6L1.7 2.3C1.3 1.9 0.7 1.9 0.3 2.3C-0.1 2.7 -0.1 3.3 0.3 3.7L2.3 5.7C2.5 5.9 2.7 6 3 6C3.3 6 3.5 5.9 3.7 5.7L7.7 1.7C8.1 1.3 8.1 0.7 7.7 0.3Z' fill='white'/%3E%3C/svg%3E") no-repeat center;mask-size:contain;-webkit-mask:url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.7 0.3C7.3 -0.1 6.7 -0.1 6.3 0.3L3 3.6L1.7 2.3C1.3 1.9 0.7 1.9 0.3 2.3C-0.1 2.7 -0.1 3.3 0.3 3.7L2.3 5.7C2.5 5.9 2.7 6 3 6C3.3 6 3.5 5.9 3.7 5.7L7.7 1.7C8.1 1.3 8.1 0.7 7.7 0.3Z' fill='white'/%3E%3C/svg%3E") no-repeat center;-webkit-mask-size:contain}.mc__Table-module__tableContainer .mc__Table-module__checkbox:hover{border-color:#0058ff}.mc__Table-module__tableContainer .mc__Table-module__checkbox:focus{outline:2px solid rgba(0,88,255,.25);outline-offset:1px}.mc__Table-module__tableContainer .mc__Table-module__tableHeader{color:#131314;font-size:14px;line-height:24px;font-weight:550;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;min-height:24px;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.mc__Table-module__tableContainer .mc__Table-module__tableHeader.mc__Table-module__visible{opacity:1;visibility:visible}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderLeftContent{display:flex;align-items:center;gap:8px}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderLeftContent .mc__Table-module__actionButton{display:flex;align-items:center;gap:8px;background-color:#f2f2f2;padding:6px 12px;border-radius:6px;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.1px}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderLeftContent .mc__Table-module__actionButton:hover{cursor:pointer;background-color:#e6e6e6}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderRightContent{display:flex;align-items:center}.mc__Table-module__tableContainer .mc__Table-module__tableHeader .mc__Table-module__tableHeaderSeparator{width:2px;height:20px;background-color:#d4d5d6;border-radius:2px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination{display:flex;align-items:center;gap:16px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton{background-color:transparent;border:none;border-radius:6px;padding:8px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;color:#131314;cursor:pointer;transition:all .2s ease}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:hover:not(:disabled){background-color:#f8f9fa;color:#0058ff}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:disabled{border-color:#e5e7eb;color:#9ca3af;cursor:not-allowed}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:disabled svg path{fill:#c1c2c7}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationButton:focus{outline:2px solid rgba(0,88,255,.25);outline-offset:1px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__pagination .mc__Table-module__paginationInfo{font-size:14px;color:#6b7280;font-weight:500;font-family:var(--font-inter-regular)}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight{display:flex;align-items:center;gap:8px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight .mc__Table-module__paginationInfo,.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight .mc__Table-module__paginationSelectLabel{color:#73757a;font-size:14px;font-style:normal;font-weight:400;line-height:36px;letter-spacing:.14px}.mc__Table-module__tableContainer .mc__Table-module__paginationFooter .mc__Table-module__paginationRight .mc__Table-module__divider{font-weight:500;width:2px;height:16px;background-color:#ccc;border-radius:2px}.mc__Table-module__tableContainer .mc__Table-module__actionsHeader{width:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;padding:0!important;overflow:hidden;white-space:normal!important;text-overflow:clip!important;justify-content:center}.mc__Table-module__tableContainer .mc__Table-module__actionsCell{width:48px!important;min-width:48px!important;max-width:48px!important;text-align:center;padding:0!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;position:relative}.mc__Table-module__tableContainer .mc__Table-module__actionsContainer{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.mc__Table-module__tableContainer .mc__Table-module__actionsTrigger{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px;cursor:pointer;transition:background-color .2s ease}.mc__Table-module__tableContainer .mc__Table-module__actionsTrigger:hover{background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__actionsMenu{position:absolute;top:100%;right:0;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:120px;overflow:hidden;margin-top:4px}.mc__Table-module__tableContainer .mc__Table-module__actionsMenu.mc__Table-module__actionsMenuFixed{position:fixed;margin-top:0;top:auto;right:auto}.mc__Table-module__tableContainer .mc__Table-module__actionItem{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:14px;color:#131314;cursor:pointer;transition:background-color .2s ease;white-space:nowrap}.mc__Table-module__tableContainer .mc__Table-module__actionItem:hover{background-color:#f6f8ff}.mc__Table-module__tableContainer .mc__Table-module__actionItem:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mc__Table-module__tableContainer .mc__Table-module__actionItem:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mc__Table-module__tableContainer .mc__Table-module__actionItem svg{flex-shrink:0}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageDropdown{position:relative;display:inline-block}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageList{position:absolute;left:0;background-color:#fff;border:1px solid #e6e6e6;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:100%;margin:0;list-style:none;display:flex;flex-direction:column;gap:2px}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageList.mc__Table-module__openDownward{top:calc(100% + 4px)}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageList.mc__Table-module__openUpward{bottom:calc(100% + 4px)}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption{padding:8px 12px;font-size:14px;color:#131314;cursor:pointer;transition:background-color .2s ease;white-space:nowrap}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption:hover{background:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption.mc__Table-module__selected{background:#ecf3ff}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.mc__Table-module__tableContainer .mc__Table-module__rowsPerPageOption:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.mc__Table-module__tableContainer .mc__Table-module__gridHeader{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration{display:flex;align-items:center;gap:8px;position:relative}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration .mc__Table-module__columnConfigurationIcon{padding:8px;width:32px;height:32px;border-radius:8px;background-color:#fafafa;transition:background-color .2s ease;display:flex;align-items:center;justify-content:center}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration .mc__Table-module__columnConfigurationIcon:hover{cursor:pointer;background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown{position:absolute;right:calc(100% - 8px);top:40px;width:200px;max-height:320px;overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;align-self:stretch;z-index:1500;padding:8px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;box-shadow:0 2px 4px #1313140a}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li{width:100%;border-radius:4px;background:#fff;display:flex;padding:6px 16px 6px 6px;align-items:center;gap:8px;transition:all .2s ease}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li:hover{cursor:pointer;background-color:#f2f2f2}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li.mc__Table-module__dragging{opacity:.5;transform:rotate(2deg);background-color:#e3f2fd;border:1px dashed #2196f3}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li.mc__Table-module__dragOver{background-color:#f2f2f2;border-top:2px solid #0058ff}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li .mc__Table-module__columnConfigurationItemIcon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;cursor:grab;padding:4px}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li .mc__Table-module__columnConfigurationItemIcon:active{cursor:grabbing}.mc__Table-module__tableContainer .mc__Table-module__gridHeader .mc__Table-module__columnConfiguration ul.mc__Table-module__columnConfigurationDropdown li p{font-size:14px;font-weight:400;line-height:20px;letter-spacing:.1px;color:#131314}:root{--font-inter-regular: "Inter", system-ui, sans-serif;--font-inter-medium: "Inter", system-ui, sans-serif;--font-inter-semibold: "Inter", system-ui, sans-serif}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsx as e, jsxs as s, Fragment as Dt } from "react/jsx-runtime";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as F, useRef as le, useEffect as G, useContext as vt, createContext as bt, useCallback as Qe } from "react";
|
|
4
4
|
import M from "dayjs";
|
|
5
5
|
const Ee = 50 / 2, St = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round", duration: r = 1, stroke: a = "#2753dd", ...m }) => {
|
|
6
6
|
const l = Ee;
|
|
@@ -61,9 +61,9 @@ const Ee = 50 / 2, St = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round
|
|
|
61
61
|
d: l = "M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",
|
|
62
62
|
stroke: i = "#A4A7AE",
|
|
63
63
|
strokeWidth: v = "1.66667",
|
|
64
|
-
strokeLinecap:
|
|
64
|
+
strokeLinecap: E = "round",
|
|
65
65
|
strokeLinejoin: g = "round"
|
|
66
|
-
}) => /* @__PURE__ */ e("svg", { xmlns: r, width: t, height: n, viewBox: a, fill: m, children: /* @__PURE__ */ e("path", { d: l, stroke: i, strokeWidth: v, strokeLinecap:
|
|
66
|
+
}) => /* @__PURE__ */ e("svg", { xmlns: r, width: t, height: n, viewBox: a, fill: m, children: /* @__PURE__ */ e("path", { d: l, stroke: i, strokeWidth: v, strokeLinecap: E, strokeLinejoin: g }) }), kt = ({ 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",
|
|
@@ -254,41 +254,41 @@ const Ee = 50 / 2, St = ({ size: t = 24, strokeWidth: n = 5, linecap: o = "round
|
|
|
254
254
|
colorType: l = "neutral",
|
|
255
255
|
buttonType: i = "primary",
|
|
256
256
|
withFocus: v = !1,
|
|
257
|
-
onlyIcon:
|
|
257
|
+
onlyIcon: E = !1,
|
|
258
258
|
customFocus: g,
|
|
259
|
-
disabled:
|
|
259
|
+
disabled: I,
|
|
260
260
|
loading: b = !1,
|
|
261
|
-
spaceBetween:
|
|
262
|
-
buttonStyle:
|
|
261
|
+
spaceBetween: S = !1,
|
|
262
|
+
buttonStyle: P,
|
|
263
263
|
mainButtonContentStyle: h,
|
|
264
264
|
mainButtonLabelStyle: c,
|
|
265
265
|
leftSlotStyle: _,
|
|
266
266
|
rightSlotStyle: w,
|
|
267
267
|
onClick: y
|
|
268
268
|
}) => {
|
|
269
|
-
const [q,
|
|
270
|
-
|
|
269
|
+
const [q, Y] = F(g || !1), O = le(null), ee = (B) => {
|
|
270
|
+
I || b || (v && Y((Q) => !Q), y?.(B));
|
|
271
271
|
}, te = () => {
|
|
272
|
-
let
|
|
273
|
-
return l === "neutral" && i !== "primary" && (
|
|
272
|
+
let B = "#ffffff";
|
|
273
|
+
return l === "neutral" && i !== "primary" && (B = "#0058FF"), l === "positive" && i !== "primary" && (B = "#328707"), l === "negative" && i !== "primary" && (B = "#E3292F"), B;
|
|
274
274
|
};
|
|
275
275
|
return G(() => {
|
|
276
|
-
const
|
|
277
|
-
!
|
|
276
|
+
const B = (Q) => {
|
|
277
|
+
!O.current || I || Q.composedPath().includes(O.current) || Y(!1);
|
|
278
278
|
};
|
|
279
|
-
return document.addEventListener("click",
|
|
280
|
-
document.removeEventListener("click",
|
|
279
|
+
return document.addEventListener("click", B), () => {
|
|
280
|
+
document.removeEventListener("click", B);
|
|
281
281
|
};
|
|
282
282
|
}, []), /* @__PURE__ */ e(
|
|
283
283
|
"button",
|
|
284
284
|
{
|
|
285
|
-
ref:
|
|
286
|
-
style: { ...
|
|
285
|
+
ref: O,
|
|
286
|
+
style: { ...P, ...E && { minWidth: "initial" } },
|
|
287
287
|
type: m,
|
|
288
|
-
disabled:
|
|
289
|
-
className: `${Te.mainButton} ${Te[n]} ${b ? Te.loading : ""} ${q ? Te.focused : ""} ${Te[i]} ${Te[l]} ${
|
|
288
|
+
disabled: I,
|
|
289
|
+
className: `${Te.mainButton} ${Te[n]} ${b ? Te.loading : ""} ${q ? Te.focused : ""} ${Te[i]} ${Te[l]} ${I ? Te.disabled : ""}`,
|
|
290
290
|
onClick: ee,
|
|
291
|
-
children: b ? /* @__PURE__ */ e(St, { size: 20, stroke: te() }) : a || /* @__PURE__ */ s("div", { className: Te.mainButtonContent, style: { ...h, justifyContent:
|
|
291
|
+
children: b ? /* @__PURE__ */ e(St, { size: 20, stroke: te() }) : a || /* @__PURE__ */ s("div", { className: Te.mainButtonContent, style: { ...h, justifyContent: S ? "space-between" : "center" }, children: [
|
|
292
292
|
o && /* @__PURE__ */ e("div", { className: Te.leftSlot, style: _, children: o }),
|
|
293
293
|
/* @__PURE__ */ e("p", { className: Te.mainButtonLabel, style: c, children: t }),
|
|
294
294
|
r && /* @__PURE__ */ e("div", { className: Te.rightSlot, style: w, children: r })
|
|
@@ -320,7 +320,7 @@ Ne.propKeys = [
|
|
|
320
320
|
];
|
|
321
321
|
Ne.displayName = "Button";
|
|
322
322
|
Ne.description = "A versatile button component with loading states, multiple styles, and customizable slots.";
|
|
323
|
-
const mn = "mc__FormInput-module__inputWrapper", pn = "mc__FormInput-module__sm", hn = "mc__FormInput-module__formInputWrapper", fn = "mc__FormInput-module__md", _n = "mc__FormInput-module__disabled", Cn = "mc__FormInput-module__formInputLabel", gn = "mc__FormInput-module__formInput", wn = "mc__FormInput-module__formInputHelperText", yn = "mc__FormInput-module__formInputLabelWrapper", vn = "mc__FormInput-module__formInputRequired", bn = "mc__FormInput-module__formInputHelperSlot", kn = "mc__FormInput-module__errorState", Ln = "mc__FormInput-module__focused", Tn = "mc__FormInput-module__active",
|
|
323
|
+
const mn = "mc__FormInput-module__inputWrapper", pn = "mc__FormInput-module__sm", hn = "mc__FormInput-module__formInputWrapper", fn = "mc__FormInput-module__md", _n = "mc__FormInput-module__disabled", Cn = "mc__FormInput-module__formInputLabel", gn = "mc__FormInput-module__formInput", wn = "mc__FormInput-module__formInputHelperText", yn = "mc__FormInput-module__formInputLabelWrapper", vn = "mc__FormInput-module__formInputRequired", bn = "mc__FormInput-module__formInputHelperSlot", kn = "mc__FormInput-module__errorState", Ln = "mc__FormInput-module__focused", Tn = "mc__FormInput-module__active", xn = "mc__FormInput-module__errorFocused", In = "mc__FormInput-module__errorActive", Nn = "mc__FormInput-module__formInputSlot", $n = "mc__FormInput-module__errorHelperText", Mn = "mc__FormInput-module__successHelperText", me = {
|
|
324
324
|
inputWrapper: mn,
|
|
325
325
|
sm: pn,
|
|
326
326
|
formInputWrapper: hn,
|
|
@@ -335,8 +335,8 @@ const mn = "mc__FormInput-module__inputWrapper", pn = "mc__FormInput-module__sm"
|
|
|
335
335
|
errorState: kn,
|
|
336
336
|
focused: Ln,
|
|
337
337
|
active: Tn,
|
|
338
|
-
errorFocused:
|
|
339
|
-
errorActive:
|
|
338
|
+
errorFocused: xn,
|
|
339
|
+
errorActive: In,
|
|
340
340
|
formInputSlot: Nn,
|
|
341
341
|
errorHelperText: $n,
|
|
342
342
|
successHelperText: Mn
|
|
@@ -350,72 +350,72 @@ const mn = "mc__FormInput-module__inputWrapper", pn = "mc__FormInput-module__sm"
|
|
|
350
350
|
withFocus: l = !0,
|
|
351
351
|
withActive: i = !0,
|
|
352
352
|
searchComponent: v = !1,
|
|
353
|
-
size:
|
|
353
|
+
size: E = "md",
|
|
354
354
|
toggleFocus: g = !1,
|
|
355
|
-
rightSlot:
|
|
355
|
+
rightSlot: I,
|
|
356
356
|
leftSlot: b,
|
|
357
|
-
helperSlot:
|
|
358
|
-
type:
|
|
357
|
+
helperSlot: S,
|
|
358
|
+
type: P = "text",
|
|
359
359
|
value: h,
|
|
360
360
|
maxLength: c,
|
|
361
361
|
forDropdown: _ = !1,
|
|
362
362
|
customFocus: w = null,
|
|
363
363
|
focus: y = !1,
|
|
364
364
|
inputState: q = { error: !1, success: !1, loading: !1 },
|
|
365
|
-
inputSlot:
|
|
366
|
-
onChange:
|
|
365
|
+
inputSlot: Y,
|
|
366
|
+
onChange: O,
|
|
367
367
|
onFocus: ee,
|
|
368
368
|
onBlur: te,
|
|
369
|
-
onEnter:
|
|
369
|
+
onEnter: B,
|
|
370
370
|
onFocusChange: Q,
|
|
371
|
-
formInputWrapperStyle:
|
|
372
|
-
inputWrapperStyle:
|
|
371
|
+
formInputWrapperStyle: z,
|
|
372
|
+
inputWrapperStyle: V,
|
|
373
373
|
formInputStyle: j,
|
|
374
|
-
helperTextStyle:
|
|
374
|
+
helperTextStyle: Z,
|
|
375
375
|
labelStyle: N,
|
|
376
376
|
inputSlotStyle: k
|
|
377
377
|
}) => {
|
|
378
|
-
const d = le(null), [C, L] =
|
|
379
|
-
v && L(oe.target.value),
|
|
378
|
+
const d = le(null), [C, L] = F(h ?? ""), [$, W] = F(!1), [ue, re] = F(!1), Ce = (oe) => {
|
|
379
|
+
v && L(oe.target.value), O?.(oe.target.value);
|
|
380
380
|
}, J = () => {
|
|
381
|
-
ee?.(), !_ &&
|
|
381
|
+
ee?.(), !_ && W(!0);
|
|
382
382
|
}, K = () => {
|
|
383
|
-
|
|
383
|
+
W(g ? w ?? !1 : !1), te?.();
|
|
384
384
|
}, ae = (oe) => {
|
|
385
|
-
const
|
|
386
|
-
|
|
385
|
+
const x = oe.currentTarget.value, p = x.length === 0;
|
|
386
|
+
P === "number" && (oe.keyCode === 69 || !p && (oe.keyCode === 187 || oe.keyCode === 107 || oe.keyCode === 189 || oe.keyCode === 109)) && oe.preventDefault(), oe.key === "Enter" && x && x.length > 0 && B?.();
|
|
387
387
|
}, ie = (oe) => oe, pe = () => {
|
|
388
|
-
v && (L(""),
|
|
388
|
+
v && (L(""), O?.(""));
|
|
389
389
|
};
|
|
390
390
|
return G(() => {
|
|
391
391
|
Q?.($);
|
|
392
392
|
}, [$]), G(() => {
|
|
393
|
-
w != null &&
|
|
394
|
-
}, [w]), /* @__PURE__ */ s("div", { className: `${me.inputWrapper} ${a ? me.disabled : ""} ${me[
|
|
393
|
+
w != null && W(w);
|
|
394
|
+
}, [w]), /* @__PURE__ */ s("div", { className: `${me.inputWrapper} ${a ? me.disabled : ""} ${me[E]}`, style: V ?? {}, children: [
|
|
395
395
|
t && /* @__PURE__ */ s("div", { className: me.formInputLabelWrapper, children: [
|
|
396
396
|
/* @__PURE__ */ s("label", { style: N ?? {}, className: me.formInputLabel, children: [
|
|
397
397
|
t,
|
|
398
398
|
" ",
|
|
399
399
|
typeof t == "string" && r && /* @__PURE__ */ e("span", { className: me.formInputRequired, children: "*" })
|
|
400
400
|
] }),
|
|
401
|
-
|
|
401
|
+
S && /* @__PURE__ */ e("div", { className: me.formInputHelperSlot, children: ie(S) })
|
|
402
402
|
] }),
|
|
403
403
|
/* @__PURE__ */ s(
|
|
404
404
|
"div",
|
|
405
405
|
{
|
|
406
|
-
className: `${me.formInputWrapper} ${q.error ? me.errorState : ""} ${l && $ ? q.error ? me.errorFocused : me.focused : ""} ${i &&
|
|
407
|
-
style:
|
|
408
|
-
onClick: () => g &&
|
|
406
|
+
className: `${me.formInputWrapper} ${q.error ? me.errorState : ""} ${l && $ ? q.error ? me.errorFocused : me.focused : ""} ${i && ue ? q.error ? me.errorActive : me.active : ""} ${q.error ? me.error : ""} ${q.success ? me.success : ""}`,
|
|
407
|
+
style: z ?? {},
|
|
408
|
+
onClick: () => g && W((oe) => !oe),
|
|
409
409
|
children: [
|
|
410
410
|
b && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: ie(b) }),
|
|
411
411
|
v && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: ie(/* @__PURE__ */ e(Pt, {})) }),
|
|
412
|
-
|
|
412
|
+
Y ? /* @__PURE__ */ e("div", { className: me.formInputSlot, style: k ?? {}, children: ie(Y) }) : /* @__PURE__ */ e(
|
|
413
413
|
"input",
|
|
414
414
|
{
|
|
415
415
|
className: me.formInput,
|
|
416
416
|
ref: d,
|
|
417
417
|
style: j ?? {},
|
|
418
|
-
type:
|
|
418
|
+
type: P ?? "text",
|
|
419
419
|
value: v ? C : h,
|
|
420
420
|
onChange: (oe) => Ce(oe),
|
|
421
421
|
onMouseDown: () => !_ && re(!0),
|
|
@@ -433,7 +433,7 @@ const mn = "mc__FormInput-module__inputWrapper", pn = "mc__FormInput-module__sm"
|
|
|
433
433
|
maxLength: c
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
|
-
|
|
436
|
+
I && /* @__PURE__ */ e("div", { style: v ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: ie(I) }),
|
|
437
437
|
v && /* @__PURE__ */ e("div", { className: me.formInputSlot, children: /* @__PURE__ */ e("div", { onClick: pe, style: v ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: C?.length > 0 ? ie(/* @__PURE__ */ e(Je, {})) : null }) })
|
|
438
438
|
]
|
|
439
439
|
}
|
|
@@ -441,7 +441,7 @@ const mn = "mc__FormInput-module__inputWrapper", pn = "mc__FormInput-module__sm"
|
|
|
441
441
|
o && /* @__PURE__ */ e(
|
|
442
442
|
"p",
|
|
443
443
|
{
|
|
444
|
-
style:
|
|
444
|
+
style: Z ?? {},
|
|
445
445
|
className: `${me.formInputHelperText} ${q.error ? me.errorHelperText : q.success ? me.successHelperText : ""}`,
|
|
446
446
|
children: o
|
|
447
447
|
}
|
|
@@ -485,7 +485,7 @@ Fe.propKeys = [
|
|
|
485
485
|
];
|
|
486
486
|
Fe.displayName = "Input";
|
|
487
487
|
Fe.description = "A flexible input component with search functionality, validation states, and custom slots.";
|
|
488
|
-
const Dn = "mc__Textarea-module__textareaContainer", Sn = "mc__Textarea-module__textAreaLabel", Pn = "mc__Textarea-module__required", Hn = "mc__Textarea-module__wrap", An = "mc__Textarea-module__resize", Rn = "mc__Textarea-module__textareaIconClose", Bn = "mc__Textarea-module__textarea", Wn = "mc__Textarea-module__focused", Fn = "mc__Textarea-module__active", En = "mc__Textarea-module__errorFocused", On = "mc__Textarea-module__errorActive", Vn = "mc__Textarea-module__textareaFooter",
|
|
488
|
+
const Dn = "mc__Textarea-module__textareaContainer", Sn = "mc__Textarea-module__textAreaLabel", Pn = "mc__Textarea-module__required", Hn = "mc__Textarea-module__wrap", An = "mc__Textarea-module__resize", Rn = "mc__Textarea-module__textareaIconClose", Bn = "mc__Textarea-module__textarea", Wn = "mc__Textarea-module__focused", Fn = "mc__Textarea-module__active", En = "mc__Textarea-module__errorFocused", On = "mc__Textarea-module__errorActive", Vn = "mc__Textarea-module__textareaFooter", ye = {
|
|
489
489
|
textareaContainer: Dn,
|
|
490
490
|
textAreaLabel: Sn,
|
|
491
491
|
required: Pn,
|
|
@@ -508,12 +508,12 @@ const Dn = "mc__Textarea-module__textareaContainer", Sn = "mc__Textarea-module__
|
|
|
508
508
|
maxLength: l = 20,
|
|
509
509
|
withFocus: i = !0,
|
|
510
510
|
withActive: v = !0,
|
|
511
|
-
withResize:
|
|
511
|
+
withResize: E = !0,
|
|
512
512
|
withClose: g = !0,
|
|
513
|
-
onChange:
|
|
513
|
+
onChange: I,
|
|
514
514
|
onFocus: b,
|
|
515
|
-
onBlur:
|
|
516
|
-
disabled:
|
|
515
|
+
onBlur: S,
|
|
516
|
+
disabled: P,
|
|
517
517
|
required: h,
|
|
518
518
|
textareaContainerStyle: c,
|
|
519
519
|
textareaLabelStyle: _,
|
|
@@ -521,81 +521,81 @@ const Dn = "mc__Textarea-module__textareaContainer", Sn = "mc__Textarea-module__
|
|
|
521
521
|
labelSlot: y,
|
|
522
522
|
textareaFooterStyle: q
|
|
523
523
|
}) => {
|
|
524
|
-
const
|
|
524
|
+
const Y = le(null), [O, ee] = F(!1), [te, B] = F(!1), Q = (C) => {
|
|
525
525
|
let L = C.target.value;
|
|
526
|
-
|
|
527
|
-
},
|
|
526
|
+
I && typeof I == "function" && I(L);
|
|
527
|
+
}, z = (C) => C, V = (C) => {
|
|
528
528
|
ee(!0), b && typeof b == "function" && b(C);
|
|
529
529
|
}, j = (C) => {
|
|
530
|
-
ee(!1),
|
|
530
|
+
ee(!1), S && typeof S == "function" && S(C);
|
|
531
531
|
};
|
|
532
|
-
let
|
|
532
|
+
let Z = !1;
|
|
533
533
|
G(() => {
|
|
534
|
-
if (!
|
|
535
|
-
const C =
|
|
534
|
+
if (!Y.current) return;
|
|
535
|
+
const C = Y.current.querySelector("textarea");
|
|
536
536
|
if (!C) return;
|
|
537
537
|
let L = !1;
|
|
538
|
-
const $ = (
|
|
538
|
+
const $ = (ue) => {
|
|
539
539
|
const re = C.getBoundingClientRect();
|
|
540
|
-
|
|
541
|
-
},
|
|
542
|
-
L && (
|
|
540
|
+
ue.clientX > re.right - 20 && ue.clientY > re.bottom - 20 && (L = !0);
|
|
541
|
+
}, W = new ResizeObserver(() => {
|
|
542
|
+
L && (Z = !0, L = !1);
|
|
543
543
|
});
|
|
544
|
-
return C.addEventListener("mousedown", $),
|
|
545
|
-
C.removeEventListener("mousedown", $),
|
|
544
|
+
return C.addEventListener("mousedown", $), W.observe(C), () => {
|
|
545
|
+
C.removeEventListener("mousedown", $), W.disconnect();
|
|
546
546
|
};
|
|
547
547
|
}, []);
|
|
548
548
|
const N = () => {
|
|
549
|
-
if (!
|
|
550
|
-
const C =
|
|
551
|
-
!C ||
|
|
549
|
+
if (!Y.current) return;
|
|
550
|
+
const C = Y.current.querySelector("textarea");
|
|
551
|
+
!C || Z || (C.style.height = "auto", C.style.height = `${C.scrollHeight}px`);
|
|
552
552
|
};
|
|
553
553
|
G(() => {
|
|
554
|
-
if (!
|
|
555
|
-
const C =
|
|
556
|
-
|
|
554
|
+
if (!Y.current) return;
|
|
555
|
+
const C = Y.current.querySelector("textarea"), L = new ResizeObserver(() => {
|
|
556
|
+
Z = C.offsetHeight < C.scrollHeight;
|
|
557
557
|
});
|
|
558
558
|
return L.observe(C), () => L.disconnect();
|
|
559
559
|
}, []);
|
|
560
560
|
const k = (C) => {
|
|
561
|
-
|
|
561
|
+
Z = !1, I?.(C.target.value), N();
|
|
562
562
|
}, d = () => {
|
|
563
|
-
|
|
563
|
+
I && typeof I == "function" && I("");
|
|
564
564
|
};
|
|
565
565
|
return /* @__PURE__ */ s(
|
|
566
566
|
"div",
|
|
567
567
|
{
|
|
568
568
|
style: c ?? {},
|
|
569
|
-
className: `${
|
|
569
|
+
className: `${ye.textareaContainer} ${m.error ? ye.error : ""} ${P ? ye.disabled : null}`,
|
|
570
570
|
children: [
|
|
571
|
-
n && /* @__PURE__ */ s("div", { style: _, className:
|
|
571
|
+
n && /* @__PURE__ */ s("div", { style: _, className: ye.textAreaLabel, children: [
|
|
572
572
|
/* @__PURE__ */ e("p", { children: n }),
|
|
573
|
-
/* @__PURE__ */ e("span", { style: w ?? {}, className:
|
|
574
|
-
y &&
|
|
573
|
+
/* @__PURE__ */ e("span", { style: w ?? {}, className: ye.required, children: h && "*" }),
|
|
574
|
+
y && z(y)
|
|
575
575
|
] }),
|
|
576
|
-
/* @__PURE__ */ s("div", { className: `${
|
|
576
|
+
/* @__PURE__ */ s("div", { className: `${ye.wrap} ${E ? ye.resize : ""}`, ref: Y, children: [
|
|
577
577
|
/* @__PURE__ */ e(
|
|
578
578
|
"textarea",
|
|
579
579
|
{
|
|
580
|
-
className: `${
|
|
580
|
+
className: `${ye.textarea} ${O ? ye.focused : ""} ${P ? ye.disabled : ""} ${i && O ? m.error ? ye.errorFocused : ye.focused : ""} ${v && te ? m.error ? ye.errorActive : ye.active : ""} ${m.error ? ye.error : ""} ${m.success ? ye.success : ""}`,
|
|
581
581
|
value: a,
|
|
582
582
|
placeholder: t ?? "",
|
|
583
583
|
cols: o,
|
|
584
584
|
rows: r,
|
|
585
585
|
maxLength: l ?? void 0,
|
|
586
586
|
onInput: k,
|
|
587
|
-
onFocus:
|
|
588
|
-
disabled:
|
|
587
|
+
onFocus: V,
|
|
588
|
+
disabled: P,
|
|
589
589
|
onBlur: j,
|
|
590
590
|
onChange: Q,
|
|
591
|
-
onMouseDown: () =>
|
|
592
|
-
onMouseUp: () =>
|
|
593
|
-
onMouseLeave: () =>
|
|
591
|
+
onMouseDown: () => B(!0),
|
|
592
|
+
onMouseUp: () => B(!1),
|
|
593
|
+
onMouseLeave: () => B(!1)
|
|
594
594
|
}
|
|
595
595
|
),
|
|
596
|
-
g && a && /* @__PURE__ */ e("div", { className:
|
|
596
|
+
g && a && /* @__PURE__ */ e("div", { className: ye.textareaIconClose, onClick: d, children: /* @__PURE__ */ e(zt, {}) })
|
|
597
597
|
] }),
|
|
598
|
-
/* @__PURE__ */ e("div", { style: q ?? {}, className:
|
|
598
|
+
/* @__PURE__ */ e("div", { style: q ?? {}, className: ye.textareaFooter, children: /* @__PURE__ */ s("p", { children: [
|
|
599
599
|
a?.length,
|
|
600
600
|
"/",
|
|
601
601
|
l
|
|
@@ -669,20 +669,20 @@ const Qn = "mc__Checkbox-module__checkboxWrapper", Jn = "mc__Checkbox-module__ch
|
|
|
669
669
|
multipleChecked: l = !1,
|
|
670
670
|
activeStyle: i,
|
|
671
671
|
checkBoxStyle: v,
|
|
672
|
-
theme:
|
|
672
|
+
theme: E = "light"
|
|
673
673
|
}) => {
|
|
674
|
-
const g = rt(), [
|
|
674
|
+
const g = rt(), [I, b] = F(!1), S = () => {
|
|
675
675
|
a || o && typeof o == "function" && o(!t);
|
|
676
676
|
};
|
|
677
677
|
return /* @__PURE__ */ s(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
|
-
style:
|
|
681
|
-
className: `${
|
|
680
|
+
style: I ? a ? { boxShadow: "none" } : i ?? {} : v ?? {},
|
|
681
|
+
className: `${E === "dark" ? Re.dark : ""} ${Re[g]} ${Re.checkboxWrapper} ${r === "error" ? Re.error : ""} ${t ? Re.checked : Re.unChecked} ${a ? Re.disabled : ""}`,
|
|
682
682
|
onMouseDown: () => b(!0),
|
|
683
683
|
onMouseUp: () => b(!1),
|
|
684
684
|
onMouseLeave: () => b(!1),
|
|
685
|
-
onClick:
|
|
685
|
+
onClick: S,
|
|
686
686
|
children: [
|
|
687
687
|
/* @__PURE__ */ e("input", { ref: n, type: "checkbox", disabled: a, checked: t ?? !1, hidden: !0, readOnly: !0, required: m ?? !1 }),
|
|
688
688
|
t ? l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(At, {}) : ""
|
|
@@ -693,7 +693,7 @@ const Qn = "mc__Checkbox-module__checkboxWrapper", Jn = "mc__Checkbox-module__ch
|
|
|
693
693
|
He.propKeys = ["ref", "checked", "change", "type", "disabled", "required", "multipleChecked", "activeStyle", "checkBoxStyle", "theme"];
|
|
694
694
|
He.displayName = "Checkbox";
|
|
695
695
|
He.description = "A checkbox component with support for checked, indeterminate states and custom styling.";
|
|
696
|
-
const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dropdownInputWrapper", so = "mc__Dropdown-module__dropdownInputSlot", ao = "mc__Dropdown-module__dropdownRightIconArrow", co = "mc__Dropdown-module__focused", uo = "mc__Dropdown-module__dropdownInputSlotItem", mo = "mc__Dropdown-module__dropdownInputSlotItemLabel", po = "mc__Dropdown-module__dropdownInputSlotItemClose", ho = "mc__Dropdown-module__dropdownInputSlotItemMore", fo = "mc__Dropdown-module__dropdownRightIcon", _o = "mc__Dropdown-module__dropdownRightIconClose", Co = "mc__Dropdown-module__dropdownListContainer", go = "mc__Dropdown-module__dropdownList", wo = "mc__Dropdown-module__dropdownItem", yo = "mc__Dropdown-module__selected", vo = "mc__Dropdown-module__dropdownItemLabel", bo = "mc__Dropdown-module__hovered", ko = "mc__Dropdown-module__disabled", Lo = "mc__Dropdown-module__itemCheckbox", To = "mc__Dropdown-module__dropdownItemLabelInput",
|
|
696
|
+
const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dropdownInputWrapper", so = "mc__Dropdown-module__dropdownInputSlot", ao = "mc__Dropdown-module__dropdownRightIconArrow", co = "mc__Dropdown-module__focused", uo = "mc__Dropdown-module__dropdownInputSlotItem", mo = "mc__Dropdown-module__dropdownInputSlotItemLabel", po = "mc__Dropdown-module__dropdownInputSlotItemClose", ho = "mc__Dropdown-module__dropdownInputSlotItemMore", fo = "mc__Dropdown-module__dropdownRightIcon", _o = "mc__Dropdown-module__dropdownRightIconClose", Co = "mc__Dropdown-module__dropdownListContainer", go = "mc__Dropdown-module__dropdownList", wo = "mc__Dropdown-module__dropdownItem", yo = "mc__Dropdown-module__selected", vo = "mc__Dropdown-module__dropdownItemLabel", bo = "mc__Dropdown-module__hovered", ko = "mc__Dropdown-module__disabled", Lo = "mc__Dropdown-module__itemCheckbox", To = "mc__Dropdown-module__dropdownItemLabelInput", xo = "mc__Dropdown-module__countryName", Io = "mc__Dropdown-module__countryDialCode", No = "mc__Dropdown-module__selectAll", de = {
|
|
697
697
|
dropdownWrapper: io,
|
|
698
698
|
dropdownInputWrapper: lo,
|
|
699
699
|
dropdownInputSlot: so,
|
|
@@ -714,8 +714,8 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
714
714
|
disabled: ko,
|
|
715
715
|
itemCheckbox: Lo,
|
|
716
716
|
dropdownItemLabelInput: To,
|
|
717
|
-
countryName:
|
|
718
|
-
countryDialCode:
|
|
717
|
+
countryName: xo,
|
|
718
|
+
countryDialCode: Io,
|
|
719
719
|
selectAll: No
|
|
720
720
|
}, Lt = (t, n) => {
|
|
721
721
|
const o = /* @__PURE__ */ new Set();
|
|
@@ -747,87 +747,87 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
747
747
|
withSelectAll: l = !1,
|
|
748
748
|
withClearAll: i = !1,
|
|
749
749
|
expandedNodes: v,
|
|
750
|
-
SearchValue:
|
|
750
|
+
SearchValue: E,
|
|
751
751
|
SelectedData: g,
|
|
752
|
-
treeContainerStyle:
|
|
752
|
+
treeContainerStyle: I,
|
|
753
753
|
treeNodeItemStyle: b,
|
|
754
|
-
treeFooterStyle:
|
|
755
|
-
treeFooterTextStyle:
|
|
754
|
+
treeFooterStyle: S,
|
|
755
|
+
treeFooterTextStyle: P,
|
|
756
756
|
treeNodeStyle: h,
|
|
757
757
|
labelRowStyle: c,
|
|
758
758
|
collapseToggleStyle: _
|
|
759
759
|
}) => {
|
|
760
|
-
const [w, y] =
|
|
761
|
-
if (
|
|
762
|
-
const N =
|
|
760
|
+
const [w, y] = F(t || []), q = (z, V, j = w) => j.map((Z) => {
|
|
761
|
+
if (Z.id === z) {
|
|
762
|
+
const N = Z.children && Z.children.length > 0;
|
|
763
763
|
return {
|
|
764
|
-
...
|
|
765
|
-
selected:
|
|
766
|
-
children: N ?
|
|
764
|
+
...Z,
|
|
765
|
+
selected: V,
|
|
766
|
+
children: N ? Y(Z.children, V) : Z.children || []
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
|
-
if (
|
|
770
|
-
const N = q(
|
|
769
|
+
if (Z.children && Z.children.length > 0) {
|
|
770
|
+
const N = q(z, V, Z.children), d = N.filter((C) => C.selected).length === N.length && N.length > 0;
|
|
771
771
|
return {
|
|
772
|
-
...
|
|
772
|
+
...Z,
|
|
773
773
|
selected: d,
|
|
774
774
|
children: N
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
return
|
|
778
|
-
}),
|
|
777
|
+
return Z;
|
|
778
|
+
}), Y = (z, V) => z.map((j) => ({
|
|
779
779
|
...j,
|
|
780
|
-
selected:
|
|
781
|
-
children: j.children ?
|
|
782
|
-
})),
|
|
783
|
-
const j = q(
|
|
780
|
+
selected: V,
|
|
781
|
+
children: j.children ? Y(j.children, V) : []
|
|
782
|
+
})), O = (z, V) => {
|
|
783
|
+
const j = q(z, V);
|
|
784
784
|
y(j);
|
|
785
|
-
const
|
|
786
|
-
a?.(
|
|
787
|
-
}, ee = (
|
|
788
|
-
r?.(
|
|
789
|
-
}, te = (
|
|
790
|
-
let
|
|
791
|
-
return
|
|
792
|
-
j.selected &&
|
|
793
|
-
}),
|
|
794
|
-
},
|
|
795
|
-
const
|
|
796
|
-
y(
|
|
785
|
+
const Z = te(j);
|
|
786
|
+
a?.(Z);
|
|
787
|
+
}, ee = (z, V) => {
|
|
788
|
+
r?.(z, V);
|
|
789
|
+
}, te = (z) => {
|
|
790
|
+
let V = [];
|
|
791
|
+
return z.forEach((j) => {
|
|
792
|
+
j.selected && V.push(j), j.children?.length && (V = [...V, ...te(j.children)]);
|
|
793
|
+
}), V;
|
|
794
|
+
}, B = () => {
|
|
795
|
+
const z = Y(w, !1);
|
|
796
|
+
y(z), a?.([]);
|
|
797
797
|
}, Q = () => {
|
|
798
|
-
const
|
|
799
|
-
y(
|
|
800
|
-
const
|
|
801
|
-
a?.(
|
|
798
|
+
const z = Y(w, !0);
|
|
799
|
+
y(z);
|
|
800
|
+
const V = te(z);
|
|
801
|
+
a?.(V);
|
|
802
802
|
};
|
|
803
803
|
return G(() => {
|
|
804
804
|
y(t || []);
|
|
805
|
-
}, [t]), /* @__PURE__ */ s("div", { className: `${Le.treeNodeContainer}`, style:
|
|
806
|
-
/* @__PURE__ */ e("div", { className: `${Le.treeNodeItem} ${m ? Le.inDropDown : ""}`, style: b, children: w.map((
|
|
805
|
+
}, [t]), /* @__PURE__ */ s("div", { className: `${Le.treeNodeContainer}`, style: I, children: [
|
|
806
|
+
/* @__PURE__ */ e("div", { className: `${Le.treeNodeItem} ${m ? Le.inDropDown : ""}`, style: b, children: w.map((z) => /* @__PURE__ */ e(
|
|
807
807
|
Tt,
|
|
808
808
|
{
|
|
809
|
-
node:
|
|
810
|
-
onSelect:
|
|
809
|
+
node: z,
|
|
810
|
+
onSelect: O,
|
|
811
811
|
defaultCollapsed: n,
|
|
812
812
|
checkboxProps: o,
|
|
813
813
|
onCollapse: ee,
|
|
814
814
|
depth: 0,
|
|
815
815
|
expandedNodes: v,
|
|
816
|
-
SearchValue:
|
|
816
|
+
SearchValue: E,
|
|
817
817
|
SelectedData: g,
|
|
818
|
-
treeContainerStyle:
|
|
818
|
+
treeContainerStyle: I,
|
|
819
819
|
treeNodeItemStyle: b,
|
|
820
|
-
treeFooterStyle:
|
|
821
|
-
treeFooterTextStyle:
|
|
820
|
+
treeFooterStyle: S,
|
|
821
|
+
treeFooterTextStyle: P,
|
|
822
822
|
treeNodeStyle: h,
|
|
823
823
|
labelRowStyle: c,
|
|
824
824
|
collapseToggleStyle: _
|
|
825
825
|
},
|
|
826
|
-
|
|
826
|
+
z.id
|
|
827
827
|
)) }),
|
|
828
|
-
m && /* @__PURE__ */ s("div", { className: Le.dropdownListFooter, style:
|
|
829
|
-
i && /* @__PURE__ */ e("span", { onClick:
|
|
830
|
-
l &&
|
|
828
|
+
m && /* @__PURE__ */ s("div", { className: Le.dropdownListFooter, style: S, children: [
|
|
829
|
+
i && /* @__PURE__ */ e("span", { onClick: B, style: P, children: "Clear All" }),
|
|
830
|
+
l && E === "" && /* @__PURE__ */ e("span", { onClick: Q, style: P, children: "Select All" })
|
|
831
831
|
] })
|
|
832
832
|
] });
|
|
833
833
|
}, Tt = ({
|
|
@@ -840,32 +840,32 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
840
840
|
expandedNodes: l,
|
|
841
841
|
SearchValue: i,
|
|
842
842
|
SelectedData: v,
|
|
843
|
-
treeContainerStyle:
|
|
843
|
+
treeContainerStyle: E,
|
|
844
844
|
treeNodeItemStyle: g,
|
|
845
|
-
treeFooterStyle:
|
|
845
|
+
treeFooterStyle: I,
|
|
846
846
|
treeFooterTextStyle: b,
|
|
847
|
-
treeNodeStyle:
|
|
848
|
-
labelRowStyle:
|
|
847
|
+
treeNodeStyle: S,
|
|
848
|
+
labelRowStyle: P,
|
|
849
849
|
collapseToggleStyle: h
|
|
850
850
|
}) => {
|
|
851
|
-
const c = l?.find((
|
|
852
|
-
v?.find((
|
|
853
|
-
const [_, w] =
|
|
854
|
-
w((
|
|
851
|
+
const c = l?.find((O) => O.id === t.id);
|
|
852
|
+
v?.find((O) => O.id === t.id);
|
|
853
|
+
const [_, w] = F(c ? !1 : o || !0), y = () => {
|
|
854
|
+
w((O) => !O), a?.(_, t);
|
|
855
855
|
}, q = () => {
|
|
856
856
|
n?.(t.id, !t.selected);
|
|
857
|
-
},
|
|
857
|
+
}, Y = (O) => {
|
|
858
858
|
let ee = !1;
|
|
859
|
-
const te = (Q) => Q?.toLowerCase().replace(/\s/g, "") || "",
|
|
860
|
-
|
|
859
|
+
const te = (Q) => Q?.toLowerCase().replace(/\s/g, "") || "", B = (Q, z) => {
|
|
860
|
+
z.label && te(z.label).includes(te(Q)) && (ee = !0), z.children?.forEach((V) => B(Q, V));
|
|
861
861
|
};
|
|
862
|
-
return !
|
|
862
|
+
return !O || O.trim() === "" ? !0 : (B(O, t), ee);
|
|
863
863
|
};
|
|
864
864
|
return G(() => {
|
|
865
865
|
i && w(!1);
|
|
866
|
-
}, [i]), /* @__PURE__ */ s("div", { className: `${Le.treeNode} ${
|
|
867
|
-
/* @__PURE__ */ s("div", { className: Le.labelRow, onClick: y, style:
|
|
868
|
-
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${m}rem` }, onClick: (
|
|
866
|
+
}, [i]), /* @__PURE__ */ s("div", { className: `${Le.treeNode} ${Y(i) ? Le.visible : Le.hidden}`, style: S, children: [
|
|
867
|
+
/* @__PURE__ */ s("div", { className: Le.labelRow, onClick: y, style: P, children: [
|
|
868
|
+
/* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${m}rem` }, onClick: (O) => O.stopPropagation(), children: /* @__PURE__ */ e(He, { checked: t?.selected ?? !1, change: q, ...r, withActive: !1 }) }),
|
|
869
869
|
/* @__PURE__ */ e("span", { className: Le.collapseToggle, style: h, children: /* @__PURE__ */ e(
|
|
870
870
|
"div",
|
|
871
871
|
{
|
|
@@ -880,10 +880,10 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
880
880
|
) }),
|
|
881
881
|
/* @__PURE__ */ e("span", { className: `${Le.label} ${t.selected ? Le.selected : ""}`, children: t.label })
|
|
882
882
|
] }),
|
|
883
|
-
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: Le.children, style: { display: _ ? "none" : "block" }, children: t.children.map((
|
|
883
|
+
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: Le.children, style: { display: _ ? "none" : "block" }, children: t.children.map((O) => /* @__PURE__ */ e(
|
|
884
884
|
Tt,
|
|
885
885
|
{
|
|
886
|
-
node:
|
|
886
|
+
node: O,
|
|
887
887
|
onSelect: n,
|
|
888
888
|
defaultCollapsed: o,
|
|
889
889
|
checkboxProps: r,
|
|
@@ -892,15 +892,15 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
892
892
|
expandedNodes: l,
|
|
893
893
|
SearchValue: i,
|
|
894
894
|
SelectedData: v,
|
|
895
|
-
treeContainerStyle:
|
|
895
|
+
treeContainerStyle: E,
|
|
896
896
|
treeNodeItemStyle: g,
|
|
897
|
-
treeFooterStyle:
|
|
897
|
+
treeFooterStyle: I,
|
|
898
898
|
treeFooterTextStyle: b,
|
|
899
|
-
treeNodeStyle:
|
|
900
|
-
labelRowStyle:
|
|
899
|
+
treeNodeStyle: S,
|
|
900
|
+
labelRowStyle: P,
|
|
901
901
|
collapseToggleStyle: h
|
|
902
902
|
},
|
|
903
|
-
|
|
903
|
+
O.id
|
|
904
904
|
)) })
|
|
905
905
|
] });
|
|
906
906
|
}, it = ({
|
|
@@ -913,47 +913,49 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
913
913
|
withInput: l = !1,
|
|
914
914
|
withTree: i = !1,
|
|
915
915
|
withSelectAll: v = !0,
|
|
916
|
-
dropdownType:
|
|
916
|
+
dropdownType: E = "country",
|
|
917
917
|
closeOnScroll: g = !1,
|
|
918
|
-
onSelect:
|
|
918
|
+
onSelect: I,
|
|
919
919
|
onFocus: b,
|
|
920
|
-
onBlur:
|
|
921
|
-
onValueChange:
|
|
920
|
+
onBlur: S,
|
|
921
|
+
onValueChange: P,
|
|
922
922
|
onApply: h,
|
|
923
923
|
customInputSlot: c,
|
|
924
924
|
dropdownWrapperStyle: _,
|
|
925
925
|
dropdownInputWrapperStyle: w,
|
|
926
926
|
dropdownInputSlotStyle: y,
|
|
927
927
|
dropdownInputSlotItemStyle: q,
|
|
928
|
-
dropdownInputSlotItemLabelStyle:
|
|
929
|
-
dropdownInputSlotItemCloseStyle:
|
|
928
|
+
dropdownInputSlotItemLabelStyle: Y,
|
|
929
|
+
dropdownInputSlotItemCloseStyle: O,
|
|
930
930
|
dropdownInputSlotItemMoreStyle: ee,
|
|
931
931
|
dropdownItemStyle: te,
|
|
932
|
-
dropdownItemLabelStyle:
|
|
932
|
+
dropdownItemLabelStyle: B,
|
|
933
933
|
itemCheckboxStyle: Q,
|
|
934
|
-
dropdownItemLabelTextStyle:
|
|
935
|
-
dropdownListStyle:
|
|
934
|
+
dropdownItemLabelTextStyle: z,
|
|
935
|
+
dropdownListStyle: V,
|
|
936
936
|
treeProps: j,
|
|
937
|
-
withApply:
|
|
937
|
+
withApply: Z = !1,
|
|
938
938
|
applyButtonProps: N = { label: "Apply" },
|
|
939
939
|
...k
|
|
940
940
|
}) => {
|
|
941
|
-
const [d, C] =
|
|
941
|
+
const [d, C] = F(!1), [L, $] = F(""), [W, ue] = F(!1), [re, Ce] = F(!1), [J, K] = F(!1), ae = le(null), ie = le(null), pe = le(null), oe = le(null), [x, p] = F([]), T = le([]), H = le(0), [se, ne] = F(""), [fe, _e] = F(null), we = (u) => `https://flagsapi.com/${u}/flat/64.png`, $e = (u) => {
|
|
942
942
|
if (u.selected = !u.selected, !a) {
|
|
943
|
-
|
|
943
|
+
I?.(u);
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
|
-
T.current = [...T.current, ...
|
|
947
|
-
},
|
|
948
|
-
_e(u),
|
|
946
|
+
T.current = [...T.current, ...x.filter((R) => R.selected == !0), ...x.filter((R) => R.id === u.id)], T.current = Lt(T.current, "id").filter((R) => R.selected).filter((R) => R.id !== "SELECT_ALL"), u.id === "SELECT_ALL" ? (ue(u.selected), Ce(!0)) : (ue(!1), I?.(T.current), Ce(!1)), C((R) => !R);
|
|
947
|
+
}, Ie = (u) => {
|
|
948
|
+
_e(u), I?.(u), K(!1);
|
|
949
949
|
}, Me = () => {
|
|
950
950
|
h?.(), K(!1);
|
|
951
951
|
}, Ae = () => {
|
|
952
952
|
if (!ie.current || !ae.current) return;
|
|
953
|
-
const u = ie.current,
|
|
954
|
-
if (!
|
|
955
|
-
const
|
|
956
|
-
|
|
953
|
+
const u = ie.current, R = ae.current;
|
|
954
|
+
if (!R || !u) return;
|
|
955
|
+
const ce = u.getBoundingClientRect(), f = window.innerHeight, A = 16;
|
|
956
|
+
R.style.width = ce.width + "px", R.style.position = "fixed";
|
|
957
|
+
const D = f - ce.bottom - A, ge = ce.top - A;
|
|
958
|
+
D >= R.offsetHeight ? (R.style.top = `${ce.bottom + 8}px`, R.style.bottom = "unset", R.style.maxHeight = `${D}px`) : ge >= R.offsetHeight ? (R.style.top = `${ce.top - R.offsetHeight + 18}px`, R.style.bottom = "unset", R.style.maxHeight = `${ge}px`) : (D >= ge ? (R.style.top = `${ce.bottom + 8}px`, R.style.bottom = "unset", R.style.maxHeight = `${D + 18}px`) : (R.style.top = `${A}px`, R.style.bottom = "unset", R.style.maxHeight = `${ge + 18}px`), R.style.overflowY = "auto");
|
|
957
959
|
}, be = () => {
|
|
958
960
|
requestAnimationFrame(() => {
|
|
959
961
|
Ae();
|
|
@@ -962,24 +964,24 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
962
964
|
G(() => {
|
|
963
965
|
J && be();
|
|
964
966
|
}, [ae, J]), G(() => {
|
|
965
|
-
if (T.current = t?.length ? t.filter((
|
|
967
|
+
if (T.current = t?.length ? t.filter((ce) => ce.selected) : [], !a) {
|
|
966
968
|
p(t);
|
|
967
969
|
return;
|
|
968
970
|
}
|
|
969
|
-
const u = t?.some((
|
|
970
|
-
u ? p([...
|
|
971
|
-
|
|
972
|
-
}), p([...
|
|
971
|
+
const u = t?.some((ce) => "selected" in ce), R = v ? [{ id: "SELECT_ALL", label: "Select All", selected: W }] : [];
|
|
972
|
+
u ? p([...R, ...t]) : (t?.forEach((ce) => {
|
|
973
|
+
ce.selected = !1;
|
|
974
|
+
}), p([...R, ...t])), be();
|
|
973
975
|
}, [JSON.stringify(t)]), G(() => {
|
|
974
|
-
a && (t?.every((u) => u.selected) ||
|
|
976
|
+
a && (t?.every((u) => u.selected) || ue(!1));
|
|
975
977
|
}, [T.current.length]), G(() => {
|
|
976
978
|
!a && m && _e(t?.find((u) => u.id === m));
|
|
977
979
|
}, [m]), G(() => {
|
|
978
|
-
if (a &&
|
|
979
|
-
const u =
|
|
980
|
-
p(u), t?.forEach((
|
|
981
|
-
|
|
982
|
-
}), T.current = u.filter((
|
|
980
|
+
if (a && x.length > 0 && re) {
|
|
981
|
+
const u = x.map((R) => R.id === "SELECT_ALL" ? { ...R, selected: W } : R.disabled ? R : { ...R, selected: W });
|
|
982
|
+
p(u), t?.forEach((R) => {
|
|
983
|
+
R.id === "SELECT_ALL" ? R.selected = W : R.disabled || (R.selected = W);
|
|
984
|
+
}), T.current = u.filter((R) => R.selected && R.id !== "SELECT_ALL"), I?.(T.current);
|
|
983
985
|
}
|
|
984
986
|
}, [d]);
|
|
985
987
|
const De = (u) => {
|
|
@@ -997,10 +999,10 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
997
999
|
}, [J]), G(() => {
|
|
998
1000
|
if (!a) return;
|
|
999
1001
|
const u = () => {
|
|
1000
|
-
const
|
|
1001
|
-
if (!
|
|
1002
|
-
const
|
|
1003
|
-
|
|
1002
|
+
const R = ie.current?.getBoundingClientRect();
|
|
1003
|
+
if (!R) return;
|
|
1004
|
+
const ce = R.width;
|
|
1005
|
+
ce <= 150 ? H.current = 0 : ce <= 250 ? H.current = 1 : ce <= 350 ? H.current = 2 : ce <= 450 ? H.current = 3 : H.current = 4;
|
|
1004
1006
|
};
|
|
1005
1007
|
return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
1006
1008
|
}, []);
|
|
@@ -1010,13 +1012,13 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
1010
1012
|
Ke.current = !1;
|
|
1011
1013
|
return;
|
|
1012
1014
|
}
|
|
1013
|
-
J ||
|
|
1014
|
-
}, [J]), /* @__PURE__ */ s("div", { className: `${
|
|
1015
|
+
J || S?.(), J && b?.();
|
|
1016
|
+
}, [J]), /* @__PURE__ */ s("div", { className: `${de.dropdownWrapper}`, style: _ ?? {}, children: [
|
|
1015
1017
|
/* @__PURE__ */ e(
|
|
1016
1018
|
"div",
|
|
1017
1019
|
{
|
|
1018
1020
|
ref: ie,
|
|
1019
|
-
className:
|
|
1021
|
+
className: de.dropdownInputWrapper,
|
|
1020
1022
|
style: w ?? {},
|
|
1021
1023
|
onClick: () => (K((u) => !u), be()),
|
|
1022
1024
|
children: /* @__PURE__ */ e(
|
|
@@ -1028,62 +1030,62 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
1028
1030
|
withActive: !1,
|
|
1029
1031
|
value: l ? L : fe?.label ?? "",
|
|
1030
1032
|
onChange: (u) => {
|
|
1031
|
-
$(u),
|
|
1033
|
+
$(u), P?.(u);
|
|
1032
1034
|
},
|
|
1033
1035
|
toggleFocus: !0,
|
|
1034
1036
|
formInputStyle: { cursor: l ? "text" : "pointer" },
|
|
1035
|
-
leftSlot: l && /* @__PURE__ */ s("div", { className:
|
|
1036
|
-
|
|
1037
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
1037
|
+
leftSlot: l && /* @__PURE__ */ s("div", { className: de.dropdownInputSlot, children: [
|
|
1038
|
+
E === "currency" ? /* @__PURE__ */ e("p", { children: fe?.label }) : /* @__PURE__ */ e("img", { src: we(fe?.code), alt: "flag" }),
|
|
1039
|
+
/* @__PURE__ */ e("div", { className: `${de.dropdownRightIconArrow} ${J ? de.focused : ""}`, children: /* @__PURE__ */ e(je, {}) })
|
|
1038
1040
|
] }),
|
|
1039
|
-
rightSlot: /* @__PURE__ */ s("div", { className: `${
|
|
1041
|
+
rightSlot: /* @__PURE__ */ s("div", { className: `${de.dropdownRightIcon} ${J ? de.focused : ""}`, children: [
|
|
1040
1042
|
(l ? L : !a && fe) && /* @__PURE__ */ e(
|
|
1041
1043
|
"div",
|
|
1042
1044
|
{
|
|
1043
1045
|
onClick: (u) => {
|
|
1044
1046
|
u.stopPropagation(), l ? ($(""), K(!1)) : _e(null);
|
|
1045
1047
|
},
|
|
1046
|
-
className:
|
|
1048
|
+
className: de.dropdownRightIconClose,
|
|
1047
1049
|
children: /* @__PURE__ */ e(Je, {})
|
|
1048
1050
|
}
|
|
1049
1051
|
),
|
|
1050
|
-
!l && /* @__PURE__ */ e("div", { className:
|
|
1052
|
+
!l && /* @__PURE__ */ e("div", { className: de.dropdownRightIconArrow, children: /* @__PURE__ */ e(je, {}) })
|
|
1051
1053
|
] }),
|
|
1052
1054
|
readOnly: !l,
|
|
1053
1055
|
forDropdown: !0,
|
|
1054
1056
|
inputSlotStyle: { width: "100%" },
|
|
1055
|
-
inputSlot: a && T.current.length > 0 ? c || /* @__PURE__ */ s("ul", { className:
|
|
1056
|
-
T.current.slice(0,
|
|
1057
|
+
inputSlot: a && T.current.length > 0 ? c || /* @__PURE__ */ s("ul", { className: de.dropdownInputSlot, style: y ?? {}, children: [
|
|
1058
|
+
T.current.slice(0, H.current).map((u, R) => /* @__PURE__ */ s(
|
|
1057
1059
|
"li",
|
|
1058
1060
|
{
|
|
1059
1061
|
ref: oe,
|
|
1060
|
-
className:
|
|
1062
|
+
className: de.dropdownInputSlotItem,
|
|
1061
1063
|
style: q ?? {},
|
|
1062
|
-
onClick: (
|
|
1064
|
+
onClick: (ce) => ce.stopPropagation(),
|
|
1063
1065
|
children: [
|
|
1064
|
-
/* @__PURE__ */ e("div", { title: u.label, className:
|
|
1066
|
+
/* @__PURE__ */ e("div", { title: u.label, className: de.dropdownInputSlotItemLabel, style: Y ?? {}, children: typeof u.customLabel == "function" ? u.customLabel(u) : u.label }),
|
|
1065
1067
|
/* @__PURE__ */ e(
|
|
1066
1068
|
"div",
|
|
1067
1069
|
{
|
|
1068
|
-
style:
|
|
1069
|
-
className:
|
|
1070
|
-
onClick: (
|
|
1071
|
-
|
|
1070
|
+
style: O ?? {},
|
|
1071
|
+
className: de.dropdownInputSlotItemClose,
|
|
1072
|
+
onClick: (ce) => {
|
|
1073
|
+
ce.stopPropagation(), $e(u);
|
|
1072
1074
|
},
|
|
1073
1075
|
children: /* @__PURE__ */ e(Ht, { width: "16", height: "16", viewBox: "0 0 16 16", stroke: "#95969C" })
|
|
1074
1076
|
}
|
|
1075
1077
|
)
|
|
1076
1078
|
]
|
|
1077
1079
|
},
|
|
1078
|
-
|
|
1080
|
+
R
|
|
1079
1081
|
)),
|
|
1080
|
-
T.current.length >
|
|
1082
|
+
T.current.length > H.current && /* @__PURE__ */ e("li", { className: `${de.dropdownInputSlotItem} ${de.dropdownInputSlotItemMore}`, style: ee ?? {}, children: /* @__PURE__ */ e("p", { className: de.dropdownInputSlotItemLabel, style: Y ?? {}, children: `+${T.current.length - H.current}` }) })
|
|
1081
1083
|
] }) : null
|
|
1082
1084
|
}
|
|
1083
1085
|
)
|
|
1084
1086
|
}
|
|
1085
1087
|
),
|
|
1086
|
-
t && t.length > 0 && J && /* @__PURE__ */ s("div", { ref: ae, onClick: (u) => u.stopPropagation(), className:
|
|
1088
|
+
t && t.length > 0 && J && /* @__PURE__ */ s("div", { ref: ae, onClick: (u) => u.stopPropagation(), className: de.dropdownListContainer, children: [
|
|
1087
1089
|
n && /* @__PURE__ */ e(
|
|
1088
1090
|
Fe,
|
|
1089
1091
|
{
|
|
@@ -1100,22 +1102,22 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
1100
1102
|
{
|
|
1101
1103
|
SearchValue: se,
|
|
1102
1104
|
data: t,
|
|
1103
|
-
onSelect:
|
|
1104
|
-
onCollapse: (u,
|
|
1105
|
-
be(), j?.onCollapse?.(u,
|
|
1105
|
+
onSelect: I,
|
|
1106
|
+
onCollapse: (u, R) => {
|
|
1107
|
+
be(), j?.onCollapse?.(u, R);
|
|
1106
1108
|
},
|
|
1107
1109
|
...j
|
|
1108
1110
|
}
|
|
1109
|
-
) : /* @__PURE__ */ e("ul", { onClick: (u) => u.stopPropagation(), className:
|
|
1111
|
+
) : /* @__PURE__ */ e("ul", { onClick: (u) => u.stopPropagation(), className: de.dropdownList, ref: pe, style: V ?? {}, children: x.filter((u) => u?.label?.toLowerCase().includes(se.toLowerCase())).map((u, R) => /* @__PURE__ */ s(
|
|
1110
1112
|
"li",
|
|
1111
1113
|
{
|
|
1112
1114
|
style: { ...te, cursor: !a && u?.disabled ? "not-allowed" : "pointer" },
|
|
1113
|
-
className: `${
|
|
1114
|
-
onClick: (
|
|
1115
|
-
|
|
1115
|
+
className: `${de.dropdownItem} ${!a && fe?.id === u.id ? de.selected : ""} ${!u?.label || u.label === void 0 || r || u?.disabled ? de.disabled : ""} ${!a && !u?.disabled ? de.hovered : ""}`,
|
|
1116
|
+
onClick: (ce) => {
|
|
1117
|
+
ce.stopPropagation(), !a && !u?.disabled && Ie(u);
|
|
1116
1118
|
},
|
|
1117
1119
|
children: [
|
|
1118
|
-
a && !u.noCheckbox && /* @__PURE__ */ e("div", { className:
|
|
1120
|
+
a && !u.noCheckbox && /* @__PURE__ */ e("div", { className: de.itemCheckbox, style: Q ?? {}, children: /* @__PURE__ */ e(
|
|
1119
1121
|
He,
|
|
1120
1122
|
{
|
|
1121
1123
|
multipleChecked: u.id === "SELECT_ALL",
|
|
@@ -1124,27 +1126,27 @@ const io = "mc__Dropdown-module__dropdownWrapper", lo = "mc__Dropdown-module__dr
|
|
|
1124
1126
|
change: () => $e(u)
|
|
1125
1127
|
}
|
|
1126
1128
|
) }),
|
|
1127
|
-
/* @__PURE__ */ s("div", { className:
|
|
1128
|
-
l ? /* @__PURE__ */ s("div", { className:
|
|
1129
|
-
/* @__PURE__ */ e("img", { src:
|
|
1130
|
-
/* @__PURE__ */ e("span", { title: u.name, className:
|
|
1131
|
-
/* @__PURE__ */ e("span", { className:
|
|
1129
|
+
/* @__PURE__ */ s("div", { className: de.dropdownItemLabel, style: B ?? {}, children: [
|
|
1130
|
+
l ? /* @__PURE__ */ s("div", { className: de.dropdownItemLabelInput, children: [
|
|
1131
|
+
/* @__PURE__ */ e("img", { src: we(u.code), style: { width: "1.375rem", height: "1.375rem", objectFit: "contain" }, alt: u.name }),
|
|
1132
|
+
/* @__PURE__ */ e("span", { title: u.name, className: de.countryName, children: u.name || u.label }),
|
|
1133
|
+
/* @__PURE__ */ e("span", { className: de.countryDialCode, children: E === "country" ? u.dialCode : u?.label })
|
|
1132
1134
|
] }) : /* @__PURE__ */ e(
|
|
1133
1135
|
"p",
|
|
1134
1136
|
{
|
|
1135
1137
|
title: typeof u.label == "string" ? u.label : "",
|
|
1136
|
-
className: `${u.id === "SELECT_ALL" ?
|
|
1137
|
-
style:
|
|
1138
|
+
className: `${u.id === "SELECT_ALL" ? de.selectAll : ""}`,
|
|
1139
|
+
style: z ?? {},
|
|
1138
1140
|
children: typeof u.customLabel == "function" ? u.customLabel(u) : u.label
|
|
1139
1141
|
}
|
|
1140
1142
|
),
|
|
1141
|
-
a && /* @__PURE__ */ e("p", { children: u.id === "SELECT_ALL" ? `${
|
|
1143
|
+
a && /* @__PURE__ */ e("p", { children: u.id === "SELECT_ALL" ? `${x.filter((ce) => ce.id !== "SELECT_ALL" && ce.selected).length}/${t.length}` : "" })
|
|
1142
1144
|
] })
|
|
1143
1145
|
]
|
|
1144
1146
|
},
|
|
1145
|
-
|
|
1146
|
-
)) },
|
|
1147
|
-
|
|
1147
|
+
R
|
|
1148
|
+
)) }, x.length),
|
|
1149
|
+
Z && (a || i) && /* @__PURE__ */ e(Ne, { ...N, onClick: Me })
|
|
1148
1150
|
] })
|
|
1149
1151
|
] });
|
|
1150
1152
|
};
|
|
@@ -1181,12 +1183,12 @@ it.description = "A feature-rich dropdown component with multi-select, filtering
|
|
|
1181
1183
|
const Oo = "mc__Radio-module__radioWrapper", Vo = {
|
|
1182
1184
|
radioWrapper: Oo
|
|
1183
1185
|
}, lt = ({ checked: t, change: n, disabled: o, required: r, withUncheckState: a = !1, radioType: m = "default" }) => {
|
|
1184
|
-
rt(),
|
|
1186
|
+
rt(), F(!1);
|
|
1185
1187
|
const l = () => {
|
|
1186
1188
|
o || n?.(a ? !t : !0);
|
|
1187
1189
|
}, i = () => {
|
|
1188
|
-
let v = null,
|
|
1189
|
-
return t ? o ? v = /* @__PURE__ */ e(Ft, { color:
|
|
1190
|
+
let v = null, E = o ? "#95969C" : m === "error" ? "#E3292F" : "#0058FF";
|
|
1191
|
+
return t ? o ? v = /* @__PURE__ */ e(Ft, { color: E }) : v = /* @__PURE__ */ e(Bt, { color: E }) : o ? v = /* @__PURE__ */ e(Et, { color: E }) : v = /* @__PURE__ */ e(Wt, { color: E }), v;
|
|
1190
1192
|
};
|
|
1191
1193
|
return /* @__PURE__ */ s("div", { className: Vo.radioWrapper, style: { cursor: o ? "not-allowed" : "pointer" }, onClick: l, children: [
|
|
1192
1194
|
/* @__PURE__ */ e("input", { type: "radio", checked: !0, readOnly: !0, hidden: !0, disabled: o ?? !1, required: r }),
|
|
@@ -1196,7 +1198,7 @@ const Oo = "mc__Radio-module__radioWrapper", Vo = {
|
|
|
1196
1198
|
lt.propKeys = ["checked", "change", "disabled", "required", "withUncheckState", "radioType"];
|
|
1197
1199
|
lt.displayName = "Radio";
|
|
1198
1200
|
lt.description = "A radio button component with customizable states and uncheck functionality for form selections.";
|
|
1199
|
-
const Zo = "mc__Tooltip-module__tooltipContainer", zo = "mc__Tooltip-module__tooltipContent", Uo = "mc__Tooltip-module__withoutPointer", Yo = "mc__Tooltip-module__top", jo = "mc__Tooltip-module__right", Ko = "mc__Tooltip-module__bottom", qo = "mc__Tooltip-module__left", Xo = "mc__Tooltip-module__tooltipTitle", Qo = "mc__Tooltip-module__tooltipText", Jo = "mc__Tooltip-module__dark",
|
|
1201
|
+
const Zo = "mc__Tooltip-module__tooltipContainer", zo = "mc__Tooltip-module__tooltipContent", Uo = "mc__Tooltip-module__withoutPointer", Yo = "mc__Tooltip-module__top", jo = "mc__Tooltip-module__right", Ko = "mc__Tooltip-module__bottom", qo = "mc__Tooltip-module__left", Xo = "mc__Tooltip-module__tooltipTitle", Qo = "mc__Tooltip-module__tooltipText", Jo = "mc__Tooltip-module__dark", xe = {
|
|
1200
1202
|
tooltipContainer: Zo,
|
|
1201
1203
|
tooltipContent: zo,
|
|
1202
1204
|
withoutPointer: Uo,
|
|
@@ -1217,42 +1219,42 @@ const Zo = "mc__Tooltip-module__tooltipContainer", zo = "mc__Tooltip-module__too
|
|
|
1217
1219
|
text: l,
|
|
1218
1220
|
customText: i,
|
|
1219
1221
|
tooltipStyleType: v = "default",
|
|
1220
|
-
tooltipContentStyle:
|
|
1222
|
+
tooltipContentStyle: E,
|
|
1221
1223
|
tooltipTitlestyle: g,
|
|
1222
|
-
tooltipTextStyle:
|
|
1224
|
+
tooltipTextStyle: I,
|
|
1223
1225
|
tooltipContainerStyle: b,
|
|
1224
|
-
pointerPosition:
|
|
1225
|
-
withPointer:
|
|
1226
|
+
pointerPosition: S = "10%",
|
|
1227
|
+
withPointer: P = !1,
|
|
1226
1228
|
theme: h,
|
|
1227
1229
|
topCustomOffset: c = 0,
|
|
1228
1230
|
bottomCustomOffset: _ = 0,
|
|
1229
1231
|
leftCustomOffset: w = 0,
|
|
1230
1232
|
rightCustomOffset: y = 0,
|
|
1231
1233
|
forceClose: q = !1,
|
|
1232
|
-
onClick:
|
|
1234
|
+
onClick: Y
|
|
1233
1235
|
}) => {
|
|
1234
|
-
const
|
|
1236
|
+
const O = le(null), ee = le(null);
|
|
1235
1237
|
let te;
|
|
1236
|
-
const [
|
|
1237
|
-
a === "hover" &&
|
|
1238
|
+
const [B, Q] = F(!1), z = n || m || l || i, V = () => {
|
|
1239
|
+
a === "hover" && z && (te = setTimeout(() => {
|
|
1238
1240
|
Q(!0);
|
|
1239
1241
|
}, o));
|
|
1240
1242
|
}, j = () => {
|
|
1241
1243
|
a === "hover" && (clearTimeout(te), setTimeout(() => {
|
|
1242
1244
|
Q(!1);
|
|
1243
1245
|
}, o));
|
|
1244
|
-
},
|
|
1245
|
-
a === "click" && (
|
|
1246
|
+
}, Z = () => {
|
|
1247
|
+
a === "click" && (Y?.(), Q((d) => !d));
|
|
1246
1248
|
}, N = () => {
|
|
1247
|
-
const d =
|
|
1249
|
+
const d = O.current, C = ee.current;
|
|
1248
1250
|
if (!C || !d) return;
|
|
1249
|
-
const L = d.getBoundingClientRect(), $ = C.getBoundingClientRect(),
|
|
1251
|
+
const L = d.getBoundingClientRect(), $ = C.getBoundingClientRect(), W = window.innerWidth, ue = window.innerHeight;
|
|
1250
1252
|
C.style.position = "fixed";
|
|
1251
1253
|
const re = (ae, ie) => ({
|
|
1252
1254
|
fitsTop: ae >= 0,
|
|
1253
|
-
fitsBottom: ae + $.height <=
|
|
1255
|
+
fitsBottom: ae + $.height <= ue,
|
|
1254
1256
|
fitsLeft: ie >= 0,
|
|
1255
|
-
fitsRight: ie + $.width <=
|
|
1257
|
+
fitsRight: ie + $.width <= W
|
|
1256
1258
|
}), Ce = (ae, ie) => {
|
|
1257
1259
|
C.style.top = `${ae}px`, C.style.left = `${ie}px`;
|
|
1258
1260
|
};
|
|
@@ -1261,46 +1263,46 @@ const Zo = "mc__Tooltip-module__tooltipContainer", zo = "mc__Tooltip-module__too
|
|
|
1261
1263
|
case "top":
|
|
1262
1264
|
J = L.top - $.height - 8 + c - _, K = L.left + w - y;
|
|
1263
1265
|
const ae = re(J, K);
|
|
1264
|
-
ae.fitsTop || (J = L.bottom + 8 + _ - c), ae.fitsLeft ? ae.fitsRight || (K =
|
|
1266
|
+
ae.fitsTop || (J = L.bottom + 8 + _ - c), ae.fitsLeft ? ae.fitsRight || (K = W - $.width) : K = 0, Ce(J, K);
|
|
1265
1267
|
break;
|
|
1266
1268
|
case "bottom":
|
|
1267
1269
|
J = L.bottom + 8 + _ - c, K = L.left + w - y;
|
|
1268
1270
|
const ie = re(J, K);
|
|
1269
|
-
ie.fitsBottom || (J = L.top - $.height - 8 + c - _), ie.fitsLeft ? ie.fitsRight || (K =
|
|
1271
|
+
ie.fitsBottom || (J = L.top - $.height - 8 + c - _), ie.fitsLeft ? ie.fitsRight || (K = W - $.width) : K = 0, Ce(J, K);
|
|
1270
1272
|
break;
|
|
1271
1273
|
case "left":
|
|
1272
1274
|
J = L.top + c - _, K = L.left - $.width - 8 + w - y;
|
|
1273
1275
|
const pe = re(J, K);
|
|
1274
|
-
pe.fitsLeft || (K = L.right + 8 + y - w), pe.fitsTop ? pe.fitsBottom || (J =
|
|
1276
|
+
pe.fitsLeft || (K = L.right + 8 + y - w), pe.fitsTop ? pe.fitsBottom || (J = ue - $.height) : J = 0, Ce(J, K);
|
|
1275
1277
|
break;
|
|
1276
1278
|
case "right":
|
|
1277
1279
|
J = L.top + c - _, K = L.right + 8 + y - w;
|
|
1278
1280
|
const oe = re(J, K);
|
|
1279
|
-
oe.fitsRight || (K = L.left - $.width - 8 + w - y), oe.fitsTop ? oe.fitsBottom || (J =
|
|
1281
|
+
oe.fitsRight || (K = L.left - $.width - 8 + w - y), oe.fitsTop ? oe.fitsBottom || (J = ue - $.height) : J = 0, Ce(J, K);
|
|
1280
1282
|
break;
|
|
1281
1283
|
}
|
|
1282
1284
|
};
|
|
1283
1285
|
G(() => {
|
|
1284
1286
|
N();
|
|
1285
|
-
}, [
|
|
1287
|
+
}, [O, B, t, r, n, i, m, l]), G(() => {
|
|
1286
1288
|
const d = ($) => {
|
|
1287
|
-
|
|
1289
|
+
O.current?.contains($.target) || Q(!1);
|
|
1288
1290
|
}, C = ($) => {
|
|
1289
|
-
$.composedPath().includes(
|
|
1291
|
+
$.composedPath().includes(O.current) || Q(!1);
|
|
1290
1292
|
}, L = () => {
|
|
1291
|
-
|
|
1293
|
+
B && N();
|
|
1292
1294
|
};
|
|
1293
1295
|
return document.addEventListener("click", C), document.addEventListener("scroll", d, !0), window.addEventListener("resize", L), () => {
|
|
1294
1296
|
document.removeEventListener("scroll", d, !0), document.removeEventListener("click", C), window.removeEventListener("resize", L);
|
|
1295
1297
|
};
|
|
1296
|
-
}, [
|
|
1298
|
+
}, [B]), G(() => {
|
|
1297
1299
|
q && Q(!1);
|
|
1298
1300
|
}, [q]), G(() => {
|
|
1299
1301
|
const d = ee.current;
|
|
1300
|
-
d && (d.style.setProperty("--pointer-position", `${
|
|
1301
|
-
}, [
|
|
1302
|
+
d && (d.style.setProperty("--pointer-position", `${S}`), P || d.classList.add(xe.withoutPointer));
|
|
1303
|
+
}, [B]);
|
|
1302
1304
|
const k = () => ({
|
|
1303
|
-
...
|
|
1305
|
+
...E,
|
|
1304
1306
|
...v === "secondary" && {
|
|
1305
1307
|
borderRadius: "12px",
|
|
1306
1308
|
border: "1px solid #E6E6E6",
|
|
@@ -1311,34 +1313,34 @@ const Zo = "mc__Tooltip-module__tooltipContainer", zo = "mc__Tooltip-module__too
|
|
|
1311
1313
|
return /* @__PURE__ */ s(
|
|
1312
1314
|
"div",
|
|
1313
1315
|
{
|
|
1314
|
-
ref:
|
|
1315
|
-
className: `${h === "dark" ?
|
|
1316
|
-
onClick:
|
|
1317
|
-
onMouseEnter:
|
|
1316
|
+
ref: O,
|
|
1317
|
+
className: `${h === "dark" ? xe.dark : ""} ${xe.tooltipContainer}`,
|
|
1318
|
+
onClick: Z,
|
|
1319
|
+
onMouseEnter: V,
|
|
1318
1320
|
onMouseLeave: j,
|
|
1319
1321
|
style: b ?? {},
|
|
1320
1322
|
children: [
|
|
1321
1323
|
t,
|
|
1322
|
-
|
|
1324
|
+
B && n ? /* @__PURE__ */ e(
|
|
1323
1325
|
"div",
|
|
1324
1326
|
{
|
|
1325
1327
|
style: k(),
|
|
1326
1328
|
onClick: (d) => d.stopPropagation(),
|
|
1327
1329
|
ref: ee,
|
|
1328
|
-
className: `${
|
|
1330
|
+
className: `${xe.tooltipContent} ${r ? xe[r] : xe.bottom}`,
|
|
1329
1331
|
children: n
|
|
1330
1332
|
}
|
|
1331
|
-
) :
|
|
1333
|
+
) : B && /* @__PURE__ */ s(
|
|
1332
1334
|
"div",
|
|
1333
1335
|
{
|
|
1334
1336
|
style: k(),
|
|
1335
1337
|
onClick: (d) => d.stopPropagation(),
|
|
1336
1338
|
ref: ee,
|
|
1337
|
-
className: `${
|
|
1339
|
+
className: `${xe.tooltipContent} ${r ? xe[r] : xe.bottom}`,
|
|
1338
1340
|
children: [
|
|
1339
1341
|
i && typeof i == "string" && i,
|
|
1340
|
-
m && m.length > 0 && typeof m == "string" && /* @__PURE__ */ e("h2", { className:
|
|
1341
|
-
l && l.length > 0 && typeof l == "string" && /* @__PURE__ */ e("p", { className:
|
|
1342
|
+
m && m.length > 0 && typeof m == "string" && /* @__PURE__ */ e("h2", { className: xe.tooltipTitle, style: g ?? {}, children: m }),
|
|
1343
|
+
l && l.length > 0 && typeof l == "string" && /* @__PURE__ */ e("p", { className: xe.tooltipText, style: I ?? {}, children: l })
|
|
1342
1344
|
]
|
|
1343
1345
|
}
|
|
1344
1346
|
)
|
|
@@ -1389,23 +1391,23 @@ const Go = "mc__Popup-module__modalOverlay", er = "mc__Popup-module__popupDrawer
|
|
|
1389
1391
|
// "horizontal"
|
|
1390
1392
|
modalOverlayStyle: i,
|
|
1391
1393
|
popupContainerStyle: v,
|
|
1392
|
-
templateWrapperStyle:
|
|
1394
|
+
templateWrapperStyle: E,
|
|
1393
1395
|
closeButtonStyle: g
|
|
1394
1396
|
}) => {
|
|
1395
|
-
const
|
|
1397
|
+
const I = () => {
|
|
1396
1398
|
m && typeof m == "function" && m();
|
|
1397
|
-
}, b = le(null),
|
|
1398
|
-
|
|
1399
|
+
}, b = le(null), S = (P) => {
|
|
1400
|
+
P.target === b.current && a && typeof a == "function" && a();
|
|
1399
1401
|
};
|
|
1400
1402
|
return G(() => {
|
|
1401
1403
|
if (t) {
|
|
1402
|
-
const
|
|
1404
|
+
const P = document.body.style.overflow;
|
|
1403
1405
|
return document.body.style.overflow = "hidden", () => {
|
|
1404
|
-
document.body.style.overflow =
|
|
1406
|
+
document.body.style.overflow = P;
|
|
1405
1407
|
};
|
|
1406
1408
|
}
|
|
1407
|
-
}, [t]), G(() => (document.addEventListener("click",
|
|
1408
|
-
document.removeEventListener("click",
|
|
1409
|
+
}, [t]), G(() => (document.addEventListener("click", S), () => {
|
|
1410
|
+
document.removeEventListener("click", S);
|
|
1409
1411
|
}), []), t && /* @__PURE__ */ e(
|
|
1410
1412
|
"div",
|
|
1411
1413
|
{
|
|
@@ -1425,8 +1427,8 @@ const Go = "mc__Popup-module__modalOverlay", er = "mc__Popup-module__popupDrawer
|
|
|
1425
1427
|
${l === "horizontal" ? ze.horizontal : ""}
|
|
1426
1428
|
`,
|
|
1427
1429
|
children: [
|
|
1428
|
-
/* @__PURE__ */ e("div", { className: ze.closeButton, style: g ?? {}, onClick:
|
|
1429
|
-
/* @__PURE__ */ s("div", { className: ze.templateWrapper, style:
|
|
1430
|
+
/* @__PURE__ */ e("div", { className: ze.closeButton, style: g ?? {}, onClick: I, children: /* @__PURE__ */ e(kt, { color: "#131314" }) }),
|
|
1431
|
+
/* @__PURE__ */ s("div", { className: ze.templateWrapper, style: E ?? {}, children: [
|
|
1430
1432
|
n && n,
|
|
1431
1433
|
r && r
|
|
1432
1434
|
] })
|
|
@@ -1453,7 +1455,7 @@ Ge.propKeys = [
|
|
|
1453
1455
|
];
|
|
1454
1456
|
Ge.displayName = "Popup";
|
|
1455
1457
|
Ge.description = "A modal popup component with customizable templates, headers, and outside click handling for overlays.";
|
|
1456
|
-
const ir = "mc__NotificationToast-module__toastContainer", lr = "mc__NotificationToast-module__notificationToast", sr = "mc__NotificationToast-module__fadeIn", ar = "mc__NotificationToast-module__fadeOut", cr = "mc__NotificationToast-module__neutral", dr = "mc__NotificationToast-module__filled", ur = "mc__NotificationToast-module__notificationToastContentLeftTextTitle", mr = "mc__NotificationToast-module__notificationToastContentRightUndoText", pr = "mc__NotificationToast-module__notificationToastContentLeftTextDescription", hr = "mc__NotificationToast-module__info", fr = "mc__NotificationToast-module__error", _r = "mc__NotificationToast-module__success", Cr = "mc__NotificationToast-module__notificationToastContent", gr = "mc__NotificationToast-module__notificationToastContentLeft", wr = "mc__NotificationToast-module__notificationToastContentInfoIcon", yr = "mc__NotificationToast-module__notificationToastContentLeftText", vr = "mc__NotificationToast-module__notificationToastContentRight", br = "mc__NotificationToast-module__notificationToastContentRightClose",
|
|
1458
|
+
const ir = "mc__NotificationToast-module__toastContainer", lr = "mc__NotificationToast-module__notificationToast", sr = "mc__NotificationToast-module__fadeIn", ar = "mc__NotificationToast-module__fadeOut", cr = "mc__NotificationToast-module__neutral", dr = "mc__NotificationToast-module__filled", ur = "mc__NotificationToast-module__notificationToastContentLeftTextTitle", mr = "mc__NotificationToast-module__notificationToastContentRightUndoText", pr = "mc__NotificationToast-module__notificationToastContentLeftTextDescription", hr = "mc__NotificationToast-module__info", fr = "mc__NotificationToast-module__error", _r = "mc__NotificationToast-module__success", Cr = "mc__NotificationToast-module__notificationToastContent", gr = "mc__NotificationToast-module__notificationToastContentLeft", wr = "mc__NotificationToast-module__notificationToastContentInfoIcon", yr = "mc__NotificationToast-module__notificationToastContentLeftText", vr = "mc__NotificationToast-module__notificationToastContentRight", br = "mc__NotificationToast-module__notificationToastContentRightClose", ve = {
|
|
1457
1459
|
toastContainer: ir,
|
|
1458
1460
|
notificationToast: lr,
|
|
1459
1461
|
fadeIn: sr,
|
|
@@ -1482,39 +1484,39 @@ const ir = "mc__NotificationToast-module__toastContainer", lr = "mc__Notificatio
|
|
|
1482
1484
|
description: l,
|
|
1483
1485
|
customAction: i,
|
|
1484
1486
|
timeout: v = 4e3,
|
|
1485
|
-
children:
|
|
1487
|
+
children: E,
|
|
1486
1488
|
onUndo: g,
|
|
1487
|
-
onClose:
|
|
1489
|
+
onClose: I
|
|
1488
1490
|
}) => {
|
|
1489
|
-
const [b,
|
|
1491
|
+
const [b, S] = F("fadeIn");
|
|
1490
1492
|
G(() => {
|
|
1491
1493
|
const h = v, c = 300, _ = setTimeout(() => {
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
+
S("fadeOut"), setTimeout(() => {
|
|
1495
|
+
I?.();
|
|
1494
1496
|
}, c);
|
|
1495
1497
|
}, h);
|
|
1496
1498
|
return () => {
|
|
1497
1499
|
clearTimeout(_);
|
|
1498
1500
|
};
|
|
1499
|
-
}, [
|
|
1500
|
-
const
|
|
1501
|
+
}, [I]);
|
|
1502
|
+
const P = () => {
|
|
1501
1503
|
let h = {};
|
|
1502
1504
|
return l && (h.padding = "12px"), h;
|
|
1503
1505
|
};
|
|
1504
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
1505
|
-
/* @__PURE__ */ s("div", { className:
|
|
1506
|
-
m && /* @__PURE__ */ e("div", { className:
|
|
1507
|
-
/* @__PURE__ */ s("div", { className:
|
|
1508
|
-
t && /* @__PURE__ */ e("p", { className:
|
|
1509
|
-
l && /* @__PURE__ */ e("p", { className:
|
|
1510
|
-
|
|
1506
|
+
return /* @__PURE__ */ e("div", { className: `${ve.notificationToast} ${ve[n]} ${o ? "" : ve.filled} ${ve[b]}`, style: P(), children: /* @__PURE__ */ s("div", { className: ve.notificationToastContent, style: l ? { alignItems: "flex-start" } : {}, children: [
|
|
1507
|
+
/* @__PURE__ */ s("div", { className: ve.notificationToastContentLeft, style: l ? { alignItems: "flex-start" } : {}, children: [
|
|
1508
|
+
m && /* @__PURE__ */ e("div", { className: ve.notificationToastContentInfoIcon, children: n === "success" ? /* @__PURE__ */ e(Vt, { color: o ? "#fff" : "#328707" }) : /* @__PURE__ */ e(Ot, { color: o ? "#fff" : n === "neutral" ? "#131314" : n === "error" ? "#E3292F" : "#0058FF" }) }),
|
|
1509
|
+
/* @__PURE__ */ s("div", { className: ve.notificationToastContentLeftText, children: [
|
|
1510
|
+
t && /* @__PURE__ */ e("p", { className: ve.notificationToastContentLeftTextTitle, children: t }),
|
|
1511
|
+
l && /* @__PURE__ */ e("p", { className: ve.notificationToastContentLeftTextDescription, children: l }),
|
|
1512
|
+
E && E
|
|
1511
1513
|
] })
|
|
1512
1514
|
] }),
|
|
1513
|
-
/* @__PURE__ */ e("div", { className:
|
|
1514
|
-
/* @__PURE__ */ s("div", { className:
|
|
1515
|
+
/* @__PURE__ */ e("div", { className: ve.notificationToastContentDescription }),
|
|
1516
|
+
/* @__PURE__ */ s("div", { className: ve.notificationToastContentRight, children: [
|
|
1515
1517
|
i && i,
|
|
1516
|
-
!l && a && /* @__PURE__ */ e("p", { className:
|
|
1517
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
1518
|
+
!l && a && /* @__PURE__ */ e("p", { className: ve.notificationToastContentRightUndoText, onClick: () => g?.(), children: "Undo" }),
|
|
1519
|
+
r && /* @__PURE__ */ e("div", { className: ve.notificationToastContentRightClose, style: l || !a ? { border: "none" } : {}, onClick: () => I?.(), children: /* @__PURE__ */ e(
|
|
1518
1520
|
kt,
|
|
1519
1521
|
{
|
|
1520
1522
|
color: o ? "#fff" : n === "neutral" ? "#131314" : n === "error" ? "#E3292F" : n === "info" ? "#0058FF" : "#328707"
|
|
@@ -1522,16 +1524,16 @@ const ir = "mc__NotificationToast-module__toastContainer", lr = "mc__Notificatio
|
|
|
1522
1524
|
) })
|
|
1523
1525
|
] })
|
|
1524
1526
|
] }) });
|
|
1525
|
-
},
|
|
1527
|
+
}, xt = bt(null);
|
|
1526
1528
|
let Lr = 0;
|
|
1527
1529
|
const Tr = ({ children: t }) => {
|
|
1528
|
-
const [n, o] =
|
|
1530
|
+
const [n, o] = F([]), r = (m) => {
|
|
1529
1531
|
o((l) => {
|
|
1530
1532
|
const i = m.max ?? 1 / 0;
|
|
1531
1533
|
if (l.length >= i) return l;
|
|
1532
1534
|
const v = Lr++;
|
|
1533
1535
|
return setTimeout(() => {
|
|
1534
|
-
o((
|
|
1536
|
+
o((E) => E.filter((g) => g.id !== v));
|
|
1535
1537
|
}, m.timeout || 4e3), [...l, { id: v, props: m }];
|
|
1536
1538
|
});
|
|
1537
1539
|
}, a = Qe(() => {
|
|
@@ -1553,9 +1555,9 @@ const Tr = ({ children: t }) => {
|
|
|
1553
1555
|
return {};
|
|
1554
1556
|
}
|
|
1555
1557
|
}, [n.length]);
|
|
1556
|
-
return /* @__PURE__ */ s(
|
|
1558
|
+
return /* @__PURE__ */ s(xt.Provider, { value: { showToast: r }, children: [
|
|
1557
1559
|
t,
|
|
1558
|
-
n.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
1560
|
+
n.length > 0 && /* @__PURE__ */ e("div", { className: ve.toastContainer, style: a(), children: n.map(({ id: m, props: l }) => /* @__PURE__ */ e(
|
|
1559
1561
|
kr,
|
|
1560
1562
|
{
|
|
1561
1563
|
...l,
|
|
@@ -1569,7 +1571,7 @@ const Tr = ({ children: t }) => {
|
|
|
1569
1571
|
};
|
|
1570
1572
|
Tr.propKeys = ["children"];
|
|
1571
1573
|
const at = () => {
|
|
1572
|
-
const t = vt(
|
|
1574
|
+
const t = vt(xt);
|
|
1573
1575
|
if (!t) throw new Error("createNotificationToast must be used within ToastProvider");
|
|
1574
1576
|
return t.showToast;
|
|
1575
1577
|
};
|
|
@@ -1589,9 +1591,9 @@ at.propKeys = [
|
|
|
1589
1591
|
];
|
|
1590
1592
|
at.displayName = "Notification Toast";
|
|
1591
1593
|
at.description = "A function to create a notification toast.";
|
|
1592
|
-
const
|
|
1593
|
-
timepickerWrapper:
|
|
1594
|
-
timepickerInputWrapper:
|
|
1594
|
+
const xr = "mc__TimePicker-module__timepickerWrapper", Ir = "mc__TimePicker-module__timepickerInputWrapper", Nr = "mc__TimePicker-module__dropdownRightIcon", $r = "mc__TimePicker-module__dropdownRightIconClose", Mr = "mc__TimePicker-module__dropdownRightIconArrow", Dr = "mc__TimePicker-module__focused", Sr = "mc__TimePicker-module__timepickerDropdownWrapper", Pr = "mc__TimePicker-module__timepickerDropdownHeader", Hr = "mc__TimePicker-module__timepickerDropdownHeaderButtons", Ar = "mc__TimePicker-module__active", Rr = "mc__TimePicker-module__timepickerDropdownBody", Br = "mc__TimePicker-module__timepickerDropdownBodyHours", Wr = "mc__TimePicker-module__timepickerDropdownBodyMinutes", Fr = "mc__TimePicker-module__timepickerDropdownBodyAmPm", Er = "mc__TimePicker-module__timepickerDropdownFooter", he = {
|
|
1595
|
+
timepickerWrapper: xr,
|
|
1596
|
+
timepickerInputWrapper: Ir,
|
|
1595
1597
|
dropdownRightIcon: Nr,
|
|
1596
1598
|
dropdownRightIconClose: $r,
|
|
1597
1599
|
dropdownRightIconArrow: Mr,
|
|
@@ -1610,18 +1612,18 @@ var Or = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1610
1612
|
function Vr(t) {
|
|
1611
1613
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1612
1614
|
}
|
|
1613
|
-
var
|
|
1615
|
+
var It = { exports: {} };
|
|
1614
1616
|
(function(t, n) {
|
|
1615
1617
|
(function(o, r) {
|
|
1616
1618
|
t.exports = r();
|
|
1617
1619
|
})(Or, function() {
|
|
1618
|
-
var o = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, m = /\d\d/, l = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, v = {},
|
|
1620
|
+
var o = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, m = /\d\d/, l = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, v = {}, E = function(c) {
|
|
1619
1621
|
return (c = +c) + (c > 68 ? 1900 : 2e3);
|
|
1620
1622
|
}, g = function(c) {
|
|
1621
1623
|
return function(_) {
|
|
1622
1624
|
this[c] = +_;
|
|
1623
1625
|
};
|
|
1624
|
-
},
|
|
1626
|
+
}, I = [/[+-]\d\d:?(\d\d)?|Z/, function(c) {
|
|
1625
1627
|
(this.zone || (this.zone = {})).offset = function(_) {
|
|
1626
1628
|
if (!_ || _ === "Z") return 0;
|
|
1627
1629
|
var w = _.match(/([+-]|\d\d)/g), y = 60 * w[1] + (+w[2] || 0);
|
|
@@ -1630,7 +1632,7 @@ var xt = { exports: {} };
|
|
|
1630
1632
|
}], b = function(c) {
|
|
1631
1633
|
var _ = v[c];
|
|
1632
1634
|
return _ && (_.indexOf ? _ : _.s.concat(_.f));
|
|
1633
|
-
},
|
|
1635
|
+
}, S = function(c, _) {
|
|
1634
1636
|
var w, y = v.meridiem;
|
|
1635
1637
|
if (y) {
|
|
1636
1638
|
for (var q = 1; q <= 24; q += 1) if (c.indexOf(y(q, 0, _)) > -1) {
|
|
@@ -1639,10 +1641,10 @@ var xt = { exports: {} };
|
|
|
1639
1641
|
}
|
|
1640
1642
|
} else w = c === (_ ? "pm" : "PM");
|
|
1641
1643
|
return w;
|
|
1642
|
-
},
|
|
1643
|
-
this.afternoon =
|
|
1644
|
+
}, P = { A: [i, function(c) {
|
|
1645
|
+
this.afternoon = S(c, !1);
|
|
1644
1646
|
}], a: [i, function(c) {
|
|
1645
|
-
this.afternoon =
|
|
1647
|
+
this.afternoon = S(c, !0);
|
|
1646
1648
|
}], Q: [a, function(c) {
|
|
1647
1649
|
this.month = 3 * (c - 1) + 1;
|
|
1648
1650
|
}], S: [a, function(c) {
|
|
@@ -1665,73 +1667,73 @@ var xt = { exports: {} };
|
|
|
1665
1667
|
if (_ < 1) throw new Error();
|
|
1666
1668
|
this.month = _ % 12 || _;
|
|
1667
1669
|
}], Y: [/[+-]?\d+/, g("year")], YY: [m, function(c) {
|
|
1668
|
-
this.year =
|
|
1669
|
-
}], YYYY: [/\d{4}/, g("year")], Z:
|
|
1670
|
+
this.year = E(c);
|
|
1671
|
+
}], YYYY: [/\d{4}/, g("year")], Z: I, ZZ: I };
|
|
1670
1672
|
function h(c) {
|
|
1671
1673
|
var _, w;
|
|
1672
1674
|
_ = c, w = v && v.formats;
|
|
1673
|
-
for (var y = (c = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Q,
|
|
1674
|
-
var j =
|
|
1675
|
-
return
|
|
1675
|
+
for (var y = (c = _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Q, z, V) {
|
|
1676
|
+
var j = V && V.toUpperCase();
|
|
1677
|
+
return z || w[V] || o[V] || w[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(Z, N, k) {
|
|
1676
1678
|
return N || k.slice(1);
|
|
1677
1679
|
});
|
|
1678
|
-
})).match(r), q = y.length,
|
|
1679
|
-
var
|
|
1680
|
-
y[
|
|
1680
|
+
})).match(r), q = y.length, Y = 0; Y < q; Y += 1) {
|
|
1681
|
+
var O = y[Y], ee = P[O], te = ee && ee[0], B = ee && ee[1];
|
|
1682
|
+
y[Y] = B ? { regex: te, parser: B } : O.replace(/^\[|\]$/g, "");
|
|
1681
1683
|
}
|
|
1682
1684
|
return function(Q) {
|
|
1683
|
-
for (var
|
|
1684
|
-
var
|
|
1685
|
-
if (typeof
|
|
1685
|
+
for (var z = {}, V = 0, j = 0; V < q; V += 1) {
|
|
1686
|
+
var Z = y[V];
|
|
1687
|
+
if (typeof Z == "string") j += Z.length;
|
|
1686
1688
|
else {
|
|
1687
|
-
var N =
|
|
1688
|
-
k.call(
|
|
1689
|
+
var N = Z.regex, k = Z.parser, d = Q.slice(j), C = N.exec(d)[0];
|
|
1690
|
+
k.call(z, C), Q = Q.replace(C, "");
|
|
1689
1691
|
}
|
|
1690
1692
|
}
|
|
1691
1693
|
return function(L) {
|
|
1692
1694
|
var $ = L.afternoon;
|
|
1693
1695
|
if ($ !== void 0) {
|
|
1694
|
-
var
|
|
1695
|
-
$ ?
|
|
1696
|
+
var W = L.hours;
|
|
1697
|
+
$ ? W < 12 && (L.hours += 12) : W === 12 && (L.hours = 0), delete L.afternoon;
|
|
1696
1698
|
}
|
|
1697
|
-
}(
|
|
1699
|
+
}(z), z;
|
|
1698
1700
|
};
|
|
1699
1701
|
}
|
|
1700
1702
|
return function(c, _, w) {
|
|
1701
|
-
w.p.customParseFormat = !0, c && c.parseTwoDigitYear && (
|
|
1703
|
+
w.p.customParseFormat = !0, c && c.parseTwoDigitYear && (E = c.parseTwoDigitYear);
|
|
1702
1704
|
var y = _.prototype, q = y.parse;
|
|
1703
|
-
y.parse = function(
|
|
1704
|
-
var
|
|
1705
|
+
y.parse = function(Y) {
|
|
1706
|
+
var O = Y.date, ee = Y.utc, te = Y.args;
|
|
1705
1707
|
this.$u = ee;
|
|
1706
|
-
var
|
|
1707
|
-
if (typeof
|
|
1708
|
-
var Q = te[2] === !0,
|
|
1709
|
-
|
|
1708
|
+
var B = te[1];
|
|
1709
|
+
if (typeof B == "string") {
|
|
1710
|
+
var Q = te[2] === !0, z = te[3] === !0, V = Q || z, j = te[2];
|
|
1711
|
+
z && (j = te[2]), v = this.$locale(), !Q && j && (v = w.Ls[j]), this.$d = function(d, C, L, $) {
|
|
1710
1712
|
try {
|
|
1711
1713
|
if (["x", "X"].indexOf(C) > -1) return new Date((C === "X" ? 1e3 : 1) * d);
|
|
1712
|
-
var
|
|
1713
|
-
|
|
1714
|
-
var se, ne = J || 0, fe = K || 0, _e = ae || 0,
|
|
1715
|
-
return pe ? new Date(Date.UTC(T,
|
|
1714
|
+
var W = h(C)(d), ue = W.year, re = W.month, Ce = W.day, J = W.hours, K = W.minutes, ae = W.seconds, ie = W.milliseconds, pe = W.zone, oe = W.week, x = /* @__PURE__ */ new Date(), p = Ce || (ue || re ? 1 : x.getDate()), T = ue || x.getFullYear(), H = 0;
|
|
1715
|
+
ue && !re || (H = re > 0 ? re - 1 : x.getMonth());
|
|
1716
|
+
var se, ne = J || 0, fe = K || 0, _e = ae || 0, we = ie || 0;
|
|
1717
|
+
return pe ? new Date(Date.UTC(T, H, p, ne, fe, _e, we + 60 * pe.offset * 1e3)) : L ? new Date(Date.UTC(T, H, p, ne, fe, _e, we)) : (se = new Date(T, H, p, ne, fe, _e, we), oe && (se = $(se).week(oe).toDate()), se);
|
|
1716
1718
|
} catch {
|
|
1717
1719
|
return /* @__PURE__ */ new Date("");
|
|
1718
1720
|
}
|
|
1719
|
-
}(
|
|
1720
|
-
} else if (
|
|
1721
|
-
te[1] =
|
|
1721
|
+
}(O, B, ee, w), this.init(), j && j !== !0 && (this.$L = this.locale(j).$L), V && O != this.format(B) && (this.$d = /* @__PURE__ */ new Date("")), v = {};
|
|
1722
|
+
} else if (B instanceof Array) for (var Z = B.length, N = 1; N <= Z; N += 1) {
|
|
1723
|
+
te[1] = B[N - 1];
|
|
1722
1724
|
var k = w.apply(this, te);
|
|
1723
1725
|
if (k.isValid()) {
|
|
1724
1726
|
this.$d = k.$d, this.$L = k.$L, this.init();
|
|
1725
1727
|
break;
|
|
1726
1728
|
}
|
|
1727
|
-
N ===
|
|
1729
|
+
N === Z && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1728
1730
|
}
|
|
1729
|
-
else q.call(this,
|
|
1731
|
+
else q.call(this, Y);
|
|
1730
1732
|
};
|
|
1731
1733
|
};
|
|
1732
1734
|
});
|
|
1733
|
-
})(
|
|
1734
|
-
var Zr =
|
|
1735
|
+
})(It);
|
|
1736
|
+
var Zr = It.exports;
|
|
1735
1737
|
const ct = /* @__PURE__ */ Vr(Zr);
|
|
1736
1738
|
M.extend(ct);
|
|
1737
1739
|
const dt = ({
|
|
@@ -1744,30 +1746,30 @@ const dt = ({
|
|
|
1744
1746
|
onChange: l,
|
|
1745
1747
|
onFocus: i,
|
|
1746
1748
|
onBlur: v,
|
|
1747
|
-
...
|
|
1749
|
+
...E
|
|
1748
1750
|
}) => {
|
|
1749
|
-
const g = le(null),
|
|
1750
|
-
if (!g.current || !
|
|
1751
|
-
const k = g.current, d =
|
|
1751
|
+
const g = le(null), I = le(null), [b, S] = F(!1), [P, h] = F(n), c = Array.from({ length: 12 }, (k, d) => d < 10 ? `0${d}` : `${d}`), _ = Array.from({ length: 24 }, (k, d) => d < 10 ? `0${d}` : `${d}`), w = Array.from({ length: 60 }, (k, d) => d < 10 ? `0${d}` : `${d}`), [y, q] = F(""), [Y, O] = F(null), [ee, te] = F(null), [B, Q] = F(o), z = () => {
|
|
1752
|
+
if (!g.current || !I.current) return;
|
|
1753
|
+
const k = g.current, d = I.current;
|
|
1752
1754
|
if (!d || !k) return;
|
|
1753
1755
|
const C = k.getBoundingClientRect(), L = window.innerHeight, $ = window.innerWidth;
|
|
1754
1756
|
d.style.position = "fixed", C.bottom + d.offsetHeight > L ? (d.style.top = `${C.top - d.offsetHeight + 20}px`, d.style.bottom = "unset") : (d.style.top = `${C.bottom + 8}px`, d.style.bottom = "unset"), C.right + C.width > $ - 120 ? d.style.left = `${C.left + C.width - d.offsetWidth}px` : d.style.left = `${C.left}px`;
|
|
1755
|
-
},
|
|
1757
|
+
}, V = () => {
|
|
1756
1758
|
requestAnimationFrame(() => {
|
|
1757
|
-
|
|
1759
|
+
z();
|
|
1758
1760
|
});
|
|
1759
1761
|
}, j = () => {
|
|
1760
1762
|
i?.();
|
|
1761
|
-
},
|
|
1762
|
-
q(""), te(null),
|
|
1763
|
+
}, Z = () => {
|
|
1764
|
+
q(""), te(null), O(null), Q("AM");
|
|
1763
1765
|
};
|
|
1764
1766
|
G(() => {
|
|
1765
1767
|
t && t.length > 0 && q(t);
|
|
1766
1768
|
}, [t]), G(() => {
|
|
1767
|
-
if (!ee && !
|
|
1768
|
-
const k = parseInt(ee ?? "0", 10), d = parseInt(
|
|
1769
|
+
if (!ee && !Y) return;
|
|
1770
|
+
const k = parseInt(ee ?? "0", 10), d = parseInt(Y ?? "0", 10), C = P === "12" ? B === "PM" && k < 12 ? k + 12 : B === "AM" && k === 12 ? 0 : k : k, L = M().hour(C).minute(d).format(P === "12" ? "hh:mm A" : "HH:mm");
|
|
1769
1771
|
q(L), r || l?.(L);
|
|
1770
|
-
}, [ee,
|
|
1772
|
+
}, [ee, Y, B, P]);
|
|
1771
1773
|
const N = le(!0);
|
|
1772
1774
|
return G(() => {
|
|
1773
1775
|
if (N.current) {
|
|
@@ -1776,24 +1778,24 @@ const dt = ({
|
|
|
1776
1778
|
}
|
|
1777
1779
|
b || v?.();
|
|
1778
1780
|
}, [b]), G(() => {
|
|
1779
|
-
|
|
1781
|
+
V();
|
|
1780
1782
|
}, [g, b]), G(() => {
|
|
1781
1783
|
const k = (L) => {
|
|
1782
|
-
!g.current || !
|
|
1784
|
+
!g.current || !I.current || L.composedPath().includes(g.current) || L.composedPath().includes(I.current) || S(!1);
|
|
1783
1785
|
}, d = (L) => {
|
|
1784
|
-
!g.current ||
|
|
1786
|
+
!g.current || I.current || S(!1);
|
|
1785
1787
|
}, C = () => {
|
|
1786
|
-
b &&
|
|
1788
|
+
b && V();
|
|
1787
1789
|
};
|
|
1788
1790
|
return document.addEventListener("click", k), document.addEventListener("wheel", d), window.addEventListener("scroll", C), () => {
|
|
1789
1791
|
document.removeEventListener("click", k), document.removeEventListener("wheel", d), window.removeEventListener("scroll", C);
|
|
1790
1792
|
};
|
|
1791
1793
|
}, [b]), /* @__PURE__ */ s("div", { className: `${he.timepickerWrapper} ${b ? he.focused : ""}`, children: [
|
|
1792
|
-
/* @__PURE__ */ e("div", { ref: g, className: he.timepickerInputWrapper, onClick: () => (
|
|
1794
|
+
/* @__PURE__ */ e("div", { ref: g, className: he.timepickerInputWrapper, onClick: () => (S((k) => !k), V()), onFocus: j, children: /* @__PURE__ */ e(
|
|
1793
1795
|
Fe,
|
|
1794
1796
|
{
|
|
1795
|
-
...
|
|
1796
|
-
onFocusChange: (k) =>
|
|
1797
|
+
...E,
|
|
1798
|
+
onFocusChange: (k) => S(k),
|
|
1797
1799
|
customFocus: b,
|
|
1798
1800
|
withActive: !1,
|
|
1799
1801
|
value: y,
|
|
@@ -1804,7 +1806,7 @@ const dt = ({
|
|
|
1804
1806
|
"div",
|
|
1805
1807
|
{
|
|
1806
1808
|
onClick: (k) => {
|
|
1807
|
-
k.stopPropagation(),
|
|
1809
|
+
k.stopPropagation(), Z();
|
|
1808
1810
|
},
|
|
1809
1811
|
className: he.dropdownRightIconClose,
|
|
1810
1812
|
children: /* @__PURE__ */ e(Je, {})
|
|
@@ -1816,14 +1818,14 @@ const dt = ({
|
|
|
1816
1818
|
forDropdown: !0
|
|
1817
1819
|
}
|
|
1818
1820
|
) }),
|
|
1819
|
-
b && /* @__PURE__ */ s("div", { ref:
|
|
1821
|
+
b && /* @__PURE__ */ s("div", { ref: I, className: he.timepickerDropdownWrapper, children: [
|
|
1820
1822
|
/* @__PURE__ */ e("div", { className: he.timepickerDropdownHeader, children: /* @__PURE__ */ s("div", { className: he.timepickerDropdownHeaderButtons, children: [
|
|
1821
1823
|
/* @__PURE__ */ e(
|
|
1822
1824
|
"p",
|
|
1823
1825
|
{
|
|
1824
|
-
className:
|
|
1826
|
+
className: P === "12" ? he.active : "",
|
|
1825
1827
|
onClick: () => {
|
|
1826
|
-
|
|
1828
|
+
Z(), h("12");
|
|
1827
1829
|
},
|
|
1828
1830
|
children: "AM -PM"
|
|
1829
1831
|
}
|
|
@@ -1831,20 +1833,20 @@ const dt = ({
|
|
|
1831
1833
|
/* @__PURE__ */ e(
|
|
1832
1834
|
"p",
|
|
1833
1835
|
{
|
|
1834
|
-
className:
|
|
1836
|
+
className: P === "24" ? he.active : "",
|
|
1835
1837
|
onClick: () => {
|
|
1836
|
-
|
|
1838
|
+
Z(), h("24");
|
|
1837
1839
|
},
|
|
1838
1840
|
children: "24 Hours"
|
|
1839
1841
|
}
|
|
1840
1842
|
)
|
|
1841
1843
|
] }) }),
|
|
1842
1844
|
/* @__PURE__ */ s("div", { className: he.timepickerDropdownBody, children: [
|
|
1843
|
-
/* @__PURE__ */ e("div", { className: he.timepickerDropdownBodyHours, children: (
|
|
1844
|
-
/* @__PURE__ */ e("div", { className: he.timepickerDropdownBodyMinutes, children: w.map((k) => /* @__PURE__ */ e("p", { className:
|
|
1845
|
-
|
|
1846
|
-
/* @__PURE__ */ e("p", { className:
|
|
1847
|
-
/* @__PURE__ */ e("p", { className:
|
|
1845
|
+
/* @__PURE__ */ e("div", { className: he.timepickerDropdownBodyHours, children: (P === "12" ? c : _).map((k) => /* @__PURE__ */ e("p", { className: ee === k || y?.split(":")[0] === k ? he.active : "", onClick: () => te(k), children: k }, k)) }),
|
|
1846
|
+
/* @__PURE__ */ e("div", { className: he.timepickerDropdownBodyMinutes, children: w.map((k) => /* @__PURE__ */ e("p", { className: Y === k || y?.split(":")[1] === k ? he.active : "", onClick: () => O(k), children: k }, k)) }),
|
|
1847
|
+
P === "12" && /* @__PURE__ */ s("div", { className: he.timepickerDropdownBodyAmPm, children: [
|
|
1848
|
+
/* @__PURE__ */ e("p", { className: B === "AM" ? he.active : "", onClick: () => Q("AM"), children: "AM" }, "AM"),
|
|
1849
|
+
/* @__PURE__ */ e("p", { className: B === "PM" ? he.active : "", onClick: () => Q("PM"), children: "PM" }, "PM")
|
|
1848
1850
|
] })
|
|
1849
1851
|
] }),
|
|
1850
1852
|
r && /* @__PURE__ */ e("div", { className: he.timepickerDropdownFooter, children: /* @__PURE__ */ e(Ne, { label: "Confirm time", onClick: () => l?.(y) }) })
|
|
@@ -1898,58 +1900,58 @@ const yi = ({
|
|
|
1898
1900
|
namespace: l,
|
|
1899
1901
|
customYears: i,
|
|
1900
1902
|
setSelectedDate: v,
|
|
1901
|
-
IsFocused:
|
|
1903
|
+
IsFocused: E,
|
|
1902
1904
|
setIsFocused: g,
|
|
1903
|
-
mode:
|
|
1905
|
+
mode: I,
|
|
1904
1906
|
RangeSelection: b,
|
|
1905
|
-
setRangeSelection:
|
|
1906
|
-
pickerType:
|
|
1907
|
+
setRangeSelection: S,
|
|
1908
|
+
pickerType: P,
|
|
1907
1909
|
disabledDatesRange: h,
|
|
1908
1910
|
disabledDatesTill: c,
|
|
1909
1911
|
disabledDatesFrom: _,
|
|
1910
1912
|
CalendarRef: w,
|
|
1911
1913
|
defaultValue: y,
|
|
1912
1914
|
selectedStyle: q,
|
|
1913
|
-
endDateStyle:
|
|
1914
|
-
startDateStyle:
|
|
1915
|
+
endDateStyle: Y,
|
|
1916
|
+
startDateStyle: O,
|
|
1915
1917
|
inRangeStyle: ee,
|
|
1916
1918
|
otherMonthStyle: te,
|
|
1917
|
-
todayStyle:
|
|
1919
|
+
todayStyle: B,
|
|
1918
1920
|
weekDayStyle: Q,
|
|
1919
|
-
quickPickStyle:
|
|
1920
|
-
monthStyle:
|
|
1921
|
+
quickPickStyle: z,
|
|
1922
|
+
monthStyle: V
|
|
1921
1923
|
}) => {
|
|
1922
|
-
const j = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
|
|
1924
|
+
const j = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Z = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1923
1925
|
M().year();
|
|
1924
|
-
const [N, k] =
|
|
1925
|
-
if (i?.length && !i.includes(
|
|
1926
|
+
const [N, k] = F(""), d = le([]), [C, L] = F(!1), $ = (x) => {
|
|
1927
|
+
if (i?.length && !i.includes(x.year().toString()))
|
|
1926
1928
|
return [];
|
|
1927
|
-
const p = (
|
|
1929
|
+
const p = (x.startOf("month").day() + 6) % 7, T = x.endOf("month").date(), H = x.subtract(1, "month").endOf("month").date(), se = [];
|
|
1928
1930
|
let ne = [], fe = 1;
|
|
1929
|
-
for (let
|
|
1931
|
+
for (let we = 0; we < p; we++)
|
|
1930
1932
|
ne.push({
|
|
1931
|
-
date:
|
|
1933
|
+
date: x.subtract(1, "month").date(H - p + we + 1),
|
|
1932
1934
|
currentMonth: !1
|
|
1933
1935
|
});
|
|
1934
1936
|
for (; fe <= T; )
|
|
1935
|
-
ne.push({ date:
|
|
1937
|
+
ne.push({ date: x.date(fe++), currentMonth: !0 }), ne.length === 7 && (se.push(ne), ne = []);
|
|
1936
1938
|
let _e = 1;
|
|
1937
1939
|
for (; se.length < 5; )
|
|
1938
1940
|
ne.length === 7 && (se.push(ne), ne = []), ne.push({
|
|
1939
|
-
date:
|
|
1941
|
+
date: x.add(1, "month").date(_e++),
|
|
1940
1942
|
currentMonth: !1
|
|
1941
1943
|
});
|
|
1942
1944
|
if (ne.length) {
|
|
1943
1945
|
for (; ne.length < 7; )
|
|
1944
1946
|
ne.push({
|
|
1945
|
-
date:
|
|
1947
|
+
date: x.add(1, "month").date(_e++),
|
|
1946
1948
|
currentMonth: !1
|
|
1947
1949
|
});
|
|
1948
1950
|
se.push(ne);
|
|
1949
1951
|
}
|
|
1950
1952
|
return se;
|
|
1951
|
-
},
|
|
1952
|
-
let
|
|
1953
|
+
}, W = $(r), ue = P === "dual" ? $(r.add(1, "month")) : null, re = () => {
|
|
1954
|
+
let x = [];
|
|
1953
1955
|
return n && Array.isArray(n) && n.length > 0 && n.forEach((p) => {
|
|
1954
1956
|
switch (p) {
|
|
1955
1957
|
case "today":
|
|
@@ -1980,66 +1982,66 @@ const yi = ({
|
|
|
1980
1982
|
d.current.push({ name: "All time", key: "Alltime" });
|
|
1981
1983
|
break;
|
|
1982
1984
|
}
|
|
1983
|
-
}), d.current = Lt(d.current, "key"),
|
|
1984
|
-
}, Ce = (
|
|
1985
|
+
}), d.current = Lt(d.current, "key"), x = d.current, x;
|
|
1986
|
+
}, Ce = (x) => {
|
|
1985
1987
|
let p = { start: "", end: "" };
|
|
1986
|
-
switch (v(null),
|
|
1988
|
+
switch (v(null), x.key?.toLowerCase()) {
|
|
1987
1989
|
case "today":
|
|
1988
|
-
|
|
1990
|
+
S({
|
|
1989
1991
|
start: M(),
|
|
1990
1992
|
end: M()
|
|
1991
1993
|
}), p.start = M();
|
|
1992
1994
|
break;
|
|
1993
1995
|
case "yesterday":
|
|
1994
|
-
v(M().subtract(1, "day")),
|
|
1996
|
+
v(M().subtract(1, "day")), S({
|
|
1995
1997
|
start: M().subtract(1, "day"),
|
|
1996
1998
|
end: M().subtract(1, "day")
|
|
1997
1999
|
}), p.start = M().subtract(1, "day");
|
|
1998
2000
|
break;
|
|
1999
2001
|
case "thisweek":
|
|
2000
|
-
|
|
2002
|
+
S({
|
|
2001
2003
|
start: M().startOf("week"),
|
|
2002
2004
|
end: M().endOf("week")
|
|
2003
2005
|
}), p.start = M().startOf("week"), p.end = M().endOf("week");
|
|
2004
2006
|
break;
|
|
2005
2007
|
case "lastweek":
|
|
2006
|
-
|
|
2008
|
+
S({
|
|
2007
2009
|
start: M().subtract(1, "week").startOf("week"),
|
|
2008
2010
|
end: M().subtract(1, "week").endOf("week")
|
|
2009
2011
|
}), p.start = M().subtract(1, "week").startOf("week"), p.end = M().subtract(1, "week").endOf("week");
|
|
2010
2012
|
break;
|
|
2011
2013
|
case "thismonth":
|
|
2012
|
-
|
|
2014
|
+
S({
|
|
2013
2015
|
start: M().startOf("month"),
|
|
2014
2016
|
end: M().endOf("month")
|
|
2015
2017
|
}), p.start = M().startOf("month"), p.end = M().endOf("month");
|
|
2016
2018
|
break;
|
|
2017
2019
|
case "lastmonth":
|
|
2018
|
-
|
|
2020
|
+
S({
|
|
2019
2021
|
start: M().subtract(1, "month").startOf("month"),
|
|
2020
2022
|
end: M().subtract(1, "month").endOf("month")
|
|
2021
2023
|
}), p.start = M().subtract(1, "month").startOf("month"), p.end = M().subtract(1, "month").endOf("month");
|
|
2022
2024
|
break;
|
|
2023
2025
|
case "thisyear":
|
|
2024
|
-
|
|
2026
|
+
S({
|
|
2025
2027
|
start: M().startOf("year"),
|
|
2026
2028
|
end: M().endOf("year")
|
|
2027
2029
|
}), p.start = M().startOf("year"), p.end = M().endOf("year");
|
|
2028
2030
|
break;
|
|
2029
2031
|
case "lastyear":
|
|
2030
|
-
|
|
2032
|
+
S({
|
|
2031
2033
|
start: M().subtract(1, "year").startOf("year"),
|
|
2032
2034
|
end: M().subtract(1, "year").endOf("year")
|
|
2033
2035
|
}), p.start = M().subtract(1, "year").startOf("year"), p.end = M().subtract(1, "year").endOf("year");
|
|
2034
2036
|
break;
|
|
2035
2037
|
case "alltime":
|
|
2036
|
-
|
|
2038
|
+
S({
|
|
2037
2039
|
start: "",
|
|
2038
2040
|
end: ""
|
|
2039
2041
|
}), p.start = "", p.end = "";
|
|
2040
2042
|
break;
|
|
2041
2043
|
default:
|
|
2042
|
-
console.warn("Unsupported quick pick option:",
|
|
2044
|
+
console.warn("Unsupported quick pick option:", x);
|
|
2043
2045
|
break;
|
|
2044
2046
|
}
|
|
2045
2047
|
if (o && typeof o == "function") {
|
|
@@ -2050,17 +2052,17 @@ const yi = ({
|
|
|
2050
2052
|
g(!1), o(T.end === "" ? T.start : T);
|
|
2051
2053
|
}
|
|
2052
2054
|
}, J = () => {
|
|
2053
|
-
}, K = (
|
|
2054
|
-
p || a(
|
|
2055
|
-
start:
|
|
2055
|
+
}, K = (x, p, T = !1) => {
|
|
2056
|
+
p || a(x.startOf("month")), I === "range" ? S((H) => !H.start || H.start && H.end ? (o && typeof o == "function" && o({
|
|
2057
|
+
start: x ?? "",
|
|
2056
2058
|
end: ""
|
|
2057
|
-
}), { start:
|
|
2058
|
-
start:
|
|
2059
|
-
end:
|
|
2060
|
-
}), { start:
|
|
2061
|
-
...
|
|
2062
|
-
end:
|
|
2063
|
-
}), { ...
|
|
2059
|
+
}), { start: x ?? "", end: "" }) : H.start && !H.end ? x.isBefore(H.start, "day") ? (o && typeof o == "function" && o({
|
|
2060
|
+
start: x ?? "",
|
|
2061
|
+
end: H?.start ?? ""
|
|
2062
|
+
}), { start: x ?? "", end: H?.start ?? "" }) : (o({
|
|
2063
|
+
...H,
|
|
2064
|
+
end: x ?? ""
|
|
2065
|
+
}), { ...H, end: x ?? "" }) : H) : (S({ start: null, end: null }), v(x), T || (g(!1), o && typeof o == "function" && o(x.format(t))));
|
|
2064
2066
|
}, ae = () => {
|
|
2065
2067
|
a(r.add(1, "month"));
|
|
2066
2068
|
}, ie = () => {
|
|
@@ -2071,16 +2073,16 @@ const yi = ({
|
|
|
2071
2073
|
a(r.subtract(1, "year"));
|
|
2072
2074
|
};
|
|
2073
2075
|
return G(() => {
|
|
2074
|
-
y?.state && (Array.isArray(y?.value) ?
|
|
2076
|
+
y?.state && (Array.isArray(y?.value) ? S({ start: M(y?.value[0], t), end: M(y?.value[1], t) }) : K(M(y.value), !1, !0), y.state = !1);
|
|
2075
2077
|
}, []), /* @__PURE__ */ e(
|
|
2076
2078
|
"div",
|
|
2077
2079
|
{
|
|
2078
2080
|
ref: w,
|
|
2079
|
-
className: `${l === "namespaceHr" ? X.namespaceHr : ""} ${X.datePicker} ${
|
|
2080
|
-
onClick: (
|
|
2081
|
-
style:
|
|
2081
|
+
className: `${l === "namespaceHr" ? X.namespaceHr : ""} ${X.datePicker} ${E ? X.focused : ""} ${P === "dual" ? n && Array.isArray(n) && n.length > 0 ? X.dualCalendarWithQuick : X.dualCalendar : ""} `,
|
|
2082
|
+
onClick: (x) => x.stopPropagation(),
|
|
2083
|
+
style: P === "dual" && n && Array.isArray(n) && n.length > 0 ? { width: "848px" } : {},
|
|
2082
2084
|
children: /* @__PURE__ */ s("div", { className: X.div, children: [
|
|
2083
|
-
|
|
2085
|
+
P === "dual" ? /* @__PURE__ */ s("div", { style: { width: "100%", display: "flex", justifyContent: "space-between" }, children: [
|
|
2084
2086
|
/* @__PURE__ */ s("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-start", gap: "80px" }, children: [
|
|
2085
2087
|
/* @__PURE__ */ s("div", { className: X.left, children: [
|
|
2086
2088
|
(!i || i.length > 1) && (!i || r.year() > Math.min(...i.map(Number))) ? /* @__PURE__ */ s("div", { className: X.doubleIcon, onClick: oe, children: [
|
|
@@ -2089,10 +2091,10 @@ const yi = ({
|
|
|
2089
2091
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2090
2092
|
!i || i && r.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: ie, children: /* @__PURE__ */ e(Oe, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2091
2093
|
] }),
|
|
2092
|
-
/* @__PURE__ */ e("div", { style:
|
|
2094
|
+
/* @__PURE__ */ e("div", { style: V ?? {}, children: i && i.length === 1 ? r.format("MMMM") : r.format("MMMM YYYY") })
|
|
2093
2095
|
] }),
|
|
2094
2096
|
/* @__PURE__ */ s("div", { style: { width: "50%", display: "flex", alignItems: "center", justifyContent: "flex-end", gap: "80px" }, children: [
|
|
2095
|
-
/* @__PURE__ */ e("span", { style:
|
|
2097
|
+
/* @__PURE__ */ e("span", { style: V ?? {}, children: i && i.length === 1 ? r.add(1, "month").format("MMMM") : r.add(1, "month").format("MMMM YYYY") }),
|
|
2096
2098
|
/* @__PURE__ */ s("div", { className: X.right, children: [
|
|
2097
2099
|
!i || i && r.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: ae, children: /* @__PURE__ */ e(Ve, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2098
2100
|
(!i || i.length > 1) && (!i || r.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ s("div", { className: X.doubleIcon, onClick: pe, children: [
|
|
@@ -2110,7 +2112,7 @@ const yi = ({
|
|
|
2110
2112
|
] }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2111
2113
|
!i || i && r.format("MMMM YYYY") !== `January ${Math.min(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: ie, children: /* @__PURE__ */ e(Oe, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } })
|
|
2112
2114
|
] }),
|
|
2113
|
-
/* @__PURE__ */ e("div", { className: X.currentDateHeader, style:
|
|
2115
|
+
/* @__PURE__ */ e("div", { className: X.currentDateHeader, style: V ?? {}, onClick: J, children: i && i.length === 1 ? r.format("MMMM") : r.format("MMMM YYYY") }),
|
|
2114
2116
|
/* @__PURE__ */ s("div", { className: X.right, children: [
|
|
2115
2117
|
!i || i && r.format("MMMM YYYY") !== `December ${Math.max(...i.map(Number))}` ? /* @__PURE__ */ e("div", { className: X.singleIcon, onClick: ae, children: /* @__PURE__ */ e(Ve, {}) }) : /* @__PURE__ */ e("div", { style: { width: "20px", height: "20px" } }),
|
|
2116
2118
|
(!i || i.length > 1) && (!i || r.year() < Math.max(...i.map(Number))) ? /* @__PURE__ */ s("div", { className: X.doubleIcon, onClick: pe, children: [
|
|
@@ -2119,41 +2121,41 @@ const yi = ({
|
|
|
2119
2121
|
] }) : /* @__PURE__ */ e("div", { className: X.doubleIcon })
|
|
2120
2122
|
] })
|
|
2121
2123
|
] }),
|
|
2122
|
-
|
|
2124
|
+
P === "single" && n && Array.isArray(n) && n.length > 0 && /* @__PURE__ */ e("ul", { className: X.quickPick, children: re().slice(0, 3).map((x) => /* @__PURE__ */ e("li", { style: z ?? {}, onClick: () => Ce(x), children: x.name }, x.key)) })
|
|
2123
2125
|
] }),
|
|
2124
2126
|
/* @__PURE__ */ s("div", { className: X.calendarWrapper, children: [
|
|
2125
|
-
C ? /* @__PURE__ */ e("ul", { className: X.monthsWrapper, children:
|
|
2126
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: j.map((
|
|
2127
|
+
C ? /* @__PURE__ */ e("ul", { className: X.monthsWrapper, children: Z.map((x) => /* @__PURE__ */ e("li", { className: `${X.month} ${N === x ? X.pickedMonth : ""}`, onClick: () => k(x), children: /* @__PURE__ */ e("div", { className: X.monthName, children: x }) })) }) : /* @__PURE__ */ s("table", { children: [
|
|
2128
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: j.map((x) => /* @__PURE__ */ e("th", { style: Q ?? {}, children: x }, x)) }) }),
|
|
2127
2129
|
/* @__PURE__ */ s("tbody", { children: [
|
|
2128
2130
|
/* @__PURE__ */ e("tr", { className: X.spacerRow, children: /* @__PURE__ */ e("td", {}) }),
|
|
2129
|
-
|
|
2130
|
-
const ne = b.start && b.end && T.isAfter(b.start, "day") && T.isBefore(b.end, "day"), fe = b.start && T.isSame(b.start, "day"), _e = b.end && T.isSame(b.end, "day"),
|
|
2131
|
+
W.map((x, p) => /* @__PURE__ */ e("tr", { children: x.map(({ date: T, currentMonth: H }, se) => {
|
|
2132
|
+
const ne = b.start && b.end && T.isAfter(b.start, "day") && T.isBefore(b.end, "day"), fe = b.start && T.isSame(b.start, "day"), _e = b.end && T.isSame(b.end, "day"), we = I === "single" && m && T.isSame(m, "day"), $e = c && T.isBefore(M(c), "day"), Ie = _ && T.isAfter(M(_), "day");
|
|
2131
2133
|
let Me = !1;
|
|
2132
2134
|
if (h?.length === 2) {
|
|
2133
2135
|
const [be, De] = h.map((Se) => M(Se));
|
|
2134
2136
|
Me = T.isAfter(be.subtract(1, "day")) && T.isBefore(De.add(1, "day"));
|
|
2135
2137
|
}
|
|
2136
|
-
const Ae =
|
|
2138
|
+
const Ae = Ie || $e || Me;
|
|
2137
2139
|
return /* @__PURE__ */ e(
|
|
2138
2140
|
"td",
|
|
2139
2141
|
{
|
|
2140
2142
|
style: {
|
|
2141
|
-
...
|
|
2142
|
-
...T.isSame(M(), "day") ?
|
|
2143
|
+
...H ? {} : te,
|
|
2144
|
+
...T.isSame(M(), "day") ? B : {},
|
|
2143
2145
|
...ne ? ee : {},
|
|
2144
|
-
...fe ?
|
|
2145
|
-
..._e ?
|
|
2146
|
-
...
|
|
2146
|
+
...fe ? O : {},
|
|
2147
|
+
..._e ? Y : {},
|
|
2148
|
+
...we ? q : {}
|
|
2147
2149
|
},
|
|
2148
2150
|
className: `${X.day}
|
|
2149
|
-
${
|
|
2150
|
-
${
|
|
2151
|
-
${
|
|
2152
|
-
${
|
|
2153
|
-
${
|
|
2154
|
-
${!
|
|
2151
|
+
${H ? "" : X.otherMonth}
|
|
2152
|
+
${H && T.isSame(M(), "day") ? X.today : ""}
|
|
2153
|
+
${H && ne ? X.inRange : ""}
|
|
2154
|
+
${H && fe ? X.startDate : ""}
|
|
2155
|
+
${H && _e ? X.endDate : ""}
|
|
2156
|
+
${!H && !ne && !_e ? "" : we ? X.selected : ""}
|
|
2155
2157
|
${Ae ? X.disabled : ""}`,
|
|
2156
|
-
onClick: () => K(T,
|
|
2158
|
+
onClick: () => K(T, H),
|
|
2157
2159
|
children: T.date()
|
|
2158
2160
|
},
|
|
2159
2161
|
se
|
|
@@ -2162,37 +2164,37 @@ const yi = ({
|
|
|
2162
2164
|
] })
|
|
2163
2165
|
] }),
|
|
2164
2166
|
/* @__PURE__ */ e("div", { className: X.buttonWrapper, children: /* @__PURE__ */ e(Ne, { label: "Current date", onClick: () => K(M(), !0) }) }),
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: j.map((
|
|
2168
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
2169
|
-
const ne = b.start && b.end && T.isAfter(b.start, "day") && T.isBefore(b.end, "day"), fe = b.start && T.isSame(b.start, "day"), _e = b.end && T.isSame(b.end, "day"),
|
|
2167
|
+
P === "dual" && /* @__PURE__ */ e("div", { className: X.border }),
|
|
2168
|
+
P === "dual" && /* @__PURE__ */ s("table", { children: [
|
|
2169
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: j.map((x) => /* @__PURE__ */ e("th", { style: Q ?? {}, children: x }, x)) }) }),
|
|
2170
|
+
/* @__PURE__ */ e("tbody", { children: ue?.map((x, p) => /* @__PURE__ */ e("tr", { children: x.map(({ date: T, currentMonth: H }, se) => {
|
|
2171
|
+
const ne = b.start && b.end && T.isAfter(b.start, "day") && T.isBefore(b.end, "day"), fe = b.start && T.isSame(b.start, "day"), _e = b.end && T.isSame(b.end, "day"), we = I === "single" && m && T.isSame(m, "day"), $e = c && T.isBefore(M(c), "day"), Ie = _ && T.isAfter(M(_), "day");
|
|
2170
2172
|
let Me = !1;
|
|
2171
2173
|
if (h?.length === 2) {
|
|
2172
2174
|
const [be, De] = h.map((Se) => M(Se));
|
|
2173
2175
|
Me = T.isAfter(be.subtract(1, "day")) && T.isBefore(De.add(1, "day"));
|
|
2174
2176
|
}
|
|
2175
|
-
const Ae =
|
|
2177
|
+
const Ae = Ie || $e || Me;
|
|
2176
2178
|
return /* @__PURE__ */ e(
|
|
2177
2179
|
"td",
|
|
2178
2180
|
{
|
|
2179
2181
|
style: {
|
|
2180
|
-
...
|
|
2181
|
-
...T.isSame(M(), "day") ?
|
|
2182
|
+
...H ? {} : te,
|
|
2183
|
+
...T.isSame(M(), "day") ? B : {},
|
|
2182
2184
|
...ne ? ee : {},
|
|
2183
|
-
...fe ?
|
|
2184
|
-
..._e ?
|
|
2185
|
-
...
|
|
2185
|
+
...fe ? O : {},
|
|
2186
|
+
..._e ? Y : {},
|
|
2187
|
+
...we ? q : {}
|
|
2186
2188
|
},
|
|
2187
2189
|
className: `${X.day}
|
|
2188
|
-
${
|
|
2189
|
-
${
|
|
2190
|
-
${
|
|
2191
|
-
${
|
|
2192
|
-
${
|
|
2193
|
-
${!
|
|
2190
|
+
${H ? "" : X.otherMonth}
|
|
2191
|
+
${H && T.isSame(M(), "day") ? X.today : ""}
|
|
2192
|
+
${H && ne ? X.inRange : ""}
|
|
2193
|
+
${H && fe ? X.startDate : ""}
|
|
2194
|
+
${H && _e ? X.endDate : ""}
|
|
2195
|
+
${!H && !ne && !_e ? "" : we ? X.selected : ""}
|
|
2194
2196
|
${Ae ? X.disabled : ""}`,
|
|
2195
|
-
onClick: () => K(T,
|
|
2197
|
+
onClick: () => K(T, H),
|
|
2196
2198
|
children: T.date()
|
|
2197
2199
|
},
|
|
2198
2200
|
se
|
|
@@ -2215,41 +2217,41 @@ const ut = ({
|
|
|
2215
2217
|
fixedDropdown: l = !0,
|
|
2216
2218
|
disabledDatesFrom: i,
|
|
2217
2219
|
disabledDatesTill: v,
|
|
2218
|
-
disabledDatesRange:
|
|
2220
|
+
disabledDatesRange: E,
|
|
2219
2221
|
datepickerStyle: g,
|
|
2220
|
-
datepickerLabelStyle:
|
|
2222
|
+
datepickerLabelStyle: I,
|
|
2221
2223
|
closeOnScroll: b = !0,
|
|
2222
|
-
requiredStyle:
|
|
2223
|
-
datepickerHelperTextStyle:
|
|
2224
|
+
requiredStyle: S,
|
|
2225
|
+
datepickerHelperTextStyle: P,
|
|
2224
2226
|
selectedStyle: h,
|
|
2225
2227
|
endDateStyle: c,
|
|
2226
2228
|
startDateStyle: _,
|
|
2227
2229
|
inRangeStyle: w,
|
|
2228
2230
|
otherMonthStyle: y,
|
|
2229
2231
|
todayStyle: q,
|
|
2230
|
-
weekDayStyle:
|
|
2231
|
-
quickPickStyle:
|
|
2232
|
+
weekDayStyle: Y,
|
|
2233
|
+
quickPickStyle: O,
|
|
2232
2234
|
monthStyle: ee,
|
|
2233
2235
|
quickPick: te,
|
|
2234
|
-
mode:
|
|
2236
|
+
mode: B = "single",
|
|
2235
2237
|
pickerType: Q = "single",
|
|
2236
|
-
disabled:
|
|
2237
|
-
...
|
|
2238
|
+
disabled: z = !1,
|
|
2239
|
+
...V
|
|
2238
2240
|
}) => {
|
|
2239
|
-
const j = rt(), [
|
|
2241
|
+
const j = rt(), [Z, N] = F(!1), [k, d] = F(""), C = le({ state: !1, value: "" }), L = le(null), [$, W] = F(() => {
|
|
2240
2242
|
const p = M().year().toString();
|
|
2241
2243
|
return m?.length ? m.includes(p) ? M() : M(`${Math.min(...m.map(Number))}-01-01`) : M();
|
|
2242
2244
|
});
|
|
2243
2245
|
G(() => {
|
|
2244
2246
|
const p = M().year().toString();
|
|
2245
|
-
m?.length &&
|
|
2247
|
+
m?.length && W(m.includes(p) ? M() : M(`${Math.min(...m.map(Number))}-01-01`));
|
|
2246
2248
|
}, [m]);
|
|
2247
|
-
const [
|
|
2249
|
+
const [ue, re] = F(""), [Ce, J] = F({
|
|
2248
2250
|
start: null,
|
|
2249
2251
|
end: null
|
|
2250
|
-
}), K = le(null), ae = (p, T,
|
|
2252
|
+
}), K = le(null), ae = (p, T, H) => {
|
|
2251
2253
|
let se = "", ne = { start: "", end: "" };
|
|
2252
|
-
(
|
|
2254
|
+
(B === "single" || typeof p == "string") && (se = p, d(se)), (B !== "single" || typeof p != "string") && (p?.start || p?.end ? se = `${p?.start ? M(p?.start).format(n) : ""} / ${p?.end ? M(p?.end).format(n) : ""}` : se = "", ne.start = p?.start ? M(p?.start).format(n) : "", ne.end = p?.end ? M(p?.end).format(n) : "", d(se)), p?.end && N(!1), o && typeof o == "function" && !H && (o(ne.start !== "" ? ne : se), C.current.value = ne.start !== "" ? ne : se);
|
|
2253
2255
|
}, ie = (p) => {
|
|
2254
2256
|
p.stopPropagation(), re(""), C.current.value = "", d(""), J({
|
|
2255
2257
|
start: null,
|
|
@@ -2259,12 +2261,12 @@ const ut = ({
|
|
|
2259
2261
|
K.current && (p.composedPath().includes(K.current) || N(!1));
|
|
2260
2262
|
}, oe = (p) => {
|
|
2261
2263
|
b && (!K.current || !L.current || p.composedPath().includes(K.current) || p.composedPath().includes(L.current) || N(!1));
|
|
2262
|
-
},
|
|
2264
|
+
}, x = () => {
|
|
2263
2265
|
if (!K.current || !L.current) return;
|
|
2264
2266
|
const p = K.current, T = L.current;
|
|
2265
2267
|
if (!T || !p) return;
|
|
2266
|
-
const
|
|
2267
|
-
T.style.position = "fixed",
|
|
2268
|
+
const H = p.getBoundingClientRect(), se = window.innerHeight, ne = window.innerWidth;
|
|
2269
|
+
T.style.position = "fixed", H.bottom + T.offsetHeight > se ? (T.style.top = `${H.top - T.offsetHeight + 20}px`, T.style.bottom = "unset") : (T.style.top = `${H.bottom + 8}px`, T.style.bottom = "unset"), H.right + H.width > ne - 120 ? T.style.left = `${H.left + H.width - T.offsetWidth}px` : T.style.left = `${H.left}px`;
|
|
2268
2270
|
};
|
|
2269
2271
|
return G(() => {
|
|
2270
2272
|
if (t && t.length > 0 && C.current.value === "") {
|
|
@@ -2275,20 +2277,20 @@ const ut = ({
|
|
|
2275
2277
|
C.current.value = t, C.current.state = !0, p && ae(p, !1, !0);
|
|
2276
2278
|
}
|
|
2277
2279
|
}, []), G(() => {
|
|
2278
|
-
|
|
2279
|
-
}, [L,
|
|
2280
|
+
Z && x();
|
|
2281
|
+
}, [L, Z]), G(() => {
|
|
2280
2282
|
const p = () => {
|
|
2281
|
-
|
|
2283
|
+
Z && x();
|
|
2282
2284
|
};
|
|
2283
2285
|
return document.addEventListener("click", pe), document.addEventListener("wheel", oe), window.addEventListener("scroll", p), () => {
|
|
2284
2286
|
document.removeEventListener("click", pe), document.removeEventListener("wheel", oe), window.removeEventListener("scroll", p);
|
|
2285
2287
|
};
|
|
2286
|
-
}, [
|
|
2287
|
-
/* @__PURE__ */ e("div", { ref: K, className: Ye.datepickerInputWrapper, onClick: () => (N((p) => !p),
|
|
2288
|
+
}, [Z]), /* @__PURE__ */ s("div", { className: `${j === "namespaceHr" ? Ye.namespaceHr : ""} ${Ye.datepickerContainer}`, children: [
|
|
2289
|
+
/* @__PURE__ */ e("div", { ref: K, className: Ye.datepickerInputWrapper, onClick: () => (N((p) => !p), x()), children: /* @__PURE__ */ e(
|
|
2288
2290
|
Fe,
|
|
2289
2291
|
{
|
|
2290
|
-
...
|
|
2291
|
-
customFocus:
|
|
2292
|
+
...V,
|
|
2293
|
+
customFocus: Z,
|
|
2292
2294
|
withActive: !1,
|
|
2293
2295
|
value: k,
|
|
2294
2296
|
toggleFocus: !0,
|
|
@@ -2298,7 +2300,7 @@ const ut = ({
|
|
|
2298
2300
|
readOnly: !0
|
|
2299
2301
|
}
|
|
2300
2302
|
) }),
|
|
2301
|
-
|
|
2303
|
+
Z && /* @__PURE__ */ e(
|
|
2302
2304
|
yi,
|
|
2303
2305
|
{
|
|
2304
2306
|
namespace: j,
|
|
@@ -2306,18 +2308,18 @@ const ut = ({
|
|
|
2306
2308
|
CalendarRef: L,
|
|
2307
2309
|
disabledDatesFrom: i,
|
|
2308
2310
|
disabledDatesTill: v,
|
|
2309
|
-
disabledDatesRange:
|
|
2311
|
+
disabledDatesRange: E,
|
|
2310
2312
|
valueFormat: n,
|
|
2311
2313
|
onChange: (p) => ae(p, !1, !1),
|
|
2312
2314
|
customYears: m,
|
|
2313
2315
|
CurrentMonth: $,
|
|
2314
|
-
setCurrentMonth:
|
|
2315
|
-
SelectedDate:
|
|
2316
|
+
setCurrentMonth: W,
|
|
2317
|
+
SelectedDate: ue,
|
|
2316
2318
|
setSelectedDate: re,
|
|
2317
|
-
IsFocused:
|
|
2319
|
+
IsFocused: Z,
|
|
2318
2320
|
setIsFocused: N,
|
|
2319
2321
|
quickPick: te,
|
|
2320
|
-
mode:
|
|
2322
|
+
mode: B,
|
|
2321
2323
|
RangeSelection: Ce,
|
|
2322
2324
|
setRangeSelection: J,
|
|
2323
2325
|
pickerType: Q,
|
|
@@ -2327,8 +2329,8 @@ const ut = ({
|
|
|
2327
2329
|
inRangeStyle: w,
|
|
2328
2330
|
otherMonthStyle: y,
|
|
2329
2331
|
todayStyle: q,
|
|
2330
|
-
weekDayStyle:
|
|
2331
|
-
quickPickStyle:
|
|
2332
|
+
weekDayStyle: Y,
|
|
2333
|
+
quickPickStyle: O,
|
|
2332
2334
|
monthStyle: ee
|
|
2333
2335
|
}
|
|
2334
2336
|
)
|
|
@@ -2376,9 +2378,9 @@ const vi = "mc__Skeleton-module__skeleton", bi = "mc__Skeleton-module__shimmer",
|
|
|
2376
2378
|
mt.propKeys = ["type", "customStyle", "children"];
|
|
2377
2379
|
mt.displayName = "Skeleton";
|
|
2378
2380
|
mt.description = "A loading skeleton component for displaying placeholder content while data is being fetched.";
|
|
2379
|
-
const
|
|
2380
|
-
actionDropdownContainer:
|
|
2381
|
-
collapsed:
|
|
2381
|
+
const xi = "mc__ActionDropdown-module__actionDropdownContainer", Ii = "mc__ActionDropdown-module__collapsed", Ni = "mc__ActionDropdown-module__actionDropdownIcon", $i = "mc__ActionDropdown-module__actionDropdownContent", Mi = "mc__ActionDropdown-module__actionDropdownTitle", Di = "mc__ActionDropdown-module__actionDropdownList", Si = "mc__ActionDropdown-module__actionDropdownItem", Pi = "mc__ActionDropdown-module__selected", Pe = {
|
|
2382
|
+
actionDropdownContainer: xi,
|
|
2383
|
+
collapsed: Ii,
|
|
2382
2384
|
actionDropdownIcon: Ni,
|
|
2383
2385
|
actionDropdownContent: $i,
|
|
2384
2386
|
actionDropdownTitle: Mi,
|
|
@@ -2386,9 +2388,9 @@ const Ii = "mc__ActionDropdown-module__actionDropdownContainer", xi = "mc__Actio
|
|
|
2386
2388
|
actionDropdownItem: Si,
|
|
2387
2389
|
selected: Pi
|
|
2388
2390
|
}, pt = ({ title: t, data: n, closeOnScroll: o = !1, onSelect: r }) => {
|
|
2389
|
-
const [a, m] =
|
|
2390
|
-
|
|
2391
|
-
},
|
|
2391
|
+
const [a, m] = F(!1), l = le(null), i = le(null), [v, E] = F(null), g = (h) => {
|
|
2392
|
+
E(h), r?.(h), m(!1);
|
|
2393
|
+
}, I = () => {
|
|
2392
2394
|
if (!l.current || !i.current) return;
|
|
2393
2395
|
const h = l.current, c = i.current;
|
|
2394
2396
|
if (!c || !h) return;
|
|
@@ -2396,23 +2398,23 @@ const Ii = "mc__ActionDropdown-module__actionDropdownContainer", xi = "mc__Actio
|
|
|
2396
2398
|
c.style.width = _.width + "px", c.style.position = "fixed", _.bottom + c.offsetHeight > w ? (c.style.top = `${_.top - c.offsetHeight - 8}px`, c.style.bottom = "unset") : (c.style.top = `${_.bottom + 8}px`, c.style.bottom = "unset");
|
|
2397
2399
|
}, b = () => {
|
|
2398
2400
|
requestAnimationFrame(() => {
|
|
2399
|
-
|
|
2401
|
+
I();
|
|
2400
2402
|
});
|
|
2401
2403
|
};
|
|
2402
2404
|
G(() => {
|
|
2403
2405
|
b();
|
|
2404
2406
|
}, [l, a]);
|
|
2405
|
-
const
|
|
2407
|
+
const S = (h) => {
|
|
2406
2408
|
l.current && (h.composedPath().includes(l.current) || m(!1));
|
|
2407
|
-
},
|
|
2409
|
+
}, P = (h) => {
|
|
2408
2410
|
o && (!l.current || !i.current || h.composedPath().includes(l.current) || h.composedPath().includes(i.current) || m(!1));
|
|
2409
2411
|
};
|
|
2410
2412
|
return G(() => {
|
|
2411
2413
|
const h = () => {
|
|
2412
2414
|
a && b();
|
|
2413
2415
|
};
|
|
2414
|
-
return document.addEventListener("click",
|
|
2415
|
-
document.removeEventListener("click",
|
|
2416
|
+
return document.addEventListener("click", S), document.addEventListener("wheel", P), window.addEventListener("scroll", h), () => {
|
|
2417
|
+
document.removeEventListener("click", S), document.removeEventListener("wheel", P), window.removeEventListener("scroll", h);
|
|
2416
2418
|
};
|
|
2417
2419
|
}, [a]), /* @__PURE__ */ s("div", { className: `${Pe.actionDropdownContainer} ${a ? Pe.collapsed : ""}`, children: [
|
|
2418
2420
|
/* @__PURE__ */ s("div", { ref: l, className: Pe.actionDropdownContent, onClick: () => (m((h) => !h), b()), children: [
|
|
@@ -2496,7 +2498,7 @@ const Fi = "mc__Slider-module__sliderContainer", Ei = "mc__Slider-module__slider
|
|
|
2496
2498
|
thumbSingle: Ui,
|
|
2497
2499
|
tooltip: Yi
|
|
2498
2500
|
}, ji = () => {
|
|
2499
|
-
const [t, n] =
|
|
2501
|
+
const [t, n] = F(), o = (r, a) => {
|
|
2500
2502
|
t && clearTimeout(t), n(
|
|
2501
2503
|
setTimeout(() => {
|
|
2502
2504
|
r();
|
|
@@ -2516,88 +2518,88 @@ const Fi = "mc__Slider-module__sliderContainer", Ei = "mc__Slider-module__slider
|
|
|
2516
2518
|
debounceTime: l,
|
|
2517
2519
|
onChange: i,
|
|
2518
2520
|
sliderContainerStyle: v,
|
|
2519
|
-
sliderStyle:
|
|
2521
|
+
sliderStyle: E,
|
|
2520
2522
|
sliderProgressStyle: g,
|
|
2521
|
-
thumbStyle:
|
|
2523
|
+
thumbStyle: I,
|
|
2522
2524
|
unit: b
|
|
2523
2525
|
}) => {
|
|
2524
|
-
const
|
|
2526
|
+
const S = le(!0), P = m || n !== void 0 && o !== void 0, [h, c] = F({
|
|
2525
2527
|
minValue: n ?? r,
|
|
2526
2528
|
maxValue: o ?? a,
|
|
2527
2529
|
singleValue: t ?? r
|
|
2528
|
-
}), [_, w] =
|
|
2530
|
+
}), [_, w] = F({
|
|
2529
2531
|
min: !1,
|
|
2530
2532
|
max: !1,
|
|
2531
2533
|
single: !1
|
|
2532
|
-
}), [y, q] =
|
|
2534
|
+
}), [y, q] = F({
|
|
2533
2535
|
min: !1,
|
|
2534
2536
|
max: !1,
|
|
2535
2537
|
single: !1
|
|
2536
|
-
}),
|
|
2537
|
-
const d =
|
|
2538
|
+
}), Y = ji(), O = le(null), ee = le(null), te = le(null), B = le(null), Q = (N) => {
|
|
2539
|
+
const d = O.current?.getBoundingClientRect(), C = Math.min(Math.max(0, (N - d.left) / d.width), 1);
|
|
2538
2540
|
return Math.round(C * (a - r) + r);
|
|
2539
|
-
},
|
|
2541
|
+
}, z = (N) => (k) => {
|
|
2540
2542
|
k.preventDefault(), q((L) => ({ ...L, [N]: !0 })), w((L) => ({ ...L, [N]: !0 }));
|
|
2541
2543
|
const d = (L) => {
|
|
2542
2544
|
const $ = Q(L.clientX);
|
|
2543
|
-
c((
|
|
2545
|
+
c((W) => N === "single" ? { ...W, singleValue: $ } : N === "min" ? { ...W, minValue: Math.min($, W.maxValue - 1) } : { ...W, maxValue: Math.max($, W.minValue + 1) });
|
|
2544
2546
|
}, C = () => {
|
|
2545
2547
|
q((L) => ({ ...L, [N]: !1 })), w((L) => ({ ...L, [N]: !1 })), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", C);
|
|
2546
2548
|
};
|
|
2547
2549
|
document.addEventListener("mousemove", d), document.addEventListener("mouseup", C);
|
|
2548
|
-
},
|
|
2550
|
+
}, V = (N) => {
|
|
2549
2551
|
const k = Q(N.clientX);
|
|
2550
|
-
if (
|
|
2552
|
+
if (P) {
|
|
2551
2553
|
const d = Math.abs(k - h.minValue), C = Math.abs(k - h.maxValue), L = d < C ? "min" : "max";
|
|
2552
|
-
c(($) => L === "min" ? { ...$, minValue: Math.min(k, $.maxValue - 1) } : { ...$, maxValue: Math.max(k, $.minValue + 1) }),
|
|
2554
|
+
c(($) => L === "min" ? { ...$, minValue: Math.min(k, $.maxValue - 1) } : { ...$, maxValue: Math.max(k, $.minValue + 1) }), z(L)(N);
|
|
2553
2555
|
} else
|
|
2554
|
-
c((d) => ({ ...d, singleValue: k })),
|
|
2555
|
-
}, j =
|
|
2556
|
+
c((d) => ({ ...d, singleValue: k })), z("single")(N);
|
|
2557
|
+
}, j = P ? {
|
|
2556
2558
|
left: `${(h.minValue - r) / (a - r) * 100}%`,
|
|
2557
2559
|
width: `${(h.maxValue - h.minValue) / (a - r) * 100}%`
|
|
2558
2560
|
} : {
|
|
2559
2561
|
left: "0%",
|
|
2560
2562
|
width: `${(h.singleValue - r) / (a - r) * 100}%`
|
|
2561
|
-
},
|
|
2563
|
+
}, Z = (N) => {
|
|
2562
2564
|
const k = N.current;
|
|
2563
2565
|
if (!k) return;
|
|
2564
2566
|
const d = k.getBoundingClientRect(), C = window.innerWidth, L = d.width;
|
|
2565
2567
|
k.style.transform = "translateX(-50%)";
|
|
2566
2568
|
let $ = "50%";
|
|
2567
2569
|
if (d.right > C - 10) {
|
|
2568
|
-
const
|
|
2569
|
-
k.style.transform = `translateX(calc(-50% - ${
|
|
2570
|
-
const
|
|
2571
|
-
$ = `${Math.min(L / 2 +
|
|
2570
|
+
const W = d.right - C + 10;
|
|
2571
|
+
k.style.transform = `translateX(calc(-50% - ${W}px))`;
|
|
2572
|
+
const ue = L - 10;
|
|
2573
|
+
$ = `${Math.min(L / 2 + W, ue)}px`;
|
|
2572
2574
|
}
|
|
2573
2575
|
if (d.left < 10) {
|
|
2574
|
-
const
|
|
2575
|
-
k.style.transform = `translateX(calc(-50% + ${
|
|
2576
|
+
const W = 10 - d.left;
|
|
2577
|
+
k.style.transform = `translateX(calc(-50% + ${W}px))`, $ = `${Math.max(L / 2 - W, 10)}px`;
|
|
2576
2578
|
}
|
|
2577
2579
|
k.style.setProperty("--arrow-position", $);
|
|
2578
2580
|
};
|
|
2579
2581
|
return G(() => {
|
|
2580
|
-
(_.min || y.min) &&
|
|
2582
|
+
(_.min || y.min) && Z(ee), (_.max || y.max) && Z(te), (_.single || y.single) && Z(B);
|
|
2581
2583
|
}, [h, _, y]), G(() => {
|
|
2582
|
-
if (
|
|
2583
|
-
|
|
2584
|
+
if (S.current) {
|
|
2585
|
+
S.current = !1;
|
|
2584
2586
|
return;
|
|
2585
2587
|
}
|
|
2586
|
-
i && typeof i == "function" &&
|
|
2587
|
-
}, [h]), /* @__PURE__ */ e("div", { style: v ?? {}, className: `${ke.sliderContainer}`, children: /* @__PURE__ */ s("div", { ref:
|
|
2588
|
+
i && typeof i == "function" && Y(P ? () => i([h.minValue, h.maxValue]) : () => i(h.singleValue), l ?? 100);
|
|
2589
|
+
}, [h]), /* @__PURE__ */ e("div", { style: v ?? {}, className: `${ke.sliderContainer}`, children: /* @__PURE__ */ s("div", { ref: O, style: E ?? {}, className: ke.slider, onMouseDown: V, children: [
|
|
2588
2590
|
/* @__PURE__ */ e("div", { className: ke.sliderProgress, style: { ...j, ...g ?? {} } }),
|
|
2589
|
-
|
|
2591
|
+
P ? /* @__PURE__ */ s(Dt, { children: [
|
|
2590
2592
|
/* @__PURE__ */ e(
|
|
2591
2593
|
"div",
|
|
2592
2594
|
{
|
|
2593
2595
|
className: `${ke.thumb} ${ke.thumbLeft}`,
|
|
2594
2596
|
style: {
|
|
2595
2597
|
left: `${(h.minValue - r) / (a - r) * 100}%`,
|
|
2596
|
-
...
|
|
2598
|
+
...I ?? {}
|
|
2597
2599
|
},
|
|
2598
2600
|
onMouseEnter: () => !y.min && w((N) => ({ ...N, min: !0 })),
|
|
2599
2601
|
onMouseLeave: () => !y.min && w((N) => ({ ...N, min: !1 })),
|
|
2600
|
-
onMouseDown:
|
|
2602
|
+
onMouseDown: z("min"),
|
|
2601
2603
|
children: (_.min || y.min) && /* @__PURE__ */ s("div", { ref: ee, className: ke.tooltip, children: [
|
|
2602
2604
|
h.minValue,
|
|
2603
2605
|
"%"
|
|
@@ -2610,11 +2612,11 @@ const Fi = "mc__Slider-module__sliderContainer", Ei = "mc__Slider-module__slider
|
|
|
2610
2612
|
className: `${ke.thumb} ${ke.thumbRight}`,
|
|
2611
2613
|
style: {
|
|
2612
2614
|
left: `${(h.maxValue - r) / (a - r) * 100}%`,
|
|
2613
|
-
...
|
|
2615
|
+
...I ?? {}
|
|
2614
2616
|
},
|
|
2615
2617
|
onMouseEnter: () => !y.max && w((N) => ({ ...N, max: !0 })),
|
|
2616
2618
|
onMouseLeave: () => !y.max && w((N) => ({ ...N, max: !1 })),
|
|
2617
|
-
onMouseDown:
|
|
2619
|
+
onMouseDown: z("max"),
|
|
2618
2620
|
children: (_.max || y.max) && /* @__PURE__ */ s("div", { ref: te, className: ke.tooltip, children: [
|
|
2619
2621
|
h.maxValue,
|
|
2620
2622
|
"%"
|
|
@@ -2627,12 +2629,12 @@ const Fi = "mc__Slider-module__sliderContainer", Ei = "mc__Slider-module__slider
|
|
|
2627
2629
|
className: `${ke.thumb} ${ke.thumbSingle}`,
|
|
2628
2630
|
style: {
|
|
2629
2631
|
left: `${(h.singleValue - r) / (a - r) * 100}%`,
|
|
2630
|
-
...
|
|
2632
|
+
...I ?? {}
|
|
2631
2633
|
},
|
|
2632
2634
|
onMouseEnter: () => !y.single && w((N) => ({ ...N, single: !0 })),
|
|
2633
2635
|
onMouseLeave: () => !y.single && w((N) => ({ ...N, single: !1 })),
|
|
2634
|
-
onMouseDown:
|
|
2635
|
-
children: (_.single || y.single) && /* @__PURE__ */ s("div", { ref:
|
|
2636
|
+
onMouseDown: z("single"),
|
|
2637
|
+
children: (_.single || y.single) && /* @__PURE__ */ s("div", { ref: B, className: ke.tooltip, children: [
|
|
2636
2638
|
h.singleValue,
|
|
2637
2639
|
" ",
|
|
2638
2640
|
b
|
|
@@ -2684,8 +2686,8 @@ const Ki = "mc__FilterWithTags-module__filterWithTagsContainer", qi = "mc__Filte
|
|
|
2684
2686
|
cancelButtonProps: l,
|
|
2685
2687
|
applyButtonProps: i
|
|
2686
2688
|
}) => {
|
|
2687
|
-
const [v,
|
|
2688
|
-
n &&
|
|
2689
|
+
const [v, E] = F(!1), g = () => {
|
|
2690
|
+
n && E(!0);
|
|
2689
2691
|
};
|
|
2690
2692
|
return /* @__PURE__ */ s("div", { className: Be.filterWithTagsContainer, children: [
|
|
2691
2693
|
/* @__PURE__ */ e("div", { className: Be.filterWithTagsContent, children: /* @__PURE__ */ e("div", { className: Be.filterWithTagsButton, children: /* @__PURE__ */ e(
|
|
@@ -2699,7 +2701,7 @@ const Ki = "mc__FilterWithTags-module__filterWithTagsContainer", qi = "mc__Filte
|
|
|
2699
2701
|
...a
|
|
2700
2702
|
}
|
|
2701
2703
|
) }) }),
|
|
2702
|
-
/* @__PURE__ */ s(Ge, { ...m, popupContainerStyle: { width: "725px" }, onClose: () =>
|
|
2704
|
+
/* @__PURE__ */ s(Ge, { ...m, popupContainerStyle: { width: "725px" }, onClose: () => E(!1), visible: v, children: [
|
|
2703
2705
|
/* @__PURE__ */ e("h2", { className: Be.filterWithTagsPopupTitle, children: "Filter" }),
|
|
2704
2706
|
/* @__PURE__ */ e("div", { className: `${Be.filterWithTagsPopupContent} ${m?.mode === "drawer" ? Be.filterWithTagsPopupContentDrawer : ""}`, children: /* @__PURE__ */ e(il, { filterOptions: t }) }),
|
|
2705
2707
|
/* @__PURE__ */ s("div", { className: Be.filterWithTagsPopupFooter, children: [
|
|
@@ -2712,7 +2714,7 @@ const Ki = "mc__FilterWithTags-module__filterWithTagsContainer", qi = "mc__Filte
|
|
|
2712
2714
|
_t.propKeys = ["filterOptions", "customOpenPopup", "onApply", "onClearAll", "mainButtonProps", "popupProps"];
|
|
2713
2715
|
_t.displayName = "Filter With Tags";
|
|
2714
2716
|
_t.description = "A component that allows you to filter data with tags";
|
|
2715
|
-
const ll = "mc__Table-module__tableContainer", sl = "mc__Table-module__tableWrapper", al = "mc__Table-module__resizing", cl = "mc__Table-module__table", dl = "mc__Table-module__headerContent", ul = "mc__Table-module__resizeHandle", ml = "mc__Table-module__clickable", pl = "mc__Table-module__empty", hl = "mc__Table-module__checkboxHeader", fl = "mc__Table-module__checkboxCell", _l = "mc__Table-module__tableHeader", Cl = "mc__Table-module__visible", gl = "mc__Table-module__tableHeaderLeftContent", wl = "mc__Table-module__actionButton", yl = "mc__Table-module__tableHeaderSeparator", vl = "mc__Table-module__paginationFooter", bl = "mc__Table-module__pagination", kl = "mc__Table-module__paginationButton", Ll = "mc__Table-module__paginationInfo", Tl = "mc__Table-module__paginationRight",
|
|
2717
|
+
const ll = "mc__Table-module__tableContainer", sl = "mc__Table-module__tableWrapper", al = "mc__Table-module__resizing", cl = "mc__Table-module__table", dl = "mc__Table-module__headerContent", ul = "mc__Table-module__resizeHandle", ml = "mc__Table-module__clickable", pl = "mc__Table-module__empty", hl = "mc__Table-module__checkboxHeader", fl = "mc__Table-module__checkboxCell", _l = "mc__Table-module__tableHeader", Cl = "mc__Table-module__visible", gl = "mc__Table-module__tableHeaderLeftContent", wl = "mc__Table-module__actionButton", yl = "mc__Table-module__tableHeaderSeparator", vl = "mc__Table-module__paginationFooter", bl = "mc__Table-module__pagination", kl = "mc__Table-module__paginationButton", Ll = "mc__Table-module__paginationInfo", Tl = "mc__Table-module__paginationRight", xl = "mc__Table-module__paginationSelectLabel", Il = "mc__Table-module__divider", Nl = "mc__Table-module__actionsHeader", $l = "mc__Table-module__actionsCell", Ml = "mc__Table-module__actionsContainer", Dl = "mc__Table-module__actionsTrigger", Sl = "mc__Table-module__actionsMenu", Pl = "mc__Table-module__actionsMenuFixed", Hl = "mc__Table-module__actionItem", Al = "mc__Table-module__rowsPerPageDropdown", Rl = "mc__Table-module__rowsPerPageList", Bl = "mc__Table-module__openDownward", Wl = "mc__Table-module__openUpward", Fl = "mc__Table-module__rowsPerPageOption", El = "mc__Table-module__selected", Ol = "mc__Table-module__gridHeader", Vl = "mc__Table-module__columnConfiguration", Zl = "mc__Table-module__columnConfigurationIcon", zl = "mc__Table-module__columnConfigurationDropdown", Ul = "mc__Table-module__dragging", Yl = "mc__Table-module__dragOver", jl = "mc__Table-module__columnConfigurationItemIcon", U = {
|
|
2716
2718
|
tableContainer: ll,
|
|
2717
2719
|
tableWrapper: sl,
|
|
2718
2720
|
resizing: al,
|
|
@@ -2733,8 +2735,8 @@ const ll = "mc__Table-module__tableContainer", sl = "mc__Table-module__tableWrap
|
|
|
2733
2735
|
paginationButton: kl,
|
|
2734
2736
|
paginationInfo: Ll,
|
|
2735
2737
|
paginationRight: Tl,
|
|
2736
|
-
paginationSelectLabel:
|
|
2737
|
-
divider:
|
|
2738
|
+
paginationSelectLabel: xl,
|
|
2739
|
+
divider: Il,
|
|
2738
2740
|
actionsHeader: Nl,
|
|
2739
2741
|
actionsCell: $l,
|
|
2740
2742
|
actionsContainer: Ml,
|
|
@@ -2770,17 +2772,17 @@ function Xe() {
|
|
|
2770
2772
|
return r;
|
|
2771
2773
|
}
|
|
2772
2774
|
const Kl = (t, n = {}) => {
|
|
2773
|
-
const [o, r] =
|
|
2775
|
+
const [o, r] = F(() => {
|
|
2774
2776
|
const h = {};
|
|
2775
2777
|
return t.forEach((c) => {
|
|
2776
2778
|
c.key && (h[c.key] = n[c.key] || c.width || 200);
|
|
2777
2779
|
}), h;
|
|
2778
|
-
}), [a, m] =
|
|
2780
|
+
}), [a, m] = F(!1), [l, i] = F(null), [v, E] = F(0), [g, I] = F(0), b = Qe(
|
|
2779
2781
|
(h, c) => {
|
|
2780
|
-
console.log("Resize start for column:", c), h.preventDefault(), h.stopPropagation(), m(!0), i(c),
|
|
2782
|
+
console.log("Resize start for column:", c), h.preventDefault(), h.stopPropagation(), m(!0), i(c), E(h.clientX), I(o[c]);
|
|
2781
2783
|
},
|
|
2782
2784
|
[o]
|
|
2783
|
-
),
|
|
2785
|
+
), S = Qe(
|
|
2784
2786
|
(h) => {
|
|
2785
2787
|
if (!a || !l) return;
|
|
2786
2788
|
h.preventDefault();
|
|
@@ -2791,15 +2793,15 @@ const Kl = (t, n = {}) => {
|
|
|
2791
2793
|
}));
|
|
2792
2794
|
},
|
|
2793
2795
|
[a, l, v, g]
|
|
2794
|
-
),
|
|
2796
|
+
), P = Qe(() => {
|
|
2795
2797
|
console.log("Resize end"), m(!1), i(null);
|
|
2796
2798
|
}, []);
|
|
2797
2799
|
return G(() => {
|
|
2798
2800
|
if (a)
|
|
2799
|
-
return document.addEventListener("mousemove",
|
|
2800
|
-
document.removeEventListener("mousemove",
|
|
2801
|
+
return document.addEventListener("mousemove", S), document.addEventListener("mouseup", P), () => {
|
|
2802
|
+
document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", P);
|
|
2801
2803
|
};
|
|
2802
|
-
}, [a,
|
|
2804
|
+
}, [a, S, P]), {
|
|
2803
2805
|
columnWidths: o,
|
|
2804
2806
|
isResizing: a,
|
|
2805
2807
|
resizeColumn: l,
|
|
@@ -2807,24 +2809,24 @@ const Kl = (t, n = {}) => {
|
|
|
2807
2809
|
};
|
|
2808
2810
|
};
|
|
2809
2811
|
function ql({ currentValue: t, options: n, onChange: o }) {
|
|
2810
|
-
const [r, a] =
|
|
2812
|
+
const [r, a] = F(!1), [m, l] = F(!1), i = le(null), v = le(null);
|
|
2811
2813
|
G(() => {
|
|
2812
2814
|
if (r && i.current && v.current) {
|
|
2813
|
-
const g = i.current.getBoundingClientRect(),
|
|
2814
|
-
l(
|
|
2815
|
+
const g = i.current.getBoundingClientRect(), I = v.current.offsetHeight, S = window.innerHeight - g.bottom, P = g.top;
|
|
2816
|
+
l(S < I && P >= I);
|
|
2815
2817
|
}
|
|
2816
2818
|
}, [r]), G(() => {
|
|
2817
|
-
const g = (
|
|
2818
|
-
i.current && !i.current.contains(
|
|
2819
|
+
const g = (I) => {
|
|
2820
|
+
i.current && !i.current.contains(I.target) && a(!1);
|
|
2819
2821
|
};
|
|
2820
2822
|
return document.addEventListener("mousedown", g), () => {
|
|
2821
2823
|
document.removeEventListener("mousedown", g);
|
|
2822
2824
|
};
|
|
2823
2825
|
}, []);
|
|
2824
|
-
const
|
|
2826
|
+
const E = (g) => {
|
|
2825
2827
|
o(g), a(!1);
|
|
2826
2828
|
};
|
|
2827
|
-
return /* @__PURE__ */ s("div", { ref: i, className:
|
|
2829
|
+
return /* @__PURE__ */ s("div", { ref: i, className: U.rowsPerPageDropdown, children: [
|
|
2828
2830
|
/* @__PURE__ */ e(
|
|
2829
2831
|
Ne,
|
|
2830
2832
|
{
|
|
@@ -2849,11 +2851,11 @@ function ql({ currentValue: t, options: n, onChange: o }) {
|
|
|
2849
2851
|
onClick: () => a(!r)
|
|
2850
2852
|
}
|
|
2851
2853
|
),
|
|
2852
|
-
r && /* @__PURE__ */ e("ul", { ref: v, className: `${
|
|
2854
|
+
r && /* @__PURE__ */ e("ul", { ref: v, className: `${U.rowsPerPageList} ${m ? U.openUpward : U.openDownward}`, role: "listbox", children: n.map((g) => /* @__PURE__ */ e(
|
|
2853
2855
|
"li",
|
|
2854
2856
|
{
|
|
2855
|
-
className: `${
|
|
2856
|
-
onClick: () =>
|
|
2857
|
+
className: `${U.rowsPerPageOption} ${g === t ? U.selected : ""}`,
|
|
2858
|
+
onClick: () => E(g),
|
|
2857
2859
|
role: "option",
|
|
2858
2860
|
"aria-selected": g === t,
|
|
2859
2861
|
children: g
|
|
@@ -2872,12 +2874,12 @@ const Ct = ({
|
|
|
2872
2874
|
selectedRows: l = [],
|
|
2873
2875
|
onSelectionChange: i,
|
|
2874
2876
|
withSelectAll: v = !1,
|
|
2875
|
-
actionButtonText:
|
|
2877
|
+
actionButtonText: E,
|
|
2876
2878
|
actionButtonIcon: g,
|
|
2877
|
-
onActionButtonClick:
|
|
2879
|
+
onActionButtonClick: I,
|
|
2878
2880
|
actionButtons: b,
|
|
2879
|
-
withColumnConfiguration:
|
|
2880
|
-
headerSlot:
|
|
2881
|
+
withColumnConfiguration: S = !1,
|
|
2882
|
+
headerSlot: P,
|
|
2881
2883
|
onColumnOrderChange: h,
|
|
2882
2884
|
onColumnVisibilityChange: c,
|
|
2883
2885
|
withActions: _ = !1,
|
|
@@ -2885,153 +2887,153 @@ const Ct = ({
|
|
|
2885
2887
|
currentPage: w = 0,
|
|
2886
2888
|
totalPages: y = 1,
|
|
2887
2889
|
onPageChange: q,
|
|
2888
|
-
showPagination:
|
|
2890
|
+
showPagination: Y = !1,
|
|
2889
2891
|
// Rows per page props
|
|
2890
|
-
rowsPerPage:
|
|
2892
|
+
rowsPerPage: O = 10,
|
|
2891
2893
|
rowsPerPageOptions: ee = [10, 20, 50, 100],
|
|
2892
2894
|
onRowsPerPageChange: te,
|
|
2893
|
-
totalItems:
|
|
2895
|
+
totalItems: B = 1e3,
|
|
2894
2896
|
startItem: Q = 1,
|
|
2895
|
-
endItem:
|
|
2897
|
+
endItem: z = 100,
|
|
2896
2898
|
// Row actions props
|
|
2897
|
-
onRowEdit:
|
|
2899
|
+
onRowEdit: V,
|
|
2898
2900
|
onRowDelete: j,
|
|
2899
|
-
rowActions:
|
|
2901
|
+
rowActions: Z = []
|
|
2900
2902
|
}) => {
|
|
2901
|
-
const { columnWidths: N, isResizing: k, resizeColumn: d, handleResizeStart: C } = Kl(n), L = le(null), [$,
|
|
2903
|
+
const { columnWidths: N, isResizing: k, resizeColumn: d, handleResizeStart: C } = Kl(n), L = le(null), [$, W] = F(null), [ue, re] = F(null), Ce = le({}), J = le(null), K = le(null), [ae, ie] = F(!1), [pe, oe] = F(null), [x, p] = F(null), [T, H] = F(n);
|
|
2902
2904
|
G(() => {
|
|
2903
|
-
const f = n.map((
|
|
2904
|
-
...
|
|
2905
|
-
visible:
|
|
2905
|
+
const f = n.map((A) => ({
|
|
2906
|
+
...A,
|
|
2907
|
+
visible: A.visible !== void 0 ? A.visible : !0
|
|
2906
2908
|
}));
|
|
2907
|
-
|
|
2909
|
+
H(f);
|
|
2908
2910
|
}, [n]);
|
|
2909
|
-
const se = (f,
|
|
2910
|
-
oe(
|
|
2911
|
-
}, ne = (f,
|
|
2912
|
-
f.preventDefault(), f.dataTransfer.dropEffect = "move",
|
|
2911
|
+
const se = (f, A) => {
|
|
2912
|
+
oe(A), f.dataTransfer.effectAllowed = "move", f.dataTransfer.setData("text/html", f.currentTarget.outerHTML);
|
|
2913
|
+
}, ne = (f, A) => {
|
|
2914
|
+
f.preventDefault(), f.dataTransfer.dropEffect = "move", A !== pe && p(A);
|
|
2913
2915
|
}, fe = () => {
|
|
2914
2916
|
p(null);
|
|
2915
|
-
}, _e = (f,
|
|
2916
|
-
if (f.preventDefault(), pe === null || pe ===
|
|
2917
|
+
}, _e = (f, A) => {
|
|
2918
|
+
if (f.preventDefault(), pe === null || pe === A) {
|
|
2917
2919
|
oe(null), p(null);
|
|
2918
2920
|
return;
|
|
2919
2921
|
}
|
|
2920
|
-
const
|
|
2921
|
-
|
|
2922
|
-
const qe = pe <
|
|
2923
|
-
|
|
2924
|
-
},
|
|
2922
|
+
const D = [...T], ge = D[pe];
|
|
2923
|
+
D.splice(pe, 1);
|
|
2924
|
+
const qe = pe < A ? A - 1 : A;
|
|
2925
|
+
D.splice(qe, 0, ge), H(D), oe(null), p(null), h?.(D);
|
|
2926
|
+
}, we = () => {
|
|
2925
2927
|
oe(null), p(null);
|
|
2926
2928
|
}, $e = (f) => {
|
|
2927
|
-
const
|
|
2928
|
-
|
|
2929
|
-
},
|
|
2930
|
-
const
|
|
2929
|
+
const A = T.map((D) => D.key === f.key ? { ...D, visible: !D.visible } : D);
|
|
2930
|
+
H(A), c?.(A);
|
|
2931
|
+
}, Ie = T.filter((f) => f.visible), Me = (f) => {
|
|
2932
|
+
const A = o.map((D) => D[t]);
|
|
2931
2933
|
if (f) {
|
|
2932
|
-
const
|
|
2933
|
-
i?.(
|
|
2934
|
+
const D = [.../* @__PURE__ */ new Set([...l, ...A])];
|
|
2935
|
+
i?.(D);
|
|
2934
2936
|
} else {
|
|
2935
|
-
const
|
|
2936
|
-
i?.(
|
|
2937
|
+
const D = l.filter((ge) => !A.includes(ge));
|
|
2938
|
+
i?.(D);
|
|
2937
2939
|
}
|
|
2938
|
-
}, Ae = (f,
|
|
2939
|
-
i?.(
|
|
2940
|
-
}, be = o.map((f) => f[t]), De = o.length > 0 && be.every((f) => l.includes(f)), Se = be.some((f) => l.includes(f)) && !De, Ke = (f,
|
|
2941
|
-
|
|
2942
|
-
}, u = (f,
|
|
2943
|
-
j?.(f,
|
|
2944
|
-
},
|
|
2945
|
-
const
|
|
2946
|
-
if (!
|
|
2947
|
-
const
|
|
2948
|
-
let Ue =
|
|
2949
|
-
Ue < 0 && (Ue =
|
|
2950
|
-
const $t =
|
|
2951
|
-
return { top: gt ?
|
|
2952
|
-
},
|
|
2953
|
-
if (f.stopPropagation(), $ ===
|
|
2954
|
-
|
|
2940
|
+
}, Ae = (f, A, D = null) => {
|
|
2941
|
+
i?.(A ? [...l, f] : l.filter((ge) => ge !== f), D);
|
|
2942
|
+
}, be = o.map((f) => f[t]), De = o.length > 0 && be.every((f) => l.includes(f)), Se = be.some((f) => l.includes(f)) && !De, Ke = (f, A) => {
|
|
2943
|
+
V?.(f, A);
|
|
2944
|
+
}, u = (f, A) => {
|
|
2945
|
+
j?.(f, A);
|
|
2946
|
+
}, R = (f) => {
|
|
2947
|
+
const A = Ce.current[f];
|
|
2948
|
+
if (!A) return null;
|
|
2949
|
+
const D = A.getBoundingClientRect(), ge = window.innerHeight, qe = window.innerWidth, et = 120, tt = 120;
|
|
2950
|
+
let Ue = D.right - tt - 50;
|
|
2951
|
+
Ue < 0 && (Ue = D.left), Ue + tt > qe && (Ue = qe - tt - 10);
|
|
2952
|
+
const $t = ge - D.bottom, Mt = D.top, gt = $t < et && Mt >= et;
|
|
2953
|
+
return { top: gt ? D.top - et + 8 : D.bottom + 4, left: Ue, shouldOpenUpward: gt };
|
|
2954
|
+
}, ce = (f, A) => {
|
|
2955
|
+
if (f.stopPropagation(), $ === A)
|
|
2956
|
+
W(null), re(null);
|
|
2955
2957
|
else {
|
|
2956
|
-
|
|
2957
|
-
const
|
|
2958
|
-
re(
|
|
2958
|
+
W(A);
|
|
2959
|
+
const D = R(A);
|
|
2960
|
+
re(D);
|
|
2959
2961
|
}
|
|
2960
2962
|
};
|
|
2961
2963
|
return G(() => {
|
|
2962
|
-
const f = (
|
|
2963
|
-
(!
|
|
2964
|
-
},
|
|
2964
|
+
const f = (ge) => {
|
|
2965
|
+
(!ge.target || !ge.target.closest(`.${U.actionsCell}`)) && (W(null), re(null));
|
|
2966
|
+
}, A = () => {
|
|
2965
2967
|
if ($ !== null) {
|
|
2966
|
-
const
|
|
2967
|
-
re(
|
|
2968
|
+
const ge = R($);
|
|
2969
|
+
re(ge);
|
|
2968
2970
|
}
|
|
2969
|
-
},
|
|
2971
|
+
}, D = () => {
|
|
2970
2972
|
if ($ !== null) {
|
|
2971
|
-
const
|
|
2972
|
-
re(
|
|
2973
|
+
const ge = R($);
|
|
2974
|
+
re(ge);
|
|
2973
2975
|
}
|
|
2974
2976
|
};
|
|
2975
|
-
return document.addEventListener("click", f), window.addEventListener("scroll",
|
|
2976
|
-
document.removeEventListener("click", f), window.removeEventListener("scroll",
|
|
2977
|
+
return document.addEventListener("click", f), window.addEventListener("scroll", A, !0), window.addEventListener("resize", D), () => {
|
|
2978
|
+
document.removeEventListener("click", f), window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", D);
|
|
2977
2979
|
};
|
|
2978
2980
|
}, [$]), G(() => {
|
|
2979
|
-
const f = (
|
|
2980
|
-
ae && J.current && K.current && !J.current.contains(
|
|
2981
|
+
const f = (A) => {
|
|
2982
|
+
ae && J.current && K.current && !J.current.contains(A.target) && !K.current.contains(A.target) && ie(!1);
|
|
2981
2983
|
};
|
|
2982
2984
|
return document.addEventListener("click", f), () => {
|
|
2983
2985
|
document.removeEventListener("click", f);
|
|
2984
2986
|
};
|
|
2985
|
-
}, [ae]), /* @__PURE__ */ s("div", { className:
|
|
2986
|
-
(
|
|
2987
|
-
/* @__PURE__ */ e("div", { children:
|
|
2988
|
-
|
|
2989
|
-
/* @__PURE__ */ e("div", { className:
|
|
2990
|
-
ae && /* @__PURE__ */ e("ul", { className:
|
|
2987
|
+
}, [ae]), /* @__PURE__ */ s("div", { className: U.tableContainer, children: [
|
|
2988
|
+
(P || S) && /* @__PURE__ */ s("div", { className: U.gridHeader, children: [
|
|
2989
|
+
/* @__PURE__ */ e("div", { children: P }),
|
|
2990
|
+
S && /* @__PURE__ */ s("div", { className: U.columnConfiguration, children: [
|
|
2991
|
+
/* @__PURE__ */ e("div", { className: U.columnConfigurationIcon, ref: J, onClick: () => ie((f) => !f), children: /* @__PURE__ */ e(Ut, {}) }),
|
|
2992
|
+
ae && /* @__PURE__ */ e("ul", { className: U.columnConfigurationDropdown, ref: K, children: T.map((f, A) => /* @__PURE__ */ s(
|
|
2991
2993
|
"li",
|
|
2992
2994
|
{
|
|
2993
|
-
className: `${
|
|
2995
|
+
className: `${U.columnConfigurationItem} ${pe === A ? U.dragging : ""} ${x === A ? U.dragOver : ""}`,
|
|
2994
2996
|
draggable: !0,
|
|
2995
|
-
onDragStart: (
|
|
2996
|
-
onDragOver: (
|
|
2997
|
+
onDragStart: (D) => se(D, A),
|
|
2998
|
+
onDragOver: (D) => ne(D, A),
|
|
2997
2999
|
onDragLeave: fe,
|
|
2998
|
-
onDrop: (
|
|
2999
|
-
onDragEnd:
|
|
3000
|
+
onDrop: (D) => _e(D, A),
|
|
3001
|
+
onDragEnd: we,
|
|
3000
3002
|
children: [
|
|
3001
|
-
/* @__PURE__ */ e("div", { className:
|
|
3002
|
-
/* @__PURE__ */ e("div", { className:
|
|
3003
|
+
/* @__PURE__ */ e("div", { className: U.columnConfigurationItemIcon, children: /* @__PURE__ */ e(jt, {}) }),
|
|
3004
|
+
/* @__PURE__ */ e("div", { className: U.columnConfigurationItemCheckbox, onClick: (D) => D.stopPropagation(), children: /* @__PURE__ */ e(He, { checked: f.visible, change: () => $e(f) }) }),
|
|
3003
3005
|
/* @__PURE__ */ e("p", { children: f.label })
|
|
3004
3006
|
]
|
|
3005
3007
|
},
|
|
3006
|
-
f.key || f.id ||
|
|
3008
|
+
f.key || f.id || A
|
|
3007
3009
|
)) })
|
|
3008
3010
|
] })
|
|
3009
3011
|
] }),
|
|
3010
3012
|
v && l.length > 0 && /* @__PURE__ */ e(
|
|
3011
3013
|
"div",
|
|
3012
3014
|
{
|
|
3013
|
-
className: Xe(
|
|
3014
|
-
[
|
|
3015
|
+
className: Xe(U.tableHeader, {
|
|
3016
|
+
[U.visible]: l.length > 0
|
|
3015
3017
|
}),
|
|
3016
|
-
children: /* @__PURE__ */ s("div", { className:
|
|
3018
|
+
children: /* @__PURE__ */ s("div", { className: U.tableHeaderLeftContent, children: [
|
|
3017
3019
|
/* @__PURE__ */ s("p", { children: [
|
|
3018
3020
|
l.length,
|
|
3019
3021
|
" rows selected"
|
|
3020
3022
|
] }),
|
|
3021
|
-
/* @__PURE__ */ e("div", { className:
|
|
3022
|
-
Array.isArray(b) && b.length > 0 ? b.map((f,
|
|
3023
|
+
/* @__PURE__ */ e("div", { className: U.tableHeaderSeparator }),
|
|
3024
|
+
Array.isArray(b) && b.length > 0 ? b.map((f, A) => /* @__PURE__ */ s("div", { className: U.actionButton, onClick: () => f.onClick?.(l), children: [
|
|
3023
3025
|
f.text,
|
|
3024
3026
|
f.icon
|
|
3025
|
-
] }, f.text ||
|
|
3026
|
-
|
|
3027
|
+
] }, f.text || A)) : /* @__PURE__ */ s("div", { className: U.actionButton, onClick: () => I?.(l), children: [
|
|
3028
|
+
E || "Delete",
|
|
3027
3029
|
g && g
|
|
3028
3030
|
] })
|
|
3029
3031
|
] })
|
|
3030
3032
|
}
|
|
3031
3033
|
),
|
|
3032
|
-
/* @__PURE__ */ e("div", { className: Xe(
|
|
3034
|
+
/* @__PURE__ */ e("div", { className: Xe(U.tableWrapper, { [U.resizing]: k }), children: /* @__PURE__ */ s("table", { className: U.table, ref: L, children: [
|
|
3033
3035
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
3034
|
-
v && /* @__PURE__ */ e("th", { className:
|
|
3036
|
+
v && /* @__PURE__ */ e("th", { className: U.checkboxHeader, children: /* @__PURE__ */ e(
|
|
3035
3037
|
He,
|
|
3036
3038
|
{
|
|
3037
3039
|
ref: (f) => {
|
|
@@ -3041,13 +3043,13 @@ const Ct = ({
|
|
|
3041
3043
|
change: (f) => Me(f)
|
|
3042
3044
|
}
|
|
3043
3045
|
) }),
|
|
3044
|
-
|
|
3046
|
+
Ie.map((f) => /* @__PURE__ */ s(
|
|
3045
3047
|
"th",
|
|
3046
3048
|
{
|
|
3047
3049
|
onClick: () => a?.(f.key),
|
|
3048
3050
|
style: { width: N[f.key], position: "relative" },
|
|
3049
3051
|
children: [
|
|
3050
|
-
/* @__PURE__ */ s("div", { className:
|
|
3052
|
+
/* @__PURE__ */ s("div", { className: U.headerContent, children: [
|
|
3051
3053
|
f.label,
|
|
3052
3054
|
m?.[0]?.selector === f.key && (m[0].desc ? /* @__PURE__ */ s("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3053
3055
|
/* @__PURE__ */ e(
|
|
@@ -3092,17 +3094,17 @@ const Ct = ({
|
|
|
3092
3094
|
/* @__PURE__ */ e(
|
|
3093
3095
|
"div",
|
|
3094
3096
|
{
|
|
3095
|
-
className: Xe(
|
|
3096
|
-
[
|
|
3097
|
+
className: Xe(U.resizeHandle, {
|
|
3098
|
+
[U.resizing]: k && d === f.key
|
|
3097
3099
|
}),
|
|
3098
|
-
onMouseDown: (
|
|
3100
|
+
onMouseDown: (A) => C(A, f.key)
|
|
3099
3101
|
}
|
|
3100
3102
|
)
|
|
3101
3103
|
]
|
|
3102
3104
|
},
|
|
3103
3105
|
f.key
|
|
3104
3106
|
)),
|
|
3105
|
-
_ && /* @__PURE__ */ e("th", { className:
|
|
3107
|
+
_ && /* @__PURE__ */ e("th", { className: U.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(
|
|
3106
3108
|
"path",
|
|
3107
3109
|
{
|
|
3108
3110
|
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",
|
|
@@ -3110,24 +3112,24 @@ const Ct = ({
|
|
|
3110
3112
|
}
|
|
3111
3113
|
) }) })
|
|
3112
3114
|
] }) }),
|
|
3113
|
-
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: v ?
|
|
3115
|
+
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: v ? Ie.length + 2 : Ie.length + 1, className: U.empty, children: "No data available" }) }) : o.map((f, A) => /* @__PURE__ */ s(
|
|
3114
3116
|
"tr",
|
|
3115
3117
|
{
|
|
3116
|
-
className: Xe({ [
|
|
3117
|
-
onClick: (
|
|
3118
|
-
|
|
3118
|
+
className: Xe({ [U.clickable]: !!r }),
|
|
3119
|
+
onClick: (D) => {
|
|
3120
|
+
D.target.type !== "checkbox" && !D.target.closest(`.${U.actionsCell}`) && r?.(f, A);
|
|
3119
3121
|
},
|
|
3120
3122
|
children: [
|
|
3121
|
-
v && /* @__PURE__ */ e("td", { className:
|
|
3122
|
-
|
|
3123
|
-
_ && /* @__PURE__ */ e("td", { className:
|
|
3123
|
+
v && /* @__PURE__ */ e("td", { className: U.checkboxCell, onClick: (D) => D.stopPropagation(), children: /* @__PURE__ */ e(He, { checked: l.includes(f[t]), change: (D) => Ae(f[t], D, f) }) }),
|
|
3124
|
+
Ie.map((D) => /* @__PURE__ */ e("td", { style: { width: N[D.key] }, children: D.render ? D.render(f) : f[D.key] }, D.key)),
|
|
3125
|
+
_ && /* @__PURE__ */ e("td", { className: U.actionsCell, children: /* @__PURE__ */ e(
|
|
3124
3126
|
"div",
|
|
3125
3127
|
{
|
|
3126
|
-
className:
|
|
3127
|
-
ref: (
|
|
3128
|
-
Ce.current[
|
|
3128
|
+
className: U.actionsContainer,
|
|
3129
|
+
ref: (D) => {
|
|
3130
|
+
Ce.current[A] = D;
|
|
3129
3131
|
},
|
|
3130
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
3132
|
+
children: /* @__PURE__ */ e("div", { className: U.actionsTrigger, onClick: (D) => ce(D, A), children: /* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3131
3133
|
/* @__PURE__ */ e(
|
|
3132
3134
|
"path",
|
|
3133
3135
|
{
|
|
@@ -3154,26 +3156,26 @@ const Ct = ({
|
|
|
3154
3156
|
) })
|
|
3155
3157
|
]
|
|
3156
3158
|
},
|
|
3157
|
-
|
|
3159
|
+
A
|
|
3158
3160
|
)) })
|
|
3159
3161
|
] }) }),
|
|
3160
|
-
$ !== null &&
|
|
3162
|
+
$ !== null && ue && /* @__PURE__ */ s(
|
|
3161
3163
|
"div",
|
|
3162
3164
|
{
|
|
3163
|
-
className: `${
|
|
3165
|
+
className: `${U.actionsMenu} ${U.actionsMenuFixed}`,
|
|
3164
3166
|
style: {
|
|
3165
3167
|
position: "fixed",
|
|
3166
|
-
top: `${
|
|
3167
|
-
left: `${
|
|
3168
|
+
top: `${ue.top}px`,
|
|
3169
|
+
left: `${ue.left}px`,
|
|
3168
3170
|
zIndex: 1e3
|
|
3169
3171
|
},
|
|
3170
3172
|
children: [
|
|
3171
|
-
|
|
3173
|
+
V && /* @__PURE__ */ s(
|
|
3172
3174
|
"div",
|
|
3173
3175
|
{
|
|
3174
|
-
className:
|
|
3176
|
+
className: U.actionItem,
|
|
3175
3177
|
onClick: (f) => {
|
|
3176
|
-
f.stopPropagation(), Ke(o[$], $),
|
|
3178
|
+
f.stopPropagation(), Ke(o[$], $), W(null), re(null);
|
|
3177
3179
|
},
|
|
3178
3180
|
children: [
|
|
3179
3181
|
/* @__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(
|
|
@@ -3193,10 +3195,10 @@ const Ct = ({
|
|
|
3193
3195
|
j && /* @__PURE__ */ s(
|
|
3194
3196
|
"div",
|
|
3195
3197
|
{
|
|
3196
|
-
className:
|
|
3198
|
+
className: U.actionItem,
|
|
3197
3199
|
style: { color: "#E3292F" },
|
|
3198
3200
|
onClick: (f) => {
|
|
3199
|
-
f.stopPropagation(), u(o[$], $),
|
|
3201
|
+
f.stopPropagation(), u(o[$], $), W(null), re(null);
|
|
3200
3202
|
},
|
|
3201
3203
|
children: [
|
|
3202
3204
|
/* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -3237,33 +3239,33 @@ const Ct = ({
|
|
|
3237
3239
|
]
|
|
3238
3240
|
}
|
|
3239
3241
|
),
|
|
3240
|
-
|
|
3242
|
+
Z.map((f, A) => /* @__PURE__ */ s(
|
|
3241
3243
|
"div",
|
|
3242
3244
|
{
|
|
3243
|
-
className:
|
|
3244
|
-
onClick: (
|
|
3245
|
-
|
|
3245
|
+
className: U.actionItem,
|
|
3246
|
+
onClick: (D) => {
|
|
3247
|
+
D.stopPropagation(), f.onClick?.(o[$], $), W(null), re(null);
|
|
3246
3248
|
},
|
|
3247
3249
|
children: [
|
|
3248
3250
|
f.icon && /* @__PURE__ */ e("div", { children: f.icon }),
|
|
3249
3251
|
f.text
|
|
3250
3252
|
]
|
|
3251
3253
|
},
|
|
3252
|
-
|
|
3254
|
+
A
|
|
3253
3255
|
))
|
|
3254
3256
|
]
|
|
3255
3257
|
}
|
|
3256
3258
|
),
|
|
3257
|
-
|
|
3258
|
-
/* @__PURE__ */ s("div", { className:
|
|
3259
|
-
/* @__PURE__ */ e("button", { className:
|
|
3259
|
+
Y && /* @__PURE__ */ s("div", { className: U.paginationFooter, children: [
|
|
3260
|
+
/* @__PURE__ */ s("div", { className: U.pagination, children: [
|
|
3261
|
+
/* @__PURE__ */ e("button", { className: U.paginationButton, onClick: () => q?.(Math.max(w - 1, 0)), disabled: w === 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(
|
|
3260
3262
|
"path",
|
|
3261
3263
|
{
|
|
3262
3264
|
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",
|
|
3263
3265
|
fill: "#131314"
|
|
3264
3266
|
}
|
|
3265
3267
|
) }) }),
|
|
3266
|
-
/* @__PURE__ */ s("span", { className:
|
|
3268
|
+
/* @__PURE__ */ s("span", { className: U.paginationInfo, children: [
|
|
3267
3269
|
"Page ",
|
|
3268
3270
|
w + 1,
|
|
3269
3271
|
" of ",
|
|
@@ -3272,7 +3274,7 @@ const Ct = ({
|
|
|
3272
3274
|
/* @__PURE__ */ e(
|
|
3273
3275
|
"button",
|
|
3274
3276
|
{
|
|
3275
|
-
className:
|
|
3277
|
+
className: U.paginationButton,
|
|
3276
3278
|
onClick: () => q?.(w + 1 < y ? w + 1 : w),
|
|
3277
3279
|
disabled: w + 1 >= y,
|
|
3278
3280
|
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(
|
|
@@ -3285,18 +3287,18 @@ const Ct = ({
|
|
|
3285
3287
|
}
|
|
3286
3288
|
)
|
|
3287
3289
|
] }),
|
|
3288
|
-
/* @__PURE__ */ s("div", { className:
|
|
3289
|
-
/* @__PURE__ */ s("p", { className:
|
|
3290
|
+
/* @__PURE__ */ s("div", { className: U.paginationRight, children: [
|
|
3291
|
+
/* @__PURE__ */ s("p", { className: U.paginationInfo, children: [
|
|
3290
3292
|
"Showing ",
|
|
3291
3293
|
Q,
|
|
3292
3294
|
"-",
|
|
3293
|
-
|
|
3295
|
+
z,
|
|
3294
3296
|
" of ",
|
|
3295
|
-
|
|
3297
|
+
B
|
|
3296
3298
|
] }),
|
|
3297
|
-
/* @__PURE__ */ e("div", { className:
|
|
3298
|
-
/* @__PURE__ */ e("p", { className:
|
|
3299
|
-
/* @__PURE__ */ e(ql, { currentValue:
|
|
3299
|
+
/* @__PURE__ */ e("div", { className: U.divider }),
|
|
3300
|
+
/* @__PURE__ */ e("p", { className: U.paginationSelectLabel, children: "Rows per page" }),
|
|
3301
|
+
/* @__PURE__ */ e(ql, { currentValue: O, options: ee, onChange: te || (() => {
|
|
3300
3302
|
}) })
|
|
3301
3303
|
] })
|
|
3302
3304
|
] })
|