helppeople-ui 1.11.4 → 1.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/my-library.cjs.js +22 -12
- package/dist/my-library.es.js +64 -54
- 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 hr(){return $e||($e=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(i=s(i,o(f)))}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 f in i)t.call(i,f)&&i[f]&&(l=s(l,f));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})()}(ve)),ve.exports}var mr=hr();const pr=fr(mr),I=Math.round;function be(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){$(this,"isValid",!0),$(this,"r",0),$(this,"g",0),$(this,"b",0),$(this,"a",1),$(this,"_h",void 0),$(this,"_s",void 0),$(this,"_l",void 0),$(this,"_v",void 0),$(this,"_max",void 0),$(this,"_min",void 0),$(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=I(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=f=>(o[f]-this[f])*s+this[f],l={r:I(i("r")),g:I(i("g")),b:I(i("b")),a:I(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=>I((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=I(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=I(this.getSaturation()*100),o=I(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=I(o*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,f=0;const d=t/60,c=(1-Math.abs(2*o-1))*r,h=c*(1-Math.abs(d%2-1));d>=0&&d<1?(i=c,l=h):d>=1&&d<2?(i=h,l=c):d>=2&&d<3?(l=c,f=h):d>=3&&d<4?(l=h,f=c):d>=4&&d<5?(i=h,f=c):d>=5&&d<6&&(i=c,f=h);const u=o-c/2;this.r=I((i+u)*255),this.g=I((l+u)*255),this.b=I((f+u)*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=I(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,f=Math.floor(l),d=l-f,c=I(o*(1-r)*255),h=I(o*(1-r*d)*255),u=I(o*(1-r*(1-d))*255);switch(f){case 0:this.g=u,this.b=c;break;case 1:this.r=h,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=h;break;case 4:this.r=u,this.g=c;break;case 5:default:this.g=c,this.b=h;break}}fromHsvString(t){const r=be(t,Pe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=be(t,Pe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=be(t,(o,s)=>s.includes("%")?I(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,gr=.05,xr=.05,yr=.15,at=5,lt=4,vr=[{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+gr*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-yr*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function br(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 f=1;f<=lt;f+=1){var d=new re({h:Ye(s,f),s:We(s,f),v:qe(s,f)});r.push(d)}return t.theme==="dark"?vr.map(function(c){var h=c.index,u=c.amount;return new re(t.backgroundColor||"#141414").mix(r[h],u).toHexString()}):r.map(function(c){return c.toHexString()})}var je=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];je.primary=je[5];function jr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cr(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",Sr="rc-util-key",Ce=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):Sr}function Oe(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Te(e){return Array.from((Ce.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(!jr())return null;var r=t.csp,o=t.prepend,s=t.priority,i=s===void 0?0:s,l=wr(o),f=l==="prependQueue",d=document.createElement("style");d.setAttribute(Ge,l),f&&i&&d.setAttribute(Ue,"".concat(i)),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;var c=Oe(t),h=c.firstChild;if(o){if(f){var u=(t.styles||Te(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Ge)))return!1;var m=Number(p.getAttribute(Ue)||0);return i>=m});if(u.length)return c.insertBefore(d,u[u.length-1].nextSibling),d}c.insertBefore(d,h)}else c.appendChild(d);return d}function kr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Oe(t);return(t.styles||Te(r)).find(function(o){return o.getAttribute(ct(t))===e})}function Or(e,t){var r=Ce.get(e);if(!r||!Cr(document,r)){var o=dt("",t),s=o.parentNode;Ce.set(e,s),e.removeChild(o)}}function Tr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Oe(r),s=Te(o),i=F(F({},r),{},{styles:s});Or(o,i);var l=kr(t,i);if(l){var f,d;if((f=i.csp)!==null&&f!==void 0&&f.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 h=dt(e,i);return h.setAttribute(ct(i),t),h}function ut(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zr(e){return ut(e)instanceof ShadowRoot}function Er(e){return zr(e)?ut(e):null}var Se={},ze=[],Nr=function(t){ze.push(t)};function Dr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ze.reduce(function(o,s){return s(o??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Mr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ze.reduce(function(o,s){return s(o??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Rr(){Se={}}function ft(e,t,r){!t&&!Se[r]&&(e(!1,r),Se[r]=!0)}function pe(e,t){ft(Dr,e,t)}function Ir(e,t){ft(Mr,e,t)}pe.preMessage=Nr;pe.resetWarned=Rr;pe.noteOnce=Ir;function _r(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Hr(e,t){pe(e,"[@ant-design/icons] ".concat(t))}function Ke(e){return J(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(J(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[_r(r)]=o}return t},{})}function we(e,t,r){return r?k.createElement(e.tag,F(F({key:t},Xe(e.attrs)),r),(e.children||[]).map(function(o,s){return we(o,"".concat(t,"-").concat(e.tag,"-").concat(s))})):k.createElement(e.tag,F({key:t},Xe(e.attrs)),(e.children||[]).map(function(o,s){return we(o,"".concat(t,"-").concat(e.tag,"-").concat(s))}))}function ht(e){return br(e)[0]}function mt(e){return e?Array.isArray(e)?e:[e]:[]}var Lr=`
|
|
12
|
+
*/var $e;function hr(){return $e||($e=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(i=s(i,o(f)))}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 f in i)t.call(i,f)&&i[f]&&(l=s(l,f));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})()}(ve)),ve.exports}var mr=hr();const pr=fr(mr),I=Math.round;function be(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){$(this,"isValid",!0),$(this,"r",0),$(this,"g",0),$(this,"b",0),$(this,"a",1),$(this,"_h",void 0),$(this,"_s",void 0),$(this,"_l",void 0),$(this,"_v",void 0),$(this,"_max",void 0),$(this,"_min",void 0),$(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=I(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=f=>(o[f]-this[f])*s+this[f],l={r:I(i("r")),g:I(i("g")),b:I(i("b")),a:I(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=>I((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=I(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=I(this.getSaturation()*100),o=I(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=I(o*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,f=0;const d=t/60,c=(1-Math.abs(2*o-1))*r,h=c*(1-Math.abs(d%2-1));d>=0&&d<1?(i=c,l=h):d>=1&&d<2?(i=h,l=c):d>=2&&d<3?(l=c,f=h):d>=3&&d<4?(l=h,f=c):d>=4&&d<5?(i=h,f=c):d>=5&&d<6&&(i=c,f=h);const u=o-c/2;this.r=I((i+u)*255),this.g=I((l+u)*255),this.b=I((f+u)*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=I(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,f=Math.floor(l),d=l-f,c=I(o*(1-r)*255),h=I(o*(1-r*d)*255),u=I(o*(1-r*(1-d))*255);switch(f){case 0:this.g=u,this.b=c;break;case 1:this.r=h,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=h;break;case 4:this.r=u,this.g=c;break;case 5:default:this.g=c,this.b=h;break}}fromHsvString(t){const r=be(t,Pe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=be(t,Pe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=be(t,(o,s)=>s.includes("%")?I(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,gr=.05,xr=.05,yr=.15,at=5,lt=4,vr=[{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+gr*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-yr*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function br(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 f=1;f<=lt;f+=1){var d=new re({h:Ye(s,f),s:We(s,f),v:qe(s,f)});r.push(d)}return t.theme==="dark"?vr.map(function(c){var h=c.index,u=c.amount;return new re(t.backgroundColor||"#141414").mix(r[h],u).toHexString()}):r.map(function(c){return c.toHexString()})}var je=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];je.primary=je[5];function jr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cr(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",Sr="rc-util-key",Ce=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):Sr}function Oe(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Te(e){return Array.from((Ce.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(!jr())return null;var r=t.csp,o=t.prepend,s=t.priority,i=s===void 0?0:s,l=wr(o),f=l==="prependQueue",d=document.createElement("style");d.setAttribute(Ge,l),f&&i&&d.setAttribute(Ue,"".concat(i)),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;var c=Oe(t),h=c.firstChild;if(o){if(f){var u=(t.styles||Te(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Ge)))return!1;var m=Number(p.getAttribute(Ue)||0);return i>=m});if(u.length)return c.insertBefore(d,u[u.length-1].nextSibling),d}c.insertBefore(d,h)}else c.appendChild(d);return d}function kr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Oe(t);return(t.styles||Te(r)).find(function(o){return o.getAttribute(ct(t))===e})}function Or(e,t){var r=Ce.get(e);if(!r||!Cr(document,r)){var o=dt("",t),s=o.parentNode;Ce.set(e,s),e.removeChild(o)}}function Tr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Oe(r),s=Te(o),i=F(F({},r),{},{styles:s});Or(o,i);var l=kr(t,i);if(l){var f,d;if((f=i.csp)!==null&&f!==void 0&&f.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 h=dt(e,i);return h.setAttribute(ct(i),t),h}function ut(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zr(e){return ut(e)instanceof ShadowRoot}function Nr(e){return zr(e)?ut(e):null}var Se={},ze=[],Er=function(t){ze.push(t)};function Dr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ze.reduce(function(o,s){return s(o??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Mr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ze.reduce(function(o,s){return s(o??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Rr(){Se={}}function ft(e,t,r){!t&&!Se[r]&&(e(!1,r),Se[r]=!0)}function pe(e,t){ft(Dr,e,t)}function Ir(e,t){ft(Mr,e,t)}pe.preMessage=Er;pe.resetWarned=Rr;pe.noteOnce=Ir;function _r(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Hr(e,t){pe(e,"[@ant-design/icons] ".concat(t))}function Ke(e){return J(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(J(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[_r(r)]=o}return t},{})}function we(e,t,r){return r?k.createElement(e.tag,F(F({key:t},Xe(e.attrs)),r),(e.children||[]).map(function(o,s){return we(o,"".concat(t,"-").concat(e.tag,"-").concat(s))})):k.createElement(e.tag,F({key:t},Xe(e.attrs)),(e.children||[]).map(function(o,s){return we(o,"".concat(t,"-").concat(e.tag,"-").concat(s))}))}function ht(e){return br(e)[0]}function mt(e){return e?Array.isArray(e)?e:[e]:[]}var Lr=`
|
|
13
13
|
.anticon {
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
@@ -66,21 +66,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66
66
|
}
|
|
67
67
|
`,Fr=function(t){var r=k.useContext(ot),o=r.csp,s=r.prefixCls,i=r.layer,l=Lr;s&&(l=l.replace(/anticon/g,s)),i&&(l="@layer ".concat(i,` {
|
|
68
68
|
`).concat(l,`
|
|
69
|
-
}`)),k.useEffect(function(){var f=t.current,d=Er(f);Tr(l,"@ant-design-icons",{prepend:!i,csp:o,attachTo:d})},[])},Br=["icon","className","onClick","style","primaryColor","secondaryColor"],le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ar(e){var t=e.primaryColor,r=e.secondaryColor;le.primaryColor=t,le.secondaryColor=r||ht(t),le.calculated=!!r}function $r(){return F({},le)}var ne=function(t){var r=t.icon,o=t.className,s=t.onClick,i=t.style,l=t.primaryColor,f=t.secondaryColor,d=it(t,Br),c=b.useRef(),h=le;if(l&&(h={primaryColor:l,secondaryColor:f||ht(l)}),Fr(c),Hr(Ke(r),"icon should be icon definiton, but got ".concat(r)),!Ke(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=F(F({},u),{},{icon:u.icon(h.primaryColor,h.secondaryColor)})),we(u.icon,"svg-".concat(u.name),F(F({className:o,onClick:s,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:c}))};ne.displayName="IconReact";ne.getTwoToneColors=$r;ne.setTwoToneColors=Ar;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 Pr(){var e=ne.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Vr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];pt(je.primary);var H=b.forwardRef(function(e,t){var r=e.className,o=e.icon,s=e.spin,i=e.rotate,l=e.tabIndex,f=e.onClick,d=e.twoToneColor,c=it(e,Vr),h=b.useContext(ot),u=h.prefixCls,p=u===void 0?"anticon":u,m=h.rootClassName,x=pr(m,p,$($({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!s||o.name==="loading"),r),y=l;y===void 0&&f&&(y=-1);var w=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,N=mt(d),L=st(N,2),B=L[0],P=L[1];return b.createElement("span",_({role:"img","aria-label":o.name},c,{ref:t,tabIndex:y,onClick:f,className:x}),b.createElement(ne,{icon:o,primaryColor:B,secondaryColor:P,style:w}))});H.displayName="AntdIcon";H.getTwoToneColor=Pr;H.setTwoToneColor=pt;var Yr={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"},Wr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Yr}))},he=b.forwardRef(Wr);process.env.NODE_ENV!=="production"&&(he.displayName="ArrowLeftOutlined");var qr={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"},Gr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:qr}))},Ee=b.forwardRef(Gr);process.env.NODE_ENV!=="production"&&(Ee.displayName="BellOutlined");var Ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},Kr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Ur}))},ce=b.forwardRef(Kr);process.env.NODE_ENV!=="production"&&(ce.displayName="ClearOutlined");var Xr={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"},Zr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Xr}))},gt=b.forwardRef(Zr);process.env.NODE_ENV!=="production"&&(gt.displayName="CloseOutlined");var Qr={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"},Jr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Qr}))},xt=b.forwardRef(Jr);process.env.NODE_ENV!=="production"&&(xt.displayName="DeleteOutlined");var en={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"},tn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:en}))},Ne=b.forwardRef(tn);process.env.NODE_ENV!=="production"&&(Ne.displayName="EditOutlined");var rn={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"},nn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:rn}))},yt=b.forwardRef(nn);process.env.NODE_ENV!=="production"&&(yt.displayName="FileExcelOutlined");var on={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"},sn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:on}))},vt=b.forwardRef(sn);process.env.NODE_ENV!=="production"&&(vt.displayName="FilePdfOutlined");var an={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"},ln=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:an}))},De=b.forwardRef(ln);process.env.NODE_ENV!=="production"&&(De.displayName="FilterOutlined");var cn={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"},dn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:cn}))},bt=b.forwardRef(dn);process.env.NODE_ENV!=="production"&&(bt.displayName="InboxOutlined");var un={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"},fn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:un}))},jt=b.forwardRef(fn);process.env.NODE_ENV!=="production"&&(jt.displayName="LoadingOutlined");var hn={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"},mn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:hn}))},Me=b.forwardRef(mn);process.env.NODE_ENV!=="production"&&(Me.displayName="PlusOutlined");var pn={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"},gn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:pn}))},Ct=b.forwardRef(gn);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"},yn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:xn}))},St=b.forwardRef(yn);process.env.NODE_ENV!=="production"&&(St.displayName="SearchOutlined");var vn={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"},bn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:vn}))},wt=b.forwardRef(bn);process.env.NODE_ENV!=="production"&&(wt.displayName="UploadOutlined");const Re=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)"}})]}));Re.displayName="CustomInput";const jn=({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)"}})]}),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.TextArea,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),Sn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},className:"custom-search-input-wrapper",children:[n.jsx("style",{children:`
|
|
70
|
-
.custom-search-input-wrapper .ant-input-
|
|
71
|
-
height:
|
|
72
|
-
|
|
73
|
-
align-items: center;
|
|
74
|
-
justify-content: center;
|
|
69
|
+
}`)),k.useEffect(function(){var f=t.current,d=Nr(f);Tr(l,"@ant-design-icons",{prepend:!i,csp:o,attachTo:d})},[])},Br=["icon","className","onClick","style","primaryColor","secondaryColor"],le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ar(e){var t=e.primaryColor,r=e.secondaryColor;le.primaryColor=t,le.secondaryColor=r||ht(t),le.calculated=!!r}function $r(){return F({},le)}var ne=function(t){var r=t.icon,o=t.className,s=t.onClick,i=t.style,l=t.primaryColor,f=t.secondaryColor,d=it(t,Br),c=b.useRef(),h=le;if(l&&(h={primaryColor:l,secondaryColor:f||ht(l)}),Fr(c),Hr(Ke(r),"icon should be icon definiton, but got ".concat(r)),!Ke(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=F(F({},u),{},{icon:u.icon(h.primaryColor,h.secondaryColor)})),we(u.icon,"svg-".concat(u.name),F(F({className:o,onClick:s,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:c}))};ne.displayName="IconReact";ne.getTwoToneColors=$r;ne.setTwoToneColors=Ar;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 Pr(){var e=ne.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Vr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];pt(je.primary);var H=b.forwardRef(function(e,t){var r=e.className,o=e.icon,s=e.spin,i=e.rotate,l=e.tabIndex,f=e.onClick,d=e.twoToneColor,c=it(e,Vr),h=b.useContext(ot),u=h.prefixCls,p=u===void 0?"anticon":u,m=h.rootClassName,x=pr(m,p,$($({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!s||o.name==="loading"),r),y=l;y===void 0&&f&&(y=-1);var w=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=mt(d),L=st(E,2),B=L[0],P=L[1];return b.createElement("span",_({role:"img","aria-label":o.name},c,{ref:t,tabIndex:y,onClick:f,className:x}),b.createElement(ne,{icon:o,primaryColor:B,secondaryColor:P,style:w}))});H.displayName="AntdIcon";H.getTwoToneColor=Pr;H.setTwoToneColor=pt;var Yr={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"},Wr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Yr}))},he=b.forwardRef(Wr);process.env.NODE_ENV!=="production"&&(he.displayName="ArrowLeftOutlined");var qr={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"},Gr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:qr}))},Ne=b.forwardRef(Gr);process.env.NODE_ENV!=="production"&&(Ne.displayName="BellOutlined");var Ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},Kr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Ur}))},ce=b.forwardRef(Kr);process.env.NODE_ENV!=="production"&&(ce.displayName="ClearOutlined");var Xr={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"},Zr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Xr}))},gt=b.forwardRef(Zr);process.env.NODE_ENV!=="production"&&(gt.displayName="CloseOutlined");var Qr={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"},Jr=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:Qr}))},xt=b.forwardRef(Jr);process.env.NODE_ENV!=="production"&&(xt.displayName="DeleteOutlined");var en={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"},tn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:en}))},Ee=b.forwardRef(tn);process.env.NODE_ENV!=="production"&&(Ee.displayName="EditOutlined");var rn={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"},nn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:rn}))},yt=b.forwardRef(nn);process.env.NODE_ENV!=="production"&&(yt.displayName="FileExcelOutlined");var on={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"},sn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:on}))},vt=b.forwardRef(sn);process.env.NODE_ENV!=="production"&&(vt.displayName="FilePdfOutlined");var an={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"},ln=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:an}))},De=b.forwardRef(ln);process.env.NODE_ENV!=="production"&&(De.displayName="FilterOutlined");var cn={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"},dn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:cn}))},bt=b.forwardRef(dn);process.env.NODE_ENV!=="production"&&(bt.displayName="InboxOutlined");var un={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"},fn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:un}))},jt=b.forwardRef(fn);process.env.NODE_ENV!=="production"&&(jt.displayName="LoadingOutlined");var hn={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"},mn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:hn}))},Me=b.forwardRef(mn);process.env.NODE_ENV!=="production"&&(Me.displayName="PlusOutlined");var pn={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"},gn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:pn}))},Ct=b.forwardRef(gn);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"},yn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:xn}))},St=b.forwardRef(yn);process.env.NODE_ENV!=="production"&&(St.displayName="SearchOutlined");var vn={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"},bn=function(t,r){return b.createElement(H,_({},t,{ref:r,icon:vn}))},wt=b.forwardRef(bn);process.env.NODE_ENV!=="production"&&(wt.displayName="UploadOutlined");const Re=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)"}})]}));Re.displayName="CustomInput";const jn=({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)"}})]}),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.TextArea,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),Sn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:"custom-search-input-wrapper",children:[n.jsx("style",{children:`
|
|
70
|
+
.custom-search-input-wrapper .ant-input-group-wrapper {
|
|
71
|
+
height: var(--input-height, 25px);
|
|
72
|
+
vertical-align: top;
|
|
75
73
|
}
|
|
76
|
-
|
|
77
|
-
/* Evitamos que el wrapper afecte el input base */
|
|
78
74
|
.custom-search-input-wrapper .ant-input-wrapper,
|
|
79
75
|
.custom-search-input-wrapper .ant-input-group,
|
|
80
76
|
.custom-search-input-wrapper .ant-input-group-addon {
|
|
81
77
|
height: 100%;
|
|
78
|
+
vertical-align: middle;
|
|
79
|
+
}
|
|
80
|
+
.custom-search-input-wrapper .ant-input {
|
|
81
|
+
height: 100% !important;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
}
|
|
84
|
+
.custom-search-input-wrapper .ant-input-search-button {
|
|
85
|
+
height: 100% !important;
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
padding-top: 0;
|
|
90
|
+
padding-bottom: 0;
|
|
91
|
+
box-sizing: border-box;
|
|
82
92
|
}
|
|
83
|
-
`}),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)"
|
|
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}),wn=({fields:e,filters:t,onFilter:r,onClearFilters:o,localeCode:s="es",actions:i=[],onAdvancedFilters:l,loading:f=!1,defaultValues:d={},activeFiltersCount:c=0,onFiltersChange:h,extra:u,translations:p={}})=>{const[m,x]=k.useState(()=>t||d||{}),y=k.useRef(null);k.useEffect(()=>{t&&x(t)},[t]);const w=(g,D)=>{const C={...m,[g]:D};x(C),h==null||h(C)},E=()=>{r(m)},L=()=>{x({}),o==null||o()},P=(g=>g<=2?12:g<=3?8:g<=4?6:4)(e.length);return n.jsxs("div",{ref:y,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:[u&&n.jsx(a.Col,{children:u}),n.jsx(a.Col,{style:{marginLeft:u?"0":"auto"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[i.map((g,D)=>!g.hide&&n.jsx(Tt,{content:g.tooltip,placement:"left",mouseEnterDelay:.3,mouseLeaveDelay:0,getPopupContainer:()=>y.current||document.body,children:n.jsx(G,{size:"small",icon:g.icon,onClick:g.onClick,style:{border:"none",background:"none"},loading:g.loading})},D)),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(Re,{placeholder:g.placeholder,value:m[g.key],onChange:D=>w(g.key,D.target.value),style:{width:"100%"}}),number:n.jsx(kt,{placeholder:g.placeholder,value:m[g.key],onChange:D=>w(g.key,D),style:{width:"100%"}}),date:n.jsx(fe,{localeCode:s,onChange:(D,C)=>w(g.key,C),style:{width:"100%"}}),range:n.jsx(fe.RangePicker,{localeCode:s,value:m[g.key]&&m[g.key][0]?[Fe(m[g.key][0]),Fe(m[g.key][1])]:void 0,onChange:(D,C)=>w(g.key,C),style:{width:"100%"}}),select:n.jsx(Ot,{placeholder:g.placeholder,options:g.options,value:m[g.key],mode:g.mode,allowClear:g.allowClear,showSearch:g.showSearch,optionFilterProp:g.optionFilterProp,filterOption:g.filterOption,onChange:D=>w(g.key,D),style:{width:"100%"},loading:g.isLoading,maxTagCount:"responsive"})}[g.type||"text"]]})},g.key)),n.jsx(a.Col,{xs:24,sm:12,md:P,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:E,loading:f,disabled:f,text:p.apply||"Aplicar",className:"force-white-text-button"}),n.jsx(G,{size:"small",icon:n.jsx(ce,{}),onClick:L,disabled:f})]})})]})]})},Ie=({className:e,tooltip:t,...r})=>n.jsx(a.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});Ie.Group=e=>n.jsx(a.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});Ie.BackTop=a.FloatButton.BackTop;const kn=({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,...r})=>n.jsx(a.Modal,{className:"custom-modal",title:e,...r,children:t});["info","success","error","warning","confirm","destroyAll"].forEach(e=>{zt[e]=a.Modal[e]});const On={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 Tn=e=>n.jsx(a.Radio.Group,{...e}),zn=({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:`
|
|
84
94
|
.helppeople-cloud-svg .svg-elem-1 {
|
|
85
95
|
stroke-dashoffset: 472.7320556640625px;
|
|
86
96
|
stroke-dasharray: 472.7320556640625px;
|
|
@@ -96,7 +106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
96
106
|
}
|
|
97
107
|
}
|
|
98
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
|
|
99
|
-
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`})})]})]})},_e=({tip:e,spinning:t=!0,size:r="default",overlay:o=!1,spinType:s="antd",children:i,...l})=>{const f=()=>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:[f(),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})},
|
|
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`})})]})]})},_e=({tip:e,spinning:t=!0,size:r="default",overlay:o=!1,spinType:s="antd",children:i,...l})=>{const f=()=>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:[f(),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})},En=({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 f=s?{scrollToFirstRowOnChange:!0,...s}:{x:!0,scrollToFirstRowOnChange:!0},d=t==null?void 0:t.filter(u=>u?Object.values(u).some(m=>m!=null&&m!==""):!1),c=e==null?void 0:e.map((u,p)=>{const m={...u,key:u.key||p,title:typeof u.title=="string"?n.jsx("span",{style:{fontSize:"var(--font-size-medium)"},children:u.title}):u.title};if(u.width===void 0){const x=u.onCell;return{...m,onCell:(y,w)=>{var E;return{...x?x(y,w):{},style:{...x?(E=x(y,w))==null?void 0:E.style:{},maxWidth:200,whiteSpace:"normal",wordWrap:"break-word",wordBreak:"break-word"}}}}}return m}),h=r?{...r,showTotal:(u,p)=>`${p[1]-p[0]+1} de ${u} 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:f,columns:c,dataSource:d,pagination:h}),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(_e,{spinning:!0,spinType:"helppeople",size:"small"})})]})},Dn=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,type:s="line",showCardWrapper:i=!0,topBarContent:l,topBarAlign:f="right"})=>{const d={backgroundColor:"#ffffff",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"1rem",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},h={display:"flex",justifyContent:(()=>{switch(f){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"},u=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:h,children:l}),u]}):n.jsxs(n.Fragment,{children:[l&&n.jsx("div",{style:h,children:l}),u]})},Mn=({title:e,onBack:t,onNew:r,newButtonText:o="Nueva",backButtonText:s="Volver",newButtonLoading:i=!1,newButtonDisabled:l=!1,pageType:f="list",customButtons:d=[],hideDefaultButtons:c=!1,rightActions:h,pageHeader:u})=>{const p=()=>f==="form"?n.jsx(Ct,{}):f==="detail"?n.jsx(Ee,{}):n.jsx(Me,{});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:u?"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(m=>n.jsx(G,{type:m.type||"default",danger:m.danger,onClick:m.onClick,icon:m.icon,text:m.text,loading:m.loading,disabled:m.disabled,style:{fontSize:"var(--font-size-medium)",...m.style}},m.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})]}),h&&n.jsx("div",{style:{display:"inline-flex",alignItems:"center"},children:h})]})]}),u&&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:[u.onBack&&n.jsx(he,{onClick:u.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:u.title})]}),u.actions&&u.actions.length>0&&n.jsx(a.Space,{wrap:!0,style:{alignItems:"center"},children:u.actions.map(m=>n.jsx(G,{type:m.type||"primary",danger:m.danger,onClick:m.onClick,icon:m.icon,text:m.text,loading:m.loading,disabled:m.disabled,style:{fontSize:"var(--font-size-medium)",...m.style}},m.key))})]})]})},Rn=({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))})]}),In=({buttonText:e="Subir archivo",...t})=>n.jsx(a.Upload,{...t,children:n.jsx(a.Button,{icon:n.jsx(wt,{}),children:e})}),{Dragger:_n}=a.Upload,Hn=({text:e="Haz clic o arrastra un archivo aquí",hint:t="Soporta archivos individuales",...r})=>n.jsxs(_n,{...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:f,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:h=>f(c.key,h.target.value)}),number:n.jsx(a.InputNumber,{placeholder:c.placeholder,value:o[c.key],onChange:h=>f(c.key,h),style:{width:"100%"}}),select:n.jsx(a.Select,{placeholder:c.placeholder,options:c.options,value:o[c.key],onChange:h=>f(c.key,h),style:{width:"100%"}})}[c.type]]},c.key))})}),Fn=({visible:e,title:t,filters:r,onChange:o,onClose:s,onSubmit:i,onClear:l,children:f,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:f({filters:r,onChange:o})}),Bn=`
|
|
100
110
|
.custom-form .ant-form-item-label > label {
|
|
101
111
|
font-weight: var(--font-weight-semibold, 600) !important;
|
|
102
112
|
font-family: var(--font-family, inherit) !important;
|
|
@@ -105,4 +115,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
105
115
|
.custom-form .ant-form-item-required::before {
|
|
106
116
|
color: #ff4d4f !important;
|
|
107
117
|
}
|
|
108
|
-
`,oe=e=>{const[t]=a.Form.useForm(),r=e.form||t;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:Bn}),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}),An=e=>n.jsx(a.Space,{...e,children:e.children}),Dt=e=>n.jsx(a.Card,{...e}),$n=e=>n.jsx(a.Tag,{...e});var Pn={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"},Vn={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"}`}},Yn={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 Wn={es:Pn,en:Vn,pt:Yn},qn=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:o=!0,editable:s=!1,onEventClick:i,onDateSelect:l,renderEventContent:f,localeCode:d="es"})=>{const c=e;function h(m){i&&i({id:m.event.id,title:m.event.title,start:m.event.start,end:m.event.end??void 0,allDay:m.event.allDay})}function u(m){l&&l({start:m.start,end:m.end,allDay:m.allDay})}function p(m){return n.jsxs("div",{children:[n.jsx("b",{children:m.timeText})," ",n.jsx("span",{children:m.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(Ft,{plugins:[Bt,At,$t],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:o,editable:s,events:c,eventContent:f??p,eventClick:h,select:u,locale:Wn[d||"es"]})})},Gn=Qe.Quill.import("delta");function Un(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 f;const i=document.createElement("div");s.querySelectorAll("tr").forEach(d=>{const c=document.createElement("p"),h=d.querySelectorAll("td, th");let u="";h.forEach(p=>{u+=p.innerHTML+" "}),c.innerHTML=u.trim(),i.appendChild(c)}),(f=s.parentNode)==null||f.replaceChild(i,s)}),r.body.innerHTML}catch(t){return console.error("Error transforming table HTML",t),e}}const Kn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","background","align"],Xn=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:o,formats:s,theme:i="snow",height:l="200px",width:f="100%",maxHeight:d="400px",minHeight:c="100px",autoResize:h=!1,className:u="",allowImages:p=!0,maxLength:m,...x})=>{const y=k.useRef(null),w=k.useRef(null),[N,L]=k.useState(0),B=k.useMemo(()=>m!==void 0?m:3e3,[m]),P=k.useMemo(()=>Un(e),[e]),g=k.useMemo(()=>{if(s)return s;const T=[...Kn];return p&&T.push("image"),T},[s,p]),D=k.useMemo(()=>{if(o)return o;const T=[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]],S=["link"];return p&&S.push("image"),T.push(S),T.push(["clean"]),T.push([{color:[]},{background:[]}]),T.push([{align:[]}]),{toolbar:T,clipboard:{matchVisual:!1}}},[o,p]);k.useEffect(()=>{!p&&y.current&&y.current.getEditor().clipboard.addMatcher("IMG",()=>new Gn)},[p]),k.useEffect(()=>{if(!y.current||!m)return;const T=y.current.getEditor(),S=(X,v,M)=>{if(M!=="user")return;const Y=T.getText().trim().length;if(L(Y),Y>m){const O=Y-m,E=T.getContents(),ee=E.length();let j=O,z=ee-1;for(;j>0&&z>=0;){const W=E.ops[z];if(W&&typeof W.insert=="string"){const q=W.insert.length;if(q<=j)E.ops.splice(z,1),j-=q;else{const K=q-j;E.ops[z]={insert:W.insert.substring(0,K)},j=0}}z--}T.setContents(E)}},V=T.getText().trim();return L(V.length),T.on("text-change",S),()=>{T.off("text-change",S)}},[m]),k.useEffect(()=>{if(h&&y.current&&w.current){const T=y.current.getEditor(),S=w.current,V=()=>{const X=S.querySelector(".ql-editor");if(X){const v=X.scrollHeight,M=typeof c=="number"?c:parseInt(c),Z=typeof d=="number"?d:parseInt(d),Y=Math.min(Math.max(v+42,M),Z);S.style.height=`${Y}px`}};return T.on("text-change",V),V(),()=>{T.off("text-change",V)}}},[h,d,c]);const C={width:typeof f=="number"?`${f}px`:f,height:h?"auto":typeof l=="number"?`${l}px`:l,minHeight:typeof c=="number"?`${c}px`:c,maxHeight:h?typeof d=="number"?`${d}px`:d:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...x.style},U={height:"100%",display:"flex",flexDirection:"column"};return n.jsxs("div",{ref:w,className:`custom-rich-text-editor ${h?"auto-resize":"fixed-height"} ${u}`,style:C,children:[n.jsx(Qe,{ref:y,theme:i,value:P,onChange:t,modules:D,formats:g,placeholder:r,style:U,...x}),m!==void 0&&n.jsxs("div",{className:`character-counter ${N>=B?"at-limit":N>=B*.9?"near-limit":""}`,children:[N,"/",B]})]})},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 Mt=({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})};Mt.Button=e=>n.jsx(a.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Zn}=a.Typography,Qn=({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:h}=d;if(h&&!(c.droppableId===h.droppableId&&c.index===h.index))if(c.droppableId===h.droppableId){const u=c.droppableId==="disponibles"?[...e]:[...t],[p]=u.splice(c.index,1);u.splice(h.index,0,p),c.droppableId==="disponibles"?r(u,t):r(e,u)}else{const u=c.droppableId==="disponibles"?[...e]:[...t],p=h.droppableId==="disponibles"?[...e]:[...t],[m]=u.splice(c.index,1);p.splice(h.index,0,m),c.droppableId==="disponibles"?r(u,p):r(p,u)}},f=(d,c,h)=>n.jsxs(me,{span:12,children:[n.jsx(Zn,{level:4,style:{marginBottom:16,fontSize:14},children:c}),n.jsx(ye.Droppable,{droppableId:d,children:(u,p)=>n.jsxs("div",{ref:u.innerRef,...u.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[h.length===0?n.jsx(a.Empty,{description:i,style:{opacity:.3}}):h.map((m,x)=>n.jsx(ye.Draggable,{draggableId:m.id,index:x,children:(y,w)=>n.jsx("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:{marginBottom:8,cursor:w.isDragging?"grabbing":"grab",opacity:w.isDragging?.8:1,transform:w.isDragging?"rotate(3deg)":"none",...y.draggableProps.style},children:n.jsx(Dt,{size:"small",style:{boxShadow:w.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:m.content})})},m.id)),u.placeholder]})})]});return n.jsx(ye.DragDropContext,{onDragEnd:l,children:n.jsxs(He,{gutter:16,style:{margin:"24px 0"},children:[f("disponibles",o,e),f("seleccionados",s,t)]})})},Jn=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,accordion:s=!1,bordered:i=!0,collapsible:l="header",expandIcon:f,expandIconPosition:d="start",ghost:c=!1,size:h="middle",className:u,style:p})=>{const x={items:e.map(y=>({key:y.key,label:n.jsx("div",{style:{flex:1,minWidth:0,width:"100%"},children:y.header}),children:y.children,disabled:y.disabled,showArrow:y.showArrow,extra:y.extra,className:y.className,style:y.style})),defaultActiveKey:t,activeKey:r,onChange:o,accordion:s,bordered:i,collapsible:l,expandIcon:f,expandIconPosition:d,ghost:c,size:h,className:u,style:p};return n.jsx("div",{children:n.jsx(a.Collapse,{...x})})},eo=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:f=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:h,disabled:u=!1,listStyle:p,className:m,style:x,render:y,children:w,showSelectAll:N=!0,selectAllLabels:L,oneWay:B=!1,pagination:P=!1,status:g,locale:D,remotePagination:C,onPageChange:U})=>{const T=e.map(O=>({key:O.key,title:O.title,description:O.description,disabled:O.disabled||!1,chosen:O.chosen||!1})),S=o?(O,E,ee)=>o(O,E,ee):void 0,V=s?(O,E)=>s(O,E):void 0,X=i?(O,E)=>i(O,E):void 0,v=l?(O,E)=>l(O,E):void 0,M=["hp-transfer",m].filter(Boolean).join(" "),Z=!!C&&C.position!=="none",Y={dataSource:T,targetKeys:t,selectedKeys:r,onChange:S,onSelectChange:V,onSearch:X,onScroll:v,titles:f,operations:d,showSearch:c,filterOption:h?(O,E)=>h(O,E):void 0,disabled:u,listStyle:p,className:M,render:y||(O=>O.title),showSelectAll:N,selectAllLabels:L,oneWay:B,pagination:Z?!1:P,status:g,locale:D,footer:Z?({direction:O})=>{const E=(C==null?void 0:C.position)??"left";if(!(E==="both"||E==="left"&&O==="left"||E==="right"&&O==="right"))return null;const j=O==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!j)return null;const{page:z,pageSize:W,total:q}=j,K=(C==null?void 0:C.simple)??!0,Q=(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:K,current:z,total:q,pageSize:W,showSizeChanger:Q,pageSizeOptions:["5","10","20","50"],onChange:(se,ie)=>{U==null||U(O,se,ie)}})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:w?w(Y):n.jsx(a.Transfer,{...Y})})},to=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:f=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:h,disabled:u=!1,listStyle:p,className:m,style:x,selectAllLabels:y,oneWay:w=!1,status:N,locale:L,leftColumns:B,rightColumns:P,rowKey:g="key",tableSize:D="small",tableScroll:C,showDefaultHeaderActions:U=!0,headerActions:T=[],remotePagination:S,onPageChange:V})=>{const X=(e??[]).map(j=>({...j,key:j.key,title:j.title||j.key||String(j.key),description:j.description,disabled:j.disabled||!1,chosen:j.chosen||!1})),v=o?(j,z,W)=>o(j,z,W):void 0,M=s?(j,z)=>s(j,z):void 0,Z=i?(j,z)=>i(j,z):void 0,Y=l?(j,z)=>l(j,z):void 0,O=["hp-transfer","hp-table-transfer",m].filter(Boolean).join(" "),E=!!S&&(S.position??"left")!=="none",ee={dataSource:X,targetKeys:t,selectedKeys:r,onChange:v,onSelectChange:M,onSearch:Z,onScroll:Y,titles:f,operations:d,showSearch:c,filterOption:h,disabled:u,listStyle:p,className:O,showSelectAll:U,selectAllLabels:y,oneWay:w,pagination:!1,status:N,locale:L,footer:E?({direction:j})=>{const z=(S==null?void 0:S.position)??"left";if(!(z==="both"||z==="left"&&j==="left"||z==="right"&&j==="right"))return null;const q=j==="left"?S==null?void 0:S.left:S==null?void 0:S.right;if(!q)return null;const{page:K,pageSize:Q,total:se}=q,ie=(S==null?void 0:S.simple)??!0,ge=(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:ie,current:K,total:se,pageSize:Q,showSizeChanger:ge,pageSizeOptions:["5","10","20","50"],onChange:(R,A)=>V==null?void 0:V(j,R,A)})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:n.jsx(a.Transfer,{...ee,children:({direction:j,filteredItems:z,onItemSelect:W,onItemSelectAll:q,selectedKeys:K,disabled:Q})=>{const se=j==="left"?B:P??B,ie={getCheckboxProps:R=>({disabled:Q||R.disabled}),selectedRowKeys:K,onSelect:(R,A)=>{W(R.key,A)},hideSelectAll:!1,onChange:R=>{q(R,"replace")},selections:(()=>{const R=[];return U&&R.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const A=z.map(te=>te.key);q(A,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const A=z.map(xe=>xe.key),te=K,Lt=A.filter(xe=>!te.includes(xe));q(Lt,"replace")}}),T.forEach(A=>{R.push({key:A.key,text:A.label,onSelect:()=>{var te;(te=A.onClick)==null||te.call(A,j,K)}})}),R.length>0?R:!1})()},ge=typeof g=="function"?g:R=>R[g];return n.jsx(a.Table,{showHeader:!0,size:D,columns:se,dataSource:z,rowKey:ge,pagination:!1,rowSelection:ie,style:{pointerEvents:Q?"none":void 0,height:"100%"},onRow:R=>({onClick:()=>{if(Q||R.disabled)return;const A=!K.includes(R.key);W(R.key,A)}}),scroll:C})}})})},ro=({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),f=(()=>{const d=t.pagination;return d&&{size:"small",showTotal:(c,h)=>`${h[1]-h[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(_e,{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:f,renderItem:(d,c)=>{const h=t.renderItem(d);return n.jsx(a.List.Item,{actions:h.actions,children:n.jsx(a.List.Item.Meta,{title:h.title,description:h.description})},l(d,c))}})})})]})})},Rt=({count:e=0,overflowCount:t=99,dot:r=!1,color:o,size:s="default",icon:i,useButton:l=!1,buttonType:f="text",buttonShape:d="circle",onClick:c,style:h,containerStyle:u,showZero:p=!1,offset:m,className:x,disabled:y=!1})=>{const w=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},N=i||n.jsx(Ee,{style:{fontSize:w(),...u}}),L=l?n.jsx(a.Button,{type:f,icon:N,shape:d,onClick:c,style:u,disabled:y,className:x}):n.jsx("span",{onClick:c,style:{cursor:c?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...u},className:x,children:N});return n.jsx(a.Badge,{count:e,overflowCount:t,dot:r,color:o,showZero:p,offset:m,style:h,children:L})},no=({count:e,notifications:t=[],icon:r,size:o="default",useButton:s=!1,buttonType:i="text",onNotificationClick:l,onLoadMore:f,hasMore:d=!1,loading:c=!1,renderNotification:h,loadMoreText:u="Cargar más",emptyText:p="No hay notificaciones",popoverWidth:m=380,overflowCount:x=99,badgeColor:y,showZero:w=!1,containerStyle:N,popoverTitle:L="Notificaciones",onOpenChange:B,headerAction:P,maxHeight:g=400,placement:D="bottomRight"})=>{const[C,U]=k.useState(!1),T=v=>{U(v),B==null||B(v)},S=v=>{l==null||l(v)},V=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:M=>{M.currentTarget.style.backgroundColor=v.read?"#fafafa":"#e6f4ff"},onMouseLeave:M=>{M.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((M,Z)=>n.jsx(a.Button,{type:M.type||"default",size:M.size||"small",icon:M.icon,danger:M.danger,disabled:M.disabled,onClick:Y=>{Y.stopPropagation(),M.onClick(v)},children:M.label},Z))})]}),X=n.jsxs("div",{style:{width:m},children:[P&&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:L}),P]}),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:()=>S(v),children:h?h(v):V(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:u,onClick:f||(()=>{}),loading:c,icon:c?n.jsx(jt,{}):void 0,style:{width:"100%"}})})]})]});return n.jsx(a.Popover,{content:X,title:P?null:L,trigger:"click",open:C,onOpenChange:T,placement:D,overlayStyle:{maxWidth:m+48},children:n.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:n.jsx(Rt,{count:e!==void 0?e:t.filter(v=>!v.read).length,icon:r||n.jsx(Ee,{}),size:o,useButton:s,buttonType:i,overflowCount:x,color:y,showZero:w,containerStyle:N})})})};function It({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,style:i,className:l,...f}){const d=e.map((c,h)=>s(c,h));return n.jsx(a.Timeline,{mode:t,reverse:r,pending:o,items:d,style:{fontFamily:"var(--font-family, inherit)",...i},className:l,...f})}const oo=({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,showExpediente:i=!1,showUsuario:l=!0,showFlujo:f=!1,dateFormatter:d,style:c,className:h,...u})=>{const p=x=>{if(d)return d(x);try{return new Date(x).toLocaleString("es-ES",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return x}},m=x=>({label:n.jsx("span",{style:{fontWeight:"500"},children:p(x.Fecha)}),children:n.jsxs("div",{style:{paddingBottom:"8px"},children:[i&&x.CodigoExpediente&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Expediente:"})," ",x.CodigoExpediente]}),f&&x.DescripcionFlujo&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Flujo:"})," ",x.DescripcionFlujo]}),l&&x.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:"})," ",x.NombreUsuario]}),n.jsx("div",{style:{marginTop:"8px"},children:x.Mensaje})]}),color:x.color||"blue",dot:x.dot});return n.jsx(It,{data:e,mode:t,reverse:r,pending:o,renderItem:s||m,style:c,className:h,...u})},so=({className:e,...t})=>n.jsx("div",{className:`custom-carousel-wrapper ${e||""}`,children:n.jsx(a.Carousel,{...t})}),io=e=>n.jsx(a.Empty,{...e}),ao=({className:e,style:t,...r},o)=>n.jsx(a.List,{ref:o,className:`${e}`,style:t,...r}),Le=k.forwardRef(ao);Le.Item=a.List.Item;Le.ItemMeta=a.List.Item.Meta;const _t=k.createContext(null),lo=()=>{const e=k.useContext(_t);if(!e)throw new Error("useFeedback() debe usarse dentro de <FeedbackProvider>. Asegúrate de que FeedbackProvider envuelve tu árbol de componentes.");return e},co=({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(_t.Provider,{value:i,children:e})},Ht=({children:e,onReady:t})=>n.jsx(a.App,{children:n.jsx(co,{onReady:t,children:e})}),uo={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"},fo=({children:e,customTokens:t={}})=>{const r={...uo,...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(Ht,{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})})})},ho={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:mo}=a.Tree,po=({style:e,...t})=>n.jsx(a.Tree,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),go=({style:e,...t})=>n.jsx(mo,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),xo=({count:e,dot:t=!1,overflowCount:r=99,showZero:o=!1,size:s="default",status:i,text:l,color:f,offset:d,children:c,style:h,className:u,...p})=>n.jsx(a.Badge,{count:e,dot:t,overflowCount:r,showZero:o,size:s,status:i,text:l,color:f,offset:d,style:{fontSize:"var(--font-size-medium)",...h},className:u,...p,children:c}),yo=({src:e,width:t,height:r,alt:o="",fallback:s,placeholder:i,preview:l=!0,style:f,className:d,...c})=>n.jsx(a.Image,{src:e,width:t,height:r,alt:o,fallback:s,placeholder:i,preview:l,style:f,className:d,...c}),vo=({children:e,preview:t,items:r,fallback:o})=>n.jsx(a.Image.PreviewGroup,{preview:t,items:r,fallback:o,children:e});exports.Accordion=Jn;exports.Alert=Vt;exports.Avatar=Yt;exports.AvatarGroup=Wt;exports.Badge=xo;exports.Button=G;exports.Calendar=qn;exports.Card=Dt;exports.Carousel=so;exports.CheckBox=Je;exports.ClearOutlined=ce;exports.CloseOutlined=gt;exports.Col=me;exports.CustomFilterDrawer=Ln;exports.CustomFilterDrawerHp=Fn;exports.DatePicker=fe;exports.DeleteOutlined=xt;exports.DirectoryTree=go;exports.Divider=sr;exports.DragAndDrop=Qn;exports.Drawer=ir;exports.Dropdown=Mt;exports.EditOutlined=Ne;exports.Empty=io;exports.FeedbackProvider=Ht;exports.FileExcelOutlined=yt;exports.FilePdfOutlined=vt;exports.FilterOutlined=De;exports.FilterToolbar=wn;exports.FloatButton=Ie;exports.Form=oe;exports.Image=yo;exports.ImagePreviewGroup=vo;exports.Input=Re;exports.InputSwitch=kn;exports.LibraryThemeProvider=fo;exports.List=Le;exports.Menu=de;exports.Message=ho;exports.Modal=zt;exports.Notification=On;exports.NotificationBadge=Rt;exports.NotificationDropdown=no;exports.NumericInput=kt;exports.Pagination=En;exports.Password=jn;exports.PlusOutlined=Me;exports.Progress=Nn;exports.Radio=Et;exports.RadioGroup=Tn;exports.RelationSelector=ro;exports.RichTextEditor=Xn;exports.Row=He;exports.Search=Sn;exports.SearchOutlined=St;exports.Select=Ot;exports.Skeleton=zn;exports.Space=An;exports.Spin=_e;exports.SubToolbar=Rn;exports.Table=Nt;exports.TableTransfer=to;exports.Tabs=Dn;exports.Tag=$n;exports.TextArea=Cn;exports.Timeline=It;exports.TimelineWithDefaults=oo;exports.Toolbar=Mn;exports.Tooltip=Tt;exports.Transfer=eo;exports.Tree=po;exports.Upload=In;exports.UploadDragger=Hn;exports.useFeedback=lo;
|
|
118
|
+
`,oe=e=>{const[t]=a.Form.useForm(),r=e.form||t;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:Bn}),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}),An=e=>n.jsx(a.Space,{...e,children:e.children}),Dt=e=>n.jsx(a.Card,{...e}),$n=e=>n.jsx(a.Tag,{...e});var Pn={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"},Vn={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"}`}},Yn={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 Wn={es:Pn,en:Vn,pt:Yn},qn=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:o=!0,editable:s=!1,onEventClick:i,onDateSelect:l,renderEventContent:f,localeCode:d="es"})=>{const c=e;function h(m){i&&i({id:m.event.id,title:m.event.title,start:m.event.start,end:m.event.end??void 0,allDay:m.event.allDay})}function u(m){l&&l({start:m.start,end:m.end,allDay:m.allDay})}function p(m){return n.jsxs("div",{children:[n.jsx("b",{children:m.timeText})," ",n.jsx("span",{children:m.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(Ft,{plugins:[Bt,At,$t],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:o,editable:s,events:c,eventContent:f??p,eventClick:h,select:u,locale:Wn[d||"es"]})})},Gn=Qe.Quill.import("delta");function Un(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 f;const i=document.createElement("div");s.querySelectorAll("tr").forEach(d=>{const c=document.createElement("p"),h=d.querySelectorAll("td, th");let u="";h.forEach(p=>{u+=p.innerHTML+" "}),c.innerHTML=u.trim(),i.appendChild(c)}),(f=s.parentNode)==null||f.replaceChild(i,s)}),r.body.innerHTML}catch(t){return console.error("Error transforming table HTML",t),e}}const Kn=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","background","align"],Xn=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:o,formats:s,theme:i="snow",height:l="200px",width:f="100%",maxHeight:d="400px",minHeight:c="100px",autoResize:h=!1,className:u="",allowImages:p=!0,maxLength:m,...x})=>{const y=k.useRef(null),w=k.useRef(null),[E,L]=k.useState(0),B=k.useMemo(()=>m!==void 0?m:3e3,[m]),P=k.useMemo(()=>Un(e),[e]),g=k.useMemo(()=>{if(s)return s;const T=[...Kn];return p&&T.push("image"),T},[s,p]),D=k.useMemo(()=>{if(o)return o;const T=[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]],S=["link"];return p&&S.push("image"),T.push(S),T.push(["clean"]),T.push([{color:[]},{background:[]}]),T.push([{align:[]}]),{toolbar:T,clipboard:{matchVisual:!1}}},[o,p]);k.useEffect(()=>{!p&&y.current&&y.current.getEditor().clipboard.addMatcher("IMG",()=>new Gn)},[p]),k.useEffect(()=>{if(!y.current||!m)return;const T=y.current.getEditor(),S=(X,v,M)=>{if(M!=="user")return;const Y=T.getText().trim().length;if(L(Y),Y>m){const O=Y-m,N=T.getContents(),ee=N.length();let j=O,z=ee-1;for(;j>0&&z>=0;){const W=N.ops[z];if(W&&typeof W.insert=="string"){const q=W.insert.length;if(q<=j)N.ops.splice(z,1),j-=q;else{const K=q-j;N.ops[z]={insert:W.insert.substring(0,K)},j=0}}z--}T.setContents(N)}},V=T.getText().trim();return L(V.length),T.on("text-change",S),()=>{T.off("text-change",S)}},[m]),k.useEffect(()=>{if(h&&y.current&&w.current){const T=y.current.getEditor(),S=w.current,V=()=>{const X=S.querySelector(".ql-editor");if(X){const v=X.scrollHeight,M=typeof c=="number"?c:parseInt(c),Z=typeof d=="number"?d:parseInt(d),Y=Math.min(Math.max(v+42,M),Z);S.style.height=`${Y}px`}};return T.on("text-change",V),V(),()=>{T.off("text-change",V)}}},[h,d,c]);const C={width:typeof f=="number"?`${f}px`:f,height:h?"auto":typeof l=="number"?`${l}px`:l,minHeight:typeof c=="number"?`${c}px`:c,maxHeight:h?typeof d=="number"?`${d}px`:d:"none",display:"flex",flexDirection:"column",border:"1px solid #d9d9d9",borderRadius:"6px",backgroundColor:"#ffffff",...x.style},U={height:"100%",display:"flex",flexDirection:"column"};return n.jsxs("div",{ref:w,className:`custom-rich-text-editor ${h?"auto-resize":"fixed-height"} ${u}`,style:C,children:[n.jsx(Qe,{ref:y,theme:i,value:P,onChange:t,modules:D,formats:g,placeholder:r,style:U,...x}),m!==void 0&&n.jsxs("div",{className:`character-counter ${E>=B?"at-limit":E>=B*.9?"near-limit":""}`,children:[E,"/",B]})]})},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 Mt=({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})};Mt.Button=e=>n.jsx(a.Dropdown.Button,{className:`custom-dropdown-button ${e.className||""}`,...e});const{Title:Zn}=a.Typography,Qn=({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:h}=d;if(h&&!(c.droppableId===h.droppableId&&c.index===h.index))if(c.droppableId===h.droppableId){const u=c.droppableId==="disponibles"?[...e]:[...t],[p]=u.splice(c.index,1);u.splice(h.index,0,p),c.droppableId==="disponibles"?r(u,t):r(e,u)}else{const u=c.droppableId==="disponibles"?[...e]:[...t],p=h.droppableId==="disponibles"?[...e]:[...t],[m]=u.splice(c.index,1);p.splice(h.index,0,m),c.droppableId==="disponibles"?r(u,p):r(p,u)}},f=(d,c,h)=>n.jsxs(me,{span:12,children:[n.jsx(Zn,{level:4,style:{marginBottom:16,fontSize:14},children:c}),n.jsx(ye.Droppable,{droppableId:d,children:(u,p)=>n.jsxs("div",{ref:u.innerRef,...u.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[h.length===0?n.jsx(a.Empty,{description:i,style:{opacity:.3}}):h.map((m,x)=>n.jsx(ye.Draggable,{draggableId:m.id,index:x,children:(y,w)=>n.jsx("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:{marginBottom:8,cursor:w.isDragging?"grabbing":"grab",opacity:w.isDragging?.8:1,transform:w.isDragging?"rotate(3deg)":"none",...y.draggableProps.style},children:n.jsx(Dt,{size:"small",style:{boxShadow:w.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:m.content})})},m.id)),u.placeholder]})})]});return n.jsx(ye.DragDropContext,{onDragEnd:l,children:n.jsxs(He,{gutter:16,style:{margin:"24px 0"},children:[f("disponibles",o,e),f("seleccionados",s,t)]})})},Jn=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,accordion:s=!1,bordered:i=!0,collapsible:l="header",expandIcon:f,expandIconPosition:d="start",ghost:c=!1,size:h="middle",className:u,style:p})=>{const x={items:e.map(y=>({key:y.key,label:n.jsx("div",{style:{flex:1,minWidth:0,width:"100%"},children:y.header}),children:y.children,disabled:y.disabled,showArrow:y.showArrow,extra:y.extra,className:y.className,style:y.style})),defaultActiveKey:t,activeKey:r,onChange:o,accordion:s,bordered:i,collapsible:l,expandIcon:f,expandIconPosition:d,ghost:c,size:h,className:u,style:p};return n.jsx("div",{children:n.jsx(a.Collapse,{...x})})},eo=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:f=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:h,disabled:u=!1,listStyle:p,className:m,style:x,render:y,children:w,showSelectAll:E=!0,selectAllLabels:L,oneWay:B=!1,pagination:P=!1,status:g,locale:D,remotePagination:C,onPageChange:U})=>{const T=e.map(O=>({key:O.key,title:O.title,description:O.description,disabled:O.disabled||!1,chosen:O.chosen||!1})),S=o?(O,N,ee)=>o(O,N,ee):void 0,V=s?(O,N)=>s(O,N):void 0,X=i?(O,N)=>i(O,N):void 0,v=l?(O,N)=>l(O,N):void 0,M=["hp-transfer",m].filter(Boolean).join(" "),Z=!!C&&C.position!=="none",Y={dataSource:T,targetKeys:t,selectedKeys:r,onChange:S,onSelectChange:V,onSearch:X,onScroll:v,titles:f,operations:d,showSearch:c,filterOption:h?(O,N)=>h(O,N):void 0,disabled:u,listStyle:p,className:M,render:y||(O=>O.title),showSelectAll:E,selectAllLabels:L,oneWay:B,pagination:Z?!1:P,status:g,locale:D,footer:Z?({direction:O})=>{const N=(C==null?void 0:C.position)??"left";if(!(N==="both"||N==="left"&&O==="left"||N==="right"&&O==="right"))return null;const j=O==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!j)return null;const{page:z,pageSize:W,total:q}=j,K=(C==null?void 0:C.simple)??!0,Q=(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:K,current:z,total:q,pageSize:W,showSizeChanger:Q,pageSizeOptions:["5","10","20","50"],onChange:(se,ie)=>{U==null||U(O,se,ie)}})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:w?w(Y):n.jsx(a.Transfer,{...Y})})},to=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:f=["Origen","Destino"],operations:d=[">","<"],showSearch:c=!1,filterOption:h,disabled:u=!1,listStyle:p,className:m,style:x,selectAllLabels:y,oneWay:w=!1,status:E,locale:L,leftColumns:B,rightColumns:P,rowKey:g="key",tableSize:D="small",tableScroll:C,showDefaultHeaderActions:U=!0,headerActions:T=[],remotePagination:S,onPageChange:V})=>{const X=(e??[]).map(j=>({...j,key:j.key,title:j.title||j.key||String(j.key),description:j.description,disabled:j.disabled||!1,chosen:j.chosen||!1})),v=o?(j,z,W)=>o(j,z,W):void 0,M=s?(j,z)=>s(j,z):void 0,Z=i?(j,z)=>i(j,z):void 0,Y=l?(j,z)=>l(j,z):void 0,O=["hp-transfer","hp-table-transfer",m].filter(Boolean).join(" "),N=!!S&&(S.position??"left")!=="none",ee={dataSource:X,targetKeys:t,selectedKeys:r,onChange:v,onSelectChange:M,onSearch:Z,onScroll:Y,titles:f,operations:d,showSearch:c,filterOption:h,disabled:u,listStyle:p,className:O,showSelectAll:U,selectAllLabels:y,oneWay:w,pagination:!1,status:E,locale:L,footer:N?({direction:j})=>{const z=(S==null?void 0:S.position)??"left";if(!(z==="both"||z==="left"&&j==="left"||z==="right"&&j==="right"))return null;const q=j==="left"?S==null?void 0:S.left:S==null?void 0:S.right;if(!q)return null;const{page:K,pageSize:Q,total:se}=q,ie=(S==null?void 0:S.simple)??!0,ge=(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:ie,current:K,total:se,pageSize:Q,showSizeChanger:ge,pageSizeOptions:["5","10","20","50"],onChange:(R,A)=>V==null?void 0:V(j,R,A)})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:n.jsx(a.Transfer,{...ee,children:({direction:j,filteredItems:z,onItemSelect:W,onItemSelectAll:q,selectedKeys:K,disabled:Q})=>{const se=j==="left"?B:P??B,ie={getCheckboxProps:R=>({disabled:Q||R.disabled}),selectedRowKeys:K,onSelect:(R,A)=>{W(R.key,A)},hideSelectAll:!1,onChange:R=>{q(R,"replace")},selections:(()=>{const R=[];return U&&R.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const A=z.map(te=>te.key);q(A,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const A=z.map(xe=>xe.key),te=K,Lt=A.filter(xe=>!te.includes(xe));q(Lt,"replace")}}),T.forEach(A=>{R.push({key:A.key,text:A.label,onSelect:()=>{var te;(te=A.onClick)==null||te.call(A,j,K)}})}),R.length>0?R:!1})()},ge=typeof g=="function"?g:R=>R[g];return n.jsx(a.Table,{showHeader:!0,size:D,columns:se,dataSource:z,rowKey:ge,pagination:!1,rowSelection:ie,style:{pointerEvents:Q?"none":void 0,height:"100%"},onRow:R=>({onClick:()=>{if(Q||R.disabled)return;const A=!K.includes(R.key);W(R.key,A)}}),scroll:C})}})})},ro=({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),f=(()=>{const d=t.pagination;return d&&{size:"small",showTotal:(c,h)=>`${h[1]-h[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(_e,{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:f,renderItem:(d,c)=>{const h=t.renderItem(d);return n.jsx(a.List.Item,{actions:h.actions,children:n.jsx(a.List.Item.Meta,{title:h.title,description:h.description})},l(d,c))}})})})]})})},Rt=({count:e=0,overflowCount:t=99,dot:r=!1,color:o,size:s="default",icon:i,useButton:l=!1,buttonType:f="text",buttonShape:d="circle",onClick:c,style:h,containerStyle:u,showZero:p=!1,offset:m,className:x,disabled:y=!1})=>{const w=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},E=i||n.jsx(Ne,{style:{fontSize:w(),...u}}),L=l?n.jsx(a.Button,{type:f,icon:E,shape:d,onClick:c,style:u,disabled:y,className:x}):n.jsx("span",{onClick:c,style:{cursor:c?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...u},className:x,children:E});return n.jsx(a.Badge,{count:e,overflowCount:t,dot:r,color:o,showZero:p,offset:m,style:h,children:L})},no=({count:e,notifications:t=[],icon:r,size:o="default",useButton:s=!1,buttonType:i="text",onNotificationClick:l,onLoadMore:f,hasMore:d=!1,loading:c=!1,renderNotification:h,loadMoreText:u="Cargar más",emptyText:p="No hay notificaciones",popoverWidth:m=380,overflowCount:x=99,badgeColor:y,showZero:w=!1,containerStyle:E,popoverTitle:L="Notificaciones",onOpenChange:B,headerAction:P,maxHeight:g=400,placement:D="bottomRight"})=>{const[C,U]=k.useState(!1),T=v=>{U(v),B==null||B(v)},S=v=>{l==null||l(v)},V=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:M=>{M.currentTarget.style.backgroundColor=v.read?"#fafafa":"#e6f4ff"},onMouseLeave:M=>{M.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((M,Z)=>n.jsx(a.Button,{type:M.type||"default",size:M.size||"small",icon:M.icon,danger:M.danger,disabled:M.disabled,onClick:Y=>{Y.stopPropagation(),M.onClick(v)},children:M.label},Z))})]}),X=n.jsxs("div",{style:{width:m},children:[P&&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:L}),P]}),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:()=>S(v),children:h?h(v):V(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:u,onClick:f||(()=>{}),loading:c,icon:c?n.jsx(jt,{}):void 0,style:{width:"100%"}})})]})]});return n.jsx(a.Popover,{content:X,title:P?null:L,trigger:"click",open:C,onOpenChange:T,placement:D,overlayStyle:{maxWidth:m+48},children:n.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:n.jsx(Rt,{count:e!==void 0?e:t.filter(v=>!v.read).length,icon:r||n.jsx(Ne,{}),size:o,useButton:s,buttonType:i,overflowCount:x,color:y,showZero:w,containerStyle:E})})})};function It({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,style:i,className:l,...f}){const d=e.map((c,h)=>s(c,h));return n.jsx(a.Timeline,{mode:t,reverse:r,pending:o,items:d,style:{fontFamily:"var(--font-family, inherit)",...i},className:l,...f})}const oo=({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,showExpediente:i=!1,showUsuario:l=!0,showFlujo:f=!1,dateFormatter:d,style:c,className:h,...u})=>{const p=x=>{if(d)return d(x);try{return new Date(x).toLocaleString("es-ES",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return x}},m=x=>({label:n.jsx("span",{style:{fontWeight:"500"},children:p(x.Fecha)}),children:n.jsxs("div",{style:{paddingBottom:"8px"},children:[i&&x.CodigoExpediente&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Expediente:"})," ",x.CodigoExpediente]}),f&&x.DescripcionFlujo&&n.jsxs("div",{style:{marginBottom:"4px"},children:[n.jsx("strong",{children:"Flujo:"})," ",x.DescripcionFlujo]}),l&&x.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:"})," ",x.NombreUsuario]}),n.jsx("div",{style:{marginTop:"8px"},children:x.Mensaje})]}),color:x.color||"blue",dot:x.dot});return n.jsx(It,{data:e,mode:t,reverse:r,pending:o,renderItem:s||m,style:c,className:h,...u})},so=({className:e,...t})=>n.jsx("div",{className:`custom-carousel-wrapper ${e||""}`,children:n.jsx(a.Carousel,{...t})}),io=e=>n.jsx(a.Empty,{...e}),ao=({className:e,style:t,...r},o)=>n.jsx(a.List,{ref:o,className:`${e}`,style:t,...r}),Le=k.forwardRef(ao);Le.Item=a.List.Item;Le.ItemMeta=a.List.Item.Meta;const _t=k.createContext(null),lo=()=>{const e=k.useContext(_t);if(!e)throw new Error("useFeedback() debe usarse dentro de <FeedbackProvider>. Asegúrate de que FeedbackProvider envuelve tu árbol de componentes.");return e},co=({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(_t.Provider,{value:i,children:e})},Ht=({children:e,onReady:t})=>n.jsx(a.App,{children:n.jsx(co,{onReady:t,children:e})}),uo={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"},fo=({children:e,customTokens:t={}})=>{const r={...uo,...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(Ht,{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})})})},ho={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:mo}=a.Tree,po=({style:e,...t})=>n.jsx(a.Tree,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),go=({style:e,...t})=>n.jsx(mo,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),xo=({count:e,dot:t=!1,overflowCount:r=99,showZero:o=!1,size:s="default",status:i,text:l,color:f,offset:d,children:c,style:h,className:u,...p})=>n.jsx(a.Badge,{count:e,dot:t,overflowCount:r,showZero:o,size:s,status:i,text:l,color:f,offset:d,style:{fontSize:"var(--font-size-medium)",...h},className:u,...p,children:c}),yo=({src:e,width:t,height:r,alt:o="",fallback:s,placeholder:i,preview:l=!0,style:f,className:d,...c})=>n.jsx(a.Image,{src:e,width:t,height:r,alt:o,fallback:s,placeholder:i,preview:l,style:f,className:d,...c}),vo=({children:e,preview:t,items:r,fallback:o})=>n.jsx(a.Image.PreviewGroup,{preview:t,items:r,fallback:o,children:e});exports.Accordion=Jn;exports.Alert=Vt;exports.Avatar=Yt;exports.AvatarGroup=Wt;exports.Badge=xo;exports.Button=G;exports.Calendar=qn;exports.Card=Dt;exports.Carousel=so;exports.CheckBox=Je;exports.ClearOutlined=ce;exports.CloseOutlined=gt;exports.Col=me;exports.CustomFilterDrawer=Ln;exports.CustomFilterDrawerHp=Fn;exports.DatePicker=fe;exports.DeleteOutlined=xt;exports.DirectoryTree=go;exports.Divider=sr;exports.DragAndDrop=Qn;exports.Drawer=ir;exports.Dropdown=Mt;exports.EditOutlined=Ee;exports.Empty=io;exports.FeedbackProvider=Ht;exports.FileExcelOutlined=yt;exports.FilePdfOutlined=vt;exports.FilterOutlined=De;exports.FilterToolbar=wn;exports.FloatButton=Ie;exports.Form=oe;exports.Image=yo;exports.ImagePreviewGroup=vo;exports.Input=Re;exports.InputSwitch=kn;exports.LibraryThemeProvider=fo;exports.List=Le;exports.Menu=de;exports.Message=ho;exports.Modal=zt;exports.Notification=On;exports.NotificationBadge=Rt;exports.NotificationDropdown=no;exports.NumericInput=kt;exports.Pagination=Nn;exports.Password=jn;exports.PlusOutlined=Me;exports.Progress=En;exports.Radio=Nt;exports.RadioGroup=Tn;exports.RelationSelector=ro;exports.RichTextEditor=Xn;exports.Row=He;exports.Search=Sn;exports.SearchOutlined=St;exports.Select=Ot;exports.Skeleton=zn;exports.Space=An;exports.Spin=_e;exports.SubToolbar=Rn;exports.Table=Et;exports.TableTransfer=to;exports.Tabs=Dn;exports.Tag=$n;exports.TextArea=Cn;exports.Timeline=It;exports.TimelineWithDefaults=oo;exports.Toolbar=Mn;exports.Tooltip=Tt;exports.Transfer=eo;exports.Tree=po;exports.Upload=In;exports.UploadDragger=Hn;exports.useFeedback=lo;
|
package/dist/my-library.es.js
CHANGED
|
@@ -190,12 +190,12 @@ function B(e) {
|
|
|
190
190
|
}
|
|
191
191
|
return e;
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var Ge = {
|
|
194
194
|
yearFormat: "YYYY",
|
|
195
195
|
dayFormat: "D",
|
|
196
196
|
cellMeridiemFormat: "A",
|
|
197
197
|
monthBeforeYear: !0
|
|
198
|
-
}, Dr = B(B({},
|
|
198
|
+
}, Dr = B(B({}, Ge), {}, {
|
|
199
199
|
locale: "es_ES",
|
|
200
200
|
today: "Hoy",
|
|
201
201
|
now: "Ahora",
|
|
@@ -232,7 +232,7 @@ const Ir = {
|
|
|
232
232
|
}, Dr),
|
|
233
233
|
timePickerLocale: Object.assign({}, Ir)
|
|
234
234
|
};
|
|
235
|
-
var Mr = B(B({},
|
|
235
|
+
var Mr = B(B({}, Ge), {}, {
|
|
236
236
|
locale: "en_US",
|
|
237
237
|
today: "Today",
|
|
238
238
|
now: "Now",
|
|
@@ -277,7 +277,7 @@ const _r = {
|
|
|
277
277
|
}, Mr),
|
|
278
278
|
timePickerLocale: Object.assign({}, _r)
|
|
279
279
|
};
|
|
280
|
-
var Lr = B(B({},
|
|
280
|
+
var Lr = B(B({}, Ge), {}, {
|
|
281
281
|
locale: "pt_BR",
|
|
282
282
|
today: "Hoje",
|
|
283
283
|
now: "Agora",
|
|
@@ -471,7 +471,7 @@ var De = { exports: {} };
|
|
|
471
471
|
http://jedwatson.github.io/classnames
|
|
472
472
|
*/
|
|
473
473
|
var rt;
|
|
474
|
-
function
|
|
474
|
+
function Gr() {
|
|
475
475
|
return rt || (rt = 1, function(e) {
|
|
476
476
|
(function() {
|
|
477
477
|
var t = {}.hasOwnProperty;
|
|
@@ -503,8 +503,8 @@ function qr() {
|
|
|
503
503
|
})();
|
|
504
504
|
}(De)), De.exports;
|
|
505
505
|
}
|
|
506
|
-
var
|
|
507
|
-
const Ur = /* @__PURE__ */ Wr(
|
|
506
|
+
var qr = Gr();
|
|
507
|
+
const Ur = /* @__PURE__ */ Wr(qr), M = Math.round;
|
|
508
508
|
function Ie(e, t) {
|
|
509
509
|
const r = e.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = r.map((i) => parseFloat(i));
|
|
510
510
|
for (let i = 0; i < 3; i += 1)
|
|
@@ -918,7 +918,7 @@ function Ft() {
|
|
|
918
918
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
919
919
|
return t ? t.startsWith("data-") ? t : "data-".concat(t) : rn;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function qe(e) {
|
|
922
922
|
if (e.attachTo)
|
|
923
923
|
return e.attachTo;
|
|
924
924
|
var t = document.querySelector("head");
|
|
@@ -938,7 +938,7 @@ function $t(e) {
|
|
|
938
938
|
return null;
|
|
939
939
|
var r = t.csp, n = t.prepend, i = t.priority, a = i === void 0 ? 0 : i, s = nn(n), u = s === "prependQueue", c = document.createElement("style");
|
|
940
940
|
c.setAttribute(lt, s), u && a && c.setAttribute(ct, "".concat(a)), r != null && r.nonce && (c.nonce = r == null ? void 0 : r.nonce), c.innerHTML = e;
|
|
941
|
-
var l =
|
|
941
|
+
var l = qe(t), f = l.firstChild;
|
|
942
942
|
if (n) {
|
|
943
943
|
if (u) {
|
|
944
944
|
var d = (t.styles || Ue(l)).filter(function(p) {
|
|
@@ -956,7 +956,7 @@ function $t(e) {
|
|
|
956
956
|
return c;
|
|
957
957
|
}
|
|
958
958
|
function on(e) {
|
|
959
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r =
|
|
959
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = qe(t);
|
|
960
960
|
return (t.styles || Ue(r)).find(function(n) {
|
|
961
961
|
return n.getAttribute(Ft(t)) === e;
|
|
962
962
|
});
|
|
@@ -969,7 +969,7 @@ function an(e, t) {
|
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
971
|
function sn(e, t) {
|
|
972
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n =
|
|
972
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = qe(r), i = Ue(n), a = B(B({}, r), {}, {
|
|
973
973
|
styles: i
|
|
974
974
|
});
|
|
975
975
|
an(n, a);
|
|
@@ -1275,15 +1275,15 @@ var Yn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
1275
1275
|
ref: r,
|
|
1276
1276
|
icon: Yn
|
|
1277
1277
|
}));
|
|
1278
|
-
},
|
|
1279
|
-
process.env.NODE_ENV !== "production" && (
|
|
1280
|
-
var
|
|
1278
|
+
}, Gt = /* @__PURE__ */ x.forwardRef(Wn);
|
|
1279
|
+
process.env.NODE_ENV !== "production" && (Gt.displayName = "FilterOutlined");
|
|
1280
|
+
var Gn = { 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" }, qn = function(t, r) {
|
|
1281
1281
|
return /* @__PURE__ */ x.createElement(H, _({}, t, {
|
|
1282
1282
|
ref: r,
|
|
1283
|
-
icon:
|
|
1283
|
+
icon: Gn
|
|
1284
1284
|
}));
|
|
1285
|
-
},
|
|
1286
|
-
process.env.NODE_ENV !== "production" && (
|
|
1285
|
+
}, qt = /* @__PURE__ */ x.forwardRef(qn);
|
|
1286
|
+
process.env.NODE_ENV !== "production" && (qt.displayName = "InboxOutlined");
|
|
1287
1287
|
var Un = { 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" }, Kn = function(t, r) {
|
|
1288
1288
|
return /* @__PURE__ */ x.createElement(H, _({}, t, {
|
|
1289
1289
|
ref: r,
|
|
@@ -1360,7 +1360,7 @@ const Qt = ce.forwardRef(
|
|
|
1360
1360
|
)
|
|
1361
1361
|
);
|
|
1362
1362
|
Qt.displayName = "CustomInput";
|
|
1363
|
-
const
|
|
1363
|
+
const Go = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
1364
1364
|
e && /* @__PURE__ */ m(
|
|
1365
1365
|
"label",
|
|
1366
1366
|
{
|
|
@@ -1386,7 +1386,7 @@ const qo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style
|
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
)
|
|
1389
|
-
] }),
|
|
1389
|
+
] }), qo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{
|
|
1392
1392
|
style: {
|
|
@@ -1421,20 +1421,30 @@ const qo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style
|
|
|
1421
1421
|
)
|
|
1422
1422
|
]
|
|
1423
1423
|
}
|
|
1424
|
-
), Uo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column"
|
|
1424
|
+
), Uo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column" }, className: "custom-search-input-wrapper", children: [
|
|
1425
1425
|
/* @__PURE__ */ o("style", { children: `
|
|
1426
|
-
.custom-search-input-wrapper .ant-input-
|
|
1427
|
-
height:
|
|
1428
|
-
|
|
1429
|
-
align-items: center;
|
|
1430
|
-
justify-content: center;
|
|
1426
|
+
.custom-search-input-wrapper .ant-input-group-wrapper {
|
|
1427
|
+
height: var(--input-height, 25px);
|
|
1428
|
+
vertical-align: top;
|
|
1431
1429
|
}
|
|
1432
|
-
|
|
1433
|
-
/* Evitamos que el wrapper afecte el input base */
|
|
1434
1430
|
.custom-search-input-wrapper .ant-input-wrapper,
|
|
1435
1431
|
.custom-search-input-wrapper .ant-input-group,
|
|
1436
1432
|
.custom-search-input-wrapper .ant-input-group-addon {
|
|
1437
1433
|
height: 100%;
|
|
1434
|
+
vertical-align: middle;
|
|
1435
|
+
}
|
|
1436
|
+
.custom-search-input-wrapper .ant-input {
|
|
1437
|
+
height: 100% !important;
|
|
1438
|
+
box-sizing: border-box;
|
|
1439
|
+
}
|
|
1440
|
+
.custom-search-input-wrapper .ant-input-search-button {
|
|
1441
|
+
height: 100% !important;
|
|
1442
|
+
display: flex;
|
|
1443
|
+
align-items: center;
|
|
1444
|
+
justify-content: center;
|
|
1445
|
+
padding-top: 0;
|
|
1446
|
+
padding-bottom: 0;
|
|
1447
|
+
box-sizing: border-box;
|
|
1438
1448
|
}
|
|
1439
1449
|
` }),
|
|
1440
1450
|
e && /* @__PURE__ */ m(
|
|
@@ -1458,8 +1468,8 @@ const qo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style
|
|
|
1458
1468
|
...r,
|
|
1459
1469
|
style: {
|
|
1460
1470
|
...r.style,
|
|
1461
|
-
fontSize: "var(--font-size-medium)"
|
|
1462
|
-
|
|
1471
|
+
fontSize: "var(--font-size-medium)"
|
|
1472
|
+
// Removido height inline para que use el CSS de la clase y no rompa en el host
|
|
1463
1473
|
}
|
|
1464
1474
|
}
|
|
1465
1475
|
)
|
|
@@ -1628,7 +1638,7 @@ const qo = ({ label: e, required: t, ...r }) => /* @__PURE__ */ m("div", { style
|
|
|
1628
1638
|
U,
|
|
1629
1639
|
{
|
|
1630
1640
|
size: "small",
|
|
1631
|
-
icon: /* @__PURE__ */ o(
|
|
1641
|
+
icon: /* @__PURE__ */ o(Gt, {}),
|
|
1632
1642
|
onClick: s,
|
|
1633
1643
|
style: { border: "none", background: "none" }
|
|
1634
1644
|
}
|
|
@@ -2387,7 +2397,7 @@ const Qo = (e) => /* @__PURE__ */ o(Ve.Group, { ...e }), Jo = ({ loadingText: e,
|
|
|
2387
2397
|
hint: t = "Soporta archivos individuales",
|
|
2388
2398
|
...r
|
|
2389
2399
|
}) => /* @__PURE__ */ m(fo, { ...r, children: [
|
|
2390
|
-
/* @__PURE__ */ o("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ o(
|
|
2400
|
+
/* @__PURE__ */ o("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ o(qt, {}) }),
|
|
2391
2401
|
/* @__PURE__ */ o("p", { className: "ant-upload-text", children: e }),
|
|
2392
2402
|
/* @__PURE__ */ o("p", { className: "ant-upload-hint", children: t })
|
|
2393
2403
|
] }), si = ({
|
|
@@ -2819,8 +2829,8 @@ const Co = [
|
|
|
2819
2829
|
if (W <= C)
|
|
2820
2830
|
N.ops.splice(z, 1), C -= W;
|
|
2821
2831
|
else {
|
|
2822
|
-
const
|
|
2823
|
-
N.ops[z] = { insert: Y.insert.substring(0,
|
|
2832
|
+
const q = W - C;
|
|
2833
|
+
N.ops[z] = { insert: Y.insert.substring(0, q) }, C = 0;
|
|
2824
2834
|
}
|
|
2825
2835
|
}
|
|
2826
2836
|
z--;
|
|
@@ -2856,7 +2866,7 @@ const Co = [
|
|
|
2856
2866
|
borderRadius: "6px",
|
|
2857
2867
|
backgroundColor: "#ffffff",
|
|
2858
2868
|
...y.style
|
|
2859
|
-
},
|
|
2869
|
+
}, G = {
|
|
2860
2870
|
height: "100%",
|
|
2861
2871
|
display: "flex",
|
|
2862
2872
|
flexDirection: "column"
|
|
@@ -2878,7 +2888,7 @@ const Co = [
|
|
|
2878
2888
|
modules: D,
|
|
2879
2889
|
formats: g,
|
|
2880
2890
|
placeholder: r,
|
|
2881
|
-
style:
|
|
2891
|
+
style: G,
|
|
2882
2892
|
...y
|
|
2883
2893
|
}
|
|
2884
2894
|
),
|
|
@@ -3072,7 +3082,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3072
3082
|
locale: D,
|
|
3073
3083
|
// NUEVAS
|
|
3074
3084
|
remotePagination: S,
|
|
3075
|
-
onPageChange:
|
|
3085
|
+
onPageChange: G
|
|
3076
3086
|
}) => {
|
|
3077
3087
|
const T = e.map((O) => ({
|
|
3078
3088
|
key: O.key,
|
|
@@ -3109,19 +3119,19 @@ const { Title: wo } = ur, hi = ({
|
|
|
3109
3119
|
if (!(N === "both" || N === "left" && O === "left" || N === "right" && O === "right")) return null;
|
|
3110
3120
|
const C = O === "left" ? S == null ? void 0 : S.left : S == null ? void 0 : S.right;
|
|
3111
3121
|
if (!C) return null;
|
|
3112
|
-
const { page: z, pageSize: Y, total: W } = C,
|
|
3122
|
+
const { page: z, pageSize: Y, total: W } = C, q = (S == null ? void 0 : S.simple) ?? !0, J = (S == null ? void 0 : S.showSizeChanger) ?? !0;
|
|
3113
3123
|
return /* @__PURE__ */ o("div", { style: { padding: "6px 10px", borderTop: "1px solid #f0f0f0" }, children: /* @__PURE__ */ o(
|
|
3114
3124
|
Ye,
|
|
3115
3125
|
{
|
|
3116
3126
|
size: "small",
|
|
3117
|
-
simple:
|
|
3127
|
+
simple: q,
|
|
3118
3128
|
current: z,
|
|
3119
3129
|
total: W,
|
|
3120
3130
|
pageSize: Y,
|
|
3121
3131
|
showSizeChanger: J,
|
|
3122
3132
|
pageSizeOptions: ["5", "10", "20", "50"],
|
|
3123
3133
|
onChange: (ue, fe) => {
|
|
3124
|
-
|
|
3134
|
+
G == null || G(O, ue, fe);
|
|
3125
3135
|
}
|
|
3126
3136
|
}
|
|
3127
3137
|
) });
|
|
@@ -3158,7 +3168,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3158
3168
|
tableSize: D = "small",
|
|
3159
3169
|
tableScroll: S,
|
|
3160
3170
|
// Props para controlar el dropdown del header de la tabla
|
|
3161
|
-
showDefaultHeaderActions:
|
|
3171
|
+
showDefaultHeaderActions: G = !0,
|
|
3162
3172
|
headerActions: T = [],
|
|
3163
3173
|
// Paginación remota
|
|
3164
3174
|
remotePagination: w,
|
|
@@ -3193,7 +3203,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3193
3203
|
listStyle: p,
|
|
3194
3204
|
className: O,
|
|
3195
3205
|
// Controlar si mostrar el checkbox de la barra superior del Transfer
|
|
3196
|
-
showSelectAll:
|
|
3206
|
+
showSelectAll: G,
|
|
3197
3207
|
selectAllLabels: v,
|
|
3198
3208
|
oneWay: k,
|
|
3199
3209
|
// anulamos paginación interna; la remota va en footer
|
|
@@ -3206,13 +3216,13 @@ const { Title: wo } = ur, hi = ({
|
|
|
3206
3216
|
if (!(z === "both" || z === "left" && C === "left" || z === "right" && C === "right")) return null;
|
|
3207
3217
|
const W = C === "left" ? w == null ? void 0 : w.left : w == null ? void 0 : w.right;
|
|
3208
3218
|
if (!W) return null;
|
|
3209
|
-
const { page:
|
|
3219
|
+
const { page: q, pageSize: J, total: ue } = W, fe = (w == null ? void 0 : w.simple) ?? !0, Ze = (w == null ? void 0 : w.showSizeChanger) ?? !0;
|
|
3210
3220
|
return /* @__PURE__ */ o("div", { style: { padding: "6px 10px", borderTop: "1px solid #f0f0f0" }, children: /* @__PURE__ */ o(
|
|
3211
3221
|
Ye,
|
|
3212
3222
|
{
|
|
3213
3223
|
size: "small",
|
|
3214
3224
|
simple: fe,
|
|
3215
|
-
current:
|
|
3225
|
+
current: q,
|
|
3216
3226
|
total: ue,
|
|
3217
3227
|
pageSize: J,
|
|
3218
3228
|
showSizeChanger: Ze,
|
|
@@ -3227,14 +3237,14 @@ const { Title: wo } = ur, hi = ({
|
|
|
3227
3237
|
filteredItems: z,
|
|
3228
3238
|
onItemSelect: Y,
|
|
3229
3239
|
onItemSelectAll: W,
|
|
3230
|
-
selectedKeys:
|
|
3240
|
+
selectedKeys: q,
|
|
3231
3241
|
disabled: J
|
|
3232
3242
|
}) => {
|
|
3233
3243
|
const ue = C === "left" ? F : j ?? F, fe = {
|
|
3234
3244
|
getCheckboxProps: (R) => ({
|
|
3235
3245
|
disabled: J || R.disabled
|
|
3236
3246
|
}),
|
|
3237
|
-
selectedRowKeys:
|
|
3247
|
+
selectedRowKeys: q,
|
|
3238
3248
|
// Checkbox individual
|
|
3239
3249
|
onSelect: (R, $) => {
|
|
3240
3250
|
Y(R.key, $);
|
|
@@ -3248,7 +3258,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3248
3258
|
// Configuración del dropdown de acciones solo si hay acciones
|
|
3249
3259
|
selections: (() => {
|
|
3250
3260
|
const R = [];
|
|
3251
|
-
return
|
|
3261
|
+
return G && R.push(
|
|
3252
3262
|
{
|
|
3253
3263
|
key: "select-all-data",
|
|
3254
3264
|
text: "Select all data",
|
|
@@ -3261,7 +3271,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3261
3271
|
key: "invert-current-page",
|
|
3262
3272
|
text: "Invert current page",
|
|
3263
3273
|
onSelect: () => {
|
|
3264
|
-
const $ = z.map((Ee) => Ee.key), oe =
|
|
3274
|
+
const $ = z.map((Ee) => Ee.key), oe = q, or = $.filter(
|
|
3265
3275
|
(Ee) => !oe.includes(Ee)
|
|
3266
3276
|
);
|
|
3267
3277
|
W(or, "replace");
|
|
@@ -3273,7 +3283,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3273
3283
|
text: $.label,
|
|
3274
3284
|
onSelect: () => {
|
|
3275
3285
|
var oe;
|
|
3276
|
-
(oe = $.onClick) == null || oe.call($, C,
|
|
3286
|
+
(oe = $.onClick) == null || oe.call($, C, q);
|
|
3277
3287
|
}
|
|
3278
3288
|
});
|
|
3279
3289
|
}), R.length > 0 ? R : !1;
|
|
@@ -3296,7 +3306,7 @@ const { Title: wo } = ur, hi = ({
|
|
|
3296
3306
|
onRow: (R) => ({
|
|
3297
3307
|
onClick: () => {
|
|
3298
3308
|
if (J || R.disabled) return;
|
|
3299
|
-
const $ = !
|
|
3309
|
+
const $ = !q.includes(
|
|
3300
3310
|
R.key
|
|
3301
3311
|
);
|
|
3302
3312
|
Y(R.key, $);
|
|
@@ -3526,8 +3536,8 @@ const { Title: wo } = ur, hi = ({
|
|
|
3526
3536
|
maxHeight: g = 400,
|
|
3527
3537
|
placement: D = "bottomRight"
|
|
3528
3538
|
}) => {
|
|
3529
|
-
const [S,
|
|
3530
|
-
|
|
3539
|
+
const [S, G] = We(!1), T = (b) => {
|
|
3540
|
+
G(b), F == null || F(b);
|
|
3531
3541
|
}, w = (b) => {
|
|
3532
3542
|
s == null || s(b);
|
|
3533
3543
|
}, P = (b) => /* @__PURE__ */ m(
|
|
@@ -4103,7 +4113,7 @@ export {
|
|
|
4103
4113
|
No as FeedbackProvider,
|
|
4104
4114
|
An as FileExcelOutlined,
|
|
4105
4115
|
Vn as FilePdfOutlined,
|
|
4106
|
-
|
|
4116
|
+
Gt as FilterOutlined,
|
|
4107
4117
|
Ko as FilterToolbar,
|
|
4108
4118
|
Jt as FloatButton,
|
|
4109
4119
|
be as Form,
|
|
@@ -4121,7 +4131,7 @@ export {
|
|
|
4121
4131
|
vi as NotificationDropdown,
|
|
4122
4132
|
io as NumericInput,
|
|
4123
4133
|
ei as Pagination,
|
|
4124
|
-
|
|
4134
|
+
Go as Password,
|
|
4125
4135
|
Kt as PlusOutlined,
|
|
4126
4136
|
ti as Progress,
|
|
4127
4137
|
co as Radio,
|
|
@@ -4140,7 +4150,7 @@ export {
|
|
|
4140
4150
|
gi as TableTransfer,
|
|
4141
4151
|
ri as Tabs,
|
|
4142
4152
|
di as Tag,
|
|
4143
|
-
|
|
4153
|
+
qo as TextArea,
|
|
4144
4154
|
Oo as Timeline,
|
|
4145
4155
|
bi as TimelineWithDefaults,
|
|
4146
4156
|
ni as Toolbar,
|