@3sc/common-component 0.0.51 → 0.0.52

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/index.umd.js CHANGED
@@ -246,7 +246,7 @@ const theme2 = createTheme({ palette: {
246
246
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Bd]=this[Bd]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=Er(a);r[l]||(P1(o,a),r[l]=!0)}return D.isArray(t)?t.forEach(s):s(t),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),D.freezeMethods(ft);function Us(e,t){const n=this||Ir,r=t||n,o=ft.from(r.headers);let s=r.data;return D.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function jd(e){return!!(e&&e.__CANCEL__)}function Wn(e,t,n){be.call(this,e??"canceled",be.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Wn,be,{__CANCEL__:!0});function _d(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new be("Request failed with status code "+n.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function F1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function D1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[s];a||(a=u),n[o]=c,r[o]=u;let p=s,f=0;for(;p!==o;)f+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-a<t)return;const h=d&&u-d;return h?Math.round(f*1e3/h):void 0}}function k1(e,t){let n=0;const r=1e3/t;let o=null;return function(){const a=this===!0,l=Date.now();if(a||l-n>r)return o&&(clearTimeout(o),o=null),n=l,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}const qo=(e,t,n=3)=>{let r=0;const o=D1(50,250);return k1(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,u=o(c),d=a<=l;r=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-a)/u:void 0,event:s,lengthComputable:l!=null};p[t?"download":"upload"]=!0,e(p)},n)},M1=kt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=D.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),B1=kt.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const a=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.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 j1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vd(e,t){return e&&!j1(t)?_1(e,t):t}const Ld=e=>e instanceof ft?{...e}:e;function yn(e,t){t=t||{};const n={};function r(u,d,p){return D.isPlainObject(u)&&D.isPlainObject(d)?D.merge.call({caseless:p},u,d):D.isPlainObject(d)?D.merge({},d):D.isArray(d)?d.slice():d}function o(u,d,p){if(D.isUndefined(d)){if(!D.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function s(u,d){if(!D.isUndefined(d))return r(void 0,d)}function a(u,d){if(D.isUndefined(d)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,d)=>o(Ld(u),Ld(d),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||o,f=p(e[d],t[d],d);D.isUndefined(f)&&p!==l||(n[d]=f)}),n}const $d=e=>{const t=yn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;t.headers=a=ft.from(a),t.url=Fd(Vd(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(D.isFormData(n)){if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(kt.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&M1(t.url))){const u=o&&s&&B1.read(s);u&&a.set(o,u)}return t},V1=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=$d(e);let s=o.data;const a=ft.from(o.headers).normalize();let{responseType:l}=o,c;function u(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function p(){if(!d)return;const h=ft.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};_d(function(C){n(C),u()},function(C){r(C),u()},g),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new be("Request aborted",be.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new be("Network Error",be.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let m=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const g=o.transitional||kd;o.timeoutErrorMessage&&(m=o.timeoutErrorMessage),r(new be(m,g.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,o,d)),d=null},s===void 0&&a.setContentType(null),"setRequestHeader"in d&&D.forEach(a.toJSON(),function(m,g){d.setRequestHeader(g,m)}),D.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",qo(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",qo(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=h=>{d&&(r(!h||h.type?new Wn(null,e,d):h),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const f=F1(o.url);if(f&&kt.protocols.indexOf(f)===-1){r(new be("Unsupported protocol "+f+":",be.ERR_BAD_REQUEST,e));return}d.send(s||null)})},L1=(e,t)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof be?u:new Wn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{o(new be(`timeout ${t} of ms exceeded`,be.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=a,[l,()=>{s&&clearTimeout(s),s=null}]},$1=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},W1=async function*(e,t,n){for await(const r of e)yield*$1(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Wd=(e,t,n,r,o)=>{const s=W1(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await s.next();if(c){l.close(),r();return}let d=u.byteLength;n&&n(a+=d),l.enqueue(new Uint8Array(u))},cancel(l){return r(l),s.return()}},{highWaterMark:2})},Gd=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Ko=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zd=Ko&&typeof ReadableStream=="function",Ys=Ko&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),G1=zd&&(()=>{let e=!1;const t=new Request(kt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Hd=64*1024,Js=zd&&!!(()=>{try{return D.isReadableStream(new Response("").body)}catch{}})(),Qo={stream:Js&&(e=>e.body)};Ko&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qo[t]&&(Qo[t]=D.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new be(`Response type '${t}' is not supported`,be.ERR_NOT_SUPPORT,r)})})})(new Response);const z1=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(D.isArrayBufferView(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await Ys(e)).byteLength},H1=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return n??z1(t)},qs={http:m1,xhr:V1,fetch:Ko&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:f}=$d(e);u=u?(u+"").toLowerCase():"text";let[h,m]=o||s||a?L1([o,s],a):[],g,b;const C=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let T;try{if(c&&G1&&n!=="get"&&n!=="head"&&(T=await H1(d,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),A;D.isFormData(r)&&(A=O.headers.get("content-type"))&&d.setContentType(A),O.body&&(r=Wd(O.body,Hd,Gd(T,qo(c)),null,Ys))}D.isString(p)||(p=p?"cors":"omit"),b=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:p});let I=await fetch(b);const S=Js&&(u==="stream"||u==="response");if(Js&&(l||S)){const O={};["status","statusText","headers"].forEach(w=>{O[w]=I[w]});const A=D.toFiniteNumber(I.headers.get("content-length"));I=new Response(Wd(I.body,Hd,l&&Gd(A,qo(l,!0)),S&&C,Ys),O)}u=u||"text";let v=await Qo[D.findKey(Qo,u)||"text"](I,e);return!S&&C(),m&&m(),await new Promise((O,A)=>{_d(O,A,{data:v,headers:ft.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:b})})}catch(I){throw C(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,e,b),{cause:I.cause||I}):be.from(I,I&&I.code,e,b)}})};D.forEach(qs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xd=e=>`- ${e}`,X1=e=>D.isFunction(e)||e===null||e===!1,Zd={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let a;if(r=n,!X1(n)&&(r=qs[(a=String(n)).toLowerCase()],r===void 0))throw new be(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+s]=r}if(!r){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
247
247
  `+s.map(Xd).join(`
248
248
  `):" "+Xd(s[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:qs};function Ks(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wn(null,e)}function Ud(e){return Ks(e),e.headers=ft.from(e.headers),e.data=Us.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zd.getAdapter(e.adapter||Ir.adapter)(e).then(function(r){return Ks(e),r.data=Us.call(e,e.transformResponse,r),r.headers=ft.from(r.headers),r},function(r){return jd(r)||(Ks(e),r&&r.response&&(r.response.data=Us.call(e,e.transformResponse,r.response),r.response.headers=ft.from(r.response.headers))),Promise.reject(r)})}const Yd="1.7.2",Qs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Jd={};Qs.transitional=function(t,n,r){function o(s,a){return"[Axios v"+Yd+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new be(o(a," has been removed"+(n?" in "+n:"")),be.ERR_DEPRECATED);return n&&!Jd[a]&&(Jd[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}};function Z1(e,t,n){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=t[s];if(a){const l=e[s],c=l===void 0||a(l,s,e);if(c!==!0)throw new be("option "+s+" must be "+c,be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new be("Unknown option "+s,be.ERR_BAD_OPTION)}}const ea={assertOptions:Z1,validators:Qs},nn=ea.validators;class Cn{constructor(t){this.defaults=t,this.interceptors={request:new Dd,response:new Dd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
249
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&ea.assertOptions(r,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1),o!=null&&(D.isFunction(o)?n.paramsSerializer={serialize:o}:ea.assertOptions(o,{encode:nn.function,serialize:nn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&D.merge(s.common,s[n.method]);s&&D.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=ft.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,p=0,f;if(!c){const m=[Ud.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,d=Promise.resolve(n);p<f;)d=d.then(m[p++],m[p++]);return d}f=l.length;let h=n;for(p=0;p<f;){const m=l[p++],g=l[p++];try{h=m(h)}catch(b){g.call(this,b);break}}try{d=Ud.call(this,h)}catch(m){return Promise.reject(m)}for(p=0,f=u.length;p<f;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=yn(this.defaults,t);const n=Vd(t.baseURL,t.url);return Fd(n,t.params,t.paramsSerializer)}}D.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(n,r){return this.request(yn(r||{},{method:t,url:n,data:(r||{}).data}))}}),D.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(yn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Cn.prototype[t]=n(),Cn.prototype[t+"Form"]=n(!0)});class ta{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Wn(s,a,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ta(function(o){t=o}),cancel:t}}}function U1(e){return function(n){return e.apply(null,n)}}function Y1(e){return D.isObject(e)&&e.isAxiosError===!0}const na={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(na).forEach(([e,t])=>{na[t]=e});function qd(e){const t=new Cn(e),n=bd(Cn.prototype.request,t);return D.extend(n,Cn.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return qd(yn(e,o))},n}const $e=qd(Ir);$e.Axios=Cn,$e.CanceledError=Wn,$e.CancelToken=ta,$e.isCancel=jd,$e.VERSION=Yd,$e.toFormData=Yo,$e.AxiosError=be,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=U1,$e.isAxiosError=Y1,$e.mergeConfig=yn,$e.AxiosHeaders=ft,$e.formToJSON=e=>Md(D.isHTMLForm(e)?new FormData(e):e),$e.getAdapter=Zd.getAdapter,$e.HttpStatusCode=na,$e.default=$e;const ei={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit"},Kd={BEARER:"Bearer",TENANT_ID:"tenant_id",BU_ID:"bu_id",SNOP_ID:"snop_id"},Sr={REFRESH:"refresh",CLOSE:"close"},J1=[{label:"Show 10 Rows",value:10},{label:"Show 25 Rows",value:25},{label:"Show 50 Rows",value:50},{label:"Show 100 Rows",value:100}],q1=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),K1=["message","sub_type"],Q1=e=>({...e,borderRadius:5,colors:{...e.colors,primary25:"#F2F2F2",primary:"#E94F1C"}}),eI=[10,25,50,100],ra={MARK_ALL_READ:"MARK_ALL_READ"},oa={NOTIFICATION:"/notifications"},ia={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"};/*! js-cookie v3.0.5 | MIT */function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var tI={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function sa(e,t){function n(o,s,a){if(!(typeof document>"u")){a=ti({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(a[d]=e.read(u,d),o===d)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",ti({},s,{expires:-1}))},withAttributes:function(o){return sa(this.converter,ti({},this.attributes,o))},withConverter:function(o){return sa(ti({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var nI=sa(tI,{path:"/"});const aa=_s(ei.SNOP),la=_s(ei.SELECTED_BU),ca=_s(ei.USER),Qd={BU_IDS:la==null?void 0:la.business_unit_id,TOKEN:JSON.parse(nI.get(ei.TOKEN)||null),TENANT_IDS:ca==null?void 0:ca.tenant_id,SNOP_IDS:aa==null?void 0:aa.snop_id},ni={headers:{"Content-Type":"application/json",Authorization:`${Kd.BEARER} ${Qd.TOKEN}`}},ep=$e.create({baseURL:ia.BASE_URL,axiosConfig:ni});ep.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),ep.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const{TENANT_ID:ua,BU_ID:da,SNOP_ID:tp}=Kd,{TENANT_IDS:pa,BU_IDS:fa}=Qd,rI=async e=>{try{const t=`${e}${oa.NOTIFICATION}/v1?${ua}=${pa}&${da}=${fa}`;return await $e.get(t,ni)}catch(t){return t}},np=async(e,t,n)=>{try{const r=n===ra.MARK_ALL_READ?"":`&${tp}=${n}&`,o=`${e}${oa.NOTIFICATION}${ia.VERSION}?${ua}=${pa}&${da}=${fa}${r}`;return await $e.put(o,t,ni)}catch(r){return r}},oI=async({baseUrl:e,id:t,snopId:n})=>{try{const r=`${e}${oa.NOTIFICATION}${ia.VERSION}?${ua}=${pa}&${da}=${fa}&${tp}=${n}&id=${t}`;return await $e.get(r,ni)}catch(r){return r}},ri={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500},iI=ic(Rs)(({theme:e})=>({"& .MuiBadge-badge":{right:-5,top:2,border:`1px solid ${e.palette.background.paper}`,padding:"0 2px",backgroundColor:"#D44E40",color:"white",fontSize:"0.9rem"}})),sI=({count:e})=>x.jsxs(iI,{badgeContent:e<10?`0${e}`:e,color:"error",sx:{gap:"0.5rem"},children:[x.jsx("img",{src:"/src/assets/svg-icons/bell.svg",alt:"Bell Icon",width:14}),x.jsx(pt,{component:"span",className:"notify-title",children:"Notification"})]});var ma={},ga={};const aI=Lt(Xh);var rp;function op(){return rp||(rp=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aI}(ga)),ga}var lI=lo;Object.defineProperty(ma,"__esModule",{value:!0});var ba=ma.default=void 0,cI=lI(op()),uI=x;ba=ma.default=(0,cI.default)((0,uI.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const dI=re(Nu)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:20,border:`1px solid ${$a[50]}`,boxShadow:e.shadows[5],padding:"1.2rem"}})),ha=({title:e,subTitle:t,children:n,onRefresh:r,onClose:o,loading:s,handleShowAll:a,handleMarkAllAsRead:l,isMarkAllAsRead:c,width:u,headerIconType:d,isDialogActionShow:p,className:f,dialogType:h,...m})=>{const g=()=>{switch(d){case Sr.REFRESH:return x.jsx(bs,{disabled:s,"aria-label":"close",sx:{color:"primary.main"},onClick:r,children:x.jsx(ba,{fontSize:"medium"})});case Sr.CLOSE:return x.jsx("div",{className:"close-button",onClick:o});default:return null}};return x.jsxs(dI,{maxWidth:"md",onClose:o,...m,className:["notification-dialog",f,h==="notifcation-dialog"?"notification-main-box":""].join(" "),dialogType:!0,children:[x.jsx(nt,{sx:{display:"flex"},children:x.jsxs(nt,{sx:h==="notifcation-dialog"?{gap:1,display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"}:{gap:1,display:"flex",width:"100%",justifyContent:"space-between",paddingBottom:1.2},children:[x.jsxs(nt,{className:"title-container",children:[x.jsx(pt,{variant:"h6",component:"h6",className:`title ${h==="notifcation-dialog"?"notifcation-title":""}`,children:e}),t&&x.jsx(pt,{variant:"h6",className:"title sub-title",children:t})]}),g()]})}),n,p&&x.jsxs(Vo,{className:"dialog-action",children:[x.jsx(jo,{onClick:a,className:"view-all",children:"Show all"}),c.boo&&x.jsx(jo,{className:"view-all",onClick:l,children:"Mark all as read"})]})]})},va=({type:e,title:t,subTitle:n,subType:r,isRead:o,handleShowDetails:s,handleRead:a,isCheckBox:l,isSubType:c,selectedAlert:u,id:d,handleCheckboxChange:p,clickId:f})=>x.jsxs(nt,{className:"cards",children:[x.jsxs(gr,{display:"flex",flexDirection:"row",alignItems:"start",gap:1,children:[e&&x.jsx(Rs,{color:e,variant:"dot",className:"badge"}),l&&x.jsx(Su,{checked:!!u.includes(d),onChange:h=>p(h,d),disabled:o,sx:{padding:"4px 7px 0 7px"}}),x.jsx(pt,{component:"p",className:["title-card",o&&"read"].join(" "),children:t})]}),x.jsxs(gr,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"start",gap:1,sx:{pt:1},children:[c&&x.jsx(No,{label:r,variant:"filled",size:"small",sx:{fontFamily:"Montserrat, sans-serif",fontWeight:"500",color:"primary.main",ml:5}}),x.jsx(pt,{variant:"body2",component:"div",className:["sub-title",o&&"read"].join(" "),sx:{ml:"0.8rem !important"},children:n})]}),x.jsxs(gr,{display:"flex",flexDirection:"row",justifyContent:"end",gap:1,children:[x.jsx(No,{disabled:f,onClick:s,label:f===d?x.jsx(mr,{color:"primary",size:13}):"Show Details",component:"button",variant:"filled",clickable:!0,size:"small",sx:{fontFamily:"Montserrat, sans-serif",fontWeight:"500",fontSize:"0.875rem",color:"chipColor",background:"chipBGColor",borderRadius:"1.25rem",padding:"0.188rem !important",minWidth:"6.625rem"}}),!o&&x.jsx(No,{disabled:f,onClick:a,label:"Mark as Read",component:"button",variant:"filled",clickable:!0,size:"small",sx:{fontFamily:"Montserrat, sans-serif",fontWeight:"medium",color:"chipColor"}})]})]});va.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const ip=({data:e,handleRead:t,handleShowDetails:n,clickId:r})=>x.jsx(nt,{children:e.map((o,s)=>x.jsx(va,{type:"success",title:o.message,subTitle:md(o.createdAt),isRead:o.isRead,handleShowDetails:()=>n(o.id,o==null?void 0:o.snopId),handleRead:()=>t([o.id],o==null?void 0:o.snopId),clickId:r,id:o.id},s))});ip.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};var ya={},pI=lo;Object.defineProperty(ya,"__esModule",{value:!0});var Ca=ya.default=void 0,fI=pI(op()),mI=x;Ca=ya.default=(0,fI.default)((0,mI.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"}),"Search");const gI=re(dd)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.input.border} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.input.color},"& .MuiInput-underline:after":{borderBottomColor:e.palette.input.border,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.input.border,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.input.border,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.input.border,borderWidth:"0.1rem"}}})),sp=({adornmentIcon:e,...t})=>x.jsx(gI,{...t,InputProps:{...e||{}}}),ap=({start:e,end:t,total:n,title:r})=>x.jsxs(nt,{component:"h1",sx:{fontSize:"1.5rem",fontWeight:500},children:[e," - ",t," of ",n," ",r]}),lp=({page:e,rowPerPage:t,total:n,handleChangePage:r,isLogo:o,isMarkAllRead:s,selectedAlert:a,handleAllRead:l})=>x.jsxs(x.Fragment,{children:[x.jsx(ad,{count:Math.ceil(n/t),page:e,onChange:(c,u)=>{r(u)},sx:{padding:"0.5rem 0.75rem 0.75rem 0.75rem","& .MuiPaginationItem-root":{fontSize:"1.16rem",borderRadius:"0.5rem",color:"primary.main","& .MuiSvgIcon-root":{fontSize:"2.2rem",color:"primary.main"},"& .Mui-selected":{color:"white"}}},color:"primary",shape:"rounded",showFirstButton:!0,showLastButton:!0,className:"notification-pagination"}),o&&x.jsx(ap,{start:e*t-t+1,end:e*t>n?n:e*t,total:n,title:"items"}),s&&x.jsx(jo,{variant:"contained",className:"view-all",disabled:a.length===0,onClick:l,children:"Mark Read"})]});function Tr(e,t,n){return(t=Sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cp(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bI(e){if(Array.isArray(e))return e}function hI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function xa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function up(e,t){if(e){if(typeof e=="string")return xa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}}function vI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
249
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&ea.assertOptions(r,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1),o!=null&&(D.isFunction(o)?n.paramsSerializer={serialize:o}:ea.assertOptions(o,{encode:nn.function,serialize:nn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&D.merge(s.common,s[n.method]);s&&D.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=ft.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,p=0,f;if(!c){const m=[Ud.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,d=Promise.resolve(n);p<f;)d=d.then(m[p++],m[p++]);return d}f=l.length;let h=n;for(p=0;p<f;){const m=l[p++],g=l[p++];try{h=m(h)}catch(b){g.call(this,b);break}}try{d=Ud.call(this,h)}catch(m){return Promise.reject(m)}for(p=0,f=u.length;p<f;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=yn(this.defaults,t);const n=Vd(t.baseURL,t.url);return Fd(n,t.params,t.paramsSerializer)}}D.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(n,r){return this.request(yn(r||{},{method:t,url:n,data:(r||{}).data}))}}),D.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(yn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Cn.prototype[t]=n(),Cn.prototype[t+"Form"]=n(!0)});class ta{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Wn(s,a,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ta(function(o){t=o}),cancel:t}}}function U1(e){return function(n){return e.apply(null,n)}}function Y1(e){return D.isObject(e)&&e.isAxiosError===!0}const na={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(na).forEach(([e,t])=>{na[t]=e});function qd(e){const t=new Cn(e),n=bd(Cn.prototype.request,t);return D.extend(n,Cn.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return qd(yn(e,o))},n}const $e=qd(Ir);$e.Axios=Cn,$e.CanceledError=Wn,$e.CancelToken=ta,$e.isCancel=jd,$e.VERSION=Yd,$e.toFormData=Yo,$e.AxiosError=be,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=U1,$e.isAxiosError=Y1,$e.mergeConfig=yn,$e.AxiosHeaders=ft,$e.formToJSON=e=>Md(D.isHTMLForm(e)?new FormData(e):e),$e.getAdapter=Zd.getAdapter,$e.HttpStatusCode=na,$e.default=$e;const ei={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit"},Kd={BEARER:"Bearer",TENANT_ID:"tenant_id",BU_ID:"bu_id",SNOP_ID:"snop_id"},Sr={REFRESH:"refresh",CLOSE:"close"},J1=[{label:"Show 10 Rows",value:10},{label:"Show 25 Rows",value:25},{label:"Show 50 Rows",value:50},{label:"Show 100 Rows",value:100}],q1=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),K1=["message","sub_type"],Q1=e=>({...e,borderRadius:5,colors:{...e.colors,primary25:"#F2F2F2",primary:"#E94F1C"}}),eI=[10,25,50,100],ra={MARK_ALL_READ:"MARK_ALL_READ"},oa={NOTIFICATION:"/notifications"},ia={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"};/*! js-cookie v3.0.5 | MIT */function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var tI={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function sa(e,t){function n(o,s,a){if(!(typeof document>"u")){a=ti({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(a[d]=e.read(u,d),o===d)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",ti({},s,{expires:-1}))},withAttributes:function(o){return sa(this.converter,ti({},this.attributes,o))},withConverter:function(o){return sa(ti({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var nI=sa(tI,{path:"/"});const aa=_s(ei.SNOP),la=_s(ei.SELECTED_BU),ca=_s(ei.USER),Qd={BU_IDS:la==null?void 0:la.business_unit_id,TOKEN:JSON.parse(nI.get(ei.TOKEN)||null),TENANT_IDS:ca==null?void 0:ca.tenant_id,SNOP_IDS:aa==null?void 0:aa.snop_id},ni={headers:{"Content-Type":"application/json",Authorization:`${Kd.BEARER} ${Qd.TOKEN}`}},ep=$e.create({baseURL:ia.BASE_URL,axiosConfig:ni});ep.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),ep.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const{TENANT_ID:ua,BU_ID:da,SNOP_ID:tp}=Kd,{TENANT_IDS:pa,BU_IDS:fa}=Qd,rI=async e=>{try{const t=`${e}${oa.NOTIFICATION}/v1?${ua}=${pa}&${da}=${fa}`;return await $e.get(t,ni)}catch(t){return t}},np=async(e,t,n)=>{try{const r=n===ra.MARK_ALL_READ?"":`&${tp}=${n}&`,o=`${e}${oa.NOTIFICATION}${ia.VERSION}?${ua}=${pa}&${da}=${fa}${r}`;return await $e.put(o,t,ni)}catch(r){return r}},oI=async({baseUrl:e,id:t,snopId:n})=>{try{const r=`${e}${oa.NOTIFICATION}${ia.VERSION}?${ua}=${pa}&${da}=${fa}&${tp}=${n}&id=${t}`;return await $e.get(r,ni)}catch(r){return r}},ri={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500},iI=ic(Rs)(({theme:e})=>({"& .MuiBadge-badge":{right:-5,top:2,border:`1px solid ${e.palette.background.paper}`,padding:"0 2px",backgroundColor:"#D44E40",color:"white",fontSize:"0.9rem"}})),sI=({count:e})=>x.jsxs(iI,{badgeContent:e<10?`0${e}`:e,color:"error",sx:{gap:"0.5rem"},children:[x.jsx("img",{src:"/public/bell.svg",alt:"Bell Icon",width:14}),x.jsx(pt,{component:"span",className:"notify-title",children:"Notification"})]});var ma={},ga={};const aI=Lt(Xh);var rp;function op(){return rp||(rp=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aI}(ga)),ga}var lI=lo;Object.defineProperty(ma,"__esModule",{value:!0});var ba=ma.default=void 0,cI=lI(op()),uI=x;ba=ma.default=(0,cI.default)((0,uI.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const dI=re(Nu)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:20,border:`1px solid ${$a[50]}`,boxShadow:e.shadows[5],padding:"1.2rem"}})),ha=({title:e,subTitle:t,children:n,onRefresh:r,onClose:o,loading:s,handleShowAll:a,handleMarkAllAsRead:l,isMarkAllAsRead:c,width:u,headerIconType:d,isDialogActionShow:p,className:f,dialogType:h,...m})=>{const g=()=>{switch(d){case Sr.REFRESH:return x.jsx(bs,{disabled:s,"aria-label":"close",sx:{color:"primary.main"},onClick:r,children:x.jsx(ba,{fontSize:"medium"})});case Sr.CLOSE:return x.jsx("div",{className:"close-button",onClick:o});default:return null}};return x.jsxs(dI,{maxWidth:"md",onClose:o,...m,className:["notification-dialog",f,h==="notifcation-dialog"?"notification-main-box":""].join(" "),dialogType:!0,children:[x.jsx(nt,{sx:{display:"flex"},children:x.jsxs(nt,{sx:h==="notifcation-dialog"?{gap:1,display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"}:{gap:1,display:"flex",width:"100%",justifyContent:"space-between",paddingBottom:1.2},children:[x.jsxs(nt,{className:"title-container",children:[x.jsx(pt,{variant:"h6",component:"h6",className:`title ${h==="notifcation-dialog"?"notifcation-title":""}`,children:e}),t&&x.jsx(pt,{variant:"h6",className:"title sub-title",children:t})]}),g()]})}),n,p&&x.jsxs(Vo,{className:"dialog-action",children:[x.jsx(jo,{onClick:a,className:"view-all",children:"Show all"}),c.boo&&x.jsx(jo,{className:"view-all",onClick:l,children:"Mark all as read"})]})]})},va=({type:e,title:t,subTitle:n,subType:r,isRead:o,handleShowDetails:s,handleRead:a,isCheckBox:l,isSubType:c,selectedAlert:u,id:d,handleCheckboxChange:p,clickId:f})=>x.jsxs(nt,{className:"cards",children:[x.jsxs(gr,{display:"flex",flexDirection:"row",alignItems:"start",gap:1,children:[e&&x.jsx(Rs,{color:e,variant:"dot",className:"badge"}),l&&x.jsx(Su,{checked:!!u.includes(d),onChange:h=>p(h,d),disabled:o,sx:{padding:"4px 7px 0 7px"}}),x.jsx(pt,{component:"p",className:["title-card",o&&"read"].join(" "),children:t})]}),x.jsxs(gr,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"start",gap:1,sx:{pt:1},children:[c&&x.jsx(No,{label:r,variant:"filled",size:"small",sx:{fontFamily:"Montserrat, sans-serif",fontWeight:"500",color:"primary.main",ml:5}}),x.jsx(pt,{variant:"body2",component:"div",className:["sub-title",o&&"read"].join(" "),sx:{ml:"0.8rem !important"},children:n})]}),x.jsxs(gr,{display:"flex",flexDirection:"row",justifyContent:"end",gap:1,children:[x.jsx(No,{disabled:f,onClick:s,label:f===d?x.jsx(mr,{color:"primary",size:13}):"Show Details",component:"button",variant:"filled",clickable:!0,size:"small",sx:{fontFamily:"Montserrat, sans-serif",fontWeight:"500",fontSize:"0.875rem",color:"chipColor",background:"chipBGColor",borderRadius:"1.25rem",padding:"0.188rem !important",minWidth:"6.625rem"}}),!o&&x.jsx(No,{disabled:f,onClick:a,label:"Mark as Read",component:"button",variant:"filled",clickable:!0,size:"small",sx:{fontFamily:"Montserrat, sans-serif",fontWeight:"medium",color:"chipColor"}})]})]});va.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const ip=({data:e,handleRead:t,handleShowDetails:n,clickId:r})=>x.jsx(nt,{children:e.map((o,s)=>x.jsx(va,{type:"success",title:o.message,subTitle:md(o.createdAt),isRead:o.isRead,handleShowDetails:()=>n(o.id,o==null?void 0:o.snopId),handleRead:()=>t([o.id],o==null?void 0:o.snopId),clickId:r,id:o.id},s))});ip.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};var ya={},pI=lo;Object.defineProperty(ya,"__esModule",{value:!0});var Ca=ya.default=void 0,fI=pI(op()),mI=x;Ca=ya.default=(0,fI.default)((0,mI.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"}),"Search");const gI=re(dd)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.input.border} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.input.color},"& .MuiInput-underline:after":{borderBottomColor:e.palette.input.border,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.input.border,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.input.border,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.input.border,borderWidth:"0.1rem"}}})),sp=({adornmentIcon:e,...t})=>x.jsx(gI,{...t,InputProps:{...e||{}}}),ap=({start:e,end:t,total:n,title:r})=>x.jsxs(nt,{component:"h1",sx:{fontSize:"1.5rem",fontWeight:500},children:[e," - ",t," of ",n," ",r]}),lp=({page:e,rowPerPage:t,total:n,handleChangePage:r,isLogo:o,isMarkAllRead:s,selectedAlert:a,handleAllRead:l})=>x.jsxs(x.Fragment,{children:[x.jsx(ad,{count:Math.ceil(n/t),page:e,onChange:(c,u)=>{r(u)},sx:{padding:"0.5rem 0.75rem 0.75rem 0.75rem","& .MuiPaginationItem-root":{fontSize:"1.16rem",borderRadius:"0.5rem",color:"primary.main","& .MuiSvgIcon-root":{fontSize:"2.2rem",color:"primary.main"},"& .Mui-selected":{color:"white"}}},color:"primary",shape:"rounded",showFirstButton:!0,showLastButton:!0,className:"notification-pagination"}),o&&x.jsx(ap,{start:e*t-t+1,end:e*t>n?n:e*t,total:n,title:"items"}),s&&x.jsx(jo,{variant:"contained",className:"view-all",disabled:a.length===0,onClick:l,children:"Mark Read"})]});function Tr(e,t,n){return(t=Sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cp(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bI(e){if(Array.isArray(e))return e}function hI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function xa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function up(e,t){if(e){if(typeof e=="string")return xa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}}function vI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
250
250
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gt(e,t){return bI(e)||hI(e,t)||up(e,t)||vI()}function zt(e,t){if(e==null)return{};var n,r,o=ie(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function CI(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,s=e.defaultValue,a=s===void 0?null:s,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=zt(e,yI),g=G.useState(l!==void 0?l:n),b=Gt(g,2),C=b[0],T=b[1],I=G.useState(c!==void 0?c:o),S=Gt(I,2),v=S[0],O=S[1],A=G.useState(h!==void 0?h:a),w=Gt(A,2),P=w[0],$=w[1],B=G.useCallback(function(V,K){typeof u=="function"&&u(V,K),$(V)},[u]),j=G.useCallback(function(V,K){var F;typeof d=="function"&&(F=d(V,K)),T(F!==void 0?F:V)},[d]),L=G.useCallback(function(){typeof f=="function"&&f(),O(!0)},[f]),_=G.useCallback(function(){typeof p=="function"&&p(),O(!1)},[p]),M=l!==void 0?l:C,k=c!==void 0?c:v,z=h!==void 0?h:P;return pe(pe({},m),{},{inputValue:M,menuIsOpen:k,onChange:B,onInputChange:j,onMenuClose:_,onMenuOpen:L,value:z})}function xI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sc(r.key),r)}}function II(e,t,n){return t&&dp(e.prototype,t),n&&dp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ho(e,t)}function oi(e){return oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oi(e)}function pp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pp=function(){return!!e})()}function SI(e,t){if(t&&(fn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uc(e)}function TI(e){var t=pp();return function(){var n,r=oi(e);if(t){var o=oi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return SI(this,n)}}function RI(e){if(Array.isArray(e))return xa(e)}function OI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
251
251
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ia(e){return RI(e)||OI(e)||up(e)||AI()}function wI(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ea=G.useLayoutEffect,NI=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ii=function(){};function PI(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function FI(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&s.push("".concat(PI(e,a)));return s.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var fp=function(t){return $I(t)?t.filter(Boolean):fn(t)==="object"&&t!==null?[t]:[]},mp=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=zt(t,NI);return pe({},n)},He=function(t,n,r){var o=t.cx,s=t.getStyles,a=t.getClassNames,l=t.className;return{css:s(n,t),className:o(r??{},a(n,t),l)}};function si(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function DI(e){return si(e)?window.innerHeight:e.clientHeight}function gp(e){return si(e)?window.pageYOffset:e.scrollTop}function ai(e,t){if(si(e)){window.scrollTo(0,t);return}e.scrollTop=t}function kI(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function MI(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function li(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ii,o=gp(e),s=t-o,a=10,l=0;function c(){l+=a;var u=MI(l,o,s,n);ai(e,u),l<n?window.requestAnimationFrame(c):r(e)}c()}function bp(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ai(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ai(e,Math.max(t.offsetTop-o,0))}function BI(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function hp(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function jI(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var vp=!1,_I={get passive(){return vp=!0}},ci=typeof window<"u"?window:{};ci.addEventListener&&ci.removeEventListener&&(ci.addEventListener("p",ii,_I),ci.removeEventListener("p",ii,!1));var VI=vp;function LI(e){return e!=null}function $I(e){return Array.isArray(e)}function ui(e,t,n){return e?t:n}function AT(e){return e}function wT(e){return e}var WI=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Object.entries(t).filter(function(a){var l=Gt(a,1),c=l[0];return!r.includes(c)});return s.reduce(function(a,l){var c=Gt(l,2),u=c[0],d=c[1];return a[u]=d,a},{})},GI=["children","innerProps"],zI=["children","innerProps"];function HI(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,s=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,c=kI(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var d=c.getBoundingClientRect(),p=d.height,f=n.getBoundingClientRect(),h=f.bottom,m=f.height,g=f.top,b=n.offsetParent.getBoundingClientRect(),C=b.top,T=a?window.innerHeight:DI(c),I=gp(c),S=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),O=C-v,A=T-g,w=O+I,P=p-I-g,$=h-T+I+S,B=I+g-v,j=160;switch(o){case"auto":case"bottom":if(A>=m)return{placement:"bottom",maxHeight:t};if(P>=m&&!a)return s&&li(c,$,j),{placement:"bottom",maxHeight:t};if(!a&&P>=r||a&&A>=r){s&&li(c,$,j);var L=a?A-S:P-S;return{placement:"bottom",maxHeight:L}}if(o==="auto"||a){var _=t,M=a?O:w;return M>=r&&(_=Math.min(M-S-l,t)),{placement:"top",maxHeight:_}}if(o==="bottom")return s&&ai(c,$),{placement:"bottom",maxHeight:t};break;case"top":if(O>=m)return{placement:"top",maxHeight:t};if(w>=m&&!a)return s&&li(c,B,j),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&O>=r){var k=t;return(!a&&w>=r||a&&O>=r)&&(k=a?O-v:w-v),s&&li(c,B,j),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function XI(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var yp=function(t){return t==="auto"?"bottom":t},ZI=function(t,n){var r,o=t.placement,s=t.theme,a=s.borderRadius,l=s.spacing,c=s.colors;return pe((r={label:"menu"},Tr(r,XI(o),"100%"),Tr(r,"position","absolute"),Tr(r,"width","100%"),Tr(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},Cp=G.createContext(null),UI=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,s=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,u=G.useContext(Cp)||{},d=u.setPortalPlacement,p=G.useRef(null),f=G.useState(o),h=Gt(f,2),m=h[0],g=h[1],b=G.useState(null),C=Gt(b,2),T=C[0],I=C[1],S=c.spacing.controlHeight;return Ea(function(){var v=p.current;if(v){var O=a==="fixed",A=l&&!O,w=HI({maxHeight:o,menuEl:v,minHeight:r,placement:s,shouldScroll:A,isFixedPosition:O,controlHeight:S});g(w.maxHeight),I(w.placement),d==null||d(w.placement)}},[o,s,a,l,r,d,S]),n({ref:p,placerProps:pe(pe({},t),{},{placement:T||yp(s),maxHeight:m})})},YI=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return ue("div",y({},He(t,"menu",{menu:!0}),{ref:r},o),n)},JI=YI,qI=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return pe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},KI=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,s=t.isMulti;return ue("div",y({},He(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:o},r),n)},xp=function(t,n){var r=t.theme,o=r.spacing.baseUnit,s=r.colors;return pe({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},QI=xp,eE=xp,tE=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,s=zt(t,GI);return ue("div",y({},He(pe(pe({},s),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},nE=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,s=zt(t,zI);return ue("div",y({},He(pe(pe({},s),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},rE=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},oE=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,s=t.innerProps,a=t.menuPlacement,l=t.menuPosition,c=G.useRef(null),u=G.useRef(null),d=G.useState(yp(a)),p=Gt(d,2),f=p[0],h=p[1],m=G.useMemo(function(){return{setPortalPlacement:h}},[]),g=G.useState(null),b=Gt(g,2),C=b[0],T=b[1],I=G.useCallback(function(){if(o){var A=BI(o),w=l==="fixed"?0:window.pageYOffset,P=A[f]+w;(P!==(C==null?void 0:C.offset)||A.left!==(C==null?void 0:C.rect.left)||A.width!==(C==null?void 0:C.rect.width))&&T({offset:P,rect:A})}},[o,l,f,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);Ea(function(){I()},[I]);var S=G.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&c.current&&(u.current=qv(o,c.current,I,{elementResize:"ResizeObserver"in window}))},[o,I]);Ea(function(){S()},[S]);var v=G.useCallback(function(A){c.current=A,S()},[S]);if(!n&&l!=="fixed"||!C)return null;var O=ue("div",y({ref:v},He(pe(pe({},t),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":!0}),s),r);return ue(Cp.Provider,{value:m},n?In.createPortal(O,n):O)},iE=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},sE=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,s=t.isRtl;return ue("div",y({},He(t,"container",{"--is-disabled":o,"--is-rtl":s}),r),n)},aE=function(t,n){var r=t.theme.spacing,o=t.isMulti,s=t.hasValue,a=t.selectProps.controlShouldRenderValue;return pe({alignItems:"center",display:o&&s&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},lE=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,s=t.hasValue;return ue("div",y({},He(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s}),r),n)},cE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},uE=function(t){var n=t.children,r=t.innerProps;return ue("div",y({},He(t,"indicatorsContainer",{indicators:!0}),r),n)},Ip,dE=["size"],pE=["innerProps","isRtl","size"];function fE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var mE=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWws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SBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:fE},Ep=function(t){var n=t.size,r=zt(t,dE);return ue("svg",y({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mE},r))},Sa=function(t){return ue(Ep,y({size:20},t),ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Sp=function(t){return ue(Ep,y({size:20},t),ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Tp=function(t,n){var r=t.isFocused,o=t.theme,s=o.spacing.baseUnit,a=o.colors;return pe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2,":hover":{color:r?a.neutral80:a.neutral40}})},gE=Tp,bE=function(t){var n=t.children,r=t.innerProps;return ue("div",y({},He(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(Sp,null))},hE=Tp,vE=function(t){var n=t.children,r=t.innerProps;return ue("div",y({},He(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(Sa,null))},yE=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing.baseUnit,a=o.colors;return pe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:s*2,marginTop:s*2})},CE=function(t){var n=t.innerProps;return ue("span",y({},n,He(t,"indicatorSeparator",{"indicator-separator":!0})))},xE=ln(Ip||(Ip=wI([`
252
252
  0%, 80%, 100% { opacity: 0; }