akpm-procedures 1.1.70 → 1.1.71
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/CDN/akpm-procedures.js +15 -5
- package/package.json +1 -1
package/CDN/akpm-procedures.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 1.1.
|
|
1
|
+
/* Version: 1.1.71 */
|
|
2
2
|
var Ru = Object.defineProperty;
|
|
3
3
|
var ja = (e) => {
|
|
4
4
|
throw TypeError(e);
|
|
@@ -8088,14 +8088,24 @@ class Er extends Ze {
|
|
|
8088
8088
|
}
|
|
8089
8089
|
static async createEmptyProcedure(t) {
|
|
8090
8090
|
try {
|
|
8091
|
-
|
|
8091
|
+
const r = await this.f("POST", "templates", t);
|
|
8092
|
+
if (!r.ok) {
|
|
8093
|
+
const n = await r.text();
|
|
8094
|
+
return console.error(`Error creating empty procedure: ${r.status} - ${n}`), null;
|
|
8095
|
+
}
|
|
8096
|
+
return r.json();
|
|
8092
8097
|
} catch (r) {
|
|
8093
8098
|
return console.error(r), null;
|
|
8094
8099
|
}
|
|
8095
8100
|
}
|
|
8096
8101
|
static async createProcedureWithAI(t) {
|
|
8097
8102
|
try {
|
|
8098
|
-
|
|
8103
|
+
const r = await this.f("POST", "templates/generate/standard", t);
|
|
8104
|
+
if (!r.ok) {
|
|
8105
|
+
const n = await r.text();
|
|
8106
|
+
return console.error(`Error creating procedure with AI: ${r.status} - ${n}`), null;
|
|
8107
|
+
}
|
|
8108
|
+
return r.json();
|
|
8099
8109
|
} catch (r) {
|
|
8100
8110
|
return console.error(r), null;
|
|
8101
8111
|
}
|
|
@@ -12374,7 +12384,7 @@ function Tu(e, t) {
|
|
|
12374
12384
|
},
|
|
12375
12385
|
{
|
|
12376
12386
|
onSuccess: (q) => {
|
|
12377
|
-
a().push(q), l()(), o(!1);
|
|
12387
|
+
alert(r()("alerts.success.template-created")), a().push(q), l()(), o(!1);
|
|
12378
12388
|
},
|
|
12379
12389
|
onError: () => alert(r()("alerts.error.procedure-creation-error")),
|
|
12380
12390
|
onFinally: () => {
|
|
@@ -12403,7 +12413,7 @@ function Tu(e, t) {
|
|
|
12403
12413
|
},
|
|
12404
12414
|
{
|
|
12405
12415
|
onSuccess: (q) => {
|
|
12406
|
-
alert(r()(
|
|
12416
|
+
alert(r()("alerts.success.template-created")), a().push(q), l()(), o(!1);
|
|
12407
12417
|
},
|
|
12408
12418
|
onError: () => alert(r()("alerts.error.procedure-creation-error")),
|
|
12409
12419
|
onFinally: () => {
|