@flarehr/superhero-account-registry 0.1.1852 → 0.1.1853

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.
@@ -28,7 +28,7 @@ If you can't use one of these types, please pass an extra decoder.
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
30
  */var Rd;function Uw(){if(Rd)return ua;Rd=1;var e=Bw;function t(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(u,h){var f=h(),p=r({inst:{value:f,getSnapshot:h}}),_=p[0].inst,$=p[1];return s(function(){_.value=f,_.getSnapshot=h,l(_)&&$({inst:_})},[u,f,h]),o(function(){return l(_)&&$({inst:_}),u(function(){l(_)&&$({inst:_})})},[u]),i(f),f}function l(u){var h=u.getSnapshot;u=u.value;try{var f=h();return!n(u,f)}catch{return!0}}function c(u,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return ua.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ua}var Pd;function zw(){return Pd||(Pd=1,ca.exports=Uw()),ca.exports}var jw=zw();class Hw{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=Ow(o)(this.arg);let l=a[0],c=a[1];i=[[l,d=>{const u=this.finalDispatch;u==null?s.push(d):u(d)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=d=>{let u=!1;const h=Gs(this.state[0]);return Vw(this.arg,Pw((f,p)=>{const _=this.state;this.finalDispatch=p,this.state=[f,_[1],!0,s],f!==_[0]&&d()},Dw((f,p)=>{const _=this.cmd;return this.cmd=Le(),[this.state[0],_]},(f,p,_)=>f(p)(this.state[0]),Ks(f=>f),Ks(f=>f),_e(f=>f),f=>[p=>f[0](p)?!0:h&&u,p=>{const _=p;Gs(_)?we(_):f[1](p)}],o))),()=>{u=!0}}}}function Od(e,t,n){return new Hw(e,t,n)}function Ww(e){return e.state}function Gw(e){return e.subscribe}function qw(e,t,n){return He(e.arg,t)?!He(e.dependencies,n):!0}function ws(e,t,n){const r=We(()=>Od(e,t,n)),o=r[0];qw(o,t,n)&&r[1](Od(e,t,n));const s=jw.useSyncExternalStore(Gw(o),()=>Ww(o)),i=s[2],a=s[3],l=s[1];return Ie(()=>{if(i&&a.length>0){let c=Re(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const d=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{we(c)}Eh(a)}},[i,a]),[s[0],l]}class Vr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Dd extends j{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Fd extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class wo extends ie{constructor(t,n,r,o,s,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=l}}class Lr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Vd extends ie{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function Ld(e){return new Dd("Authorization",e)}const rr=new wo("",new Vr(0,[]),Be(),!1,void 0,void 0,void 0,new Fd(0,[]));new Vd(0,"","","",ea({Compare:Zr}),new Lr(0,[""]));function Bd(e,t){return Zo(t)?new Array(0):si(t,[e],void 0,0)}function Kw(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Br(e){return new wo(e,rr.method,rr.headers,rr.withCredentials,rr.overridenMimeType,rr.overridenResponseType,rr.timeout,rr.content)}function _o(e,t){return new wo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function da(e,t){return new wo(t.url,t.method,ot(t.headers,re(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zw(e,t){return new wo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ud(e){return C0(t=>{const n=new XMLHttpRequest;n.open(Kw(e.method),e.url),n.onreadystatechange=()=>{let l,c,d,u,h,f,p;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),d=n.status|0,u=n.responseType,h=(f=n.responseType,f===""?new Lr(0,[n.responseText]):f==="text"?new Lr(0,[n.responseText]):f==="arraybuffer"?new Lr(2,[n.response]):f==="blob"?new Lr(1,[n.response]):new Lr(3,[n.response])),p=H0(yp(_=>{const $=k(Bd(":",_));if(!K($))return[D($).toLocaleLowerCase(),ae(":",b($)).trim()]},Bd(`\r
31
- `,n.getAllResponseHeaders())),{Compare:Zr}),new Vd(d,l,u,n.responseURL,p,h)))};const r=Re(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{we(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(nt(a.fields[0]));break}case 3:{n.send(nt(a.fields[0]));break}case 2:{n.send(nt(a.fields[0]));break}default:n.send()}})}function Jw(e,t,n){e:for(;;){const r=e,o=t,s=n;if(K(s)){const i=r;return i.tag===1?new w(1,[i.fields[0]]):new w(0,[Xo(i.fields[0])])}else{let i;const a=o(D(s));if(a.tag===1)i=new w(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new w(1,[l.fields[0]]):new w(0,[kt(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=b(s);continue e}}}function Yw(e,t){return Jw(new w(0,[Be()]),e,t)}function Xw(e){return Yw(t=>t,e)}function fa(e){return new Xl(fn(e))}function _s(e){return`${e}/account-registry/admin`}const Qw=3,e1=1e3;function zd(e,t,n,r){return z.Delay(()=>{const o=da(Ld(Qt(Ut("Bearer %s"))(n)),r);return z.Bind(Ud(o),s=>{let i,a;const l=s,c=l.statusCode|0;return i=c|0,i>=200&&i<=299?z.Return(l):(a=c|0,(a===400||a===429?!0:a>=500)&&e>=1?z.Bind(_u(t),()=>z.ReturnFrom(zd(e-1,t,n,r))):z.Return(l))})})}const bs=e=>t=>zd(Qw,e1,e,t);function t1(e,t){return z.Delay(()=>{let n;const r=bs(t)(_o(new Vr(0,[]),Br(`${_s(e)}/partners`)));return n=z.Bind(r,o=>z.Return(new w(0,[o]))),z.Bind(n,o=>{const s=o;if(s.tag===1)return z.Return(new w(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){let a;const l=tr(_e(nr(Xs(g$()),new tn(1,[]))),i.responseText);return a=l.tag===1?new w(1,[l.fields[0]]):Xw(Wn(mg,l.fields[0])),z.Return(a)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function n1(e,t,n,r){const o=fn(n),s=hn(r);return z.Delay(()=>{let i;const a=bs(t)(_o(new Vr(0,[]),Br(`${_s(e)}/partners/${o}/accounts/${s}`)));return i=z.Bind(a,l=>z.Return(new w(0,[l]))),z.Bind(i,l=>{const c=l;if(c.tag===1)return z.Return(new w(1,[c.fields[0]]));{const d=c.fields[0];if(d.statusCode===200){const u=tr(_e(nr(_$(),new tn(1,[]))),d.responseText);return z.Return(u)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function ha(e,t,n,r,o){return z.Delay(()=>{let s,i,a,l;const c="?"+ae("&",Dl(h=>h,k([(s=Gu(r.SearchText),El(s)?void 0:`search=${encodeURIComponent(s.trim())}`),(i=rg(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=qu(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)])));let d;const u=bs(t)((l=_o(new Vr(0,[]),Br(`${_s(e)}/partners/${kr(n)}/accounts${c}`)),o==null?l:da(new Dd("token",o),l)));return d=z.Bind(u,h=>z.Return(new w(0,[h]))),z.Bind(d,h=>{const f=h;if(f.tag===1)return z.Return(new w(1,[f.fields[0]]));{const p=f.fields[0];if(p.statusCode===200){const _=tr(_e(nr(v$(),new tn(1,[]))),p.responseText);return z.Return(_)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function r1(e,t,n){const r=hn(n);return z.Delay(()=>{let o;const s=bs(t)(_o(new Vr(0,[]),Br(`${_s(e)}/search-by-id/${r}`)));return o=z.Bind(s,i=>z.Return(new w(0,[i]))),z.Bind(o,i=>{const a=i;if(a.tag===1)return z.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const c=tr(_e(nr(C$(),new tn(1,[]))),l.responseText);return z.Return(c)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function o1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const s1=Rn(o1);function i1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const a1=Rn(i1);function l1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}const c1=Rn(l1);function u1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}const d1=Rn(u1);function f1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}const h1=Rn(f1);class jd extends j{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function p1(e,t,n){let r,o;return m("li",O(k([["key",e],["className","flex"],(r=[m("div",O(k([["className","flex items-center"],(o=Ee(A(()=>{let s;return B(n?Et():E((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},m(a1,s))),A(()=>E(m("a",O(Ee(A(()=>B(E(["children",e]),A(()=>B(t!=null?E(["href",Qn(N(t))]):Et(),A(()=>E(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",I.Children.toArray(Array.from(o))])])))],["children",I.Children.toArray(Array.from(r))])])))}function m1(e){let t,n;return m("nav",O(k([["className","pt-2 mb-6"],["aria-label","Breadcrumb"],(t=[m("ol",O(k([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Tp((r,o)=>p1(o.fields[0][0],o.fields[0][1],r===0),e),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function wt(e,t){return new jd([e,mo(t)])}function Hd(){return wt("Partners",new J(0,[]))}function Wd(e,t){return wt(t,new J(1,[e]))}function $1(e){return wt("Super",new J(4,[e]))}function g1(e){return wt("Benefits",new J(5,[e]))}function w1(e){return wt("Bank Details",new J(6,[e]))}function _1(e){return wt("Directory",new J(2,[e]))}function b1(e){return wt("Workspace",new J(7,[e]))}function y1(e){return wt("Accounts",new J(3,[e]))}function v1(e){return new jd([e,void 0])}function x1(e,t){let n;return wt("Directory",(n=[e,t],new J(9,[n[0],n[1]])))}function C1(e,t){let n;return wt("Users",(n=[e,t],new J(10,[n[0],n[1]])))}function S1(e,t){let n;return wt("Super",(n=[e,t],new J(11,[n[0],n[1]])))}function k1(e,t){let n;return wt("Benefits",(n=[e,t],new J(12,[n[0],n[1]])))}function A1(e,t){let n;return wt("Bank Details",(n=[e,t],new J(13,[n[0],n[1]])))}function E1(e,t){let n;return wt("Salary Packaging",(n=[e,t],new J(14,[n[0],n[1]])))}function I1(e,t){let n;return wt("Workspace",(n=[e,t],new J(15,[n[0],n[1]])))}function bo(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,f=h.Name;n=f.tag===2?f.fields[0].tag===1?es(h.Id):ui(f.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,f=h.Name;o=f.tag===2?f.fields[0].tag===1?ts(h.Id):ui(f.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,d,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,d=a),c){case 0:{i=k([Hd(),Wd(d.Id,n),y1(d.Id),v1(o)]);break}case 1:{i=k([Hd(),Wd(u.Id,n)]);break}default:i=Be()}return m1((t=e.page,t.tag===16||t.tag===1||t.tag===3?i:t.tag===4?ot(i,re($1(t.fields[0]))):t.tag===5?ot(i,re(g1(t.fields[0]))):t.tag===6?ot(i,re(w1(t.fields[0]))):t.tag===2?ot(i,re(_1(t.fields[0]))):t.tag===7?ot(i,re(b1(t.fields[0]))):t.tag===8?i:t.tag===9?ot(i,re(x1(t.fields[0],t.fields[1]))):t.tag===10?ot(i,re(C1(t.fields[0],t.fields[1]))):t.tag===11?ot(i,re(S1(t.fields[0],t.fields[1]))):t.tag===12?ot(i,re(k1(t.fields[0],t.fields[1]))):t.tag===13?ot(i,re(A1(t.fields[0],t.fields[1]))):t.tag===14?ot(i,re(E1(t.fields[0],t.fields[1]))):t.tag===15?ot(i,re(I1(t.fields[0],t.fields[1]))):i))}class T1 extends j{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function N1(e){return new T1(e)}function M1(e){return e.fields[0]}function Gd(e,t,n){const r=(e===t?"border-indigo-500 text-indigo-600 bg-indigo-100":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 hover:bg-gray-200")+" whitespace-nowrap p-3 border-r-2 font-medium text-sm";return N1(m("a",O(Ee(A(()=>B(E(["key",t]),A(()=>B(E(["children",t]),A(()=>B(E(["className",r]),A(()=>e!==t?E(["href",Qn(re(n))]):Et())))))))))))}function qd(e){let t,n;const r=e.headers,o=Yn(100);return m("div",O(k([["ref",s=>{const i=$p(s);if(i!=null){const a=i;o[1](~~a.offsetTop)}}],["className","relative"],(t=[m("div",{className:"w-40 mr-6"}),m("nav",O(k([["className","fixed bottom-14 flex flex-col w-40 border-r border-gray-300 mr-6"],["style",{top:o[0]}],(n=De(M1,r),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}class R1 extends ie{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const Pn=m0();let or=class extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class P1{constructor(t){this.props=t}}function O1(e){return new P1(e)}function Kd(e){return t=>n=>z.Delay(()=>{const r=fa(e.props.partnerId);return z.Bind(ha(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new or(2,[new me(2,[o])])),z.Zero()))})}function D1(e){return t=>n=>r=>z.Delay(()=>{const o=fa(e.props.partnerId);return z.Bind(ha(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new or(3,[s])),z.Zero()))})}function F1(e,t,n){return ha(e.props.backendUrl,e.props.accessToken,fa(e.props.partnerId),t,void 0)}let Ur=class extends ie{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function V1(){return[new Ur(new me(0,[]),og,ng,ag(20)),Le()]}function L1(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new Ur(new me(1,[]),n.SearchText,a,n.PageSize),Xe(l=>{const c=new ta(n.SearchText,a,n.PageSize);Mr(Kd(e)(c)(l))})]}case 2:return[new Ur(t.fields[0],n.SearchText,n.Sort,n.PageSize),Le()];case 3:{const a=t.fields[0];return[new Ur((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new me(2,[new w(1,[o.fields[0]])]):new me(2,[new w(0,[new hc(ot(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new me(2,[new w(1,[s.fields[0]])]):new me(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new me(2,[new w(1,[i.fields[0]])]):new me(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Le()]}case 4:return[new Ur(new me(1,[]),n.SearchText,n.Sort,n.PageSize),Xe(a=>{const l=new ta(n.SearchText,n.Sort,n.PageSize);Mr(Kd(e)(l)(a))})];default:return[new Ur(n.Data,sg(t.fields[0]),n.Sort,n.PageSize),Le()]}}function Zd(e,t,n,r){let o,s;return m("div",O(k([["className",ae(" ",["flex-grow","max-w-md"])],(o=[m("label",{for:"search",children:"Search",className:ae(" ",["block","text-sm","font-medium","text-gray-700"])}),m("div",O(k([["className","mt-1"],(s=[m("input",{id:"search",name:"search",type:"text",className:ae(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",I.Children.toArray(Array.from(s))])])))],["children",I.Children.toArray(Array.from(o))])])))}function B1(e){let t,n;return m("div",O(k([["className","pt-6"],(t=[m("div",O(k([["className",ae(" ",["flex","justify-end"])],(n=[m("button",{type:"search",children:"Search",className:ae(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function Jd(e){return["fillRule",e]}function Yd(e){return["clipRule",e]}const U1=m("svg",O(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",O(k([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),Jd("evenodd"),Yd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),z1=m("svg",O(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",O(k([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),Jd("evenodd"),Yd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),Xd=m("svg",O(k([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",I.Children.toArray(Array.from(e))]})()]))),j1=m("svg",O(k([["className",ae(" ",["h-5","w-5"])],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));return["children",I.Children.toArray(Array.from(e))]})()])));function Qd(e){const t=e.child,n=e.onClose;return hu(()=>{const r=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",r),{Dispose(){window.removeEventListener("keydown",r)}}},[]),t}function H1(e){return e}const ef=pe();function ys(e){return Array.from(e)}function W1(e){return Wo(e,"O")}function G1(e){return Ig(e)}function q1(){return pe()}function K1(e){return Wo(e,"O")}function Z1(e,t){return JSON.stringify(t,void 0,nt(e))}function J1(e){return t=>Tl(zt(e,t),()=>ef)}function tf(e,t,n,r){let o;const s=new ft(pe());let i;const a=Me(r);i=a===""?e:Ru(a,s,e);let l;if(ul(r)){const c=An(d=>{const u=Xu(t,wr(d)),h=vn(i,t,n,d[1]);return f=>p=>{const _=Hh(f,d);return(!n||n&&_!=null)&&(p[u]=h(_)),p}},Yr(r));l=d=>oo((u,h)=>h(d)(u),{},c)}else if(cl(r))l=c=>{const d=jh(c,r),u=d[0],h=d[1],f=h.length|0;if(f===0)return wr(u);{const p=f|0,_=dl(u),$=Jo(new Array(p+1),0,p+1,null);St($,0,wr(u));for(let v=1;v<=p;v++){const y=vn(i,t,n,fe(v-1,_)[1]);St($,v,y(fe(v-1,h)))}return $}};else throw new Error((o=Me(r),Qt(Ut(`Cannot generate auto encoder for %s. Please pass an extra encoder.
31
+ `,n.getAllResponseHeaders())),{Compare:Zr}),new Vd(d,l,u,n.responseURL,p,h)))};const r=Re(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{we(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(nt(a.fields[0]));break}case 3:{n.send(nt(a.fields[0]));break}case 2:{n.send(nt(a.fields[0]));break}default:n.send()}})}function Jw(e,t,n){e:for(;;){const r=e,o=t,s=n;if(K(s)){const i=r;return i.tag===1?new w(1,[i.fields[0]]):new w(0,[Xo(i.fields[0])])}else{let i;const a=o(D(s));if(a.tag===1)i=new w(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new w(1,[l.fields[0]]):new w(0,[kt(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=b(s);continue e}}}function Yw(e,t){return Jw(new w(0,[Be()]),e,t)}function Xw(e){return Yw(t=>t,e)}function fa(e){return new Xl(fn(e))}function _s(e){return`${e}/account-registry/admin`}const Qw=5,e1=1e3;function zd(e,t,n,r){return z.Delay(()=>{const o=da(Ld(Qt(Ut("Bearer %s"))(n)),r);return z.Bind(Ud(o),s=>{let i,a;const l=s,c=l.statusCode|0;return i=c|0,i>=200&&i<=299?z.Return(l):(a=c|0,(a===429?!0:a>=500)&&e>=1?z.Bind(_u(t),()=>z.ReturnFrom(zd(e-1,t,n,r))):z.Return(l))})})}const bs=e=>t=>zd(Qw,e1,e,t);function t1(e,t){return z.Delay(()=>{let n;const r=bs(t)(_o(new Vr(0,[]),Br(`${_s(e)}/partners`)));return n=z.Bind(r,o=>z.Return(new w(0,[o]))),z.Bind(n,o=>{const s=o;if(s.tag===1)return z.Return(new w(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){let a;const l=tr(_e(nr(Xs(g$()),new tn(1,[]))),i.responseText);return a=l.tag===1?new w(1,[l.fields[0]]):Xw(Wn(mg,l.fields[0])),z.Return(a)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function n1(e,t,n,r){const o=fn(n),s=hn(r);return z.Delay(()=>{let i;const a=bs(t)(_o(new Vr(0,[]),Br(`${_s(e)}/partners/${o}/accounts/${s}`)));return i=z.Bind(a,l=>z.Return(new w(0,[l]))),z.Bind(i,l=>{const c=l;if(c.tag===1)return z.Return(new w(1,[c.fields[0]]));{const d=c.fields[0];if(d.statusCode===200){const u=tr(_e(nr(_$(),new tn(1,[]))),d.responseText);return z.Return(u)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function ha(e,t,n,r,o){return z.Delay(()=>{let s,i,a,l;const c="?"+ae("&",Dl(h=>h,k([(s=Gu(r.SearchText),El(s)?void 0:`search=${encodeURIComponent(s.trim())}`),(i=rg(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=qu(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)])));let d;const u=bs(t)((l=_o(new Vr(0,[]),Br(`${_s(e)}/partners/${kr(n)}/accounts${c}`)),o==null?l:da(new Dd("token",o),l)));return d=z.Bind(u,h=>z.Return(new w(0,[h]))),z.Bind(d,h=>{const f=h;if(f.tag===1)return z.Return(new w(1,[f.fields[0]]));{const p=f.fields[0];if(p.statusCode===200){const _=tr(_e(nr(v$(),new tn(1,[]))),p.responseText);return z.Return(_)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function r1(e,t,n){const r=hn(n);return z.Delay(()=>{let o;const s=bs(t)(_o(new Vr(0,[]),Br(`${_s(e)}/search-by-id/${r}`)));return o=z.Bind(s,i=>z.Return(new w(0,[i]))),z.Bind(o,i=>{const a=i;if(a.tag===1)return z.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const c=tr(_e(nr(C$(),new tn(1,[]))),l.responseText);return z.Return(c)}else return z.Return(new w(1,["Unexpected response from backend"]))}})})}function o1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const s1=Rn(o1);function i1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const a1=Rn(i1);function l1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}const c1=Rn(l1);function u1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}const d1=Rn(u1);function f1(e,t){return m("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),m("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}const h1=Rn(f1);class jd extends j{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function p1(e,t,n){let r,o;return m("li",O(k([["key",e],["className","flex"],(r=[m("div",O(k([["className","flex items-center"],(o=Ee(A(()=>{let s;return B(n?Et():E((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},m(a1,s))),A(()=>E(m("a",O(Ee(A(()=>B(E(["children",e]),A(()=>B(t!=null?E(["href",Qn(N(t))]):Et(),A(()=>E(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",I.Children.toArray(Array.from(o))])])))],["children",I.Children.toArray(Array.from(r))])])))}function m1(e){let t,n;return m("nav",O(k([["className","pt-2 mb-6"],["aria-label","Breadcrumb"],(t=[m("ol",O(k([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Tp((r,o)=>p1(o.fields[0][0],o.fields[0][1],r===0),e),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function wt(e,t){return new jd([e,mo(t)])}function Hd(){return wt("Partners",new J(0,[]))}function Wd(e,t){return wt(t,new J(1,[e]))}function $1(e){return wt("Super",new J(4,[e]))}function g1(e){return wt("Benefits",new J(5,[e]))}function w1(e){return wt("Bank Details",new J(6,[e]))}function _1(e){return wt("Directory",new J(2,[e]))}function b1(e){return wt("Workspace",new J(7,[e]))}function y1(e){return wt("Accounts",new J(3,[e]))}function v1(e){return new jd([e,void 0])}function x1(e,t){let n;return wt("Directory",(n=[e,t],new J(9,[n[0],n[1]])))}function C1(e,t){let n;return wt("Users",(n=[e,t],new J(10,[n[0],n[1]])))}function S1(e,t){let n;return wt("Super",(n=[e,t],new J(11,[n[0],n[1]])))}function k1(e,t){let n;return wt("Benefits",(n=[e,t],new J(12,[n[0],n[1]])))}function A1(e,t){let n;return wt("Bank Details",(n=[e,t],new J(13,[n[0],n[1]])))}function E1(e,t){let n;return wt("Salary Packaging",(n=[e,t],new J(14,[n[0],n[1]])))}function I1(e,t){let n;return wt("Workspace",(n=[e,t],new J(15,[n[0],n[1]])))}function bo(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,f=h.Name;n=f.tag===2?f.fields[0].tag===1?es(h.Id):ui(f.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,f=h.Name;o=f.tag===2?f.fields[0].tag===1?ts(h.Id):ui(f.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,d,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,d=a),c){case 0:{i=k([Hd(),Wd(d.Id,n),y1(d.Id),v1(o)]);break}case 1:{i=k([Hd(),Wd(u.Id,n)]);break}default:i=Be()}return m1((t=e.page,t.tag===16||t.tag===1||t.tag===3?i:t.tag===4?ot(i,re($1(t.fields[0]))):t.tag===5?ot(i,re(g1(t.fields[0]))):t.tag===6?ot(i,re(w1(t.fields[0]))):t.tag===2?ot(i,re(_1(t.fields[0]))):t.tag===7?ot(i,re(b1(t.fields[0]))):t.tag===8?i:t.tag===9?ot(i,re(x1(t.fields[0],t.fields[1]))):t.tag===10?ot(i,re(C1(t.fields[0],t.fields[1]))):t.tag===11?ot(i,re(S1(t.fields[0],t.fields[1]))):t.tag===12?ot(i,re(k1(t.fields[0],t.fields[1]))):t.tag===13?ot(i,re(A1(t.fields[0],t.fields[1]))):t.tag===14?ot(i,re(E1(t.fields[0],t.fields[1]))):t.tag===15?ot(i,re(I1(t.fields[0],t.fields[1]))):i))}class T1 extends j{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function N1(e){return new T1(e)}function M1(e){return e.fields[0]}function Gd(e,t,n){const r=(e===t?"border-indigo-500 text-indigo-600 bg-indigo-100":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 hover:bg-gray-200")+" whitespace-nowrap p-3 border-r-2 font-medium text-sm";return N1(m("a",O(Ee(A(()=>B(E(["key",t]),A(()=>B(E(["children",t]),A(()=>B(E(["className",r]),A(()=>e!==t?E(["href",Qn(re(n))]):Et())))))))))))}function qd(e){let t,n;const r=e.headers,o=Yn(100);return m("div",O(k([["ref",s=>{const i=$p(s);if(i!=null){const a=i;o[1](~~a.offsetTop)}}],["className","relative"],(t=[m("div",{className:"w-40 mr-6"}),m("nav",O(k([["className","fixed bottom-14 flex flex-col w-40 border-r border-gray-300 mr-6"],["style",{top:o[0]}],(n=De(M1,r),["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}class R1 extends ie{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const Pn=m0();let or=class extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class P1{constructor(t){this.props=t}}function O1(e){return new P1(e)}function Kd(e){return t=>n=>z.Delay(()=>{const r=fa(e.props.partnerId);return z.Bind(ha(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new or(2,[new me(2,[o])])),z.Zero()))})}function D1(e){return t=>n=>r=>z.Delay(()=>{const o=fa(e.props.partnerId);return z.Bind(ha(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new or(3,[s])),z.Zero()))})}function F1(e,t,n){return ha(e.props.backendUrl,e.props.accessToken,fa(e.props.partnerId),t,void 0)}let Ur=class extends ie{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function V1(){return[new Ur(new me(0,[]),og,ng,ag(20)),Le()]}function L1(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new Ur(new me(1,[]),n.SearchText,a,n.PageSize),Xe(l=>{const c=new ta(n.SearchText,a,n.PageSize);Mr(Kd(e)(c)(l))})]}case 2:return[new Ur(t.fields[0],n.SearchText,n.Sort,n.PageSize),Le()];case 3:{const a=t.fields[0];return[new Ur((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new me(2,[new w(1,[o.fields[0]])]):new me(2,[new w(0,[new hc(ot(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new me(2,[new w(1,[s.fields[0]])]):new me(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new me(2,[new w(1,[i.fields[0]])]):new me(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Le()]}case 4:return[new Ur(new me(1,[]),n.SearchText,n.Sort,n.PageSize),Xe(a=>{const l=new ta(n.SearchText,n.Sort,n.PageSize);Mr(Kd(e)(l)(a))})];default:return[new Ur(n.Data,sg(t.fields[0]),n.Sort,n.PageSize),Le()]}}function Zd(e,t,n,r){let o,s;return m("div",O(k([["className",ae(" ",["flex-grow","max-w-md"])],(o=[m("label",{for:"search",children:"Search",className:ae(" ",["block","text-sm","font-medium","text-gray-700"])}),m("div",O(k([["className","mt-1"],(s=[m("input",{id:"search",name:"search",type:"text",className:ae(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",I.Children.toArray(Array.from(s))])])))],["children",I.Children.toArray(Array.from(o))])])))}function B1(e){let t,n;return m("div",O(k([["className","pt-6"],(t=[m("div",O(k([["className",ae(" ",["flex","justify-end"])],(n=[m("button",{type:"search",children:"Search",className:ae(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",I.Children.toArray(Array.from(n))])])))],["children",I.Children.toArray(Array.from(t))])])))}function Jd(e){return["fillRule",e]}function Yd(e){return["clipRule",e]}const U1=m("svg",O(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",O(k([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),Jd("evenodd"),Yd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),z1=m("svg",O(k([["className",ae(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=re(m("path",O(k([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),Jd("evenodd"),Yd("evenodd")]))));return["children",I.Children.toArray(Array.from(t))]})()]))),Xd=m("svg",O(k([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",I.Children.toArray(Array.from(e))]})()]))),j1=m("svg",O(k([["className",ae(" ",["h-5","w-5"])],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=re(m("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));return["children",I.Children.toArray(Array.from(e))]})()])));function Qd(e){const t=e.child,n=e.onClose;return hu(()=>{const r=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",r),{Dispose(){window.removeEventListener("keydown",r)}}},[]),t}function H1(e){return e}const ef=pe();function ys(e){return Array.from(e)}function W1(e){return Wo(e,"O")}function G1(e){return Ig(e)}function q1(){return pe()}function K1(e){return Wo(e,"O")}function Z1(e,t){return JSON.stringify(t,void 0,nt(e))}function J1(e){return t=>Tl(zt(e,t),()=>ef)}function tf(e,t,n,r){let o;const s=new ft(pe());let i;const a=Me(r);i=a===""?e:Ru(a,s,e);let l;if(ul(r)){const c=An(d=>{const u=Xu(t,wr(d)),h=vn(i,t,n,d[1]);return f=>p=>{const _=Hh(f,d);return(!n||n&&_!=null)&&(p[u]=h(_)),p}},Yr(r));l=d=>oo((u,h)=>h(d)(u),{},c)}else if(cl(r))l=c=>{const d=jh(c,r),u=d[0],h=d[1],f=h.length|0;if(f===0)return wr(u);{const p=f|0,_=dl(u),$=Jo(new Array(p+1),0,p+1,null);St($,0,wr(u));for(let v=1;v<=p;v++){const y=vn(i,t,n,fe(v-1,_)[1]);St($,v,y(fe(v-1,h)))}return $}};else throw new Error((o=Me(r),Qt(Ut(`Cannot generate auto encoder for %s. Please pass an extra encoder.
32
32
 
33
33
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=l,l}function vn(e,t,n,r){const o=Me(r),s=Pu(o,e);if(s==null)if(rl(r)){const i=vn(e,t,n,Jr(r));return a=>ys(De(i,a))}else if(Qs(r))switch(Me(il(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Me(r);return Cl(Ut(`Cannot generate auto encoder for %s.
34
34
  Thoth.Json.Net only support the following enum types:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-account-registry",
3
- "version": "0.1.1852",
3
+ "version": "0.1.1853",
4
4
  "description": "Flare Superhero Account Registry Component",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",