vc-page-workflows 1.5.21 → 1.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CryingFace-B8FkdzVS-0ZAu-mc1.js → CryingFace-B8FkdzVS-BYlUinMD.js} +1 -1
- package/dist/{HappyFace-CAg48Lio-1m9Fofys.js → HappyFace-CAg48Lio-CrH0ivZ_.js} +1 -1
- package/dist/{NoParticularEmotion-CXiqTd28-BdJAZfXD.js → NoParticularEmotion-CXiqTd28-k_BKemE3.js} +1 -1
- package/dist/{SadFace-CPkBktqq-uA-8qK0B.js → SadFace-CPkBktqq-DEImy5Gr.js} +1 -1
- package/dist/{SlightlySadFace-DqFsvQgy-C_v4l4RL.js → SlightlySadFace-DqFsvQgy-B-aGwgoS.js} +1 -1
- package/dist/{VeryHappyFace-MALA1Kuq-DqfvdTJX.js → VeryHappyFace-MALA1Kuq-BAqMKvuv.js} +1 -1
- package/dist/{main-Dic7mI0O.js → main-CgxNfoi-.js} +6 -61
- package/dist/main.js +1 -1
- package/package.json +2 -2
|
@@ -59720,67 +59720,12 @@ const {
|
|
|
59720
59720
|
formToJSON,
|
|
59721
59721
|
getAdapter,
|
|
59722
59722
|
mergeConfig
|
|
59723
|
-
} = axios
|
|
59724
|
-
(function(a) {
|
|
59725
|
-
function u(p) {
|
|
59726
|
-
const m = document.createElement("a");
|
|
59727
|
-
return m.setAttribute("href", p), new URL(m.href);
|
|
59728
|
-
}
|
|
59729
|
-
function c(p) {
|
|
59730
|
-
p.enabled = !!(p.enabled !== !1 && p.rules && p.rules.length), p.enabled && (p.rules = p.rules.filter(function(m) {
|
|
59731
|
-
return m.enabled !== !1 && m.rewrite && m.rewrite.length === 2;
|
|
59732
|
-
}), p.rules.length || (p.enabled = !1));
|
|
59733
|
-
}
|
|
59734
|
-
function d(p, m) {
|
|
59735
|
-
return typeof p == "string" && typeof m == "string" ? p.toUpperCase() === m.toUpperCase() : !0;
|
|
59736
|
-
}
|
|
59737
|
-
function f(p, m, g, v) {
|
|
59738
|
-
let y, b;
|
|
59739
|
-
y = new RegExp("^" + (v || "") + "/");
|
|
59740
|
-
const S = m.pathname.replace(y, "");
|
|
59741
|
-
for (let x of p.rules)
|
|
59742
|
-
if (!(!d(g, x.method) || !d(v, x.webroot)) && (y = new RegExp(x.rewrite[0], "i"), y.test(S))) {
|
|
59743
|
-
if (b = S.replace(y, x.rewrite[1]) + m.search, b.indexOf("http") !== 0 && p.base_url && (b = m.protocol + "//" + p.base_url + "/" + b), b.indexOf("https") > -1) {
|
|
59744
|
-
let R = "";
|
|
59745
|
-
if (b.indexOf("api/") > -1 && p.api_ms_url ? R = p.api_ms_url : b.indexOf("api_") > -1 && p.api_legacy_url && (R = p.api_legacy_url), R)
|
|
59746
|
-
return b.replace(/^https:\/\/[^/]+(?:\/[^/]+)*(?=\/api)/, R);
|
|
59747
|
-
}
|
|
59748
|
-
return b;
|
|
59749
|
-
}
|
|
59750
|
-
return !1;
|
|
59751
|
-
}
|
|
59752
|
-
class h {
|
|
59753
|
-
/**
|
|
59754
|
-
*
|
|
59755
|
-
* @param {string} path e.g "/vc/bac/api_v3/rooms/abc.json"
|
|
59756
|
-
* @param {string} [method] e.g: "get"
|
|
59757
|
-
* @param {string} [webroot] window.webroot, e.g: "/vc/bac"
|
|
59758
|
-
* @return {string} e.g "https://api-ms.vsee.io/rooms/abc.json?a=b"
|
|
59759
|
-
*/
|
|
59760
|
-
resolve(m, g, v) {
|
|
59761
|
-
if (a.get(window.CONFIG, "Account.api.microservice.url_append_token_and_account_code", !1) && (m.indexOf("?") === -1 && (m += "?"), window.user && window.user.token && (m += "&X-ApiToken=" + window.user.token)), !this._config || !this._config.enabled || typeof m != "string")
|
|
59762
|
-
return m;
|
|
59763
|
-
const y = u(m);
|
|
59764
|
-
v === void 0 && (v = a.get(window, "webroot"));
|
|
59765
|
-
const b = f(this._config, y, g, v);
|
|
59766
|
-
return b || m;
|
|
59767
|
-
}
|
|
59768
|
-
/**
|
|
59769
|
-
*
|
|
59770
|
-
* @param {Object} config window.CONFIG
|
|
59771
|
-
*/
|
|
59772
|
-
init(m) {
|
|
59773
|
-
this._config = a.merge({}, a.get(m, "api_ms"), a.get(m, "Account.api_ms")), window != null && window.api_legacy_url && (this._config.api_legacy_url = window.api_legacy_url), window != null && window.api_ms_url && (this._config.api_ms_url = window.api_ms_url), c(this._config);
|
|
59774
|
-
}
|
|
59775
|
-
}
|
|
59776
|
-
window.ApiUrl = new h();
|
|
59777
|
-
})(lodash$2);
|
|
59778
|
-
const request = axios.create({
|
|
59723
|
+
} = axios, request = axios.create({
|
|
59779
59724
|
timeout: 0
|
|
59780
59725
|
});
|
|
59781
59726
|
request.interceptors.request.use((a) => {
|
|
59782
59727
|
var u;
|
|
59783
|
-
return window.user && window.user.token && (a.headers["X-ApiToken"] = window.user.token), window.CONFIG && window.CONFIG.Account && window.CONFIG.Account.code && (a.headers["X-AccountCode"] = window.CONFIG.Account.code), window.CONFIG && window.CONFIG.App && ((u = window.CONFIG.App) != null && u.DataTag) && (a.headers["X-Data-Tag"] = window.CONFIG.App.DataTag),
|
|
59728
|
+
return window.user && window.user.token && (a.headers["X-ApiToken"] = window.user.token), window.CONFIG && window.CONFIG.Account && window.CONFIG.Account.code && (a.headers["X-AccountCode"] = window.CONFIG.Account.code), window.CONFIG && window.CONFIG.App && ((u = window.CONFIG.App) != null && u.DataTag) && (a.headers["X-Data-Tag"] = window.CONFIG.App.DataTag), a.url = window.ApiUrl.resolve(a.url, a.method, window.webroot), a;
|
|
59784
59729
|
});
|
|
59785
59730
|
request.interceptors.response.use(
|
|
59786
59731
|
(a) => a.data,
|
|
@@ -166463,7 +166408,7 @@ const wd = (a, u, c) => {
|
|
|
166463
166408
|
}
|
|
166464
166409
|
const u = (async () => {
|
|
166465
166410
|
try {
|
|
166466
|
-
const c = (await wd(/* @__PURE__ */ Object.assign({ "../../icons/BarCode.jsx": () => Promise.resolve().then(() => vp), "../../icons/Caculator.jsx": () => Promise.resolve().then(() => mu), "../../icons/CryingFace.jsx": () => import("./CryingFace-B8FkdzVS-
|
|
166411
|
+
const c = (await wd(/* @__PURE__ */ Object.assign({ "../../icons/BarCode.jsx": () => Promise.resolve().then(() => vp), "../../icons/Caculator.jsx": () => Promise.resolve().then(() => mu), "../../icons/CryingFace.jsx": () => import("./CryingFace-B8FkdzVS-BYlUinMD.js"), "../../icons/HappyFace.jsx": () => import("./HappyFace-CAg48Lio-CrH0ivZ_.js"), "../../icons/NoParticularEmotion.jsx": () => import("./NoParticularEmotion-CXiqTd28-k_BKemE3.js"), "../../icons/SadFace.jsx": () => import("./SadFace-CPkBktqq-DEImy5Gr.js"), "../../icons/SlightlySadFace.jsx": () => import("./SlightlySadFace-DqFsvQgy-B-aGwgoS.js"), "../../icons/VeryHappyFace.jsx": () => import("./VeryHappyFace-MALA1Kuq-BAqMKvuv.js") }), `../../icons/${a}.jsx`, 4)).default;
|
|
166467
166412
|
return Ar.set(a, c), c;
|
|
166468
166413
|
} catch {
|
|
166469
166414
|
return Ar.set(a, null), null;
|
|
@@ -172724,7 +172669,7 @@ const FormComponent = ({
|
|
|
172724
172669
|
});
|
|
172725
172670
|
}
|
|
172726
172671
|
})().finally(() => S(!1));
|
|
172727
|
-
}, [a
|
|
172672
|
+
}, [a]);
|
|
172728
172673
|
const K = useCallback(() => {
|
|
172729
172674
|
var Ne;
|
|
172730
172675
|
if (a != null && a.value)
|
|
@@ -176151,9 +176096,9 @@ const COMPONENT_END_ID = "end", isLoggedIn = () => {
|
|
|
176151
176096
|
const F = () => {
|
|
176152
176097
|
b(!1), m(null);
|
|
176153
176098
|
const he = {};
|
|
176154
|
-
isLoggedIn() && (he.user = window.user), lodash$2.get(c, "login", !0) || (he.login = !1), lodash$2.
|
|
176099
|
+
isLoggedIn() && (he.user = window.user), lodash$2.get(c, "login", !0) || (he.login = !1), lodash$2.has(componentStates, "on_workflow_completed.redirect_url") ? he.next = lodash$2.get(componentStates, "on_workflow_completed.redirect_url") : lodash$2.get(c, "options.on_completed.next.stay_in_page") && (he.stay_in_page = !0, componentStates = {
|
|
176155
176100
|
on_workflow_completed: componentStates.on_workflow_completed
|
|
176156
|
-
}), lodash$2.get(c, "options.on_completed.next.open_next_record") && (he.open_next_record = !0, he.current_record_id = lodash$2.get(
|
|
176101
|
+
}), lodash$2.get(componentStates, "visit.value.id") && (he.visit = lodash$2.get(componentStates, "visit.value")), lodash$2.get(componentStates, "intake.value.id") && (he.intake = lodash$2.get(componentStates, "intake.value")), lodash$2.get(componentStates, "session.value") && (he.session = lodash$2.get(componentStates, "session.value")), lodash$2.get(c, "options.on_completed.next.open_next_record") && (he.open_next_record = !0, he.current_record_id = lodash$2.get(
|
|
176157
176102
|
componentStates,
|
|
176158
176103
|
"on_workflow_completed.current_record_id"
|
|
176159
176104
|
)), a.onEnd && a.onEnd(he), Evisit.postMessageBackToParent({
|
package/dist/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vc-page-workflows",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@formio/react": "^6",
|
|
26
26
|
"@stripe/react-stripe-js": "^3.1.1",
|
|
27
27
|
"@stripe/stripe-js": "^5.3.0",
|
|
28
|
-
"@vc/formio-components": "bitbucket:vsee/vc-page-formio#
|
|
28
|
+
"@vc/formio-components": "bitbucket:vsee/vc-page-formio#v1.0.3",
|
|
29
29
|
"@vc/library": "bitbucket:vsee/vc-page-lib#develop",
|
|
30
30
|
"@vitejs/plugin-basic-ssl": "^1.2.0",
|
|
31
31
|
"@vsee/vc-assets": "bitbucket:vsee/vc-assets#develop",
|