ucol-ui 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ucol-ui.css +1 -1
- package/dist/ucol-ui.js +4 -4
- package/dist/ucol-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ucol-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-red-700:oklch(50.5% .213 27.518);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-700:oklch(55.4% .135 66.442);--color-green-50:oklch(98.2% .018 155.826);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-700:oklch(50% .134 242.749);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components;@layer utilities{.visible{visibility:visible}.static{position:static}.my-4{margin-block:calc(var(--spacing)*4)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.\!mb-4{margin-bottom:calc(var(--spacing)*4)!important}.mb-3{margin-bottom:calc(var(--spacing)*3)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.table{display:table}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-blue-500{border-color:var(--color-blue-500)}.\!bg-blue-600{background-color:var(--color-blue-600)!important}.\!bg-orange-600{background-color:var(--color-orange-600)!important}.\!bg-red-500{background-color:var(--color-red-500)!important}.\!bg-sky-500{background-color:var(--color-sky-500)!important}.\!bg-yellow-500{background-color:var(--color-yellow-500)!important}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-50{background-color:var(--color-green-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\!text-white{color:var(--color-white)!important}.text-blue-500{color:var(--color-blue-500)}.text-gray-500{color:var(--color-gray-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}@media(hover:hover){.hover\:\!bg-red-700:hover{background-color:var(--color-red-700)!important}.hover\:\!bg-sky-700:hover{background-color:var(--color-sky-700)!important}.hover\:\!bg-yellow-700:hover{background-color:var(--color-yellow-700)!important}.hover\:text-gray-700:hover{color:var(--color-gray-700)}}@media(min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}.dynamic-table .ant-table{background:0 0}.dynamic-table .ant-table-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e2e8f0}.dynamic-table .ant-table-tbody>tr>td{border-bottom:1px solid #e2e8f0}.dynamic-table .ant-table-tbody>tr:hover>td{background:#f8fafc}.dynamic-table .ant-table-pagination{margin:16px 24px}.action-button{border-radius:6px;padding:4px 8px}button.ant-btn-warning,button.ant-btn-info,button.ant-btn-danger,button.ant-btn-dangerous,button.ant-btn-primary,button.ant-btn-success,button.ant-btn-reload,button.ant-btn-download{background-color:#fff;border:2px solid;font-weight:bolder;box-shadow:0 0}button.ant-btn-warning{color:#ffca2c;border-color:#ffca2c}button.ant-btn-danger,button.ant-btn-dangerous{color:#dc3545;border-color:#dc3545}button.ant-btn-warning:hover{color:#ffca2c;border-color:#ffca2c}button.ant-btn-danger:hover,button.ant-btn-dangerous:hover{color:#dc3545;border-color:#dc3545}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-50:oklch(98.7% .026 102.212);--color-green-50:oklch(98.2% .018 155.826);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components;@layer utilities{.visible{visibility:visible}.static{position:static}.my-4{margin-block:calc(var(--spacing)*4)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.\!mb-4{margin-bottom:calc(var(--spacing)*4)!important}.mb-3{margin-bottom:calc(var(--spacing)*3)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.table{display:table}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-blue-500{border-color:var(--color-blue-500)}.\!bg-blue-600{background-color:var(--color-blue-600)!important}.\!bg-orange-600{background-color:var(--color-orange-600)!important}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-50{background-color:var(--color-green-50)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\!text-white{color:var(--color-white)!important}.text-blue-500{color:var(--color-blue-500)}.text-gray-500{color:var(--color-gray-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}@media(hover:hover){.hover\:text-gray-700:hover{color:var(--color-gray-700)}}@media(min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}.dynamic-table .ant-table{background:0 0}.dynamic-table .ant-table-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e2e8f0}.dynamic-table .ant-table-tbody>tr>td{border-bottom:1px solid #e2e8f0}.dynamic-table .ant-table-tbody>tr:hover>td{background:#f8fafc}.dynamic-table .ant-table-pagination{margin:16px 24px}.action-button{border-radius:6px;padding:4px 8px}button.ant-btn-warning,button.ant-btn-info,button.ant-btn-danger,button.ant-btn-dangerous,button.ant-btn-primary,button.ant-btn-success,button.ant-btn-reload,button.ant-btn-download{background-color:#fff;border:2px solid;font-weight:bolder;box-shadow:0 0}button.ant-btn-warning{color:#ffca2c;border-color:#ffca2c}button.ant-btn-danger,button.ant-btn-dangerous{color:#dc3545;border-color:#dc3545}button.ant-btn-warning:hover{color:#ffca2c;border-color:#ffca2c}button.ant-btn-danger:hover,button.ant-btn-dangerous:hover{color:#dc3545;border-color:#dc3545}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
package/dist/ucol-ui.js
CHANGED
|
@@ -7,7 +7,7 @@ return oe.jsxs("div",{children:[
|
|
|
7
7
|
/* @__PURE__ */oe.jsxs("div",{className:"tw-flex tw-items-center tw-gap-4",children:[l&&t.cloneElement(l),
|
|
8
8
|
/* @__PURE__ */oe.jsx("span",{className:"tw-font-semibold",children:a})]}),
|
|
9
9
|
/* @__PURE__ */oe.jsx("p",{className:"tw-text-sm tw-text-gray-500",children:i})]}),
|
|
10
|
-
/* @__PURE__ */oe.jsxs(b,{form:y,layout:s,initialValues:h,onFinish:e=>{const t={...e};c.filter(e=>"object"==typeof e&&!Array.isArray(e)).forEach(e=>{"datepicker"===e.type&&t[e.name]&&(t[e.name]=V(t[e.name]).format(e.datepickerConfig?.format||"YYYY-MM-DD")),e.submitKey&&void 0!==t[e.name]&&(t[e.submitKey]=t[e.name],e.submitKey!==e.name&&delete t[e.name])});const n=Ae(t);p?.(n)},onValuesChange:D,children:[(q=c,m?q.map(e=>Array.isArray(e)?e:[e]):W(q)).map((e,t)=>/* @__PURE__ */oe.jsx(v,{gutter:16,children:e.map((n,r)=>/* @__PURE__ */oe.jsx(w,{span:24/e.length,children:U(n)},`${t}-${r}`))},t)),c.filter(t=>"object"==typeof t&&!Array.isArray(t)&&(!0===t.hidden||"create"===t.hiddenIn&&"create"===e||"edit"===t.hiddenIn&&"update"===e)).map(e=>/* @__PURE__ */oe.jsx(b.Item,{name:e.name,hidden:!0,children:/* @__PURE__ */oe.jsx(k,{type:"hidden"})},e.name)),"view"!==e&&/* @__PURE__ */oe.jsx(v,{justify:"end",children:/* @__PURE__ */oe.jsx(b.Item,{children:/* @__PURE__ */oe.jsx(g,{type:"primary",htmlType:"submit",className:"tw-bg-primary",style:{color:"white"},children:"update"===e?f:d})})})]})]});var q};function Ve(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5.82843 6.99955L8.36396 9.53509L6.94975 10.9493L2 5.99955L6.94975 1.0498L8.36396 2.46402L5.82843 4.99955H13C17.4183 4.99955 21 8.58127 21 12.9996C21 17.4178 17.4183 20.9996 13 20.9996H4V18.9996H13C16.3137 18.9996 19 16.3133 19 12.9996C19 9.68584 16.3137 6.99955 13 6.99955H5.82843Z"},child:[]}]})(e)}function Be(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M6.41421 15.89L16.5563 5.74785L15.1421 4.33363L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6473L14.435 2.21231C14.8256 1.82179 15.4587 1.82179 15.8492 2.21231L18.6777 5.04074C19.0682 5.43126 19.0682 6.06443 18.6777 6.45495L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z"},child:[]}]})(e)}function We(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.85858 2.87732L15.4293 1.0815C15.7027 1.04245 15.9559 1.2324 15.995 1.50577C15.9983 1.52919 16 1.55282 16 1.57648V22.4235C16 22.6996 15.7761 22.9235 15.5 22.9235C15.4763 22.9235 15.4527 22.9218 15.4293 22.9184L2.85858 21.1226C2.36593 21.0522 2 20.6303 2 20.1327V3.86727C2 3.36962 2.36593 2.9477 2.85858 2.87732ZM4 4.73457V19.2654L14 20.694V3.30599L4 4.73457ZM17 19H20V4.99997H17V2.99997H21C21.5523 2.99997 22 3.44769 22 3.99997V20C22 20.5523 21.5523 21 21 21H17V19ZM10.2 12L13 16H10.6L9 13.7143L7.39999 16H5L7.8 12L5 7.99997H7.39999L9 10.2857L10.6 7.99997H13L10.2 12Z"},child:[]}]})(e)}function Ue(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M11 11V7H13V11H17V13H13V17H11V13H7V11H11ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"},child:[]}]})(e)}function qe(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z"},child:[]}]})(e)}function Xe(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"},child:[]}]})(e)}function Qe(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"},child:[]}]})(e)}function Ge(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"},child:[]}]})(e)}function Ye(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z"},child:[]}]})(e)}const{Search:Ke}=k,Ze=({title:e,icon:r,description:o,showSearchBar:i=!0,showCreateButton:l,onCreate:s,onEdit:u,onDelete:c,onView:d,onRefresh:f,exportToExcel:p,createButtonText:h="Crear",createButtonIcon:m=/* @__PURE__ */oe.jsx(Ue,{}),columns:y,data:b,loading:v,moreActions:w,customFilters:k,disableWrapper:S=!1,actionConfig:x={showDefaultActions:!0,showEdit:!0,showDelete:!0,showView:!1,refreshButtonText:"Refrescar",useDefaultDeleteConfirm:!0,customIcons:{create:/* @__PURE__ */oe.jsx(Ue,{}),edit:/* @__PURE__ */oe.jsx(Be,{}),delete:/* @__PURE__ */oe.jsx(qe,{}),refresh:/* @__PURE__ */oe.jsx(Ge,{}),view:/* @__PURE__ */oe.jsx(Xe,{})},customActionsColor:{edit:"!bg-yellow-500 hover:!bg-yellow-700",delete:"!bg-red-500 hover:!bg-red-700",view:"!bg-sky-500 hover:!bg-sky-700"}},showRefreshButton:C,hiddenActions:E=!1,searchConfig:P={searchableFields:[],customSearch:void 0},backButton:N,widthActionsCol:T,bulkUpload:O,onBulkUpload:z,responsiveMode:D=!1,colsInResponsiveMode:j})=>{const[A,M]=n(""),[I,H]=n(!1),[V,B]=n(null),U="tw-transition-all tw-duration-300 tw-shadow-xs hover:tw-shadow-sm",q="tw-flex-1 xs:tw-flex-initial tw-bg-white hover:tw-bg-gray-50 tw-border tw-border-gray-200 tw-px-3 tw-h-8 tw-text-sm dark:tw-bg-gray-700 dark:tw-border-gray-600 dark:hover:tw-bg-gray-600 dark:tw-text-white",X="tw-rounded-lg tw-h-8 tw-w-8 tw-flex tw-items-center tw-justify-center !tw-text-white !tw-border-none tw-flex-shrink-0",Q="!tw-bg-yellow-500 hover:!tw-bg-yellow-700 dark:!tw-bg-yellow-600 dark:hover:!tw-bg-yellow-800 hover:!tw-border hover:!tw-border-yellow-500",G="!tw-bg-red-500 hover:!tw-bg-red-700 dark:!tw-bg-red-600 dark:hover:!tw-bg-red-800 hover:!tw-border hover:!tw-border-red-500",Y="tw-bg-sky-500 hover:tw-bg-sky-700 dark:tw-bg-sky-600 dark:hover:tw-bg-sky-800 hover:!tw-text-sky-500 hover:!tw-border hover:!tw-border-sky-500",K="!tw-bg-blue-500 hover:!tw-bg-blue-700 dark:!tw-bg-blue-600 dark:hover:!tw-bg-blue-800",Z=a(()=>b.map((e,t)=>({...e,key:t})),[b]),J=(e,t)=>Object.values(e).some(e=>null!=e&&("object"!=typeof e||Array.isArray(e)?("string"==typeof e||"number"==typeof e||"boolean"==typeof e)&&String(e).toLowerCase().includes(t.toLowerCase()):J(e,t))),ee=a(()=>A?Z.filter(e=>{const t=e;return P.customSearch?P.customSearch(t,A):(P.searchableFields??[]).length>0?((e,t,n)=>n.some(n=>{const r=n.includes(".")?De(e,n):e[n];return null!=r&&r.toString().toLowerCase().includes(t.toLowerCase())}))(t,A,P.searchableFields??[]):J(e,A)}):Z,[Z,A,P]),te=e=>{M(e)},ne={defaultPageSize:10,showSizeChanger:!0,showTotal:e=>`Total ${e} registros${A?" filtrados":""}`,pageSizeOptions:["10","20","50","100"]},re=e=>{u?.(e)},ae=e=>{c?.(e)},ie=e=>{d?.(e)},le=()=>{H(!1),B(null)},se=()=>N?"boolean"==typeof N?/* @__PURE__ */oe.jsx(g,{icon:/* @__PURE__ */oe.jsx(Ve,{}),className:`${U} ${q} tw-px-4`,onClick:()=>window.history.back(),children:"Volver"}):N:null;/* @__PURE__ */
|
|
10
|
+
/* @__PURE__ */oe.jsxs(b,{form:y,layout:s,initialValues:h,onFinish:e=>{const t={...e};c.filter(e=>"object"==typeof e&&!Array.isArray(e)).forEach(e=>{"datepicker"===e.type&&t[e.name]&&(t[e.name]=V(t[e.name]).format(e.datepickerConfig?.format||"YYYY-MM-DD")),e.submitKey&&void 0!==t[e.name]&&(t[e.submitKey]=t[e.name],e.submitKey!==e.name&&delete t[e.name])});const n=Ae(t);p?.(n)},onValuesChange:D,children:[(q=c,m?q.map(e=>Array.isArray(e)?e:[e]):W(q)).map((e,t)=>/* @__PURE__ */oe.jsx(v,{gutter:16,children:e.map((n,r)=>/* @__PURE__ */oe.jsx(w,{span:24/e.length,children:U(n)},`${t}-${r}`))},t)),c.filter(t=>"object"==typeof t&&!Array.isArray(t)&&(!0===t.hidden||"create"===t.hiddenIn&&"create"===e||"edit"===t.hiddenIn&&"update"===e)).map(e=>/* @__PURE__ */oe.jsx(b.Item,{name:e.name,hidden:!0,children:/* @__PURE__ */oe.jsx(k,{type:"hidden"})},e.name)),"view"!==e&&/* @__PURE__ */oe.jsx(v,{justify:"end",children:/* @__PURE__ */oe.jsx(b.Item,{children:/* @__PURE__ */oe.jsx(g,{type:"primary",htmlType:"submit",className:"tw-bg-primary",style:{color:"white"},children:"update"===e?f:d})})})]})]});var q};function Ve(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5.82843 6.99955L8.36396 9.53509L6.94975 10.9493L2 5.99955L6.94975 1.0498L8.36396 2.46402L5.82843 4.99955H13C17.4183 4.99955 21 8.58127 21 12.9996C21 17.4178 17.4183 20.9996 13 20.9996H4V18.9996H13C16.3137 18.9996 19 16.3133 19 12.9996C19 9.68584 16.3137 6.99955 13 6.99955H5.82843Z"},child:[]}]})(e)}function Be(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M6.41421 15.89L16.5563 5.74785L15.1421 4.33363L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6473L14.435 2.21231C14.8256 1.82179 15.4587 1.82179 15.8492 2.21231L18.6777 5.04074C19.0682 5.43126 19.0682 6.06443 18.6777 6.45495L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z"},child:[]}]})(e)}function We(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.85858 2.87732L15.4293 1.0815C15.7027 1.04245 15.9559 1.2324 15.995 1.50577C15.9983 1.52919 16 1.55282 16 1.57648V22.4235C16 22.6996 15.7761 22.9235 15.5 22.9235C15.4763 22.9235 15.4527 22.9218 15.4293 22.9184L2.85858 21.1226C2.36593 21.0522 2 20.6303 2 20.1327V3.86727C2 3.36962 2.36593 2.9477 2.85858 2.87732ZM4 4.73457V19.2654L14 20.694V3.30599L4 4.73457ZM17 19H20V4.99997H17V2.99997H21C21.5523 2.99997 22 3.44769 22 3.99997V20C22 20.5523 21.5523 21 21 21H17V19ZM10.2 12L13 16H10.6L9 13.7143L7.39999 16H5L7.8 12L5 7.99997H7.39999L9 10.2857L10.6 7.99997H13L10.2 12Z"},child:[]}]})(e)}function Ue(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M11 11V7H13V11H17V13H13V17H11V13H7V11H11ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"},child:[]}]})(e)}function qe(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z"},child:[]}]})(e)}function Xe(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"},child:[]}]})(e)}function Qe(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"},child:[]}]})(e)}function Ge(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"},child:[]}]})(e)}function Ye(e){return he({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z"},child:[]}]})(e)}const{Search:Ke}=k,Ze=({title:e,icon:r,description:o,showSearchBar:i=!0,showCreateButton:l,onCreate:s,onEdit:u,onDelete:c,onView:d,onRefresh:f,exportToExcel:p,createButtonText:h="Crear",createButtonIcon:m=/* @__PURE__ */oe.jsx(Ue,{}),columns:y,data:b,loading:v,moreActions:w,customFilters:k,disableWrapper:S=!1,actionConfig:x={showDefaultActions:!0,showEdit:!0,showDelete:!0,showView:!1,refreshButtonText:"Refrescar",useDefaultDeleteConfirm:!0,customIcons:{create:/* @__PURE__ */oe.jsx(Ue,{}),edit:/* @__PURE__ */oe.jsx(Be,{}),delete:/* @__PURE__ */oe.jsx(qe,{}),refresh:/* @__PURE__ */oe.jsx(Ge,{}),view:/* @__PURE__ */oe.jsx(Xe,{})},customActionsColor:{edit:"!tw-bg-yellow-500 hover:!tw-bg-yellow-700",delete:"!tw-bg-red-500 hover:!tw-bg-red-700",view:"!tw-bg-sky-500 hover:!tw-bg-sky-700"}},showRefreshButton:C,hiddenActions:E=!1,searchConfig:P={searchableFields:[],customSearch:void 0},backButton:N,widthActionsCol:T,bulkUpload:O,onBulkUpload:z,responsiveMode:D=!1,colsInResponsiveMode:j})=>{const[A,M]=n(""),[I,H]=n(!1),[V,B]=n(null),U="tw-transition-all tw-duration-300 tw-shadow-xs hover:tw-shadow-sm",q="tw-flex-1 xs:tw-flex-initial tw-bg-white hover:tw-bg-gray-50 tw-border tw-border-gray-200 tw-px-3 tw-h-8 tw-text-sm dark:tw-bg-gray-700 dark:tw-border-gray-600 dark:hover:tw-bg-gray-600 dark:tw-text-white",X="tw-rounded-lg tw-h-8 tw-w-8 tw-flex tw-items-center tw-justify-center !tw-text-white !tw-border-none tw-flex-shrink-0",Q="!tw-bg-yellow-500 hover:!tw-bg-yellow-700 dark:!tw-bg-yellow-600 dark:hover:!tw-bg-yellow-800 hover:!tw-border hover:!tw-border-yellow-500",G="!tw-bg-red-500 hover:!tw-bg-red-700 dark:!tw-bg-red-600 dark:hover:!tw-bg-red-800 hover:!tw-border hover:!tw-border-red-500",Y="tw-bg-sky-500 hover:tw-bg-sky-700 dark:tw-bg-sky-600 dark:hover:tw-bg-sky-800 hover:!tw-text-sky-500 hover:!tw-border hover:!tw-border-sky-500",K="!tw-bg-blue-500 hover:!tw-bg-blue-700 dark:!tw-bg-blue-600 dark:hover:!tw-bg-blue-800",Z=a(()=>b.map((e,t)=>({...e,key:t})),[b]),J=(e,t)=>Object.values(e).some(e=>null!=e&&("object"!=typeof e||Array.isArray(e)?("string"==typeof e||"number"==typeof e||"boolean"==typeof e)&&String(e).toLowerCase().includes(t.toLowerCase()):J(e,t))),ee=a(()=>A?Z.filter(e=>{const t=e;return P.customSearch?P.customSearch(t,A):(P.searchableFields??[]).length>0?((e,t,n)=>n.some(n=>{const r=n.includes(".")?De(e,n):e[n];return null!=r&&r.toString().toLowerCase().includes(t.toLowerCase())}))(t,A,P.searchableFields??[]):J(e,A)}):Z,[Z,A,P]),te=e=>{M(e)},ne={defaultPageSize:10,showSizeChanger:!0,showTotal:e=>`Total ${e} registros${A?" filtrados":""}`,pageSizeOptions:["10","20","50","100"]},re=e=>{u?.(e)},ae=e=>{c?.(e)},ie=e=>{d?.(e)},le=()=>{H(!1),B(null)},se=()=>N?"boolean"==typeof N?/* @__PURE__ */oe.jsx(g,{icon:/* @__PURE__ */oe.jsx(Ve,{}),className:`${U} ${q} tw-px-4`,onClick:()=>window.history.back(),children:"Volver"}):N:null;/* @__PURE__ */
|
|
11
11
|
return oe.jsxs(oe.Fragment,{children:[
|
|
12
12
|
/* @__PURE__ */oe.jsxs("div",{className:"tw-my-1 "+(S?"":"tw-bg-white tw-rounded-xl tw-shadow-lg tw-p-1 dark:tw-bg-gray-800"),children:[
|
|
13
13
|
/* @__PURE__ */oe.jsxs("div",{className:"tw-mb-2 tw-space-y-3 sm:tw-space-y-3",children:[e&&/* @__PURE__ */oe.jsxs("div",{className:"tw-mb-3 sm:tw-mb-4 tw-space-y-2",children:[
|
|
@@ -20,8 +20,8 @@ return oe.jsxs(oe.Fragment,{children:[
|
|
|
20
20
|
/* @__PURE__ */oe.jsx("span",{className:"tw-hidden sm:tw-inline",children:"Carga masiva"}),
|
|
21
21
|
/* @__PURE__ */oe.jsx("span",{className:"sm:tw-hidden",children:"Carga masiva"})]}),l&&/* @__PURE__ */oe.jsx(g,{type:"primary",className:"tw-flex-1 xs:tw-flex-initial tw-flex tw-items-center tw-justify-center tw-gap-2 hover:tw-opacity-90 tw-transition-all tw-duration-200 tw-shadow-xs hover:tw-shadow-md tw-px-3 tw-h-8 tw-text-sm tw-font-medium dark:tw-bg-blue-600 dark:hover:tw-bg-blue-700 dark:tw-text-white",icon:t.cloneElement(m)||/* @__PURE__ */oe.jsx(Ue,{}),onClick:s,children:/* @__PURE__ */oe.jsx("span",{children:h})})]})]})]}),
|
|
22
22
|
/* @__PURE__ */oe.jsx("div",{className:"tw-overflow-x-auto",children:/* @__PURE__ */oe.jsx($,{columns:(e=>{const n=e.filter(e=>!e.isHidden).map(e=>({...e,title:e.icon?/* @__PURE__ */oe.jsxs("div",{className:"tw-flex tw-items-center tw-gap-2",children:[t.isValidElement(e.icon)?t.cloneElement(e.icon):e.icon,
|
|
23
|
-
/* @__PURE__ */oe.jsx("span",{className:"tw-font-medium",children:e.title})]}):/* @__PURE__ */oe.jsx("span",{className:"tw-font-medium",children:e.title}),className:"py-4 px-6",sorter:e.sorter?(t,n)=>Ie(e.key)(t,n):void 0,filters:e.filters,onFilter:e.onFilter,render:e.render||(e.key&&String(e.key).includes(".")?(t,n)=>{const r=De(n,String(e.key));return null!=r?String(r):""}:void 0)})),r=e=>("function"==typeof x.showEdit?x.showEdit(e):x.showEdit)?/* @__PURE__ */oe.jsx(F,{title:"Editar",children:/* @__PURE__ */oe.jsx(g,{type:"warning",className:`${U} ${X} ${Q}`,icon:x.customIcons?.edit||/* @__PURE__ */oe.jsx(Be,{className:"tw-text-white"}),onClick:()=>re(e)})}):null,o=e=>{if(!("function"==typeof x.showDelete?x.showDelete(e):x.showDelete))return null;const n=/* @__PURE__ */oe.jsx(F,{title:"Eliminar",children:/* @__PURE__ */oe.jsx(g,{type:"
|
|
24
|
-
/* @__PURE__ */oe.jsx(_,{title:"Detalles del registro",placement:"right",onClose:le,open:I,size:400,className:"dark:tw-bg-
|
|
23
|
+
/* @__PURE__ */oe.jsx("span",{className:"tw-font-medium",children:e.title})]}):/* @__PURE__ */oe.jsx("span",{className:"tw-font-medium",children:e.title}),className:"py-4 px-6",sorter:e.sorter?(t,n)=>Ie(e.key)(t,n):void 0,filters:e.filters,onFilter:e.onFilter,render:e.render||(e.key&&String(e.key).includes(".")?(t,n)=>{const r=De(n,String(e.key));return null!=r?String(r):""}:void 0)})),r=e=>("function"==typeof x.showEdit?x.showEdit(e):x.showEdit)?/* @__PURE__ */oe.jsx(F,{title:"Editar",children:/* @__PURE__ */oe.jsx(g,{type:"warning",className:`${U} ${X} ${Q}`,icon:x.customIcons?.edit||/* @__PURE__ */oe.jsx(Be,{className:"tw-text-white"}),onClick:()=>re(e)})}):null,o=e=>{if(!("function"==typeof x.showDelete?x.showDelete(e):x.showDelete))return null;const n=/* @__PURE__ */oe.jsx(F,{title:"Eliminar",children:/* @__PURE__ */oe.jsx(g,{danger:!0,type:"danger",className:`${U} ${X} ${G}`,icon:x.customIcons?.delete?.type?t.createElement(x.customIcons.delete.type):/* @__PURE__ */oe.jsx(qe,{className:"tw-text-white"}),onClick:!1===x.useDefaultDeleteConfirm?()=>ae(e):void 0})});return!1===x.useDefaultDeleteConfirm?n:/* @__PURE__ */oe.jsx(R,{title:"¿Estás seguro de que deseas eliminar este registro?",onConfirm:()=>ae(e),okText:"Eliminar",cancelText:"Cancelar",children:n})},a=e=>{if(!d)return null;return("function"==typeof x.showView?x.showView(e):x.showView)?/* @__PURE__ */oe.jsx(F,{title:"Ver",children:/* @__PURE__ */oe.jsx(g,{type:"view",className:`${U} ${X} ${x.customActionsColor?.view||Y}`,icon:x.customIcons?.view||/* @__PURE__ */oe.jsx(Xe,{className:"tw-text-white"}),onClick:()=>ie(e)})}):null};let i=n;if(D){i=j&&j.length>0?n.filter(e=>j.includes(e.key)):n.slice(0,2);const e={title:/* @__PURE__ */oe.jsx("span",{className:"tw-font-medium",children:"Detalles"}),key:"details",width:100,className:"py-4 px-6",render:(e,t)=>/* @__PURE__ */oe.jsx(F,{title:"Ver detalles",children:/* @__PURE__ */oe.jsx(g,{type:"default",className:`${U} ${X} ${K}`,icon:/* @__PURE__ */oe.jsx(Qe,{className:"tw-text-white"}),onClick:()=>(e=>{B(e),H(!0)})(t)})})};return[...i,e]}const l={title:/* @__PURE__ */oe.jsx("span",{className:"tw-font-medium",children:"Acciones"}),key:"actions",width:T||"auto",className:"py-4 px-6",render:(e,n)=>(e=>/* @__PURE__ */oe.jsxs("div",{className:"tw-flex tw-items-center tw-gap-3 "+(T?"tw-flex-wrap":"tw-flex-nowrap"),style:T?{maxWidth:`${T}px`,width:"100%"}:void 0,children:[w?.map(n=>!("function"==typeof n.hidden&&n.hidden(e))&&/* @__PURE__ */oe.jsx(F,{title:n.tooltip,children:/* @__PURE__ */oe.jsx(g,{type:"button",className:n.className||`${U} tw-flex-shrink-0 !tw-bg-slate-500 hover:!tw-bg-slate-700 dark:!tw-bg-slate-600 dark:hover:!tw-bg-slate-800 !tw-text-white !tw-border-none`,style:n.style,icon:t.isValidElement(n.icon)?t.cloneElement(n.icon):n.icon,onClick:()=>n.onClick(e),children:n.label})},n.key)),x.showDefaultActions&&/* @__PURE__ */oe.jsxs(oe.Fragment,{children:[r(e),o(e),a(e)]})]}))(n)};return x.showDefaultActions||w&&w.length>0||!1===E?[...n,l]:n})(y),dataSource:ee,loading:v,pagination:ne,className:"dynamic-table !tw-mt-4",scroll:{x:"max-content"}})})]}),
|
|
24
|
+
/* @__PURE__ */oe.jsx(_,{title:"Detalles del registro",placement:"right",onClose:le,open:I,size:400,className:"dark:tw-bg-ucol_gray_dark-200",children:(()=>{if(!V)return null;/* @__PURE__ */
|
|
25
25
|
return oe.jsxs("div",{className:"tw-space-y-6",children:[
|
|
26
26
|
/* @__PURE__ */oe.jsxs("div",{children:[
|
|
27
27
|
/* @__PURE__ */oe.jsx("h3",{className:"tw-text-lg tw-font-semibold tw-mb-4 dark:tw-text-white",children:"Información"}),
|
|
@@ -29,7 +29,7 @@ return oe.jsxs("div",{className:"tw-space-y-6",children:[
|
|
|
29
29
|
return oe.jsx(L.Item,{label:/* @__PURE__ */oe.jsxs("div",{className:"tw-flex tw-items-center tw-gap-2",children:[e.icon&&(t.isValidElement(e.icon)?t.cloneElement(e.icon):e.icon),
|
|
30
30
|
/* @__PURE__ */oe.jsx("span",{children:e.title})]}),children:r},e.key)})})]}),(x.showDefaultActions||w&&w.length>0)&&/* @__PURE__ */oe.jsxs("div",{children:[
|
|
31
31
|
/* @__PURE__ */oe.jsx("h3",{className:"tw-text-lg tw-font-semibold tw-mb-4 dark:tw-text-white",children:"Acciones"}),
|
|
32
|
-
/* @__PURE__ */oe.jsxs("div",{className:"tw-flex tw-flex-wrap tw-gap-3",children:[w?.map(e=>!("function"==typeof e.hidden&&e.hidden(V))&&/* @__PURE__ */oe.jsx(g,{type:"default",className:e.className||"!tw-bg-slate-500 hover:!tw-bg-slate-700 !tw-text-white",style:e.style,icon:t.isValidElement(e.icon)?t.cloneElement(e.icon):e.icon,onClick:()=>{e.onClick(V),le()},children:e.label},e.key)),x.showDefaultActions&&/* @__PURE__ */oe.jsxs(oe.Fragment,{children:[("function"==typeof x.showEdit?x.showEdit(V):x.showEdit)?/* @__PURE__ */oe.jsx(g,{type:"default",className:"!tw-bg-yellow-500 hover:!tw-bg-yellow-700 !tw-text-white",icon:x.customIcons?.edit||/* @__PURE__ */oe.jsx(Be,{}),onClick:()=>{re(V),le()},children:"Editar"}):null,(()=>{if(!("function"==typeof x.showDelete?x.showDelete(V):x.showDelete))return null;const e=/* @__PURE__ */oe.jsx(g,{type:"default",className:"!tw-bg-red-500 hover:!tw-bg-red-700 !tw-text-white",icon:x.customIcons?.delete?.type?t.createElement(x.customIcons.delete.type):/* @__PURE__ */oe.jsx(qe,{}),onClick:!1===x.useDefaultDeleteConfirm?()=>{ae(V),le()}:void 0,children:"Eliminar"});return!1===x.useDefaultDeleteConfirm?e:/* @__PURE__ */oe.jsx(R,{title:"¿Estás seguro de que deseas eliminar este registro?",onConfirm:()=>{ae(V),le()},okText:"Eliminar",cancelText:"Cancelar",children:e})})(),(()=>{if(!d)return null;return("function"==typeof x.showView?x.showView(V):x.showView)?/* @__PURE__ */oe.jsx(g,{type:"default",className:"!tw-bg-sky-500 hover:!tw-bg-sky-700 !tw-text-white",icon:x.customIcons?.view||/* @__PURE__ */oe.jsx(Xe,{}),onClick:()=>{ie(V),le()},children:"Ver"}):null})()]})]})]})]})})()})]})},Je=/* @__PURE__ */i({});function et(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=et(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=et(e))&&(r&&(r+=" "),r+=t);return r}const nt={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},rt=Math.round;function ot(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const at=(e,t,n)=>0===n?e:e/100;function it(e,t){const n=t||255;return e>n?n:e<0?0:e}class lt{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(t("rgb"))this.fromRgbString(n);else if(t("hsl"))this.fromHslString(n);else if(t("hsv")||t("hsb"))this.fromHsvString(n);else{const e=nt[n.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof lt)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=it(e.r),this.g=it(e.g),this.b=it(e.b),this.a="number"==typeof e.a?it(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:rt(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:rt(o("r")),g:rt(o("g")),b:rt(o("b")),a:rt(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>rt((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=rt(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=rt(100*this.getSaturation()),n=rt(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=it(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=rt(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,i=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,u=s*(1-Math.abs(l%2-1));l>=0&&l<1?(o=s,a=u):l>=1&&l<2?(o=u,a=s):l>=2&&l<3?(a=s,i=u):l>=3&&l<4?(a=u,i=s):l>=4&&l<5?(o=u,i=s):l>=5&&l<6&&(o=s,i=u);const c=n-s/2;this.r=rt(255*(o+c)),this.g=rt(255*(a+c)),this.b=rt(255*(i+c))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=rt(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,i=Math.floor(a),l=a-i,s=rt(n*(1-t)*255),u=rt(n*(1-t*l)*255),c=rt(n*(1-t*(1-l))*255);switch(i){case 0:this.g=c,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=c;break;case 3:this.r=s,this.g=u;break;case 4:this.r=c,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=ot(e,at);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ot(e,at);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ot(e,(e,t)=>t.includes("%")?rt(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const st=[{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 ut(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function ct(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function dt(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function ft(e,t={}){const n=[],r=new lt(e),o=r.toHsv();for(let a=5;a>0;a-=1){const e=new lt({h:ut(o,a,!0),s:ct(o,a,!0),v:dt(o,a,!0)});n.push(e)}n.push(r);for(let a=1;a<=4;a+=1){const e=new lt({h:ut(o,a),s:ct(o,a),v:dt(o,a)});n.push(e)}return"dark"===t.theme?st.map(({index:e,amount:r})=>new lt(t.backgroundColor||"#141414").mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}const pt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ht=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ht.primary=ht[5];const mt=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mt.primary=mt[5];const gt=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gt.primary=gt[5];const yt=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yt.primary=yt[5];const bt=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];bt.primary=bt[5];const vt=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];vt.primary=vt[5];const wt=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wt.primary=wt[5];const kt=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];kt.primary=kt[5];const St=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];St.primary=St[5];const xt=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];xt.primary=xt[5];const Ct=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ct.primary=Ct[5];const Et=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Et.primary=Et[5];const Pt=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pt.primary=Pt[5];const Nt={red:ht,volcano:mt,orange:gt,gold:yt,yellow:bt,lime:vt,green:wt,cyan:kt,blue:St,geekblue:xt,purple:Ct,magenta:Et,grey:Pt};function Tt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const Ot="data-rc-order",zt="data-rc-priority",$t=/* @__PURE__ */new Map;function _t({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Lt(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function Ft(e){return Array.from(($t.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Rt(e,t={}){if(!Tt())return null;const{csp:n,prepend:r,priority:o=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),i="prependQueue"===a,l=document.createElement("style");l.setAttribute(Ot,a),i&&o&&l.setAttribute(zt,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=Lt(t),{firstChild:u}=s;if(r){if(i){const e=(t.styles||Ft(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(Ot)))return!1;const t=Number(e.getAttribute(zt)||0);return o>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Dt(e,t={}){let{styles:n}=t;return n||=Ft(Lt(t)),n.find(n=>n.getAttribute(_t(t))===e)}function jt(e,t={}){const n=Dt(e,t);if(n){Lt(t).removeChild(n)}}function At(e,t,n={}){const r=Lt(n),o=Ft(r),a={...n,styles:o};!function(e,t){const n=$t.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=Rt("",t),{parentNode:r}=n;$t.set(e,r),e.removeChild(n)}}(r,a);const i=Dt(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp?.nonce&&(i.nonce=a.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=Rt(e,a);return l.setAttribute(_t(a),t),l}function Mt(e){return e?.getRootNode?.()}function It(e){return function(e){return Mt(e)instanceof ShadowRoot}(e)?Mt(e):null}let Ht={};const Vt=[];function Bt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){Vt.reduce((e,t)=>t(e??"","warning"),t)}}function Wt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){Vt.reduce((e,t)=>t(e??"","note"),t)}}function Ut(e,t,n){t||Ht[n]||(e(!1,n),Ht[n]=!0)}function qt(e,t){Ut(Bt,e,t)}function Xt(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Qt(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=r;var o;return t},{})}function Gt(e,n,r){return r?/* @__PURE__ */t.createElement(e.tag,{key:n,...Qt(e.attrs),...r},(e.children||[]).map((t,r)=>Gt(t,`${n}-${e.tag}-${r}`))):/* @__PURE__ */t.createElement(e.tag,{key:n,...Qt(e.attrs)},(e.children||[]).map((t,r)=>Gt(t,`${n}-${e.tag}-${r}`)))}function Yt(e){return ft(e)[0]}function Kt(e){return e?Array.isArray(e)?e:[e]:[]}qt.preMessage=e=>{Vt.push(e)},qt.resetWarned=function(){Ht={}},qt.noteOnce=function(e,t){Ut(Wt,e,t)};const Zt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const Jt=t=>{const{icon:n,className:o,onClick:a,style:i,primaryColor:s,secondaryColor:u,...c}=t,d=e.useRef(null);let f=Zt;if(s&&(f={primaryColor:s,secondaryColor:u||Yt(s)}),(e=>{const{csp:t,prefixCls:n,layer:o}=l(Je);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(a=a.replace(/anticon/g,n)),o&&(a=`@layer ${o} {\n${a}\n}`),r(()=>{const n=It(e.current);At(a,"@ant-design-icons",{prepend:!o,csp:t,attachTo:n})},[])})(d),qt(Xt(n),`[@ant-design/icons] ${`icon should be icon definiton, but got ${n}`}`),!Xt(n))return null;let p=n;return p&&"function"==typeof p.icon&&(p={...p,icon:p.icon(f.primaryColor,f.secondaryColor)}),Gt(p.icon,`svg-${p.name}`,{className:o,onClick:a,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:d})};function en(e){const[t,n]=Kt(e);return Jt.setTwoToneColors({primaryColor:t,secondaryColor:n})}function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(this,arguments)}Jt.displayName="IconReact",Jt.getTwoToneColors=function(){return{...Zt}},Jt.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){Zt.primaryColor=e,Zt.secondaryColor=t||Yt(e),Zt.calculated=!!t},en(St.primary);const nn=/* @__PURE__ */e.forwardRef((t,n)=>{const{className:r,icon:o,spin:a,rotate:i,tabIndex:l,onClick:s,twoToneColor:u,...c}=t,{prefixCls:d="anticon",rootClassName:f}=e.useContext(Je),p=tt(f,d,{[`${d}-${o.name}`]:!!o.name,[`${d}-spin`]:!!a||"loading"===o.name},r);let h=l;void 0===h&&s&&(h=-1);const m=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[g,y]=Kt(u);/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */oe.jsxs("div",{className:"tw-flex tw-flex-wrap tw-gap-3",children:[w?.map(e=>!("function"==typeof e.hidden&&e.hidden(V))&&/* @__PURE__ */oe.jsx(g,{type:"default",className:e.className||"!tw-bg-slate-500 hover:!tw-bg-slate-700 !tw-text-white",style:e.style,icon:t.isValidElement(e.icon)?t.cloneElement(e.icon):e.icon,onClick:()=>{e.onClick(V),le()},children:e.label},e.key)),x.showDefaultActions&&/* @__PURE__ */oe.jsxs(oe.Fragment,{children:[("function"==typeof x.showEdit?x.showEdit(V):x.showEdit)?/* @__PURE__ */oe.jsx(g,{type:"warning",className:"!tw-bg-yellow-500 hover:!tw-bg-yellow-700 !tw-text-white",icon:x.customIcons?.edit||/* @__PURE__ */oe.jsx(Be,{}),onClick:()=>{re(V),le()},children:"Editar"}):null,(()=>{if(!("function"==typeof x.showDelete?x.showDelete(V):x.showDelete))return null;const e=/* @__PURE__ */oe.jsx(g,{danger:!0,type:"danger",className:"!tw-bg-red-500 hover:!tw-bg-red-700 !tw-text-white",icon:x.customIcons?.delete?.type?t.createElement(x.customIcons.delete.type):/* @__PURE__ */oe.jsx(qe,{}),onClick:!1===x.useDefaultDeleteConfirm?()=>{ae(V),le()}:void 0,children:"Eliminar"});return!1===x.useDefaultDeleteConfirm?e:/* @__PURE__ */oe.jsx(R,{title:"¿Estás seguro de que deseas eliminar este registro?",onConfirm:()=>{ae(V),le()},okText:"Eliminar",cancelText:"Cancelar",children:e})})(),(()=>{if(!d)return null;return("function"==typeof x.showView?x.showView(V):x.showView)?/* @__PURE__ */oe.jsx(g,{type:"info",className:"!tw-bg-sky-500 hover:!tw-bg-sky-700 !tw-text-white",icon:x.customIcons?.view||/* @__PURE__ */oe.jsx(Xe,{}),onClick:()=>{ie(V),le()},children:"Ver"}):null})()]})]})]})]})})()})]})},Je=/* @__PURE__ */i({});function et(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=et(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=et(e))&&(r&&(r+=" "),r+=t);return r}const nt={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},rt=Math.round;function ot(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const at=(e,t,n)=>0===n?e:e/100;function it(e,t){const n=t||255;return e>n?n:e<0?0:e}class lt{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(t("rgb"))this.fromRgbString(n);else if(t("hsl"))this.fromHslString(n);else if(t("hsv")||t("hsb"))this.fromHsvString(n);else{const e=nt[n.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof lt)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=it(e.r),this.g=it(e.g),this.b=it(e.b),this.a="number"==typeof e.a?it(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:rt(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:rt(o("r")),g:rt(o("g")),b:rt(o("b")),a:rt(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>rt((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=rt(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=rt(100*this.getSaturation()),n=rt(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=it(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=rt(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,i=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,u=s*(1-Math.abs(l%2-1));l>=0&&l<1?(o=s,a=u):l>=1&&l<2?(o=u,a=s):l>=2&&l<3?(a=s,i=u):l>=3&&l<4?(a=u,i=s):l>=4&&l<5?(o=u,i=s):l>=5&&l<6&&(o=s,i=u);const c=n-s/2;this.r=rt(255*(o+c)),this.g=rt(255*(a+c)),this.b=rt(255*(i+c))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=rt(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,i=Math.floor(a),l=a-i,s=rt(n*(1-t)*255),u=rt(n*(1-t*l)*255),c=rt(n*(1-t*(1-l))*255);switch(i){case 0:this.g=c,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=c;break;case 3:this.r=s,this.g=u;break;case 4:this.r=c,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=ot(e,at);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ot(e,at);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ot(e,(e,t)=>t.includes("%")?rt(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const st=[{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 ut(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function ct(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function dt(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function ft(e,t={}){const n=[],r=new lt(e),o=r.toHsv();for(let a=5;a>0;a-=1){const e=new lt({h:ut(o,a,!0),s:ct(o,a,!0),v:dt(o,a,!0)});n.push(e)}n.push(r);for(let a=1;a<=4;a+=1){const e=new lt({h:ut(o,a),s:ct(o,a),v:dt(o,a)});n.push(e)}return"dark"===t.theme?st.map(({index:e,amount:r})=>new lt(t.backgroundColor||"#141414").mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}const pt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ht=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ht.primary=ht[5];const mt=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mt.primary=mt[5];const gt=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gt.primary=gt[5];const yt=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yt.primary=yt[5];const bt=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];bt.primary=bt[5];const vt=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];vt.primary=vt[5];const wt=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wt.primary=wt[5];const kt=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];kt.primary=kt[5];const St=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];St.primary=St[5];const xt=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];xt.primary=xt[5];const Ct=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ct.primary=Ct[5];const Et=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Et.primary=Et[5];const Pt=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pt.primary=Pt[5];const Nt={red:ht,volcano:mt,orange:gt,gold:yt,yellow:bt,lime:vt,green:wt,cyan:kt,blue:St,geekblue:xt,purple:Ct,magenta:Et,grey:Pt};function Tt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const Ot="data-rc-order",zt="data-rc-priority",$t=/* @__PURE__ */new Map;function _t({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Lt(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function Ft(e){return Array.from(($t.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Rt(e,t={}){if(!Tt())return null;const{csp:n,prepend:r,priority:o=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),i="prependQueue"===a,l=document.createElement("style");l.setAttribute(Ot,a),i&&o&&l.setAttribute(zt,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=Lt(t),{firstChild:u}=s;if(r){if(i){const e=(t.styles||Ft(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(Ot)))return!1;const t=Number(e.getAttribute(zt)||0);return o>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Dt(e,t={}){let{styles:n}=t;return n||=Ft(Lt(t)),n.find(n=>n.getAttribute(_t(t))===e)}function jt(e,t={}){const n=Dt(e,t);if(n){Lt(t).removeChild(n)}}function At(e,t,n={}){const r=Lt(n),o=Ft(r),a={...n,styles:o};!function(e,t){const n=$t.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=Rt("",t),{parentNode:r}=n;$t.set(e,r),e.removeChild(n)}}(r,a);const i=Dt(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp?.nonce&&(i.nonce=a.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=Rt(e,a);return l.setAttribute(_t(a),t),l}function Mt(e){return e?.getRootNode?.()}function It(e){return function(e){return Mt(e)instanceof ShadowRoot}(e)?Mt(e):null}let Ht={};const Vt=[];function Bt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){Vt.reduce((e,t)=>t(e??"","warning"),t)}}function Wt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){Vt.reduce((e,t)=>t(e??"","note"),t)}}function Ut(e,t,n){t||Ht[n]||(e(!1,n),Ht[n]=!0)}function qt(e,t){Ut(Bt,e,t)}function Xt(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Qt(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=r;var o;return t},{})}function Gt(e,n,r){return r?/* @__PURE__ */t.createElement(e.tag,{key:n,...Qt(e.attrs),...r},(e.children||[]).map((t,r)=>Gt(t,`${n}-${e.tag}-${r}`))):/* @__PURE__ */t.createElement(e.tag,{key:n,...Qt(e.attrs)},(e.children||[]).map((t,r)=>Gt(t,`${n}-${e.tag}-${r}`)))}function Yt(e){return ft(e)[0]}function Kt(e){return e?Array.isArray(e)?e:[e]:[]}qt.preMessage=e=>{Vt.push(e)},qt.resetWarned=function(){Ht={}},qt.noteOnce=function(e,t){Ut(Wt,e,t)};const Zt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const Jt=t=>{const{icon:n,className:o,onClick:a,style:i,primaryColor:s,secondaryColor:u,...c}=t,d=e.useRef(null);let f=Zt;if(s&&(f={primaryColor:s,secondaryColor:u||Yt(s)}),(e=>{const{csp:t,prefixCls:n,layer:o}=l(Je);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(a=a.replace(/anticon/g,n)),o&&(a=`@layer ${o} {\n${a}\n}`),r(()=>{const n=It(e.current);At(a,"@ant-design-icons",{prepend:!o,csp:t,attachTo:n})},[])})(d),qt(Xt(n),`[@ant-design/icons] ${`icon should be icon definiton, but got ${n}`}`),!Xt(n))return null;let p=n;return p&&"function"==typeof p.icon&&(p={...p,icon:p.icon(f.primaryColor,f.secondaryColor)}),Gt(p.icon,`svg-${p.name}`,{className:o,onClick:a,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:d})};function en(e){const[t,n]=Kt(e);return Jt.setTwoToneColors({primaryColor:t,secondaryColor:n})}function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(this,arguments)}Jt.displayName="IconReact",Jt.getTwoToneColors=function(){return{...Zt}},Jt.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){Zt.primaryColor=e,Zt.secondaryColor=t||Yt(e),Zt.calculated=!!t},en(St.primary);const nn=/* @__PURE__ */e.forwardRef((t,n)=>{const{className:r,icon:o,spin:a,rotate:i,tabIndex:l,onClick:s,twoToneColor:u,...c}=t,{prefixCls:d="anticon",rootClassName:f}=e.useContext(Je),p=tt(f,d,{[`${d}-${o.name}`]:!!o.name,[`${d}-spin`]:!!a||"loading"===o.name},r);let h=l;void 0===h&&s&&(h=-1);const m=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[g,y]=Kt(u);/* @__PURE__ */
|
|
33
33
|
return e.createElement("span",tn({role:"img","aria-label":o.name},c,{ref:n,tabIndex:h,onClick:s,className:p}),/* @__PURE__ */e.createElement(Jt,{icon:o,primaryColor:g,secondaryColor:y,style:m}))});nn.getTwoToneColor=function(){const e=Jt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},nn.setTwoToneColor=en,"production"!==process.env.NODE_ENV&&(nn.displayName="AntdIcon");var rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}const an=(t,n)=>/* @__PURE__ */e.createElement(nn,on({},t,{ref:n,icon:rn})),ln=/* @__PURE__ */e.forwardRef(an);"production"!==process.env.NODE_ENV&&(ln.displayName="CheckCircleFilled");var sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},un.apply(this,arguments)}const cn=(t,n)=>/* @__PURE__ */e.createElement(nn,un({},t,{ref:n,icon:sn})),dn=/* @__PURE__ */e.forwardRef(cn);"production"!==process.env.NODE_ENV&&(dn.displayName="CheckOutlined");var fn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}const hn=(t,n)=>/* @__PURE__ */e.createElement(nn,pn({},t,{ref:n,icon:fn})),mn=/* @__PURE__ */e.forwardRef(hn);"production"!==process.env.NODE_ENV&&(mn.displayName="CloseCircleFilled");var gn={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"};function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yn.apply(this,arguments)}const bn=(t,n)=>/* @__PURE__ */e.createElement(nn,yn({},t,{ref:n,icon:gn})),vn=/* @__PURE__ */e.forwardRef(bn);"production"!==process.env.NODE_ENV&&(vn.displayName="CloseOutlined");var wn={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"};function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}const Sn=(t,n)=>/* @__PURE__ */e.createElement(nn,kn({},t,{ref:n,icon:wn})),xn=/* @__PURE__ */e.forwardRef(Sn);"production"!==process.env.NODE_ENV&&(xn.displayName="DeleteOutlined");var Cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 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:"download",theme:"outlined"};function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}const Pn=(t,n)=>/* @__PURE__ */e.createElement(nn,En({},t,{ref:n,icon:Cn})),Nn=/* @__PURE__ */e.forwardRef(Pn);"production"!==process.env.NODE_ENV&&(Nn.displayName="DownloadOutlined");var Tn={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"};function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},On.apply(this,arguments)}const zn=(t,n)=>/* @__PURE__ */e.createElement(nn,On({},t,{ref:n,icon:Tn})),$n=/* @__PURE__ */e.forwardRef(zn);"production"!==process.env.NODE_ENV&&($n.displayName="EditOutlined");var _n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}const Fn=(t,n)=>/* @__PURE__ */e.createElement(nn,Ln({},t,{ref:n,icon:_n})),Rn=/* @__PURE__ */e.forwardRef(Fn);"production"!==process.env.NODE_ENV&&(Rn.displayName="EyeOutlined");var Dn={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}const An=(t,n)=>/* @__PURE__ */e.createElement(nn,jn({},t,{ref:n,icon:Dn})),Mn=/* @__PURE__ */e.forwardRef(An);"production"!==process.env.NODE_ENV&&(Mn.displayName="FileTwoTone");var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(this,arguments)}const Vn=(t,n)=>/* @__PURE__ */e.createElement(nn,Hn({},t,{ref:n,icon:In})),Bn=/* @__PURE__ */e.forwardRef(Vn);"production"!==process.env.NODE_ENV&&(Bn.displayName="InfoCircleFilled");var Wn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un.apply(this,arguments)}const qn=(t,n)=>/* @__PURE__ */e.createElement(nn,Un({},t,{ref:n,icon:Wn})),Xn=/* @__PURE__ */e.forwardRef(qn);"production"!==process.env.NODE_ENV&&(Xn.displayName="LoadingOutlined");var Qn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}const Yn=(t,n)=>/* @__PURE__ */e.createElement(nn,Gn({},t,{ref:n,icon:Qn})),Kn=/* @__PURE__ */e.forwardRef(Yn);"production"!==process.env.NODE_ENV&&(Kn.displayName="PaperClipOutlined");var Zn={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jn.apply(this,arguments)}const er=(t,n)=>/* @__PURE__ */e.createElement(nn,Jn({},t,{ref:n,icon:Zn})),tr=/* @__PURE__ */e.forwardRef(er);"production"!==process.env.NODE_ENV&&(tr.displayName="PictureTwoTone");var nr={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"};function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rr.apply(this,arguments)}const or=(t,n)=>/* @__PURE__ */e.createElement(nn,rr({},t,{ref:n,icon:nr})),ar=/* @__PURE__ */e.forwardRef(or);"production"!==process.env.NODE_ENV&&(ar.displayName="PlusOutlined");var ir,lr={exports:{}},sr={};var ur,cr,dr={};var fr=(cr||(cr=1,"production"===process.env.NODE_ENV?lr.exports=function(){if(ir)return sr;ir=1;var e,t=/* @__PURE__ */Symbol.for("react.element"),n=/* @__PURE__ */Symbol.for("react.portal"),r=/* @__PURE__ */Symbol.for("react.fragment"),o=/* @__PURE__ */Symbol.for("react.strict_mode"),a=/* @__PURE__ */Symbol.for("react.profiler"),i=/* @__PURE__ */Symbol.for("react.provider"),l=/* @__PURE__ */Symbol.for("react.context"),s=/* @__PURE__ */Symbol.for("react.server_context"),u=/* @__PURE__ */Symbol.for("react.forward_ref"),c=/* @__PURE__ */Symbol.for("react.suspense"),d=/* @__PURE__ */Symbol.for("react.suspense_list"),f=/* @__PURE__ */Symbol.for("react.memo"),p=/* @__PURE__ */Symbol.for("react.lazy"),h=/* @__PURE__ */Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case p:case f:case i:return e;default:return h}}case n:return h}}}return e=/* @__PURE__ */Symbol.for("react.module.reference"),sr.ContextConsumer=l,sr.ContextProvider=i,sr.Element=t,sr.ForwardRef=u,sr.Fragment=r,sr.Lazy=p,sr.Memo=f,sr.Portal=n,sr.Profiler=a,sr.StrictMode=o,sr.Suspense=c,sr.SuspenseList=d,sr.isAsyncMode=function(){return!1},sr.isConcurrentMode=function(){return!1},sr.isContextConsumer=function(e){return m(e)===l},sr.isContextProvider=function(e){return m(e)===i},sr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sr.isForwardRef=function(e){return m(e)===u},sr.isFragment=function(e){return m(e)===r},sr.isLazy=function(e){return m(e)===p},sr.isMemo=function(e){return m(e)===f},sr.isPortal=function(e){return m(e)===n},sr.isProfiler=function(e){return m(e)===a},sr.isStrictMode=function(e){return m(e)===o},sr.isSuspense=function(e){return m(e)===c},sr.isSuspenseList=function(e){return m(e)===d},sr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===i||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},sr.typeOf=m,sr}():lr.exports=(ur||(ur=1,"production"!==process.env.NODE_ENV&&function(){var e,t=/* @__PURE__ */Symbol.for("react.element"),n=/* @__PURE__ */Symbol.for("react.portal"),r=/* @__PURE__ */Symbol.for("react.fragment"),o=/* @__PURE__ */Symbol.for("react.strict_mode"),a=/* @__PURE__ */Symbol.for("react.profiler"),i=/* @__PURE__ */Symbol.for("react.provider"),l=/* @__PURE__ */Symbol.for("react.context"),s=/* @__PURE__ */Symbol.for("react.server_context"),u=/* @__PURE__ */Symbol.for("react.forward_ref"),c=/* @__PURE__ */Symbol.for("react.suspense"),d=/* @__PURE__ */Symbol.for("react.suspense_list"),f=/* @__PURE__ */Symbol.for("react.memo"),p=/* @__PURE__ */Symbol.for("react.lazy"),h=/* @__PURE__ */Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case r:case a:case o:case c:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case l:case u:case p:case f:case i:return g;default:return h}}case n:return h}}}e=/* @__PURE__ */Symbol.for("react.module.reference");var g=l,y=i,b=t,v=u,w=r,k=p,S=f,x=n,C=a,E=o,P=c,N=d,T=!1,O=!1;dr.ContextConsumer=g,dr.ContextProvider=y,dr.Element=b,dr.ForwardRef=v,dr.Fragment=w,dr.Lazy=k,dr.Memo=S,dr.Portal=x,dr.Profiler=C,dr.StrictMode=E,dr.Suspense=P,dr.SuspenseList=N,dr.isAsyncMode=function(e){return T||(T=!0),!1},dr.isConcurrentMode=function(e){return O||(O=!0),!1},dr.isContextConsumer=function(e){return m(e)===l},dr.isContextProvider=function(e){return m(e)===i},dr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},dr.isForwardRef=function(e){return m(e)===u},dr.isFragment=function(e){return m(e)===r},dr.isLazy=function(e){return m(e)===p},dr.isMemo=function(e){return m(e)===f},dr.isPortal=function(e){return m(e)===n},dr.isProfiler=function(e){return m(e)===a},dr.isStrictMode=function(e){return m(e)===o},dr.isSuspense=function(e){return m(e)===c},dr.isSuspenseList=function(e){return m(e)===d},dr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===i||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},dr.typeOf=m}()),dr)),lr.exports);const pr=/* @__PURE__ */Symbol.for("react.element"),hr=/* @__PURE__ */Symbol.for("react.transitional.element"),mr=/* @__PURE__ */Symbol.for("react.fragment");function gr(e){return e&&"object"==typeof e&&(e.$$typeof===pr||e.$$typeof===hr)&&e.type===mr}const yr=Number(u.split(".")[0]),br=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{((e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)})(e,t)})}},vr=(...t)=>function(t,n,r){const o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}(()=>br(...t),t,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),wr=e=>{if(!e)return!1;if(kr(e)&&yr>=19)return!0;const t=fr.isMemo(e)?e.type.type:e.type;return!("function"==typeof t&&!t.prototype?.render&&t.$$typeof!==fr.ForwardRef)&&!("function"==typeof e&&!e.prototype?.render&&e.$$typeof!==fr.ForwardRef)};function kr(e){/* @__PURE__ */
|
|
34
34
|
return s(e)&&!gr(e)}const Sr=e=>{if(e&&kr(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},xr={c:"create",r:"read",u:"update",d:"delete",v:"view"},Cr=e=>xr[e]||e,Er=i(void 0),Pr=({role:e,config:t,children:n})=>{const r=a(()=>{const n=(n,r)=>{const o=Cr(r);return(t[n]?.[e]||[]).map(Cr).includes(o)};return{role:e,config:t,hasPermission:n,canCreate:e=>n(e,"create"),canRead:e=>n(e,"read"),canUpdate:e=>n(e,"update"),canDelete:e=>n(e,"delete"),canView:e=>n(e,"view")}},[e,t]);/* @__PURE__ */
|
|
35
35
|
return oe.jsx(Er.Provider,{value:r,children:n})},Nr=(e,t)=>{const n=l(Er);return a(()=>{if(t){const e=t.create??t.c??!1,n=t.read??t.r??!1,r=t.update??t.u??!1,o=t.delete??t.d??!1,a=t.view??t.v??!1;return{canCreate:e,canRead:n,canUpdate:r,canDelete:o,canView:a,hasPermission:t=>{switch(Cr(t)){case"create":return e;case"read":return n;case"update":return r;case"delete":return o;case"view":return a;default:return!1}}}}return n&&e?{canCreate:n.canCreate(e),canUpdate:n.canUpdate(e),canDelete:n.canDelete(e),canView:n.canView(e),hasPermission:t=>n.hasPermission(e,t)}:{canCreate:!1,canUpdate:!1,canDelete:!1,canView:!1,canRefresh:!1,canExport:!1,hasPermission:()=>!1}},[n,e,t])};function Tr(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function Or(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m176 272 80 80 80-80M256 48v288"},child:[]}]})(e)}function zr(e){return he({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"80",fill:"none",strokeMiterlimit:"10",strokeWidth:"32"},child:[]}]})(e)}function $r(e){return he({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(e)}function _r(e){return he({attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.986 17c0-.105-.004-.211-.038-.316l-2-6c-.093-.276-.302-.483-.56-.594.881-1.175.799-2.847-.269-3.914l-6.119-6.121-6.121 6.121c-1.067 1.067-1.149 2.739-.27 3.914-.256.109-.467.316-.559.594l-2 6c-.034.105-.038.211-.038.316-.012 0-.012 5-.012 5 0 .553.447 1 1 1h16c.553 0 1-.447 1-1 0 0 0-5-.014-5zm-13.693-9.41l4.707-4.707 4.707 4.707c.391.391.391 1.023 0 1.414-.379.377-1.035.377-1.414 0l-2.293-2.293v5.789c0 .552-.448 1-1 1s-1-.448-1-1v-5.789l-2.293 2.293c-.379.377-1.035.377-1.414 0-.391-.391-.391-1.025 0-1.414zm-.572 4.41h2.279v.5c0 1.654 1.346 3 3 3s3-1.346 3-3v-.5h2.279l1.666 5h-13.892l1.668-5zm-1.721 9v-3h14v3h-14z"},child:[]}]})(e)}const Lr=[{title:"Descargar plantilla",description:"Obten el formato correcto",icon:/* @__PURE__ */oe.jsx(Or,{})},{title:"Subir archivo",description:"Carga tu archivo de datos",icon:/* @__PURE__ */oe.jsx(_r,{})},{title:"Vista previa",description:"Revisa los datos cargados",icon:/* @__PURE__ */oe.jsx(zr,{})},{title:"Validar",description:"Verifica que los datos sean correctos",icon:/* @__PURE__ */oe.jsx(Tr,{})},{title:"Confirmar",description:"Procesa la carga masiva",icon:/* @__PURE__ */oe.jsx($r,{})}];function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rr(e,t){if(e){if("string"==typeof e)return Fr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(e,t):void 0}}function Dr(e){return function(e){if(Array.isArray(e))return Fr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const jr="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".split(/[\s\n]+/);function Ar(e,t){return 0===e.indexOf(t)}function Mr(t){const n=e.useRef(t);n.current=t;return e.useCallback((...e)=>n.current?.(...e),[])}const Ir="test"!==process.env.NODE_ENV&&Tt()?e.useLayoutEffect:e.useEffect,Hr=(t,n)=>{const r=e.useRef(!0);Ir(()=>t(r.current),n),Ir(()=>(r.current=!1,()=>{r.current=!0}),[])};function Vr(t){const n=e.useRef(!1),[r,o]=e.useState(t);return e.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]),[r,function(e,t){t&&n.current||o(e)}]}function Br(e,t){const[r,o]=n(e),a=void 0!==t?t:r;return Hr(e=>{e||o(t)},[t]),[a,o]}function Wr(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Ur(e,t,n,r){if(!t.length)return n;const[o,...a]=t;let i;return i=e||"number"!=typeof o?Array.isArray(e)?[...e]:{...e}:[],r&&void 0===n&&1===a.length?delete i[o][a[0]]:i[o]=Ur(i[o],a,n,r),i}function qr(e,t,n,r=!1){return t.length&&r&&void 0===n&&!Wr(e,t.slice(0,-1))?e:Ur(e,t,n,r)}function Xr(e){return Array.isArray(e)?[]:{}}const Qr="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Gr(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=Xr(e[0]);return e.forEach(e=>{!function t(n,a){const i=new Set(a),l=Wr(e,n),s=Array.isArray(l);if(s||"object"==typeof(u=l)&&null!==u&&Object.getPrototypeOf(u)===Object.prototype){if(!i.has(l)){i.add(l);const e=Wr(o,n);s?o=qr(o,n,r(e,l)):e&&"object"==typeof e||(o=qr(o,n,Xr(l))),Qr(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...n,e],i)})}}else o=qr(o,n,l);var u}([])}),o}function Yr(...e){return Gr(e)}function Kr(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function Zr(e,n={}){let r=[];return t.Children.forEach(e,e=>{(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Zr(e)):gr(e)&&e.props?r=r.concat(Zr(e.props.children,n)):r.push(e))}),r}function Jr(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function eo(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{const r=e.data[t];Array.isArray(r)?r.forEach(e=>{n.append(`${t}[]`,e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),Jr(t)):e.onSuccess(Jr(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(e=>{null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}const to=async(e,t)=>{const n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));const o=async(e,o)=>{if(e)if(e.path="",e.isFile){const r=await async function(e){return new Promise(n=>{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}(e);r&&n.push(r)}else if(e.isDirectory){const t=await async function(e){const t=e.createReader(),n=[];for(;;){const e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t<r;t++)n.push(e[t])}return n}(e);r.push(...t)}};let a=0;for(;a<r.length;)await o(r[a]),a++;return n},no=+/* @__PURE__ */new Date;let ro=0;function oo(){return`rc-upload-${no}-${++ro}`}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ao.apply(this,arguments)}class io extends c{state={uid:oo()};reqs={};fileInput;_isMounted;filterFile=(e,t=!1)=>{const{accept:n,directory:r}=this.props;let o,a;if("string"==typeof n)a=n;else{const{filter:e,format:t}=n||{};a=t,o="native"===e?()=>!0:e}const i=o||(r||t?e=>((e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=r.toLowerCase(),n=t.toLowerCase();let o=[n];return".jpg"!==n&&".jpeg"!==n||(o=[".jpg",".jpeg"]),o.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(qt(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0)})}return!0})(e,a):()=>!0);return i(e)};onChange=e=>{const{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{const t=this.fileInput;if(!t)return;const n=e.target,{onClick:r}=this.props;if(n&&"BUTTON"===n.tagName){t.parentNode.focus(),n.blur()}t.click(),r&&r(e)};onKeyDown=e=>{"Enter"===e.key&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{const{multiple:n,directory:r}=this.props,o=[...e.items||[]];let a=[...e.files||[]];if((a.length>0||o.some(e=>"file"===e.kind))&&t?.(),r)a=await to(Array.prototype.slice.call(o),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));!1===n&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{const{pastable:t}=this.props;if(t&&"paste"===e.type){const t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),"drop"===e.type){const t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;const{pastable:e}=this.props;e&&document.addEventListener("paste",this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}componentDidUpdate(e){const{pastable:t}=this.props;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}uploadFiles=e=>{const t=[...e],n=t.map(e=>(e.uid=oo(),this.processFile(e,t)));Promise.all(n).then(e=>{const{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>null!==e.parsedFile).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{const{beforeUpload:n}=this.props;let r=e;if(n){try{r=await n(e,t)}catch(d){r=!1}if(!1===r)return{origin:e,parsedFile:null,action:null,data:null}}const{action:o}=this.props;let a;a="function"==typeof o?await o(e):o;const{data:i}=this.props;let l;l="function"==typeof i?await i(e):i;const s="object"!=typeof r&&"string"!=typeof r||!r?e:r;let u;u=s instanceof File?s:new File([s],e.name,{type:e.type});const c=u;return c.uid=e.uid,{origin:e,data:l,parsedFile:c,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;const{onStart:o,customRequest:a,name:i,headers:l,withCredentials:s,method:u}=this.props,{uid:c}=t,d=a||eo,f={action:n,filename:i,data:e,file:r,headers:l,withCredentials:s,method:u||"post",onProgress:e=>{const{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{const{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[c]},onError:(e,t)=>{const{onError:n}=this.props;n?.(e,t,r),delete this.reqs[c]}};o(t),this.reqs[c]=d(f,{defaultRequest:eo})}reset(){this.setState({uid:oo()})}abort(e){const{reqs:t}=this;if(e){const n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){const{component:e,prefixCls:n,className:r,classNames:o={},disabled:a,id:i,name:l,style:s,styles:u={},multiple:c,accept:d,capture:f,children:p,directory:h,openFileDialogOnClick:m,onMouseEnter:g,onMouseLeave:y,hasControlInside:b,...v}=this.props,w="string"==typeof d?d:d?.format,k=tt(n,{[`${n}-disabled`]:a,[r]:r}),S=h?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},x=a?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:g,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:b?void 0:"0"};/* @__PURE__ */
|