@pinerohit11/testwidget 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/.next/cache/webpack/client-development/1.pack.gz +0 -0
- package/.next/cache/webpack/client-development/10.pack.gz +0 -0
- package/.next/cache/webpack/client-development/2.pack.gz +0 -0
- package/.next/cache/webpack/client-development/3.pack.gz +0 -0
- package/.next/cache/webpack/client-development/4.pack.gz +0 -0
- package/.next/cache/webpack/client-development/5.pack.gz +0 -0
- package/.next/cache/webpack/client-development/6.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
- package/.next/cache/webpack/server-development/0.pack.gz +0 -0
- package/.next/cache/webpack/server-development/1.pack.gz +0 -0
- package/.next/cache/webpack/server-development/10.pack.gz +0 -0
- package/.next/cache/webpack/server-development/11.pack.gz +0 -0
- package/.next/cache/webpack/server-development/12.pack.gz +0 -0
- package/.next/cache/webpack/server-development/13.pack.gz +0 -0
- package/.next/cache/webpack/server-development/2.pack.gz +0 -0
- package/.next/cache/webpack/server-development/3.pack.gz +0 -0
- package/.next/cache/webpack/server-development/4.pack.gz +0 -0
- package/.next/cache/webpack/server-development/6.pack.gz +0 -0
- package/.next/cache/webpack/server-development/7.pack.gz +0 -0
- package/.next/cache/webpack/server-development/9.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
- package/.next/server/app/page.js +1 -1
- package/.next/server/vendor-chunks/next.js +5 -5
- package/.next/server/webpack-runtime.js +1 -1
- package/.next/static/chunks/app/layout.js +3 -3
- package/.next/static/chunks/app/page.js +45 -1
- package/.next/static/chunks/app-pages-internals.js +1 -1
- package/.next/static/chunks/main-app.js +5 -5
- package/.next/static/chunks/webpack.js +1 -1
- package/.next/static/webpack/app/{layout.2d35c83f0037d0e3.hot-update.js → layout.2f388e6b66349419.hot-update.js} +2 -2
- package/.next/static/webpack/app/{layout.eabe83a6bd680d72.hot-update.js → layout.5ff03b504f4dc152.hot-update.js} +2 -2
- package/.next/static/webpack/app/{layout.e5533e94660e066c.hot-update.js → layout.b62381d4132a6544.hot-update.js} +2 -2
- package/.next/static/webpack/app/layout.e1d7a6f7992b7b70.hot-update.js +31 -0
- package/.next/static/webpack/app/{page.4a9375b8e793c38e.hot-update.js → page.2e7b4aa2b22e65d9.hot-update.js} +1 -1
- package/.next/static/webpack/app/page.548fbaf72ba2981b.hot-update.js +62 -0
- package/.next/static/webpack/app/{page.81f6646c28a82804.hot-update.js → page.bb7fb7004da6fd3f.hot-update.js} +1 -1
- package/.next/static/webpack/{webpack.1f1fe21203e4c68b.hot-update.js → webpack.2e7b4aa2b22e65d9.hot-update.js} +1 -1
- package/.next/static/webpack/{webpack.213fdb98a15e3455.hot-update.js → webpack.2f388e6b66349419.hot-update.js} +1 -1
- package/.next/static/webpack/{webpack.0463e0d10a76f0e1.hot-update.js → webpack.548fbaf72ba2981b.hot-update.js} +1 -1
- package/.next/static/webpack/{webpack.14eb1ee43b84ca5f.hot-update.js → webpack.5ff03b504f4dc152.hot-update.js} +1 -1
- package/.next/static/webpack/webpack.b62381d4132a6544.hot-update.js +18 -0
- package/.next/static/webpack/webpack.bb7fb7004da6fd3f.hot-update.js +18 -0
- package/.next/static/webpack/webpack.e1d7a6f7992b7b70.hot-update.js +18 -0
- package/.next/trace +20 -116
- package/dist/{index.mjs → index.cjs} +91 -43
- package/dist/index.js +57 -77
- package/package.json +4 -3
- package/.next/static/webpack/1f1fe21203e4c68b.webpack.hot-update.json +0 -1
- package/.next/static/webpack/255aea9c6475b746.webpack.hot-update.json +0 -1
- package/.next/static/webpack/309e2d9634152b60.webpack.hot-update.json +0 -1
- package/.next/static/webpack/329e12e211658503.webpack.hot-update.json +0 -1
- package/.next/static/webpack/4a9375b8e793c38e.webpack.hot-update.json +0 -1
- package/.next/static/webpack/500c5340fb4c6cd5.webpack.hot-update.json +0 -1
- package/.next/static/webpack/5031cfaa2d3d892d.webpack.hot-update.json +0 -1
- package/.next/static/webpack/51f0e2a03e8d18a6.webpack.hot-update.json +0 -1
- package/.next/static/webpack/5ad56258b0e90bef.webpack.hot-update.json +0 -1
- package/.next/static/webpack/5c7e83ae2adb882e.webpack.hot-update.json +0 -1
- package/.next/static/webpack/5c8dada5acec56f7.webpack.hot-update.json +0 -1
- package/.next/static/webpack/5e709b5694e5ad26.webpack.hot-update.json +0 -1
- package/.next/static/webpack/6246449706d4b449.webpack.hot-update.json +0 -1
- package/.next/static/webpack/6498563004a57942.webpack.hot-update.json +0 -1
- package/.next/static/webpack/65c43818d6f690fe.webpack.hot-update.json +0 -1
- package/.next/static/webpack/681ce36f0645d689.webpack.hot-update.json +0 -1
- package/.next/static/webpack/6f00711e3d258954.webpack.hot-update.json +0 -1
- package/.next/static/webpack/81f6646c28a82804.webpack.hot-update.json +0 -1
- package/.next/static/webpack/8522f92ca02de0c8.webpack.hot-update.json +0 -1
- package/.next/static/webpack/893ddc36c19de1ea.webpack.hot-update.json +0 -1
- package/.next/static/webpack/896c5501cdf537b3.webpack.hot-update.json +0 -1
- package/.next/static/webpack/8cc442b31ec27e60.webpack.hot-update.json +0 -1
- package/.next/static/webpack/8ed684f639abe58b.webpack.hot-update.json +0 -1
- package/.next/static/webpack/97615cc2d368fba4.webpack.hot-update.json +0 -1
- package/.next/static/webpack/9775f51aeb80d3b2.webpack.hot-update.json +0 -1
- package/.next/static/webpack/9bbf208246a2eebb.webpack.hot-update.json +0 -1
- package/.next/static/webpack/a74f1afad4b7a8a2.webpack.hot-update.json +0 -1
- package/.next/static/webpack/aed2ae614f6605ed.webpack.hot-update.json +0 -1
- package/.next/static/webpack/app/layout.228b69a2a9a20202.hot-update.js +0 -22
- package/.next/static/webpack/app/layout.456a8cdc4e32bb1b.hot-update.js +0 -22
- package/.next/static/webpack/app/layout.8894e91a6b3fd5cb.hot-update.js +0 -22
- package/.next/static/webpack/app/layout.a74f1afad4b7a8a2.hot-update.js +0 -98
- package/.next/static/webpack/app/layout.bb4485d5c54b0ed1.hot-update.js +0 -22
- package/.next/static/webpack/app/layout.f3f79b681eb03ce7.hot-update.js +0 -22
- package/.next/static/webpack/app/page.0463e0d10a76f0e1.hot-update.js +0 -22
- package/.next/static/webpack/app/page.14eb1ee43b84ca5f.hot-update.js +0 -22
- package/.next/static/webpack/app/page.1f1fe21203e4c68b.hot-update.js +0 -21
- package/.next/static/webpack/app/page.213fdb98a15e3455.hot-update.js +0 -22
- package/.next/static/webpack/app/page.255aea9c6475b746.hot-update.js +0 -22
- package/.next/static/webpack/app/page.309e2d9634152b60.hot-update.js +0 -22
- package/.next/static/webpack/app/page.329e12e211658503.hot-update.js +0 -22
- package/.next/static/webpack/app/page.500c5340fb4c6cd5.hot-update.js +0 -22
- package/.next/static/webpack/app/page.5031cfaa2d3d892d.hot-update.js +0 -22
- package/.next/static/webpack/app/page.51f0e2a03e8d18a6.hot-update.js +0 -22
- package/.next/static/webpack/app/page.5ad56258b0e90bef.hot-update.js +0 -22
- package/.next/static/webpack/app/page.5c7e83ae2adb882e.hot-update.js +0 -22
- package/.next/static/webpack/app/page.5c8dada5acec56f7.hot-update.js +0 -22
- package/.next/static/webpack/app/page.5e709b5694e5ad26.hot-update.js +0 -22
- package/.next/static/webpack/app/page.6246449706d4b449.hot-update.js +0 -22
- package/.next/static/webpack/app/page.6498563004a57942.hot-update.js +0 -22
- package/.next/static/webpack/app/page.65c43818d6f690fe.hot-update.js +0 -22
- package/.next/static/webpack/app/page.681ce36f0645d689.hot-update.js +0 -22
- package/.next/static/webpack/app/page.6f00711e3d258954.hot-update.js +0 -22
- package/.next/static/webpack/app/page.8522f92ca02de0c8.hot-update.js +0 -54
- package/.next/static/webpack/app/page.893ddc36c19de1ea.hot-update.js +0 -22
- package/.next/static/webpack/app/page.896c5501cdf537b3.hot-update.js +0 -22
- package/.next/static/webpack/app/page.8cc442b31ec27e60.hot-update.js +0 -22
- package/.next/static/webpack/app/page.8ed684f639abe58b.hot-update.js +0 -603
- package/.next/static/webpack/app/page.97615cc2d368fba4.hot-update.js +0 -22
- package/.next/static/webpack/app/page.9775f51aeb80d3b2.hot-update.js +0 -22
- package/.next/static/webpack/app/page.9bbf208246a2eebb.hot-update.js +0 -22
- package/.next/static/webpack/app/page.aed2ae614f6605ed.hot-update.js +0 -22
- package/.next/static/webpack/app/page.b4b25d4db23dbc5a.hot-update.js +0 -22
- package/.next/static/webpack/app/page.b728482f9b82d921.hot-update.js +0 -571
- package/.next/static/webpack/app/page.b7a42026022db1f3.hot-update.js +0 -22
- package/.next/static/webpack/app/page.b90118a4d57e76ad.hot-update.js +0 -54
- package/.next/static/webpack/app/page.c0a3bb4128bc91cb.hot-update.js +0 -22
- package/.next/static/webpack/app/page.c5880161e6d8c38b.hot-update.js +0 -22
- package/.next/static/webpack/app/page.c91faac87e6e5e7d.hot-update.js +0 -21
- package/.next/static/webpack/app/page.cb281b61855d3afc.hot-update.js +0 -22
- package/.next/static/webpack/app/page.cc723ec7106788b2.hot-update.js +0 -22
- package/.next/static/webpack/app/page.d00ead7a6d6dd27a.hot-update.js +0 -22
- package/.next/static/webpack/app/page.d5492b6ce3aff19a.hot-update.js +0 -22
- package/.next/static/webpack/app/page.e1a0b7850e69b555.hot-update.js +0 -22
- package/.next/static/webpack/app/page.e6094793daace46f.hot-update.js +0 -22
- package/.next/static/webpack/app/page.ef9190246958611b.hot-update.js +0 -22
- package/.next/static/webpack/b4b25d4db23dbc5a.webpack.hot-update.json +0 -1
- package/.next/static/webpack/b728482f9b82d921.webpack.hot-update.json +0 -1
- package/.next/static/webpack/b7a42026022db1f3.webpack.hot-update.json +0 -1
- package/.next/static/webpack/b90118a4d57e76ad.webpack.hot-update.json +0 -1
- package/.next/static/webpack/bb4485d5c54b0ed1.webpack.hot-update.json +0 -1
- package/.next/static/webpack/c0a3bb4128bc91cb.webpack.hot-update.json +0 -1
- package/.next/static/webpack/c5880161e6d8c38b.webpack.hot-update.json +0 -1
- package/.next/static/webpack/c91faac87e6e5e7d.webpack.hot-update.json +0 -1
- package/.next/static/webpack/cb281b61855d3afc.webpack.hot-update.json +0 -1
- package/.next/static/webpack/cc723ec7106788b2.webpack.hot-update.json +0 -1
- package/.next/static/webpack/d00ead7a6d6dd27a.webpack.hot-update.json +0 -1
- package/.next/static/webpack/d5492b6ce3aff19a.webpack.hot-update.json +0 -1
- package/.next/static/webpack/e1a0b7850e69b555.webpack.hot-update.json +0 -1
- package/.next/static/webpack/e5533e94660e066c.webpack.hot-update.json +0 -1
- package/.next/static/webpack/e6094793daace46f.webpack.hot-update.json +0 -1
- package/.next/static/webpack/eabe83a6bd680d72.webpack.hot-update.json +0 -1
- package/.next/static/webpack/ef9190246958611b.webpack.hot-update.json +0 -1
- package/.next/static/webpack/f3f79b681eb03ce7.webpack.hot-update.json +0 -1
- package/.next/static/webpack/webpack.228b69a2a9a20202.hot-update.js +0 -18
- package/.next/static/webpack/webpack.255aea9c6475b746.hot-update.js +0 -18
- package/.next/static/webpack/webpack.2d35c83f0037d0e3.hot-update.js +0 -18
- package/.next/static/webpack/webpack.309e2d9634152b60.hot-update.js +0 -18
- package/.next/static/webpack/webpack.329e12e211658503.hot-update.js +0 -18
- package/.next/static/webpack/webpack.456a8cdc4e32bb1b.hot-update.js +0 -18
- package/.next/static/webpack/webpack.4a9375b8e793c38e.hot-update.js +0 -18
- package/.next/static/webpack/webpack.500c5340fb4c6cd5.hot-update.js +0 -18
- package/.next/static/webpack/webpack.5031cfaa2d3d892d.hot-update.js +0 -18
- package/.next/static/webpack/webpack.51f0e2a03e8d18a6.hot-update.js +0 -18
- package/.next/static/webpack/webpack.5ad56258b0e90bef.hot-update.js +0 -18
- package/.next/static/webpack/webpack.5c7e83ae2adb882e.hot-update.js +0 -18
- package/.next/static/webpack/webpack.5c8dada5acec56f7.hot-update.js +0 -18
- package/.next/static/webpack/webpack.5e709b5694e5ad26.hot-update.js +0 -18
- package/.next/static/webpack/webpack.6246449706d4b449.hot-update.js +0 -18
- package/.next/static/webpack/webpack.6498563004a57942.hot-update.js +0 -18
- package/.next/static/webpack/webpack.65c43818d6f690fe.hot-update.js +0 -18
- package/.next/static/webpack/webpack.681ce36f0645d689.hot-update.js +0 -18
- package/.next/static/webpack/webpack.6f00711e3d258954.hot-update.js +0 -18
- package/.next/static/webpack/webpack.81f6646c28a82804.hot-update.js +0 -18
- package/.next/static/webpack/webpack.8522f92ca02de0c8.hot-update.js +0 -30
- package/.next/static/webpack/webpack.8894e91a6b3fd5cb.hot-update.js +0 -18
- package/.next/static/webpack/webpack.893ddc36c19de1ea.hot-update.js +0 -18
- package/.next/static/webpack/webpack.896c5501cdf537b3.hot-update.js +0 -18
- package/.next/static/webpack/webpack.8cc442b31ec27e60.hot-update.js +0 -18
- package/.next/static/webpack/webpack.8ed684f639abe58b.hot-update.js +0 -18
- package/.next/static/webpack/webpack.97615cc2d368fba4.hot-update.js +0 -18
- package/.next/static/webpack/webpack.9775f51aeb80d3b2.hot-update.js +0 -18
- package/.next/static/webpack/webpack.9bbf208246a2eebb.hot-update.js +0 -18
- package/.next/static/webpack/webpack.a74f1afad4b7a8a2.hot-update.js +0 -18
- package/.next/static/webpack/webpack.aed2ae614f6605ed.hot-update.js +0 -18
- package/.next/static/webpack/webpack.b4b25d4db23dbc5a.hot-update.js +0 -18
- package/.next/static/webpack/webpack.b728482f9b82d921.hot-update.js +0 -18
- package/.next/static/webpack/webpack.b7a42026022db1f3.hot-update.js +0 -18
- package/.next/static/webpack/webpack.b90118a4d57e76ad.hot-update.js +0 -30
- package/.next/static/webpack/webpack.bb4485d5c54b0ed1.hot-update.js +0 -18
- package/.next/static/webpack/webpack.c0a3bb4128bc91cb.hot-update.js +0 -18
- package/.next/static/webpack/webpack.c5880161e6d8c38b.hot-update.js +0 -18
- package/.next/static/webpack/webpack.c91faac87e6e5e7d.hot-update.js +0 -18
- package/.next/static/webpack/webpack.cb281b61855d3afc.hot-update.js +0 -18
- package/.next/static/webpack/webpack.cc723ec7106788b2.hot-update.js +0 -18
- package/.next/static/webpack/webpack.d00ead7a6d6dd27a.hot-update.js +0 -18
- package/.next/static/webpack/webpack.d5492b6ce3aff19a.hot-update.js +0 -18
- package/.next/static/webpack/webpack.e1a0b7850e69b555.hot-update.js +0 -18
- package/.next/static/webpack/webpack.e5533e94660e066c.hot-update.js +0 -18
- package/.next/static/webpack/webpack.e6094793daace46f.hot-update.js +0 -18
- package/.next/static/webpack/webpack.eabe83a6bd680d72.hot-update.js +0 -18
- package/.next/static/webpack/webpack.ef9190246958611b.hot-update.js +0 -18
- package/.next/static/webpack/webpack.f3f79b681eb03ce7.hot-update.js +0 -18
- package/.vscode/settings.json +0 -22
- /package/.next/static/webpack/{0463e0d10a76f0e1.webpack.hot-update.json → 2e7b4aa2b22e65d9.webpack.hot-update.json} +0 -0
- /package/.next/static/webpack/{228b69a2a9a20202.webpack.hot-update.json → 2f388e6b66349419.webpack.hot-update.json} +0 -0
- /package/.next/static/webpack/{14eb1ee43b84ca5f.webpack.hot-update.json → 548fbaf72ba2981b.webpack.hot-update.json} +0 -0
- /package/.next/static/webpack/{2d35c83f0037d0e3.webpack.hot-update.json → 5ff03b504f4dc152.webpack.hot-update.json} +0 -0
- /package/.next/static/webpack/{456a8cdc4e32bb1b.webpack.hot-update.json → b62381d4132a6544.webpack.hot-update.json} +0 -0
- /package/.next/static/webpack/{213fdb98a15e3455.webpack.hot-update.json → bb7fb7004da6fd3f.webpack.hot-update.json} +0 -0
- /package/.next/static/webpack/{8894e91a6b3fd5cb.webpack.hot-update.json → e1d7a6f7992b7b70.webpack.hot-update.json} +0 -0
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
1
|
var __defProp = Object.defineProperty;
|
|
4
2
|
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
3
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
10
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
7
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -22,46 +17,19 @@ var __spreadValues = (a, b) => {
|
|
|
22
17
|
return a;
|
|
23
18
|
};
|
|
24
19
|
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);
|
|
53
20
|
|
|
54
21
|
// src/app/components/Greet.tsx
|
|
55
|
-
|
|
56
|
-
|
|
22
|
+
import axios from "axios";
|
|
23
|
+
import Script from "next/script";
|
|
24
|
+
import React, { useState } from "react";
|
|
57
25
|
function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
58
26
|
const baseUrl = "http://192.168.1.52:8082/";
|
|
59
27
|
const masterBaseUrl = "http://192.168.1.52:8081/";
|
|
60
|
-
console.log(name, "name");
|
|
61
|
-
const [dcToken, setDcToken] =
|
|
62
|
-
const [error, setError] =
|
|
63
|
-
const [toggleQr, setToggleQr] =
|
|
64
|
-
const [formData, setFormData] =
|
|
28
|
+
console.log(name, "name", window == null ? void 0 : window.DatacapWebToken);
|
|
29
|
+
const [dcToken, setDcToken] = useState("");
|
|
30
|
+
const [error, setError] = useState({});
|
|
31
|
+
const [toggleQr, setToggleQr] = useState(false);
|
|
32
|
+
const [formData, setFormData] = useState({
|
|
65
33
|
name: "John Doe",
|
|
66
34
|
card_number: "4761 7310 0000 0043",
|
|
67
35
|
exp_month: "12",
|
|
@@ -69,7 +37,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
69
37
|
cvv: "201",
|
|
70
38
|
zip: ""
|
|
71
39
|
});
|
|
72
|
-
const [loading, setLoading] =
|
|
40
|
+
const [loading, setLoading] = useState(false);
|
|
73
41
|
const handleSubmit = async (e) => {
|
|
74
42
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
75
43
|
e.preventDefault();
|
|
@@ -84,7 +52,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
84
52
|
if (Object.keys(error).length < 1) {
|
|
85
53
|
try {
|
|
86
54
|
setLoading(true);
|
|
87
|
-
const res = await
|
|
55
|
+
const res = await axios.post(`${baseUrl}create-widget-order`, data, {
|
|
88
56
|
headers: {
|
|
89
57
|
"Content-Type": "application/json"
|
|
90
58
|
}
|
|
@@ -108,7 +76,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
108
76
|
postal_code: formData.zip
|
|
109
77
|
}, response);
|
|
110
78
|
try {
|
|
111
|
-
const resp = await
|
|
79
|
+
const resp = await axios.post(`${masterBaseUrl}quick-pay/${(_b2 = (_a2 = res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.posSalesIdEncode}`, quickData, {
|
|
112
80
|
headers
|
|
113
81
|
});
|
|
114
82
|
setLoading(false);
|
|
@@ -231,7 +199,20 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
231
199
|
const handlePay = () => {
|
|
232
200
|
console.log("pay", name, baseUrl, masterBaseUrl);
|
|
233
201
|
};
|
|
234
|
-
return /* @__PURE__ */
|
|
202
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
203
|
+
Script,
|
|
204
|
+
{
|
|
205
|
+
src: "https://token-cert.dcap.com/v1/client",
|
|
206
|
+
strategy: "beforeInteractive",
|
|
207
|
+
onLoad: () => {
|
|
208
|
+
if (typeof window !== "undefined" && window.DatacapWebToken) {
|
|
209
|
+
console.log("DatacapWebToken", window.DatacapWebToken);
|
|
210
|
+
} else {
|
|
211
|
+
console.log("DatacapWebToken is not loaded yet.");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
), /* @__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
216
|
"svg",
|
|
236
217
|
{
|
|
237
218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -239,7 +220,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
239
220
|
height: 37,
|
|
240
221
|
viewBox: "0 0 21 21"
|
|
241
222
|
},
|
|
242
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ React.createElement(
|
|
243
224
|
"path",
|
|
244
225
|
{
|
|
245
226
|
fill: "none",
|
|
@@ -249,14 +230,14 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
249
230
|
d: "m7.5 7.5l6 6m0-6l-6 6"
|
|
250
231
|
}
|
|
251
232
|
)
|
|
252
|
-
)), /* @__PURE__ */
|
|
233
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "row" }, /* @__PURE__ */ React.createElement("div", { className: "comp-name" }, /* @__PURE__ */ React.createElement(
|
|
253
234
|
"img",
|
|
254
235
|
{
|
|
255
236
|
src: "https://invoicestaging.skysystemz.com/assets/products/65c49a2740ff1.png",
|
|
256
237
|
alt: "",
|
|
257
238
|
className: "client-logo"
|
|
258
239
|
}
|
|
259
|
-
)), /* @__PURE__ */
|
|
240
|
+
)), /* @__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(
|
|
260
241
|
"i",
|
|
261
242
|
{
|
|
262
243
|
className: "fa fa-qrcode fa-2x",
|
|
@@ -264,23 +245,23 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
264
245
|
title: "Show QR Code",
|
|
265
246
|
onClick: () => setToggleQr(!toggleQr)
|
|
266
247
|
}
|
|
267
|
-
)), /* @__PURE__ */
|
|
248
|
+
)), /* @__PURE__ */ React.createElement("div", { id: "qrCode", style: {
|
|
268
249
|
display: toggleQr ? "block" : "none"
|
|
269
|
-
} }, /* @__PURE__ */
|
|
250
|
+
} }, /* @__PURE__ */ React.createElement(
|
|
270
251
|
"img",
|
|
271
252
|
{
|
|
272
253
|
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABJaSURBVO3BQY7gRhLAQFLo/3+ZO8c8FSCoemwvMsL+YK21LnhYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65IePVP6miknlpGJSualiUjmpOFGZKk5UpopJ5YuKE5WpYlI5qZhU3qiYVKaKSeWkYlI5qXhD5aRiUvmbKr54WGutSx7WWuuSh7XWuuSHyypuUvlNFW+oTCpTxRsqU8UXKlPFicqJylRxonJScVLxhspU8UbFGxX/pIqbVG56WGutSx7WWuuSh7XWuuSHX6byRsVNKlPFpPJGxW9SmSreqJhUTiomlROVk4ovVL5QOak4UTlR+TdReaPiNz2stdYlD2utdcnDWmtd8sN/XMWkMlVMKlPFpHKiMlWcqJxUTCqTyk0Vk8pJxaQyVUwqN1WcqEwVk8qk8kXFpPJGxaTy/+RhrbUueVhrrUse1lrrkh/+z6lMFScVN1VMKpPKVDGpTBWTyknFFyonKlPFpDJVTConKjdVnKhMFZPKScWkMqlMFf9PHtZa65KHtda65GGttS754ZdV/CaVqWJS+UJlqjhROamYVCaVE5WpYlKZKt6oeEPlpGJSmSreUJkq3lCZKt6omFTeqLip4t/kYa21LnlYa61LHtZa65IfLlP5L1GZKt5QmSomlTcqJpWpYlKZKiaVqeINlaniDZWpYlKZKiaVqWJSmSpOKiaVqWJ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ORK5CYII=",
|
|
273
254
|
alt: "QRCode",
|
|
274
255
|
srcSet: ""
|
|
275
256
|
}
|
|
276
|
-
)), /* @__PURE__ */
|
|
257
|
+
)), /* @__PURE__ */ React.createElement(
|
|
277
258
|
"form",
|
|
278
259
|
{
|
|
279
260
|
id: "PaymentForm",
|
|
280
261
|
className: "payment-form",
|
|
281
262
|
onSubmit: handleSubmit
|
|
282
263
|
},
|
|
283
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ React.createElement(
|
|
284
265
|
"input",
|
|
285
266
|
{
|
|
286
267
|
type: "hidden",
|
|
@@ -289,8 +270,8 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
289
270
|
name: "dctoken"
|
|
290
271
|
}
|
|
291
272
|
),
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__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" }))),
|
|
274
|
+
/* @__PURE__ */ React.createElement("div", { className: "form-group" }, /* @__PURE__ */ React.createElement("label", { htmlFor: "NameOnCard" }, "Name on card"), /* @__PURE__ */ React.createElement(
|
|
294
275
|
"input",
|
|
295
276
|
{
|
|
296
277
|
"data-token": "name",
|
|
@@ -302,14 +283,14 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
302
283
|
value: formData == null ? void 0 : formData.name,
|
|
303
284
|
onChange: handleChange
|
|
304
285
|
}
|
|
305
|
-
), /* @__PURE__ */
|
|
286
|
+
), /* @__PURE__ */ React.createElement(
|
|
306
287
|
"span",
|
|
307
288
|
{
|
|
308
289
|
id: "NameOnCard-error",
|
|
309
290
|
style: { color: "red" }
|
|
310
291
|
}
|
|
311
292
|
)),
|
|
312
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ React.createElement("div", { className: "form-group" }, /* @__PURE__ */ React.createElement(
|
|
313
294
|
"input",
|
|
314
295
|
{
|
|
315
296
|
"data-token": "card_number",
|
|
@@ -320,7 +301,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
320
301
|
value: handleCardFormat(formData == null ? void 0 : formData.card_number),
|
|
321
302
|
onChange: handleChange
|
|
322
303
|
}
|
|
323
|
-
), error.card_number && /* @__PURE__ */
|
|
304
|
+
), error.card_number && /* @__PURE__ */ React.createElement(
|
|
324
305
|
"span",
|
|
325
306
|
{
|
|
326
307
|
id: "card_number-error",
|
|
@@ -328,7 +309,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
328
309
|
},
|
|
329
310
|
error.card_number
|
|
330
311
|
)),
|
|
331
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ React.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React.createElement(
|
|
332
313
|
"input",
|
|
333
314
|
{
|
|
334
315
|
"data-token": "exp_month",
|
|
@@ -339,7 +320,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
339
320
|
value: formData == null ? void 0 : formData.exp_month,
|
|
340
321
|
onChange: handleChange
|
|
341
322
|
}
|
|
342
|
-
), error.exp_month && /* @__PURE__ */
|
|
323
|
+
), error.exp_month && /* @__PURE__ */ React.createElement(
|
|
343
324
|
"span",
|
|
344
325
|
{
|
|
345
326
|
id: "exp_month-error",
|
|
@@ -347,7 +328,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
347
328
|
},
|
|
348
329
|
error.exp_month
|
|
349
330
|
)),
|
|
350
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ React.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React.createElement(
|
|
351
332
|
"input",
|
|
352
333
|
{
|
|
353
334
|
"data-token": "exp_year",
|
|
@@ -358,7 +339,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
358
339
|
value: formData == null ? void 0 : formData.exp_year,
|
|
359
340
|
onChange: handleChange
|
|
360
341
|
}
|
|
361
|
-
), error.exp_year && /* @__PURE__ */
|
|
342
|
+
), error.exp_year && /* @__PURE__ */ React.createElement(
|
|
362
343
|
"span",
|
|
363
344
|
{
|
|
364
345
|
id: "exp_year-error",
|
|
@@ -366,7 +347,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
366
347
|
},
|
|
367
348
|
error.exp_year
|
|
368
349
|
)),
|
|
369
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ React.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React.createElement("div", { className: "input-container" }, /* @__PURE__ */ React.createElement(
|
|
370
351
|
"input",
|
|
371
352
|
{
|
|
372
353
|
"data-token": "cvv",
|
|
@@ -377,15 +358,15 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
377
358
|
value: formData == null ? void 0 : formData.cvv,
|
|
378
359
|
onChange: handleChange
|
|
379
360
|
}
|
|
380
|
-
), /* @__PURE__ */
|
|
361
|
+
), /* @__PURE__ */ React.createElement("i", { id: "cvc", className: "fa fa-question-circle" })), error.cvv && /* @__PURE__ */ React.createElement(
|
|
381
362
|
"span",
|
|
382
363
|
{
|
|
383
364
|
id: "cvv-error",
|
|
384
365
|
style: { color: "red" }
|
|
385
366
|
},
|
|
386
367
|
error.cvv
|
|
387
|
-
), /* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */
|
|
368
|
+
), /* @__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" }))),
|
|
369
|
+
/* @__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(
|
|
389
370
|
"input",
|
|
390
371
|
{
|
|
391
372
|
id: "ZIPCode",
|
|
@@ -397,7 +378,7 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
397
378
|
value: formData == null ? void 0 : formData.zip,
|
|
398
379
|
onChange: handleChange
|
|
399
380
|
}
|
|
400
|
-
), /* @__PURE__ */
|
|
381
|
+
), /* @__PURE__ */ React.createElement(
|
|
401
382
|
"a",
|
|
402
383
|
{
|
|
403
384
|
tabIndex: 0,
|
|
@@ -407,8 +388,8 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
407
388
|
"data-placement": "left",
|
|
408
389
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
|
409
390
|
},
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
), /* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ React.createElement("i", { className: "fa fa-question-circle" })
|
|
392
|
+
), /* @__PURE__ */ React.createElement(
|
|
412
393
|
"span",
|
|
413
394
|
{
|
|
414
395
|
id: "ZIPCode-error",
|
|
@@ -416,17 +397,17 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
416
397
|
},
|
|
417
398
|
"This field is required"
|
|
418
399
|
))),
|
|
419
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ React.createElement(
|
|
420
401
|
"button",
|
|
421
402
|
{
|
|
422
403
|
id: "PayButton",
|
|
423
404
|
className: "btn btn-block btn-success submit-button",
|
|
424
405
|
type: "submit"
|
|
425
406
|
},
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ React.createElement("span", { className: "submit-button-lock" }),
|
|
408
|
+
/* @__PURE__ */ React.createElement("span", { className: "align-middle" }, "Pay $1.00")
|
|
428
409
|
)
|
|
429
|
-
), /* @__PURE__ */
|
|
410
|
+
), /* @__PURE__ */ React.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React.createElement(
|
|
430
411
|
"svg",
|
|
431
412
|
{
|
|
432
413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -434,23 +415,22 @@ function PaywithFractal({ name, amount, orderId, fractalPayClientKey }) {
|
|
|
434
415
|
height: 20,
|
|
435
416
|
viewBox: "0 0 26 26"
|
|
436
417
|
},
|
|
437
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ React.createElement(
|
|
438
419
|
"path",
|
|
439
420
|
{
|
|
440
421
|
fill: "currentColor",
|
|
441
422
|
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"
|
|
442
423
|
}
|
|
443
424
|
)
|
|
444
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
|
425
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ React.createElement(
|
|
445
426
|
"img",
|
|
446
427
|
{
|
|
447
428
|
src: "https://ui.fractalpay.com/favicon.ico",
|
|
448
429
|
alt: "Fractal logo",
|
|
449
430
|
className: "powered-logo"
|
|
450
431
|
}
|
|
451
|
-
)))))))))));
|
|
432
|
+
))))))))))));
|
|
452
433
|
}
|
|
453
|
-
|
|
454
|
-
0 && (module.exports = {
|
|
434
|
+
export {
|
|
455
435
|
PaywithFractal
|
|
456
|
-
}
|
|
436
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinerohit11/testwidget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "next dev",
|
|
@@ -37,5 +37,6 @@
|
|
|
37
37
|
"typescript",
|
|
38
38
|
"tailwindcss"
|
|
39
39
|
],
|
|
40
|
-
"main": "dist/index.js"
|
|
41
|
-
|
|
40
|
+
"main": "dist/index.js",
|
|
41
|
+
"type": "module"
|
|
42
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":["(app-pages-browser)/./node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js?modules=%7B%22request%22%3A%22C%3A%5C%5CUsers%5C%5CPinesucceed%5C%5CDesktop%5C%5CWorkSpace%5C%5Ctestwidget%5C%5Csrc%5C%5Capp%5C%5Ccomponents%5C%5CGreet.tsx%22%2C%22ids%22%3A%5B%22PaywithFractal%22%5D%7D&server=false!","(app-pages-browser)/./node_modules/next/dist/compiled/react/cjs/react-jsx-dev-runtime.development.js","(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-dev-runtime.js","(app-pages-browser)/./src/app/components/Greet.tsx"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":["(app-pages-browser)/./node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js?server=false!"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":["(app-pages-browser)/./node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js?server=false!"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/layout","webpack"],"r":[],"m":["(app-pages-browser)/./node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js?modules=%7B%22request%22%3A%22C%3A%5C%5CUsers%5C%5CPinesucceed%5C%5CDesktop%5C%5CWorkSpace%5C%5Ctestwidget%5C%5Cnode_modules%5C%5Cnext%5C%5Cfont%5C%5Clocal%5C%5Ctarget.css%3F%7B%5C%22path%5C%22%3A%5C%22src%5C%5C%5C%5Capp%5C%5C%5C%5Clayout.tsx%5C%22%2C%5C%22import%5C%22%3A%5C%22%5C%22%2C%5C%22arguments%5C%22%3A%5B%7B%5C%22src%5C%22%3A%5C%22.%2Ffonts%2FGeistVF.woff%5C%22%2C%5C%22variable%5C%22%3A%5C%22--font-geist-sans%5C%22%2C%5C%22weight%5C%22%3A%5C%22100%20900%5C%22%7D%5D%2C%5C%22variableName%5C%22%3A%5C%22geistSans%5C%22%7D%22%2C%22ids%22%3A%5B%5D%7D&modules=%7B%22request%22%3A%22C%3A%5C%5CUsers%5C%5CPinesucceed%5C%5CDesktop%5C%5CWorkSpace%5C%5Ctestwidget%5C%5Cnode_modules%5C%5Cnext%5C%5Cfont%5C%5Clocal%5C%5Ctarget.css%3F%7B%5C%22path%5C%22%3A%5C%22src%5C%5C%5C%5Capp%5C%5C%5C%5Clayout.tsx%5C%22%2C%5C%22import%5C%22%3A%5C%22%5C%22%2C%5C%22arguments%5C%22%3A%5B%7B%5C%22src%5C%22%3A%5C%22.%2Ffonts%2FGeistMonoVF.woff%5C%22%2C%5C%22variable%5C%22%3A%5C%22--font-geist-mono%5C%22%2C%5C%22weight%5C%22%3A%5C%22100%20900%5C%22%7D%5D%2C%5C%22variableName%5C%22%3A%5C%22geistMono%5C%22%7D%22%2C%22ids%22%3A%5B%5D%7D&modules=%7B%22request%22%3A%22C%3A%5C%5CUsers%5C%5CPinesucceed%5C%5CDesktop%5C%5CWorkSpace%5C%5Ctestwidget%5C%5Csrc%5C%5Capp%5C%5Cglobals.css%22%2C%22ids%22%3A%5B%5D%7D&server=false!"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["app/page","webpack"],"r":[],"m":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
4
|
-
* This devtool is neither made for production nor for readable output files.
|
|
5
|
-
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
6
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
7
|
-
* or disable the default devtool with "devtool: false".
|
|
8
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
9
|
-
*/
|
|
10
|
-
self["webpackHotUpdate_N_E"]("app/layout",{
|
|
11
|
-
|
|
12
|
-
/***/ "(app-pages-browser)/./src/app/globals.css":
|
|
13
|
-
/*!*****************************!*\
|
|
14
|
-
!*** ./src/app/globals.css ***!
|
|
15
|
-
\*****************************/
|
|
16
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
-
|
|
18
|
-
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (\"6250a0ff1a9c\");\nif (true) { module.hot.accept() }\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKGFwcC1wYWdlcy1icm93c2VyKS8uL3NyYy9hcHAvZ2xvYmFscy5jc3MiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGlFQUFlLGNBQWM7QUFDN0IsSUFBSSxJQUFVLElBQUksaUJBQWlCIiwic291cmNlcyI6WyJDOlxcVXNlcnNcXFBpbmVzdWNjZWVkXFxEZXNrdG9wXFxXb3JrU3BhY2VcXHRlc3R3aWRnZXRcXHNyY1xcYXBwXFxnbG9iYWxzLmNzcyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBcIjYyNTBhMGZmMWE5Y1wiXG5pZiAobW9kdWxlLmhvdCkgeyBtb2R1bGUuaG90LmFjY2VwdCgpIH1cbiJdLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/app/globals.css\n"));
|
|
19
|
-
|
|
20
|
-
/***/ })
|
|
21
|
-
|
|
22
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
4
|
-
* This devtool is neither made for production nor for readable output files.
|
|
5
|
-
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
6
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
7
|
-
* or disable the default devtool with "devtool: false".
|
|
8
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
9
|
-
*/
|
|
10
|
-
self["webpackHotUpdate_N_E"]("app/layout",{
|
|
11
|
-
|
|
12
|
-
/***/ "(app-pages-browser)/./src/app/components/Datascript.tsx":
|
|
13
|
-
/*!*******************************************!*\
|
|
14
|
-
!*** ./src/app/components/Datascript.tsx ***!
|
|
15
|
-
\*******************************************/
|
|
16
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
-
|
|
18
|
-
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DataScript)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-dev-runtime.js\");\n/* harmony import */ var next_script__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/script */ \"(app-pages-browser)/./node_modules/next/dist/api/script.js\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \n\nfunction DataScript() {\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(next_script__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n src: \"https://token-cert.dcap.com/v1/client\",\n strategy: \"beforeInteractive\",\n onLoad: ()=>{\n if ( true && window.DatacapWebToken) {\n console.log(\"DatacapWebToken\", window.DatacapWebToken);\n } else {\n console.log(\"DatacapWebToken is not loaded yet.\");\n }\n }\n }, void 0, false, {\n fileName: \"C:\\\\Users\\\\Pinesucceed\\\\Desktop\\\\WorkSpace\\\\testwidget\\\\src\\\\app\\\\components\\\\Datascript.tsx\",\n lineNumber: 14,\n columnNumber: 7\n }, this);\n}\n_c = DataScript;\nvar _c;\n$RefreshReg$(_c, \"DataScript\");\n\n\n;\n // Wrapped in an IIFE to avoid polluting the global scope\n ;\n (function () {\n var _a, _b;\n // Legacy CSS implementations will `eval` browser code in a Node.js context\n // to extract CSS. For backwards compatibility, we need to check we're in a\n // browser context before continuing.\n if (typeof self !== 'undefined' &&\n // AMP / No-JS mode does not inject these helpers:\n '$RefreshHelpers$' in self) {\n // @ts-ignore __webpack_module__ is global\n var currentExports = module.exports;\n // @ts-ignore __webpack_module__ is global\n var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;\n // This cannot happen in MainTemplate because the exports mismatch between\n // templating and execution.\n self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports signature on update so we can compare the boundary\n // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797)\n module.hot.dispose(function (data) {\n data.prevSignature =\n self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports);\n });\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n // @ts-ignore importMeta is replaced in the loader\n module.hot.accept();\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevSignature !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) {\n module.hot.invalidate();\n }\n else {\n self.$RefreshHelpers$.scheduleUpdate();\n }\n }\n }\n else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n var isNoLongerABoundary = prevSignature !== null;\n if (isNoLongerABoundary) {\n module.hot.invalidate();\n }\n }\n }\n })();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKGFwcC1wYWdlcy1icm93c2VyKS8uL3NyYy9hcHAvY29tcG9uZW50cy9EYXRhc2NyaXB0LnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBRWlDO0FBU2xCLFNBQVNDO0lBQ3RCLHFCQUNJLDhEQUFDRCxtREFBTUE7UUFDTEUsS0FBSTtRQUNKQyxVQUFTO1FBQ1RDLFFBQVE7WUFDTixJQUFJLEtBQTZCLElBQUlDLE9BQU9DLGVBQWUsRUFBRTtnQkFDM0RDLFFBQVFDLEdBQUcsQ0FBQyxtQkFBbUJILE9BQU9DLGVBQWU7WUFDdkQsT0FBTztnQkFDTEMsUUFBUUMsR0FBRyxDQUFDO1lBQ2Q7UUFDRjs7Ozs7O0FBR1I7S0Fkd0JQIiwic291cmNlcyI6WyJDOlxcVXNlcnNcXFBpbmVzdWNjZWVkXFxEZXNrdG9wXFxXb3JrU3BhY2VcXHRlc3R3aWRnZXRcXHNyY1xcYXBwXFxjb21wb25lbnRzXFxEYXRhc2NyaXB0LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJcclxuJ3VzZSBjbGllbnQnXHJcbmltcG9ydCBTY3JpcHQgZnJvbSAnbmV4dC9zY3JpcHQnO1xyXG5cclxuLy8gQWRkIGEgZGVjbGFyYXRpb24gZm9yIHRoZSBEYXRhY2FwV2ViVG9rZW4gdG8gYXZvaWQgVHlwZVNjcmlwdCBlcnJvcnNcclxuZGVjbGFyZSBnbG9iYWwge1xyXG4gIGludGVyZmFjZSBXaW5kb3cge1xyXG4gICAgRGF0YWNhcFdlYlRva2VuOiBzdHJpbmc7IC8vIFlvdSBjYW4gcmVwbGFjZSAnYW55JyB3aXRoIGEgbW9yZSBzcGVjaWZpYyB0eXBlIGlmIHlvdSBrbm93IHRoZSBzaGFwZSBvZiBEYXRhY2FwV2ViVG9rZW5cclxuICB9XHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIERhdGFTY3JpcHQoKSB7XHJcbiAgcmV0dXJuIChcclxuICAgICAgPFNjcmlwdFxyXG4gICAgICAgIHNyYz1cImh0dHBzOi8vdG9rZW4tY2VydC5kY2FwLmNvbS92MS9jbGllbnRcIlxyXG4gICAgICAgIHN0cmF0ZWd5PVwiYmVmb3JlSW50ZXJhY3RpdmVcIlxyXG4gICAgICAgIG9uTG9hZD17KCkgPT4ge1xyXG4gICAgICAgICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHdpbmRvdy5EYXRhY2FwV2ViVG9rZW4pIHtcclxuICAgICAgICAgICAgY29uc29sZS5sb2coXCJEYXRhY2FwV2ViVG9rZW5cIiwgd2luZG93LkRhdGFjYXBXZWJUb2tlbik7XHJcbiAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICBjb25zb2xlLmxvZyhcIkRhdGFjYXBXZWJUb2tlbiBpcyBub3QgbG9hZGVkIHlldC5cIik7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfX1cclxuICAgICAgLz5cclxuICApO1xyXG59XHJcbiJdLCJuYW1lcyI6WyJTY3JpcHQiLCJEYXRhU2NyaXB0Iiwic3JjIiwic3RyYXRlZ3kiLCJvbkxvYWQiLCJ3aW5kb3ciLCJEYXRhY2FwV2ViVG9rZW4iLCJjb25zb2xlIiwibG9nIl0sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/app/components/Datascript.tsx\n"));
|
|
19
|
-
|
|
20
|
-
/***/ })
|
|
21
|
-
|
|
22
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
4
|
-
* This devtool is neither made for production nor for readable output files.
|
|
5
|
-
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
6
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
7
|
-
* or disable the default devtool with "devtool: false".
|
|
8
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
9
|
-
*/
|
|
10
|
-
self["webpackHotUpdate_N_E"]("app/layout",{
|
|
11
|
-
|
|
12
|
-
/***/ "(app-pages-browser)/./src/app/components/Datascript.tsx":
|
|
13
|
-
/*!*******************************************!*\
|
|
14
|
-
!*** ./src/app/components/Datascript.tsx ***!
|
|
15
|
-
\*******************************************/
|
|
16
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
-
|
|
18
|
-
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DataScript)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-dev-runtime.js\");\n/* harmony import */ var next_script__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/script */ \"(app-pages-browser)/./node_modules/next/dist/api/script.js\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \n\nfunction DataScript() {\n return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(next_script__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n src: \"https://token-cert.dcap.com/v1/client\",\n strategy: \"beforeInteractive\",\n onLoad: ()=>{\n if ( true && window.DatacapWebToken) {\n console.log(\"DatacapWebToken\", window.DatacapWebToken);\n } else {\n console.log(\"DatacapWebToken is not loaded yet.\");\n }\n }\n }, void 0, false, {\n fileName: \"C:\\\\Users\\\\Pinesucceed\\\\Desktop\\\\WorkSpace\\\\testwidget\\\\src\\\\app\\\\components\\\\Datascript.tsx\",\n lineNumber: 14,\n columnNumber: 7\n }, this);\n}\n_c = DataScript;\nvar _c;\n$RefreshReg$(_c, \"DataScript\");\n\n\n;\n // Wrapped in an IIFE to avoid polluting the global scope\n ;\n (function () {\n var _a, _b;\n // Legacy CSS implementations will `eval` browser code in a Node.js context\n // to extract CSS. For backwards compatibility, we need to check we're in a\n // browser context before continuing.\n if (typeof self !== 'undefined' &&\n // AMP / No-JS mode does not inject these helpers:\n '$RefreshHelpers$' in self) {\n // @ts-ignore __webpack_module__ is global\n var currentExports = module.exports;\n // @ts-ignore __webpack_module__ is global\n var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;\n // This cannot happen in MainTemplate because the exports mismatch between\n // templating and execution.\n self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports signature on update so we can compare the boundary\n // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797)\n module.hot.dispose(function (data) {\n data.prevSignature =\n self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports);\n });\n // Unconditionally accept an update to this module, we'll check if it's\n // still a Refresh Boundary later.\n // @ts-ignore importMeta is replaced in the loader\n module.hot.accept();\n // This field is set when the previous version of this module was a\n // Refresh Boundary, letting us know we need to check for invalidation or\n // enqueue an update.\n if (prevSignature !== null) {\n // A boundary can become ineligible if its exports are incompatible\n // with the previous exports.\n //\n // For example, if you add/remove/change exports, we'll want to\n // re-execute the importing modules, and force those components to\n // re-render. Similarly, if you convert a class component to a\n // function, we want to invalidate the boundary.\n if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) {\n module.hot.invalidate();\n }\n else {\n self.$RefreshHelpers$.scheduleUpdate();\n }\n }\n }\n else {\n // Since we just executed the code for the module, it's possible that the\n // new exports made it ineligible for being a boundary.\n // We only care about the case when we were _previously_ a boundary,\n // because we already accepted this update (accidental side effect).\n var isNoLongerABoundary = prevSignature !== null;\n if (isNoLongerABoundary) {\n module.hot.invalidate();\n }\n }\n }\n })();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKGFwcC1wYWdlcy1icm93c2VyKS8uL3NyYy9hcHAvY29tcG9uZW50cy9EYXRhc2NyaXB0LnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBRWlDO0FBU2xCLFNBQVNDO0lBQ3RCLHFCQUNJLDhEQUFDRCxtREFBTUE7UUFDTEUsS0FBSTtRQUNKQyxVQUFTO1FBQ1RDLFFBQVE7WUFDTixJQUFJLEtBQTZCLElBQUlDLE9BQU9DLGVBQWUsRUFBRTtnQkFDM0RDLFFBQVFDLEdBQUcsQ0FBQyxtQkFBbUJILE9BQU9DLGVBQWU7WUFDdkQsT0FBTztnQkFDTEMsUUFBUUMsR0FBRyxDQUFDO1lBQ2Q7UUFDRjs7Ozs7O0FBR1I7S0Fkd0JQIiwic291cmNlcyI6WyJDOlxcVXNlcnNcXFBpbmVzdWNjZWVkXFxEZXNrdG9wXFxXb3JrU3BhY2VcXHRlc3R3aWRnZXRcXHNyY1xcYXBwXFxjb21wb25lbnRzXFxEYXRhc2NyaXB0LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJcclxuJ3VzZSBjbGllbnQnXHJcbmltcG9ydCBTY3JpcHQgZnJvbSAnbmV4dC9zY3JpcHQnO1xyXG5cclxuLy8gQWRkIGEgZGVjbGFyYXRpb24gZm9yIHRoZSBEYXRhY2FwV2ViVG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xpc3QiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/app/components/Datascript.tsx\n"));
|
|
19
|
-
|
|
20
|
-
/***/ })
|
|
21
|
-
|
|
22
|
-
});
|