helppeople-ui 1.2.4 → 1.2.5
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.
|
@@ -13,6 +13,7 @@ export type FilterField = {
|
|
|
13
13
|
showSearch?: boolean;
|
|
14
14
|
optionFilterProp?: "label" | "value" | "children";
|
|
15
15
|
filterOption?: boolean | ((inputValue: string, option: any) => boolean);
|
|
16
|
+
isLoading?: boolean;
|
|
16
17
|
};
|
|
17
18
|
export type ToolbarAction = {
|
|
18
19
|
icon: React.ReactNode;
|
package/dist/my-library.cjs.js
CHANGED
|
@@ -66,4 +66,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66
66
|
}
|
|
67
67
|
`,vr=function(t){var r=_.useContext(We),n=r.csp,a=r.prefixCls,i=r.layer,c=yr;a&&(c=c.replace(/anticon/g,a)),i&&(c="@layer ".concat(i,` {
|
|
68
68
|
`).concat(c,`
|
|
69
|
-
}`)),_.useEffect(function(){var d=t.current,s=cr(d);sr(c,"@ant-design-icons",{prepend:!i,csp:n,attachTo:s})},[])},xr=["icon","className","onClick","style","primaryColor","secondaryColor"],te={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function br(e){var t=e.primaryColor,r=e.secondaryColor;te.primaryColor=t,te.secondaryColor=r||tt(t),te.calculated=!!r}function Sr(){return k({},te)}var W=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,c=t.primaryColor,d=t.secondaryColor,s=Ue(t,xr),u=y.useRef(),f=te;if(c&&(f={primaryColor:c,secondaryColor:d||tt(c)}),vr(u),gr(Pe(r),"icon should be icon definiton, but got ".concat(r)),!Pe(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=k(k({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),xe(h.icon,"svg-".concat(h.name),k(k({className:n,onClick:a,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};W.displayName="IconReact";W.getTwoToneColors=Sr;W.setTwoToneColors=br;function nt(e){var t=rt(e),r=Ge(t,2),n=r[0],a=r[1];return W.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Cr(){var e=W.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var wr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];nt(ge.primary);var H=y.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,c=e.tabIndex,d=e.onClick,s=e.twoToneColor,u=Ue(e,wr),f=y.useContext(We),h=f.prefixCls,g=h===void 0?"anticon":h,p=f.rootClassName,E=Kt(p,g,R(R({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),v=c;v===void 0&&d&&(v=-1);var D=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,I=rt(s),m=Ge(I,2),S=m[0],j=m[1];return y.createElement("span",M({role:"img","aria-label":n.name},u,{ref:t,tabIndex:v,onClick:d,className:E}),y.createElement(W,{icon:n,primaryColor:S,secondaryColor:j,style:D}))});H.displayName="AntdIcon";H.getTwoToneColor=Cr;H.setTwoToneColor=nt;var Or={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},jr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Or}))},ot=y.forwardRef(jr);process.env.NODE_ENV!=="production"&&(ot.displayName="ArrowLeftOutlined");var Tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},kr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Tr}))},re=y.forwardRef(kr);process.env.NODE_ENV!=="production"&&(re.displayName="ClearOutlined");var Er={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"},Nr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Er}))},at=y.forwardRef(Nr);process.env.NODE_ENV!=="production"&&(at.displayName="CloseOutlined");var Rr={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"},_r=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Rr}))},it=y.forwardRef(_r);process.env.NODE_ENV!=="production"&&(it.displayName="DeleteOutlined");var Mr={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"},Hr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Mr}))},Oe=y.forwardRef(Hr);process.env.NODE_ENV!=="production"&&(Oe.displayName="EditOutlined");var Dr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},zr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Dr}))},st=y.forwardRef(zr);process.env.NODE_ENV!=="production"&&(st.displayName="FileExcelOutlined");var Ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},Lr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Ir}))},lt=y.forwardRef(Lr);process.env.NODE_ENV!=="production"&&(lt.displayName="FilePdfOutlined");var Fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Ar=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Fr}))},je=y.forwardRef(Ar);process.env.NODE_ENV!=="production"&&(je.displayName="FilterOutlined");var $r={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"},Pr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:$r}))},Te=y.forwardRef(Pr);process.env.NODE_ENV!=="production"&&(Te.displayName="PlusOutlined");var Br={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Vr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Br}))},ct=y.forwardRef(Vr);process.env.NODE_ENV!=="production"&&(ct.displayName="SaveOutlined");var Yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},qr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Yr}))},dt=y.forwardRef(qr);process.env.NODE_ENV!=="production"&&(dt.displayName="SearchOutlined");var Wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Gr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Wr}))},ut=y.forwardRef(Gr);process.env.NODE_ENV!=="production"&&(ut.displayName="UploadOutlined");const ke=_.forwardRef((e,t)=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:e.label}),o.jsx(l.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));ke.displayName="CustomInput";const Ur=e=>o.jsx(l.Input.Password,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Kr=e=>o.jsx(l.Input.TextArea,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Zr=e=>o.jsx(l.Input.Search,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),ft=e=>{const t=r=>{const n=r.key;!/^[0-9.]$/.test(n)&&n!=="Backspace"&&r.preventDefault()};return o.jsx(l.InputNumber,{...e,onKeyPress:t,style:{...e.style},controls:!1})},ht=e=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:e.label}),o.jsx(l.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),Qr=({fields:e,filters:t,onFilter:r,onClearFilters:n,localeCode:a="es",actions:i=[],onAdvancedFilters:c,loading:d=!1,defaultValues:s={},activeFiltersCount:u=0,onFiltersChange:f})=>{const[h,g]=_.useState(()=>t||s||{});_.useEffect(()=>{t&&g(t)},[t]);const p=(m,S)=>{const j={...h,[m]:S};g(j),f==null||f(j)},E=()=>{r(h)},v=()=>{g({}),n==null||n()},I=(m=>m<=2?12:m<=3?8:m<=4?6:4)(e.length);return o.jsxs("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:[o.jsx(l.Row,{justify:"space-between",align:"middle",children:o.jsx(l.Col,{style:{marginLeft:"auto"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[i.map((m,S)=>!m.hide&&o.jsx(P,{size:"small",icon:m.icon,onClick:m.onClick,style:{border:"none",background:"none"},loading:m.loading},S)),c&&o.jsx(l.Badge,{count:u,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:o.jsx(P,{size:"small",icon:o.jsx(je,{}),onClick:c,style:{border:"none",background:"none"}})})]})})}),o.jsxs(l.Row,{gutter:[8,8],children:[e.map(m=>o.jsx(l.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[m.label&&o.jsx("label",{style:{display:"block",marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m.label}),{text:o.jsx(ke,{placeholder:m.placeholder,value:h[m.key],onChange:S=>p(m.key,S.target.value),style:{width:"100%"}}),number:o.jsx(ft,{placeholder:m.placeholder,value:h[m.key],onChange:S=>p(m.key,S),style:{width:"100%"}}),date:o.jsx(se,{localeCode:a,onChange:(S,j)=>p(m.key,j),style:{width:"100%"}}),range:o.jsx(se.RangePicker,{localeCode:a,value:h[m.key]&&h[m.key][0]?[Re(h[m.key][0]),Re(h[m.key][1])]:void 0,onChange:(S,j)=>p(m.key,j),style:{width:"100%"}}),select:o.jsx(ht,{placeholder:m.placeholder,options:m.options,value:h[m.key],mode:m.mode,allowClear:m.allowClear,showSearch:m.showSearch,optionFilterProp:m.optionFilterProp,filterOption:m.filterOption,onChange:S=>p(m.key,S),style:{width:"100%"}})}[m.type||"text"]]})},m.key)),o.jsx(l.Col,{xs:24,sm:12,md:I,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[o.jsx(P,{type:"primary",size:"small",onClick:E,loading:d,disabled:d,text:"Aplicar",className:"force-white-text-button"}),o.jsx(P,{size:"small",icon:o.jsx(re,{}),onClick:v,disabled:d})]})})]})]})},Ee=({className:e,tooltip:t,...r})=>o.jsx(l.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});Ee.Group=e=>o.jsx(l.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});Ee.BackTop=l.FloatButton.BackTop;const Jr=({label:e,...t})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[o.jsx(l.Switch,{...t}),e&&o.jsx("span",{children:e})]}),mt=({title:e,children:t,...r})=>o.jsx(l.Modal,{className:"custom-modal",title:e,...r,children:t});["info","success","error","warning","confirm","destroyAll"].forEach(e=>{mt[e]=l.Modal[e]});const Xr={open:({type:e,message:t,description:r,duration:n=3,placement:a="topRight"})=>{l.notification[e]({message:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:t}),description:r&&o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:r}),duration:n,placement:a,style:{fontSize:"var(--font-size-medium)"}})}},pt=({label:e,...t})=>o.jsx(l.Radio,{...t,children:e});pt.Group=e=>o.jsx(l.Radio.Group,{...e});const en=e=>o.jsx(l.Radio.Group,{...e}),tn=({loadingText:e,...t})=>o.jsxs("div",{style:{padding:"1rem"},children:[e&&o.jsx("p",{children:e}),o.jsx(l.Skeleton,{...t})]}),rn=({tip:e,spinning:t=!0,size:r="default",overlay:n=!1,children:a,...i})=>(console.log("CustomSpin render:",{spinning:t,overlay:n,tip:e,size:r}),n&&t?o.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},children:o.jsxs("div",{style:{textAlign:"center",color:"white"},children:[o.jsx(l.Spin,{tip:e,spinning:t,size:r,...i}),e&&o.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):o.jsx(l.Spin,{tip:e,spinning:t,size:r,...i,children:a})),nn=({columns:e,dataSource:t,pagination:r,...n})=>{const a=t==null?void 0:t.filter(d=>d?Object.values(d).some(u=>u!=null&&u!==""):!1),i=e==null?void 0:e.map((d,s)=>({...d,key:d.key||s,title:typeof d.title=="string"?o.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:d.title}):d.title})),c=r?{...r,showTotal:(d,s)=>`${s[1]-s[0]+1} de ${d} registros`,style:{margin:0,padding:"10px 16px",borderTop:"1px solid #e0e0e0",backgroundColor:"#ffffff",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}}:!1;return o.jsx(l.Table,{...n,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:{x:"max-content"},columns:i,dataSource:a,pagination:c})},on=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,type:a="line"})=>o.jsx("div",{style:{backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:o.jsx(l.Tabs,{defaultActiveKey:t,activeKey:r,onChange:n,type:a,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(i=>({key:i.key,label:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:i.label}),children:o.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:i.content})}))})}),an=({title:e,onBack:t,onNew:r,newButtonText:n="Nueva",backButtonText:a="Volver",newButtonLoading:i=!1,newButtonDisabled:c=!1,pageType:d="list"})=>{const s=()=>d==="form"?o.jsx(ct,{}):d==="detail"?o.jsx(Oe,{}):o.jsx(Te,{});return o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem",padding:"1rem 1.5rem",backgroundColor:"#ffffff",borderBottom:"1px solid #e0e0e0",marginBottom:"1rem"},children:[o.jsx("h2",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-large)",color:"var(--text-color)",flex:"1 1 auto"},children:e}),o.jsxs(l.Space,{wrap:!0,children:[t&&o.jsx(P,{type:"default",onClick:t,icon:o.jsx(ot,{}),style:{fontSize:"var(--font-size-medium)"},text:a}),r&&o.jsx(P,{type:"primary",onClick:r,icon:s(),style:{fontSize:"var(--font-size-medium)"},text:n,loading:i,disabled:c})]})]})},sn=({content:e,children:t,...r})=>o.jsx(l.Tooltip,{title:e,...r,style:{fontSize:"var(--font-size-medium)"},children:t}),ln=({buttonText:e="Subir archivo",...t})=>o.jsx(l.Upload,{...t,children:o.jsx(l.Button,{icon:o.jsx(ut,{}),children:e})}),cn=({visible:e,title:t,fields:r,filters:n,onClose:a,onApplyFilters:i,onClearFilters:c,onChange:d})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:a,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:i,children:"Aplicar filtros"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(re,{}),onClick:c})})]})}),footerStyle:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px"},children:o.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:r.map(s=>o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"calc(50% - 8px)"},children:[o.jsx("label",{style:{marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)"},children:s.label}),{text:o.jsx(l.Input,{placeholder:s.placeholder,value:n[s.key],onChange:u=>d(s.key,u.target.value)}),number:o.jsx(l.InputNumber,{placeholder:s.placeholder,value:n[s.key],onChange:u=>d(s.key,u),style:{width:"100%"}}),select:o.jsx(l.Select,{placeholder:s.placeholder,options:s.options,value:n[s.key],onChange:u=>d(s.key,u),style:{width:"100%"}})}[s.type]]},s.key))})}),dn=({visible:e,title:t,filters:r,onChange:n,onClose:a,onSubmit:i,onClear:c,children:d,loading:s=!1})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:a,open:e,width:400,styles:{body:{paddingBottom:80,display:"flex",flexWrap:"wrap",gap:16},footer:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px",textAlign:"right"}},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:i,loading:s,disabled:s,style:{color:"#fff",backgroundColor:"#1b1464"},children:"Aplicar"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(re,{}),onClick:c,disabled:s,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:d({filters:r,onChange:n})}),G=e=>{const[t]=l.Form.useForm(),r=e.form||t;return o.jsx(l.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})};G.Item=l.Form.Item;G.List=l.Form.List;G.useForm=l.Form.useForm;G.useWatch=l.Form.useWatch;G.useFormInstance=l.Form.useFormInstance;const gt=e=>o.jsx(l.Row,{...e,children:e.children}),yt=e=>o.jsx(l.Col,{...e,children:e.children}),un=e=>o.jsx(l.Space,{...e,children:e.children}),vt=e=>o.jsx(l.Card,{...e}),fn=e=>o.jsx(l.Tag,{...e});var hn={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},mn={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},pn={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const gn={es:hn,en:mn,pt:pn},yn=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:n=!0,editable:a=!1,onEventClick:i,onDateSelect:c,renderEventContent:d,localeCode:s="es"})=>{const u=e;function f(p){i&&i({id:p.event.id,title:p.event.title,start:p.event.start,end:p.event.end??void 0,allDay:p.event.allDay})}function h(p){c&&c({start:p.start,end:p.end,allDay:p.allDay})}function g(p){return o.jsxs("div",{children:[o.jsx("b",{children:p.timeText})," ",o.jsx("span",{children:p.event.title})]})}return o.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",padding:"8px 12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:o.jsx(bt,{plugins:[St,Ct,wt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:n,editable:a,events:u,eventContent:d??g,eventClick:f,select:h,locale:gn[s||"es"]})})},vn={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"],[{color:[]},{background:[]}],[{align:[]}]],clipboard:{matchVisual:!1}},xn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","image","color","background","align"],bn=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:n=vn,formats:a=xn,theme:i="snow",height:c="200px",width:d="100%",maxHeight:s="400px",minHeight:u="100px",autoResize:f=!1,className:h="",...g})=>{const p=_.useRef(null),E=_.useRef(null);_.useEffect(()=>{if(f&&p.current&&E.current){const I=p.current.getEditor(),m=E.current,S=()=>{const j=m.querySelector(".ql-editor");if(j){const U=j.scrollHeight,L=typeof u=="number"?u:parseInt(u),C=typeof s=="number"?s:parseInt(s),F=Math.min(Math.max(U+42,L),C);m.style.height=`${F}px`}};return I.on("text-change",S),S(),()=>{I.off("text-change",S)}}},[f,s,u]);const v={width:typeof d=="number"?`${d}px`:d,height:f?"auto":typeof c=="number"?`${c}px`:c,minHeight:typeof u=="number"?`${u}px`:u,maxHeight:f?typeof s=="number"?`${s}px`:s:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...g.style},D={height:"100%",display:"flex",flexDirection:"column"};return o.jsx("div",{ref:E,className:`custom-rich-text-editor ${f?"auto-resize":"fixed-height"} ${h}`,style:v,children:o.jsx(Ot,{ref:p,theme:i,value:e,onChange:t,modules:n,formats:a,placeholder:r,style:D,...g})})},ne=e=>o.jsx(l.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});ne.Item=e=>o.jsx(l.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});ne.SubMenu=e=>o.jsx(l.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});ne.ItemGroup=l.Menu.ItemGroup;ne.Divider=l.Menu.Divider;const xt=({className:e,children:t,items:r,menu:n,...a})=>{const i=r?{items:r}:n;return o.jsx(l.Dropdown,{className:`custom-dropdown ${e||""}`,menu:i,...a,children:t})};xt.Button=e=>o.jsx(l.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Sn}=l.Typography,Cn=({available:e,selected:t,onChange:r,availableTitle:n="Disponibles",selectedTitle:a="Seleccionados",emptyDescription:i="Arrastra los elementos aquí"})=>{const c=s=>{const{source:u,destination:f}=s;if(f&&!(u.droppableId===f.droppableId&&u.index===f.index))if(u.droppableId===f.droppableId){const h=u.droppableId==="disponibles"?[...e]:[...t],[g]=h.splice(u.index,1);h.splice(f.index,0,g),u.droppableId==="disponibles"?r(h,t):r(e,h)}else{const h=u.droppableId==="disponibles"?[...e]:[...t],g=f.droppableId==="disponibles"?[...e]:[...t],[p]=h.splice(u.index,1);g.splice(f.index,0,p),u.droppableId==="disponibles"?r(h,g):r(g,h)}},d=(s,u,f)=>o.jsxs(yt,{span:12,children:[o.jsx(Sn,{level:4,style:{marginBottom:16,fontSize:14},children:u}),o.jsx(he.Droppable,{droppableId:s,children:(h,g)=>o.jsxs("div",{ref:h.innerRef,...h.droppableProps,style:{minHeight:300,background:g.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${g.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[f.length===0?o.jsx(l.Empty,{description:i,style:{opacity:.3}}):f.map((p,E)=>o.jsx(he.Draggable,{draggableId:p.id,index:E,children:(v,D)=>o.jsx("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,style:{marginBottom:8,cursor:D.isDragging?"grabbing":"grab",opacity:D.isDragging?.8:1,transform:D.isDragging?"rotate(3deg)":"none",...v.draggableProps.style},children:o.jsx(vt,{size:"small",style:{boxShadow:D.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:p.content})})},p.id)),h.placeholder]})})]});return o.jsx(he.DragDropContext,{onDragEnd:c,children:o.jsxs(gt,{gutter:16,style:{margin:"24px 0"},children:[d("disponibles",n,e),d("seleccionados",a,t)]})})},wn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,accordion:a=!1,bordered:i=!0,collapsible:c="header",expandIcon:d,expandIconPosition:s="start",ghost:u=!1,size:f="middle",className:h,style:g})=>{const E={items:e.map(v=>({key:v.key,label:v.header,children:v.children,disabled:v.disabled,showArrow:v.showArrow,extra:v.extra,className:v.className,style:v.style})),defaultActiveKey:t,activeKey:r,onChange:n,accordion:a,bordered:i,collapsible:c,expandIcon:d,expandIconPosition:s,ghost:u,size:f,className:h,style:g};return o.jsx("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:o.jsx(l.Collapse,{...E})})},On=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:a,onSearch:i,onScroll:c,titles:d=["Origen","Destino"],operations:s=[">","<"],showSearch:u=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:E,render:v,children:D,showSelectAll:I=!0,selectAllLabels:m,oneWay:S=!1,pagination:j=!1,status:U,locale:L,remotePagination:C,onPageChange:F})=>{const w=e.map(b=>({key:b.key,title:b.title,description:b.description,disabled:b.disabled||!1,chosen:b.chosen||!1})),K=n?(b,N,x)=>n(b,N,x):void 0,ce=a?(b,N)=>a(b,N):void 0,de=i?(b,N)=>i(b,N):void 0,ue=c?(b,N)=>c(b,N):void 0,fe=["hp-transfer",p].filter(Boolean).join(" "),oe=!!C&&C.position!=="none",ae={dataSource:w,targetKeys:t,selectedKeys:r,onChange:K,onSelectChange:ce,onSearch:de,onScroll:ue,titles:d,operations:s,showSearch:u,filterOption:f?(b,N)=>f(b,N):void 0,disabled:h,listStyle:g,className:fe,render:v||(b=>b.title),showSelectAll:I,selectAllLabels:m,oneWay:S,pagination:oe?!1:j,status:U,locale:L,footer:oe?({direction:b})=>{const N=(C==null?void 0:C.position)??"left";if(!(N==="both"||N==="left"&&b==="left"||N==="right"&&b==="right"))return null;const T=b==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!T)return null;const{page:A,pageSize:V,total:Y}=T,$=(C==null?void 0:C.simple)??!0,Z=(C==null?void 0:C.showSizeChanger)??!0;return o.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:o.jsx(l.Pagination,{size:"small",simple:$,current:A,total:Y,pageSize:V,showSizeChanger:Z,pageSizeOptions:["5","10","20","50"],onChange:(Q,J)=>{F==null||F(b,Q,J)}})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...E},children:D?D(ae):o.jsx(l.Transfer,{...ae})})},jn=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:a,onSearch:i,onScroll:c,titles:d=["Origen","Destino"],operations:s=[">","<"],showSearch:u=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:E,showSelectAll:v=!0,selectAllLabels:D,oneWay:I=!1,status:m,locale:S,leftColumns:j,rightColumns:U,rowKey:L="key",tableSize:C="small",tableScroll:F,remotePagination:w,onPageChange:K})=>{const ce=(e??[]).map(x=>({...x,key:x.key,title:x.title||x.key||String(x.key),description:x.description,disabled:x.disabled||!1,chosen:x.chosen||!1})),de=n?(x,T,A)=>n(x,T,A):void 0,ue=a?(x,T)=>a(x,T):void 0,fe=i?(x,T)=>i(x,T):void 0,oe=c?(x,T)=>c(x,T):void 0,ae=["hp-transfer","hp-table-transfer",p].filter(Boolean).join(" "),b=!!w&&(w.position??"left")!=="none",N={dataSource:ce,targetKeys:t,selectedKeys:r,onChange:de,onSelectChange:ue,onSearch:fe,onScroll:oe,titles:d,operations:s,showSearch:u,filterOption:f,disabled:h,listStyle:g,className:ae,showSelectAll:v,selectAllLabels:D,oneWay:I,pagination:!1,status:m,locale:S,footer:b?({direction:x})=>{const T=(w==null?void 0:w.position)??"left";if(!(T==="both"||T==="left"&&x==="left"||T==="right"&&x==="right"))return null;const V=x==="left"?w==null?void 0:w.left:w==null?void 0:w.right;if(!V)return null;const{page:Y,pageSize:$,total:Z}=V,Q=(w==null?void 0:w.simple)??!0,J=(w==null?void 0:w.showSizeChanger)??!0;return o.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:o.jsx(l.Pagination,{size:"small",simple:Q,current:Y,total:Z,pageSize:$,showSizeChanger:J,pageSizeOptions:["5","10","20","50"],onChange:(z,X)=>K==null?void 0:K(x,z,X)})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...E},children:o.jsx(l.Transfer,{...N,children:({direction:x,filteredItems:T,onItemSelect:A,onItemSelectAll:V,selectedKeys:Y,disabled:$})=>{const Z=x==="left"?j:U??j,Q={getCheckboxProps:z=>({disabled:$||z.disabled}),selectedRowKeys:Y,onSelect:(z,X)=>{A(z.key,X)},onChange:z=>{V(z,"replace")},selections:v?[l.Table.SELECTION_ALL,l.Table.SELECTION_INVERT,l.Table.SELECTION_NONE]:void 0},J=typeof L=="function"?L:z=>z[L];return o.jsx(l.Table,{showHeader:!0,size:C,columns:Z,dataSource:T,rowKey:J,pagination:!1,rowSelection:Q,style:{pointerEvents:$?"none":void 0,height:"100%"},onRow:z=>({onClick:()=>{if($||z.disabled)return;const X=!Y.includes(z.key);A(z.key,X)}}),scroll:F})}})})},Tn=e=>o.jsx(l.Empty,{...e}),kn=({className:e,style:t,...r},n)=>o.jsx(l.List,{ref:n,className:`${e}`,style:t,...r}),Ne=_.forwardRef(kn);Ne.Item=l.List.Item;Ne.ItemMeta=l.List.Item.Meta;const En={INPUT_HEIGHT:25,FONT_SIZE:12,PRIMARY_COLOR:"#1b1464",FONT_FAMILY:'"Open Sans", sans-serif',TABLE_ROW_HEIGHT:25,BORDER_COLOR:"#d9d9d9",TEXT_COLOR:"#333333"},Nn=({children:e,customTokens:t={}})=>{const r={...En,...t};return o.jsx(l.ConfigProvider,{theme:{token:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,colorPrimary:r.PRIMARY_COLOR,fontFamily:r.FONT_FAMILY,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,colorBgBase:"#ffffff"},components:{Button:{fontSize:r.FONT_SIZE,controlHeight:22,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044",colorText:r.TEXT_COLOR,colorBgContainer:"#ffffff",colorBorder:r.BORDER_COLOR},Table:{cellFontSize:r.FONT_SIZE,cellPaddingBlock:4,headerBg:"#fafafa",headerColor:r.TEXT_COLOR,headerSplitColor:r.BORDER_COLOR,colorText:"inherit"},Input:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},Select:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},DatePicker:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,fontFamily:r.FONT_FAMILY,colorBorder:r.BORDER_COLOR,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",borderRadius:4,paddingInline:8},Checkbox:{colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044"},Spin:{colorPrimary:r.PRIMARY_COLOR,dotSize:20,dotSizeSM:16,dotSizeLG:24},Transfer:{listHeight:200,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,colorBgContainer:"#ffffff",fontSize:r.FONT_SIZE,fontFamily:r.FONT_FAMILY}}},children:o.jsx("div",{className:"library-components-wrapper","data-input-height":r.INPUT_HEIGHT,"data-font-size":r.FONT_SIZE,"data-primary-color":r.PRIMARY_COLOR,children:e})})},Rn={open:e=>{l.message.open(e)},success:(e,t,r)=>{l.message.success(e,t,r)},error:(e,t,r)=>{l.message.error(e,t,r)},info:(e,t,r)=>{l.message.info(e,t,r)},warning:(e,t,r)=>{l.message.warning(e,t,r)},loading:(e,t,r)=>{l.message.loading(e,t,r)}};exports.Accordion=wn;exports.Alert=Tt;exports.Button=P;exports.Calendar=yn;exports.Card=vt;exports.CheckBox=kt;exports.ClearOutlined=re;exports.CloseOutlined=at;exports.Col=yt;exports.CustomFilterDrawer=cn;exports.CustomFilterDrawerHp=dn;exports.DatePicker=se;exports.DeleteOutlined=it;exports.Divider=At;exports.DragAndDrop=Cn;exports.Drawer=$t;exports.Dropdown=xt;exports.EditOutlined=Oe;exports.Empty=Tn;exports.FileExcelOutlined=st;exports.FilePdfOutlined=lt;exports.FilterOutlined=je;exports.FilterToolbar=Qr;exports.FloatButton=Ee;exports.Form=G;exports.Input=ke;exports.InputSwitch=Jr;exports.LibraryThemeProvider=Nn;exports.List=Ne;exports.Menu=ne;exports.Message=Rn;exports.Modal=mt;exports.Notification=Xr;exports.NumericInput=ft;exports.Password=Ur;exports.PlusOutlined=Te;exports.Radio=pt;exports.RadioGroup=en;exports.RichTextEditor=bn;exports.Row=gt;exports.Search=Zr;exports.SearchOutlined=dt;exports.Select=ht;exports.Skeleton=tn;exports.Space=un;exports.Spin=rn;exports.Table=nn;exports.TableTransfer=jn;exports.Tabs=on;exports.Tag=fn;exports.TextArea=Kr;exports.Toolbar=an;exports.Tooltip=sn;exports.Transfer=On;exports.Upload=ln;
|
|
69
|
+
}`)),_.useEffect(function(){var d=t.current,s=cr(d);sr(c,"@ant-design-icons",{prepend:!i,csp:n,attachTo:s})},[])},xr=["icon","className","onClick","style","primaryColor","secondaryColor"],te={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function br(e){var t=e.primaryColor,r=e.secondaryColor;te.primaryColor=t,te.secondaryColor=r||tt(t),te.calculated=!!r}function Sr(){return k({},te)}var W=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,c=t.primaryColor,d=t.secondaryColor,s=Ue(t,xr),u=y.useRef(),f=te;if(c&&(f={primaryColor:c,secondaryColor:d||tt(c)}),vr(u),gr(Pe(r),"icon should be icon definiton, but got ".concat(r)),!Pe(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=k(k({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),xe(h.icon,"svg-".concat(h.name),k(k({className:n,onClick:a,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};W.displayName="IconReact";W.getTwoToneColors=Sr;W.setTwoToneColors=br;function nt(e){var t=rt(e),r=Ge(t,2),n=r[0],a=r[1];return W.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Cr(){var e=W.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var wr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];nt(ge.primary);var H=y.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,c=e.tabIndex,d=e.onClick,s=e.twoToneColor,u=Ue(e,wr),f=y.useContext(We),h=f.prefixCls,g=h===void 0?"anticon":h,p=f.rootClassName,E=Kt(p,g,R(R({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),v=c;v===void 0&&d&&(v=-1);var D=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,I=rt(s),m=Ge(I,2),S=m[0],j=m[1];return y.createElement("span",M({role:"img","aria-label":n.name},u,{ref:t,tabIndex:v,onClick:d,className:E}),y.createElement(W,{icon:n,primaryColor:S,secondaryColor:j,style:D}))});H.displayName="AntdIcon";H.getTwoToneColor=Cr;H.setTwoToneColor=nt;var Or={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},jr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Or}))},ot=y.forwardRef(jr);process.env.NODE_ENV!=="production"&&(ot.displayName="ArrowLeftOutlined");var Tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},kr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Tr}))},re=y.forwardRef(kr);process.env.NODE_ENV!=="production"&&(re.displayName="ClearOutlined");var Er={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"},Nr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Er}))},at=y.forwardRef(Nr);process.env.NODE_ENV!=="production"&&(at.displayName="CloseOutlined");var Rr={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"},_r=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Rr}))},it=y.forwardRef(_r);process.env.NODE_ENV!=="production"&&(it.displayName="DeleteOutlined");var Mr={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"},Hr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Mr}))},Oe=y.forwardRef(Hr);process.env.NODE_ENV!=="production"&&(Oe.displayName="EditOutlined");var Dr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},zr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Dr}))},st=y.forwardRef(zr);process.env.NODE_ENV!=="production"&&(st.displayName="FileExcelOutlined");var Ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},Lr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Ir}))},lt=y.forwardRef(Lr);process.env.NODE_ENV!=="production"&&(lt.displayName="FilePdfOutlined");var Fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Ar=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Fr}))},je=y.forwardRef(Ar);process.env.NODE_ENV!=="production"&&(je.displayName="FilterOutlined");var $r={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"},Pr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:$r}))},Te=y.forwardRef(Pr);process.env.NODE_ENV!=="production"&&(Te.displayName="PlusOutlined");var Br={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Vr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Br}))},ct=y.forwardRef(Vr);process.env.NODE_ENV!=="production"&&(ct.displayName="SaveOutlined");var Yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},qr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Yr}))},dt=y.forwardRef(qr);process.env.NODE_ENV!=="production"&&(dt.displayName="SearchOutlined");var Wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Gr=function(t,r){return y.createElement(H,M({},t,{ref:r,icon:Wr}))},ut=y.forwardRef(Gr);process.env.NODE_ENV!=="production"&&(ut.displayName="UploadOutlined");const ke=_.forwardRef((e,t)=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:e.label}),o.jsx(l.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));ke.displayName="CustomInput";const Ur=e=>o.jsx(l.Input.Password,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Kr=e=>o.jsx(l.Input.TextArea,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),Zr=e=>o.jsx(l.Input.Search,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),ft=e=>{const t=r=>{const n=r.key;!/^[0-9.]$/.test(n)&&n!=="Backspace"&&r.preventDefault()};return o.jsx(l.InputNumber,{...e,onKeyPress:t,style:{...e.style},controls:!1})},ht=e=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsx("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:e.label}),o.jsx(l.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),Qr=({fields:e,filters:t,onFilter:r,onClearFilters:n,localeCode:a="es",actions:i=[],onAdvancedFilters:c,loading:d=!1,defaultValues:s={},activeFiltersCount:u=0,onFiltersChange:f})=>{const[h,g]=_.useState(()=>t||s||{});_.useEffect(()=>{t&&g(t)},[t]);const p=(m,S)=>{const j={...h,[m]:S};g(j),f==null||f(j)},E=()=>{r(h)},v=()=>{g({}),n==null||n()},I=(m=>m<=2?12:m<=3?8:m<=4?6:4)(e.length);return o.jsxs("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:[o.jsx(l.Row,{justify:"space-between",align:"middle",children:o.jsx(l.Col,{style:{marginLeft:"auto"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[i.map((m,S)=>!m.hide&&o.jsx(P,{size:"small",icon:m.icon,onClick:m.onClick,style:{border:"none",background:"none"},loading:m.loading},S)),c&&o.jsx(l.Badge,{count:u,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:o.jsx(P,{size:"small",icon:o.jsx(je,{}),onClick:c,style:{border:"none",background:"none"}})})]})})}),o.jsxs(l.Row,{gutter:[8,8],children:[e.map(m=>o.jsx(l.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[m.label&&o.jsx("label",{style:{display:"block",marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m.label}),{text:o.jsx(ke,{placeholder:m.placeholder,value:h[m.key],onChange:S=>p(m.key,S.target.value),style:{width:"100%"}}),number:o.jsx(ft,{placeholder:m.placeholder,value:h[m.key],onChange:S=>p(m.key,S),style:{width:"100%"}}),date:o.jsx(se,{localeCode:a,onChange:(S,j)=>p(m.key,j),style:{width:"100%"}}),range:o.jsx(se.RangePicker,{localeCode:a,value:h[m.key]&&h[m.key][0]?[Re(h[m.key][0]),Re(h[m.key][1])]:void 0,onChange:(S,j)=>p(m.key,j),style:{width:"100%"}}),select:o.jsx(ht,{placeholder:m.placeholder,options:m.options,value:h[m.key],mode:m.mode,allowClear:m.allowClear,showSearch:m.showSearch,optionFilterProp:m.optionFilterProp,filterOption:m.filterOption,onChange:S=>p(m.key,S),style:{width:"100%"},loading:m.isLoading})}[m.type||"text"]]})},m.key)),o.jsx(l.Col,{xs:24,sm:12,md:I,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[o.jsx(P,{type:"primary",size:"small",onClick:E,loading:d,disabled:d,text:"Aplicar",className:"force-white-text-button"}),o.jsx(P,{size:"small",icon:o.jsx(re,{}),onClick:v,disabled:d})]})})]})]})},Ee=({className:e,tooltip:t,...r})=>o.jsx(l.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});Ee.Group=e=>o.jsx(l.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});Ee.BackTop=l.FloatButton.BackTop;const Jr=({label:e,...t})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[o.jsx(l.Switch,{...t}),e&&o.jsx("span",{children:e})]}),mt=({title:e,children:t,...r})=>o.jsx(l.Modal,{className:"custom-modal",title:e,...r,children:t});["info","success","error","warning","confirm","destroyAll"].forEach(e=>{mt[e]=l.Modal[e]});const Xr={open:({type:e,message:t,description:r,duration:n=3,placement:a="topRight"})=>{l.notification[e]({message:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:t}),description:r&&o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:r}),duration:n,placement:a,style:{fontSize:"var(--font-size-medium)"}})}},pt=({label:e,...t})=>o.jsx(l.Radio,{...t,children:e});pt.Group=e=>o.jsx(l.Radio.Group,{...e});const en=e=>o.jsx(l.Radio.Group,{...e}),tn=({loadingText:e,...t})=>o.jsxs("div",{style:{padding:"1rem"},children:[e&&o.jsx("p",{children:e}),o.jsx(l.Skeleton,{...t})]}),rn=({tip:e,spinning:t=!0,size:r="default",overlay:n=!1,children:a,...i})=>(console.log("CustomSpin render:",{spinning:t,overlay:n,tip:e,size:r}),n&&t?o.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},children:o.jsxs("div",{style:{textAlign:"center",color:"white"},children:[o.jsx(l.Spin,{tip:e,spinning:t,size:r,...i}),e&&o.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):o.jsx(l.Spin,{tip:e,spinning:t,size:r,...i,children:a})),nn=({columns:e,dataSource:t,pagination:r,...n})=>{const a=t==null?void 0:t.filter(d=>d?Object.values(d).some(u=>u!=null&&u!==""):!1),i=e==null?void 0:e.map((d,s)=>({...d,key:d.key||s,title:typeof d.title=="string"?o.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:d.title}):d.title})),c=r?{...r,showTotal:(d,s)=>`${s[1]-s[0]+1} de ${d} registros`,style:{margin:0,padding:"10px 16px",borderTop:"1px solid #e0e0e0",backgroundColor:"#ffffff",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}}:!1;return o.jsx(l.Table,{...n,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:{x:"max-content"},columns:i,dataSource:a,pagination:c})},on=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,type:a="line"})=>o.jsx("div",{style:{backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:o.jsx(l.Tabs,{defaultActiveKey:t,activeKey:r,onChange:n,type:a,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(i=>({key:i.key,label:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:i.label}),children:o.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:i.content})}))})}),an=({title:e,onBack:t,onNew:r,newButtonText:n="Nueva",backButtonText:a="Volver",newButtonLoading:i=!1,newButtonDisabled:c=!1,pageType:d="list"})=>{const s=()=>d==="form"?o.jsx(ct,{}):d==="detail"?o.jsx(Oe,{}):o.jsx(Te,{});return o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem",padding:"1rem 1.5rem",backgroundColor:"#ffffff",borderBottom:"1px solid #e0e0e0",marginBottom:"1rem"},children:[o.jsx("h2",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-large)",color:"var(--text-color)",flex:"1 1 auto"},children:e}),o.jsxs(l.Space,{wrap:!0,children:[t&&o.jsx(P,{type:"default",onClick:t,icon:o.jsx(ot,{}),style:{fontSize:"var(--font-size-medium)"},text:a}),r&&o.jsx(P,{type:"primary",onClick:r,icon:s(),style:{fontSize:"var(--font-size-medium)"},text:n,loading:i,disabled:c})]})]})},sn=({content:e,children:t,...r})=>o.jsx(l.Tooltip,{title:e,...r,style:{fontSize:"var(--font-size-medium)"},children:t}),ln=({buttonText:e="Subir archivo",...t})=>o.jsx(l.Upload,{...t,children:o.jsx(l.Button,{icon:o.jsx(ut,{}),children:e})}),cn=({visible:e,title:t,fields:r,filters:n,onClose:a,onApplyFilters:i,onClearFilters:c,onChange:d})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:a,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:i,children:"Aplicar filtros"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(re,{}),onClick:c})})]})}),footerStyle:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px"},children:o.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:r.map(s=>o.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"calc(50% - 8px)"},children:[o.jsx("label",{style:{marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)"},children:s.label}),{text:o.jsx(l.Input,{placeholder:s.placeholder,value:n[s.key],onChange:u=>d(s.key,u.target.value)}),number:o.jsx(l.InputNumber,{placeholder:s.placeholder,value:n[s.key],onChange:u=>d(s.key,u),style:{width:"100%"}}),select:o.jsx(l.Select,{placeholder:s.placeholder,options:s.options,value:n[s.key],onChange:u=>d(s.key,u),style:{width:"100%"}})}[s.type]]},s.key))})}),dn=({visible:e,title:t,filters:r,onChange:n,onClose:a,onSubmit:i,onClear:c,children:d,loading:s=!1})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:a,open:e,width:400,styles:{body:{paddingBottom:80,display:"flex",flexWrap:"wrap",gap:16},footer:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px",textAlign:"right"}},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:i,loading:s,disabled:s,style:{color:"#fff",backgroundColor:"#1b1464"},children:"Aplicar"}),o.jsx(l.Tooltip,{title:"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(re,{}),onClick:c,disabled:s,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:d({filters:r,onChange:n})}),G=e=>{const[t]=l.Form.useForm(),r=e.form||t;return o.jsx(l.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})};G.Item=l.Form.Item;G.List=l.Form.List;G.useForm=l.Form.useForm;G.useWatch=l.Form.useWatch;G.useFormInstance=l.Form.useFormInstance;const gt=e=>o.jsx(l.Row,{...e,children:e.children}),yt=e=>o.jsx(l.Col,{...e,children:e.children}),un=e=>o.jsx(l.Space,{...e,children:e.children}),vt=e=>o.jsx(l.Card,{...e}),fn=e=>o.jsx(l.Tag,{...e});var hn={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},mn={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},pn={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const gn={es:hn,en:mn,pt:pn},yn=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:n=!0,editable:a=!1,onEventClick:i,onDateSelect:c,renderEventContent:d,localeCode:s="es"})=>{const u=e;function f(p){i&&i({id:p.event.id,title:p.event.title,start:p.event.start,end:p.event.end??void 0,allDay:p.event.allDay})}function h(p){c&&c({start:p.start,end:p.end,allDay:p.allDay})}function g(p){return o.jsxs("div",{children:[o.jsx("b",{children:p.timeText})," ",o.jsx("span",{children:p.event.title})]})}return o.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",padding:"8px 12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:o.jsx(bt,{plugins:[St,Ct,wt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:n,editable:a,events:u,eventContent:d??g,eventClick:f,select:h,locale:gn[s||"es"]})})},vn={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"],[{color:[]},{background:[]}],[{align:[]}]],clipboard:{matchVisual:!1}},xn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","image","color","background","align"],bn=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:n=vn,formats:a=xn,theme:i="snow",height:c="200px",width:d="100%",maxHeight:s="400px",minHeight:u="100px",autoResize:f=!1,className:h="",...g})=>{const p=_.useRef(null),E=_.useRef(null);_.useEffect(()=>{if(f&&p.current&&E.current){const I=p.current.getEditor(),m=E.current,S=()=>{const j=m.querySelector(".ql-editor");if(j){const U=j.scrollHeight,L=typeof u=="number"?u:parseInt(u),C=typeof s=="number"?s:parseInt(s),F=Math.min(Math.max(U+42,L),C);m.style.height=`${F}px`}};return I.on("text-change",S),S(),()=>{I.off("text-change",S)}}},[f,s,u]);const v={width:typeof d=="number"?`${d}px`:d,height:f?"auto":typeof c=="number"?`${c}px`:c,minHeight:typeof u=="number"?`${u}px`:u,maxHeight:f?typeof s=="number"?`${s}px`:s:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...g.style},D={height:"100%",display:"flex",flexDirection:"column"};return o.jsx("div",{ref:E,className:`custom-rich-text-editor ${f?"auto-resize":"fixed-height"} ${h}`,style:v,children:o.jsx(Ot,{ref:p,theme:i,value:e,onChange:t,modules:n,formats:a,placeholder:r,style:D,...g})})},ne=e=>o.jsx(l.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});ne.Item=e=>o.jsx(l.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});ne.SubMenu=e=>o.jsx(l.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});ne.ItemGroup=l.Menu.ItemGroup;ne.Divider=l.Menu.Divider;const xt=({className:e,children:t,items:r,menu:n,...a})=>{const i=r?{items:r}:n;return o.jsx(l.Dropdown,{className:`custom-dropdown ${e||""}`,menu:i,...a,children:t})};xt.Button=e=>o.jsx(l.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Sn}=l.Typography,Cn=({available:e,selected:t,onChange:r,availableTitle:n="Disponibles",selectedTitle:a="Seleccionados",emptyDescription:i="Arrastra los elementos aquí"})=>{const c=s=>{const{source:u,destination:f}=s;if(f&&!(u.droppableId===f.droppableId&&u.index===f.index))if(u.droppableId===f.droppableId){const h=u.droppableId==="disponibles"?[...e]:[...t],[g]=h.splice(u.index,1);h.splice(f.index,0,g),u.droppableId==="disponibles"?r(h,t):r(e,h)}else{const h=u.droppableId==="disponibles"?[...e]:[...t],g=f.droppableId==="disponibles"?[...e]:[...t],[p]=h.splice(u.index,1);g.splice(f.index,0,p),u.droppableId==="disponibles"?r(h,g):r(g,h)}},d=(s,u,f)=>o.jsxs(yt,{span:12,children:[o.jsx(Sn,{level:4,style:{marginBottom:16,fontSize:14},children:u}),o.jsx(he.Droppable,{droppableId:s,children:(h,g)=>o.jsxs("div",{ref:h.innerRef,...h.droppableProps,style:{minHeight:300,background:g.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${g.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[f.length===0?o.jsx(l.Empty,{description:i,style:{opacity:.3}}):f.map((p,E)=>o.jsx(he.Draggable,{draggableId:p.id,index:E,children:(v,D)=>o.jsx("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,style:{marginBottom:8,cursor:D.isDragging?"grabbing":"grab",opacity:D.isDragging?.8:1,transform:D.isDragging?"rotate(3deg)":"none",...v.draggableProps.style},children:o.jsx(vt,{size:"small",style:{boxShadow:D.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:p.content})})},p.id)),h.placeholder]})})]});return o.jsx(he.DragDropContext,{onDragEnd:c,children:o.jsxs(gt,{gutter:16,style:{margin:"24px 0"},children:[d("disponibles",n,e),d("seleccionados",a,t)]})})},wn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,accordion:a=!1,bordered:i=!0,collapsible:c="header",expandIcon:d,expandIconPosition:s="start",ghost:u=!1,size:f="middle",className:h,style:g})=>{const E={items:e.map(v=>({key:v.key,label:v.header,children:v.children,disabled:v.disabled,showArrow:v.showArrow,extra:v.extra,className:v.className,style:v.style})),defaultActiveKey:t,activeKey:r,onChange:n,accordion:a,bordered:i,collapsible:c,expandIcon:d,expandIconPosition:s,ghost:u,size:f,className:h,style:g};return o.jsx("div",{style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12},children:o.jsx(l.Collapse,{...E})})},On=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:a,onSearch:i,onScroll:c,titles:d=["Origen","Destino"],operations:s=[">","<"],showSearch:u=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:E,render:v,children:D,showSelectAll:I=!0,selectAllLabels:m,oneWay:S=!1,pagination:j=!1,status:U,locale:L,remotePagination:C,onPageChange:F})=>{const w=e.map(b=>({key:b.key,title:b.title,description:b.description,disabled:b.disabled||!1,chosen:b.chosen||!1})),K=n?(b,N,x)=>n(b,N,x):void 0,ce=a?(b,N)=>a(b,N):void 0,de=i?(b,N)=>i(b,N):void 0,ue=c?(b,N)=>c(b,N):void 0,fe=["hp-transfer",p].filter(Boolean).join(" "),oe=!!C&&C.position!=="none",ae={dataSource:w,targetKeys:t,selectedKeys:r,onChange:K,onSelectChange:ce,onSearch:de,onScroll:ue,titles:d,operations:s,showSearch:u,filterOption:f?(b,N)=>f(b,N):void 0,disabled:h,listStyle:g,className:fe,render:v||(b=>b.title),showSelectAll:I,selectAllLabels:m,oneWay:S,pagination:oe?!1:j,status:U,locale:L,footer:oe?({direction:b})=>{const N=(C==null?void 0:C.position)??"left";if(!(N==="both"||N==="left"&&b==="left"||N==="right"&&b==="right"))return null;const T=b==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!T)return null;const{page:A,pageSize:V,total:Y}=T,$=(C==null?void 0:C.simple)??!0,Z=(C==null?void 0:C.showSizeChanger)??!0;return o.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:o.jsx(l.Pagination,{size:"small",simple:$,current:A,total:Y,pageSize:V,showSizeChanger:Z,pageSizeOptions:["5","10","20","50"],onChange:(Q,J)=>{F==null||F(b,Q,J)}})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...E},children:D?D(ae):o.jsx(l.Transfer,{...ae})})},jn=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:a,onSearch:i,onScroll:c,titles:d=["Origen","Destino"],operations:s=[">","<"],showSearch:u=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:E,showSelectAll:v=!0,selectAllLabels:D,oneWay:I=!1,status:m,locale:S,leftColumns:j,rightColumns:U,rowKey:L="key",tableSize:C="small",tableScroll:F,remotePagination:w,onPageChange:K})=>{const ce=(e??[]).map(x=>({...x,key:x.key,title:x.title||x.key||String(x.key),description:x.description,disabled:x.disabled||!1,chosen:x.chosen||!1})),de=n?(x,T,A)=>n(x,T,A):void 0,ue=a?(x,T)=>a(x,T):void 0,fe=i?(x,T)=>i(x,T):void 0,oe=c?(x,T)=>c(x,T):void 0,ae=["hp-transfer","hp-table-transfer",p].filter(Boolean).join(" "),b=!!w&&(w.position??"left")!=="none",N={dataSource:ce,targetKeys:t,selectedKeys:r,onChange:de,onSelectChange:ue,onSearch:fe,onScroll:oe,titles:d,operations:s,showSearch:u,filterOption:f,disabled:h,listStyle:g,className:ae,showSelectAll:v,selectAllLabels:D,oneWay:I,pagination:!1,status:m,locale:S,footer:b?({direction:x})=>{const T=(w==null?void 0:w.position)??"left";if(!(T==="both"||T==="left"&&x==="left"||T==="right"&&x==="right"))return null;const V=x==="left"?w==null?void 0:w.left:w==null?void 0:w.right;if(!V)return null;const{page:Y,pageSize:$,total:Z}=V,Q=(w==null?void 0:w.simple)??!0,J=(w==null?void 0:w.showSizeChanger)??!0;return o.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:o.jsx(l.Pagination,{size:"small",simple:Q,current:Y,total:Z,pageSize:$,showSizeChanger:J,pageSizeOptions:["5","10","20","50"],onChange:(z,X)=>K==null?void 0:K(x,z,X)})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...E},children:o.jsx(l.Transfer,{...N,children:({direction:x,filteredItems:T,onItemSelect:A,onItemSelectAll:V,selectedKeys:Y,disabled:$})=>{const Z=x==="left"?j:U??j,Q={getCheckboxProps:z=>({disabled:$||z.disabled}),selectedRowKeys:Y,onSelect:(z,X)=>{A(z.key,X)},onChange:z=>{V(z,"replace")},selections:v?[l.Table.SELECTION_ALL,l.Table.SELECTION_INVERT,l.Table.SELECTION_NONE]:void 0},J=typeof L=="function"?L:z=>z[L];return o.jsx(l.Table,{showHeader:!0,size:C,columns:Z,dataSource:T,rowKey:J,pagination:!1,rowSelection:Q,style:{pointerEvents:$?"none":void 0,height:"100%"},onRow:z=>({onClick:()=>{if($||z.disabled)return;const X=!Y.includes(z.key);A(z.key,X)}}),scroll:F})}})})},Tn=e=>o.jsx(l.Empty,{...e}),kn=({className:e,style:t,...r},n)=>o.jsx(l.List,{ref:n,className:`${e}`,style:t,...r}),Ne=_.forwardRef(kn);Ne.Item=l.List.Item;Ne.ItemMeta=l.List.Item.Meta;const En={INPUT_HEIGHT:25,FONT_SIZE:12,PRIMARY_COLOR:"#1b1464",FONT_FAMILY:'"Open Sans", sans-serif',TABLE_ROW_HEIGHT:25,BORDER_COLOR:"#d9d9d9",TEXT_COLOR:"#333333"},Nn=({children:e,customTokens:t={}})=>{const r={...En,...t};return o.jsx(l.ConfigProvider,{theme:{token:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,colorPrimary:r.PRIMARY_COLOR,fontFamily:r.FONT_FAMILY,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,colorBgBase:"#ffffff"},components:{Button:{fontSize:r.FONT_SIZE,controlHeight:22,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044",colorText:r.TEXT_COLOR,colorBgContainer:"#ffffff",colorBorder:r.BORDER_COLOR},Table:{cellFontSize:r.FONT_SIZE,cellPaddingBlock:4,headerBg:"#fafafa",headerColor:r.TEXT_COLOR,headerSplitColor:r.BORDER_COLOR,colorText:"inherit"},Input:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},Select:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE},DatePicker:{controlHeight:r.INPUT_HEIGHT,fontSize:r.FONT_SIZE,fontFamily:r.FONT_FAMILY,colorBorder:r.BORDER_COLOR,colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",borderRadius:4,paddingInline:8},Checkbox:{colorPrimary:r.PRIMARY_COLOR,colorPrimaryHover:"#2c2570",colorPrimaryActive:"#151044"},Spin:{colorPrimary:r.PRIMARY_COLOR,dotSize:20,dotSizeSM:16,dotSizeLG:24},Transfer:{listHeight:200,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,colorBgContainer:"#ffffff",fontSize:r.FONT_SIZE,fontFamily:r.FONT_FAMILY}}},children:o.jsx("div",{className:"library-components-wrapper","data-input-height":r.INPUT_HEIGHT,"data-font-size":r.FONT_SIZE,"data-primary-color":r.PRIMARY_COLOR,children:e})})},Rn={open:e=>{l.message.open(e)},success:(e,t,r)=>{l.message.success(e,t,r)},error:(e,t,r)=>{l.message.error(e,t,r)},info:(e,t,r)=>{l.message.info(e,t,r)},warning:(e,t,r)=>{l.message.warning(e,t,r)},loading:(e,t,r)=>{l.message.loading(e,t,r)}};exports.Accordion=wn;exports.Alert=Tt;exports.Button=P;exports.Calendar=yn;exports.Card=vt;exports.CheckBox=kt;exports.ClearOutlined=re;exports.CloseOutlined=at;exports.Col=yt;exports.CustomFilterDrawer=cn;exports.CustomFilterDrawerHp=dn;exports.DatePicker=se;exports.DeleteOutlined=it;exports.Divider=At;exports.DragAndDrop=Cn;exports.Drawer=$t;exports.Dropdown=xt;exports.EditOutlined=Oe;exports.Empty=Tn;exports.FileExcelOutlined=st;exports.FilePdfOutlined=lt;exports.FilterOutlined=je;exports.FilterToolbar=Qr;exports.FloatButton=Ee;exports.Form=G;exports.Input=ke;exports.InputSwitch=Jr;exports.LibraryThemeProvider=Nn;exports.List=Ne;exports.Menu=ne;exports.Message=Rn;exports.Modal=mt;exports.Notification=Xr;exports.NumericInput=ft;exports.Password=Ur;exports.PlusOutlined=Te;exports.Radio=pt;exports.RadioGroup=en;exports.RichTextEditor=bn;exports.Row=gt;exports.Search=Zr;exports.SearchOutlined=dt;exports.Select=ht;exports.Skeleton=tn;exports.Space=un;exports.Spin=rn;exports.Table=nn;exports.TableTransfer=jn;exports.Tabs=on;exports.Tag=fn;exports.TextArea=Kr;exports.Toolbar=an;exports.Tooltip=sn;exports.Transfer=On;exports.Upload=ln;
|
package/dist/my-library.es.js
CHANGED
|
@@ -1414,7 +1414,8 @@ const no = (e) => /* @__PURE__ */ a(
|
|
|
1414
1414
|
optionFilterProp: h.optionFilterProp,
|
|
1415
1415
|
filterOption: h.filterOption,
|
|
1416
1416
|
onChange: (x) => m(h.key, x),
|
|
1417
|
-
style: { width: "100%" }
|
|
1417
|
+
style: { width: "100%" },
|
|
1418
|
+
loading: h.isLoading
|
|
1418
1419
|
}
|
|
1419
1420
|
)
|
|
1420
1421
|
}[h.type || "text"]
|