adpro-react 0.0.22-rc.2 → 0.0.22-rc.3

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.
@@ -329,7 +329,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
329
329
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hl]=this[Hl]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=un(s);n[l]||(Mg(o,s),n[l]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};a2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(a2.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});X.freezeMethods(a2);function Ma(e,t){const r=this||Jn,n=t||r,o=a2.from(n.headers);let i=n.data;return X.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function r8(e){return!!(e&&e.__CANCEL__)}function qr(e,t,r){Ie.call(this,e??"canceled",Ie.ERR_CANCELED,t,r),this.name="CanceledError"}X.inherits(qr,Ie,{__CANCEL__:!0});function n8(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ie("Request failed with status code "+r.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $g(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[i];s||(s=u),r[o]=c,n[o]=u;let f=i,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const v=d&&u-d;return v?Math.round(h*1e3/v):void 0}}function kg(e,t){let r=0,n=1e3/t,o,i;const s=(u,d=Date.now())=>{r=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=n?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},n-f)))},()=>o&&s(o)]}const Go=(e,t,r=3)=>{let n=0;const o=Pg(50,250);return kg(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-n,u=o(c),d=s<=l;n=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Nl=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fl=e=>(...t)=>X.asap(()=>e(...t)),Vg=Jt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Jt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Jt.origin),Jt.navigator&&/(msie|trident)/i.test(Jt.navigator.userAgent)):()=>!0,Dg=Jt.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];X.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),X.isString(n)&&s.push("path="+n),X.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ag(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function o8(e,t){return e&&!Ag(t)?Bg(e,t):t}const jl=e=>e instanceof a2?{...e}:e;function J1(e,t){t=t||{};const r={};function n(u,d,f,h){return X.isPlainObject(u)&&X.isPlainObject(d)?X.merge.call({caseless:h},u,d):X.isPlainObject(d)?X.merge({},d):X.isArray(d)?d.slice():d}function o(u,d,f,h){if(X.isUndefined(d)){if(!X.isUndefined(u))return n(void 0,u,f,h)}else return n(u,d,f,h)}function i(u,d){if(!X.isUndefined(d))return n(void 0,d)}function s(u,d){if(X.isUndefined(d)){if(!X.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,f){if(f in t)return n(u,d);if(f in e)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,f)=>o(jl(u),jl(d),f,!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=c[d]||o,h=f(e[d],t[d],d);X.isUndefined(h)&&f!==l||(r[d]=h)}),r}const i8=e=>{const t=J1({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=a2.from(s),t.url=Q4(o8(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(X.isFormData(r)){if(Jt.hasStandardBrowserEnv||Jt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Jt.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(t)),n||n!==!1&&Vg(t.url))){const u=o&&i&&Dg.read(i);u&&s.set(o,u)}return t},Ig=typeof XMLHttpRequest<"u",Hg=Ig&&function(e){return new Promise(function(r,n){const o=i8(e);let i=o.data;const s=a2.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,f,h,v,y;function m(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function S(){if(!x)return;const w=a2.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),b={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:w,config:e,request:x};n8(function(L){r(L),m()},function(L){n(L),m()},b),x=null}"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(S)},x.onabort=function(){x&&(n(new Ie("Request aborted",Ie.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new Ie("Network Error",Ie.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||e8;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new Ie(E,b.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,x)),x=null},i===void 0&&s.setContentType(null),"setRequestHeader"in x&&X.forEach(s.toJSON(),function(E,b){x.setRequestHeader(b,E)}),X.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),l&&l!=="json"&&(x.responseType=o.responseType),u&&([h,y]=Go(u,!0),x.addEventListener("progress",h)),c&&x.upload&&([f,v]=Go(c),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(d=w=>{x&&(n(!w||w.type?new qr(null,e,x):w),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const O=$g(o.url);if(O&&Jt.protocols.indexOf(O)===-1){n(new Ie("Unsupported protocol "+O+":",Ie.ERR_BAD_REQUEST,e));return}x.send(i||null)})},Ng=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;n.abort(d instanceof Ie?d:new qr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new Ie(`timeout ${t} of ms exceeded`,Ie.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>X.asap(l),c}},Fg=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},jg=async function*(e,t){for await(const r of _g(e))yield*Fg(r,t)},_g=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},_l=(e,t,r,n)=>{const o=jg(e,t);let i=0,s,l=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let f=d.byteLength;if(r){let h=i+=f;r(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},zi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",a8=zi&&typeof ReadableStream=="function",zg=zi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),s8=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zg=a8&&s8(()=>{let e=!1;const t=new Request(Jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),zl=64*1024,h3=a8&&s8(()=>X.isReadableStream(new Response("").body)),Xo={stream:h3&&(e=>e.body)};zi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xo[t]&&(Xo[t]=X.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Ie(`Response type '${t}' is not supported`,Ie.ERR_NOT_SUPPORT,n)})})})(new Response);const Ug=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e))return(await new Request(Jt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(X.isArrayBufferView(e)||X.isArrayBuffer(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e=e+""),X.isString(e))return(await zg(e)).byteLength},Wg=async(e,t)=>{const r=X.toFiniteNumber(e.getContentLength());return r??Ug(t)},qg=zi&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=i8(e);u=u?(u+"").toLowerCase():"text";let v=Ng([o,i&&i.toAbortSignal()],s),y;const m=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let x;try{if(c&&Zg&&r!=="get"&&r!=="head"&&(x=await Wg(d,n))!==0){let b=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(X.isFormData(n)&&(R=b.headers.get("content-type"))&&d.setContentType(R),b.body){const[L,D]=Nl(x,Go(Fl(c)));n=_l(b.body,zl,L,D)}}X.isString(f)||(f=f?"include":"omit");const S="credentials"in Request.prototype;y=new Request(t,{...h,signal:v,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:S?f:void 0});let O=await fetch(y);const w=h3&&(u==="stream"||u==="response");if(h3&&(l||w&&m)){const b={};["status","statusText","headers"].forEach(I=>{b[I]=O[I]});const R=X.toFiniteNumber(O.headers.get("content-length")),[L,D]=l&&Nl(R,Go(Fl(l),!0))||[];O=new Response(_l(O.body,zl,L,()=>{D&&D(),m&&m()}),b)}u=u||"text";let E=await Xo[X.findKey(Xo,u)||"text"](O,e);return!w&&m&&m(),await new Promise((b,R)=>{n8(b,R,{data:E,headers:a2.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:y})})}catch(S){throw m&&m(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,e,y),{cause:S.cause||S}):Ie.from(S,S&&S.code,e,y)}}),g3={http:lg,xhr:Hg,fetch:qg};X.forEach(g3,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zl=e=>`- ${e}`,Yg=e=>X.isFunction(e)||e===null||e===!1,l8={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!Yg(r)&&(n=g3[(s=String(r)).toLowerCase()],n===void 0))throw new Ie(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
330
330
  `+i.map(Zl).join(`
331
331
  `):" "+Zl(i[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:g3};function $a(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qr(null,e)}function Ul(e){return $a(e),e.headers=a2.from(e.headers),e.data=Ma.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l8.getAdapter(e.adapter||Jn.adapter)(e).then(function(n){return $a(e),n.data=Ma.call(e,e.transformResponse,n),n.headers=a2.from(n.headers),n},function(n){return r8(n)||($a(e),n&&n.response&&(n.response.data=Ma.call(e,e.transformResponse,n.response),n.response.headers=a2.from(n.response.headers))),Promise.reject(n)})}const c8="1.7.9",Zi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Wl={};Zi.transitional=function(t,r,n){function o(i,s){return"[Axios v"+c8+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,l)=>{if(t===!1)throw new Ie(o(s," has been removed"+(r?" in "+r:"")),Ie.ERR_DEPRECATED);return r&&!Wl[s]&&(Wl[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,l):!0}};Zi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Kg(e,t,r){if(typeof e!="object")throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new Ie("option "+i+" must be "+c,Ie.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ie("Unknown option "+i,Ie.ERR_BAD_OPTION)}}const Vo={assertOptions:Kg,validators:Zi},q2=Vo.validators;let q1=class{constructor(t){this.defaults=t,this.interceptors={request:new Il,response:new Il}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
332
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=J1(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Vo.assertOptions(n,{silentJSONParsing:q2.transitional(q2.boolean),forcedJSONParsing:q2.transitional(q2.boolean),clarifyTimeoutError:q2.transitional(q2.boolean)},!1),o!=null&&(X.isFunction(o)?r.paramsSerializer={serialize:o}:Vo.assertOptions(o,{encode:q2.function,serialize:q2.function},!0)),Vo.assertOptions(r,{baseUrl:q2.spelling("baseURL"),withXsrfToken:q2.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&X.merge(i.common,i[r.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),r.headers=a2.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,h;if(!c){const y=[Ul.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),h=y.length,d=Promise.resolve(r);f<h;)d=d.then(y[f++],y[f++]);return d}h=l.length;let v=r;for(f=0;f<h;){const y=l[f++],m=l[f++];try{v=y(v)}catch(x){m.call(this,x);break}}try{d=Ul.call(this,v)}catch(y){return Promise.reject(y)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=J1(this.defaults,t);const r=o8(t.baseURL,t.url);return Q4(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){q1.prototype[t]=function(r,n){return this.request(J1(n||{},{method:t,url:r,data:(n||{}).data}))}});X.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,l){return this.request(J1(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}q1.prototype[t]=r(),q1.prototype[t+"Form"]=r(!0)});let Gg=class u8{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,l){n.reason||(n.reason=new qr(i,s,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new u8(function(o){t=o}),cancel:t}}};function Xg(e){return function(r){return e.apply(null,r)}}function Jg(e){return X.isObject(e)&&e.isAxiosError===!0}const y3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(y3).forEach(([e,t])=>{y3[t]=e});function d8(e){const t=new q1(e),r=j4(q1.prototype.request,t);return X.extend(r,q1.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return d8(J1(e,o))},r}const kt=d8(Jn);kt.Axios=q1;kt.CanceledError=qr;kt.CancelToken=Gg;kt.isCancel=r8;kt.VERSION=c8;kt.toFormData=_i;kt.AxiosError=Ie;kt.Cancel=kt.CanceledError;kt.all=function(t){return Promise.all(t)};kt.spread=Xg;kt.isAxiosError=Jg;kt.mergeConfig=J1;kt.AxiosHeaders=a2;kt.formToJSON=e=>t8(X.isHTMLForm(e)?new FormData(e):e);kt.getAdapter=l8.getAdapter;kt.HttpStatusCode=y3;kt.default=kt;const{Axios:CS,AxiosError:Qg,CanceledError:mS,isCancel:hS,CancelToken:gS,VERSION:yS,all:bS,Cancel:vS,isAxiosError:xS,spread:ES,toFormData:wS,AxiosHeaders:SS,HttpStatusCode:TS,formToJSON:RS,getAdapter:OS,mergeConfig:LS}=kt;var Cr={},ql;function ey(){if(ql)return Cr;ql=1;var e=P2;if(process.env.NODE_ENV==="production")Cr.createRoot=e.createRoot,Cr.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Cr.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},Cr.hydrateRoot=function(r,n,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,o)}finally{t.usingClientEntryPoint=!1}}}return Cr}var ty=ey();let j1=`${window.location.href.split("#")[0].toLowerCase().split("v3")[0]}v3/adpro/api`;const ry={async Send(e){const{serviceUrl:t,body:r,method:n="get",defaultToken:o=!0,hideError:i=!1,srm:s,core:l}=e;let{headers:c}=e;window.parent.location.href.includes("localhost")&&(l?j1="http://localhost:3500/core/api":j1="http://localhost:3500");const u=kt.create({baseURL:s?`${j1.toLowerCase().replace("/adpro/","/srm/")}`:l?`${j1.toLowerCase().replace("/adpro/api","/adpro/core/api")}`:j1});return c=c||{},o&&(c.Authorization=await p8(window)),await u[n](t,ny(r,n,c),{headers:c,validateStatus:function(f){return f<400}}).then(function(f){const{data:h,status:v}=f;return h||{data:null,httpCode:v,message:"Transacción exitosa",success:!0}}).catch(f=>{var S,O,w,E;let h={primaryMessage:"Se han presentado errores en la solicitud",secondaryMessage:"Ha ocurrido un error en la petición",severity:"error",timeProgress:8},v={data:null,httpCode:500,message:"Ha ocurrido un error en la petición",success:!1};const y="Se han presentado errores en la solicitud",m="No se ha encontrado el recurso solicitado";let x=[];if(f instanceof Qg){const b=f,R=(S=b.response)==null?void 0:S.data;if(R&&"data"in R&&"success"in R&&"httpCode"in R&&"message"in R&&"errors"in R){const L=R;v=L,h.secondaryMessage=L.message,L.errors&&Array.isArray(L.errors)?(h.details=L.errors.map(D=>`${D.property} - ${D.errorDescription}`),x=L.errors.map(D=>`${D.property} - ${D.errorDescription}`)):L.errors&&!Array.isArray(L.errors)&&(x=L.errors.stackTrace.map(D=>`${D.line} - ${D.method}`))}else((O=b.response)==null?void 0:O.status)==404?(h.secondaryMessage=m,v.message=m,x=[...x,`${(w=b.response)==null?void 0:w.status} - ${m}`]):(v.message=y,x=[...x,`${(E=b.response)==null?void 0:E.status} - ${y}`])}else h.secondaryMessage=y,v.message=y,x=[...x,`400 - ${y}`];throw i||oy(h),console.error({title:"Error in requestADPRO",details:["Error in requestADPRO",e,h,...x]}),v}).finally(function(){})}},ny=(e,t,r)=>{const n=e;for(var o in e)e[o]===""&&(e[o]=null);return t==="get"||t==="delete"?{params:n,headers:r,data:n}:n},oy=e=>{let t=document.createElement("div");t.id=`alerts${Math.random()}`,document.body.appendChild(t);const r=ty.createRoot(t),n=$.jsx(Ks,{elements:{...e,finishAction:()=>{t.remove()}}});r.render(n)},p8=async e=>{let t="";return window.parent.location.href.includes("localhost")?(j1="http://localhost:3500",`Bearer ${(await kt.get(`${j1}/token`)).data}`):(e.getToken!=null&&e.getToken!=null?t=e.getToken():(e.parent.getToken!=null&&e.parent.getToken!=null&&(t=e.parent.getToken()),t=await p8(e)),t)},iy=(e,t,r)=>e[t]!=="-1"&&e[t]!=="0"&&e[t]!==-1?e:r&&(r[t]==="-1"||r[t]===-1)?r:e;function f8(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,[f,h]=C.useState(iy(n,s,c)),[v,y]=C.useState(o||""),[m,x]=C.useState(d||[]),[S,O]=C.useState("input"),[w,E]=C.useState(!1),[b,R]=C.useState(!1),[L,D]=C.useState(!1);C.useEffect(()=>{t==="list"?I(m):r==="all"&&M(V=>I(V))},[]),C.useEffect(()=>{t==="list"||r==="all"?p(m):c?v!==""&&(S==="input"||S==="reset"||S==="selectOption")&&h(n):h(n)},[n]),C.useEffect(()=>{let V=null;return t=="request"&&(r==="search"&&v&&S==="input"||r==="all"&&!b)&&E(!0),r==="search"&&v&&S==="input"&&(V=setTimeout(()=>{M()},800)),()=>{E(!1),V&&clearInterval(V)}},[v]),C.useEffect(()=>{d&&d.length>0?x(d):x([])},[d]);const I=C.useCallback(V=>{if(n){const _=n||"",W=V.find(z=>z[s]==_);W&&(h(W),y(W[l]))}},[n,s,l]),p=C.useCallback(V=>{if(n){const _=n||"",W=V.find(z=>z[s]==_);W&&(h(W),y(W[l]))}else h(null),y("")},[n,s,l]),M=C.useCallback(V=>{if(u){t==="request"&&E(!0);let _=v.trim();if((_.trim()===""||_===" "||_===""||_==="-1"||_.trim()==="Todos")&&(_="_"),f&&f[l]===_){x([f]),E(!1);return}u.body={filter:_},ry.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=[]),x(z),V&&V(z)}t==="request"&&E(!1)})}},[v,m,u,r,t,w]),B=C.useCallback(V=>{V&&(h(V),i&&i(V))},[]),F=C.useCallback(V=>{V?y(V):H()},[r,t]),j=C.useCallback(V=>{O(V)},[]);C.useEffect(()=>{if(t==="list"&&r==="search"&&S==="input"&&d)if(v.trim()==="")x(d);else{const V=d.filter(_=>String(_[l]).toLowerCase().includes(v.toLowerCase()));x(V)}},[v]);const H=C.useCallback(()=>{if(t==="request")c?i&&i(c):(h(null),i&&i(null)),y(""),x([]),M();else if(d)if(c){const V=d.find(_=>_[s]=="-1");V?(h(V),y(V[l]),i&&i(V)):(y(""),h(f||n),i&&i(f||n))}else{const V=n||"",_=d.find(W=>W[s]==V);_?(h(_),y(_[l]),i&&i(_)):(y(""),h(f),i&&i(f))}},[]);return C.useEffect(()=>{L?t==="request"&&M():(t==="list"&&r==="search"&&(h(f),y(f?f[l]:""),v===""&&x(d||[])),t==="request"&&(c?((S==="clear"||S==="blur")&&(n[s]==="-1"||n[s]===-1)&&(h(c),y(c[l]),i&&i(c)),S==="input"&&v===""&&(n[s]==="-1"||n[s]===-1)&&(h(c),y(c[l]),i&&i(c))):(h(f),y(f?f[l]:""))))},[L]),{dataList:m,loading:w,isFocused:L,autocompleteValue:f,textFieldValue:v,handleAutocompleteValue:B,handleTextFieldValue:F,handleReasonChangeTextField:j,setIsFocused:D,clearValues:H}}const ay=_t($.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),sy=_t($.jsx("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),ly=_t($.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"),cy=_t($.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"),uy=_t($.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"),dy=_t($.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"),py=_t($.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"),fy=_t($.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"),Cy=_t($.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 Rs(e,t,r){return(t=hy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(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 l1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){Rs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function my(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 hy(e){var t=my(e,"string");return typeof t=="symbol"?t:t+""}function k1(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 Os="$$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 C8(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var gy=/^((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)-.*))$/,yy=C8(function(e){return gy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),b3=typeof document<"u";function by(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var m8=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||b3===!1&&t.compat!==void 0)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},vy=function(t,r,n){m8(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);!b3&&l!==void 0&&(i+=l),s=s.next}while(s!==void 0);if(!b3&&i.length!==0)return i}};function xy(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 Ey={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},wy=/[A-Z]|^ms/g,Sy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h8=function(t){return t.charCodeAt(1)===45},Kl=function(t){return t!=null&&typeof t!="boolean"},Pa=C8(function(e){return h8(e)?e:e.replace(wy,"-$&").toLowerCase()}),Gl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Sy,function(n,o,i){return X2={name:o,styles:i,next:X2},o})}return Ey[t]!==1&&!h8(t)&&typeof r=="number"&&r!==0?r+"px":r};function Hn(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 X2={name:o.name,styles:o.styles,next:X2},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)X2={name:s.name,styles:s.styles,next:X2},s=s.next;var l=i.styles+";";return l}return Ty(e,t,r)}case"function":{if(e!==void 0){var c=X2,u=r(e);return X2=c,Hn(e,t,u)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function Ty(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Hn(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]+"}":Kl(l)&&(n+=Pa(i)+":"+Gl(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++)Kl(s[c])&&(n+=Pa(i)+":"+Gl(i,s[c])+";");else{var u=Hn(e,t,s);switch(i){case"animation":case"animationName":{n+=Pa(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var Xl=/label:\s*([^\s;{]+)\s*(;|$)/g,X2;function g8(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="";X2=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Hn(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Hn(r,t,e[l]),n){var c=i;o+=c[l]}Xl.lastIndex=0;for(var u="",d;(d=Xl.exec(o))!==null;)u+="-"+d[1];var f=xy(o)+u;return{name:f,styles:o,next:X2}}var Ry=typeof document<"u",Jl=function(t){return t()},Oy=T.useInsertionEffect?T.useInsertionEffect:!1,Ly=Ry&&Oy||Jl,My=yy,$y=function(t){return t!=="theme"},Ql=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?My:$y},e9=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},t9=`You have illegal escape sequence in your template literal, most likely inside content's property value.
332
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=J1(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Vo.assertOptions(n,{silentJSONParsing:q2.transitional(q2.boolean),forcedJSONParsing:q2.transitional(q2.boolean),clarifyTimeoutError:q2.transitional(q2.boolean)},!1),o!=null&&(X.isFunction(o)?r.paramsSerializer={serialize:o}:Vo.assertOptions(o,{encode:q2.function,serialize:q2.function},!0)),Vo.assertOptions(r,{baseUrl:q2.spelling("baseURL"),withXsrfToken:q2.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&X.merge(i.common,i[r.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),r.headers=a2.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,h;if(!c){const y=[Ul.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),h=y.length,d=Promise.resolve(r);f<h;)d=d.then(y[f++],y[f++]);return d}h=l.length;let v=r;for(f=0;f<h;){const y=l[f++],m=l[f++];try{v=y(v)}catch(x){m.call(this,x);break}}try{d=Ul.call(this,v)}catch(y){return Promise.reject(y)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=J1(this.defaults,t);const r=o8(t.baseURL,t.url);return Q4(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){q1.prototype[t]=function(r,n){return this.request(J1(n||{},{method:t,url:r,data:(n||{}).data}))}});X.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,l){return this.request(J1(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}q1.prototype[t]=r(),q1.prototype[t+"Form"]=r(!0)});let Gg=class u8{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,l){n.reason||(n.reason=new qr(i,s,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new u8(function(o){t=o}),cancel:t}}};function Xg(e){return function(r){return e.apply(null,r)}}function Jg(e){return X.isObject(e)&&e.isAxiosError===!0}const y3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(y3).forEach(([e,t])=>{y3[t]=e});function d8(e){const t=new q1(e),r=j4(q1.prototype.request,t);return X.extend(r,q1.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return d8(J1(e,o))},r}const kt=d8(Jn);kt.Axios=q1;kt.CanceledError=qr;kt.CancelToken=Gg;kt.isCancel=r8;kt.VERSION=c8;kt.toFormData=_i;kt.AxiosError=Ie;kt.Cancel=kt.CanceledError;kt.all=function(t){return Promise.all(t)};kt.spread=Xg;kt.isAxiosError=Jg;kt.mergeConfig=J1;kt.AxiosHeaders=a2;kt.formToJSON=e=>t8(X.isHTMLForm(e)?new FormData(e):e);kt.getAdapter=l8.getAdapter;kt.HttpStatusCode=y3;kt.default=kt;const{Axios:CS,AxiosError:Qg,CanceledError:mS,isCancel:hS,CancelToken:gS,VERSION:yS,all:bS,Cancel:vS,isAxiosError:xS,spread:ES,toFormData:wS,AxiosHeaders:SS,HttpStatusCode:TS,formToJSON:RS,getAdapter:OS,mergeConfig:LS}=kt;var Cr={},ql;function ey(){if(ql)return Cr;ql=1;var e=P2;if(process.env.NODE_ENV==="production")Cr.createRoot=e.createRoot,Cr.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Cr.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},Cr.hydrateRoot=function(r,n,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,o)}finally{t.usingClientEntryPoint=!1}}}return Cr}var ty=ey();let j1=`${window.location.href.split("#")[0].toLowerCase().split("v3")[0]}v3/adpro/api`;const ry={async Send(e){const{serviceUrl:t,body:r,method:n="get",defaultToken:o=!0,hideError:i=!1,srm:s,core:l}=e;let{headers:c}=e;window.parent.location.href.includes("localhost")&&(l?j1="http://localhost:3500/core/api":j1="http://localhost:3500");const u=kt.create({baseURL:s?`${j1.toLowerCase().replace("/adpro/","/srm/")}`:l?`${j1.toLowerCase().replace("/adpro/api","/adpro/core/api")}`:j1});return c=c||{},o&&(c.Authorization=await p8(window)),await u[n](t,ny(r,n,c),{headers:c,validateStatus:function(f){return f<400}}).then(function(f){const{data:h,status:v}=f;return h||{data:null,httpCode:v,message:"Transacción exitosa",success:!0}}).catch(f=>{var S,O,w,E;let h={primaryMessage:"Se han presentado errores en la solicitud",secondaryMessage:"Ha ocurrido un error en la petición",severity:"error",timeProgress:8},v={data:null,httpCode:500,message:"Ha ocurrido un error en la petición",success:!1};const y="Se han presentado errores en la solicitud",m="No se ha encontrado el recurso solicitado";let x=[];if(f instanceof Qg){const b=f,R=(S=b.response)==null?void 0:S.data;if(R&&"data"in R&&"success"in R&&"httpCode"in R&&"message"in R&&"errors"in R){const L=R;v=L,h.secondaryMessage=L.message,L.errors&&Array.isArray(L.errors)?(h.details=L.errors.map(D=>`${D.property} - ${D.errorDescription}`),x=L.errors.map(D=>`${D.property} - ${D.errorDescription}`)):L.errors&&!Array.isArray(L.errors)&&(x=L.errors.stackTrace.map(D=>`${D.line} - ${D.method}`))}else((O=b.response)==null?void 0:O.status)==404?(h.secondaryMessage=m,v.message=m,x=[...x,`${(w=b.response)==null?void 0:w.status} - ${m}`]):(v.message=y,x=[...x,`${(E=b.response)==null?void 0:E.status} - ${y}`])}else h.secondaryMessage=y,v.message=y,x=[...x,`400 - ${y}`];throw i||oy(h),console.error({title:"Error in requestADPRO",details:["Error in requestADPRO",e,h,...x]}),v}).finally(function(){})}},ny=(e,t,r)=>{const n=e;for(var o in e)e[o]===""&&(e[o]=null);return t==="get"||t==="delete"?{params:n,headers:r,data:n}:n},oy=e=>{let t=document.createElement("div");t.id=`alerts${Math.random()}`,document.body.appendChild(t);const r=ty.createRoot(t),n=$.jsx(Ks,{elements:{...e,finishAction:()=>{t.remove()}}});r.render(n)},p8=async e=>{let t="";return window.parent.location.href.includes("localhost")?(j1="http://localhost:3500",`Bearer ${(await kt.get(`${j1}/token`)).data}`):(e.getToken!=null&&e.getToken!=null?t=e.getToken():(e.parent.getToken!=null&&e.parent.getToken!=null&&(t=e.parent.getToken()),t=await p8(e)),t)},iy=(e,t,r)=>e[t]!=="-1"&&e[t]!=="0"&&e[t]!==-1?e:r&&(r[t]==="-1"||r[t]===-1)?r:e;function f8(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,[f,h]=C.useState(iy(n,s,c)),[v,y]=C.useState(o||""),[m,x]=C.useState(d||[]),[S,O]=C.useState("input"),[w,E]=C.useState(!1),[b,R]=C.useState(!1),[L,D]=C.useState(!1);C.useEffect(()=>{t==="list"?I(m):r==="all"&&M(V=>I(V))},[]),C.useEffect(()=>{t==="list"||r==="all"?p(m):c?v!==""&&(S==="input"||S==="reset"||S==="selectOption")&&h(n):h(n)},[n]),C.useEffect(()=>{let V=null;return t=="request"&&(r==="search"&&v&&S==="input"||r==="all"&&!b)&&E(!0),r==="search"&&v&&S==="input"&&(V=setTimeout(()=>{M()},800)),()=>{E(!1),V&&clearInterval(V)}},[v]),C.useEffect(()=>{d&&d.length>0?x(d):x([])},[d]);const I=C.useCallback(V=>{if(n){const _=n||"",W=V.find(z=>z[s]==_);W&&(h(W),y(W[l]))}},[n,s,l]),p=C.useCallback(V=>{if(n){const _=n||"",W=V.find(z=>z[s]==_);W&&(h(W),y(W[l]))}else h(null),y("")},[n,s,l]),M=C.useCallback(V=>{if(u){t==="request"&&E(!0);let _=v.trim();if((_.trim()===""||_===" "||_===""||_==="-1"||_.trim()==="Todos")&&(_="_"),f&&f[l]===_){x([f]),E(!1);return}u.body={[u.filterName||"filter"]:_},ry.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=[]),x(z),V&&V(z)}t==="request"&&E(!1)})}},[v,m,u,r,t,w]),B=C.useCallback(V=>{V&&(h(V),i&&i(V))},[]),F=C.useCallback(V=>{V?y(V):H()},[r,t]),j=C.useCallback(V=>{O(V)},[]);C.useEffect(()=>{if(t==="list"&&r==="search"&&S==="input"&&d)if(v.trim()==="")x(d);else{const V=d.filter(_=>String(_[l]).toLowerCase().includes(v.toLowerCase()));x(V)}},[v]);const H=C.useCallback(()=>{if(t==="request")c?i&&i(c):(h(null),i&&i(null)),y(""),x([]),M();else if(d)if(c){const V=d.find(_=>_[s]=="-1");V?(h(V),y(V[l]),i&&i(V)):(y(""),h(f||n),i&&i(f||n))}else{const V=n||"",_=d.find(W=>W[s]==V);_?(h(_),y(_[l]),i&&i(_)):(y(""),h(f),i&&i(f))}},[]);return C.useEffect(()=>{L?t==="request"&&M():(t==="list"&&r==="search"&&(h(f),y(f?f[l]:""),v===""&&x(d||[])),t==="request"&&(c?((S==="clear"||S==="blur")&&(n[s]==="-1"||n[s]===-1)&&(h(c),y(c[l]),i&&i(c)),S==="input"&&v===""&&(n[s]==="-1"||n[s]===-1)&&(h(c),y(c[l]),i&&i(c))):(h(f),y(f?f[l]:""))))},[L]),{dataList:m,loading:w,isFocused:L,autocompleteValue:f,textFieldValue:v,handleAutocompleteValue:B,handleTextFieldValue:F,handleReasonChangeTextField:j,setIsFocused:D,clearValues:H}}const ay=_t($.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),sy=_t($.jsx("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),ly=_t($.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"),cy=_t($.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"),uy=_t($.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"),dy=_t($.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"),py=_t($.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"),fy=_t($.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"),Cy=_t($.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 Rs(e,t,r){return(t=hy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(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 l1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){Rs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function my(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 hy(e){var t=my(e,"string");return typeof t=="symbol"?t:t+""}function k1(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 Os="$$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 C8(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var gy=/^((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)-.*))$/,yy=C8(function(e){return gy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),b3=typeof document<"u";function by(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var m8=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||b3===!1&&t.compat!==void 0)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},vy=function(t,r,n){m8(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);!b3&&l!==void 0&&(i+=l),s=s.next}while(s!==void 0);if(!b3&&i.length!==0)return i}};function xy(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 Ey={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},wy=/[A-Z]|^ms/g,Sy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h8=function(t){return t.charCodeAt(1)===45},Kl=function(t){return t!=null&&typeof t!="boolean"},Pa=C8(function(e){return h8(e)?e:e.replace(wy,"-$&").toLowerCase()}),Gl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Sy,function(n,o,i){return X2={name:o,styles:i,next:X2},o})}return Ey[t]!==1&&!h8(t)&&typeof r=="number"&&r!==0?r+"px":r};function Hn(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 X2={name:o.name,styles:o.styles,next:X2},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)X2={name:s.name,styles:s.styles,next:X2},s=s.next;var l=i.styles+";";return l}return Ty(e,t,r)}case"function":{if(e!==void 0){var c=X2,u=r(e);return X2=c,Hn(e,t,u)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function Ty(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Hn(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]+"}":Kl(l)&&(n+=Pa(i)+":"+Gl(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++)Kl(s[c])&&(n+=Pa(i)+":"+Gl(i,s[c])+";");else{var u=Hn(e,t,s);switch(i){case"animation":case"animationName":{n+=Pa(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var Xl=/label:\s*([^\s;{]+)\s*(;|$)/g,X2;function g8(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="";X2=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Hn(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Hn(r,t,e[l]),n){var c=i;o+=c[l]}Xl.lastIndex=0;for(var u="",d;(d=Xl.exec(o))!==null;)u+="-"+d[1];var f=xy(o)+u;return{name:f,styles:o,next:X2}}var Ry=typeof document<"u",Jl=function(t){return t()},Oy=T.useInsertionEffect?T.useInsertionEffect:!1,Ly=Ry&&Oy||Jl,My=yy,$y=function(t){return t!=="theme"},Ql=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?My:$y},e9=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},t9=`You have illegal escape sequence in your template literal, most likely inside content's property value.
333
333
  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';".
334
334
  You can read more about this here:
335
335
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Py=typeof document<"u",ky=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;m8(r,n,o);var i=Ly(function(){return vy(r,n,o)});if(!Py&&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},Vy=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.
@@ -23509,7 +23509,7 @@ function my(e) {
23509
23509
  return;
23510
23510
  }
23511
23511
  u.body = {
23512
- filter: _
23512
+ [u.filterName || "filter"]: _
23513
23513
  }, dy.Send(u).then((W) => {
23514
23514
  if (W) {
23515
23515
  let z = W;
@@ -9,6 +9,7 @@ export interface SendRequestAxiosProps {
9
9
  hideError?: boolean;
10
10
  srm?: boolean;
11
11
  core?: boolean;
12
+ filterName?: string;
12
13
  }
13
14
  export type apisUrls = "API" | "CORE";
14
15
  export type methodRequestProps = "post" | "get" | "put" | "delete";
@@ -1 +1 @@
1
- {"version":3,"file":"SendRequestAxiosProps.d.ts","sourceRoot":"","sources":["../../../../src/methods/requestADPRO/interfaces/SendRequestAxiosProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACjB;AACD,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAA;AAErC,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"SendRequestAxiosProps.d.ts","sourceRoot":"","sources":["../../../../src/methods/requestADPRO/interfaces/SendRequestAxiosProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB;AACD,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAA;AAErC,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adpro-react",
3
- "version": "0.0.22-rc.2",
3
+ "version": "0.0.22-rc.3",
4
4
  "author": "Joel Mateo Robles Atuesta",
5
5
  "main": "dist/adpro-react.cjs.js",
6
6
  "module": "dist/adpro-react.es.js",