import{o as s,w as p}from"./app-BgLa5dit.js";import{a as u}from"./Zwjmkasg.chunk.js";import{N as i}from"./C9Rwpp7a.chunk.js";function T(t,e,c,n){if(!t)return[];const a=e?t.filter(r=>r.province===e):t;if(c==="Australia"&&(!n||n===u.Tertiary)){const r=t.filter(o=>o.data.customerType===u.Tertiary);return p.uniq([...a,...r],o=>o.name)}return a}function F(t,e,c,n){const a=s(i.countries()),r=s(i.cftRegions()),o=s(i.cftCountries(t)),f=s(i.cftProvinces(t,e)),m=s(i.customerFormationTemplates(t,e,"")),l=T(m.data,c,e,n);return{countries:a,cftRegions:r,cftCountries:o,cftProvinces:f,customerFormationTemplates:l,isLoading:!m.hasCompleted}}export{F as u};
//# sourceMappingURL=DBvERro4.chunk.js.map
