@npm-zenwork/tax-remittance-ui 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +665 -660
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -54,7 +54,7 @@ function d6(e = {}) {
|
|
|
54
54
|
return i[s];
|
|
55
55
|
}
|
|
56
56
|
function m(y, g = null, b, x) {
|
|
57
|
-
let
|
|
57
|
+
let N = u6(
|
|
58
58
|
i ? u().pathname : "/",
|
|
59
59
|
y,
|
|
60
60
|
g,
|
|
@@ -62,11 +62,11 @@ function d6(e = {}) {
|
|
|
62
62
|
x
|
|
63
63
|
);
|
|
64
64
|
return Zn(
|
|
65
|
-
|
|
65
|
+
N.pathname.charAt(0) === "/",
|
|
66
66
|
`relative pathnames are not supported in memory history: ${JSON.stringify(
|
|
67
67
|
y
|
|
68
68
|
)}`
|
|
69
|
-
),
|
|
69
|
+
), N;
|
|
70
70
|
}
|
|
71
71
|
function h(y) {
|
|
72
72
|
return typeof y == "string" ? y : Ql(y);
|
|
@@ -683,35 +683,35 @@ function Ug(e, t, n) {
|
|
|
683
683
|
);
|
|
684
684
|
let { navigator: a } = V.useContext(Xn), { matches: i } = V.useContext(sr), s = i[i.length - 1], o = s ? s.params : {}, d = s ? s.pathname : "/", c = s ? s.pathnameBase : "/", u = s && s.route;
|
|
685
685
|
{
|
|
686
|
-
let
|
|
686
|
+
let N = u && u.path || "";
|
|
687
687
|
Wg(
|
|
688
688
|
d,
|
|
689
|
-
!u ||
|
|
690
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${
|
|
689
|
+
!u || N.endsWith("*") || N.endsWith("*?"),
|
|
690
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
691
691
|
|
|
692
|
-
Please change the parent <Route path="${
|
|
692
|
+
Please change the parent <Route path="${N}"> to <Route path="${N === "/" ? "*" : `${N}/*`}">.`
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
let m = dt(), h;
|
|
696
696
|
if (t) {
|
|
697
|
-
let
|
|
697
|
+
let N = typeof t == "string" ? Yi(t) : t;
|
|
698
698
|
It(
|
|
699
|
-
c === "/" || ((x =
|
|
700
|
-
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${
|
|
701
|
-
), h =
|
|
699
|
+
c === "/" || ((x = N.pathname) == null ? void 0 : x.startsWith(c)),
|
|
700
|
+
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${N.pathname}" was given in the \`location\` prop.`
|
|
701
|
+
), h = N;
|
|
702
702
|
} else
|
|
703
703
|
h = m;
|
|
704
704
|
let p = h.pathname || "/", y = p;
|
|
705
705
|
if (c !== "/") {
|
|
706
|
-
let
|
|
707
|
-
y = "/" + p.replace(/^\//, "").split("/").slice(
|
|
706
|
+
let N = c.replace(/^\//, "").split("/");
|
|
707
|
+
y = "/" + p.replace(/^\//, "").split("/").slice(N.length).join("/");
|
|
708
708
|
}
|
|
709
709
|
let g = n && n.state.matches.length ? (
|
|
710
710
|
// If we're in a data router, use the matches we've already identified but ensure
|
|
711
711
|
// we have the latest route instances from the manifest in case elements have changed
|
|
712
712
|
n.state.matches.map(
|
|
713
|
-
(
|
|
714
|
-
route: n.manifest[
|
|
713
|
+
(N) => Object.assign(N, {
|
|
714
|
+
route: n.manifest[N.route.id] || N.route
|
|
715
715
|
})
|
|
716
716
|
)
|
|
717
717
|
) : Pg(e, { pathname: y });
|
|
@@ -724,8 +724,8 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
724
724
|
);
|
|
725
725
|
let b = G6(
|
|
726
726
|
g && g.map(
|
|
727
|
-
(
|
|
728
|
-
params: Object.assign({}, o,
|
|
727
|
+
(N) => Object.assign({}, N, {
|
|
728
|
+
params: Object.assign({}, o, N.params),
|
|
729
729
|
pathname: Sr([
|
|
730
730
|
c,
|
|
731
731
|
// Re-encode pathnames that were decoded inside matchRoutes.
|
|
@@ -733,18 +733,18 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
733
733
|
// `new URL()` internally and we need to prevent it from treating
|
|
734
734
|
// them as separators
|
|
735
735
|
a.encodeLocation ? a.encodeLocation(
|
|
736
|
-
|
|
737
|
-
).pathname :
|
|
736
|
+
N.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
737
|
+
).pathname : N.pathname
|
|
738
738
|
]),
|
|
739
|
-
pathnameBase:
|
|
739
|
+
pathnameBase: N.pathnameBase === "/" ? c : Sr([
|
|
740
740
|
c,
|
|
741
741
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
742
742
|
// Pre-encode `%`, `?` and `#` ahead of `encodeLocation` because it uses
|
|
743
743
|
// `new URL()` internally and we need to prevent it from treating
|
|
744
744
|
// them as separators
|
|
745
745
|
a.encodeLocation ? a.encodeLocation(
|
|
746
|
-
|
|
747
|
-
).pathname :
|
|
746
|
+
N.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
747
|
+
).pathname : N.pathnameBase
|
|
748
748
|
])
|
|
749
749
|
})
|
|
750
750
|
),
|
|
@@ -915,7 +915,7 @@ function G6(e, t = [], n) {
|
|
|
915
915
|
!1,
|
|
916
916
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
917
917
|
), g = !0, x = null) : d === p && (g = !0, x = h.route.hydrateFallbackElement || null)));
|
|
918
|
-
let
|
|
918
|
+
let N = t.concat(i.slice(0, p + 1)), C = () => {
|
|
919
919
|
let w;
|
|
920
920
|
return y ? w = b : g ? w = x : h.route.Component ? w = /* @__PURE__ */ V.createElement(h.route.Component, null) : h.route.element ? w = h.route.element : w = m, /* @__PURE__ */ V.createElement(
|
|
921
921
|
Q6,
|
|
@@ -923,7 +923,7 @@ function G6(e, t = [], n) {
|
|
|
923
923
|
match: h,
|
|
924
924
|
routeContext: {
|
|
925
925
|
outlet: m,
|
|
926
|
-
matches:
|
|
926
|
+
matches: N,
|
|
927
927
|
isDataRoute: a != null
|
|
928
928
|
},
|
|
929
929
|
children: w
|
|
@@ -937,11 +937,11 @@ function G6(e, t = [], n) {
|
|
|
937
937
|
revalidation: a.revalidation,
|
|
938
938
|
component: b,
|
|
939
939
|
error: y,
|
|
940
|
-
children:
|
|
941
|
-
routeContext: { outlet: null, matches:
|
|
940
|
+
children: C(),
|
|
941
|
+
routeContext: { outlet: null, matches: N, isDataRoute: !0 },
|
|
942
942
|
onError: u
|
|
943
943
|
}
|
|
944
|
-
) :
|
|
944
|
+
) : C();
|
|
945
945
|
},
|
|
946
946
|
null
|
|
947
947
|
);
|
|
@@ -1425,9 +1425,9 @@ function I3(e, t) {
|
|
|
1425
1425
|
let n = V.useContext(gh), [a, i] = V.useState(!1), [s, o] = V.useState(!1), { onFocus: d, onBlur: c, onMouseEnter: u, onMouseLeave: m, onTouchStart: h } = t, p = V.useRef(null);
|
|
1426
1426
|
V.useEffect(() => {
|
|
1427
1427
|
if (e === "render" && o(!0), e === "viewport") {
|
|
1428
|
-
let b = (
|
|
1429
|
-
|
|
1430
|
-
o(
|
|
1428
|
+
let b = (N) => {
|
|
1429
|
+
N.forEach((C) => {
|
|
1430
|
+
o(C.isIntersecting);
|
|
1431
1431
|
});
|
|
1432
1432
|
}, x = new IntersectionObserver(b, { threshold: 0.5 });
|
|
1433
1433
|
return p.current && x.observe(p.current), () => {
|
|
@@ -1541,22 +1541,22 @@ function P3({
|
|
|
1541
1541
|
if (e === a.pathname + a.search + a.hash)
|
|
1542
1542
|
return [];
|
|
1543
1543
|
let b = /* @__PURE__ */ new Set(), x = !1;
|
|
1544
|
-
if (t.forEach((
|
|
1544
|
+
if (t.forEach((C) => {
|
|
1545
1545
|
var v;
|
|
1546
|
-
let w = s.routes[
|
|
1547
|
-
!w || !w.hasLoader || (!m.some((I) => I.route.id ===
|
|
1546
|
+
let w = s.routes[C.route.id];
|
|
1547
|
+
!w || !w.hasLoader || (!m.some((I) => I.route.id === C.route.id) && C.route.id in c && ((v = o[C.route.id]) != null && v.shouldRevalidate) || w.hasClientLoader ? x = !0 : b.add(C.route.id));
|
|
1548
1548
|
}), b.size === 0)
|
|
1549
1549
|
return [];
|
|
1550
|
-
let
|
|
1550
|
+
let N = jg(
|
|
1551
1551
|
e,
|
|
1552
1552
|
d,
|
|
1553
1553
|
i.v8_trailingSlashAwareDataRequests,
|
|
1554
1554
|
"data"
|
|
1555
1555
|
);
|
|
1556
|
-
return x && b.size > 0 &&
|
|
1556
|
+
return x && b.size > 0 && N.searchParams.set(
|
|
1557
1557
|
"_routes",
|
|
1558
|
-
t.filter((
|
|
1559
|
-
), [
|
|
1558
|
+
t.filter((C) => b.has(C.route.id)).map((C) => C.route.id).join(",")
|
|
1559
|
+
), [N.pathname + N.search];
|
|
1560
1560
|
}, [
|
|
1561
1561
|
d,
|
|
1562
1562
|
i.v8_trailingSlashAwareDataRequests,
|
|
@@ -1615,7 +1615,7 @@ var Xg = V.forwardRef(
|
|
|
1615
1615
|
defaultShouldRevalidate: y,
|
|
1616
1616
|
...g
|
|
1617
1617
|
}, b) {
|
|
1618
|
-
let { basename: x, navigator:
|
|
1618
|
+
let { basename: x, navigator: N, useTransitions: C } = V.useContext(Xn), w = typeof m == "string" && dh.test(m), v = Og(m, x);
|
|
1619
1619
|
m = v.to;
|
|
1620
1620
|
let I = V6(m, { relative: i }), S = dt(), F = null;
|
|
1621
1621
|
if (d) {
|
|
@@ -1625,7 +1625,7 @@ var Xg = V.forwardRef(
|
|
|
1625
1625
|
S.mask ? S.mask.pathname : "/",
|
|
1626
1626
|
!0
|
|
1627
1627
|
);
|
|
1628
|
-
x !== "/" && (U.pathname = U.pathname === "/" ? x : Sr([x, U.pathname])), F =
|
|
1628
|
+
x !== "/" && (U.pathname = U.pathname === "/" ? x : Sr([x, U.pathname])), F = N.createHref(U);
|
|
1629
1629
|
}
|
|
1630
1630
|
let [z, q, Z] = I3(
|
|
1631
1631
|
a,
|
|
@@ -1639,7 +1639,7 @@ var Xg = V.forwardRef(
|
|
|
1639
1639
|
relative: i,
|
|
1640
1640
|
viewTransition: p,
|
|
1641
1641
|
defaultShouldRevalidate: y,
|
|
1642
|
-
useTransitions:
|
|
1642
|
+
useTransitions: C
|
|
1643
1643
|
});
|
|
1644
1644
|
function j(U) {
|
|
1645
1645
|
t && t(U), U.defaultPrevented || M(U);
|
|
@@ -1677,10 +1677,10 @@ var F3 = V.forwardRef(
|
|
|
1677
1677
|
}, m) {
|
|
1678
1678
|
let h = Wo(o, { relative: u.relative }), p = dt(), y = V.useContext(Zd), { navigator: g, basename: b } = V.useContext(Xn), x = y != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1679
1679
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1680
|
-
B3(h) && d === !0,
|
|
1681
|
-
n || (
|
|
1682
|
-
const v =
|
|
1683
|
-
let I =
|
|
1680
|
+
B3(h) && d === !0, N = g.encodeLocation ? g.encodeLocation(h).pathname : h.pathname, C = p.pathname, w = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
|
|
1681
|
+
n || (C = C.toLowerCase(), w = w ? w.toLowerCase() : null, N = N.toLowerCase()), w && b && (w = pa(w, b) || w);
|
|
1682
|
+
const v = N !== "/" && N.endsWith("/") ? N.length - 1 : N.length;
|
|
1683
|
+
let I = C === N || !i && C.startsWith(N) && C.charAt(v) === "/", S = w != null && (w === N || !i && w.startsWith(N) && w.charAt(N.length) === "/"), F = {
|
|
1684
1684
|
isActive: I,
|
|
1685
1685
|
isPending: S,
|
|
1686
1686
|
isTransitioning: x
|
|
@@ -1725,7 +1725,7 @@ var k3 = V.forwardRef(
|
|
|
1725
1725
|
defaultShouldRevalidate: p,
|
|
1726
1726
|
...y
|
|
1727
1727
|
}, g) => {
|
|
1728
|
-
let { useTransitions: b } = V.useContext(Xn), x = $3(),
|
|
1728
|
+
let { useTransitions: b } = V.useContext(Xn), x = $3(), N = Y3(d, { relative: u }), C = o.toLowerCase() === "get" ? "get" : "post", w = typeof d == "string" && dh.test(d), v = (I) => {
|
|
1729
1729
|
if (c && c(I), I.defaultPrevented) return;
|
|
1730
1730
|
I.preventDefault();
|
|
1731
1731
|
let S = I.nativeEvent.submitter, F = (S == null ? void 0 : S.getAttribute("formmethod")) || o, z = () => x(S || I.currentTarget, {
|
|
@@ -1745,8 +1745,8 @@ var k3 = V.forwardRef(
|
|
|
1745
1745
|
"form",
|
|
1746
1746
|
{
|
|
1747
1747
|
ref: g,
|
|
1748
|
-
method:
|
|
1749
|
-
action:
|
|
1748
|
+
method: C,
|
|
1749
|
+
action: N,
|
|
1750
1750
|
onSubmit: a ? c : v,
|
|
1751
1751
|
...y,
|
|
1752
1752
|
"data-discover": !w && e === "render" ? "true" : void 0
|
|
@@ -2322,8 +2322,8 @@ function eb(e) {
|
|
|
2322
2322
|
const i = Ru(), s = () => i.status !== "pending", o = (b) => {
|
|
2323
2323
|
var x;
|
|
2324
2324
|
if (!s()) {
|
|
2325
|
-
const
|
|
2326
|
-
p(
|
|
2325
|
+
const N = new Mu(b);
|
|
2326
|
+
p(N), (x = e.onCancel) == null || x.call(e, N);
|
|
2327
2327
|
}
|
|
2328
2328
|
}, d = () => {
|
|
2329
2329
|
t = !0;
|
|
@@ -2335,8 +2335,8 @@ function eb(e) {
|
|
|
2335
2335
|
s() || (a == null || a(), i.reject(b));
|
|
2336
2336
|
}, y = () => new Promise((b) => {
|
|
2337
2337
|
var x;
|
|
2338
|
-
a = (
|
|
2339
|
-
(s() || u()) && b(
|
|
2338
|
+
a = (N) => {
|
|
2339
|
+
(s() || u()) && b(N);
|
|
2340
2340
|
}, (x = e.onPause) == null || x.call(e);
|
|
2341
2341
|
}).then(() => {
|
|
2342
2342
|
var b;
|
|
@@ -2348,20 +2348,20 @@ function eb(e) {
|
|
|
2348
2348
|
const x = n === 0 ? e.initialPromise : void 0;
|
|
2349
2349
|
try {
|
|
2350
2350
|
b = x ?? e.fn();
|
|
2351
|
-
} catch (
|
|
2352
|
-
b = Promise.reject(
|
|
2351
|
+
} catch (N) {
|
|
2352
|
+
b = Promise.reject(N);
|
|
2353
2353
|
}
|
|
2354
|
-
Promise.resolve(b).then(h).catch((
|
|
2354
|
+
Promise.resolve(b).then(h).catch((N) => {
|
|
2355
2355
|
var S;
|
|
2356
2356
|
if (s())
|
|
2357
2357
|
return;
|
|
2358
|
-
const
|
|
2358
|
+
const C = e.retry ?? (So.isServer() ? 0 : 3), w = e.retryDelay ?? t9, v = typeof w == "function" ? w(n, N) : w, I = C === !0 || typeof C == "number" && n < C || typeof C == "function" && C(n, N);
|
|
2359
2359
|
if (t || !I) {
|
|
2360
|
-
p(
|
|
2360
|
+
p(N);
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
n++, (S = e.onFail) == null || S.call(e, n,
|
|
2364
|
-
t ? p(
|
|
2363
|
+
n++, (S = e.onFail) == null || S.call(e, n, N), X3(v).then(() => u() ? void 0 : y()).then(() => {
|
|
2364
|
+
t ? p(N) : g();
|
|
2365
2365
|
});
|
|
2366
2366
|
});
|
|
2367
2367
|
};
|
|
@@ -2412,7 +2412,7 @@ function n9(e) {
|
|
|
2412
2412
|
() => t.signal,
|
|
2413
2413
|
() => b = !0
|
|
2414
2414
|
);
|
|
2415
|
-
},
|
|
2415
|
+
}, N = Kg(t.options, t.fetchOptions), C = async (w, v, I) => {
|
|
2416
2416
|
if (b)
|
|
2417
2417
|
return Promise.reject(t.signal.reason);
|
|
2418
2418
|
if (v == null && w.pages.length)
|
|
@@ -2426,7 +2426,7 @@ function n9(e) {
|
|
|
2426
2426
|
meta: t.options.meta
|
|
2427
2427
|
};
|
|
2428
2428
|
return x(M), M;
|
|
2429
|
-
})(), z = await
|
|
2429
|
+
})(), z = await N(F), { maxPages: q } = t.options, Z = I ? Q3 : H3;
|
|
2430
2430
|
return {
|
|
2431
2431
|
pages: Z(w.pages, z, q),
|
|
2432
2432
|
pageParams: Z(w.pageParams, v, q)
|
|
@@ -2437,14 +2437,14 @@ function n9(e) {
|
|
|
2437
2437
|
pages: s,
|
|
2438
2438
|
pageParams: o
|
|
2439
2439
|
}, S = v(a, I);
|
|
2440
|
-
d = await
|
|
2440
|
+
d = await C(I, S, w);
|
|
2441
2441
|
} else {
|
|
2442
2442
|
const w = e ?? s.length;
|
|
2443
2443
|
do {
|
|
2444
2444
|
const v = c === 0 ? o[0] ?? a.initialPageParam : Ff(a, d);
|
|
2445
2445
|
if (c > 0 && v == null)
|
|
2446
2446
|
break;
|
|
2447
|
-
d = await
|
|
2447
|
+
d = await C(d, v), c++;
|
|
2448
2448
|
} while (c < w);
|
|
2449
2449
|
}
|
|
2450
2450
|
return d;
|
|
@@ -2587,7 +2587,7 @@ var Cs, vi, vs, nr, Si, Ut, Yo, wi, kn, nb, ea, vg, a9 = (vg = class extends tb
|
|
|
2587
2587
|
this.state.isInvalidated || Ve(this, kn, ea).call(this, { type: "invalidate" });
|
|
2588
2588
|
}
|
|
2589
2589
|
async fetch(t, n) {
|
|
2590
|
-
var u, m, h, p, y, g, b, x,
|
|
2590
|
+
var u, m, h, p, y, g, b, x, N, C, w;
|
|
2591
2591
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
2592
2592
|
// re-start the fetch; there is a chance that the query is still in a
|
|
2593
2593
|
// pending state when that happens
|
|
@@ -2684,12 +2684,12 @@ var Cs, vi, vs, nr, Si, Ut, Yo, wi, kn, nb, ea, vg, a9 = (vg = class extends tb
|
|
|
2684
2684
|
throw Ve(this, kn, ea).call(this, {
|
|
2685
2685
|
type: "error",
|
|
2686
2686
|
error: v
|
|
2687
|
-
}), (
|
|
2687
|
+
}), (N = (x = D(this, nr).config).onError) == null || N.call(
|
|
2688
2688
|
x,
|
|
2689
2689
|
v,
|
|
2690
2690
|
this
|
|
2691
|
-
), (w = (
|
|
2692
|
-
|
|
2691
|
+
), (w = (C = D(this, nr).config).onSettled) == null || w.call(
|
|
2692
|
+
C,
|
|
2693
2693
|
this.state.data,
|
|
2694
2694
|
v,
|
|
2695
2695
|
this
|
|
@@ -2927,10 +2927,10 @@ var Sn, We, Bo, un, Ii, Ss, aa, Pa, qo, ws, Is, Ai, Ei, La, As, nt, co, Ou, zu,
|
|
|
2927
2927
|
}
|
|
2928
2928
|
let { error: g, errorUpdatedAt: b, status: x } = h;
|
|
2929
2929
|
y = h.data;
|
|
2930
|
-
let
|
|
2930
|
+
let N = !1;
|
|
2931
2931
|
if (n.placeholderData !== void 0 && y === void 0 && x === "pending") {
|
|
2932
2932
|
let Z;
|
|
2933
|
-
s != null && s.isPlaceholderData && n.placeholderData === (d == null ? void 0 : d.placeholderData) ? (Z = s.data,
|
|
2933
|
+
s != null && s.isPlaceholderData && n.placeholderData === (d == null ? void 0 : d.placeholderData) ? (Z = s.data, N = !0) : Z = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
2934
2934
|
(q = D(this, Is)) == null ? void 0 : q.state.data,
|
|
2935
2935
|
D(this, Is)
|
|
2936
2936
|
) : n.placeholderData, Z !== void 0 && (x = "success", y = ku(
|
|
@@ -2939,7 +2939,7 @@ var Sn, We, Bo, un, Ii, Ss, aa, Pa, qo, ws, Is, Ai, Ei, La, As, nt, co, Ou, zu,
|
|
|
2939
2939
|
n
|
|
2940
2940
|
), p = !0);
|
|
2941
2941
|
}
|
|
2942
|
-
if (n.select && y !== void 0 && !
|
|
2942
|
+
if (n.select && y !== void 0 && !N)
|
|
2943
2943
|
if (s && y === (o == null ? void 0 : o.data) && n.select === D(this, qo))
|
|
2944
2944
|
y = D(this, ws);
|
|
2945
2945
|
else
|
|
@@ -2949,7 +2949,7 @@ var Sn, We, Bo, un, Ii, Ss, aa, Pa, qo, ws, Is, Ai, Ei, La, As, nt, co, Ou, zu,
|
|
|
2949
2949
|
xe(this, Pa, Z);
|
|
2950
2950
|
}
|
|
2951
2951
|
D(this, Pa) && (g = D(this, Pa), y = D(this, ws), b = Date.now(), x = "error");
|
|
2952
|
-
const
|
|
2952
|
+
const C = h.fetchStatus === "fetching", w = x === "pending", v = x === "error", I = w && C, S = y !== void 0, z = {
|
|
2953
2953
|
status: x,
|
|
2954
2954
|
fetchStatus: h.fetchStatus,
|
|
2955
2955
|
isPending: w,
|
|
@@ -2966,8 +2966,8 @@ var Sn, We, Bo, un, Ii, Ss, aa, Pa, qo, ws, Is, Ai, Ei, La, As, nt, co, Ou, zu,
|
|
|
2966
2966
|
errorUpdateCount: h.errorUpdateCount,
|
|
2967
2967
|
isFetched: t.isFetched(),
|
|
2968
2968
|
isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
|
|
2969
|
-
isFetching:
|
|
2970
|
-
isRefetching:
|
|
2969
|
+
isFetching: C,
|
|
2970
|
+
isRefetching: C && !w,
|
|
2971
2971
|
isLoadingError: v && !S,
|
|
2972
2972
|
isPaused: h.fetchStatus === "paused",
|
|
2973
2973
|
isPlaceholderData: p,
|
|
@@ -3130,7 +3130,7 @@ var _o, Rr, tn, Ti, Mr, wa, wg, l9 = (wg = class extends tb {
|
|
|
3130
3130
|
this.execute(this.state.variables);
|
|
3131
3131
|
}
|
|
3132
3132
|
async execute(t) {
|
|
3133
|
-
var o, d, c, u, m, h, p, y, g, b, x,
|
|
3133
|
+
var o, d, c, u, m, h, p, y, g, b, x, N, C, w, v, I, S, F;
|
|
3134
3134
|
const n = () => {
|
|
3135
3135
|
Ve(this, Mr, wa).call(this, { type: "continue" });
|
|
3136
3136
|
}, a = {
|
|
@@ -3206,7 +3206,7 @@ var _o, Rr, tn, Ti, Mr, wa, wg, l9 = (wg = class extends tb {
|
|
|
3206
3206
|
)), Ve(this, Mr, wa).call(this, { type: "success", data: z }), z;
|
|
3207
3207
|
} catch (z) {
|
|
3208
3208
|
try {
|
|
3209
|
-
await ((
|
|
3209
|
+
await ((N = (x = D(this, tn).config).onError) == null ? void 0 : N.call(
|
|
3210
3210
|
x,
|
|
3211
3211
|
z,
|
|
3212
3212
|
t,
|
|
@@ -3218,8 +3218,8 @@ var _o, Rr, tn, Ti, Mr, wa, wg, l9 = (wg = class extends tb {
|
|
|
3218
3218
|
Promise.reject(q);
|
|
3219
3219
|
}
|
|
3220
3220
|
try {
|
|
3221
|
-
await ((w = (
|
|
3222
|
-
|
|
3221
|
+
await ((w = (C = this.options).onError) == null ? void 0 : w.call(
|
|
3222
|
+
C,
|
|
3223
3223
|
z,
|
|
3224
3224
|
t,
|
|
3225
3225
|
this.state.context,
|
|
@@ -3902,9 +3902,9 @@ function w9(e, t, n) {
|
|
|
3902
3902
|
), h = m.getOptimisticResult(o), p = !a && c;
|
|
3903
3903
|
if (V.useSyncExternalStore(
|
|
3904
3904
|
V.useCallback(
|
|
3905
|
-
(
|
|
3906
|
-
const
|
|
3907
|
-
return m.updateResult(),
|
|
3905
|
+
(N) => {
|
|
3906
|
+
const C = p ? m.subscribe(qt.batchCalls(N)) : pn;
|
|
3907
|
+
return m.updateResult(), C;
|
|
3908
3908
|
},
|
|
3909
3909
|
[m, p]
|
|
3910
3910
|
),
|
|
@@ -3927,14 +3927,14 @@ function w9(e, t, n) {
|
|
|
3927
3927
|
o,
|
|
3928
3928
|
h
|
|
3929
3929
|
), o.experimental_prefetchInRender && !So.isServer() && v9(h, a)) {
|
|
3930
|
-
const
|
|
3930
|
+
const N = u ? (
|
|
3931
3931
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
3932
3932
|
zf(o, m, i)
|
|
3933
3933
|
) : (
|
|
3934
3934
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
3935
3935
|
d == null ? void 0 : d.promise
|
|
3936
3936
|
);
|
|
3937
|
-
|
|
3937
|
+
N == null || N.catch(pn).finally(() => {
|
|
3938
3938
|
m.updateResult();
|
|
3939
3939
|
});
|
|
3940
3940
|
}
|
|
@@ -4173,7 +4173,7 @@ function j9({
|
|
|
4173
4173
|
userName: a,
|
|
4174
4174
|
children: i
|
|
4175
4175
|
}) {
|
|
4176
|
-
var
|
|
4176
|
+
var C;
|
|
4177
4177
|
const [s, o] = _(null), { accessToken: d } = z9(), c = Be(
|
|
4178
4178
|
() => (a == null ? void 0 : a.trim()) || W9(d),
|
|
4179
4179
|
[a, d]
|
|
@@ -4191,13 +4191,13 @@ function j9({
|
|
|
4191
4191
|
y.current.add(v.entityId), e == null || e(v);
|
|
4192
4192
|
});
|
|
4193
4193
|
}, [u, m, e]);
|
|
4194
|
-
const b = s !== null && u.some((w) => w.entityId === s) ? s : ((
|
|
4194
|
+
const b = s !== null && u.some((w) => w.entityId === s) ? s : ((C = u[0]) == null ? void 0 : C.entityId) ?? null, x = u.find((w) => w.entityId === b) ?? null, N = async () => {
|
|
4195
4195
|
await p();
|
|
4196
4196
|
};
|
|
4197
4197
|
return /* @__PURE__ */ r(
|
|
4198
4198
|
gb.Provider,
|
|
4199
4199
|
{
|
|
4200
|
-
value: { entities: u, isLoading: m, isError: h, selectedEntity: x, setSelectedEntityId: o, refetchEntities:
|
|
4200
|
+
value: { entities: u, isLoading: m, isError: h, selectedEntity: x, setSelectedEntityId: o, refetchEntities: N, enabledPayments: t, onPaymentRequired: n, userName: c },
|
|
4201
4201
|
children: i
|
|
4202
4202
|
}
|
|
4203
4203
|
);
|
|
@@ -5030,10 +5030,10 @@ function Ha({
|
|
|
5030
5030
|
var I;
|
|
5031
5031
|
const h = t.current;
|
|
5032
5032
|
if (!h) return;
|
|
5033
|
-
const p = h.getBoundingClientRect(), y = i === "anchor" ? p.width : i, g = window.innerHeight - p.bottom - o, b = p.top - o, x = ((I = n.current) == null ? void 0 : I.offsetHeight) ?? 0,
|
|
5033
|
+
const p = h.getBoundingClientRect(), y = i === "anchor" ? p.width : i, g = window.innerHeight - p.bottom - o, b = p.top - o, x = ((I = n.current) == null ? void 0 : I.offsetHeight) ?? 0, N = d ? Math.min(d, qf) : x, C = g < N && b > g, w = Math.max(C ? b : g, qf), v = Math.min(d ?? x, w);
|
|
5034
5034
|
u({
|
|
5035
5035
|
position: "fixed",
|
|
5036
|
-
top: Math.max(o,
|
|
5036
|
+
top: Math.max(o, C ? p.top - o - v : p.bottom + o),
|
|
5037
5037
|
// Keep the layer on screen when the trigger sits near an edge.
|
|
5038
5038
|
left: s === "end" ? Math.max(o, Math.min(p.right - y, window.innerWidth - y - o)) : Math.max(o, Math.min(p.left, window.innerWidth - y - o)),
|
|
5039
5039
|
width: y,
|
|
@@ -5053,9 +5053,9 @@ function Ha({
|
|
|
5053
5053
|
}, [e, m]), Ie(() => {
|
|
5054
5054
|
if (!e) return;
|
|
5055
5055
|
const h = (g) => {
|
|
5056
|
-
var x,
|
|
5056
|
+
var x, N;
|
|
5057
5057
|
const b = g.target;
|
|
5058
|
-
(x = t.current) != null && x.contains(b) || (
|
|
5058
|
+
(x = t.current) != null && x.contains(b) || (N = n.current) != null && N.contains(b) || a();
|
|
5059
5059
|
}, p = (g) => {
|
|
5060
5060
|
g.key === "Escape" && a();
|
|
5061
5061
|
}, y = () => m();
|
|
@@ -5085,14 +5085,14 @@ function et({
|
|
|
5085
5085
|
size: y = "md",
|
|
5086
5086
|
leadingIcon: g
|
|
5087
5087
|
}) {
|
|
5088
|
-
const [b, x] = _(!1),
|
|
5088
|
+
const [b, x] = _(!1), N = Te(null), C = Te(null), w = Un(() => x(!1), []), v = Ha({
|
|
5089
5089
|
open: b,
|
|
5090
|
-
anchorRef:
|
|
5091
|
-
layerRef:
|
|
5090
|
+
anchorRef: N,
|
|
5091
|
+
layerRef: C,
|
|
5092
5092
|
onDismiss: w,
|
|
5093
5093
|
width: "anchor",
|
|
5094
5094
|
maxHeight: xN
|
|
5095
|
-
}), I = n.find((M) => M.value === e), S = s || !!m, F = y === "sm", z = `disabled:cursor-not-allowed disabled:border-[#E5E7EB] disabled:bg-[#F9FAFB] ${I ? "disabled:text-slate-700" : ""}`, q = F ? `inline-flex w-auto items-center rounded-lg border bg-white py-1.5 pr-7 text-xs font-medium ${g ? "pl-8" : "pl-3"} focus:border-gov-400 focus:outline-none focus:ring-2 focus:ring-gov-200 ${S ? "border-red-300" : "border-slate-200"} ${z}` : `${yN(S)} text-left ${z}`, Z = /* @__PURE__ */ l("div", { className: "relative", ref:
|
|
5095
|
+
}), I = n.find((M) => M.value === e), S = s || !!m, F = y === "sm", z = `disabled:cursor-not-allowed disabled:border-[#E5E7EB] disabled:bg-[#F9FAFB] ${I ? "disabled:text-slate-700" : ""}`, q = F ? `inline-flex w-auto items-center rounded-lg border bg-white py-1.5 pr-7 text-xs font-medium ${g ? "pl-8" : "pl-3"} focus:border-gov-400 focus:outline-none focus:ring-2 focus:ring-gov-200 ${S ? "border-red-300" : "border-slate-200"} ${z}` : `${yN(S)} text-left ${z}`, Z = /* @__PURE__ */ l("div", { className: "relative", ref: N, children: [
|
|
5096
5096
|
g,
|
|
5097
5097
|
/* @__PURE__ */ r(
|
|
5098
5098
|
"button",
|
|
@@ -5118,7 +5118,7 @@ function et({
|
|
|
5118
5118
|
/* @__PURE__ */ l(
|
|
5119
5119
|
"ul",
|
|
5120
5120
|
{
|
|
5121
|
-
ref:
|
|
5121
|
+
ref: C,
|
|
5122
5122
|
role: "listbox",
|
|
5123
5123
|
style: v,
|
|
5124
5124
|
className: "overflow-y-auto overscroll-contain rounded-lg border border-slate-200 bg-white py-1 text-sm shadow-lg",
|
|
@@ -5150,7 +5150,7 @@ function et({
|
|
|
5150
5150
|
]
|
|
5151
5151
|
}
|
|
5152
5152
|
),
|
|
5153
|
-
Qa(
|
|
5153
|
+
Qa(N.current)
|
|
5154
5154
|
) : null
|
|
5155
5155
|
] });
|
|
5156
5156
|
return c ? /* @__PURE__ */ l("div", { children: [
|
|
@@ -6494,7 +6494,7 @@ const p8 = /* @__PURE__ */ ne("$ZodObject", (e, t) => {
|
|
|
6494
6494
|
const m = [], h = o.shape;
|
|
6495
6495
|
for (const p of o.keys) {
|
|
6496
6496
|
const y = h[p], g = y._zod.optin === "optional", b = y._zod.optout === "optional", x = y._zod.run({ value: u[p], issues: [] }, c);
|
|
6497
|
-
x instanceof Promise ? m.push(x.then((
|
|
6497
|
+
x instanceof Promise ? m.push(x.then((N) => rd(N, d, p, u, g, b))) : rd(x, d, p, u, g, b);
|
|
6498
6498
|
}
|
|
6499
6499
|
return s ? Yb(m, u, d, c, a.value, e) : m.length ? Promise.all(m).then(() => d) : d;
|
|
6500
6500
|
};
|
|
@@ -6508,9 +6508,9 @@ const p8 = /* @__PURE__ */ ne("$ZodObject", (e, t) => {
|
|
|
6508
6508
|
};
|
|
6509
6509
|
y.write("const input = payload.value;");
|
|
6510
6510
|
const x = /* @__PURE__ */ Object.create(null);
|
|
6511
|
-
let
|
|
6511
|
+
let N = 0;
|
|
6512
6512
|
for (const I of g.keys)
|
|
6513
|
-
x[I] = `key_${
|
|
6513
|
+
x[I] = `key_${N++}`;
|
|
6514
6514
|
y.write("const newResult = {};");
|
|
6515
6515
|
for (const I of g.keys) {
|
|
6516
6516
|
const S = x[I], F = Uf(I), z = p[I], q = ((w = z == null ? void 0 : z._zod) == null ? void 0 : w.optin) === "optional", Z = ((v = z == null ? void 0 : z._zod) == null ? void 0 : v.optout) === "optional";
|
|
@@ -6576,8 +6576,8 @@ const p8 = /* @__PURE__ */ ne("$ZodObject", (e, t) => {
|
|
|
6576
6576
|
`);
|
|
6577
6577
|
}
|
|
6578
6578
|
y.write("payload.value = newResult;"), y.write("return payload;");
|
|
6579
|
-
const
|
|
6580
|
-
return (I, S) =>
|
|
6579
|
+
const C = y.compile();
|
|
6580
|
+
return (I, S) => C(p, I, S);
|
|
6581
6581
|
};
|
|
6582
6582
|
let s;
|
|
6583
6583
|
const o = nd, d = !Th.jitless, u = d && IN.value, m = t.catchall;
|
|
@@ -7460,11 +7460,11 @@ function Ub(e, t) {
|
|
|
7460
7460
|
var b;
|
|
7461
7461
|
const h = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
7462
7462
|
if (e.external) {
|
|
7463
|
-
const x = (b = e.external.registry.get(m[0])) == null ? void 0 : b.id,
|
|
7463
|
+
const x = (b = e.external.registry.get(m[0])) == null ? void 0 : b.id, N = e.external.uri ?? ((w) => w);
|
|
7464
7464
|
if (x)
|
|
7465
|
-
return { ref:
|
|
7466
|
-
const
|
|
7467
|
-
return m[1].defId =
|
|
7465
|
+
return { ref: N(x) };
|
|
7466
|
+
const C = m[1].defId ?? m[1].schema.id ?? `schema${e.counter++}`;
|
|
7467
|
+
return m[1].defId = C, { defId: C, ref: `${N("__shared")}#/${h}/${C}` };
|
|
7468
7468
|
}
|
|
7469
7469
|
if (m[1] === n)
|
|
7470
7470
|
return { ref: "#" };
|
|
@@ -7527,21 +7527,21 @@ function Zb(e, t) {
|
|
|
7527
7527
|
const y = p.def ?? p.schema, g = { ...y }, b = p.ref;
|
|
7528
7528
|
if (p.ref = null, b) {
|
|
7529
7529
|
a(b);
|
|
7530
|
-
const
|
|
7531
|
-
if (
|
|
7530
|
+
const N = e.seen.get(b), C = N.schema;
|
|
7531
|
+
if (C.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (y.allOf = y.allOf ?? [], y.allOf.push(C)) : Object.assign(y, C), Object.assign(y, g), h._zod.parent === b)
|
|
7532
7532
|
for (const v in y)
|
|
7533
7533
|
v === "$ref" || v === "allOf" || v in g || delete y[v];
|
|
7534
|
-
if (
|
|
7534
|
+
if (C.$ref && N.def)
|
|
7535
7535
|
for (const v in y)
|
|
7536
|
-
v === "$ref" || v === "allOf" || v in
|
|
7536
|
+
v === "$ref" || v === "allOf" || v in N.def && JSON.stringify(y[v]) === JSON.stringify(N.def[v]) && delete y[v];
|
|
7537
7537
|
}
|
|
7538
7538
|
const x = h._zod.parent;
|
|
7539
7539
|
if (x && x !== b) {
|
|
7540
7540
|
a(x);
|
|
7541
|
-
const
|
|
7542
|
-
if (
|
|
7543
|
-
for (const
|
|
7544
|
-
|
|
7541
|
+
const N = e.seen.get(x);
|
|
7542
|
+
if (N != null && N.schema.$ref && (y.$ref = N.schema.$ref, N.def))
|
|
7543
|
+
for (const C in y)
|
|
7544
|
+
C === "$ref" || C === "allOf" || C in N.def && JSON.stringify(y[C]) === JSON.stringify(N.def[C]) && delete y[C];
|
|
7545
7545
|
}
|
|
7546
7546
|
e.override({
|
|
7547
7547
|
zodSchema: h,
|
|
@@ -8552,7 +8552,7 @@ function t2(e, t = "Email") {
|
|
|
8552
8552
|
return `${t} must not exceed ${m0} characters`;
|
|
8553
8553
|
if (!rc.test(n)) return ac;
|
|
8554
8554
|
}
|
|
8555
|
-
const
|
|
8555
|
+
const zz = 50;
|
|
8556
8556
|
function n2(e, t) {
|
|
8557
8557
|
if (!e.trim()) return `${t} is required`;
|
|
8558
8558
|
}
|
|
@@ -8997,12 +8997,12 @@ function TS(e) {
|
|
|
8997
8997
|
x(v.values);
|
|
8998
8998
|
}
|
|
8999
8999
|
})), [n, o, a, x]), $e.useEffect(() => n._removeUnmounted());
|
|
9000
|
-
const
|
|
9000
|
+
const N = h.current !== n, C = p.current, w = $e.useMemo(() => {
|
|
9001
9001
|
if (s)
|
|
9002
9002
|
return null;
|
|
9003
|
-
const v = !
|
|
9004
|
-
return
|
|
9005
|
-
}, [s,
|
|
9003
|
+
const v = !N && !On(C, a);
|
|
9004
|
+
return N || v ? b() : null;
|
|
9005
|
+
}, [s, N, a, C, b]);
|
|
9006
9006
|
return w !== null ? w : y;
|
|
9007
9007
|
}
|
|
9008
9008
|
function PS(e) {
|
|
@@ -9054,13 +9054,13 @@ function PS(e) {
|
|
|
9054
9054
|
},
|
|
9055
9055
|
type: Aa.CHANGE
|
|
9056
9056
|
});
|
|
9057
|
-
}, [n, i]),
|
|
9057
|
+
}, [n, i]), N = $e.useCallback(() => g.current.onBlur({
|
|
9058
9058
|
target: {
|
|
9059
9059
|
value: he(i._formValues, n),
|
|
9060
9060
|
name: n
|
|
9061
9061
|
},
|
|
9062
9062
|
type: Aa.BLUR
|
|
9063
|
-
}), [n, i._formValues]),
|
|
9063
|
+
}), [n, i._formValues]), C = $e.useCallback((v) => {
|
|
9064
9064
|
v && (y.current = {
|
|
9065
9065
|
focus: () => rn(v.focus) && v.focus(),
|
|
9066
9066
|
select: () => rn(v.select) && v.select(),
|
|
@@ -9074,9 +9074,9 @@ function PS(e) {
|
|
|
9074
9074
|
value: m,
|
|
9075
9075
|
...Mn(a) || h.disabled ? { disabled: h.disabled || a } : {},
|
|
9076
9076
|
onChange: x,
|
|
9077
|
-
onBlur:
|
|
9078
|
-
ref:
|
|
9079
|
-
}), [n, a, h.disabled, x,
|
|
9077
|
+
onBlur: N,
|
|
9078
|
+
ref: C
|
|
9079
|
+
}), [n, a, h.disabled, x, N, C, m]);
|
|
9080
9080
|
return $e.useEffect(() => {
|
|
9081
9081
|
const v = i._options.shouldUnregister || s;
|
|
9082
9082
|
i.register(n, {
|
|
@@ -9374,15 +9374,15 @@ var Zi = (e) => wt(e) && !cd(e) ? e : {
|
|
|
9374
9374
|
value: e,
|
|
9375
9375
|
message: ""
|
|
9376
9376
|
}, w0 = async (e, t, n, a, i, s) => {
|
|
9377
|
-
const { ref: o, refs: d, required: c, maxLength: u, minLength: m, min: h, max: p, pattern: y, validate: g, name: b, valueAsNumber: x, mount:
|
|
9378
|
-
if (!
|
|
9377
|
+
const { ref: o, refs: d, required: c, maxLength: u, minLength: m, min: h, max: p, pattern: y, validate: g, name: b, valueAsNumber: x, mount: N } = e._f, C = he(n, b);
|
|
9378
|
+
if (!N || t.has(b))
|
|
9379
9379
|
return {};
|
|
9380
9380
|
const w = d ? d[0] : o, v = (j) => {
|
|
9381
9381
|
if (i && w.reportValidity) {
|
|
9382
9382
|
const $ = Mn(j) ? "" : j || "";
|
|
9383
9383
|
d ? d.forEach((ee) => ee.setCustomValidity($)) : w.setCustomValidity($), w.reportValidity();
|
|
9384
9384
|
}
|
|
9385
|
-
}, I = {}, S = _h(o), F = Go(o), z = S || F, q = (x || qh(o)) && pt(o.value) && pt(
|
|
9385
|
+
}, I = {}, S = _h(o), F = Go(o), z = S || F, q = (x || qh(o)) && pt(o.value) && pt(C) || dd(o) && o.value === "" || C === "" || Array.isArray(C) && !C.length, Z = Bh.bind(null, b, a, I), M = (j, $, ee, U = br.maxLength, Y = br.minLength) => {
|
|
9386
9386
|
const O = j ? $ : ee;
|
|
9387
9387
|
I[b] = {
|
|
9388
9388
|
type: j ? U : Y,
|
|
@@ -9391,7 +9391,7 @@ var Zi = (e) => wt(e) && !cd(e) ? e : {
|
|
|
9391
9391
|
...Z(j ? U : Y, O)
|
|
9392
9392
|
};
|
|
9393
9393
|
};
|
|
9394
|
-
if (s ? !Array.isArray(
|
|
9394
|
+
if (s ? !Array.isArray(C) || !C.length : c && (!z && (q || Ht(C)) || Mn(C) && !C || F && !A2(d).isValid || S && !T2(d).isValid)) {
|
|
9395
9395
|
const { value: j, message: $ } = an(c) ? { value: !!c, message: c } : Zi(c);
|
|
9396
9396
|
if (j && (I[b] = {
|
|
9397
9397
|
type: br.required,
|
|
@@ -9404,24 +9404,24 @@ var Zi = (e) => wt(e) && !cd(e) ? e : {
|
|
|
9404
9404
|
if (!q && (!Ht(h) || !Ht(p))) {
|
|
9405
9405
|
let j, $;
|
|
9406
9406
|
const ee = Zi(p), U = Zi(h);
|
|
9407
|
-
if (!Ht(
|
|
9408
|
-
const Y = o.valueAsNumber ||
|
|
9407
|
+
if (!Ht(C) && !isNaN(C)) {
|
|
9408
|
+
const Y = o.valueAsNumber || C && +C;
|
|
9409
9409
|
Ht(ee.value) || (j = Y > ee.value), Ht(U.value) || ($ = Y < U.value);
|
|
9410
9410
|
} else {
|
|
9411
|
-
const Y = o.valueAsDate || new Date(
|
|
9412
|
-
an(ee.value) &&
|
|
9411
|
+
const Y = o.valueAsDate || new Date(C), O = (H) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + H), K = o.type == "time", R = o.type == "week";
|
|
9412
|
+
an(ee.value) && C && (j = K ? O(C) > O(ee.value) : R ? C > ee.value : Y > new Date(ee.value)), an(U.value) && C && ($ = K ? O(C) < O(U.value) : R ? C < U.value : Y < new Date(U.value));
|
|
9413
9413
|
}
|
|
9414
9414
|
if ((j || $) && (M(!!j, ee.message, U.message, br.max, br.min), !a))
|
|
9415
9415
|
return v(I[b].message), I;
|
|
9416
9416
|
}
|
|
9417
|
-
if ((u || m) && !q && (an(
|
|
9418
|
-
const j = Zi(u), $ = Zi(m), ee = !Ht(j.value) &&
|
|
9417
|
+
if ((u || m) && !q && (an(C) || s && Array.isArray(C))) {
|
|
9418
|
+
const j = Zi(u), $ = Zi(m), ee = !Ht(j.value) && C.length > +j.value, U = !Ht($.value) && C.length < +$.value;
|
|
9419
9419
|
if ((ee || U) && (M(ee, j.message, $.message), !a))
|
|
9420
9420
|
return v(I[b].message), I;
|
|
9421
9421
|
}
|
|
9422
|
-
if (y && !q && an(
|
|
9422
|
+
if (y && !q && an(C)) {
|
|
9423
9423
|
const { value: j, message: $ } = Zi(y);
|
|
9424
|
-
if (cd(j) && !
|
|
9424
|
+
if (cd(j) && !C.match(j) && (I[b] = {
|
|
9425
9425
|
type: br.pattern,
|
|
9426
9426
|
message: $,
|
|
9427
9427
|
ref: o,
|
|
@@ -9431,7 +9431,7 @@ var Zi = (e) => wt(e) && !cd(e) ? e : {
|
|
|
9431
9431
|
}
|
|
9432
9432
|
if (g) {
|
|
9433
9433
|
if (rn(g)) {
|
|
9434
|
-
const j = await g(
|
|
9434
|
+
const j = await g(C, n), $ = S0(j, w);
|
|
9435
9435
|
if ($ && (I[b] = {
|
|
9436
9436
|
...$,
|
|
9437
9437
|
...Z(br.validate, $.message)
|
|
@@ -9442,7 +9442,7 @@ var Zi = (e) => wt(e) && !cd(e) ? e : {
|
|
|
9442
9442
|
for (const $ in g) {
|
|
9443
9443
|
if (!Xt(j) && !a)
|
|
9444
9444
|
break;
|
|
9445
|
-
const ee = S0(await g[$](
|
|
9445
|
+
const ee = S0(await g[$](C, n), w, $);
|
|
9446
9446
|
ee && (j = {
|
|
9447
9447
|
...ee,
|
|
9448
9448
|
...Z($, ee.message)
|
|
@@ -9513,7 +9513,7 @@ function VS(e = {}) {
|
|
|
9513
9513
|
const x = {
|
|
9514
9514
|
array: f0(),
|
|
9515
9515
|
state: f0()
|
|
9516
|
-
},
|
|
9516
|
+
}, N = t.criteriaMode === Cr.all, C = (L) => (k) => {
|
|
9517
9517
|
clearTimeout(u), u = setTimeout(L, k);
|
|
9518
9518
|
}, w = async (L) => {
|
|
9519
9519
|
if (!o.keepIsValid && !t.disabled && (g.isValid || b.isValid || L)) {
|
|
@@ -9603,7 +9603,7 @@ function VS(e = {}) {
|
|
|
9603
9603
|
return ce ? be : {};
|
|
9604
9604
|
}, j = (L, k, T, W) => {
|
|
9605
9605
|
const te = he(n.errors, L), ce = (g.isValid || b.isValid) && Mn(k) && n.isValid !== k;
|
|
9606
|
-
if (t.delayError && T ? (c =
|
|
9606
|
+
if (t.delayError && T ? (c = C(() => F(L, T)), c(t.delayError)) : (clearTimeout(u), c = null, T ? tt(n.errors, L, T) : Ot(n.errors, L), n.errors = { ...n.errors }), (T ? !On(te, T) : te) || !Xt(W) || ce) {
|
|
9607
9607
|
const oe = {
|
|
9608
9608
|
...W,
|
|
9609
9609
|
...ce && Mn(k) ? { isValid: k } : {},
|
|
@@ -9665,7 +9665,7 @@ function VS(e = {}) {
|
|
|
9665
9665
|
if (be) {
|
|
9666
9666
|
const pe = d.array.has(be.name), ot = oe._f && OS(oe._f), Nn = g.validatingFields || g.isValidating || b.validatingFields || b.isValidating;
|
|
9667
9667
|
ot && Nn && v([be.name], !0);
|
|
9668
|
-
const er = await w0(oe, d.disabled, s,
|
|
9668
|
+
const er = await w0(oe, d.disabled, s, N, t.shouldUseNativeValidation && !k, pe);
|
|
9669
9669
|
if (ot && Nn && v([be.name]), er[be.name] && (te.valid = !1, k) || (!k && (he(er, be.name) ? pe ? v0(n.errors, er, be.name) : tt(n.errors, be.name, er[be.name]) : Ot(n.errors, be.name)), e.shouldUseNativeValidation && er[be.name]))
|
|
9670
9670
|
break;
|
|
9671
9671
|
}
|
|
@@ -9777,7 +9777,7 @@ function VS(e = {}) {
|
|
|
9777
9777
|
const il = C0(n.errors, a, T), sl = C0(js, a, il.name || T);
|
|
9778
9778
|
oe = sl.error, T = sl.name, be = Xt(js);
|
|
9779
9779
|
} else
|
|
9780
|
-
v([T], !0), oe = (await w0(te, d.disabled, s,
|
|
9780
|
+
v([T], !0), oe = (await w0(te, d.disabled, s, N, t.shouldUseNativeValidation))[T], v([T]), ce(Q), W && (oe ? be = !1 : (g.isValid || b.isValid) && (be = await Y({
|
|
9781
9781
|
fields: a,
|
|
9782
9782
|
onlyCheckValid: !0,
|
|
9783
9783
|
name: T,
|
|
@@ -10368,8 +10368,8 @@ function ks({
|
|
|
10368
10368
|
value: h,
|
|
10369
10369
|
onChange: p
|
|
10370
10370
|
}) {
|
|
10371
|
-
const y = s ?? (m == null ? void 0 : m.name) ?? o, g = n && y ? `${y}-error` : void 0, b = (
|
|
10372
|
-
|
|
10371
|
+
const y = s ?? (m == null ? void 0 : m.name) ?? o, g = n && y ? `${y}-error` : void 0, b = (N) => {
|
|
10372
|
+
N.target.value = Oi(N.target.value), m && m.onChange(N), p == null || p(N);
|
|
10373
10373
|
}, x = /* @__PURE__ */ r(
|
|
10374
10374
|
"input",
|
|
10375
10375
|
{
|
|
@@ -10504,7 +10504,7 @@ function F2({
|
|
|
10504
10504
|
placeholder: "Select Entity Type",
|
|
10505
10505
|
value: b.value ?? "",
|
|
10506
10506
|
onChange: b.onChange,
|
|
10507
|
-
options: bS.map((
|
|
10507
|
+
options: bS.map((N) => ({ value: N, label: N }))
|
|
10508
10508
|
}
|
|
10509
10509
|
);
|
|
10510
10510
|
}
|
|
@@ -10647,19 +10647,19 @@ function XS({
|
|
|
10647
10647
|
] }) : null
|
|
10648
10648
|
] }) : null,
|
|
10649
10649
|
/* @__PURE__ */ r("div", { className: "divide-y divide-slate-100", children: y.rows.map((b) => {
|
|
10650
|
-
const x = `${u}:${b.label}`,
|
|
10650
|
+
const x = `${u}:${b.label}`, N = h[x] === !0;
|
|
10651
10651
|
return /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
10652
10652
|
/* @__PURE__ */ r("span", { className: "shrink-0 text-sm text-slate-500", children: b.label }),
|
|
10653
10653
|
/* @__PURE__ */ l("span", { className: "flex items-center gap-2 text-right text-sm font-medium text-slate-900", children: [
|
|
10654
|
-
b.masked !== void 0 && !
|
|
10654
|
+
b.masked !== void 0 && !N ? b.masked : b.value,
|
|
10655
10655
|
b.masked !== void 0 ? /* @__PURE__ */ r(
|
|
10656
10656
|
"button",
|
|
10657
10657
|
{
|
|
10658
10658
|
type: "button",
|
|
10659
|
-
"aria-label":
|
|
10660
|
-
onClick: () => p((
|
|
10659
|
+
"aria-label": N ? `Hide ${b.label}` : `Show ${b.label}`,
|
|
10660
|
+
onClick: () => p((C) => ({ ...C, [x]: !N })),
|
|
10661
10661
|
className: "shrink-0 text-slate-400 transition hover:text-slate-600",
|
|
10662
|
-
children:
|
|
10662
|
+
children: N ? /* @__PURE__ */ r(Vh, {}) : /* @__PURE__ */ r(k2, {})
|
|
10663
10663
|
}
|
|
10664
10664
|
) : null
|
|
10665
10665
|
] })
|
|
@@ -11518,8 +11518,8 @@ function mw() {
|
|
|
11518
11518
|
const e = st(), t = dt(), n = en(), { data: a = [] } = ze({
|
|
11519
11519
|
queryKey: ["entities", "mine"],
|
|
11520
11520
|
queryFn: vh
|
|
11521
|
-
}), [i, s] = _(null), [o, d] = _(!1), [c, u] = _(null), m = (Q) => () => u(Q), h = () => u(null), [p, y] = _(""), [g, b] = _(!1), [x,
|
|
11522
|
-
|
|
11521
|
+
}), [i, s] = _(null), [o, d] = _(!1), [c, u] = _(null), m = (Q) => () => u(Q), h = () => u(null), [p, y] = _(""), [g, b] = _(!1), [x, N] = _({}), [C, w] = _(Wc), [v, I] = _(null), [S, F] = _(!1), { enabledPayments: z } = or(), q = (Q) => {
|
|
11522
|
+
N((pe) => {
|
|
11523
11523
|
if (!(Q in pe)) return pe;
|
|
11524
11524
|
const { [Q]: ot, ...Nn } = pe;
|
|
11525
11525
|
return Nn;
|
|
@@ -11569,12 +11569,12 @@ function mw() {
|
|
|
11569
11569
|
label: J,
|
|
11570
11570
|
placeholder: ge,
|
|
11571
11571
|
maxLength: we
|
|
11572
|
-
} = Kb(ae), me = B("country"), ue = B("state"), re = B("zipCode"), _e = B("address1"), de = B("address2"), Ye = B("city"), Yt = me === "United States", ft = Rs(me), Mt = ue.length > 0 && re.trim().length > 0 && !ud(ft, ue, re), on = K("ein"), Qn = K("phoneNumber"), Ln = K("zipCode"), Dn = Se && p === h0, ln = Dn && g, yt =
|
|
11573
|
-
address1: yt ? _e :
|
|
11574
|
-
address2: yt ? de :
|
|
11575
|
-
city: yt ? Ye :
|
|
11576
|
-
state: yt ? ue :
|
|
11577
|
-
zipCode: yt ? re :
|
|
11572
|
+
} = Kb(ae), me = B("country"), ue = B("state"), re = B("zipCode"), _e = B("address1"), de = B("address2"), Ye = B("city"), Yt = me === "United States", ft = Rs(me), Mt = ue.length > 0 && re.trim().length > 0 && !ud(ft, ue, re), on = K("ein"), Qn = K("phoneNumber"), Ln = K("zipCode"), Dn = Se && p === h0, ln = Dn && g, yt = C.sameAsPrimaryAddress, Gn = yt ? me : C.country, Kn = Rs(Gn), Vt = {
|
|
11573
|
+
address1: yt ? _e : C.address1,
|
|
11574
|
+
address2: yt ? de : C.address2,
|
|
11575
|
+
city: yt ? Ye : C.city,
|
|
11576
|
+
state: yt ? ue : C.state,
|
|
11577
|
+
zipCode: yt ? re : C.zipCode,
|
|
11578
11578
|
country: Gn
|
|
11579
11579
|
}, Jn = ln;
|
|
11580
11580
|
Ie(() => {
|
|
@@ -11583,34 +11583,34 @@ function mw() {
|
|
|
11583
11583
|
const Fn = (Q) => {
|
|
11584
11584
|
const pe = G("accountType");
|
|
11585
11585
|
if (pe === Q) return;
|
|
11586
|
-
u("accountType"), Q === "Business" && (y(""), b(!1),
|
|
11586
|
+
u("accountType"), Q === "Business" && (y(""), b(!1), N({}), w(Wc));
|
|
11587
11587
|
const ot = G("lastName");
|
|
11588
11588
|
h2(pe, Q, se, ot), se("accountType", Q), se("ein", De(G("ein"), Q)), se("entityType", ""), queueMicrotask(() => {
|
|
11589
11589
|
se("lastName", ot), se("firstName", ""), pe === "Business" && Q === "Individual" && se("tradeName", "");
|
|
11590
11590
|
});
|
|
11591
11591
|
}, L = (Q) => {
|
|
11592
|
-
y(Q), Q !== h0 && (b(!1),
|
|
11592
|
+
y(Q), Q !== h0 && (b(!1), N({}), w(Wc));
|
|
11593
11593
|
}, k = (Q) => {
|
|
11594
|
-
b(Q), Q ||
|
|
11594
|
+
b(Q), Q || N({});
|
|
11595
11595
|
}, T = H(async (Q) => {
|
|
11596
11596
|
if (s(null), !ud(ft, Q.state, Q.zipCode)) {
|
|
11597
11597
|
s(`ZIP code does not match the selected state (${Q.state}).`);
|
|
11598
11598
|
return;
|
|
11599
11599
|
}
|
|
11600
|
-
const pe = ln ? vS(
|
|
11601
|
-
if (
|
|
11600
|
+
const pe = ln ? vS(C, Vt) : {};
|
|
11601
|
+
if (N(pe), !(Object.keys(pe).length > 0)) {
|
|
11602
11602
|
d(!0);
|
|
11603
11603
|
try {
|
|
11604
11604
|
await q9(
|
|
11605
11605
|
p2(Q, {
|
|
11606
11606
|
filingStatus: Se && p || void 0,
|
|
11607
|
-
secondary: Jn ? { ...
|
|
11607
|
+
secondary: Jn ? { ...C, ...Vt } : null
|
|
11608
11608
|
})
|
|
11609
11609
|
), await n.invalidateQueries({ queryKey: ["entities", "mine"] }), I({
|
|
11610
11610
|
values: Q,
|
|
11611
11611
|
// Resolve the "same as primary" mirroring into concrete values here —
|
|
11612
11612
|
// the modal shouldn't have to know about that toggle.
|
|
11613
|
-
secondary: Jn ? { ...
|
|
11613
|
+
secondary: Jn ? { ...C, ...Vt } : null
|
|
11614
11614
|
});
|
|
11615
11615
|
} catch (ot) {
|
|
11616
11616
|
s(At(ot, "Unable to save entity. Please try again."));
|
|
@@ -11662,7 +11662,7 @@ function mw() {
|
|
|
11662
11662
|
setIncludeSecondaryTaxpayer: k,
|
|
11663
11663
|
secondaryErrors: x,
|
|
11664
11664
|
showSecondaryTaxpayer: ln,
|
|
11665
|
-
secondaryTaxpayer:
|
|
11665
|
+
secondaryTaxpayer: C,
|
|
11666
11666
|
secondaryAddress: Vt,
|
|
11667
11667
|
secondaryStateOptions: Kn,
|
|
11668
11668
|
updateSecondaryField: M,
|
|
@@ -11828,29 +11828,29 @@ function fw({ entity: e, onCancel: t, onSaved: n }) {
|
|
|
11828
11828
|
register: g,
|
|
11829
11829
|
control: b,
|
|
11830
11830
|
handleSubmit: x,
|
|
11831
|
-
watch:
|
|
11832
|
-
setValue:
|
|
11831
|
+
watch: N,
|
|
11832
|
+
setValue: C,
|
|
11833
11833
|
getValues: w,
|
|
11834
11834
|
formState: { errors: v }
|
|
11835
11835
|
} = Zr({
|
|
11836
11836
|
resolver: Wr(m2),
|
|
11837
11837
|
defaultValues: CS(e),
|
|
11838
11838
|
shouldUnregister: !1
|
|
11839
|
-
}), I =
|
|
11839
|
+
}), I = N("accountType"), S = I === "Individual", {
|
|
11840
11840
|
label: F,
|
|
11841
11841
|
placeholder: z,
|
|
11842
11842
|
maxLength: q
|
|
11843
|
-
} = Kb(I), Z =
|
|
11843
|
+
} = Kb(I), Z = N("country"), M = N("state"), j = N("zipCode"), $ = Z === "United States", ee = Rs(Z), U = M.length > 0 && j.trim().length > 0 && !ud(ee, M, j), Y = g("ein"), O = g("phoneNumber"), K = g("zipCode");
|
|
11844
11844
|
Ie(() => {
|
|
11845
|
-
M && ee.length > 0 && !ee.some((B) => B.code === M) &&
|
|
11845
|
+
M && ee.length > 0 && !ee.some((B) => B.code === M) && C("state", "");
|
|
11846
11846
|
}, [Z, ee]);
|
|
11847
11847
|
const R = (B) => {
|
|
11848
11848
|
const se = w("accountType");
|
|
11849
11849
|
if (se === B) return;
|
|
11850
11850
|
u("accountType");
|
|
11851
11851
|
const G = w("lastName");
|
|
11852
|
-
h2(se, B,
|
|
11853
|
-
|
|
11852
|
+
h2(se, B, C, G), C("accountType", B), C("ein", De(w("ein"), B)), C("entityType", ""), B === "Business" && h(""), queueMicrotask(() => {
|
|
11853
|
+
C("lastName", G), C("firstName", ""), se === "Business" && B === "Individual" && C("tradeName", "");
|
|
11854
11854
|
});
|
|
11855
11855
|
}, H = x(async (B) => {
|
|
11856
11856
|
if (s(null), !ud(ee, B.state, B.zipCode)) {
|
|
@@ -12583,7 +12583,7 @@ function rI({
|
|
|
12583
12583
|
}) {
|
|
12584
12584
|
const [i, s] = Qw(), o = Math.round(
|
|
12585
12585
|
Math.min(Math.max((s || 340) * Gw, Kw), Jw)
|
|
12586
|
-
), d = tI(Math.max(...e.map((
|
|
12586
|
+
), d = tI(Math.max(...e.map((N) => N.amount), 0)), c = [0, d / 3, d * 2 / 3, d], u = fl.left, m = s - fl.right, h = fl.top, p = o - fl.bottom, y = (m - u) / Math.max(e.length, 1), g = (N) => u + y * (N + 0.5), b = (N) => p - N / d * (p - h), x = e.map((N, C) => `${g(C)},${b(N.amount)}`).join(" ");
|
|
12587
12587
|
return /* @__PURE__ */ l("section", { className: "flex flex-col rounded-xl border border-slate-200 bg-white px-5 py-5 shadow-sm", children: [
|
|
12588
12588
|
/* @__PURE__ */ l("div", { className: "mb-4 flex flex-wrap items-center justify-between gap-3", children: [
|
|
12589
12589
|
/* @__PURE__ */ r("h2", { className: "text-base font-bold text-zinc-900", children: "Federal Payments" }),
|
|
@@ -12598,16 +12598,16 @@ function rI({
|
|
|
12598
12598
|
role: "img",
|
|
12599
12599
|
"aria-label": `Federal payments by quarter for tax year ${t}`,
|
|
12600
12600
|
children: [
|
|
12601
|
-
c.map((
|
|
12602
|
-
const
|
|
12601
|
+
c.map((N) => {
|
|
12602
|
+
const C = b(N);
|
|
12603
12603
|
return /* @__PURE__ */ l("g", { children: [
|
|
12604
12604
|
/* @__PURE__ */ r(
|
|
12605
12605
|
"line",
|
|
12606
12606
|
{
|
|
12607
12607
|
x1: u,
|
|
12608
|
-
y1:
|
|
12608
|
+
y1: C,
|
|
12609
12609
|
x2: m,
|
|
12610
|
-
y2:
|
|
12610
|
+
y2: C,
|
|
12611
12611
|
className: "stroke-slate-200",
|
|
12612
12612
|
strokeWidth: "1",
|
|
12613
12613
|
strokeDasharray: "3 3"
|
|
@@ -12617,15 +12617,15 @@ function rI({
|
|
|
12617
12617
|
"text",
|
|
12618
12618
|
{
|
|
12619
12619
|
x: u - 10,
|
|
12620
|
-
y:
|
|
12620
|
+
y: C,
|
|
12621
12621
|
textAnchor: "end",
|
|
12622
12622
|
dominantBaseline: "middle",
|
|
12623
12623
|
className: "fill-slate-400",
|
|
12624
12624
|
fontSize: "11",
|
|
12625
|
-
children: nI(
|
|
12625
|
+
children: nI(N)
|
|
12626
12626
|
}
|
|
12627
12627
|
)
|
|
12628
|
-
] },
|
|
12628
|
+
] }, N);
|
|
12629
12629
|
}),
|
|
12630
12630
|
/* @__PURE__ */ r(
|
|
12631
12631
|
"polyline",
|
|
@@ -12638,27 +12638,27 @@ function rI({
|
|
|
12638
12638
|
strokeLinejoin: "round"
|
|
12639
12639
|
}
|
|
12640
12640
|
),
|
|
12641
|
-
e.map((
|
|
12641
|
+
e.map((N, C) => /* @__PURE__ */ r(
|
|
12642
12642
|
"circle",
|
|
12643
12643
|
{
|
|
12644
|
-
cx: g(
|
|
12645
|
-
cy: b(
|
|
12644
|
+
cx: g(C),
|
|
12645
|
+
cy: b(N.amount),
|
|
12646
12646
|
r: "5",
|
|
12647
12647
|
className: "fill-gov-600"
|
|
12648
12648
|
},
|
|
12649
|
-
|
|
12649
|
+
N.label
|
|
12650
12650
|
)),
|
|
12651
|
-
e.map((
|
|
12651
|
+
e.map((N, C) => /* @__PURE__ */ r(
|
|
12652
12652
|
"text",
|
|
12653
12653
|
{
|
|
12654
|
-
x: g(
|
|
12654
|
+
x: g(C),
|
|
12655
12655
|
y: o - 12,
|
|
12656
12656
|
textAnchor: "middle",
|
|
12657
12657
|
className: "fill-slate-500",
|
|
12658
12658
|
fontSize: "11",
|
|
12659
|
-
children:
|
|
12659
|
+
children: N.label
|
|
12660
12660
|
},
|
|
12661
|
-
|
|
12661
|
+
N.label
|
|
12662
12662
|
))
|
|
12663
12663
|
]
|
|
12664
12664
|
}
|
|
@@ -13227,7 +13227,7 @@ const xa = (/* @__PURE__ */ new Date()).getFullYear(), AI = 5, EI = {
|
|
|
13227
13227
|
3: "grid gap-5 lg:grid-cols-3"
|
|
13228
13228
|
};
|
|
13229
13229
|
function Qh() {
|
|
13230
|
-
const e = st(), { entities: t, isLoading: n, selectedEntity: a, enabledPayments: i, userName: s } = or(), o = (a == null ? void 0 : a.entityId) ?? null, [d, c] = _(!1), u = n5(), m = kw(xa), [h, p] = _(xa), [y, g] = _(xa), [b, x] = _(xa),
|
|
13230
|
+
const e = st(), { entities: t, isLoading: n, selectedEntity: a, enabledPayments: i, userName: s } = or(), o = (a == null ? void 0 : a.entityId) ?? null, [d, c] = _(!1), u = n5(), m = kw(xa), [h, p] = _(xa), [y, g] = _(xa), [b, x] = _(xa), N = i.includes("federal"), C = i.includes("state"), w = 1 + Number(N) + Number(C), { data: v, isLoading: I } = ze({
|
|
13231
13231
|
queryKey: ["dashboard", o, xa],
|
|
13232
13232
|
queryFn: () => gw(o, xa),
|
|
13233
13233
|
enabled: o !== null
|
|
@@ -13368,7 +13368,7 @@ function Qh() {
|
|
|
13368
13368
|
/* @__PURE__ */ r(cI, { payments: ee })
|
|
13369
13369
|
] }),
|
|
13370
13370
|
/* @__PURE__ */ l("div", { className: EI[w], children: [
|
|
13371
|
-
|
|
13371
|
+
N && /* @__PURE__ */ r(
|
|
13372
13372
|
rI,
|
|
13373
13373
|
{
|
|
13374
13374
|
points: Y,
|
|
@@ -13377,7 +13377,7 @@ function Qh() {
|
|
|
13377
13377
|
onTaxYearChange: p
|
|
13378
13378
|
}
|
|
13379
13379
|
),
|
|
13380
|
-
|
|
13380
|
+
C && /* @__PURE__ */ r(
|
|
13381
13381
|
dI,
|
|
13382
13382
|
{
|
|
13383
13383
|
slices: O,
|
|
@@ -13412,13 +13412,13 @@ const O0 = 160, LI = 88, yl = 8;
|
|
|
13412
13412
|
function DI({ entity: e, onEdit: t, variant: n = "button" }) {
|
|
13413
13413
|
const a = Bi(), i = en(), { showSuccess: s, showError: o } = Wt(), d = Te(null), c = Te(null), [u, m] = _(!1), [h, p] = _(!1), [y, g] = _({}), b = () => {
|
|
13414
13414
|
var S;
|
|
13415
|
-
const
|
|
13416
|
-
if (!
|
|
13417
|
-
const
|
|
13415
|
+
const N = d.current;
|
|
13416
|
+
if (!N) return;
|
|
13417
|
+
const C = N.getBoundingClientRect(), w = ((S = c.current) == null ? void 0 : S.offsetHeight) ?? LI, I = window.innerHeight - C.bottom < w + yl;
|
|
13418
13418
|
g({
|
|
13419
13419
|
position: "fixed",
|
|
13420
|
-
top: I ?
|
|
13421
|
-
left: Math.max(yl,
|
|
13420
|
+
top: I ? C.top - w - yl : C.bottom + yl,
|
|
13421
|
+
left: Math.max(yl, C.right - O0),
|
|
13422
13422
|
width: O0,
|
|
13423
13423
|
zIndex: 50
|
|
13424
13424
|
});
|
|
@@ -13427,22 +13427,22 @@ function DI({ entity: e, onEdit: t, variant: n = "button" }) {
|
|
|
13427
13427
|
u && (b(), requestAnimationFrame(b));
|
|
13428
13428
|
}, [u]), Ie(() => {
|
|
13429
13429
|
if (!u) return;
|
|
13430
|
-
const
|
|
13430
|
+
const N = (w) => {
|
|
13431
13431
|
var I, S;
|
|
13432
13432
|
const v = w.target;
|
|
13433
13433
|
(I = d.current) != null && I.contains(v) || (S = c.current) != null && S.contains(v) || m(!1);
|
|
13434
|
-
},
|
|
13435
|
-
return document.addEventListener("mousedown",
|
|
13436
|
-
document.removeEventListener("mousedown",
|
|
13434
|
+
}, C = () => b();
|
|
13435
|
+
return document.addEventListener("mousedown", N), window.addEventListener("resize", C), window.addEventListener("scroll", C, !0), () => {
|
|
13436
|
+
document.removeEventListener("mousedown", N), window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
|
|
13437
13437
|
};
|
|
13438
13438
|
}, [u]);
|
|
13439
13439
|
const x = async () => {
|
|
13440
|
-
const
|
|
13440
|
+
const N = el(e);
|
|
13441
13441
|
p(!0);
|
|
13442
13442
|
try {
|
|
13443
|
-
await V9(e.entityId, TI(e)), await i.invalidateQueries({ queryKey: ["entities", "mine"] }), m(!1), s(
|
|
13444
|
-
} catch (
|
|
13445
|
-
o("Action Not Completed", At(
|
|
13443
|
+
await V9(e.entityId, TI(e)), await i.invalidateQueries({ queryKey: ["entities", "mine"] }), m(!1), s(N ? "Entity Deactivated Successfully" : "Entity Activated Successfully");
|
|
13444
|
+
} catch (C) {
|
|
13445
|
+
o("Action Not Completed", At(C, "Unable to update this entity."));
|
|
13446
13446
|
} finally {
|
|
13447
13447
|
p(!1);
|
|
13448
13448
|
}
|
|
@@ -13457,7 +13457,7 @@ function DI({ entity: e, onEdit: t, variant: n = "button" }) {
|
|
|
13457
13457
|
"aria-label": n === "kebab" ? "Entity actions" : void 0,
|
|
13458
13458
|
"aria-haspopup": "menu",
|
|
13459
13459
|
"aria-expanded": u,
|
|
13460
|
-
onClick: () => m((
|
|
13460
|
+
onClick: () => m((N) => !N),
|
|
13461
13461
|
className: n === "kebab" ? "inline-flex h-7 w-7 items-center justify-center rounded-md text-slate-400 transition hover:bg-slate-100 hover:text-slate-600 disabled:cursor-not-allowed disabled:opacity-60" : "inline-flex items-center gap-1.5 rounded-lg bg-gov-700 px-3 py-1.5 text-xs font-semibold text-white hover:bg-gov-700 disabled:cursor-not-allowed disabled:opacity-60",
|
|
13462
13462
|
children: n === "kebab" ? /* @__PURE__ */ r(FI, {}) : /* @__PURE__ */ l(Oe, { children: [
|
|
13463
13463
|
"Actions",
|
|
@@ -13855,7 +13855,7 @@ function tl({
|
|
|
13855
13855
|
x.current = g, Ie(() => {
|
|
13856
13856
|
b(String(e));
|
|
13857
13857
|
}, [e]);
|
|
13858
|
-
function
|
|
13858
|
+
function N(w = x.current) {
|
|
13859
13859
|
if (o || u === 0) {
|
|
13860
13860
|
b(String(e));
|
|
13861
13861
|
return;
|
|
@@ -13871,8 +13871,8 @@ function tl({
|
|
|
13871
13871
|
}
|
|
13872
13872
|
a(v);
|
|
13873
13873
|
}
|
|
13874
|
-
function
|
|
13875
|
-
w.key === "Enter" && (w.preventDefault(),
|
|
13874
|
+
function C(w) {
|
|
13875
|
+
w.key === "Enter" && (w.preventDefault(), N(w.currentTarget.value));
|
|
13876
13876
|
}
|
|
13877
13877
|
return n === 0 ? null : /* @__PURE__ */ l(
|
|
13878
13878
|
"div",
|
|
@@ -13943,7 +13943,7 @@ function tl({
|
|
|
13943
13943
|
value: g,
|
|
13944
13944
|
disabled: o || u === 0,
|
|
13945
13945
|
onChange: (w) => b(w.target.value),
|
|
13946
|
-
onKeyDown:
|
|
13946
|
+
onKeyDown: C,
|
|
13947
13947
|
"aria-label": "Go to page number",
|
|
13948
13948
|
className: "h-9 w-14 rounded-lg border border-slate-200 bg-white px-2 text-center text-sm text-slate-900 focus:border-gov-400 focus:outline-none focus:ring-2 focus:ring-gov-200 disabled:opacity-60"
|
|
13949
13949
|
}
|
|
@@ -13958,7 +13958,7 @@ function tl({
|
|
|
13958
13958
|
onMouseDown: (w) => {
|
|
13959
13959
|
w.preventDefault();
|
|
13960
13960
|
},
|
|
13961
|
-
onClick: () =>
|
|
13961
|
+
onClick: () => N(),
|
|
13962
13962
|
children: "Go"
|
|
13963
13963
|
}
|
|
13964
13964
|
)
|
|
@@ -13985,10 +13985,10 @@ function Jh() {
|
|
|
13985
13985
|
}, [a]), Ie(() => {
|
|
13986
13986
|
p(1);
|
|
13987
13987
|
}, [s, d, u, y]);
|
|
13988
|
-
const { data: b = [], isLoading: x, isFetching:
|
|
13988
|
+
const { data: b = [], isLoading: x, isFetching: N, isError: C } = ze({
|
|
13989
13989
|
queryKey: ["entities", "mine"],
|
|
13990
13990
|
queryFn: vh
|
|
13991
|
-
}), w = Be(() => b.filter((F) => s && !GI(F, s) || d !== "all" && el(F) !== (d === "active") ? !1 : u === ql || F.entityType === u), [b, s, d, u]), v = w.length, I = w.slice((h - 1) * y, h * y), S =
|
|
13991
|
+
}), w = Be(() => b.filter((F) => s && !GI(F, s) || d !== "all" && el(F) !== (d === "active") ? !1 : u === ql || F.entityType === u), [b, s, d, u]), v = w.length, I = w.slice((h - 1) * y, h * y), S = C ? "Unable to load entities." : x ? "Loading entities…" : w.length === 0 ? s ? "No entities match your search." : u !== ql ? `No ${u} entities${d === "all" ? "" : ` that are ${d}`}.` : d === "all" ? "No entities yet." : `No ${d} entities.` : null;
|
|
13992
13992
|
return /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 p-4", children: [
|
|
13993
13993
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-start justify-between gap-4", children: [
|
|
13994
13994
|
/* @__PURE__ */ l("div", { children: [
|
|
@@ -14006,7 +14006,7 @@ function Jh() {
|
|
|
14006
14006
|
)
|
|
14007
14007
|
] }),
|
|
14008
14008
|
/* @__PURE__ */ l("div", { className: "relative rounded-2xl border border-slate-200 bg-white p-6", children: [
|
|
14009
|
-
|
|
14009
|
+
N ? /* @__PURE__ */ r(Jo, { label: "Loading entities…" }) : null,
|
|
14010
14010
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center justify-between gap-4 border-b border-slate-200", children: [
|
|
14011
14011
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-6", children: QI.map((F) => {
|
|
14012
14012
|
const z = d === F.id;
|
|
@@ -14059,7 +14059,7 @@ function Jh() {
|
|
|
14059
14059
|
totalCount: v,
|
|
14060
14060
|
onPageChange: p,
|
|
14061
14061
|
onPageSizeChange: g,
|
|
14062
|
-
disabled: x ||
|
|
14062
|
+
disabled: x || N
|
|
14063
14063
|
}
|
|
14064
14064
|
) : null
|
|
14065
14065
|
] })
|
|
@@ -14823,14 +14823,14 @@ function rp({
|
|
|
14823
14823
|
q0(u) ? u : lc
|
|
14824
14824
|
), [p, y] = _(
|
|
14825
14825
|
e === "all" ? "all" : e
|
|
14826
|
-
), g = e !== "all" ? e : p, [b, x] = _(1), [
|
|
14826
|
+
), g = e !== "all" ? e : p, [b, x] = _(1), [N, C] = _(Vr), [w, v] = _(null), [I, S] = _(null), [F, z] = _(null);
|
|
14827
14827
|
Ie(() => {
|
|
14828
14828
|
q0(u) && h(u);
|
|
14829
14829
|
}, [u]), Ie(() => {
|
|
14830
|
-
x(1),
|
|
14830
|
+
x(1), C(Vr);
|
|
14831
14831
|
}, [m, d, p]), Ie(() => {
|
|
14832
14832
|
x(1);
|
|
14833
|
-
}, [
|
|
14833
|
+
}, [N]);
|
|
14834
14834
|
const q = ze({
|
|
14835
14835
|
queryKey: [
|
|
14836
14836
|
"remittance-payments",
|
|
@@ -14839,7 +14839,7 @@ function rp({
|
|
|
14839
14839
|
m,
|
|
14840
14840
|
g,
|
|
14841
14841
|
b,
|
|
14842
|
-
|
|
14842
|
+
N
|
|
14843
14843
|
],
|
|
14844
14844
|
queryFn: () => z0({
|
|
14845
14845
|
entityId: d,
|
|
@@ -14848,7 +14848,7 @@ function rp({
|
|
|
14848
14848
|
status: m === "all" ? void 0 : m,
|
|
14849
14849
|
category: g,
|
|
14850
14850
|
pageNumber: b,
|
|
14851
|
-
pageSize:
|
|
14851
|
+
pageSize: N
|
|
14852
14852
|
}),
|
|
14853
14853
|
enabled: d !== null,
|
|
14854
14854
|
placeholderData: (re) => re
|
|
@@ -15117,10 +15117,10 @@ function rp({
|
|
|
15117
15117
|
tl,
|
|
15118
15118
|
{
|
|
15119
15119
|
page: b,
|
|
15120
|
-
pageSize:
|
|
15120
|
+
pageSize: N,
|
|
15121
15121
|
totalCount: H,
|
|
15122
15122
|
onPageChange: x,
|
|
15123
|
-
onPageSizeChange:
|
|
15123
|
+
onPageSizeChange: C,
|
|
15124
15124
|
disabled: j || d === null || $
|
|
15125
15125
|
}
|
|
15126
15126
|
)
|
|
@@ -15394,17 +15394,17 @@ function Po({
|
|
|
15394
15394
|
}) {
|
|
15395
15395
|
const s = en(), { showSuccess: o, showError: d } = Wt(), [c, u] = _(null), [m, h] = _(!1), [p, y] = _(!1), g = n !== null, b = Be(() => OA(!g), [g]), {
|
|
15396
15396
|
control: x,
|
|
15397
|
-
handleSubmit:
|
|
15398
|
-
reset:
|
|
15397
|
+
handleSubmit: N,
|
|
15398
|
+
reset: C,
|
|
15399
15399
|
formState: { errors: w }
|
|
15400
15400
|
} = Zr({
|
|
15401
15401
|
resolver: Wr(b),
|
|
15402
15402
|
defaultValues: _0
|
|
15403
15403
|
});
|
|
15404
15404
|
Ie(() => {
|
|
15405
|
-
e && (
|
|
15406
|
-
}, [e, n,
|
|
15407
|
-
const v =
|
|
15405
|
+
e && (C(n ? zA(n) : _0), y((n == null ? void 0 : n.isPrimary) ?? !1), u(null));
|
|
15406
|
+
}, [e, n, C]);
|
|
15407
|
+
const v = N(async (I) => {
|
|
15408
15408
|
if (t) {
|
|
15409
15409
|
u(null), h(!0);
|
|
15410
15410
|
try {
|
|
@@ -15779,11 +15779,11 @@ function u5({
|
|
|
15779
15779
|
label: d = "Bank Account Number",
|
|
15780
15780
|
info: c
|
|
15781
15781
|
}) {
|
|
15782
|
-
const [u, m] = _(!1), [h, p] = _(!1), [y, g] = _(!1), b = Te(null), x = Te(null),
|
|
15782
|
+
const [u, m] = _(!1), [h, p] = _(!1), [y, g] = _(!1), b = Te(null), x = Te(null), N = Un(() => m(!1), []), C = Ha({
|
|
15783
15783
|
open: u,
|
|
15784
15784
|
anchorRef: b,
|
|
15785
15785
|
layerRef: x,
|
|
15786
|
-
onDismiss:
|
|
15786
|
+
onDismiss: N,
|
|
15787
15787
|
width: "anchor",
|
|
15788
15788
|
maxHeight: jA
|
|
15789
15789
|
}), w = a.find(
|
|
@@ -15808,12 +15808,12 @@ function u5({
|
|
|
15808
15808
|
}
|
|
15809
15809
|
),
|
|
15810
15810
|
o ? /* @__PURE__ */ r("p", { className: "mt-1 text-xs text-red-600", children: o }) : null,
|
|
15811
|
-
u &&
|
|
15811
|
+
u && C ? yn(
|
|
15812
15812
|
/* @__PURE__ */ l(
|
|
15813
15813
|
"div",
|
|
15814
15814
|
{
|
|
15815
15815
|
ref: x,
|
|
15816
|
-
style:
|
|
15816
|
+
style: C,
|
|
15817
15817
|
className: "flex flex-col overflow-hidden rounded-xl border border-slate-200 bg-white shadow-lg",
|
|
15818
15818
|
children: [
|
|
15819
15819
|
/* @__PURE__ */ r("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain py-1", children: a.length === 0 ? /* @__PURE__ */ r("p", { className: "px-4 py-6 text-center text-sm text-slate-500", children: "No bank accounts yet." }) : a.map((I) => {
|
|
@@ -16025,10 +16025,10 @@ function sp({
|
|
|
16025
16025
|
const x = Be(
|
|
16026
16026
|
() => WA(u.getFullYear(), u.getMonth()),
|
|
16027
16027
|
[u]
|
|
16028
|
-
),
|
|
16028
|
+
), N = Be(() => {
|
|
16029
16029
|
const v = new Date(u.getFullYear(), u.getMonth() - 1, 1), I = new Date(v.getFullYear(), v.getMonth() + 1, 0);
|
|
16030
16030
|
return za(I) >= s;
|
|
16031
|
-
}, [u, s]),
|
|
16031
|
+
}, [u, s]), C = Be(() => {
|
|
16032
16032
|
const v = new Date(u.getFullYear(), u.getMonth() + 1, 1);
|
|
16033
16033
|
return za(v) <= o;
|
|
16034
16034
|
}, [u, o]), w = (v) => {
|
|
@@ -16080,7 +16080,7 @@ function sp({
|
|
|
16080
16080
|
"button",
|
|
16081
16081
|
{
|
|
16082
16082
|
type: "button",
|
|
16083
|
-
disabled: !
|
|
16083
|
+
disabled: !N,
|
|
16084
16084
|
onClick: () => m((v) => new Date(v.getFullYear(), v.getMonth() - 1, 1)),
|
|
16085
16085
|
className: "rounded p-1 text-slate-500 transition hover:bg-white hover:text-slate-800 disabled:cursor-not-allowed disabled:opacity-30",
|
|
16086
16086
|
"aria-label": "Previous month",
|
|
@@ -16092,7 +16092,7 @@ function sp({
|
|
|
16092
16092
|
"button",
|
|
16093
16093
|
{
|
|
16094
16094
|
type: "button",
|
|
16095
|
-
disabled: !
|
|
16095
|
+
disabled: !C,
|
|
16096
16096
|
onClick: () => m((v) => new Date(v.getFullYear(), v.getMonth() + 1, 1)),
|
|
16097
16097
|
className: "rounded p-1 text-slate-500 transition hover:bg-white hover:text-slate-800 disabled:cursor-not-allowed disabled:opacity-30",
|
|
16098
16098
|
"aria-label": "Next month",
|
|
@@ -16196,8 +16196,8 @@ function cE({
|
|
|
16196
16196
|
Ie(() => {
|
|
16197
16197
|
d && h(d.year);
|
|
16198
16198
|
}, [e]);
|
|
16199
|
-
const
|
|
16200
|
-
|
|
16199
|
+
const N = Tw(e), C = (S) => !!i.includes(S), w = (S) => {
|
|
16200
|
+
C(S) || (t(Pw(m, S)), u(!1));
|
|
16201
16201
|
}, v = m > s, I = m < o;
|
|
16202
16202
|
return /* @__PURE__ */ l("div", { ref: p, className: "relative", children: [
|
|
16203
16203
|
/* @__PURE__ */ l(
|
|
@@ -16212,7 +16212,7 @@ function cE({
|
|
|
16212
16212
|
type: "text",
|
|
16213
16213
|
readOnly: !0,
|
|
16214
16214
|
disabled: n,
|
|
16215
|
-
value:
|
|
16215
|
+
value: N,
|
|
16216
16216
|
placeholder: "YYYY-MM",
|
|
16217
16217
|
onClick: () => !n && u((S) => !S),
|
|
16218
16218
|
className: "w-full cursor-pointer border-0 bg-transparent p-0 text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:ring-0 disabled:cursor-not-allowed"
|
|
@@ -16266,7 +16266,7 @@ function cE({
|
|
|
16266
16266
|
)
|
|
16267
16267
|
] }),
|
|
16268
16268
|
/* @__PURE__ */ r("div", { className: "grid grid-cols-3 gap-1 p-3", children: oE.map((S, F) => {
|
|
16269
|
-
const z = (d == null ? void 0 : d.year) === m && d.month === F && e.length === 6, q =
|
|
16269
|
+
const z = (d == null ? void 0 : d.year) === m && d.month === F && e.length === 6, q = C(F);
|
|
16270
16270
|
return /* @__PURE__ */ r(
|
|
16271
16271
|
"button",
|
|
16272
16272
|
{
|
|
@@ -16529,20 +16529,20 @@ function b5({
|
|
|
16529
16529
|
onCancel: a
|
|
16530
16530
|
}) {
|
|
16531
16531
|
var on, Qn, Ln, Dn, ln, yt, Gn, Kn, Vt, Jn, Fn, L, k;
|
|
16532
|
-
const i = st(), s = dt(), o = en(), d = jr(s.state, _t()), c = s.state, u = c != null && c.resetDraft ? null : rl(), m = t ?? (c == null ? void 0 : c.paymentDraft) ?? (u && u.entityId === (e == null ? void 0 : e.entityId) ? u : null), h = Te(m == null ? void 0 : m.federalPaymentId), p = Te(m == null ? void 0 : m.enrollmentId), [y, g] = _(null), [b, x] = _(!1),
|
|
16532
|
+
const i = st(), s = dt(), o = en(), d = jr(s.state, _t()), c = s.state, u = c != null && c.resetDraft ? null : rl(), m = t ?? (c == null ? void 0 : c.paymentDraft) ?? (u && u.entityId === (e == null ? void 0 : e.entityId) ? u : null), h = Te(m == null ? void 0 : m.federalPaymentId), p = Te(m == null ? void 0 : m.enrollmentId), [y, g] = _(null), [b, x] = _(!1), N = Be(
|
|
16533
16533
|
() => bE(t, c, e == null ? void 0 : e.entityId),
|
|
16534
16534
|
[t, c == null ? void 0 : c.paymentDraft, c == null ? void 0 : c.resetDraft, e == null ? void 0 : e.entityId, s.key]
|
|
16535
16535
|
);
|
|
16536
16536
|
Ie(() => {
|
|
16537
16537
|
m != null && m.federalPaymentId && (h.current = m.federalPaymentId), m != null && m.enrollmentId && (p.current = m.enrollmentId);
|
|
16538
16538
|
}, [m == null ? void 0 : m.federalPaymentId, m == null ? void 0 : m.enrollmentId]);
|
|
16539
|
-
const { data:
|
|
16539
|
+
const { data: C = [], isLoading: w } = ze({
|
|
16540
16540
|
queryKey: ["bank-accounts", e == null ? void 0 : e.entityId],
|
|
16541
16541
|
queryFn: () => ga(e.entityId),
|
|
16542
16542
|
enabled: e !== null
|
|
16543
16543
|
}), v = Be(
|
|
16544
|
-
() =>
|
|
16545
|
-
[
|
|
16544
|
+
() => C.filter(Ui),
|
|
16545
|
+
[C]
|
|
16546
16546
|
), { data: I = [], isLoading: S } = ze({
|
|
16547
16547
|
queryKey: ["federal-form-types", e == null ? void 0 : e.entityId],
|
|
16548
16548
|
queryFn: () => JI(e.entityId),
|
|
@@ -16559,7 +16559,7 @@ function b5({
|
|
|
16559
16559
|
formState: { errors: U }
|
|
16560
16560
|
} = Zr({
|
|
16561
16561
|
resolver: Wr(yE),
|
|
16562
|
-
defaultValues:
|
|
16562
|
+
defaultValues: N
|
|
16563
16563
|
}), Y = F("taxpayerPin"), O = Z("bankAccountDetailId"), K = Z("taxFormType"), R = Z("taxTypeCode"), H = Z("taxPeriod"), B = Z("settlementDate"), se = Z("subcategoryAmount1"), G = Z("subcategoryAmount2"), ve = Z("subcategoryAmount3"), ae = Te(K), Se = Be(
|
|
16564
16564
|
() => K ? Z2(K) : [],
|
|
16565
16565
|
[K]
|
|
@@ -17740,8 +17740,8 @@ function M5({
|
|
|
17740
17740
|
}), x = Be(
|
|
17741
17741
|
() => g.filter(Ui),
|
|
17742
17742
|
[g]
|
|
17743
|
-
),
|
|
17744
|
-
() => ME(() =>
|
|
17743
|
+
), N = Te(null), C = Te([]), w = Be(
|
|
17744
|
+
() => ME(() => N.current, () => C.current),
|
|
17745
17745
|
[]
|
|
17746
17746
|
), {
|
|
17747
17747
|
register: v,
|
|
@@ -17813,14 +17813,14 @@ function M5({
|
|
|
17813
17813
|
R,
|
|
17814
17814
|
q,
|
|
17815
17815
|
n
|
|
17816
|
-
]),
|
|
17816
|
+
]), N.current = R ?? null;
|
|
17817
17817
|
const ae = (R == null ? void 0 : R.taxYearOptions) ?? [], Se = (R == null ? void 0 : R.frequencyMode) ?? null, J = (R == null ? void 0 : R.frequencyOptions) ?? [], ge = Se !== null && Se !== "NotApplicable", [we, me] = _((c == null ? void 0 : c.depositFrequency) ?? ""), ue = $ === "BILL_PAYMENT", re = Be(() => {
|
|
17818
17818
|
const X = (H == null ? void 0 : H.forms) ?? [], He = we ? X.filter(
|
|
17819
17819
|
(Cn) => !Cn.frequency || Cn.frequency.toLowerCase() === we.toLowerCase()
|
|
17820
17820
|
) : X, Xr = He.length > 0 ? He : X;
|
|
17821
17821
|
return [...new Set(Xr.map((Cn) => Cn.formName))];
|
|
17822
17822
|
}, [H, we]);
|
|
17823
|
-
|
|
17823
|
+
C.current = re, Ie(() => {
|
|
17824
17824
|
J.length === 1 && we !== J[0].code && me(J[0].code);
|
|
17825
17825
|
}, [J, we]);
|
|
17826
17826
|
const _e = Number(ve), { data: de } = ze({
|
|
@@ -18515,9 +18515,9 @@ function qE({
|
|
|
18515
18515
|
}) {
|
|
18516
18516
|
const i = Bi(), s = en(), { showSuccess: o, showError: d } = Wt(), c = Te(null), u = Te(null), [m, h] = _(!1), [p, y] = _(!1), [g, b] = _({}), x = () => {
|
|
18517
18517
|
var F;
|
|
18518
|
-
const
|
|
18519
|
-
if (!
|
|
18520
|
-
const w =
|
|
18518
|
+
const C = c.current;
|
|
18519
|
+
if (!C) return;
|
|
18520
|
+
const w = C.getBoundingClientRect(), v = ((F = u.current) == null ? void 0 : F.offsetHeight) ?? BE, S = window.innerHeight - w.bottom < v + xl;
|
|
18521
18521
|
b({
|
|
18522
18522
|
position: "fixed",
|
|
18523
18523
|
top: S ? w.top - v - xl : w.bottom + xl,
|
|
@@ -18530,22 +18530,22 @@ function qE({
|
|
|
18530
18530
|
m && (x(), requestAnimationFrame(x));
|
|
18531
18531
|
}, [m]), Ie(() => {
|
|
18532
18532
|
if (!m) return;
|
|
18533
|
-
const
|
|
18533
|
+
const C = (v) => {
|
|
18534
18534
|
var S, F;
|
|
18535
18535
|
const I = v.target;
|
|
18536
18536
|
(S = c.current) != null && S.contains(I) || (F = u.current) != null && F.contains(I) || h(!1);
|
|
18537
18537
|
}, w = () => x();
|
|
18538
|
-
return document.addEventListener("mousedown",
|
|
18539
|
-
document.removeEventListener("mousedown",
|
|
18538
|
+
return document.addEventListener("mousedown", C), window.addEventListener("resize", w), window.addEventListener("scroll", w, !0), () => {
|
|
18539
|
+
document.removeEventListener("mousedown", C), window.removeEventListener("resize", w), window.removeEventListener("scroll", w, !0);
|
|
18540
18540
|
};
|
|
18541
18541
|
}, [m]);
|
|
18542
|
-
const
|
|
18543
|
-
const
|
|
18542
|
+
const N = async () => {
|
|
18543
|
+
const C = Ui(e);
|
|
18544
18544
|
y(!0);
|
|
18545
18545
|
try {
|
|
18546
18546
|
await J2(e.bankAccountDetailId, {
|
|
18547
18547
|
status: mE(e)
|
|
18548
|
-
}), await s.invalidateQueries({ queryKey: ["bank-accounts", t] }), h(!1), o(
|
|
18548
|
+
}), await s.invalidateQueries({ queryKey: ["bank-accounts", t] }), h(!1), o(C ? "Bank Account Deactivated Successfully" : "Bank Account Activated Successfully");
|
|
18549
18549
|
} catch (w) {
|
|
18550
18550
|
d(
|
|
18551
18551
|
"Action Not Completed",
|
|
@@ -18568,7 +18568,7 @@ function qE({
|
|
|
18568
18568
|
"aria-label": a === "kebab" ? "Bank account actions" : void 0,
|
|
18569
18569
|
"aria-haspopup": "menu",
|
|
18570
18570
|
"aria-expanded": m,
|
|
18571
|
-
onClick: () => h((
|
|
18571
|
+
onClick: () => h((C) => !C),
|
|
18572
18572
|
className: a === "kebab" ? "inline-flex h-7 w-7 items-center justify-center rounded-md text-slate-400 transition hover:bg-slate-100 hover:text-slate-600 disabled:cursor-not-allowed disabled:opacity-60" : "inline-flex items-center gap-1.5 rounded-lg bg-gov-700 px-3 py-1.5 text-xs font-semibold text-white hover:bg-gov-700 disabled:cursor-not-allowed disabled:opacity-60",
|
|
18573
18573
|
children: a === "kebab" ? /* @__PURE__ */ r(_E, {}) : /* @__PURE__ */ l(Oe, { children: [
|
|
18574
18574
|
"Actions",
|
|
@@ -18601,7 +18601,7 @@ function qE({
|
|
|
18601
18601
|
{
|
|
18602
18602
|
type: "button",
|
|
18603
18603
|
disabled: p,
|
|
18604
|
-
onClick: () => void
|
|
18604
|
+
onClick: () => void N(),
|
|
18605
18605
|
className: "block w-full px-4 py-2 text-left text-sm text-slate-700 hover:bg-slate-50 disabled:opacity-60",
|
|
18606
18606
|
children: hE(e)
|
|
18607
18607
|
}
|
|
@@ -18717,11 +18717,11 @@ const ZE = Ee({
|
|
|
18717
18717
|
bankAccountDetailId: f().min(1, "Select a bank account")
|
|
18718
18718
|
}), WE = ["Payment Details", "Bank Account", "Review & Authorize"], jE = "w-full rounded-2xl border border-slate-200 bg-white p-6 shadow-sm lg:p-8";
|
|
18719
18719
|
function XE({ entity: e, paymentDraft: t }) {
|
|
18720
|
-
const n = st(), a = dt(), i = jr(a.state, _t()), [s, o] = _(null), [d, c] = _(!1), [u, m] = _(!1), [h, p] = _(!1), [y, g] = _(null), { saveAsDraft: b } = hp(e), { data: x = [], isLoading:
|
|
18720
|
+
const n = st(), a = dt(), i = jr(a.state, _t()), [s, o] = _(null), [d, c] = _(!1), [u, m] = _(!1), [h, p] = _(!1), [y, g] = _(null), { saveAsDraft: b } = hp(e), { data: x = [], isLoading: N } = ze({
|
|
18721
18721
|
queryKey: ["bank-accounts", e == null ? void 0 : e.entityId],
|
|
18722
18722
|
queryFn: () => ga(e.entityId),
|
|
18723
18723
|
enabled: e !== null
|
|
18724
|
-
}),
|
|
18724
|
+
}), C = Be(() => x.filter(Ui), [x]), w = x.length > 0, {
|
|
18725
18725
|
handleSubmit: v,
|
|
18726
18726
|
watch: I,
|
|
18727
18727
|
setValue: S,
|
|
@@ -18729,12 +18729,12 @@ function XE({ entity: e, paymentDraft: t }) {
|
|
|
18729
18729
|
} = Zr({
|
|
18730
18730
|
resolver: Wr(ZE),
|
|
18731
18731
|
defaultValues: { bankAccountDetailId: t.bankAccountDetailId }
|
|
18732
|
-
}), z = I("bankAccountDetailId"), q =
|
|
18732
|
+
}), z = I("bankAccountDetailId"), q = C.find(
|
|
18733
18733
|
(U) => String(U.bankAccountDetailId) === z
|
|
18734
18734
|
);
|
|
18735
18735
|
Ie(() => {
|
|
18736
|
-
|
|
18737
|
-
}, [
|
|
18736
|
+
N || z && !q && S("bankAccountDetailId", "");
|
|
18737
|
+
}, [N, q, z, S]);
|
|
18738
18738
|
const Z = (U) => ({
|
|
18739
18739
|
...t,
|
|
18740
18740
|
bankAccountDetailId: U.bankAccountDetailId,
|
|
@@ -18892,10 +18892,10 @@ function HE({ entity: e, paymentDraft: t }) {
|
|
|
18892
18892
|
var g, b, x;
|
|
18893
18893
|
const n = (e == null ? void 0 : e.entityId) ?? null, { data: a = [] } = ze({
|
|
18894
18894
|
queryKey: ["state-payment-states"],
|
|
18895
|
-
queryFn: ({ signal:
|
|
18895
|
+
queryFn: ({ signal: N }) => jh(N)
|
|
18896
18896
|
}), { data: i = [] } = ze({
|
|
18897
18897
|
queryKey: ["state-payment-reasons", n, t.state],
|
|
18898
|
-
queryFn: ({ signal:
|
|
18898
|
+
queryFn: ({ signal: N }) => Xh(n, t.state, N),
|
|
18899
18899
|
enabled: n !== null && !!t.state
|
|
18900
18900
|
}), { data: s } = ze({
|
|
18901
18901
|
queryKey: [
|
|
@@ -18904,19 +18904,19 @@ function HE({ entity: e, paymentDraft: t }) {
|
|
|
18904
18904
|
t.state,
|
|
18905
18905
|
t.reasonForPayment
|
|
18906
18906
|
],
|
|
18907
|
-
queryFn: ({ signal:
|
|
18907
|
+
queryFn: ({ signal: N }) => Hh(
|
|
18908
18908
|
n,
|
|
18909
18909
|
t.state,
|
|
18910
18910
|
t.reasonForPayment,
|
|
18911
|
-
|
|
18911
|
+
N
|
|
18912
18912
|
),
|
|
18913
18913
|
enabled: n !== null && !!(t.state && t.reasonForPayment)
|
|
18914
18914
|
}), { data: o = [] } = ze({
|
|
18915
18915
|
queryKey: ["bank-accounts", n],
|
|
18916
18916
|
queryFn: () => ga(n),
|
|
18917
18917
|
enabled: n !== null
|
|
18918
|
-
}), d = (g = a.find((
|
|
18919
|
-
(
|
|
18918
|
+
}), d = (g = a.find((N) => N.code === t.state)) == null ? void 0 : g.name, c = ((b = i.find((N) => N.code === t.reasonForPayment)) == null ? void 0 : b.label) ?? (s == null ? void 0 : s.reasonLabel), u = [d ?? t.state, c].filter(Boolean).join(" "), m = ((x = s == null ? void 0 : s.taxPeriodOptions.find((N) => N.value === t.taxPeriod)) == null ? void 0 : x.label) ?? t.taxPeriod, h = o.find(
|
|
18919
|
+
(N) => String(N.bankAccountDetailId) === t.bankAccountDetailId
|
|
18920
18920
|
), p = [
|
|
18921
18921
|
(h == null ? void 0 : h.bankName) ?? t.bankName,
|
|
18922
18922
|
h ? `${Jb.repeat(3)}${h.accountNumber.replace(/\D/g, "").slice(-4)}` : null
|
|
@@ -18929,10 +18929,10 @@ function HE({ entity: e, paymentDraft: t }) {
|
|
|
18929
18929
|
];
|
|
18930
18930
|
return /* @__PURE__ */ l("aside", { className: "rounded-2xl bg-gov-50/70 p-5", children: [
|
|
18931
18931
|
/* @__PURE__ */ r("h3", { className: "text-base font-semibold text-slate-900", children: "Review Payment" }),
|
|
18932
|
-
/* @__PURE__ */ r("div", { className: "mt-4 rounded-xl bg-white p-4", children: /* @__PURE__ */ r("dl", { className: "divide-y divide-slate-100", children: y.map(([
|
|
18933
|
-
/* @__PURE__ */ r("dt", { className: "text-xs text-slate-500", children:
|
|
18934
|
-
/* @__PURE__ */ r("dd", { className: "text-right text-sm font-semibold text-slate-900", children:
|
|
18935
|
-
] },
|
|
18932
|
+
/* @__PURE__ */ r("div", { className: "mt-4 rounded-xl bg-white p-4", children: /* @__PURE__ */ r("dl", { className: "divide-y divide-slate-100", children: y.map(([N, C]) => /* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-4 py-3 first:pt-0 last:pb-0", children: [
|
|
18933
|
+
/* @__PURE__ */ r("dt", { className: "text-xs text-slate-500", children: N }),
|
|
18934
|
+
/* @__PURE__ */ r("dd", { className: "text-right text-sm font-semibold text-slate-900", children: C })
|
|
18935
|
+
] }, N)) }) })
|
|
18936
18936
|
] });
|
|
18937
18937
|
}
|
|
18938
18938
|
const QE = "By signing below, you authorize Govpay Payments to initiate this tax payment using the payment details you provided.", GE = [
|
|
@@ -18981,7 +18981,7 @@ function Cd({
|
|
|
18981
18981
|
errors: h,
|
|
18982
18982
|
signatureCaption: p = "Signature of taxpayer"
|
|
18983
18983
|
}) {
|
|
18984
|
-
const y = !!(c != null && c.trim()), { onChange: g, onBlur: b, name: x, ref:
|
|
18984
|
+
const y = !!(c != null && c.trim()), { onChange: g, onBlur: b, name: x, ref: N } = n;
|
|
18985
18985
|
return /* @__PURE__ */ l("div", { children: [
|
|
18986
18986
|
e ? /* @__PURE__ */ l("p", { className: "mb-3 text-sm font-medium text-gov-600", children: [
|
|
18987
18987
|
e,
|
|
@@ -18993,7 +18993,7 @@ function Cd({
|
|
|
18993
18993
|
/* @__PURE__ */ r("div", { className: Z5, children: /* @__PURE__ */ r(
|
|
18994
18994
|
"input",
|
|
18995
18995
|
{
|
|
18996
|
-
ref:
|
|
18996
|
+
ref: N,
|
|
18997
18997
|
name: x,
|
|
18998
18998
|
placeholder: "Sign here",
|
|
18999
18999
|
autoComplete: "off",
|
|
@@ -19059,7 +19059,7 @@ function iT({
|
|
|
19059
19059
|
} = Zr({
|
|
19060
19060
|
resolver: Wr(tT),
|
|
19061
19061
|
defaultValues: h
|
|
19062
|
-
}), x = g("agreementDate"),
|
|
19062
|
+
}), x = g("agreementDate"), N = g("agreementAccepted"), C = g("signature"), w = p("signature"), { saveAsDraft: v, upsertPayment: I } = hp(e), S = () => v(t), F = () => {
|
|
19063
19063
|
Ms(), n(o);
|
|
19064
19064
|
}, z = async () => {
|
|
19065
19065
|
await i.invalidateQueries({ queryKey: ["remittance-payments"] }), await i.invalidateQueries({ queryKey: ["dashboard"] }), await i.invalidateQueries({ queryKey: ["state-payments"] });
|
|
@@ -19145,7 +19145,7 @@ function iT({
|
|
|
19145
19145
|
label: "Taxpayer's Signature",
|
|
19146
19146
|
required: !0,
|
|
19147
19147
|
signature: w,
|
|
19148
|
-
signatureValue:
|
|
19148
|
+
signatureValue: C,
|
|
19149
19149
|
signerName: p("authorizationPersonName"),
|
|
19150
19150
|
signerNameCaption: "Name of authorized person",
|
|
19151
19151
|
title: p("title"),
|
|
@@ -19184,7 +19184,7 @@ function iT({
|
|
|
19184
19184
|
submit: {
|
|
19185
19185
|
label: "Submit Payment",
|
|
19186
19186
|
// Consent gates the submit outright, not just validation on click.
|
|
19187
|
-
disabled: !e || !
|
|
19187
|
+
disabled: !e || !N,
|
|
19188
19188
|
// …but an unticked box still leaves a draft worth saving.
|
|
19189
19189
|
blocksDraft: !1,
|
|
19190
19190
|
isSubmitting: u
|
|
@@ -19368,15 +19368,15 @@ function gT({
|
|
|
19368
19368
|
handleSubmit: g,
|
|
19369
19369
|
watch: b,
|
|
19370
19370
|
setValue: x,
|
|
19371
|
-
reset:
|
|
19372
|
-
formState: { errors:
|
|
19371
|
+
reset: N,
|
|
19372
|
+
formState: { errors: C }
|
|
19373
19373
|
} = Zr({
|
|
19374
19374
|
resolver: Wr(fT),
|
|
19375
19375
|
defaultValues: p
|
|
19376
19376
|
});
|
|
19377
19377
|
Ie(() => {
|
|
19378
|
-
|
|
19379
|
-
}, [p,
|
|
19378
|
+
N(p);
|
|
19379
|
+
}, [p, N]);
|
|
19380
19380
|
const w = b("authorizedTaxForm"), v = cT(w), I = b("signature"), S = b("signatureDate"), F = b("state"), z = b("country"), q = b("isSeasonalEmployer"), Z = Rs(z), M = !0, j = async () => {
|
|
19381
19381
|
await o.invalidateQueries({ queryKey: ["dashboard"] }), await o.invalidateQueries({ queryKey: ["federal-payments"] }), await o.invalidateQueries({ queryKey: ["remittance-payments"] });
|
|
19382
19382
|
}, $ = async () => {
|
|
@@ -19464,22 +19464,22 @@ function gT({
|
|
|
19464
19464
|
label: "1a) Name of the Taxpayer",
|
|
19465
19465
|
required: !0,
|
|
19466
19466
|
info: "The taxpayer's legal name as registered with the IRS.",
|
|
19467
|
-
error: (H =
|
|
19467
|
+
error: (H = C.taxpayerName) == null ? void 0 : H.message,
|
|
19468
19468
|
children: /* @__PURE__ */ r(
|
|
19469
19469
|
"input",
|
|
19470
19470
|
{
|
|
19471
19471
|
placeholder: "Enter Name of the Taxpayer",
|
|
19472
|
-
className: Me(!!
|
|
19472
|
+
className: Me(!!C.taxpayerName),
|
|
19473
19473
|
...y("taxpayerName")
|
|
19474
19474
|
}
|
|
19475
19475
|
)
|
|
19476
19476
|
}
|
|
19477
19477
|
),
|
|
19478
|
-
/* @__PURE__ */ r(Ne, { label: "1b) Trade Name, if any", error: (B =
|
|
19478
|
+
/* @__PURE__ */ r(Ne, { label: "1b) Trade Name, if any", error: (B = C.tradeName) == null ? void 0 : B.message, children: /* @__PURE__ */ r(
|
|
19479
19479
|
"input",
|
|
19480
19480
|
{
|
|
19481
19481
|
placeholder: "Enter Trade Name, if any",
|
|
19482
|
-
className: Me(!!
|
|
19482
|
+
className: Me(!!C.tradeName),
|
|
19483
19483
|
...y("tradeName")
|
|
19484
19484
|
}
|
|
19485
19485
|
) }),
|
|
@@ -19488,12 +19488,12 @@ function gT({
|
|
|
19488
19488
|
{
|
|
19489
19489
|
label: "2. Employer Identification Number (EIN)",
|
|
19490
19490
|
required: !0,
|
|
19491
|
-
error: (se =
|
|
19491
|
+
error: (se = C.ein) == null ? void 0 : se.message,
|
|
19492
19492
|
children: /* @__PURE__ */ r(
|
|
19493
19493
|
"input",
|
|
19494
19494
|
{
|
|
19495
19495
|
placeholder: "Enter EIN",
|
|
19496
|
-
className: Me(!!
|
|
19496
|
+
className: Me(!!C.ein),
|
|
19497
19497
|
...y("ein")
|
|
19498
19498
|
}
|
|
19499
19499
|
)
|
|
@@ -19506,31 +19506,31 @@ function gT({
|
|
|
19506
19506
|
{
|
|
19507
19507
|
label: "3a) Address (Number, Street, and Room/Suite No)",
|
|
19508
19508
|
required: !0,
|
|
19509
|
-
error: (G =
|
|
19509
|
+
error: (G = C.address) == null ? void 0 : G.message,
|
|
19510
19510
|
children: /* @__PURE__ */ r(
|
|
19511
19511
|
"input",
|
|
19512
19512
|
{
|
|
19513
19513
|
placeholder: "Enter Address",
|
|
19514
|
-
className: Me(!!
|
|
19514
|
+
className: Me(!!C.address),
|
|
19515
19515
|
...y("address")
|
|
19516
19516
|
}
|
|
19517
19517
|
)
|
|
19518
19518
|
}
|
|
19519
19519
|
) }),
|
|
19520
|
-
/* @__PURE__ */ r(Ne, { label: "3b) City or Town", required: !0, error: (ve =
|
|
19520
|
+
/* @__PURE__ */ r(Ne, { label: "3b) City or Town", required: !0, error: (ve = C.city) == null ? void 0 : ve.message, children: /* @__PURE__ */ r(
|
|
19521
19521
|
"input",
|
|
19522
19522
|
{
|
|
19523
19523
|
placeholder: "Enter City or Town",
|
|
19524
|
-
className: Me(!!
|
|
19524
|
+
className: Me(!!C.city),
|
|
19525
19525
|
...y("city")
|
|
19526
19526
|
}
|
|
19527
19527
|
) })
|
|
19528
19528
|
] }),
|
|
19529
19529
|
/* @__PURE__ */ l("div", { className: `mt-5 ${ou}`, children: [
|
|
19530
|
-
/* @__PURE__ */ r(Ne, { label: "3c) State", required: !0, error: (ae =
|
|
19530
|
+
/* @__PURE__ */ r(Ne, { label: "3c) State", required: !0, error: (ae = C.state) == null ? void 0 : ae.message, children: /* @__PURE__ */ r(
|
|
19531
19531
|
et,
|
|
19532
19532
|
{
|
|
19533
|
-
hasError: !!
|
|
19533
|
+
hasError: !!C.state,
|
|
19534
19534
|
placeholder: "Select State",
|
|
19535
19535
|
value: F,
|
|
19536
19536
|
onChange: (de) => x("state", de, { shouldValidate: !0 }),
|
|
@@ -19540,18 +19540,18 @@ function gT({
|
|
|
19540
19540
|
}))
|
|
19541
19541
|
}
|
|
19542
19542
|
) }),
|
|
19543
|
-
/* @__PURE__ */ r(Ne, { label: "3d) ZIP Code", required: !0, error: (Se =
|
|
19543
|
+
/* @__PURE__ */ r(Ne, { label: "3d) ZIP Code", required: !0, error: (Se = C.zipCode) == null ? void 0 : Se.message, children: /* @__PURE__ */ r(
|
|
19544
19544
|
"input",
|
|
19545
19545
|
{
|
|
19546
19546
|
placeholder: "Enter ZIP Code",
|
|
19547
|
-
className: Me(!!
|
|
19547
|
+
className: Me(!!C.zipCode),
|
|
19548
19548
|
...y("zipCode")
|
|
19549
19549
|
}
|
|
19550
19550
|
) }),
|
|
19551
|
-
/* @__PURE__ */ r(Ne, { label: "3e) Country", required: !0, error: (J =
|
|
19551
|
+
/* @__PURE__ */ r(Ne, { label: "3e) Country", required: !0, error: (J = C.country) == null ? void 0 : J.message, children: /* @__PURE__ */ r(
|
|
19552
19552
|
et,
|
|
19553
19553
|
{
|
|
19554
|
-
hasError: !!
|
|
19554
|
+
hasError: !!C.country,
|
|
19555
19555
|
placeholder: "Select Country",
|
|
19556
19556
|
value: z,
|
|
19557
19557
|
onChange: (de) => x("country", de, { shouldValidate: !0 }),
|
|
@@ -19594,11 +19594,11 @@ function gT({
|
|
|
19594
19594
|
...y("otherIdentificationNumber")
|
|
19595
19595
|
}
|
|
19596
19596
|
) }),
|
|
19597
|
-
/* @__PURE__ */ r(Ne, { label: "6. Contact Person", error: (ge =
|
|
19597
|
+
/* @__PURE__ */ r(Ne, { label: "6. Contact Person", error: (ge = C.contactPerson) == null ? void 0 : ge.message, children: /* @__PURE__ */ r(
|
|
19598
19598
|
"input",
|
|
19599
19599
|
{
|
|
19600
19600
|
placeholder: "Enter Contact Person",
|
|
19601
|
-
className: Me(!!
|
|
19601
|
+
className: Me(!!C.contactPerson),
|
|
19602
19602
|
...y("contactPerson")
|
|
19603
19603
|
}
|
|
19604
19604
|
) })
|
|
@@ -19610,15 +19610,15 @@ function gT({
|
|
|
19610
19610
|
variant: "payment",
|
|
19611
19611
|
label: "7. Daytime Telephone Number",
|
|
19612
19612
|
required: !0,
|
|
19613
|
-
error: (we =
|
|
19613
|
+
error: (we = C.daytimePhone) == null ? void 0 : we.message,
|
|
19614
19614
|
register: y("daytimePhone")
|
|
19615
19615
|
}
|
|
19616
19616
|
),
|
|
19617
|
-
/* @__PURE__ */ r(Ne, { label: "7. Fax Number", error: (me =
|
|
19617
|
+
/* @__PURE__ */ r(Ne, { label: "7. Fax Number", error: (me = C.faxNumber) == null ? void 0 : me.message, children: /* @__PURE__ */ r(
|
|
19618
19618
|
"input",
|
|
19619
19619
|
{
|
|
19620
19620
|
placeholder: "Enter Fax Number",
|
|
19621
|
-
className: Me(!!
|
|
19621
|
+
className: Me(!!C.faxNumber),
|
|
19622
19622
|
...y("faxNumber")
|
|
19623
19623
|
}
|
|
19624
19624
|
) })
|
|
@@ -19666,7 +19666,7 @@ function gT({
|
|
|
19666
19666
|
v ? `${su} (${w})` : su
|
|
19667
19667
|
] })
|
|
19668
19668
|
] }),
|
|
19669
|
-
|
|
19669
|
+
C.authorizedTaxForm ? /* @__PURE__ */ r("p", { className: "mt-2 text-xs text-red-600", children: C.authorizedTaxForm.message }) : null
|
|
19670
19670
|
]
|
|
19671
19671
|
}
|
|
19672
19672
|
),
|
|
@@ -19688,7 +19688,7 @@ function gT({
|
|
|
19688
19688
|
mT
|
|
19689
19689
|
] })
|
|
19690
19690
|
] }),
|
|
19691
|
-
|
|
19691
|
+
C.agreementAccepted ? /* @__PURE__ */ r("p", { className: "mt-2 text-xs text-red-600", children: C.agreementAccepted.message }) : null
|
|
19692
19692
|
] })
|
|
19693
19693
|
] }),
|
|
19694
19694
|
/* @__PURE__ */ r("section", { className: "mt-8 border-t border-slate-100 pt-8", children: /* @__PURE__ */ r(
|
|
@@ -19702,9 +19702,9 @@ function gT({
|
|
|
19702
19702
|
signatureValue: I,
|
|
19703
19703
|
dateValue: S,
|
|
19704
19704
|
errors: {
|
|
19705
|
-
signature: (ue =
|
|
19706
|
-
title: (re =
|
|
19707
|
-
date: (_e =
|
|
19705
|
+
signature: (ue = C.signature) == null ? void 0 : ue.message,
|
|
19706
|
+
title: (re = C.title) == null ? void 0 : re.message,
|
|
19707
|
+
date: (_e = C.signatureDate) == null ? void 0 : _e.message
|
|
19708
19708
|
}
|
|
19709
19709
|
}
|
|
19710
19710
|
) })
|
|
@@ -20001,8 +20001,8 @@ function DT({
|
|
|
20001
20001
|
};
|
|
20002
20002
|
}, [e, n, t, g]), {
|
|
20003
20003
|
register: x,
|
|
20004
|
-
handleSubmit:
|
|
20005
|
-
watch:
|
|
20004
|
+
handleSubmit: N,
|
|
20005
|
+
watch: C,
|
|
20006
20006
|
setValue: w,
|
|
20007
20007
|
reset: v,
|
|
20008
20008
|
control: I,
|
|
@@ -20014,7 +20014,7 @@ function DT({
|
|
|
20014
20014
|
Ie(() => {
|
|
20015
20015
|
v(b);
|
|
20016
20016
|
}, [b, v]);
|
|
20017
|
-
const F =
|
|
20017
|
+
const F = C("taxpayerSignature"), z = C("jointFilerSignature"), q = C("taxpayerSignatureDate"), Z = C("jointFilerSignatureDate"), M = C("accountType"), j = C("taxpayerNames"), $ = C("primaryAddress"), ee = C("city"), U = C("state"), Y = C("zipCode"), O = C("country"), K = C("primaryPhone"), R = C("internationalAddress"), H = Rs(O), B = !0, se = Be(() => _A(J5), []), G = () => {
|
|
20018
20018
|
w("primaryContactName", j, { shouldValidate: !0 }), w("primaryContactAddress", $, { shouldValidate: !0 }), w("contactCity", ee, { shouldValidate: !0 }), w("contactState", U, { shouldValidate: !0 }), w("contactZipCode", Y, { shouldValidate: !0 }), w("contactCountry", O, { shouldValidate: !0 }), w("contactPhone", K, { shouldValidate: !0 }), w("contactInternationalAddress", R ?? "", { shouldValidate: !0 });
|
|
20019
20019
|
}, ve = () => {
|
|
20020
20020
|
w("primaryContactName", "", { shouldValidate: !0 }), w("primaryContactAddress", "", { shouldValidate: !0 }), w("contactCity", "", { shouldValidate: !0 }), w("contactState", "", { shouldValidate: !0 }), w("contactZipCode", "", { shouldValidate: !0 }), w("contactCountry", "", { shouldValidate: !0 }), w("contactPhone", "", { shouldValidate: !0 }), w("contactInternationalAddress", "", { shouldValidate: !0 });
|
|
@@ -20065,7 +20065,7 @@ function DT({
|
|
|
20065
20065
|
federalPaymentId: pe.federalPaymentId,
|
|
20066
20066
|
enrollmentId: pe.enrollmentId
|
|
20067
20067
|
};
|
|
20068
|
-
}, we =
|
|
20068
|
+
}, we = N(async (Q) => {
|
|
20069
20069
|
if (!(!e || a)) {
|
|
20070
20070
|
u(null), h(!0);
|
|
20071
20071
|
try {
|
|
@@ -20092,7 +20092,7 @@ function DT({
|
|
|
20092
20092
|
});
|
|
20093
20093
|
}, ue = () => {
|
|
20094
20094
|
Za(), i(d);
|
|
20095
|
-
}, re =
|
|
20095
|
+
}, re = N(async (Q) => {
|
|
20096
20096
|
if (!(!e || a)) {
|
|
20097
20097
|
u(null), h(!0);
|
|
20098
20098
|
try {
|
|
@@ -20919,10 +20919,10 @@ function YT({
|
|
|
20919
20919
|
};
|
|
20920
20920
|
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
20921
20921
|
}, [h]);
|
|
20922
|
-
const
|
|
20922
|
+
const N = Be(
|
|
20923
20923
|
() => zT(y.getFullYear(), y.getMonth()),
|
|
20924
20924
|
[y]
|
|
20925
|
-
),
|
|
20925
|
+
), C = u ? u(y.getFullYear(), y.getMonth()) : y.toLocaleDateString("en-US", { month: "long", year: "numeric" }), w = (v) => {
|
|
20926
20926
|
c && !c(v) || (t(i(v)), p(!1), n == null || n());
|
|
20927
20927
|
};
|
|
20928
20928
|
return /* @__PURE__ */ l("div", { ref: b, className: "relative", children: [
|
|
@@ -20971,7 +20971,7 @@ function YT({
|
|
|
20971
20971
|
children: /* @__PURE__ */ r("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) })
|
|
20972
20972
|
}
|
|
20973
20973
|
),
|
|
20974
|
-
/* @__PURE__ */ r("span", { className: "text-sm font-semibold text-slate-900", children:
|
|
20974
|
+
/* @__PURE__ */ r("span", { className: "text-sm font-semibold text-slate-900", children: C }),
|
|
20975
20975
|
/* @__PURE__ */ r(
|
|
20976
20976
|
"button",
|
|
20977
20977
|
{
|
|
@@ -20984,7 +20984,7 @@ function YT({
|
|
|
20984
20984
|
)
|
|
20985
20985
|
] }),
|
|
20986
20986
|
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 px-3 pt-2 text-center text-xs font-medium text-slate-500", children: MT.map((v) => /* @__PURE__ */ r("div", { className: "py-1", children: v }, v)) }),
|
|
20987
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 p-3 pt-1", children:
|
|
20987
|
+
/* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 p-3 pt-1", children: N.map((v, I) => {
|
|
20988
20988
|
if (!v) return /* @__PURE__ */ r("div", {}, `empty-${I}`);
|
|
20989
20989
|
const S = m ? $T(v, m) : !1, F = c ? !c(v) : !1;
|
|
20990
20990
|
return /* @__PURE__ */ r(
|
|
@@ -21519,10 +21519,10 @@ function vt({
|
|
|
21519
21519
|
onSubmitted: d,
|
|
21520
21520
|
readOnly: c = !1
|
|
21521
21521
|
}) {
|
|
21522
|
-
const [u, m] = _(() => i(n)), [h, p] = _("preview"), y = h === "edit", g = Te(u), [b, x] = _({}),
|
|
21522
|
+
const [u, m] = _(() => i(n)), [h, p] = _("preview"), y = h === "edit", g = Te(u), [b, x] = _({}), N = Object.keys(b).length > 0, { showSuccess: C, showError: w } = Wt(), v = Tn({
|
|
21523
21523
|
mutationFn: (Y) => Hn(Y),
|
|
21524
21524
|
onSuccess: (Y) => {
|
|
21525
|
-
p("preview"),
|
|
21525
|
+
p("preview"), C(`Form ${e} submitted`, "We'll update its status once it's filed with the state."), d == null || d(Y);
|
|
21526
21526
|
},
|
|
21527
21527
|
onError: () => {
|
|
21528
21528
|
w("Submission failed", "Please try again.");
|
|
@@ -21532,7 +21532,7 @@ function vt({
|
|
|
21532
21532
|
return O.success ? {} : jT(O.error.issues);
|
|
21533
21533
|
}, S = (Y) => {
|
|
21534
21534
|
const O = i(Y);
|
|
21535
|
-
if (m(O), o == null || o(O),
|
|
21535
|
+
if (m(O), o == null || o(O), N) {
|
|
21536
21536
|
const K = I(O);
|
|
21537
21537
|
x(
|
|
21538
21538
|
(R) => Object.fromEntries(Object.keys(R).filter((H) => H in K).map((H) => [H, K[H]]))
|
|
@@ -21552,7 +21552,7 @@ function vt({
|
|
|
21552
21552
|
mode: h,
|
|
21553
21553
|
isEditing: y,
|
|
21554
21554
|
fieldErrors: b,
|
|
21555
|
-
hasErrors:
|
|
21555
|
+
hasErrors: N,
|
|
21556
21556
|
commit: S,
|
|
21557
21557
|
field: (Y, { format: O, enabled: K = !0, alsoCheck: R = [] } = {}) => ({
|
|
21558
21558
|
value: String(du(u, Y) ?? ""),
|
|
@@ -22273,7 +22273,7 @@ function Nx({
|
|
|
22273
22273
|
onBack: i,
|
|
22274
22274
|
onSubmitted: s
|
|
22275
22275
|
}) {
|
|
22276
|
-
const [o, d] = _(() => ({ ...gP, ...n })), [c, u] = _("preview"), m = c === "edit", h = Te(o), [p, y] = _({}), g = Object.keys(p).length > 0, { showSuccess: b, showError: x } = Wt(),
|
|
22276
|
+
const [o, d] = _(() => ({ ...gP, ...n })), [c, u] = _("preview"), m = c === "edit", h = Te(o), [p, y] = _({}), g = Object.keys(p).length > 0, { showSuccess: b, showError: x } = Wt(), N = bP[e], C = Be(() => fP(e), [e]), w = bx(e, o), v = o.isCancellingAccount, I = !v, S = bp(e, o.periodCovered), F = S ? pc(gx(e, S)) : null, z = Ce(o.amountRemitted), Z = v ? Fe(0) : (e === "A-1" ? ["taxWithheld", "priorRemitted", "credit", "penalty", "interest"] : ["taxWithheld", "credit", "penalty", "interest"]).every((ae) => In(o[ae])) ? pi : Fe(w.totalDueCents), M = Tn({
|
|
22277
22277
|
mutationFn: (ae) => Hn(ae),
|
|
22278
22278
|
onSuccess: (ae) => {
|
|
22279
22279
|
u("preview"), b(`Form ${e} submitted`, "We'll update its status once it's filed with the state."), s == null || s(ae);
|
|
@@ -22282,7 +22282,7 @@ function Nx({
|
|
|
22282
22282
|
x("Submission failed", "Please try again.");
|
|
22283
22283
|
}
|
|
22284
22284
|
}), j = (ae) => {
|
|
22285
|
-
const Se =
|
|
22285
|
+
const Se = C.safeParse(ae);
|
|
22286
22286
|
return Se.success ? {} : cx(Se.error.issues);
|
|
22287
22287
|
}, $ = (ae) => {
|
|
22288
22288
|
const Se = ae.isCancellingAccount ? { ...ae, ...xx } : ae;
|
|
@@ -22332,11 +22332,11 @@ function Nx({
|
|
|
22332
22332
|
/* @__PURE__ */ l("h1", { className: "font-lato text-xl font-bold text-[#101828]", children: [
|
|
22333
22333
|
m ? "Edit" : "State",
|
|
22334
22334
|
" ",
|
|
22335
|
-
|
|
22335
|
+
N.heading,
|
|
22336
22336
|
S ? ` · ${cP(e, S)}` : ""
|
|
22337
22337
|
] }),
|
|
22338
22338
|
/* @__PURE__ */ r(bn, { children: /* @__PURE__ */ l("div", { className: "space-y-8", children: [
|
|
22339
|
-
/* @__PURE__ */ r(ux, { formNumber: e, titleLines:
|
|
22339
|
+
/* @__PURE__ */ r(ux, { formNumber: e, titleLines: N.titleLines }),
|
|
22340
22340
|
/* @__PURE__ */ l("ol", { className: "divide-y divide-slate-100", children: [
|
|
22341
22341
|
/* @__PURE__ */ r(
|
|
22342
22342
|
Ir,
|
|
@@ -22360,7 +22360,7 @@ function Nx({
|
|
|
22360
22360
|
})
|
|
22361
22361
|
}
|
|
22362
22362
|
) }),
|
|
22363
|
-
/* @__PURE__ */ r(Ir, { number: 3, label:
|
|
22363
|
+
/* @__PURE__ */ r(Ir, { number: 3, label: N.line3, children: /* @__PURE__ */ r(ie, { ...K("taxWithheld", "Line 3, tax withheld") }) }),
|
|
22364
22364
|
e === "A-1" ? /* @__PURE__ */ r(Ir, { number: 4, label: "Less Alabama Tax Remitted First 2 Months Of Quarter", hint: "What you paid with this quarter's first two monthly payments.", children: /* @__PURE__ */ r(ie, { ...K("priorRemitted", "Line 4, tax remitted first 2 months") }) }) : /* @__PURE__ */ r(Ir, { number: 4, label: "***(This Line Not Applicable To Form A-6)***", muted: !0, children: /* @__PURE__ */ r("p", { className: "py-2 text-center text-xs text-slate-400", children: "Not applicable" }) }),
|
|
22365
22365
|
/* @__PURE__ */ r(Ir, { number: 5, label: "Credit For Overpayment Of Prior Periods (See Instructions)", children: /* @__PURE__ */ r(ie, { ...K("credit", "Line 5, credit for overpayment") }) }),
|
|
22366
22366
|
/* @__PURE__ */ r(Ir, { number: 6, label: "Delinquent Penalty (Applicable To This Return Only)", hint: ve, children: /* @__PURE__ */ r(ie, { ...K("penalty", "Line 6, delinquent penalty") }) }),
|
|
@@ -22585,7 +22585,7 @@ const Ul = "text-[#101828]", ta = "text-[#19191A]", uu = { dollars: "", cents: "
|
|
|
22585
22585
|
overpaymentChoice: ""
|
|
22586
22586
|
};
|
|
22587
22587
|
function s1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitted: i }) {
|
|
22588
|
-
const [s, o] = _(() => ({ ...IP, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => SP(e.paymentAmount), [e.paymentAmount]),
|
|
22588
|
+
const [s, o] = _(() => ({ ...IP, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => SP(e.paymentAmount), [e.paymentAmount]), N = xp(s), C = Ce(e.paymentAmount), w = pc(vx(e.taxYear)), v = N.overpaymentCents > 0, I = v && N.overpaymentCents < Cx, S = Tn({
|
|
22589
22589
|
mutationFn: (O) => Hn(O),
|
|
22590
22590
|
onSuccess: (O) => {
|
|
22591
22591
|
c("preview"), g("Form A-3 submitted", "We'll update its status once it's filed with the state."), i == null || i(O);
|
|
@@ -22689,16 +22689,16 @@ function s1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
22689
22689
|
/* @__PURE__ */ r("span", { className: `font-semibold sm:px-3 ${Ul}`, children: "Year total" }),
|
|
22690
22690
|
/* @__PURE__ */ l("span", { className: `tabular-nums sm:border-l sm:border-slate-300 sm:px-3 ${ta}`, children: [
|
|
22691
22691
|
/* @__PURE__ */ r("span", { className: "text-slate-500 sm:hidden", children: "Withheld: " }),
|
|
22692
|
-
na(
|
|
22692
|
+
na(N.totalWithheldCents)
|
|
22693
22693
|
] }),
|
|
22694
22694
|
/* @__PURE__ */ l("span", { className: `tabular-nums sm:border-l sm:border-slate-300 sm:px-3 ${ta}`, children: [
|
|
22695
22695
|
/* @__PURE__ */ r("span", { className: "text-slate-500 sm:hidden", children: "Remitted: " }),
|
|
22696
|
-
na(
|
|
22696
|
+
na(N.totalRemittedCents)
|
|
22697
22697
|
] })
|
|
22698
22698
|
] })
|
|
22699
22699
|
] }),
|
|
22700
22700
|
/* @__PURE__ */ l("ol", { className: "divide-y divide-slate-800 border-2 border-slate-800", children: [
|
|
22701
|
-
/* @__PURE__ */ r(Cl, { number: 1, label: "Total tax remitted (Col 2)", children: /* @__PURE__ */ r(ie, { label: "Line 1, total tax remitted", amount: Fe(
|
|
22701
|
+
/* @__PURE__ */ r(Cl, { number: 1, label: "Total tax remitted (Col 2)", children: /* @__PURE__ */ r(ie, { label: "Line 1, total tax remitted", amount: Fe(N.totalRemittedCents) }) }),
|
|
22702
22702
|
/* @__PURE__ */ r(Cl, { number: 2, label: "Total Alabama income tax withheld as shown on Forms W-2 and/or 1099", children: /* @__PURE__ */ r(
|
|
22703
22703
|
ie,
|
|
22704
22704
|
{
|
|
@@ -22710,7 +22710,7 @@ function s1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
22710
22710
|
}
|
|
22711
22711
|
) }),
|
|
22712
22712
|
/* @__PURE__ */ l(Cl, { number: 3, label: "Additional tax due — enclosed remittance", hint: "Line 2 minus line 1, if more than zero.", children: [
|
|
22713
|
-
/* @__PURE__ */ r(ie, { label: "Line 3, additional tax due", amount: Fe(
|
|
22713
|
+
/* @__PURE__ */ r(ie, { label: "Line 3, additional tax due", amount: Fe(N.additionalDueCents) }),
|
|
22714
22714
|
/* @__PURE__ */ r(Sd, { message: h.additionalDue })
|
|
22715
22715
|
] }),
|
|
22716
22716
|
/* @__PURE__ */ r(
|
|
@@ -22743,7 +22743,7 @@ function s1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
22743
22743
|
] }),
|
|
22744
22744
|
/* @__PURE__ */ r(Sd, { message: h.overpaymentChoice })
|
|
22745
22745
|
] }),
|
|
22746
|
-
children: /* @__PURE__ */ r(ie, { label: "Line 4, overpayment", amount: Fe(
|
|
22746
|
+
children: /* @__PURE__ */ r(ie, { label: "Line 4, overpayment", amount: Fe(N.overpaymentCents) })
|
|
22747
22747
|
}
|
|
22748
22748
|
)
|
|
22749
22749
|
] }),
|
|
@@ -22786,10 +22786,10 @@ function s1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
22786
22786
|
/* @__PURE__ */ l("p", { children: [
|
|
22787
22787
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "This payment:" }),
|
|
22788
22788
|
" ",
|
|
22789
|
-
na(
|
|
22790
|
-
|
|
22789
|
+
na(C),
|
|
22790
|
+
N.additionalDueCents !== C ? /* @__PURE__ */ l("span", { className: "text-slate-500", children: [
|
|
22791
22791
|
" · Line 3 currently ",
|
|
22792
|
-
na(
|
|
22792
|
+
na(N.additionalDueCents)
|
|
22793
22793
|
] }) : null
|
|
22794
22794
|
] }),
|
|
22795
22795
|
/* @__PURE__ */ l("p", { children: [
|
|
@@ -22797,12 +22797,12 @@ function s1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
22797
22797
|
" ",
|
|
22798
22798
|
w
|
|
22799
22799
|
] }),
|
|
22800
|
-
|
|
22800
|
+
N.w2WithheldCents > 0 && N.totalWithheldCents !== N.w2WithheldCents ? /* @__PURE__ */ l("p", { className: "font-medium text-slate-700 sm:col-span-2", children: [
|
|
22801
22801
|
"Column 1 totals ",
|
|
22802
|
-
na(
|
|
22802
|
+
na(N.totalWithheldCents),
|
|
22803
22803
|
", but line 2 reports",
|
|
22804
22804
|
" ",
|
|
22805
|
-
na(
|
|
22805
|
+
na(N.w2WithheldCents),
|
|
22806
22806
|
" withheld per the W-2s / 1099s. Check both before submitting."
|
|
22807
22807
|
] }) : null
|
|
22808
22808
|
] })
|
|
@@ -23808,7 +23808,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
23808
23808
|
...oL,
|
|
23809
23809
|
semiWeeklySchedule: Zl(),
|
|
23810
23810
|
...t
|
|
23811
|
-
})), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => rL(e), [e]),
|
|
23811
|
+
})), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => rL(e), [e]), N = Ex(s), C = s.depositSchedule === "quarterly", w = s.depositSchedule === "monthly", v = u && w && s.isSemiWeekly, I = Tn({
|
|
23812
23812
|
mutationFn: (B) => Hn(B),
|
|
23813
23813
|
onSuccess: (B) => {
|
|
23814
23814
|
c("preview"), g("Form A1-QRT submitted", "We'll update its status once it's filed with the state."), i == null || i(B);
|
|
@@ -24017,7 +24017,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24017
24017
|
x1,
|
|
24018
24018
|
{
|
|
24019
24019
|
name: "depositSchedule",
|
|
24020
|
-
checked:
|
|
24020
|
+
checked: C,
|
|
24021
24021
|
disabled: !u,
|
|
24022
24022
|
onChange: () => ee("quarterly"),
|
|
24023
24023
|
label: "A. Quarterly Deposit Schedule: Complete if prior 4 quarter average was not more than $1,500."
|
|
@@ -24028,7 +24028,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24028
24028
|
{
|
|
24029
24029
|
amount: s.a1Liability,
|
|
24030
24030
|
label: "Line A1, tax liability",
|
|
24031
|
-
onChange: Z("a1Liability",
|
|
24031
|
+
onChange: Z("a1Liability", C),
|
|
24032
24032
|
onBlur: z("a1Liability"),
|
|
24033
24033
|
error: h.a1Liability
|
|
24034
24034
|
}
|
|
@@ -24072,7 +24072,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24072
24072
|
s.isSemiWeekly ? " These are carried from Part 4." : ""
|
|
24073
24073
|
] }),
|
|
24074
24074
|
/* @__PURE__ */ l("ul", { className: "space-y-3", children: [
|
|
24075
|
-
cL.map((B, se) => /* @__PURE__ */ r(eo, { code: wl[se], label: `Month ${se + 1} Liability`, children: s.isSemiWeekly ? /* @__PURE__ */ r(ie, { amount: Fe(
|
|
24075
|
+
cL.map((B, se) => /* @__PURE__ */ r(eo, { code: wl[se], label: `Month ${se + 1} Liability`, children: s.isSemiWeekly ? /* @__PURE__ */ r(ie, { amount: Fe(N.scheduleMonthCents[se]), label: `Line ${wl[se]}` }) : /* @__PURE__ */ r(
|
|
24076
24076
|
ie,
|
|
24077
24077
|
{
|
|
24078
24078
|
amount: s[B],
|
|
@@ -24082,7 +24082,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24082
24082
|
error: h[B]
|
|
24083
24083
|
}
|
|
24084
24084
|
) }, B)),
|
|
24085
|
-
/* @__PURE__ */ r(eo, { code: "B4", label: "Total. Enter this amount on Part 3, line 1.", children: /* @__PURE__ */ r(ie, { amount: w ? Fe(
|
|
24085
|
+
/* @__PURE__ */ r(eo, { code: "B4", label: "Total. Enter this amount on Part 3, line 1.", children: /* @__PURE__ */ r(ie, { amount: w ? Fe(N.b4Cents) : Bt, label: "Line B4, total" }) })
|
|
24086
24086
|
] })
|
|
24087
24087
|
] })
|
|
24088
24088
|
] }),
|
|
@@ -24096,7 +24096,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24096
24096
|
{
|
|
24097
24097
|
number: 1,
|
|
24098
24098
|
label: "Liability: Enter the amount from line A1 or line B4",
|
|
24099
|
-
amount: s.depositSchedule ? Fe(
|
|
24099
|
+
amount: s.depositSchedule ? Fe(N.line1Cents) : Bt,
|
|
24100
24100
|
columns: "1.5rem minmax(0, 1fr) 11rem",
|
|
24101
24101
|
numberClassName: `font-bold ${hn}`
|
|
24102
24102
|
}
|
|
@@ -24119,8 +24119,8 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24119
24119
|
{
|
|
24120
24120
|
number: 3,
|
|
24121
24121
|
label: "Total Amount Due: Subtract line 2 from line 1.",
|
|
24122
|
-
hint:
|
|
24123
|
-
amount: s.depositSchedule ? Fe(
|
|
24122
|
+
hint: N.line3Cents < 0 ? "Negative amount — payments exceed the liability for this quarter (overpayment)." : "A minus sign indicates a negative amount.",
|
|
24123
|
+
amount: s.depositSchedule ? Fe(N.line3Cents) : Bt,
|
|
24124
24124
|
columns: "1.5rem minmax(0, 1fr) 11rem",
|
|
24125
24125
|
numberClassName: `font-bold ${hn}`
|
|
24126
24126
|
}
|
|
@@ -24203,7 +24203,7 @@ function g1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
24203
24203
|
/* @__PURE__ */ r("div", { className: "w-44", children: /* @__PURE__ */ r(
|
|
24204
24204
|
ie,
|
|
24205
24205
|
{
|
|
24206
|
-
amount: s.isSemiWeekly ? Fe(
|
|
24206
|
+
amount: s.isSemiWeekly ? Fe(N.scheduleMonthCents[se]) : Bt,
|
|
24207
24207
|
label: `Month ${se + 1} liability total`
|
|
24208
24208
|
}
|
|
24209
24209
|
) })
|
|
@@ -24889,7 +24889,7 @@ const Hi = "text-[#101828]", LL = "text-[#19191A]", pu = { dollars: "", cents: "
|
|
|
24889
24889
|
signatureDate: ""
|
|
24890
24890
|
}, S1 = (e) => String(e).padStart(2, "0");
|
|
24891
24891
|
function w1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitted: i }) {
|
|
24892
|
-
const [s, o] = _(() => ({ ...DL, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = wp(s),
|
|
24892
|
+
const [s, o] = _(() => ({ ...DL, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = wp(s), N = String(Number(e.taxYear) + 1), C = Mx(e.taxYear), w = `January ${C.getDate()}, ${C.getFullYear()}`, v = Tn({
|
|
24893
24893
|
mutationFn: (R) => Hn(R),
|
|
24894
24894
|
onSuccess: (R) => {
|
|
24895
24895
|
c("preview"), g("Form A1-R submitted", "We'll update its status once it's filed with the state."), i == null || i(R);
|
|
@@ -25016,7 +25016,7 @@ function w1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
25016
25016
|
to,
|
|
25017
25017
|
{
|
|
25018
25018
|
letter: "C",
|
|
25019
|
-
label: `Check this box if this return is an early-filed return for calendar year ${
|
|
25019
|
+
label: `Check this box if this return is an early-filed return for calendar year ${N} due to an account cancellation during calendar year ${N}.`,
|
|
25020
25020
|
checked: s.isEarlyFiled,
|
|
25021
25021
|
disabled: !u,
|
|
25022
25022
|
onChange: j("isEarlyFiled")
|
|
@@ -25183,11 +25183,11 @@ function w1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
25183
25183
|
] }),
|
|
25184
25184
|
/* @__PURE__ */ l("span", { children: [
|
|
25185
25185
|
"Due ",
|
|
25186
|
-
S1(
|
|
25186
|
+
S1(C.getMonth() + 1),
|
|
25187
25187
|
"/",
|
|
25188
|
-
S1(
|
|
25188
|
+
S1(C.getDate()),
|
|
25189
25189
|
"/",
|
|
25190
|
-
|
|
25190
|
+
C.getFullYear()
|
|
25191
25191
|
] })
|
|
25192
25192
|
] })
|
|
25193
25193
|
] }) }),
|
|
@@ -25253,7 +25253,7 @@ const fi = "text-[#101828]", as = "text-[#19191A]", I1 = ["Arizona Department of
|
|
|
25253
25253
|
{ months: "October, November, December", quarter: 4 }
|
|
25254
25254
|
];
|
|
25255
25255
|
function A1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitted: i }) {
|
|
25256
|
-
const [s, o] = _(() => ({ ...Tx, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => ML(e.paymentAmount), [e.paymentAmount]),
|
|
25256
|
+
const [s, o] = _(() => ({ ...Tx, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => ML(e.paymentAmount), [e.paymentAmount]), N = String(Number(e.taxYear) + 1), C = Tn({
|
|
25257
25257
|
mutationFn: (Z) => Hn(Z),
|
|
25258
25258
|
onSuccess: (Z) => {
|
|
25259
25259
|
c("preview"), g("Form A1-WP submitted", "We'll update its status once it's filed with the state."), i == null || i(Z);
|
|
@@ -25292,7 +25292,7 @@ function A1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
25292
25292
|
p(Z);
|
|
25293
25293
|
return;
|
|
25294
25294
|
}
|
|
25295
|
-
p({}),
|
|
25295
|
+
p({}), C.mutate(OL(e, s));
|
|
25296
25296
|
};
|
|
25297
25297
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
25298
25298
|
/* @__PURE__ */ l("h1", { className: "font-lato text-xl font-bold text-[#101828]", children: [
|
|
@@ -25404,7 +25404,7 @@ function A1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
25404
25404
|
/* @__PURE__ */ r(no, { children: "Electronic Funds Transfer (EFT)" }),
|
|
25405
25405
|
/* @__PURE__ */ l("p", { children: [
|
|
25406
25406
|
"Employers who anticipate their Arizona withholding tax liability for calendar year ",
|
|
25407
|
-
|
|
25407
|
+
N,
|
|
25408
25408
|
" to be $500 or more must make Arizona withholding payments via EFT.",
|
|
25409
25409
|
" ",
|
|
25410
25410
|
/* @__PURE__ */ r("span", { className: "font-bold italic", children: "If the employer makes its withholding payments by EFT, the employer should not submit Form A1-WP to the department." })
|
|
@@ -25417,7 +25417,7 @@ function A1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
25417
25417
|
] }),
|
|
25418
25418
|
/* @__PURE__ */ l("p", { children: [
|
|
25419
25419
|
"Employers who anticipate their Arizona withholding tax liability for calendar year ",
|
|
25420
|
-
|
|
25420
|
+
N,
|
|
25421
25421
|
" to be less than $500 may elect voluntary participation in the EFT program. Or they may elect to pay by check, money order, or credit card."
|
|
25422
25422
|
] })
|
|
25423
25423
|
] }),
|
|
@@ -25466,7 +25466,7 @@ function A1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
25466
25466
|
onCancel: z,
|
|
25467
25467
|
onSubmit: q,
|
|
25468
25468
|
submitLabel: "Submit to State",
|
|
25469
|
-
isSubmitting:
|
|
25469
|
+
isSubmitting: C.isPending
|
|
25470
25470
|
}
|
|
25471
25471
|
)
|
|
25472
25472
|
] });
|
|
@@ -26094,7 +26094,7 @@ function cD(e) {
|
|
|
26094
26094
|
return t;
|
|
26095
26095
|
}
|
|
26096
26096
|
function k1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitted: i }) {
|
|
26097
|
-
const [s, o] = _(() => ({ ...lD, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => iD(e, e.paymentAmount), [e]),
|
|
26097
|
+
const [s, o] = _(() => ({ ...lD, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(() => iD(e, e.paymentAmount), [e]), N = Tp(s), C = Ep(zx(e)), w = Tn({
|
|
26098
26098
|
mutationFn: (Y) => Hn(Y),
|
|
26099
26099
|
onSuccess: (Y) => {
|
|
26100
26100
|
c("preview"), g("Form AR941M submitted", "We'll update its status once it's filed with the state."), i == null || i(Y);
|
|
@@ -26160,7 +26160,7 @@ function k1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
26160
26160
|
/* @__PURE__ */ r("div", { className: "bg-slate-50 px-4 py-2 text-center", children: /* @__PURE__ */ r("p", { className: "text-sm italic text-slate-500", children: "FOR DEPARTMENT USE ONLY" }) })
|
|
26161
26161
|
] }),
|
|
26162
26162
|
/* @__PURE__ */ l("div", { className: "grid border-b-2 border-slate-800 sm:grid-cols-4 sm:divide-x sm:divide-slate-800", children: [
|
|
26163
|
-
/* @__PURE__ */ r(si, { label: "Due Date", children: /* @__PURE__ */ r("p", { className: `py-2 text-sm font-semibold ${jl}`, children:
|
|
26163
|
+
/* @__PURE__ */ r(si, { label: "Due Date", children: /* @__PURE__ */ r("p", { className: `py-2 text-sm font-semibold ${jl}`, children: C }) }),
|
|
26164
26164
|
/* @__PURE__ */ r(si, { label: "Period Covered", children: /* @__PURE__ */ r("p", { className: `py-2 text-sm font-semibold ${jl}`, children: bm(e) }) }),
|
|
26165
26165
|
/* @__PURE__ */ r(si, { label: "ID Number (FEIN)", children: /* @__PURE__ */ r(Xl, { placeholder: "XX-XXXXXXX", maxLength: oD, ariaLabel: "ID Number", ...q("idNumber", { format: Z }) }) }),
|
|
26166
26166
|
/* @__PURE__ */ r(si, { label: "Zip Key", children: /* @__PURE__ */ r(
|
|
@@ -26226,11 +26226,11 @@ function k1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
26226
26226
|
/* @__PURE__ */ l("ol", { className: "divide-y divide-slate-800 border-b-2 border-slate-800 lg:border-b-0", children: [
|
|
26227
26227
|
/* @__PURE__ */ r(Gi, { number: 1, label: "Tax Withheld", hint: "Total Arkansas income tax withheld for this period.", children: /* @__PURE__ */ r(ie, { label: "Line 1, tax withheld", ...z("taxWithheld") }) }),
|
|
26228
26228
|
/* @__PURE__ */ r(Gi, { number: 2, label: "Adjustments", hint: "Any adjustment to be deducted from the amount you will pay.", children: /* @__PURE__ */ r(ie, { label: "Line 2, adjustments", ...z("adjustments") }) }),
|
|
26229
|
-
/* @__PURE__ */ r(Gi, { number: 3, label: "Tax Due", hint: "Line 1 minus line 2.", children: /* @__PURE__ */ r(ie, { label: "Line 3, tax due", amount: Fe(
|
|
26230
|
-
/* @__PURE__ */ r(Gi, { number: 4, label: "Interest", hint: `Only if filed after the due date (${
|
|
26231
|
-
/* @__PURE__ */ r(Gi, { number: 5, label: "Penalty", hint: `Only if filed after the due date (${
|
|
26229
|
+
/* @__PURE__ */ r(Gi, { number: 3, label: "Tax Due", hint: "Line 1 minus line 2.", children: /* @__PURE__ */ r(ie, { label: "Line 3, tax due", amount: Fe(N.taxDueCents) }) }),
|
|
26230
|
+
/* @__PURE__ */ r(Gi, { number: 4, label: "Interest", hint: `Only if filed after the due date (${C}).`, children: /* @__PURE__ */ r(ie, { label: "Line 4, interest", ...z("interest") }) }),
|
|
26231
|
+
/* @__PURE__ */ r(Gi, { number: 5, label: "Penalty", hint: `Only if filed after the due date (${C}).`, children: /* @__PURE__ */ r(ie, { label: "Line 5, penalty", ...z("penalty") }) }),
|
|
26232
26232
|
/* @__PURE__ */ l(Gi, { number: 6, label: "Amount Paid", hint: "Lines 3 + 4 + 5. Must equal this payment.", children: [
|
|
26233
|
-
/* @__PURE__ */ r(ie, { label: "Line 6, amount paid", amount: Fe(
|
|
26233
|
+
/* @__PURE__ */ r(ie, { label: "Line 6, amount paid", amount: Fe(N.amountPaidCents) }),
|
|
26234
26234
|
/* @__PURE__ */ r(xm, { message: h.amountPaid })
|
|
26235
26235
|
] })
|
|
26236
26236
|
] }),
|
|
@@ -26274,9 +26274,9 @@ function k1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
26274
26274
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "This payment:" }),
|
|
26275
26275
|
" ",
|
|
26276
26276
|
R1(Ce(e.paymentAmount)),
|
|
26277
|
-
|
|
26277
|
+
N.amountPaidCents !== Ce(e.paymentAmount) ? /* @__PURE__ */ l("span", { className: "text-slate-500", children: [
|
|
26278
26278
|
" · Line 6 currently ",
|
|
26279
|
-
R1(
|
|
26279
|
+
R1(N.amountPaidCents)
|
|
26280
26280
|
] }) : null
|
|
26281
26281
|
] }),
|
|
26282
26282
|
/* @__PURE__ */ l("p", { children: [
|
|
@@ -27638,7 +27638,7 @@ function H1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
27638
27638
|
const [s, o] = _(() => ({ ...lF, ...t })), [d, c] = _("preview"), u = d === "edit", m = Te(s), [h, p] = _({}), y = Object.keys(h).length > 0, { showSuccess: g, showError: b } = Wt(), x = Be(
|
|
27639
27639
|
() => KD({ dueDate: e.dueDate, paymentAmount: e.paymentAmount }),
|
|
27640
27640
|
[e.dueDate, e.paymentAmount]
|
|
27641
|
-
),
|
|
27641
|
+
), N = Lp(s), C = Ce(e.paymentAmount), w = Re(e.dueDate), v = w ? /* @__PURE__ */ new Date() > w : !1, I = Bx(N.netDueCents, e.dueDate, /* @__PURE__ */ new Date()), S = Tn({
|
|
27642
27642
|
mutationFn: (G) => Hn(G),
|
|
27643
27643
|
onSuccess: (G) => {
|
|
27644
27644
|
c("preview"), g("Form DR 1094 submitted", "We'll update its status once it's filed with the state."), i == null || i(G);
|
|
@@ -27748,7 +27748,7 @@ function H1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
27748
27748
|
/* @__PURE__ */ l("ol", { className: "divide-y divide-slate-800", children: [
|
|
27749
27749
|
/* @__PURE__ */ r($n, { number: 1, code: "100", label: "Total Colorado tax withheld from wages reportable on a W-2", children: /* @__PURE__ */ r(ie, { ...M("taxWithheld", "Line 1, Colorado tax withheld") }) }),
|
|
27750
27750
|
/* @__PURE__ */ r($n, { number: 2, code: "905", label: "Overpayment of tax for prior record(s) of the current year only", hint: "May only bring the return to zero.", children: /* @__PURE__ */ r(ie, { ...M("overpayment", "Line 2, overpayment") }) }),
|
|
27751
|
-
/* @__PURE__ */ r($n, { number: 3, label: "Line 1 minus line 2", children: /* @__PURE__ */ r(ie, { label: "Line 3, line 1 minus line 2", amount: Fe(
|
|
27751
|
+
/* @__PURE__ */ r($n, { number: 3, label: "Line 1 minus line 2", children: /* @__PURE__ */ r(ie, { label: "Line 3, line 1 minus line 2", amount: Fe(N.netDueCents) }) }),
|
|
27752
27752
|
/* @__PURE__ */ l($n, { number: 4, code: "200", label: "Penalty (see instructions)", hint: v ? "5% of the tax due or $5, whichever is greater, plus ½% for each additional month late, up to 12%." : se, children: [
|
|
27753
27753
|
/* @__PURE__ */ r(ie, { ...M("penalty", "Line 4, penalty") }),
|
|
27754
27754
|
u && v && I > 0 && Ce(s.penalty) !== I ? /* @__PURE__ */ l(
|
|
@@ -27767,7 +27767,7 @@ function H1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
27767
27767
|
] }),
|
|
27768
27768
|
/* @__PURE__ */ r($n, { number: 5, code: "300", label: "Interest (see instructions)", hint: v ? "See FYI General 11, Colorado Civil Tax Penalties and Interest." : se, children: /* @__PURE__ */ r(ie, { ...M("interest", "Line 5, interest") }) }),
|
|
27769
27769
|
/* @__PURE__ */ l($n, { number: 6, code: "355", label: "Amount Owed (Total of lines 3, 4 and 5)", children: [
|
|
27770
|
-
/* @__PURE__ */ r(ie, { label: "Line 6, amount owed", amount: Fe(
|
|
27770
|
+
/* @__PURE__ */ r(ie, { label: "Line 6, amount owed", amount: Fe(N.amountOwedCents) }),
|
|
27771
27771
|
/* @__PURE__ */ r(Dp, { message: h.amountOwed })
|
|
27772
27772
|
] })
|
|
27773
27773
|
] }),
|
|
@@ -27801,10 +27801,10 @@ function H1({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
27801
27801
|
/* @__PURE__ */ l("p", { children: [
|
|
27802
27802
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "This payment:" }),
|
|
27803
27803
|
" ",
|
|
27804
|
-
mn(
|
|
27805
|
-
|
|
27804
|
+
mn(C),
|
|
27805
|
+
N.amountOwedCents !== C ? /* @__PURE__ */ l("span", { className: "text-slate-500", children: [
|
|
27806
27806
|
" · Line 6 currently ",
|
|
27807
|
-
mn(
|
|
27807
|
+
mn(N.amountOwedCents)
|
|
27808
27808
|
] }) : null
|
|
27809
27809
|
] }),
|
|
27810
27810
|
/* @__PURE__ */ l("p", { children: [
|
|
@@ -28146,10 +28146,10 @@ function Vx({
|
|
|
28146
28146
|
onBack: i,
|
|
28147
28147
|
onSubmitted: s
|
|
28148
28148
|
}) {
|
|
28149
|
-
const [o, d] = _(() => ({ ...yF, ...n })), [c, u] = _("preview"), m = c === "edit", h = Te(o), [p, y] = _({}), g = Object.keys(p).length > 0, { showSuccess: b, showError: x } = Wt(),
|
|
28149
|
+
const [o, d] = _(() => ({ ...yF, ...n })), [c, u] = _("preview"), m = c === "edit", h = Te(o), [p, y] = _({}), g = Object.keys(p).length > 0, { showSuccess: b, showError: x } = Wt(), N = Fp[e], C = Be(
|
|
28150
28150
|
() => mF(e, { dueDate: t.dueDate, paymentAmount: t.paymentAmount }),
|
|
28151
28151
|
[e, t.dueDate, t.paymentAmount]
|
|
28152
|
-
), w = kp(o), v = Ce(t.paymentAmount), I = qx(t.dueDate), S = /* @__PURE__ */ new Date(), F = Bx(w.balanceDueCents, t.dueDate, S), z = aF(w.balanceDueCents, t.dueDate, S,
|
|
28152
|
+
), w = kp(o), v = Ce(t.paymentAmount), I = qx(t.dueDate), S = /* @__PURE__ */ new Date(), F = Bx(w.balanceDueCents, t.dueDate, S), z = aF(w.balanceDueCents, t.dueDate, S, N.interestMonthlyRate), q = w.balanceDueCents > 0, Z = Tn({
|
|
28153
28153
|
mutationFn: (ue) => Hn(ue),
|
|
28154
28154
|
onSuccess: (ue) => {
|
|
28155
28155
|
u("preview"), b(`Form ${e} submitted`, "We'll update its status once it's filed with the state."), s == null || s(ue);
|
|
@@ -28158,7 +28158,7 @@ function Vx({
|
|
|
28158
28158
|
x("Submission failed", "Please try again.");
|
|
28159
28159
|
}
|
|
28160
28160
|
}), M = (ue) => {
|
|
28161
|
-
const re =
|
|
28161
|
+
const re = C.safeParse(ue);
|
|
28162
28162
|
return re.success ? {} : _x(re.error.issues);
|
|
28163
28163
|
}, j = (ue) => {
|
|
28164
28164
|
if (d(ue), a == null || a(ue), g) {
|
|
@@ -28205,10 +28205,10 @@ function Vx({
|
|
|
28205
28205
|
t.periodStart,
|
|
28206
28206
|
" – ",
|
|
28207
28207
|
t.periodEnd
|
|
28208
|
-
] }) }), ge = /* @__PURE__ */ r(Ke, { label: "Due Date", children: /* @__PURE__ */ r("p", { className: `py-2 text-sm font-semibold tabular-nums ${Fr}`, children: t.dueDate }) }), we = /* @__PURE__ */ r(Ke, { label: `Number of ${
|
|
28208
|
+
] }) }), ge = /* @__PURE__ */ r(Ke, { label: "Due Date", children: /* @__PURE__ */ r("p", { className: `py-2 text-sm font-semibold tabular-nums ${Fr}`, children: t.dueDate }) }), we = /* @__PURE__ */ r(Ke, { label: `Number of ${N.statement}s Attached`, children: /* @__PURE__ */ r(
|
|
28209
28209
|
ct,
|
|
28210
28210
|
{
|
|
28211
|
-
ariaLabel: `Number of ${
|
|
28211
|
+
ariaLabel: `Number of ${N.statement}s attached`,
|
|
28212
28212
|
placeholder: "0",
|
|
28213
28213
|
inputMode: "numeric",
|
|
28214
28214
|
maxLength: 7,
|
|
@@ -28227,7 +28227,7 @@ function Vx({
|
|
|
28227
28227
|
/* @__PURE__ */ l("section", { className: "space-y-5", children: [
|
|
28228
28228
|
/* @__PURE__ */ l("div", { className: "grid gap-3 sm:grid-cols-[1fr_auto] sm:items-start", children: [
|
|
28229
28229
|
/* @__PURE__ */ l("div", { className: `text-[11px] leading-tight ${ko}`, children: [
|
|
28230
|
-
/* @__PURE__ */ r("p", { children:
|
|
28230
|
+
/* @__PURE__ */ r("p", { children: N.revision }),
|
|
28231
28231
|
/* @__PURE__ */ r("p", { className: "font-bold", children: "COLORADO DEPARTMENT OF REVENUE" }),
|
|
28232
28232
|
/* @__PURE__ */ r("p", { className: "italic", children: "Tax.Colorado.gov" }),
|
|
28233
28233
|
/* @__PURE__ */ r("p", { children: "Page 1 of 1" })
|
|
@@ -28236,10 +28236,10 @@ function Vx({
|
|
|
28236
28236
|
] }),
|
|
28237
28237
|
/* @__PURE__ */ l("div", { className: "text-center", children: [
|
|
28238
28238
|
/* @__PURE__ */ r("p", { className: `font-lato text-[20px] font-bold sm:text-[24px] ${Fr}`, children: "Colorado Department of Revenue" }),
|
|
28239
|
-
/* @__PURE__ */ r("h2", { className: `font-lato text-[20px] font-bold sm:text-[24px] ${Fr}`, children:
|
|
28239
|
+
/* @__PURE__ */ r("h2", { className: `font-lato text-[20px] font-bold sm:text-[24px] ${Fr}`, children: N.title })
|
|
28240
28240
|
] }),
|
|
28241
28241
|
/* @__PURE__ */ l("div", { className: "divide-y divide-slate-800 border border-slate-800", children: [
|
|
28242
|
-
|
|
28242
|
+
N.hasAddress ? /* @__PURE__ */ l(Oe, { children: [
|
|
28243
28243
|
/* @__PURE__ */ l(Zt, { columns: "sm:grid-cols-2", children: [
|
|
28244
28244
|
G,
|
|
28245
28245
|
ve
|
|
@@ -28289,7 +28289,7 @@ function Vx({
|
|
|
28289
28289
|
onToggle: m ? () => j({ ...o, isAmended: !o.isAmended }) : void 0
|
|
28290
28290
|
}
|
|
28291
28291
|
),
|
|
28292
|
-
|
|
28292
|
+
N.hasPaidElectronically ? /* @__PURE__ */ r(
|
|
28293
28293
|
ey,
|
|
28294
28294
|
{
|
|
28295
28295
|
label: "Paid by Electronically",
|
|
@@ -28298,11 +28298,11 @@ function Vx({
|
|
|
28298
28298
|
}
|
|
28299
28299
|
) : null
|
|
28300
28300
|
] }),
|
|
28301
|
-
/* @__PURE__ */ r("p", { className: `flex items-center justify-center px-3 py-3 font-lato text-[20px] font-bold tabular-nums ${Fr}`, children:
|
|
28301
|
+
/* @__PURE__ */ r("p", { className: `flex items-center justify-center px-3 py-3 font-lato text-[20px] font-bold tabular-nums ${Fr}`, children: N.scanCode })
|
|
28302
28302
|
] }),
|
|
28303
28303
|
/* @__PURE__ */ l("ol", { className: "divide-y divide-slate-800", children: [
|
|
28304
|
-
/* @__PURE__ */ r($n, { number: 1, label:
|
|
28305
|
-
/* @__PURE__ */ r($n, { number: 2, code: "890", label:
|
|
28304
|
+
/* @__PURE__ */ r($n, { number: 1, label: N.line1, children: /* @__PURE__ */ r(ie, { ...U("withheld", "Line 1, Colorado tax withheld") }) }),
|
|
28305
|
+
/* @__PURE__ */ r($n, { number: 2, code: "890", label: N.line2, hint: "Do not include penalty and/or interest you paid.", children: /* @__PURE__ */ r(ie, { ...U("remitted", "Line 2, Colorado tax remitted") }) }),
|
|
28306
28306
|
/* @__PURE__ */ r($n, { number: "3A", code: "100", label: "Balance Due — if line 1 is more than line 2, enter the difference", children: /* @__PURE__ */ r(ie, { label: "Line 3A, balance due", amount: Fe(w.balanceDueCents) }) }),
|
|
28307
28307
|
/* @__PURE__ */ r(
|
|
28308
28308
|
$n,
|
|
@@ -28337,7 +28337,7 @@ function Vx({
|
|
|
28337
28337
|
number: 5,
|
|
28338
28338
|
code: "300",
|
|
28339
28339
|
label: "Interest (see instructions)",
|
|
28340
|
-
hint: B ?? `${
|
|
28340
|
+
hint: B ?? `${N.interestRateLabel} of the balance due for each month after the due date.`,
|
|
28341
28341
|
children: [
|
|
28342
28342
|
/* @__PURE__ */ r(ie, { ...U("interest", "Line 5, interest") }),
|
|
28343
28343
|
m && q && z > 0 && Ce(o.interest) !== z ? /* @__PURE__ */ l(ty, { onClick: () => j({ ...o, interest: Fe(z) }), children: [
|
|
@@ -28356,7 +28356,7 @@ function Vx({
|
|
|
28356
28356
|
/* @__PURE__ */ r("p", { className: "px-3 py-1.5 text-[10px] leading-snug text-slate-600", children: "The State may convert your check to a one-time electronic banking transaction. Your bank account may be debited as early as the same day received by the State. If converted, your check will not be returned. If your check is rejected due to insufficient or uncollected funds, the Department of Revenue may collect the payment amount directly from your bank account electronically." }),
|
|
28357
28357
|
/* @__PURE__ */ l("p", { className: `px-3 py-2 text-center text-sm ${ko}`, children: [
|
|
28358
28358
|
"Mail reconciliation with ",
|
|
28359
|
-
|
|
28359
|
+
N.statement,
|
|
28360
28360
|
" forms and any payment due on line 6 to: ",
|
|
28361
28361
|
fF
|
|
28362
28362
|
] }),
|
|
@@ -28395,25 +28395,25 @@ function Vx({
|
|
|
28395
28395
|
] }),
|
|
28396
28396
|
/* @__PURE__ */ l("p", { className: "text-slate-500 sm:col-span-2", children: [
|
|
28397
28397
|
"Attach this form to the ",
|
|
28398
|
-
|
|
28398
|
+
N.statement,
|
|
28399
28399
|
"s furnished to each payee. If you file your ",
|
|
28400
|
-
|
|
28400
|
+
N.statement,
|
|
28401
28401
|
"s electronically through Revenue Online, submit this form only if an amount appears on line 3A or 3B.",
|
|
28402
28402
|
o.isAmended ? " An amended transmittal replaces the original in its entirety — show every line as corrected, not the difference." : ""
|
|
28403
28403
|
] })
|
|
28404
28404
|
] })
|
|
28405
28405
|
] }),
|
|
28406
|
-
/* @__PURE__ */ l("section", { "aria-labelledby": `co-${
|
|
28406
|
+
/* @__PURE__ */ l("section", { "aria-labelledby": `co-${N.formCode}-records`, className: "space-y-4 border-t-2 border-dashed border-slate-400 pt-8", children: [
|
|
28407
28407
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
|
|
28408
28408
|
/* @__PURE__ */ l("div", { children: [
|
|
28409
28409
|
/* @__PURE__ */ r("p", { className: "font-mono text-sm font-semibold tracking-[0.3em] text-slate-900", children: "DO NOT SEND" }),
|
|
28410
|
-
/* @__PURE__ */ r("h2", { id: `co-${
|
|
28410
|
+
/* @__PURE__ */ r("h2", { id: `co-${N.formCode}-records`, className: `mt-2 font-lato text-[18px] font-bold ${Fr}`, children: "For your records" })
|
|
28411
28411
|
] }),
|
|
28412
28412
|
/* @__PURE__ */ r("span", { className: "rounded-md border border-slate-300 bg-slate-50 px-2.5 py-1 text-xs font-medium text-slate-600", children: "Filled from the return above" })
|
|
28413
28413
|
] }),
|
|
28414
28414
|
/* @__PURE__ */ l("dl", { className: "max-w-2xl divide-y divide-slate-200 border border-slate-800 text-sm", children: [
|
|
28415
28415
|
/* @__PURE__ */ r(Ca, { label: "Filing period", value: `${t.periodStart} – ${t.periodEnd}` }),
|
|
28416
|
-
/* @__PURE__ */ r(Ca, { label: `1. Colorado income tax withheld per ${
|
|
28416
|
+
/* @__PURE__ */ r(Ca, { label: `1. Colorado income tax withheld per ${N.statement}s`, value: mn(w.withheldCents) }),
|
|
28417
28417
|
/* @__PURE__ */ r(Ca, { label: "2. Colorado income tax withheld and paid", value: mn(w.remittedCents) }),
|
|
28418
28418
|
/* @__PURE__ */ r(Ca, { label: "3. A. Balance Due", value: mn(w.balanceDueCents) }),
|
|
28419
28419
|
/* @__PURE__ */ r(Ca, { label: "B. Overpayment", indent: !0, value: mn(w.overpaymentCents) }),
|
|
@@ -29645,7 +29645,7 @@ function Kx({ variant: e, data: t, initialValues: n, onValuesChange: a, onBack:
|
|
|
29645
29645
|
onValuesChange: a,
|
|
29646
29646
|
onSubmitted: s,
|
|
29647
29647
|
readOnly: o
|
|
29648
|
-
}), { values: c, fieldErrors: u, field: m, shown: h, choose: p } = d, y = zm(uk(c.taxPeriodEnding)), g = Qx(c.zipCode), b = zi.findIndex((v) => v === c.voucher), x = `dc-${e.formCode.toLowerCase()}`,
|
|
29648
|
+
}), { values: c, fieldErrors: u, field: m, shown: h, choose: p } = d, y = zm(uk(c.taxPeriodEnding)), g = Qx(c.zipCode), b = zi.findIndex((v) => v === c.voucher), x = `dc-${e.formCode.toLowerCase()}`, N = (v, I) => d.isEditing ? () => d.commit({ ...c, voucher: v, dueDate: Li(y[I]) }) : void 0, C = m("taxPeriodEnding"), w = C.onChange ? (v) => {
|
|
29649
29649
|
const I = $p(v), S = I && b >= 0 ? Li(zm(I)[b]) : c.dueDate;
|
|
29650
29650
|
d.commit({ ...c, taxPeriodEnding: v, dueDate: S });
|
|
29651
29651
|
} : void 0;
|
|
@@ -29663,7 +29663,7 @@ function Kx({ variant: e, data: t, initialValues: n, onValuesChange: a, onBack:
|
|
|
29663
29663
|
{
|
|
29664
29664
|
name: `${x}-voucher`,
|
|
29665
29665
|
checked: c.voucher === v,
|
|
29666
|
-
onSelect:
|
|
29666
|
+
onSelect: N(v, I),
|
|
29667
29667
|
label: `Voucher ${v}`,
|
|
29668
29668
|
detail: `Due ${Li(y[I])}`
|
|
29669
29669
|
},
|
|
@@ -29696,7 +29696,7 @@ function Kx({ variant: e, data: t, initialValues: n, onValuesChange: a, onBack:
|
|
|
29696
29696
|
] }),
|
|
29697
29697
|
/* @__PURE__ */ r(Je, { message: u.tinType })
|
|
29698
29698
|
] }) : null,
|
|
29699
|
-
/* @__PURE__ */ r(A, { label: "Tax period ending (MM/DD/YYYY)", children: /* @__PURE__ */ r(Tt, { ariaLabel: "Tax period ending", ...
|
|
29699
|
+
/* @__PURE__ */ r(A, { label: "Tax period ending (MM/DD/YYYY)", children: /* @__PURE__ */ r(Tt, { ariaLabel: "Tax period ending", ...C, onChange: w }) })
|
|
29700
29700
|
] }),
|
|
29701
29701
|
/* @__PURE__ */ r(A, { label: "Business name or Designated Agent name", children: /* @__PURE__ */ r(P, { ariaLabel: "Business name or designated agent name", ...h("name") }) }),
|
|
29702
29702
|
/* @__PURE__ */ r(A, { label: "Business mailing address line 1", children: /* @__PURE__ */ r(P, { ariaLabel: "Business mailing address line 1", ...h("address1") }) }),
|
|
@@ -30054,12 +30054,12 @@ function Ly({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
30054
30054
|
formLabel: "500 ES",
|
|
30055
30055
|
schema: vk,
|
|
30056
30056
|
initialValues: { ...wk, ...t },
|
|
30057
|
-
buildPayload: (
|
|
30057
|
+
buildPayload: (C) => Sk(e, C),
|
|
30058
30058
|
fieldsFromEntity: Ek,
|
|
30059
30059
|
onValuesChange: n,
|
|
30060
30060
|
onSubmitted: i,
|
|
30061
30061
|
readOnly: s
|
|
30062
|
-
}), { values: d, fieldErrors: c, field: u, shown: m, toggle: h } = o, p = d.taxType === "10", g = n4(d.yearEnding).map((
|
|
30062
|
+
}), { values: d, fieldErrors: c, field: u, shown: m, toggle: h } = o, p = d.taxType === "10", g = n4(d.yearEnding).map((C, w) => ({ value: String(w + 1), label: al(C) })), [b, x = ""] = d.zipCode.split("-"), N = o.isEditing ? (C) => o.commit({ ...d, ...C === d.taxType ? {} : i4, taxType: C }) : void 0;
|
|
30063
30063
|
return /* @__PURE__ */ l(Ct, { heading: `Individual and Fiduciary Estimated Tax GA 500 ES · ${ja}${d.quarter ? ` · Quarter ${d.quarter}` : ""}`, form: o, onBack: a, children: [
|
|
30064
30064
|
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
30065
30065
|
ht,
|
|
@@ -30095,7 +30095,7 @@ function Ly({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
30095
30095
|
ariaLabel: "Type of return",
|
|
30096
30096
|
options: [...a4],
|
|
30097
30097
|
...u("taxType", { alsoCheck: ["payerId", "spouseSsn"] }),
|
|
30098
|
-
onChange:
|
|
30098
|
+
onChange: N
|
|
30099
30099
|
}
|
|
30100
30100
|
) })
|
|
30101
30101
|
] }),
|
|
@@ -31680,10 +31680,10 @@ function YR(e) {
|
|
|
31680
31680
|
email: f(),
|
|
31681
31681
|
phone: f()
|
|
31682
31682
|
}).superRefine((n, a) => {
|
|
31683
|
-
const i = (x,
|
|
31684
|
-
|
|
31685
|
-
}, s = (x,
|
|
31686
|
-
const v = $R(
|
|
31683
|
+
const i = (x, N, C) => {
|
|
31684
|
+
N || a.addIssue({ code: "custom", path: x, message: C });
|
|
31685
|
+
}, s = (x, N, C, w) => {
|
|
31686
|
+
const v = $R(N, C, w);
|
|
31687
31687
|
v && i(Array.isArray(x) ? x : [x], !1, v);
|
|
31688
31688
|
};
|
|
31689
31689
|
if (n.payerId === null)
|
|
@@ -31702,13 +31702,13 @@ function YR(e) {
|
|
|
31702
31702
|
const m = t ? "4th quarter" : "Quarterly";
|
|
31703
31703
|
s("withheld", n.withheld, `Line 1, ${m} SC Income Tax withheld`, !0), s("priorPayments", n.priorPayments, `Line 2, ${m} deposits or payments`, !0);
|
|
31704
31704
|
const p = Md(n).refundCents > 0;
|
|
31705
|
-
for (const [x,
|
|
31706
|
-
const
|
|
31707
|
-
p ? i([x], !
|
|
31705
|
+
for (const [x, N] of [["penalty", "Penalty"], ["interest", "Interest"]]) {
|
|
31706
|
+
const C = n[x];
|
|
31707
|
+
p ? i([x], !C.dollars && !C.cents, `${N} doesn’t apply to a refund — lines 4–6 are skipped.`) : s(x, C, `Line 5, ${N.toLowerCase()}`, !1);
|
|
31708
31708
|
}
|
|
31709
31709
|
if (t) {
|
|
31710
|
-
n.quarterWithheld.forEach((
|
|
31711
|
-
s(["quarterWithheld",
|
|
31710
|
+
n.quarterWithheld.forEach((N, C) => {
|
|
31711
|
+
s(["quarterWithheld", C], N, `Line 7, ${Xm[C]} tax withheld`, !0);
|
|
31712
31712
|
}), s("w2Withheld", n.w2Withheld, "Line 8, withheld per W-2s", !1), s("w2gWithheld", n.w2gWithheld, "Line 8, withheld per W-2Gs", !1), s("form1099Withheld", n.form1099Withheld, "Line 8, withheld per 1099s", !1), s("scIncome", n.scIncome, "Line 9, total SC income", !0);
|
|
31713
31713
|
const x = Zp(n);
|
|
31714
31714
|
i(
|
|
@@ -31722,10 +31722,10 @@ function YR(e) {
|
|
|
31722
31722
|
const x = Xe(n.preparerPhone);
|
|
31723
31723
|
x ? i(["preparerPhone"], x.length === je, `Preparer’s phone number must be ${je} digits.`) : i(["preparerPhone"], !1, "Preparer’s phone number is required.");
|
|
31724
31724
|
}
|
|
31725
|
-
const y = (x,
|
|
31726
|
-
const
|
|
31727
|
-
if (!
|
|
31728
|
-
i([x],
|
|
31725
|
+
const y = (x, N) => {
|
|
31726
|
+
const C = n[x].trim();
|
|
31727
|
+
if (!C) return i([x], !1, `${N} is required.`);
|
|
31728
|
+
i([x], C.length <= No, `${N} must be ${No} characters or fewer.`);
|
|
31729
31729
|
};
|
|
31730
31730
|
if (y("signature", "Signature"), y("signerName", "Name"), y("title", "Title"), !yr(n.signatureDate)) i(["signatureDate"], !1, "Date is required.");
|
|
31731
31731
|
else {
|
|
@@ -31864,7 +31864,7 @@ function E4({
|
|
|
31864
31864
|
onBack: i,
|
|
31865
31865
|
onSubmitted: s
|
|
31866
31866
|
}) {
|
|
31867
|
-
const [o, d] = _(() => ({ ...qR, ...n })), [c, u] = _("preview"), m = c === "edit", h = Te(o), [p, y] = _({}), g = Object.keys(p).length > 0, { showSuccess: b, showError: x } = Wt(),
|
|
31867
|
+
const [o, d] = _(() => ({ ...qR, ...n })), [c, u] = _("preview"), m = c === "edit", h = Te(o), [p, y] = _({}), g = Object.keys(p).length > 0, { showSuccess: b, showError: x } = Wt(), N = e === "WH-1606", C = _R[e], w = Be(() => YR(e), [e]), v = Md(o), I = Zp(o), S = v.refundCents > 0, F = Up(e, o.quarter), z = /^\d{4}$/.test(o.taxYear) ? Number(o.taxYear) : null, q = F !== null && z !== null ? I4(A4(F, z)) : null, Z = !In(o.withheld) || !In(o.priorPayments), M = Tn({
|
|
31868
31868
|
mutationFn: (J) => Hn(J),
|
|
31869
31869
|
onSuccess: (J) => {
|
|
31870
31870
|
u("preview"), b(`Form ${e} submitted`, "We'll update its status once it's filed with the state."), s == null || s(J);
|
|
@@ -31896,7 +31896,7 @@ function E4({
|
|
|
31896
31896
|
onChange: m && we ? (ue) => $({ ...o, [J]: ge ? ge(ue) : ue }) : void 0,
|
|
31897
31897
|
onBlur: ee(J, ...me),
|
|
31898
31898
|
error: p[J]
|
|
31899
|
-
}), Y = (J) => ({ value: o[J], error: p[J] }), O =
|
|
31899
|
+
}), Y = (J) => ({ value: o[J], error: p[J] }), O = N ? ["penalty", "interest", "statementsTotal"] : ["penalty", "interest"], K = (J, ge, { enabled: we = !0, alsoCheck: me = [] } = {}) => ({
|
|
31900
31900
|
label: ge,
|
|
31901
31901
|
amount: o[J],
|
|
31902
31902
|
onChange: m && we ? (ue) => $({ ...o, [J]: ue }) : void 0,
|
|
@@ -31921,16 +31921,16 @@ function E4({
|
|
|
31921
31921
|
return;
|
|
31922
31922
|
}
|
|
31923
31923
|
y({}), M.mutate(BR(e, t, o));
|
|
31924
|
-
}, Se =
|
|
31924
|
+
}, Se = N ? z ? ` · ${z}` : "" : F && z ? ` · Q${F} ${z}` : "";
|
|
31925
31925
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
31926
31926
|
/* @__PURE__ */ l("h1", { className: "font-lato text-xl font-bold text-[#101828]", children: [
|
|
31927
31927
|
m ? "Edit" : "State",
|
|
31928
31928
|
" ",
|
|
31929
|
-
|
|
31929
|
+
C.heading,
|
|
31930
31930
|
Se
|
|
31931
31931
|
] }),
|
|
31932
31932
|
/* @__PURE__ */ r(bn, { children: /* @__PURE__ */ l("div", { className: "space-y-8", children: [
|
|
31933
|
-
/* @__PURE__ */ r(MR, { formNumber: e, revision: "Rev. 8/29/23", titleLines:
|
|
31933
|
+
/* @__PURE__ */ r(MR, { formNumber: e, revision: "Rev. 8/29/23", titleLines: C.titleLines }),
|
|
31934
31934
|
/* @__PURE__ */ l("div", { className: "space-y-3", children: [
|
|
31935
31935
|
/* @__PURE__ */ r("p", { className: `text-[13px] ${va}`, children: "Place an X in all boxes that apply." }),
|
|
31936
31936
|
/* @__PURE__ */ l("div", { className: "grid gap-4 sm:grid-cols-[auto_auto_minmax(0,1fr)] sm:items-start", children: [
|
|
@@ -31995,7 +31995,7 @@ function E4({
|
|
|
31995
31995
|
),
|
|
31996
31996
|
/* @__PURE__ */ l("div", { className: "rounded-md border border-slate-800 p-3", children: [
|
|
31997
31997
|
/* @__PURE__ */ r("p", { className: `mb-2 text-[11px] font-medium uppercase tracking-wide ${va}`, children: "Quarter" }),
|
|
31998
|
-
|
|
31998
|
+
N ? /* @__PURE__ */ l("p", { className: `text-sm ${va}`, children: [
|
|
31999
31999
|
/* @__PURE__ */ r("span", { className: "font-bold", children: "4th quarter" }),
|
|
32000
32000
|
" ",
|
|
32001
32001
|
/* @__PURE__ */ r("span", { className: "text-slate-500", children: "Oct, Nov, Dec" })
|
|
@@ -32026,7 +32026,7 @@ function E4({
|
|
|
32026
32026
|
}
|
|
32027
32027
|
)
|
|
32028
32028
|
] }),
|
|
32029
|
-
/* @__PURE__ */ r("p", { className: "mt-2 border-t border-slate-200 pt-2 text-center text-xs text-slate-600", children:
|
|
32029
|
+
/* @__PURE__ */ r("p", { className: "mt-2 border-t border-slate-200 pt-2 text-center text-xs text-slate-600", children: N ? "Due by January 31" : q ? `Due ${q}` : "Do not use for 4th quarter (use WH-1606)" })
|
|
32030
32030
|
] })
|
|
32031
32031
|
] })
|
|
32032
32032
|
] }),
|
|
@@ -32035,13 +32035,13 @@ function E4({
|
|
|
32035
32035
|
e,
|
|
32036
32036
|
" even if you withheld no SC Income Tax during the quarter. Do not enter negative numbers. All cent fields must be completed using numbers (.00 - .99)."
|
|
32037
32037
|
] }),
|
|
32038
|
-
/* @__PURE__ */ l(Zy, { title:
|
|
32038
|
+
/* @__PURE__ */ l(Zy, { title: N ? "4th quarter SC Income Tax information only" : "Quarterly SC Income Tax", children: [
|
|
32039
32039
|
/* @__PURE__ */ r(
|
|
32040
32040
|
Tr,
|
|
32041
32041
|
{
|
|
32042
32042
|
number: 1,
|
|
32043
|
-
label: `${
|
|
32044
|
-
hint:
|
|
32043
|
+
label: `${C.quarterWord} SC Income Tax withheld from all sources`,
|
|
32044
|
+
hint: N ? "(Do not include amounts withheld during other quarters.)" : void 0,
|
|
32045
32045
|
children: /* @__PURE__ */ r(ie, { ...K("withheld", "Line 1, SC Income Tax withheld", { alsoCheck: O }) })
|
|
32046
32046
|
}
|
|
32047
32047
|
),
|
|
@@ -32049,7 +32049,7 @@ function E4({
|
|
|
32049
32049
|
Tr,
|
|
32050
32050
|
{
|
|
32051
32051
|
number: 2,
|
|
32052
|
-
label: `${
|
|
32052
|
+
label: `${C.quarterWord} SC Income Tax deposits or payments previously made`,
|
|
32053
32053
|
hint: "(SC payments must be made at the same time as federal payments.)",
|
|
32054
32054
|
children: /* @__PURE__ */ r(ie, { ...K("priorPayments", "Line 2, deposits or payments made", { alsoCheck: O }) })
|
|
32055
32055
|
}
|
|
@@ -32116,7 +32116,7 @@ function E4({
|
|
|
32116
32116
|
}
|
|
32117
32117
|
)
|
|
32118
32118
|
] }),
|
|
32119
|
-
|
|
32119
|
+
N ? /* @__PURE__ */ l(Zy, { title: "Annual SC reconciliation information (required)", children: [
|
|
32120
32120
|
/* @__PURE__ */ r(
|
|
32121
32121
|
Tr,
|
|
32122
32122
|
{
|
|
@@ -32190,7 +32190,7 @@ function E4({
|
|
|
32190
32190
|
/* @__PURE__ */ r("span", { className: "font-bold", children: "Refunds or zero tax:" }),
|
|
32191
32191
|
" SCDOR, Withholding, PO Box 125, Columbia, SC 29214-0004"
|
|
32192
32192
|
] }),
|
|
32193
|
-
|
|
32193
|
+
N ? null : /* @__PURE__ */ l("p", { className: "pt-2", children: [
|
|
32194
32194
|
"Attach payment to this return. Make check payable to SCDOR and write the SC Withholding File Number and quarter in the memo. ",
|
|
32195
32195
|
/* @__PURE__ */ r("span", { className: "font-bold", children: "Do not include the WH-1601 coupon." })
|
|
32196
32196
|
] })
|
|
@@ -32266,9 +32266,9 @@ function E4({
|
|
|
32266
32266
|
/* @__PURE__ */ l("p", { children: [
|
|
32267
32267
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: "Due:" }),
|
|
32268
32268
|
" ",
|
|
32269
|
-
q ?? (
|
|
32269
|
+
q ?? (N ? "enter the Year to see the due date" : "choose the quarter and year to see the due date")
|
|
32270
32270
|
] }),
|
|
32271
|
-
|
|
32271
|
+
N && I.differenceCents !== 0 && I.statementsTotalCents > 0 ? /* @__PURE__ */ l("p", { className: "sm:col-span-2", children: [
|
|
32272
32272
|
"Line 7 is ",
|
|
32273
32273
|
gi(I.quarterTotalCents),
|
|
32274
32274
|
" and line 8 is ",
|
|
@@ -32371,14 +32371,14 @@ function T4({
|
|
|
32371
32371
|
const [o, d] = _(() => ({
|
|
32372
32372
|
...jR,
|
|
32373
32373
|
...t
|
|
32374
|
-
})), [c, u] = _("preview"), m = c === "edit", h = Te(o), p = (x,
|
|
32375
|
-
const
|
|
32376
|
-
d(
|
|
32374
|
+
})), [c, u] = _("preview"), m = c === "edit", h = Te(o), p = (x, N) => {
|
|
32375
|
+
const C = { ...o, [x]: N };
|
|
32376
|
+
d(C), n == null || n(C);
|
|
32377
32377
|
}, y = () => {
|
|
32378
32378
|
h.current = o, u("edit");
|
|
32379
32379
|
}, g = () => {
|
|
32380
32380
|
d(h.current), n == null || n(h.current), u("preview");
|
|
32381
|
-
}, b = (x) => m ? (
|
|
32381
|
+
}, b = (x) => m ? (N) => p(x, N) : void 0;
|
|
32382
32382
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
32383
32383
|
/* @__PURE__ */ r(bn, { children: /* @__PURE__ */ l("div", { className: "grid gap-10 lg:grid-cols-2 lg:gap-16", children: [
|
|
32384
32384
|
/* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
@@ -32453,7 +32453,7 @@ function T4({
|
|
|
32453
32453
|
/* @__PURE__ */ r("p", { className: "flex flex-wrap gap-x-6 gap-y-1 pt-2 text-xs text-slate-600", children: GR.map((x) => /* @__PURE__ */ r("span", { children: x }, x)) })
|
|
32454
32454
|
] }),
|
|
32455
32455
|
/* @__PURE__ */ r("ol", { className: "space-y-7 lg:pt-2", children: XR.map((x) => {
|
|
32456
|
-
const
|
|
32456
|
+
const N = x.key;
|
|
32457
32457
|
return /* @__PURE__ */ r(
|
|
32458
32458
|
hs,
|
|
32459
32459
|
{
|
|
@@ -32461,8 +32461,8 @@ function T4({
|
|
|
32461
32461
|
label: x.label,
|
|
32462
32462
|
hint: x.hint,
|
|
32463
32463
|
columns: HR,
|
|
32464
|
-
amount:
|
|
32465
|
-
onAmountChange:
|
|
32464
|
+
amount: N ? o[N] : e.incomeTaxWithheld,
|
|
32465
|
+
onAmountChange: N ? b(N) : void 0
|
|
32466
32466
|
},
|
|
32467
32467
|
x.number
|
|
32468
32468
|
);
|
|
@@ -32579,9 +32579,9 @@ function P4({
|
|
|
32579
32579
|
y({ ...o, monthlyPayments: I });
|
|
32580
32580
|
}, x = () => {
|
|
32581
32581
|
h.current = o, u("edit");
|
|
32582
|
-
},
|
|
32582
|
+
}, N = () => {
|
|
32583
32583
|
y(h.current), u("preview");
|
|
32584
|
-
},
|
|
32584
|
+
}, C = (w) => m ? (v) => g(w, v) : void 0;
|
|
32585
32585
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
32586
32586
|
/* @__PURE__ */ l(bn, { children: [
|
|
32587
32587
|
/* @__PURE__ */ l("header", { className: "mb-6 grid gap-x-8 gap-y-3 lg:grid-cols-[minmax(0,20rem)_minmax(0,1fr)] lg:items-start", children: [
|
|
@@ -32629,7 +32629,7 @@ function P4({
|
|
|
32629
32629
|
placeholder: "Jane Doe",
|
|
32630
32630
|
value: o.signature,
|
|
32631
32631
|
maxLength: 100,
|
|
32632
|
-
onChange:
|
|
32632
|
+
onChange: C("signature")
|
|
32633
32633
|
}
|
|
32634
32634
|
),
|
|
32635
32635
|
/* @__PURE__ */ r(
|
|
@@ -32639,7 +32639,7 @@ function P4({
|
|
|
32639
32639
|
placeholder: "MM / DD / YYYY",
|
|
32640
32640
|
value: o.signatureDate,
|
|
32641
32641
|
maxLength: 14,
|
|
32642
|
-
onChange:
|
|
32642
|
+
onChange: C("signatureDate")
|
|
32643
32643
|
}
|
|
32644
32644
|
),
|
|
32645
32645
|
/* @__PURE__ */ r(
|
|
@@ -32649,7 +32649,7 @@ function P4({
|
|
|
32649
32649
|
placeholder: "(804) 555-0199",
|
|
32650
32650
|
value: o.phoneNumber,
|
|
32651
32651
|
maxLength: 20,
|
|
32652
|
-
onChange:
|
|
32652
|
+
onChange: C("phoneNumber")
|
|
32653
32653
|
}
|
|
32654
32654
|
)
|
|
32655
32655
|
] }),
|
|
@@ -32671,7 +32671,7 @@ function P4({
|
|
|
32671
32671
|
hint: w.hint,
|
|
32672
32672
|
columns: Jy,
|
|
32673
32673
|
amount: o[w.key],
|
|
32674
|
-
onAmountChange:
|
|
32674
|
+
onAmountChange: C(w.key)
|
|
32675
32675
|
},
|
|
32676
32676
|
w.number
|
|
32677
32677
|
)) }),
|
|
@@ -32711,7 +32711,7 @@ function P4({
|
|
|
32711
32711
|
dM,
|
|
32712
32712
|
{
|
|
32713
32713
|
value: o.statementCount,
|
|
32714
|
-
onChange:
|
|
32714
|
+
onChange: C("statementCount")
|
|
32715
32715
|
}
|
|
32716
32716
|
)
|
|
32717
32717
|
]
|
|
@@ -32726,7 +32726,7 @@ function P4({
|
|
|
32726
32726
|
mode: c,
|
|
32727
32727
|
onBack: a,
|
|
32728
32728
|
onEdit: x,
|
|
32729
|
-
onCancel:
|
|
32729
|
+
onCancel: N,
|
|
32730
32730
|
onSubmit: i ? () => i(o) : void 0,
|
|
32731
32731
|
submitLabel: "Submit to State",
|
|
32732
32732
|
isSubmitting: s
|
|
@@ -32879,14 +32879,14 @@ function L4({
|
|
|
32879
32879
|
const [o, d] = _(() => ({
|
|
32880
32880
|
...fM,
|
|
32881
32881
|
...t
|
|
32882
|
-
})), [c, u] = _("preview"), m = c === "edit", h = Te(o), p = (x,
|
|
32883
|
-
const
|
|
32884
|
-
d(
|
|
32882
|
+
})), [c, u] = _("preview"), m = c === "edit", h = Te(o), p = (x, N) => {
|
|
32883
|
+
const C = { ...o, [x]: N };
|
|
32884
|
+
d(C), n == null || n(C);
|
|
32885
32885
|
}, y = () => {
|
|
32886
32886
|
h.current = o, u("edit");
|
|
32887
32887
|
}, g = () => {
|
|
32888
32888
|
d(h.current), n == null || n(h.current), u("preview");
|
|
32889
|
-
}, b = (x) => m ? (
|
|
32889
|
+
}, b = (x) => m ? (N) => p(x, N) : void 0;
|
|
32890
32890
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
32891
32891
|
/* @__PURE__ */ l(bn, { children: [
|
|
32892
32892
|
/* @__PURE__ */ l("header", { className: "mb-8", children: [
|
|
@@ -33074,14 +33074,14 @@ function D4({
|
|
|
33074
33074
|
const [o, d] = _(() => ({
|
|
33075
33075
|
...vM,
|
|
33076
33076
|
...t
|
|
33077
|
-
})), [c, u] = _("preview"), m = c === "edit", h = Te(o), p = (
|
|
33078
|
-
const w = { ...o, [
|
|
33077
|
+
})), [c, u] = _("preview"), m = c === "edit", h = Te(o), p = (N, C) => {
|
|
33078
|
+
const w = { ...o, [N]: C };
|
|
33079
33079
|
d(w), n == null || n(w);
|
|
33080
33080
|
}, y = () => {
|
|
33081
33081
|
h.current = o, u("edit");
|
|
33082
33082
|
}, g = () => {
|
|
33083
33083
|
d(h.current), n == null || n(h.current), u("preview");
|
|
33084
|
-
}, b = (
|
|
33084
|
+
}, b = (N) => m ? (C) => p(N, C) : void 0;
|
|
33085
33085
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
33086
33086
|
/* @__PURE__ */ l("h1", { className: "font-lato text-xl font-bold text-[#101828]", children: [
|
|
33087
33087
|
m ? "Edit" : "State",
|
|
@@ -33159,20 +33159,20 @@ function D4({
|
|
|
33159
33159
|
)
|
|
33160
33160
|
] })
|
|
33161
33161
|
] }),
|
|
33162
|
-
/* @__PURE__ */ r("p", { className: "flex flex-wrap gap-x-6 gap-y-1 pt-2 text-xs text-slate-600", children: IM.map((
|
|
33162
|
+
/* @__PURE__ */ r("p", { className: "flex flex-wrap gap-x-6 gap-y-1 pt-2 text-xs text-slate-600", children: IM.map((N) => /* @__PURE__ */ r("span", { children: N }, N)) })
|
|
33163
33163
|
] }),
|
|
33164
|
-
/* @__PURE__ */ r("ol", { className: "space-y-4", children: SM.map((
|
|
33165
|
-
const
|
|
33164
|
+
/* @__PURE__ */ r("ol", { className: "space-y-4", children: SM.map((N) => {
|
|
33165
|
+
const C = N.key;
|
|
33166
33166
|
return /* @__PURE__ */ r(
|
|
33167
33167
|
hs,
|
|
33168
33168
|
{
|
|
33169
|
-
number:
|
|
33170
|
-
label:
|
|
33171
|
-
hint:
|
|
33172
|
-
amount:
|
|
33173
|
-
onAmountChange:
|
|
33169
|
+
number: N.number,
|
|
33170
|
+
label: N.label,
|
|
33171
|
+
hint: N.hint,
|
|
33172
|
+
amount: C ? o[C] : e.incomeTaxWithheld,
|
|
33173
|
+
onAmountChange: C ? b(C) : void 0
|
|
33174
33174
|
},
|
|
33175
|
-
|
|
33175
|
+
N.number
|
|
33176
33176
|
);
|
|
33177
33177
|
}) })
|
|
33178
33178
|
] }) }),
|
|
@@ -33434,12 +33434,12 @@ function ag({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
33434
33434
|
formLabel: "760ES",
|
|
33435
33435
|
schema: MM,
|
|
33436
33436
|
initialValues: { ...zM, ...t },
|
|
33437
|
-
buildPayload: (
|
|
33437
|
+
buildPayload: (N) => OM(e, N),
|
|
33438
33438
|
fieldsFromEntity: BM,
|
|
33439
33439
|
onValuesChange: n,
|
|
33440
33440
|
onSubmitted: i,
|
|
33441
33441
|
readOnly: s
|
|
33442
|
-
}), { values: d, fieldErrors: c, field: u, shown: m, choose: h, toggle: p } = o, y = F4(), g = Mo.findIndex((
|
|
33442
|
+
}), { values: d, fieldErrors: c, field: u, shown: m, choose: h, toggle: p } = o, y = F4(), g = Mo.findIndex((N) => N === d.voucher), b = g >= 0 ? y[g] : null, x = [d.city, [d.state, d.zipCode].filter(Boolean).join(" ")].filter(Boolean).join(", ");
|
|
33443
33443
|
return /* @__PURE__ */ l(
|
|
33444
33444
|
Ct,
|
|
33445
33445
|
{
|
|
@@ -33460,16 +33460,16 @@ function ag({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
33460
33460
|
) }),
|
|
33461
33461
|
/* @__PURE__ */ l("section", { className: "space-y-2", children: [
|
|
33462
33462
|
/* @__PURE__ */ r("p", { className: `text-sm font-bold ${fe}`, children: "Which voucher is this payment for?" }),
|
|
33463
|
-
/* @__PURE__ */ r("div", { role: "radiogroup", "aria-label": "Voucher number", className: "flex flex-wrap gap-x-8 gap-y-2", children: Mo.map((
|
|
33463
|
+
/* @__PURE__ */ r("div", { role: "radiogroup", "aria-label": "Voucher number", className: "flex flex-wrap gap-x-8 gap-y-2", children: Mo.map((N, C) => /* @__PURE__ */ r(
|
|
33464
33464
|
Ge,
|
|
33465
33465
|
{
|
|
33466
33466
|
name: "va-760es-voucher",
|
|
33467
|
-
checked: d.voucher ===
|
|
33468
|
-
onSelect: h("voucher",
|
|
33469
|
-
label: `Voucher ${
|
|
33470
|
-
detail: `Due ${tg(y[
|
|
33467
|
+
checked: d.voucher === N,
|
|
33468
|
+
onSelect: h("voucher", N),
|
|
33469
|
+
label: `Voucher ${N}`,
|
|
33470
|
+
detail: `Due ${tg(y[C])}`
|
|
33471
33471
|
},
|
|
33472
|
-
|
|
33472
|
+
N
|
|
33473
33473
|
)) }),
|
|
33474
33474
|
/* @__PURE__ */ r(Je, { message: c.voucher })
|
|
33475
33475
|
] }),
|
|
@@ -34227,13 +34227,13 @@ function Fc({
|
|
|
34227
34227
|
onValuesChange: s,
|
|
34228
34228
|
onSubmitted: o
|
|
34229
34229
|
}) {
|
|
34230
|
-
const [d, c] = _(() => i(n)), [u, m] = _("preview"), h = u === "edit", p = Te(d), [y, g] = _({}), b = Object.keys(y).length > 0, { showSuccess: x, showError:
|
|
34230
|
+
const [d, c] = _(() => i(n)), [u, m] = _("preview"), h = u === "edit", p = Te(d), [y, g] = _({}), b = Object.keys(y).length > 0, { showSuccess: x, showError: N } = Wt(), C = Tn({
|
|
34231
34231
|
mutationFn: ($) => Hn($),
|
|
34232
34232
|
onSuccess: ($) => {
|
|
34233
34233
|
m("preview"), x(`Form ${e} submitted`, "We'll update its status once it's filed with the state."), o == null || o($);
|
|
34234
34234
|
},
|
|
34235
34235
|
onError: () => {
|
|
34236
|
-
|
|
34236
|
+
N("Submission failed", "Please try again.");
|
|
34237
34237
|
}
|
|
34238
34238
|
}), w = ($) => {
|
|
34239
34239
|
const ee = t.safeParse($);
|
|
@@ -34292,9 +34292,9 @@ function Fc({
|
|
|
34292
34292
|
g($);
|
|
34293
34293
|
return;
|
|
34294
34294
|
}
|
|
34295
|
-
g({}),
|
|
34295
|
+
g({}), C.mutate(a(d));
|
|
34296
34296
|
},
|
|
34297
|
-
isSubmitting:
|
|
34297
|
+
isSubmitting: C.isPending
|
|
34298
34298
|
};
|
|
34299
34299
|
}
|
|
34300
34300
|
const Bd = [
|
|
@@ -34429,11 +34429,11 @@ function cg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
34429
34429
|
normalize: dO,
|
|
34430
34430
|
onValuesChange: n,
|
|
34431
34431
|
onSubmitted: i
|
|
34432
|
-
}), { values: o, isEditing: d, fieldErrors: c, commit: u, text: m, amount: h, toggle: p } = s, y = kc(o), g = nf(o.quarter, o.taxYear), b = g ? Bd[g.quarter - 1].months : null, x = o.monthLiability.some((I) => !In(I)),
|
|
34432
|
+
}), { values: o, isEditing: d, fieldErrors: c, commit: u, text: m, amount: h, toggle: p } = s, y = kc(o), g = nf(o.quarter, o.taxYear), b = g ? Bd[g.quarter - 1].months : null, x = o.monthLiability.some((I) => !In(I)), N = x || !In(o.payments), C = ["liabilityTotal", "requestRefund"], w = (I) => ({
|
|
34433
34433
|
label: `Box ${I + 4}, ${b ? b[I] : `month ${I + 1}`} liability`,
|
|
34434
34434
|
amount: o.monthLiability[I],
|
|
34435
34435
|
onChange: d ? (S) => u({ ...o, monthLiability: o.monthLiability.map((F, z) => z === I ? S : F) }) : void 0,
|
|
34436
|
-
onBlur: s.validateOnBlur(`monthLiability.${I}`, ...
|
|
34436
|
+
onBlur: s.validateOnBlur(`monthLiability.${I}`, ...C),
|
|
34437
34437
|
error: c[`monthLiability.${I}`]
|
|
34438
34438
|
}), v = (I) => ({ value: o[I], error: c[I] });
|
|
34439
34439
|
return /* @__PURE__ */ l(
|
|
@@ -34508,7 +34508,7 @@ function cg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
34508
34508
|
}
|
|
34509
34509
|
) }),
|
|
34510
34510
|
/* @__PURE__ */ r(Gt, { number: 2, label: "Wages, tips and other compensation for the quarter", children: /* @__PURE__ */ r(ie, { ...h("wages", "Line 2, wages, tips and other compensation") }) }),
|
|
34511
|
-
/* @__PURE__ */ r(Gt, { number: 3, label: "Total WV income tax withheld from wages, tips and other compensation for the quarter", children: /* @__PURE__ */ r(ie, { ...h("withheld", "Line 3, total WV income tax withheld", { alsoCheck:
|
|
34511
|
+
/* @__PURE__ */ r(Gt, { number: 3, label: "Total WV income tax withheld from wages, tips and other compensation for the quarter", children: /* @__PURE__ */ r(ie, { ...h("withheld", "Line 3, total WV income tax withheld", { alsoCheck: C }) }) }),
|
|
34512
34512
|
/* @__PURE__ */ l("div", { className: "grid gap-4 border-b border-slate-300 px-4 py-3 sm:grid-cols-4", children: [
|
|
34513
34513
|
[0, 1, 2].map((I) => /* @__PURE__ */ l("div", { className: "min-w-0", children: [
|
|
34514
34514
|
/* @__PURE__ */ l("p", { className: "mb-1 text-sm text-[#19191A]", children: [
|
|
@@ -34533,7 +34533,7 @@ function cg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
34533
34533
|
] })
|
|
34534
34534
|
] }),
|
|
34535
34535
|
/* @__PURE__ */ r(Gt, { number: 8, label: "Total payments for the quarter", hint: "If none, enter zero.", children: /* @__PURE__ */ r(ie, { ...h("payments", "Line 8, total payments for the quarter", { alsoCheck: ["requestRefund"] }) }) }),
|
|
34536
|
-
/* @__PURE__ */ r(Gt, { number: 9, label: "Balance due (If line 7 is greater than line 8, enter difference here)", children: /* @__PURE__ */ r(ie, { label: "Line 9, balance due", amount:
|
|
34536
|
+
/* @__PURE__ */ r(Gt, { number: 9, label: "Balance due (If line 7 is greater than line 8, enter difference here)", children: /* @__PURE__ */ r(ie, { label: "Line 9, balance due", amount: N ? Fe(y.balanceDueCents) : ra }) }),
|
|
34537
34537
|
/* @__PURE__ */ r(
|
|
34538
34538
|
Gt,
|
|
34539
34539
|
{
|
|
@@ -34546,7 +34546,7 @@ function cg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
34546
34546
|
y.overpaymentCents > 0 ? "The overpayment is applied to the next period, or check Refund to request it back." : null,
|
|
34547
34547
|
/* @__PURE__ */ r(_a, { message: c.requestRefund })
|
|
34548
34548
|
] }),
|
|
34549
|
-
children: /* @__PURE__ */ r(ie, { label: "Line 10, overpayment", amount:
|
|
34549
|
+
children: /* @__PURE__ */ r(ie, { label: "Line 10, overpayment", amount: N ? Fe(y.overpaymentCents) : ra })
|
|
34550
34550
|
}
|
|
34551
34551
|
),
|
|
34552
34552
|
/* @__PURE__ */ r(Di, { children: "Part 2: Tell us about your business. If not applicable to your business, leave blank." }),
|
|
@@ -35067,7 +35067,7 @@ function pg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
35067
35067
|
normalize: IO,
|
|
35068
35068
|
onValuesChange: n,
|
|
35069
35069
|
onSubmitted: i
|
|
35070
|
-
}), { values: o, isEditing: d, fieldErrors: c, commit: u, text: m, amount: h, toggle: p } = s, y = sf(o), g = /^\d{4}$/.test(o.taxYear) ? Number(o.taxYear) : null, b = o.filing1099s && !o.filingW2s, x = o.quarterWithheld.some((v) => !In(v)),
|
|
35070
|
+
}), { values: o, isEditing: d, fieldErrors: c, commit: u, text: m, amount: h, toggle: p } = s, y = sf(o), g = /^\d{4}$/.test(o.taxYear) ? Number(o.taxYear) : null, b = o.filing1099s && !o.filingW2s, x = o.quarterWithheld.some((v) => !In(v)), N = y.differenceCents !== 0 && x && !In(o.statementsWithheld), C = (v) => ({ value: o[v], error: c[v] }), w = (v) => ({
|
|
35071
35071
|
label: `${rh[v]}, tax withheld`,
|
|
35072
35072
|
amount: o.quarterWithheld[v],
|
|
35073
35073
|
onChange: d ? (I) => u({ ...o, quarterWithheld: o.quarterWithheld.map((S, F) => F === v ? I : S) }) : void 0,
|
|
@@ -35090,11 +35090,11 @@ function pg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
35090
35090
|
onSelectEntity: s.applyEntity,
|
|
35091
35091
|
entityError: c.payerId,
|
|
35092
35092
|
fields: {
|
|
35093
|
-
name:
|
|
35094
|
-
address:
|
|
35095
|
-
city:
|
|
35096
|
-
state:
|
|
35097
|
-
zipCode:
|
|
35093
|
+
name: C("name"),
|
|
35094
|
+
address: C("address"),
|
|
35095
|
+
city: C("city"),
|
|
35096
|
+
state: C("state"),
|
|
35097
|
+
zipCode: C("zipCode")
|
|
35098
35098
|
},
|
|
35099
35099
|
accountNumber: { ...m("accountNumber", { format: (v) => AO(v, b) }), inputMode: "numeric" },
|
|
35100
35100
|
accountNumberPlaceholder: b ? "12345678 or XX-XXXXXXX" : "12345678"
|
|
@@ -35146,7 +35146,7 @@ function pg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
35146
35146
|
/* @__PURE__ */ l("div", { children: [
|
|
35147
35147
|
/* @__PURE__ */ l("p", { className: "mb-1 text-[11px] font-medium uppercase tracking-wide text-[#19191A]", children: [
|
|
35148
35148
|
"Explanation ",
|
|
35149
|
-
|
|
35149
|
+
N ? "(required — Block (A) and Block (B) differ)" : "(only if Block (A) and Block (B) differ)"
|
|
35150
35150
|
] }),
|
|
35151
35151
|
d ? /* @__PURE__ */ r(
|
|
35152
35152
|
"textarea",
|
|
@@ -35184,7 +35184,7 @@ function pg({ data: e, initialValues: t, onValuesChange: n, onBack: a, onSubmitt
|
|
|
35184
35184
|
" ",
|
|
35185
35185
|
g ? sn(q4(g)) : "enter the calendar year to see the due date"
|
|
35186
35186
|
] }),
|
|
35187
|
-
|
|
35187
|
+
N ? /* @__PURE__ */ l("p", { className: "sm:col-span-2", children: [
|
|
35188
35188
|
"A difference of ",
|
|
35189
35189
|
En(Math.abs(y.differenceCents)),
|
|
35190
35190
|
" — explain it above, and file an amended quarterly return."
|
|
@@ -36222,8 +36222,47 @@ function BO(e) {
|
|
|
36222
36222
|
const t = new Date(e);
|
|
36223
36223
|
return Number.isNaN(t.getTime()) ? e : t.toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
36224
36224
|
}
|
|
36225
|
-
function qO({
|
|
36226
|
-
|
|
36225
|
+
function qO({
|
|
36226
|
+
form: e,
|
|
36227
|
+
onOpen: t
|
|
36228
|
+
}) {
|
|
36229
|
+
const n = !Vp(e.reason) && e.status === "Draft" ? "Review & Submit" : "View";
|
|
36230
|
+
return /* @__PURE__ */ l("div", { className: "rounded-xl border border-slate-200 bg-white p-5 shadow-sm transition hover:border-gov-300 hover:shadow-md", children: [
|
|
36231
|
+
/* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-2", children: [
|
|
36232
|
+
/* @__PURE__ */ l("div", { className: "min-w-0", children: [
|
|
36233
|
+
/* @__PURE__ */ l("p", { className: "truncate text-base font-bold text-slate-900", children: [
|
|
36234
|
+
e.state,
|
|
36235
|
+
" ",
|
|
36236
|
+
e.formCode
|
|
36237
|
+
] }),
|
|
36238
|
+
/* @__PURE__ */ r("p", { className: "mt-1 text-xs text-slate-500", children: e.reason })
|
|
36239
|
+
] }),
|
|
36240
|
+
/* @__PURE__ */ r(V4, { status: e.status, reason: e.reason, paymentStatus: e.paymentStatus })
|
|
36241
|
+
] }),
|
|
36242
|
+
/* @__PURE__ */ r("div", { className: "my-4 h-px bg-slate-200" }),
|
|
36243
|
+
/* @__PURE__ */ l("ul", { className: "space-y-3 text-sm text-slate-700", children: [
|
|
36244
|
+
/* @__PURE__ */ l("li", { className: "flex items-center justify-between gap-3", children: [
|
|
36245
|
+
/* @__PURE__ */ r("span", { className: "text-slate-500", children: "Reference #" }),
|
|
36246
|
+
/* @__PURE__ */ r("span", { className: "font-mono text-xs text-slate-600", children: e.referenceNumber })
|
|
36247
|
+
] }),
|
|
36248
|
+
/* @__PURE__ */ l("li", { className: "flex items-center justify-between gap-3", children: [
|
|
36249
|
+
/* @__PURE__ */ r("span", { className: "text-slate-500", children: "Created" }),
|
|
36250
|
+
/* @__PURE__ */ r("span", { children: BO(e.createdAt) })
|
|
36251
|
+
] })
|
|
36252
|
+
] }),
|
|
36253
|
+
/* @__PURE__ */ r("div", { className: "mt-4 flex justify-end border-t border-slate-200 pt-3", children: /* @__PURE__ */ r(
|
|
36254
|
+
"button",
|
|
36255
|
+
{
|
|
36256
|
+
type: "button",
|
|
36257
|
+
onClick: () => t(e),
|
|
36258
|
+
className: "rounded-lg border border-gov-600 px-3 py-1.5 text-sm font-medium text-gov-600 transition hover:bg-gov-50",
|
|
36259
|
+
children: n
|
|
36260
|
+
}
|
|
36261
|
+
) })
|
|
36262
|
+
] });
|
|
36263
|
+
}
|
|
36264
|
+
function _O({ entityId: e, onCreate: t, onOpen: n }) {
|
|
36265
|
+
var x, N;
|
|
36227
36266
|
const [a, i] = _(""), [s, o] = _(""), [d, c] = _(1), [u, m] = _(Vr);
|
|
36228
36267
|
Ie(() => {
|
|
36229
36268
|
c(1);
|
|
@@ -36240,8 +36279,8 @@ function qO({ entityId: e, onCreate: t, onOpen: n }) {
|
|
|
36240
36279
|
pageSize: u
|
|
36241
36280
|
}),
|
|
36242
36281
|
enabled: e !== null,
|
|
36243
|
-
placeholderData: (
|
|
36244
|
-
}), p = ((x = h.data) == null ? void 0 : x.items) ?? [], y = ((
|
|
36282
|
+
placeholderData: (C) => C
|
|
36283
|
+
}), p = ((x = h.data) == null ? void 0 : x.items) ?? [], y = ((N = h.data) == null ? void 0 : N.totalCount) ?? 0, g = h.isLoading, b = e !== null && h.isFetching;
|
|
36245
36284
|
return /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
36246
36285
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-start justify-between gap-4", children: [
|
|
36247
36286
|
/* @__PURE__ */ l("div", { children: [
|
|
@@ -36269,7 +36308,7 @@ function qO({ entityId: e, onCreate: t, onOpen: n }) {
|
|
|
36269
36308
|
placeholder: "All states",
|
|
36270
36309
|
value: a,
|
|
36271
36310
|
onChange: i,
|
|
36272
|
-
options: qd.map((
|
|
36311
|
+
options: qd.map((C) => ({ value: C.code, label: C.name }))
|
|
36273
36312
|
}
|
|
36274
36313
|
) }),
|
|
36275
36314
|
/* @__PURE__ */ r("div", { className: "w-56", children: /* @__PURE__ */ r(
|
|
@@ -36284,46 +36323,12 @@ function qO({ entityId: e, onCreate: t, onOpen: n }) {
|
|
|
36284
36323
|
}
|
|
36285
36324
|
) })
|
|
36286
36325
|
] }),
|
|
36287
|
-
/* @__PURE__ */ r("div", { className: "
|
|
36288
|
-
|
|
36289
|
-
|
|
36290
|
-
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
/* @__PURE__ */ r("th", { className: "px-6 py-3 font-medium", children: "Status" }),
|
|
36294
|
-
/* @__PURE__ */ r("th", { className: "px-6 py-3 font-medium", children: "Created" }),
|
|
36295
|
-
/* @__PURE__ */ r("th", { className: "px-6 py-3", children: /* @__PURE__ */ r("span", { className: "sr-only", children: "Actions" }) })
|
|
36296
|
-
] }) }),
|
|
36297
|
-
/* @__PURE__ */ r("tbody", { children: g && !h.data ? /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r("td", { colSpan: 7, className: "px-6 py-12 text-center text-slate-500", children: "Loading tax forms…" }) }) : p.length === 0 ? /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ l("td", { colSpan: 7, className: "px-6 py-12 text-center text-slate-500", children: [
|
|
36298
|
-
"No tax forms yet. Forms appear here automatically once a state payment is scheduled, or browse states with",
|
|
36299
|
-
" ",
|
|
36300
|
-
/* @__PURE__ */ r("button", { type: "button", onClick: t, className: "font-medium text-gov-600 hover:underline", children: "Create Tax Form" }),
|
|
36301
|
-
"."
|
|
36302
|
-
] }) }) : p.map((N) => /* @__PURE__ */ l(
|
|
36303
|
-
"tr",
|
|
36304
|
-
{
|
|
36305
|
-
className: "border-b border-slate-100 last:border-0 hover:bg-slate-50",
|
|
36306
|
-
children: [
|
|
36307
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4 font-mono text-xs text-slate-500", children: N.referenceNumber }),
|
|
36308
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4 font-medium text-slate-900", children: N.state }),
|
|
36309
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4 text-slate-700", children: N.formCode }),
|
|
36310
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4 text-slate-700", children: N.reason }),
|
|
36311
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r(V4, { status: N.status, reason: N.reason, paymentStatus: N.paymentStatus }) }),
|
|
36312
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4 text-slate-500", children: BO(N.createdAt) }),
|
|
36313
|
-
/* @__PURE__ */ r("td", { className: "px-6 py-4 text-right", children: /* @__PURE__ */ r(
|
|
36314
|
-
"button",
|
|
36315
|
-
{
|
|
36316
|
-
type: "button",
|
|
36317
|
-
onClick: () => n(N),
|
|
36318
|
-
className: "rounded-lg border border-gov-600 px-3 py-1.5 text-sm font-medium text-gov-600 transition hover:bg-gov-50",
|
|
36319
|
-
children: !Vp(N.reason) && N.status === "Draft" ? "Review & Submit" : "View"
|
|
36320
|
-
}
|
|
36321
|
-
) })
|
|
36322
|
-
]
|
|
36323
|
-
},
|
|
36324
|
-
N.statePayrollFormId
|
|
36325
|
-
)) })
|
|
36326
|
-
] }) }),
|
|
36326
|
+
/* @__PURE__ */ r("div", { className: "px-6 py-6", children: g && !h.data ? /* @__PURE__ */ r("p", { className: "py-12 text-center text-sm text-slate-500", children: "Loading tax forms…" }) : p.length === 0 ? /* @__PURE__ */ l("p", { className: "py-12 text-center text-sm text-slate-500", children: [
|
|
36327
|
+
"No tax forms yet. Forms appear here automatically once a state payment is scheduled, or browse states with",
|
|
36328
|
+
" ",
|
|
36329
|
+
/* @__PURE__ */ r("button", { type: "button", onClick: t, className: "font-medium text-gov-600 hover:underline", children: "Create Tax Form" }),
|
|
36330
|
+
"."
|
|
36331
|
+
] }) : /* @__PURE__ */ r("div", { className: "grid gap-5 sm:grid-cols-2 xl:grid-cols-3", children: p.map((C) => /* @__PURE__ */ r(qO, { form: C, onOpen: n }, C.statePayrollFormId)) }) }),
|
|
36327
36332
|
/* @__PURE__ */ r(
|
|
36328
36333
|
tl,
|
|
36329
36334
|
{
|
|
@@ -36338,8 +36343,8 @@ function qO({ entityId: e, onCreate: t, onOpen: n }) {
|
|
|
36338
36343
|
] })
|
|
36339
36344
|
] });
|
|
36340
36345
|
}
|
|
36341
|
-
function
|
|
36342
|
-
var
|
|
36346
|
+
function VO({ statePayrollFormId: e, onBack: t }) {
|
|
36347
|
+
var N;
|
|
36343
36348
|
const n = en(), { showSuccess: a, showError: i } = Wt(), [s, o] = _(""), [d, c] = _(null), u = ze({
|
|
36344
36349
|
queryKey: ["tax-forms", "detail", e],
|
|
36345
36350
|
queryFn: () => _4(e)
|
|
@@ -36347,25 +36352,25 @@ function _O({ statePayrollFormId: e, onBack: t }) {
|
|
|
36347
36352
|
Ie(() => {
|
|
36348
36353
|
u.data && o(JSON.stringify(JSON.parse(u.data.formDataRawJson), null, 2));
|
|
36349
36354
|
}, [u.data]);
|
|
36350
|
-
const m = u.data ? !Vp(u.data.reason) : !0, h = m && ((
|
|
36351
|
-
mutationFn: (
|
|
36352
|
-
onSuccess: async (
|
|
36353
|
-
n.setQueryData(["tax-forms", "detail", e],
|
|
36355
|
+
const m = u.data ? !Vp(u.data.reason) : !0, h = m && ((N = u.data) == null ? void 0 : N.status) === "Draft", p = Tn({
|
|
36356
|
+
mutationFn: (C) => RO(e, C),
|
|
36357
|
+
onSuccess: async (C) => {
|
|
36358
|
+
n.setQueryData(["tax-forms", "detail", e], C), await n.invalidateQueries({ queryKey: ["tax-forms", "list"] }), a("Changes saved");
|
|
36354
36359
|
},
|
|
36355
|
-
onError: (
|
|
36360
|
+
onError: (C) => i("Could not save", At(C, "Please try again."))
|
|
36356
36361
|
}), y = Tn({
|
|
36357
36362
|
mutationFn: async () => {
|
|
36358
|
-
const
|
|
36359
|
-
return Hn({ ...w, formCode:
|
|
36363
|
+
const C = u.data, w = JSON.parse(s);
|
|
36364
|
+
return Hn({ ...w, formCode: C.formCode, state: C.state, ids: C.ids });
|
|
36360
36365
|
},
|
|
36361
36366
|
onSuccess: async () => {
|
|
36362
36367
|
await n.invalidateQueries({ queryKey: ["tax-forms"] }), a("Form submitted", "We'll update its status once it's filed with the state.");
|
|
36363
36368
|
},
|
|
36364
|
-
onError: (
|
|
36369
|
+
onError: (C) => i("Submission failed", At(C, "Please try again."))
|
|
36365
36370
|
}), g = () => {
|
|
36366
36371
|
try {
|
|
36367
|
-
const
|
|
36368
|
-
c(null), p.mutate(
|
|
36372
|
+
const C = JSON.parse(s);
|
|
36373
|
+
c(null), p.mutate(C);
|
|
36369
36374
|
} catch {
|
|
36370
36375
|
c("This is not valid JSON — fix the syntax before saving.");
|
|
36371
36376
|
}
|
|
@@ -36412,7 +36417,7 @@ function _O({ statePayrollFormId: e, onBack: t }) {
|
|
|
36412
36417
|
{
|
|
36413
36418
|
id: "tax-form-data",
|
|
36414
36419
|
value: s,
|
|
36415
|
-
onChange: (
|
|
36420
|
+
onChange: (C) => o(C.target.value),
|
|
36416
36421
|
readOnly: !h,
|
|
36417
36422
|
rows: 18,
|
|
36418
36423
|
className: `mt-2 w-full rounded-lg border px-3 py-2 font-mono text-xs ${h ? "border-slate-300 bg-white" : "border-slate-200 bg-slate-50 text-slate-500"} focus:border-gov-500 focus:outline-none focus:ring-2 focus:ring-gov-200`
|
|
@@ -36457,7 +36462,7 @@ function _O({ statePayrollFormId: e, onBack: t }) {
|
|
|
36457
36462
|
) })
|
|
36458
36463
|
] });
|
|
36459
36464
|
}
|
|
36460
|
-
function
|
|
36465
|
+
function UO({
|
|
36461
36466
|
statePayrollFormId: e,
|
|
36462
36467
|
onBack: t
|
|
36463
36468
|
}) {
|
|
@@ -36495,26 +36500,26 @@ function VO({
|
|
|
36495
36500
|
)
|
|
36496
36501
|
] });
|
|
36497
36502
|
}
|
|
36498
|
-
return /* @__PURE__ */ r(
|
|
36503
|
+
return /* @__PURE__ */ r(VO, { statePayrollFormId: e, onBack: t });
|
|
36499
36504
|
}
|
|
36500
|
-
const
|
|
36505
|
+
const ZO = [
|
|
36501
36506
|
{
|
|
36502
36507
|
key: "individual",
|
|
36503
36508
|
title: "Individual",
|
|
36504
36509
|
description: "A person's own income tax — estimated payment vouchers.",
|
|
36505
|
-
icon: /* @__PURE__ */ r(
|
|
36510
|
+
icon: /* @__PURE__ */ r(JO, {})
|
|
36506
36511
|
},
|
|
36507
36512
|
{
|
|
36508
36513
|
key: "business",
|
|
36509
36514
|
title: "Business",
|
|
36510
36515
|
description: "A business's own income tax — corporate estimated payment vouchers.",
|
|
36511
|
-
icon: /* @__PURE__ */ r(
|
|
36516
|
+
icon: /* @__PURE__ */ r(ez, {})
|
|
36512
36517
|
},
|
|
36513
36518
|
{
|
|
36514
36519
|
key: "withholding",
|
|
36515
36520
|
title: "Withholding",
|
|
36516
36521
|
description: "Employer returns and payments of income tax withheld from employees.",
|
|
36517
|
-
icon: /* @__PURE__ */ r(
|
|
36522
|
+
icon: /* @__PURE__ */ r(tz, {})
|
|
36518
36523
|
}
|
|
36519
36524
|
], U4 = {
|
|
36520
36525
|
individual: "bg-emerald-50 text-emerald-700",
|
|
@@ -36531,12 +36536,12 @@ function W4(e) {
|
|
|
36531
36536
|
withholding: e.filter((t) => t.category === "withholding").length
|
|
36532
36537
|
};
|
|
36533
36538
|
}
|
|
36534
|
-
function
|
|
36539
|
+
function WO() {
|
|
36535
36540
|
const [e, t] = Qg(), { selectedEntity: n } = gn(), a = (n == null ? void 0 : n.entityId) ?? null, i = e.get("formId"), s = e.get("view") === "browse", o = qd.find((y) => {
|
|
36536
36541
|
var g;
|
|
36537
36542
|
return y.code === ((g = e.get("state")) == null ? void 0 : g.toUpperCase());
|
|
36538
36543
|
}) ?? null, d = o ? of.find((y) => y.id === e.get("form") && y.stateCode === o.code) : void 0, c = (y) => t({ view: "browse", state: y }), u = (y) => t({ view: "browse", state: y.stateCode, form: y.id }), m = () => t({ view: "browse" }), h = () => t({}), p = (y) => t({ formId: String(y.statePayrollFormId) });
|
|
36539
|
-
return i ? /* @__PURE__ */ r(
|
|
36544
|
+
return i ? /* @__PURE__ */ r(UO, { statePayrollFormId: Number(i), onBack: h }) : s || o ? o && d ? /* @__PURE__ */ l("div", { className: "space-y-4", children: [
|
|
36540
36545
|
/* @__PURE__ */ r(
|
|
36541
36546
|
ih,
|
|
36542
36547
|
{
|
|
@@ -36549,12 +36554,12 @@ function ZO() {
|
|
|
36549
36554
|
}
|
|
36550
36555
|
),
|
|
36551
36556
|
d.render(() => c(o.code))
|
|
36552
|
-
] }) : o ? /* @__PURE__ */ r(
|
|
36557
|
+
] }) : o ? /* @__PURE__ */ r(HO, { state: o, onAllStates: m, onOpenForm: u }, o.code) : /* @__PURE__ */ l("div", { className: "space-y-4", children: [
|
|
36553
36558
|
/* @__PURE__ */ r(ih, { items: [{ label: "Tax Forms", onClick: h }, { label: "Browse forms" }] }),
|
|
36554
|
-
/* @__PURE__ */ r(
|
|
36555
|
-
] }) : /* @__PURE__ */ r(
|
|
36559
|
+
/* @__PURE__ */ r(jO, { onOpenState: c })
|
|
36560
|
+
] }) : /* @__PURE__ */ r(_O, { entityId: a, onCreate: () => t({ view: "browse" }), onOpen: p });
|
|
36556
36561
|
}
|
|
36557
|
-
function
|
|
36562
|
+
function jO({ onOpenState: e }) {
|
|
36558
36563
|
const [t, n] = _(""), [a, i] = _("available"), s = Be(
|
|
36559
36564
|
() => qd.map((u) => ({ ...u, forms: Z4(u.code) })),
|
|
36560
36565
|
[]
|
|
@@ -36588,7 +36593,7 @@ function WO({ onOpenState: e }) {
|
|
|
36588
36593
|
}
|
|
36589
36594
|
)
|
|
36590
36595
|
] }),
|
|
36591
|
-
c.length > 0 ? /* @__PURE__ */ r("div", { className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4", children: c.map((u) => /* @__PURE__ */ r(
|
|
36596
|
+
c.length > 0 ? /* @__PURE__ */ r("div", { className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4", children: c.map((u) => /* @__PURE__ */ r(XO, { state: u, forms: u.forms, onClick: () => e(u.code) }, u.code)) }) : /* @__PURE__ */ r(
|
|
36592
36597
|
Q4,
|
|
36593
36598
|
{
|
|
36594
36599
|
title: d ? `No states match “${t.trim()}”` : "No states to show",
|
|
@@ -36608,7 +36613,7 @@ function WO({ onOpenState: e }) {
|
|
|
36608
36613
|
)
|
|
36609
36614
|
] });
|
|
36610
36615
|
}
|
|
36611
|
-
function
|
|
36616
|
+
function XO({ state: e, forms: t, onClick: n }) {
|
|
36612
36617
|
const a = W4(t), i = t.length > 0;
|
|
36613
36618
|
return /* @__PURE__ */ l(
|
|
36614
36619
|
"button",
|
|
@@ -36640,12 +36645,12 @@ function jO({ state: e, forms: t, onClick: n }) {
|
|
|
36640
36645
|
}
|
|
36641
36646
|
);
|
|
36642
36647
|
}
|
|
36643
|
-
function
|
|
36648
|
+
function HO({
|
|
36644
36649
|
state: e,
|
|
36645
36650
|
onAllStates: t,
|
|
36646
36651
|
onOpenForm: n
|
|
36647
36652
|
}) {
|
|
36648
|
-
const a = Z4(e.code), i = W4(a), [s, o] = _("all"), [d, c] = _(""), u = d.trim().toLowerCase(), m = (p) => !u || p.formNumber.toLowerCase().includes(u) || p.title.toLowerCase().includes(u) || p.description.toLowerCase().includes(u), h =
|
|
36653
|
+
const a = Z4(e.code), i = W4(a), [s, o] = _("all"), [d, c] = _(""), u = d.trim().toLowerCase(), m = (p) => !u || p.formNumber.toLowerCase().includes(u) || p.title.toLowerCase().includes(u) || p.description.toLowerCase().includes(u), h = ZO.filter((p) => s === "all" || p.key === s);
|
|
36649
36654
|
return /* @__PURE__ */ l("div", { className: "space-y-6", children: [
|
|
36650
36655
|
/* @__PURE__ */ r(ih, { items: [{ label: "Tax Forms", onClick: t }, { label: e.name }] }),
|
|
36651
36656
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center justify-between gap-4", children: [
|
|
@@ -36663,7 +36668,7 @@ function XO({
|
|
|
36663
36668
|
onClick: t,
|
|
36664
36669
|
className: "inline-flex items-center gap-2 rounded-lg border border-gov-600 bg-white px-4 py-2 text-sm font-medium text-gov-600 transition hover:bg-gov-50",
|
|
36665
36670
|
children: [
|
|
36666
|
-
/* @__PURE__ */ r(
|
|
36671
|
+
/* @__PURE__ */ r(KO, { className: "h-4 w-4" }),
|
|
36667
36672
|
"All states"
|
|
36668
36673
|
]
|
|
36669
36674
|
}
|
|
@@ -36729,13 +36734,13 @@ function XO({
|
|
|
36729
36734
|
/* @__PURE__ */ r("p", { className: "text-sm text-slate-500", children: p.description })
|
|
36730
36735
|
] })
|
|
36731
36736
|
] }),
|
|
36732
|
-
g.length > 0 ? /* @__PURE__ */ r("div", { className: "grid gap-3 md:grid-cols-2", children: g.map((b) => /* @__PURE__ */ r(
|
|
36737
|
+
g.length > 0 ? /* @__PURE__ */ r("div", { className: "grid gap-3 md:grid-cols-2", children: g.map((b) => /* @__PURE__ */ r(QO, { listing: b, onClick: () => n(b) }, b.id)) }) : /* @__PURE__ */ r("p", { className: "rounded-xl border border-dashed border-slate-200 px-4 py-6 text-center text-sm text-slate-500", children: y.length === 0 ? `No ${p.title.toLowerCase()} forms for ${e.name} yet.` : `No ${p.title.toLowerCase()} forms match “${d.trim()}”.` })
|
|
36733
36738
|
] }, p.key);
|
|
36734
36739
|
}) })
|
|
36735
36740
|
] })
|
|
36736
36741
|
] });
|
|
36737
36742
|
}
|
|
36738
|
-
function
|
|
36743
|
+
function QO({ listing: e, onClick: t }) {
|
|
36739
36744
|
return /* @__PURE__ */ l(
|
|
36740
36745
|
"button",
|
|
36741
36746
|
{
|
|
@@ -36745,7 +36750,7 @@ function HO({ listing: e, onClick: t }) {
|
|
|
36745
36750
|
children: [
|
|
36746
36751
|
/* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-3", children: [
|
|
36747
36752
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
36748
|
-
/* @__PURE__ */ r("span", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-gov-50 text-gov-700", children: /* @__PURE__ */ r(
|
|
36753
|
+
/* @__PURE__ */ r("span", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-gov-50 text-gov-700", children: /* @__PURE__ */ r(nz, {}) }),
|
|
36749
36754
|
/* @__PURE__ */ l("span", { className: "text-base font-semibold text-slate-900", children: [
|
|
36750
36755
|
"Form ",
|
|
36751
36756
|
e.formNumber
|
|
@@ -36801,7 +36806,7 @@ function j4({
|
|
|
36801
36806
|
onClick: () => t(""),
|
|
36802
36807
|
"aria-label": "Clear search",
|
|
36803
36808
|
className: "absolute right-2 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md text-slate-400 transition hover:bg-slate-100 hover:text-slate-600",
|
|
36804
|
-
children: /* @__PURE__ */ r(
|
|
36809
|
+
children: /* @__PURE__ */ r(GO, {})
|
|
36805
36810
|
}
|
|
36806
36811
|
) : null
|
|
36807
36812
|
] });
|
|
@@ -36859,28 +36864,28 @@ function Q4({ title: e, message: t, action: n }) {
|
|
|
36859
36864
|
function G4({ className: e = "h-4 w-4" }) {
|
|
36860
36865
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m21 21-4.35-4.35M17 10.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z" }) });
|
|
36861
36866
|
}
|
|
36862
|
-
function
|
|
36867
|
+
function GO() {
|
|
36863
36868
|
return /* @__PURE__ */ r("svg", { className: "h-3.5 w-3.5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2.5", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18 18 6M6 6l12 12" }) });
|
|
36864
36869
|
}
|
|
36865
36870
|
function lf({ className: e = "h-4 w-4" }) {
|
|
36866
36871
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m9 5 7 7-7 7" }) });
|
|
36867
36872
|
}
|
|
36868
|
-
function
|
|
36873
|
+
function KO({ className: e = "h-4 w-4" }) {
|
|
36869
36874
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m15 19-7-7 7-7" }) });
|
|
36870
36875
|
}
|
|
36871
|
-
function
|
|
36876
|
+
function JO() {
|
|
36872
36877
|
return /* @__PURE__ */ r("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.5 20.1a7.5 7.5 0 0 1 15 0A17.9 17.9 0 0 1 12 21.75c-2.68 0-5.22-.58-7.5-1.65Z" }) });
|
|
36873
36878
|
}
|
|
36874
|
-
function
|
|
36879
|
+
function ez() {
|
|
36875
36880
|
return /* @__PURE__ */ r("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M20.25 14.15v4.1c0 1.24-1 2.25-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25v-4.1M20.25 14.15A2.18 2.18 0 0 0 21 12.5V9.75c0-1.24-1-2.25-2.25-2.25H5.25C4 7.5 3 8.5 3 9.75v2.75c0 .64.27 1.23.75 1.65m16.5 0a2.2 2.2 0 0 1-1.34.6A48.5 48.5 0 0 1 12 15c-2.4 0-4.8-.2-6.91-.25a2.2 2.2 0 0 1-1.34-.6M15.75 7.5V6c0-1.24-1-2.25-2.25-2.25h-3A2.25 2.25 0 0 0 8.25 6v1.5M12 12h.01" }) });
|
|
36876
36881
|
}
|
|
36877
|
-
function
|
|
36882
|
+
function tz() {
|
|
36878
36883
|
return /* @__PURE__ */ r("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.38c0-.62.5-1.12 1.13-1.12h3.75c.62 0 1.12.5 1.12 1.13V21" }) });
|
|
36879
36884
|
}
|
|
36880
|
-
function
|
|
36885
|
+
function nz() {
|
|
36881
36886
|
return /* @__PURE__ */ r("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 14.25v-2.63a3.38 3.38 0 0 0-3.38-3.37h-1.5A1.13 1.13 0 0 1 13.5 7.13v-1.5A3.38 3.38 0 0 0 10.13 2.25H8.25m2.25 0H5.63c-.62 0-1.13.5-1.13 1.13v17.25c0 .62.5 1.12 1.13 1.12h12.75c.62 0 1.12-.5 1.12-1.12V11.25a9 9 0 0 0-9-9Z" }) });
|
|
36882
36887
|
}
|
|
36883
|
-
function
|
|
36888
|
+
function rz({ entityId: e }) {
|
|
36884
36889
|
const [t, n] = _(!1), [a, i] = _(!1), [s, o] = _(null), [d, c] = _(1), [u, m] = _(Vr);
|
|
36885
36890
|
Ie(() => {
|
|
36886
36891
|
c(1);
|
|
@@ -36889,11 +36894,11 @@ function nz({ entityId: e }) {
|
|
|
36889
36894
|
queryKey: ["bank-accounts", e],
|
|
36890
36895
|
queryFn: () => ga(e),
|
|
36891
36896
|
enabled: e !== null
|
|
36892
|
-
}), b = h.length, x = h.slice((d - 1) * u, d * u),
|
|
36897
|
+
}), b = h.length, x = h.slice((d - 1) * u, d * u), N = e !== null && g, C = y ? "error" : e ? p ? "loading" : b === 0 ? "empty" : "ready" : "no-entity", w = C === "error" ? "Unable to load bank accounts." : C === "no-entity" ? "Create an entity to manage bank accounts." : C === "loading" ? "Loading bank accounts…" : null;
|
|
36893
36898
|
return /* @__PURE__ */ l("div", { children: [
|
|
36894
36899
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-4", children: [
|
|
36895
36900
|
/* @__PURE__ */ r("h2", { className: "text-lg font-bold text-slate-900", children: "Bank Accounts" }),
|
|
36896
|
-
|
|
36901
|
+
C === "ready" ? /* @__PURE__ */ r(
|
|
36897
36902
|
"button",
|
|
36898
36903
|
{
|
|
36899
36904
|
type: "button",
|
|
@@ -36931,8 +36936,8 @@ function nz({ entityId: e }) {
|
|
|
36931
36936
|
}
|
|
36932
36937
|
),
|
|
36933
36938
|
/* @__PURE__ */ l("div", { className: "relative min-h-[120px]", children: [
|
|
36934
|
-
|
|
36935
|
-
w ? /* @__PURE__ */ r("p", { className: "py-12 text-center text-sm text-slate-500", children: w }) :
|
|
36939
|
+
N ? /* @__PURE__ */ r(Jo, { label: "Loading bank accounts…" }) : null,
|
|
36940
|
+
w ? /* @__PURE__ */ r("p", { className: "py-12 text-center text-sm text-slate-500", children: w }) : C === "empty" ? /* @__PURE__ */ r(B5, { onAddManually: () => i(!0) }) : /* @__PURE__ */ r("div", { className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-3", children: x.map((v) => /* @__PURE__ */ r(
|
|
36936
36941
|
Y5,
|
|
36937
36942
|
{
|
|
36938
36943
|
account: v,
|
|
@@ -36940,7 +36945,7 @@ function nz({ entityId: e }) {
|
|
|
36940
36945
|
},
|
|
36941
36946
|
v.bankAccountDetailId
|
|
36942
36947
|
)) }),
|
|
36943
|
-
|
|
36948
|
+
C === "ready" && b > u ? /* @__PURE__ */ r(
|
|
36944
36949
|
tl,
|
|
36945
36950
|
{
|
|
36946
36951
|
page: d,
|
|
@@ -36960,7 +36965,7 @@ function mi({ label: e, value: t, icon: n, wide: a = !1 }) {
|
|
|
36960
36965
|
{
|
|
36961
36966
|
className: `flex items-center gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3.5 ${a ? "sm:col-span-2" : ""}`,
|
|
36962
36967
|
children: [
|
|
36963
|
-
/* @__PURE__ */ r("span", { className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-slate-100 text-slate-500", children: /* @__PURE__ */ r(
|
|
36968
|
+
/* @__PURE__ */ r("span", { className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-slate-100 text-slate-500", children: /* @__PURE__ */ r(iz, { icon: n }) }),
|
|
36964
36969
|
/* @__PURE__ */ l("div", { className: "min-w-0", children: [
|
|
36965
36970
|
/* @__PURE__ */ r("p", { className: "text-xs text-slate-500", children: e }),
|
|
36966
36971
|
/* @__PURE__ */ r("p", { className: "mt-0.5 break-words text-sm font-semibold text-slate-900", children: t || "—" })
|
|
@@ -36969,7 +36974,7 @@ function mi({ label: e, value: t, icon: n, wide: a = !1 }) {
|
|
|
36969
36974
|
}
|
|
36970
36975
|
);
|
|
36971
36976
|
}
|
|
36972
|
-
function
|
|
36977
|
+
function az({ entity: e }) {
|
|
36973
36978
|
const t = st();
|
|
36974
36979
|
return /* @__PURE__ */ l("div", { children: [
|
|
36975
36980
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-4", children: [
|
|
@@ -36981,7 +36986,7 @@ function rz({ entity: e }) {
|
|
|
36981
36986
|
onClick: () => t(`/entities/${e.entityId}/edit`, { state: { from: "/settings" } }),
|
|
36982
36987
|
className: "inline-flex items-center gap-2 rounded-lg border border-gov-300 bg-white px-4 py-2.5 text-sm font-medium text-gov-700 transition hover:bg-gov-50",
|
|
36983
36988
|
children: [
|
|
36984
|
-
/* @__PURE__ */ r(
|
|
36989
|
+
/* @__PURE__ */ r(sz, {}),
|
|
36985
36990
|
"Edit"
|
|
36986
36991
|
]
|
|
36987
36992
|
}
|
|
@@ -37019,7 +37024,7 @@ function rz({ entity: e }) {
|
|
|
37019
37024
|
] }) : /* @__PURE__ */ r("div", { className: "rounded-xl border border-dashed border-slate-200 bg-slate-50/50 px-6 py-16 text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-slate-500", children: "Select an entity to view its details." }) })
|
|
37020
37025
|
] });
|
|
37021
37026
|
}
|
|
37022
|
-
function
|
|
37027
|
+
function iz({ icon: e }) {
|
|
37023
37028
|
const n = {
|
|
37024
37029
|
className: "h-4 w-4",
|
|
37025
37030
|
fill: "none",
|
|
@@ -37070,7 +37075,7 @@ function az({ icon: e }) {
|
|
|
37070
37075
|
}
|
|
37071
37076
|
) });
|
|
37072
37077
|
}
|
|
37073
|
-
function
|
|
37078
|
+
function sz() {
|
|
37074
37079
|
return /* @__PURE__ */ r("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", children: /* @__PURE__ */ r(
|
|
37075
37080
|
"path",
|
|
37076
37081
|
{
|
|
@@ -37080,7 +37085,7 @@ function iz() {
|
|
|
37080
37085
|
}
|
|
37081
37086
|
) });
|
|
37082
37087
|
}
|
|
37083
|
-
function
|
|
37088
|
+
function oz({ activeSection: e, onSectionChange: t, items: n }) {
|
|
37084
37089
|
return /* @__PURE__ */ r("nav", { className: "space-y-2", children: n.map((a) => {
|
|
37085
37090
|
const i = e === a.id, s = a.icon;
|
|
37086
37091
|
return /* @__PURE__ */ l(
|
|
@@ -37104,17 +37109,17 @@ function sz({ activeSection: e, onSectionChange: t, items: n }) {
|
|
|
37104
37109
|
children: a.title
|
|
37105
37110
|
}
|
|
37106
37111
|
),
|
|
37107
|
-
/* @__PURE__ */ r(
|
|
37112
|
+
/* @__PURE__ */ r(lz, { className: `h-4 w-4 shrink-0 ${i ? "text-gov-600" : "text-slate-300"}` })
|
|
37108
37113
|
]
|
|
37109
37114
|
},
|
|
37110
37115
|
a.id
|
|
37111
37116
|
);
|
|
37112
37117
|
}) });
|
|
37113
37118
|
}
|
|
37114
|
-
function
|
|
37119
|
+
function lz({ className: e }) {
|
|
37115
37120
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 4.5l7.5 7.5-7.5 7.5" }) });
|
|
37116
37121
|
}
|
|
37117
|
-
function
|
|
37122
|
+
function dz() {
|
|
37118
37123
|
return /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "97", height: "104", viewBox: "0 0 97 104", fill: "none", children: [
|
|
37119
37124
|
/* @__PURE__ */ r("path", { d: "M45.8724 102.399C69.5702 102.399 88.7823 83.1872 88.7823 59.4047C88.7823 35.6223 69.5702 16.4102 45.8724 16.4102C22.1746 16.4102 2.9624 35.6223 2.9624 59.4047C2.9624 83.1872 22.1746 102.399 45.8724 102.399Z", fill: "#F1F3FA", stroke: "#467CB7", "stroke-width": "1.6927", "stroke-miterlimit": "10" }),
|
|
37120
37125
|
/* @__PURE__ */ r("path", { d: "M14.3034 31.5605H75.3253C77.7797 31.5605 79.6417 33.4225 79.6417 35.8769V74.5551C79.6417 77.0096 77.7797 78.8715 75.3253 78.8715H14.3034C11.849 78.8715 9.98706 77.0096 9.98706 74.5551V35.8769C9.98706 33.4225 12.0183 31.5605 14.3034 31.5605Z", fill: "#F1F3FA", stroke: "#467CB7", "stroke-width": "1.6927", "stroke-miterlimit": "10" }),
|
|
@@ -37136,7 +37141,7 @@ function lz() {
|
|
|
37136
37141
|
/* @__PURE__ */ r("path", { d: "M6.60156 26.1445C15.4882 26.1445 31.9074 31.3073 32.1613 50.2655", stroke: "#467CB7", "stroke-width": "1.6927", "stroke-miterlimit": "10", "stroke-dasharray": "3.39 3.39" })
|
|
37137
37142
|
] });
|
|
37138
37143
|
}
|
|
37139
|
-
const
|
|
37144
|
+
const cz = ["Active", "Inactive"], uz = "United States", mz = Ee({
|
|
37140
37145
|
state: f().min(1, "State is required"),
|
|
37141
37146
|
reasonForPayment: f().min(1, "Reason for payment is required"),
|
|
37142
37147
|
stateAccountId: f().min(1, "State ID is required"),
|
|
@@ -37174,23 +37179,23 @@ const Eu = (e) => {
|
|
|
37174
37179
|
const t = e == null ? void 0 : e.trim();
|
|
37175
37180
|
return t || null;
|
|
37176
37181
|
};
|
|
37177
|
-
function
|
|
37182
|
+
function hz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i }) {
|
|
37178
37183
|
var ve, ae, Se, J, ge, we;
|
|
37179
37184
|
const { showSuccess: s, showError: o } = Wt(), d = en(), c = n != null, [u, m] = _(null), [h, p] = _(!1), {
|
|
37180
37185
|
register: y,
|
|
37181
37186
|
handleSubmit: g,
|
|
37182
37187
|
watch: b,
|
|
37183
37188
|
reset: x,
|
|
37184
|
-
setValue:
|
|
37185
|
-
formState: { errors:
|
|
37189
|
+
setValue: N,
|
|
37190
|
+
formState: { errors: C }
|
|
37186
37191
|
} = Zr({
|
|
37187
|
-
resolver: Wr(
|
|
37192
|
+
resolver: Wr(mz),
|
|
37188
37193
|
defaultValues: n ? yg(n) : fg
|
|
37189
37194
|
});
|
|
37190
37195
|
Ie(() => {
|
|
37191
37196
|
e && (m(null), x(n ? yg(n) : fg));
|
|
37192
37197
|
}, [e, n, x]);
|
|
37193
|
-
const w = b("state"), v = b("reasonForPayment"), I = b("taxYear"), S = b("frequency"), F = b("status"), z = Rs(
|
|
37198
|
+
const w = b("state"), v = b("reasonForPayment"), I = b("taxYear"), S = b("frequency"), F = b("status"), z = Rs(uz), { data: q = [], isLoading: Z } = ze({
|
|
37194
37199
|
queryKey: ["state-payment-reasons", t, w],
|
|
37195
37200
|
queryFn: () => Xh(t, w),
|
|
37196
37201
|
enabled: e && t !== null && w.length > 0
|
|
@@ -37199,9 +37204,9 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37199
37204
|
queryFn: () => Hh(t, w, v),
|
|
37200
37205
|
enabled: e && t !== null && w.length > 0 && v.length > 0
|
|
37201
37206
|
}), j = (M == null ? void 0 : M.taxYearOptions) ?? [], $ = (M == null ? void 0 : M.frequencyMode) ?? null, ee = (M == null ? void 0 : M.frequencyOptions) ?? [], U = $ !== null && $ !== "NotApplicable", Y = (M == null ? void 0 : M.stateId.pattern) ?? null, O = T5(Y), K = A5(Y), R = (me) => {
|
|
37202
|
-
me !== w && (
|
|
37207
|
+
me !== w && (N("state", me, { shouldValidate: !0 }), N("reasonForPayment", ""), N("stateAccountId", ""), N("taxYear", ""), N("frequency", ""));
|
|
37203
37208
|
}, H = (me) => {
|
|
37204
|
-
me !== v && (
|
|
37209
|
+
me !== v && (N("reasonForPayment", me, { shouldValidate: !0 }), N("stateAccountId", ""), N("taxYear", ""), N("frequency", ""));
|
|
37205
37210
|
}, B = y("stateAccountId"), se = y("accountId"), G = g(async (me) => {
|
|
37206
37211
|
if (t !== null) {
|
|
37207
37212
|
m(null), p(!0);
|
|
@@ -37269,12 +37274,12 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37269
37274
|
label: "State",
|
|
37270
37275
|
required: !0,
|
|
37271
37276
|
info: "The tax jurisdiction this account is registered in.",
|
|
37272
|
-
error: (ve =
|
|
37277
|
+
error: (ve = C.state) == null ? void 0 : ve.message,
|
|
37273
37278
|
children: /* @__PURE__ */ r(
|
|
37274
37279
|
et,
|
|
37275
37280
|
{
|
|
37276
37281
|
disabled: a,
|
|
37277
|
-
hasError: !!
|
|
37282
|
+
hasError: !!C.state,
|
|
37278
37283
|
placeholder: "Select State",
|
|
37279
37284
|
value: w,
|
|
37280
37285
|
onChange: R,
|
|
@@ -37292,12 +37297,12 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37292
37297
|
label: "Reason for Payment",
|
|
37293
37298
|
required: !0,
|
|
37294
37299
|
info: "The reason for this state tax payment, filtered by the selected state and entity.",
|
|
37295
|
-
error: (ae =
|
|
37300
|
+
error: (ae = C.reasonForPayment) == null ? void 0 : ae.message,
|
|
37296
37301
|
children: /* @__PURE__ */ r(
|
|
37297
37302
|
et,
|
|
37298
37303
|
{
|
|
37299
37304
|
disabled: a || !w || Z,
|
|
37300
|
-
hasError: !!
|
|
37305
|
+
hasError: !!C.reasonForPayment,
|
|
37301
37306
|
loading: Z,
|
|
37302
37307
|
loadingLabel: "Loading reasons…",
|
|
37303
37308
|
placeholder: "Select Reason for Payment",
|
|
@@ -37321,14 +37326,14 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37321
37326
|
label: "State Tax ID",
|
|
37322
37327
|
required: !0,
|
|
37323
37328
|
info: "Your state-issued tax account identifier for the selected state.",
|
|
37324
|
-
error: (Se =
|
|
37329
|
+
error: (Se = C.stateAccountId) == null ? void 0 : Se.message,
|
|
37325
37330
|
children: /* @__PURE__ */ r(
|
|
37326
37331
|
"input",
|
|
37327
37332
|
{
|
|
37328
37333
|
disabled: a,
|
|
37329
37334
|
placeholder: (M == null ? void 0 : M.stateId.example) ?? "Enter State Tax ID",
|
|
37330
37335
|
maxLength: O,
|
|
37331
|
-
className: Me(!!
|
|
37336
|
+
className: Me(!!C.stateAccountId, a),
|
|
37332
37337
|
...B,
|
|
37333
37338
|
onChange: (me) => {
|
|
37334
37339
|
me.target.value = K ? E5(me.target.value, K) : I5(me.target.value, Y), B.onChange(me);
|
|
@@ -37343,7 +37348,7 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37343
37348
|
label: "Account ID",
|
|
37344
37349
|
required: !0,
|
|
37345
37350
|
info: "Your 10 to 12 digit state tax account number.",
|
|
37346
|
-
error: (J =
|
|
37351
|
+
error: (J = C.accountId) == null ? void 0 : J.message,
|
|
37347
37352
|
children: /* @__PURE__ */ r(
|
|
37348
37353
|
"input",
|
|
37349
37354
|
{
|
|
@@ -37351,7 +37356,7 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37351
37356
|
inputMode: "numeric",
|
|
37352
37357
|
placeholder: "Enter Account ID",
|
|
37353
37358
|
maxLength: 12,
|
|
37354
|
-
className: Me(!!
|
|
37359
|
+
className: Me(!!C.accountId, a),
|
|
37355
37360
|
...se,
|
|
37356
37361
|
onChange: (me) => {
|
|
37357
37362
|
me.target.value = me.target.value.replace(/\D/g, "").slice(0, 12), se.onChange(me);
|
|
@@ -37366,15 +37371,15 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37366
37371
|
label: "Tax Year",
|
|
37367
37372
|
required: !0,
|
|
37368
37373
|
info: "The tax year this account applies to.",
|
|
37369
|
-
error: (ge =
|
|
37374
|
+
error: (ge = C.taxYear) == null ? void 0 : ge.message,
|
|
37370
37375
|
children: /* @__PURE__ */ r(
|
|
37371
37376
|
et,
|
|
37372
37377
|
{
|
|
37373
37378
|
disabled: a || !v,
|
|
37374
|
-
hasError: !!
|
|
37379
|
+
hasError: !!C.taxYear,
|
|
37375
37380
|
placeholder: v ? "Select Tax Year" : "Select a reason first",
|
|
37376
37381
|
value: I,
|
|
37377
|
-
onChange: (me) =>
|
|
37382
|
+
onChange: (me) => N("taxYear", me, { shouldValidate: !0 }),
|
|
37378
37383
|
options: j.map((me) => ({
|
|
37379
37384
|
value: String(me),
|
|
37380
37385
|
label: `TY ${me}`
|
|
@@ -37395,7 +37400,7 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37395
37400
|
disabled: a || !v,
|
|
37396
37401
|
placeholder: v ? "Select Frequency" : "Select a reason first",
|
|
37397
37402
|
value: S ?? "",
|
|
37398
|
-
onChange: (me) =>
|
|
37403
|
+
onChange: (me) => N("frequency", me, { shouldValidate: !0 }),
|
|
37399
37404
|
options: ee.map((me) => ({
|
|
37400
37405
|
value: me.code,
|
|
37401
37406
|
label: me.label
|
|
@@ -37415,11 +37420,11 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37415
37420
|
label: "Status",
|
|
37416
37421
|
required: !0,
|
|
37417
37422
|
disabled: a,
|
|
37418
|
-
error: (we =
|
|
37423
|
+
error: (we = C.status) == null ? void 0 : we.message,
|
|
37419
37424
|
placeholder: "Select Status",
|
|
37420
37425
|
value: F,
|
|
37421
|
-
onChange: (me) =>
|
|
37422
|
-
options:
|
|
37426
|
+
onChange: (me) => N("status", me, { shouldValidate: !0 }),
|
|
37427
|
+
options: cz.map((me) => ({ value: me, label: me }))
|
|
37423
37428
|
}
|
|
37424
37429
|
),
|
|
37425
37430
|
/* @__PURE__ */ l("div", { children: [
|
|
@@ -37441,14 +37446,14 @@ function mz({ open: e, entityId: t, account: n, readOnly: a = !1, onClose: i })
|
|
|
37441
37446
|
}
|
|
37442
37447
|
);
|
|
37443
37448
|
}
|
|
37444
|
-
const
|
|
37449
|
+
const pz = {
|
|
37445
37450
|
Monthly: "Monthly",
|
|
37446
37451
|
Quarterly: "Quarterly",
|
|
37447
37452
|
"Semi-annually": "SemiAnnually",
|
|
37448
37453
|
Annually: "Annually"
|
|
37449
|
-
},
|
|
37450
|
-
Object.entries(
|
|
37451
|
-
),
|
|
37454
|
+
}, fz = Object.fromEntries(
|
|
37455
|
+
Object.entries(pz).map(([e, t]) => [t, e])
|
|
37456
|
+
), yz = {
|
|
37452
37457
|
ANNUAL: "Annual",
|
|
37453
37458
|
MONTHLY: "Monthly",
|
|
37454
37459
|
QUARTERLY: "Quarterly",
|
|
@@ -37461,17 +37466,17 @@ const hz = {
|
|
|
37461
37466
|
DEPOSITORY: "Depository",
|
|
37462
37467
|
NEXT_BANKING_DAY: "Next banking day"
|
|
37463
37468
|
};
|
|
37464
|
-
function yz(e) {
|
|
37465
|
-
return e ? pz[e] ?? fz[e] ?? e : null;
|
|
37466
|
-
}
|
|
37467
|
-
const K4 = "—";
|
|
37468
37469
|
function gz(e) {
|
|
37469
|
-
return e
|
|
37470
|
+
return e ? fz[e] ?? yz[e] ?? e : null;
|
|
37470
37471
|
}
|
|
37472
|
+
const K4 = "—";
|
|
37471
37473
|
function bz(e) {
|
|
37472
|
-
return
|
|
37474
|
+
return e.status.trim().toLowerCase() === "active";
|
|
37473
37475
|
}
|
|
37474
37476
|
function xz(e) {
|
|
37477
|
+
return gz(e) ?? K4;
|
|
37478
|
+
}
|
|
37479
|
+
function Nz(e) {
|
|
37475
37480
|
const t = /* @__PURE__ */ new Map();
|
|
37476
37481
|
for (const n of e) {
|
|
37477
37482
|
const a = n.state || "Other", i = t.get(a);
|
|
@@ -37479,7 +37484,7 @@ function xz(e) {
|
|
|
37479
37484
|
}
|
|
37480
37485
|
return [...t.entries()].map(([n, a]) => ({ state: n, accounts: a }));
|
|
37481
37486
|
}
|
|
37482
|
-
function
|
|
37487
|
+
function Cz({ entityId: e }) {
|
|
37483
37488
|
const [t, n] = _(1), [a, i] = _(Vr), [s, o] = _({}), [d, c] = _(null);
|
|
37484
37489
|
Ie(() => {
|
|
37485
37490
|
n(1);
|
|
@@ -37488,8 +37493,8 @@ function Nz({ entityId: e }) {
|
|
|
37488
37493
|
queryKey: ["tax-accounts", e, t, a],
|
|
37489
37494
|
queryFn: () => S5({ entityId: e, pageNumber: t, pageSize: a }),
|
|
37490
37495
|
enabled: e !== null
|
|
37491
|
-
}), p = Be(() => (u == null ? void 0 : u.items) ?? [], [u]), y = (u == null ? void 0 : u.totalCount) ?? 0, g = Be(() =>
|
|
37492
|
-
o((w) => ({ ...w, [
|
|
37496
|
+
}), p = Be(() => (u == null ? void 0 : u.items) ?? [], [u]), y = (u == null ? void 0 : u.totalCount) ?? 0, g = Be(() => Nz(p), [p]), b = h ? "Unable to load tax accounts." : e ? m ? "Loading tax accounts…" : null : "Create an entity to manage tax accounts.", x = b === null && p.length === 0, N = (C) => {
|
|
37497
|
+
o((w) => ({ ...w, [C]: !w[C] }));
|
|
37493
37498
|
};
|
|
37494
37499
|
return /* @__PURE__ */ l("div", { children: [
|
|
37495
37500
|
/* @__PURE__ */ l("div", { className: "mb-6 flex flex-wrap items-center justify-between gap-4", children: [
|
|
@@ -37506,7 +37511,7 @@ function Nz({ entityId: e }) {
|
|
|
37506
37511
|
)
|
|
37507
37512
|
] }),
|
|
37508
37513
|
b ? /* @__PURE__ */ r("p", { className: "py-12 text-center text-sm text-slate-500", children: b }) : x ? /* @__PURE__ */ l("div", { className: "flex flex-col items-center justify-center py-24", children: [
|
|
37509
|
-
/* @__PURE__ */ r(
|
|
37514
|
+
/* @__PURE__ */ r(dz, {}),
|
|
37510
37515
|
/* @__PURE__ */ r("p", { className: "mt-4 text-base text-slate-700", children: "No Tax Accounts Yet" })
|
|
37511
37516
|
] }) : /* @__PURE__ */ l(Oe, { children: [
|
|
37512
37517
|
/* @__PURE__ */ l("p", { className: "mb-4 text-sm text-slate-700", children: [
|
|
@@ -37514,8 +37519,8 @@ function Nz({ entityId: e }) {
|
|
|
37514
37519
|
g.length,
|
|
37515
37520
|
")"
|
|
37516
37521
|
] }),
|
|
37517
|
-
/* @__PURE__ */ r("div", { className: "space-y-4", children: g.map((
|
|
37518
|
-
const w = s[
|
|
37522
|
+
/* @__PURE__ */ r("div", { className: "space-y-4", children: g.map((C) => {
|
|
37523
|
+
const w = s[C.state] === !0;
|
|
37519
37524
|
return /* @__PURE__ */ l(
|
|
37520
37525
|
"div",
|
|
37521
37526
|
{
|
|
@@ -37526,17 +37531,17 @@ function Nz({ entityId: e }) {
|
|
|
37526
37531
|
{
|
|
37527
37532
|
type: "button",
|
|
37528
37533
|
"aria-expanded": !w,
|
|
37529
|
-
onClick: () => C
|
|
37534
|
+
onClick: () => N(C.state),
|
|
37530
37535
|
className: "flex w-full items-center justify-between gap-3 bg-slate-50/70 px-4 py-3.5 text-left transition hover:bg-slate-100/70",
|
|
37531
37536
|
children: [
|
|
37532
37537
|
/* @__PURE__ */ l("span", { className: "flex items-center gap-2", children: [
|
|
37533
|
-
/* @__PURE__ */ r(
|
|
37534
|
-
/* @__PURE__ */ r("span", { className: "text-base font-bold text-slate-900", children:
|
|
37538
|
+
/* @__PURE__ */ r(vz, { expanded: !w }),
|
|
37539
|
+
/* @__PURE__ */ r("span", { className: "text-base font-bold text-slate-900", children: C.state })
|
|
37535
37540
|
] }),
|
|
37536
37541
|
/* @__PURE__ */ l("span", { className: "text-sm text-slate-500", children: [
|
|
37537
|
-
|
|
37542
|
+
C.accounts.length,
|
|
37538
37543
|
" ",
|
|
37539
|
-
|
|
37544
|
+
C.accounts.length === 1 ? "Account" : "Accounts"
|
|
37540
37545
|
] })
|
|
37541
37546
|
]
|
|
37542
37547
|
}
|
|
@@ -37551,7 +37556,7 @@ function Nz({ entityId: e }) {
|
|
|
37551
37556
|
/* @__PURE__ */ r("th", { className: "px-5 py-3", children: "Status" }),
|
|
37552
37557
|
/* @__PURE__ */ r("th", { className: "px-5 py-3", children: "Action" })
|
|
37553
37558
|
] }) }),
|
|
37554
|
-
/* @__PURE__ */ r("tbody", { children:
|
|
37559
|
+
/* @__PURE__ */ r("tbody", { children: C.accounts.map((v) => {
|
|
37555
37560
|
var I, S;
|
|
37556
37561
|
return /* @__PURE__ */ l(
|
|
37557
37562
|
"tr",
|
|
@@ -37563,43 +37568,43 @@ function Nz({ entityId: e }) {
|
|
|
37563
37568
|
/* @__PURE__ */ r("td", { className: "px-5 py-4 text-slate-700", children: v.stateAccountId }),
|
|
37564
37569
|
/* @__PURE__ */ r("td", { className: "px-5 py-4 text-slate-700", children: v.taxYear ?? K4 }),
|
|
37565
37570
|
/* @__PURE__ */ r("td", { className: "px-5 py-4 text-slate-700", children: /* @__PURE__ */ l("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
37566
|
-
|
|
37571
|
+
xz(v.frequency),
|
|
37567
37572
|
v.frequencyValid ? null : /* @__PURE__ */ r(
|
|
37568
37573
|
"span",
|
|
37569
37574
|
{
|
|
37570
37575
|
title: v.frequencyValidationMessage ?? "Please confirm the deposit frequency for this state tax account.",
|
|
37571
|
-
children: /* @__PURE__ */ r(
|
|
37576
|
+
children: /* @__PURE__ */ r(Sz, {})
|
|
37572
37577
|
}
|
|
37573
37578
|
)
|
|
37574
37579
|
] }) }),
|
|
37575
|
-
/* @__PURE__ */ r("td", { className: "px-5 py-4", children: /* @__PURE__ */ r(Kh, { active:
|
|
37580
|
+
/* @__PURE__ */ r("td", { className: "px-5 py-4", children: /* @__PURE__ */ r(Kh, { active: bz(v), variant: "outline" }) }),
|
|
37576
37581
|
/* @__PURE__ */ r("td", { className: "px-5 py-4", children: /* @__PURE__ */ l("div", { className: "flex items-center justify-end gap-2", children: [
|
|
37577
37582
|
/* @__PURE__ */ r(
|
|
37578
37583
|
"span",
|
|
37579
37584
|
{
|
|
37580
37585
|
title: ((I = v.notes) == null ? void 0 : I.trim()) || "No notes added",
|
|
37581
37586
|
className: `rounded-md p-1 ${(S = v.notes) != null && S.trim() ? "text-slate-400" : "text-slate-300"}`,
|
|
37582
|
-
children: /* @__PURE__ */ r(
|
|
37587
|
+
children: /* @__PURE__ */ r(Az, {})
|
|
37583
37588
|
}
|
|
37584
37589
|
),
|
|
37585
37590
|
/* @__PURE__ */ r(
|
|
37586
37591
|
"button",
|
|
37587
37592
|
{
|
|
37588
37593
|
type: "button",
|
|
37589
|
-
"aria-label": `View ${
|
|
37594
|
+
"aria-label": `View ${C.state} tax account`,
|
|
37590
37595
|
onClick: () => c({ mode: "view", account: v }),
|
|
37591
37596
|
className: "rounded-md p-1 text-slate-400 transition hover:bg-slate-100 hover:text-slate-600",
|
|
37592
|
-
children: /* @__PURE__ */ r(
|
|
37597
|
+
children: /* @__PURE__ */ r(Iz, {})
|
|
37593
37598
|
}
|
|
37594
37599
|
),
|
|
37595
37600
|
/* @__PURE__ */ r(
|
|
37596
37601
|
"button",
|
|
37597
37602
|
{
|
|
37598
37603
|
type: "button",
|
|
37599
|
-
"aria-label": `Edit ${
|
|
37604
|
+
"aria-label": `Edit ${C.state} tax account`,
|
|
37600
37605
|
onClick: () => c({ mode: "edit", account: v }),
|
|
37601
37606
|
className: "rounded-md p-1 text-slate-400 transition hover:bg-slate-100 hover:text-slate-600",
|
|
37602
|
-
children: /* @__PURE__ */ r(
|
|
37607
|
+
children: /* @__PURE__ */ r(wz, {})
|
|
37603
37608
|
}
|
|
37604
37609
|
)
|
|
37605
37610
|
] }) })
|
|
@@ -37611,7 +37616,7 @@ function Nz({ entityId: e }) {
|
|
|
37611
37616
|
] }) })
|
|
37612
37617
|
]
|
|
37613
37618
|
},
|
|
37614
|
-
|
|
37619
|
+
C.state
|
|
37615
37620
|
);
|
|
37616
37621
|
}) }),
|
|
37617
37622
|
y > a ? /* @__PURE__ */ r(
|
|
@@ -37627,7 +37632,7 @@ function Nz({ entityId: e }) {
|
|
|
37627
37632
|
) : null
|
|
37628
37633
|
] }),
|
|
37629
37634
|
/* @__PURE__ */ r(
|
|
37630
|
-
|
|
37635
|
+
hz,
|
|
37631
37636
|
{
|
|
37632
37637
|
open: d !== null,
|
|
37633
37638
|
entityId: e,
|
|
@@ -37638,7 +37643,7 @@ function Nz({ entityId: e }) {
|
|
|
37638
37643
|
)
|
|
37639
37644
|
] });
|
|
37640
37645
|
}
|
|
37641
|
-
function
|
|
37646
|
+
function vz({ expanded: e }) {
|
|
37642
37647
|
return /* @__PURE__ */ r(
|
|
37643
37648
|
"svg",
|
|
37644
37649
|
{
|
|
@@ -37651,7 +37656,7 @@ function Cz({ expanded: e }) {
|
|
|
37651
37656
|
}
|
|
37652
37657
|
);
|
|
37653
37658
|
}
|
|
37654
|
-
function
|
|
37659
|
+
function Sz() {
|
|
37655
37660
|
return /* @__PURE__ */ r("svg", { className: "h-4 w-4 text-amber-500", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ r(
|
|
37656
37661
|
"path",
|
|
37657
37662
|
{
|
|
@@ -37661,7 +37666,7 @@ function vz() {
|
|
|
37661
37666
|
}
|
|
37662
37667
|
) });
|
|
37663
37668
|
}
|
|
37664
|
-
function
|
|
37669
|
+
function wz() {
|
|
37665
37670
|
return /* @__PURE__ */ r("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", children: /* @__PURE__ */ r(
|
|
37666
37671
|
"path",
|
|
37667
37672
|
{
|
|
@@ -37671,7 +37676,7 @@ function Sz() {
|
|
|
37671
37676
|
}
|
|
37672
37677
|
) });
|
|
37673
37678
|
}
|
|
37674
|
-
function
|
|
37679
|
+
function Iz() {
|
|
37675
37680
|
return /* @__PURE__ */ l("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", children: [
|
|
37676
37681
|
/* @__PURE__ */ r(
|
|
37677
37682
|
"path",
|
|
@@ -37684,7 +37689,7 @@ function wz() {
|
|
|
37684
37689
|
/* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
37685
37690
|
] });
|
|
37686
37691
|
}
|
|
37687
|
-
function
|
|
37692
|
+
function Az() {
|
|
37688
37693
|
return /* @__PURE__ */ r("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", children: /* @__PURE__ */ r(
|
|
37689
37694
|
"path",
|
|
37690
37695
|
{
|
|
@@ -37694,56 +37699,56 @@ function Iz() {
|
|
|
37694
37699
|
}
|
|
37695
37700
|
) });
|
|
37696
37701
|
}
|
|
37697
|
-
const
|
|
37702
|
+
const Ez = [
|
|
37698
37703
|
{
|
|
37699
37704
|
id: "bank-accounts",
|
|
37700
37705
|
title: "Bank Accounts",
|
|
37701
37706
|
subtitle: "Connected bank accounts",
|
|
37702
|
-
icon:
|
|
37707
|
+
icon: Tz
|
|
37703
37708
|
},
|
|
37704
37709
|
{
|
|
37705
37710
|
id: "tax-accounts",
|
|
37706
37711
|
title: "Tax Accounts",
|
|
37707
37712
|
subtitle: "IRS & state tax accounts",
|
|
37708
|
-
icon:
|
|
37713
|
+
icon: Pz
|
|
37709
37714
|
},
|
|
37710
37715
|
{
|
|
37711
37716
|
id: "entity-details",
|
|
37712
37717
|
title: "Entity Details",
|
|
37713
37718
|
subtitle: "Your account details",
|
|
37714
|
-
icon:
|
|
37719
|
+
icon: Lz
|
|
37715
37720
|
}
|
|
37716
37721
|
];
|
|
37717
|
-
function
|
|
37722
|
+
function Tz({ className: e, ...t }) {
|
|
37718
37723
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", ...t, children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z" }) });
|
|
37719
37724
|
}
|
|
37720
|
-
function
|
|
37725
|
+
function Pz({ className: e, ...t }) {
|
|
37721
37726
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", ...t, children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 21h18M12 3l9 4.5v1.5H3V7.5L12 3z" }) });
|
|
37722
37727
|
}
|
|
37723
|
-
function
|
|
37728
|
+
function Lz({ className: e, ...t }) {
|
|
37724
37729
|
return /* @__PURE__ */ r("svg", { className: e, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "1.75", ...t, children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z" }) });
|
|
37725
37730
|
}
|
|
37726
37731
|
const gg = "rounded-2xl border border-slate-200 bg-white shadow-sm";
|
|
37727
|
-
function
|
|
37732
|
+
function Dz(e) {
|
|
37728
37733
|
return e === "bank-accounts" || e === "tax-accounts" || e === "entity-details";
|
|
37729
37734
|
}
|
|
37730
37735
|
function df() {
|
|
37731
37736
|
const { selectedEntity: e } = gn(), n = dt().state, [a, i] = _(
|
|
37732
|
-
|
|
37737
|
+
Dz(n == null ? void 0 : n.section) ? n.section : "bank-accounts"
|
|
37733
37738
|
);
|
|
37734
37739
|
return /* @__PURE__ */ l("div", { className: "grid items-start gap-5 lg:grid-cols-[300px_minmax(0,1fr)]", children: [
|
|
37735
37740
|
/* @__PURE__ */ r("div", { className: `${gg} p-3`, children: /* @__PURE__ */ r(
|
|
37736
|
-
|
|
37741
|
+
oz,
|
|
37737
37742
|
{
|
|
37738
|
-
items:
|
|
37743
|
+
items: Ez,
|
|
37739
37744
|
activeSection: a,
|
|
37740
37745
|
onSectionChange: i
|
|
37741
37746
|
}
|
|
37742
37747
|
) }),
|
|
37743
|
-
/* @__PURE__ */ r("div", { className: `${gg} p-6 lg:p-8`, children: a === "bank-accounts" ? /* @__PURE__ */ r(
|
|
37748
|
+
/* @__PURE__ */ r("div", { className: `${gg} p-6 lg:p-8`, children: a === "bank-accounts" ? /* @__PURE__ */ r(rz, { entityId: (e == null ? void 0 : e.entityId) ?? null }) : a === "tax-accounts" ? /* @__PURE__ */ r(Cz, { entityId: (e == null ? void 0 : e.entityId) ?? null }) : /* @__PURE__ */ r(az, { entity: e }) })
|
|
37744
37749
|
] });
|
|
37745
37750
|
}
|
|
37746
|
-
function
|
|
37751
|
+
function Fz({ paymentsMode: e = "all" }) {
|
|
37747
37752
|
return /* @__PURE__ */ l(ph, { children: [
|
|
37748
37753
|
/* @__PURE__ */ r(Le, { index: !0, element: /* @__PURE__ */ r(wh, {}) }),
|
|
37749
37754
|
/* @__PURE__ */ r(Le, { path: "create-entity", element: /* @__PURE__ */ r(Ah, {}) }),
|
|
@@ -37764,13 +37769,13 @@ function Dz({ paymentsMode: e = "all" }) {
|
|
|
37764
37769
|
/* @__PURE__ */ r(Le, { path: "payments/federal/authorization", element: /* @__PURE__ */ r(Q5, {}) }),
|
|
37765
37770
|
/* @__PURE__ */ r(Le, { path: "payments/federal/individual-enrollment", element: /* @__PURE__ */ r(nx, {}) }),
|
|
37766
37771
|
/* @__PURE__ */ r(Le, { path: "payments/federal/review", element: /* @__PURE__ */ r(RT, {}) }),
|
|
37767
|
-
/* @__PURE__ */ r(Le, { path: "tax-forms", element: /* @__PURE__ */ r(
|
|
37772
|
+
/* @__PURE__ */ r(Le, { path: "tax-forms", element: /* @__PURE__ */ r(WO, {}) }),
|
|
37768
37773
|
/* @__PURE__ */ r(Le, { path: "settings", element: /* @__PURE__ */ r(df, {}) })
|
|
37769
37774
|
] }),
|
|
37770
37775
|
/* @__PURE__ */ r(Le, { path: "*", element: /* @__PURE__ */ r(Rt, { to: "/", replace: !0 }) })
|
|
37771
37776
|
] });
|
|
37772
37777
|
}
|
|
37773
|
-
const sh = "tax-remittance:payment-complete",
|
|
37778
|
+
const sh = "tax-remittance:payment-complete", $z = Vd(function(t, n) {
|
|
37774
37779
|
const a = Te(null), i = Te(null);
|
|
37775
37780
|
return lh(n, () => ({
|
|
37776
37781
|
navigate: (s) => {
|
|
@@ -37791,10 +37796,10 @@ const sh = "tax-remittance:payment-complete", zz = Vd(function(t, n) {
|
|
|
37791
37796
|
navigateFnRef: a,
|
|
37792
37797
|
selectEntityFnRef: i,
|
|
37793
37798
|
onPaymentRequired: t.onPaymentRequired,
|
|
37794
|
-
children: /* @__PURE__ */ r(
|
|
37799
|
+
children: /* @__PURE__ */ r(Fz, { paymentsMode: "all" })
|
|
37795
37800
|
}
|
|
37796
37801
|
);
|
|
37797
|
-
}),
|
|
37802
|
+
}), Yz = Vd(
|
|
37798
37803
|
function(t, n) {
|
|
37799
37804
|
const a = Te(null), i = Te(null);
|
|
37800
37805
|
return lh(n, () => ({
|
|
@@ -37828,7 +37833,7 @@ const sh = "tax-remittance:payment-complete", zz = Vd(function(t, n) {
|
|
|
37828
37833
|
/* @__PURE__ */ r(Le, { path: "*", element: /* @__PURE__ */ r(Rt, { to: "/", replace: !0 }) })
|
|
37829
37834
|
] }) });
|
|
37830
37835
|
}
|
|
37831
|
-
),
|
|
37836
|
+
), Bz = Vd(
|
|
37832
37837
|
function(t, n) {
|
|
37833
37838
|
const a = Te(null), i = Te(null);
|
|
37834
37839
|
return lh(n, () => ({
|
|
@@ -37868,15 +37873,15 @@ export {
|
|
|
37868
37873
|
ac as EMAIL_INVALID_MESSAGE,
|
|
37869
37874
|
m0 as EMAIL_MAX_LENGTH,
|
|
37870
37875
|
rc as EMAIL_PATTERN,
|
|
37871
|
-
|
|
37876
|
+
Yz as FederalPaymentWidget,
|
|
37872
37877
|
Jb as MASK_CHAR,
|
|
37873
|
-
|
|
37878
|
+
zz as NAME_MAX_LENGTH,
|
|
37874
37879
|
Eo as PHONE_COUNTRY_CODE,
|
|
37875
37880
|
je as PHONE_NATIONAL_DIGIT_LENGTH,
|
|
37876
|
-
|
|
37881
|
+
Bz as StatePaymentWidget,
|
|
37877
37882
|
_r as TAXPAYER_ID_DIGIT_LENGTH,
|
|
37878
37883
|
Ao as TAXPAYER_ID_MAX_INPUT_LENGTH,
|
|
37879
|
-
|
|
37884
|
+
$z as TaxRemittanceEmbedded,
|
|
37880
37885
|
E as digitsOnly,
|
|
37881
37886
|
Mh as formatEin,
|
|
37882
37887
|
ms as formatIdNumber,
|