@flarehr/apollo-super-selection-app 0.3.6218 → 0.3.6229
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.
|
@@ -20,7 +20,7 @@ Thoth.Json.Net only support the following enum types:
|
|
|
20
20
|
- int
|
|
21
21
|
- uint32
|
|
22
22
|
If you can't use one of these types, please pass an extra decoder.
|
|
23
|
-
`))(u);return h=>m(h)}}else if(tl(r))if(hi(r)){const f=Fn(u=>Me(e,t,!1,u),il(r));return u=>m=>Array.isArray(m)?Ke(h=>fl(en(h)),Ki(0,f,u,m)):new d(1,[[u,new S(0,["an array",m])]])}else switch(te(nl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Me(e,t,!0,ue(0,ze(r))),u=>m=>Cd(J(o),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Me(e,t,!1,ue(0,ze(r))),u=>m=>Xo(J(s),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Me(e,t,!1,ue(0,ze(r))),u=>m=>Ad(J(i),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Me(e,t,!1,ue(0,ze(r))),m=Me(e,t,!1,ue(1,ze(r)));let h;const p=k([g=>w=>Id(J(u),J(m),g,w),(a=Md(J(u),J(m)),g=>w=>Xo(J(a),g,w))]);return h=g=>w=>Ed(p,g,w),g=>w=>Fd(Td,J(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Me(e,t,!1,ue(0,ze(r)));return m=>h=>{const p=Qo(J(u),m,h);return p.tag===0?new d(0,[$d(p.fields[0])]):new d(1,[p.fields[0]])}}default:return ns(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>bd(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>gd(f,u);case"System.String":return f=>u=>Ji(f,u);case"System.Char":return f=>u=>_d(f,u);case"System.SByte":return Go;case"System.Byte":return Wo;case"System.Int16":return qo;case"System.UInt16":return Zo;case"System.Int32":return Jo;case"System.UInt32":return Ko;case"System.Double":return f=>u=>yd(f,u);case"System.Single":return f=>u=>vd(f,u);case"System.DateTime":return f=>u=>xd(f,u);case"System.DateTimeOffset":return f=>u=>Sd(f,u);case"System.TimeSpan":return f=>u=>kd(f,u);case"System.Guid":return f=>u=>wd(f,u);case"System.Object":return f=>u=>new d(0,[u]);default:return ns(e,t,n,r)}else{const f=l;return u=>m=>f.contents(u)(m)}}function Od(e){return $i({Compare:Er})}function Yi(e,t,n){const r=Mr(t,new Dr(0,[]));return Me(Od(),r,!1,e)}class Ld extends K{constructor(t){super(),this.SmsfChoice=t}}function Vd(){return Xt("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Ld,()=>[["SmsfChoice",Gt(Dd())]])}class Pd extends K{constructor(t,n,r,o,s,i,a,c,l){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=o,this.BankAccountName=s,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=c,this.MemberFamilyName=l}}function Dd(){return Xt("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Pd,()=>[["Abn",oe],["FundName",oe],["FundAddress",Ud()],["Bsb",oe],["BankAccountName",oe],["BankAccountNumber",oe],["ElectronicServiceAddress",oe],["MemberFirstName",Gt(oe)],["MemberFamilyName",Gt(oe)]])}class Rd extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s}}function Ud(){return Xt("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Rd,()=>[["AddressLine1",oe],["AddressLine2",Gt(oe)],["City",oe],["State",oe],["Postcode",oe]])}class zd extends K{constructor(t){super(),this.BankDetails=t}}function Hd(){return Xt("SuperSelection.UI.BackendService.BsbLookupResponse",[],zd,()=>[["BankDetails",Gt(Gd())]])}class jd extends K{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function Gd(){return Xt("SuperSelection.UI.BackendService.BankDetailsDto",[],jd,()=>[["Bsb",oe],["Bank",oe],["Branch",oe]])}class Wd{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}}function qd(e,t){return new Wd(e,t)}function Zd(e){return Kd(e,5,Q.Delay(()=>{let t;return Q.Bind(Vi((t=Oi(new Vr(0,[]),Ii(`${e.baseUrl}/v1.0/super-choice/smsf`)),Li(Bi(`Bearer ${e.accessToken}`),t))),n=>{const r=n;return r.statusCode===200?Q.Return(Zi(J(Yi(Vd(),new Dr(1,[]))),r.responseText)):Q.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}function Jd(e,t){return Q.Delay(()=>{let n;return Q.Bind(Vi((n=Oi(new Vr(0,[]),Ii(`${e.baseUrl}/v1.0/bsb-lookup/${t}`)),Li(Bi(`Bearer ${e.accessToken}`),n))),r=>{const o=r;return o.statusCode===200?Q.Return(Zi(J(Yi(Hd(),new Dr(1,[]))),o.responseText)):Q.Return(new d(1,["Failed to lookup BSB"]))})})}function Kd(e,t,n){const r=o=>Q.Delay(()=>Q.Bind(n,s=>{const i=s;return i.tag===1?o>1?Q.Bind(Dl(1e3),()=>Q.ReturnFrom(r(o-1))):Q.Return(new d(1,[i.fields[0]])):Q.Return(new d(0,[i.fields[0]]))}));return r(t)}class Yd{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Xd(e,t){t.Subscribe(new Yd(e))}class Qd{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return tf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class ef extends Qd{}function tf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class nf{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new ef}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function rf(e,t){console.error(Be(e),t)}function of(e,t){let n,r=new nf(e);r.AutoReset=!1,n=r,Xd(t,n.Elapsed()),n.Enabled=!0,n.Start()}function rs(e,t,n){yn(r=>{try{r(t)}catch(o){e(o)}},n)}function W(){return se()}function Ur(e,t){return Or(n=>r=>{n(o=>{r(e(o))})},t)}function zr(e){return O(e)}function Xi(e,t,n,r){return O(o=>{e(Q.Delay(()=>Q.Bind(Vl(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),Q.Zero()})))})}function Qi(e){of(1,t=>{Ul(e)})}class sf extends K{constructor(t,n,r,o,s,i,a,c,l,f,u,m,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=o,this.FundAddressLine2=s,this.FundCity=i,this.FundState=a,this.FundPostcode=c,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=u,this.BankAccountBsb=m,this.BankAccountNumber=h}}function Hr(e,t){const n={detail:t};return new CustomEvent(e,n)}const af=Hr("smsf-loaded",{sender:"super-smsf"}),uf=Hr("smsf-cancelled",{sender:"super-smsf"});function lf(e){return Hr("smsf-completed",{bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:ci(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class jr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Gr(e){let t;t=e.tag===1?uf:e.tag===2?lf(e.fields[0]):af,document.dispatchEvent(t)}function cf(e){return zr(t=>{Gr(new jr(2,[e]))})}function df(){return zr(e=>{Gr(new jr(0,[]))})}function ff(){return zr(e=>{Gr(new jr(1,[]))})}function hf(){return se()}function Wr(e){return j("/",e)}function mf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Wr(t),n])}function ea(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+Wr(t),r])}}function pf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Wr(n),o]);return}}function _f(e,t){yn(n=>{ea(e,n[0],n[1])},t)}function os(e,t,n,r,o,s){return yn(i=>{mf(e,i)},n),yn(i=>{ea(e,i[0],i[1])},r),Ir(o,El(i=>pf(e,t,i[0],i[1]),s))}function wf(){return[se(),fd({Compare:Se}),se()]}function gf(e,t,n,r,o){return sr(e,r)?[ge(e,n),r,o]:[n,dd(e,r),ge([e,t],o)]}function bf(e){return bl((t,n)=>gf(t[0],t[1],n[0],n[1],n[2]),e,wf())}const yf=se();function ss(e,t){const n=hd(Or(i=>i[0],e),{Compare:Se}),r=bf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,se(),e,se()];{const i=Al(a=>sr(a[0],o),e);return[s,i[1],i[0],Cl(a=>!sr(a[0],n),r[2])]}}function vf(e,t,n,r){const o=Se(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=Se(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function xf(e,t,n,r,o){const s=vf(t,n,r,o);return V(()=>rc(s,e))}function Sf(e,t,n){return xf(e,t,n,0,(r,o)=>r+o)}class Ct extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class kf{constructor(t){this.state=new Ct(0,[$r(new Array(Eo(t,10)),0,Eo(t,10),null),0])}}function Cf(e){return new kf(e)}function is(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Ct(0,[o,n]):e.state=new Ct(1,[o,n,s]),Be(ue(r,o))}else return}function Af(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];rt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Ct(1,[Ef(e,o,s),s.length,0]):e.state=new Ct(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];rt(o,r,t);const s=(r+1)%o.length|0;e.state=new Ct(1,[o,s,r])}}function Ef(e,t,n){return Array.from(V(()=>he(lc(t,n),V(()=>he(cc(t,n),V(()=>dc(r=>H(Ze()),Sf(0,1,n.length))))))))}class qr extends K{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function ta(e,t,n){return new qr(e,t,r=>hf(),n,J(r=>{const o=$(n)(r);return s=>{o(s)}}),r=>{rf(r[0],r[1])},[r=>!1,r=>{}])}function Nf(e,t){return new qr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Ff(e){return e.init}function Mf(e,t,n,r,o,s,i){const a=$(e)(i.init),c=Rn(t)($(i.update)),l=Rn(n)($(i.view)),f=Rn(r)($(i.setState));return new qr(a,J(c),$(o)(i.subscribe),J(l),J(f),i.onError,s(i.termination))}function Tf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,c=Cf(10);let l=!1,f=s,u=yf,m=!1;const h=w=>{m||(Af(c,w),l||(l=!0,g(),l=!1))},p=$(e)(h),g=()=>{let w,y=is(c);for(;!m&&y!=null;){const x=v(y);if(a[0](x))_f(n.onError,u),a[1](f),m=!0;else{const b=n.update(x,f),U=b[0],ne=n.subscribe(U);n.setState(U,p),rs(Ae=>{n.onError([Ht(Nt("Error handling the message: %A"))(x),Ae])},p,b[1]),f=U,u=(w=ss(u,ne),os(n.onError,p,w[0],w[1],w[2],w[3])),y=is(c)}}};l=!0,n.setState(s,p),rs(w=>{n.onError([Ht(Nt("Error intitializing:")),w])},p,o[1]),u=(r=ss(u,i),os(n.onError,p,r[0],r[1],r[2],r[3])),g(),l=!1}function $f(e,t){Tf(J(n=>n),e,t)}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var na={exports:{}},ra={};const If=Bf(nu);/**
|
|
23
|
+
`))(u);return h=>m(h)}}else if(tl(r))if(hi(r)){const f=Fn(u=>Me(e,t,!1,u),il(r));return u=>m=>Array.isArray(m)?Ke(h=>fl(en(h)),Ki(0,f,u,m)):new d(1,[[u,new S(0,["an array",m])]])}else switch(te(nl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Me(e,t,!0,ue(0,ze(r))),u=>m=>Cd(J(o),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Me(e,t,!1,ue(0,ze(r))),u=>m=>Xo(J(s),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Me(e,t,!1,ue(0,ze(r))),u=>m=>Ad(J(i),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Me(e,t,!1,ue(0,ze(r))),m=Me(e,t,!1,ue(1,ze(r)));let h;const p=k([g=>w=>Id(J(u),J(m),g,w),(a=Md(J(u),J(m)),g=>w=>Xo(J(a),g,w))]);return h=g=>w=>Ed(p,g,w),g=>w=>Fd(Td,J(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Me(e,t,!1,ue(0,ze(r)));return m=>h=>{const p=Qo(J(u),m,h);return p.tag===0?new d(0,[$d(p.fields[0])]):new d(1,[p.fields[0]])}}default:return ns(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>bd(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>gd(f,u);case"System.String":return f=>u=>Ji(f,u);case"System.Char":return f=>u=>_d(f,u);case"System.SByte":return Go;case"System.Byte":return Wo;case"System.Int16":return qo;case"System.UInt16":return Zo;case"System.Int32":return Jo;case"System.UInt32":return Ko;case"System.Double":return f=>u=>yd(f,u);case"System.Single":return f=>u=>vd(f,u);case"System.DateTime":return f=>u=>xd(f,u);case"System.DateTimeOffset":return f=>u=>Sd(f,u);case"System.TimeSpan":return f=>u=>kd(f,u);case"System.Guid":return f=>u=>wd(f,u);case"System.Object":return f=>u=>new d(0,[u]);default:return ns(e,t,n,r)}else{const f=l;return u=>m=>f.contents(u)(m)}}function Od(e){return $i({Compare:Er})}function Yi(e,t,n){const r=Mr(t,new Dr(0,[]));return Me(Od(),r,!1,e)}class Ld extends K{constructor(t){super(),this.SmsfChoice=t}}function Vd(){return Xt("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Ld,()=>[["SmsfChoice",Gt(Dd())]])}class Pd extends K{constructor(t,n,r,o,s,i,a,c,l){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=o,this.BankAccountName=s,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=c,this.MemberFamilyName=l}}function Dd(){return Xt("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Pd,()=>[["Abn",oe],["FundName",oe],["FundAddress",Ud()],["Bsb",oe],["BankAccountName",oe],["BankAccountNumber",oe],["ElectronicServiceAddress",oe],["MemberFirstName",Gt(oe)],["MemberFamilyName",Gt(oe)]])}class Rd extends K{constructor(t,n,r,o,s){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s}}function Ud(){return Xt("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Rd,()=>[["AddressLine1",oe],["AddressLine2",Gt(oe)],["City",oe],["State",oe],["Postcode",oe]])}class zd extends K{constructor(t){super(),this.BankDetails=t}}function Hd(){return Xt("SuperSelection.UI.BackendService.BsbLookupResponse",[],zd,()=>[["BankDetails",Gt(Gd())]])}class jd extends K{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function Gd(){return Xt("SuperSelection.UI.BackendService.BankDetailsDto",[],jd,()=>[["Bsb",oe],["Bank",oe],["Branch",oe]])}class Wd{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}}function qd(e,t){return new Wd(e,t)}function Zd(e){return Kd(e,5,Q.Delay(()=>{let t;return Q.Bind(Vi((t=Oi(new Vr(0,[]),Ii(`${e.baseUrl}/v1.0/super-choice/smsf`)),Li(Bi(`Bearer ${e.accessToken}`),t))),n=>{const r=n;return r.statusCode===200?Q.Return(Zi(J(Yi(Vd(),new Dr(1,[]))),r.responseText)):Q.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}function Jd(e,t){return Q.Delay(()=>{let n;return Q.Bind(Vi((n=Oi(new Vr(0,[]),Ii(`${e.baseUrl}/v1.0/bsb-lookup/${t}`)),Li(Bi(`Bearer ${e.accessToken}`),n))),r=>{const o=r;return o.statusCode===200?Q.Return(Zi(J(Yi(Hd(),new Dr(1,[]))),o.responseText)):Q.Return(new d(1,["Failed to lookup BSB"]))})})}function Kd(e,t,n){const r=o=>Q.Delay(()=>Q.Bind(n,s=>{const i=s;return i.tag===1?o>1?Q.Bind(Dl(1e3),()=>Q.ReturnFrom(r(o-1))):Q.Return(new d(1,[i.fields[0]])):Q.Return(new d(0,[i.fields[0]]))}));return r(t)}class Yd{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Xd(e,t){t.Subscribe(new Yd(e))}class Qd{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return tf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class ef extends Qd{}function tf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class nf{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new ef}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function rf(e,t){console.error(Be(e),t)}function of(e,t){let n,r=new nf(e);r.AutoReset=!1,n=r,Xd(t,n.Elapsed()),n.Enabled=!0,n.Start()}function rs(e,t,n){yn(r=>{try{r(t)}catch(o){e(o)}},n)}function W(){return se()}function Ur(e,t){return Or(n=>r=>{n(o=>{r(e(o))})},t)}function zr(e){return O(e)}function Xi(e,t,n,r){return O(o=>{e(Q.Delay(()=>Q.Bind(Vl(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),Q.Zero()})))})}function Qi(e){of(1,t=>{Ul(e)})}class sf extends K{constructor(t,n,r,o,s,i,a,c,l,f,u,m,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=o,this.FundAddressLine2=s,this.FundCity=i,this.FundState=a,this.FundPostcode=c,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=u,this.BankAccountBsb=m,this.BankAccountNumber=h}}function Hr(e,t){const n={detail:t};return new CustomEvent(e,n)}const af=Hr("smsf-loaded",{sender:"super-smsf"}),uf=Hr("smsf-cancelled",{sender:"super-smsf"});function lf(e){return Hr("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:ci(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class jr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Gr(e){let t;t=e.tag===1?uf:e.tag===2?lf(e.fields[0]):af,document.dispatchEvent(t)}function cf(e){return zr(t=>{Gr(new jr(2,[e]))})}function df(){return zr(e=>{Gr(new jr(0,[]))})}function ff(){return zr(e=>{Gr(new jr(1,[]))})}function hf(){return se()}function Wr(e){return j("/",e)}function mf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Wr(t),n])}function ea(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+Wr(t),r])}}function pf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Wr(n),o]);return}}function _f(e,t){yn(n=>{ea(e,n[0],n[1])},t)}function os(e,t,n,r,o,s){return yn(i=>{mf(e,i)},n),yn(i=>{ea(e,i[0],i[1])},r),Ir(o,El(i=>pf(e,t,i[0],i[1]),s))}function wf(){return[se(),fd({Compare:Se}),se()]}function gf(e,t,n,r,o){return sr(e,r)?[ge(e,n),r,o]:[n,dd(e,r),ge([e,t],o)]}function bf(e){return bl((t,n)=>gf(t[0],t[1],n[0],n[1],n[2]),e,wf())}const yf=se();function ss(e,t){const n=hd(Or(i=>i[0],e),{Compare:Se}),r=bf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,se(),e,se()];{const i=Al(a=>sr(a[0],o),e);return[s,i[1],i[0],Cl(a=>!sr(a[0],n),r[2])]}}function vf(e,t,n,r){const o=Se(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=Se(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function xf(e,t,n,r,o){const s=vf(t,n,r,o);return V(()=>rc(s,e))}function Sf(e,t,n){return xf(e,t,n,0,(r,o)=>r+o)}class Ct extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class kf{constructor(t){this.state=new Ct(0,[$r(new Array(Eo(t,10)),0,Eo(t,10),null),0])}}function Cf(e){return new kf(e)}function is(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Ct(0,[o,n]):e.state=new Ct(1,[o,n,s]),Be(ue(r,o))}else return}function Af(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];rt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Ct(1,[Ef(e,o,s),s.length,0]):e.state=new Ct(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];rt(o,r,t);const s=(r+1)%o.length|0;e.state=new Ct(1,[o,s,r])}}function Ef(e,t,n){return Array.from(V(()=>he(lc(t,n),V(()=>he(cc(t,n),V(()=>dc(r=>H(Ze()),Sf(0,1,n.length))))))))}class qr extends K{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function ta(e,t,n){return new qr(e,t,r=>hf(),n,J(r=>{const o=$(n)(r);return s=>{o(s)}}),r=>{rf(r[0],r[1])},[r=>!1,r=>{}])}function Nf(e,t){return new qr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Ff(e){return e.init}function Mf(e,t,n,r,o,s,i){const a=$(e)(i.init),c=Rn(t)($(i.update)),l=Rn(n)($(i.view)),f=Rn(r)($(i.setState));return new qr(a,J(c),$(o)(i.subscribe),J(l),J(f),i.onError,s(i.termination))}function Tf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,c=Cf(10);let l=!1,f=s,u=yf,m=!1;const h=w=>{m||(Af(c,w),l||(l=!0,g(),l=!1))},p=$(e)(h),g=()=>{let w,y=is(c);for(;!m&&y!=null;){const x=v(y);if(a[0](x))_f(n.onError,u),a[1](f),m=!0;else{const b=n.update(x,f),U=b[0],ne=n.subscribe(U);n.setState(U,p),rs(Ae=>{n.onError([Ht(Nt("Error handling the message: %A"))(x),Ae])},p,b[1]),f=U,u=(w=ss(u,ne),os(n.onError,p,w[0],w[1],w[2],w[3])),y=is(c)}}};l=!0,n.setState(s,p),rs(w=>{n.onError([Ht(Nt("Error intitializing:")),w])},p,o[1]),u=(r=ss(u,i),os(n.onError,p,r[0],r[1],r[2],r[3])),g(),l=!1}function $f(e,t){Tf(J(n=>n),e,t)}function Bf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var na={exports:{}},ra={};const If=Bf(nu);/**
|
|
24
24
|
* @license React
|
|
25
25
|
* use-sync-external-store-shim.production.min.js
|
|
26
26
|
*
|