helppeople-ui 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66
66
  }
67
67
  `,Rr=function(t){var r=D.useContext(Je),n=r.csp,s=r.prefixCls,a=r.layer,c=Nr;s&&(c=c.replace(/anticon/g,s)),a&&(c="@layer ".concat(a,` {
68
68
  `).concat(c,`
69
- }`)),D.useEffect(function(){var u=t.current,d=Sr(u);vr(c,"@ant-design-icons",{prepend:!a,csp:n,attachTo:d})},[])},zr=["icon","className","onClick","style","primaryColor","secondaryColor"],ie={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Mr(e){var t=e.primaryColor,r=e.secondaryColor;ie.primaryColor=t,ie.secondaryColor=r||lt(t),ie.calculated=!!r}function _r(){return _({},ie)}var ee=function(t){var r=t.icon,n=t.className,s=t.onClick,a=t.style,c=t.primaryColor,u=t.secondaryColor,d=tt(t,zr),i=v.useRef(),f=ie;if(c&&(f={primaryColor:c,secondaryColor:u||lt(c)}),Rr(i),Er(qe(r),"icon should be icon definiton, but got ".concat(r)),!qe(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=_(_({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),Ce(h.icon,"svg-".concat(h.name),_(_({className:n,onClick:s,style:a,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:i}))};ee.displayName="IconReact";ee.getTwoToneColors=_r;ee.setTwoToneColors=Mr;function dt(e){var t=ct(e),r=et(t,2),n=r[0],s=r[1];return ee.setTwoToneColors({primaryColor:n,secondaryColor:s})}function Dr(){var e=ee.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Hr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dt(ve.primary);var z=v.forwardRef(function(e,t){var r=e.className,n=e.icon,s=e.spin,a=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,i=tt(e,Hr),f=v.useContext(Je),h=f.prefixCls,g=h===void 0?"anticon":h,p=f.rootClassName,w=ir(p,g,A(A({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!s||n.name==="loading"),r),y=c;y===void 0&&u&&(y=-1);var k=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,H=ct(d),I=et(H,2),M=I[0],m=I[1];return v.createElement("span",R({role:"img","aria-label":n.name},i,{ref:t,tabIndex:y,onClick:u,className:w}),v.createElement(ee,{icon:n,primaryColor:M,secondaryColor:m,style:k}))});z.displayName="AntdIcon";z.getTwoToneColor=Dr;z.setTwoToneColor=dt;var Ir={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"},Lr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Ir}))},ut=v.forwardRef(Lr);process.env.NODE_ENV!=="production"&&(ut.displayName="ArrowLeftOutlined");var Fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},Br=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Fr}))},Te=v.forwardRef(Br);process.env.NODE_ENV!=="production"&&(Te.displayName="BellOutlined");var Ar={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"},$r=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Ar}))},le=v.forwardRef($r);process.env.NODE_ENV!=="production"&&(le.displayName="ClearOutlined");var Pr={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"},Vr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Pr}))},ft=v.forwardRef(Vr);process.env.NODE_ENV!=="production"&&(ft.displayName="CloseOutlined");var Yr={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"},qr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Yr}))},ht=v.forwardRef(qr);process.env.NODE_ENV!=="production"&&(ht.displayName="DeleteOutlined");var Wr={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"},Gr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Wr}))},Ee=v.forwardRef(Gr);process.env.NODE_ENV!=="production"&&(Ee.displayName="EditOutlined");var Ur={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"},Kr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Ur}))},mt=v.forwardRef(Kr);process.env.NODE_ENV!=="production"&&(mt.displayName="FileExcelOutlined");var Xr={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"},Zr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Xr}))},pt=v.forwardRef(Zr);process.env.NODE_ENV!=="production"&&(pt.displayName="FilePdfOutlined");var Qr={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"},Jr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Qr}))},Ne=v.forwardRef(Jr);process.env.NODE_ENV!=="production"&&(Ne.displayName="FilterOutlined");var en={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"},tn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:en}))},gt=v.forwardRef(tn);process.env.NODE_ENV!=="production"&&(gt.displayName="LoadingOutlined");var rn={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"},nn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:rn}))},Re=v.forwardRef(nn);process.env.NODE_ENV!=="production"&&(Re.displayName="PlusOutlined");var on={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"},sn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:on}))},yt=v.forwardRef(sn);process.env.NODE_ENV!=="production"&&(yt.displayName="SaveOutlined");var an={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"},ln=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:an}))},xt=v.forwardRef(ln);process.env.NODE_ENV!=="production"&&(xt.displayName="SearchOutlined");var cn={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"},dn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:cn}))},vt=v.forwardRef(dn);process.env.NODE_ENV!=="production"&&(vt.displayName="UploadOutlined");const ze=D.forwardRef((e,t)=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[e.required&&o.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),o.jsx(l.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));ze.displayName="CustomInput";const un=e=>o.jsx(l.Input.Password,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),fn=e=>o.jsx(l.Input.TextArea,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),hn=e=>o.jsx(l.Input.Search,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),bt=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})},St=e=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsxs("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:[e.required&&o.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),o.jsx(l.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),mn=({fields:e,filters:t,onFilter:r,onClearFilters:n,localeCode:s="es",actions:a=[],onAdvancedFilters:c,loading:u=!1,defaultValues:d={},activeFiltersCount:i=0,onFiltersChange:f,extra:h,translations:g={}})=>{const[p,w]=D.useState(()=>t||d||{});D.useEffect(()=>{t&&w(t)},[t]);const y=(m,j)=>{const $={...p,[m]:j};w($),f==null||f($)},k=()=>{r(p)},H=()=>{w({}),n==null||n()},M=(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.jsxs(l.Row,{justify:"end",align:"middle",children:[h&&o.jsx(l.Col,{children:h}),o.jsx(l.Col,{style:{marginLeft:h?"0":"auto"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.map((m,j)=>!m.hide&&o.jsx(V,{size:"small",icon:m.icon,onClick:m.onClick,style:{border:"none",background:"none"},loading:m.loading},j)),c&&o.jsx(l.Badge,{count:i,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:o.jsx(V,{size:"small",icon:o.jsx(Ne,{}),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(ze,{placeholder:m.placeholder,value:p[m.key],onChange:j=>y(m.key,j.target.value),style:{width:"100%"}}),number:o.jsx(bt,{placeholder:m.placeholder,value:p[m.key],onChange:j=>y(m.key,j),style:{width:"100%"}}),date:o.jsx(fe,{localeCode:s,onChange:(j,$)=>y(m.key,$),style:{width:"100%"}}),range:o.jsx(fe.RangePicker,{localeCode:s,value:p[m.key]&&p[m.key][0]?[De(p[m.key][0]),De(p[m.key][1])]:void 0,onChange:(j,$)=>y(m.key,$),style:{width:"100%"}}),select:o.jsx(St,{placeholder:m.placeholder,options:m.options,value:p[m.key],mode:m.mode,allowClear:m.allowClear,showSearch:m.showSearch,optionFilterProp:m.optionFilterProp,filterOption:m.filterOption,onChange:j=>y(m.key,j),style:{width:"100%"},loading:m.isLoading})}[m.type||"text"]]})},m.key)),o.jsx(l.Col,{xs:24,sm:12,md:M,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(V,{type:"primary",size:"small",onClick:k,loading:u,disabled:u,text:g.apply||"Aplicar",className:"force-white-text-button"}),o.jsx(V,{size:"small",icon:o.jsx(le,{}),onClick:H,disabled:u})]})})]})]})},Me=({className:e,tooltip:t,...r})=>o.jsx(l.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});Me.Group=e=>o.jsx(l.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});Me.BackTop=l.FloatButton.BackTop;const pn=({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})]}),Ct=({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=>{Ct[e]=l.Modal[e]});const gn={open:({type:e,message:t,description:r,duration:n=3,placement:s="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:s,style:{fontSize:"var(--font-size-medium)"}})}},wt=({label:e,...t})=>o.jsx(l.Radio,{...t,children:e});wt.Group=e=>o.jsx(l.Radio.Group,{...e});const yn=e=>o.jsx(l.Radio.Group,{...e}),xn=({loadingText:e,...t})=>o.jsxs("div",{style:{padding:"1rem"},children:[e&&o.jsx("p",{children:e}),o.jsx(l.Skeleton,{...t})]}),Ge=({size:e="default"})=>{const t=()=>{switch(e){case"small":return{width:"32px",height:"23px"};case"large":return{width:"80px",height:"56px"};default:return{width:"50px",height:"35px"}}};return o.jsxs("div",{style:{display:"inline-block",...t()},children:[o.jsx("style",{children:`
69
+ }`)),D.useEffect(function(){var u=t.current,d=Sr(u);vr(c,"@ant-design-icons",{prepend:!a,csp:n,attachTo:d})},[])},zr=["icon","className","onClick","style","primaryColor","secondaryColor"],ie={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Mr(e){var t=e.primaryColor,r=e.secondaryColor;ie.primaryColor=t,ie.secondaryColor=r||lt(t),ie.calculated=!!r}function _r(){return _({},ie)}var ee=function(t){var r=t.icon,n=t.className,s=t.onClick,a=t.style,c=t.primaryColor,u=t.secondaryColor,d=tt(t,zr),i=v.useRef(),f=ie;if(c&&(f={primaryColor:c,secondaryColor:u||lt(c)}),Rr(i),Er(qe(r),"icon should be icon definiton, but got ".concat(r)),!qe(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=_(_({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),Ce(h.icon,"svg-".concat(h.name),_(_({className:n,onClick:s,style:a,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:i}))};ee.displayName="IconReact";ee.getTwoToneColors=_r;ee.setTwoToneColors=Mr;function dt(e){var t=ct(e),r=et(t,2),n=r[0],s=r[1];return ee.setTwoToneColors({primaryColor:n,secondaryColor:s})}function Dr(){var e=ee.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Hr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dt(ve.primary);var z=v.forwardRef(function(e,t){var r=e.className,n=e.icon,s=e.spin,a=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,i=tt(e,Hr),f=v.useContext(Je),h=f.prefixCls,g=h===void 0?"anticon":h,p=f.rootClassName,S=ir(p,g,A(A({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!s||n.name==="loading"),r),y=c;y===void 0&&u&&(y=-1);var k=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,H=ct(d),I=et(H,2),M=I[0],m=I[1];return v.createElement("span",R({role:"img","aria-label":n.name},i,{ref:t,tabIndex:y,onClick:u,className:S}),v.createElement(ee,{icon:n,primaryColor:M,secondaryColor:m,style:k}))});z.displayName="AntdIcon";z.getTwoToneColor=Dr;z.setTwoToneColor=dt;var Ir={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"},Lr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Ir}))},ut=v.forwardRef(Lr);process.env.NODE_ENV!=="production"&&(ut.displayName="ArrowLeftOutlined");var Fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},Br=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Fr}))},Te=v.forwardRef(Br);process.env.NODE_ENV!=="production"&&(Te.displayName="BellOutlined");var Ar={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"},$r=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Ar}))},le=v.forwardRef($r);process.env.NODE_ENV!=="production"&&(le.displayName="ClearOutlined");var Pr={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"},Vr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Pr}))},ft=v.forwardRef(Vr);process.env.NODE_ENV!=="production"&&(ft.displayName="CloseOutlined");var Yr={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"},qr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Yr}))},ht=v.forwardRef(qr);process.env.NODE_ENV!=="production"&&(ht.displayName="DeleteOutlined");var Wr={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"},Gr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Wr}))},Ee=v.forwardRef(Gr);process.env.NODE_ENV!=="production"&&(Ee.displayName="EditOutlined");var Ur={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"},Kr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Ur}))},mt=v.forwardRef(Kr);process.env.NODE_ENV!=="production"&&(mt.displayName="FileExcelOutlined");var Xr={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"},Zr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Xr}))},pt=v.forwardRef(Zr);process.env.NODE_ENV!=="production"&&(pt.displayName="FilePdfOutlined");var Qr={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"},Jr=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:Qr}))},Ne=v.forwardRef(Jr);process.env.NODE_ENV!=="production"&&(Ne.displayName="FilterOutlined");var en={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"},tn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:en}))},gt=v.forwardRef(tn);process.env.NODE_ENV!=="production"&&(gt.displayName="LoadingOutlined");var rn={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"},nn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:rn}))},Re=v.forwardRef(nn);process.env.NODE_ENV!=="production"&&(Re.displayName="PlusOutlined");var on={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"},sn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:on}))},yt=v.forwardRef(sn);process.env.NODE_ENV!=="production"&&(yt.displayName="SaveOutlined");var an={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"},ln=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:an}))},xt=v.forwardRef(ln);process.env.NODE_ENV!=="production"&&(xt.displayName="SearchOutlined");var cn={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"},dn=function(t,r){return v.createElement(z,R({},t,{ref:r,icon:cn}))},vt=v.forwardRef(dn);process.env.NODE_ENV!=="production"&&(vt.displayName="UploadOutlined");const ze=D.forwardRef((e,t)=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[e.required&&o.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),o.jsx(l.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));ze.displayName="CustomInput";const un=e=>o.jsx(l.Input.Password,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),fn=e=>o.jsx(l.Input.TextArea,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),hn=e=>o.jsx(l.Input.Search,{...e,style:{...e.style,fontSize:"var(--font-size-medium)"}}),bt=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})},St=e=>o.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&o.jsxs("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:[e.required&&o.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),o.jsx(l.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),mn=({fields:e,filters:t,onFilter:r,onClearFilters:n,localeCode:s="es",actions:a=[],onAdvancedFilters:c,loading:u=!1,defaultValues:d={},activeFiltersCount:i=0,onFiltersChange:f,extra:h,translations:g={}})=>{const[p,S]=D.useState(()=>t||d||{});D.useEffect(()=>{t&&S(t)},[t]);const y=(m,j)=>{const $={...p,[m]:j};S($),f==null||f($)},k=()=>{r(p)},H=()=>{S({}),n==null||n()},M=(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.jsxs(l.Row,{justify:"end",align:"middle",children:[h&&o.jsx(l.Col,{children:h}),o.jsx(l.Col,{style:{marginLeft:h?"0":"auto"},children:o.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[a.map((m,j)=>!m.hide&&o.jsx(V,{size:"small",icon:m.icon,onClick:m.onClick,style:{border:"none",background:"none"},loading:m.loading},j)),c&&o.jsx(l.Badge,{count:i,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:o.jsx(V,{size:"small",icon:o.jsx(Ne,{}),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(ze,{placeholder:m.placeholder,value:p[m.key],onChange:j=>y(m.key,j.target.value),style:{width:"100%"}}),number:o.jsx(bt,{placeholder:m.placeholder,value:p[m.key],onChange:j=>y(m.key,j),style:{width:"100%"}}),date:o.jsx(fe,{localeCode:s,onChange:(j,$)=>y(m.key,$),style:{width:"100%"}}),range:o.jsx(fe.RangePicker,{localeCode:s,value:p[m.key]&&p[m.key][0]?[De(p[m.key][0]),De(p[m.key][1])]:void 0,onChange:(j,$)=>y(m.key,$),style:{width:"100%"}}),select:o.jsx(St,{placeholder:m.placeholder,options:m.options,value:p[m.key],mode:m.mode,allowClear:m.allowClear,showSearch:m.showSearch,optionFilterProp:m.optionFilterProp,filterOption:m.filterOption,onChange:j=>y(m.key,j),style:{width:"100%"},loading:m.isLoading})}[m.type||"text"]]})},m.key)),o.jsx(l.Col,{xs:24,sm:12,md:M,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(V,{type:"primary",size:"small",onClick:k,loading:u,disabled:u,text:g.apply||"Aplicar",className:"force-white-text-button"}),o.jsx(V,{size:"small",icon:o.jsx(le,{}),onClick:H,disabled:u})]})})]})]})},Me=({className:e,tooltip:t,...r})=>o.jsx(l.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});Me.Group=e=>o.jsx(l.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});Me.BackTop=l.FloatButton.BackTop;const pn=({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})]}),Ct=({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=>{Ct[e]=l.Modal[e]});const gn={open:({type:e,message:t,description:r,duration:n=3,placement:s="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:s,style:{fontSize:"var(--font-size-medium)"}})}},wt=({label:e,...t})=>o.jsx(l.Radio,{...t,children:e});wt.Group=e=>o.jsx(l.Radio.Group,{...e});const yn=e=>o.jsx(l.Radio.Group,{...e}),xn=({loadingText:e,...t})=>o.jsxs("div",{style:{padding:"1rem"},children:[e&&o.jsx("p",{children:e}),o.jsx(l.Skeleton,{...t})]}),Ge=({size:e="default"})=>{const t=()=>{switch(e){case"small":return{width:"32px",height:"23px"};case"large":return{width:"80px",height:"56px"};default:return{width:"50px",height:"35px"}}};return o.jsxs("div",{style:{display:"inline-block",...t()},children:[o.jsx("style",{children:`
70
70
  .helppeople-cloud-svg .svg-elem-1 {
71
71
  stroke-dashoffset: 472.7320556640625px;
72
72
  stroke-dasharray: 472.7320556640625px;
@@ -82,7 +82,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
82
82
  }
