@star-insure/sdk 6.4.0 → 6.5.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.
Files changed (172) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/sdk.es101.js +1 -1
  3. package/dist/sdk.es102.js +1 -1
  4. package/dist/sdk.es103.js +1 -1
  5. package/dist/sdk.es104.js +2 -2
  6. package/dist/sdk.es105.js +3 -3
  7. package/dist/sdk.es106.js +3 -3
  8. package/dist/sdk.es107.js +2 -2
  9. package/dist/sdk.es108.js +2 -2
  10. package/dist/sdk.es109.js +2 -2
  11. package/dist/sdk.es110.js +3 -3
  12. package/dist/sdk.es111.js +3 -3
  13. package/dist/sdk.es112.js +5 -5
  14. package/dist/sdk.es113.js +5 -5
  15. package/dist/sdk.es114.js +3 -3
  16. package/dist/sdk.es115.js +3 -3
  17. package/dist/sdk.es116.js +2 -2
  18. package/dist/sdk.es117.js +3 -3
  19. package/dist/sdk.es118.js +3 -3
  20. package/dist/sdk.es119.js +3 -3
  21. package/dist/sdk.es120.js +2 -2
  22. package/dist/sdk.es121.js +2 -2
  23. package/dist/sdk.es122.js +2 -2
  24. package/dist/sdk.es123.js +3 -3
  25. package/dist/sdk.es124.js +3 -3
  26. package/dist/sdk.es125.js +3 -3
  27. package/dist/sdk.es126.js +3 -3
  28. package/dist/sdk.es127.js +3 -3
  29. package/dist/sdk.es128.js +3 -3
  30. package/dist/sdk.es129.js +2 -2
  31. package/dist/sdk.es130.js +3 -3
  32. package/dist/sdk.es131.js +3 -3
  33. package/dist/sdk.es132.js +2 -2
  34. package/dist/sdk.es133.js +2 -2
  35. package/dist/sdk.es139.js +5 -7
  36. package/dist/sdk.es139.js.map +1 -1
  37. package/dist/sdk.es140.js +7 -10
  38. package/dist/sdk.es140.js.map +1 -1
  39. package/dist/sdk.es141.js +10 -13
  40. package/dist/sdk.es141.js.map +1 -1
  41. package/dist/sdk.es142.js +12 -12
  42. package/dist/sdk.es142.js.map +1 -1
  43. package/dist/sdk.es143.js +13 -5
  44. package/dist/sdk.es143.js.map +1 -1
  45. package/dist/sdk.es144.js +6 -25
  46. package/dist/sdk.es144.js.map +1 -1
  47. package/dist/sdk.es145.js +5 -99
  48. package/dist/sdk.es145.js.map +1 -1
  49. package/dist/sdk.es146.js +11 -47
  50. package/dist/sdk.es146.js.map +1 -1
  51. package/dist/sdk.es147.js +7 -9
  52. package/dist/sdk.es147.js.map +1 -1
  53. package/dist/sdk.es148.js +6 -9
  54. package/dist/sdk.es148.js.map +1 -1
  55. package/dist/sdk.es149.js +25 -14
  56. package/dist/sdk.es149.js.map +1 -1
  57. package/dist/sdk.es150.js +99 -10
  58. package/dist/sdk.es150.js.map +1 -1
  59. package/dist/sdk.es151.js +47 -6
  60. package/dist/sdk.es151.js.map +1 -1
  61. package/dist/sdk.es152.js +9 -5
  62. package/dist/sdk.es152.js.map +1 -1
  63. package/dist/sdk.es153.js +9 -10
  64. package/dist/sdk.es153.js.map +1 -1
  65. package/dist/sdk.es154.js +13 -7
  66. package/dist/sdk.es154.js.map +1 -1
  67. package/dist/sdk.es155.js +10 -6
  68. package/dist/sdk.es155.js.map +1 -1
  69. package/dist/sdk.es160.js +1 -1
  70. package/dist/sdk.es36.js +5 -5
  71. package/dist/sdk.es37.js +11 -11
  72. package/dist/sdk.es38.js +14 -14
  73. package/dist/sdk.es39.js +1 -1
  74. package/dist/sdk.es40.js +3 -3
  75. package/dist/sdk.es42.js +1 -1
  76. package/dist/sdk.es43.js +7 -21
  77. package/dist/sdk.es43.js.map +1 -1
  78. package/dist/sdk.es44.js +2 -80
  79. package/dist/sdk.es44.js.map +1 -1
  80. package/dist/sdk.es45.js +24 -75
  81. package/dist/sdk.es45.js.map +1 -1
  82. package/dist/sdk.es46.js +597 -227
  83. package/dist/sdk.es46.js.map +1 -1
  84. package/dist/sdk.es47.js +21 -25
  85. package/dist/sdk.es47.js.map +1 -1
  86. package/dist/sdk.es48.js +79 -7
  87. package/dist/sdk.es48.js.map +1 -1
  88. package/dist/sdk.es49.js +77 -2
  89. package/dist/sdk.es49.js.map +1 -1
  90. package/dist/sdk.es50.js +231 -25
  91. package/dist/sdk.es50.js.map +1 -1
  92. package/dist/sdk.es51.js +25 -601
  93. package/dist/sdk.es51.js.map +1 -1
  94. package/dist/sdk.es52.js +1 -1
  95. package/dist/sdk.es53.js +9 -2
  96. package/dist/sdk.es53.js.map +1 -1
  97. package/dist/sdk.es54.js +7 -2
  98. package/dist/sdk.es54.js.map +1 -1
  99. package/dist/sdk.es55.js +7 -8
  100. package/dist/sdk.es55.js.map +1 -1
  101. package/dist/sdk.es56.js +3 -5
  102. package/dist/sdk.es56.js.map +1 -1
  103. package/dist/sdk.es57.js +15 -7
  104. package/dist/sdk.es57.js.map +1 -1
  105. package/dist/sdk.es58.js +8 -4
  106. package/dist/sdk.es58.js.map +1 -1
  107. package/dist/sdk.es59.js +9 -15
  108. package/dist/sdk.es59.js.map +1 -1
  109. package/dist/sdk.es60.js +8 -8
  110. package/dist/sdk.es60.js.map +1 -1
  111. package/dist/sdk.es61.js +638 -9
  112. package/dist/sdk.es61.js.map +1 -1
  113. package/dist/sdk.es62.js +74 -9
  114. package/dist/sdk.es62.js.map +1 -1
  115. package/dist/sdk.es63.js +4 -638
  116. package/dist/sdk.es63.js.map +1 -1
  117. package/dist/sdk.es64.js +20 -74
  118. package/dist/sdk.es64.js.map +1 -1
  119. package/dist/sdk.es65.js +4 -4
  120. package/dist/sdk.es65.js.map +1 -1
  121. package/dist/sdk.es66.js +18 -20
  122. package/dist/sdk.es66.js.map +1 -1
  123. package/dist/sdk.es67.js +5 -4
  124. package/dist/sdk.es67.js.map +1 -1
  125. package/dist/sdk.es68.js +9 -18
  126. package/dist/sdk.es68.js.map +1 -1
  127. package/dist/sdk.es69.js +48 -5
  128. package/dist/sdk.es69.js.map +1 -1
  129. package/dist/sdk.es70.js +7 -8
  130. package/dist/sdk.es70.js.map +1 -1
  131. package/dist/sdk.es71.js +54 -46
  132. package/dist/sdk.es71.js.map +1 -1
  133. package/dist/sdk.es72.js +65 -8
  134. package/dist/sdk.es72.js.map +1 -1
  135. package/dist/sdk.es73.js +9 -57
  136. package/dist/sdk.es73.js.map +1 -1
  137. package/dist/sdk.es74.js +4 -65
  138. package/dist/sdk.es74.js.map +1 -1
  139. package/dist/sdk.es75.js +2 -9
  140. package/dist/sdk.es75.js.map +1 -1
  141. package/dist/sdk.es76.js +2 -4
  142. package/dist/sdk.es76.js.map +1 -1
  143. package/dist/sdk.es79.js +3 -53
  144. package/dist/sdk.es79.js.map +1 -1
  145. package/dist/sdk.es80.js +8 -10
  146. package/dist/sdk.es80.js.map +1 -1
  147. package/dist/sdk.es81.js +6 -20
  148. package/dist/sdk.es81.js.map +1 -1
  149. package/dist/sdk.es82.js +3675 -4
  150. package/dist/sdk.es82.js.map +1 -1
  151. package/dist/sdk.es83.js +5 -7
  152. package/dist/sdk.es83.js.map +1 -1
  153. package/dist/sdk.es84.js +2 -7
  154. package/dist/sdk.es84.js.map +1 -1
  155. package/dist/sdk.es85.js +52 -3673
  156. package/dist/sdk.es85.js.map +1 -1
  157. package/dist/sdk.es86.js +10 -6
  158. package/dist/sdk.es86.js.map +1 -1
  159. package/dist/sdk.es87.js +21 -2
  160. package/dist/sdk.es87.js.map +1 -1
  161. package/dist/sdk.es88.js +1 -1
  162. package/dist/sdk.es89.js +2 -2
  163. package/dist/sdk.es90.js +4 -4
  164. package/dist/sdk.es91.js +3 -3
  165. package/dist/sdk.es92.js +4 -4
  166. package/dist/sdk.es93.js +5 -5
  167. package/dist/sdk.es96.js +1 -1
  168. package/dist/sdk.es98.js +1 -1
  169. package/dist/sdk.es99.js +3 -3
  170. package/package.json +1 -1
  171. package/src/types/models/quotes/PromoCode.ts +1 -0
  172. package/src/types/models/quotes/QuoteRequestOptions.ts +2 -0
