helppeople-ui 1.12.5 → 1.12.6
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 +4 -4
- package/dist/my-library.es.js +1 -1
- 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 Pe;function vr(){return Pe||(Pe=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(i=s(i,o(d)))}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 d in i)t.call(i,d)&&i[d]&&(l=s(l,d));return l}function s(i,l){return l?i?i+" "+l:i+l:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(be)),be.exports}var br=vr();const jr=xr(br),H=Math.round;function je(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=t(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Ve=(e,t,r)=>r===0?e:e/100;function ae(e,t){const r=t||255;return e>r?r:e<0?0:e}class re{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):s("rgb")?this.fromRgbString(o):s("hsl")?this.fromHslString(o):(s("hsv")||s("hsb"))&&this.fromHsvString(o)}else if(t instanceof re)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=ae(t.r),this.g=ae(t.g),this.b=ae(t.b),this.a=typeof t.a=="number"?ae(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=t(this.r),o=t(this.g),s=t(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-t/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+t/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(t,r=50){const o=this._c(t),s=r/100,i=d=>(o[d]-this[d])*s+this[d],l={r:H(i("r")),g:H(i("g")),b:H(i("b")),a:H(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),o=this.a+r.a*(1-this.a),s=i=>H((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(t+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=H(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=H(this.getSaturation()*100),o=H(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,o){const s=this.clone();return s[t]=ae(r,o),s}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function o(s,i){return parseInt(r[s]+r[i||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:s}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const p=H(o*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,d=0;const u=t/60,c=(1-Math.abs(2*o-1))*r,m=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,l=m):u>=1&&u<2?(i=m,l=c):u>=2&&u<3?(l=c,d=m):u>=3&&u<4?(l=m,d=c):u>=4&&u<5?(i=m,d=c):u>=5&&u<6&&(i=c,d=m);const f=o-c/2;this.r=H((i+f)*255),this.g=H((l+f)*255),this.b=H((d+f)*255)}fromHsv({h:t,s:r,v:o,a:s}){this._h=t%360,this._s=r,this._v=o,this.a=typeof s=="number"?s:1;const i=H(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,d=Math.floor(l),u=l-d,c=H(o*(1-r)*255),m=H(o*(1-r*u)*255),f=H(o*(1-r*(1-u))*255);switch(d){case 0:this.g=f,this.b=c;break;case 1:this.r=m,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=m;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=m;break}}fromHsvString(t){const r=je(t,Ve);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=je(t,Ve);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=je(t,(o,s)=>s.includes("%")?H(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var ue=2,Ye=.16,Cr=.05,wr=.05,Sr=.15,ct=5,dt=4,kr=[{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 We(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 qe(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-Ye*t:t===dt?o=e.s+Ye:o=e.s+Cr*t,o>1&&(o=1),r&&t===ct&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function Ge(e,t,r){var o;return r?o=e.v+wr*t:o=e.v-Sr*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Or(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new re(e),s=o.toHsv(),i=ct;i>0;i-=1){var l=new re({h:We(s,i,!0),s:qe(s,i,!0),v:Ge(s,i,!0)});r.push(l)}r.push(o);for(var d=1;d<=dt;d+=1){var u=new re({h:We(s,d),s:qe(s,d),v:Ge(s,d)});r.push(u)}return t.theme==="dark"?kr.map(function(c){var m=c.index,f=c.amount;return new re(t.backgroundColor||"#141414").mix(r[m],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ce=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ce.primary=Ce[5];function Tr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zr(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 Ue="data-rc-order",Ke="data-rc-priority",Er="rc-util-key",we=new Map;function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Er}function Te(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Nr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ze(e){return Array.from((we.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ft(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Tr())return null;var r=t.csp,o=t.prepend,s=t.priority,i=s===void 0?0:s,l=Nr(o),d=l==="prependQueue",u=document.createElement("style");u.setAttribute(Ue,l),d&&i&&u.setAttribute(Ke,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var c=Te(t),m=c.firstChild;if(o){if(d){var f=(t.styles||ze(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Ue)))return!1;var h=Number(p.getAttribute(Ke)||0);return i>=h});if(f.length)return c.insertBefore(u,f[f.length-1].nextSibling),u}c.insertBefore(u,m)}else c.appendChild(u);return u}function Mr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Te(t);return(t.styles||ze(r)).find(function(o){return o.getAttribute(ut(t))===e})}function Dr(e,t){var r=we.get(e);if(!r||!zr(document,r)){var o=ft("",t),s=o.parentNode;we.set(e,s),e.removeChild(o)}}function Rr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Te(r),s=ze(o),i=A(A({},r),{},{styles:s});Dr(o,i);var l=Mr(t,i);if(l){var d,u;if((d=i.csp)!==null&&d!==void 0&&d.nonce&&l.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;l.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=ft(e,i);return m.setAttribute(ut(i),t),m}function ht(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ir(e){return ht(e)instanceof ShadowRoot}function _r(e){return Ir(e)?ht(e):null}var Se={},Ee=[],Hr=function(t){Ee.push(t)};function Fr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ee.reduce(function(o,s){return s(o??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Br(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ee.reduce(function(o,s){return s(o??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Lr(){Se={}}function mt(e,t,r){!t&&!Se[r]&&(e(!1,r),Se[r]=!0)}function pe(e,t){mt(Fr,e,t)}function Ar(e,t){mt(Br,e,t)}pe.preMessage=Hr;pe.resetWarned=Lr;pe.noteOnce=Ar;function $r(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Pr(e,t){pe(e,"[@ant-design/icons] ".concat(t))}function Xe(e){return ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ee(e.icon)==="object"||typeof e.icon=="function")}function Ze(){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 ke(e,t,r){return r?k.createElement(e.tag,A(A({key:t},Ze(e.attrs)),r),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))})):k.createElement(e.tag,A({key:t},Ze(e.attrs)),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))}))}function pt(e){return Or(e)[0]}function gt(e){return e?Array.isArray(e)?e:[e]:[]}var Vr=`
|
|
12
|
+
*/var Pe;function vr(){return Pe||(Pe=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(i=s(i,o(d)))}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 d in i)t.call(i,d)&&i[d]&&(l=s(l,d));return l}function s(i,l){return l?i?i+" "+l:i+l:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(be)),be.exports}var br=vr();const jr=xr(br),H=Math.round;function je(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=t(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Ve=(e,t,r)=>r===0?e:e/100;function ae(e,t){const r=t||255;return e>r?r:e<0?0:e}class re{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):s("rgb")?this.fromRgbString(o):s("hsl")?this.fromHslString(o):(s("hsv")||s("hsb"))&&this.fromHsvString(o)}else if(t instanceof re)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=ae(t.r),this.g=ae(t.g),this.b=ae(t.b),this.a=typeof t.a=="number"?ae(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=t(this.r),o=t(this.g),s=t(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-t/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(t=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+t/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(t,r=50){const o=this._c(t),s=r/100,i=d=>(o[d]-this[d])*s+this[d],l={r:H(i("r")),g:H(i("g")),b:H(i("b")),a:H(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),o=this.a+r.a*(1-this.a),s=i=>H((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(t+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=H(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=H(this.getSaturation()*100),o=H(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,o){const s=this.clone();return s[t]=ae(r,o),s}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function o(s,i){return parseInt(r[s]+r[i||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:s}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const p=H(o*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,d=0;const u=t/60,c=(1-Math.abs(2*o-1))*r,m=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,l=m):u>=1&&u<2?(i=m,l=c):u>=2&&u<3?(l=c,d=m):u>=3&&u<4?(l=m,d=c):u>=4&&u<5?(i=m,d=c):u>=5&&u<6&&(i=c,d=m);const f=o-c/2;this.r=H((i+f)*255),this.g=H((l+f)*255),this.b=H((d+f)*255)}fromHsv({h:t,s:r,v:o,a:s}){this._h=t%360,this._s=r,this._v=o,this.a=typeof s=="number"?s:1;const i=H(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const l=t/60,d=Math.floor(l),u=l-d,c=H(o*(1-r)*255),m=H(o*(1-r*u)*255),f=H(o*(1-r*(1-u))*255);switch(d){case 0:this.g=f,this.b=c;break;case 1:this.r=m,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=m;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=m;break}}fromHsvString(t){const r=je(t,Ve);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=je(t,Ve);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=je(t,(o,s)=>s.includes("%")?H(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var ue=2,Ye=.16,Cr=.05,wr=.05,Sr=.15,ct=5,dt=4,kr=[{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 We(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 qe(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-Ye*t:t===dt?o=e.s+Ye:o=e.s+Cr*t,o>1&&(o=1),r&&t===ct&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function Ge(e,t,r){var o;return r?o=e.v+wr*t:o=e.v-Sr*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Or(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new re(e),s=o.toHsv(),i=ct;i>0;i-=1){var l=new re({h:We(s,i,!0),s:qe(s,i,!0),v:Ge(s,i,!0)});r.push(l)}r.push(o);for(var d=1;d<=dt;d+=1){var u=new re({h:We(s,d),s:qe(s,d),v:Ge(s,d)});r.push(u)}return t.theme==="dark"?kr.map(function(c){var m=c.index,f=c.amount;return new re(t.backgroundColor||"#141414").mix(r[m],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ce=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ce.primary=Ce[5];function Tr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zr(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 Ue="data-rc-order",Ke="data-rc-priority",Nr="rc-util-key",we=new Map;function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Nr}function Te(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Er(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ze(e){return Array.from((we.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ft(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Tr())return null;var r=t.csp,o=t.prepend,s=t.priority,i=s===void 0?0:s,l=Er(o),d=l==="prependQueue",u=document.createElement("style");u.setAttribute(Ue,l),d&&i&&u.setAttribute(Ke,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var c=Te(t),m=c.firstChild;if(o){if(d){var f=(t.styles||ze(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Ue)))return!1;var h=Number(p.getAttribute(Ke)||0);return i>=h});if(f.length)return c.insertBefore(u,f[f.length-1].nextSibling),u}c.insertBefore(u,m)}else c.appendChild(u);return u}function Mr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Te(t);return(t.styles||ze(r)).find(function(o){return o.getAttribute(ut(t))===e})}function Dr(e,t){var r=we.get(e);if(!r||!zr(document,r)){var o=ft("",t),s=o.parentNode;we.set(e,s),e.removeChild(o)}}function Rr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Te(r),s=ze(o),i=A(A({},r),{},{styles:s});Dr(o,i);var l=Mr(t,i);if(l){var d,u;if((d=i.csp)!==null&&d!==void 0&&d.nonce&&l.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;l.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=ft(e,i);return m.setAttribute(ut(i),t),m}function ht(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ir(e){return ht(e)instanceof ShadowRoot}function _r(e){return Ir(e)?ht(e):null}var Se={},Ne=[],Hr=function(t){Ne.push(t)};function Fr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ne.reduce(function(o,s){return s(o??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Br(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ne.reduce(function(o,s){return s(o??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Lr(){Se={}}function mt(e,t,r){!t&&!Se[r]&&(e(!1,r),Se[r]=!0)}function pe(e,t){mt(Fr,e,t)}function Ar(e,t){mt(Br,e,t)}pe.preMessage=Hr;pe.resetWarned=Lr;pe.noteOnce=Ar;function $r(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Pr(e,t){pe(e,"[@ant-design/icons] ".concat(t))}function Xe(e){return ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ee(e.icon)==="object"||typeof e.icon=="function")}function Ze(){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 ke(e,t,r){return r?k.createElement(e.tag,A(A({key:t},Ze(e.attrs)),r),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))})):k.createElement(e.tag,A({key:t},Ze(e.attrs)),(e.children||[]).map(function(o,s){return ke(o,"".concat(t,"-").concat(e.tag,"-").concat(s))}))}function pt(e){return Or(e)[0]}function gt(e){return e?Array.isArray(e)?e:[e]:[]}var Vr=`
|
|
13
13
|
.anticon {
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
@@ -66,7 +66,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66
66
|
}
|
|
67
67
|
`,Yr=function(t){var r=k.useContext(it),o=r.csp,s=r.prefixCls,i=r.layer,l=Vr;s&&(l=l.replace(/anticon/g,s)),i&&(l="@layer ".concat(i,` {
|
|
68
68
|
`).concat(l,`
|
|
69
|
-
}`)),k.useEffect(function(){var d=t.current,u=_r(d);Rr(l,"@ant-design-icons",{prepend:!i,csp:o,attachTo:u})},[])},Wr=["icon","className","onClick","style","primaryColor","secondaryColor"],le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qr(e){var t=e.primaryColor,r=e.secondaryColor;le.primaryColor=t,le.secondaryColor=r||pt(t),le.calculated=!!r}function Gr(){return A({},le)}var ne=function(t){var r=t.icon,o=t.className,s=t.onClick,i=t.style,l=t.primaryColor,d=t.secondaryColor,u=lt(t,Wr),c=j.useRef(),m=le;if(l&&(m={primaryColor:l,secondaryColor:d||pt(l)}),Yr(c),Pr(Xe(r),"icon should be icon definiton, but got ".concat(r)),!Xe(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(m.primaryColor,m.secondaryColor)})),ke(f.icon,"svg-".concat(f.name),A(A({className:o,onClick:s,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};ne.displayName="IconReact";ne.getTwoToneColors=Gr;ne.setTwoToneColors=qr;function yt(e){var t=gt(e),r=at(t,2),o=r[0],s=r[1];return ne.setTwoToneColors({primaryColor:o,secondaryColor:s})}function Ur(){var e=ne.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Kr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yt(Ce.primary);var B=j.forwardRef(function(e,t){var r=e.className,o=e.icon,s=e.spin,i=e.rotate,l=e.tabIndex,d=e.onClick,u=e.twoToneColor,c=lt(e,Kr),m=j.useContext(it),f=m.prefixCls,p=f===void 0?"anticon":f,h=m.rootClassName,x=jr(h,p,Y(Y({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!s||o.name==="loading"),r),y=l;y===void 0&&d&&(y=-1);var O=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,M=gt(u),D=at(M,2),$=D[0],W=D[1];return j.createElement("span",F({role:"img","aria-label":o.name},c,{ref:t,tabIndex:y,onClick:d,className:x}),j.createElement(ne,{icon:o,primaryColor:$,secondaryColor:W,style:O}))});B.displayName="AntdIcon";B.getTwoToneColor=Ur;B.setTwoToneColor=yt;var Xr={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"},Zr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Xr}))},he=j.forwardRef(Zr);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"},Jr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Qr}))},Ne=j.forwardRef(Jr);process.env.NODE_ENV!=="production"&&(Ne.displayName="BellOutlined");var en={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"},tn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:en}))},ce=j.forwardRef(tn);process.env.NODE_ENV!=="production"&&(ce.displayName="ClearOutlined");var rn={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"},nn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:rn}))},xt=j.forwardRef(nn);process.env.NODE_ENV!=="production"&&(xt.displayName="CloseOutlined");var on={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"},sn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:on}))},vt=j.forwardRef(sn);process.env.NODE_ENV!=="production"&&(vt.displayName="DeleteOutlined");var an={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"},ln=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:an}))},Me=j.forwardRef(ln);process.env.NODE_ENV!=="production"&&(Me.displayName="EditOutlined");var cn={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"},dn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:cn}))},bt=j.forwardRef(dn);process.env.NODE_ENV!=="production"&&(bt.displayName="FileExcelOutlined");var un={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"},fn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:un}))},jt=j.forwardRef(fn);process.env.NODE_ENV!=="production"&&(jt.displayName="FilePdfOutlined");var hn={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"},mn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:hn}))},De=j.forwardRef(mn);process.env.NODE_ENV!=="production"&&(De.displayName="FilterOutlined");var pn={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"},gn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:pn}))},Ct=j.forwardRef(gn);process.env.NODE_ENV!=="production"&&(Ct.displayName="InboxOutlined");var yn={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"},xn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:yn}))},wt=j.forwardRef(xn);process.env.NODE_ENV!=="production"&&(wt.displayName="LoadingOutlined");var vn={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"},bn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:vn}))},Re=j.forwardRef(bn);process.env.NODE_ENV!=="production"&&(Re.displayName="PlusOutlined");var jn={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"},Cn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:jn}))},St=j.forwardRef(Cn);process.env.NODE_ENV!=="production"&&(St.displayName="SaveOutlined");var wn={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"},Sn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:wn}))},kt=j.forwardRef(Sn);process.env.NODE_ENV!=="production"&&(kt.displayName="SearchOutlined");var kn={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"},On=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:kn}))},Ot=j.forwardRef(On);process.env.NODE_ENV!=="production"&&(Ot.displayName="UploadOutlined");const Ie=k.forwardRef((e,t)=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[e.required&&n.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),n.jsx(a.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));Ie.displayName="CustomInput";const Tn=({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)"}})]}),zn=({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)"}})]}),En=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:"custom-search-input-wrapper",children:[n.jsx("style",{children:`
|
|
69
|
+
}`)),k.useEffect(function(){var d=t.current,u=_r(d);Rr(l,"@ant-design-icons",{prepend:!i,csp:o,attachTo:u})},[])},Wr=["icon","className","onClick","style","primaryColor","secondaryColor"],le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qr(e){var t=e.primaryColor,r=e.secondaryColor;le.primaryColor=t,le.secondaryColor=r||pt(t),le.calculated=!!r}function Gr(){return A({},le)}var ne=function(t){var r=t.icon,o=t.className,s=t.onClick,i=t.style,l=t.primaryColor,d=t.secondaryColor,u=lt(t,Wr),c=j.useRef(),m=le;if(l&&(m={primaryColor:l,secondaryColor:d||pt(l)}),Yr(c),Pr(Xe(r),"icon should be icon definiton, but got ".concat(r)),!Xe(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(m.primaryColor,m.secondaryColor)})),ke(f.icon,"svg-".concat(f.name),A(A({className:o,onClick:s,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};ne.displayName="IconReact";ne.getTwoToneColors=Gr;ne.setTwoToneColors=qr;function yt(e){var t=gt(e),r=at(t,2),o=r[0],s=r[1];return ne.setTwoToneColors({primaryColor:o,secondaryColor:s})}function Ur(){var e=ne.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Kr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yt(Ce.primary);var B=j.forwardRef(function(e,t){var r=e.className,o=e.icon,s=e.spin,i=e.rotate,l=e.tabIndex,d=e.onClick,u=e.twoToneColor,c=lt(e,Kr),m=j.useContext(it),f=m.prefixCls,p=f===void 0?"anticon":f,h=m.rootClassName,x=jr(h,p,Y(Y({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!s||o.name==="loading"),r),y=l;y===void 0&&d&&(y=-1);var O=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,M=gt(u),D=at(M,2),$=D[0],W=D[1];return j.createElement("span",F({role:"img","aria-label":o.name},c,{ref:t,tabIndex:y,onClick:d,className:x}),j.createElement(ne,{icon:o,primaryColor:$,secondaryColor:W,style:O}))});B.displayName="AntdIcon";B.getTwoToneColor=Ur;B.setTwoToneColor=yt;var Xr={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"},Zr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Xr}))},he=j.forwardRef(Zr);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"},Jr=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:Qr}))},Ee=j.forwardRef(Jr);process.env.NODE_ENV!=="production"&&(Ee.displayName="BellOutlined");var en={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"},tn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:en}))},ce=j.forwardRef(tn);process.env.NODE_ENV!=="production"&&(ce.displayName="ClearOutlined");var rn={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"},nn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:rn}))},xt=j.forwardRef(nn);process.env.NODE_ENV!=="production"&&(xt.displayName="CloseOutlined");var on={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"},sn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:on}))},vt=j.forwardRef(sn);process.env.NODE_ENV!=="production"&&(vt.displayName="DeleteOutlined");var an={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"},ln=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:an}))},Me=j.forwardRef(ln);process.env.NODE_ENV!=="production"&&(Me.displayName="EditOutlined");var cn={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"},dn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:cn}))},bt=j.forwardRef(dn);process.env.NODE_ENV!=="production"&&(bt.displayName="FileExcelOutlined");var un={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"},fn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:un}))},jt=j.forwardRef(fn);process.env.NODE_ENV!=="production"&&(jt.displayName="FilePdfOutlined");var hn={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"},mn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:hn}))},De=j.forwardRef(mn);process.env.NODE_ENV!=="production"&&(De.displayName="FilterOutlined");var pn={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"},gn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:pn}))},Ct=j.forwardRef(gn);process.env.NODE_ENV!=="production"&&(Ct.displayName="InboxOutlined");var yn={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"},xn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:yn}))},wt=j.forwardRef(xn);process.env.NODE_ENV!=="production"&&(wt.displayName="LoadingOutlined");var vn={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"},bn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:vn}))},Re=j.forwardRef(bn);process.env.NODE_ENV!=="production"&&(Re.displayName="PlusOutlined");var jn={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"},Cn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:jn}))},St=j.forwardRef(Cn);process.env.NODE_ENV!=="production"&&(St.displayName="SaveOutlined");var wn={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"},Sn=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:wn}))},kt=j.forwardRef(Sn);process.env.NODE_ENV!=="production"&&(kt.displayName="SearchOutlined");var kn={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"},On=function(t,r){return j.createElement(B,F({},t,{ref:r,icon:kn}))},Ot=j.forwardRef(On);process.env.NODE_ENV!=="production"&&(Ot.displayName="UploadOutlined");const Ie=k.forwardRef((e,t)=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.label&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[e.required&&n.jsx("span",{style:{color:"red"},children:"* "}),e.label]}),n.jsx(a.Input,{...e,ref:t,style:{...e.style,fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"}})]}));Ie.displayName="CustomInput";const Tn=({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)"}})]}),zn=({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)"}})]}),Nn=({label:e,required:t,...r})=>n.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:"custom-search-input-wrapper",children:[n.jsx("style",{children:`
|
|
70
70
|
.custom-search-input-wrapper .ant-input-group-wrapper {
|
|
71
71
|
height: var(--input-height, 25px);
|
|
72
72
|
vertical-align: top;
|
|
@@ -90,7 +90,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
90
90
|
padding-bottom: 0;
|
|
91
91
|
box-sizing: border-box;
|
|
92
92
|
}
|
|
93
|
-
`}),e&&n.jsxs("label",{style:{fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",marginBottom:4},children:[t&&n.jsx("span",{style:{color:"red"},children:"* "}),e]}),n.jsx(a.Input.Search,{...r,style:{...r.style,fontSize:"var(--font-size-medium)"}})]}),Tt=({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})]})},zt=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"}})]}),
|
|
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)"}})]}),Tt=({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})]})},zt=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"}})]}),Nt=({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}),En=({fields:e,filters:t,onFilter:r,onClearFilters:o,localeCode:s="es",actions:i=[],onAdvancedFilters:l,loading:d=!1,defaultValues:u={},activeFiltersCount:c=0,onFiltersChange:m,extra:f,translations:p={}})=>{const[h,x]=k.useState(()=>t||u||{}),y=k.useRef(null);k.useEffect(()=>{t&&x(t)},[t]);const O=(g,R)=>{const w={...h,[g]:R};x(w),m==null||m(w)},M=()=>{r(h)},D=()=>{x({}),o==null||o()},W=(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:[f&&n.jsx(a.Col,{children:f}),n.jsx(a.Col,{style:{marginLeft:f?"0":"auto"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[i.map((g,R)=>!g.hide&&n.jsx(Nt,{content:g.tooltip,placement:"left",mouseEnterDelay:.3,mouseLeaveDelay:0,getPopupContainer:()=>y.current||document.body,children:n.jsx(q,{size:"small",icon:g.icon,onClick:g.onClick,style:{border:"none",background:"none"},loading:g.loading})},R)),l&&n.jsx(a.Badge,{count:c,size:"small",offset:[-3,3],style:{backgroundColor:"#1b1464",fontSize:"5px",color:"#fff",borderRadius:"50%",minWidth:"12px",height:"12px",lineHeight:"12px"},children:n.jsx(q,{size:"small",icon:n.jsx(De,{}),onClick:l,style:{border:"none",background:"none"}})})]})})]}),n.jsxs(a.Row,{gutter:[8,8],children:[e.map(g=>n.jsx(a.Col,{xs:24,sm:12,md:4,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:n.jsxs("div",{className:"custom-filter-toolbar-field",style:{width:"100%"},children:[g.label&&n.jsx("label",{style:{display:"block",marginBottom:4,fontFamily:"var(--font-family)",fontWeight:"var(--font-weight-semibold)",fontSize:"var(--font-size-medium)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:g.label}),{text:n.jsx(Ie,{placeholder:g.placeholder,value:h[g.key],onChange:R=>O(g.key,R.target.value),style:{width:"100%"}}),number:n.jsx(Tt,{placeholder:g.placeholder,value:h[g.key],onChange:R=>O(g.key,R),style:{width:"100%"}}),date:n.jsx(fe,{localeCode:s,onChange:(R,w)=>O(g.key,w),style:{width:"100%"}}),range:n.jsx(fe.RangePicker,{localeCode:s,value:h[g.key]&&h[g.key][0]?[Le(h[g.key][0]),Le(h[g.key][1])]:void 0,onChange:(R,w)=>O(g.key,w),style:{width:"100%"}}),select:n.jsx(zt,{placeholder:g.placeholder,options:g.options,value:h[g.key],mode:g.mode,allowClear:g.allowClear,showSearch:g.showSearch,optionFilterProp:g.optionFilterProp,filterOption:g.filterOption,onChange:R=>O(g.key,R),style:{width:"100%"},loading:g.isLoading,maxTagCount:"responsive"})}[g.type||"text"]]})},g.key)),n.jsx(a.Col,{xs:24,sm:12,md:W,style:{minWidth:0,alignSelf:"center",maxWidth:"100%",overflow:"hidden"},children:n.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center",marginTop:19},children:[n.jsx(q,{type:"primary",size:"small",onClick:M,loading:d,disabled:d,text:p.apply||"Aplicar",className:"force-white-text-button"}),n.jsx(q,{size:"small",icon:n.jsx(ce,{}),onClick:D,disabled:d})]})})]})]})},_e=({className:e,tooltip:t,...r})=>n.jsx(a.FloatButton,{className:`custom-float-button ${e||""}`,tooltip:t,...r});_e.Group=e=>n.jsx(a.FloatButton.Group,{...e,className:`custom-float-button-group ${e.className||""}`});_e.BackTop=a.FloatButton.BackTop;const Mn=({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]})]}),Et=({title:e,children:t,rootClassName:r,...o})=>{const s=r?`library-components-wrapper ${r}`:"library-components-wrapper";return n.jsx(a.Modal,{className:"custom-modal",title:e,rootClassName:s,...o,children:t})};["info","success","error","warning","confirm","destroyAll"].forEach(e=>{Et[e]=a.Modal[e]});const Dn={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)"}})}},Mt=({label:e,...t})=>n.jsx(a.Radio,{...t,children:e});Mt.Group=e=>n.jsx(a.Radio.Group,{...e});const Rn=e=>n.jsx(a.Radio.Group,{...e}),In=({loadingText:e,...t})=>n.jsxs("div",{style:{padding:"1rem"},children:[e&&n.jsx("p",{children:e}),n.jsx(a.Skeleton,{...t})]}),Qe=({size:e="default"})=>{const t=()=>{switch(e){case"small":return{width:"32px",height:"23px"};case"large":return{width:"80px",height:"56px"};default:return{width:"50px",height:"35px"}}};return n.jsxs("div",{style:{display:"inline-block",...t()},children:[n.jsx("style",{children:`
|
|
94
94
|
.helppeople-cloud-svg .svg-elem-1 {
|
|
95
95
|
stroke-dashoffset: 472.7320556640625px;
|
|
96
96
|
stroke-dasharray: 472.7320556640625px;
|
|
@@ -115,4 +115,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
115
115
|
.custom-form .ant-form-item-required::before {
|
|
116
116
|
color: #ff4d4f !important;
|
|
117
117
|
}
|
|
118
|
-
`,oe=e=>{const[t]=a.Form.useForm(),r=e.form||t;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:qn}),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}),Gn=e=>n.jsx(a.Space,{...e,children:e.children}),It=e=>n.jsx(a.Card,{...e}),Un=e=>n.jsx(a.Tag,{...e});var Kn={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"},Xn={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},Zn={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const Qn={es:Kn,en:Xn,pt:Zn},Jn=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:o=!0,editable:s=!1,onEventClick:i,onDateSelect:l,renderEventContent:d,localeCode:u="es"})=>{const c=e;function m(h){i&&i({id:h.event.id,title:h.event.title,start:h.event.start,end:h.event.end??void 0,allDay:h.event.allDay})}function f(h){l&&l({start:h.start,end:h.end,allDay:h.allDay})}function p(h){return n.jsxs("div",{children:[n.jsx("b",{children:h.timeText})," ",n.jsx("span",{children:h.event.title})]})}return n.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",padding:"8px 12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:n.jsx(Yt,{plugins:[Wt,qt,Gt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:o,editable:s,events:c,eventContent:d??p,eventClick:m,select:f,locale:Qn[u||"es"]})})},eo=Je.Quill.import("delta");function to(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 d;const i=document.createElement("div");s.querySelectorAll("tr").forEach(u=>{const c=document.createElement("p"),m=u.querySelectorAll("td, th");let f="";m.forEach(p=>{f+=p.innerHTML+" "}),c.innerHTML=f.trim(),i.appendChild(c)}),(d=s.parentNode)==null||d.replaceChild(i,s)}),r.body.innerHTML}catch(t){return console.error("Error transforming table HTML",t),e}}const ro=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","background","align"],no=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:o,formats:s,theme:i="snow",height:l="200px",width:d="100%",maxHeight:u="400px",minHeight:c="100px",autoResize:m=!1,className:f="",allowImages:p=!0,maxLength:h,...x})=>{const y=k.useRef(null),O=k.useRef(null),[M,D]=k.useState(0),$=k.useMemo(()=>h!==void 0?h:3e3,[h]),W=k.useMemo(()=>to(e),[e]),g=k.useMemo(()=>{if(s)return s;const S=[...ro];return p&&S.push("image"),S},[s,p]),R=k.useMemo(()=>{if(o)return o;const S=[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]],C=["link"];return p&&C.push("image"),S.push(C),S.push(["clean"]),S.push([{color:[]},{background:[]}]),S.push([{align:[]}]),{toolbar:S,clipboard:{matchVisual:!1}}},[o,p]);k.useEffect(()=>{!p&&y.current&&y.current.getEditor().clipboard.addMatcher("IMG",()=>new eo)},[p]),k.useEffect(()=>{if(!y.current||!h)return;const S=y.current.getEditor(),C=(G,v,z)=>{if(z!=="user")return;const P=S.getText().trim().length;if(D(Math.min(P,h)),P>h){const T=S.getContents(),N=[];let K=0;for(const b of T.ops)if(typeof b.insert=="string"){const E=h-K;if(E<=0)break;b.insert.length<=E?(N.push(b),K+=b.insert.length):(N.push({insert:b.insert.substring(0,E),...b.attributes?{attributes:b.attributes}:{}}),K=h)}else N.push(b);S.setContents(N),D(h)}},L=S.getText().trim();return D(Math.min(L.length,h)),S.on("text-change",C),()=>{S.off("text-change",C)}},[h]),k.useEffect(()=>{if(!h||!y.current)return;const S=y.current.getEditor(),L=S.getText().trim().length;if(D(Math.min(L,h)),L>h){const G=S.getContents(),v=[];let z=0;for(const I of G.ops)if(typeof I.insert=="string"){const P=h-z;if(P<=0)break;I.insert.length<=P?(v.push(I),z+=I.insert.length):(v.push({insert:I.insert.substring(0,P),...I.attributes?{attributes:I.attributes}:{}}),z=h)}else v.push(I);S.setContents(v),D(h),t(S.root.innerHTML)}},[W,h]),k.useEffect(()=>{if(m&&y.current&&O.current){const S=y.current.getEditor(),C=O.current,L=()=>{const G=C.querySelector(".ql-editor");if(G){const v=G.scrollHeight,z=typeof c=="number"?c:parseInt(c),I=typeof u=="number"?u:parseInt(u),P=Math.min(Math.max(v+42,z),I);C.style.height=`${P}px`}};return S.on("text-change",L),L(),()=>{S.off("text-change",L)}}},[m,u,c]);const w={width:typeof d=="number"?`${d}px`:d,height:m?"auto":typeof l=="number"?`${l}px`:l,minHeight:typeof c=="number"?`${c}px`:c,maxHeight:m?typeof u=="number"?`${u}px`:u:"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:O,className:`custom-rich-text-editor ${m?"auto-resize":"fixed-height"} ${f}`,style:w,children:[n.jsx(Je,{ref:y,theme:i,value:W,onChange:t,modules:R,formats:g,placeholder:r,style:U,...x}),h!==void 0&&n.jsxs("div",{className:`character-counter ${M>=$?"at-limit":M>=$*.9?"near-limit":""}`,children:[M,"/",$]})]})},de=e=>n.jsx(a.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});de.Item=e=>n.jsx(a.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});de.SubMenu=e=>n.jsx(a.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});de.ItemGroup=a.Menu.ItemGroup;de.Divider=a.Menu.Divider;const _t=a.Dropdown,Ht=e=>(e==null?void 0:e.parentElement)||document.body,Fe=(...e)=>e.filter(Boolean).join(" "),Ft=(e,t)=>({...e,root:Fe("library-components-wrapper",e==null?void 0:e.root,t)}),Bt=({className:e,children:t,items:r,menu:o,getPopupContainer:s,overlayClassName:i,classNames:l,...d})=>{const u=r?{items:r}:o;return n.jsx(_t,{className:Fe("custom-dropdown",e),classNames:Ft(l,i),getPopupContainer:s??Ht,menu:u,...d,children:t})};Bt.Button=({className:e,overlayClassName:t,getPopupContainer:r,classNames:o,...s})=>n.jsx(_t.Button,{...s,className:Fe("custom-dropdown-button",e),classNames:Ft(o,t),getPopupContainer:r??Ht});const{Title:oo}=a.Typography,so=({available:e,selected:t,onChange:r,availableTitle:o="Disponibles",selectedTitle:s="Seleccionados",emptyDescription:i="Arrastra los elementos aquí"})=>{const l=u=>{const{source:c,destination:m}=u;if(m&&!(c.droppableId===m.droppableId&&c.index===m.index))if(c.droppableId===m.droppableId){const f=c.droppableId==="disponibles"?[...e]:[...t],[p]=f.splice(c.index,1);f.splice(m.index,0,p),c.droppableId==="disponibles"?r(f,t):r(e,f)}else{const f=c.droppableId==="disponibles"?[...e]:[...t],p=m.droppableId==="disponibles"?[...e]:[...t],[h]=f.splice(c.index,1);p.splice(m.index,0,h),c.droppableId==="disponibles"?r(f,p):r(p,f)}},d=(u,c,m)=>n.jsxs(me,{span:12,children:[n.jsx(oo,{level:4,style:{marginBottom:16,fontSize:14},children:c}),n.jsx(ve.Droppable,{droppableId:u,children:(f,p)=>n.jsxs("div",{ref:f.innerRef,...f.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[m.length===0?n.jsx(a.Empty,{description:i,style:{opacity:.3}}):m.map((h,x)=>n.jsx(ve.Draggable,{draggableId:h.id,index:x,children:(y,O)=>n.jsx("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:{marginBottom:8,cursor:O.isDragging?"grabbing":"grab",opacity:O.isDragging?.8:1,transform:O.isDragging?"rotate(3deg)":"none",...y.draggableProps.style},children:n.jsx(It,{size:"small",style:{boxShadow:O.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:h.content})})},h.id)),f.placeholder]})})]});return n.jsx(ve.DragDropContext,{onDragEnd:l,children:n.jsxs(He,{gutter:16,style:{margin:"24px 0"},children:[d("disponibles",o,e),d("seleccionados",s,t)]})})},io=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,accordion:s=!1,bordered:i=!0,collapsible:l="header",expandIcon:d,expandIconPosition:u="start",ghost:c=!1,size:m="middle",className:f,style:p})=>{const x={items:e.map(y=>({key:y.key,label:y.header,children:y.children,disabled:y.disabled,showArrow:y.showArrow,extra:y.extra,className:y.className,style:y.style})),defaultActiveKey:t,activeKey:r,onChange:o,accordion:s,bordered:i,collapsible:l,expandIcon:d,expandIconPosition:u,ghost:c,size:m,className:f,style:p};return n.jsx(a.Collapse,{...x})},ao=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:d=["Origen","Destino"],operations:u=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:x,render:y,children:O,showSelectAll:M=!0,selectAllLabels:D,oneWay:$=!1,pagination:W=!1,status:g,locale:R,remotePagination:w,onPageChange:U})=>{const S=e.map(T=>({key:T.key,title:T.title,description:T.description,disabled:T.disabled||!1,chosen:T.chosen||!1})),C=o?(T,N,K)=>o(T,N,K):void 0,L=s?(T,N)=>s(T,N):void 0,G=i?(T,N)=>i(T,N):void 0,v=l?(T,N)=>l(T,N):void 0,z=["hp-transfer",h].filter(Boolean).join(" "),I=!!w&&w.position!=="none",P={dataSource:S,targetKeys:t,selectedKeys:r,onChange:C,onSelectChange:L,onSearch:G,onScroll:v,titles:d,operations:u,showSearch:c,filterOption:m?(T,N)=>m(T,N):void 0,disabled:f,listStyle:p,className:z,render:y||(T=>T.title),showSelectAll:M,selectAllLabels:D,oneWay:$,pagination:I?!1:W,status:g,locale:R,footer:I?({direction:T})=>{const N=(w==null?void 0:w.position)??"left";if(!(N==="both"||N==="left"&&T==="left"||N==="right"&&T==="right"))return null;const b=T==="left"?w==null?void 0:w.left:w==null?void 0:w.right;if(!b)return null;const{page:E,pageSize:Q,total:X}=b,Z=(w==null?void 0:w.simple)??!0,J=(w==null?void 0:w.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:Z,current:E,total:X,pageSize:Q,showSizeChanger:J,pageSizeOptions:["5","10","20","50"],onChange:(se,ie)=>{U==null||U(T,se,ie)}})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:O?O(P):n.jsx(a.Transfer,{...P})})},lo=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:d=["Origen","Destino"],operations:u=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:x,selectAllLabels:y,oneWay:O=!1,status:M,locale:D,leftColumns:$,rightColumns:W,rowKey:g="key",tableSize:R="small",tableScroll:w,showDefaultHeaderActions:U=!0,headerActions:S=[],remotePagination:C,onPageChange:L})=>{const G=(e??[]).map(b=>({...b,key:b.key,title:b.title||b.key||String(b.key),description:b.description,disabled:b.disabled||!1,chosen:b.chosen||!1})),v=o?(b,E,Q)=>o(b,E,Q):void 0,z=s?(b,E)=>s(b,E):void 0,I=i?(b,E)=>i(b,E):void 0,P=l?(b,E)=>l(b,E):void 0,T=["hp-transfer","hp-table-transfer",h].filter(Boolean).join(" "),N=!!C&&(C.position??"left")!=="none",K={dataSource:G,targetKeys:t,selectedKeys:r,onChange:v,onSelectChange:z,onSearch:I,onScroll:P,titles:d,operations:u,showSearch:c,filterOption:m,disabled:f,listStyle:p,className:T,showSelectAll:U,selectAllLabels:y,oneWay:O,pagination:!1,status:M,locale:D,footer:N?({direction:b})=>{const E=(C==null?void 0:C.position)??"left";if(!(E==="both"||E==="left"&&b==="left"||E==="right"&&b==="right"))return null;const X=b==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!X)return null;const{page:Z,pageSize:J,total:se}=X,ie=(C==null?void 0:C.simple)??!0,ye=(C==null?void 0:C.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:ie,current:Z,total:se,pageSize:J,showSizeChanger:ye,pageSizeOptions:["5","10","20","50"],onChange:(_,V)=>L==null?void 0:L(b,_,V)})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:n.jsx(a.Transfer,{...K,children:({direction:b,filteredItems:E,onItemSelect:Q,onItemSelectAll:X,selectedKeys:Z,disabled:J})=>{const se=b==="left"?$:W??$,ie={getCheckboxProps:_=>({disabled:J||_.disabled}),selectedRowKeys:Z,onSelect:(_,V)=>{Q(_.key,V)},hideSelectAll:!1,onChange:_=>{X(_,"replace")},selections:(()=>{const _=[];return U&&_.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const V=E.map(te=>te.key);X(V,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const V=E.map(xe=>xe.key),te=Z,Vt=V.filter(xe=>!te.includes(xe));X(Vt,"replace")}}),S.forEach(V=>{_.push({key:V.key,text:V.label,onSelect:()=>{var te;(te=V.onClick)==null||te.call(V,b,Z)}})}),_.length>0?_:!1})()},ye=typeof g=="function"?g:_=>_[g];return n.jsx(a.Table,{showHeader:!0,size:R,columns:se,dataSource:E,rowKey:ye,pagination:!1,rowSelection:ie,style:{pointerEvents:J?"none":void 0,height:"100%"},onRow:_=>({onClick:()=>{if(J||_.disabled)return;const V=!Z.includes(_.key);Q(_.key,V)}}),scroll:w})}})})},co=({leftPanel:e,rightPanel:t,responsive:r={xs:24,sm:12,md:12},gutter:o=[16,8],className:s,style:i})=>{const l=(u,c)=>typeof t.rowKey=="function"?t.rowKey(u):u[t.rowKey]||String(c),d=(()=>{const u=t.pagination;return u&&{size:"small",showTotal:(c,m)=>`${m[1]-m[0]+1} de ${c} registros`,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},...u}})();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(Dt,{...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.jsxs(a.Card,{title:t.title,className:`relation-selector-card ${t.cardClassName||""}`,extra:t.extra,styles:{body:{overflow:t.loading?"hidden":"auto"}},children:[t.filters&&n.jsx("div",{className:"relation-selector-filters",children:t.filters}),t.loading?n.jsx("div",{className:"relation-selector-loading",children:n.jsx(ge,{spinning:!0,indicator:t.spinType,size:"small",spinType:"helppeople"})}):t.data.length===0?n.jsx(a.Empty,{description:t.emptyText||"No hay datos"}):n.jsx(a.List,{size:"small",className:`relation-selector-list ${t.listClassName||""}`,itemLayout:t.itemLayout||"horizontal",dataSource:t.data,pagination:d,renderItem:(u,c)=>{const m=t.renderItem(u);return n.jsx(a.List.Item,{actions:m.actions,children:n.jsx(a.List.Item.Meta,{title:m.title,description:m.description})},l(u,c))}})]})})]})})},Lt=({count:e=0,overflowCount:t=99,dot:r=!1,color:o,size:s="default",icon:i,useButton:l=!1,buttonType:d="text",buttonShape:u="circle",onClick:c,style:m,containerStyle:f,showZero:p=!1,offset:h,className:x,disabled:y=!1})=>{const O=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},M=i||n.jsx(Ne,{style:{fontSize:O(),...f}}),D=l?n.jsx(a.Button,{type:d,icon:M,shape:u,onClick:c,style:f,disabled:y,className:x}):n.jsx("span",{onClick:c,style:{cursor:c?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...f},className:x,children:M});return n.jsx(a.Badge,{count:e,overflowCount:t,dot:r,color:o,showZero:p,offset:h,style:m,children:D})},uo=({count:e,notifications:t=[],icon:r,size:o="default",useButton:s=!1,buttonType:i="text",onNotificationClick:l,onLoadMore:d,hasMore:u=!1,loading:c=!1,renderNotification:m,loadMoreText:f="Cargar más",emptyText:p="No hay notificaciones",popoverWidth:h=380,overflowCount:x=99,badgeColor:y,showZero:O=!1,containerStyle:M,popoverTitle:D="Notificaciones",onOpenChange:$,headerAction:W,maxHeight:g=400,placement:R="bottomRight"})=>{const[w,U]=k.useState(!1),S=v=>{U(v),$==null||$(v)},C=v=>{l==null||l(v)},L=v=>n.jsxs("div",{style:{padding:"12px",cursor:v.actions?"default":"pointer",backgroundColor:v.read?"transparent":"#f0f7ff",borderRadius:"4px",transition:"background-color 0.3s",width:"100%",boxSizing:"border-box"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=v.read?"#fafafa":"#e6f4ff"},onMouseLeave:z=>{z.currentTarget.style.backgroundColor=v.read?"transparent":"#f0f7ff"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[n.jsx("span",{style:{fontWeight:v.read?400:600,fontSize:"14px",color:v.read?"#595959":"#262626"},children:v.title}),!v.read&&n.jsx("span",{style:{width:"8px",height:"8px",backgroundColor:"#1890ff",borderRadius:"50%",marginLeft:"8px",flexShrink:0}})]}),v.description&&n.jsx("div",{style:{fontSize:"13px",color:"#8c8c8c",marginBottom:v.actions?"8px":"4px",lineHeight:"1.4"},children:v.description}),v.timestamp&&n.jsx("div",{style:{fontSize:"12px",color:"#bfbfbf",marginBottom:v.actions?"8px":"0"},children:v.timestamp}),v.actions&&v.actions.length>0&&n.jsx(a.Space,{size:"small",style:{marginTop:"8px"},children:v.actions.map((z,I)=>n.jsx(a.Button,{type:z.type||"default",size:z.size||"small",icon:z.icon,danger:z.danger,disabled:z.disabled,onClick:P=>{P.stopPropagation(),z.onClick(v)},children:z.label},I))})]}),G=n.jsxs("div",{style:{width:h},children:[W&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[n.jsx("span",{style:{fontWeight:600,fontSize:"14px"},children:D}),W]}),n.jsx(a.Divider,{style:{margin:"8px 0"}})]}),n.jsx("div",{style:{maxHeight:g,overflowY:"auto"},children:t.length===0?n.jsx(a.Empty,{description:p,image:a.Empty.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"}}):n.jsx(a.List,{dataSource:t,renderItem:v=>n.jsx(a.List.Item,{style:{padding:0,border:"none",marginBottom:"4px",width:"100%"},onClick:()=>C(v),children:m?m(v):L(v)})})}),u&&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(q,{text:f,onClick:d||(()=>{}),loading:c,icon:c?n.jsx(wt,{}):void 0,style:{width:"100%"}})})]})]});return n.jsx(a.Popover,{content:G,title:W?null:D,trigger:"click",open:w,onOpenChange:S,placement:R,overlayStyle:{maxWidth:h+48},children:n.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:n.jsx(Lt,{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:O,containerStyle:M})})})};function At({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,style:i,className:l,...d}){const u=e.map((c,m)=>s(c,m));return n.jsx(a.Timeline,{mode:t,reverse:r,pending:o,items:u,style:{fontFamily:"var(--font-family, inherit)",...i},className:l,...d})}const fo=({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,showExpediente:i=!1,showUsuario:l=!0,showFlujo:d=!1,dateFormatter:u,style:c,className:m,...f})=>{const p=x=>{if(u)return u(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}},h=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]}),d&&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(At,{data:e,mode:t,reverse:r,pending:o,renderItem:s||h,style:c,className:m,...f})},ho=({className:e,...t})=>n.jsx("div",{className:`custom-carousel-wrapper ${e||""}`,children:n.jsx(a.Carousel,{...t})}),mo=e=>n.jsx(a.Empty,{...e}),po=({className:e,style:t,...r},o)=>n.jsx(a.List,{ref:o,className:`${e}`,style:t,...r}),Be=k.forwardRef(po);Be.Item=a.List.Item;Be.ItemMeta=a.List.Item.Meta;const $t=k.createContext(null),go=()=>{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},yo=({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})},Pt=({children:e,onReady:t})=>n.jsx(a.App,{children:n.jsx(yo,{onReady:t,children:e})}),xo={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"},vo=({children:e,customTokens:t={}})=>{const r={...xo,...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(Pt,{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})})})},bo={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:jo}=a.Tree,Co=({style:e,...t})=>n.jsx(a.Tree,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),wo=({style:e,...t})=>n.jsx(jo,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),So=({count:e,dot:t=!1,overflowCount:r=99,showZero:o=!1,size:s="default",status:i,text:l,color:d,offset:u,children:c,style:m,className:f,...p})=>n.jsx(a.Badge,{count:e,dot:t,overflowCount:r,showZero:o,size:s,status:i,text:l,color:d,offset:u,style:{fontSize:"var(--font-size-medium)",...m},className:f,...p,children:c}),ko=({src:e,width:t,height:r,alt:o="",fallback:s,placeholder:i,preview:l=!0,style:d,className:u,...c})=>n.jsx(a.Image,{src:e,width:t,height:r,alt:o,fallback:s,placeholder:i,preview:l,style:d,className:u,...c}),Oo=({children:e,preview:t,items:r,fallback:o})=>n.jsx(a.Image.PreviewGroup,{preview:t,items:r,fallback:o,children:e});exports.Accordion=io;exports.Alert=Kt;exports.Avatar=Xt;exports.AvatarGroup=Zt;exports.Badge=So;exports.Button=q;exports.Calendar=Jn;exports.Card=It;exports.Carousel=ho;exports.CheckBox=et;exports.ClearOutlined=ce;exports.CloseOutlined=xt;exports.Col=me;exports.CustomFilterDrawer=Yn;exports.CustomFilterDrawerHp=Wn;exports.DatePicker=fe;exports.DeleteOutlined=vt;exports.DirectoryTree=wo;exports.Divider=ur;exports.DragAndDrop=so;exports.Drawer=fr;exports.Dropdown=Bt;exports.EditOutlined=Me;exports.Empty=mo;exports.FeedbackProvider=Pt;exports.FileExcelOutlined=bt;exports.FilePdfOutlined=jt;exports.FilterOutlined=De;exports.FilterToolbar=Nn;exports.FloatButton=_e;exports.Form=oe;exports.Image=ko;exports.ImagePreviewGroup=Oo;exports.Input=Ie;exports.InputSwitch=Mn;exports.LibraryThemeProvider=vo;exports.List=Be;exports.Mentions=Rt;exports.Menu=de;exports.Message=bo;exports.Modal=Nt;exports.Notification=Dn;exports.NotificationBadge=Lt;exports.NotificationDropdown=uo;exports.NumericInput=Tt;exports.Pagination=_n;exports.Password=Tn;exports.PlusOutlined=Re;exports.Progress=Hn;exports.Radio=Mt;exports.RadioGroup=Rn;exports.RelationSelector=co;exports.RichTextEditor=no;exports.Row=He;exports.Search=En;exports.SearchOutlined=kt;exports.Select=zt;exports.Skeleton=In;exports.Space=Gn;exports.Spin=ge;exports.SubToolbar=Ln;exports.Table=Dt;exports.TableTransfer=lo;exports.Tabs=Fn;exports.Tag=Un;exports.TextArea=zn;exports.Timeline=At;exports.TimelineWithDefaults=fo;exports.Toolbar=Bn;exports.Tooltip=Et;exports.Transfer=ao;exports.Tree=Co;exports.Upload=$n;exports.UploadDragger=Vn;exports.useFeedback=go;
|
|
118
|
+
`,oe=e=>{const[t]=a.Form.useForm(),r=e.form||t;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:qn}),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}),Gn=e=>n.jsx(a.Space,{...e,children:e.children}),It=e=>n.jsx(a.Card,{...e}),Un=e=>n.jsx(a.Tag,{...e});var Kn={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"},Xn={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},Zn={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"};const Qn={es:Kn,en:Xn,pt:Zn},Jn=({events:e,initialView:t="dayGridMonth",height:r=600,selectable:o=!0,editable:s=!1,onEventClick:i,onDateSelect:l,renderEventContent:d,localeCode:u="es"})=>{const c=e;function m(h){i&&i({id:h.event.id,title:h.event.title,start:h.event.start,end:h.event.end??void 0,allDay:h.event.allDay})}function f(h){l&&l({start:h.start,end:h.end,allDay:h.allDay})}function p(h){return n.jsxs("div",{children:[n.jsx("b",{children:h.timeText})," ",n.jsx("span",{children:h.event.title})]})}return n.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",padding:"8px 12px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:6,marginBottom:12,width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:n.jsx(Yt,{plugins:[Wt,qt,Gt],initialView:t,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},height:r,selectable:o,editable:s,events:c,eventContent:d??p,eventClick:m,select:f,locale:Qn[u||"es"]})})},eo=Je.Quill.import("delta");function to(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 d;const i=document.createElement("div");s.querySelectorAll("tr").forEach(u=>{const c=document.createElement("p"),m=u.querySelectorAll("td, th");let f="";m.forEach(p=>{f+=p.innerHTML+" "}),c.innerHTML=f.trim(),i.appendChild(c)}),(d=s.parentNode)==null||d.replaceChild(i,s)}),r.body.innerHTML}catch(t){return console.error("Error transforming table HTML",t),e}}const ro=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","background","align"],no=({value:e="",onChange:t=()=>{},placeholder:r="Escribe aquí...",modules:o,formats:s,theme:i="snow",height:l="200px",width:d="100%",maxHeight:u="400px",minHeight:c="100px",autoResize:m=!1,className:f="",allowImages:p=!0,maxLength:h,...x})=>{const y=k.useRef(null),O=k.useRef(null),[M,D]=k.useState(0),$=k.useMemo(()=>h!==void 0?h:3e3,[h]),W=k.useMemo(()=>to(e),[e]),g=k.useMemo(()=>{if(s)return s;const S=[...ro];return p&&S.push("image"),S},[s,p]),R=k.useMemo(()=>{if(o)return o;const S=[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}]],C=["link"];return p&&C.push("image"),S.push(C),S.push(["clean"]),S.push([{color:[]},{background:[]}]),S.push([{align:[]}]),{toolbar:S,clipboard:{matchVisual:!1}}},[o,p]);k.useEffect(()=>{!p&&y.current&&y.current.getEditor().clipboard.addMatcher("IMG",()=>new eo)},[p]),k.useEffect(()=>{if(!y.current||!h)return;const S=y.current.getEditor(),C=(G,v,z)=>{if(z!=="user")return;const P=S.getText().trim().length;if(D(Math.min(P,h)),P>h){const T=S.getContents(),E=[];let K=0;for(const b of T.ops)if(typeof b.insert=="string"){const N=h-K;if(N<=0)break;b.insert.length<=N?(E.push(b),K+=b.insert.length):(E.push({insert:b.insert.substring(0,N),...b.attributes?{attributes:b.attributes}:{}}),K=h)}else E.push(b);S.setContents(E),D(h)}},L=S.getText().trim();return D(Math.min(L.length,h)),S.on("text-change",C),()=>{S.off("text-change",C)}},[h]),k.useEffect(()=>{if(!h||!y.current)return;const S=y.current.getEditor(),L=S.getText().trim().length;if(D(Math.min(L,h)),L>h){const G=S.getContents(),v=[];let z=0;for(const I of G.ops)if(typeof I.insert=="string"){const P=h-z;if(P<=0)break;I.insert.length<=P?(v.push(I),z+=I.insert.length):(v.push({insert:I.insert.substring(0,P),...I.attributes?{attributes:I.attributes}:{}}),z=h)}else v.push(I);S.setContents(v),D(h),t(S.root.innerHTML)}},[W,h]),k.useEffect(()=>{if(m&&y.current&&O.current){const S=y.current.getEditor(),C=O.current,L=()=>{const G=C.querySelector(".ql-editor");if(G){const v=G.scrollHeight,z=typeof c=="number"?c:parseInt(c),I=typeof u=="number"?u:parseInt(u),P=Math.min(Math.max(v+42,z),I);C.style.height=`${P}px`}};return S.on("text-change",L),L(),()=>{S.off("text-change",L)}}},[m,u,c]);const w={width:typeof d=="number"?`${d}px`:d,height:m?"auto":typeof l=="number"?`${l}px`:l,minHeight:typeof c=="number"?`${c}px`:c,maxHeight:m?typeof u=="number"?`${u}px`:u:"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:O,className:`custom-rich-text-editor ${m?"auto-resize":"fixed-height"} ${f}`,style:w,children:[n.jsx(Je,{ref:y,theme:i,value:W,onChange:t,modules:R,formats:g,placeholder:r,style:U,...x}),h!==void 0&&n.jsxs("div",{className:`character-counter ${M>=$?"at-limit":M>=$*.9?"near-limit":""}`,children:[M,"/",$]})]})},de=e=>n.jsx(a.Menu,{className:`custom-menu ${e.className||""}`,style:{fontSize:"var(--font-size-medium)",...e.style},...e});de.Item=e=>n.jsx(a.Menu.Item,{...e,className:`custom-menu-item ${e.className||""}`});de.SubMenu=e=>n.jsx(a.Menu.SubMenu,{...e,className:`custom-menu-submenu ${e.className||""}`});de.ItemGroup=a.Menu.ItemGroup;de.Divider=a.Menu.Divider;const _t=a.Dropdown,Ht=()=>document.body,Fe=(...e)=>e.filter(Boolean).join(" "),Ft=(e,t)=>({...e,root:Fe("library-components-wrapper",e==null?void 0:e.root,t)}),Bt=({className:e,children:t,items:r,menu:o,getPopupContainer:s,overlayClassName:i,classNames:l,...d})=>{const u=r?{items:r}:o;return n.jsx(_t,{className:Fe("custom-dropdown",e),classNames:Ft(l,i),getPopupContainer:s??Ht,menu:u,...d,children:t})};Bt.Button=({className:e,overlayClassName:t,getPopupContainer:r,classNames:o,...s})=>n.jsx(_t.Button,{...s,className:Fe("custom-dropdown-button",e),classNames:Ft(o,t),getPopupContainer:r??Ht});const{Title:oo}=a.Typography,so=({available:e,selected:t,onChange:r,availableTitle:o="Disponibles",selectedTitle:s="Seleccionados",emptyDescription:i="Arrastra los elementos aquí"})=>{const l=u=>{const{source:c,destination:m}=u;if(m&&!(c.droppableId===m.droppableId&&c.index===m.index))if(c.droppableId===m.droppableId){const f=c.droppableId==="disponibles"?[...e]:[...t],[p]=f.splice(c.index,1);f.splice(m.index,0,p),c.droppableId==="disponibles"?r(f,t):r(e,f)}else{const f=c.droppableId==="disponibles"?[...e]:[...t],p=m.droppableId==="disponibles"?[...e]:[...t],[h]=f.splice(c.index,1);p.splice(m.index,0,h),c.droppableId==="disponibles"?r(f,p):r(p,f)}},d=(u,c,m)=>n.jsxs(me,{span:12,children:[n.jsx(oo,{level:4,style:{marginBottom:16,fontSize:14},children:c}),n.jsx(ve.Droppable,{droppableId:u,children:(f,p)=>n.jsxs("div",{ref:f.innerRef,...f.droppableProps,style:{minHeight:300,background:p.isDraggingOver?"#f0f9ff":"#f8fafc",padding:16,borderRadius:8,border:`2px dashed ${p.isDraggingOver?"#3b82f6":"#cbd5e1"}`,transition:"all 0.2s ease"},children:[m.length===0?n.jsx(a.Empty,{description:i,style:{opacity:.3}}):m.map((h,x)=>n.jsx(ve.Draggable,{draggableId:h.id,index:x,children:(y,O)=>n.jsx("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:{marginBottom:8,cursor:O.isDragging?"grabbing":"grab",opacity:O.isDragging?.8:1,transform:O.isDragging?"rotate(3deg)":"none",...y.draggableProps.style},children:n.jsx(It,{size:"small",style:{boxShadow:O.isDragging?"0 4px 6px -1px rgb(0 0 0 / 0.1)":"none",fontSize:"var(--font-size-medium)"},children:h.content})})},h.id)),f.placeholder]})})]});return n.jsx(ve.DragDropContext,{onDragEnd:l,children:n.jsxs(He,{gutter:16,style:{margin:"24px 0"},children:[d("disponibles",o,e),d("seleccionados",s,t)]})})},io=({items:e,defaultActiveKey:t,activeKey:r,onChange:o,accordion:s=!1,bordered:i=!0,collapsible:l="header",expandIcon:d,expandIconPosition:u="start",ghost:c=!1,size:m="middle",className:f,style:p})=>{const x={items:e.map(y=>({key:y.key,label:y.header,children:y.children,disabled:y.disabled,showArrow:y.showArrow,extra:y.extra,className:y.className,style:y.style})),defaultActiveKey:t,activeKey:r,onChange:o,accordion:s,bordered:i,collapsible:l,expandIcon:d,expandIconPosition:u,ghost:c,size:m,className:f,style:p};return n.jsx(a.Collapse,{...x})},ao=({dataSource:e,targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:d=["Origen","Destino"],operations:u=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:x,render:y,children:O,showSelectAll:M=!0,selectAllLabels:D,oneWay:$=!1,pagination:W=!1,status:g,locale:R,remotePagination:w,onPageChange:U})=>{const S=e.map(T=>({key:T.key,title:T.title,description:T.description,disabled:T.disabled||!1,chosen:T.chosen||!1})),C=o?(T,E,K)=>o(T,E,K):void 0,L=s?(T,E)=>s(T,E):void 0,G=i?(T,E)=>i(T,E):void 0,v=l?(T,E)=>l(T,E):void 0,z=["hp-transfer",h].filter(Boolean).join(" "),I=!!w&&w.position!=="none",P={dataSource:S,targetKeys:t,selectedKeys:r,onChange:C,onSelectChange:L,onSearch:G,onScroll:v,titles:d,operations:u,showSearch:c,filterOption:m?(T,E)=>m(T,E):void 0,disabled:f,listStyle:p,className:z,render:y||(T=>T.title),showSelectAll:M,selectAllLabels:D,oneWay:$,pagination:I?!1:W,status:g,locale:R,footer:I?({direction:T})=>{const E=(w==null?void 0:w.position)??"left";if(!(E==="both"||E==="left"&&T==="left"||E==="right"&&T==="right"))return null;const b=T==="left"?w==null?void 0:w.left:w==null?void 0:w.right;if(!b)return null;const{page:N,pageSize:Q,total:X}=b,Z=(w==null?void 0:w.simple)??!0,J=(w==null?void 0:w.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:Z,current:N,total:X,pageSize:Q,showSizeChanger:J,pageSizeOptions:["5","10","20","50"],onChange:(se,ie)=>{U==null||U(T,se,ie)}})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:O?O(P):n.jsx(a.Transfer,{...P})})},lo=({dataSource:e=[],targetKeys:t=[],selectedKeys:r=[],onChange:o,onSelectChange:s,onSearch:i,onScroll:l,titles:d=["Origen","Destino"],operations:u=[">","<"],showSearch:c=!1,filterOption:m,disabled:f=!1,listStyle:p,className:h,style:x,selectAllLabels:y,oneWay:O=!1,status:M,locale:D,leftColumns:$,rightColumns:W,rowKey:g="key",tableSize:R="small",tableScroll:w,showDefaultHeaderActions:U=!0,headerActions:S=[],remotePagination:C,onPageChange:L})=>{const G=(e??[]).map(b=>({...b,key:b.key,title:b.title||b.key||String(b.key),description:b.description,disabled:b.disabled||!1,chosen:b.chosen||!1})),v=o?(b,N,Q)=>o(b,N,Q):void 0,z=s?(b,N)=>s(b,N):void 0,I=i?(b,N)=>i(b,N):void 0,P=l?(b,N)=>l(b,N):void 0,T=["hp-transfer","hp-table-transfer",h].filter(Boolean).join(" "),E=!!C&&(C.position??"left")!=="none",K={dataSource:G,targetKeys:t,selectedKeys:r,onChange:v,onSelectChange:z,onSearch:I,onScroll:P,titles:d,operations:u,showSearch:c,filterOption:m,disabled:f,listStyle:p,className:T,showSelectAll:U,selectAllLabels:y,oneWay:O,pagination:!1,status:M,locale:D,footer:E?({direction:b})=>{const N=(C==null?void 0:C.position)??"left";if(!(N==="both"||N==="left"&&b==="left"||N==="right"&&b==="right"))return null;const X=b==="left"?C==null?void 0:C.left:C==null?void 0:C.right;if(!X)return null;const{page:Z,pageSize:J,total:se}=X,ie=(C==null?void 0:C.simple)??!0,ye=(C==null?void 0:C.showSizeChanger)??!0;return n.jsx("div",{style:{padding:"6px 10px",borderTop:"1px solid #f0f0f0"},children:n.jsx(a.Pagination,{size:"small",simple:ie,current:Z,total:se,pageSize:J,showSizeChanger:ye,pageSizeOptions:["5","10","20","50"],onChange:(_,V)=>L==null?void 0:L(b,_,V)})})}:void 0};return n.jsx("div",{style:{marginBottom:12,...x},children:n.jsx(a.Transfer,{...K,children:({direction:b,filteredItems:N,onItemSelect:Q,onItemSelectAll:X,selectedKeys:Z,disabled:J})=>{const se=b==="left"?$:W??$,ie={getCheckboxProps:_=>({disabled:J||_.disabled}),selectedRowKeys:Z,onSelect:(_,V)=>{Q(_.key,V)},hideSelectAll:!1,onChange:_=>{X(_,"replace")},selections:(()=>{const _=[];return U&&_.push({key:"select-all-data",text:"Select all data",onSelect:()=>{const V=N.map(te=>te.key);X(V,"replace")}},{key:"invert-current-page",text:"Invert current page",onSelect:()=>{const V=N.map(xe=>xe.key),te=Z,Vt=V.filter(xe=>!te.includes(xe));X(Vt,"replace")}}),S.forEach(V=>{_.push({key:V.key,text:V.label,onSelect:()=>{var te;(te=V.onClick)==null||te.call(V,b,Z)}})}),_.length>0?_:!1})()},ye=typeof g=="function"?g:_=>_[g];return n.jsx(a.Table,{showHeader:!0,size:R,columns:se,dataSource:N,rowKey:ye,pagination:!1,rowSelection:ie,style:{pointerEvents:J?"none":void 0,height:"100%"},onRow:_=>({onClick:()=>{if(J||_.disabled)return;const V=!Z.includes(_.key);Q(_.key,V)}}),scroll:w})}})})},co=({leftPanel:e,rightPanel:t,responsive:r={xs:24,sm:12,md:12},gutter:o=[16,8],className:s,style:i})=>{const l=(u,c)=>typeof t.rowKey=="function"?t.rowKey(u):u[t.rowKey]||String(c),d=(()=>{const u=t.pagination;return u&&{size:"small",showTotal:(c,m)=>`${m[1]-m[0]+1} de ${c} registros`,style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)"},...u}})();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(Dt,{...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.jsxs(a.Card,{title:t.title,className:`relation-selector-card ${t.cardClassName||""}`,extra:t.extra,styles:{body:{overflow:t.loading?"hidden":"auto"}},children:[t.filters&&n.jsx("div",{className:"relation-selector-filters",children:t.filters}),t.loading?n.jsx("div",{className:"relation-selector-loading",children:n.jsx(ge,{spinning:!0,indicator:t.spinType,size:"small",spinType:"helppeople"})}):t.data.length===0?n.jsx(a.Empty,{description:t.emptyText||"No hay datos"}):n.jsx(a.List,{size:"small",className:`relation-selector-list ${t.listClassName||""}`,itemLayout:t.itemLayout||"horizontal",dataSource:t.data,pagination:d,renderItem:(u,c)=>{const m=t.renderItem(u);return n.jsx(a.List.Item,{actions:m.actions,children:n.jsx(a.List.Item.Meta,{title:m.title,description:m.description})},l(u,c))}})]})})]})})},Lt=({count:e=0,overflowCount:t=99,dot:r=!1,color:o,size:s="default",icon:i,useButton:l=!1,buttonType:d="text",buttonShape:u="circle",onClick:c,style:m,containerStyle:f,showZero:p=!1,offset:h,className:x,disabled:y=!1})=>{const O=()=>{switch(s){case"small":return"18px";case"large":return"28px";default:return"24px"}},M=i||n.jsx(Ee,{style:{fontSize:O(),...f}}),D=l?n.jsx(a.Button,{type:d,icon:M,shape:u,onClick:c,style:f,disabled:y,className:x}):n.jsx("span",{onClick:c,style:{cursor:c?"pointer":"default",display:"inline-flex",alignItems:"center",justifyContent:"center",...f},className:x,children:M});return n.jsx(a.Badge,{count:e,overflowCount:t,dot:r,color:o,showZero:p,offset:h,style:m,children:D})},uo=({count:e,notifications:t=[],icon:r,size:o="default",useButton:s=!1,buttonType:i="text",onNotificationClick:l,onLoadMore:d,hasMore:u=!1,loading:c=!1,renderNotification:m,loadMoreText:f="Cargar más",emptyText:p="No hay notificaciones",popoverWidth:h=380,overflowCount:x=99,badgeColor:y,showZero:O=!1,containerStyle:M,popoverTitle:D="Notificaciones",onOpenChange:$,headerAction:W,maxHeight:g=400,placement:R="bottomRight"})=>{const[w,U]=k.useState(!1),S=v=>{U(v),$==null||$(v)},C=v=>{l==null||l(v)},L=v=>n.jsxs("div",{style:{padding:"12px",cursor:v.actions?"default":"pointer",backgroundColor:v.read?"transparent":"#f0f7ff",borderRadius:"4px",transition:"background-color 0.3s",width:"100%",boxSizing:"border-box"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=v.read?"#fafafa":"#e6f4ff"},onMouseLeave:z=>{z.currentTarget.style.backgroundColor=v.read?"transparent":"#f0f7ff"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[n.jsx("span",{style:{fontWeight:v.read?400:600,fontSize:"14px",color:v.read?"#595959":"#262626"},children:v.title}),!v.read&&n.jsx("span",{style:{width:"8px",height:"8px",backgroundColor:"#1890ff",borderRadius:"50%",marginLeft:"8px",flexShrink:0}})]}),v.description&&n.jsx("div",{style:{fontSize:"13px",color:"#8c8c8c",marginBottom:v.actions?"8px":"4px",lineHeight:"1.4"},children:v.description}),v.timestamp&&n.jsx("div",{style:{fontSize:"12px",color:"#bfbfbf",marginBottom:v.actions?"8px":"0"},children:v.timestamp}),v.actions&&v.actions.length>0&&n.jsx(a.Space,{size:"small",style:{marginTop:"8px"},children:v.actions.map((z,I)=>n.jsx(a.Button,{type:z.type||"default",size:z.size||"small",icon:z.icon,danger:z.danger,disabled:z.disabled,onClick:P=>{P.stopPropagation(),z.onClick(v)},children:z.label},I))})]}),G=n.jsxs("div",{style:{width:h},children:[W&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[n.jsx("span",{style:{fontWeight:600,fontSize:"14px"},children:D}),W]}),n.jsx(a.Divider,{style:{margin:"8px 0"}})]}),n.jsx("div",{style:{maxHeight:g,overflowY:"auto"},children:t.length===0?n.jsx(a.Empty,{description:p,image:a.Empty.PRESENTED_IMAGE_SIMPLE,style:{padding:"24px 0"}}):n.jsx(a.List,{dataSource:t,renderItem:v=>n.jsx(a.List.Item,{style:{padding:0,border:"none",marginBottom:"4px",width:"100%"},onClick:()=>C(v),children:m?m(v):L(v)})})}),u&&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(q,{text:f,onClick:d||(()=>{}),loading:c,icon:c?n.jsx(wt,{}):void 0,style:{width:"100%"}})})]})]});return n.jsx(a.Popover,{content:G,title:W?null:D,trigger:"click",open:w,onOpenChange:S,placement:R,overlayStyle:{maxWidth:h+48},children:n.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:n.jsx(Lt,{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:O,containerStyle:M})})})};function At({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,style:i,className:l,...d}){const u=e.map((c,m)=>s(c,m));return n.jsx(a.Timeline,{mode:t,reverse:r,pending:o,items:u,style:{fontFamily:"var(--font-family, inherit)",...i},className:l,...d})}const fo=({data:e,mode:t="left",reverse:r=!1,pending:o,renderItem:s,showExpediente:i=!1,showUsuario:l=!0,showFlujo:d=!1,dateFormatter:u,style:c,className:m,...f})=>{const p=x=>{if(u)return u(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}},h=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]}),d&&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(At,{data:e,mode:t,reverse:r,pending:o,renderItem:s||h,style:c,className:m,...f})},ho=({className:e,...t})=>n.jsx("div",{className:`custom-carousel-wrapper ${e||""}`,children:n.jsx(a.Carousel,{...t})}),mo=e=>n.jsx(a.Empty,{...e}),po=({className:e,style:t,...r},o)=>n.jsx(a.List,{ref:o,className:`${e}`,style:t,...r}),Be=k.forwardRef(po);Be.Item=a.List.Item;Be.ItemMeta=a.List.Item.Meta;const $t=k.createContext(null),go=()=>{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},yo=({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})},Pt=({children:e,onReady:t})=>n.jsx(a.App,{children:n.jsx(yo,{onReady:t,children:e})}),xo={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"},vo=({children:e,customTokens:t={}})=>{const r={...xo,...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(Pt,{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})})})},bo={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:jo}=a.Tree,Co=({style:e,...t})=>n.jsx(a.Tree,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),wo=({style:e,...t})=>n.jsx(jo,{style:{fontSize:"var(--font-size-medium)",fontFamily:"var(--font-family)",...e},...t}),So=({count:e,dot:t=!1,overflowCount:r=99,showZero:o=!1,size:s="default",status:i,text:l,color:d,offset:u,children:c,style:m,className:f,...p})=>n.jsx(a.Badge,{count:e,dot:t,overflowCount:r,showZero:o,size:s,status:i,text:l,color:d,offset:u,style:{fontSize:"var(--font-size-medium)",...m},className:f,...p,children:c}),ko=({src:e,width:t,height:r,alt:o="",fallback:s,placeholder:i,preview:l=!0,style:d,className:u,...c})=>n.jsx(a.Image,{src:e,width:t,height:r,alt:o,fallback:s,placeholder:i,preview:l,style:d,className:u,...c}),Oo=({children:e,preview:t,items:r,fallback:o})=>n.jsx(a.Image.PreviewGroup,{preview:t,items:r,fallback:o,children:e});exports.Accordion=io;exports.Alert=Kt;exports.Avatar=Xt;exports.AvatarGroup=Zt;exports.Badge=So;exports.Button=q;exports.Calendar=Jn;exports.Card=It;exports.Carousel=ho;exports.CheckBox=et;exports.ClearOutlined=ce;exports.CloseOutlined=xt;exports.Col=me;exports.CustomFilterDrawer=Yn;exports.CustomFilterDrawerHp=Wn;exports.DatePicker=fe;exports.DeleteOutlined=vt;exports.DirectoryTree=wo;exports.Divider=ur;exports.DragAndDrop=so;exports.Drawer=fr;exports.Dropdown=Bt;exports.EditOutlined=Me;exports.Empty=mo;exports.FeedbackProvider=Pt;exports.FileExcelOutlined=bt;exports.FilePdfOutlined=jt;exports.FilterOutlined=De;exports.FilterToolbar=En;exports.FloatButton=_e;exports.Form=oe;exports.Image=ko;exports.ImagePreviewGroup=Oo;exports.Input=Ie;exports.InputSwitch=Mn;exports.LibraryThemeProvider=vo;exports.List=Be;exports.Mentions=Rt;exports.Menu=de;exports.Message=bo;exports.Modal=Et;exports.Notification=Dn;exports.NotificationBadge=Lt;exports.NotificationDropdown=uo;exports.NumericInput=Tt;exports.Pagination=_n;exports.Password=Tn;exports.PlusOutlined=Re;exports.Progress=Hn;exports.Radio=Mt;exports.RadioGroup=Rn;exports.RelationSelector=co;exports.RichTextEditor=no;exports.Row=He;exports.Search=Nn;exports.SearchOutlined=kt;exports.Select=zt;exports.Skeleton=In;exports.Space=Gn;exports.Spin=ge;exports.SubToolbar=Ln;exports.Table=Dt;exports.TableTransfer=lo;exports.Tabs=Fn;exports.Tag=Un;exports.TextArea=zn;exports.Timeline=At;exports.TimelineWithDefaults=fo;exports.Toolbar=Bn;exports.Tooltip=Nt;exports.Transfer=ao;exports.Tree=Co;exports.Upload=$n;exports.UploadDragger=Vn;exports.useFeedback=go;
|
package/dist/my-library.es.js
CHANGED
|
@@ -2985,7 +2985,7 @@ Ne.Item = (e) => /* @__PURE__ */ o(ve.Item, { ...e, className: `custom-menu-item
|
|
|
2985
2985
|
Ne.SubMenu = (e) => /* @__PURE__ */ o(ve.SubMenu, { ...e, className: `custom-menu-submenu ${e.className || ""}` });
|
|
2986
2986
|
Ne.ItemGroup = ve.ItemGroup;
|
|
2987
2987
|
Ne.Divider = ve.Divider;
|
|
2988
|
-
const or = gr, ir = (
|
|
2988
|
+
const or = gr, ir = () => document.body, Qe = (...e) => e.filter(Boolean).join(" "), ar = (e, t) => ({
|
|
2989
2989
|
...e,
|
|
2990
2990
|
root: Qe(
|
|
2991
2991
|
"library-components-wrapper",
|