helppeople-ui 1.1.0 → 1.1.2
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.
|
@@ -32,6 +32,7 @@ export interface CustomFilterToolbarProps {
|
|
|
32
32
|
loading?: boolean;
|
|
33
33
|
defaultValues?: Record<string, any>;
|
|
34
34
|
activeFiltersCount?: number;
|
|
35
|
+
onFiltersChange?: (filters: Record<string, any>) => void;
|
|
35
36
|
}
|
|
36
37
|
declare const CustomFilterToolbar: React.FC<CustomFilterToolbarProps>;
|
|
37
38
|
export default CustomFilterToolbar;
|
|
@@ -8,6 +8,9 @@ export interface CustomFormItemProps extends FormItemProps {
|
|
|
8
8
|
}
|
|
9
9
|
declare const CustomForm: React.FC<CustomFormProps> & {
|
|
10
10
|
Item: React.FC<CustomFormItemProps>;
|
|
11
|
+
List: typeof Form.List;
|
|
11
12
|
useForm: typeof Form.useForm;
|
|
13
|
+
useWatch: typeof Form.useWatch;
|
|
14
|
+
useFormInstance: typeof Form.useFormInstance;
|
|
12
15
|
};
|
|
13
16
|
export default CustomForm;
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { default as NumericInput } from './components/Inputs/CustomNumericInput/
|
|
|
27
27
|
export { default as CustomFilterDrawer } from './components/CustomFilterDrawer/CustomFilterDrawer';
|
|
28
28
|
export { default as CustomFilterDrawerHp } from './components/CustomFilterDrawerHp/CustomFilterDrawerHp';
|
|
29
29
|
export { default as Form } from './components/CustomForm/CustomForm';
|
|
30
|
+
export type { CustomFormProps, CustomFormItemProps } from './components/CustomForm/CustomForm';
|
|
30
31
|
export { default as Row } from './components/CustomRow/CustomRow';
|
|
31
32
|
export { default as Col } from './components/CustomCol/CustomCol';
|
|
32
33
|
export { default as Space } from './components/CustomSpace/CustomSpace';
|
package/dist/my-library.cjs.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Copyright (c) 2014, Jason Chen
|
|
5
5
|
* Copyright (c) 2013, salesforce.com
|
|
6
6
|
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.custom-rich-text-editor{position:static;z-index:1}.custom-rich-text-editor .ql-container{overflow-y:auto!important;overflow-x:hidden!important}.custom-rich-text-editor .ql-editor{overflow-y:auto!important;overflow-x:hidden!important;padding:12px!important;line-height:1.42!important}.custom-rich-text-editor.fixed-height .ql-container{height:100%!important}.custom-rich-text-editor.fixed-height .ql-editor{height:100%!important;max-height:none!important}.custom-rich-text-editor.auto-resize .ql-container{height:auto!important;min-height:inherit!important;max-height:inherit!important}.custom-rich-text-editor.auto-resize .ql-editor{height:auto!important;min-height:inherit!important;max-height:inherit!important;overflow-y:auto!important}.custom-rich-text-editor .ql-editor::-webkit-scrollbar{width:8px}.custom-rich-text-editor .ql-editor::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.custom-rich-text-editor .ql-editor::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.custom-rich-text-editor .ql-editor::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.custom-rich-text-editor .ql-toolbar{border-top:none!important;border-left:none!important;border-right:none!important;border-bottom:1px solid #ccc!important;flex-shrink:0!important}.custom-rich-text-editor .ql-container{border-top:none!important;border-left:none!important;border-right:none!important;border-bottom:none!important;flex:1!important;display:flex!important;flex-direction:column!important}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("antd"),w=require("react"),ie=require("dayjs"),Xe=require("@fullcalendar/react"),et=require("@fullcalendar/daygrid"),tt=require("@fullcalendar/timegrid"),rt=require("@fullcalendar/interaction"),nt=require("react-quill"),
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e,t){return bt(e)||Ct(e,t)||St(e,t)||wt()}function Ot(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function we(e,t){if(e==null)return{};var r,n,i=Ot(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("antd"),w=require("react"),ie=require("dayjs"),Xe=require("@fullcalendar/react"),et=require("@fullcalendar/daygrid"),tt=require("@fullcalendar/timegrid"),rt=require("@fullcalendar/interaction"),nt=require("react-quill"),B=require("react-beautiful-dnd");function ot(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const y=ot(w),it=e=>o.jsx(l.Alert,{...e}),M=({className:e,text:t,type:r,onClick:n,icon:i,style:a,disabled:d=!1,loading:c=!1,danger:s=!1,onMouseEnter:u,htmlType:h="button"})=>o.jsx(l.Button,{danger:s,type:r,onClick:n,icon:i,style:{...a,fontSize:"var(--font-size-medium)",fontWeight:"var(--font-weight-semibold",fontFamily:"var(--font-family)"},size:"small",disabled:d,loading:c,className:`${e||""}`,onMouseEnter:u,htmlType:h,children:t}),at=({label:e,...t})=>o.jsx(l.Checkbox,{...t,children:e});function N(e){"@babel/helpers - typeof";return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(e)}function st(e,t){if(N(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(N(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e){var t=st(e,"string");return N(t)=="symbol"?t:t+""}function S(e,t,r){return(t=lt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){S(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var K={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ct=C(C({},K),{},{locale:"es_ES",today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",week:"Semana",month:"Mes",year:"Año",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un año",decadeSelect:"Elegir una década",dateFormat:"D/M/YYYY",dateTimeFormat:"D/M/YYYY HH:mm:ss",previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"Año anterior (Control + left)",nextYear:"Año siguiente (Control + right)",previousDecade:"Década anterior",nextDecade:"Década siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"});const dt={placeholder:"Seleccionar hora"},ut={lang:Object.assign({placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"],shortWeekDays:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]},ct),timePickerLocale:Object.assign({},dt)};var ft=C(C({},K),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const ht={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},mt={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ft),timePickerLocale:Object.assign({},ht)};var gt=C(C({},K),{},{locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"OK",clear:"Limpar",week:"Semana",month:"Mês",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher mês",yearSelect:"Escolher ano",decadeSelect:"Escolher década",dateFormat:"D/M/YYYY",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!1,previousMonth:"Mês anterior (PageUp)",nextMonth:"Próximo mês (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Próximo ano (Control + direita)",previousDecade:"Década anterior",nextDecade:"Próxima década",previousCentury:"Século anterior",nextCentury:"Próximo século",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]});const pt={placeholder:"Hora"},yt={lang:Object.assign({placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"]},gt),timePickerLocale:Object.assign({},pt)},ve={es:ut,en:mt,pt:yt},xe=w.forwardRef(({localeCode:e="es",...t},r)=>{const n=ve[e];return o.jsx(l.DatePicker,{ref:r,...t,locale:n})});xe.displayName="CustomDatePicker";const be=w.forwardRef(({localeCode:e="es",...t},r)=>{const n=ve[e];return o.jsx(l.DatePicker.RangePicker,{ref:r,...t,locale:n})});be.displayName="CustomDatePicker.RangePicker";const $=xe;$.RangePicker=be;const vt=({text:e,textPosition:t="center",type:r="horizontal",...n})=>o.jsx(l.Divider,{...n,orientation:r==="horizontal"?t:void 0,type:r,children:e}),xt=({title:e,children:t,...r})=>o.jsx(l.Drawer,{title:e,...r,children:t});var Ce=w.createContext({});function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}function bt(e){if(Array.isArray(e))return e}function Ct(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,d,c=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(h){u=!0,i=h}finally{try{if(!s&&r.return!=null&&(d=r.return(),Object(d)!==d))return}finally{if(u)throw i}}return c}}function se(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function St(e,t){if(e){if(typeof e=="string")return se(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(e,t):void 0}}function wt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e,t){return bt(e)||Ct(e,t)||St(e,t)||wt()}function Ot(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function we(e,t){if(e==null)return{};var r,n,i=Ot(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V={exports:{}};/*!
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
11
11
|
http://jedwatson.github.io/classnames
|
|
12
|
-
*/var le;function kt(){return le||(le=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",d=0;d<arguments.length;d++){var c=arguments[d];c&&(a=i(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var d="";for(var c in a)t.call(a,c)&&a[c]&&(d=i(d,c));return d}function i(a,d){return d?a?a+" "+d:a+d:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(B)),B.exports}var Tt=kt();const Et=jt(Tt),x=Math.round;function V(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const ce=(e,t,r)=>r===0?e:e/100;function R(e,t){const r=t||255;return e>r?r:e<0?0:e}class P{constructor(t){S(this,"isValid",!0),S(this,"r",0),S(this,"g",0),S(this,"b",0),S(this,"a",1),S(this,"_h",void 0),S(this,"_s",void 0),S(this,"_l",void 0),S(this,"_v",void 0),S(this,"_max",void 0),S(this,"_min",void 0),S(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(t instanceof P)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=R(t.r),this.g=R(t.g),this.b=R(t.b),this.a=typeof t.a=="number"?R(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const d=a/255;return d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=x(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,a=c=>(n[c]-this[c])*i+this[c],d={r:x(a("r")),g:x(a("g")),b:x(a("b")),a:x(a("a")*100)/100};return this._c(d)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),i=a=>x((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=x(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=x(this.getSaturation()*100),n=x(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const i=this.clone();return i[t]=R(r,n),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(i,a){return parseInt(r[i]+r[a||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const g=x(n*255);this.r=g,this.g=g,this.b=g}let a=0,d=0,c=0;const s=t/60,u=(1-Math.abs(2*n-1))*r,f=u*(1-Math.abs(s%2-1));s>=0&&s<1?(a=u,d=f):s>=1&&s<2?(a=f,d=u):s>=2&&s<3?(d=u,c=f):s>=3&&s<4?(d=f,c=u):s>=4&&s<5?(a=f,c=u):s>=5&&s<6&&(a=u,c=f);const h=n-u/2;this.r=x((a+h)*255),this.g=x((d+h)*255),this.b=x((c+h)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const a=x(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const d=t/60,c=Math.floor(d),s=d-c,u=x(n*(1-r)*255),f=x(n*(1-r*s)*255),h=x(n*(1-r*(1-s))*255);switch(c){case 0:this.g=h,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=f;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(t){const r=V(t,ce);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=V(t,ce);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=V(t,(n,i)=>i.includes("%")?x(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var L=2,de=.16,Mt=.05,Nt=.05,Pt=.15,Oe=5,je=4,_t=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ue(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-L*t:Math.round(e.h)+L*t:n=r?Math.round(e.h)+L*t:Math.round(e.h)-L*t,n<0?n+=360:n>=360&&(n-=360),n}function fe(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-de*t:t===je?n=e.s+de:n=e.s+Mt*t,n>1&&(n=1),r&&t===Oe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function he(e,t,r){var n;return r?n=e.v+Nt*t:n=e.v-Pt*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Rt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new P(e),i=n.toHsv(),a=Oe;a>0;a-=1){var d=new P({h:ue(i,a,!0),s:fe(i,a,!0),v:he(i,a,!0)});r.push(d)}r.push(n);for(var c=1;c<=je;c+=1){var s=new P({h:ue(i,c),s:fe(i,c),v:he(i,c)});r.push(s)}return t.theme==="dark"?_t.map(function(u){var f=u.index,h=u.amount;return new P(t.backgroundColor||"#141414").mix(r[f],h).toHexString()}):r.map(function(u){return u.toHexString()})}var Y=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Y.primary=Y[5];function Dt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ht(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var me="data-rc-order",ge="data-rc-priority",It="rc-util-key",q=new Map;function ke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):It}function K(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function zt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Q(e){return Array.from((q.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Te(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Dt())return null;var r=t.csp,n=t.prepend,i=t.priority,a=i===void 0?0:i,d=zt(n),c=d==="prependQueue",s=document.createElement("style");s.setAttribute(me,d),c&&a&&s.setAttribute(ge,"".concat(a)),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;var u=K(t),f=u.firstChild;if(n){if(c){var h=(t.styles||Q(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(me)))return!1;var p=Number(g.getAttribute(ge)||0);return a>=p});if(h.length)return u.insertBefore(s,h[h.length-1].nextSibling),s}u.insertBefore(s,f)}else u.appendChild(s);return s}function Lt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=K(t);return(t.styles||Q(r)).find(function(n){return n.getAttribute(ke(t))===e})}function At(e,t){var r=q.get(e);if(!r||!Ht(document,r)){var n=Te("",t),i=n.parentNode;q.set(e,i),e.removeChild(n)}}function $t(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=K(r),i=Q(n),a=C(C({},r),{},{styles:i});At(n,a);var d=Lt(t,a);if(d){var c,s;if((c=a.csp)!==null&&c!==void 0&&c.nonce&&d.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;d.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return d.innerHTML!==e&&(d.innerHTML=e),d}var f=Te(e,a);return f.setAttribute(ke(a),t),f}function Ee(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ft(e){return Ee(e)instanceof ShadowRoot}function Bt(e){return Ft(e)?Ee(e):null}var W={},Z=[],Vt=function(t){Z.push(t)};function Yt(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Z.reduce(function(n,i){return i(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function qt(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Z.reduce(function(n,i){return i(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Wt(){W={}}function Me(e,t,r){!t&&!W[r]&&(e(!1,r),W[r]=!0)}function $(e,t){Me(Yt,e,t)}function Gt(e,t){Me(qt,e,t)}$.preMessage=Vt;$.resetWarned=Wt;$.noteOnce=Gt;function Ut(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Kt(e,t){$(e,"[@ant-design/icons] ".concat(t))}function pe(e){return N(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(N(e.icon)==="object"||typeof e.icon=="function")}function ye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Ut(r)]=n}return t},{})}function G(e,t,r){return r?w.createElement(e.tag,C(C({key:t},ye(e.attrs)),r),(e.children||[]).map(function(n,i){return G(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):w.createElement(e.tag,C({key:t},ye(e.attrs)),(e.children||[]).map(function(n,i){return G(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Ne(e){return Rt(e)[0]}function Pe(e){return e?Array.isArray(e)?e:[e]:[]}var Qt=`
|
|
12
|
+
*/var le;function kt(){return le||(le=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",d=0;d<arguments.length;d++){var c=arguments[d];c&&(a=i(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var d="";for(var c in a)t.call(a,c)&&a[c]&&(d=i(d,c));return d}function i(a,d){return d?a?a+" "+d:a+d:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(V)),V.exports}var Tt=kt();const Et=jt(Tt),x=Math.round;function Y(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const ce=(e,t,r)=>r===0?e:e/100;function H(e,t){const r=t||255;return e>r?r:e<0?0:e}class _{constructor(t){S(this,"isValid",!0),S(this,"r",0),S(this,"g",0),S(this,"b",0),S(this,"a",1),S(this,"_h",void 0),S(this,"_s",void 0),S(this,"_l",void 0),S(this,"_v",void 0),S(this,"_max",void 0),S(this,"_min",void 0),S(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(t instanceof _)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=H(t.r),this.g=H(t.g),this.b=H(t.b),this.a=typeof t.a=="number"?H(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const d=a/255;return d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=x(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,a=c=>(n[c]-this[c])*i+this[c],d={r:x(a("r")),g:x(a("g")),b:x(a("b")),a:x(a("a")*100)/100};return this._c(d)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),i=a=>x((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=x(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=x(this.getSaturation()*100),n=x(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const i=this.clone();return i[t]=H(r,n),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(i,a){return parseInt(r[i]+r[a||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const p=x(n*255);this.r=p,this.g=p,this.b=p}let a=0,d=0,c=0;const s=t/60,u=(1-Math.abs(2*n-1))*r,h=u*(1-Math.abs(s%2-1));s>=0&&s<1?(a=u,d=h):s>=1&&s<2?(a=h,d=u):s>=2&&s<3?(d=u,c=h):s>=3&&s<4?(d=h,c=u):s>=4&&s<5?(a=h,c=u):s>=5&&s<6&&(a=u,c=h);const f=n-u/2;this.r=x((a+f)*255),this.g=x((d+f)*255),this.b=x((c+f)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const a=x(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const d=t/60,c=Math.floor(d),s=d-c,u=x(n*(1-r)*255),h=x(n*(1-r*s)*255),f=x(n*(1-r*(1-s))*255);switch(c){case 0:this.g=f,this.b=u;break;case 1:this.r=h,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=h;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=h;break}}fromHsvString(t){const r=Y(t,ce);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Y(t,ce);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Y(t,(n,i)=>i.includes("%")?x(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var A=2,de=.16,Mt=.05,Nt=.05,Pt=.15,Oe=5,je=4,_t=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ue(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-A*t:Math.round(e.h)+A*t:n=r?Math.round(e.h)+A*t:Math.round(e.h)-A*t,n<0?n+=360:n>=360&&(n-=360),n}function fe(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-de*t:t===je?n=e.s+de:n=e.s+Mt*t,n>1&&(n=1),r&&t===Oe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function he(e,t,r){var n;return r?n=e.v+Nt*t:n=e.v-Pt*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Rt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new _(e),i=n.toHsv(),a=Oe;a>0;a-=1){var d=new _({h:ue(i,a,!0),s:fe(i,a,!0),v:he(i,a,!0)});r.push(d)}r.push(n);for(var c=1;c<=je;c+=1){var s=new _({h:ue(i,c),s:fe(i,c),v:he(i,c)});r.push(s)}return t.theme==="dark"?_t.map(function(u){var h=u.index,f=u.amount;return new _(t.backgroundColor||"#141414").mix(r[h],f).toHexString()}):r.map(function(u){return u.toHexString()})}var q=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];q.primary=q[5];function Dt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ht(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var me="data-rc-order",ge="data-rc-priority",It="rc-util-key",W=new Map;function ke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):It}function Q(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function zt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Z(e){return Array.from((W.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Te(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Dt())return null;var r=t.csp,n=t.prepend,i=t.priority,a=i===void 0?0:i,d=zt(n),c=d==="prependQueue",s=document.createElement("style");s.setAttribute(me,d),c&&a&&s.setAttribute(ge,"".concat(a)),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;var u=Q(t),h=u.firstChild;if(n){if(c){var f=(t.styles||Z(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(me)))return!1;var g=Number(p.getAttribute(ge)||0);return a>=g});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,h)}else u.appendChild(s);return s}function Lt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Q(t);return(t.styles||Z(r)).find(function(n){return n.getAttribute(ke(t))===e})}function At(e,t){var r=W.get(e);if(!r||!Ht(document,r)){var n=Te("",t),i=n.parentNode;W.set(e,i),e.removeChild(n)}}function $t(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Q(r),i=Z(n),a=C(C({},r),{},{styles:i});At(n,a);var d=Lt(t,a);if(d){var c,s;if((c=a.csp)!==null&&c!==void 0&&c.nonce&&d.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var u;d.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return d.innerHTML!==e&&(d.innerHTML=e),d}var h=Te(e,a);return h.setAttribute(ke(a),t),h}function Ee(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ft(e){return Ee(e)instanceof ShadowRoot}function Bt(e){return Ft(e)?Ee(e):null}var G={},J=[],Vt=function(t){J.push(t)};function Yt(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=J.reduce(function(n,i){return i(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function qt(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=J.reduce(function(n,i){return i(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Wt(){G={}}function Me(e,t,r){!t&&!G[r]&&(e(!1,r),G[r]=!0)}function F(e,t){Me(Yt,e,t)}function Gt(e,t){Me(qt,e,t)}F.preMessage=Vt;F.resetWarned=Wt;F.noteOnce=Gt;function Ut(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Kt(e,t){F(e,"[@ant-design/icons] ".concat(t))}function pe(e){return N(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(N(e.icon)==="object"||typeof e.icon=="function")}function ye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Ut(r)]=n}return t},{})}function U(e,t,r){return r?w.createElement(e.tag,C(C({key:t},ye(e.attrs)),r),(e.children||[]).map(function(n,i){return U(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):w.createElement(e.tag,C({key:t},ye(e.attrs)),(e.children||[]).map(function(n,i){return U(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Ne(e){return Rt(e)[0]}function Pe(e){return e?Array.isArray(e)?e:[e]:[]}var Qt=`
|
|
13
13
|
.anticon {
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
@@ -66,4 +66,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66
66
|
}
|
|
67
67
|
`,Zt=function(t){var r=w.useContext(Ce),n=r.csp,i=r.prefixCls,a=r.layer,d=Qt;i&&(d=d.replace(/anticon/g,i)),a&&(d="@layer ".concat(a,` {
|
|
68
68
|
`).concat(d,`
|
|
69
|
-
}`)),w.useEffect(function(){var c=t.current,s=Bt(c);$t(d,"@ant-design-icons",{prepend:!a,csp:n,attachTo:s})},[])},Jt=["icon","className","onClick","style","primaryColor","secondaryColor"],D={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Xt(e){var t=e.primaryColor,r=e.secondaryColor;D.primaryColor=t,D.secondaryColor=r||Ne(t),D.calculated=!!r}function er(){return C({},D)}var _=function(t){var r=t.icon,n=t.className,i=t.onClick,a=t.style,d=t.primaryColor,c=t.secondaryColor,s=we(t,Jt),u=y.useRef(),f=D;if(d&&(f={primaryColor:d,secondaryColor:c||Ne(d)}),Zt(u),Kt(pe(r),"icon should be icon definiton, but got ".concat(r)),!pe(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=C(C({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),G(h.icon,"svg-".concat(h.name),C(C({className:n,onClick:i,style:a,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};_.displayName="IconReact";_.getTwoToneColors=er;_.setTwoToneColors=Xt;function _e(e){var t=Pe(e),r=Se(t,2),n=r[0],i=r[1];return _.setTwoToneColors({primaryColor:n,secondaryColor:i})}function tr(){var e=_.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var rr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];_e(Y.primary);var j=y.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,a=e.rotate,d=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=we(e,rr),f=y.useContext(Ce),h=f.prefixCls,g=h===void 0?"anticon":h,p=f.rootClassName,k=Et(p,g,S(S({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!i||n.name==="loading"),r),v=d;v===void 0&&c&&(v=-1);var E=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=Pe(s),b=Se(m,2),T=b[0],z=b[1];return y.createElement("span",O({role:"img","aria-label":n.name},u,{ref:t,tabIndex:v,onClick:c,className:k}),y.createElement(_,{icon:n,primaryColor:T,secondaryColor:z,style:E}))});j.displayName="AntdIcon";j.getTwoToneColor=tr;j.setTwoToneColor=_e;var nr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},or=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:nr}))},Re=y.forwardRef(or);process.env.NODE_ENV!=="production"&&(Re.displayName="ArrowLeftOutlined");var ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},ar=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:ir}))},H=y.forwardRef(ar);process.env.NODE_ENV!=="production"&&(H.displayName="ClearOutlined");var sr={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},lr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:sr}))},De=y.forwardRef(lr);process.env.NODE_ENV!=="production"&&(De.displayName="CloseOutlined");var cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},dr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:cr}))},He=y.forwardRef(dr);process.env.NODE_ENV!=="production"&&(He.displayName="DeleteOutlined");var ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},fr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:ur}))},J=y.forwardRef(fr);process.env.NODE_ENV!=="production"&&(J.displayName="EditOutlined");var hr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},mr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:hr}))},Ie=y.forwardRef(mr);process.env.NODE_ENV!=="production"&&(Ie.displayName="FileExcelOutlined");var gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},pr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:gr}))},ze=y.forwardRef(pr);process.env.NODE_ENV!=="production"&&(ze.displayName="FilePdfOutlined");var yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},vr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:yr}))},X=y.forwardRef(vr);process.env.NODE_ENV!=="production"&&(X.displayName="FilterOutlined");var xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},br=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:xr}))},ee=y.forwardRef(br);process.env.NODE_ENV!=="production"&&(ee.displayName="PlusOutlined");var Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Sr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:Cr}))},Le=y.forwardRef(Sr);process.env.NODE_ENV!=="production"&&(Le.displayName="SaveOutlined");var wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Or=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:wr}))},Ae=y.forwardRef(Or);process.env.NODE_ENV!=="production"&&(Ae.displayName="SearchOutlined");var jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},kr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:jr}))},$e=y.forwardRef(kr);process.env.NODE_ENV!=="production"&&($e.displayName="UploadOutlined");const te=w.forwardRef((e,t)=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:e.label}),o.jsx(l.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));te.displayName="CustomInput";const Tr=e=>o.jsx(l.Input.Password,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Er=e=>o.jsx(l.Input.TextArea,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Mr=e=>o.jsx(l.Input.Search,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Fe=e=>{const t=r=>{const n=r.key;!/^[0-9.]$/.test(n)&&n!=="Backspace"&&r.preventDefault()};return o.jsx(l.InputNumber,{...e,onKeyPress:t,style:{...e.style},controls:!1})},Be=e=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:e.label}),o.jsx(l.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),Nr=({fields:e,filters:t,onFilter:r,onClearFilters:n,localeCode:i="es",actions:a=[],onAdvancedFilters:d,loading:c=!1,defaultValues:s={},activeFiltersCount:u=0})=>{const[f,h]=w.useState(()=>t||s||{});w.useEffect(()=>{t&&h(t)},[t]);const g=(m,b)=>{h(T=>({...T,[m]:b}))},p=()=>{r(f)},k=()=>{h({}),n==null||n()},E=(m=>m<=2?12:m<=3?8:m<=4?6:4)(e.length);return o.jsxs("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:[o.jsx(l.Row,{justify:"space-between",align:"middle",children:o.jsx(l.Col,{style:{marginLeft:"auto"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.map((m,b)=>!m.hide&&o.jsx(M,{size:"small",icon:m.icon,onClick:m.onClick,style:{border:"none",background:"none"},loading:m.loading},b)),d&&o.jsx(l.Badge,{count:u,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:o.jsx(M,{size:"small",icon:o.jsx(X,{}),onClick:d,style:{border:"none",background:"none"}})})]})})}),o.jsxs(l.Row,{gutter:[8,8],children:[e.map(m=>o.jsx(l.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[m.label&&o.jsx("label",{style:{display:"block",marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m.label}),{text:o.jsx(te,{placeholder:m.placeholder,value:f[m.key],onChange:b=>g(m.key,b.target.value),style:{width:"100%"}}),number:o.jsx(Fe,{placeholder:m.placeholder,value:f[m.key],onChange:b=>g(m.key,b),style:{width:"100%"}}),date:o.jsx(A,{localeCode:i,onChange:(b,T)=>g(m.key,T),style:{width:"100%"}}),range:o.jsx(A.RangePicker,{localeCode:i,value:f[m.key]&&f[m.key][0]?[ie(f[m.key][0]),ie(f[m.key][1])]:void 0,onChange:(b,T)=>g(m.key,T),style:{width:"100%"}}),select:o.jsx(Be,{placeholder:m.placeholder,options:m.options,value:f[m.key],mode:m.mode,allowClear:m.allowClear,showSearch:m.showSearch,optionFilterProp:m.optionFilterProp,filterOption:m.filterOption,onChange:b=>g(m.key,b),style:{width:"100%"}})}[m.type||"text"]]})},m.key)),o.jsx(l.Col,{xs:24,sm:12,md:E,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[o.jsx(M,{type:"primary",size:"small",onClick:p,loading:c,disabled:c,text:"Aplicar",className:"force-white-text-button"}),o.jsx(M,{size:"small",icon:o.jsx(H,{}),onClick:k,disabled:c})]})})]})]})},re=({className:e,tooltip:t,...r})=>o.jsx(l.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});re.Group=e=>o.jsx(l.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});re.BackTop=l.FloatButton.BackTop;const Pr=({label:e,...t})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[o.jsx(l.Switch,{...t}),e&&o.jsx("span",{children:e})]}),Ve=({title:e,children:t,...r})=>o.jsx(l.Modal,{className:"custom-modal",title:e,...r,children:t});["info","success","error","warning","confirm","destroyAll"].forEach(e=>{Ve[e]=l.Modal[e]});const _r={open:({type:e,message:t,description:r,duration:n=3,placement:i="topRight"})=>{l.notification[e]({message:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:t}),description:r&&o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:r}),duration:n,placement:i,style:{fontSize:"var(--font-size-medium)"}})}},Ye=({label:e,...t})=>o.jsx(l.Radio,{...t,children:e});Ye.Group=e=>o.jsx(l.Radio.Group,{...e});const Rr=e=>o.jsx(l.Radio.Group,{...e}),Dr=({loadingText:e,...t})=>o.jsxs("div",{style:{padding:"1rem"},children:[e&&o.jsx("p",{children:e}),o.jsx(l.Skeleton,{...t})]}),Hr=({tip:e,spinning:t=!0,size:r="default",overlay:n=!1,children:i,...a})=>(console.log("CustomSpin render:",{spinning:t,overlay:n,tip:e,size:r}),n&&t?o.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},children:o.jsxs("div",{style:{textAlign:"center",color:"white"},children:[o.jsx(l.Spin,{tip:e,spinning:t,size:r,...a}),e&&o.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):o.jsx(l.Spin,{tip:e,spinning:t,size:r,...a,children:i})),Ir=({columns:e,dataSource:t,pagination:r,...n})=>{const i=t==null?void 0:t.filter(c=>c?Object.values(c).some(u=>u!=null&&u!==""):!1),a=e==null?void 0:e.map((c,s)=>({...c,key:c.key||s,title:typeof c.title=="string"?o.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:c.title}):c.title})),d=r?{...r,showTotal:(c,s)=>`${s[1]-s[0]+1} de ${c} registros`,style:{margin:0,padding:"10px 16px",borderTop:"1px solid #e0e0e0",backgroundColor:"#ffffff",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}}:!1;return o.jsx(l.Table,{...n,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:{x:"max-content"},columns:a,dataSource:i,pagination:d})},zr=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,type:i="line"})=>o.jsx("div",{style:{backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:o.jsx(l.Tabs,{defaultActiveKey:t,activeKey:r,onChange:n,type:i,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(a=>({key:a.key,label:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:a.label}),children:o.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:a.content})}))})}),Lr=({title:e,onBack:t,onNew:r,newButtonText:n="Nueva",backButtonText:i="Volver",newButtonLoading:a=!1,newButtonDisabled:d=!1,pageType:c="list"})=>{const s=()=>c==="form"?o.jsx(Le,{}):c==="detail"?o.jsx(J,{}):o.jsx(ee,{});return o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem",padding:"1rem 1.5rem",backgroundColor:"#ffffff",borderBottom:"1px solid #e0e0e0",marginBottom:"1rem"},children:[o.jsx("h2",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-large)",color:"var(--text-color)",flex:"1 1 auto"},children:e}),o.jsxs(l.Space,{wrap:!0,children:[t&&o.jsx(M,{type:"default",onClick:t,icon:o.jsx(Re,{}),style:{fontSize:"var(--font-size-medium)"},text:i}),r&&o.jsx(M,{type:"primary",onClick:r,icon:s(),style:{fontSize:"var(--font-size-medium)"},text:n,loading:a,disabled:d})]})]})},Ar=({content:e,children:t,...r})=>o.jsx(l.Tooltip,{title:e,...r,style:{fontSize:"var(--font-size-medium)"},children:t}),$r=({buttonText:e="Subir archivo",...t})=>o.jsx(l.Upload,{...t,children:o.jsx(l.Button,{icon:o.jsx($e,{}),children:e})}),Fr=({visible:e,title:t,fields:r,filters:n,onClose:i,onApplyFilters:a,onClearFilters:d,onChange:c})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:i,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,children:"Aplicar filtros"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(H,{}),onClick:d})})]})}),footerStyle:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px"},children:o.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:r.map(s=>o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"calc(50% - 8px)"},children:[o.jsx("label",{style:{marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)"},children:s.label}),{text:o.jsx(l.Input,{placeholder:s.placeholder,value:n[s.key],onChange:u=>c(s.key,u.target.value)}),number:o.jsx(l.InputNumber,{placeholder:s.placeholder,value:n[s.key],onChange:u=>c(s.key,u),style:{width:"100%"}}),select:o.jsx(l.Select,{placeholder:s.placeholder,options:s.options,value:n[s.key],onChange:u=>c(s.key,u),style:{width:"100%"}})}[s.type]]},s.key))})}),Br=({visible:e,title:t,filters:r,onChange:n,onClose:i,onSubmit:a,onClear:d,children:c,loading:s=!1})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:i,open:e,width:400,styles:{body:{paddingBottom:80,display:"flex",flexWrap:"wrap",gap:16},footer:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px",textAlign:"right"}},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,loading:s,disabled:s,style:{color:"#fff",backgroundColor:"#1b1464"},children:"Aplicar"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(H,{}),onClick:d,disabled:s,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:c({filters:r,onChange:n})}),ne=e=>{const[t]=l.Form.useForm(),r=e.form||t;return o.jsx(l.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})};ne.Item=e=>o.jsx(l.Form.Item,{...e});ne.useForm=l.Form.useForm;const qe=e=>o.jsx(l.Row,{...e,children:e.children}),We=e=>o.jsx(l.Col,{...e,children:e.children}),Vr=e=>o.jsx(l.Space,{...e,children:e.children}),Ge=e=>o.jsx(l.Card,{...e}),Yr=e=>o.jsx(l.Tag,{...e});var qr={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},Wr={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},Gr={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const Ur={es:qr,en:Wr,pt:Gr},Kr=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:n=!0,editable:i=!1,onEventClick:a,onDateSelect:d,renderEventContent:c,localeCode:s="es"})=>{const u=e;function f(p){a&&a({id:p.event.id,title:p.event.title,start:p.event.start,end:p.event.end??void 0,allDay:p.event.allDay})}function h(p){d&&d({start:p.start,end:p.end,allDay:p.allDay})}function g(p){return o.jsxs("div",{children:[o.jsx("b",{children:p.timeText})," ",o.jsx("span",{children:p.event.title})]})}return o.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",padding:"8px 12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:o.jsx(Xe,{plugins:[et,tt,rt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:n,editable:i,events:u,eventContent:c??g,eventClick:f,select:h,locale:Ur[s||"es"]})})},Qr={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"],[{color:[]},{background:[]}],[{align:[]}]],clipboard:{matchVisual:!1}},Zr=["header","bold","italic","underline","strike","blockquote","list","bullet","link","image","color","background","align"],Jr=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:n=Qr,formats:i=Zr,theme:a="snow",height:d="200px",width:c="100%",maxHeight:s="400px",minHeight:u="100px",autoResize:f=!1,className:h="",...g})=>{const p=w.useRef(null),k=w.useRef(null);w.useEffect(()=>{if(f&&p.current&&k.current){const m=p.current.getEditor(),b=k.current,T=()=>{const z=b.querySelector(".ql-editor");if(z){const Ke=z.scrollHeight,Qe=typeof u=="number"?u:parseInt(u),Ze=typeof s=="number"?s:parseInt(s),Je=Math.min(Math.max(Ke+42,Qe),Ze);b.style.height=`${Je}px`}};return m.on("text-change",T),T(),()=>{m.off("text-change",T)}}},[f,s,u]);const v={width:typeof c=="number"?`${c}px`:c,height:f?"auto":typeof d=="number"?`${d}px`:d,minHeight:typeof u=="number"?`${u}px`:u,maxHeight:f?typeof s=="number"?`${s}px`:s:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...g.style},E={height:"100%",display:"flex",flexDirection:"column"};return o.jsx("div",{ref:k,className:`custom-rich-text-editor ${f?"auto-resize":"fixed-height"} ${h}`,style:v,children:o.jsx(nt,{ref:p,theme:a,value:e,onChange:t,modules:n,formats:i,placeholder:r,style:E,...g})})},I=e=>o.jsx(l.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});I.Item=e=>o.jsx(l.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});I.SubMenu=e=>o.jsx(l.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});I.ItemGroup=l.Menu.ItemGroup;I.Divider=l.Menu.Divider;const Ue=({className:e,children:t,items:r,menu:n,...i})=>{const a=r?{items:r}:n;return o.jsx(l.Dropdown,{className:`custom-dropdown ${e||""}`,menu:a,...i,children:t})};Ue.Button=e=>o.jsx(l.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Xr}=l.Typography,en=({available:e,selected:t,onChange:r,availableTitle:n="Disponibles",selectedTitle:i="Seleccionados",emptyDescription:a="Arrastra los elementos aquí"})=>{const d=s=>{const{source:u,destination:f}=s;if(f&&!(u.droppableId===f.droppableId&&u.index===f.index))if(u.droppableId===f.droppableId){const h=u.droppableId==="disponibles"?[...e]:[...t],[g]=h.splice(u.index,1);h.splice(f.index,0,g),u.droppableId==="disponibles"?r(h,t):r(e,h)}else{const h=u.droppableId==="disponibles"?[...e]:[...t],g=f.droppableId==="disponibles"?[...e]:[...t],[p]=h.splice(u.index,1);g.splice(f.index,0,p),u.droppableId==="disponibles"?r(h,g):r(g,h)}},c=(s,u,f)=>o.jsxs(We,{span:12,children:[o.jsx(Xr,{level:4,style:{marginBottom:16,fontSize:14},children:u}),o.jsx(F.Droppable,{droppableId:s,children:(h,g)=>o.jsxs("div",{ref:h.innerRef,...h.droppableProps,style:{minHeight:300,background:g.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${g.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[f.length===0?o.jsx(l.Empty,{description:a,style:{opacity:.3}}):f.map((p,k)=>o.jsx(F.Draggable,{draggableId:p.id,index:k,children:(v,E)=>o.jsx("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,style:{marginBottom:8,cursor:E.isDragging?"grabbing":"grab",opacity:E.isDragging?.8:1,transform:E.isDragging?"rotate(3deg)":"none",...v.draggableProps.style},children:o.jsx(Ge,{size:"small",style:{boxShadow:E.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:p.content})})},p.id)),h.placeholder]})})]});return o.jsx(F.DragDropContext,{onDragEnd:d,children:o.jsxs(qe,{gutter:16,style:{margin:"24px 0"},children:[c("disponibles",n,e),c("seleccionados",i,t)]})})},tn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,accordion:i=!1,bordered:a=!0,collapsible:d="header",expandIcon:c,expandIconPosition:s="start",ghost:u=!1,size:f="middle",className:h,style:g})=>{const k={items:e.map(v=>({key:v.key,label:v.header,children:v.children,disabled:v.disabled,showArrow:v.showArrow,extra:v.extra,className:v.className,style:v.style})),defaultActiveKey:t,activeKey:r,onChange:n,accordion:i,bordered:a,collapsible:d,expandIcon:c,expandIconPosition:s,ghost:u,size:f,className:h,style:g};return o.jsx("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:o.jsx(l.Collapse,{...k})})},rn=e=>o.jsx(l.Empty,{...e}),nn=({className:e,style:t,...r},n)=>o.jsx(l.List,{ref:n,className:`${e}`,style:t,...r}),oe=w.forwardRef(nn);oe.Item=l.List.Item;oe.ItemMeta=l.List.Item.Meta;const on={INPUT_HEIGHT:25,FONT_SIZE:12,PRIMARY_COLOR:"#1b1464",FONT_FAMILY:'"Open Sans", sans-serif',TABLE_ROW_HEIGHT:25,BORDER_COLOR:"#d9d9d9",TEXT_COLOR:"#333333"},an=({children:e,customTokens:t={}})=>{const r={...on,...t};return o.jsx(l.ConfigProvider,{theme:{token:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,colorPrimary:r.PRIMARY_COLOR,fontFamily:r.FONT_FAMILY,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,colorBgBase:"#ffffff"},components:{Button:{fontSize:r.FONT_SIZE,controlHeight:22,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044",colorText:r.TEXT_COLOR,colorBgContainer:"#ffffff",colorBorder:r.BORDER_COLOR},Table:{cellFontSize:r.FONT_SIZE,cellPaddingBlock:4,headerBg:"#fafafa",headerColor:r.TEXT_COLOR,headerSplitColor:r.BORDER_COLOR,colorText:"inherit"},Input:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},Select:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},DatePicker:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,fontFamily:r.FONT_FAMILY,colorBorder:r.BORDER_COLOR,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",borderRadius:4,paddingInline:8},Checkbox:{colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044"},Spin:{colorPrimary:r.PRIMARY_COLOR,dotSize:20,dotSizeSM:16,dotSizeLG:24}}},children:o.jsx("div",{className:"library-components-wrapper","data-input-height":r.INPUT_HEIGHT,"data-font-size":r.FONT_SIZE,"data-primary-color":r.PRIMARY_COLOR,children:e})})},sn={open:e=>{l.message.open(e)},success:(e,t,r)=>{l.message.success(e,t,r)},error:(e,t,r)=>{l.message.error(e,t,r)},info:(e,t,r)=>{l.message.info(e,t,r)},warning:(e,t,r)=>{l.message.warning(e,t,r)},loading:(e,t,r)=>{l.message.loading(e,t,r)}};exports.Accordion=tn;exports.Alert=it;exports.Button=M;exports.Calendar=Kr;exports.Card=Ge;exports.CheckBox=at;exports.ClearOutlined=H;exports.CloseOutlined=De;exports.Col=We;exports.CustomFilterDrawer=Fr;exports.CustomFilterDrawerHp=Br;exports.DatePicker=A;exports.DeleteOutlined=He;exports.Divider=vt;exports.DragAndDrop=en;exports.Drawer=xt;exports.Dropdown=Ue;exports.EditOutlined=J;exports.Empty=rn;exports.FileExcelOutlined=Ie;exports.FilePdfOutlined=ze;exports.FilterOutlined=X;exports.FilterToolbar=Nr;exports.FloatButton=re;exports.Form=ne;exports.Input=te;exports.InputSwitch=Pr;exports.LibraryThemeProvider=an;exports.List=oe;exports.Menu=I;exports.Message=sn;exports.Modal=Ve;exports.Notification=_r;exports.NumericInput=Fe;exports.Password=Tr;exports.PlusOutlined=ee;exports.Radio=Ye;exports.RadioGroup=Rr;exports.RichTextEditor=Jr;exports.Row=qe;exports.Search=Mr;exports.SearchOutlined=Ae;exports.Select=Be;exports.Skeleton=Dr;exports.Space=Vr;exports.Spin=Hr;exports.Table=Ir;exports.Tabs=zr;exports.Tag=Yr;exports.TextArea=Er;exports.Toolbar=Lr;exports.Tooltip=Ar;exports.Upload=$r;
|
|
69
|
+
}`)),w.useEffect(function(){var c=t.current,s=Bt(c);$t(d,"@ant-design-icons",{prepend:!a,csp:n,attachTo:s})},[])},Jt=["icon","className","onClick","style","primaryColor","secondaryColor"],I={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Xt(e){var t=e.primaryColor,r=e.secondaryColor;I.primaryColor=t,I.secondaryColor=r||Ne(t),I.calculated=!!r}function er(){return C({},I)}var R=function(t){var r=t.icon,n=t.className,i=t.onClick,a=t.style,d=t.primaryColor,c=t.secondaryColor,s=we(t,Jt),u=y.useRef(),h=I;if(d&&(h={primaryColor:d,secondaryColor:c||Ne(d)}),Zt(u),Kt(pe(r),"icon should be icon definiton, but got ".concat(r)),!pe(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=C(C({},f),{},{icon:f.icon(h.primaryColor,h.secondaryColor)})),U(f.icon,"svg-".concat(f.name),C(C({className:n,onClick:i,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};R.displayName="IconReact";R.getTwoToneColors=er;R.setTwoToneColors=Xt;function _e(e){var t=Pe(e),r=Se(t,2),n=r[0],i=r[1];return R.setTwoToneColors({primaryColor:n,secondaryColor:i})}function tr(){var e=R.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var rr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];_e(q.primary);var j=y.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,a=e.rotate,d=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=we(e,rr),h=y.useContext(Ce),f=h.prefixCls,p=f===void 0?"anticon":f,g=h.rootClassName,k=Et(g,p,S(S({},"".concat(p,"-").concat(n.name),!!n.name),"".concat(p,"-spin"),!!i||n.name==="loading"),r),v=d;v===void 0&&c&&(v=-1);var E=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,P=Pe(s),m=Se(P,2),b=m[0],T=m[1];return y.createElement("span",O({role:"img","aria-label":n.name},u,{ref:t,tabIndex:v,onClick:c,className:k}),y.createElement(R,{icon:n,primaryColor:b,secondaryColor:T,style:E}))});j.displayName="AntdIcon";j.getTwoToneColor=tr;j.setTwoToneColor=_e;var nr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},or=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:nr}))},Re=y.forwardRef(or);process.env.NODE_ENV!=="production"&&(Re.displayName="ArrowLeftOutlined");var ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},ar=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:ir}))},z=y.forwardRef(ar);process.env.NODE_ENV!=="production"&&(z.displayName="ClearOutlined");var sr={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},lr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:sr}))},De=y.forwardRef(lr);process.env.NODE_ENV!=="production"&&(De.displayName="CloseOutlined");var cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},dr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:cr}))},He=y.forwardRef(dr);process.env.NODE_ENV!=="production"&&(He.displayName="DeleteOutlined");var ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},fr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:ur}))},X=y.forwardRef(fr);process.env.NODE_ENV!=="production"&&(X.displayName="EditOutlined");var hr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},mr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:hr}))},Ie=y.forwardRef(mr);process.env.NODE_ENV!=="production"&&(Ie.displayName="FileExcelOutlined");var gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},pr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:gr}))},ze=y.forwardRef(pr);process.env.NODE_ENV!=="production"&&(ze.displayName="FilePdfOutlined");var yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},vr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:yr}))},ee=y.forwardRef(vr);process.env.NODE_ENV!=="production"&&(ee.displayName="FilterOutlined");var xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},br=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:xr}))},te=y.forwardRef(br);process.env.NODE_ENV!=="production"&&(te.displayName="PlusOutlined");var Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Sr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:Cr}))},Le=y.forwardRef(Sr);process.env.NODE_ENV!=="production"&&(Le.displayName="SaveOutlined");var wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Or=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:wr}))},Ae=y.forwardRef(Or);process.env.NODE_ENV!=="production"&&(Ae.displayName="SearchOutlined");var jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},kr=function(t,r){return y.createElement(j,O({},t,{ref:r,icon:jr}))},$e=y.forwardRef(kr);process.env.NODE_ENV!=="production"&&($e.displayName="UploadOutlined");const re=w.forwardRef((e,t)=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:e.label}),o.jsx(l.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));re.displayName="CustomInput";const Tr=e=>o.jsx(l.Input.Password,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Er=e=>o.jsx(l.Input.TextArea,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Mr=e=>o.jsx(l.Input.Search,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Fe=e=>{const t=r=>{const n=r.key;!/^[0-9.]$/.test(n)&&n!=="Backspace"&&r.preventDefault()};return o.jsx(l.InputNumber,{...e,onKeyPress:t,style:{...e.style},controls:!1})},Be=e=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:e.label}),o.jsx(l.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),Nr=({fields:e,filters:t,onFilter:r,onClearFilters:n,localeCode:i="es",actions:a=[],onAdvancedFilters:d,loading:c=!1,defaultValues:s={},activeFiltersCount:u=0,onFiltersChange:h})=>{const[f,p]=w.useState(()=>t||s||{});w.useEffect(()=>{t&&p(t)},[t]);const g=(m,b)=>{const T={...f,[m]:b};p(T),h==null||h(T)},k=()=>{r(f)},v=()=>{p({}),n==null||n()},P=(m=>m<=2?12:m<=3?8:m<=4?6:4)(e.length);return o.jsxs("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:[o.jsx(l.Row,{justify:"space-between",align:"middle",children:o.jsx(l.Col,{style:{marginLeft:"auto"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.map((m,b)=>!m.hide&&o.jsx(M,{size:"small",icon:m.icon,onClick:m.onClick,style:{border:"none",background:"none"},loading:m.loading},b)),d&&o.jsx(l.Badge,{count:u,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:o.jsx(M,{size:"small",icon:o.jsx(ee,{}),onClick:d,style:{border:"none",background:"none"}})})]})})}),o.jsxs(l.Row,{gutter:[8,8],children:[e.map(m=>o.jsx(l.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[m.label&&o.jsx("label",{style:{display:"block",marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m.label}),{text:o.jsx(re,{placeholder:m.placeholder,value:f[m.key],onChange:b=>g(m.key,b.target.value),style:{width:"100%"}}),number:o.jsx(Fe,{placeholder:m.placeholder,value:f[m.key],onChange:b=>g(m.key,b),style:{width:"100%"}}),date:o.jsx($,{localeCode:i,onChange:(b,T)=>g(m.key,T),style:{width:"100%"}}),range:o.jsx($.RangePicker,{localeCode:i,value:f[m.key]&&f[m.key][0]?[ie(f[m.key][0]),ie(f[m.key][1])]:void 0,onChange:(b,T)=>g(m.key,T),style:{width:"100%"}}),select:o.jsx(Be,{placeholder:m.placeholder,options:m.options,value:f[m.key],mode:m.mode,allowClear:m.allowClear,showSearch:m.showSearch,optionFilterProp:m.optionFilterProp,filterOption:m.filterOption,onChange:b=>g(m.key,b),style:{width:"100%"}})}[m.type||"text"]]})},m.key)),o.jsx(l.Col,{xs:24,sm:12,md:P,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[o.jsx(M,{type:"primary",size:"small",onClick:k,loading:c,disabled:c,text:"Aplicar",className:"force-white-text-button"}),o.jsx(M,{size:"small",icon:o.jsx(z,{}),onClick:v,disabled:c})]})})]})]})},ne=({className:e,tooltip:t,...r})=>o.jsx(l.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});ne.Group=e=>o.jsx(l.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});ne.BackTop=l.FloatButton.BackTop;const Pr=({label:e,...t})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[o.jsx(l.Switch,{...t}),e&&o.jsx("span",{children:e})]}),Ve=({title:e,children:t,...r})=>o.jsx(l.Modal,{className:"custom-modal",title:e,...r,children:t});["info","success","error","warning","confirm","destroyAll"].forEach(e=>{Ve[e]=l.Modal[e]});const _r={open:({type:e,message:t,description:r,duration:n=3,placement:i="topRight"})=>{l.notification[e]({message:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:t}),description:r&&o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:r}),duration:n,placement:i,style:{fontSize:"var(--font-size-medium)"}})}},Ye=({label:e,...t})=>o.jsx(l.Radio,{...t,children:e});Ye.Group=e=>o.jsx(l.Radio.Group,{...e});const Rr=e=>o.jsx(l.Radio.Group,{...e}),Dr=({loadingText:e,...t})=>o.jsxs("div",{style:{padding:"1rem"},children:[e&&o.jsx("p",{children:e}),o.jsx(l.Skeleton,{...t})]}),Hr=({tip:e,spinning:t=!0,size:r="default",overlay:n=!1,children:i,...a})=>(console.log("CustomSpin render:",{spinning:t,overlay:n,tip:e,size:r}),n&&t?o.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},children:o.jsxs("div",{style:{textAlign:"center",color:"white"},children:[o.jsx(l.Spin,{tip:e,spinning:t,size:r,...a}),e&&o.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):o.jsx(l.Spin,{tip:e,spinning:t,size:r,...a,children:i})),Ir=({columns:e,dataSource:t,pagination:r,...n})=>{const i=t==null?void 0:t.filter(c=>c?Object.values(c).some(u=>u!=null&&u!==""):!1),a=e==null?void 0:e.map((c,s)=>({...c,key:c.key||s,title:typeof c.title=="string"?o.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:c.title}):c.title})),d=r?{...r,showTotal:(c,s)=>`${s[1]-s[0]+1} de ${c} registros`,style:{margin:0,padding:"10px 16px",borderTop:"1px solid #e0e0e0",backgroundColor:"#ffffff",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}}:!1;return o.jsx(l.Table,{...n,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:{x:"max-content"},columns:a,dataSource:i,pagination:d})},zr=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,type:i="line"})=>o.jsx("div",{style:{backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:o.jsx(l.Tabs,{defaultActiveKey:t,activeKey:r,onChange:n,type:i,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(a=>({key:a.key,label:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:a.label}),children:o.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:a.content})}))})}),Lr=({title:e,onBack:t,onNew:r,newButtonText:n="Nueva",backButtonText:i="Volver",newButtonLoading:a=!1,newButtonDisabled:d=!1,pageType:c="list"})=>{const s=()=>c==="form"?o.jsx(Le,{}):c==="detail"?o.jsx(X,{}):o.jsx(te,{});return o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem",padding:"1rem 1.5rem",backgroundColor:"#ffffff",borderBottom:"1px solid #e0e0e0",marginBottom:"1rem"},children:[o.jsx("h2",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-large)",color:"var(--text-color)",flex:"1 1 auto"},children:e}),o.jsxs(l.Space,{wrap:!0,children:[t&&o.jsx(M,{type:"default",onClick:t,icon:o.jsx(Re,{}),style:{fontSize:"var(--font-size-medium)"},text:i}),r&&o.jsx(M,{type:"primary",onClick:r,icon:s(),style:{fontSize:"var(--font-size-medium)"},text:n,loading:a,disabled:d})]})]})},Ar=({content:e,children:t,...r})=>o.jsx(l.Tooltip,{title:e,...r,style:{fontSize:"var(--font-size-medium)"},children:t}),$r=({buttonText:e="Subir archivo",...t})=>o.jsx(l.Upload,{...t,children:o.jsx(l.Button,{icon:o.jsx($e,{}),children:e})}),Fr=({visible:e,title:t,fields:r,filters:n,onClose:i,onApplyFilters:a,onClearFilters:d,onChange:c})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:i,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,children:"Aplicar filtros"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(z,{}),onClick:d})})]})}),footerStyle:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px"},children:o.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:r.map(s=>o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"calc(50% - 8px)"},children:[o.jsx("label",{style:{marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)"},children:s.label}),{text:o.jsx(l.Input,{placeholder:s.placeholder,value:n[s.key],onChange:u=>c(s.key,u.target.value)}),number:o.jsx(l.InputNumber,{placeholder:s.placeholder,value:n[s.key],onChange:u=>c(s.key,u),style:{width:"100%"}}),select:o.jsx(l.Select,{placeholder:s.placeholder,options:s.options,value:n[s.key],onChange:u=>c(s.key,u),style:{width:"100%"}})}[s.type]]},s.key))})}),Br=({visible:e,title:t,filters:r,onChange:n,onClose:i,onSubmit:a,onClear:d,children:c,loading:s=!1})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:i,open:e,width:400,styles:{body:{paddingBottom:80,display:"flex",flexWrap:"wrap",gap:16},footer:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px",textAlign:"right"}},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,loading:s,disabled:s,style:{color:"#fff",backgroundColor:"#1b1464"},children:"Aplicar"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(z,{}),onClick:d,disabled:s,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:c({filters:r,onChange:n})}),D=e=>{const[t]=l.Form.useForm(),r=e.form||t;return o.jsx(l.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})};D.Item=l.Form.Item;D.List=l.Form.List;D.useForm=l.Form.useForm;D.useWatch=l.Form.useWatch;D.useFormInstance=l.Form.useFormInstance;const qe=e=>o.jsx(l.Row,{...e,children:e.children}),We=e=>o.jsx(l.Col,{...e,children:e.children}),Vr=e=>o.jsx(l.Space,{...e,children:e.children}),Ge=e=>o.jsx(l.Card,{...e}),Yr=e=>o.jsx(l.Tag,{...e});var qr={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},Wr={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},Gr={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const Ur={es:qr,en:Wr,pt:Gr},Kr=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:n=!0,editable:i=!1,onEventClick:a,onDateSelect:d,renderEventContent:c,localeCode:s="es"})=>{const u=e;function h(g){a&&a({id:g.event.id,title:g.event.title,start:g.event.start,end:g.event.end??void 0,allDay:g.event.allDay})}function f(g){d&&d({start:g.start,end:g.end,allDay:g.allDay})}function p(g){return o.jsxs("div",{children:[o.jsx("b",{children:g.timeText})," ",o.jsx("span",{children:g.event.title})]})}return o.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",padding:"8px 12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:o.jsx(Xe,{plugins:[et,tt,rt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:n,editable:i,events:u,eventContent:c??p,eventClick:h,select:f,locale:Ur[s||"es"]})})},Qr={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"],[{color:[]},{background:[]}],[{align:[]}]],clipboard:{matchVisual:!1}},Zr=["header","bold","italic","underline","strike","blockquote","list","bullet","link","image","color","background","align"],Jr=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:n=Qr,formats:i=Zr,theme:a="snow",height:d="200px",width:c="100%",maxHeight:s="400px",minHeight:u="100px",autoResize:h=!1,className:f="",...p})=>{const g=w.useRef(null),k=w.useRef(null);w.useEffect(()=>{if(h&&g.current&&k.current){const P=g.current.getEditor(),m=k.current,b=()=>{const T=m.querySelector(".ql-editor");if(T){const Ke=T.scrollHeight,Qe=typeof u=="number"?u:parseInt(u),Ze=typeof s=="number"?s:parseInt(s),Je=Math.min(Math.max(Ke+42,Qe),Ze);m.style.height=`${Je}px`}};return P.on("text-change",b),b(),()=>{P.off("text-change",b)}}},[h,s,u]);const v={width:typeof c=="number"?`${c}px`:c,height:h?"auto":typeof d=="number"?`${d}px`:d,minHeight:typeof u=="number"?`${u}px`:u,maxHeight:h?typeof s=="number"?`${s}px`:s:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...p.style},E={height:"100%",display:"flex",flexDirection:"column"};return o.jsx("div",{ref:k,className:`custom-rich-text-editor ${h?"auto-resize":"fixed-height"} ${f}`,style:v,children:o.jsx(nt,{ref:g,theme:a,value:e,onChange:t,modules:n,formats:i,placeholder:r,style:E,...p})})},L=e=>o.jsx(l.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});L.Item=e=>o.jsx(l.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});L.SubMenu=e=>o.jsx(l.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});L.ItemGroup=l.Menu.ItemGroup;L.Divider=l.Menu.Divider;const Ue=({className:e,children:t,items:r,menu:n,...i})=>{const a=r?{items:r}:n;return o.jsx(l.Dropdown,{className:`custom-dropdown ${e||""}`,menu:a,...i,children:t})};Ue.Button=e=>o.jsx(l.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Xr}=l.Typography,en=({available:e,selected:t,onChange:r,availableTitle:n="Disponibles",selectedTitle:i="Seleccionados",emptyDescription:a="Arrastra los elementos aquí"})=>{const d=s=>{const{source:u,destination:h}=s;if(h&&!(u.droppableId===h.droppableId&&u.index===h.index))if(u.droppableId===h.droppableId){const f=u.droppableId==="disponibles"?[...e]:[...t],[p]=f.splice(u.index,1);f.splice(h.index,0,p),u.droppableId==="disponibles"?r(f,t):r(e,f)}else{const f=u.droppableId==="disponibles"?[...e]:[...t],p=h.droppableId==="disponibles"?[...e]:[...t],[g]=f.splice(u.index,1);p.splice(h.index,0,g),u.droppableId==="disponibles"?r(f,p):r(p,f)}},c=(s,u,h)=>o.jsxs(We,{span:12,children:[o.jsx(Xr,{level:4,style:{marginBottom:16,fontSize:14},children:u}),o.jsx(B.Droppable,{droppableId:s,children:(f,p)=>o.jsxs("div",{ref:f.innerRef,...f.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[h.length===0?o.jsx(l.Empty,{description:a,style:{opacity:.3}}):h.map((g,k)=>o.jsx(B.Draggable,{draggableId:g.id,index:k,children:(v,E)=>o.jsx("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,style:{marginBottom:8,cursor:E.isDragging?"grabbing":"grab",opacity:E.isDragging?.8:1,transform:E.isDragging?"rotate(3deg)":"none",...v.draggableProps.style},children:o.jsx(Ge,{size:"small",style:{boxShadow:E.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:g.content})})},g.id)),f.placeholder]})})]});return o.jsx(B.DragDropContext,{onDragEnd:d,children:o.jsxs(qe,{gutter:16,style:{margin:"24px 0"},children:[c("disponibles",n,e),c("seleccionados",i,t)]})})},tn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,accordion:i=!1,bordered:a=!0,collapsible:d="header",expandIcon:c,expandIconPosition:s="start",ghost:u=!1,size:h="middle",className:f,style:p})=>{const k={items:e.map(v=>({key:v.key,label:v.header,children:v.children,disabled:v.disabled,showArrow:v.showArrow,extra:v.extra,className:v.className,style:v.style})),defaultActiveKey:t,activeKey:r,onChange:n,accordion:i,bordered:a,collapsible:d,expandIcon:c,expandIconPosition:s,ghost:u,size:h,className:f,style:p};return o.jsx("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:o.jsx(l.Collapse,{...k})})},rn=e=>o.jsx(l.Empty,{...e}),nn=({className:e,style:t,...r},n)=>o.jsx(l.List,{ref:n,className:`${e}`,style:t,...r}),oe=w.forwardRef(nn);oe.Item=l.List.Item;oe.ItemMeta=l.List.Item.Meta;const on={INPUT_HEIGHT:25,FONT_SIZE:12,PRIMARY_COLOR:"#1b1464",FONT_FAMILY:'"Open Sans", sans-serif',TABLE_ROW_HEIGHT:25,BORDER_COLOR:"#d9d9d9",TEXT_COLOR:"#333333"},an=({children:e,customTokens:t={}})=>{const r={...on,...t};return o.jsx(l.ConfigProvider,{theme:{token:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,colorPrimary:r.PRIMARY_COLOR,fontFamily:r.FONT_FAMILY,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,colorBgBase:"#ffffff"},components:{Button:{fontSize:r.FONT_SIZE,controlHeight:22,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044",colorText:r.TEXT_COLOR,colorBgContainer:"#ffffff",colorBorder:r.BORDER_COLOR},Table:{cellFontSize:r.FONT_SIZE,cellPaddingBlock:4,headerBg:"#fafafa",headerColor:r.TEXT_COLOR,headerSplitColor:r.BORDER_COLOR,colorText:"inherit"},Input:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},Select:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},DatePicker:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,fontFamily:r.FONT_FAMILY,colorBorder:r.BORDER_COLOR,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",borderRadius:4,paddingInline:8},Checkbox:{colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044"},Spin:{colorPrimary:r.PRIMARY_COLOR,dotSize:20,dotSizeSM:16,dotSizeLG:24}}},children:o.jsx("div",{className:"library-components-wrapper","data-input-height":r.INPUT_HEIGHT,"data-font-size":r.FONT_SIZE,"data-primary-color":r.PRIMARY_COLOR,children:e})})},sn={open:e=>{l.message.open(e)},success:(e,t,r)=>{l.message.success(e,t,r)},error:(e,t,r)=>{l.message.error(e,t,r)},info:(e,t,r)=>{l.message.info(e,t,r)},warning:(e,t,r)=>{l.message.warning(e,t,r)},loading:(e,t,r)=>{l.message.loading(e,t,r)}};exports.Accordion=tn;exports.Alert=it;exports.Button=M;exports.Calendar=Kr;exports.Card=Ge;exports.CheckBox=at;exports.ClearOutlined=z;exports.CloseOutlined=De;exports.Col=We;exports.CustomFilterDrawer=Fr;exports.CustomFilterDrawerHp=Br;exports.DatePicker=$;exports.DeleteOutlined=He;exports.Divider=vt;exports.DragAndDrop=en;exports.Drawer=xt;exports.Dropdown=Ue;exports.EditOutlined=X;exports.Empty=rn;exports.FileExcelOutlined=Ie;exports.FilePdfOutlined=ze;exports.FilterOutlined=ee;exports.FilterToolbar=Nr;exports.FloatButton=ne;exports.Form=D;exports.Input=re;exports.InputSwitch=Pr;exports.LibraryThemeProvider=an;exports.List=oe;exports.Menu=L;exports.Message=sn;exports.Modal=Ve;exports.Notification=_r;exports.NumericInput=Fe;exports.Password=Tr;exports.PlusOutlined=te;exports.Radio=Ye;exports.RadioGroup=Rr;exports.RichTextEditor=Jr;exports.Row=qe;exports.Search=Mr;exports.SearchOutlined=Ae;exports.Select=Be;exports.Skeleton=Dr;exports.Space=Vr;exports.Spin=Hr;exports.Table=Ir;exports.Tabs=zr;exports.Tag=Yr;exports.TextArea=Er;exports.Toolbar=Lr;exports.Tooltip=Ar;exports.Upload=$r;
|