package/dist/sdk.es46.js CHANGED
@@ -1,235 +1,605 @@
1
- import { j as s } from "./sdk.es39.js";
2
- import { router as g } from "@inertiajs/react";
3
- import m from "react";
4
- import T from "react-select";
5
- import { HiChevronDown as k } from "./sdk.es47.js";
6
- import D from "./sdk.es81.js";
7
- import E from "./sdk.es42.js";
8
- import y from "./sdk.es17.js";
9
- import "@headlessui/react";
10
- import "./sdk.es9.js";
11
- import i from "./sdk.es37.js";
12
- import F from "./sdk.es75.js";
13
- function H({ filter: e }) {
14
- const [d, u] = m.useState(!1), [c, l] = m.useState([]), [w, p] = m.useState([]), f = c.length > 0;
15
- m.useEffect(() => {
16
- if (typeof window < "u") {
17
- const t = new URLSearchParams(window.location.search), a = [];
18
- for (const [n, o] of t.entries()) {
19
- const r = n.replaceAll(/\[\d+\]/g, "[]");
20
- a.push([r, o]);
21
- }
22
- if (e.type === "date") {
23
- const n = a.find(([r]) => r === `${e.name}[from]`)?.[1], o = a.find(([r]) => r === `${e.name}[to]`)?.[1];
24
- n && o && l([n, o]);
25
- } else if (e.type === "greaterThan") {
26
- const n = a.filter(([o]) => o === `${e.name}-GTE`).map(([o, r]) => r);
27
- n.length > 0 && l(n);
28
- } else if (e.type === "scope") {
29
- const n = a.filter(([o]) => o === `scope${e.name}`).map(([o, r]) => r);
30
- n.length > 0 && l(n);
31
- } else if (e.type === "select") {
32
- const n = a.filter(([o]) => o === `${e.name}[]`).map(([o, r]) => r);
33
- if (n.length > 0) {
34
- l(n);
35
- const o = e.options && e.options.filter(
36
- (r) => n.includes(r.value.toString())
37
- );
38
- o && o.length > 0 && p(o);
39
- }
40
- } else {
41
- const n = a.filter(([o]) => o === `${e.name}[]`).map(([o, r]) => r);
42
- n.length > 0 && l(n);
43
- }
44
- }
45
- }, [e]);
46
- function b(t) {
47
- const { value: a, checked: n } = t.currentTarget;
48
- l(n ? (o) => [...o, a] : c.filter((o) => o !== a));
49
- }
50
- function h(t) {
51
- const { name: a, value: n } = t.currentTarget;
52
- return a.includes("from") ? l([n]) : a.includes("to") ? c.length === 0 ? l([i(F(/* @__PURE__ */ new Date(), 1), "yyyy-MM-dd"), n]) : l([c[0], n]) : l([]);
53
- }
54
- const v = (t) => {
55
- p(t);
56
- const a = t.map((n) => n.value.toString());
57
- a.length > 0 ? l(a) : l([]);
58
- };
59
- function j() {
60
- return null;
61
- }
62
- function x(t) {
63
- const { value: a } = t.currentTarget;
64
- l(a ? [a] : []);
65
- }
66
- function $(t) {
67
- const { value: a } = t.currentTarget;
68
- l(a ? [a] : []);
69
- }
70
- function N(t) {
71
- t.preventDefault();
72
- const a = new URLSearchParams(window.location.search);
73
- if (a.set("page", "1"), e.type === "date") {
74
- const [n, o] = c;
75
- a.set(`${e.name}[from]`, n ?? i(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), a.set(`${e.name}[to]`, o ?? i(/* @__PURE__ */ new Date(), "yyyy-MM-dd"));
76
- } else e.type === "greaterThan" ? (a.delete(`${e.name}-GTE`), c.length > 0 && a.set(`${e.name}-GTE`, c[0])) : e.type === "scope" ? (a.delete(`${e.name}`), c.length > 0 && a.set(`scope${e.name}`, c[0])) : (Array.from({ length: e.options?.length || 50 }).forEach((n, o) => {
77
- a.delete(`${e.name}[${o}]`);
78
- }), c.forEach((n) => {
79
- a.append(`${e.name}[]`, n);
80
- }));
81
- g.get(`${window.location.pathname}?${a.toString()}`);
82
- }
83
- function S() {
84
- const t = new URLSearchParams(window.location.search);
85
- t.set("page", "1"), e.type === "date" ? (t.delete(`${e.name}[from]`), t.delete(`${e.name}[to]`)) : e.type === "greaterThan" ? t.delete(`${e.name}-GTE`) : e.type === "scope" ? t.delete(`scope${e.name}`) : c.forEach((a, n) => {
86
- t.delete(`${e.name}[${n}]`);
87
- }), l([]), p([]), g.get(`${window.location.pathname}?${t.toString()}`);
88
- }
89
- function C(t) {
90
- u(!d);
91
- }
92
- return /* @__PURE__ */ s.jsx(D, { onClose: () => u(!open), active: d, title: /* @__PURE__ */ s.jsxs(
93
- "div",
94
- {
95
- onClick: () => C(),
96
- className: E(
97
- "flex rounded-2xl border hover:cursor-pointer hover:border-accent bg-gray-600 px-2 py-1 items-center justify-between shrink-0 gap-2 text-xs text-white hover:bg-accent transition-colors",
98
- {
99
- "!bg-accent border-accent": f
100
- }
101
- ),
102
- children: [
103
- /* @__PURE__ */ s.jsx("p", { className: "whitespace-nowrap", children: e.label }),
104
- /* @__PURE__ */ s.jsx(k, {})
105
- ]
106
- }
107
- ), children: /* @__PURE__ */ s.jsxs(
108
- "form",
1
+ import { __exports as m } from "./sdk.es76.js";
2
+ import ir from "react";
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.development.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Ee;
13
+ function sr() {
14
+ return Ee ? m : (Ee = 1, process.env.NODE_ENV !== "production" && function() {
15
+ var ye = ir, k = Symbol.for("react.element"), Re = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), K = Symbol.for("react.provider"), N = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), _e = Symbol.for("react.offscreen"), G = Symbol.iterator, me = "@@iterator";
16
+ function Te(e) {
17
+ if (e === null || typeof e != "object")
18
+ return null;
19
+ var r = G && e[G] || e[me];
20
+ return typeof r == "function" ? r : null;
21
+ }
22
+ var h = ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ function f(e) {
24
+ {
25
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
26
+ t[n - 1] = arguments[n];
27
+ Ce("error", e, t);
28
+ }
29
+ }
30
+ function Ce(e, r, t) {
31
+ {
32
+ var n = h.ReactDebugCurrentFrame, o = n.getStackAddendum();
33
+ o !== "" && (r += "%s", t = t.concat([o]));
34
+ var u = t.map(function(i) {
35
+ return String(i);
36
+ });
37
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
38
+ }
39
+ }
40
+ var Oe = !1, Pe = !1, Se = !1, we = !1, je = !1, J;
41
+ J = Symbol.for("react.module.reference");
42
+ function ke(e) {
43
+ return !!(typeof e == "string" || typeof e == "function" || e === T || e === B || je || e === U || e === x || e === D || we || e === _e || Oe || Pe || Se || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === O || e.$$typeof === K || e.$$typeof === N || e.$$typeof === C || // This needs to include all possible module reference object
44
+ // types supported by any Flight configuration anywhere since
45
+ // we don't know which Flight build this will end up being used
46
+ // with.
47
+ e.$$typeof === J || e.getModuleId !== void 0));
48
+ }
49
+ function xe(e, r, t) {
50
+ var n = e.displayName;
51
+ if (n)
52
+ return n;
53
+ var o = r.displayName || r.name || "";
54
+ return o !== "" ? t + "(" + o + ")" : t;
55
+ }
56
+ function q(e) {
57
+ return e.displayName || "Context";
58
+ }
59
+ function p(e) {
60
+ if (e == null)
61
+ return null;
62
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
+ return e.displayName || e.name || null;
64
+ if (typeof e == "string")
65
+ return e;
66
+ switch (e) {
67
+ case T:
68
+ return "Fragment";
69
+ case Re:
70
+ return "Portal";
71
+ case B:
72
+ return "Profiler";
73
+ case U:
74
+ return "StrictMode";
75
+ case x:
76
+ return "Suspense";
77
+ case D:
78
+ return "SuspenseList";
79
+ }
80
+ if (typeof e == "object")
81
+ switch (e.$$typeof) {
82
+ case N:
83
+ var r = e;
84
+ return q(r) + ".Consumer";
85
+ case K:
86
+ var t = e;
87
+ return q(t._context) + ".Provider";
88
+ case C:
89
+ return xe(e, e.render, "ForwardRef");
90
+ case O:
91
+ var n = e.displayName || null;
92
+ return n !== null ? n : p(e.type) || "Memo";
93
+ case F: {
94
+ var o = e, u = o._payload, i = o._init;
95
+ try {
96
+ return p(i(u));
97
+ } catch {
98
+ return null;
99
+ }
100
+ }
101
+ }
102
+ return null;
103
+ }
104
+ var g = Object.assign, R = 0, z, X, H, Z, Q, ee, re;
105
+ function te() {
106
+ }
107
+ te.__reactDisabledLog = !0;
108
+ function De() {
109
+ {
110
+ if (R === 0) {
111
+ z = console.log, X = console.info, H = console.warn, Z = console.error, Q = console.group, ee = console.groupCollapsed, re = console.groupEnd;
112
+ var e = {
113
+ configurable: !0,
114
+ enumerable: !0,
115
+ value: te,
116
+ writable: !0
117
+ };
118
+ Object.defineProperties(console, {
119
+ info: e,
120
+ log: e,
121
+ warn: e,
122
+ error: e,
123
+ group: e,
124
+ groupCollapsed: e,
125
+ groupEnd: e
126
+ });
127
+ }
128
+ R++;
129
+ }
130
+ }
131
+ function Fe() {
132
+ {
133
+ if (R--, R === 0) {
134
+ var e = {
135
+ configurable: !0,
136
+ enumerable: !0,
137
+ writable: !0
138
+ };
139
+ Object.defineProperties(console, {
140
+ log: g({}, e, {
141
+ value: z
142
+ }),
143
+ info: g({}, e, {
144
+ value: X
145
+ }),
146
+ warn: g({}, e, {
147
+ value: H
148
+ }),
149
+ error: g({}, e, {
150
+ value: Z
151
+ }),
152
+ group: g({}, e, {
153
+ value: Q
154
+ }),
155
+ groupCollapsed: g({}, e, {
156
+ value: ee
157
+ }),
158
+ groupEnd: g({}, e, {
159
+ value: re
160
+ })
161
+ });
162
+ }
163
+ R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
+ }
165
+ }
166
+ var A = h.ReactCurrentDispatcher, I;
167
+ function P(e, r, t) {
168
+ {
169
+ if (I === void 0)
170
+ try {
171
+ throw Error();
172
+ } catch (o) {
173
+ var n = o.stack.trim().match(/\n( *(at )?)/);
174
+ I = n && n[1] || "";
175
+ }
176
+ return `
177
+ ` + I + e;
178
+ }
179
+ }
180
+ var W = !1, S;
109
181
  {
110
- className: `mt-2 flex max-h-[350px] min-w-[200px] max-w-[260px] flex-col gap-2 rounded-md border border-gray-300 bg-white shadow-lg ${e.type && e.type === "select" ? "" : "overflow-y-scroll"}`,
111
- onSubmit: N,
112
- children: [
113
- /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col items-start gap-1 p-4", children: [
114
- (!e.type || e.type === "options") && e.options?.map((t, a) => /* @__PURE__ */ s.jsxs("div", { className: "checkbox text-sm ", children: [
115
- /* @__PURE__ */ s.jsx(
116
- "input",
117
- {
118
- type: "checkbox",
119
- name: e.name,
120
- id: t.label,
121
- value: t.value.toString(),
122
- checked: c.includes(t.value.toString()),
123
- onChange: b
124
- }
125
- ),
126
- /* @__PURE__ */ s.jsx("label", { className: "leading-tight", htmlFor: t.label, children: t.label })
127
- ] }, `${t.label}-${a}`)),
128
- e.type === "greaterThan" && e.options && /* @__PURE__ */ s.jsxs("label", { className: "mb-2 w-full", children: [
129
- /* @__PURE__ */ s.jsx("div", { className: "text-sm", children: "Greater than or equal to" }),
130
- /* @__PURE__ */ s.jsxs(
131
- "select",
132
- {
133
- name: e.name,
134
- id: e.label,
135
- value: c[0],
136
- onChange: x,
137
- className: "!p-2 text-sm w-full",
138
- children: [
139
- /* @__PURE__ */ s.jsx("option", { value: "", children: "Select option" }),
140
- e.options?.map((t) => /* @__PURE__ */ s.jsx("option", { value: t.value, children: t.label }, t.value))
141
- ]
142
- }
143
- )
144
- ] }),
145
- e.type === "scope" && e.options && /* @__PURE__ */ s.jsx("label", { className: "mb-2 w-full", children: /* @__PURE__ */ s.jsxs(
146
- "select",
147
- {
148
- name: e.name,
149
- id: e.label,
150
- value: c[0],
151
- onChange: x,
152
- className: "!p-2 text-sm w-full",
153
- children: [
154
- /* @__PURE__ */ s.jsx("option", { value: "", children: "Select option" }),
155
- e.options?.map((t) => /* @__PURE__ */ s.jsx("option", { value: t.value, children: t.label }, t.value))
156
- ]
182
+ var Ae = typeof WeakMap == "function" ? WeakMap : Map;
183
+ S = new Ae();
184
+ }
185
+ function ne(e, r) {
186
+ if (!e || W)
187
+ return "";
188
+ {
189
+ var t = S.get(e);
190
+ if (t !== void 0)
191
+ return t;
192
+ }
193
+ var n;
194
+ W = !0;
195
+ var o = Error.prepareStackTrace;
196
+ Error.prepareStackTrace = void 0;
197
+ var u;
198
+ u = A.current, A.current = null, De();
199
+ try {
200
+ if (r) {
201
+ var i = function() {
202
+ throw Error();
203
+ };
204
+ if (Object.defineProperty(i.prototype, "props", {
205
+ set: function() {
206
+ throw Error();
157
207
  }
158
- ) }),
159
- e.type === "date" && /* @__PURE__ */ s.jsxs("div", { className: "mb-2 flex flex-col gap-4 w-full", children: [
160
- /* @__PURE__ */ s.jsxs("label", { className: "text-xs w-full", children: [
161
- "From",
162
- /* @__PURE__ */ s.jsx(
163
- "input",
164
- {
165
- type: "date",
166
- name: `${e.name}[from]`,
167
- id: `${e.name}[from]`,
168
- onChange: h,
169
- value: c[0] ?? "",
170
- className: "!p-2 text-sm w-full"
171
- }
172
- )
173
- ] }),
174
- /* @__PURE__ */ s.jsxs("label", { className: "text-xs w-full", children: [
175
- "To",
176
- /* @__PURE__ */ s.jsx(
177
- "input",
178
- {
179
- type: "date",
180
- name: `${e.name}[to]`,
181
- id: `${e.name}[to]`,
182
- onChange: h,
183
- value: c[1] ?? "",
184
- className: "!p-2 text-sm w-full"
185
- }
186
- )
187
- ] })
188
- ] }),
189
- e.type === "select" && e.options && /* @__PURE__ */ s.jsx("div", { className: "w-full", children: /* @__PURE__ */ s.jsx(
190
- T,
191
- {
192
- isMulti: !0,
193
- options: e.options,
194
- className: "basic-multi-select text-xs w-52 !transition-none",
195
- classNamePrefix: "select",
196
- onChange: v,
197
- components: {
198
- ClearIndicator: j
199
- // Hide the ClearIndicator (X button) -> exits filter when clicked
200
- },
201
- value: w,
202
- theme: (t) => ({
203
- ...t,
204
- colors: {
205
- ...t.colors,
206
- primary25: "rgb(111, 199, 182)",
207
- primary: "rgb(111, 199, 182)"
208
- }
209
- })
208
+ }), typeof Reflect == "object" && Reflect.construct) {
209
+ try {
210
+ Reflect.construct(i, []);
211
+ } catch (v) {
212
+ n = v;
213
+ }
214
+ Reflect.construct(e, [], i);
215
+ } else {
216
+ try {
217
+ i.call();
218
+ } catch (v) {
219
+ n = v;
220
+ }
221
+ e.call(i.prototype);
222
+ }
223
+ } else {
224
+ try {
225
+ throw Error();
226
+ } catch (v) {
227
+ n = v;
228
+ }
229
+ e();
230
+ }
231
+ } catch (v) {
232
+ if (v && n && typeof v.stack == "string") {
233
+ for (var a = v.stack.split(`
234
+ `), c = n.stack.split(`
235
+ `), s = a.length - 1, l = c.length - 1; s >= 1 && l >= 0 && a[s] !== c[l]; )
236
+ l--;
237
+ for (; s >= 1 && l >= 0; s--, l--)
238
+ if (a[s] !== c[l]) {
239
+ if (s !== 1 || l !== 1)
240
+ do
241
+ if (s--, l--, l < 0 || a[s] !== c[l]) {
242
+ var d = `
243
+ ` + a[s].replace(" at new ", " at ");
244
+ return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && S.set(e, d), d;
245
+ }
246
+ while (s >= 1 && l >= 0);
247
+ break;
248
+ }
249
+ }
250
+ } finally {
251
+ W = !1, A.current = u, Fe(), Error.prepareStackTrace = o;
252
+ }
253
+ var y = e ? e.displayName || e.name : "", b = y ? P(y) : "";
254
+ return typeof e == "function" && S.set(e, b), b;
255
+ }
256
+ function Ie(e, r, t) {
257
+ return ne(e, !1);
258
+ }
259
+ function We(e) {
260
+ var r = e.prototype;
261
+ return !!(r && r.isReactComponent);
262
+ }
263
+ function w(e, r, t) {
264
+ if (e == null)
265
+ return "";
266
+ if (typeof e == "function")
267
+ return ne(e, We(e));
268
+ if (typeof e == "string")
269
+ return P(e);
270
+ switch (e) {
271
+ case x:
272
+ return P("Suspense");
273
+ case D:
274
+ return P("SuspenseList");
275
+ }
276
+ if (typeof e == "object")
277
+ switch (e.$$typeof) {
278
+ case C:
279
+ return Ie(e.render);
280
+ case O:
281
+ return w(e.type, r, t);
282
+ case F: {
283
+ var n = e, o = n._payload, u = n._init;
284
+ try {
285
+ return w(u(o), r, t);
286
+ } catch {
210
287
  }
211
- ) }),
212
- e.type === "text" && /* @__PURE__ */ s.jsx("div", { className: "w-full", children: /* @__PURE__ */ s.jsx(
213
- "input",
214
- {
215
- type: "text",
216
- name: e.name,
217
- placeholder: e.label,
218
- value: c[0] ?? "",
219
- onChange: $,
220
- className: "!p-2 text-sm w-full"
288
+ }
289
+ }
290
+ return "";
291
+ }
292
+ var _ = Object.prototype.hasOwnProperty, ae = {}, ie = h.ReactDebugCurrentFrame;
293
+ function j(e) {
294
+ if (e) {
295
+ var r = e._owner, t = w(e.type, e._source, r ? r.type : null);
296
+ ie.setExtraStackFrame(t);
297
+ } else
298
+ ie.setExtraStackFrame(null);
299
+ }
300
+ function Ye(e, r, t, n, o) {
301
+ {
302
+ var u = Function.call.bind(_);
303
+ for (var i in e)
304
+ if (u(e, i)) {
305
+ var a = void 0;
306
+ try {
307
+ if (typeof e[i] != "function") {
308
+ var c = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
+ throw c.name = "Invariant Violation", c;
310
+ }
311
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
+ } catch (s) {
313
+ a = s;
221
314
  }
222
- ) })
223
- ] }),
224
- /* @__PURE__ */ s.jsxs("div", { className: "bg-gray-100 border-t border-gray-200 flex items-center gap-2 p-4 bottom-0 sticky", children: [
225
- /* @__PURE__ */ s.jsx(y, { type: "button", className: "!min-w-[0px] flex-grow !px-2 text-sm !transition-none", onClick: S, small: !0, children: "Clear" }),
226
- /* @__PURE__ */ s.jsx(y, { type: "submit", status: "primary", className: "!min-w-[0px] flex-grow !px-2 text-sm !transition-none", small: !0, children: "Apply" })
227
- ] })
228
- ]
229
- }
230
- ) });
315
+ a && !(a instanceof Error) && (j(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), j(null)), a instanceof Error && !(a.message in ae) && (ae[a.message] = !0, j(o), f("Failed %s type: %s", t, a.message), j(null));
316
+ }
317
+ }
318
+ }
319
+ var $e = Array.isArray;
320
+ function Y(e) {
321
+ return $e(e);
322
+ }
323
+ function Me(e) {
324
+ {
325
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
+ return t;
327
+ }
328
+ }
329
+ function Ve(e) {
330
+ try {
331
+ return oe(e), !1;
332
+ } catch {
333
+ return !0;
334
+ }
335
+ }
336
+ function oe(e) {
337
+ return "" + e;
338
+ }
339
+ function ue(e) {
340
+ if (Ve(e))
341
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), oe(e);
342
+ }
343
+ var se = h.ReactCurrentOwner, Le = {
344
+ key: !0,
345
+ ref: !0,
346
+ __self: !0,
347
+ __source: !0
348
+ }, le, fe;
349
+ function Ue(e) {
350
+ if (_.call(e, "ref")) {
351
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
352
+ if (r && r.isReactWarning)
353
+ return !1;
354
+ }
355
+ return e.ref !== void 0;
356
+ }
357
+ function Be(e) {
358
+ if (_.call(e, "key")) {
359
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
360
+ if (r && r.isReactWarning)
361
+ return !1;
362
+ }
363
+ return e.key !== void 0;
364
+ }
365
+ function Ke(e, r) {
366
+ typeof e.ref == "string" && se.current;
367
+ }
368
+ function Ne(e, r) {
369
+ {
370
+ var t = function() {
371
+ le || (le = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
372
+ };
373
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
374
+ get: t,
375
+ configurable: !0
376
+ });
377
+ }
378
+ }
379
+ function Ge(e, r) {
380
+ {
381
+ var t = function() {
382
+ fe || (fe = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
383
+ };
384
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
385
+ get: t,
386
+ configurable: !0
387
+ });
388
+ }
389
+ }
390
+ var Je = function(e, r, t, n, o, u, i) {
391
+ var a = {
392
+ // This tag allows us to uniquely identify this as a React Element
393
+ $$typeof: k,
394
+ // Built-in properties that belong on the element
395
+ type: e,
396
+ key: r,
397
+ ref: t,
398
+ props: i,
399
+ // Record the component responsible for creating this element.
400
+ _owner: u
401
+ };
402
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
403
+ configurable: !1,
404
+ enumerable: !1,
405
+ writable: !0,
406
+ value: !1
407
+ }), Object.defineProperty(a, "_self", {
408
+ configurable: !1,
409
+ enumerable: !1,
410
+ writable: !1,
411
+ value: n
412
+ }), Object.defineProperty(a, "_source", {
413
+ configurable: !1,
414
+ enumerable: !1,
415
+ writable: !1,
416
+ value: o
417
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
418
+ };
419
+ function qe(e, r, t, n, o) {
420
+ {
421
+ var u, i = {}, a = null, c = null;
422
+ t !== void 0 && (ue(t), a = "" + t), Be(r) && (ue(r.key), a = "" + r.key), Ue(r) && (c = r.ref, Ke(r, o));
423
+ for (u in r)
424
+ _.call(r, u) && !Le.hasOwnProperty(u) && (i[u] = r[u]);
425
+ if (e && e.defaultProps) {
426
+ var s = e.defaultProps;
427
+ for (u in s)
428
+ i[u] === void 0 && (i[u] = s[u]);
429
+ }
430
+ if (a || c) {
431
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
432
+ a && Ne(i, l), c && Ge(i, l);
433
+ }
434
+ return Je(e, a, c, o, n, se.current, i);
435
+ }
436
+ }
437
+ var $ = h.ReactCurrentOwner, ce = h.ReactDebugCurrentFrame;
438
+ function E(e) {
439
+ if (e) {
440
+ var r = e._owner, t = w(e.type, e._source, r ? r.type : null);
441
+ ce.setExtraStackFrame(t);
442
+ } else
443
+ ce.setExtraStackFrame(null);
444
+ }
445
+ var M;
446
+ M = !1;
447
+ function V(e) {
448
+ return typeof e == "object" && e !== null && e.$$typeof === k;
449
+ }
450
+ function ve() {
451
+ {
452
+ if ($.current) {
453
+ var e = p($.current.type);
454
+ if (e)
455
+ return `
456
+
457
+ Check the render method of \`` + e + "`.";
458
+ }
459
+ return "";
460
+ }
461
+ }
462
+ function ze(e) {
463
+ return "";
464
+ }
465
+ var de = {};
466
+ function Xe(e) {
467
+ {
468
+ var r = ve();
469
+ if (!r) {
470
+ var t = typeof e == "string" ? e : e.displayName || e.name;
471
+ t && (r = `
472
+
473
+ Check the top-level render call using <` + t + ">.");
474
+ }
475
+ return r;
476
+ }
477
+ }
478
+ function pe(e, r) {
479
+ {
480
+ if (!e._store || e._store.validated || e.key != null)
481
+ return;
482
+ e._store.validated = !0;
483
+ var t = Xe(r);
484
+ if (de[t])
485
+ return;
486
+ de[t] = !0;
487
+ var n = "";
488
+ e && e._owner && e._owner !== $.current && (n = " It was passed a child from " + p(e._owner.type) + "."), E(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), E(null);
489
+ }
490
+ }
491
+ function ge(e, r) {
492
+ {
493
+ if (typeof e != "object")
494
+ return;
495
+ if (Y(e))
496
+ for (var t = 0; t < e.length; t++) {
497
+ var n = e[t];
498
+ V(n) && pe(n, r);
499
+ }
500
+ else if (V(e))
501
+ e._store && (e._store.validated = !0);
502
+ else if (e) {
503
+ var o = Te(e);
504
+ if (typeof o == "function" && o !== e.entries)
505
+ for (var u = o.call(e), i; !(i = u.next()).done; )
506
+ V(i.value) && pe(i.value, r);
507
+ }
508
+ }
509
+ }
510
+ function He(e) {
511
+ {
512
+ var r = e.type;
513
+ if (r == null || typeof r == "string")
514
+ return;
515
+ var t;
516
+ if (typeof r == "function")
517
+ t = r.propTypes;
518
+ else if (typeof r == "object" && (r.$$typeof === C || // Note: Memo only checks outer props here.
519
+ // Inner props are checked in the reconciler.
520
+ r.$$typeof === O))
521
+ t = r.propTypes;
522
+ else
523
+ return;
524
+ if (t) {
525
+ var n = p(r);
526
+ Ye(t, e.props, "prop", n, e);
527
+ } else if (r.PropTypes !== void 0 && !M) {
528
+ M = !0;
529
+ var o = p(r);
530
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
531
+ }
532
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
533
+ }
534
+ }
535
+ function Ze(e) {
536
+ {
537
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
538
+ var n = r[t];
539
+ if (n !== "children" && n !== "key") {
540
+ E(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), E(null);
541
+ break;
542
+ }
543
+ }
544
+ e.ref !== null && (E(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), E(null));
545
+ }
546
+ }
547
+ var be = {};
548
+ function he(e, r, t, n, o, u) {
549
+ {
550
+ var i = ke(e);
551
+ if (!i) {
552
+ var a = "";
553
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
554
+ var c = ze();
555
+ c ? a += c : a += ve();
556
+ var s;
557
+ e === null ? s = "null" : Y(e) ? s = "array" : e !== void 0 && e.$$typeof === k ? (s = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
558
+ }
559
+ var l = qe(e, r, t, o, u);
560
+ if (l == null)
561
+ return l;
562
+ if (i) {
563
+ var d = r.children;
564
+ if (d !== void 0)
565
+ if (n)
566
+ if (Y(d)) {
567
+ for (var y = 0; y < d.length; y++)
568
+ ge(d[y], e);
569
+ Object.freeze && Object.freeze(d);
570
+ } else
571
+ f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
572
+ else
573
+ ge(d, e);
574
+ }
575
+ if (_.call(r, "key")) {
576
+ var b = p(e), v = Object.keys(r).filter(function(ar) {
577
+ return ar !== "key";
578
+ }), L = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
579
+ if (!be[b + L]) {
580
+ var nr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
581
+ f(`A props object containing a "key" prop is being spread into JSX:
582
+ let props = %s;
583
+ <%s {...props} />
584
+ React keys must be passed directly to JSX without using spread:
585
+ let props = %s;
586
+ <%s key={someKey} {...props} />`, L, b, nr, b), be[b + L] = !0;
587
+ }
588
+ }
589
+ return e === T ? Ze(l) : He(l), l;
590
+ }
591
+ }
592
+ function Qe(e, r, t) {
593
+ return he(e, r, t, !0);
594
+ }
595
+ function er(e, r, t) {
596
+ return he(e, r, t, !1);
597
+ }
598
+ var rr = er, tr = Qe;
599
+ m.Fragment = T, m.jsx = rr, m.jsxs = tr;
600
+ }(), m);
231
601
  }
232
602
  export {
233
- H as FilterItem
603
+ sr as __require
234
604
  };
235
605
  //# sourceMappingURL=sdk.es46.js.map