@shriyanss/js-recon 1.0.0 → 1.1.0-beta.1

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 (198) hide show
  1. package/.api_gateway_config.json +1 -0
  2. package/.github/workflows/npm-publish.yml +35 -0
  3. package/.github/workflows/prettier.yaml +44 -0
  4. package/.prettierignore +2 -0
  5. package/.prettierrc +4 -0
  6. package/.resp_cache.json +1 -0
  7. package/.vscode/launch.json +27 -0
  8. package/CHANGELOG.md +40 -0
  9. package/README.md +35 -140
  10. package/build/api_gateway/checkFeasibility.js +32 -0
  11. package/build/api_gateway/checkFeasibility.js.map +1 -0
  12. package/build/api_gateway/checkFireWallBlocking.js +24 -0
  13. package/build/api_gateway/checkFireWallBlocking.js.map +1 -0
  14. package/build/api_gateway/genReq.js +202 -0
  15. package/build/api_gateway/genReq.js.map +1 -0
  16. package/build/api_gateway/index.js +277 -0
  17. package/build/api_gateway/index.js.map +1 -0
  18. package/build/endpoints/gen_report/gen_json.js +22 -0
  19. package/build/endpoints/gen_report/gen_json.js.map +1 -0
  20. package/build/endpoints/gen_report/gen_markdown.js +66 -0
  21. package/build/endpoints/gen_report/gen_markdown.js.map +1 -0
  22. package/build/endpoints/gen_report/utility/iterate_n_store.js +46 -0
  23. package/build/endpoints/gen_report/utility/iterate_n_store.js.map +1 -0
  24. package/build/endpoints/index.js +89 -0
  25. package/build/endpoints/index.js.map +1 -0
  26. package/build/endpoints/next_js/client_jsFilesHref.js +91 -0
  27. package/build/endpoints/next_js/client_jsFilesHref.js.map +1 -0
  28. package/build/endpoints/next_js/client_jsonParse.js +75 -0
  29. package/build/endpoints/next_js/client_jsonParse.js.map +1 -0
  30. package/build/endpoints/next_js/client_subsequentRequests.js +199 -0
  31. package/build/endpoints/next_js/client_subsequentRequests.js.map +1 -0
  32. package/build/endpoints/next_js/getWebpacks.js +45 -0
  33. package/build/endpoints/next_js/getWebpacks.js.map +1 -0
  34. package/build/globalConfig.js +11 -0
  35. package/build/globalConfig.js.map +1 -0
  36. package/build/index.js +166 -0
  37. package/build/index.js.map +1 -0
  38. package/build/lazyLoad/downloadFilesUtil.js +128 -0
  39. package/build/lazyLoad/downloadFilesUtil.js.map +1 -0
  40. package/build/lazyLoad/downloadLoadedJsUtil.js +51 -0
  41. package/build/lazyLoad/downloadLoadedJsUtil.js.map +1 -0
  42. package/build/lazyLoad/globals.js +25 -0
  43. package/build/lazyLoad/globals.js.map +1 -0
  44. package/build/lazyLoad/index.js +171 -0
  45. package/build/lazyLoad/index.js.map +1 -0
  46. package/build/lazyLoad/next_js/next_GetJSScript.js +94 -0
  47. package/build/lazyLoad/next_js/next_GetJSScript.js.map +1 -0
  48. package/build/lazyLoad/next_js/next_GetLazyResources.js +202 -0
  49. package/build/lazyLoad/next_js/next_GetLazyResources.js.map +1 -0
  50. package/build/lazyLoad/next_js/next_SubsequentRequests.js +120 -0
  51. package/build/lazyLoad/next_js/next_SubsequentRequests.js.map +1 -0
  52. package/build/lazyLoad/nuxt_js/nuxt_astParse.js +188 -0
  53. package/build/lazyLoad/nuxt_js/nuxt_astParse.js.map +1 -0
  54. package/build/lazyLoad/nuxt_js/nuxt_getFromPageSource.js +75 -0
  55. package/build/lazyLoad/nuxt_js/nuxt_getFromPageSource.js.map +1 -0
  56. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +94 -0
  57. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js.map +1 -0
  58. package/build/lazyLoad/svelte/svelte_getFromPageSource.js +68 -0
  59. package/build/lazyLoad/svelte/svelte_getFromPageSource.js.map +1 -0
  60. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js +95 -0
  61. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js.map +1 -0
  62. package/build/map/index.js +58 -0
  63. package/build/map/index.js.map +1 -0
  64. package/build/map/next_js/getFetchInstances.js +105 -0
  65. package/build/map/next_js/getFetchInstances.js.map +1 -0
  66. package/build/map/next_js/getWebpackConnections.js +224 -0
  67. package/build/map/next_js/getWebpackConnections.js.map +1 -0
  68. package/build/map/next_js/interactive.js +32 -0
  69. package/build/map/next_js/interactive.js.map +1 -0
  70. package/build/map/next_js/interactive_helpers/commandHandler.js +190 -0
  71. package/build/map/next_js/interactive_helpers/commandHandler.js.map +1 -0
  72. package/build/map/next_js/interactive_helpers/commandHelpers.js +91 -0
  73. package/build/map/next_js/interactive_helpers/commandHelpers.js.map +1 -0
  74. package/build/map/next_js/interactive_helpers/helpMenu.js +11 -0
  75. package/build/map/next_js/interactive_helpers/helpMenu.js.map +1 -0
  76. package/build/map/next_js/interactive_helpers/keybindings.js +80 -0
  77. package/build/map/next_js/interactive_helpers/keybindings.js.map +1 -0
  78. package/build/map/next_js/interactive_helpers/printer.js +17 -0
  79. package/build/map/next_js/interactive_helpers/printer.js.map +1 -0
  80. package/build/map/next_js/interactive_helpers/ui.js +81 -0
  81. package/build/map/next_js/interactive_helpers/ui.js.map +1 -0
  82. package/build/map/next_js/resolveFetch.js +201 -0
  83. package/build/map/next_js/resolveFetch.js.map +1 -0
  84. package/build/run/index.js +62 -0
  85. package/build/run/index.js.map +1 -0
  86. package/build/strings/index.js +235 -0
  87. package/build/strings/index.js.map +1 -0
  88. package/build/strings/openapi.js +55 -0
  89. package/build/strings/openapi.js.map +1 -0
  90. package/build/strings/permutate.js +55 -0
  91. package/build/strings/permutate.js.map +1 -0
  92. package/build/strings/secrets.js +89 -0
  93. package/build/strings/secrets.js.map +1 -0
  94. package/build/techDetect/index.js +224 -0
  95. package/build/techDetect/index.js.map +1 -0
  96. package/build/utility/ai.js +69 -0
  97. package/build/utility/ai.js.map +1 -0
  98. package/build/utility/globals.js +84 -0
  99. package/build/utility/globals.js.map +1 -0
  100. package/build/utility/interfaces.js +2 -0
  101. package/build/utility/interfaces.js.map +1 -0
  102. package/build/utility/makeReq.js +265 -0
  103. package/build/utility/makeReq.js.map +1 -0
  104. package/build/utility/resolvePath.js +44 -0
  105. package/build/utility/resolvePath.js.map +1 -0
  106. package/{utility → build/utility}/runSandboxed.js +10 -13
  107. package/build/utility/runSandboxed.js.map +1 -0
  108. package/{utility → build/utility}/urlUtils.js +9 -11
  109. package/build/utility/urlUtils.js.map +1 -0
  110. package/docs/README.md +20 -0
  111. package/docs/api-gateway.md +68 -0
  112. package/docs/endpoints.md +49 -0
  113. package/docs/example-scenario.md +258 -0
  114. package/docs/interactive-mode.md +76 -0
  115. package/docs/lazyload.md +56 -0
  116. package/docs/map.md +53 -0
  117. package/docs/run.md +54 -0
  118. package/docs/strings.md +75 -0
  119. package/endpoints.json +77 -0
  120. package/extracted_urls-openapi.json +225 -0
  121. package/extracted_urls-swagger.json +225 -0
  122. package/extracted_urls.json +47 -0
  123. package/extracted_urls.txt +296 -0
  124. package/mapped.json +3413 -0
  125. package/output/ss0x00.com/_next/data/k7xKVnxmboK4SktY2dZWt/index.json +971 -0
  126. package/output/ss0x00.com/_next/static/chunks/12.7e6d2ac6e1808fc2.js +247 -0
  127. package/output/ss0x00.com/_next/static/chunks/128.160aa801ef0445bc.js +1074 -0
  128. package/output/ss0x00.com/_next/static/chunks/132.55df84f7707fc278.js +102 -0
  129. package/output/ss0x00.com/_next/static/chunks/142.77038c55d9ec10ba.js +96 -0
  130. package/output/ss0x00.com/_next/static/chunks/215.321479e91d330bfa.js +228 -0
  131. package/output/ss0x00.com/_next/static/chunks/229.097c396d86b4a882.js +458 -0
  132. package/output/ss0x00.com/_next/static/chunks/257.5fd052aa4ef06ef9.js +1327 -0
  133. package/output/ss0x00.com/_next/static/chunks/268.72cb3779f66db70b.js +10520 -0
  134. package/output/ss0x00.com/_next/static/chunks/320.57d528b0e9bf86f0.js +186 -0
  135. package/output/ss0x00.com/_next/static/chunks/325.302a44b604c35f17.js +88 -0
  136. package/output/ss0x00.com/_next/static/chunks/328.e4a0307a4fddf318.js +248 -0
  137. package/output/ss0x00.com/_next/static/chunks/432.3621f17504ef18f2.js +443 -0
  138. package/output/ss0x00.com/_next/static/chunks/44.e90dd963003a3d43.js +1094 -0
  139. package/output/ss0x00.com/_next/static/chunks/442.8c054f100f9e5e50.js +1082 -0
  140. package/output/ss0x00.com/_next/static/chunks/460.f8db9a5142598e2c.js +466 -0
  141. package/output/ss0x00.com/_next/static/chunks/487.05ca55420459c002.js +78 -0
  142. package/output/ss0x00.com/_next/static/chunks/567.1909a6b0a920114b.js +1374 -0
  143. package/output/ss0x00.com/_next/static/chunks/586.802fc9214d87fb29.js +752 -0
  144. package/output/ss0x00.com/_next/static/chunks/620.a2a3a6b94d30a4c8.js +1037 -0
  145. package/output/ss0x00.com/_next/static/chunks/642.6b3e487c9604cbb8.js +1628 -0
  146. package/output/ss0x00.com/_next/static/chunks/673.e5d77887e5c6a68c.js +1045 -0
  147. package/output/ss0x00.com/_next/static/chunks/684.8b8e52baca70524b.js +96 -0
  148. package/output/ss0x00.com/_next/static/chunks/686.79480519e5ccfb77.js +296 -0
  149. package/output/ss0x00.com/_next/static/chunks/756.7a3878a2e6765be7.js +504 -0
  150. package/output/ss0x00.com/_next/static/chunks/761.7bea7516c5d22b2a.js +1485 -0
  151. package/output/ss0x00.com/_next/static/chunks/794.e079ef369b41a3c5.js +1350 -0
  152. package/output/ss0x00.com/_next/static/chunks/826.31ba213e1d023c68.js +1031 -0
  153. package/output/ss0x00.com/_next/static/chunks/847.d8397a73efc81848.js +1068 -0
  154. package/output/ss0x00.com/_next/static/chunks/848.5feaeee1e2624aea.js +132 -0
  155. package/output/ss0x00.com/_next/static/chunks/850.ecc7c3c3d787ee03.js +1472 -0
  156. package/output/ss0x00.com/_next/static/chunks/853.50b9eb60b7d0e83c.js +1472 -0
  157. package/output/ss0x00.com/_next/static/chunks/856.7a7bb6c3c7bfc2ba.js +1320 -0
  158. package/output/ss0x00.com/_next/static/chunks/859.df4bd45c03a65f53.js +1306 -0
  159. package/output/ss0x00.com/_next/static/chunks/867.e8633955a147c978.js +541 -0
  160. package/output/ss0x00.com/_next/static/chunks/921.c3123f20a4c8d53c.js +96 -0
  161. package/output/ss0x00.com/_next/static/chunks/932.25cb421c466c99cb.js +999 -0
  162. package/output/ss0x00.com/_next/static/chunks/framework-64ad27b21261a9ce.js +9189 -0
  163. package/output/ss0x00.com/_next/static/chunks/main-710ab85aa9a8f10d.js +6583 -0
  164. package/output/ss0x00.com/_next/static/chunks/pages/5D-af5a23529ce3c337.js +486 -0
  165. package/output/ss0x00.com/_next/static/chunks/pages/_app-c449865c8af1faa0.js +39 -0
  166. package/output/ss0x00.com/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +6383 -0
  167. package/output/ss0x00.com/_next/static/chunks/webpack-efff35ee26971294.js +271 -0
  168. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_buildManifest.js +8 -0
  169. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_ssgManifest.js +3 -0
  170. package/output/ss0x00.com/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js +82 -0
  171. package/package.json +50 -38
  172. package/strings.json +7407 -0
  173. package/api_gateway/checkFeasibility.js +0 -25
  174. package/api_gateway/checkFireWallBlocking.js +0 -17
  175. package/api_gateway/genReq.js +0 -214
  176. package/api_gateway/index.js +0 -325
  177. package/endpoints/index.js +0 -7
  178. package/globalConfig.js +0 -12
  179. package/index.js +0 -69
  180. package/lazyLoad/downloadFilesUtil.js +0 -122
  181. package/lazyLoad/downloadLoadedJsUtil.js +0 -54
  182. package/lazyLoad/globals.js +0 -15
  183. package/lazyLoad/index.js +0 -167
  184. package/lazyLoad/next_js/next_GetJSScript.js +0 -99
  185. package/lazyLoad/next_js/next_GetLazyResources.js +0 -201
  186. package/lazyLoad/next_js/next_SubsequentRequests.js +0 -138
  187. package/lazyLoad/nuxt_js/nuxt_astParse.js +0 -194
  188. package/lazyLoad/nuxt_js/nuxt_getFromPageSource.js +0 -77
  189. package/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +0 -99
  190. package/research/firewall_bypass.md +0 -38
  191. package/research/next_js.md +0 -116
  192. package/research/nuxt_js.md +0 -125
  193. package/research/vue_js.md +0 -9
  194. package/strings/index.js +0 -145
  195. package/techDetect/index.js +0 -156
  196. package/utility/globals.js +0 -6
  197. package/utility/makeReq.js +0 -179
  198. package/utility/resolvePath.js +0 -43
