@pinerohit11/testwidget 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. package/.next/cache/webpack/client-development/0.pack.gz +0 -0
  2. package/.next/cache/webpack/client-development/1.pack.gz +0 -0
  3. package/.next/cache/webpack/client-development/10.pack.gz +0 -0
  4. package/.next/cache/webpack/client-development/2.pack.gz +0 -0
  5. package/.next/cache/webpack/client-development/3.pack.gz +0 -0
  6. package/.next/cache/webpack/client-development/4.pack.gz +0 -0
  7. package/.next/cache/webpack/client-development/5.pack.gz +0 -0
  8. package/.next/cache/webpack/client-development/6.pack.gz +0 -0
  9. package/.next/cache/webpack/client-development/index.pack.gz +0 -0
  10. package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
  11. package/.next/cache/webpack/server-development/0.pack.gz +0 -0
  12. package/.next/cache/webpack/server-development/1.pack.gz +0 -0
  13. package/.next/cache/webpack/server-development/10.pack.gz +0 -0
  14. package/.next/cache/webpack/server-development/11.pack.gz +0 -0
  15. package/.next/cache/webpack/server-development/12.pack.gz +0 -0
  16. package/.next/cache/webpack/server-development/13.pack.gz +0 -0
  17. package/.next/cache/webpack/server-development/2.pack.gz +0 -0
  18. package/.next/cache/webpack/server-development/3.pack.gz +0 -0
  19. package/.next/cache/webpack/server-development/4.pack.gz +0 -0
  20. package/.next/cache/webpack/server-development/6.pack.gz +0 -0
  21. package/.next/cache/webpack/server-development/7.pack.gz +0 -0
  22. package/.next/cache/webpack/server-development/9.pack.gz +0 -0
  23. package/.next/cache/webpack/server-development/index.pack.gz +0 -0
  24. package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
  25. package/.next/server/app/page.js +1 -1
  26. package/.next/server/vendor-chunks/next.js +5 -5
  27. package/.next/server/webpack-runtime.js +1 -1
  28. package/.next/static/chunks/app/layout.js +3 -3
  29. package/.next/static/chunks/app/page.js +45 -1
  30. package/.next/static/chunks/app-pages-internals.js +1 -1
  31. package/.next/static/chunks/main-app.js +5 -5
  32. package/.next/static/chunks/webpack.js +1 -1
  33. package/.next/static/webpack/app/{layout.2d35c83f0037d0e3.hot-update.js → layout.2f388e6b66349419.hot-update.js} +2 -2
  34. package/.next/static/webpack/app/{layout.eabe83a6bd680d72.hot-update.js → layout.5ff03b504f4dc152.hot-update.js} +2 -2
  35. package/.next/static/webpack/app/{layout.e5533e94660e066c.hot-update.js → layout.b62381d4132a6544.hot-update.js} +2 -2
  36. package/.next/static/webpack/app/layout.e1d7a6f7992b7b70.hot-update.js +31 -0
  37. package/.next/static/webpack/app/{page.4a9375b8e793c38e.hot-update.js → page.2e7b4aa2b22e65d9.hot-update.js} +1 -1
  38. package/.next/static/webpack/app/page.548fbaf72ba2981b.hot-update.js +62 -0
  39. package/.next/static/webpack/app/{page.81f6646c28a82804.hot-update.js → page.bb7fb7004da6fd3f.hot-update.js} +1 -1
  40. package/.next/static/webpack/{webpack.1f1fe21203e4c68b.hot-update.js → webpack.2e7b4aa2b22e65d9.hot-update.js} +1 -1
  41. package/.next/static/webpack/{webpack.213fdb98a15e3455.hot-update.js → webpack.2f388e6b66349419.hot-update.js} +1 -1
  42. package/.next/static/webpack/{webpack.0463e0d10a76f0e1.hot-update.js → webpack.548fbaf72ba2981b.hot-update.js} +1 -1
  43. package/.next/static/webpack/{webpack.14eb1ee43b84ca5f.hot-update.js → webpack.5ff03b504f4dc152.hot-update.js} +1 -1
  44. package/.next/static/webpack/webpack.b62381d4132a6544.hot-update.js +18 -0
  45. package/.next/static/webpack/webpack.bb7fb7004da6fd3f.hot-update.js +18 -0
  46. package/.next/static/webpack/webpack.e1d7a6f7992b7b70.hot-update.js +18 -0
  47. package/.next/trace +20 -116
  48. package/dist/{index.mjs → index.cjs} +91 -43
  49. package/dist/index.js +57 -77
  50. package/package.json +4 -3
  51. package/.next/static/webpack/1f1fe21203e4c68b.webpack.hot-update.json +0 -1
  52. package/.next/static/webpack/255aea9c6475b746.webpack.hot-update.json +0 -1
  53. package/.next/static/webpack/309e2d9634152b60.webpack.hot-update.json +0 -1
  54. package/.next/static/webpack/329e12e211658503.webpack.hot-update.json +0 -1
  55. package/.next/static/webpack/4a9375b8e793c38e.webpack.hot-update.json +0 -1
  56. package/.next/static/webpack/500c5340fb4c6cd5.webpack.hot-update.json +0 -1
  57. package/.next/static/webpack/5031cfaa2d3d892d.webpack.hot-update.json +0 -1
  58. package/.next/static/webpack/51f0e2a03e8d18a6.webpack.hot-update.json +0 -1
  59. package/.next/static/webpack/5ad56258b0e90bef.webpack.hot-update.json +0 -1
  60. package/.next/static/webpack/5c7e83ae2adb882e.webpack.hot-update.json +0 -1
  61. package/.next/static/webpack/5c8dada5acec56f7.webpack.hot-update.json +0 -1
  62. package/.next/static/webpack/5e709b5694e5ad26.webpack.hot-update.json +0 -1
  63. package/.next/static/webpack/6246449706d4b449.webpack.hot-update.json +0 -1
  64. package/.next/static/webpack/6498563004a57942.webpack.hot-update.json +0 -1
  65. package/.next/static/webpack/65c43818d6f690fe.webpack.hot-update.json +0 -1
  66. package/.next/static/webpack/681ce36f0645d689.webpack.hot-update.json +0 -1
  67. package/.next/static/webpack/6f00711e3d258954.webpack.hot-update.json +0 -1
  68. package/.next/static/webpack/81f6646c28a82804.webpack.hot-update.json +0 -1
  69. package/.next/static/webpack/8522f92ca02de0c8.webpack.hot-update.json +0 -1
  70. package/.next/static/webpack/893ddc36c19de1ea.webpack.hot-update.json +0 -1
  71. package/.next/static/webpack/896c5501cdf537b3.webpack.hot-update.json +0 -1
  72. package/.next/static/webpack/8cc442b31ec27e60.webpack.hot-update.json +0 -1
  73. package/.next/static/webpack/8ed684f639abe58b.webpack.hot-update.json +0 -1
  74. package/.next/static/webpack/97615cc2d368fba4.webpack.hot-update.json +0 -1
  75. package/.next/static/webpack/9775f51aeb80d3b2.webpack.hot-update.json +0 -1
  76. package/.next/static/webpack/9bbf208246a2eebb.webpack.hot-update.json +0 -1
  77. package/.next/static/webpack/a74f1afad4b7a8a2.webpack.hot-update.json +0 -1
  78. package/.next/static/webpack/aed2ae614f6605ed.webpack.hot-update.json +0 -1
  79. package/.next/static/webpack/app/layout.228b69a2a9a20202.hot-update.js +0 -22
  80. package/.next/static/webpack/app/layout.456a8cdc4e32bb1b.hot-update.js +0 -22
  81. package/.next/static/webpack/app/layout.8894e91a6b3fd5cb.hot-update.js +0 -22
  82. package/.next/static/webpack/app/layout.a74f1afad4b7a8a2.hot-update.js +0 -98
  83. package/.next/static/webpack/app/layout.bb4485d5c54b0ed1.hot-update.js +0 -22
  84. package/.next/static/webpack/app/layout.f3f79b681eb03ce7.hot-update.js +0 -22
  85. package/.next/static/webpack/app/page.0463e0d10a76f0e1.hot-update.js +0 -22
  86. package/.next/static/webpack/app/page.14eb1ee43b84ca5f.hot-update.js +0 -22
  87. package/.next/static/webpack/app/page.1f1fe21203e4c68b.hot-update.js +0 -21
  88. package/.next/static/webpack/app/page.213fdb98a15e3455.hot-update.js +0 -22
  89. package/.next/static/webpack/app/page.255aea9c6475b746.hot-update.js +0 -22
  90. package/.next/static/webpack/app/page.309e2d9634152b60.hot-update.js +0 -22
  91. package/.next/static/webpack/app/page.329e12e211658503.hot-update.js +0 -22
  92. package/.next/static/webpack/app/page.500c5340fb4c6cd5.hot-update.js +0 -22
  93. package/.next/static/webpack/app/page.5031cfaa2d3d892d.hot-update.js +0 -22
  94. package/.next/static/webpack/app/page.51f0e2a03e8d18a6.hot-update.js +0 -22
  95. package/.next/static/webpack/app/page.5ad56258b0e90bef.hot-update.js +0 -22
  96. package/.next/static/webpack/app/page.5c7e83ae2adb882e.hot-update.js +0 -22
  97. package/.next/static/webpack/app/page.5c8dada5acec56f7.hot-update.js +0 -22
  98. package/.next/static/webpack/app/page.5e709b5694e5ad26.hot-update.js +0 -22
  99. package/.next/static/webpack/app/page.6246449706d4b449.hot-update.js +0 -22
  100. package/.next/static/webpack/app/page.6498563004a57942.hot-update.js +0 -22
  101. package/.next/static/webpack/app/page.65c43818d6f690fe.hot-update.js +0 -22
  102. package/.next/static/webpack/app/page.681ce36f0645d689.hot-update.js +0 -22
  103. package/.next/static/webpack/app/page.6f00711e3d258954.hot-update.js +0 -22
  104. package/.next/static/webpack/app/page.8522f92ca02de0c8.hot-update.js +0 -54
  105. package/.next/static/webpack/app/page.893ddc36c19de1ea.hot-update.js +0 -22
  106. package/.next/static/webpack/app/page.896c5501cdf537b3.hot-update.js +0 -22
  107. package/.next/static/webpack/app/page.8cc442b31ec27e60.hot-update.js +0 -22
  108. package/.next/static/webpack/app/page.8ed684f639abe58b.hot-update.js +0 -603
  109. package/.next/static/webpack/app/page.97615cc2d368fba4.hot-update.js +0 -22
  110. package/.next/static/webpack/app/page.9775f51aeb80d3b2.hot-update.js +0 -22
  111. package/.next/static/webpack/app/page.9bbf208246a2eebb.hot-update.js +0 -22
  112. package/.next/static/webpack/app/page.aed2ae614f6605ed.hot-update.js +0 -22
  113. package/.next/static/webpack/app/page.b4b25d4db23dbc5a.hot-update.js +0 -22
  114. package/.next/static/webpack/app/page.b728482f9b82d921.hot-update.js +0 -571
  115. package/.next/static/webpack/app/page.b7a42026022db1f3.hot-update.js +0 -22
  116. package/.next/static/webpack/app/page.b90118a4d57e76ad.hot-update.js +0 -54
  117. package/.next/static/webpack/app/page.c0a3bb4128bc91cb.hot-update.js +0 -22
  118. package/.next/static/webpack/app/page.c5880161e6d8c38b.hot-update.js +0 -22
  119. package/.next/static/webpack/app/page.c91faac87e6e5e7d.hot-update.js +0 -21
  120. package/.next/static/webpack/app/page.cb281b61855d3afc.hot-update.js +0 -22
  121. package/.next/static/webpack/app/page.cc723ec7106788b2.hot-update.js +0 -22
  122. package/.next/static/webpack/app/page.d00ead7a6d6dd27a.hot-update.js +0 -22
  123. package/.next/static/webpack/app/page.d5492b6ce3aff19a.hot-update.js +0 -22
  124. package/.next/static/webpack/app/page.e1a0b7850e69b555.hot-update.js +0 -22
  125. package/.next/static/webpack/app/page.e6094793daace46f.hot-update.js +0 -22
  126. package/.next/static/webpack/app/page.ef9190246958611b.hot-update.js +0 -22
  127. package/.next/static/webpack/b4b25d4db23dbc5a.webpack.hot-update.json +0 -1
  128. package/.next/static/webpack/b728482f9b82d921.webpack.hot-update.json +0 -1
  129. package/.next/static/webpack/b7a42026022db1f3.webpack.hot-update.json +0 -1
  130. package/.next/static/webpack/b90118a4d57e76ad.webpack.hot-update.json +0 -1
  131. package/.next/static/webpack/bb4485d5c54b0ed1.webpack.hot-update.json +0 -1
  132. package/.next/static/webpack/c0a3bb4128bc91cb.webpack.hot-update.json +0 -1
  133. package/.next/static/webpack/c5880161e6d8c38b.webpack.hot-update.json +0 -1
  134. package/.next/static/webpack/c91faac87e6e5e7d.webpack.hot-update.json +0 -1
  135. package/.next/static/webpack/cb281b61855d3afc.webpack.hot-update.json +0 -1
  136. package/.next/static/webpack/cc723ec7106788b2.webpack.hot-update.json +0 -1
  137. package/.next/static/webpack/d00ead7a6d6dd27a.webpack.hot-update.json +0 -1
  138. package/.next/static/webpack/d5492b6ce3aff19a.webpack.hot-update.json +0 -1
  139. package/.next/static/webpack/e1a0b7850e69b555.webpack.hot-update.json +0 -1
  140. package/.next/static/webpack/e5533e94660e066c.webpack.hot-update.json +0 -1
  141. package/.next/static/webpack/e6094793daace46f.webpack.hot-update.json +0 -1
  142. package/.next/static/webpack/eabe83a6bd680d72.webpack.hot-update.json +0 -1
  143. package/.next/static/webpack/ef9190246958611b.webpack.hot-update.json +0 -1
  144. package/.next/static/webpack/f3f79b681eb03ce7.webpack.hot-update.json +0 -1
  145. package/.next/static/webpack/webpack.228b69a2a9a20202.hot-update.js +0 -18
  146. package/.next/static/webpack/webpack.255aea9c6475b746.hot-update.js +0 -18
  147. package/.next/static/webpack/webpack.2d35c83f0037d0e3.hot-update.js +0 -18
  148. package/.next/static/webpack/webpack.309e2d9634152b60.hot-update.js +0 -18
  149. package/.next/static/webpack/webpack.329e12e211658503.hot-update.js +0 -18
  150. package/.next/static/webpack/webpack.456a8cdc4e32bb1b.hot-update.js +0 -18
  151. package/.next/static/webpack/webpack.4a9375b8e793c38e.hot-update.js +0 -18
  152. package/.next/static/webpack/webpack.500c5340fb4c6cd5.hot-update.js +0 -18
  153. package/.next/static/webpack/webpack.5031cfaa2d3d892d.hot-update.js +0 -18
  154. package/.next/static/webpack/webpack.51f0e2a03e8d18a6.hot-update.js +0 -18
  155. package/.next/static/webpack/webpack.5ad56258b0e90bef.hot-update.js +0 -18
  156. package/.next/static/webpack/webpack.5c7e83ae2adb882e.hot-update.js +0 -18
  157. package/.next/static/webpack/webpack.5c8dada5acec56f7.hot-update.js +0 -18
  158. package/.next/static/webpack/webpack.5e709b5694e5ad26.hot-update.js +0 -18
  159. package/.next/static/webpack/webpack.6246449706d4b449.hot-update.js +0 -18
  160. package/.next/static/webpack/webpack.6498563004a57942.hot-update.js +0 -18
  161. package/.next/static/webpack/webpack.65c43818d6f690fe.hot-update.js +0 -18
  162. package/.next/static/webpack/webpack.681ce36f0645d689.hot-update.js +0 -18
  163. package/.next/static/webpack/webpack.6f00711e3d258954.hot-update.js +0 -18
  164. package/.next/static/webpack/webpack.81f6646c28a82804.hot-update.js +0 -18
  165. package/.next/static/webpack/webpack.8522f92ca02de0c8.hot-update.js +0 -30
  166. package/.next/static/webpack/webpack.8894e91a6b3fd5cb.hot-update.js +0 -18
  167. package/.next/static/webpack/webpack.893ddc36c19de1ea.hot-update.js +0 -18
  168. package/.next/static/webpack/webpack.896c5501cdf537b3.hot-update.js +0 -18
  169. package/.next/static/webpack/webpack.8cc442b31ec27e60.hot-update.js +0 -18
  170. package/.next/static/webpack/webpack.8ed684f639abe58b.hot-update.js +0 -18
  171. package/.next/static/webpack/webpack.97615cc2d368fba4.hot-update.js +0 -18
  172. package/.next/static/webpack/webpack.9775f51aeb80d3b2.hot-update.js +0 -18
  173. package/.next/static/webpack/webpack.9bbf208246a2eebb.hot-update.js +0 -18
  174. package/.next/static/webpack/webpack.a74f1afad4b7a8a2.hot-update.js +0 -18
  175. package/.next/static/webpack/webpack.aed2ae614f6605ed.hot-update.js +0 -18
  176. package/.next/static/webpack/webpack.b4b25d4db23dbc5a.hot-update.js +0 -18
  177. package/.next/static/webpack/webpack.b728482f9b82d921.hot-update.js +0 -18
  178. package/.next/static/webpack/webpack.b7a42026022db1f3.hot-update.js +0 -18
  179. package/.next/static/webpack/webpack.b90118a4d57e76ad.hot-update.js +0 -30
  180. package/.next/static/webpack/webpack.bb4485d5c54b0ed1.hot-update.js +0 -18
  181. package/.next/static/webpack/webpack.c0a3bb4128bc91cb.hot-update.js +0 -18
  182. package/.next/static/webpack/webpack.c5880161e6d8c38b.hot-update.js +0 -18
  183. package/.next/static/webpack/webpack.c91faac87e6e5e7d.hot-update.js +0 -18
  184. package/.next/static/webpack/webpack.cb281b61855d3afc.hot-update.js +0 -18
  185. package/.next/static/webpack/webpack.cc723ec7106788b2.hot-update.js +0 -18
  186. package/.next/static/webpack/webpack.d00ead7a6d6dd27a.hot-update.js +0 -18
  187. package/.next/static/webpack/webpack.d5492b6ce3aff19a.hot-update.js +0 -18
  188. package/.next/static/webpack/webpack.e1a0b7850e69b555.hot-update.js +0 -18
  189. package/.next/static/webpack/webpack.e5533e94660e066c.hot-update.js +0 -18
  190. package/.next/static/webpack/webpack.e6094793daace46f.hot-update.js +0 -18
  191. package/.next/static/webpack/webpack.eabe83a6bd680d72.hot-update.js +0 -18
  192. package/.next/static/webpack/webpack.ef9190246958611b.hot-update.js +0 -18
  193. package/.next/static/webpack/webpack.f3f79b681eb03ce7.hot-update.js +0 -18
  194. package/.vscode/settings.json +0 -22
  195. /package/.next/static/webpack/{0463e0d10a76f0e1.webpack.hot-update.json → 2e7b4aa2b22e65d9.webpack.hot-update.json} +0 -0
  196. /package/.next/static/webpack/{228b69a2a9a20202.webpack.hot-update.json → 2f388e6b66349419.webpack.hot-update.json} +0 -0
  197. /package/.next/static/webpack/{14eb1ee43b84ca5f.webpack.hot-update.json → 548fbaf72ba2981b.webpack.hot-update.json} +0 -0
  198. /package/.next/static/webpack/{2d35c83f0037d0e3.webpack.hot-update.json → 5ff03b504f4dc152.webpack.hot-update.json} +0 -0
  199. /package/.next/static/webpack/{456a8cdc4e32bb1b.webpack.hot-update.json → b62381d4132a6544.webpack.hot-update.json} +0 -0
  200. /package/.next/static/webpack/{213fdb98a15e3455.webpack.hot-update.json → bb7fb7004da6fd3f.webpack.hot-update.json} +0 -0
  201. /package/.next/static/webpack/{8894e91a6b3fd5cb.webpack.hot-update.json → e1d7a6f7992b7b70.webpack.hot-update.json} +0 -0
  202. /package/dist/{index.d.mts → index.d.cts} +0 -0
