aquasis-fe-components 1.4.3 → 1.4.4
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.
|
@@ -70041,7 +70041,7 @@ const fNe = async () => {
|
|
|
70041
70041
|
return Du(
|
|
70042
70042
|
[h3.GetReleases, a, o, i, r],
|
|
70043
70043
|
async () => await pNe({ ...e, idLanguage: r }),
|
|
70044
|
-
{ enabled: !!a &&
|
|
70044
|
+
{ enabled: !!a && r !== void 0 }
|
|
70045
70045
|
);
|
|
70046
70046
|
}, bNe = ({ index: e }) => {
|
|
70047
70047
|
const { t } = Wr(), { requiredField: n } = d3();
|
|
@@ -70360,7 +70360,7 @@ const fNe = async () => {
|
|
|
70360
70360
|
var x, E;
|
|
70361
70361
|
const [e, t] = Et(!1), [n, r] = Et(!1), [a, o] = Et(0), { t: i } = Wr(), c = $e(null), l = w2(tr.AppId), s = w2(tr.UserID), { data: d } = RR(), { data: f } = hNe({ idApp: l, lastDeployed: !0, userId: s }), m = f == null ? void 0 : f[0], p = d == null ? void 0 : d.find((w) => w.id === l);
|
|
70362
70362
|
Lt(() => {
|
|
70363
|
-
if (f != null && f.length) {
|
|
70363
|
+
if (f != null && f.length && f[0].gaReleasePages.length) {
|
|
70364
70364
|
const w = f[0], L = !w.readRelease && !!w.isDeployed;
|
|
70365
70365
|
t(L);
|
|
70366
70366
|
}
|
|
@@ -1066,4 +1066,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1066
1066
|
`)}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(a=>r.set(a)),r}static accessor(t){const r=(this[RP]=this[RP]={accessors:{}}).accessors,a=this.prototype;function o(i){const c=Cc(i);r[c]||(zMe(a,i),r[c]=!0)}return Oe.isArray(t)?t.forEach(o):o(t),this}}Ar.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oe.reduceDescriptors(Ar.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Oe.freezeMethods(Ar);function yf(e,t){const n=this||bc,r=t||n,a=Ar.from(r.headers);let o=r.data;return Oe.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function TP(e){return!!(e&&e.__CANCEL__)}function Mo(e,t,n){Wt.call(this,e??"canceled",Wt.ERR_CANCELED,t,n),this.name="CanceledError"}Oe.inherits(Mo,Wt,{__CANCEL__:!0});function DP(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Wt("Request failed with status code "+n.status,[Wt.ERR_BAD_REQUEST,Wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OMe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const s=Date.now(),d=r[o];i||(i=s),n[a]=l,r[a]=s;let f=o,m=0;for(;f!==a;)m+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),s-i<t)return;const p=d&&s-d;return p?Math.round(m*1e3/p):void 0}}function IMe(e,t){let n=0,r=1e3/t,a,o;const i=(s,d=Date.now())=>{n=d,a=null,o&&(clearTimeout(o),o=null),e.apply(null,s)};return[(...s)=>{const d=Date.now(),f=d-n;f>=r?i(s,d):(a=s,o||(o=setTimeout(()=>{o=null,i(a)},r-f)))},()=>a&&i(a)]}const qs=(e,t,n=3)=>{let r=0;const a=OMe(50,250);return IMe(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,s=a(l),d=i<=c;r=i;const f={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:s||void 0,estimated:s&&c&&d?(c-i)/s:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},kP=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},BP=e=>(...t)=>Oe.asap(()=>e(...t)),PMe=xr.hasStandardBrowserEnv?function(){const t=xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent),n=document.createElement("a");let r;function a(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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=a(window.location.href),function(i){const c=Oe.isString(i)?a(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),RMe=xr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const i=[e+"="+encodeURIComponent(t)];Oe.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Oe.isString(r)&&i.push("path="+r),Oe.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.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 TMe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DMe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function FP(e,t){return e&&!TMe(t)?DMe(e,t):t}const jP=e=>e instanceof Ar?{...e}:e;function pa(e,t){t=t||{};const n={};function r(s,d,f){return Oe.isPlainObject(s)&&Oe.isPlainObject(d)?Oe.merge.call({caseless:f},s,d):Oe.isPlainObject(d)?Oe.merge({},d):Oe.isArray(d)?d.slice():d}function a(s,d,f){if(Oe.isUndefined(d)){if(!Oe.isUndefined(s))return r(void 0,s,f)}else return r(s,d,f)}function o(s,d){if(!Oe.isUndefined(d))return r(void 0,d)}function i(s,d){if(Oe.isUndefined(d)){if(!Oe.isUndefined(s))return r(void 0,s)}else return r(void 0,d)}function c(s,d,f){if(f in t)return r(s,d);if(f in e)return r(void 0,s)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(s,d)=>a(jP(s),jP(d),!0)};return Oe.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||a,m=f(e[d],t[d],d);Oe.isUndefined(m)&&f!==c||(n[d]=m)}),n}const HP=e=>{const t=pa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=Ar.from(i),t.url=NP(FP(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(Oe.isFormData(n)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[s,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([s||"multipart/form-data",...d].join("; "))}}if(xr.hasStandardBrowserEnv&&(r&&Oe.isFunction(r)&&(r=r(t)),r||r!==!1&&PMe(t.url))){const s=a&&o&&RMe.read(o);s&&i.set(a,s)}return t},kMe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=HP(e);let o=a.data;const i=Ar.from(a.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:s}=a,d,f,m,p,g;function h(){p&&p(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function C(){if(!v)return;const y=Ar.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};DP(function(E){n(E),h()},function(E){r(E),h()},S),v=null}"onloadend"in v?v.onloadend=C:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(C)},v.onabort=function(){v&&(r(new Wt("Request aborted",Wt.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Wt("Network Error",Wt.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||IP;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),r(new Wt(x,S.clarifyTimeoutError?Wt.ETIMEDOUT:Wt.ECONNABORTED,e,v)),v=null},o===void 0&&i.setContentType(null),"setRequestHeader"in v&&Oe.forEach(i.toJSON(),function(x,S){v.setRequestHeader(S,x)}),Oe.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),c&&c!=="json"&&(v.responseType=a.responseType),s&&([m,g]=qs(s,!0),v.addEventListener("progress",m)),l&&v.upload&&([f,p]=qs(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=y=>{v&&(r(!y||y.type?new Mo(null,e,v):y),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const b=NMe(a.url);if(b&&xr.protocols.indexOf(b)===-1){r(new Wt("Unsupported protocol "+b+":",Wt.ERR_BAD_REQUEST,e));return}v.send(o||null)})},BMe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(s){if(!a){a=!0,c();const d=s instanceof Error?s:this.reason;r.abort(d instanceof Wt?d:new Mo(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new Wt(`timeout ${t} of ms exceeded`,Wt.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(o):s.removeEventListener("abort",o)}),e=null)};e.forEach(s=>s.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>Oe.asap(c),l}},FMe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},jMe=async function*(e,t){for await(const n of HMe(e))yield*FMe(n,t)},HMe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},VP=(e,t,n,r)=>{const a=jMe(e,t);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:s,value:d}=await a.next();if(s){c(),l.close();return}let f=d.byteLength;if(n){let m=o+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(s){throw c(s),s}},cancel(l){return c(l),a.return()}},{highWaterMark:2})},Ys=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",WP=Ys&&typeof ReadableStream=="function",VMe=Ys&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$P=(e,...t)=>{try{return!!e(...t)}catch{return!1}},WMe=WP&&$P(()=>{let e=!1;const t=new Request(xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),KP=64*1024,Sf=WP&&$P(()=>Oe.isReadableStream(new Response("").body)),Qs={stream:Sf&&(e=>e.body)};Ys&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qs[t]&&(Qs[t]=Oe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Wt(`Response type '${t}' is not supported`,Wt.ERR_NOT_SUPPORT,r)})})})(new Response);const $Me=async e=>{if(e==null)return 0;if(Oe.isBlob(e))return e.size;if(Oe.isSpecCompliantForm(e))return(await new Request(xr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Oe.isArrayBufferView(e)||Oe.isArrayBuffer(e))return e.byteLength;if(Oe.isURLSearchParams(e)&&(e=e+""),Oe.isString(e))return(await VMe(e)).byteLength},KMe=async(e,t)=>{const n=Oe.toFiniteNumber(e.getContentLength());return n??$Me(t)},xf={http:dMe,xhr:kMe,fetch:Ys&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:l,responseType:s,headers:d,withCredentials:f="same-origin",fetchOptions:m}=HP(e);s=s?(s+"").toLowerCase():"text";let p=BMe([a,o&&o.toAbortSignal()],i),g;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&WMe&&n!=="get"&&n!=="head"&&(v=await KMe(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),A;if(Oe.isFormData(r)&&(A=S.headers.get("content-type"))&&d.setContentType(A),S.body){const[E,w]=kP(v,qs(BP(l)));r=VP(S.body,KP,E,w)}}Oe.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;g=new Request(t,{...m,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?f:void 0});let b=await fetch(g);const y=Sf&&(s==="stream"||s==="response");if(Sf&&(c||y&&h)){const S={};["status","statusText","headers"].forEach(L=>{S[L]=b[L]});const A=Oe.toFiniteNumber(b.headers.get("content-length")),[E,w]=c&&kP(A,qs(BP(c),!0))||[];b=new Response(VP(b.body,KP,E,()=>{w&&w(),h&&h()}),S)}s=s||"text";let x=await Qs[Oe.findKey(Qs,s)||"text"](b,e);return!y&&h&&h(),await new Promise((S,A)=>{DP(S,A,{data:x,headers:Ar.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(C){throw h&&h(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Wt("Network Error",Wt.ERR_NETWORK,e,g),{cause:C.cause||C}):Wt.from(C,C&&C.code,e,g)}})};Oe.forEach(xf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const UP=e=>`- ${e}`,UMe=e=>Oe.isFunction(e)||e===null||e===!1,GP={getAdapter:e=>{e=Oe.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!UMe(n)&&(r=xf[(i=String(n)).toLowerCase()],r===void 0))throw new Wt(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
1067
1067
|
`+o.map(UP).join(`
|
|
1068
1068
|
`):" "+UP(o[0]):"as no adapter specified";throw new Wt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:xf};function Af(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mo(null,e)}function qP(e){return Af(e),e.headers=Ar.from(e.headers),e.data=yf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),GP.getAdapter(e.adapter||bc.adapter)(e).then(function(r){return Af(e),r.data=yf.call(e,e.transformResponse,r),r.headers=Ar.from(r.headers),r},function(r){return TP(r)||(Af(e),r&&r.response&&(r.response.data=yf.call(e,e.transformResponse,r.response),r.response.headers=Ar.from(r.response.headers))),Promise.reject(r)})}const YP="1.7.7",Ef={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ef[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const QP={};Ef.transitional=function(t,n,r){function a(o,i){return"[Axios v"+YP+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new Wt(a(i," has been removed"+(n?" in "+n:"")),Wt.ERR_DEPRECATED);return n&&!QP[i]&&(QP[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function GMe(e,t,n){if(typeof e!="object")throw new Wt("options must be an object",Wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Wt("option "+o+" must be "+l,Wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Wt("Unknown option "+o,Wt.ERR_BAD_OPTION)}}const wf={assertOptions:GMe,validators:Ef},P1=wf.validators;class ga{constructor(t){this.defaults=t,this.interceptors={request:new OP,response:new OP}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1069
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&wf.assertOptions(r,{silentJSONParsing:P1.transitional(P1.boolean),forcedJSONParsing:P1.transitional(P1.boolean),clarifyTimeoutError:P1.transitional(P1.boolean)},!1),a!=null&&(Oe.isFunction(a)?n.paramsSerializer={serialize:a}:wf.assertOptions(a,{encode:P1.function,serialize:P1.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&Oe.merge(o.common,o[n.method]);o&&Oe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Ar.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});let d,f=0,m;if(!l){const g=[qP.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,s),m=g.length,d=Promise.resolve(n);f<m;)d=d.then(g[f++],g[f++]);return d}m=c.length;let p=n;for(f=0;f<m;){const g=c[f++],h=c[f++];try{p=g(p)}catch(v){h.call(this,v);break}}try{d=qP.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,m=s.length;f<m;)d=d.then(s[f++],s[f++]);return d}getUri(t){t=pa(this.defaults,t);const n=FP(t.baseURL,t.url);return NP(n,t.params,t.paramsSerializer)}}Oe.forEach(["delete","get","head","options"],function(t){ga.prototype[t]=function(n,r){return this.request(pa(r||{},{method:t,url:n,data:(r||{}).data}))}}),Oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(pa(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ga.prototype[t]=n(),ga.prototype[t+"Form"]=n(!0)});class Lf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Mo(o,i,c),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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lf(function(a){t=a}),cancel:t}}}function qMe(e){return function(n){return e.apply(null,n)}}function YMe(e){return Oe.isObject(e)&&e.isAxiosError===!0}const Mf={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(Mf).forEach(([e,t])=>{Mf[t]=e});function XP(e){const t=new ga(e),n=mP(ga.prototype.request,t);return Oe.extend(n,ga.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return XP(pa(e,a))},n}const Bn=XP(bc);Bn.Axios=ga,Bn.CanceledError=Mo,Bn.CancelToken=Lf,Bn.isCancel=TP,Bn.VERSION=YP,Bn.toFormData=Us,Bn.AxiosError=Wt,Bn.Cancel=Bn.CanceledError,Bn.all=function(t){return Promise.all(t)},Bn.spread=qMe,Bn.isAxiosError=YMe,Bn.mergeConfig=pa,Bn.AxiosHeaders=Ar,Bn.formToJSON=e=>PP(Oe.isHTMLForm(e)?new FormData(e):e),Bn.getAdapter=GP.getAdapter,Bn.HttpStatusCode=Mf,Bn.default=Bn;const a1=Bn.create({timeout:6e4});a1.interceptors.request.use(e=>{const t=L1(Ur.Token);return e.headers.IdApp=eae(),e.headers.Tenantid=_1e(),e.headers.Authorization="Bearer "+t,e},e=>Promise.reject(e));const ZP="https://aquasis.freshdesk.com/api/v2/",JP=btoa("UtA4JWhMo8w4eWzzgo9"),QMe=async({appName:e,...t})=>{var l;const n=+"23000031142",{data:r}=await a1.get(ZP+"ticket_fields",{headers:{Authorization:`Basic ${JP}`}}),a=r.find(s=>s.name==="cf_produto"),o=(l=a==null?void 0:a.choices)==null?void 0:l.find(s=>s.toLowerCase().includes(e.toLowerCase())),i={...t,status:2,priority:4,group_id:n,type:"Pedido de Suporte",custom_fields:{cf_produto:o},tags:["new-freshdesk-widget"],source:9},c=new FormData;return Object.keys(i).forEach(s=>{var d;s==="custom_fields"?Object.keys(i[s]).forEach(f=>{c.append(`custom_fields[${f}]`,i.custom_fields[f])}):s==="attachments"?(d=t.attachments)==null||d.forEach(f=>{c.append("attachments[]",new File([f],f.name))}):s==="tags"?c.append("tags[]",i[s]):c.append(s,i[s])}),a1.post(ZP+"tickets",c,{headers:{Authorization:`Basic ${JP}`,"Content-Type":"multipart/form-data"}})},XMe={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:_P}=ho,t2="HELPDESK.FORM",ZMe="GENERAL.MESSAGES",JMe=({onCancel:e})=>{const[t,n]=N.useState(!1),[r]=en.useForm(),{t:a}=k2(),{requiredField:o}=Hs(),i=L1(Ur.AppName),c=[{dataIndex:"field",title:a("HELPDESK.TABLE.FIELD"),render:d=>a(`HELPDESK.FORM.FIELDS.${d==null?void 0:d.toUpperCase()}`)},{dataIndex:"code",title:a("HELPDESK.TABLE.CODE"),render:d=>a(`HELPDESK.ERRORS_CODE.${d==null?void 0:d.toUpperCase()}`)}],l=d=>{r.setFieldValue(fa.Attachments,d.fileList)},s=d=>{n(!0);const f={...d,appName:i};QMe(f).then(()=>{Xi.success({message:a(`${ZMe}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:m})=>{const{errors:p}=m.data;Xi.error({className:"table-notification",message:a("ERROR"),placement:"topLeft",description:be.jsx(I2,{dataSource:p,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>n(!1))};return be.jsxs(yr,{className:"helpdesk__content",children:[be.jsx(En,{span:24,children:be.jsx(_P,{level:3,className:"helpdesk__title",children:a(`${t2}.TITLE`)})}),be.jsx(En,{span:24,children:be.jsxs(ta,{children:[be.jsx(_P,{level:4,children:a(`${t2}.FIELDS.TITLE`)}),be.jsxs(en,{form:r,layout:"vertical",onFinish:s,children:[be.jsx(C2,{fieldName:fa.Name,label:a(`${t2}.FIELDS.NAME`),placeholder:a(`${t2}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(C2,{fieldName:fa.Email,label:a(`${t2}.FIELDS.EMAIL`),placeholder:a(`${t2}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(C2,{fieldName:fa.Subject,label:a(`${t2}.FIELDS.SUBJECT`),placeholder:a(`${t2}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(wLe,{fieldName:fa.Description,label:a(`${t2}.FIELDS.DESCRIPTION`),placeholder:a(`${t2}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),be.jsx(en.Item,{name:fa.Attachments,children:be.jsxs(ls,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx(dP,{i18nKey:a(`${t2}.FIELDS.UPLOAD_FILES`),components:{strong:be.jsx("strong",{}),br:be.jsx("br",{}),small:be.jsx("small",{})}})]})}),be.jsx(dn,{htmlType:"submit",type:"primary",icon:be.jsx(b2,{icon:XMe}),loading:t,disabled:t,block:!0,children:a(`${t2}.BUTTONS.SEND`)})]})]})})]})};tie.add(Awe);const _Me=({size:e})=>{const[t,n]=N.useState(!1),{t:r}=k2(),a=()=>n(c=>!c),o=()=>n(!1),i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return be.jsx(tA,{children:be.jsx(yr,{align:"middle",children:be.jsx(Jl,{placement:"bottomRight",trigger:"click",content:be.jsx(JMe,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:t,destroyTooltipOnHide:!0,children:be.jsx(cr,{title:r("HELPDESK.SUPPORT"),placement:"left",children:be.jsx(dn,{type:"primary",shape:"circle",icon:be.jsx(b2,{icon:uL,size:i()}),onClick:a,size:e})})})})})},eze=C3()(_Me);var Vt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Vt||{}),Xs=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e.GetUser="GetUser",e.GetLanguages="GetLanguages",e))(Xs||{});const tze=async()=>{const e=window.globalAuthUrl,{data:t}=await a1.get(`${e}/getApps`);return t},nze=async()=>{const e=window.globalAuthUrl,{data:t}=await a1.get(`${e}/GetLanguages`);return t},rze=async e=>{const t=window.globalAuthUrl,{data:n}=await a1.post(`${t}/ListReleases`,e);return n},aze=async e=>{const t=window.globalAuthUrl,{data:n}=await a1.post(`${t}/MaintainReleases`,e);return n},oze=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await a1.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},eR=()=>M3([Xs.GetApps],async()=>await tze()),tR=()=>M3([Xs.GetLanguages],async()=>await nze()),ize=e=>{var c;const{i18n:t}=k2(),{data:n}=tR(),r=(c=n==null?void 0:n.find(l=>l.description===t.language))==null?void 0:c.idLanguage,{idApp:a,userId:o,lastDeployed:i}=e;return M3([Xs.GetReleases,a,o,i,r],async()=>await rze({...e,idLanguage:r}),{enabled:!!a&&!!r})},cze=({index:e})=>{const{t}=k2(),{requiredField:n}=Hs();return be.jsx(en.List,{name:[e,Vt.Fields],children:(r,{remove:a})=>be.jsxs(be.Fragment,{children:[be.jsx(gc,{fieldName:"idReleasePage",hidden:!0}),be.jsx(Tr,{gap:16,vertical:!0,children:r.map(({key:o,name:i,...c})=>be.jsxs(Tr,{gap:6,align:"center",children:[be.jsxs(Tr,{vertical:!0,gap:2,style:{width:"100%"},children:[be.jsx(en.Item,{...c,name:[i,Vt.Title],rules:n,noStyle:!0,children:be.jsx(L2,{placeholder:t("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),be.jsx(en.Item,{...c,name:[i,Vt.Description],rules:n,noStyle:!0,children:be.jsx(fu,{autoSize:{minRows:2},placeholder:t("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),be.jsx(en.Item,{noStyle:!0,children:be.jsx(cr,{title:t("GENERAL.REMOVE"),children:be.jsx(dn,{type:"text",icon:be.jsx(hS,{}),onClick:()=>a(i),disabled:r.length===1})})})]},o))})]})})},lze=N.forwardRef(({idLanguage:e,changeSlide:t},n)=>{const[r,a]=N.useState([]),{t:o}=k2(),i=en.useFormInstance(),c=en.useWatch(Vt.ReleasePages,i);N.useEffect(()=>{i.setFieldValue("idLanguage",e)},[e]);const l=f=>({file:m,fileList:p})=>{const g=f[0],h=f[1],v=c[g];a(p),Kx(m.originFileObj,C=>{i.setFieldValue(Vt.ReleasePages,c.toSpliced(g,1,{...v,[h]:C}))})},s=f=>()=>{var v;const m=c==null?void 0:c[f],g=[...((v=c==null?void 0:c[f])==null?void 0:v[Vt.Fields])??[],{}],h=c.toSpliced(f,1,{...m,[Vt.Fields]:g});i.setFieldValue(Vt.ReleasePages,h)},d=be.jsx(yr,{justify:"center",align:"middle",children:be.jsxs(k0,{direction:"vertical",children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx("p",{className:"ant-upload-text",children:o("GENERAL.UPLOAD_LABEL")}),be.jsx("p",{className:"ant-upload-hint",children:o("GENERAL.JPG_PNG_WARNING")})]})});return be.jsx(en.List,{name:Vt.ReleasePages,children:f=>{const m=f.filter(({name:p})=>{var g;return((g=c==null?void 0:c[p])==null?void 0:g.idLanguage)===e});return m.length?be.jsxs(be.Fragment,{children:[be.jsx(gc,{fieldName:"idRelease",hidden:!0}),be.jsx(gc,{fieldName:"idReleasePage",hidden:!0}),be.jsx(gc,{fieldName:"idLanguage",hidden:!0}),be.jsx(Z8,{infinite:!1,ref:n,beforeChange:t,adaptiveHeight:!0,children:m.map(({key:p,name:g,...h})=>{var b,y;const v=(b=c==null?void 0:c[g])==null?void 0:b[Vt.Image],C=(y=c==null?void 0:c[g])==null?void 0:y[Vt.NoImage];return be.jsx("div",{children:be.jsxs(yr,{gutter:[8,16],style:{marginBottom:35},children:[be.jsx(En,{span:24,children:be.jsxs(yr,{gutter:8,children:[be.jsx(En,{span:C?24:12,children:be.jsx(cze,{index:g})}),!C&&be.jsx(En,{span:12,children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(en.Item,{...h,name:[g,Vt.Image],noStyle:!0,children:be.jsx(ls,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:r,beforeUpload:tae,onChange:l([g,Vt.Image]),children:v?be.jsx(W0,{src:v,preview:!1,style:{maxHeight:600}}):d})})})})]})}),be.jsx(En,{span:8,children:be.jsxs(Tr,{vertical:!0,children:[be.jsx(en.Item,{children:be.jsx(dn,{type:"dashed",onClick:s(g),icon:be.jsx(A0,{}),block:!0,children:o("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})}),be.jsx(ELe,{fieldName:[g,Vt.NoImage],label:o("GENERAL.DO_NOT_USE_IMAGE"),onChange:x=>{const S=x.target.checked,A=c.map((E,w)=>({...E,[Vt.NoImage]:w===g?S:E[Vt.NoImage],[Vt.Image]:w===g&&S?void 0:E[Vt.Image]}));i.setFieldValue(Vt.ReleasePages,A)}})]})})]})},p)})})]}):be.jsx(Tr,{justify:"center",align:"center",style:{minHeight:300},children:be.jsx(d2,{})})}})}),sze=N.forwardRef(({idLanguage:e,changeSlide:t},n)=>{const{getColor:r}=SLe();return be.jsx(ta,{styles:{body:{background:r("PrimaryColorBgContainer")}},children:be.jsx(lze,{ref:n,idLanguage:e,changeSlide:t})})}),o1="RELEASE-NOTES",uze=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:a,afterSubmit:o})=>{const[i,c]=N.useState(!1),[l,s]=N.useState(!1),[d,f]=N.useState(0),[m,p]=N.useState("EN"),[g]=en.useForm(),{t:h}=k2(),v=N.useRef(null),{requiredField:C}=Hs(),{data:b}=eR(),{data:y}=tR(),x=en.useWatch(Vt.ReleasePages,g),S=()=>{const j=y==null?void 0:y.find(({description:V})=>V==="EN");if(j&&m===j.description){const V=x==null?void 0:x.filter(H=>H.idLanguage===j.idLanguage);return(V==null?void 0:V.length)<=1}return!1},A=(j,V)=>f(V),E=()=>g.resetFields();N.useEffect(()=>(n&&(c(!0),g.setFieldsValue({...n,[Vt.ReleasePages]:n[Vt.ReleasePages].map(j=>({...j,[Vt.Image]:wd(j[Vt.Image])})),[Vt.DeployDate]:Zn(n[Vt.DeployDate])})),()=>{g.resetFields()}),[n]);const w=()=>{r?new Promise(j=>j(r())).then(()=>c(!0)):c(!0)},L=()=>{a?new Promise(j=>j(a())).then(()=>c(!1)):c(!1)},z=()=>{const j=y==null?void 0:y.find(V=>V.description===m);j&&g.setFieldValue(Vt.ReleasePages,[...x,{[Vt.Fields]:[{}],idLanguage:j.idLanguage}])},I=()=>{g.setFieldValue(Vt.ReleasePages,x.filter((j,V)=>V!==d))},P=j=>{const V={...j,[Vt.DeployDate]:Zn(j[Vt.DeployDate]).format(eD),[Vt.ReleasePages]:j[Vt.ReleasePages].map((H,K)=>({...H,[Vt.Image]:Ux(H[Vt.Image]),order:K,[Vt.Fields]:H[Vt.Fields].map((U,_)=>({...U,order:_}))}))};aze(V).then(()=>{E(),Yi.success(h("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:h(`${o1}.TEXT_SINGULAR`)})),o&&o()}).catch(H=>{var U;const K=((U=H.response)==null?void 0:U.data)??[];Xi.error({message:h("GENERAL.ERROR"),description:be.jsx(Nu,{dataSource:K,renderItem:_=>be.jsx(Nu.Item,{children:h(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${_.error}`)})})})}).finally(L)},D=d===0,O=d===(x==null?void 0:x.length)-1,R=(x==null?void 0:x.length)<=1||S(),T=be.jsxs(Tr,{justify:"flex-end",gap:8,children:[be.jsx(dn,{type:"dashed",icon:be.jsx(b2,{icon:bO}),onClick:()=>{var j;return(j=v.current)==null?void 0:j.prev()},disabled:D,children:h("GENERAL.BACK")}),be.jsx(dn,{type:"dashed",iconPosition:"end",icon:be.jsx(b2,{icon:CO}),onClick:()=>{var j;return(j=v.current)==null?void 0:j.next()},disabled:O,children:h("GENERAL.NEXT")}),be.jsx(dn,{type:"dashed",danger:!0,icon:be.jsx(b2,{icon:Cz}),onClick:I,disabled:R,children:h(`${o1}.REMOVE_CURRENT_SLIDE`)}),be.jsx(dn,{type:"dashed",icon:be.jsx(b2,{icon:QO}),onClick:z,children:h(`${o1}.ADD_NEW_SLIDE`)}),be.jsx(dn,{type:"primary",icon:be.jsx(b2,{icon:iz}),onClick:()=>g.submit(),children:h("GENERAL.SAVE")})]}),M=j=>{s(t?j:!1)},k=nae(b??[],"appName","id"),F=(y==null?void 0:y.map(({idLanguage:j,description:V})=>({label:be.jsxs(Tr,{align:"center",justify:"center",gap:5,children:[be.jsx("img",{src:ZT[V],alt:`${V} flag`,width:20,style:{borderRadius:"50%"}}),h(`LANGUAGES.${V}`)]}),key:V,children:be.jsx(sze,{idLanguage:j,changeSlide:A})})))??[],B={[Vt.ReleasePages]:[{[Vt.Fields]:[{}],idLanguage:1}],[Vt.DeployDate]:Zn()};return be.jsxs(be.Fragment,{children:[be.jsx(cr,{title:t,open:l,onOpenChange:M,children:be.jsx(dn,{type:"primary",icon:be.jsx(b2,{icon:mM}),shape:e?"default":"circle",onClick:w,children:e})}),be.jsx(Sr,{open:i,title:h(`${o1}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),onCancel:L,width:"60%",footer:T,destroyOnClose:!0,children:be.jsxs(en,{form:g,layout:"vertical",initialValues:B,onFinish:P,children:[be.jsx(gc,{fieldName:"idRelease",hidden:!0}),be.jsxs(yr,{gutter:10,children:[be.jsx(En,{span:8,children:be.jsx(xLe,{fieldName:Vt.App,label:h(`${o1}.FORM.FIELDS.APP`),placeholder:h(`${o1}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:k,rules:C})}),be.jsx(En,{span:8,children:be.jsx(C2,{fieldName:Vt.Version,label:h(`${o1}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:h(`${o1}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:j=>j.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...C,()=>({validator(j,V){var U,_;const H=/[^0-9]$/,K=(_=(U=V==null?void 0:V.split("."))==null?void 0:U.filter(Boolean))==null?void 0:_.length;return H.test(V)?Promise.reject(new Error(h("GENERAL.FORM.ERRORS.VERSION"))):K>3||K<3?Promise.reject(new Error(h("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),be.jsx(En,{span:8,children:be.jsx(ALe,{fieldName:Vt.DeployDate,label:h(`${o1}.FORM.FIELDS.DEPLOY_DATE`),format:_T,rules:C})}),be.jsx(En,{span:24,children:be.jsx(Fi,{activeKey:m,type:"card",size:"small",items:F,onChange:j=>p(j)})})]})]})})]})},{Title:dze,Text:fze}=ho,mze=()=>{var A,E;const[e,t]=N.useState(!1),[n,r]=N.useState(!1),[a,o]=N.useState(0),{t:i}=k2(),c=N.useRef(null),l=L1(Ur.AppId),s=L1(Ur.UserID),{data:d}=eR(),{data:f}=ize({idApp:l,lastDeployed:!0,userId:s}),m=f==null?void 0:f[0],p=d==null?void 0:d.find(w=>w.id===l);N.useEffect(()=>{if(f!=null&&f.length){const w=f[0],L=!w.readRelease&&!!w.isDeployed;t(L)}},[f]);const g=()=>{const w=f==null?void 0:f[0];n&&(w!=null&&w.isDeployed)&&oze(w==null?void 0:w.idRelease,s),t(!1)},h=()=>{var w;return(w=c.current)==null?void 0:w.next()},v=()=>{var w;return(w=c.current)==null?void 0:w.prev()},C=w=>o(w),b=a===0,y=a===(((A=m==null?void 0:m.gaReleasePages)==null?void 0:A.length)??0)-1,x=w=>r(w.target.checked),S=be.jsxs(Tr,{justify:"space-between",align:"center",children:[be.jsx(_2,{checked:n,onChange:x,children:i("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),be.jsxs(Tr,{gap:8,children:[!b&&be.jsx(dn,{onClick:v,children:i("GENERAL.ACTIONS.PREV")}),!y&&be.jsx(dn,{type:"primary",onClick:h,children:i("GENERAL.ACTIONS.NEXT")}),y&&be.jsx(dn,{type:"primary",onClick:g,children:i("GENERAL.ACTIONS.CLOSE")})]})]});return be.jsx(Sr,{open:e,title:i("RELEASE-NOTES.WHATS_NEWS",{app:p==null?void 0:p.appName,version:m==null?void 0:m.version}),onCancel:g,width:"70%",footer:S,children:be.jsx(Z8,{infinite:!1,ref:c,afterChange:C,children:(E=m==null?void 0:m.gaReleasePages)==null?void 0:E.map(({idFile:w,gaReleasePagesContent:L},z)=>be.jsx("div",{children:be.jsxs(yr,{gutter:[16,16],style:{marginBottom:35},children:[be.jsx(En,{span:w?12:24,children:be.jsx(Tr,{gap:16,vertical:!0,children:L.map(({title:I,description:P},D)=>be.jsxs(Tr,{vertical:!0,children:[be.jsx(dze,{level:5,children:I}),be.jsx(fze,{style:{opacity:.5},children:P})]},`${z}-${D}`))})}),!!w&&be.jsx(En,{span:12,children:be.jsx(Tr,{justify:"center",children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(W0,{src:wd(w),style:{maxHeight:600,borderRadius:8}})})})})]})},z))})})},nR=new S7({defaultOptions:{queries:{retry:2}}}),pze=({showAddBtn:e,...t})=>e?be.jsx(Ld,{children:be.jsx(L3,{client:nR,children:be.jsx(uze,{...t})})}):be.jsx(Ld,{children:be.jsx(L3,{client:nR,children:be.jsx(mze,{})})}),gze=C3()(pze);var ur=(e=>(e.FirstName="firstName",e.LastName="lastName",e.Username="username",e.Email="email",e.ProfilePicture="profilePicture",e.Password="password",e.ConfirmPassword="confirmPassword",e.Apps="userRolesApp",e.AppId="idApp",e.RoleId="roleId",e.Tenants="tenantId",e.Active="isActive",e.Private="isPrivate",e.User="userId",e.Hierarchy="hierarchy",e))(ur||{}),Zs=(e=>(e.Tab1="PROFILE",e.Tab2="MANAGEMENT",e))(Zs||{}),rR=(e=>(e[e.GA_USER_EMPTY=0]="GA_USER_EMPTY",e[e.GA_EMAIL_EMPTY=1]="GA_EMAIL_EMPTY",e[e.GA_USER_ID_EMPTY=2]="GA_USER_ID_EMPTY",e[e.GA_PASS_EMPTY=3]="GA_PASS_EMPTY",e[e.GA_PASS_NOT_MATCH=4]="GA_PASS_NOT_MATCH",e[e.GA_USERNAME_EXISTS=5]="GA_USERNAME_EXISTS",e[e.GA_EMAIL_EXISTS=6]="GA_EMAIL_EXISTS",e[e.GA_NO_ROLES_APP_DEFINED=7]="GA_NO_ROLES_APP_DEFINED",e[e.GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP=8]="GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP",e[e.GA_CANNOT_GET_USER_INFO=9]="GA_CANNOT_GET_USER_INFO",e[e.GA_ERROR_CHAGING_PASS=10]="GA_ERROR_CHAGING_PASS",e[e.GA_NO_TENANTS_ROLES_DEFINDED=11]="GA_NO_TENANTS_ROLES_DEFINDED",e[e.GA_PASS_DOES_NOT_MEET_REQUIREMENTS=12]="GA_PASS_DOES_NOT_MEET_REQUIREMENTS",e))(rR||{});const jt=e=>typeof e=="string",yc=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},aR=e=>e==null?"":""+e,vze=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},hze=/###/g,oR=e=>e&&e.indexOf("###")>-1?e.replace(hze,"."):e,iR=e=>!e||jt(e),Sc=(e,t,n)=>{const r=jt(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(iR(e))return{};const o=oR(r[a]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return iR(e)?{}:{obj:e,k:oR(r[a])}},cR=(e,t,n)=>{const{obj:r,k:a}=Sc(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),c=Sc(e,i,Object);for(;c.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),c=Sc(e,i,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},bze=(e,t,n,r)=>{const{obj:a,k:o}=Sc(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Js=(e,t)=>{const{obj:n,k:r}=Sc(e,t);if(n)return n[r]},Cze=(e,t,n)=>{const r=Js(e,n);return r!==void 0?r:Js(t,n)},lR=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?jt(e[r])||e[r]instanceof String||jt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):lR(e[r],t[r],n):e[r]=t[r]);return e},zo=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yze={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Sze=e=>jt(e)?e.replace(/[&<>"'\/]/g,t=>yze[t]):e;class xze{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Aze=[" ",",","?","!",";"],Eze=new xze(20),wze=(e,t,n)=>{t=t||"",n=n||"";const r=Aze.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=Eze.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},zf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o<r.length;){if(!a||typeof a!="object")return;let i,c="";for(let l=o;l<r.length;++l)if(l!==o&&(c+=n),c+=r[l],i=a[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;o+=l-o+1;break}a=i}return a},_s=e=>e==null?void 0:e.replace("_","-"),Lze={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class e3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Lze,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(jt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new e3(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e3(this.logger,t)}}var B2=new e3;class t3{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c.apply(c,[t,...r])})}}class sR extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var s,d;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):jt(r)&&o?c.push(...r.split(o)):c.push(r)));const l=Js(this.data,c);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),l||!i||!jt(r)?l:zf((d=(s=this.data)==null?void 0:s[t])==null?void 0:d[n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),cR(this.data,c,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(jt(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let l=Js(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?lR(l,r,o):l={...l,...r},cR(this.data,c,l),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var uR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{var i;t=((i=this.processors[o])==null?void 0:i.process(t,n,r,a))??t}),t}};const dR={};class n3 extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),vze(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=B2.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!wze(t,r,a);if(i&&!c){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:jt(o)?[o]:o};const s=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(a)}return{key:t,namespaces:jt(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),l=c[c.length-1],s=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((s==null?void 0:s.toLowerCase())==="cimode"){if(d){const x=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${x}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${x}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let m=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||i,g=(f==null?void 0:f.exactUsedKey)||i,h=Object.prototype.toString.apply(m),v=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!jt(m)&&typeof m!="boolean"&&typeof m!="number";if(b&&m&&y&&v.indexOf(h)<0&&!(jt(C)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,m,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=x,f.usedParams=this.getUsedParamsDetails(n),f):x}if(o){const x=Array.isArray(m),S=x?[]:{},A=x?g:p;for(const E in m)if(Object.prototype.hasOwnProperty.call(m,E)){const w=`${A}${o}${E}`;S[E]=this.translate(w,{...n,joinArrays:!1,ns:c}),S[E]===w&&(S[E]=m[E])}m=S}}else if(b&&jt(C)&&Array.isArray(m))m=m.join(C),m&&(m=this.extendTranslation(m,t,n,r));else{let x=!1,S=!1;const A=n.count!==void 0&&!jt(n.count),E=n3.hasDefaultValue(n),w=A?this.pluralResolver.getSuffix(s,n.count,n):"",L=n.ordinal&&A?this.pluralResolver.getSuffix(s,n.count,{ordinal:!1}):"",z=A&&!n.ordinal&&n.count===0,I=z&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${w}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(m)&&E&&(x=!0,m=I),this.isValidLookup(m)||(S=!0,m=i);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,O=E&&I!==m&&this.options.updateMissing;if(S||x||O){if(this.logger.log(O?"updateKey":"missingKey",s,l,i,O?I:m),o){const k=this.resolve(i,{...n,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let R=[];const T=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&T&&T[0])for(let k=0;k<T.length;k++)R.push(T[k]);else this.options.saveMissingTo==="all"?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);const M=(k,F,B)=>{var V;const j=E&&B!==m?B:D;this.options.missingKeyHandler?this.options.missingKeyHandler(k,l,F,j,O,n):(V=this.backendConnector)!=null&&V.saveMissing&&this.backendConnector.saveMissing(k,l,F,j,O,n),this.emit("missingKey",k,l,F,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?R.forEach(k=>{const F=this.pluralResolver.getSuffixes(k,n);z&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(B=>{M([k],i+B,n[`defaultValue${B}`]||I)})}):M(R,i,I))}m=this.extendTranslation(m,t,n,f,r),S&&m===i&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${i}`),(S||x)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,x?m:void 0))}return a?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(t,n,r,a,o){var s,d;var i=this;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=jt(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const g=t.match(this.interpolator.nestingRegexp);m=g&&g.length}let p=r.replace&&!jt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||a.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),h=g&&g.length;m<h&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,h=new Array(g),v=0;v<g;v++)h[v]=arguments[v];return(o==null?void 0:o[0])===h[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):i.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,l=jt(c)?[c]:c;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=uR.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,c;return jt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const s=this.extractFromKey(l,n),d=s.key;a=d;let f=s.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!jt(n.count),p=m&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(jt(n.context)||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var C,b;this.isValidLookup(r)||(c=v,!dR[`${h[0]}-${v}`]&&((C=this.utils)!=null&&C.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(c))&&(dR[`${h[0]}-${v}`]=!0,this.logger.warn(`key "${a}" for languages "${h.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(y=>{var A;if(this.isValidLookup(r))return;i=y;const x=[d];if((A=this.i18nFormat)!=null&&A.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,y,v,n);else{let E;m&&(E=this.pluralResolver.getSuffix(y,n.count,n));const w=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(x.push(d+E),n.ordinal&&E.indexOf(L)===0&&x.push(d+E.replace(L,this.options.pluralSeparator)),p&&x.push(d+w)),g){const z=`${d}${this.options.contextSeparator}${n.context}`;x.push(z),m&&(x.push(z+E),n.ordinal&&E.indexOf(L)===0&&x.push(z+E.replace(L,this.options.pluralSeparator)),p&&x.push(z+w))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(y,v,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){var o;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!jt(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class fR{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=B2.create("languageUtils")}getScriptPartFromCode(t){if(t=_s(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=_s(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(jt(t)&&t.indexOf("-")>-1){let n=Intl.getCanonicalLocales(t)[0];return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),jt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return jt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):jt(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}const mR={zero:0,one:1,two:2,few:3,many:4,other:5},pR={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Mze{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=B2.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=_s(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),pR;if(!t.match(/-|_/))return pR;const l=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(l,n)}return this.pluralRulesCache[o]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,o)=>mR[a]-mR[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const gR=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Cze(e,t,n);return!o&&a&&jt(n)&&(o=zf(e,n,r),o===void 0&&(o=zf(t,n,r))),o},Nf=e=>e.replace(/\$/g,"$$$$");class zze{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=B2.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:c,suffixEscaped:l,formatSeparator:s,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:h,nestingOptionsSeparator:v,maxReplaces:C,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:Sze,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?zo(o):i||"{{",this.suffix=c?zo(c):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?zo(m):p||zo("$t("),this.nestingSuffix=g?zo(g):h||zo(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=C||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var p;let o,i,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=g=>{if(g.indexOf(this.formatSeparator)<0){const b=gR(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...a,...n,interpolationkey:g}):b}const h=g.split(this.formatSeparator),v=h.shift().trim(),C=h.join(this.formatSeparator).trim();return this.format(gR(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...a,...n,interpolationkey:v})};this.resetRegExp();const d=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>Nf(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?Nf(this.escape(g)):Nf(g)}].forEach(g=>{for(c=0;o=g.regex.exec(t);){const h=o[1].trim();if(i=s(h),i===void 0)if(typeof d=="function"){const C=d(t,o,a);i=jt(C)?C:""}else if(a&&Object.prototype.hasOwnProperty.call(a,h))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),i="";else!jt(i)&&!this.useRawValueToEscape&&(i=aR(i));const v=g.safeValue(i);if(t=t.replace(o[0],v),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const c=(l,s)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,i);const p=m.match(/'/g),g=m.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!g||g.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),s&&(i={...s,...i})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&!jt(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let s=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),l=d,s=!0}if(o=n(c.call(this,a[1].trim(),i),i),o&&a[0]===t&&!jt(o))return o;jt(o)||(o=aR(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),s&&(o=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const Nze=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[c,...l]=i.split(":"),s=l.join(":").trim().replace(/^'+|'+$/g,""),d=c.trim();n[d]||(n[d]=s),s==="false"&&(n[d]=!1),s==="true"&&(n[d]=!0),isNaN(s)||(n[d]=parseInt(s,10))}})}return{formatName:t,formatOptions:n}},No=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let c=t[i];return c||(c=e(_s(r),a),t[i]=c),c(n)}};class Oze{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=B2.create("formatter"),this.options=t,this.formats={number:No((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:No((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:No((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:No((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:No((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=No(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){const c=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,l)=>{var f;const{formatName:s,formatOptions:d}=Nze(l);if(this.formats[s]){let m=c;try{const p=((f=a==null?void 0:a.formatParams)==null?void 0:f[a.interpolationkey])||{},g=p.locale||p.lng||a.locale||a.lng||r;m=this.formats[s](c,g,{...d,...a,...p})}catch(p){this.logger.warn(p)}return m}else this.logger.warn(`there was no format function for ${s}`);return c},t)}}const Ize=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Pze extends t3{constructor(t,n,r){var o,i;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=B2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(i=(o=this.backend)==null?void 0:o.init)==null||i.call(o,r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},c={},l={};return t.forEach(s=>{let d=!0;n.forEach(f=>{const m=`${s}|${f}`;!r.reload&&this.store.hasResourceBundle(s,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),o[m]===void 0&&(o[m]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(c[s]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(l=>{bze(l.loaded,[o],i),Ize(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(s=>{c[s]||(c[s]={});const d=l.loaded[s];d.length&&d.forEach(f=>{c[s][f]===void 0&&(c[s][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const c=(s,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(s&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(s,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const s=l(t,n);s&&typeof s.then=="function"?s.then(d=>c(null,d)).catch(c):c(null,s)}catch(s){c(s)}return}return l(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();jt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),jt(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,a,o){var l,s,d,f,m;let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((s=(l=this.services)==null?void 0:l.utils)!=null&&s.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((m=this.backend)!=null&&m.create){const p={...i,isUpdate:o},g=this.backend.create.bind(this.backend);if(g.length<6)try{let h;g.length===5?h=g(t,n,r,a,p):h=g(t,n,r,a),h&&typeof h.then=="function"?h.then(v=>c(null,v)).catch(c):c(null,h)}catch(h){c(h)}else g(t,n,r,a,c,p)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const vR=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),jt(e[1])&&(t.defaultValue=e[1]),jt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),hR=e=>{var t,n;return jt(e.ns)&&(e.ns=[e.ns]),jt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),jt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},r3=()=>{},Rze=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class xc extends t3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=hR(t),this.services={},this.logger=B2,this.modules={external:[]},Rze(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(jt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=vR();this.options={...a,...this.options,...hR(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?B2.init(o(this.modules.logger),this.options):B2.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Oze;const f=new fR(this.options);this.store=new sR(this.options.resources,this.options);const m=this.services;m.logger=B2,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new Mze(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(m.formatter=o(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new zze(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Pze(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(p){for(var g=arguments.length,h=new Array(g>1?g-1:0),v=1;v<g;v++)h[v-1]=arguments[v];t.emit(p,...h)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new n3(this.services,this.options),this.translator.on("*",function(p){for(var g=arguments.length,h=new Array(g>1?g-1:0),v=1;v<g;v++)h[v-1]=arguments[v];t.emit(p,...h)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=r3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=yc(),s=()=>{const d=(f,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),r(f,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),l}loadResources(t){var o,i;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const a=jt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],l=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(f=>{f!=="cimode"&&c.indexOf(f)<0&&c.push(f)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(i=(o=this.options.preload)==null?void 0:o.forEach)==null||i.call(o,s=>l(s)),this.services.backendConnector.load(c,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=yc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=r3),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=yc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},c=l=>{var d,f;!t&&!l&&this.services.languageDetector&&(l=[]);const s=jt(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);s&&(this.language||o(s),this.translator.language||this.translator.changeLanguage(s),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,s)),this.loadResources(s,m=>{i(m,s)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),a}getFixedT(t,n,r){var a=this;const o=function(i,c){let l;if(typeof c!="object"){for(var s=arguments.length,d=new Array(s>2?s-2:0),f=2;f<s;f++)d[f-2]=arguments[f];l=a.options.overloadTranslationOptionHandler([i,c].concat(d))}else l={...c};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const m=a.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(i)?p=i.map(g=>`${l.keyPrefix}${m}${g}`):p=l.keyPrefix?`${l.keyPrefix}${m}${i}`:i,a.t(p,l)};return jt(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.translate(...n)}exists(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,l)=>{const s=this.services.backendConnector.state[`${c}|${l}`];return s===-1||s===0||s===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=yc();return this.options.ns?(jt(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=yc();jt(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){var a,o;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((o=this.services)==null?void 0:o.languageUtils)||new fR(vR());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new xc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new xc(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new sR(this.store.data,a),o.services.resourceStore=o.store),o.translator=new n3(o.services,a),o.translator.on("*",function(c){for(var l=arguments.length,s=new Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];o.emit(c,...s)}),o.init(a,n),o.translator.options=a,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const rr=xc.createInstance();rr.createInstance=xc.createInstance,rr.createInstance,rr.dir,rr.init,rr.loadResources,rr.reloadResources,rr.use,rr.changeLanguage,rr.getFixedT;const bR=rr.t;rr.exists,rr.setDefaultNamespace,rr.hasLoadedNamespace,rr.loadNamespaces,rr.loadLanguages;const Tze=async(e,t)=>{const n="GENERAL.MESSAGES";return e.then(()=>{Yi.success(bR(`${n}.SUCCESS.USERS`,{context:"UPDATE"})),t&&t()}).catch(({response:r})=>{const a=rR[r==null?void 0:r.data.code];Xi.error({message:bR(`${n}.ERROR.USERS.${a}`),duration:10})})},Dze=window.globalAuthUrl,kze=async e=>await a1.post(`${Dze}/maintainUser`,e),$r="USERS",Bze=()=>{const{t:e}=k2(),{requiredField:t}=Hs();return be.jsxs(yr,{gutter:8,children:[be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.FirstName,label:e(`${$r}.FIRST_NAME`),placeholder:e(`${$r}.FIRST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.LastName,label:e(`${$r}.LAST_NAME`),placeholder:e(`${$r}.LAST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.Username,label:e(`${$r}.USERNAME`),placeholder:e(`${$r}.USERNAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.Email,label:e(`${$r}.EMAIL`),placeholder:e(`${$r}.EMAIL`,{context:"PLACEHOLDER"}),allowClear:!0,rules:[()=>({validator(n,r){return!(r!=null&&r.match(tD))||r!=null&&r.match(nD)||r!=null&&r.match(rD)?Promise.reject(new Error(e("GENERAL.FORM.ERRORS.EMAIL"))):Promise.resolve()}})]})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.Password,label:e(`${$r}.PASSWORD`),placeholder:e(`${$r}.PASSWORD`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,tooltip:be.jsx(dP,{i18nKey:e(`${$r}.PASSWORD_HINT`),components:{b:be.jsx("b",{}),ul:be.jsx("ul",{}),li:be.jsx("li",{})}})})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.ConfirmPassword,label:e(`${$r}.PASSWORD-CONFIRM`),placeholder:e(`${$r}.PASSWORD-CONFIRM`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,rules:[({getFieldValue:n})=>({validator(r,a){return!a||n(ur.Password)===a?Promise.resolve():Promise.reject(new Error(e("GENERAL.FORM.ERRORS.CONFIRM_PASSWORD")))}})]})})]})},a3="USERS",Fze=({user:e,isLoading:t,isOpen:n,onCancel:r})=>{const[a]=en.useForm(),{t:o}=k2(),i=en.useWatch(ur.ProfilePicture,a);N.useEffect(()=>(e&&n&&a.setFieldsValue({...e,[ur.ProfilePicture]:wd(e.profilePicture)}),()=>{a.resetFields()}),[e,n]);const c=m=>{const p={...e,...m,[ur.ProfilePicture]:Ux(m==null?void 0:m[ur.ProfilePicture])};Tze(kze(p),r)},l=m=>{m.stopPropagation(),a.setFieldValue(ur.ProfilePicture,void 0)},s=m=>(Kx(m,p=>{a.setFieldValue(ur.ProfilePicture,p)}),!1),d=be.jsxs("div",{children:[be.jsx(A0,{}),be.jsx("div",{style:{marginTop:8},children:o("UPLOAD")})]}),f=[{label:be.jsxs("span",{children:[be.jsx(b2,{icon:Dw,style:{marginRight:5}}),o(`${a3}.${Zs.Tab1}`)]}),key:Zs.Tab1,children:be.jsx(Bze,{}),forceRender:!0}];return be.jsx(tA,{children:be.jsx(Sr,{title:o(`${a3}.EDIT`,{context:"USER"}),onOk:()=>a.submit(),onCancel:r,open:n,destroyOnClose:!0,maskClosable:!1,okText:o(`${a3}.SUBMIT`),cancelText:o(`${a3}.CANCEL`),style:{maxWidth:900},okButtonProps:{loading:t},children:be.jsxs(en,{name:"user-management",form:a,onFinish:c,layout:"vertical",children:[be.jsxs(yr,{children:[be.jsx(C2,{fieldName:ur.User,hidden:!0}),be.jsx(En,{span:24,children:be.jsx(yr,{justify:"center",children:be.jsx(en.Item,{name:ur.ProfilePicture,children:be.jsx(Ad,{listType:"picture-circle",className:"avatar-uploader",beforeUpload:s,maxCount:1,showUploadList:!1,accept:"image/png, image/jpeg",children:i?be.jsxs(yr,{className:"float-btn-container",children:[be.jsx(th,{src:i,size:"small",alt:"userProfile",style:{height:"100%",width:"100%"}}),be.jsx(cr,{title:o("Remove"),placement:"bottom",children:be.jsx(dn,{shape:"circle",size:"small",icon:be.jsx(Pu,{}),className:"float-btn",onClick:l})})]}):d})})})})]}),be.jsx(Fi,{defaultActiveKey:Zs.Tab1,type:"card",size:"small",items:f})]})})})},jze=C3()(Fze),{slice:Hze,forEach:Vze}=[];function Wze(e){return Vze.call(Hze.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const CR=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,$ze=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!CR.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!CR.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},yR={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=$ze(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e){this.create(e,"",-1)}};var Kze={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return yR.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:o}=t;n&&typeof document<"u"&&yR.create(n,e,r,a,o)}},Uze={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let c=0;c<i.length;c++){const l=i[c].indexOf("=");l>0&&i[c].substring(0,l)===t&&(n=i[c].substring(l+1))}}return n}};let Ac=null;const SR=()=>{if(Ac!==null)return Ac;try{Ac=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ac=!1}return Ac};var Gze={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&SR())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&SR()&&window.localStorage.setItem(n,e)}};let Ec=null;const xR=()=>{if(Ec!==null)return Ec;try{Ec=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ec=!1}return Ec};var qze={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&xR())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&xR()&&window.sessionStorage.setItem(n,e)}},Yze={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},Qze={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Xze={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},Zze={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function Jze(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class AR{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Wze(n,this.options||{},Jze()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Kze),this.addDetector(Uze),this.addDetector(Gze),this.addDetector(qze),this.addDetector(Yze),this.addDetector(Qze),this.addDetector(Xze),this.addDetector(Zze)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}AR.type="languageDetector";const _ze={translation:{GENERAL:{ACTIONS:{CLOSE:"Fechar",DELETE:"Remover",EDIT:"Editar",NEXT:"Seguinte",PREV:"Anterior"},APP:"App",BACK:"Voltar",BACK_LOGIN:"Voltar ao login",DO_NOT_USE_IMAGE:"Não usar imagem",FORM:{ERRORS:{CONFIRM_PASSWORD:"As senhas devem ser as mesmas!",EMAIL:"O email tem de ter este formato 'email@exemple.com'",FORMAT:"O formato deve ser do tipo 'X.X.X'",NOT_EMPTY:"Este campo é obrigatório",VERSION:"O número da versão deve terminar com um valor numérico"}},JPG_PNG_WARNING:"Apenas suporta ficheiros JPG ou PNG.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"O e-mail já existe",ITEM_CREATE:"Erro ao tentar adicionar {{item}}",ITEM_DELETE:"Erro ao tentar excluir {{item}}",ITEM_UPDATE:"Erro ao tentar atualizar {{item}}",RELEASE_NOTE:{0:"O número da versão já existe",1:"A data da publicação deve ser superior à anterior",2:"Pârametros do pedido inválidos"},UNAUTHORIZED:"Desculpe, você não está autorizado a acessar esta página.",USERNAME_EXISTS:"O nome de usuário já existe",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Erro! A senha não atende aos requisitos!",GA_PASS_NOT_MATCH:"Erro! A senha deve ser a mesma"}},SUCCESS:{ITEM_CREATE:"{{item}} adicionado com sucesso",ITEM_DELETE:"{{item}} excluído com sucesso",ITEM_UPDATE:"{{item}} atualizado com sucesso",USERS_UPDATE:"Usuário atualizado com sucesso!"},WARNING:{DELETE_CONFIRM:"Você está prestes a excluir este menu. Deseja continuar?"}},NEXT:"Seguinte",REMOVE:"Remover",ROLE:"Função",SAVE:"Salvar",TENANT:"Organização",THEMES:{DARK:"Modo escuro",LIGHT:"Modo claro",TOOLTIP:"Clique para mudar para {{theme}}"},UPLOAD:"Carregar",UPLOAD_LABEL:"Clique ou arraste o ficheiro para esta área para o carregar",USER:"Usuário"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"Deve conter apenas elementos do tipo formato de ficheiro válido",INVALID_VALUE:"Valor inválido"},FORM:{BUTTONS:{SEND:"Enviar"},FIELDS:{ATTACHMENTS:"Anexos",DESCRIPTION:"Descrição",DESCRIPTION_PLACEHOLDER:"Inserir descrição",EMAIL:"Email",EMAIL_PLACEHOLDER:"Inserir o email",NAME:"$t(Name)",NAME_PLACEHOLDER:"Inserir o nome",SUBJECT:"Descrição",SUBJECT_PLACEHOLDER:"Inserir descrição",TITLE:"Contacte-nos",UPLOAD_FILES:"<strong>Ficheiros para carregamento (max. 5)</strong><br/><small>Clicar para adicionar ou arrastar e largar ficheiros.</small>"},TITLE:"Bem-vindo ao suporte"},SUPPORT:"Suporte",TABLE:{CODE:"Mensagem",FIELD:"Campo"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Adicionar novo diapositivo",ADD_RELEASE_NOTE:"Adicionar Publicação",FORM:{ADD_NEW_FIELD:"Adicionar novo campo",FIELDS:{APP:"Aplicação",APP_PLACEHOLDER:"Selecionar uma aplicação…",DEPLOY_DATE:"Data da publicação",DESCRIPTION:"Adicionar descrição…",DO_NOT_SHOW_AGAIN:"Não mostrar mais até à próxima atualização",TITLE:"Adicionar título…",VERSION:"Versão",VERSION_PLACEHOLDER:"Introduza a versão",VERSION_TOOLTIP:"Versão da aplicação selecionada."}},REMOVE_CURRENT_SLIDE:"Remover diapositivo atual",TEXT_SINGULAR:"Publicação de nova funcionalidade",TITLE:"Publicações",UPD_RELEASE_NOTE:"Editar Publicação",WHATS_NEWS:"Bem-vindo(a) ao {{app}} v{{version}} - Veja as novidades!"},USERS:{CANCEL:"Cancelar",EDIT:"Editar",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Primeiro nome",FIRST_NAME_PLACEHOLDER:"Por favor, digite seu primeiro nome...",LAST_NAME:"Último nome",LAST_NAME_PLACEHOLDER:"Por favor, digite seu último nome...",PASSWORD:"Senha",PASSWORD_HINT:"Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Digite sua senha...","PASSWORD-CONFIRM":"Confirmar senha","PASSWORD-CONFIRM_PLACEHOLDER":"Confirme sua senha...",PROFILE:"Perfil",SUBMIT:"Salvar",USERNAME:"Nome de usuário",USERNAME_PLACEHOLDER:"Por favor, digite seu nome de usuário..."}}},eNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Close",DELETE:"Delete",EDIT:"Edit",NEXT:"Next",PREV:"Previous"},APP:"App",BACK:"Back",BACK_LOGIN:"Back to login",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"The passwords must be the same!",EMAIL:"The email have to be this format 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"This field is mandatory",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"Email already exists",ITEM_CREATE:"Error trying to add {{item}}",ITEM_DELETE:"Error trying to delete {{item}}",ITEM_UPDATE:"Error trying to update {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Sorry, you are not authorized to access this page.",USERNAME_EXISTS:"Username already exists",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Error! Password does not meet the requirements!",GA_PASS_NOT_MATCH:"Error! Password has to be the same!"}},SUCCESS:{ITEM_CREATE:"{{item}} added successfully",ITEM_DELETE:"{{item}} deleted successfully",ITEM_UPDATE:"{{item}} updated successfully",USERS_UPDATE:"User updated successfully!"},WARNING:{DELETE_CONFIRM:"You are about to delete this menu. Do you want proceed?"}},NEXT:"Next",REMOVE:"Remove",ROLE:"Role",SAVE:"Save",TENANT:"Organization",THEMES:{DARK:"Dark mode",LIGHT:"Light mode",TOOLTIP:"Click to switch to {{theme}}"},UPLOAD:"Upload",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"User"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Welcome to {{app}} v{{version}} - See what's new!"},USERS:{CANCEL:"Cancel",EDIT:"Edit",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"First name",FIRST_NAME_PLACEHOLDER:"Please insert the first name…",LAST_NAME:"Last name",LAST_NAME_PLACEHOLDER:"Please insert the last name...",PASSWORD:"Password",PASSWORD_HINT:"Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one lowercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Please insert the password...","PASSWORD-CONFIRM":"Confirm password","PASSWORD-CONFIRM_PLACEHOLDER":"Please confirm the password...",PROFILE:"Profile",SUBMIT:"Save",USERNAME:"Username",USERNAME_PLACEHOLDER:"Please insert the username..."},LANGUAGES:{EN:"English",ES:"Spanish",PT:"Portuguese",BR:"Brazilian",RO:"Romenian",JP:"Japanese"}}},tNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Cerrar",DELETE:"Borrar",EDIT:"Editar",NEXT:"Seguiente",PREV:"Anterior"},APP:"App",BACK:"Volver",BACK_LOGIN:"Volver al inicio de sesión",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"Las contraseñas deben ser las mismas!",EMAIL:"El email tiene que tener este formato 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"Este campo es obligatorio",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Menú",MESSAGES:{ERROR:{EMAIL_EXISTS:"El correo electrónico ya existe",ITEM_CREATE:"Error al intentar agregar {{item}}",ITEM_DELETE:"Error al intentar eliminar {{item}}",ITEM_UPDATE:"Error al intentar actualizar {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Lo sentimos, no está autorizado a acceder a esta página.",USERNAME_EXISTS:"El nombre de usuario ya existe",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"¡Error! ¡La contraseña no cumple con los requisitos!",GA_PASS_NOT_MATCH:"¡Error! ¡La contraseña debe ser la misma!"}},SUCCESS:{ITEM_CREATE:"{{item}} añadido con éxito",ITEM_DELETE:"{{item}} eliminado con éxito",ITEM_UPDATE:"{{item}} actualizado con éxito",USERS_UPDATE:"¡Usuario actualizado con éxito!"},WARNING:{DELETE_CONFIRM:"Está a punto de eliminar este menú. ¿Quieres continuar?"}},NEXT:"Seguiente",REMOVE:"Eliminar",ROLE:"Papel",SAVE:"Salvar",TENANT:"Organización",THEMES:{DARK:"Modo oscuro",LIGHT:"Modo claro",TOOLTIP:"Haz clic para cambiar a {{theme}}"},UPLOAD:"Subir",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"Usuario"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Bienvenido/a a {{app}} v{{version}} - ¡Mira las novedades!"},USERS:{CANCEL:"Anular",EDIT:"Editar",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Nombre",FIRST_NAME_PLACEHOLDER:"Por favor, ingrese su nombre…",LAST_NAME:"Apellido",LAST_NAME_PLACEHOLDER:"Por favor, ingrese el apellido…",PASSWORD:"Contraseña",PASSWORD_HINT:"Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Al menos un número entre 0 y 9</li><li>Al menos una letra mayúscula</li><li>Al menos una letra minúscula</li><li>Al menos un carácter especial: <b>!@#$%^&*</b> </li></ul>",PASSWORD_PLACEHOLDER:"Por favor, ingrese la contraseña...","PASSWORD-CONFIRM":"Confirmar contraseña","PASSWORD-CONFIRM_PLACEHOLDER":"Por favor, confirme la contraseña...",PROFILE:"Perfil",SUBMIT:"Salvar",USERNAME:"Nombre de usuario",USERNAME_PLACEHOLDER:"Por favor, ingrese el nombre de usuario..."}}},nNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Close",DELETE:"Delete",EDIT:"Edit",NEXT:"Next",PREV:"Previous"},APP:"App",BACK:"Back",BACK_LOGIN:"Back to login",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"The passwords must be the same!",EMAIL:"The email have to be this format 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"This field is mandatory",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"Email already exists",ITEM_CREATE:"Error trying to add {{item}}",ITEM_DELETE:"Error trying to delete {{item}}",ITEM_UPDATE:"Error trying to update {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Sorry, you are not authorized to access this page.",USERNAME_EXISTS:"Username already exists",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Error! Password does not meet the requirements!",GA_PASS_NOT_MATCH:"Error! Password has to be the same"}},SUCCESS:{ITEM_CREATE:"{{item}} added successfully",ITEM_DELETE:"{{item}} deleted successfully",ITEM_UPDATE:"{{item}} updated successfully",USERS_UPDATE:"User updated successfully!"},WARNING:{DELETE_CONFIRM:"You are about to delete this menu. Do you want proceed?"}},NEXT:"Next",REMOVE:"Remove",ROLE:"Role",SAVE:"Save",TENANT:"Organization",THEMES:{DARK:"Dark mode",LIGHT:"Light mode",TOOLTIP:"Click to switch to {{theme}}"},UPLOAD:"Upload",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"User"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Welcome to {{app}} v{{version}} - See what's new!"},USERS:{CANCEL:"Cancel",EDIT:"Edit",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"First name",FIRST_NAME_PLACEHOLDER:"Please insert the first name...",LAST_NAME:"Last name",LAST_NAME_PLACEHOLDER:"Please insert the last name...",PASSWORD:"Password",PASSWORD_HINT:"Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Please insert the password...","PASSWORD-CONFIRM":"Confirm password","PASSWORD-CONFIRM_PLACEHOLDER":"Please confirm the password...",PROFILE:"Profile",SUBMIT:"Save",USERNAME:"Username",USERNAME_PLACEHOLDER:"Please insert the username..."}}},rNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Fechar",DELETE:"Eliminar",EDIT:"Editar",NEXT:"Seguinte",PREV:"Anterior"},APP:"App",BACK:"Voltar",BACK_LOGIN:"Voltar ao login",DO_NOT_USE_IMAGE:"Não usar imagem",FORM:{ERRORS:{CONFIRM_PASSWORD:"As palavras-passe devem ser as mesmas!",EMAIL:"O email tem de ter este formato 'email@exemple.com'",FORMAT:"O formato deve ser do tipo 'X.X.X'",NOT_EMPTY:"Este campo é obrigatório",VERSION:"O número da versão deve terminar com um valor numérico"}},JPG_PNG_WARNING:"Apenas suporta ficheiros JPG ou PNG.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"O e-mail já existe",ITEM_CREATE:"Erro ao tentar adicionar {{item}}",ITEM_DELETE:"Erro ao tentar eliminar {{item}}",ITEM_UPDATE:"Erro ao tentar atualizar {{item}}",RELEASE_NOTE:{0:"O número da versão já existe",1:"A data da publicação deve ser superior à anterior",2:"Pârametros do pedido inválidos"},UNAUTHORIZED:"Desculpe, você não está autorizado a acessar esta página.",USERNAME_EXISTS:"O nome de utilizador já existe",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Erro! A palavra-passe não cumpre com os requisitos!",GA_PASS_NOT_MATCH:"Erro! A palavra-passe tem de ser a mesma"}},SUCCESS:{ITEM_CREATE:"{{item}} adicionado com sucesso",ITEM_DELETE:"{{item}} eliminado com êxito",ITEM_UPDATE:"{{item}} atualizado com sucesso",USERS_UPDATE:"Utilizador atualizado com sucesso!"},WARNING:{DELETE_CONFIRM:"Está prestes a eliminar este menu. Deseja prosseguir?"}},NEXT:"Seguinte",REMOVE:"Remover",ROLE:"Papel",SAVE:"Gravar",TENANT:"Organização",THEMES:{DARK:"Modo escuro",LIGHT:"Modo claro",TOOLTIP:"Clique para mudar para {{theme}}"},UPLOAD:"Carregar",UPLOAD_LABEL:"Clique ou arraste o ficheiro para esta área para o carregar",USER:"Utilizador"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"Deve conter apenas elementos do tipo formato de ficheiro válido",INVALID_VALUE:"Valor inválido"},FORM:{BUTTONS:{SEND:"Enviar"},FIELDS:{ATTACHMENTS:"Anexos",DESCRIPTION:"Descrição",DESCRIPTION_PLACEHOLDER:"Inserir descrição",EMAIL:"Email",EMAIL_PLACEHOLDER:"Inserir o email",NAME:"$t(Name)",NAME_PLACEHOLDER:"Inserir o nome",SUBJECT:"Descrição",SUBJECT_PLACEHOLDER:"Inserir descrição",TITLE:"Contacte-nos",UPLOAD_FILES:"<strong>Ficheiros para carregamento (max. 5)</strong><br/><small>Clicar para adicionar ou arrastar e largar ficheiros.</small>"},TITLE:"Bem-vindo ao suporte"},SUPPORT:"Suporte",TABLE:{CODE:"Mensagem",FIELD:"Campo"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Adicionar novo diapositivo",ADD_RELEASE_NOTE:"Adicionar Publicação",FORM:{ADD_NEW_FIELD:"Adicionar novo campo",FIELDS:{APP:"Aplicação",APP_PLACEHOLDER:"Selecionar uma aplicação…",DEPLOY_DATE:"Data da publicação",DESCRIPTION:"Adicionar descrição…",DO_NOT_SHOW_AGAIN:"Não mostrar mais até à próxima atualização",TITLE:"Adicionar título…",VERSION:"Versão",VERSION_PLACEHOLDER:"Introduza a versão",VERSION_TOOLTIP:"Versão da aplicação selecionada."}},REMOVE_CURRENT_SLIDE:"Remover diapositivo atual",TEXT_SINGULAR:"Publicação de nova funcionalidade",TITLE:"Publicações",UPD_RELEASE_NOTE:"Editar Publicação",WHATS_NEWS:"Bem-vindo(a) ao {{app}} v{{version}} - Veja as novidades!"},USERS:{CANCEL:"Cancelar",EDIT:"Editar",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Primeiro nome",FIRST_NAME_PLACEHOLDER:"Por favor, insira o seu primeiro nome...",LAST_NAME:"Apelido",LAST_NAME_PLACEHOLDER:"Por favor, insira o seu apelido...",PASSWORD:"Palavra-passe",PASSWORD_HINT:"Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Introduza a sua palavra-passe...","PASSWORD-CONFIRM":"Confirmar palavra-passe","PASSWORD-CONFIRM_PLACEHOLDER":"Confirme a sua palavra-passe...",PROFILE:"Perfil",SUBMIT:"Gravar",USERNAME:"Nome de utilizador",USERNAME_PLACEHOLDER:"Por favor, insira seu nome de utilizador..."}}},aNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Închide",DELETE:"Șterge",EDIT:"Editare",NEXT:"Următorul",PREV:"Anterioară"},APP:"App",BACK:"Să mă întorc",BACK_LOGIN:"Înapoi la autentificare",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"Parolele trebuie să fie aceleași!",EMAIL:"E-mailul trebuie să fie în acest format 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"Acest câmp este obligatoriu",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Meniu",MESSAGES:{ERROR:{EMAIL_EXISTS:"E-mailul există deja",ITEM_CREATE:"Eroare la încercarea de a adăuga {{item}}",ITEM_DELETE:"Eroare la încercarea de ștergere a {{item}}",ITEM_UPDATE:"Eroare la încercarea de actualizare a {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Ne pare rău, nu sunteți autorizat să accesați această pagină.",USERNAME_EXISTS:"Numele de utilizator există deja",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Eroare! Parola nu îndeplinește cerințele!",GA_PASS_NOT_MATCH:"Eroare! Parola trebuie să fie aceeași"}},SUCCESS:{ITEM_CREATE:"{{item}} adăugat cu succes",ITEM_DELETE:"{{item}} șters cu succes",ITEM_UPDATE:"{{item}} actualizat cu succes",USERS_UPDATE:"Utilizator actualizat cu succes!"},WARNING:{DELETE_CONFIRM:"Sunteți pe cale să ștergeți acest meniu. Doriți să continuați?"}},NEXT:"Următoare",REMOVE:"Depărta",ROLE:"Rol",SAVE:"Salva",TENANT:"Organizație",THEMES:{DARK:"Modul întunecat",LIGHT:"Mod clar",TOOLTIP:"Faceți clic pentru a trece la {{theme}}"},UPLOAD:"Încărca",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"Utilizator"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Bine ați venit la {{app}} v{{version}} - Vezi noutățile!?"},USERS:{CANCEL:"Anulare",EDIT:"Editare",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Prenume",FIRST_NAME_PLACEHOLDER:"Vă rugăm să introduceți prenumele...",LAST_NAME:"Nume de familie",LAST_NAME_PLACEHOLDER:"Vă rugăm să introduceți numele de familie...",PASSWORD:"Parolă",PASSWORD_HINT:"Cerințe: <ul><li>Minimum 7 caractere</li><li>Cel puțin o cifră între 0 și 9</li><li>Cel puțin o literă mare</li><li>Cel puțin o literă mică</li><li>Cel puțin un caracter special: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Vă rugăm să introduceți parola...","PASSWORD-CONFIRM":"Confirmare parolă","PASSWORD-CONFIRM_PLACEHOLDER":"Vă rugăm să confirmați parola...",PROFILE:"Profil",SUBMIT:"Salva",USERNAME:"Nume utilizator",USERNAME_PLACEHOLDER:"Vă rugăm să introduceți numele de utilizator..."}}};rr.use(AR).use(sLe).init({debug:!1,fallbackLng:"PT",interpolation:{escapeValue:!1},resources:{EN:eNe,ES:tNe,JP:nNe,PT:rNe,RO:aNe,BR:_ze}}),_n.Helpdesk=eze,_n.ReleaseNote=gze,_n.UserModal=jze,_n.i18n=rr,Object.defineProperty(_n,Symbol.toStringTag,{value:"Module"})});
|
|
1069
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&wf.assertOptions(r,{silentJSONParsing:P1.transitional(P1.boolean),forcedJSONParsing:P1.transitional(P1.boolean),clarifyTimeoutError:P1.transitional(P1.boolean)},!1),a!=null&&(Oe.isFunction(a)?n.paramsSerializer={serialize:a}:wf.assertOptions(a,{encode:P1.function,serialize:P1.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&Oe.merge(o.common,o[n.method]);o&&Oe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Ar.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});let d,f=0,m;if(!l){const g=[qP.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,s),m=g.length,d=Promise.resolve(n);f<m;)d=d.then(g[f++],g[f++]);return d}m=c.length;let p=n;for(f=0;f<m;){const g=c[f++],h=c[f++];try{p=g(p)}catch(v){h.call(this,v);break}}try{d=qP.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,m=s.length;f<m;)d=d.then(s[f++],s[f++]);return d}getUri(t){t=pa(this.defaults,t);const n=FP(t.baseURL,t.url);return NP(n,t.params,t.paramsSerializer)}}Oe.forEach(["delete","get","head","options"],function(t){ga.prototype[t]=function(n,r){return this.request(pa(r||{},{method:t,url:n,data:(r||{}).data}))}}),Oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(pa(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ga.prototype[t]=n(),ga.prototype[t+"Form"]=n(!0)});class Lf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Mo(o,i,c),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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lf(function(a){t=a}),cancel:t}}}function qMe(e){return function(n){return e.apply(null,n)}}function YMe(e){return Oe.isObject(e)&&e.isAxiosError===!0}const Mf={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(Mf).forEach(([e,t])=>{Mf[t]=e});function XP(e){const t=new ga(e),n=mP(ga.prototype.request,t);return Oe.extend(n,ga.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return XP(pa(e,a))},n}const Bn=XP(bc);Bn.Axios=ga,Bn.CanceledError=Mo,Bn.CancelToken=Lf,Bn.isCancel=TP,Bn.VERSION=YP,Bn.toFormData=Us,Bn.AxiosError=Wt,Bn.Cancel=Bn.CanceledError,Bn.all=function(t){return Promise.all(t)},Bn.spread=qMe,Bn.isAxiosError=YMe,Bn.mergeConfig=pa,Bn.AxiosHeaders=Ar,Bn.formToJSON=e=>PP(Oe.isHTMLForm(e)?new FormData(e):e),Bn.getAdapter=GP.getAdapter,Bn.HttpStatusCode=Mf,Bn.default=Bn;const a1=Bn.create({timeout:6e4});a1.interceptors.request.use(e=>{const t=L1(Ur.Token);return e.headers.IdApp=eae(),e.headers.Tenantid=_1e(),e.headers.Authorization="Bearer "+t,e},e=>Promise.reject(e));const ZP="https://aquasis.freshdesk.com/api/v2/",JP=btoa("UtA4JWhMo8w4eWzzgo9"),QMe=async({appName:e,...t})=>{var l;const n=+"23000031142",{data:r}=await a1.get(ZP+"ticket_fields",{headers:{Authorization:`Basic ${JP}`}}),a=r.find(s=>s.name==="cf_produto"),o=(l=a==null?void 0:a.choices)==null?void 0:l.find(s=>s.toLowerCase().includes(e.toLowerCase())),i={...t,status:2,priority:4,group_id:n,type:"Pedido de Suporte",custom_fields:{cf_produto:o},tags:["new-freshdesk-widget"],source:9},c=new FormData;return Object.keys(i).forEach(s=>{var d;s==="custom_fields"?Object.keys(i[s]).forEach(f=>{c.append(`custom_fields[${f}]`,i.custom_fields[f])}):s==="attachments"?(d=t.attachments)==null||d.forEach(f=>{c.append("attachments[]",new File([f],f.name))}):s==="tags"?c.append("tags[]",i[s]):c.append(s,i[s])}),a1.post(ZP+"tickets",c,{headers:{Authorization:`Basic ${JP}`,"Content-Type":"multipart/form-data"}})},XMe={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:_P}=ho,t2="HELPDESK.FORM",ZMe="GENERAL.MESSAGES",JMe=({onCancel:e})=>{const[t,n]=N.useState(!1),[r]=en.useForm(),{t:a}=k2(),{requiredField:o}=Hs(),i=L1(Ur.AppName),c=[{dataIndex:"field",title:a("HELPDESK.TABLE.FIELD"),render:d=>a(`HELPDESK.FORM.FIELDS.${d==null?void 0:d.toUpperCase()}`)},{dataIndex:"code",title:a("HELPDESK.TABLE.CODE"),render:d=>a(`HELPDESK.ERRORS_CODE.${d==null?void 0:d.toUpperCase()}`)}],l=d=>{r.setFieldValue(fa.Attachments,d.fileList)},s=d=>{n(!0);const f={...d,appName:i};QMe(f).then(()=>{Xi.success({message:a(`${ZMe}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:m})=>{const{errors:p}=m.data;Xi.error({className:"table-notification",message:a("ERROR"),placement:"topLeft",description:be.jsx(I2,{dataSource:p,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>n(!1))};return be.jsxs(yr,{className:"helpdesk__content",children:[be.jsx(En,{span:24,children:be.jsx(_P,{level:3,className:"helpdesk__title",children:a(`${t2}.TITLE`)})}),be.jsx(En,{span:24,children:be.jsxs(ta,{children:[be.jsx(_P,{level:4,children:a(`${t2}.FIELDS.TITLE`)}),be.jsxs(en,{form:r,layout:"vertical",onFinish:s,children:[be.jsx(C2,{fieldName:fa.Name,label:a(`${t2}.FIELDS.NAME`),placeholder:a(`${t2}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(C2,{fieldName:fa.Email,label:a(`${t2}.FIELDS.EMAIL`),placeholder:a(`${t2}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(C2,{fieldName:fa.Subject,label:a(`${t2}.FIELDS.SUBJECT`),placeholder:a(`${t2}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(wLe,{fieldName:fa.Description,label:a(`${t2}.FIELDS.DESCRIPTION`),placeholder:a(`${t2}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),be.jsx(en.Item,{name:fa.Attachments,children:be.jsxs(ls,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx(dP,{i18nKey:a(`${t2}.FIELDS.UPLOAD_FILES`),components:{strong:be.jsx("strong",{}),br:be.jsx("br",{}),small:be.jsx("small",{})}})]})}),be.jsx(dn,{htmlType:"submit",type:"primary",icon:be.jsx(b2,{icon:XMe}),loading:t,disabled:t,block:!0,children:a(`${t2}.BUTTONS.SEND`)})]})]})})]})};tie.add(Awe);const _Me=({size:e})=>{const[t,n]=N.useState(!1),{t:r}=k2(),a=()=>n(c=>!c),o=()=>n(!1),i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return be.jsx(tA,{children:be.jsx(yr,{align:"middle",children:be.jsx(Jl,{placement:"bottomRight",trigger:"click",content:be.jsx(JMe,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:t,destroyTooltipOnHide:!0,children:be.jsx(cr,{title:r("HELPDESK.SUPPORT"),placement:"left",children:be.jsx(dn,{type:"primary",shape:"circle",icon:be.jsx(b2,{icon:uL,size:i()}),onClick:a,size:e})})})})})},eze=C3()(_Me);var Vt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Vt||{}),Xs=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e.GetUser="GetUser",e.GetLanguages="GetLanguages",e))(Xs||{});const tze=async()=>{const e=window.globalAuthUrl,{data:t}=await a1.get(`${e}/getApps`);return t},nze=async()=>{const e=window.globalAuthUrl,{data:t}=await a1.get(`${e}/GetLanguages`);return t},rze=async e=>{const t=window.globalAuthUrl,{data:n}=await a1.post(`${t}/ListReleases`,e);return n},aze=async e=>{const t=window.globalAuthUrl,{data:n}=await a1.post(`${t}/MaintainReleases`,e);return n},oze=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await a1.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},eR=()=>M3([Xs.GetApps],async()=>await tze()),tR=()=>M3([Xs.GetLanguages],async()=>await nze()),ize=e=>{var c;const{i18n:t}=k2(),{data:n}=tR(),r=(c=n==null?void 0:n.find(l=>l.description===t.language))==null?void 0:c.idLanguage,{idApp:a,userId:o,lastDeployed:i}=e;return M3([Xs.GetReleases,a,o,i,r],async()=>await rze({...e,idLanguage:r}),{enabled:!!a&&r!==void 0})},cze=({index:e})=>{const{t}=k2(),{requiredField:n}=Hs();return be.jsx(en.List,{name:[e,Vt.Fields],children:(r,{remove:a})=>be.jsxs(be.Fragment,{children:[be.jsx(gc,{fieldName:"idReleasePage",hidden:!0}),be.jsx(Tr,{gap:16,vertical:!0,children:r.map(({key:o,name:i,...c})=>be.jsxs(Tr,{gap:6,align:"center",children:[be.jsxs(Tr,{vertical:!0,gap:2,style:{width:"100%"},children:[be.jsx(en.Item,{...c,name:[i,Vt.Title],rules:n,noStyle:!0,children:be.jsx(L2,{placeholder:t("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),be.jsx(en.Item,{...c,name:[i,Vt.Description],rules:n,noStyle:!0,children:be.jsx(fu,{autoSize:{minRows:2},placeholder:t("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),be.jsx(en.Item,{noStyle:!0,children:be.jsx(cr,{title:t("GENERAL.REMOVE"),children:be.jsx(dn,{type:"text",icon:be.jsx(hS,{}),onClick:()=>a(i),disabled:r.length===1})})})]},o))})]})})},lze=N.forwardRef(({idLanguage:e,changeSlide:t},n)=>{const[r,a]=N.useState([]),{t:o}=k2(),i=en.useFormInstance(),c=en.useWatch(Vt.ReleasePages,i);N.useEffect(()=>{i.setFieldValue("idLanguage",e)},[e]);const l=f=>({file:m,fileList:p})=>{const g=f[0],h=f[1],v=c[g];a(p),Kx(m.originFileObj,C=>{i.setFieldValue(Vt.ReleasePages,c.toSpliced(g,1,{...v,[h]:C}))})},s=f=>()=>{var v;const m=c==null?void 0:c[f],g=[...((v=c==null?void 0:c[f])==null?void 0:v[Vt.Fields])??[],{}],h=c.toSpliced(f,1,{...m,[Vt.Fields]:g});i.setFieldValue(Vt.ReleasePages,h)},d=be.jsx(yr,{justify:"center",align:"middle",children:be.jsxs(k0,{direction:"vertical",children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx("p",{className:"ant-upload-text",children:o("GENERAL.UPLOAD_LABEL")}),be.jsx("p",{className:"ant-upload-hint",children:o("GENERAL.JPG_PNG_WARNING")})]})});return be.jsx(en.List,{name:Vt.ReleasePages,children:f=>{const m=f.filter(({name:p})=>{var g;return((g=c==null?void 0:c[p])==null?void 0:g.idLanguage)===e});return m.length?be.jsxs(be.Fragment,{children:[be.jsx(gc,{fieldName:"idRelease",hidden:!0}),be.jsx(gc,{fieldName:"idReleasePage",hidden:!0}),be.jsx(gc,{fieldName:"idLanguage",hidden:!0}),be.jsx(Z8,{infinite:!1,ref:n,beforeChange:t,adaptiveHeight:!0,children:m.map(({key:p,name:g,...h})=>{var b,y;const v=(b=c==null?void 0:c[g])==null?void 0:b[Vt.Image],C=(y=c==null?void 0:c[g])==null?void 0:y[Vt.NoImage];return be.jsx("div",{children:be.jsxs(yr,{gutter:[8,16],style:{marginBottom:35},children:[be.jsx(En,{span:24,children:be.jsxs(yr,{gutter:8,children:[be.jsx(En,{span:C?24:12,children:be.jsx(cze,{index:g})}),!C&&be.jsx(En,{span:12,children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(en.Item,{...h,name:[g,Vt.Image],noStyle:!0,children:be.jsx(ls,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:r,beforeUpload:tae,onChange:l([g,Vt.Image]),children:v?be.jsx(W0,{src:v,preview:!1,style:{maxHeight:600}}):d})})})})]})}),be.jsx(En,{span:8,children:be.jsxs(Tr,{vertical:!0,children:[be.jsx(en.Item,{children:be.jsx(dn,{type:"dashed",onClick:s(g),icon:be.jsx(A0,{}),block:!0,children:o("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})}),be.jsx(ELe,{fieldName:[g,Vt.NoImage],label:o("GENERAL.DO_NOT_USE_IMAGE"),onChange:x=>{const S=x.target.checked,A=c.map((E,w)=>({...E,[Vt.NoImage]:w===g?S:E[Vt.NoImage],[Vt.Image]:w===g&&S?void 0:E[Vt.Image]}));i.setFieldValue(Vt.ReleasePages,A)}})]})})]})},p)})})]}):be.jsx(Tr,{justify:"center",align:"center",style:{minHeight:300},children:be.jsx(d2,{})})}})}),sze=N.forwardRef(({idLanguage:e,changeSlide:t},n)=>{const{getColor:r}=SLe();return be.jsx(ta,{styles:{body:{background:r("PrimaryColorBgContainer")}},children:be.jsx(lze,{ref:n,idLanguage:e,changeSlide:t})})}),o1="RELEASE-NOTES",uze=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:a,afterSubmit:o})=>{const[i,c]=N.useState(!1),[l,s]=N.useState(!1),[d,f]=N.useState(0),[m,p]=N.useState("EN"),[g]=en.useForm(),{t:h}=k2(),v=N.useRef(null),{requiredField:C}=Hs(),{data:b}=eR(),{data:y}=tR(),x=en.useWatch(Vt.ReleasePages,g),S=()=>{const j=y==null?void 0:y.find(({description:V})=>V==="EN");if(j&&m===j.description){const V=x==null?void 0:x.filter(H=>H.idLanguage===j.idLanguage);return(V==null?void 0:V.length)<=1}return!1},A=(j,V)=>f(V),E=()=>g.resetFields();N.useEffect(()=>(n&&(c(!0),g.setFieldsValue({...n,[Vt.ReleasePages]:n[Vt.ReleasePages].map(j=>({...j,[Vt.Image]:wd(j[Vt.Image])})),[Vt.DeployDate]:Zn(n[Vt.DeployDate])})),()=>{g.resetFields()}),[n]);const w=()=>{r?new Promise(j=>j(r())).then(()=>c(!0)):c(!0)},L=()=>{a?new Promise(j=>j(a())).then(()=>c(!1)):c(!1)},z=()=>{const j=y==null?void 0:y.find(V=>V.description===m);j&&g.setFieldValue(Vt.ReleasePages,[...x,{[Vt.Fields]:[{}],idLanguage:j.idLanguage}])},I=()=>{g.setFieldValue(Vt.ReleasePages,x.filter((j,V)=>V!==d))},P=j=>{const V={...j,[Vt.DeployDate]:Zn(j[Vt.DeployDate]).format(eD),[Vt.ReleasePages]:j[Vt.ReleasePages].map((H,K)=>({...H,[Vt.Image]:Ux(H[Vt.Image]),order:K,[Vt.Fields]:H[Vt.Fields].map((U,_)=>({...U,order:_}))}))};aze(V).then(()=>{E(),Yi.success(h("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:h(`${o1}.TEXT_SINGULAR`)})),o&&o()}).catch(H=>{var U;const K=((U=H.response)==null?void 0:U.data)??[];Xi.error({message:h("GENERAL.ERROR"),description:be.jsx(Nu,{dataSource:K,renderItem:_=>be.jsx(Nu.Item,{children:h(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${_.error}`)})})})}).finally(L)},D=d===0,O=d===(x==null?void 0:x.length)-1,R=(x==null?void 0:x.length)<=1||S(),T=be.jsxs(Tr,{justify:"flex-end",gap:8,children:[be.jsx(dn,{type:"dashed",icon:be.jsx(b2,{icon:bO}),onClick:()=>{var j;return(j=v.current)==null?void 0:j.prev()},disabled:D,children:h("GENERAL.BACK")}),be.jsx(dn,{type:"dashed",iconPosition:"end",icon:be.jsx(b2,{icon:CO}),onClick:()=>{var j;return(j=v.current)==null?void 0:j.next()},disabled:O,children:h("GENERAL.NEXT")}),be.jsx(dn,{type:"dashed",danger:!0,icon:be.jsx(b2,{icon:Cz}),onClick:I,disabled:R,children:h(`${o1}.REMOVE_CURRENT_SLIDE`)}),be.jsx(dn,{type:"dashed",icon:be.jsx(b2,{icon:QO}),onClick:z,children:h(`${o1}.ADD_NEW_SLIDE`)}),be.jsx(dn,{type:"primary",icon:be.jsx(b2,{icon:iz}),onClick:()=>g.submit(),children:h("GENERAL.SAVE")})]}),M=j=>{s(t?j:!1)},k=nae(b??[],"appName","id"),F=(y==null?void 0:y.map(({idLanguage:j,description:V})=>({label:be.jsxs(Tr,{align:"center",justify:"center",gap:5,children:[be.jsx("img",{src:ZT[V],alt:`${V} flag`,width:20,style:{borderRadius:"50%"}}),h(`LANGUAGES.${V}`)]}),key:V,children:be.jsx(sze,{idLanguage:j,changeSlide:A})})))??[],B={[Vt.ReleasePages]:[{[Vt.Fields]:[{}],idLanguage:1}],[Vt.DeployDate]:Zn()};return be.jsxs(be.Fragment,{children:[be.jsx(cr,{title:t,open:l,onOpenChange:M,children:be.jsx(dn,{type:"primary",icon:be.jsx(b2,{icon:mM}),shape:e?"default":"circle",onClick:w,children:e})}),be.jsx(Sr,{open:i,title:h(`${o1}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),onCancel:L,width:"60%",footer:T,destroyOnClose:!0,children:be.jsxs(en,{form:g,layout:"vertical",initialValues:B,onFinish:P,children:[be.jsx(gc,{fieldName:"idRelease",hidden:!0}),be.jsxs(yr,{gutter:10,children:[be.jsx(En,{span:8,children:be.jsx(xLe,{fieldName:Vt.App,label:h(`${o1}.FORM.FIELDS.APP`),placeholder:h(`${o1}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:k,rules:C})}),be.jsx(En,{span:8,children:be.jsx(C2,{fieldName:Vt.Version,label:h(`${o1}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:h(`${o1}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:j=>j.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...C,()=>({validator(j,V){var U,_;const H=/[^0-9]$/,K=(_=(U=V==null?void 0:V.split("."))==null?void 0:U.filter(Boolean))==null?void 0:_.length;return H.test(V)?Promise.reject(new Error(h("GENERAL.FORM.ERRORS.VERSION"))):K>3||K<3?Promise.reject(new Error(h("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),be.jsx(En,{span:8,children:be.jsx(ALe,{fieldName:Vt.DeployDate,label:h(`${o1}.FORM.FIELDS.DEPLOY_DATE`),format:_T,rules:C})}),be.jsx(En,{span:24,children:be.jsx(Fi,{activeKey:m,type:"card",size:"small",items:F,onChange:j=>p(j)})})]})]})})]})},{Title:dze,Text:fze}=ho,mze=()=>{var A,E;const[e,t]=N.useState(!1),[n,r]=N.useState(!1),[a,o]=N.useState(0),{t:i}=k2(),c=N.useRef(null),l=L1(Ur.AppId),s=L1(Ur.UserID),{data:d}=eR(),{data:f}=ize({idApp:l,lastDeployed:!0,userId:s}),m=f==null?void 0:f[0],p=d==null?void 0:d.find(w=>w.id===l);N.useEffect(()=>{if(f!=null&&f.length&&f[0].gaReleasePages.length){const w=f[0],L=!w.readRelease&&!!w.isDeployed;t(L)}},[f]);const g=()=>{const w=f==null?void 0:f[0];n&&(w!=null&&w.isDeployed)&&oze(w==null?void 0:w.idRelease,s),t(!1)},h=()=>{var w;return(w=c.current)==null?void 0:w.next()},v=()=>{var w;return(w=c.current)==null?void 0:w.prev()},C=w=>o(w),b=a===0,y=a===(((A=m==null?void 0:m.gaReleasePages)==null?void 0:A.length)??0)-1,x=w=>r(w.target.checked),S=be.jsxs(Tr,{justify:"space-between",align:"center",children:[be.jsx(_2,{checked:n,onChange:x,children:i("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),be.jsxs(Tr,{gap:8,children:[!b&&be.jsx(dn,{onClick:v,children:i("GENERAL.ACTIONS.PREV")}),!y&&be.jsx(dn,{type:"primary",onClick:h,children:i("GENERAL.ACTIONS.NEXT")}),y&&be.jsx(dn,{type:"primary",onClick:g,children:i("GENERAL.ACTIONS.CLOSE")})]})]});return be.jsx(Sr,{open:e,title:i("RELEASE-NOTES.WHATS_NEWS",{app:p==null?void 0:p.appName,version:m==null?void 0:m.version}),onCancel:g,width:"70%",footer:S,children:be.jsx(Z8,{infinite:!1,ref:c,afterChange:C,children:(E=m==null?void 0:m.gaReleasePages)==null?void 0:E.map(({idFile:w,gaReleasePagesContent:L},z)=>be.jsx("div",{children:be.jsxs(yr,{gutter:[16,16],style:{marginBottom:35},children:[be.jsx(En,{span:w?12:24,children:be.jsx(Tr,{gap:16,vertical:!0,children:L.map(({title:I,description:P},D)=>be.jsxs(Tr,{vertical:!0,children:[be.jsx(dze,{level:5,children:I}),be.jsx(fze,{style:{opacity:.5},children:P})]},`${z}-${D}`))})}),!!w&&be.jsx(En,{span:12,children:be.jsx(Tr,{justify:"center",children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(W0,{src:wd(w),style:{maxHeight:600,borderRadius:8}})})})})]})},z))})})},nR=new S7({defaultOptions:{queries:{retry:2}}}),pze=({showAddBtn:e,...t})=>e?be.jsx(Ld,{children:be.jsx(L3,{client:nR,children:be.jsx(uze,{...t})})}):be.jsx(Ld,{children:be.jsx(L3,{client:nR,children:be.jsx(mze,{})})}),gze=C3()(pze);var ur=(e=>(e.FirstName="firstName",e.LastName="lastName",e.Username="username",e.Email="email",e.ProfilePicture="profilePicture",e.Password="password",e.ConfirmPassword="confirmPassword",e.Apps="userRolesApp",e.AppId="idApp",e.RoleId="roleId",e.Tenants="tenantId",e.Active="isActive",e.Private="isPrivate",e.User="userId",e.Hierarchy="hierarchy",e))(ur||{}),Zs=(e=>(e.Tab1="PROFILE",e.Tab2="MANAGEMENT",e))(Zs||{}),rR=(e=>(e[e.GA_USER_EMPTY=0]="GA_USER_EMPTY",e[e.GA_EMAIL_EMPTY=1]="GA_EMAIL_EMPTY",e[e.GA_USER_ID_EMPTY=2]="GA_USER_ID_EMPTY",e[e.GA_PASS_EMPTY=3]="GA_PASS_EMPTY",e[e.GA_PASS_NOT_MATCH=4]="GA_PASS_NOT_MATCH",e[e.GA_USERNAME_EXISTS=5]="GA_USERNAME_EXISTS",e[e.GA_EMAIL_EXISTS=6]="GA_EMAIL_EXISTS",e[e.GA_NO_ROLES_APP_DEFINED=7]="GA_NO_ROLES_APP_DEFINED",e[e.GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP=8]="GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP",e[e.GA_CANNOT_GET_USER_INFO=9]="GA_CANNOT_GET_USER_INFO",e[e.GA_ERROR_CHAGING_PASS=10]="GA_ERROR_CHAGING_PASS",e[e.GA_NO_TENANTS_ROLES_DEFINDED=11]="GA_NO_TENANTS_ROLES_DEFINDED",e[e.GA_PASS_DOES_NOT_MEET_REQUIREMENTS=12]="GA_PASS_DOES_NOT_MEET_REQUIREMENTS",e))(rR||{});const jt=e=>typeof e=="string",yc=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},aR=e=>e==null?"":""+e,vze=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},hze=/###/g,oR=e=>e&&e.indexOf("###")>-1?e.replace(hze,"."):e,iR=e=>!e||jt(e),Sc=(e,t,n)=>{const r=jt(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(iR(e))return{};const o=oR(r[a]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return iR(e)?{}:{obj:e,k:oR(r[a])}},cR=(e,t,n)=>{const{obj:r,k:a}=Sc(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),c=Sc(e,i,Object);for(;c.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),c=Sc(e,i,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},bze=(e,t,n,r)=>{const{obj:a,k:o}=Sc(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Js=(e,t)=>{const{obj:n,k:r}=Sc(e,t);if(n)return n[r]},Cze=(e,t,n)=>{const r=Js(e,n);return r!==void 0?r:Js(t,n)},lR=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?jt(e[r])||e[r]instanceof String||jt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):lR(e[r],t[r],n):e[r]=t[r]);return e},zo=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yze={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Sze=e=>jt(e)?e.replace(/[&<>"'\/]/g,t=>yze[t]):e;class xze{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Aze=[" ",",","?","!",";"],Eze=new xze(20),wze=(e,t,n)=>{t=t||"",n=n||"";const r=Aze.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=Eze.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},zf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o<r.length;){if(!a||typeof a!="object")return;let i,c="";for(let l=o;l<r.length;++l)if(l!==o&&(c+=n),c+=r[l],i=a[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;o+=l-o+1;break}a=i}return a},_s=e=>e==null?void 0:e.replace("_","-"),Lze={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class e3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Lze,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(jt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new e3(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e3(this.logger,t)}}var B2=new e3;class t3{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c.apply(c,[t,...r])})}}class sR extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var s,d;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):jt(r)&&o?c.push(...r.split(o)):c.push(r)));const l=Js(this.data,c);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),l||!i||!jt(r)?l:zf((d=(s=this.data)==null?void 0:s[t])==null?void 0:d[n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),cR(this.data,c,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(jt(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let l=Js(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?lR(l,r,o):l={...l,...r},cR(this.data,c,l),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var uR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{var i;t=((i=this.processors[o])==null?void 0:i.process(t,n,r,a))??t}),t}};const dR={};class n3 extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),vze(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=B2.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!wze(t,r,a);if(i&&!c){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:jt(o)?[o]:o};const s=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(a)}return{key:t,namespaces:jt(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),l=c[c.length-1],s=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((s==null?void 0:s.toLowerCase())==="cimode"){if(d){const x=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${x}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${x}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let m=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||i,g=(f==null?void 0:f.exactUsedKey)||i,h=Object.prototype.toString.apply(m),v=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!jt(m)&&typeof m!="boolean"&&typeof m!="number";if(b&&m&&y&&v.indexOf(h)<0&&!(jt(C)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,m,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=x,f.usedParams=this.getUsedParamsDetails(n),f):x}if(o){const x=Array.isArray(m),S=x?[]:{},A=x?g:p;for(const E in m)if(Object.prototype.hasOwnProperty.call(m,E)){const w=`${A}${o}${E}`;S[E]=this.translate(w,{...n,joinArrays:!1,ns:c}),S[E]===w&&(S[E]=m[E])}m=S}}else if(b&&jt(C)&&Array.isArray(m))m=m.join(C),m&&(m=this.extendTranslation(m,t,n,r));else{let x=!1,S=!1;const A=n.count!==void 0&&!jt(n.count),E=n3.hasDefaultValue(n),w=A?this.pluralResolver.getSuffix(s,n.count,n):"",L=n.ordinal&&A?this.pluralResolver.getSuffix(s,n.count,{ordinal:!1}):"",z=A&&!n.ordinal&&n.count===0,I=z&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${w}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(m)&&E&&(x=!0,m=I),this.isValidLookup(m)||(S=!0,m=i);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,O=E&&I!==m&&this.options.updateMissing;if(S||x||O){if(this.logger.log(O?"updateKey":"missingKey",s,l,i,O?I:m),o){const k=this.resolve(i,{...n,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let R=[];const T=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&T&&T[0])for(let k=0;k<T.length;k++)R.push(T[k]);else this.options.saveMissingTo==="all"?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);const M=(k,F,B)=>{var V;const j=E&&B!==m?B:D;this.options.missingKeyHandler?this.options.missingKeyHandler(k,l,F,j,O,n):(V=this.backendConnector)!=null&&V.saveMissing&&this.backendConnector.saveMissing(k,l,F,j,O,n),this.emit("missingKey",k,l,F,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?R.forEach(k=>{const F=this.pluralResolver.getSuffixes(k,n);z&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(B=>{M([k],i+B,n[`defaultValue${B}`]||I)})}):M(R,i,I))}m=this.extendTranslation(m,t,n,f,r),S&&m===i&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${i}`),(S||x)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,x?m:void 0))}return a?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(t,n,r,a,o){var s,d;var i=this;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=jt(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const g=t.match(this.interpolator.nestingRegexp);m=g&&g.length}let p=r.replace&&!jt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||a.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),h=g&&g.length;m<h&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,h=new Array(g),v=0;v<g;v++)h[v]=arguments[v];return(o==null?void 0:o[0])===h[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):i.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,l=jt(c)?[c]:c;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=uR.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,c;return jt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const s=this.extractFromKey(l,n),d=s.key;a=d;let f=s.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!jt(n.count),p=m&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(jt(n.context)||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var C,b;this.isValidLookup(r)||(c=v,!dR[`${h[0]}-${v}`]&&((C=this.utils)!=null&&C.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(c))&&(dR[`${h[0]}-${v}`]=!0,this.logger.warn(`key "${a}" for languages "${h.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(y=>{var A;if(this.isValidLookup(r))return;i=y;const x=[d];if((A=this.i18nFormat)!=null&&A.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,y,v,n);else{let E;m&&(E=this.pluralResolver.getSuffix(y,n.count,n));const w=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(x.push(d+E),n.ordinal&&E.indexOf(L)===0&&x.push(d+E.replace(L,this.options.pluralSeparator)),p&&x.push(d+w)),g){const z=`${d}${this.options.contextSeparator}${n.context}`;x.push(z),m&&(x.push(z+E),n.ordinal&&E.indexOf(L)===0&&x.push(z+E.replace(L,this.options.pluralSeparator)),p&&x.push(z+w))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(y,v,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){var o;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!jt(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class fR{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=B2.create("languageUtils")}getScriptPartFromCode(t){if(t=_s(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=_s(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(jt(t)&&t.indexOf("-")>-1){let n=Intl.getCanonicalLocales(t)[0];return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),jt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return jt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):jt(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}const mR={zero:0,one:1,two:2,few:3,many:4,other:5},pR={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Mze{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=B2.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=_s(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),pR;if(!t.match(/-|_/))return pR;const l=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(l,n)}return this.pluralRulesCache[o]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,o)=>mR[a]-mR[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const gR=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Cze(e,t,n);return!o&&a&&jt(n)&&(o=zf(e,n,r),o===void 0&&(o=zf(t,n,r))),o},Nf=e=>e.replace(/\$/g,"$$$$");class zze{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=B2.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:c,suffixEscaped:l,formatSeparator:s,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:h,nestingOptionsSeparator:v,maxReplaces:C,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:Sze,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?zo(o):i||"{{",this.suffix=c?zo(c):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?zo(m):p||zo("$t("),this.nestingSuffix=g?zo(g):h||zo(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=C||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var p;let o,i,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=g=>{if(g.indexOf(this.formatSeparator)<0){const b=gR(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...a,...n,interpolationkey:g}):b}const h=g.split(this.formatSeparator),v=h.shift().trim(),C=h.join(this.formatSeparator).trim();return this.format(gR(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...a,...n,interpolationkey:v})};this.resetRegExp();const d=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>Nf(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?Nf(this.escape(g)):Nf(g)}].forEach(g=>{for(c=0;o=g.regex.exec(t);){const h=o[1].trim();if(i=s(h),i===void 0)if(typeof d=="function"){const C=d(t,o,a);i=jt(C)?C:""}else if(a&&Object.prototype.hasOwnProperty.call(a,h))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),i="";else!jt(i)&&!this.useRawValueToEscape&&(i=aR(i));const v=g.safeValue(i);if(t=t.replace(o[0],v),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const c=(l,s)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,i);const p=m.match(/'/g),g=m.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!g||g.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),s&&(i={...s,...i})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&!jt(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let s=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),l=d,s=!0}if(o=n(c.call(this,a[1].trim(),i),i),o&&a[0]===t&&!jt(o))return o;jt(o)||(o=aR(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),s&&(o=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const Nze=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[c,...l]=i.split(":"),s=l.join(":").trim().replace(/^'+|'+$/g,""),d=c.trim();n[d]||(n[d]=s),s==="false"&&(n[d]=!1),s==="true"&&(n[d]=!0),isNaN(s)||(n[d]=parseInt(s,10))}})}return{formatName:t,formatOptions:n}},No=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let c=t[i];return c||(c=e(_s(r),a),t[i]=c),c(n)}};class Oze{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=B2.create("formatter"),this.options=t,this.formats={number:No((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:No((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:No((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:No((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:No((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=No(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){const c=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,l)=>{var f;const{formatName:s,formatOptions:d}=Nze(l);if(this.formats[s]){let m=c;try{const p=((f=a==null?void 0:a.formatParams)==null?void 0:f[a.interpolationkey])||{},g=p.locale||p.lng||a.locale||a.lng||r;m=this.formats[s](c,g,{...d,...a,...p})}catch(p){this.logger.warn(p)}return m}else this.logger.warn(`there was no format function for ${s}`);return c},t)}}const Ize=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Pze extends t3{constructor(t,n,r){var o,i;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=B2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(i=(o=this.backend)==null?void 0:o.init)==null||i.call(o,r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},c={},l={};return t.forEach(s=>{let d=!0;n.forEach(f=>{const m=`${s}|${f}`;!r.reload&&this.store.hasResourceBundle(s,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),o[m]===void 0&&(o[m]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(c[s]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(l=>{bze(l.loaded,[o],i),Ize(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(s=>{c[s]||(c[s]={});const d=l.loaded[s];d.length&&d.forEach(f=>{c[s][f]===void 0&&(c[s][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const c=(s,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(s&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(s,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const s=l(t,n);s&&typeof s.then=="function"?s.then(d=>c(null,d)).catch(c):c(null,s)}catch(s){c(s)}return}return l(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();jt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),jt(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,a,o){var l,s,d,f,m;let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((s=(l=this.services)==null?void 0:l.utils)!=null&&s.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((m=this.backend)!=null&&m.create){const p={...i,isUpdate:o},g=this.backend.create.bind(this.backend);if(g.length<6)try{let h;g.length===5?h=g(t,n,r,a,p):h=g(t,n,r,a),h&&typeof h.then=="function"?h.then(v=>c(null,v)).catch(c):c(null,h)}catch(h){c(h)}else g(t,n,r,a,c,p)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const vR=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),jt(e[1])&&(t.defaultValue=e[1]),jt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),hR=e=>{var t,n;return jt(e.ns)&&(e.ns=[e.ns]),jt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),jt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},r3=()=>{},Rze=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class xc extends t3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=hR(t),this.services={},this.logger=B2,this.modules={external:[]},Rze(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(jt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=vR();this.options={...a,...this.options,...hR(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?B2.init(o(this.modules.logger),this.options):B2.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Oze;const f=new fR(this.options);this.store=new sR(this.options.resources,this.options);const m=this.services;m.logger=B2,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new Mze(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(m.formatter=o(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new zze(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Pze(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(p){for(var g=arguments.length,h=new Array(g>1?g-1:0),v=1;v<g;v++)h[v-1]=arguments[v];t.emit(p,...h)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new n3(this.services,this.options),this.translator.on("*",function(p){for(var g=arguments.length,h=new Array(g>1?g-1:0),v=1;v<g;v++)h[v-1]=arguments[v];t.emit(p,...h)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=r3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=yc(),s=()=>{const d=(f,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),r(f,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),l}loadResources(t){var o,i;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const a=jt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],l=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(f=>{f!=="cimode"&&c.indexOf(f)<0&&c.push(f)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(i=(o=this.options.preload)==null?void 0:o.forEach)==null||i.call(o,s=>l(s)),this.services.backendConnector.load(c,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=yc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=r3),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=yc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},c=l=>{var d,f;!t&&!l&&this.services.languageDetector&&(l=[]);const s=jt(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);s&&(this.language||o(s),this.translator.language||this.translator.changeLanguage(s),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,s)),this.loadResources(s,m=>{i(m,s)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),a}getFixedT(t,n,r){var a=this;const o=function(i,c){let l;if(typeof c!="object"){for(var s=arguments.length,d=new Array(s>2?s-2:0),f=2;f<s;f++)d[f-2]=arguments[f];l=a.options.overloadTranslationOptionHandler([i,c].concat(d))}else l={...c};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const m=a.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(i)?p=i.map(g=>`${l.keyPrefix}${m}${g}`):p=l.keyPrefix?`${l.keyPrefix}${m}${i}`:i,a.t(p,l)};return jt(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.translate(...n)}exists(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,l)=>{const s=this.services.backendConnector.state[`${c}|${l}`];return s===-1||s===0||s===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=yc();return this.options.ns?(jt(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=yc();jt(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){var a,o;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((o=this.services)==null?void 0:o.languageUtils)||new fR(vR());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new xc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new xc(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new sR(this.store.data,a),o.services.resourceStore=o.store),o.translator=new n3(o.services,a),o.translator.on("*",function(c){for(var l=arguments.length,s=new Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];o.emit(c,...s)}),o.init(a,n),o.translator.options=a,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const rr=xc.createInstance();rr.createInstance=xc.createInstance,rr.createInstance,rr.dir,rr.init,rr.loadResources,rr.reloadResources,rr.use,rr.changeLanguage,rr.getFixedT;const bR=rr.t;rr.exists,rr.setDefaultNamespace,rr.hasLoadedNamespace,rr.loadNamespaces,rr.loadLanguages;const Tze=async(e,t)=>{const n="GENERAL.MESSAGES";return e.then(()=>{Yi.success(bR(`${n}.SUCCESS.USERS`,{context:"UPDATE"})),t&&t()}).catch(({response:r})=>{const a=rR[r==null?void 0:r.data.code];Xi.error({message:bR(`${n}.ERROR.USERS.${a}`),duration:10})})},Dze=window.globalAuthUrl,kze=async e=>await a1.post(`${Dze}/maintainUser`,e),$r="USERS",Bze=()=>{const{t:e}=k2(),{requiredField:t}=Hs();return be.jsxs(yr,{gutter:8,children:[be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.FirstName,label:e(`${$r}.FIRST_NAME`),placeholder:e(`${$r}.FIRST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.LastName,label:e(`${$r}.LAST_NAME`),placeholder:e(`${$r}.LAST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.Username,label:e(`${$r}.USERNAME`),placeholder:e(`${$r}.USERNAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.Email,label:e(`${$r}.EMAIL`),placeholder:e(`${$r}.EMAIL`,{context:"PLACEHOLDER"}),allowClear:!0,rules:[()=>({validator(n,r){return!(r!=null&&r.match(tD))||r!=null&&r.match(nD)||r!=null&&r.match(rD)?Promise.reject(new Error(e("GENERAL.FORM.ERRORS.EMAIL"))):Promise.resolve()}})]})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.Password,label:e(`${$r}.PASSWORD`),placeholder:e(`${$r}.PASSWORD`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,tooltip:be.jsx(dP,{i18nKey:e(`${$r}.PASSWORD_HINT`),components:{b:be.jsx("b",{}),ul:be.jsx("ul",{}),li:be.jsx("li",{})}})})}),be.jsx(En,{span:12,children:be.jsx(C2,{fieldName:ur.ConfirmPassword,label:e(`${$r}.PASSWORD-CONFIRM`),placeholder:e(`${$r}.PASSWORD-CONFIRM`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,rules:[({getFieldValue:n})=>({validator(r,a){return!a||n(ur.Password)===a?Promise.resolve():Promise.reject(new Error(e("GENERAL.FORM.ERRORS.CONFIRM_PASSWORD")))}})]})})]})},a3="USERS",Fze=({user:e,isLoading:t,isOpen:n,onCancel:r})=>{const[a]=en.useForm(),{t:o}=k2(),i=en.useWatch(ur.ProfilePicture,a);N.useEffect(()=>(e&&n&&a.setFieldsValue({...e,[ur.ProfilePicture]:wd(e.profilePicture)}),()=>{a.resetFields()}),[e,n]);const c=m=>{const p={...e,...m,[ur.ProfilePicture]:Ux(m==null?void 0:m[ur.ProfilePicture])};Tze(kze(p),r)},l=m=>{m.stopPropagation(),a.setFieldValue(ur.ProfilePicture,void 0)},s=m=>(Kx(m,p=>{a.setFieldValue(ur.ProfilePicture,p)}),!1),d=be.jsxs("div",{children:[be.jsx(A0,{}),be.jsx("div",{style:{marginTop:8},children:o("UPLOAD")})]}),f=[{label:be.jsxs("span",{children:[be.jsx(b2,{icon:Dw,style:{marginRight:5}}),o(`${a3}.${Zs.Tab1}`)]}),key:Zs.Tab1,children:be.jsx(Bze,{}),forceRender:!0}];return be.jsx(tA,{children:be.jsx(Sr,{title:o(`${a3}.EDIT`,{context:"USER"}),onOk:()=>a.submit(),onCancel:r,open:n,destroyOnClose:!0,maskClosable:!1,okText:o(`${a3}.SUBMIT`),cancelText:o(`${a3}.CANCEL`),style:{maxWidth:900},okButtonProps:{loading:t},children:be.jsxs(en,{name:"user-management",form:a,onFinish:c,layout:"vertical",children:[be.jsxs(yr,{children:[be.jsx(C2,{fieldName:ur.User,hidden:!0}),be.jsx(En,{span:24,children:be.jsx(yr,{justify:"center",children:be.jsx(en.Item,{name:ur.ProfilePicture,children:be.jsx(Ad,{listType:"picture-circle",className:"avatar-uploader",beforeUpload:s,maxCount:1,showUploadList:!1,accept:"image/png, image/jpeg",children:i?be.jsxs(yr,{className:"float-btn-container",children:[be.jsx(th,{src:i,size:"small",alt:"userProfile",style:{height:"100%",width:"100%"}}),be.jsx(cr,{title:o("Remove"),placement:"bottom",children:be.jsx(dn,{shape:"circle",size:"small",icon:be.jsx(Pu,{}),className:"float-btn",onClick:l})})]}):d})})})})]}),be.jsx(Fi,{defaultActiveKey:Zs.Tab1,type:"card",size:"small",items:f})]})})})},jze=C3()(Fze),{slice:Hze,forEach:Vze}=[];function Wze(e){return Vze.call(Hze.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const CR=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,$ze=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!CR.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!CR.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},yR={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=$ze(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e){this.create(e,"",-1)}};var Kze={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return yR.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:o}=t;n&&typeof document<"u"&&yR.create(n,e,r,a,o)}},Uze={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let c=0;c<i.length;c++){const l=i[c].indexOf("=");l>0&&i[c].substring(0,l)===t&&(n=i[c].substring(l+1))}}return n}};let Ac=null;const SR=()=>{if(Ac!==null)return Ac;try{Ac=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ac=!1}return Ac};var Gze={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&SR())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&SR()&&window.localStorage.setItem(n,e)}};let Ec=null;const xR=()=>{if(Ec!==null)return Ec;try{Ec=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ec=!1}return Ec};var qze={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&xR())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&xR()&&window.sessionStorage.setItem(n,e)}},Yze={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},Qze={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Xze={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},Zze={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function Jze(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class AR{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Wze(n,this.options||{},Jze()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Kze),this.addDetector(Uze),this.addDetector(Gze),this.addDetector(qze),this.addDetector(Yze),this.addDetector(Qze),this.addDetector(Xze),this.addDetector(Zze)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}AR.type="languageDetector";const _ze={translation:{GENERAL:{ACTIONS:{CLOSE:"Fechar",DELETE:"Remover",EDIT:"Editar",NEXT:"Seguinte",PREV:"Anterior"},APP:"App",BACK:"Voltar",BACK_LOGIN:"Voltar ao login",DO_NOT_USE_IMAGE:"Não usar imagem",FORM:{ERRORS:{CONFIRM_PASSWORD:"As senhas devem ser as mesmas!",EMAIL:"O email tem de ter este formato 'email@exemple.com'",FORMAT:"O formato deve ser do tipo 'X.X.X'",NOT_EMPTY:"Este campo é obrigatório",VERSION:"O número da versão deve terminar com um valor numérico"}},JPG_PNG_WARNING:"Apenas suporta ficheiros JPG ou PNG.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"O e-mail já existe",ITEM_CREATE:"Erro ao tentar adicionar {{item}}",ITEM_DELETE:"Erro ao tentar excluir {{item}}",ITEM_UPDATE:"Erro ao tentar atualizar {{item}}",RELEASE_NOTE:{0:"O número da versão já existe",1:"A data da publicação deve ser superior à anterior",2:"Pârametros do pedido inválidos"},UNAUTHORIZED:"Desculpe, você não está autorizado a acessar esta página.",USERNAME_EXISTS:"O nome de usuário já existe",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Erro! A senha não atende aos requisitos!",GA_PASS_NOT_MATCH:"Erro! A senha deve ser a mesma"}},SUCCESS:{ITEM_CREATE:"{{item}} adicionado com sucesso",ITEM_DELETE:"{{item}} excluído com sucesso",ITEM_UPDATE:"{{item}} atualizado com sucesso",USERS_UPDATE:"Usuário atualizado com sucesso!"},WARNING:{DELETE_CONFIRM:"Você está prestes a excluir este menu. Deseja continuar?"}},NEXT:"Seguinte",REMOVE:"Remover",ROLE:"Função",SAVE:"Salvar",TENANT:"Organização",THEMES:{DARK:"Modo escuro",LIGHT:"Modo claro",TOOLTIP:"Clique para mudar para {{theme}}"},UPLOAD:"Carregar",UPLOAD_LABEL:"Clique ou arraste o ficheiro para esta área para o carregar",USER:"Usuário"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"Deve conter apenas elementos do tipo formato de ficheiro válido",INVALID_VALUE:"Valor inválido"},FORM:{BUTTONS:{SEND:"Enviar"},FIELDS:{ATTACHMENTS:"Anexos",DESCRIPTION:"Descrição",DESCRIPTION_PLACEHOLDER:"Inserir descrição",EMAIL:"Email",EMAIL_PLACEHOLDER:"Inserir o email",NAME:"$t(Name)",NAME_PLACEHOLDER:"Inserir o nome",SUBJECT:"Descrição",SUBJECT_PLACEHOLDER:"Inserir descrição",TITLE:"Contacte-nos",UPLOAD_FILES:"<strong>Ficheiros para carregamento (max. 5)</strong><br/><small>Clicar para adicionar ou arrastar e largar ficheiros.</small>"},TITLE:"Bem-vindo ao suporte"},SUPPORT:"Suporte",TABLE:{CODE:"Mensagem",FIELD:"Campo"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Adicionar novo diapositivo",ADD_RELEASE_NOTE:"Adicionar Publicação",FORM:{ADD_NEW_FIELD:"Adicionar novo campo",FIELDS:{APP:"Aplicação",APP_PLACEHOLDER:"Selecionar uma aplicação…",DEPLOY_DATE:"Data da publicação",DESCRIPTION:"Adicionar descrição…",DO_NOT_SHOW_AGAIN:"Não mostrar mais até à próxima atualização",TITLE:"Adicionar título…",VERSION:"Versão",VERSION_PLACEHOLDER:"Introduza a versão",VERSION_TOOLTIP:"Versão da aplicação selecionada."}},REMOVE_CURRENT_SLIDE:"Remover diapositivo atual",TEXT_SINGULAR:"Publicação de nova funcionalidade",TITLE:"Publicações",UPD_RELEASE_NOTE:"Editar Publicação",WHATS_NEWS:"Bem-vindo(a) ao {{app}} v{{version}} - Veja as novidades!"},USERS:{CANCEL:"Cancelar",EDIT:"Editar",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Primeiro nome",FIRST_NAME_PLACEHOLDER:"Por favor, digite seu primeiro nome...",LAST_NAME:"Último nome",LAST_NAME_PLACEHOLDER:"Por favor, digite seu último nome...",PASSWORD:"Senha",PASSWORD_HINT:"Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Digite sua senha...","PASSWORD-CONFIRM":"Confirmar senha","PASSWORD-CONFIRM_PLACEHOLDER":"Confirme sua senha...",PROFILE:"Perfil",SUBMIT:"Salvar",USERNAME:"Nome de usuário",USERNAME_PLACEHOLDER:"Por favor, digite seu nome de usuário..."}}},eNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Close",DELETE:"Delete",EDIT:"Edit",NEXT:"Next",PREV:"Previous"},APP:"App",BACK:"Back",BACK_LOGIN:"Back to login",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"The passwords must be the same!",EMAIL:"The email have to be this format 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"This field is mandatory",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"Email already exists",ITEM_CREATE:"Error trying to add {{item}}",ITEM_DELETE:"Error trying to delete {{item}}",ITEM_UPDATE:"Error trying to update {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Sorry, you are not authorized to access this page.",USERNAME_EXISTS:"Username already exists",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Error! Password does not meet the requirements!",GA_PASS_NOT_MATCH:"Error! Password has to be the same!"}},SUCCESS:{ITEM_CREATE:"{{item}} added successfully",ITEM_DELETE:"{{item}} deleted successfully",ITEM_UPDATE:"{{item}} updated successfully",USERS_UPDATE:"User updated successfully!"},WARNING:{DELETE_CONFIRM:"You are about to delete this menu. Do you want proceed?"}},NEXT:"Next",REMOVE:"Remove",ROLE:"Role",SAVE:"Save",TENANT:"Organization",THEMES:{DARK:"Dark mode",LIGHT:"Light mode",TOOLTIP:"Click to switch to {{theme}}"},UPLOAD:"Upload",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"User"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Welcome to {{app}} v{{version}} - See what's new!"},USERS:{CANCEL:"Cancel",EDIT:"Edit",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"First name",FIRST_NAME_PLACEHOLDER:"Please insert the first name…",LAST_NAME:"Last name",LAST_NAME_PLACEHOLDER:"Please insert the last name...",PASSWORD:"Password",PASSWORD_HINT:"Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one lowercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Please insert the password...","PASSWORD-CONFIRM":"Confirm password","PASSWORD-CONFIRM_PLACEHOLDER":"Please confirm the password...",PROFILE:"Profile",SUBMIT:"Save",USERNAME:"Username",USERNAME_PLACEHOLDER:"Please insert the username..."},LANGUAGES:{EN:"English",ES:"Spanish",PT:"Portuguese",BR:"Brazilian",RO:"Romenian",JP:"Japanese"}}},tNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Cerrar",DELETE:"Borrar",EDIT:"Editar",NEXT:"Seguiente",PREV:"Anterior"},APP:"App",BACK:"Volver",BACK_LOGIN:"Volver al inicio de sesión",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"Las contraseñas deben ser las mismas!",EMAIL:"El email tiene que tener este formato 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"Este campo es obligatorio",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Menú",MESSAGES:{ERROR:{EMAIL_EXISTS:"El correo electrónico ya existe",ITEM_CREATE:"Error al intentar agregar {{item}}",ITEM_DELETE:"Error al intentar eliminar {{item}}",ITEM_UPDATE:"Error al intentar actualizar {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Lo sentimos, no está autorizado a acceder a esta página.",USERNAME_EXISTS:"El nombre de usuario ya existe",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"¡Error! ¡La contraseña no cumple con los requisitos!",GA_PASS_NOT_MATCH:"¡Error! ¡La contraseña debe ser la misma!"}},SUCCESS:{ITEM_CREATE:"{{item}} añadido con éxito",ITEM_DELETE:"{{item}} eliminado con éxito",ITEM_UPDATE:"{{item}} actualizado con éxito",USERS_UPDATE:"¡Usuario actualizado con éxito!"},WARNING:{DELETE_CONFIRM:"Está a punto de eliminar este menú. ¿Quieres continuar?"}},NEXT:"Seguiente",REMOVE:"Eliminar",ROLE:"Papel",SAVE:"Salvar",TENANT:"Organización",THEMES:{DARK:"Modo oscuro",LIGHT:"Modo claro",TOOLTIP:"Haz clic para cambiar a {{theme}}"},UPLOAD:"Subir",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"Usuario"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Bienvenido/a a {{app}} v{{version}} - ¡Mira las novedades!"},USERS:{CANCEL:"Anular",EDIT:"Editar",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Nombre",FIRST_NAME_PLACEHOLDER:"Por favor, ingrese su nombre…",LAST_NAME:"Apellido",LAST_NAME_PLACEHOLDER:"Por favor, ingrese el apellido…",PASSWORD:"Contraseña",PASSWORD_HINT:"Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Al menos un número entre 0 y 9</li><li>Al menos una letra mayúscula</li><li>Al menos una letra minúscula</li><li>Al menos un carácter especial: <b>!@#$%^&*</b> </li></ul>",PASSWORD_PLACEHOLDER:"Por favor, ingrese la contraseña...","PASSWORD-CONFIRM":"Confirmar contraseña","PASSWORD-CONFIRM_PLACEHOLDER":"Por favor, confirme la contraseña...",PROFILE:"Perfil",SUBMIT:"Salvar",USERNAME:"Nombre de usuario",USERNAME_PLACEHOLDER:"Por favor, ingrese el nombre de usuario..."}}},nNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Close",DELETE:"Delete",EDIT:"Edit",NEXT:"Next",PREV:"Previous"},APP:"App",BACK:"Back",BACK_LOGIN:"Back to login",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"The passwords must be the same!",EMAIL:"The email have to be this format 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"This field is mandatory",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"Email already exists",ITEM_CREATE:"Error trying to add {{item}}",ITEM_DELETE:"Error trying to delete {{item}}",ITEM_UPDATE:"Error trying to update {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Sorry, you are not authorized to access this page.",USERNAME_EXISTS:"Username already exists",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Error! Password does not meet the requirements!",GA_PASS_NOT_MATCH:"Error! Password has to be the same"}},SUCCESS:{ITEM_CREATE:"{{item}} added successfully",ITEM_DELETE:"{{item}} deleted successfully",ITEM_UPDATE:"{{item}} updated successfully",USERS_UPDATE:"User updated successfully!"},WARNING:{DELETE_CONFIRM:"You are about to delete this menu. Do you want proceed?"}},NEXT:"Next",REMOVE:"Remove",ROLE:"Role",SAVE:"Save",TENANT:"Organization",THEMES:{DARK:"Dark mode",LIGHT:"Light mode",TOOLTIP:"Click to switch to {{theme}}"},UPLOAD:"Upload",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"User"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Welcome to {{app}} v{{version}} - See what's new!"},USERS:{CANCEL:"Cancel",EDIT:"Edit",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"First name",FIRST_NAME_PLACEHOLDER:"Please insert the first name...",LAST_NAME:"Last name",LAST_NAME_PLACEHOLDER:"Please insert the last name...",PASSWORD:"Password",PASSWORD_HINT:"Requirements: <ul><li>Minimum 7 characters</li><li>At least one number between 0 to 9</li><li>At least one uppercase letter </li><li>At least one special character: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Please insert the password...","PASSWORD-CONFIRM":"Confirm password","PASSWORD-CONFIRM_PLACEHOLDER":"Please confirm the password...",PROFILE:"Profile",SUBMIT:"Save",USERNAME:"Username",USERNAME_PLACEHOLDER:"Please insert the username..."}}},rNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Fechar",DELETE:"Eliminar",EDIT:"Editar",NEXT:"Seguinte",PREV:"Anterior"},APP:"App",BACK:"Voltar",BACK_LOGIN:"Voltar ao login",DO_NOT_USE_IMAGE:"Não usar imagem",FORM:{ERRORS:{CONFIRM_PASSWORD:"As palavras-passe devem ser as mesmas!",EMAIL:"O email tem de ter este formato 'email@exemple.com'",FORMAT:"O formato deve ser do tipo 'X.X.X'",NOT_EMPTY:"Este campo é obrigatório",VERSION:"O número da versão deve terminar com um valor numérico"}},JPG_PNG_WARNING:"Apenas suporta ficheiros JPG ou PNG.",MENU:"Menu",MESSAGES:{ERROR:{EMAIL_EXISTS:"O e-mail já existe",ITEM_CREATE:"Erro ao tentar adicionar {{item}}",ITEM_DELETE:"Erro ao tentar eliminar {{item}}",ITEM_UPDATE:"Erro ao tentar atualizar {{item}}",RELEASE_NOTE:{0:"O número da versão já existe",1:"A data da publicação deve ser superior à anterior",2:"Pârametros do pedido inválidos"},UNAUTHORIZED:"Desculpe, você não está autorizado a acessar esta página.",USERNAME_EXISTS:"O nome de utilizador já existe",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Erro! A palavra-passe não cumpre com os requisitos!",GA_PASS_NOT_MATCH:"Erro! A palavra-passe tem de ser a mesma"}},SUCCESS:{ITEM_CREATE:"{{item}} adicionado com sucesso",ITEM_DELETE:"{{item}} eliminado com êxito",ITEM_UPDATE:"{{item}} atualizado com sucesso",USERS_UPDATE:"Utilizador atualizado com sucesso!"},WARNING:{DELETE_CONFIRM:"Está prestes a eliminar este menu. Deseja prosseguir?"}},NEXT:"Seguinte",REMOVE:"Remover",ROLE:"Papel",SAVE:"Gravar",TENANT:"Organização",THEMES:{DARK:"Modo escuro",LIGHT:"Modo claro",TOOLTIP:"Clique para mudar para {{theme}}"},UPLOAD:"Carregar",UPLOAD_LABEL:"Clique ou arraste o ficheiro para esta área para o carregar",USER:"Utilizador"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"Deve conter apenas elementos do tipo formato de ficheiro válido",INVALID_VALUE:"Valor inválido"},FORM:{BUTTONS:{SEND:"Enviar"},FIELDS:{ATTACHMENTS:"Anexos",DESCRIPTION:"Descrição",DESCRIPTION_PLACEHOLDER:"Inserir descrição",EMAIL:"Email",EMAIL_PLACEHOLDER:"Inserir o email",NAME:"$t(Name)",NAME_PLACEHOLDER:"Inserir o nome",SUBJECT:"Descrição",SUBJECT_PLACEHOLDER:"Inserir descrição",TITLE:"Contacte-nos",UPLOAD_FILES:"<strong>Ficheiros para carregamento (max. 5)</strong><br/><small>Clicar para adicionar ou arrastar e largar ficheiros.</small>"},TITLE:"Bem-vindo ao suporte"},SUPPORT:"Suporte",TABLE:{CODE:"Mensagem",FIELD:"Campo"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Adicionar novo diapositivo",ADD_RELEASE_NOTE:"Adicionar Publicação",FORM:{ADD_NEW_FIELD:"Adicionar novo campo",FIELDS:{APP:"Aplicação",APP_PLACEHOLDER:"Selecionar uma aplicação…",DEPLOY_DATE:"Data da publicação",DESCRIPTION:"Adicionar descrição…",DO_NOT_SHOW_AGAIN:"Não mostrar mais até à próxima atualização",TITLE:"Adicionar título…",VERSION:"Versão",VERSION_PLACEHOLDER:"Introduza a versão",VERSION_TOOLTIP:"Versão da aplicação selecionada."}},REMOVE_CURRENT_SLIDE:"Remover diapositivo atual",TEXT_SINGULAR:"Publicação de nova funcionalidade",TITLE:"Publicações",UPD_RELEASE_NOTE:"Editar Publicação",WHATS_NEWS:"Bem-vindo(a) ao {{app}} v{{version}} - Veja as novidades!"},USERS:{CANCEL:"Cancelar",EDIT:"Editar",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Primeiro nome",FIRST_NAME_PLACEHOLDER:"Por favor, insira o seu primeiro nome...",LAST_NAME:"Apelido",LAST_NAME_PLACEHOLDER:"Por favor, insira o seu apelido...",PASSWORD:"Palavra-passe",PASSWORD_HINT:"Requisitos: <ul><li>Mínimo 7 caracteres</li><li>Pelo menos um número entre 0 e 9</li><li>Pelo menos uma letra maiúscula</li><li>Pelo menos uma letra minúscula</li><li>Pelo menos um caracter especial: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Introduza a sua palavra-passe...","PASSWORD-CONFIRM":"Confirmar palavra-passe","PASSWORD-CONFIRM_PLACEHOLDER":"Confirme a sua palavra-passe...",PROFILE:"Perfil",SUBMIT:"Gravar",USERNAME:"Nome de utilizador",USERNAME_PLACEHOLDER:"Por favor, insira seu nome de utilizador..."}}},aNe={translation:{GENERAL:{ACTIONS:{CLOSE:"Închide",DELETE:"Șterge",EDIT:"Editare",NEXT:"Următorul",PREV:"Anterioară"},APP:"App",BACK:"Să mă întorc",BACK_LOGIN:"Înapoi la autentificare",DO_NOT_USE_IMAGE:"Do not use image",FORM:{ERRORS:{CONFIRM_PASSWORD:"Parolele trebuie să fie aceleași!",EMAIL:"E-mailul trebuie să fie în acest format 'email@exemple.com'",FORMAT:"The format must be like 'X.X.X'",NOT_EMPTY:"Acest câmp este obligatoriu",VERSION:"The version must end with a numeric value"}},JPG_PNG_WARNING:"Only supports JPG or PNG files.",MENU:"Meniu",MESSAGES:{ERROR:{EMAIL_EXISTS:"E-mailul există deja",ITEM_CREATE:"Eroare la încercarea de a adăuga {{item}}",ITEM_DELETE:"Eroare la încercarea de ștergere a {{item}}",ITEM_UPDATE:"Eroare la încercarea de actualizare a {{item}}",RELEASE_NOTE:{0:"Version already exists",1:"Deployed date must be greater than the last",2:"Invalid Request parameters"},UNAUTHORIZED:"Ne pare rău, nu sunteți autorizat să accesați această pagină.",USERNAME_EXISTS:"Numele de utilizator există deja",USERS:{GA_PASS_DOES_NOT_MEET_REQUIREMENTS:"Eroare! Parola nu îndeplinește cerințele!",GA_PASS_NOT_MATCH:"Eroare! Parola trebuie să fie aceeași"}},SUCCESS:{ITEM_CREATE:"{{item}} adăugat cu succes",ITEM_DELETE:"{{item}} șters cu succes",ITEM_UPDATE:"{{item}} actualizat cu succes",USERS_UPDATE:"Utilizator actualizat cu succes!"},WARNING:{DELETE_CONFIRM:"Sunteți pe cale să ștergeți acest meniu. Doriți să continuați?"}},NEXT:"Următoare",REMOVE:"Depărta",ROLE:"Rol",SAVE:"Salva",TENANT:"Organizație",THEMES:{DARK:"Modul întunecat",LIGHT:"Mod clar",TOOLTIP:"Faceți clic pentru a trece la {{theme}}"},UPLOAD:"Încărca",UPLOAD_LABEL:"Click or drag file to this area to upload",USER:"Utilizator"},HELPDESK:{ERRORS_CODE:{DATATYPE_MISMATCH:"It should contain elements of type valid file format only",INVALID_VALUE:"Invalid value"},FORM:{BUTTONS:{SEND:"Send"},FIELDS:{ATTACHMENTS:"Attachments",DESCRIPTION:"Description",DESCRIPTION_PLACEHOLDER:"Insert description…",EMAIL:"Email",EMAIL_PLACEHOLDER:"Insert your email...",NAME:"$t(Name)",NAME_PLACEHOLDER:"Insert your name...",SUBJECT:"Subject",SUBJECT_PLACEHOLDER:"Insert subject...",TITLE:"Contact us",UPLOAD_FILES:"<strong>Upload files (max. 5)</strong><br/><small>Click to add or drag and drop files.</small>"},TITLE:"Welcome to support"},SUPPORT:"Support",TABLE:{CODE:"Message",FIELD:"Field"}},"RELEASE-NOTES":{ADD_NEW_SLIDE:"Add new slide",ADD_RELEASE_NOTE:"Add Release Note",FORM:{ADD_NEW_FIELD:"Add new field",FIELDS:{APP:"App",APP_PLACEHOLDER:"Select an app...",DEPLOY_DATE:"Deploy Date",DESCRIPTION:"Add description...",DO_NOT_SHOW_AGAIN:"Do not show again until next update",TITLE:"Add title...",VERSION:"Version",VERSION_PLACEHOLDER:"Type the version...",VERSION_TOOLTIP:"The version of the selected application."}},REMOVE_CURRENT_SLIDE:"Remove current slide",TEXT_SINGULAR:"Release Note",TITLE:"Release Notes",UPD_RELEASE_NOTE:"Edit Release Note",WHATS_NEWS:"Bine ați venit la {{app}} v{{version}} - Vezi noutățile!?"},USERS:{CANCEL:"Anulare",EDIT:"Editare",EMAIL:"Email",EMAIL_PLACEHOLDER:"email@example.pt, email.example@example-example.com...",FIRST_NAME:"Prenume",FIRST_NAME_PLACEHOLDER:"Vă rugăm să introduceți prenumele...",LAST_NAME:"Nume de familie",LAST_NAME_PLACEHOLDER:"Vă rugăm să introduceți numele de familie...",PASSWORD:"Parolă",PASSWORD_HINT:"Cerințe: <ul><li>Minimum 7 caractere</li><li>Cel puțin o cifră între 0 și 9</li><li>Cel puțin o literă mare</li><li>Cel puțin o literă mică</li><li>Cel puțin un caracter special: <b>!@#$%^&*</b></li></ul>",PASSWORD_PLACEHOLDER:"Vă rugăm să introduceți parola...","PASSWORD-CONFIRM":"Confirmare parolă","PASSWORD-CONFIRM_PLACEHOLDER":"Vă rugăm să confirmați parola...",PROFILE:"Profil",SUBMIT:"Salva",USERNAME:"Nume utilizator",USERNAME_PLACEHOLDER:"Vă rugăm să introduceți numele de utilizator..."}}};rr.use(AR).use(sLe).init({debug:!1,fallbackLng:"PT",interpolation:{escapeValue:!1},resources:{EN:eNe,ES:tNe,JP:nNe,PT:rNe,RO:aNe,BR:_ze}}),_n.Helpdesk=eze,_n.ReleaseNote=gze,_n.UserModal=jze,_n.i18n=rr,Object.defineProperty(_n,Symbol.toStringTag,{value:"Module"})});
|