adpro-react 0.0.10 → 0.0.11
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/adpro-react.cjs.js
CHANGED
@@ -428,7 +428,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
428
428
|
100% { opacity: 1; }
|
429
429
|
}
|
430
430
|
</style>
|
431
|
-
`,gg=()=>{let e=0,t=document.querySelectorAll(".HttpRequestSpinnerCount");t.length>0&&(t.forEach(n=>{let o=document.getElementById(n.id);o&&(o.style.display="none")}),e=t.length);const r=document.createElement("div");return r.id=`HttpRequestSpinner${e}`,r.className="HttpRequestSpinnerCount",r.style.position="fixed",r.style.height="100%",r.style.width="100%",r.style.background="rgba(255, 255, 255, 0.3)",r.style.backdropFilter="blur(2px)",r.style["-webkit-backdrop-filter"]="blur(2px)",r.style.zIndex="99999",r.style.top="0",r.style.left="0",r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center",r.innerHTML=K7,document.body.appendChild(r),r},yg=e=>{document.body.removeChild(e)},bg=(e,t,r)=>e[t]!="-1"&&e[t]!="0"?e:r&&r[t]=="-1"?r:e;function G7(e){const{type:t,action:r="search",value:n,inputValue:o,handleValue:i,labelKey:s,labelText:l,optionAll:c}=e,u=t==="request"?e.request:null,d=t==="list"?e.list:null,[C,g]=f.useState(bg(n,s,c)),[x,b]=f.useState(o||""),[m,v]=f.useState(d||[]),[S,L]=f.useState("input"),[w,E]=f.useState(!1),[y,R]=f.useState(!1),[O,B]=f.useState(!1);f.useEffect(()=>{t==="list"?H(m):r==="all"&&M(V=>H(V))},[]),f.useEffect(()=>{t==="list"||r==="all"?p(m):g(n)},[n]),f.useEffect(()=>{let V=null;return t==="request"&&(r==="search"&&x&&S==="input"||r==="all"&&!y)&&(E(!0),r==="all"&&R(!0)),V=setTimeout(()=>{M()},500),()=>{E(!1),V&&clearInterval(V)}},[x]),f.useEffect(()=>{d&&d.length>0?v(d):v([])},[d]);const H=f.useCallback(V=>{if(n){const z=n||"",W=V.find(Z=>Z[s]==z);W&&(g(W),b(W[l]))}},[n,s,l]),p=f.useCallback(V=>{if(n){const z=n||"",W=V.find(Z=>Z[s]==z);W&&(g(W),b(W[l]))}else g(null),b("")},[n,s,l]),M=f.useCallback(V=>{if(u){t==="request"&&E(!0);let z=x.trim();(z.trim()===""||z===" "||z===""||z==="-1"||z.trim()==="Todos")&&(z="_"),u.body={filter:z},Y7.Send(u).then(W=>{if(W){let Z=W;Z=u!=null&&Z.length>20?Z.slice(0,20):Z??[],Z.length===void 0&&(Z=[]),v(Z),V&&V(Z)}t==="request"&&E(!1)})}},[x,m,u,r,t,w]),D=f.useCallback(V=>{V&&(g(V),i&&i(V))},[]),j=f.useCallback(V=>{V?b(V):I()},[r,t]),N=f.useCallback(V=>{L(V)},[]),I=f.useCallback(()=>{if(t==="request")c?(v([]),g(c),b(c[l]),i&&i(c)):(g(null),b(""),v([]),i&&i(null));else if(d)if(c){const V=d.find(z=>z[s]=="-1");V&&(g(V),b(V[l]),i&&i(V))}else{const V=n||"",z=d.find(W=>W[s]==V);z&&(g(z),b(z[l]),i&&i(z))}},[]);return f.useEffect(()=>{O&&t==="request"&&M()},[O]),{dataList:m,loading:w,isFocused:O,autocompleteValue:C,textFieldValue:x,handleAutocompleteValue:D,handleTextFieldValue:j,handleReasonChangeTextField:N,setIsFocused:B,clearValues:I}}const vg=qt($.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),xg=qt($.jsx("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),Eg=qt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded"),wg=qt($.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded"),Sg=qt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),Tg=qt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"ErrorRounded"),Rg=qt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1-8h-2V7h2z"}),"InfoRounded"),Lg=qt($.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined"),Og=qt($.jsx("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"WarningRounded");function m0(e,t,r){return(t=Pg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function r1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A9(Object(r),!0).forEach(function(n){m0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pg(e){var t=Mg(e,"string");return typeof t=="symbol"?t:t+""}function L1(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}var h0="$$material";function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jo.apply(null,arguments)}function X7(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var $g=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kg=X7(function(e){return $g.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),oa=typeof document<"u";function Ag(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var J7=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||oa===!1&&t.compat!==void 0)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Vg=function(t,r,n){J7(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i="",s=r;do{var l=t.insert(r===s?"."+o:"",s,t.sheet,!0);!oa&&l!==void 0&&(i+=l),s=s.next}while(s!==void 0);if(!oa&&i.length!==0)return i}};function Dg(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hg=/[A-Z]|^ms/g,Ig=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Q7=function(t){return t.charCodeAt(1)===45},V9=function(t){return t!=null&&typeof t!="boolean"},h3=X7(function(e){return Q7(e)?e:e.replace(Hg,"-$&").toLowerCase()}),D9=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ig,function(n,o,i){return z2={name:o,styles:i,next:z2},o})}return Bg[t]!==1&&!Q7(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ln(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return z2={name:o.name,styles:o.styles,next:z2},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)z2={name:s.name,styles:s.styles,next:z2},s=s.next;var l=i.styles+";";return l}return Fg(e,t,r)}case"function":{if(e!==void 0){var c=z2,u=r(e);return z2=c,Ln(e,t,u)}break}}var d=r;if(t==null)return d;var C=t[d];return C!==void 0?C:d}function Fg(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ln(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":V9(l)&&(n+=h3(i)+":"+D9(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)V9(s[c])&&(n+=h3(i)+":"+D9(i,s[c])+";");else{var u=Ln(e,t,s);switch(i){case"animation":case"animationName":{n+=h3(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var B9=/label:\s*([^\s;{]+)\s*(;|$)/g,z2;function e8(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";z2=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Ln(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Ln(r,t,e[l]),n){var c=i;o+=c[l]}B9.lastIndex=0;for(var u="",d;(d=B9.exec(o))!==null;)u+="-"+d[1];var C=Dg(o)+u;return{name:C,styles:o,next:z2}}var Ng=typeof document<"u",H9=function(t){return t()},jg=T.useInsertionEffect?T.useInsertionEffect:!1,_g=Ng&&jg||H9,Zg=kg,zg=function(t){return t!=="theme"},I9=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Zg:zg},F9=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},N9=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
431
|
+
`,gg=()=>{let e=0,t=document.querySelectorAll(".HttpRequestSpinnerCount");t.length>0&&(t.forEach(n=>{let o=document.getElementById(n.id);o&&(o.style.display="none")}),e=t.length);const r=document.createElement("div");return r.id=`HttpRequestSpinner${e}`,r.className="HttpRequestSpinnerCount",r.style.position="fixed",r.style.height="100%",r.style.width="100%",r.style.background="rgba(255, 255, 255, 0.3)",r.style.backdropFilter="blur(2px)",r.style["-webkit-backdrop-filter"]="blur(2px)",r.style.zIndex="99999",r.style.top="0",r.style.left="0",r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center",r.innerHTML=K7,document.body.appendChild(r),r},yg=e=>{document.body.removeChild(e)},bg=(e,t,r)=>e[t]!="-1"&&e[t]!="0"?e:r&&r[t]=="-1"?r:e;function G7(e){const{type:t,action:r="search",value:n,inputValue:o,handleValue:i,labelKey:s,labelText:l,optionAll:c}=e,u=t==="request"?e.request:null,d=t==="list"?e.list:null,[C,g]=f.useState(bg(n,s,c)),[x,b]=f.useState(o||""),[m,v]=f.useState(d||[]),[S,L]=f.useState("input"),[w,E]=f.useState(!1),[y,R]=f.useState(!1),[O,B]=f.useState(!1);f.useEffect(()=>{t==="list"?H(m):r==="all"&&M(V=>H(V))},[]),f.useEffect(()=>{t==="list"||r==="all"?p(m):g(n)},[n]),f.useEffect(()=>{let V=null;return t==="request"&&(r==="search"&&x&&S==="input"||r==="all"&&!y)&&(E(!0),r==="all"&&R(!0)),V=setTimeout(()=>{M()},500),()=>{E(!1),V&&clearInterval(V)}},[x]),f.useEffect(()=>{d&&d.length>0?v(d):v([])},[d]);const H=f.useCallback(V=>{if(n){const z=n||"",W=V.find(Z=>Z[s]==z);W&&(g(W),b(W[l]))}},[n,s,l]),p=f.useCallback(V=>{if(n){const z=n||"",W=V.find(Z=>Z[s]==z);W&&(g(W),b(W[l]))}else g(null),b("")},[n,s,l]),M=f.useCallback(V=>{if(u){t==="request"&&E(!0);let z=x.trim();if((z.trim()===""||z===" "||z===""||z==="-1"||z.trim()==="Todos")&&(z="_"),C&&C[l]===z){v([C]),E(!1);return}u.body={filter:z},Y7.Send(u).then(W=>{if(W){let Z=W;Z=u!=null&&Z.length>20?Z.slice(0,20):Z??[],Z.length===void 0&&(Z=[]),v(Z),V&&V(Z)}t==="request"&&E(!1)})}},[x,m,u,r,t,w]),D=f.useCallback(V=>{V&&(g(V),i&&i(V))},[]),j=f.useCallback(V=>{V?b(V):I()},[r,t]),N=f.useCallback(V=>{L(V)},[]),I=f.useCallback(()=>{if(t==="request")c?(v([]),g(c),b(c[l]),i&&i(c)):(g(null),b(""),v([]),i&&i(null));else if(d)if(c){const V=d.find(z=>z[s]=="-1");V&&(g(V),b(V[l]),i&&i(V))}else{const V=n||"",z=d.find(W=>W[s]==V);z&&(g(z),b(z[l]),i&&i(z))}},[]);return f.useEffect(()=>{O&&t==="request"&&M()},[O]),{dataList:m,loading:w,isFocused:O,autocompleteValue:C,textFieldValue:x,handleAutocompleteValue:D,handleTextFieldValue:j,handleReasonChangeTextField:N,setIsFocused:B,clearValues:I}}const vg=qt($.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),xg=qt($.jsx("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),Eg=qt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded"),wg=qt($.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded"),Sg=qt($.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),Tg=qt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"ErrorRounded"),Rg=qt($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1-8h-2V7h2z"}),"InfoRounded"),Lg=qt($.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined"),Og=qt($.jsx("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"WarningRounded");function m0(e,t,r){return(t=Pg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function r1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A9(Object(r),!0).forEach(function(n){m0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pg(e){var t=Mg(e,"string");return typeof t=="symbol"?t:t+""}function L1(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}var h0="$$material";function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jo.apply(null,arguments)}function X7(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var $g=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kg=X7(function(e){return $g.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),oa=typeof document<"u";function Ag(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var J7=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||oa===!1&&t.compat!==void 0)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Vg=function(t,r,n){J7(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i="",s=r;do{var l=t.insert(r===s?"."+o:"",s,t.sheet,!0);!oa&&l!==void 0&&(i+=l),s=s.next}while(s!==void 0);if(!oa&&i.length!==0)return i}};function Dg(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hg=/[A-Z]|^ms/g,Ig=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Q7=function(t){return t.charCodeAt(1)===45},V9=function(t){return t!=null&&typeof t!="boolean"},h3=X7(function(e){return Q7(e)?e:e.replace(Hg,"-$&").toLowerCase()}),D9=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ig,function(n,o,i){return z2={name:o,styles:i,next:z2},o})}return Bg[t]!==1&&!Q7(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ln(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return z2={name:o.name,styles:o.styles,next:z2},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)z2={name:s.name,styles:s.styles,next:z2},s=s.next;var l=i.styles+";";return l}return Fg(e,t,r)}case"function":{if(e!==void 0){var c=z2,u=r(e);return z2=c,Ln(e,t,u)}break}}var d=r;if(t==null)return d;var C=t[d];return C!==void 0?C:d}function Fg(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ln(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":V9(l)&&(n+=h3(i)+":"+D9(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)V9(s[c])&&(n+=h3(i)+":"+D9(i,s[c])+";");else{var u=Ln(e,t,s);switch(i){case"animation":case"animationName":{n+=h3(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var B9=/label:\s*([^\s;{]+)\s*(;|$)/g,z2;function e8(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";z2=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Ln(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Ln(r,t,e[l]),n){var c=i;o+=c[l]}B9.lastIndex=0;for(var u="",d;(d=B9.exec(o))!==null;)u+="-"+d[1];var C=Dg(o)+u;return{name:C,styles:o,next:z2}}var Ng=typeof document<"u",H9=function(t){return t()},jg=T.useInsertionEffect?T.useInsertionEffect:!1,_g=Ng&&jg||H9,Zg=kg,zg=function(t){return t!=="theme"},I9=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Zg:zg},F9=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},N9=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
432
432
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
433
433
|
You can read more about this here:
|
434
434
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Ug=typeof document<"u",Wg=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;J7(r,n,o);var i=_g(function(){return Vg(r,n,o)});if(!Ug&&i!==void 0){for(var s,l=n.name,c=n.next;c!==void 0;)l+=" "+c.name,c=c.next;return T.createElement("style",(s={},s["data-emotion"]=r.key+" "+l,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},qg=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
@@ -832,4 +832,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
832
832
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
833
833
|
* See the License for the specific language governing permissions and
|
834
834
|
* limitations under the License.
|
835
|
-
*/function jr(e){return e.variant===$n.FIDELITY||e.variant===$n.CONTENT}function Mt(e){return e.variant===$n.MONOCHROME}function gw(e,t,r,n){let o=r,i=_1.from(e,t,r);if(i.chroma<t){let s=i.chroma;for(;i.chroma<t;){o+=n?-1:1;const l=_1.from(e,t,o);if(s>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),u=Math.abs(i.chroma-t);c<u&&(i=l),s=Math.max(s,l.chroma)}}return o}function yw(e){return $2.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function B0(e,t){const r=e.inViewingConditions(yw(t));return xe.tonePrefersLightForeground(e.tone)&&!xe.toneAllowsLightForeground(r.tone)?xe.enableLightForeground(e.tone):xe.enableLightForeground(r.tone)}class J{static highestSurface(t){return t.isDark?J.surfaceBright:J.surfaceDim}}J.contentAccentToneDelta=15;J.primaryPaletteKeyColor=xe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});J.secondaryPaletteKeyColor=xe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});J.tertiaryPaletteKeyColor=xe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});J.neutralPaletteKeyColor=xe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});J.neutralVariantPaletteKeyColor=xe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});J.background=xe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.onBackground=xe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.background,contrastCurve:new Ze(3,3,4.5,7)});J.surface=xe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.surfaceDim=xe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});J.surfaceBright=xe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});J.surfaceContainerLowest=xe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});J.surfaceContainerLow=xe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});J.surfaceContainer=xe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});J.surfaceContainerHigh=xe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});J.surfaceContainerHighest=xe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});J.onSurface=xe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.highestSurface(e),contrastCurve:new Ze(4.5,7,11,21)});J.surfaceVariant=xe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});J.onSurfaceVariant=xe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11)});J.inverseSurface=xe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});J.inverseOnSurface=xe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>J.inverseSurface,contrastCurve:new Ze(4.5,7,11,21)});J.outline=xe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>J.highestSurface(e),contrastCurve:new Ze(1.5,3,4.5,7)});J.outlineVariant=xe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7)});J.shadow=xe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});J.scrim=xe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});J.surfaceTint=xe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});J.primary=xe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Mt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimary=xe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Mt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.primary,contrastCurve:new Ze(4.5,7,11,21)});J.primaryContainer=xe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>jr(e)?B0(e.sourceColorHct,e):Mt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimaryContainer=xe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>jr(e)?xe.foregroundTone(J.primaryContainer.tone(e),4.5):Mt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>J.primaryContainer,contrastCurve:new Ze(4.5,7,11,21)});J.inversePrimary=xe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>J.inverseSurface,contrastCurve:new Ze(3,4.5,7,11)});J.secondary=xe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondary=xe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>J.secondary,contrastCurve:new Ze(4.5,7,11,21)});J.secondaryContainer=xe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(Mt(e))return e.isDark?30:85;if(!jr(e))return t;let r=gw(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return r=B0(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondaryContainer=xe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>jr(e)?xe.foregroundTone(J.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.secondaryContainer,contrastCurve:new Ze(4.5,7,11,21)});J.tertiary=xe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiary=xe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.tertiary,contrastCurve:new Ze(4.5,7,11,21)});J.tertiaryContainer=xe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Mt(e))return e.isDark?60:49;if(!jr(e))return e.isDark?30:90;const t=B0(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(t);return D0.fixIfDisliked(r).tone},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiaryContainer=xe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?e.isDark?0:100:jr(e)?xe.foregroundTone(J.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.tertiaryContainer,contrastCurve:new Ze(4.5,7,11,21)});J.error=xe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onError=xe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>J.error,contrastCurve:new Ze(4.5,7,11,21)});J.errorContainer=xe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onErrorContainer=xe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>J.errorContainer,contrastCurve:new Ze(4.5,7,11,21)});J.primaryFixed=xe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Mt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.primaryFixedDim=xe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Mt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.onPrimaryFixed=xe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Mt(e)?100:10,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ze(4.5,7,11,21)});J.onPrimaryFixedVariant=xe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Mt(e)?90:30,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ze(3,4.5,7,11)});J.secondaryFixed=xe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?80:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.secondaryFixedDim=xe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?70:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.onSecondaryFixed=xe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ze(4.5,7,11,21)});J.onSecondaryFixedVariant=xe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?25:30,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ze(3,4.5,7,11)});J.tertiaryFixed=xe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.tertiaryFixedDim=xe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.onTertiaryFixed=xe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?100:10,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ze(4.5,7,11,21)});J.onTertiaryFixedVariant=xe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?90:30,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ze(3,4.5,7,11)});const J8={...ya,components:{...ya.components,MuiTableHead:{styleOverrides:{root:{th:{padding:"0.2rem 0.5rem !important",borderBottom:"1px solid rgba(226, 227, 232, 1) !important",color:"text-primary",background:O3[50]},"th .MuiButtonBase-root":{color:"text-primary",cursor:"pointer"},td:{borderLeft:"none"}}}},MuiTableBody:{styleOverrides:{root:{".MuiTableCell-root":{padding:"0.1rem 0.5rem !important"},".MuiTableRow-root:hover":{backgroundColor:O3[100]}}}},MuiTableFooter:{styleOverrides:{root:{".MuiTableCell-footer":{padding:"2px 4px !important"}}}}}},bw=e=>{const{label:t,helperText:r,inputRef:n,name:o,customTheme:i,required:s,error:l,placeholder:c,size:u,type:d,labelText:C,optionAll:g}=e,{dataList:x,loading:b,isFocused:m,autocompleteValue:v,textFieldValue:S,handleAutocompleteValue:L,handleTextFieldValue:w,handleReasonChangeTextField:E,setIsFocused:y,clearValues:R}=G7(e);let O=i||J8,B=g?[g,...x]:x;const H=f.useMemo(()=>{const p={...e};return delete p.handleValue,delete p.labelText,delete p.labelKey,delete p.helperText,delete p.error,delete p.ref,delete p.inputRef,delete p.name,delete p.labelSelection,delete p.size,delete p.optionAll,p},[e]);return $.jsx(Ju,{theme:O,children:$.jsx(Q4,{...H,filterOptions:p=>p,noOptionsText:"No se encontraron resultados",options:B,onChange:(p,M)=>L(M),onInputChange:(p,M,D)=>{w(M),E(D)},getOptionLabel:e.getOptionLabel?e.getOptionLabel:p=>p?p[C]:"",renderOption:(p,M)=>f.createElement(r7,{component:"li",...p,key:`${M[e.labelKey]}-${M[e.labelText]}`,sx:{borderBottom:M[e.labelKey]==="-1"||M[e.labelKey]===-1?`${ya.palette.divider} 1px solid`:"inherit"}},M[e.labelText]),value:v,inputValue:S,loading:b,size:u,renderInput:p=>$.jsx(E7,{...p,label:t,value:S,error:l,helperText:r,placeholder:c,required:s,ref:n,name:o??"",size:u,onFocus:M=>{y(!0)},onBlur:()=>y(!1),InputProps:{...p.InputProps,endAdornment:$.jsxs($.Fragment,{children:[S&&d!=="list"?$.jsx(Vr,{size:"small",onClick:R,children:$.jsx(wg,{fontSize:"small"})}):null,b?$.jsx(n7,{color:"primary",size:20}):d==="list"?m?$.jsx(xg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(vg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(Lg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"})]})}})})})},Ra=e=>{const{primaryMessage:t,secondaryMessage:r,details:n,finishAction:o,severity:i="success",timeProgress:s=5,customContent:l}=e,[c,u]=f.useState(0),d=f.useRef(null),[C,g]=f.useState(!0),x=()=>{u(S=>S>=100?(m(),100):S+parseFloat(`1.${10/s}`))},b=()=>{d.current=setInterval(()=>{x()},s*10)},m=()=>{d.current&&(clearInterval(d.current),d.current=null),g(!1)},v=f.useCallback(S=>{S?d.current&&(clearInterval(d.current),d.current=null):b()},[]);return f.useEffect(()=>{u(0),g(!0),b()},[e]),f.useEffect(()=>{!C&&o&&o()},[C]),C&&$.jsxs(Er,{children:[$.jsxs(I4,{"data-testid":"alert-toast-adpro",severity:i,onMouseOver:()=>v(!0),onMouseOut:()=>v(!1),sx:{boxShadow:"1px 5px 2px rgba(0,0,0,.2)",borderRadius:"4px 4px 0px 0px","& .MuiAlert-action":{marginBottom:"auto"},"& .MuiAlert-message ":{width:"100%"}},action:$.jsx(Vr,{onClick:()=>g(!1),sx:{padding:0},children:$.jsx(Sg,{fontSize:"small",sx:{cursor:"pointer"}})}),children:[$.jsx(F4,{children:t}),r||"",n&&n.length>0&&$.jsx(Er,{maxHeight:"9rem",overflow:"auto",children:n.map((S,L)=>$.jsx(Ja,{variant:"caption",color:"text.secondary",children:S},L))}),$.jsx(Er,{paddingTop:1,children:l&&l})]}),$.jsx(c7,{value:c,variant:"determinate",color:i,sx:{borderEndEndRadius:4,borderEndStartRadius:4}})]})},H0=f.memo(e=>{const{elements:t}=e,[r,n]=f.useState(!0);return f.useEffect(()=>{n(!0)},[t]),r&&$.jsx(Er,{position:"fixed",top:25,right:25,zIndex:1500,maxWidth:"45%",minWidth:"25%",children:$.jsx(Er,{gap:1,sx:{flexDirection:"column"},children:r&&!Array.isArray(t)?$.jsx(Ra,{...t}):Array.isArray(t)&&t.map((o,i)=>$.jsx(Ra,{...o},i))})})}),vw=e=>{const[t,r]=f.useState(e),n=o=>r(o);return[t?S2.createPortal($.jsx(H0,{elements:t}),document.body):S2.createPortal($.jsx($.Fragment,{}),document.body),n]};exports.ADPROTheme=J8;exports.AutocompleteADPRO=bw;exports.Loading=K7;exports.RequestADPRO=Y7;exports.ToastADPRO=Ra;exports.ToastsContainer=H0;exports.addLoading=gg;exports.getAuthorization=C0;exports.removeLoading=yg;exports.useAutocompleteADPRO=G7;exports.useToast=vw;
|
835
|
+
*/function jr(e){return e.variant===$n.FIDELITY||e.variant===$n.CONTENT}function Mt(e){return e.variant===$n.MONOCHROME}function gw(e,t,r,n){let o=r,i=_1.from(e,t,r);if(i.chroma<t){let s=i.chroma;for(;i.chroma<t;){o+=n?-1:1;const l=_1.from(e,t,o);if(s>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),u=Math.abs(i.chroma-t);c<u&&(i=l),s=Math.max(s,l.chroma)}}return o}function yw(e){return $2.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function B0(e,t){const r=e.inViewingConditions(yw(t));return xe.tonePrefersLightForeground(e.tone)&&!xe.toneAllowsLightForeground(r.tone)?xe.enableLightForeground(e.tone):xe.enableLightForeground(r.tone)}class J{static highestSurface(t){return t.isDark?J.surfaceBright:J.surfaceDim}}J.contentAccentToneDelta=15;J.primaryPaletteKeyColor=xe.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});J.secondaryPaletteKeyColor=xe.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});J.tertiaryPaletteKeyColor=xe.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});J.neutralPaletteKeyColor=xe.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});J.neutralVariantPaletteKeyColor=xe.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});J.background=xe.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.onBackground=xe.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.background,contrastCurve:new Ze(3,3,4.5,7)});J.surface=xe.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});J.surfaceDim=xe.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});J.surfaceBright=xe.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});J.surfaceContainerLowest=xe.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});J.surfaceContainerLow=xe.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});J.surfaceContainer=xe.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});J.surfaceContainerHigh=xe.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});J.surfaceContainerHighest=xe.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});J.onSurface=xe.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>J.highestSurface(e),contrastCurve:new Ze(4.5,7,11,21)});J.surfaceVariant=xe.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});J.onSurfaceVariant=xe.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11)});J.inverseSurface=xe.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});J.inverseOnSurface=xe.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>J.inverseSurface,contrastCurve:new Ze(4.5,7,11,21)});J.outline=xe.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>J.highestSurface(e),contrastCurve:new Ze(1.5,3,4.5,7)});J.outlineVariant=xe.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7)});J.shadow=xe.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});J.scrim=xe.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});J.surfaceTint=xe.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});J.primary=xe.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Mt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimary=xe.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Mt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.primary,contrastCurve:new Ze(4.5,7,11,21)});J.primaryContainer=xe.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>jr(e)?B0(e.sourceColorHct,e):Mt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryContainer,J.primary,15,"nearer",!1)});J.onPrimaryContainer=xe.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>jr(e)?xe.foregroundTone(J.primaryContainer.tone(e),4.5):Mt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>J.primaryContainer,contrastCurve:new Ze(4.5,7,11,21)});J.inversePrimary=xe.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>J.inverseSurface,contrastCurve:new Ze(3,4.5,7,11)});J.secondary=xe.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondary=xe.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>J.secondary,contrastCurve:new Ze(4.5,7,11,21)});J.secondaryContainer=xe.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(Mt(e))return e.isDark?30:85;if(!jr(e))return t;let r=gw(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return r=B0(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryContainer,J.secondary,15,"nearer",!1)});J.onSecondaryContainer=xe.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>jr(e)?xe.foregroundTone(J.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.secondaryContainer,contrastCurve:new Ze(4.5,7,11,21)});J.tertiary=xe.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiary=xe.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>J.tertiary,contrastCurve:new Ze(4.5,7,11,21)});J.tertiaryContainer=xe.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Mt(e))return e.isDark?60:49;if(!jr(e))return e.isDark?30:90;const t=B0(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(t);return D0.fixIfDisliked(r).tone},isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryContainer,J.tertiary,15,"nearer",!1)});J.onTertiaryContainer=xe.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?e.isDark?0:100:jr(e)?xe.foregroundTone(J.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>J.tertiaryContainer,contrastCurve:new Ze(4.5,7,11,21)});J.error=xe.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(3,4.5,7,11),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onError=xe.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>J.error,contrastCurve:new Ze(4.5,7,11,21)});J.errorContainer=xe.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.errorContainer,J.error,15,"nearer",!1)});J.onErrorContainer=xe.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>J.errorContainer,contrastCurve:new Ze(4.5,7,11,21)});J.primaryFixed=xe.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Mt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.primaryFixedDim=xe.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Mt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.primaryFixed,J.primaryFixedDim,10,"lighter",!0)});J.onPrimaryFixed=xe.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Mt(e)?100:10,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ze(4.5,7,11,21)});J.onPrimaryFixedVariant=xe.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Mt(e)?90:30,background:e=>J.primaryFixedDim,secondBackground:e=>J.primaryFixed,contrastCurve:new Ze(3,4.5,7,11)});J.secondaryFixed=xe.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?80:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.secondaryFixedDim=xe.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?70:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.secondaryFixed,J.secondaryFixedDim,10,"lighter",!0)});J.onSecondaryFixed=xe.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ze(4.5,7,11,21)});J.onSecondaryFixedVariant=xe.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Mt(e)?25:30,background:e=>J.secondaryFixedDim,secondBackground:e=>J.secondaryFixed,contrastCurve:new Ze(3,4.5,7,11)});J.tertiaryFixed=xe.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?40:90,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.tertiaryFixedDim=xe.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?30:80,isBackground:!0,background:e=>J.highestSurface(e),contrastCurve:new Ze(1,1,3,7),toneDeltaPair:e=>new o2(J.tertiaryFixed,J.tertiaryFixedDim,10,"lighter",!0)});J.onTertiaryFixed=xe.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?100:10,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ze(4.5,7,11,21)});J.onTertiaryFixedVariant=xe.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Mt(e)?90:30,background:e=>J.tertiaryFixedDim,secondBackground:e=>J.tertiaryFixed,contrastCurve:new Ze(3,4.5,7,11)});const J8={...ya,components:{...ya.components,MuiTableHead:{styleOverrides:{root:{th:{padding:"0.2rem 0.5rem !important",borderBottom:"1px solid rgba(226, 227, 232, 1) !important",color:"text-primary",background:O3[50]},"th .MuiButtonBase-root":{color:"text-primary",cursor:"pointer"},td:{borderLeft:"none"}}}},MuiTableBody:{styleOverrides:{root:{".MuiTableCell-root":{padding:"0.1rem 0.5rem !important"},".MuiTableRow-root:hover":{backgroundColor:O3[100]}}}},MuiTableFooter:{styleOverrides:{root:{".MuiTableCell-footer":{padding:"2px 4px !important"}}}}}},bw=e=>{const{label:t,helperText:r,inputRef:n,name:o,customTheme:i,required:s,error:l,placeholder:c,size:u,type:d,labelText:C,optionAll:g}=e,{dataList:x,loading:b,isFocused:m,autocompleteValue:v,textFieldValue:S,handleAutocompleteValue:L,handleTextFieldValue:w,handleReasonChangeTextField:E,setIsFocused:y,clearValues:R}=G7(e);let O=i||J8,B=g?[g,...x]:x;const H=f.useMemo(()=>{const p={...e};return delete p.handleValue,delete p.labelText,delete p.labelKey,delete p.helperText,delete p.error,delete p.ref,delete p.inputRef,delete p.name,delete p.labelSelection,delete p.size,delete p.optionAll,p},[e]);return $.jsx(Ju,{theme:O,children:$.jsx(Q4,{...H,filterOptions:p=>p,noOptionsText:"No se encontraron resultados.",options:B,onChange:(p,M)=>L(M),onInputChange:(p,M,D)=>{w(M),E(D)},getOptionLabel:e.getOptionLabel?e.getOptionLabel:p=>p?p[C]:"",renderOption:(p,M)=>f.createElement(r7,{component:"li",...p,key:`${M[e.labelKey]}-${M[e.labelText]}`,sx:{borderBottom:M[e.labelKey]==="-1"||M[e.labelKey]===-1?`${ya.palette.divider} 1px solid`:"inherit"}},M[e.labelText]),value:v,inputValue:S,loading:b,loadingText:"Consultando...",size:u,renderInput:p=>$.jsx(E7,{...p,label:t,value:S,error:l,helperText:r,placeholder:c,required:s,ref:n,name:o??"",size:u,onFocus:M=>{y(!0)},onBlur:()=>y(!1),InputProps:{...p.InputProps,endAdornment:$.jsxs($.Fragment,{children:[S&&d!=="list"?$.jsx(Vr,{size:"small",onClick:R,children:$.jsx(wg,{fontSize:"small"})}):null,b?$.jsx(n7,{color:"primary",size:20}):d==="list"?m?$.jsx(xg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(vg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):$.jsx(Lg,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"})]})}})})})},Ra=e=>{const{primaryMessage:t,secondaryMessage:r,details:n,finishAction:o,severity:i="success",timeProgress:s=5,customContent:l}=e,[c,u]=f.useState(0),d=f.useRef(null),[C,g]=f.useState(!0),x=()=>{u(S=>S>=100?(m(),100):S+parseFloat(`1.${10/s}`))},b=()=>{d.current=setInterval(()=>{x()},s*10)},m=()=>{d.current&&(clearInterval(d.current),d.current=null),g(!1)},v=f.useCallback(S=>{S?d.current&&(clearInterval(d.current),d.current=null):b()},[]);return f.useEffect(()=>{u(0),g(!0),b()},[e]),f.useEffect(()=>{!C&&o&&o()},[C]),C&&$.jsxs(Er,{children:[$.jsxs(I4,{"data-testid":"alert-toast-adpro",severity:i,onMouseOver:()=>v(!0),onMouseOut:()=>v(!1),sx:{boxShadow:"1px 5px 2px rgba(0,0,0,.2)",borderRadius:"4px 4px 0px 0px","& .MuiAlert-action":{marginBottom:"auto"},"& .MuiAlert-message ":{width:"100%"}},action:$.jsx(Vr,{onClick:()=>g(!1),sx:{padding:0},children:$.jsx(Sg,{fontSize:"small",sx:{cursor:"pointer"}})}),children:[$.jsx(F4,{children:t}),r||"",n&&n.length>0&&$.jsx(Er,{maxHeight:"9rem",overflow:"auto",children:n.map((S,L)=>$.jsx(Ja,{variant:"caption",color:"text.secondary",children:S},L))}),$.jsx(Er,{paddingTop:1,children:l&&l})]}),$.jsx(c7,{value:c,variant:"determinate",color:i,sx:{borderEndEndRadius:4,borderEndStartRadius:4}})]})},H0=f.memo(e=>{const{elements:t}=e,[r,n]=f.useState(!0);return f.useEffect(()=>{n(!0)},[t]),r&&$.jsx(Er,{position:"fixed",top:25,right:25,zIndex:1500,maxWidth:"45%",minWidth:"25%",children:$.jsx(Er,{gap:1,sx:{flexDirection:"column"},children:r&&!Array.isArray(t)?$.jsx(Ra,{...t}):Array.isArray(t)&&t.map((o,i)=>$.jsx(Ra,{...o},i))})})}),vw=e=>{const[t,r]=f.useState(e),n=o=>r(o);return[t?S2.createPortal($.jsx(H0,{elements:t}),document.body):S2.createPortal($.jsx($.Fragment,{}),document.body),n]};exports.ADPROTheme=J8;exports.AutocompleteADPRO=bw;exports.Loading=K7;exports.RequestADPRO=Y7;exports.ToastADPRO=Ra;exports.ToastsContainer=H0;exports.addLoading=gg;exports.getAuthorization=C0;exports.removeLoading=yg;exports.useAutocompleteADPRO=G7;exports.useToast=vw;
|
package/dist/adpro-react.es.js
CHANGED
@@ -22004,7 +22004,11 @@ function Og(e) {
|
|
22004
22004
|
if (u) {
|
22005
22005
|
t === "request" && E(!0);
|
22006
22006
|
let z = x.trim();
|
22007
|
-
(z.trim() === "" || z === " " || z === "" || z === "-1" || z.trim() === "Todos") && (z = "_"),
|
22007
|
+
if ((z.trim() === "" || z === " " || z === "" || z === "-1" || z.trim() === "Todos") && (z = "_"), f && f[l] === z) {
|
22008
|
+
v([f]), E(!1);
|
22009
|
+
return;
|
22010
|
+
}
|
22011
|
+
u.body = {
|
22008
22012
|
filter: z
|
22009
22013
|
}, Eg.Send(u).then((W) => {
|
22010
22014
|
if (W) {
|
@@ -38770,7 +38774,7 @@ const Ow = {
|
|
38770
38774
|
{
|
38771
38775
|
...H,
|
38772
38776
|
filterOptions: (p) => p,
|
38773
|
-
noOptionsText: "No se encontraron resultados",
|
38777
|
+
noOptionsText: "No se encontraron resultados.",
|
38774
38778
|
options: B,
|
38775
38779
|
onChange: (p, M) => L(M),
|
38776
38780
|
onInputChange: (p, M, D) => {
|
@@ -38792,6 +38796,7 @@ const Ow = {
|
|
38792
38796
|
value: v,
|
38793
38797
|
inputValue: S,
|
38794
38798
|
loading: b,
|
38799
|
+
loadingText: "Consultando...",
|
38795
38800
|
size: u,
|
38796
38801
|
renderInput: (p) => /* @__PURE__ */ $.jsx(
|
38797
38802
|
R7,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useAutocompleteADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/hook/useAutocompleteADPRO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAG,MAAM,eAAe,CAAC;AACtG,OAAO,EAAgB,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,0BAA0B,CACvC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC/B,SAAQ,IAAI,CACV,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,EAC9E,SAAS,GACT,aAAa,GACb,UAAU,GACV,eAAe,GACf,cAAc,GACd,OAAO,GACP,cAAc,CACnB;IACG,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC1B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,KAAK,GAAG,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EACP,CAAC,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC,GAC3C,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAC/B,IAAI,GACJ,SAAS,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACnE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACrC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED,MAAM,WAAW,8BAA8B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACzE,SAAQ,wBAAwB,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAChE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,CAAC;CACb;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAC1D,wBAAwB,CAAC,CAAC,CAAC,GAC3B,8BAA8B,CAAC,CAAC,CAAC,GACjC,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAe/B,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9D,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC;;;;;;
|
1
|
+
{"version":3,"file":"useAutocompleteADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/hook/useAutocompleteADPRO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAG,MAAM,eAAe,CAAC;AACtG,OAAO,EAAgB,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,0BAA0B,CACvC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC/B,SAAQ,IAAI,CACV,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,EAC9E,SAAS,GACT,aAAa,GACb,UAAU,GACV,eAAe,GACf,cAAc,GACd,OAAO,GACP,cAAc,CACnB;IACG,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC1B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,KAAK,GAAG,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EACP,CAAC,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC,GAC3C,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAC/B,IAAI,GACJ,SAAS,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACnE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACrC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED,MAAM,WAAW,8BAA8B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACzE,SAAQ,wBAAwB,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAChE,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,CAAC;CACb;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAC1D,wBAAwB,CAAC,CAAC,CAAC,GAC3B,8BAA8B,CAAC,CAAC,CAAC,GACjC,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAe/B,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9D,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC;;;;;;wCA+KuB,CAAC,GAAG,IAAI;sCASV,MAAM;0CAQF,6BAA6B;;;EAqEzF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AuctocompleteADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/view/AuctocompleteADPRO.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAwB,MAAM,8BAA8B,CAAC;AAQ5F,eAAO,MAAM,iBAAiB,GACzB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SAAS,sBAAsB,CAAC,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"AuctocompleteADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/view/AuctocompleteADPRO.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAwB,MAAM,8BAA8B,CAAC;AAQ5F,eAAO,MAAM,iBAAiB,GACzB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SAAS,sBAAsB,CAAC,CAAC,CAAC,4CA6I/D,CAAA"}
|
package/dist/main.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK,+
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK,+CA4HjB,CAAA"}
|