83
83
  }
84
84
  `}),o.jsxs("svg",{className:"helppeople-cloud-svg",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 197.71 139.12",style:{width:"100%",height:"100%"},xmlSpace:"preserve",children:[o.jsx("style",{type:"text/css",children:".st0{fill:none;stroke:#28285B;stroke-width:14;stroke-linecap:round;stroke-miterlimit:10;}"}),o.jsx("g",{children:o.jsx("path",{className:"st0 svg-elem-1",d:`M105.78,63.29c6.82-13.05,20.48-21.95,36.22-21.95c22.56,0,40.84,18.28,40.84,40.84s-18.28,40.13-40.84,40.13\r
85
- H69.32c-29.13,0-52.75-23.61-52.75-52.75s23.61-52.75,52.75-52.75c21.19,0,39.46,12.49,47.85,30.52`})})]})]})},jt=({tip:e,spinning:t=!0,size:r="default",overlay:n=!1,spinType:s="antd",children:a,...c})=>{const u=()=>s==="helppeople"?o.jsx(Ge,{size:r}):o.jsx(l.Spin,{spinning:t,size:r,...c});return 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:[u(),e&&o.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):s==="helppeople"?o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:a?"auto":"100px"},children:[t&&o.jsxs(o.Fragment,{children:[o.jsx(Ge,{size:r}),e&&o.jsx("div",{style:{marginTop:8,fontSize:14,color:"#666"},children:e})]}),a]}):o.jsx(l.Spin,{tip:e,spinning:t,size:r,...c,children:a})},vn=({columns:e,dataSource:t,pagination:r,loading:n,...s})=>{const a=t==null?void 0:t.filter(d=>d?Object.values(d).some(f=>f!=null&&f!==""):!1),c=e==null?void 0:e.map((d,i)=>({...d,key:d.key||i,title:typeof d.title=="string"?o.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:d.title}):d.title})),u=r?{...r,showTotal:(d,i)=>`${i[1]-i[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.jsxs("div",{style:{position:"relative"},children:[o.jsx(l.Table,{...s,loading:!1,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:{x:"max-content"},columns:c,dataSource:a,pagination:u}),n&&o.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10},children:o.jsx(jt,{spinning:!0,spinType:"helppeople",size:"small"})})]})},bn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,type:s="line",showCardWrapper:a=!0,topBarContent:c,topBarAlign:u="right"})=>{const d={backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},f={display:"flex",justifyContent:(()=>{switch(u){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return"flex-end"}})(),alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},h=o.jsx(l.Tabs,{defaultActiveKey:t,activeKey:r,onChange:n,type:s,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(g=>({key:g.key,label:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:g.label}),children:o.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:g.content})}))});return a?o.jsxs("div",{style:d,children:[c&&o.jsx("div",{style:f,children:c}),h]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("div",{style:f,children:c}),h]})},Sn=({title:e,onBack:t,onNew:r,newButtonText:n="Nueva",backButtonText:s="Volver",newButtonLoading:a=!1,newButtonDisabled:c=!1,pageType:u="list",customButtons:d=[],hideDefaultButtons:i=!1})=>{const f=()=>u==="form"?o.jsx(yt,{}):u==="detail"?o.jsx(Ee,{}):o.jsx(Re,{});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:[d.map(h=>o.jsx(V,{type:h.type||"default",onClick:h.onClick,icon:h.icon,text:h.text,loading:h.loading,disabled:h.disabled,style:{fontSize:"var(--font-size-medium)",...h.style}},h.key)),!i&&o.jsxs(o.Fragment,{children:[t&&o.jsx(V,{type:"default",onClick:t,icon:o.jsx(ut,{}),style:{fontSize:"var(--font-size-medium)"},text:s}),r&&o.jsx(V,{type:"primary",onClick:r,icon:f(),style:{fontSize:"var(--font-size-medium)"},text:n,loading:a,disabled:c})]})]})]})},Cn=({content:e,children:t,...r})=>o.jsx(l.Tooltip,{title:e,...r,style:{fontSize:"var(--font-size-medium)"},children:t}),wn=({buttonText:e="Subir archivo",...t})=>o.jsx(l.Upload,{...t,children:o.jsx(l.Button,{icon:o.jsx(vt,{}),children:e})}),jn=({visible:e,title:t,fields:r,filters:n,onClose:s,onApplyFilters:a,onClearFilters:c,onChange:u,translations:d={}})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:s,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,children:d.applyFilters||"Aplicar filtros"}),o.jsx(l.Tooltip,{title:d.clearFilters||"Limpiar filtros",placement:"left",children:o.jsx(l.Button,{icon:o.jsx(le,{}),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(i=>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:i.label}),{text:o.jsx(l.Input,{placeholder:i.placeholder,value:n[i.key],onChange:f=>u(i.key,f.target.value)}),number:o.jsx(l.InputNumber,{placeholder:i.placeholder,value:n[i.key],onChange:f=>u(i.key,f),style:{width:"100%"}}),select:o.jsx(l.Select,{placeholder:i.placeholder,options:i.options,value:n[i.key],onChange:f=>u(i.key,f),style:{width:"100%"}})}[i.type]]},i.key))})}),On=({visible:e,title:t,filters:r,onChange:n,onClose:s,onSubmit:a,onClear:c,children:u,loading:d=!1,translations:i={}})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:s,open:e,width:400,styles:{body:{paddingBottom:80,display:"flex",flexWrap:"wrap",gap:16},footer:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px",textAlign:"right"}},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,loading:d,disabled:d,style:{color:"#fff",backgroundColor:"#1b1464"},children:i.apply||"Aplicar"}),o.jsx(l.Tooltip,{title:i.clearFilters||"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(le,{}),onClick:c,disabled:d,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:u({filters:r,onChange:n})}),kn=`
85
+ H69.32c-29.13,0-52.75-23.61-52.75-52.75s23.61-52.75,52.75-52.75c21.19,0,39.46,12.49,47.85,30.52`})})]})]})},jt=({tip:e,spinning:t=!0,size:r="default",overlay:n=!1,spinType:s="antd",children:a,...c})=>{const u=()=>s==="helppeople"?o.jsx(Ge,{size:r}):o.jsx(l.Spin,{spinning:t,size:r,...c});return 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:[u(),e&&o.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):s==="helppeople"?o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:a?"auto":"100px"},children:[t&&o.jsxs(o.Fragment,{children:[o.jsx(Ge,{size:r}),e&&o.jsx("div",{style:{marginTop:8,fontSize:14,color:"#666"},children:e})]}),a]}):o.jsx(l.Spin,{tip:e,spinning:t,size:r,...c,children:a})},vn=({columns:e,dataSource:t,pagination:r,loading:n,...s})=>{const a=t==null?void 0:t.filter(d=>d?Object.values(d).some(f=>f!=null&&f!==""):!1),c=e==null?void 0:e.map((d,i)=>{const f={...d,key:d.key||i,title:typeof d.title=="string"?o.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:d.title}):d.title};if(d.width===void 0){const h=d.onCell;return{...f,onCell:(g,p)=>{var S;return{...h?h(g,p):{},style:{...h?(S=h(g,p))==null?void 0:S.style:{},maxWidth:200,whiteSpace:"normal",wordWrap:"break-word",wordBreak:"break-word"}}}}}return f}),u=r?{...r,showTotal:(d,i)=>`${i[1]-i[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.jsxs("div",{style:{position:"relative"},children:[o.jsx(l.Table,{...s,loading:!1,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:{x:"max-content"},columns:c,dataSource:a,pagination:u}),n&&o.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10},children:o.jsx(jt,{spinning:!0,spinType:"helppeople",size:"small"})})]})},bn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,type:s="line",showCardWrapper:a=!0,topBarContent:c,topBarAlign:u="right"})=>{const d={backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},f={display:"flex",justifyContent:(()=>{switch(u){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return"flex-end"}})(),alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},h=o.jsx(l.Tabs,{defaultActiveKey:t,activeKey:r,onChange:n,type:s,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(g=>({key:g.key,label:o.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:g.label}),children:o.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:g.content})}))});return a?o.jsxs("div",{style:d,children:[c&&o.jsx("div",{style:f,children:c}),h]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("div",{style:f,children:c}),h]})},Sn=({title:e,onBack:t,onNew:r,newButtonText:n="Nueva",backButtonText:s="Volver",newButtonLoading:a=!1,newButtonDisabled:c=!1,pageType:u="list",customButtons:d=[],hideDefaultButtons:i=!1})=>{const f=()=>u==="form"?o.jsx(yt,{}):u==="detail"?o.jsx(Ee,{}):o.jsx(Re,{});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:[d.map(h=>o.jsx(V,{type:h.type||"default",onClick:h.onClick,icon:h.icon,text:h.text,loading:h.loading,disabled:h.disabled,style:{fontSize:"var(--font-size-medium)",...h.style}},h.key)),!i&&o.jsxs(o.Fragment,{children:[t&&o.jsx(V,{type:"default",onClick:t,icon:o.jsx(ut,{}),style:{fontSize:"var(--font-size-medium)"},text:s}),r&&o.jsx(V,{type:"primary",onClick:r,icon:f(),style:{fontSize:"var(--font-size-medium)"},text:n,loading:a,disabled:c})]})]})]})},Cn=({content:e,children:t,...r})=>o.jsx(l.Tooltip,{title:e,...r,style:{fontSize:"var(--font-size-medium)"},children:t}),wn=({buttonText:e="Subir archivo",...t})=>o.jsx(l.Upload,{...t,children:o.jsx(l.Button,{icon:o.jsx(vt,{}),children:e})}),jn=({visible:e,title:t,fields:r,filters:n,onClose:s,onApplyFilters:a,onClearFilters:c,onChange:u,translations:d={}})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:s,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,children:d.applyFilters||"Aplicar filtros"}),o.jsx(l.Tooltip,{title:d.clearFilters||"Limpiar filtros",placement:"left",children:o.jsx(l.Button,{icon:o.jsx(le,{}),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(i=>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:i.label}),{text:o.jsx(l.Input,{placeholder:i.placeholder,value:n[i.key],onChange:f=>u(i.key,f.target.value)}),number:o.jsx(l.InputNumber,{placeholder:i.placeholder,value:n[i.key],onChange:f=>u(i.key,f),style:{width:"100%"}}),select:o.jsx(l.Select,{placeholder:i.placeholder,options:i.options,value:n[i.key],onChange:f=>u(i.key,f),style:{width:"100%"}})}[i.type]]},i.key))})}),On=({visible:e,title:t,filters:r,onChange:n,onClose:s,onSubmit:a,onClear:c,children:u,loading:d=!1,translations:i={}})=>o.jsx(l.Drawer,{title:t,placement:"right",onClose:s,open:e,width:400,styles:{body:{paddingBottom:80,display:"flex",flexWrap:"wrap",gap:16},footer:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px",textAlign:"right"}},footer:o.jsx("div",{style:{textAlign:"right"},children:o.jsxs(l.Space,{children:[o.jsx(l.Button,{type:"primary",onClick:a,loading:d,disabled:d,style:{color:"#fff",backgroundColor:"#1b1464"},children:i.apply||"Aplicar"}),o.jsx(l.Tooltip,{title:i.clearFilters||"Limpiar filtros",children:o.jsx(l.Button,{icon:o.jsx(le,{}),onClick:c,disabled:d,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:u({filters:r,onChange:n})}),kn=`
86
86
  .custom-form .ant-form-item-label > label {
87
87
  font-weight: var(--font-weight-semibold, 600) !important;
88
88
  font-family: var(--font-family, inherit) !important;
@@ -91,4 +91,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
91
91
  .custom-form .ant-form-item-required::before {
92
92
  color: #ff4d4f !important;
93
93
  }
94
- `,te=e=>{const[t]=l.Form.useForm(),r=e.form||t;return o.jsxs(o.Fragment,{children:[o.jsx("style",{children:kn}),o.jsx(l.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})]})};te.Item=l.Form.Item;te.List=l.Form.List;te.useForm=l.Form.useForm;te.useWatch=l.Form.useWatch;te.useFormInstance=l.Form.useFormInstance;const Ot=e=>o.jsx(l.Row,{...e,children:e.children}),kt=e=>o.jsx(l.Col,{...e,children:e.children}),Tn=e=>o.jsx(l.Space,{...e,children:e.children}),Tt=e=>o.jsx(l.Card,{...e}),En=e=>o.jsx(l.Tag,{...e});var Nn={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"},Rn={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"}`}},zn={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 Mn={es:Nn,en:Rn,pt:zn},_n=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:n=!0,editable:s=!1,onEventClick:a,onDateSelect:c,renderEventContent:u,localeCode:d="es"})=>{const i=e;function f(p){a&&a({id:p.event.id,title:p.event.title,start:p.event.start,end:p.event.end??void 0,allDay:p.event.allDay})}function h(p){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(zt,{plugins:[Mt,_t,Dt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:n,editable:s,events:i,eventContent:u??g,eventClick:f,select:h,locale:Mn[d||"es"]})})},Dn={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}},Hn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","image","color","background","align"],In=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:n=Dn,formats:s=Hn,theme:a="snow",height:c="200px",width:u="100%",maxHeight:d="400px",minHeight:i="100px",autoResize:f=!1,className:h="",...g})=>{const p=D.useRef(null),w=D.useRef(null);D.useEffect(()=>{if(f&&p.current&&w.current){const H=p.current.getEditor(),I=w.current,M=()=>{const m=I.querySelector(".ql-editor");if(m){const j=m.scrollHeight,$=typeof i=="number"?i:parseInt(i),C=typeof d=="number"?d:parseInt(d),P=Math.min(Math.max(j+42,$),C);I.style.height=`${P}px`}};return H.on("text-change",M),M(),()=>{H.off("text-change",M)}}},[f,d,i]);const y={width:typeof u=="number"?`${u}px`:u,height:f?"auto":typeof c=="number"?`${c}px`:c,minHeight:typeof i=="number"?`${i}px`:i,maxHeight:f?typeof d=="number"?`${d}px`:d:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...g.style},k={height:"100%",display:"flex",flexDirection:"column"};return o.jsx("div",{ref:w,className:`custom-rich-text-editor ${f?"auto-resize":"fixed-height"} ${h}`,style:y,children:o.jsx(Ht,{ref:p,theme:a,value:e,onChange:t,modules:n,formats:s,placeholder:r,style:k,...g})})},ce=e=>o.jsx(l.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});ce.Item=e=>o.jsx(l.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});ce.SubMenu=e=>o.jsx(l.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});ce.ItemGroup=l.Menu.ItemGroup;ce.Divider=l.Menu.Divider;const Et=({className:e,children:t,items:r,menu:n,...s})=>{const a=r?{items:r}:n;return o.jsx(l.Dropdown,{className:`custom-dropdown ${e||""}`,menu:a,...s,children:t})};Et.Button=e=>o.jsx(l.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Ln}=l.Typography,Fn=({available:e,selected:t,onChange:r,availableTitle:n="Disponibles",selectedTitle:s="Seleccionados",emptyDescription:a="Arrastra los elementos aquí"})=>{const c=d=>{const{source:i,destination:f}=d;if(f&&!(i.droppableId===f.droppableId&&i.index===f.index))if(i.droppableId===f.droppableId){const h=i.droppableId==="disponibles"?[...e]:[...t],[g]=h.splice(i.index,1);h.splice(f.index,0,g),i.droppableId==="disponibles"?r(h,t):r(e,h)}else{const h=i.droppableId==="disponibles"?[...e]:[...t],g=f.droppableId==="disponibles"?[...e]:[...t],[p]=h.splice(i.index,1);g.splice(f.index,0,p),i.droppableId==="disponibles"?r(h,g):r(g,h)}},u=(d,i,f)=>o.jsxs(kt,{span:12,children:[o.jsx(Ln,{level:4,style:{marginBottom:16,fontSize:14},children:i}),o.jsx(ge.Droppable,{droppableId:d,children:(h,g)=>o.jsxs("div",{ref:h.innerRef,...h.droppableProps,style:{minHeight:300,background:g.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${g.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[f.length===0?o.jsx(l.Empty,{description:a,style:{opacity:.3}}):f.map((p,w)=>o.jsx(ge.Draggable,{draggableId:p.id,index:w,children:(y,k)=>o.jsx("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:{marginBottom:8,cursor:k.isDragging?"grabbing":"grab",opacity:k.isDragging?.8:1,transform:k.isDragging?"rotate(3deg)":"none",...y.draggableProps.style},children:o.jsx(Tt,{size:"small",style:{boxShadow:k.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(ge.DragDropContext,{onDragEnd:c,children:o.jsxs(Ot,{gutter:16,style:{margin:"24px 0"},children:[u("disponibles",n,e),u("seleccionados",s,t)]})})},Bn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,accordion:s=!1,bordered:a=!0,collapsible:c="header",expandIcon:u,expandIconPosition:d="start",ghost:i=!1,size:f="middle",className:h,style:g})=>{const w={items:e.map(y=>({key:y.key,label:y.header,children:y.children,disabled:y.disabled,showArrow:y.showArrow,extra:y.extra,className:y.className,style:y.style})),defaultActiveKey:t,activeKey:r,onChange:n,accordion:s,bordered:a,collapsible:c,expandIcon:u,expandIconPosition:d,ghost:i,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,{...w})})},An=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:s,onSearch:a,onScroll:c,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:i=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:w,render:y,children:k,showSelectAll:H=!0,selectAllLabels:I,oneWay:M=!1,pagination:m=!1,status:j,locale:$,remotePagination:C,onPageChange:P})=>{const re=e.map(S=>({key:S.key,title:S.title,description:S.description,disabled:S.disabled||!1,chosen:S.chosen||!1})),O=n?(S,F,de)=>n(S,F,de):void 0,W=s?(S,F)=>s(S,F):void 0,ne=a?(S,F)=>a(S,F):void 0,x=c?(S,F)=>c(S,F):void 0,L=["hp-transfer",p].filter(Boolean).join(" "),X=!!C&&C.position!=="none",Z={dataSource:re,targetKeys:t,selectedKeys:r,onChange:O,onSelectChange:W,onSearch:ne,onScroll:x,titles:u,operations:d,showSearch:i,filterOption:f?(S,F)=>f(S,F):void 0,disabled:h,listStyle:g,className:L,render:y||(S=>S.title),showSelectAll:H,selectAllLabels:I,oneWay:M,pagination:X?!1:m,status:j,locale:$,footer:X?({direction:S})=>{const F=(C==null?void 0:C.position)??"left";if(!(F==="both"||F==="left"&&S==="left"||F==="right"&&S==="right"))return null;const b=S==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!b)return null;const{page:N,pageSize:G,total:Y}=b,q=(C==null?void 0:C.simple)??!0,U=(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:q,current:N,total:Y,pageSize:G,showSizeChanger:U,pageSizeOptions:["5","10","20","50"],onChange:(oe,se)=>{P==null||P(S,oe,se)}})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...w},children:k?k(Z):o.jsx(l.Transfer,{...Z})})},$n=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:s,onSearch:a,onScroll:c,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:i=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:w,selectAllLabels:y,oneWay:k=!1,status:H,locale:I,leftColumns:M,rightColumns:m,rowKey:j="key",tableSize:$="small",tableScroll:C,showDefaultHeaderActions:P=!0,headerActions:re=[],remotePagination:O,onPageChange:W})=>{const ne=(e??[]).map(b=>({...b,key:b.key,title:b.title||b.key||String(b.key),description:b.description,disabled:b.disabled||!1,chosen:b.chosen||!1})),x=n?(b,N,G)=>n(b,N,G):void 0,L=s?(b,N)=>s(b,N):void 0,X=a?(b,N)=>a(b,N):void 0,Z=c?(b,N)=>c(b,N):void 0,S=["hp-transfer","hp-table-transfer",p].filter(Boolean).join(" "),F=!!O&&(O.position??"left")!=="none",de={dataSource:ne,targetKeys:t,selectedKeys:r,onChange:x,onSelectChange:L,onSearch:X,onScroll:Z,titles:u,operations:d,showSearch:i,filterOption:f,disabled:h,listStyle:g,className:S,showSelectAll:P,selectAllLabels:y,oneWay:k,pagination:!1,status:H,locale:I,footer:F?({direction:b})=>{const N=(O==null?void 0:O.position)??"left";if(!(N==="both"||N==="left"&&b==="left"||N==="right"&&b==="right"))return null;const Y=b==="left"?O==null?void 0:O.left:O==null?void 0:O.right;if(!Y)return null;const{page:q,pageSize:U,total:oe}=Y,se=(O==null?void 0:O.simple)??!0,me=(O==null?void 0:O.showSizeChanger)??!0;return o.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:o.jsx(l.Pagination,{size:"small",simple:se,current:q,total:oe,pageSize:U,showSizeChanger:me,pageSizeOptions:["5","10","20","50"],onChange:(T,B)=>W==null?void 0:W(b,T,B)})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...w},children:o.jsx(l.Transfer,{...de,children:({direction:b,filteredItems:N,onItemSelect:G,onItemSelectAll:Y,selectedKeys:q,disabled:U})=>{const oe=b==="left"?M:m??M,se={getCheckboxProps:T=>({disabled:U||T.disabled}),selectedRowKeys:q,onSelect:(T,B)=>{G(T.key,B)},hideSelectAll:!1,onChange:T=>{Y(T,"replace")},selections:(()=>{const T=[];return P&&T.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const B=N.map(Q=>Q.key);Y(B,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const B=N.map(pe=>pe.key),Q=q,Rt=B.filter(pe=>!Q.includes(pe));Y(Rt,"replace")}}),re.forEach(B=>{T.push({key:B.key,text:B.label,onSelect:()=>{var Q;(Q=B.onClick)==null||Q.call(B,b,q)}})}),T.length>0?T:!1})()},me=typeof j=="function"?j:T=>T[j];return o.jsx(l.Table,{showHeader:!0,size:$,columns:oe,dataSource:N,rowKey:me,pagination:!1,rowSelection:se,style:{pointerEvents:U?"none":void 0,height:"100%"},onRow:T=>({onClick:()=>{if(U||T.disabled)return;const B=!q.includes(T.key);G(T.key,B)}}),scroll:C})}})})},Nt=({count:e=0,overflowCount:t=99,dot:r=!1,color:n,size:s="default",icon:a,useButton:c=!1,buttonType:u="text",buttonShape:d="circle",onClick:i,style:f,containerStyle:h,showZero:g=!1,offset:p,className:w,disabled:y=!1})=>{const k=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},H=a||o.jsx(Te,{style:{fontSize:k(),...h}}),I=c?o.jsx(l.Button,{type:u,icon:H,shape:d,onClick:i,style:h,disabled:y,className:w}):o.jsx("span",{onClick:i,style:{cursor:i?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...h},className:w,children:H});return o.jsx(l.Badge,{count:e,overflowCount:t,dot:r,color:n,showZero:g,offset:p,style:f,children:I})},Pn=({count:e,notifications:t=[],icon:r,size:n="default",useButton:s=!1,buttonType:a="text",onNotificationClick:c,onLoadMore:u,hasMore:d=!1,loading:i=!1,renderNotification:f,loadMoreText:h="Cargar más",emptyText:g="No hay notificaciones",popoverWidth:p=380,overflowCount:w=99,badgeColor:y,showZero:k=!1,containerStyle:H,popoverTitle:I="Notificaciones",onOpenChange:M,headerAction:m,maxHeight:j=400,placement:$="bottomRight"})=>{const[C,P]=D.useState(!1),re=x=>{P(x),M==null||M(x)},O=x=>{c==null||c(x)},W=x=>o.jsxs("div",{style:{padding:"12px",cursor:x.actions?"default":"pointer",backgroundColor:x.read?"transparent":"#f0f7ff",borderRadius:"4px",transition:"background-color 0.3s",width:"100%",boxSizing:"border-box"},onMouseEnter:L=>{L.currentTarget.style.backgroundColor=x.read?"#fafafa":"#e6f4ff"},onMouseLeave:L=>{L.currentTarget.style.backgroundColor=x.read?"transparent":"#f0f7ff"},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[o.jsx("span",{style:{fontWeight:x.read?400:600,fontSize:"14px",color:x.read?"#595959":"#262626"},children:x.title}),!x.read&&o.jsx("span",{style:{width:"8px",height:"8px",backgroundColor:"#1890ff",borderRadius:"50%",marginLeft:"8px",flexShrink:0}})]}),x.description&&o.jsx("div",{style:{fontSize:"13px",color:"#8c8c8c",marginBottom:x.actions?"8px":"4px",lineHeight:"1.4"},children:x.description}),x.timestamp&&o.jsx("div",{style:{fontSize:"12px",color:"#bfbfbf",marginBottom:x.actions?"8px":"0"},children:x.timestamp}),x.actions&&x.actions.length>0&&o.jsx(l.Space,{size:"small",style:{marginTop:"8px"},children:x.actions.map((L,X)=>o.jsx(l.Button,{type:L.type||"default",size:L.size||"small",icon:L.icon,danger:L.danger,disabled:L.disabled,onClick:Z=>{Z.stopPropagation(),L.onClick(x)},children:L.label},X))})]}),ne=o.jsxs("div",{style:{width:p},children:[m&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[o.jsx("span",{style:{fontWeight:600,fontSize:"14px"},children:I}),m]}),o.jsx(l.Divider,{style:{margin:"8px 0"}})]}),o.jsx("div",{style:{maxHeight:j,overflowY:"auto"},children:t.length===0?o.jsx(l.Empty,{description:g,image:l.Empty.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"}}):o.jsx(l.List,{dataSource:t,renderItem:x=>o.jsx(l.List.Item,{style:{padding:0,border:"none",marginBottom:"4px",width:"100%"},onClick:()=>O(x),children:f?f(x):W(x)})})}),d&&t.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(l.Divider,{style:{margin:"8px 0"}}),o.jsx("div",{style:{textAlign:"center",padding:"8px 0"},children:o.jsx(V,{text:h,onClick:u||(()=>{}),loading:i,icon:i?o.jsx(gt,{}):void 0,style:{width:"100%"}})})]})]});return o.jsx(l.Popover,{content:ne,title:m?null:I,trigger:"click",open:C,onOpenChange:re,placement:$,overlayStyle:{maxWidth:p+48},children:o.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:o.jsx(Nt,{count:e!==void 0?e:t.filter(x=>!x.read).length,icon:r||o.jsx(Te,{}),size:n,useButton:s,buttonType:a,overflowCount:w,color:y,showZero:k,containerStyle:H})})})},Vn=e=>o.jsx(l.Empty,{...e}),Yn=({className:e,style:t,...r},n)=>o.jsx(l.List,{ref:n,className:`${e}`,style:t,...r}),_e=D.forwardRef(Yn);_e.Item=l.List.Item;_e.ItemMeta=l.List.Item.Meta;const qn={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"},Wn=({children:e,customTokens:t={}})=>{const r={...qn,...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},Divider:{fontSize:r.FONT_SIZE,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,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})})},Gn={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=Bn;exports.Alert=Lt;exports.Button=V;exports.Calendar=_n;exports.Card=Tt;exports.CheckBox=Ue;exports.ClearOutlined=le;exports.CloseOutlined=ft;exports.Col=kt;exports.CustomFilterDrawer=jn;exports.CustomFilterDrawerHp=On;exports.DatePicker=fe;exports.DeleteOutlined=ht;exports.Divider=Zt;exports.DragAndDrop=Fn;exports.Drawer=Qt;exports.Dropdown=Et;exports.EditOutlined=Ee;exports.Empty=Vn;exports.FileExcelOutlined=mt;exports.FilePdfOutlined=pt;exports.FilterOutlined=Ne;exports.FilterToolbar=mn;exports.FloatButton=Me;exports.Form=te;exports.Input=ze;exports.InputSwitch=pn;exports.LibraryThemeProvider=Wn;exports.List=_e;exports.Menu=ce;exports.Message=Gn;exports.Modal=Ct;exports.Notification=gn;exports.NotificationBadge=Nt;exports.NotificationDropdown=Pn;exports.NumericInput=bt;exports.Password=un;exports.PlusOutlined=Re;exports.Radio=wt;exports.RadioGroup=yn;exports.RichTextEditor=In;exports.Row=Ot;exports.Search=hn;exports.SearchOutlined=xt;exports.Select=St;exports.Skeleton=xn;exports.Space=Tn;exports.Spin=jt;exports.Table=vn;exports.TableTransfer=$n;exports.Tabs=bn;exports.Tag=En;exports.TextArea=fn;exports.Toolbar=Sn;exports.Tooltip=Cn;exports.Transfer=An;exports.Upload=wn;
94
+ `,te=e=>{const[t]=l.Form.useForm(),r=e.form||t;return o.jsxs(o.Fragment,{children:[o.jsx("style",{children:kn}),o.jsx(l.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})]})};te.Item=l.Form.Item;te.List=l.Form.List;te.useForm=l.Form.useForm;te.useWatch=l.Form.useWatch;te.useFormInstance=l.Form.useFormInstance;const Ot=e=>o.jsx(l.Row,{...e,children:e.children}),kt=e=>o.jsx(l.Col,{...e,children:e.children}),Tn=e=>o.jsx(l.Space,{...e,children:e.children}),Tt=e=>o.jsx(l.Card,{...e}),En=e=>o.jsx(l.Tag,{...e});var Nn={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"},Rn={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"}`}},zn={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 Mn={es:Nn,en:Rn,pt:zn},_n=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:n=!0,editable:s=!1,onEventClick:a,onDateSelect:c,renderEventContent:u,localeCode:d="es"})=>{const i=e;function f(p){a&&a({id:p.event.id,title:p.event.title,start:p.event.start,end:p.event.end??void 0,allDay:p.event.allDay})}function h(p){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(zt,{plugins:[Mt,_t,Dt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:n,editable:s,events:i,eventContent:u??g,eventClick:f,select:h,locale:Mn[d||"es"]})})},Dn={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}},Hn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","image","color","background","align"],In=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:n=Dn,formats:s=Hn,theme:a="snow",height:c="200px",width:u="100%",maxHeight:d="400px",minHeight:i="100px",autoResize:f=!1,className:h="",...g})=>{const p=D.useRef(null),S=D.useRef(null);D.useEffect(()=>{if(f&&p.current&&S.current){const H=p.current.getEditor(),I=S.current,M=()=>{const m=I.querySelector(".ql-editor");if(m){const j=m.scrollHeight,$=typeof i=="number"?i:parseInt(i),w=typeof d=="number"?d:parseInt(d),P=Math.min(Math.max(j+42,$),w);I.style.height=`${P}px`}};return H.on("text-change",M),M(),()=>{H.off("text-change",M)}}},[f,d,i]);const y={width:typeof u=="number"?`${u}px`:u,height:f?"auto":typeof c=="number"?`${c}px`:c,minHeight:typeof i=="number"?`${i}px`:i,maxHeight:f?typeof d=="number"?`${d}px`:d:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...g.style},k={height:"100%",display:"flex",flexDirection:"column"};return o.jsx("div",{ref:S,className:`custom-rich-text-editor ${f?"auto-resize":"fixed-height"} ${h}`,style:y,children:o.jsx(Ht,{ref:p,theme:a,value:e,onChange:t,modules:n,formats:s,placeholder:r,style:k,...g})})},ce=e=>o.jsx(l.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});ce.Item=e=>o.jsx(l.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});ce.SubMenu=e=>o.jsx(l.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});ce.ItemGroup=l.Menu.ItemGroup;ce.Divider=l.Menu.Divider;const Et=({className:e,children:t,items:r,menu:n,...s})=>{const a=r?{items:r}:n;return o.jsx(l.Dropdown,{className:`custom-dropdown ${e||""}`,menu:a,...s,children:t})};Et.Button=e=>o.jsx(l.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Ln}=l.Typography,Fn=({available:e,selected:t,onChange:r,availableTitle:n="Disponibles",selectedTitle:s="Seleccionados",emptyDescription:a="Arrastra los elementos aquí"})=>{const c=d=>{const{source:i,destination:f}=d;if(f&&!(i.droppableId===f.droppableId&&i.index===f.index))if(i.droppableId===f.droppableId){const h=i.droppableId==="disponibles"?[...e]:[...t],[g]=h.splice(i.index,1);h.splice(f.index,0,g),i.droppableId==="disponibles"?r(h,t):r(e,h)}else{const h=i.droppableId==="disponibles"?[...e]:[...t],g=f.droppableId==="disponibles"?[...e]:[...t],[p]=h.splice(i.index,1);g.splice(f.index,0,p),i.droppableId==="disponibles"?r(h,g):r(g,h)}},u=(d,i,f)=>o.jsxs(kt,{span:12,children:[o.jsx(Ln,{level:4,style:{marginBottom:16,fontSize:14},children:i}),o.jsx(ge.Droppable,{droppableId:d,children:(h,g)=>o.jsxs("div",{ref:h.innerRef,...h.droppableProps,style:{minHeight:300,background:g.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${g.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[f.length===0?o.jsx(l.Empty,{description:a,style:{opacity:.3}}):f.map((p,S)=>o.jsx(ge.Draggable,{draggableId:p.id,index:S,children:(y,k)=>o.jsx("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:{marginBottom:8,cursor:k.isDragging?"grabbing":"grab",opacity:k.isDragging?.8:1,transform:k.isDragging?"rotate(3deg)":"none",...y.draggableProps.style},children:o.jsx(Tt,{size:"small",style:{boxShadow:k.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(ge.DragDropContext,{onDragEnd:c,children:o.jsxs(Ot,{gutter:16,style:{margin:"24px 0"},children:[u("disponibles",n,e),u("seleccionados",s,t)]})})},Bn=({items:e,defaultActiveKey:t,activeKey:r,onChange:n,accordion:s=!1,bordered:a=!0,collapsible:c="header",expandIcon:u,expandIconPosition:d="start",ghost:i=!1,size:f="middle",className:h,style:g})=>{const S={items:e.map(y=>({key:y.key,label:y.header,children:y.children,disabled:y.disabled,showArrow:y.showArrow,extra:y.extra,className:y.className,style:y.style})),defaultActiveKey:t,activeKey:r,onChange:n,accordion:s,bordered:a,collapsible:c,expandIcon:u,expandIconPosition:d,ghost:i,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,{...S})})},An=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:s,onSearch:a,onScroll:c,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:i=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:S,render:y,children:k,showSelectAll:H=!0,selectAllLabels:I,oneWay:M=!1,pagination:m=!1,status:j,locale:$,remotePagination:w,onPageChange:P})=>{const re=e.map(C=>({key:C.key,title:C.title,description:C.description,disabled:C.disabled||!1,chosen:C.chosen||!1})),O=n?(C,F,de)=>n(C,F,de):void 0,W=s?(C,F)=>s(C,F):void 0,ne=a?(C,F)=>a(C,F):void 0,x=c?(C,F)=>c(C,F):void 0,L=["hp-transfer",p].filter(Boolean).join(" "),X=!!w&&w.position!=="none",Z={dataSource:re,targetKeys:t,selectedKeys:r,onChange:O,onSelectChange:W,onSearch:ne,onScroll:x,titles:u,operations:d,showSearch:i,filterOption:f?(C,F)=>f(C,F):void 0,disabled:h,listStyle:g,className:L,render:y||(C=>C.title),showSelectAll:H,selectAllLabels:I,oneWay:M,pagination:X?!1:m,status:j,locale:$,footer:X?({direction:C})=>{const F=(w==null?void 0:w.position)??"left";if(!(F==="both"||F==="left"&&C==="left"||F==="right"&&C==="right"))return null;const b=C==="left"?w==null?void 0:w.left:w==null?void 0:w.right;if(!b)return null;const{page:N,pageSize:G,total:Y}=b,q=(w==null?void 0:w.simple)??!0,U=(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:N,total:Y,pageSize:G,showSizeChanger:U,pageSizeOptions:["5","10","20","50"],onChange:(oe,se)=>{P==null||P(C,oe,se)}})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...S},children:k?k(Z):o.jsx(l.Transfer,{...Z})})},$n=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:n,onSelectChange:s,onSearch:a,onScroll:c,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:i=!1,filterOption:f,disabled:h=!1,listStyle:g,className:p,style:S,selectAllLabels:y,oneWay:k=!1,status:H,locale:I,leftColumns:M,rightColumns:m,rowKey:j="key",tableSize:$="small",tableScroll:w,showDefaultHeaderActions:P=!0,headerActions:re=[],remotePagination:O,onPageChange:W})=>{const ne=(e??[]).map(b=>({...b,key:b.key,title:b.title||b.key||String(b.key),description:b.description,disabled:b.disabled||!1,chosen:b.chosen||!1})),x=n?(b,N,G)=>n(b,N,G):void 0,L=s?(b,N)=>s(b,N):void 0,X=a?(b,N)=>a(b,N):void 0,Z=c?(b,N)=>c(b,N):void 0,C=["hp-transfer","hp-table-transfer",p].filter(Boolean).join(" "),F=!!O&&(O.position??"left")!=="none",de={dataSource:ne,targetKeys:t,selectedKeys:r,onChange:x,onSelectChange:L,onSearch:X,onScroll:Z,titles:u,operations:d,showSearch:i,filterOption:f,disabled:h,listStyle:g,className:C,showSelectAll:P,selectAllLabels:y,oneWay:k,pagination:!1,status:H,locale:I,footer:F?({direction:b})=>{const N=(O==null?void 0:O.position)??"left";if(!(N==="both"||N==="left"&&b==="left"||N==="right"&&b==="right"))return null;const Y=b==="left"?O==null?void 0:O.left:O==null?void 0:O.right;if(!Y)return null;const{page:q,pageSize:U,total:oe}=Y,se=(O==null?void 0:O.simple)??!0,me=(O==null?void 0:O.showSizeChanger)??!0;return o.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:o.jsx(l.Pagination,{size:"small",simple:se,current:q,total:oe,pageSize:U,showSizeChanger:me,pageSizeOptions:["5","10","20","50"],onChange:(T,B)=>W==null?void 0:W(b,T,B)})})}:void 0};return o.jsx("div",{style:{marginBottom:12,...S},children:o.jsx(l.Transfer,{...de,children:({direction:b,filteredItems:N,onItemSelect:G,onItemSelectAll:Y,selectedKeys:q,disabled:U})=>{const oe=b==="left"?M:m??M,se={getCheckboxProps:T=>({disabled:U||T.disabled}),selectedRowKeys:q,onSelect:(T,B)=>{G(T.key,B)},hideSelectAll:!1,onChange:T=>{Y(T,"replace")},selections:(()=>{const T=[];return P&&T.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const B=N.map(Q=>Q.key);Y(B,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const B=N.map(pe=>pe.key),Q=q,Rt=B.filter(pe=>!Q.includes(pe));Y(Rt,"replace")}}),re.forEach(B=>{T.push({key:B.key,text:B.label,onSelect:()=>{var Q;(Q=B.onClick)==null||Q.call(B,b,q)}})}),T.length>0?T:!1})()},me=typeof j=="function"?j:T=>T[j];return o.jsx(l.Table,{showHeader:!0,size:$,columns:oe,dataSource:N,rowKey:me,pagination:!1,rowSelection:se,style:{pointerEvents:U?"none":void 0,height:"100%"},onRow:T=>({onClick:()=>{if(U||T.disabled)return;const B=!q.includes(T.key);G(T.key,B)}}),scroll:w})}})})},Nt=({count:e=0,overflowCount:t=99,dot:r=!1,color:n,size:s="default",icon:a,useButton:c=!1,buttonType:u="text",buttonShape:d="circle",onClick:i,style:f,containerStyle:h,showZero:g=!1,offset:p,className:S,disabled:y=!1})=>{const k=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},H=a||o.jsx(Te,{style:{fontSize:k(),...h}}),I=c?o.jsx(l.Button,{type:u,icon:H,shape:d,onClick:i,style:h,disabled:y,className:S}):o.jsx("span",{onClick:i,style:{cursor:i?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...h},className:S,children:H});return o.jsx(l.Badge,{count:e,overflowCount:t,dot:r,color:n,showZero:g,offset:p,style:f,children:I})},Pn=({count:e,notifications:t=[],icon:r,size:n="default",useButton:s=!1,buttonType:a="text",onNotificationClick:c,onLoadMore:u,hasMore:d=!1,loading:i=!1,renderNotification:f,loadMoreText:h="Cargar más",emptyText:g="No hay notificaciones",popoverWidth:p=380,overflowCount:S=99,badgeColor:y,showZero:k=!1,containerStyle:H,popoverTitle:I="Notificaciones",onOpenChange:M,headerAction:m,maxHeight:j=400,placement:$="bottomRight"})=>{const[w,P]=D.useState(!1),re=x=>{P(x),M==null||M(x)},O=x=>{c==null||c(x)},W=x=>o.jsxs("div",{style:{padding:"12px",cursor:x.actions?"default":"pointer",backgroundColor:x.read?"transparent":"#f0f7ff",borderRadius:"4px",transition:"background-color 0.3s",width:"100%",boxSizing:"border-box"},onMouseEnter:L=>{L.currentTarget.style.backgroundColor=x.read?"#fafafa":"#e6f4ff"},onMouseLeave:L=>{L.currentTarget.style.backgroundColor=x.read?"transparent":"#f0f7ff"},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[o.jsx("span",{style:{fontWeight:x.read?400:600,fontSize:"14px",color:x.read?"#595959":"#262626"},children:x.title}),!x.read&&o.jsx("span",{style:{width:"8px",height:"8px",backgroundColor:"#1890ff",borderRadius:"50%",marginLeft:"8px",flexShrink:0}})]}),x.description&&o.jsx("div",{style:{fontSize:"13px",color:"#8c8c8c",marginBottom:x.actions?"8px":"4px",lineHeight:"1.4"},children:x.description}),x.timestamp&&o.jsx("div",{style:{fontSize:"12px",color:"#bfbfbf",marginBottom:x.actions?"8px":"0"},children:x.timestamp}),x.actions&&x.actions.length>0&&o.jsx(l.Space,{size:"small",style:{marginTop:"8px"},children:x.actions.map((L,X)=>o.jsx(l.Button,{type:L.type||"default",size:L.size||"small",icon:L.icon,danger:L.danger,disabled:L.disabled,onClick:Z=>{Z.stopPropagation(),L.onClick(x)},children:L.label},X))})]}),ne=o.jsxs("div",{style:{width:p},children:[m&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[o.jsx("span",{style:{fontWeight:600,fontSize:"14px"},children:I}),m]}),o.jsx(l.Divider,{style:{margin:"8px 0"}})]}),o.jsx("div",{style:{maxHeight:j,overflowY:"auto"},children:t.length===0?o.jsx(l.Empty,{description:g,image:l.Empty.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"}}):o.jsx(l.List,{dataSource:t,renderItem:x=>o.jsx(l.List.Item,{style:{padding:0,border:"none",marginBottom:"4px",width:"100%"},onClick:()=>O(x),children:f?f(x):W(x)})})}),d&&t.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(l.Divider,{style:{margin:"8px 0"}}),o.jsx("div",{style:{textAlign:"center",padding:"8px 0"},children:o.jsx(V,{text:h,onClick:u||(()=>{}),loading:i,icon:i?o.jsx(gt,{}):void 0,style:{width:"100%"}})})]})]});return o.jsx(l.Popover,{content:ne,title:m?null:I,trigger:"click",open:w,onOpenChange:re,placement:$,overlayStyle:{maxWidth:p+48},children:o.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:o.jsx(Nt,{count:e!==void 0?e:t.filter(x=>!x.read).length,icon:r||o.jsx(Te,{}),size:n,useButton:s,buttonType:a,overflowCount:S,color:y,showZero:k,containerStyle:H})})})},Vn=e=>o.jsx(l.Empty,{...e}),Yn=({className:e,style:t,...r},n)=>o.jsx(l.List,{ref:n,className:`${e}`,style:t,...r}),_e=D.forwardRef(Yn);_e.Item=l.List.Item;_e.ItemMeta=l.List.Item.Meta;const qn={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"},Wn=({children:e,customTokens:t={}})=>{const r={...qn,...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},Divider:{fontSize:r.FONT_SIZE,colorText:r.TEXT_COLOR,colorTextBase:r.TEXT_COLOR,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})})},Gn={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=Bn;exports.Alert=Lt;exports.Button=V;exports.Calendar=_n;exports.Card=Tt;exports.CheckBox=Ue;exports.ClearOutlined=le;exports.CloseOutlined=ft;exports.Col=kt;exports.CustomFilterDrawer=jn;exports.CustomFilterDrawerHp=On;exports.DatePicker=fe;exports.DeleteOutlined=ht;exports.Divider=Zt;exports.DragAndDrop=Fn;exports.Drawer=Qt;exports.Dropdown=Et;exports.EditOutlined=Ee;exports.Empty=Vn;exports.FileExcelOutlined=mt;exports.FilePdfOutlined=pt;exports.FilterOutlined=Ne;exports.FilterToolbar=mn;exports.FloatButton=Me;exports.Form=te;exports.Input=ze;exports.InputSwitch=pn;exports.LibraryThemeProvider=Wn;exports.List=_e;exports.Menu=ce;exports.Message=Gn;exports.Modal=Ct;exports.Notification=gn;exports.NotificationBadge=Nt;exports.NotificationDropdown=Pn;exports.NumericInput=bt;exports.Password=un;exports.PlusOutlined=Re;exports.Radio=wt;exports.RadioGroup=yn;exports.RichTextEditor=In;exports.Row=Ot;exports.Search=hn;exports.SearchOutlined=xt;exports.Select=St;exports.Skeleton=xn;exports.Space=Tn;exports.Spin=jt;exports.Table=vn;exports.TableTransfer=$n;exports.Tabs=bn;exports.Tag=En;exports.TextArea=fn;exports.Toolbar=Sn;exports.Tooltip=Cn;exports.Transfer=An;exports.Upload=wn;
@@ -1086,7 +1086,7 @@ function ln() {
1086
1086
  var cn = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
1087
1087
  Mt(ze.primary);
1088
1088
  var _ = /* @__PURE__ */ b.forwardRef(function(e, t) {
1089
- var r = e.className, n = e.icon, a = e.spin, i = e.rotate, l = e.tabIndex, d = e.onClick, c = e.twoToneColor, s = wt(e, cn), u = b.useContext(St), f = u.prefixCls, p = f === void 0 ? "anticon" : f, m = u.rootClassName, w = Ir(m, p, B(B({}, "".concat(p, "-").concat(n.name), !!n.name), "".concat(p, "-spin"), !!a || n.name === "loading"), r), y = l;
1089
+ var r = e.className, n = e.icon, a = e.spin, i = e.rotate, l = e.tabIndex, d = e.onClick, c = e.twoToneColor, s = wt(e, cn), u = b.useContext(St), f = u.prefixCls, p = f === void 0 ? "anticon" : f, m = u.rootClassName, S = Ir(m, p, B(B({}, "".concat(p, "-").concat(n.name), !!n.name), "".concat(p, "-spin"), !!a || n.name === "loading"), r), y = l;
1090
1090
  y === void 0 && d && (y = -1);
1091
1091
  var T = i ? {
1092
1092
  msTransform: "rotate(".concat(i, "deg)"),
@@ -1099,7 +1099,7 @@ var _ = /* @__PURE__ */ b.forwardRef(function(e, t) {
1099
1099
  ref: t,
1100
1100
  tabIndex: y,
1101
1101
  onClick: d,
1102
- className: w
1102
+ className: S
1103
1103
  }), /* @__PURE__ */ b.createElement(oe, {
1104
1104
  icon: n,
1105
1105
  primaryColor: M,
@@ -1330,19 +1330,19 @@ const wo = (e) => /* @__PURE__ */ o(
1330
1330
  extra: f,
1331
1331
  translations: p = {}
1332
1332
  }) => {
1333
- const [m, w] = gt(
1333
+ const [m, S] = gt(
1334
1334
  () => t || c || {}
1335
1335
  );
1336
1336
  Ae(() => {
1337
- t && w(t);
1337
+ t && S(t);
1338
1338
  }, [t]);
1339
1339
  const y = (h, O) => {
1340
1340
  const F = { ...m, [h]: O };
1341
- w(F), u == null || u(F);
1341
+ S(F), u == null || u(F);
1342
1342
  }, T = () => {
1343
1343
  r(m);
1344
1344
  }, I = () => {
1345
- w({}), n == null || n();
1345
+ S({}), n == null || n();
1346
1346
  }, M = ((h) => h <= 2 ? 12 : h <= 3 ? 8 : h <= 4 ? 6 : 4)(e.length);
1347
1347
  return /* @__PURE__ */ g(
1348
1348
  "div",
@@ -1708,13 +1708,33 @@ const zo = (e) => /* @__PURE__ */ o(De.Group, { ...e }), Ro = ({ loadingText: e,
1708
1708
  }) => {
1709
1709
  const i = t == null ? void 0 : t.filter((c) => c ? Object.values(c).some(
1710
1710
  (u) => u != null && u !== ""
1711
- ) : !1), l = e == null ? void 0 : e.map((c, s) => ({
1712
- ...c,
1713
- key: c.key || s,
1714
- title: typeof c.title == "string" ? /* @__PURE__ */ o("span", { style: { fontSize: "var(--font-size-medium)" }, children: c.title }) : c.title
1715
- // Estilo para los títulos si son cadenas
1716
- // Solo mantener el render personalizado si existe, sin agregar uno por defecto
1717
- })), d = r ? {
1711
+ ) : !1), l = e == null ? void 0 : e.map((c, s) => {
1712
+ const u = {
1713
+ ...c,
1714
+ key: c.key || s,
1715
+ title: typeof c.title == "string" ? /* @__PURE__ */ o("span", { style: { fontSize: "var(--font-size-medium)" }, children: c.title }) : c.title
1716
+ };
1717
+ if (c.width === void 0) {
1718
+ const f = c.onCell;
1719
+ return {
1720
+ ...u,
1721
+ onCell: (p, m) => {
1722
+ var S;
1723
+ return {
1724
+ ...f ? f(p, m) : {},
1725
+ style: {
1726
+ ...f ? (S = f(p, m)) == null ? void 0 : S.style : {},
1727
+ maxWidth: 200,
1728
+ whiteSpace: "normal",
1729
+ wordWrap: "break-word",
1730
+ wordBreak: "break-word"
1731
+ }
1732
+ };
1733
+ }
1734
+ };
1735
+ }
1736
+ return u;
1737
+ }), d = r ? {
1718
1738
  ...r,
1719
1739
  showTotal: (c, s) => `${s[1] - s[0] + 1} de ${c} registros`,
1720
1740
  // Mostrar rango actual sobre el total
@@ -1759,14 +1779,7 @@ const zo = (e) => /* @__PURE__ */ o(De.Group, { ...e }), Ro = ({ loadingText: e,
1759
1779
  alignItems: "center",
1760
1780
  zIndex: 10
1761
1781
  },
1762
- children: /* @__PURE__ */ o(
1763
- qn,
1764
- {
1765
- spinning: !0,
1766
- spinType: "helppeople",
1767
- size: "small"
1768
- }
1769
- )
1782
+ children: /* @__PURE__ */ o(qn, { spinning: !0, spinType: "helppeople", size: "small" })
1770
1783
  }
1771
1784
  )
1772
1785
  ] });
@@ -2330,13 +2343,13 @@ const to = {
2330
2343
  className: f = "",
2331
2344
  ...p
2332
2345
  }) => {
2333
- const m = We(null), w = We(null);
2346
+ const m = We(null), S = We(null);
2334
2347
  Ae(() => {
2335
- if (u && m.current && w.current) {
2336
- const I = m.current.getEditor(), D = w.current, M = () => {
2348
+ if (u && m.current && S.current) {
2349
+ const I = m.current.getEditor(), D = S.current, M = () => {
2337
2350
  const h = D.querySelector(".ql-editor");
2338
2351
  if (h) {
2339
- const O = h.scrollHeight, F = typeof s == "number" ? s : parseInt(s), C = typeof c == "number" ? c : parseInt(c), P = Math.min(Math.max(O + 42, F), C);
2352
+ const O = h.scrollHeight, F = typeof s == "number" ? s : parseInt(s), w = typeof c == "number" ? c : parseInt(c), P = Math.min(Math.max(O + 42, F), w);
2340
2353
  D.style.height = `${P}px`;
2341
2354
  }
2342
2355
  };
@@ -2364,7 +2377,7 @@ const to = {
2364
2377
  return /* @__PURE__ */ o(
2365
2378
  "div",
2366
2379
  {
2367
- ref: w,
2380
+ ref: S,
2368
2381
  className: `custom-rich-text-editor ${u ? "auto-resize" : "fixed-height"} ${f}`,
2369
2382
  style: y,
2370
2383
  children: /* @__PURE__ */ o(
@@ -2463,7 +2476,7 @@ const { Title: ao } = Qt, jo = ({
2463
2476
  description: i,
2464
2477
  style: { opacity: 0.3 }
2465
2478
  }
2466
- ) : u.map((m, w) => /* @__PURE__ */ o(ur, { draggableId: m.id, index: w, children: (y, T) => /* @__PURE__ */ o(
2479
+ ) : u.map((m, S) => /* @__PURE__ */ o(ur, { draggableId: m.id, index: S, children: (y, T) => /* @__PURE__ */ o(
2467
2480
  "div",
2468
2481
  {
2469
2482
  ref: y.innerRef,
@@ -2513,7 +2526,7 @@ const { Title: ao } = Qt, jo = ({
2513
2526
  className: f,
2514
2527
  style: p
2515
2528
  }) => {
2516
- const w = {
2529
+ const S = {
2517
2530
  items: e.map((y) => ({
2518
2531
  key: y.key,
2519
2532
  label: y.header,
@@ -2547,7 +2560,7 @@ const { Title: ao } = Qt, jo = ({
2547
2560
  borderRadius: 6,
2548
2561
  marginBottom: 12
2549
2562
  },
2550
- children: /* @__PURE__ */ o(Jt, { ...w })
2563
+ children: /* @__PURE__ */ o(Jt, { ...S })
2551
2564
  }
2552
2565
  );
2553
2566
  }, Yo = ({
@@ -2565,7 +2578,7 @@ const { Title: ao } = Qt, jo = ({
2565
2578
  disabled: f = !1,
2566
2579
  listStyle: p,
2567
2580
  className: m,
2568
- style: w,
2581
+ style: S,
2569
2582
  render: y,
2570
2583
  children: T,
2571
2584
  showSelectAll: I = !0,
@@ -2576,16 +2589,16 @@ const { Title: ao } = Qt, jo = ({
2576
2589
  status: O,
2577
2590
  locale: F,
2578
2591
  // NUEVAS
2579
- remotePagination: C,
2592
+ remotePagination: w,
2580
2593
  onPageChange: P
2581
2594
  }) => {
2582
- const ae = e.map((S) => ({
2583
- key: S.key,
2584
- title: S.title,
2585
- description: S.description,
2586
- disabled: S.disabled || !1,
2587
- chosen: S.chosen || !1
2588
- })), k = n ? (S, A, ye) => n(S, A, ye) : void 0, G = a ? (S, A) => a(S, A) : void 0, ie = i ? (S, A) => i(S, A) : void 0, v = l ? (S, A) => l(S, A) : void 0, L = ["hp-transfer", m].filter(Boolean).join(" "), Z = !!C && C.position !== "none", Q = {
2595
+ const ae = e.map((C) => ({
2596
+ key: C.key,
2597
+ title: C.title,
2598
+ description: C.description,
2599
+ disabled: C.disabled || !1,
2600
+ chosen: C.chosen || !1
2601
+ })), k = n ? (C, A, ye) => n(C, A, ye) : void 0, G = a ? (C, A) => a(C, A) : void 0, ie = i ? (C, A) => i(C, A) : void 0, v = l ? (C, A) => l(C, A) : void 0, L = ["hp-transfer", m].filter(Boolean).join(" "), Z = !!w && w.position !== "none", Q = {
2589
2602
  dataSource: ae,
2590
2603
  targetKeys: t,
2591
2604
  selectedKeys: r,
@@ -2596,11 +2609,11 @@ const { Title: ao } = Qt, jo = ({
2596
2609
  titles: d,
2597
2610
  operations: c,
2598
2611
  showSearch: s,
2599
- filterOption: u ? (S, A) => u(S, A) : void 0,
2612
+ filterOption: u ? (C, A) => u(C, A) : void 0,
2600
2613
  disabled: f,
2601
2614
  listStyle: p,
2602
2615
  className: L,
2603
- render: y || ((S) => S.title),
2616
+ render: y || ((C) => C.title),
2604
2617
  showSelectAll: I,
2605
2618
  selectAllLabels: D,
2606
2619
  oneWay: M,
@@ -2609,12 +2622,12 @@ const { Title: ao } = Qt, jo = ({
2609
2622
  status: O,
2610
2623
  locale: F,
2611
2624
  // 🔸 footer por panel con Pagination (solo si hay remotePagination)
2612
- footer: Z ? ({ direction: S }) => {
2613
- const A = (C == null ? void 0 : C.position) ?? "left";
2614
- if (!(A === "both" || A === "left" && S === "left" || A === "right" && S === "right")) return null;
2615
- const x = S === "left" ? C == null ? void 0 : C.left : C == null ? void 0 : C.right;
2625
+ footer: Z ? ({ direction: C }) => {
2626
+ const A = (w == null ? void 0 : w.position) ?? "left";
2627
+ if (!(A === "both" || A === "left" && C === "left" || A === "right" && C === "right")) return null;
2628
+ const x = C === "left" ? w == null ? void 0 : w.left : w == null ? void 0 : w.right;
2616
2629
  if (!x) return null;
2617
- const { page: z, pageSize: q, total: j } = x, V = (C == null ? void 0 : C.simple) ?? !0, U = (C == null ? void 0 : C.showSizeChanger) ?? !0;
2630
+ const { page: z, pageSize: q, total: j } = x, V = (w == null ? void 0 : w.simple) ?? !0, U = (w == null ? void 0 : w.showSizeChanger) ?? !0;
2618
2631
  return /* @__PURE__ */ o("div", { style: { padding: "6px 10px", borderTop: "1px solid #f0f0f0" }, children: /* @__PURE__ */ o(
2619
2632
  pt,
2620
2633
  {
@@ -2626,13 +2639,13 @@ const { Title: ao } = Qt, jo = ({
2626
2639
  showSizeChanger: U,
2627
2640
  pageSizeOptions: ["5", "10", "20", "50"],
2628
2641
  onChange: (se, le) => {
2629
- P == null || P(S, se, le);
2642
+ P == null || P(C, se, le);
2630
2643
  }
2631
2644
  }
2632
2645
  ) });
2633
2646
  } : void 0
2634
2647
  };
2635
- return /* @__PURE__ */ o("div", { style: { marginBottom: 12, ...w }, children: T ? T(Q) : /* @__PURE__ */ o(mt, { ...Q }) });
2648
+ return /* @__PURE__ */ o("div", { style: { marginBottom: 12, ...S }, children: T ? T(Q) : /* @__PURE__ */ o(mt, { ...Q }) });
2636
2649
  }, Wo = ({
2637
2650
  // Transfer props comunes
2638
2651
  dataSource: e = [],
@@ -2651,7 +2664,7 @@ const { Title: ao } = Qt, jo = ({
2651
2664
  disabled: f = !1,
2652
2665
  listStyle: p,
2653
2666
  className: m,
2654
- style: w,
2667
+ style: S,
2655
2668
  selectAllLabels: y,
2656
2669
  oneWay: T = !1,
2657
2670
  status: I,
@@ -2661,7 +2674,7 @@ const { Title: ao } = Qt, jo = ({
2661
2674
  rightColumns: h,
2662
2675
  rowKey: O = "key",
2663
2676
  tableSize: F = "small",
2664
- tableScroll: C,
2677
+ tableScroll: w,
2665
2678
  // Props para controlar el dropdown del header de la tabla
2666
2679
  showDefaultHeaderActions: P = !0,
2667
2680
  headerActions: ae = [],
@@ -2677,7 +2690,7 @@ const { Title: ao } = Qt, jo = ({
2677
2690
  description: x.description,
2678
2691
  disabled: x.disabled || !1,
2679
2692
  chosen: x.chosen || !1
2680
- })), v = n ? (x, z, q) => n(x, z, q) : void 0, L = a ? (x, z) => a(x, z) : void 0, Z = i ? (x, z) => i(x, z) : void 0, Q = l ? (x, z) => l(x, z) : void 0, S = [
2693
+ })), v = n ? (x, z, q) => n(x, z, q) : void 0, L = a ? (x, z) => a(x, z) : void 0, Z = i ? (x, z) => i(x, z) : void 0, Q = l ? (x, z) => l(x, z) : void 0, C = [
2681
2694
  "hp-transfer",
2682
2695
  "hp-table-transfer",
2683
2696
  m
@@ -2696,7 +2709,7 @@ const { Title: ao } = Qt, jo = ({
2696
2709
  // <- Fix #3
2697
2710
  disabled: f,
2698
2711
  listStyle: p,
2699
- className: S,
2712
+ className: C,
2700
2713
  // Controlar si mostrar el checkbox de la barra superior del Transfer
2701
2714
  showSelectAll: P,
2702
2715
  selectAllLabels: y,
@@ -2727,7 +2740,7 @@ const { Title: ao } = Qt, jo = ({
2727
2740
  ) });
2728
2741
  } : void 0
2729
2742
  };
2730
- return /* @__PURE__ */ o("div", { style: { marginBottom: 12, ...w }, children: /* @__PURE__ */ o(mt, { ...ye, children: ({
2743
+ return /* @__PURE__ */ o("div", { style: { marginBottom: 12, ...S }, children: /* @__PURE__ */ o(mt, { ...ye, children: ({
2731
2744
  direction: x,
2732
2745
  filteredItems: z,
2733
2746
  onItemSelect: q,
@@ -2807,7 +2820,7 @@ const { Title: ao } = Qt, jo = ({
2807
2820
  q(E.key, $);
2808
2821
  }
2809
2822
  }),
2810
- scroll: C
2823
+ scroll: w
2811
2824
  }
2812
2825
  );
2813
2826
  } }) });
@@ -2826,7 +2839,7 @@ const { Title: ao } = Qt, jo = ({
2826
2839
  containerStyle: f,
2827
2840
  showZero: p = !1,
2828
2841
  offset: m,
2829
- className: w,
2842
+ className: S,
2830
2843
  disabled: y = !1
2831
2844
  }) => {
2832
2845
  const I = i || /* @__PURE__ */ o(je, { style: { fontSize: (() => {
@@ -2847,7 +2860,7 @@ const { Title: ao } = Qt, jo = ({
2847
2860
  onClick: s,
2848
2861
  style: f,
2849
2862
  disabled: y,
2850
- className: w
2863
+ className: S
2851
2864
  }
2852
2865
  ) : /* @__PURE__ */ o(
2853
2866
  "span",
@@ -2860,7 +2873,7 @@ const { Title: ao } = Qt, jo = ({
2860
2873
  justifyContent: "center",
2861
2874
  ...f
2862
2875
  },
2863
- className: w,
2876
+ className: S,
2864
2877
  children: I
2865
2878
  }
2866
2879
  );
@@ -2892,7 +2905,7 @@ const { Title: ao } = Qt, jo = ({
2892
2905
  loadMoreText: f = "Cargar más",
2893
2906
  emptyText: p = "No hay notificaciones",
2894
2907
  popoverWidth: m = 380,
2895
- overflowCount: w = 99,
2908
+ overflowCount: S = 99,
2896
2909
  badgeColor: y,
2897
2910
  showZero: T = !1,
2898
2911
  containerStyle: I,
@@ -2902,7 +2915,7 @@ const { Title: ao } = Qt, jo = ({
2902
2915
  maxHeight: O = 400,
2903
2916
  placement: F = "bottomRight"
2904
2917
  }) => {
2905
- const [C, P] = gt(!1), ae = (v) => {
2918
+ const [w, P] = gt(!1), ae = (v) => {
2906
2919
  P(v), M == null || M(v);
2907
2920
  }, k = (v) => {
2908
2921
  l == null || l(v);
@@ -3068,7 +3081,7 @@ const { Title: ao } = Qt, jo = ({
3068
3081
  content: ie,
3069
3082
  title: h ? null : D,
3070
3083
  trigger: "click",
3071
- open: C,
3084
+ open: w,
3072
3085
  onOpenChange: ae,
3073
3086
  placement: F,
3074
3087
  overlayStyle: { maxWidth: m + 48 },
@@ -3080,7 +3093,7 @@ const { Title: ao } = Qt, jo = ({
3080
3093
  size: n,
3081
3094
  useButton: a,
3082
3095
  buttonType: i,
3083
- overflowCount: w,
3096
+ overflowCount: S,
3084
3097
  color: y,
3085
3098
  showZero: T,
3086
3099
  containerStyle: I
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "helppeople-ui",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Librería de componentes frontend para estilos y diseños estándar.",
5
5
  "main": "dist/my-library.cjs.js",
6
6
  "module": "dist/my-library.es.js",