helppeople-ui 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/my-library.cjs.js +5 -5
- package/dist/my-library.es.js +128 -116
- package/package.json +1 -1
package/dist/my-library.cjs.js
CHANGED
|
@@ -9,7 +9,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
11
11
|
http://jedwatson.github.io/classnames
|
|
12
|
-
*/var $e;function mr(){return $e||($e=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(i=s(i,o(u)))}return i}function o(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var u in i)t.call(i,u)&&i[u]&&(l=s(l,u));return l}function s(i,l){return l?i?i+" "+l:i+l:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(be)),be.exports}var pr=mr();const gr=hr(pr),H=Math.round;function je(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=t(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Pe=(e,t,r)=>r===0?e:e/100;function ae(e,t){const r=t||255;return e>r?r:e<0?0:e}class re{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):s("rgb")?this.fromRgbString(o):s("hsl")?this.fromHslString(o):(s("hsv")||s("hsb"))&&this.fromHsvString(o)}else if(t instanceof re)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=ae(t.r),this.g=ae(t.g),this.b=ae(t.b),this.a=typeof t.a=="number"?ae(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=t(this.r),o=t(this.g),s=t(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-t/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+t/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(t,r=50){const o=this._c(t),s=r/100,i=u=>(o[u]-this[u])*s+this[u],l={r:H(i("r")),g:H(i("g")),b:H(i("b")),a:H(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),o=this.a+r.a*(1-this.a),s=i=>H((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(t+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=H(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=H(this.getSaturation()*100),o=H(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,o){const s=this.clone();return s[t]=ae(r,o),s}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function o(s,i){return parseInt(r[s]+r[i||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:s}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const p=H(o*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,u=0;const d=t/60,c=(1-Math.abs(2*o-1))*r,m=c*(1-Math.abs(d%2-1));d>=0&&d<1?(i=c,l=m):d>=1&&d<2?(i=m,l=c):d>=2&&d<3?(l=c,u=m):d>=3&&d<4?(l=m,u=c):d>=4&&d<5?(i=m,u=c):d>=5&&d<6&&(i=c,u=m);const f=o-c/2;this.r=H((i+f)*255),this.g=H((l+f)*255),this.b=H((u+f)*255)}fromHsv({h:t,s:r,v:o,a:s}){this._h=t%360,this._s=r,this._v=o,this.a=typeof s=="number"?s:1;const i=H(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,u=Math.floor(l),d=l-u,c=H(o*(1-r)*255),m=H(o*(1-r*d)*255),f=H(o*(1-r*(1-d))*255);switch(u){case 0:this.g=f,this.b=c;break;case 1:this.r=m,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=m;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=m;break}}fromHsvString(t){const r=je(t,Pe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=je(t,Pe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=je(t,(o,s)=>s.includes("%")?H(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var ue=2,Ve=.16,yr=.05,xr=.05,vr=.15,at=5,lt=4,br=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ye(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-ue*t:Math.round(e.h)+ue*t:o=r?Math.round(e.h)+ue*t:Math.round(e.h)-ue*t,o<0?o+=360:o>=360&&(o-=360),o}function We(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-Ve*t:t===lt?o=e.s+Ve:o=e.s+yr*t,o>1&&(o=1),r&&t===at&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function qe(e,t,r){var o;return r?o=e.v+xr*t:o=e.v-vr*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function jr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new re(e),s=o.toHsv(),i=at;i>0;i-=1){var l=new re({h:Ye(s,i,!0),s:We(s,i,!0),v:qe(s,i,!0)});r.push(l)}r.push(o);for(var u=1;u<=lt;u+=1){var d=new re({h:Ye(s,u),s:We(s,u),v:qe(s,u)});r.push(d)}return t.theme==="dark"?br.map(function(c){var m=c.index,f=c.amount;return new re(t.backgroundColor||"#141414").mix(r[m],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ce=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ce.primary=Ce[5];function Cr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sr(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ge="data-rc-order",Ue="data-rc-priority",wr="rc-util-key",Se=new Map;function ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):wr}function Te(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function kr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ze(e){return Array.from((Se.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function dt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Cr())return null;var r=t.csp,o=t.prepend,s=t.priority,i=s===void 0?0:s,l=kr(o),u=l==="prependQueue",d=document.createElement("style");d.setAttribute(Ge,l),u&&i&&d.setAttribute(Ue,"".concat(i)),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;var c=Te(t),m=c.firstChild;if(o){if(u){var f=(t.styles||ze(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Ge)))return!1;var h=Number(p.getAttribute(Ue)||0);return i>=h});if(f.length)return c.insertBefore(d,f[f.length-1].nextSibling),d}c.insertBefore(d,m)}else c.appendChild(d);return d}function Or(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Te(t);return(t.styles||ze(r)).find(function(o){return o.getAttribute(ct(t))===e})}function Tr(e,t){var r=Se.get(e);if(!r||!Sr(document,r)){var o=dt("",t),s=o.parentNode;Se.set(e,s),e.removeChild(o)}}function zr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Te(r),s=ze(o),i=A(A({},r),{},{styles:s});Tr(o,i);var l=Or(t,i);if(l){var u,d;if((u=i.csp)!==null&&u!==void 0&&u.nonce&&l.nonce!==((d=i.csp)===null||d===void 0?void 0:d.nonce)){var c;l.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=dt(e,i);return m.setAttribute(ct(i),t),m}function ut(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Er(e){return ut(e)instanceof ShadowRoot}function Nr(e){return Er(e)?ut(e):null}var we={},Ee=[],Mr=function(t){Ee.push(t)};function Dr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ee.reduce(function(o,s){return s(o??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Rr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ee.reduce(function(o,s){return s(o??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Ir(){we={}}function ft(e,t,r){!t&&!we[r]&&(e(!1,r),we[r]=!0)}function pe(e,t){ft(Dr,e,t)}function _r(e,t){ft(Rr,e,t)}pe.preMessage=Mr;pe.resetWarned=Ir;pe.noteOnce=_r;function Hr(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Fr(e,t){pe(e,"[@ant-design/icons] ".concat(t))}function Ke(e){return ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ee(e.icon)==="object"||typeof e.icon=="function")}function Xe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var o=e[r];switch(r){case"class":t.className=o,delete t.class;break;default:delete t[r],t[Hr(r)]=o}return t},{})}function ke(e,t,r){return r?k.createElement(e.tag,A(A({key:t},Xe(e.attrs)),r),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))})):k.createElement(e.tag,A({key:t},Xe(e.attrs)),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))}))}function ht(e){return jr(e)[0]}function mt(e){return e?Array.isArray(e)?e:[e]:[]}var Br=`
|
|
12
|
+
*/var $e;function mr(){return $e||($e=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(i=s(i,o(u)))}return i}function o(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var u in i)t.call(i,u)&&i[u]&&(l=s(l,u));return l}function s(i,l){return l?i?i+" "+l:i+l:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(be)),be.exports}var pr=mr();const gr=hr(pr),H=Math.round;function je(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=t(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Pe=(e,t,r)=>r===0?e:e/100;function ae(e,t){const r=t||255;return e>r?r:e<0?0:e}class re{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):s("rgb")?this.fromRgbString(o):s("hsl")?this.fromHslString(o):(s("hsv")||s("hsb"))&&this.fromHsvString(o)}else if(t instanceof re)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=ae(t.r),this.g=ae(t.g),this.b=ae(t.b),this.a=typeof t.a=="number"?ae(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=t(this.r),o=t(this.g),s=t(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-t/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+t/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(t,r=50){const o=this._c(t),s=r/100,i=u=>(o[u]-this[u])*s+this[u],l={r:H(i("r")),g:H(i("g")),b:H(i("b")),a:H(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),o=this.a+r.a*(1-this.a),s=i=>H((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(t+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=H(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=H(this.getSaturation()*100),o=H(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,o){const s=this.clone();return s[t]=ae(r,o),s}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function o(s,i){return parseInt(r[s]+r[i||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:s}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const p=H(o*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,u=0;const d=t/60,c=(1-Math.abs(2*o-1))*r,m=c*(1-Math.abs(d%2-1));d>=0&&d<1?(i=c,l=m):d>=1&&d<2?(i=m,l=c):d>=2&&d<3?(l=c,u=m):d>=3&&d<4?(l=m,u=c):d>=4&&d<5?(i=m,u=c):d>=5&&d<6&&(i=c,u=m);const f=o-c/2;this.r=H((i+f)*255),this.g=H((l+f)*255),this.b=H((u+f)*255)}fromHsv({h:t,s:r,v:o,a:s}){this._h=t%360,this._s=r,this._v=o,this.a=typeof s=="number"?s:1;const i=H(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,u=Math.floor(l),d=l-u,c=H(o*(1-r)*255),m=H(o*(1-r*d)*255),f=H(o*(1-r*(1-d))*255);switch(u){case 0:this.g=f,this.b=c;break;case 1:this.r=m,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=m;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=m;break}}fromHsvString(t){const r=je(t,Pe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=je(t,Pe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=je(t,(o,s)=>s.includes("%")?H(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var ue=2,Ve=.16,yr=.05,xr=.05,vr=.15,at=5,lt=4,br=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ye(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-ue*t:Math.round(e.h)+ue*t:o=r?Math.round(e.h)+ue*t:Math.round(e.h)-ue*t,o<0?o+=360:o>=360&&(o-=360),o}function We(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-Ve*t:t===lt?o=e.s+Ve:o=e.s+yr*t,o>1&&(o=1),r&&t===at&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function qe(e,t,r){var o;return r?o=e.v+xr*t:o=e.v-vr*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function jr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new re(e),s=o.toHsv(),i=at;i>0;i-=1){var l=new re({h:Ye(s,i,!0),s:We(s,i,!0),v:qe(s,i,!0)});r.push(l)}r.push(o);for(var u=1;u<=lt;u+=1){var d=new re({h:Ye(s,u),s:We(s,u),v:qe(s,u)});r.push(d)}return t.theme==="dark"?br.map(function(c){var m=c.index,f=c.amount;return new re(t.backgroundColor||"#141414").mix(r[m],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ce=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ce.primary=Ce[5];function Cr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sr(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ge="data-rc-order",Ue="data-rc-priority",wr="rc-util-key",Se=new Map;function ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):wr}function Te(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function kr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ze(e){return Array.from((Se.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function dt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Cr())return null;var r=t.csp,o=t.prepend,s=t.priority,i=s===void 0?0:s,l=kr(o),u=l==="prependQueue",d=document.createElement("style");d.setAttribute(Ge,l),u&&i&&d.setAttribute(Ue,"".concat(i)),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;var c=Te(t),m=c.firstChild;if(o){if(u){var f=(t.styles||ze(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Ge)))return!1;var h=Number(p.getAttribute(Ue)||0);return i>=h});if(f.length)return c.insertBefore(d,f[f.length-1].nextSibling),d}c.insertBefore(d,m)}else c.appendChild(d);return d}function Or(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Te(t);return(t.styles||ze(r)).find(function(o){return o.getAttribute(ct(t))===e})}function Tr(e,t){var r=Se.get(e);if(!r||!Sr(document,r)){var o=dt("",t),s=o.parentNode;Se.set(e,s),e.removeChild(o)}}function zr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Te(r),s=ze(o),i=A(A({},r),{},{styles:s});Tr(o,i);var l=Or(t,i);if(l){var u,d;if((u=i.csp)!==null&&u!==void 0&&u.nonce&&l.nonce!==((d=i.csp)===null||d===void 0?void 0:d.nonce)){var c;l.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=dt(e,i);return m.setAttribute(ct(i),t),m}function ut(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Nr(e){return ut(e)instanceof ShadowRoot}function Er(e){return Nr(e)?ut(e):null}var we={},Ne=[],Mr=function(t){Ne.push(t)};function Dr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ne.reduce(function(o,s){return s(o??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Rr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ne.reduce(function(o,s){return s(o??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Ir(){we={}}function ft(e,t,r){!t&&!we[r]&&(e(!1,r),we[r]=!0)}function pe(e,t){ft(Dr,e,t)}function _r(e,t){ft(Rr,e,t)}pe.preMessage=Mr;pe.resetWarned=Ir;pe.noteOnce=_r;function Hr(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Fr(e,t){pe(e,"[@ant-design/icons] ".concat(t))}function Ke(e){return ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ee(e.icon)==="object"||typeof e.icon=="function")}function Xe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var o=e[r];switch(r){case"class":t.className=o,delete t.class;break;default:delete t[r],t[Hr(r)]=o}return t},{})}function ke(e,t,r){return r?k.createElement(e.tag,A(A({key:t},Xe(e.attrs)),r),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))})):k.createElement(e.tag,A({key:t},Xe(e.attrs)),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))}))}function ht(e){return jr(e)[0]}function mt(e){return e?Array.isArray(e)?e:[e]:[]}var Br=`
|
|
13
13
|
.anticon {
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
@@ -66,7 +66,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66
66
|
}
|
|
67
67
|
`,Lr=function(t){var r=k.useContext(ot),o=r.csp,s=r.prefixCls,i=r.layer,l=Br;s&&(l=l.replace(/anticon/g,s)),i&&(l="@layer ".concat(i,` {
|
|
68
68
|
`).concat(l,`
|
|
69
|
-
}`)),k.useEffect(function(){var u=t.current,d=Nr(u);zr(l,"@ant-design-icons",{prepend:!i,csp:o,attachTo:d})},[])},Ar=["icon","className","onClick","style","primaryColor","secondaryColor"],le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $r(e){var t=e.primaryColor,r=e.secondaryColor;le.primaryColor=t,le.secondaryColor=r||ht(t),le.calculated=!!r}function Pr(){return A({},le)}var ne=function(t){var r=t.icon,o=t.className,s=t.onClick,i=t.style,l=t.primaryColor,u=t.secondaryColor,d=it(t,Ar),c=j.useRef(),m=le;if(l&&(m={primaryColor:l,secondaryColor:u||ht(l)}),Lr(c),Fr(Ke(r),"icon should be icon definiton, but got ".concat(r)),!Ke(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(m.primaryColor,m.secondaryColor)})),ke(f.icon,"svg-".concat(f.name),A(A({className:o,onClick:s,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:c}))};ne.displayName="IconReact";ne.getTwoToneColors=Pr;ne.setTwoToneColors=$r;function pt(e){var t=mt(e),r=st(t,2),o=r[0],s=r[1];return ne.setTwoToneColors({primaryColor:o,secondaryColor:s})}function Vr(){var e=ne.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Yr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];pt(Ce.primary);var B=j.forwardRef(function(e,t){var r=e.className,o=e.icon,s=e.spin,i=e.rotate,l=e.tabIndex,u=e.onClick,d=e.twoToneColor,c=it(e,Yr),m=j.useContext(ot),f=m.prefixCls,p=f===void 0?"anticon":f,h=m.rootClassName,y=gr(h,p,Y(Y({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!s||o.name==="loading"),r),x=l;x===void 0&&u&&(x=-1);var O=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,M=mt(d),D=st(M,2),$=D[0],W=D[1];return j.createElement("span",F({role:"img","aria-label":o.name},c,{ref:t,tabIndex:x,onClick:u,className:y}),j.createElement(ne,{icon:o,primaryColor:$,secondaryColor:W,style:O}))});B.displayName="AntdIcon";B.getTwoToneColor=Vr;B.setTwoToneColor=pt;var Wr={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"},qr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Wr}))},he=j.forwardRef(qr);process.env.NODE_ENV!=="production"&&(he.displayName="ArrowLeftOutlined");var Gr={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"},Ur=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Gr}))},Ne=j.forwardRef(Ur);process.env.NODE_ENV!=="production"&&(Ne.displayName="BellOutlined");var Kr={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"},Xr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Kr}))},ce=j.forwardRef(Xr);process.env.NODE_ENV!=="production"&&(ce.displayName="ClearOutlined");var Zr={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"},Qr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Zr}))},gt=j.forwardRef(Qr);process.env.NODE_ENV!=="production"&&(gt.displayName="CloseOutlined");var Jr={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"},en=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Jr}))},yt=j.forwardRef(en);process.env.NODE_ENV!=="production"&&(yt.displayName="DeleteOutlined");var tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},rn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:tn}))},Me=j.forwardRef(rn);process.env.NODE_ENV!=="production"&&(Me.displayName="EditOutlined");var nn={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"},on=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:nn}))},xt=j.forwardRef(on);process.env.NODE_ENV!=="production"&&(xt.displayName="FileExcelOutlined");var sn={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"},an=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:sn}))},vt=j.forwardRef(an);process.env.NODE_ENV!=="production"&&(vt.displayName="FilePdfOutlined");var ln={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"},cn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:ln}))},De=j.forwardRef(cn);process.env.NODE_ENV!=="production"&&(De.displayName="FilterOutlined");var dn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},un=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:dn}))},bt=j.forwardRef(un);process.env.NODE_ENV!=="production"&&(bt.displayName="InboxOutlined");var fn={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"},hn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:fn}))},jt=j.forwardRef(hn);process.env.NODE_ENV!=="production"&&(jt.displayName="LoadingOutlined");var mn={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"},pn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:mn}))},Re=j.forwardRef(pn);process.env.NODE_ENV!=="production"&&(Re.displayName="PlusOutlined");var gn={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"},yn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:gn}))},Ct=j.forwardRef(yn);process.env.NODE_ENV!=="production"&&(Ct.displayName="SaveOutlined");var xn={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"},vn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:xn}))},St=j.forwardRef(vn);process.env.NODE_ENV!=="production"&&(St.displayName="SearchOutlined");var bn={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"},jn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:bn}))},wt=j.forwardRef(jn);process.env.NODE_ENV!=="production"&&(wt.displayName="UploadOutlined");const Ie=k.forwardRef((e,t)=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[e.required&&n.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),n.jsx(a.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));Ie.displayName="CustomInput";const Cn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.Password,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),Sn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.TextArea,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),wn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:"custom-search-input-wrapper",children:[n.jsx("style",{children:`
|
|
69
|
+
}`)),k.useEffect(function(){var u=t.current,d=Er(u);zr(l,"@ant-design-icons",{prepend:!i,csp:o,attachTo:d})},[])},Ar=["icon","className","onClick","style","primaryColor","secondaryColor"],le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $r(e){var t=e.primaryColor,r=e.secondaryColor;le.primaryColor=t,le.secondaryColor=r||ht(t),le.calculated=!!r}function Pr(){return A({},le)}var ne=function(t){var r=t.icon,o=t.className,s=t.onClick,i=t.style,l=t.primaryColor,u=t.secondaryColor,d=it(t,Ar),c=j.useRef(),m=le;if(l&&(m={primaryColor:l,secondaryColor:u||ht(l)}),Lr(c),Fr(Ke(r),"icon should be icon definiton, but got ".concat(r)),!Ke(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(m.primaryColor,m.secondaryColor)})),ke(f.icon,"svg-".concat(f.name),A(A({className:o,onClick:s,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:c}))};ne.displayName="IconReact";ne.getTwoToneColors=Pr;ne.setTwoToneColors=$r;function pt(e){var t=mt(e),r=st(t,2),o=r[0],s=r[1];return ne.setTwoToneColors({primaryColor:o,secondaryColor:s})}function Vr(){var e=ne.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Yr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];pt(Ce.primary);var B=j.forwardRef(function(e,t){var r=e.className,o=e.icon,s=e.spin,i=e.rotate,l=e.tabIndex,u=e.onClick,d=e.twoToneColor,c=it(e,Yr),m=j.useContext(ot),f=m.prefixCls,p=f===void 0?"anticon":f,h=m.rootClassName,y=gr(h,p,Y(Y({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!s||o.name==="loading"),r),x=l;x===void 0&&u&&(x=-1);var O=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,M=mt(d),D=st(M,2),$=D[0],W=D[1];return j.createElement("span",F({role:"img","aria-label":o.name},c,{ref:t,tabIndex:x,onClick:u,className:y}),j.createElement(ne,{icon:o,primaryColor:$,secondaryColor:W,style:O}))});B.displayName="AntdIcon";B.getTwoToneColor=Vr;B.setTwoToneColor=pt;var Wr={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"},qr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Wr}))},he=j.forwardRef(qr);process.env.NODE_ENV!=="production"&&(he.displayName="ArrowLeftOutlined");var Gr={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"},Ur=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Gr}))},Ee=j.forwardRef(Ur);process.env.NODE_ENV!=="production"&&(Ee.displayName="BellOutlined");var Kr={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"},Xr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Kr}))},ce=j.forwardRef(Xr);process.env.NODE_ENV!=="production"&&(ce.displayName="ClearOutlined");var Zr={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"},Qr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Zr}))},gt=j.forwardRef(Qr);process.env.NODE_ENV!=="production"&&(gt.displayName="CloseOutlined");var Jr={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"},en=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Jr}))},yt=j.forwardRef(en);process.env.NODE_ENV!=="production"&&(yt.displayName="DeleteOutlined");var tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},rn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:tn}))},Me=j.forwardRef(rn);process.env.NODE_ENV!=="production"&&(Me.displayName="EditOutlined");var nn={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"},on=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:nn}))},xt=j.forwardRef(on);process.env.NODE_ENV!=="production"&&(xt.displayName="FileExcelOutlined");var sn={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"},an=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:sn}))},vt=j.forwardRef(an);process.env.NODE_ENV!=="production"&&(vt.displayName="FilePdfOutlined");var ln={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"},cn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:ln}))},De=j.forwardRef(cn);process.env.NODE_ENV!=="production"&&(De.displayName="FilterOutlined");var dn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},un=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:dn}))},bt=j.forwardRef(un);process.env.NODE_ENV!=="production"&&(bt.displayName="InboxOutlined");var fn={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"},hn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:fn}))},jt=j.forwardRef(hn);process.env.NODE_ENV!=="production"&&(jt.displayName="LoadingOutlined");var mn={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"},pn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:mn}))},Re=j.forwardRef(pn);process.env.NODE_ENV!=="production"&&(Re.displayName="PlusOutlined");var gn={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"},yn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:gn}))},Ct=j.forwardRef(yn);process.env.NODE_ENV!=="production"&&(Ct.displayName="SaveOutlined");var xn={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"},vn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:xn}))},St=j.forwardRef(vn);process.env.NODE_ENV!=="production"&&(St.displayName="SearchOutlined");var bn={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"},jn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:bn}))},wt=j.forwardRef(jn);process.env.NODE_ENV!=="production"&&(wt.displayName="UploadOutlined");const Ie=k.forwardRef((e,t)=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[e.required&&n.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),n.jsx(a.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));Ie.displayName="CustomInput";const Cn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.Password,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),Sn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.TextArea,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),wn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:"custom-search-input-wrapper",children:[n.jsx("style",{children:`
|
|
70
70
|
.custom-search-input-wrapper .ant-input-group-wrapper {
|
|
71
71
|
height: var(--input-height, 25px);
|
|
72
72
|
vertical-align: top;
|
|
@@ -90,7 +90,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
90
90
|
padding-bottom: 0;
|
|
91
91
|
box-sizing: border-box;
|
|
92
92
|
}
|
|
93
|
-
`}),e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.Search,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),kt=({label:e,required:t,...r})=>{var s;const o=i=>{const l=i.key;!/^[0-9.]$/.test(l)&&l!=="Backspace"&&i.preventDefault()};return n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.InputNumber,{...r,onKeyPress:o,style:{...r.style,width:((s=r.style)==null?void 0:s.width)??"100%"},controls:!1})]})},Ot=e=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&n.jsxs("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:[e.required&&n.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),n.jsx(a.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),Tt=({content:e,children:t,mouseEnterDelay:r=.3,mouseLeaveDelay:o=0,...s})=>n.jsx(a.Tooltip,{title:e,mouseEnterDelay:r,mouseLeaveDelay:o,...s,style:{fontSize:"var(--font-size-medium)"},children:t}),kn=({fields:e,filters:t,onFilter:r,onClearFilters:o,localeCode:s="es",actions:i=[],onAdvancedFilters:l,loading:u=!1,defaultValues:d={},activeFiltersCount:c=0,onFiltersChange:m,extra:f,translations:p={}})=>{const[h,y]=k.useState(()=>t||d||{}),x=k.useRef(null);k.useEffect(()=>{t&&y(t)},[t]);const O=(g,R)=>{const S={...h,[g]:R};y(S),m==null||m(S)},M=()=>{r(h)},D=()=>{y({}),o==null||o()},W=(g=>g<=2?12:g<=3?8:g<=4?6:4)(e.length);return n.jsxs("div",{ref:x,style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,position:"relative"},children:[n.jsxs(a.Row,{justify:"end",align:"middle",children:[f&&n.jsx(a.Col,{children:f}),n.jsx(a.Col,{style:{marginLeft:f?"0":"auto"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[i.map((g,R)=>!g.hide&&n.jsx(Tt,{content:g.tooltip,placement:"left",mouseEnterDelay:.3,mouseLeaveDelay:0,getPopupContainer:()=>x.current||document.body,children:n.jsx(G,{size:"small",icon:g.icon,onClick:g.onClick,style:{border:"none",background:"none"},loading:g.loading})},R)),l&&n.jsx(a.Badge,{count:c,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:n.jsx(G,{size:"small",icon:n.jsx(De,{}),onClick:l,style:{border:"none",background:"none"}})})]})})]}),n.jsxs(a.Row,{gutter:[8,8],children:[e.map(g=>n.jsx(a.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:n.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[g.label&&n.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:g.label}),{text:n.jsx(Ie,{placeholder:g.placeholder,value:h[g.key],onChange:R=>O(g.key,R.target.value),style:{width:"100%"}}),number:n.jsx(kt,{placeholder:g.placeholder,value:h[g.key],onChange:R=>O(g.key,R),style:{width:"100%"}}),date:n.jsx(fe,{localeCode:s,onChange:(R,S)=>O(g.key,S),style:{width:"100%"}}),range:n.jsx(fe.RangePicker,{localeCode:s,value:h[g.key]&&h[g.key][0]?[Be(h[g.key][0]),Be(h[g.key][1])]:void 0,onChange:(R,S)=>O(g.key,S),style:{width:"100%"}}),select:n.jsx(Ot,{placeholder:g.placeholder,options:g.options,value:h[g.key],mode:g.mode,allowClear:g.allowClear,showSearch:g.showSearch,optionFilterProp:g.optionFilterProp,filterOption:g.filterOption,onChange:R=>O(g.key,R),style:{width:"100%"},loading:g.isLoading,maxTagCount:"responsive"})}[g.type||"text"]]})},g.key)),n.jsx(a.Col,{xs:24,sm:12,md:W,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[n.jsx(G,{type:"primary",size:"small",onClick:M,loading:u,disabled:u,text:p.apply||"Aplicar",className:"force-white-text-button"}),n.jsx(G,{size:"small",icon:n.jsx(ce,{}),onClick:D,disabled:u})]})})]})]})},_e=({className:e,tooltip:t,...r})=>n.jsx(a.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});_e.Group=e=>n.jsx(a.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});_e.BackTop=a.FloatButton.BackTop;const On=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[n.jsx(a.Switch,{...r}),e&&n.jsxs("span",{style:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)"},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]})]}),zt=({title:e,children:t,...
|
|
93
|
+
`}),e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.Search,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),kt=({label:e,required:t,...r})=>{var s;const o=i=>{const l=i.key;!/^[0-9.]$/.test(l)&&l!=="Backspace"&&i.preventDefault()};return n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.InputNumber,{...r,onKeyPress:o,style:{...r.style,width:((s=r.style)==null?void 0:s.width)??"100%"},controls:!1})]})},Ot=e=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&n.jsxs("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:[e.required&&n.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),n.jsx(a.Select,{...e,style:{fontSize:"var(--font-size-medium)",minWidth:"160px"}})]}),Tt=({content:e,children:t,mouseEnterDelay:r=.3,mouseLeaveDelay:o=0,...s})=>n.jsx(a.Tooltip,{title:e,mouseEnterDelay:r,mouseLeaveDelay:o,...s,style:{fontSize:"var(--font-size-medium)"},children:t}),kn=({fields:e,filters:t,onFilter:r,onClearFilters:o,localeCode:s="es",actions:i=[],onAdvancedFilters:l,loading:u=!1,defaultValues:d={},activeFiltersCount:c=0,onFiltersChange:m,extra:f,translations:p={}})=>{const[h,y]=k.useState(()=>t||d||{}),x=k.useRef(null);k.useEffect(()=>{t&&y(t)},[t]);const O=(g,R)=>{const S={...h,[g]:R};y(S),m==null||m(S)},M=()=>{r(h)},D=()=>{y({}),o==null||o()},W=(g=>g<=2?12:g<=3?8:g<=4?6:4)(e.length);return n.jsxs("div",{ref:x,style:{padding:"12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,position:"relative"},children:[n.jsxs(a.Row,{justify:"end",align:"middle",children:[f&&n.jsx(a.Col,{children:f}),n.jsx(a.Col,{style:{marginLeft:f?"0":"auto"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[i.map((g,R)=>!g.hide&&n.jsx(Tt,{content:g.tooltip,placement:"left",mouseEnterDelay:.3,mouseLeaveDelay:0,getPopupContainer:()=>x.current||document.body,children:n.jsx(G,{size:"small",icon:g.icon,onClick:g.onClick,style:{border:"none",background:"none"},loading:g.loading})},R)),l&&n.jsx(a.Badge,{count:c,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:n.jsx(G,{size:"small",icon:n.jsx(De,{}),onClick:l,style:{border:"none",background:"none"}})})]})})]}),n.jsxs(a.Row,{gutter:[8,8],children:[e.map(g=>n.jsx(a.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:n.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[g.label&&n.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:g.label}),{text:n.jsx(Ie,{placeholder:g.placeholder,value:h[g.key],onChange:R=>O(g.key,R.target.value),style:{width:"100%"}}),number:n.jsx(kt,{placeholder:g.placeholder,value:h[g.key],onChange:R=>O(g.key,R),style:{width:"100%"}}),date:n.jsx(fe,{localeCode:s,onChange:(R,S)=>O(g.key,S),style:{width:"100%"}}),range:n.jsx(fe.RangePicker,{localeCode:s,value:h[g.key]&&h[g.key][0]?[Be(h[g.key][0]),Be(h[g.key][1])]:void 0,onChange:(R,S)=>O(g.key,S),style:{width:"100%"}}),select:n.jsx(Ot,{placeholder:g.placeholder,options:g.options,value:h[g.key],mode:g.mode,allowClear:g.allowClear,showSearch:g.showSearch,optionFilterProp:g.optionFilterProp,filterOption:g.filterOption,onChange:R=>O(g.key,R),style:{width:"100%"},loading:g.isLoading,maxTagCount:"responsive"})}[g.type||"text"]]})},g.key)),n.jsx(a.Col,{xs:24,sm:12,md:W,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[n.jsx(G,{type:"primary",size:"small",onClick:M,loading:u,disabled:u,text:p.apply||"Aplicar",className:"force-white-text-button"}),n.jsx(G,{size:"small",icon:n.jsx(ce,{}),onClick:D,disabled:u})]})})]})]})},_e=({className:e,tooltip:t,...r})=>n.jsx(a.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});_e.Group=e=>n.jsx(a.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});_e.BackTop=a.FloatButton.BackTop;const On=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[n.jsx(a.Switch,{...r}),e&&n.jsxs("span",{style:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)"},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]})]}),zt=({title:e,children:t,rootClassName:r,...o})=>{const s=r?`library-components-wrapper ${r}`:"library-components-wrapper";return n.jsx(a.Modal,{className:"custom-modal",title:e,rootClassName:s,...o,children:t})};["info","success","error","warning","confirm","destroyAll"].forEach(e=>{zt[e]=a.Modal[e]});const Tn={open:({type:e,message:t,description:r,duration:o=3,placement:s="topRight"})=>{a.notification[e]({message:n.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:t}),description:r&&n.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:r}),duration:o,placement:s,style:{fontSize:"var(--font-size-medium)"}})}},Nt=({label:e,...t})=>n.jsx(a.Radio,{...t,children:e});Nt.Group=e=>n.jsx(a.Radio.Group,{...e});const zn=e=>n.jsx(a.Radio.Group,{...e}),Nn=({loadingText:e,...t})=>n.jsxs("div",{style:{padding:"1rem"},children:[e&&n.jsx("p",{children:e}),n.jsx(a.Skeleton,{...t})]}),Ze=({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 n.jsxs("div",{style:{display:"inline-block",...t()},children:[n.jsx("style",{children:`
|
|
94
94
|
.helppeople-cloud-svg .svg-elem-1 {
|
|
95
95
|
stroke-dashoffset: 472.7320556640625px;
|
|
96
96
|
stroke-dasharray: 472.7320556640625px;
|
|
@@ -106,7 +106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
`}),n.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:[n.jsx("style",{type:"text/css",children:".st0{fill:none;stroke:#28285B;stroke-width:14;stroke-linecap:round;stroke-miterlimit:10;}"}),n.jsx("g",{children:n.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
|
|
109
|
-
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`})})]})]})},ge=({tip:e,spinning:t=!0,size:r="default",overlay:o=!1,spinType:s="antd",children:i,...l})=>{const u=()=>s==="helppeople"?n.jsx(Ze,{size:r}):n.jsx(a.Spin,{spinning:t,size:r,...l});return o&&t?n.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:n.jsxs("div",{style:{textAlign:"center",color:"white"},children:[u(),e&&n.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):s==="helppeople"?n.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:i?"auto":"100px"},children:[t&&n.jsxs(n.Fragment,{children:[n.jsx(Ze,{size:r}),e&&n.jsx("div",{style:{marginTop:8,fontSize:14,color:"#666"},children:e})]}),i]}):n.jsx(a.Spin,{tip:e,spinning:t,size:r,...l,children:i})},Nn=({showTotal:e,style:t,...r})=>{const o=(s,i)=>`${i[1]-i[0]+1} de ${s} registros`;return n.jsx(a.Pagination,{showTotal:e??o,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...t},...r})},Mn=({strokeColor:e,style:t,...r})=>{const o=e??"var(--primary-color)";return n.jsx(a.Progress,{strokeColor:o,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...t},...r})},Nt=({columns:e,dataSource:t,pagination:r,loading:o,scroll:s,containerClassName:i,...l})=>{const u=s?{scrollToFirstRowOnChange:!0,...s}:{x:!0,scrollToFirstRowOnChange:!0},d=t==null?void 0:t.filter(f=>f?Object.values(f).some(h=>h!=null&&h!==""):!1),c=e==null?void 0:e.map((f,p)=>{const h={...f,key:f.key||p,title:typeof f.title=="string"?n.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:f.title}):f.title};if(f.width===void 0){const y=f.onCell;return{...h,onCell:(x,O)=>{var M;return{...y?y(x,O):{},style:{...y?(M=y(x,O))==null?void 0:M.style:{},maxWidth:200,whiteSpace:"normal",wordWrap:"break-word",wordBreak:"break-word"}}}}}return h}),m=r?{...r,showTotal:(f,p)=>`${p[1]-p[0]+1} de ${f} registros`,style:{margin:0,padding:"10px 16px",borderTop:"1px solid #e0e0e0",backgroundColor:"#ffffff",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}}:!1;return n.jsxs("div",{className:`custom-table-container ${i||""}`,style:{width:"100%",overflowX:"auto",overflowY:"visible",position:"relative"},children:[n.jsx(a.Table,{...l,loading:!1,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:u,columns:c,dataSource:d,pagination:m}),o&&n.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:n.jsx(ge,{spinning:!0,spinType:"helppeople",size:"small"})})]})},Dn=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,type:s="line",showCardWrapper:i=!0,topBarContent:l,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)"},m={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"},f=n.jsx(a.Tabs,{defaultActiveKey:t,activeKey:r,onChange:o,type:s,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(p=>({key:p.key,label:n.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:p.label}),children:n.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:p.content})}))});return i?n.jsxs("div",{style:d,children:[l&&n.jsx("div",{style:m,children:l}),f]}):n.jsxs(n.Fragment,{children:[l&&n.jsx("div",{style:m,children:l}),f]})},Rn=({title:e,onBack:t,onNew:r,newButtonText:o="Nueva",backButtonText:s="Volver",newButtonLoading:i=!1,newButtonDisabled:l=!1,pageType:u="list",customButtons:d=[],hideDefaultButtons:c=!1,rightActions:m,pageHeader:f})=>{const p=()=>u==="form"?n.jsx(Ct,{}):u==="detail"?n.jsx(Me,{}):n.jsx(Re,{});return n.jsxs("div",{style:{marginBottom:"0.5rem"},children:[n.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem",padding:"1rem 1.5rem",backgroundColor:"#ffffff",borderBottom:f?"1px solid var(--border-color-light, #f0f0f0)":"1px solid #e0e0e0"},children:[n.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}),n.jsxs(a.Space,{wrap:!0,style:{alignItems:"center"},children:[d.map(h=>n.jsx(G,{type:h.type||"default",danger:h.danger,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)),!c&&n.jsxs(n.Fragment,{children:[t&&n.jsx(G,{type:"default",onClick:t,icon:n.jsx(he,{}),style:{fontSize:"var(--font-size-medium)"},text:s}),r&&n.jsx(G,{type:"primary",onClick:r,icon:p(),style:{fontSize:"var(--font-size-medium)"},text:o,loading:i,disabled:l})]}),m&&n.jsx("div",{style:{display:"inline-flex",alignItems:"center"},children:m})]})]}),f&&n.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"0.75rem",padding:"0.5rem 1.5rem",backgroundColor:"var(--background-color-light, #f5f5f5)",borderBottom:"1px solid #e0e0e0"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm, 8px)"},children:[f.onBack&&n.jsx(he,{onClick:f.onBack,style:{fontSize:"var(--font-size-large, 14px)",cursor:"pointer",color:"var(--text-color, #333)"}}),n.jsx("h3",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-large)",color:"var(--text-color)"},children:f.title})]}),f.actions&&f.actions.length>0&&n.jsx(a.Space,{wrap:!0,style:{alignItems:"center"},children:f.actions.map(h=>n.jsx(G,{type:h.type||"primary",danger:h.danger,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))})]})]})},In=({title:e,onBack:t,actions:r=[],sticky:o=!1})=>n.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"0.5rem",padding:"0.4rem 1rem",backgroundColor:"var(--background-color, #ffffff)",borderBottom:"1px solid var(--border-color, #d9d9d9)",...o?{position:"sticky",top:0,zIndex:10}:{}},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm, 8px)"},children:[t&&n.jsx(he,{onClick:t,style:{fontSize:"var(--font-size-large, 14px)",cursor:"pointer",color:"var(--text-color, #333)"}}),n.jsx("span",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold, 600)",fontSize:"var(--font-size-large, 14px)",color:"var(--text-color, #333)"},children:e})]}),r.length>0&&n.jsx(a.Space,{wrap:!0,style:{alignItems:"center"},children:r.map(s=>n.jsx(G,{type:s.type||"primary",onClick:s.onClick,icon:s.icon,text:s.text,loading:s.loading,disabled:s.disabled,style:{fontSize:"var(--font-size-medium)",...s.style}},s.key))})]}),{Option:_n}=a.Mentions,Mt=e=>{const{label:t,required:r,helppeopleSpin:o,loading:s,notFoundContent:i,...l}=e;let u=i;return s&&o&&(u=n.jsx("div",{style:{display:"flex",justifyContent:"center"},children:n.jsx(ge,{spinType:"helppeople",size:"small"})})),n.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[t&&n.jsxs("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:[r&&n.jsx("span",{style:{color:"red",marginRight:4},children:"*"}),t]}),n.jsx(a.Mentions,{loading:o?!1:s,notFoundContent:u,...l})]})};Mt.Option=_n;const Hn=({buttonText:e="Subir archivo",...t})=>n.jsx(a.Upload,{...t,children:n.jsx(a.Button,{icon:n.jsx(wt,{}),children:e})}),{Dragger:Fn}=a.Upload,Bn=({text:e="Haz clic o arrastra un archivo aquí",hint:t="Soporta archivos individuales",...r})=>n.jsxs(Fn,{...r,children:[n.jsx("p",{className:"ant-upload-drag-icon",children:n.jsx(bt,{})}),n.jsx("p",{className:"ant-upload-text",children:e}),n.jsx("p",{className:"ant-upload-hint",children:t})]}),Ln=({visible:e,title:t,fields:r,filters:o,onClose:s,onApplyFilters:i,onClearFilters:l,onChange:u,translations:d={}})=>n.jsx(a.Drawer,{title:t,placement:"right",onClose:s,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:n.jsx("div",{style:{textAlign:"right"},children:n.jsxs(a.Space,{children:[n.jsx(a.Button,{type:"primary",onClick:i,children:d.applyFilters||"Aplicar filtros"}),n.jsx(a.Tooltip,{title:d.clearFilters||"Limpiar filtros",placement:"left",children:n.jsx(a.Button,{icon:n.jsx(ce,{}),onClick:l})})]})}),footerStyle:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px"},children:n.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:r.map(c=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"calc(50% - 8px)"},children:[n.jsx("label",{style:{marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)"},children:c.label}),{text:n.jsx(a.Input,{placeholder:c.placeholder,value:o[c.key],onChange:m=>u(c.key,m.target.value)}),number:n.jsx(a.InputNumber,{placeholder:c.placeholder,value:o[c.key],onChange:m=>u(c.key,m),style:{width:"100%"}}),select:n.jsx(a.Select,{placeholder:c.placeholder,options:c.options,value:o[c.key],onChange:m=>u(c.key,m),style:{width:"100%"}})}[c.type]]},c.key))})}),An=({visible:e,title:t,filters:r,onChange:o,onClose:s,onSubmit:i,onClear:l,children:u,loading:d=!1,translations:c={}})=>n.jsx(a.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:n.jsx("div",{style:{textAlign:"right"},children:n.jsxs(a.Space,{children:[n.jsx(a.Button,{type:"primary",onClick:i,loading:d,disabled:d,style:{color:"#fff",backgroundColor:"#1b1464"},children:c.apply||"Aplicar"}),n.jsx(a.Tooltip,{title:c.clearFilters||"Limpiar filtros",children:n.jsx(a.Button,{icon:n.jsx(ce,{}),onClick:l,disabled:d,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:u({filters:r,onChange:o})}),$n=`
|
|
109
|
+
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`})})]})]})},ge=({tip:e,spinning:t=!0,size:r="default",overlay:o=!1,spinType:s="antd",children:i,...l})=>{const u=()=>s==="helppeople"?n.jsx(Ze,{size:r}):n.jsx(a.Spin,{spinning:t,size:r,...l});return o&&t?n.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:n.jsxs("div",{style:{textAlign:"center",color:"white"},children:[u(),e&&n.jsx("div",{style:{marginTop:8,fontSize:14},children:e})]})}):s==="helppeople"?n.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:i?"auto":"100px"},children:[t&&n.jsxs(n.Fragment,{children:[n.jsx(Ze,{size:r}),e&&n.jsx("div",{style:{marginTop:8,fontSize:14,color:"#666"},children:e})]}),i]}):n.jsx(a.Spin,{tip:e,spinning:t,size:r,...l,children:i})},En=({showTotal:e,style:t,...r})=>{const o=(s,i)=>`${i[1]-i[0]+1} de ${s} registros`;return n.jsx(a.Pagination,{showTotal:e??o,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...t},...r})},Mn=({strokeColor:e,style:t,...r})=>{const o=e??"var(--primary-color)";return n.jsx(a.Progress,{strokeColor:o,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...t},...r})},Et=({columns:e,dataSource:t,pagination:r,loading:o,scroll:s,containerClassName:i,...l})=>{const u=s?{scrollToFirstRowOnChange:!0,...s}:{x:!0,scrollToFirstRowOnChange:!0},d=t==null?void 0:t.filter(f=>f?Object.values(f).some(h=>h!=null&&h!==""):!1),c=e==null?void 0:e.map((f,p)=>{const h={...f,key:f.key||p,title:typeof f.title=="string"?n.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:f.title}):f.title};if(f.width===void 0){const y=f.onCell;return{...h,onCell:(x,O)=>{var M;return{...y?y(x,O):{},style:{...y?(M=y(x,O))==null?void 0:M.style:{},maxWidth:200,whiteSpace:"normal",wordWrap:"break-word",wordBreak:"break-word"}}}}}return h}),m=r?{...r,showTotal:(f,p)=>`${p[1]-p[0]+1} de ${f} registros`,style:{margin:0,padding:"10px 16px",borderTop:"1px solid #e0e0e0",backgroundColor:"#ffffff",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}}:!1;return n.jsxs("div",{className:`custom-table-container ${i||""}`,style:{width:"100%",overflowX:"auto",overflowY:"visible",position:"relative"},children:[n.jsx(a.Table,{...l,loading:!1,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",overflow:"visible"},scroll:u,columns:c,dataSource:d,pagination:m}),o&&n.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:n.jsx(ge,{spinning:!0,spinType:"helppeople",size:"small"})})]})},Dn=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,type:s="line",showCardWrapper:i=!0,topBarContent:l,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)"},m={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"},f=n.jsx(a.Tabs,{defaultActiveKey:t,activeKey:r,onChange:o,type:s,tabBarStyle:{fontFamily:"var(--font-family)",fontSize:"var(--font-size-medium)",lineHeight:"1.5"},items:e.map(p=>({key:p.key,label:n.jsx("div",{style:{fontSize:"var(--font-size-medium)"},children:p.label}),children:n.jsx("div",{style:{padding:"1rem",backgroundColor:"#ffffff"},children:p.content})}))});return i?n.jsxs("div",{style:d,children:[l&&n.jsx("div",{style:m,children:l}),f]}):n.jsxs(n.Fragment,{children:[l&&n.jsx("div",{style:m,children:l}),f]})},Rn=({title:e,onBack:t,onNew:r,newButtonText:o="Nueva",backButtonText:s="Volver",newButtonLoading:i=!1,newButtonDisabled:l=!1,pageType:u="list",customButtons:d=[],hideDefaultButtons:c=!1,rightActions:m,pageHeader:f})=>{const p=()=>u==="form"?n.jsx(Ct,{}):u==="detail"?n.jsx(Me,{}):n.jsx(Re,{});return n.jsxs("div",{style:{marginBottom:"0.5rem"},children:[n.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"1rem",padding:"1rem 1.5rem",backgroundColor:"#ffffff",borderBottom:f?"1px solid var(--border-color-light, #f0f0f0)":"1px solid #e0e0e0"},children:[n.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}),n.jsxs(a.Space,{wrap:!0,style:{alignItems:"center"},children:[d.map(h=>n.jsx(G,{type:h.type||"default",danger:h.danger,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)),!c&&n.jsxs(n.Fragment,{children:[t&&n.jsx(G,{type:"default",onClick:t,icon:n.jsx(he,{}),style:{fontSize:"var(--font-size-medium)"},text:s}),r&&n.jsx(G,{type:"primary",onClick:r,icon:p(),style:{fontSize:"var(--font-size-medium)"},text:o,loading:i,disabled:l})]}),m&&n.jsx("div",{style:{display:"inline-flex",alignItems:"center"},children:m})]})]}),f&&n.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"0.75rem",padding:"0.5rem 1.5rem",backgroundColor:"var(--background-color-light, #f5f5f5)",borderBottom:"1px solid #e0e0e0"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm, 8px)"},children:[f.onBack&&n.jsx(he,{onClick:f.onBack,style:{fontSize:"var(--font-size-large, 14px)",cursor:"pointer",color:"var(--text-color, #333)"}}),n.jsx("h3",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-large)",color:"var(--text-color)"},children:f.title})]}),f.actions&&f.actions.length>0&&n.jsx(a.Space,{wrap:!0,style:{alignItems:"center"},children:f.actions.map(h=>n.jsx(G,{type:h.type||"primary",danger:h.danger,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))})]})]})},In=({title:e,onBack:t,actions:r=[],sticky:o=!1})=>n.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:"0.5rem",padding:"0.4rem 1rem",backgroundColor:"var(--background-color, #ffffff)",borderBottom:"1px solid var(--border-color, #d9d9d9)",...o?{position:"sticky",top:0,zIndex:10}:{}},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--spacing-sm, 8px)"},children:[t&&n.jsx(he,{onClick:t,style:{fontSize:"var(--font-size-large, 14px)",cursor:"pointer",color:"var(--text-color, #333)"}}),n.jsx("span",{style:{margin:0,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold, 600)",fontSize:"var(--font-size-large, 14px)",color:"var(--text-color, #333)"},children:e})]}),r.length>0&&n.jsx(a.Space,{wrap:!0,style:{alignItems:"center"},children:r.map(s=>n.jsx(G,{type:s.type||"primary",onClick:s.onClick,icon:s.icon,text:s.text,loading:s.loading,disabled:s.disabled,style:{fontSize:"var(--font-size-medium)",...s.style}},s.key))})]}),{Option:_n}=a.Mentions,Mt=e=>{const{label:t,required:r,helppeopleSpin:o,loading:s,notFoundContent:i,...l}=e;let u=i;return s&&o&&(u=n.jsx("div",{style:{display:"flex",justifyContent:"center"},children:n.jsx(ge,{spinType:"helppeople",size:"small"})})),n.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[t&&n.jsxs("label",{style:{marginBottom:4,fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},children:[r&&n.jsx("span",{style:{color:"red",marginRight:4},children:"*"}),t]}),n.jsx(a.Mentions,{loading:o?!1:s,notFoundContent:u,...l})]})};Mt.Option=_n;const Hn=({buttonText:e="Subir archivo",...t})=>n.jsx(a.Upload,{...t,children:n.jsx(a.Button,{icon:n.jsx(wt,{}),children:e})}),{Dragger:Fn}=a.Upload,Bn=({text:e="Haz clic o arrastra un archivo aquí",hint:t="Soporta archivos individuales",...r})=>n.jsxs(Fn,{...r,children:[n.jsx("p",{className:"ant-upload-drag-icon",children:n.jsx(bt,{})}),n.jsx("p",{className:"ant-upload-text",children:e}),n.jsx("p",{className:"ant-upload-hint",children:t})]}),Ln=({visible:e,title:t,fields:r,filters:o,onClose:s,onApplyFilters:i,onClearFilters:l,onChange:u,translations:d={}})=>n.jsx(a.Drawer,{title:t,placement:"right",onClose:s,visible:e,width:400,bodyStyle:{paddingBottom:80},footer:n.jsx("div",{style:{textAlign:"right"},children:n.jsxs(a.Space,{children:[n.jsx(a.Button,{type:"primary",onClick:i,children:d.applyFilters||"Aplicar filtros"}),n.jsx(a.Tooltip,{title:d.clearFilters||"Limpiar filtros",placement:"left",children:n.jsx(a.Button,{icon:n.jsx(ce,{}),onClick:l})})]})}),footerStyle:{background:"#fff",borderTop:"1px solid #e0e0e0",padding:"10px 16px"},children:n.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:r.map(c=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"calc(50% - 8px)"},children:[n.jsx("label",{style:{marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)"},children:c.label}),{text:n.jsx(a.Input,{placeholder:c.placeholder,value:o[c.key],onChange:m=>u(c.key,m.target.value)}),number:n.jsx(a.InputNumber,{placeholder:c.placeholder,value:o[c.key],onChange:m=>u(c.key,m),style:{width:"100%"}}),select:n.jsx(a.Select,{placeholder:c.placeholder,options:c.options,value:o[c.key],onChange:m=>u(c.key,m),style:{width:"100%"}})}[c.type]]},c.key))})}),An=({visible:e,title:t,filters:r,onChange:o,onClose:s,onSubmit:i,onClear:l,children:u,loading:d=!1,translations:c={}})=>n.jsx(a.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:n.jsx("div",{style:{textAlign:"right"},children:n.jsxs(a.Space,{children:[n.jsx(a.Button,{type:"primary",onClick:i,loading:d,disabled:d,style:{color:"#fff",backgroundColor:"#1b1464"},children:c.apply||"Aplicar"}),n.jsx(a.Tooltip,{title:c.clearFilters||"Limpiar filtros",children:n.jsx(a.Button,{icon:n.jsx(ce,{}),onClick:l,disabled:d,style:{color:"#1b1464",borderColor:"#1b1464"}})})]})}),children:u({filters:r,onChange:o})}),$n=`
|
|
110
110
|
.custom-form .ant-form-item-label > label {
|
|
111
111
|
font-weight: var(--font-weight-semibold, 600) !important;
|
|
112
112
|
font-family: var(--font-family, inherit) !important;
|
|
@@ -115,4 +115,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
115
115
|
.custom-form .ant-form-item-required::before {
|
|
116
116
|
color: #ff4d4f !important;
|
|
117
117
|
}
|
|
118
|
-
`,oe=e=>{const[t]=a.Form.useForm(),r=e.form||t;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:$n}),n.jsx(a.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})]})};oe.Item=a.Form.Item;oe.List=a.Form.List;oe.useForm=a.Form.useForm;oe.useWatch=a.Form.useWatch;oe.useFormInstance=a.Form.useFormInstance;const He=e=>n.jsx(a.Row,{...e,children:e.children}),me=e=>n.jsx(a.Col,{...e,children:e.children}),Pn=e=>n.jsx(a.Space,{...e,children:e.children}),Dt=e=>n.jsx(a.Card,{...e}),Vn=e=>n.jsx(a.Tag,{...e});var Yn={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"},Wn={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"}`}},qn={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const Gn={es:Yn,en:Wn,pt:qn},Un=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:o=!0,editable:s=!1,onEventClick:i,onDateSelect:l,renderEventContent:u,localeCode:d="es"})=>{const c=e;function m(h){i&&i({id:h.event.id,title:h.event.title,start:h.event.start,end:h.event.end??void 0,allDay:h.event.allDay})}function f(h){l&&l({start:h.start,end:h.end,allDay:h.allDay})}function p(h){return n.jsxs("div",{children:[n.jsx("b",{children:h.timeText})," ",n.jsx("span",{children:h.event.title})]})}return n.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:n.jsx(Lt,{plugins:[At,$t,Pt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:o,editable:s,events:c,eventContent:u??p,eventClick:m,select:f,locale:Gn[d||"es"]})})},Kn=Qe.Quill.import("delta");function Xn(e){if(!e||typeof e!="string"||!e.includes("<table"))return e;try{const r=new DOMParser().parseFromString(e,"text/html");return r.querySelectorAll("table").forEach(s=>{var u;const i=document.createElement("div");s.querySelectorAll("tr").forEach(d=>{const c=document.createElement("p"),m=d.querySelectorAll("td, th");let f="";m.forEach(p=>{f+=p.innerHTML+" "}),c.innerHTML=f.trim(),i.appendChild(c)}),(u=s.parentNode)==null||u.replaceChild(i,s)}),r.body.innerHTML}catch(t){return console.error("Error transforming table HTML",t),e}}const Zn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","background","align"],Qn=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:o,formats:s,theme:i="snow",height:l="200px",width:u="100%",maxHeight:d="400px",minHeight:c="100px",autoResize:m=!1,className:f="",allowImages:p=!0,maxLength:h,...y})=>{const x=k.useRef(null),O=k.useRef(null),[M,D]=k.useState(0),$=k.useMemo(()=>h!==void 0?h:3e3,[h]),W=k.useMemo(()=>Xn(e),[e]),g=k.useMemo(()=>{if(s)return s;const w=[...Zn];return p&&w.push("image"),w},[s,p]),R=k.useMemo(()=>{if(o)return o;const w=[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]],C=["link"];return p&&C.push("image"),w.push(C),w.push(["clean"]),w.push([{color:[]},{background:[]}]),w.push([{align:[]}]),{toolbar:w,clipboard:{matchVisual:!1}}},[o,p]);k.useEffect(()=>{!p&&x.current&&x.current.getEditor().clipboard.addMatcher("IMG",()=>new Kn)},[p]),k.useEffect(()=>{if(!x.current||!h)return;const w=x.current.getEditor(),C=(q,v,z)=>{if(z!=="user")return;const P=w.getText().trim().length;if(D(Math.min(P,h)),P>h){const T=w.getContents(),N=[];let K=0;for(const b of T.ops)if(typeof b.insert=="string"){const E=h-K;if(E<=0)break;b.insert.length<=E?(N.push(b),K+=b.insert.length):(N.push({insert:b.insert.substring(0,E),...b.attributes?{attributes:b.attributes}:{}}),K=h)}else N.push(b);w.setContents(N),D(h)}},L=w.getText().trim();return D(Math.min(L.length,h)),w.on("text-change",C),()=>{w.off("text-change",C)}},[h]),k.useEffect(()=>{if(!h||!x.current)return;const w=x.current.getEditor(),L=w.getText().trim().length;if(D(Math.min(L,h)),L>h){const q=w.getContents(),v=[];let z=0;for(const I of q.ops)if(typeof I.insert=="string"){const P=h-z;if(P<=0)break;I.insert.length<=P?(v.push(I),z+=I.insert.length):(v.push({insert:I.insert.substring(0,P),...I.attributes?{attributes:I.attributes}:{}}),z=h)}else v.push(I);w.setContents(v),D(h),t(w.root.innerHTML)}},[W,h]),k.useEffect(()=>{if(m&&x.current&&O.current){const w=x.current.getEditor(),C=O.current,L=()=>{const q=C.querySelector(".ql-editor");if(q){const v=q.scrollHeight,z=typeof c=="number"?c:parseInt(c),I=typeof d=="number"?d:parseInt(d),P=Math.min(Math.max(v+42,z),I);C.style.height=`${P}px`}};return w.on("text-change",L),L(),()=>{w.off("text-change",L)}}},[m,d,c]);const S={width:typeof u=="number"?`${u}px`:u,height:m?"auto":typeof l=="number"?`${l}px`:l,minHeight:typeof c=="number"?`${c}px`:c,maxHeight:m?typeof d=="number"?`${d}px`:d:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...y.style},U={height:"100%",display:"flex",flexDirection:"column"};return n.jsxs("div",{ref:O,className:`custom-rich-text-editor ${m?"auto-resize":"fixed-height"} ${f}`,style:S,children:[n.jsx(Qe,{ref:x,theme:i,value:W,onChange:t,modules:R,formats:g,placeholder:r,style:U,...y}),h!==void 0&&n.jsxs("div",{className:`character-counter ${M>=$?"at-limit":M>=$*.9?"near-limit":""}`,children:[M,"/",$]})]})},de=e=>n.jsx(a.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});de.Item=e=>n.jsx(a.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});de.SubMenu=e=>n.jsx(a.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});de.ItemGroup=a.Menu.ItemGroup;de.Divider=a.Menu.Divider;const Rt=({className:e,children:t,items:r,menu:o,...s})=>{const i=r?{items:r}:o;return n.jsx(a.Dropdown,{className:`custom-dropdown ${e||""}`,menu:i,...s,children:t})};Rt.Button=e=>n.jsx(a.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Jn}=a.Typography,eo=({available:e,selected:t,onChange:r,availableTitle:o="Disponibles",selectedTitle:s="Seleccionados",emptyDescription:i="Arrastra los elementos aquí"})=>{const l=d=>{const{source:c,destination:m}=d;if(m&&!(c.droppableId===m.droppableId&&c.index===m.index))if(c.droppableId===m.droppableId){const f=c.droppableId==="disponibles"?[...e]:[...t],[p]=f.splice(c.index,1);f.splice(m.index,0,p),c.droppableId==="disponibles"?r(f,t):r(e,f)}else{const f=c.droppableId==="disponibles"?[...e]:[...t],p=m.droppableId==="disponibles"?[...e]:[...t],[h]=f.splice(c.index,1);p.splice(m.index,0,h),c.droppableId==="disponibles"?r(f,p):r(p,f)}},u=(d,c,m)=>n.jsxs(me,{span:12,children:[n.jsx(Jn,{level:4,style:{marginBottom:16,fontSize:14},children:c}),n.jsx(ve.Droppable,{droppableId:d,children:(f,p)=>n.jsxs("div",{ref:f.innerRef,...f.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[m.length===0?n.jsx(a.Empty,{description:i,style:{opacity:.3}}):m.map((h,y)=>n.jsx(ve.Draggable,{draggableId:h.id,index:y,children:(x,O)=>n.jsx("div",{ref:x.innerRef,...x.draggableProps,...x.dragHandleProps,style:{marginBottom:8,cursor:O.isDragging?"grabbing":"grab",opacity:O.isDragging?.8:1,transform:O.isDragging?"rotate(3deg)":"none",...x.draggableProps.style},children:n.jsx(Dt,{size:"small",style:{boxShadow:O.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:h.content})})},h.id)),f.placeholder]})})]});return n.jsx(ve.DragDropContext,{onDragEnd:l,children:n.jsxs(He,{gutter:16,style:{margin:"24px 0"},children:[u("disponibles",o,e),u("seleccionados",s,t)]})})},to=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,accordion:s=!1,bordered:i=!0,collapsible:l="header",expandIcon:u,expandIconPosition:d="start",ghost:c=!1,size:m="middle",className:f,style:p})=>{const y={items:e.map(x=>({key:x.key,label:x.header,children:x.children,disabled:x.disabled,showArrow:x.showArrow,extra:x.extra,className:x.className,style:x.style})),defaultActiveKey:t,activeKey:r,onChange:o,accordion:s,bordered:i,collapsible:l,expandIcon:u,expandIconPosition:d,ghost:c,size:m,className:f,style:p};return n.jsx(a.Collapse,{...y})},ro=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:y,render:x,children:O,showSelectAll:M=!0,selectAllLabels:D,oneWay:$=!1,pagination:W=!1,status:g,locale:R,remotePagination:S,onPageChange:U})=>{const w=e.map(T=>({key:T.key,title:T.title,description:T.description,disabled:T.disabled||!1,chosen:T.chosen||!1})),C=o?(T,N,K)=>o(T,N,K):void 0,L=s?(T,N)=>s(T,N):void 0,q=i?(T,N)=>i(T,N):void 0,v=l?(T,N)=>l(T,N):void 0,z=["hp-transfer",h].filter(Boolean).join(" "),I=!!S&&S.position!=="none",P={dataSource:w,targetKeys:t,selectedKeys:r,onChange:C,onSelectChange:L,onSearch:q,onScroll:v,titles:u,operations:d,showSearch:c,filterOption:m?(T,N)=>m(T,N):void 0,disabled:f,listStyle:p,className:z,render:x||(T=>T.title),showSelectAll:M,selectAllLabels:D,oneWay:$,pagination:I?!1:W,status:g,locale:R,footer:I?({direction:T})=>{const N=(S==null?void 0:S.position)??"left";if(!(N==="both"||N==="left"&&T==="left"||N==="right"&&T==="right"))return null;const b=T==="left"?S==null?void 0:S.left:S==null?void 0:S.right;if(!b)return null;const{page:E,pageSize:Q,total:X}=b,Z=(S==null?void 0:S.simple)??!0,J=(S==null?void 0:S.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:Z,current:E,total:X,pageSize:Q,showSizeChanger:J,pageSizeOptions:["5","10","20","50"],onChange:(se,ie)=>{U==null||U(T,se,ie)}})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...y},children:O?O(P):n.jsx(a.Transfer,{...P})})},no=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:y,selectAllLabels:x,oneWay:O=!1,status:M,locale:D,leftColumns:$,rightColumns:W,rowKey:g="key",tableSize:R="small",tableScroll:S,showDefaultHeaderActions:U=!0,headerActions:w=[],remotePagination:C,onPageChange:L})=>{const q=(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})),v=o?(b,E,Q)=>o(b,E,Q):void 0,z=s?(b,E)=>s(b,E):void 0,I=i?(b,E)=>i(b,E):void 0,P=l?(b,E)=>l(b,E):void 0,T=["hp-transfer","hp-table-transfer",h].filter(Boolean).join(" "),N=!!C&&(C.position??"left")!=="none",K={dataSource:q,targetKeys:t,selectedKeys:r,onChange:v,onSelectChange:z,onSearch:I,onScroll:P,titles:u,operations:d,showSearch:c,filterOption:m,disabled:f,listStyle:p,className:T,showSelectAll:U,selectAllLabels:x,oneWay:O,pagination:!1,status:M,locale:D,footer:N?({direction:b})=>{const E=(C==null?void 0:C.position)??"left";if(!(E==="both"||E==="left"&&b==="left"||E==="right"&&b==="right"))return null;const X=b==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!X)return null;const{page:Z,pageSize:J,total:se}=X,ie=(C==null?void 0:C.simple)??!0,ye=(C==null?void 0:C.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:ie,current:Z,total:se,pageSize:J,showSizeChanger:ye,pageSizeOptions:["5","10","20","50"],onChange:(_,V)=>L==null?void 0:L(b,_,V)})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...y},children:n.jsx(a.Transfer,{...K,children:({direction:b,filteredItems:E,onItemSelect:Q,onItemSelectAll:X,selectedKeys:Z,disabled:J})=>{const se=b==="left"?$:W??$,ie={getCheckboxProps:_=>({disabled:J||_.disabled}),selectedRowKeys:Z,onSelect:(_,V)=>{Q(_.key,V)},hideSelectAll:!1,onChange:_=>{X(_,"replace")},selections:(()=>{const _=[];return U&&_.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const V=E.map(te=>te.key);X(V,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const V=E.map(xe=>xe.key),te=Z,Bt=V.filter(xe=>!te.includes(xe));X(Bt,"replace")}}),w.forEach(V=>{_.push({key:V.key,text:V.label,onSelect:()=>{var te;(te=V.onClick)==null||te.call(V,b,Z)}})}),_.length>0?_:!1})()},ye=typeof g=="function"?g:_=>_[g];return n.jsx(a.Table,{showHeader:!0,size:R,columns:se,dataSource:E,rowKey:ye,pagination:!1,rowSelection:ie,style:{pointerEvents:J?"none":void 0,height:"100%"},onRow:_=>({onClick:()=>{if(J||_.disabled)return;const V=!Z.includes(_.key);Q(_.key,V)}}),scroll:S})}})})},oo=({leftPanel:e,rightPanel:t,responsive:r={xs:24,sm:12,md:12},gutter:o=[16,8],className:s,style:i})=>{const l=(d,c)=>typeof t.rowKey=="function"?t.rowKey(d):d[t.rowKey]||String(c),u=(()=>{const d=t.pagination;return d&&{size:"small",showTotal:(c,m)=>`${m[1]-m[0]+1} de ${c} registros`,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},...d}})();return n.jsx("div",{className:`custom-relation-selector ${s||""}`,style:i,children:n.jsxs(He,{gutter:o,children:[n.jsx(me,{...r,children:n.jsxs(a.Card,{title:e.title,className:`relation-selector-card ${e.cardClassName||""}`,extra:e.extra,children:[e.filters&&n.jsx("div",{className:"relation-selector-filters",children:e.filters}),e.error&&n.jsx(a.Alert,{message:e.error,type:"error",showIcon:!0,className:"relation-selector-error"}),n.jsx("div",{style:{overflowX:"auto",width:"100%",maxWidth:"100%",marginTop:10},children:n.jsx(Nt,{...e.table,showHeader:!0,scroll:{x:"max-content"},className:`relation-selector-table ${e.table.className||""}`})}),e.actionButton&&n.jsx("div",{className:"relation-selector-action",children:n.jsx(a.Button,{type:e.actionButton.type||"primary",icon:e.actionButton.icon,onClick:e.actionButton.onClick,disabled:e.actionButton.disabled,loading:e.actionButton.loading,danger:e.actionButton.danger,children:e.actionButton.text})})]})}),n.jsx(me,{...r,children:n.jsx(a.Card,{title:t.title,className:`relation-selector-card ${t.cardClassName||""}`,extra:t.extra,styles:{body:{overflow:t.loading?"hidden":"auto"}},children:t.loading?n.jsx("div",{className:"relation-selector-loading",children:n.jsx(ge,{spinning:!0,indicator:t.spinType,size:"small",spinType:"helppeople"})}):t.data.length===0?n.jsx(a.Empty,{description:t.emptyText||"No hay datos"}):n.jsx(a.List,{size:"small",className:`relation-selector-list ${t.listClassName||""}`,itemLayout:t.itemLayout||"horizontal",dataSource:t.data,pagination:u,renderItem:(d,c)=>{const m=t.renderItem(d);return n.jsx(a.List.Item,{actions:m.actions,children:n.jsx(a.List.Item.Meta,{title:m.title,description:m.description})},l(d,c))}})})})]})})},It=({count:e=0,overflowCount:t=99,dot:r=!1,color:o,size:s="default",icon:i,useButton:l=!1,buttonType:u="text",buttonShape:d="circle",onClick:c,style:m,containerStyle:f,showZero:p=!1,offset:h,className:y,disabled:x=!1})=>{const O=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},M=i||n.jsx(Ne,{style:{fontSize:O(),...f}}),D=l?n.jsx(a.Button,{type:u,icon:M,shape:d,onClick:c,style:f,disabled:x,className:y}):n.jsx("span",{onClick:c,style:{cursor:c?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...f},className:y,children:M});return n.jsx(a.Badge,{count:e,overflowCount:t,dot:r,color:o,showZero:p,offset:h,style:m,children:D})},so=({count:e,notifications:t=[],icon:r,size:o="default",useButton:s=!1,buttonType:i="text",onNotificationClick:l,onLoadMore:u,hasMore:d=!1,loading:c=!1,renderNotification:m,loadMoreText:f="Cargar más",emptyText:p="No hay notificaciones",popoverWidth:h=380,overflowCount:y=99,badgeColor:x,showZero:O=!1,containerStyle:M,popoverTitle:D="Notificaciones",onOpenChange:$,headerAction:W,maxHeight:g=400,placement:R="bottomRight"})=>{const[S,U]=k.useState(!1),w=v=>{U(v),$==null||$(v)},C=v=>{l==null||l(v)},L=v=>n.jsxs("div",{style:{padding:"12px",cursor:v.actions?"default":"pointer",backgroundColor:v.read?"transparent":"#f0f7ff",borderRadius:"4px",transition:"background-color 0.3s",width:"100%",boxSizing:"border-box"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=v.read?"#fafafa":"#e6f4ff"},onMouseLeave:z=>{z.currentTarget.style.backgroundColor=v.read?"transparent":"#f0f7ff"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[n.jsx("span",{style:{fontWeight:v.read?400:600,fontSize:"14px",color:v.read?"#595959":"#262626"},children:v.title}),!v.read&&n.jsx("span",{style:{width:"8px",height:"8px",backgroundColor:"#1890ff",borderRadius:"50%",marginLeft:"8px",flexShrink:0}})]}),v.description&&n.jsx("div",{style:{fontSize:"13px",color:"#8c8c8c",marginBottom:v.actions?"8px":"4px",lineHeight:"1.4"},children:v.description}),v.timestamp&&n.jsx("div",{style:{fontSize:"12px",color:"#bfbfbf",marginBottom:v.actions?"8px":"0"},children:v.timestamp}),v.actions&&v.actions.length>0&&n.jsx(a.Space,{size:"small",style:{marginTop:"8px"},children:v.actions.map((z,I)=>n.jsx(a.Button,{type:z.type||"default",size:z.size||"small",icon:z.icon,danger:z.danger,disabled:z.disabled,onClick:P=>{P.stopPropagation(),z.onClick(v)},children:z.label},I))})]}),q=n.jsxs("div",{style:{width:h},children:[W&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[n.jsx("span",{style:{fontWeight:600,fontSize:"14px"},children:D}),W]}),n.jsx(a.Divider,{style:{margin:"8px 0"}})]}),n.jsx("div",{style:{maxHeight:g,overflowY:"auto"},children:t.length===0?n.jsx(a.Empty,{description:p,image:a.Empty.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"}}):n.jsx(a.List,{dataSource:t,renderItem:v=>n.jsx(a.List.Item,{style:{padding:0,border:"none",marginBottom:"4px",width:"100%"},onClick:()=>C(v),children:m?m(v):L(v)})})}),d&&t.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(a.Divider,{style:{margin:"8px 0"}}),n.jsx("div",{style:{textAlign:"center",padding:"8px 0"},children:n.jsx(G,{text:f,onClick:u||(()=>{}),loading:c,icon:c?n.jsx(jt,{}):void 0,style:{width:"100%"}})})]})]});return n.jsx(a.Popover,{content:q,title:W?null:D,trigger:"click",open:S,onOpenChange:w,placement:R,overlayStyle:{maxWidth:h+48},children:n.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:n.jsx(It,{count:e!==void 0?e:t.filter(v=>!v.read).length,icon:r||n.jsx(Ne,{}),size:o,useButton:s,buttonType:i,overflowCount:y,color:x,showZero:O,containerStyle:M})})})};function _t({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,style:i,className:l,...u}){const d=e.map((c,m)=>s(c,m));return n.jsx(a.Timeline,{mode:t,reverse:r,pending:o,items:d,style:{fontFamily:"var(--font-family, inherit)",...i},className:l,...u})}const io=({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,showExpediente:i=!1,showUsuario:l=!0,showFlujo:u=!1,dateFormatter:d,style:c,className:m,...f})=>{const p=y=>{if(d)return d(y);try{return new Date(y).toLocaleString("es-ES",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return y}},h=y=>({label:n.jsx("span",{style:{fontWeight:"500"},children:p(y.Fecha)}),children:n.jsxs("div",{style:{paddingBottom:"8px"},children:[i&&y.CodigoExpediente&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Expediente:"})," ",y.CodigoExpediente]}),u&&y.DescripcionFlujo&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Flujo:"})," ",y.DescripcionFlujo]}),l&&y.NombreUsuario&&n.jsxs("div",{style:{marginBottom:"4px",color:"var(--color-text-secondary, #666)",fontSize:"var(--font-size-small, 12px)"},children:[n.jsx("strong",{children:"Usuario:"})," ",y.NombreUsuario]}),n.jsx("div",{style:{marginTop:"8px"},children:y.Mensaje})]}),color:y.color||"blue",dot:y.dot});return n.jsx(_t,{data:e,mode:t,reverse:r,pending:o,renderItem:s||h,style:c,className:m,...f})},ao=({className:e,...t})=>n.jsx("div",{className:`custom-carousel-wrapper ${e||""}`,children:n.jsx(a.Carousel,{...t})}),lo=e=>n.jsx(a.Empty,{...e}),co=({className:e,style:t,...r},o)=>n.jsx(a.List,{ref:o,className:`${e}`,style:t,...r}),Fe=k.forwardRef(co);Fe.Item=a.List.Item;Fe.ItemMeta=a.List.Item.Meta;const Ht=k.createContext(null),uo=()=>{const e=k.useContext(Ht);if(!e)throw new Error("useFeedback() debe usarse dentro de <FeedbackProvider>. Asegúrate de que FeedbackProvider envuelve tu árbol de componentes.");return e},fo=({children:e,onReady:t})=>{const{notification:r,message:o,modal:s}=a.App.useApp(),i={notification:r,message:o,modal:s},l=k.useRef(!1);return k.useEffect(()=>{!l.current&&t&&(t(i),l.current=!0)},[t,i]),n.jsx(Ht.Provider,{value:i,children:e})},Ft=({children:e,onReady:t})=>n.jsx(a.App,{children:n.jsx(fo,{onReady:t,children:e})}),ho={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"},mo=({children:e,customTokens:t={}})=>{const r={...ho,...t};return n.jsx(a.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",rowSelectedBg:"#e8e6f0",rowSelectedHoverBg:"#d9d5e8",rowHoverBg:"#f5f5f5"},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:n.jsx(Ft,{children:n.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})})})},po={open:e=>{a.message.open(e)},success:(e,t,r)=>{a.message.success(e,t,r)},error:(e,t,r)=>{a.message.error(e,t,r)},info:(e,t,r)=>{a.message.info(e,t,r)},warning:(e,t,r)=>{a.message.warning(e,t,r)},loading:(e,t,r)=>{a.message.loading(e,t,r)}},{DirectoryTree:go}=a.Tree,yo=({style:e,...t})=>n.jsx(a.Tree,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),xo=({style:e,...t})=>n.jsx(go,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),vo=({count:e,dot:t=!1,overflowCount:r=99,showZero:o=!1,size:s="default",status:i,text:l,color:u,offset:d,children:c,style:m,className:f,...p})=>n.jsx(a.Badge,{count:e,dot:t,overflowCount:r,showZero:o,size:s,status:i,text:l,color:u,offset:d,style:{fontSize:"var(--font-size-medium)",...m},className:f,...p,children:c}),bo=({src:e,width:t,height:r,alt:o="",fallback:s,placeholder:i,preview:l=!0,style:u,className:d,...c})=>n.jsx(a.Image,{src:e,width:t,height:r,alt:o,fallback:s,placeholder:i,preview:l,style:u,className:d,...c}),jo=({children:e,preview:t,items:r,fallback:o})=>n.jsx(a.Image.PreviewGroup,{preview:t,items:r,fallback:o,children:e});exports.Accordion=to;exports.Alert=Yt;exports.Avatar=Wt;exports.AvatarGroup=qt;exports.Badge=vo;exports.Button=G;exports.Calendar=Un;exports.Card=Dt;exports.Carousel=ao;exports.CheckBox=Je;exports.ClearOutlined=ce;exports.CloseOutlined=gt;exports.Col=me;exports.CustomFilterDrawer=Ln;exports.CustomFilterDrawerHp=An;exports.DatePicker=fe;exports.DeleteOutlined=yt;exports.DirectoryTree=xo;exports.Divider=ir;exports.DragAndDrop=eo;exports.Drawer=ar;exports.Dropdown=Rt;exports.EditOutlined=Me;exports.Empty=lo;exports.FeedbackProvider=Ft;exports.FileExcelOutlined=xt;exports.FilePdfOutlined=vt;exports.FilterOutlined=De;exports.FilterToolbar=kn;exports.FloatButton=_e;exports.Form=oe;exports.Image=bo;exports.ImagePreviewGroup=jo;exports.Input=Ie;exports.InputSwitch=On;exports.LibraryThemeProvider=mo;exports.List=Fe;exports.Mentions=Mt;exports.Menu=de;exports.Message=po;exports.Modal=zt;exports.Notification=Tn;exports.NotificationBadge=It;exports.NotificationDropdown=so;exports.NumericInput=kt;exports.Pagination=Nn;exports.Password=Cn;exports.PlusOutlined=Re;exports.Progress=Mn;exports.Radio=Et;exports.RadioGroup=zn;exports.RelationSelector=oo;exports.RichTextEditor=Qn;exports.Row=He;exports.Search=wn;exports.SearchOutlined=St;exports.Select=Ot;exports.Skeleton=En;exports.Space=Pn;exports.Spin=ge;exports.SubToolbar=In;exports.Table=Nt;exports.TableTransfer=no;exports.Tabs=Dn;exports.Tag=Vn;exports.TextArea=Sn;exports.Timeline=_t;exports.TimelineWithDefaults=io;exports.Toolbar=Rn;exports.Tooltip=Tt;exports.Transfer=ro;exports.Tree=yo;exports.Upload=Hn;exports.UploadDragger=Bn;exports.useFeedback=uo;
|
|
118
|
+
`,oe=e=>{const[t]=a.Form.useForm(),r=e.form||t;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:$n}),n.jsx(a.Form,{...e,className:`custom-form ${e.className||""}`,form:r,children:typeof e.children=="function"?e.children(r):e.children})]})};oe.Item=a.Form.Item;oe.List=a.Form.List;oe.useForm=a.Form.useForm;oe.useWatch=a.Form.useWatch;oe.useFormInstance=a.Form.useFormInstance;const He=e=>n.jsx(a.Row,{...e,children:e.children}),me=e=>n.jsx(a.Col,{...e,children:e.children}),Pn=e=>n.jsx(a.Space,{...e,children:e.children}),Dt=e=>n.jsx(a.Card,{...e}),Vn=e=>n.jsx(a.Tag,{...e});var Yn={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"},Wn={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"}`}},qn={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const Gn={es:Yn,en:Wn,pt:qn},Un=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:o=!0,editable:s=!1,onEventClick:i,onDateSelect:l,renderEventContent:u,localeCode:d="es"})=>{const c=e;function m(h){i&&i({id:h.event.id,title:h.event.title,start:h.event.start,end:h.event.end??void 0,allDay:h.event.allDay})}function f(h){l&&l({start:h.start,end:h.end,allDay:h.allDay})}function p(h){return n.jsxs("div",{children:[n.jsx("b",{children:h.timeText})," ",n.jsx("span",{children:h.event.title})]})}return n.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:n.jsx(Lt,{plugins:[At,$t,Pt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:o,editable:s,events:c,eventContent:u??p,eventClick:m,select:f,locale:Gn[d||"es"]})})},Kn=Qe.Quill.import("delta");function Xn(e){if(!e||typeof e!="string"||!e.includes("<table"))return e;try{const r=new DOMParser().parseFromString(e,"text/html");return r.querySelectorAll("table").forEach(s=>{var u;const i=document.createElement("div");s.querySelectorAll("tr").forEach(d=>{const c=document.createElement("p"),m=d.querySelectorAll("td, th");let f="";m.forEach(p=>{f+=p.innerHTML+" "}),c.innerHTML=f.trim(),i.appendChild(c)}),(u=s.parentNode)==null||u.replaceChild(i,s)}),r.body.innerHTML}catch(t){return console.error("Error transforming table HTML",t),e}}const Zn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","background","align"],Qn=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:o,formats:s,theme:i="snow",height:l="200px",width:u="100%",maxHeight:d="400px",minHeight:c="100px",autoResize:m=!1,className:f="",allowImages:p=!0,maxLength:h,...y})=>{const x=k.useRef(null),O=k.useRef(null),[M,D]=k.useState(0),$=k.useMemo(()=>h!==void 0?h:3e3,[h]),W=k.useMemo(()=>Xn(e),[e]),g=k.useMemo(()=>{if(s)return s;const w=[...Zn];return p&&w.push("image"),w},[s,p]),R=k.useMemo(()=>{if(o)return o;const w=[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]],C=["link"];return p&&C.push("image"),w.push(C),w.push(["clean"]),w.push([{color:[]},{background:[]}]),w.push([{align:[]}]),{toolbar:w,clipboard:{matchVisual:!1}}},[o,p]);k.useEffect(()=>{!p&&x.current&&x.current.getEditor().clipboard.addMatcher("IMG",()=>new Kn)},[p]),k.useEffect(()=>{if(!x.current||!h)return;const w=x.current.getEditor(),C=(q,v,z)=>{if(z!=="user")return;const P=w.getText().trim().length;if(D(Math.min(P,h)),P>h){const T=w.getContents(),E=[];let K=0;for(const b of T.ops)if(typeof b.insert=="string"){const N=h-K;if(N<=0)break;b.insert.length<=N?(E.push(b),K+=b.insert.length):(E.push({insert:b.insert.substring(0,N),...b.attributes?{attributes:b.attributes}:{}}),K=h)}else E.push(b);w.setContents(E),D(h)}},L=w.getText().trim();return D(Math.min(L.length,h)),w.on("text-change",C),()=>{w.off("text-change",C)}},[h]),k.useEffect(()=>{if(!h||!x.current)return;const w=x.current.getEditor(),L=w.getText().trim().length;if(D(Math.min(L,h)),L>h){const q=w.getContents(),v=[];let z=0;for(const I of q.ops)if(typeof I.insert=="string"){const P=h-z;if(P<=0)break;I.insert.length<=P?(v.push(I),z+=I.insert.length):(v.push({insert:I.insert.substring(0,P),...I.attributes?{attributes:I.attributes}:{}}),z=h)}else v.push(I);w.setContents(v),D(h),t(w.root.innerHTML)}},[W,h]),k.useEffect(()=>{if(m&&x.current&&O.current){const w=x.current.getEditor(),C=O.current,L=()=>{const q=C.querySelector(".ql-editor");if(q){const v=q.scrollHeight,z=typeof c=="number"?c:parseInt(c),I=typeof d=="number"?d:parseInt(d),P=Math.min(Math.max(v+42,z),I);C.style.height=`${P}px`}};return w.on("text-change",L),L(),()=>{w.off("text-change",L)}}},[m,d,c]);const S={width:typeof u=="number"?`${u}px`:u,height:m?"auto":typeof l=="number"?`${l}px`:l,minHeight:typeof c=="number"?`${c}px`:c,maxHeight:m?typeof d=="number"?`${d}px`:d:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...y.style},U={height:"100%",display:"flex",flexDirection:"column"};return n.jsxs("div",{ref:O,className:`custom-rich-text-editor ${m?"auto-resize":"fixed-height"} ${f}`,style:S,children:[n.jsx(Qe,{ref:x,theme:i,value:W,onChange:t,modules:R,formats:g,placeholder:r,style:U,...y}),h!==void 0&&n.jsxs("div",{className:`character-counter ${M>=$?"at-limit":M>=$*.9?"near-limit":""}`,children:[M,"/",$]})]})},de=e=>n.jsx(a.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});de.Item=e=>n.jsx(a.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});de.SubMenu=e=>n.jsx(a.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});de.ItemGroup=a.Menu.ItemGroup;de.Divider=a.Menu.Divider;const Rt=({className:e,children:t,items:r,menu:o,...s})=>{const i=r?{items:r}:o;return n.jsx(a.Dropdown,{className:`custom-dropdown ${e||""}`,menu:i,...s,children:t})};Rt.Button=e=>n.jsx(a.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Jn}=a.Typography,eo=({available:e,selected:t,onChange:r,availableTitle:o="Disponibles",selectedTitle:s="Seleccionados",emptyDescription:i="Arrastra los elementos aquí"})=>{const l=d=>{const{source:c,destination:m}=d;if(m&&!(c.droppableId===m.droppableId&&c.index===m.index))if(c.droppableId===m.droppableId){const f=c.droppableId==="disponibles"?[...e]:[...t],[p]=f.splice(c.index,1);f.splice(m.index,0,p),c.droppableId==="disponibles"?r(f,t):r(e,f)}else{const f=c.droppableId==="disponibles"?[...e]:[...t],p=m.droppableId==="disponibles"?[...e]:[...t],[h]=f.splice(c.index,1);p.splice(m.index,0,h),c.droppableId==="disponibles"?r(f,p):r(p,f)}},u=(d,c,m)=>n.jsxs(me,{span:12,children:[n.jsx(Jn,{level:4,style:{marginBottom:16,fontSize:14},children:c}),n.jsx(ve.Droppable,{droppableId:d,children:(f,p)=>n.jsxs("div",{ref:f.innerRef,...f.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[m.length===0?n.jsx(a.Empty,{description:i,style:{opacity:.3}}):m.map((h,y)=>n.jsx(ve.Draggable,{draggableId:h.id,index:y,children:(x,O)=>n.jsx("div",{ref:x.innerRef,...x.draggableProps,...x.dragHandleProps,style:{marginBottom:8,cursor:O.isDragging?"grabbing":"grab",opacity:O.isDragging?.8:1,transform:O.isDragging?"rotate(3deg)":"none",...x.draggableProps.style},children:n.jsx(Dt,{size:"small",style:{boxShadow:O.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:h.content})})},h.id)),f.placeholder]})})]});return n.jsx(ve.DragDropContext,{onDragEnd:l,children:n.jsxs(He,{gutter:16,style:{margin:"24px 0"},children:[u("disponibles",o,e),u("seleccionados",s,t)]})})},to=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,accordion:s=!1,bordered:i=!0,collapsible:l="header",expandIcon:u,expandIconPosition:d="start",ghost:c=!1,size:m="middle",className:f,style:p})=>{const y={items:e.map(x=>({key:x.key,label:x.header,children:x.children,disabled:x.disabled,showArrow:x.showArrow,extra:x.extra,className:x.className,style:x.style})),defaultActiveKey:t,activeKey:r,onChange:o,accordion:s,bordered:i,collapsible:l,expandIcon:u,expandIconPosition:d,ghost:c,size:m,className:f,style:p};return n.jsx(a.Collapse,{...y})},ro=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:y,render:x,children:O,showSelectAll:M=!0,selectAllLabels:D,oneWay:$=!1,pagination:W=!1,status:g,locale:R,remotePagination:S,onPageChange:U})=>{const w=e.map(T=>({key:T.key,title:T.title,description:T.description,disabled:T.disabled||!1,chosen:T.chosen||!1})),C=o?(T,E,K)=>o(T,E,K):void 0,L=s?(T,E)=>s(T,E):void 0,q=i?(T,E)=>i(T,E):void 0,v=l?(T,E)=>l(T,E):void 0,z=["hp-transfer",h].filter(Boolean).join(" "),I=!!S&&S.position!=="none",P={dataSource:w,targetKeys:t,selectedKeys:r,onChange:C,onSelectChange:L,onSearch:q,onScroll:v,titles:u,operations:d,showSearch:c,filterOption:m?(T,E)=>m(T,E):void 0,disabled:f,listStyle:p,className:z,render:x||(T=>T.title),showSelectAll:M,selectAllLabels:D,oneWay:$,pagination:I?!1:W,status:g,locale:R,footer:I?({direction:T})=>{const E=(S==null?void 0:S.position)??"left";if(!(E==="both"||E==="left"&&T==="left"||E==="right"&&T==="right"))return null;const b=T==="left"?S==null?void 0:S.left:S==null?void 0:S.right;if(!b)return null;const{page:N,pageSize:Q,total:X}=b,Z=(S==null?void 0:S.simple)??!0,J=(S==null?void 0:S.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:Z,current:N,total:X,pageSize:Q,showSizeChanger:J,pageSizeOptions:["5","10","20","50"],onChange:(se,ie)=>{U==null||U(T,se,ie)}})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...y},children:O?O(P):n.jsx(a.Transfer,{...P})})},no=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:u=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:y,selectAllLabels:x,oneWay:O=!1,status:M,locale:D,leftColumns:$,rightColumns:W,rowKey:g="key",tableSize:R="small",tableScroll:S,showDefaultHeaderActions:U=!0,headerActions:w=[],remotePagination:C,onPageChange:L})=>{const q=(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})),v=o?(b,N,Q)=>o(b,N,Q):void 0,z=s?(b,N)=>s(b,N):void 0,I=i?(b,N)=>i(b,N):void 0,P=l?(b,N)=>l(b,N):void 0,T=["hp-transfer","hp-table-transfer",h].filter(Boolean).join(" "),E=!!C&&(C.position??"left")!=="none",K={dataSource:q,targetKeys:t,selectedKeys:r,onChange:v,onSelectChange:z,onSearch:I,onScroll:P,titles:u,operations:d,showSearch:c,filterOption:m,disabled:f,listStyle:p,className:T,showSelectAll:U,selectAllLabels:x,oneWay:O,pagination:!1,status:M,locale:D,footer:E?({direction:b})=>{const N=(C==null?void 0:C.position)??"left";if(!(N==="both"||N==="left"&&b==="left"||N==="right"&&b==="right"))return null;const X=b==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!X)return null;const{page:Z,pageSize:J,total:se}=X,ie=(C==null?void 0:C.simple)??!0,ye=(C==null?void 0:C.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:ie,current:Z,total:se,pageSize:J,showSizeChanger:ye,pageSizeOptions:["5","10","20","50"],onChange:(_,V)=>L==null?void 0:L(b,_,V)})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...y},children:n.jsx(a.Transfer,{...K,children:({direction:b,filteredItems:N,onItemSelect:Q,onItemSelectAll:X,selectedKeys:Z,disabled:J})=>{const se=b==="left"?$:W??$,ie={getCheckboxProps:_=>({disabled:J||_.disabled}),selectedRowKeys:Z,onSelect:(_,V)=>{Q(_.key,V)},hideSelectAll:!1,onChange:_=>{X(_,"replace")},selections:(()=>{const _=[];return U&&_.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const V=N.map(te=>te.key);X(V,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const V=N.map(xe=>xe.key),te=Z,Bt=V.filter(xe=>!te.includes(xe));X(Bt,"replace")}}),w.forEach(V=>{_.push({key:V.key,text:V.label,onSelect:()=>{var te;(te=V.onClick)==null||te.call(V,b,Z)}})}),_.length>0?_:!1})()},ye=typeof g=="function"?g:_=>_[g];return n.jsx(a.Table,{showHeader:!0,size:R,columns:se,dataSource:N,rowKey:ye,pagination:!1,rowSelection:ie,style:{pointerEvents:J?"none":void 0,height:"100%"},onRow:_=>({onClick:()=>{if(J||_.disabled)return;const V=!Z.includes(_.key);Q(_.key,V)}}),scroll:S})}})})},oo=({leftPanel:e,rightPanel:t,responsive:r={xs:24,sm:12,md:12},gutter:o=[16,8],className:s,style:i})=>{const l=(d,c)=>typeof t.rowKey=="function"?t.rowKey(d):d[t.rowKey]||String(c),u=(()=>{const d=t.pagination;return d&&{size:"small",showTotal:(c,m)=>`${m[1]-m[0]+1} de ${c} registros`,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},...d}})();return n.jsx("div",{className:`custom-relation-selector ${s||""}`,style:i,children:n.jsxs(He,{gutter:o,children:[n.jsx(me,{...r,children:n.jsxs(a.Card,{title:e.title,className:`relation-selector-card ${e.cardClassName||""}`,extra:e.extra,children:[e.filters&&n.jsx("div",{className:"relation-selector-filters",children:e.filters}),e.error&&n.jsx(a.Alert,{message:e.error,type:"error",showIcon:!0,className:"relation-selector-error"}),n.jsx("div",{style:{overflowX:"auto",width:"100%",maxWidth:"100%",marginTop:10},children:n.jsx(Et,{...e.table,showHeader:!0,scroll:{x:"max-content"},className:`relation-selector-table ${e.table.className||""}`})}),e.actionButton&&n.jsx("div",{className:"relation-selector-action",children:n.jsx(a.Button,{type:e.actionButton.type||"primary",icon:e.actionButton.icon,onClick:e.actionButton.onClick,disabled:e.actionButton.disabled,loading:e.actionButton.loading,danger:e.actionButton.danger,children:e.actionButton.text})})]})}),n.jsx(me,{...r,children:n.jsx(a.Card,{title:t.title,className:`relation-selector-card ${t.cardClassName||""}`,extra:t.extra,styles:{body:{overflow:t.loading?"hidden":"auto"}},children:t.loading?n.jsx("div",{className:"relation-selector-loading",children:n.jsx(ge,{spinning:!0,indicator:t.spinType,size:"small",spinType:"helppeople"})}):t.data.length===0?n.jsx(a.Empty,{description:t.emptyText||"No hay datos"}):n.jsx(a.List,{size:"small",className:`relation-selector-list ${t.listClassName||""}`,itemLayout:t.itemLayout||"horizontal",dataSource:t.data,pagination:u,renderItem:(d,c)=>{const m=t.renderItem(d);return n.jsx(a.List.Item,{actions:m.actions,children:n.jsx(a.List.Item.Meta,{title:m.title,description:m.description})},l(d,c))}})})})]})})},It=({count:e=0,overflowCount:t=99,dot:r=!1,color:o,size:s="default",icon:i,useButton:l=!1,buttonType:u="text",buttonShape:d="circle",onClick:c,style:m,containerStyle:f,showZero:p=!1,offset:h,className:y,disabled:x=!1})=>{const O=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},M=i||n.jsx(Ee,{style:{fontSize:O(),...f}}),D=l?n.jsx(a.Button,{type:u,icon:M,shape:d,onClick:c,style:f,disabled:x,className:y}):n.jsx("span",{onClick:c,style:{cursor:c?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...f},className:y,children:M});return n.jsx(a.Badge,{count:e,overflowCount:t,dot:r,color:o,showZero:p,offset:h,style:m,children:D})},so=({count:e,notifications:t=[],icon:r,size:o="default",useButton:s=!1,buttonType:i="text",onNotificationClick:l,onLoadMore:u,hasMore:d=!1,loading:c=!1,renderNotification:m,loadMoreText:f="Cargar más",emptyText:p="No hay notificaciones",popoverWidth:h=380,overflowCount:y=99,badgeColor:x,showZero:O=!1,containerStyle:M,popoverTitle:D="Notificaciones",onOpenChange:$,headerAction:W,maxHeight:g=400,placement:R="bottomRight"})=>{const[S,U]=k.useState(!1),w=v=>{U(v),$==null||$(v)},C=v=>{l==null||l(v)},L=v=>n.jsxs("div",{style:{padding:"12px",cursor:v.actions?"default":"pointer",backgroundColor:v.read?"transparent":"#f0f7ff",borderRadius:"4px",transition:"background-color 0.3s",width:"100%",boxSizing:"border-box"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=v.read?"#fafafa":"#e6f4ff"},onMouseLeave:z=>{z.currentTarget.style.backgroundColor=v.read?"transparent":"#f0f7ff"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[n.jsx("span",{style:{fontWeight:v.read?400:600,fontSize:"14px",color:v.read?"#595959":"#262626"},children:v.title}),!v.read&&n.jsx("span",{style:{width:"8px",height:"8px",backgroundColor:"#1890ff",borderRadius:"50%",marginLeft:"8px",flexShrink:0}})]}),v.description&&n.jsx("div",{style:{fontSize:"13px",color:"#8c8c8c",marginBottom:v.actions?"8px":"4px",lineHeight:"1.4"},children:v.description}),v.timestamp&&n.jsx("div",{style:{fontSize:"12px",color:"#bfbfbf",marginBottom:v.actions?"8px":"0"},children:v.timestamp}),v.actions&&v.actions.length>0&&n.jsx(a.Space,{size:"small",style:{marginTop:"8px"},children:v.actions.map((z,I)=>n.jsx(a.Button,{type:z.type||"default",size:z.size||"small",icon:z.icon,danger:z.danger,disabled:z.disabled,onClick:P=>{P.stopPropagation(),z.onClick(v)},children:z.label},I))})]}),q=n.jsxs("div",{style:{width:h},children:[W&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[n.jsx("span",{style:{fontWeight:600,fontSize:"14px"},children:D}),W]}),n.jsx(a.Divider,{style:{margin:"8px 0"}})]}),n.jsx("div",{style:{maxHeight:g,overflowY:"auto"},children:t.length===0?n.jsx(a.Empty,{description:p,image:a.Empty.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"}}):n.jsx(a.List,{dataSource:t,renderItem:v=>n.jsx(a.List.Item,{style:{padding:0,border:"none",marginBottom:"4px",width:"100%"},onClick:()=>C(v),children:m?m(v):L(v)})})}),d&&t.length>0&&n.jsxs(n.Fragment,{children:[n.jsx(a.Divider,{style:{margin:"8px 0"}}),n.jsx("div",{style:{textAlign:"center",padding:"8px 0"},children:n.jsx(G,{text:f,onClick:u||(()=>{}),loading:c,icon:c?n.jsx(jt,{}):void 0,style:{width:"100%"}})})]})]});return n.jsx(a.Popover,{content:q,title:W?null:D,trigger:"click",open:S,onOpenChange:w,placement:R,overlayStyle:{maxWidth:h+48},children:n.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:n.jsx(It,{count:e!==void 0?e:t.filter(v=>!v.read).length,icon:r||n.jsx(Ee,{}),size:o,useButton:s,buttonType:i,overflowCount:y,color:x,showZero:O,containerStyle:M})})})};function _t({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,style:i,className:l,...u}){const d=e.map((c,m)=>s(c,m));return n.jsx(a.Timeline,{mode:t,reverse:r,pending:o,items:d,style:{fontFamily:"var(--font-family, inherit)",...i},className:l,...u})}const io=({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,showExpediente:i=!1,showUsuario:l=!0,showFlujo:u=!1,dateFormatter:d,style:c,className:m,...f})=>{const p=y=>{if(d)return d(y);try{return new Date(y).toLocaleString("es-ES",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return y}},h=y=>({label:n.jsx("span",{style:{fontWeight:"500"},children:p(y.Fecha)}),children:n.jsxs("div",{style:{paddingBottom:"8px"},children:[i&&y.CodigoExpediente&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Expediente:"})," ",y.CodigoExpediente]}),u&&y.DescripcionFlujo&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Flujo:"})," ",y.DescripcionFlujo]}),l&&y.NombreUsuario&&n.jsxs("div",{style:{marginBottom:"4px",color:"var(--color-text-secondary, #666)",fontSize:"var(--font-size-small, 12px)"},children:[n.jsx("strong",{children:"Usuario:"})," ",y.NombreUsuario]}),n.jsx("div",{style:{marginTop:"8px"},children:y.Mensaje})]}),color:y.color||"blue",dot:y.dot});return n.jsx(_t,{data:e,mode:t,reverse:r,pending:o,renderItem:s||h,style:c,className:m,...f})},ao=({className:e,...t})=>n.jsx("div",{className:`custom-carousel-wrapper ${e||""}`,children:n.jsx(a.Carousel,{...t})}),lo=e=>n.jsx(a.Empty,{...e}),co=({className:e,style:t,...r},o)=>n.jsx(a.List,{ref:o,className:`${e}`,style:t,...r}),Fe=k.forwardRef(co);Fe.Item=a.List.Item;Fe.ItemMeta=a.List.Item.Meta;const Ht=k.createContext(null),uo=()=>{const e=k.useContext(Ht);if(!e)throw new Error("useFeedback() debe usarse dentro de <FeedbackProvider>. Asegúrate de que FeedbackProvider envuelve tu árbol de componentes.");return e},fo=({children:e,onReady:t})=>{const{notification:r,message:o,modal:s}=a.App.useApp(),i={notification:r,message:o,modal:s},l=k.useRef(!1);return k.useEffect(()=>{!l.current&&t&&(t(i),l.current=!0)},[t,i]),n.jsx(Ht.Provider,{value:i,children:e})},Ft=({children:e,onReady:t})=>n.jsx(a.App,{children:n.jsx(fo,{onReady:t,children:e})}),ho={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"},mo=({children:e,customTokens:t={}})=>{const r={...ho,...t};return n.jsx(a.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",rowSelectedBg:"#e8e6f0",rowSelectedHoverBg:"#d9d5e8",rowHoverBg:"#f5f5f5"},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:n.jsx(Ft,{children:n.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})})})},po={open:e=>{a.message.open(e)},success:(e,t,r)=>{a.message.success(e,t,r)},error:(e,t,r)=>{a.message.error(e,t,r)},info:(e,t,r)=>{a.message.info(e,t,r)},warning:(e,t,r)=>{a.message.warning(e,t,r)},loading:(e,t,r)=>{a.message.loading(e,t,r)}},{DirectoryTree:go}=a.Tree,yo=({style:e,...t})=>n.jsx(a.Tree,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),xo=({style:e,...t})=>n.jsx(go,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),vo=({count:e,dot:t=!1,overflowCount:r=99,showZero:o=!1,size:s="default",status:i,text:l,color:u,offset:d,children:c,style:m,className:f,...p})=>n.jsx(a.Badge,{count:e,dot:t,overflowCount:r,showZero:o,size:s,status:i,text:l,color:u,offset:d,style:{fontSize:"var(--font-size-medium)",...m},className:f,...p,children:c}),bo=({src:e,width:t,height:r,alt:o="",fallback:s,placeholder:i,preview:l=!0,style:u,className:d,...c})=>n.jsx(a.Image,{src:e,width:t,height:r,alt:o,fallback:s,placeholder:i,preview:l,style:u,className:d,...c}),jo=({children:e,preview:t,items:r,fallback:o})=>n.jsx(a.Image.PreviewGroup,{preview:t,items:r,fallback:o,children:e});exports.Accordion=to;exports.Alert=Yt;exports.Avatar=Wt;exports.AvatarGroup=qt;exports.Badge=vo;exports.Button=G;exports.Calendar=Un;exports.Card=Dt;exports.Carousel=ao;exports.CheckBox=Je;exports.ClearOutlined=ce;exports.CloseOutlined=gt;exports.Col=me;exports.CustomFilterDrawer=Ln;exports.CustomFilterDrawerHp=An;exports.DatePicker=fe;exports.DeleteOutlined=yt;exports.DirectoryTree=xo;exports.Divider=ir;exports.DragAndDrop=eo;exports.Drawer=ar;exports.Dropdown=Rt;exports.EditOutlined=Me;exports.Empty=lo;exports.FeedbackProvider=Ft;exports.FileExcelOutlined=xt;exports.FilePdfOutlined=vt;exports.FilterOutlined=De;exports.FilterToolbar=kn;exports.FloatButton=_e;exports.Form=oe;exports.Image=bo;exports.ImagePreviewGroup=jo;exports.Input=Ie;exports.InputSwitch=On;exports.LibraryThemeProvider=mo;exports.List=Fe;exports.Mentions=Mt;exports.Menu=de;exports.Message=po;exports.Modal=zt;exports.Notification=Tn;exports.NotificationBadge=It;exports.NotificationDropdown=so;exports.NumericInput=kt;exports.Pagination=En;exports.Password=Cn;exports.PlusOutlined=Re;exports.Progress=Mn;exports.Radio=Nt;exports.RadioGroup=zn;exports.RelationSelector=oo;exports.RichTextEditor=Qn;exports.Row=He;exports.Search=wn;exports.SearchOutlined=St;exports.Select=Ot;exports.Skeleton=Nn;exports.Space=Pn;exports.Spin=ge;exports.SubToolbar=In;exports.Table=Et;exports.TableTransfer=no;exports.Tabs=Dn;exports.Tag=Vn;exports.TextArea=Sn;exports.Timeline=_t;exports.TimelineWithDefaults=io;exports.Toolbar=Rn;exports.Tooltip=Tt;exports.Transfer=ro;exports.Tree=yo;exports.Upload=Hn;exports.UploadDragger=Bn;exports.useFeedback=uo;
|