@@ -1,7 +1,12 @@
1
+ "use strict";
2
+ var __create = Object.create;
1
3
  var __defProp = Object.defineProperty;
2
4
  var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
6
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
5
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
11
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
12
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -17,18 +22,47 @@ var __spreadValues = (a, b) => {
17
22
  return a;
18
23
  };
19
24
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __copyProps = (to, from, except, desc) => {
30
+ if (from && typeof from === "object" || typeof from === "function") {
31
+ for (let key of __getOwnPropNames(from))
32
+ if (!__hasOwnProp.call(to, key) && key !== except)
33
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
+ mod
44
+ ));
45
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
+
47
+ // src/app/index.ts
48
+ var app_exports = {};
49
+ __export(app_exports, {
50
+ PaywithFractal: () => PaywithFractal
51
+ });
52
+ module.exports = __toCommonJS(app_exports);
20
53
 
21
54
  // src/app/components/Greet.tsx
22
- import axios from "axios";
23
- import React, { useState } from "react";
55
+ var import_axios = __toESM(require("axios"), 1);
56
+ var import_script = __toESM(require("next/script"), 1);
57
+ var import_react = __toESM(require("react"), 1);
24
58
  function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
25
59
  const baseUrl = "http://192.168.1.52:8082/";
26
60
  const masterBaseUrl = "http://192.168.1.52:8081/";