@@ -0,0 +1,186 @@
1
+ // JS Source: https://ss0x00.com/_next/static/chunks/320.57d528b0e9bf86f0.js
2
+ "use strict";
3
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
4
+ [320],
5
+ {
6
+ 6320: function (e, s, a) {
7
+ a.r(s);
8
+ var l = a(5893);
9
+ a(7294);
10
+ var r = a(7484),
11
+ t = a.n(r),
12
+ n = a(5576),
13
+ c = a(3967),
14
+ m = a.n(c),
15
+ i = a(365),
16
+ d = a(7586),
17
+ o = a(3491),
18
+ x = a(487),
19
+ p = a(4377),
20
+ u = a(6880);
21
+ function j(e) {
22
+ let { media: s } = e;
23
+ return (0, l.jsx)(o.B, {
24
+ ...s,
25
+ className: m()({ "w-full": "ImageBlock" === s.type }),
26
+ });
27
+ }
28
+ function h(e) {
29
+ let { project: s, label: a } = e;
30
+ return (0, l.jsx)(u.M, {
31
+ content: s,
32
+ children: (0, l.jsxs)(p.Z, {
33
+ className: "sb-project-nav-item group",
34
+ href: s,
35
+ children: [
36
+ s.featuredImage &&
37
+ (0, l.jsx)("div", {
38
+ className: "h-0 w-full mb-6 pt-2/3 relative overflow-hidden",
39
+ children: (0, l.jsx)(x.default, {
40
+ ...s.featuredImage,
41
+ className:
42
+ "absolute left-0 top-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",
43
+ }),
44
+ }),
45
+ (0, l.jsx)("span", {
46
+ className: "sb-component sb-component-block sb-component-link",
47
+ children: a,
48
+ }),
49
+ ],
50
+ }),
51
+ });
52
+ }
53
+ s.default = (e) => {
54
+ let { global: s, ...a } = e,
55
+ {
56
+ title: r,
57
+ date: c,
58
+ client: m,
59
+ description: x,
60
+ markdownContent: p,
61
+ media: u,
62
+ prevProject: b,
63
+ nextProject: g,
64
+ bottomSections: f = [],
65
+ } = a,
66
+ v = t()(c).format("YYYY-MM-DD HH:mm:ss"),
67
+ N = t()(c).format("MM-DD-YYYY");
68
+ return (0, l.jsx)(d.Z, {
69
+ ...e,
70
+ children: (0, l.jsxs)("main", {
71
+ id: "main",
72
+ className: "sb-layout sb-project-layout",
73
+ children: [
74
+ (0, l.jsx)("article", {
75
+ className: "px-4 py-14 lg:py-20",
76
+ children: (0, l.jsxs)("div", {
77
+ className: "max-w-5xl mx-auto",
78
+ children: [
79
+ (0, l.jsxs)("header", {
80
+ className: "mb-10 sm:mb-16",
81
+ children: [
82
+ m &&
83
+ (0, l.jsx)("div", {
84
+ className: "text-lg uppercase mb-2 md:mb-6",
85
+ children: m,
86
+ }),
87
+ (0, l.jsxs)("div", {
88
+ className: "md:flex md:justify-between",
89
+ children: [
90
+ (0, l.jsx)("div", {
91
+ className:
92
+ "text-lg mb-6 md:mb-0 md:ml-12 md:order-last",
93
+ children: (0, l.jsx)("time", {
94
+ dateTime: v,
95
+ children: N,
96
+ }),
97
+ }),
98
+ (0, l.jsx)("h1", {
99
+ className: "md:max-w-2xl md:flex-grow",
100
+ children: r,
101
+ }),
102
+ ],
103
+ }),
104
+ ],
105
+ }),
106
+ x &&
107
+ (0, l.jsx)("div", {
108
+ className:
109
+ "text-xl leading-normal uppercase max-w-screen-md mx-auto mb-10 sm:mb-16",
110
+ children: x,
111
+ }),
112
+ u &&
113
+ (0, l.jsx)("div", {
114
+ className: "mb-10 sm:mb-16",
115
+ children: (0, l.jsx)(j, { media: u }),
116
+ }),
117
+ p &&
118
+ (0, l.jsx)(n.ZP, {
119
+ options: { forceBlock: !0, overrides: { pre: i.Z } },
120
+ className: "sb-markdown max-w-screen-md mx-auto",
121
+ children: p,
122
+ }),
123
+ ],
124
+ }),
125
+ }),
126
+ (b || g) &&
127
+ (0, l.jsx)("nav", {
128
+ className: "sb-project-nav px-4 sm:px-8 mt-12 mb-20",
129
+ children: (0, l.jsxs)("div", {
130
+ className:
131
+ "max-w-5xl mx-auto grid gap-x-6 gap-y-12 md:grid-cols-2 lg:gap-x-8",
132
+ children: [
133
+ b &&
134
+ (0, l.jsx)(h, {
135
+ project: b,
136
+ label: "Previous project",
137
+ }),
138
+ g && (0, l.jsx)(h, { project: g, label: "Next project" }),
139
+ ],
140
+ }),
141
+ }),
142
+ f.length > 0 &&
143
+ (0, l.jsx)("div", {
144
+ children: f.map((e, s) => (0, l.jsx)(o.B, { ...e }, s)),
145
+ }),
146
+ ],
147
+ }),
148
+ });
149
+ };
150
+ },
151
+ 365: function (e, s, a) {
152
+ a.d(s, {
153
+ Z: function () {
154
+ return i;
155
+ },
156
+ });
157
+ var l = a(5893);
158
+ a(7294);
159
+ var r = a(8152),
160
+ t = a(2041),
161
+ n = a(2422),
162
+ c = a(4283);
163
+ (r.Z.registerLanguage("javascript", t.Z),
164
+ r.Z.registerLanguage("css", n.Z));
165
+ let m = (e) => {
166
+ let { className: s, children: a } = e,
167
+ t = "text";
168
+ return (
169
+ s && s.startsWith("lang-") && (t = s.replace("lang-", "")),
170
+ (0, l.jsx)(r.Z, {
171
+ language: t,
172
+ style: c.Kc,
173
+ wrapLongLines: !0,
174
+ children: a,
175
+ })
176
+ );
177
+ };
178
+ function i(e) {
179
+ let { children: s, ...a } = e;
180
+ return "type" in s && "code" === s.type
181
+ ? m(s.props)
182
+ : (0, l.jsx)("pre", { ...a, children: s });
183
+ }
184
+ },
185
+ },
186
+ ]);
@@ -0,0 +1,88 @@
1
+ // JS Source: https://ss0x00.com/_next/static/chunks/325.302a44b604c35f17.js
2
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
+ [325],
4
+ {
5
+ 5325: function (r, t, e) {
6
+ "use strict";
7
+ (e.r(t),
8
+ e.d(t, {
9
+ default: function () {
10
+ return i;
11
+ },
12
+ }));
13
+ var n = e(5893);
14
+ e(7294);
15
+ var o = e(3967),
16
+ l = e.n(o);
17
+ function i(r) {
18
+ let { name: t, label: e, isRequired: o, width: i = "full" } = r,
19
+ u = "".concat(t, "-label"),
20
+ a = {};
21
+ return (
22
+ e && (a["aria-labelledby"] = u),
23
+ o && (a.required = !0),
24
+ (0, n.jsxs)("div", {
25
+ className: l()("sb-form-control", "flex", "items-center", {
26
+ "sb-form-control-full": "full" === i,
27
+ }),
28
+ children: [
29
+ (0, n.jsx)("input", {
30
+ id: t,
31
+ className: "sb-checkbox",
32
+ type: "checkbox",
33
+ name: t,
34
+ ...a,
35
+ }),
36
+ e &&
37
+ (0, n.jsx)("label", {
38
+ id: u,
39
+ className: "sb-label",
40
+ htmlFor: t,
41
+ children: e,
42
+ }),
43
+ ],
44
+ })
45
+ );
46
+ }
47
+ },
48
+ 3967: function (r, t) {
49
+ var e;
50
+ !(function () {
51
+ "use strict";
52
+ var n = {}.hasOwnProperty;
53
+ function o() {
54
+ for (var r = "", t = 0; t < arguments.length; t++) {
55
+ var e = arguments[t];
56
+ e &&
57
+ (r = l(
58
+ r,
59
+ (function (r) {
60
+ if ("string" == typeof r || "number" == typeof r) return r;
61
+ if ("object" != typeof r) return "";
62
+ if (Array.isArray(r)) return o.apply(null, r);
63
+ if (
64
+ r.toString !== Object.prototype.toString &&
65
+ !r.toString.toString().includes("[native code]")
66
+ )
67
+ return r.toString();
68
+ var t = "";
69
+ for (var e in r) n.call(r, e) && r[e] && (t = l(t, e));
70
+ return t;
71
+ })(e),
72
+ ));
73
+ }
74
+ return r;
75
+ }
76
+ function l(r, t) {
77
+ return t ? (r ? r + " " + t : r + t) : r;
78
+ }
79
+ r.exports
80
+ ? ((o.default = o), (r.exports = o))
81
+ : void 0 !==
82
+ (e = function () {
83
+ return o;
84
+ }.apply(t, [])) && (r.exports = e);
85
+ })();
86
+ },
87
+ },
88
+ ]);
@@ -0,0 +1,248 @@
1
+ // JS Source: https://ss0x00.com/_next/static/chunks/328.e4a0307a4fddf318.js
2
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
+ [328],
4
+ {
5
+ 328: function (t, e, n) {
6
+ "use strict";
7
+ (n.r(e),
8
+ n.d(e, {
9
+ default: function () {
10
+ return u;
11
+ },
12
+ }));
13
+ var r = n(5893),
14
+ o = n(7294),
15
+ i = n(3967),
16
+ a = n.n(i),
17
+ l = n(3491),
18
+ s = n(9754);
19
+ function u(t) {
20
+ var e, n;
21
+ let i = o.createRef(),
22
+ {
23
+ elementId: u,
24
+ className: d,
25
+ fields: c = [],
26
+ submitLabel: f,
27
+ styles: b = {},
28
+ } = t;
29
+ if (0 === c.length) return null;
30
+ let m = async (t) => {
31
+ t.preventDefault();
32
+ let e = new FormData(t.target),
33
+ n = {};
34
+ e.forEach((t, e) => {
35
+ "string" == typeof t && (n[e] = t);
36
+ });
37
+ let r = await fetch(
38
+ "https://m2xbcu4klqprtjl25jyr5bbtpi0lxias.lambda-url.ap-south-1.on.aws/",
39
+ {
40
+ method: "POST",
41
+ headers: { "Content-Type": "application/json" },
42
+ body: JSON.stringify(n),
43
+ },
44
+ ),
45
+ o = await r.json();
46
+ 200 === r.status
47
+ ? alert(o.message)
48
+ : alert("Failed to submit form: " + o.error);
49
+ };
50
+ return (0, r.jsxs)("form", {
51
+ className: a()(
52
+ "sb-component",
53
+ "sb-component-block",
54
+ "sb-component-form-block",
55
+ d,
56
+ ),
57
+ name: u,
58
+ id: u,
59
+ onSubmit: m,
60
+ ref: i,
61
+ children: [
62
+ (0, r.jsxs)("div", {
63
+ className: "grid sm:grid-cols-2 sm:gap-x-4",
64
+ children: [
65
+ (0, r.jsx)("input", {
66
+ type: "hidden",
67
+ name: "form-name",
68
+ value: u,
69
+ }),
70
+ c.map((t, e) => (0, r.jsx)(l.B, { ...t }, e)),
71
+ ],
72
+ }),
73
+ (0, r.jsx)("div", {
74
+ className: a()(
75
+ "mt-4",
76
+ (
77
+ null === (e = b.submitLabel) || void 0 === e
78
+ ? void 0
79
+ : e.textAlign
80
+ )
81
+ ? (0, s.G)({
82
+ textAlign:
83
+ null === (n = b.submitLabel) || void 0 === n
84
+ ? void 0
85
+ : n.textAlign,
86
+ })
87
+ : null,
88
+ ),
89
+ children: (0, r.jsx)("button", {
90
+ type: "submit",
91
+ className:
92
+ "sb-component sb-component-block sb-component-button sb-component-button-primary",
93
+ children: f,
94
+ }),
95
+ }),
96
+ ],
97
+ });
98
+ }
99
+ },
100
+ 9754: function (t, e, n) {
101
+ "use strict";
102
+ n.d(e, {
103
+ G: function () {
104
+ return o;
105
+ },
106
+ });
107
+ let r = {
108
+ alignItems: {
109
+ "flex-start": "items-start",
110
+ "flex-end": "items-end",
111
+ center: "items-center",
112
+ },
113
+ backgroundPosition: {
114
+ bottom: "bg-bottom",
115
+ center: "bg-center",
116
+ left: "bg-left",
117
+ "left-bottom": "bg-left-bottom",
118
+ "left-top": "bg-left-top",
119
+ right: "bg-right",
120
+ "right-bottom": "bg-right-bottom",
121
+ "right-top": "bg-right-top",
122
+ top: "bg-top",
123
+ },
124
+ backgroundRepeat: {
125
+ repeat: "bg-repeat",
126
+ "repeat-x": "bg-repeat-x",
127
+ "repeat-y": "bg-repeat-y",
128
+ "no-repeat": "bg-no-repeat",
129
+ },
130
+ backgroundSize: {
131
+ auto: "bg-auto",
132
+ cover: "bg-cover",
133
+ contain: "bg-contain",
134
+ },
135
+ borderRadius: {
136
+ none: "rounded-none",
137
+ "xx-small": "rounded-sm",
138
+ "x-small": "rounded",
139
+ small: "rounded-md",
140
+ medium: "rounded-lg",
141
+ large: "rounded-xl",
142
+ "x-large": "rounded-2xl",
143
+ "xx-large": "rounded-3xl",
144
+ full: "rounded-full",
145
+ },
146
+ borderStyle: {
147
+ none: "border-none",
148
+ solid: "border-solid",
149
+ dashed: "border-dashed",
150
+ dotted: "border-dotted",
151
+ double: "border-double",
152
+ },
153
+ fontStyle: { italic: "italic" },
154
+ fontWeight: {
155
+ 400: "font-normal",
156
+ 500: "font-medium",
157
+ 700: "font-bold",
158
+ },
159
+ height: { auto: "min-h-0", screen: "min-h-screen" },
160
+ justifyContent: {
161
+ "flex-start": "justify-start",
162
+ "flex-end": "justify-end",
163
+ center: "justify-center",
164
+ },
165
+ margin: function (t) {
166
+ return Array.isArray(t)
167
+ ? t.join(" ")
168
+ : (console.warn(
169
+ 'cannot convert "margin" style field value to class name',
170
+ ),
171
+ "");
172
+ },
173
+ padding: function (t) {
174
+ return Array.isArray(t)
175
+ ? t.join(" ")
176
+ : (console.warn(
177
+ 'cannot convert "padding" style field value to class name',
178
+ ),
179
+ "");
180
+ },
181
+ textAlign: {
182
+ left: "text-left",
183
+ center: "text-center",
184
+ right: "text-right",
185
+ justify: "text-justify",
186
+ },
187
+ textDecoration: {
188
+ underline: "underline",
189
+ "line-through": "line-through",
190
+ },
191
+ width: { narrow: "max-w-5xl", wide: "max-w-7xl", full: "max-w-full" },
192
+ };
193
+ function o(t) {
194
+ return Object.entries(t)
195
+ .map((t) => {
196
+ let [e, n] = t;
197
+ return e in r
198
+ ? "function" == typeof r[e]
199
+ ? r[e](n)
200
+ : n in r[e]
201
+ ? r[e][n]
202
+ : void 0
203
+ : n;
204
+ })
205
+ .join(" ");
206
+ }
207
+ },
208
+ 3967: function (t, e) {
209
+ var n;
210
+ !(function () {
211
+ "use strict";
212
+ var r = {}.hasOwnProperty;
213
+ function o() {
214
+ for (var t = "", e = 0; e < arguments.length; e++) {
215
+ var n = arguments[e];
216
+ n &&
217
+ (t = i(
218
+ t,
219
+ (function (t) {
220
+ if ("string" == typeof t || "number" == typeof t) return t;
221
+ if ("object" != typeof t) return "";
222
+ if (Array.isArray(t)) return o.apply(null, t);
223
+ if (
224
+ t.toString !== Object.prototype.toString &&
225
+ !t.toString.toString().includes("[native code]")
226
+ )
227
+ return t.toString();
228
+ var e = "";
229
+ for (var n in t) r.call(t, n) && t[n] && (e = i(e, n));
230
+ return e;
231
+ })(n),
232
+ ));
233
+ }
234
+ return t;
235
+ }
236
+ function i(t, e) {
237
+ return e ? (t ? t + " " + e : t + e) : t;
238
+ }
239
+ t.exports
240
+ ? ((o.default = o), (t.exports = o))
241
+ : void 0 !==
242
+ (n = function () {
243
+ return o;
244
+ }.apply(e, [])) && (t.exports = n);
245
+ })();
246
+ },
247
+ },
248
+ ]);