27
- console.log(name, "name");
28
- const [dcToken, setDcToken] = useState("");
29
- const [error, setError] = useState({});
30
- const [toggleQr, setToggleQr] = useState(false);
31
- const [formData, setFormData] = useState({
61
+ console.log(name, "name", window == null ? void 0 : window.DatacapWebToken);
62
+ const [dcToken, setDcToken] = (0, import_react.useState)("");
63
+ const [error, setError] = (0, import_react.useState)({});
64
+ const [toggleQr, setToggleQr] = (0, import_react.useState)(false);
65
+ const [formData, setFormData] = (0, import_react.useState)({
32
66
  name: "John Doe",
33
67
  card_number: "4761 7310 0000 0043",
34
68
  exp_month: "12",
@@ -36,7 +70,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
36
70
  cvv: "201",
37
71
  zip: ""
38
72
  });
39
- const [loading, setLoading] = useState(false);
73
+ const [loading, setLoading] = (0, import_react.useState)(false);
40
74
  const handleSubmit = async (e) => {
41
75
  var _a, _b, _c, _d, _e, _f, _g;
42
76
  e.preventDefault();
@@ -51,7 +85,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
51
85
  if (Object.keys(error).length < 1) {
52
86
  try {
53
87
  setLoading(true);
54
- const res = await axios.post(`${baseUrl}create-widget-order`, data, {
88
+ const res = await import_axios.default.post(`${baseUrl}create-widget-order`, data, {
55
89
  headers: {
56
90
  "Content-Type": "application/json"
57
91
  }
@@ -75,7 +109,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
75
109
  postal_code: formData.zip
76
110
  }, response);
77
111
  try {
78
- const resp = await axios.post(`${masterBaseUrl}quick-pay/${(_b2 = (_a2 = res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.posSalesIdEncode}`, quickData, {
112
+ const resp = await import_axios.default.post(`${masterBaseUrl}quick-pay/${(_b2 = (_a2 = res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.posSalesIdEncode}`, quickData, {
79
113
  headers
80
114
  });
81
115
  setLoading(false);
@@ -198,7 +232,20 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
198
232
  const handlePay = () => {
199
233
  console.log("pay", name, baseUrl, masterBaseUrl);
200
234
  };
201
- return /* @__PURE__ */ React.createElement("div", { className: "bg-black" }, /* @__PURE__ */ React.createElement("div", { className: "container bg-black" }, /* @__PURE__ */ React.createElement("div", { className: "row bg-light no-gutters" }, /* @__PURE__ */ React.createElement("div", { className: "col-sm-12" }, /* @__PURE__ */ React.createElement("div", { className: "bd-example bd-example-tabs right-tabs mttabs m-3 " }, /* @__PURE__ */ React.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React.createElement("button", { className: "close-pop", style: { display: "none" } }, /* @__PURE__ */ React.createElement(
235
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
236
+ import_script.default,
237
+ {
238
+ src: "https://token-cert.dcap.com/v1/client",
239
+ strategy: "beforeInteractive",
240
+ onLoad: () => {
241
+ if (typeof window !== "undefined" && window.DatacapWebToken) {
242
+ console.log("DatacapWebToken", window.DatacapWebToken);
243
+ } else {
244
+ console.log("DatacapWebToken is not loaded yet.");
245
+ }
246
+ }
247
+ }
248
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "bg-black" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "container bg-black" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "row bg-light no-gutters" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "col-sm-12" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "bd-example bd-example-tabs right-tabs mttabs m-3 " }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ import_react.default.createElement("button", { className: "close-pop", style: { display: "none" } }, /* @__PURE__ */ import_react.default.createElement(
202
249
  "svg",
203
250
  {
204
251
  xmlns: "http://www.w3.org/2000/svg",
@@ -206,7 +253,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
206
253
  height: 37,
207
254
  viewBox: "0 0 21 21"
208
255
  },
209
- /* @__PURE__ */ React.createElement(
256
+ /* @__PURE__ */ import_react.default.createElement(
210
257
  "path",
211
258
  {
212
259
  fill: "none",
@@ -216,14 +263,14 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
216
263
  d: "m7.5 7.5l6 6m0-6l-6 6"
217
264
  }
218
265
  )
219
- )), /* @__PURE__ */ React.createElement("div", { className: "row" }, /* @__PURE__ */ React.createElement("div", { className: "comp-name" }, /* @__PURE__ */ React.createElement(
266
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "row" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "comp-name" }, /* @__PURE__ */ import_react.default.createElement(
220
267
  "img",
221
268
  {
222
269
  src: "https://invoicestaging.skysystemz.com/assets/products/65c49a2740ff1.png",
223
270
  alt: "",
224
271
  className: "client-logo"
225
272
  }
226
- )), /* @__PURE__ */ React.createElement("div", { className: "" }, /* @__PURE__ */ React.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React.createElement("div", { className: "header" }, /* @__PURE__ */ React.createElement("h1", null, "Pay"), /* @__PURE__ */ React.createElement(
273
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "header" }, /* @__PURE__ */ import_react.default.createElement("h1", null, "Pay"), /* @__PURE__ */ import_react.default.createElement(
227
274
  "i",
228
275
  {
229
276
  className: "fa fa-qrcode fa-2x",
@@ -231,23 +278,23 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
231
278
  title: "Show QR Code",
232
279
  onClick: () => setToggleQr(!toggleQr)
233
280
  }
234
- )), /* @__PURE__ */ React.createElement("div", { id: "qrCode", style: {
281
+ )), /* @__PURE__ */ import_react.default.createElement("div", { id: "qrCode", style: {
235
282
  display: toggleQr ? "block" : "none"
236
- } }, /* @__PURE__ */ React.createElement(
283
+ } }, /* @__PURE__ */ import_react.default.createElement(
237
284
  "img",
238
285
  {
239
286
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABJaSURBVO3BQY7gRhLAQFLo/3+ZO8c8FSCoemwvMsL+YK21LnhYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65IePVP6miknlpGJSualiUjmpOFGZKk5UpopJ5YuKE5WpYlI5qZhU3qiYVKaKSeWkYlI5qXhD5aRiUvmbKr54WGutSx7WWuuSh7XWuuSHyypuUvlNFW+oTCpTxRsqU8UXKlPFicqJylRxonJScVLxhspU8UbFGxX/pIqbVG56WGutSx7WWuuSh7XWuuSHX6byRsVNKlPFpPJGxW9SmSreqJhUTiomlROVk4ovVL5QOak4UTlR+TdReaPiNz2stdYlD2utdcnDWmtd8sN/XMWkMlVMKlPFpHKiMlWcqJxUTCqTyk0Vk8pJxaQy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qJpWTipOKSWWqOFF5Q+WkYqqYVKaKSeVE5QuVqWJSmSreUJkqJpWTikllqpgq/s0e1lrrkoe11rrkYa21LvnhMpV/UsWkMlVMKicqJxVTxRcqU8VJxRsVJypTxRsqX1S8oTJVnKhMFZPKScVUMalMFScqU8WkclIxqfyTHtZa65KHtda65GGttS6xP1hrrQse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21Lvkf/C+HzIiJCzEAAAAASUVORK5CYII=",
240
287
  alt: "QRCode",
241
288
  srcSet: ""
242
289
  }
243
- )), /* @__PURE__ */ React.createElement(
290
+ )), /* @__PURE__ */ import_react.default.createElement(
244
291
  "form",
245
292
  {
246
293
  id: "PaymentForm",
247
294
  className: "payment-form",
248
295
  onSubmit: handleSubmit
249
296
  },
250
- /* @__PURE__ */ React.createElement(
297
+ /* @__PURE__ */ import_react.default.createElement(
251
298
  "input",
252
299
  {
253
300
  type: "hidden",
@@ -256,8 +303,8 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
256
303
  name: "dctoken"
257
304
  }
258
305
  ),
259
- /* @__PURE__ */ React.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React.createElement("div", { className: "amtleft" }, /* @__PURE__ */ React.createElement("label", { htmlFor: "Amount" }, "Payment amount"), /* @__PURE__ */ React.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React.createElement("span", null, "$"), /* @__PURE__ */ React.createElement("span", null, " 1.00 "))), /* @__PURE__ */ React.createElement("div", { className: "card-row" }, /* @__PURE__ */ React.createElement("span", { className: "visa" }), /* @__PURE__ */ React.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React.createElement("span", { className: "amex" }), /* @__PURE__ */ React.createElement("span", { className: "discover" }))),
260
- /* @__PURE__ */ React.createElement("div", { className: "form-group" }, /* @__PURE__ */ React.createElement("label", { htmlFor: "NameOnCard" }, "Name on card"), /* @__PURE__ */ React.createElement(
306
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "amtleft" }, /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: "Amount" }, "Payment amount"), /* @__PURE__ */ import_react.default.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ import_react.default.createElement("span", null, "$"), /* @__PURE__ */ import_react.default.createElement("span", null, " 1.00 "))), /* @__PURE__ */ import_react.default.createElement("div", { className: "card-row" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "visa" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "mastercard" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "amex" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "discover" }))),
307
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: "NameOnCard" }, "Name on card"), /* @__PURE__ */ import_react.default.createElement(
261
308
  "input",
262
309
  {
263
310
  "data-token": "name",
@@ -269,14 +316,14 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
269
316
  value: formData == null ? void 0 : formData.name,
270
317
  onChange: handleChange
271
318
  }
272
- ), /* @__PURE__ */ React.createElement(
319
+ ), /* @__PURE__ */ import_react.default.createElement(
273
320
  "span",
274
321
  {
275
322
  id: "NameOnCard-error",
276
323
  style: { color: "red" }
277
324
  }
278
325
  )),
279
- /* @__PURE__ */ React.createElement("div", { className: "form-group" }, /* @__PURE__ */ React.createElement(
326
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react.default.createElement(
280
327
  "input",
281
328
  {
282
329
  "data-token": "card_number",
@@ -287,7 +334,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
287
334
  value: handleCardFormat(formData == null ? void 0 : formData.card_number),
288
335
  onChange: handleChange
289
336
  }
290
- ), error.card_number && /* @__PURE__ */ React.createElement(
337
+ ), error.card_number && /* @__PURE__ */ import_react.default.createElement(
291
338
  "span",
292
339
  {
293
340
  id: "card_number-error",
@@ -295,7 +342,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
295
342
  },
296
343
  error.card_number
297
344
  )),
298
- /* @__PURE__ */ React.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React.createElement(
345
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react.default.createElement(
299
346
  "input",
300
347
  {
301
348
  "data-token": "exp_month",
@@ -306,7 +353,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
306
353
  value: formData == null ? void 0 : formData.exp_month,
307
354
  onChange: handleChange
308
355
  }
309
- ), error.exp_month && /* @__PURE__ */ React.createElement(
356
+ ), error.exp_month && /* @__PURE__ */ import_react.default.createElement(
310
357
  "span",
311
358
  {
312
359
  id: "exp_month-error",
@@ -314,7 +361,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
314
361
  },
315
362
  error.exp_month
316
363
  )),
317
- /* @__PURE__ */ React.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React.createElement(
364
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react.default.createElement(
318
365
  "input",
319
366
  {
320
367
  "data-token": "exp_year",
@@ -325,7 +372,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
325
372
  value: formData == null ? void 0 : formData.exp_year,
326
373
  onChange: handleChange
327
374
  }
328
- ), error.exp_year && /* @__PURE__ */ React.createElement(
375
+ ), error.exp_year && /* @__PURE__ */ import_react.default.createElement(
329
376
  "span",
330
377
  {
331
378
  id: "exp_year-error",
@@ -333,7 +380,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
333
380
  },
334
381
  error.exp_year
335
382
  )),
336
- /* @__PURE__ */ React.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React.createElement("div", { className: "input-container" }, /* @__PURE__ */ React.createElement(
383
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react.default.createElement(
337
384
  "input",
338
385
  {
339
386
  "data-token": "cvv",
@@ -344,15 +391,15 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
344
391
  value: formData == null ? void 0 : formData.cvv,
345
392
  onChange: handleChange
346
393
  }
347
- ), /* @__PURE__ */ React.createElement("i", { id: "cvc", className: "fa fa-question-circle" })), error.cvv && /* @__PURE__ */ React.createElement(
394
+ ), /* @__PURE__ */ import_react.default.createElement("i", { id: "cvc", className: "fa fa-question-circle" })), error.cvv && /* @__PURE__ */ import_react.default.createElement(
348
395
  "span",
349
396
  {
350
397
  id: "cvv-error",
351
398
  style: { color: "red" }
352
399
  },
353
400
  error.cvv
354
- ), /* @__PURE__ */ React.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React.createElement("div", { className: "visa-mc-dis-cvc-preview" }))),
355
- /* @__PURE__ */ React.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React.createElement("label", { htmlFor: "ZIPCode" }, "Postal code"), /* @__PURE__ */ React.createElement("div", { className: "input-container" }, /* @__PURE__ */ React.createElement(
401
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "visa-mc-dis-cvc-preview" }))),
402
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: "ZIPCode" }, "Postal code"), /* @__PURE__ */ import_react.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react.default.createElement(
356
403
  "input",
357
404
  {
358
405
  id: "ZIPCode",
@@ -364,7 +411,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
364
411
  value: formData == null ? void 0 : formData.zip,
365
412
  onChange: handleChange
366
413
  }
367
- ), /* @__PURE__ */ React.createElement(
414
+ ), /* @__PURE__ */ import_react.default.createElement(
368
415
  "a",
369
416
  {
370
417
  tabIndex: 0,
@@ -374,8 +421,8 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
374
421
  "data-placement": "left",
375
422
  "data-content": "Enter the ZIP/Postal code for your credit card billing address."
376
423
  },
377
- /* @__PURE__ */ React.createElement("i", { className: "fa fa-question-circle" })
378
- ), /* @__PURE__ */ React.createElement(
424
+ /* @__PURE__ */ import_react.default.createElement("i", { className: "fa fa-question-circle" })
425
+ ), /* @__PURE__ */ import_react.default.createElement(
379
426
  "span",
380
427
  {
381
428
  id: "ZIPCode-error",
@@ -383,17 +430,17 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
383
430
  },
384
431
  "This field is required"
385
432
  ))),
386
- /* @__PURE__ */ React.createElement(
433
+ /* @__PURE__ */ import_react.default.createElement(
387
434
  "button",
388
435
  {
389
436
  id: "PayButton",
390
437
  className: "btn btn-block btn-success submit-button",
391
438
  type: "submit"
392
439
  },
393
- /* @__PURE__ */ React.createElement("span", { className: "submit-button-lock" }),
394
- /* @__PURE__ */ React.createElement("span", { className: "align-middle" }, "Pay $1.00")
440
+ /* @__PURE__ */ import_react.default.createElement("span", { className: "submit-button-lock" }),
441
+ /* @__PURE__ */ import_react.default.createElement("span", { className: "align-middle" }, "Pay $1.00")
395
442
  )
396
- ), /* @__PURE__ */ React.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React.createElement(
443
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react.default.createElement(
397
444
  "svg",
398
445
  {
399
446
  xmlns: "http://www.w3.org/2000/svg",
@@ -401,22 +448,23 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
401
448
  height: 20,
402
449
  viewBox: "0 0 26 26"
403
450
  },
404
- /* @__PURE__ */ React.createElement(
451
+ /* @__PURE__ */ import_react.default.createElement(
405
452
  "path",
406
453
  {
407
454
  fill: "currentColor",
408
455
  d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
409
456
  }
410
457
  )
411
- ), "Secure payments powered by Fractal", /* @__PURE__ */ React.createElement(
458
+ ), "Secure payments powered by Fractal", /* @__PURE__ */ import_react.default.createElement(
412
459
  "img",
413
460
  {
414
461
  src: "https://ui.fractalpay.com/favicon.ico",
415
462
  alt: "Fractal logo",
416
463
  className: "powered-logo"
417
464
  }
418
- )))))))))));
465
+ ))))))))))));
419
466
  }
420
- export {
467
+ // Annotate the CommonJS export names for ESM import in node:
468
+ 0 && (module.exports = {
421
469
  PaywithFractal
422
- };
470
+ });