aiex-cli 0.0.1-beta.13 → 0.0.1-beta.15
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/cli.mjs +6 -128
- package/dist/{doctor-DUe9Ym10.mjs → doctor-C98H0Qz4.mjs} +2 -6
- package/dist/index.mjs +1 -1
- package/dist/web/assets/{AISettings-BIQNM3Wj.js → AISettings-D0C_fzLl.js} +9 -9
- package/dist/web/assets/DataBrowser-CClW5ckL.js +3 -0
- package/dist/web/assets/JsonSchemaEditor-CzFu83gU.js +929 -0
- package/dist/web/assets/api-client-D4tjF5I9.js +1 -0
- package/dist/web/assets/{cssMode-DAbG0CMn.js → cssMode-BHaAN4pp.js} +1 -1
- package/dist/web/assets/dialog-D2ms6RSf.js +1034 -0
- package/dist/web/assets/{editor.main-BqhfoHxy.js → editor.main-BzaWETn1.js} +2 -2
- package/dist/web/assets/{freemarker2-B9_5ct2b.js → freemarker2-Dvg4gFZa.js} +1 -1
- package/dist/web/assets/{handlebars-TY59WcoQ.js → handlebars-4itI_hGB.js} +1 -1
- package/dist/web/assets/{html-CLULsh27.js → html-CWSOAdTS.js} +1 -1
- package/dist/web/assets/{htmlMode-BvG7RNbU.js → htmlMode-0upoBPJE.js} +1 -1
- package/dist/web/assets/{index-DM1RwhQV.js → index-BJDkFlSw.js} +8 -8
- package/dist/web/assets/index-CQB1Up-E.css +2 -0
- package/dist/web/assets/{javascript-DHrLp6gu.js → javascript-Ce8CZ78h.js} +1 -1
- package/dist/web/assets/{jsonMode-DBDhdzl1.js → jsonMode-BLSJZHAW.js} +1 -1
- package/dist/web/assets/{liquid-tGeb-nqF.js → liquid-D5rz2UL9.js} +1 -1
- package/dist/web/assets/{mdx-Cmdz78VU.js → mdx-z1JVBQDz.js} +1 -1
- package/dist/web/assets/{monaco.contribution-CroYPUF5.js → monaco.contribution-CFfFGfn5.js} +2 -2
- package/dist/web/assets/{overlayeventbus-AtOpmI6n.js → overlayeventbus-CSu8Uk3d.js} +3 -3
- package/dist/web/assets/{python-Dmfz4iDE.js → python-BPJc-4Rv.js} +1 -1
- package/dist/web/assets/{razor-BJicZHJs.js → razor-BHU9dOiw.js} +1 -1
- package/dist/web/assets/runtime-dom.esm-bundler-KKBGC_Sx.js +1 -0
- package/dist/web/assets/{table-schema-mJrrf9qw.js → table-schema-48IiD6l-.js} +2 -2
- package/dist/web/assets/{tsMode-DYqTyE66.js → tsMode-Uy_NSojR.js} +1 -1
- package/dist/web/assets/{typescript-DLnTe9Hf.js → typescript-BaLsBfTJ.js} +1 -1
- package/dist/web/assets/{xml-BIYqLORk.js → xml-Dn0SxzSa.js} +1 -1
- package/dist/web/assets/{yaml-BjmulkMX.js → yaml-Bzmyj5Wb.js} +1 -1
- package/dist/web/index.html +7 -8
- package/package.json +1 -1
- package/dist/web/assets/DataBrowser-rznfVRaV.js +0 -3
- package/dist/web/assets/JsonSchemaEditor-C9iyQs7N.js +0 -929
- package/dist/web/assets/api-client-Dsg4WOM9.js +0 -1
- package/dist/web/assets/button-kTMweGMc.js +0 -927
- package/dist/web/assets/dialog-CWuu7WjI.js +0 -108
- package/dist/web/assets/index-DjT-OGwD.css +0 -2
- package/dist/web/assets/lib-C30cIFrm.js +0 -1
- /package/dist/web/assets/{abap-DrZwwXZX.js → abap-B48h0VdJ.js} +0 -0
- /package/dist/web/assets/{apex-CrCz0btt.js → apex-1DPyVnhQ.js} +0 -0
- /package/dist/web/assets/{azcli-BapzKHay.js → azcli-BpwkVh9R.js} +0 -0
- /package/dist/web/assets/{bat-C_NRAiA1.js → bat-BwJAl50I.js} +0 -0
- /package/dist/web/assets/{bicep-C7pp2CNk.js → bicep-B6QlbnRF.js} +0 -0
- /package/dist/web/assets/{cameligo-BhhK9vxZ.js → cameligo-CUPQxz1J.js} +0 -0
- /package/dist/web/assets/{clojure-D0ujmUyE.js → clojure-BlwtfO9v.js} +0 -0
- /package/dist/web/assets/{coffee-DHEl7Jbb.js → coffee-BzDjX1gN.js} +0 -0
- /package/dist/web/assets/{cpp-Iil-3nzZ.js → cpp-CM5j04eT.js} +0 -0
- /package/dist/web/assets/{csharp-Dh0Ee7SY.js → csharp-BqWJjCNe.js} +0 -0
- /package/dist/web/assets/{csp-mwzjw0JL.js → csp-C-n5jZKF.js} +0 -0
- /package/dist/web/assets/{css-COIa8ZTR.js → css-BRXHjK80.js} +0 -0
- /package/dist/web/assets/{cypher-GVc17FC4.js → cypher-Ib4R9oAB.js} +0 -0
- /package/dist/web/assets/{dart-phiCaE7_.js → dart-Bmn0CjCu.js} +0 -0
- /package/dist/web/assets/{dockerfile-BMaDhdim.js → dockerfile-BJvHmfcK.js} +0 -0
- /package/dist/web/assets/{ecl-Cj47kvqp.js → ecl-C8Lr2n0s.js} +0 -0
- /package/dist/web/assets/{editor.api-DLXGyrN1.js → editor.api-DgeBt89R.js} +0 -0
- /package/dist/web/assets/{elixir-DBbstcE1.js → elixir-GMkKEJvJ.js} +0 -0
- /package/dist/web/assets/{flow9-ChHb1adO.js → flow9-BQbuvXMU.js} +0 -0
- /package/dist/web/assets/{fsharp-CMk2OIJN.js → fsharp-CDI_AxQw.js} +0 -0
- /package/dist/web/assets/{go-BrMkuJg0.js → go-DmsC2k-Y.js} +0 -0
- /package/dist/web/assets/{graphql-PSR1UKGv.js → graphql-C8hjT6Ki.js} +0 -0
- /package/dist/web/assets/{hcl-DAQrbDOW.js → hcl-C15cAQOZ.js} +0 -0
- /package/dist/web/assets/{ini-0TG5BxW0.js → ini-CKrAe0ag.js} +0 -0
- /package/dist/web/assets/{java-rgorz17v.js → java-BVhjILyl.js} +0 -0
- /package/dist/web/assets/{julia-C8VMdHm8.js → julia-BzPDHDOG.js} +0 -0
- /package/dist/web/assets/{kotlin-CllWo3gX.js → kotlin-DQMAn-b6.js} +0 -0
- /package/dist/web/assets/{less-Cgca25AP.js → less-428mfr1h.js} +0 -0
- /package/dist/web/assets/{lexon-D0GHdBaw.js → lexon-B09dCO6A.js} +0 -0
- /package/dist/web/assets/{lua-DmRsNG-P.js → lua-CVQ0BJif.js} +0 -0
- /package/dist/web/assets/{m3-BgL5dNKT.js → m3-CiPQ1ljw.js} +0 -0
- /package/dist/web/assets/{markdown-BuJfycGS.js → markdown--G0dqL-7.js} +0 -0
- /package/dist/web/assets/{mips-C9m_93PR.js → mips-BaboCM3T.js} +0 -0
- /package/dist/web/assets/{msdax-CpFHC9OI.js → msdax-DUaqkqre.js} +0 -0
- /package/dist/web/assets/{mysql-qFvltsqN.js → mysql-CUE6XF4r.js} +0 -0
- /package/dist/web/assets/{objective-c-Bnmr858J.js → objective-c-C4MUnzeT.js} +0 -0
- /package/dist/web/assets/{pascal-WP0_D5AO.js → pascal-CWMUMx__.js} +0 -0
- /package/dist/web/assets/{pascaligo-Blom4Rij.js → pascaligo-DLCVutek.js} +0 -0
- /package/dist/web/assets/{perl-B-vk8g64.js → perl-JYoirQpx.js} +0 -0
- /package/dist/web/assets/{pgsql-Cgvz6v67.js → pgsql-BqOy7sqx.js} +0 -0
- /package/dist/web/assets/{php-8a3Lrw9m.js → php-PZqsysO1.js} +0 -0
- /package/dist/web/assets/{pla-DuFqEZ8V.js → pla-BiwqVlg6.js} +0 -0
- /package/dist/web/assets/{postiats-DkLtSgkp.js → postiats-COxQtXCD.js} +0 -0
- /package/dist/web/assets/{powerquery-BJ1aNepW.js → powerquery-DdXUmaWa.js} +0 -0
- /package/dist/web/assets/{powershell-rE98k687.js → powershell-D05yu9sz.js} +0 -0
- /package/dist/web/assets/{preload-helper-DWTEM3RW.js → preload-helper-DzyYoeor.js} +0 -0
- /package/dist/web/assets/{protobuf-CUheFacr.js → protobuf-BDsm0ZB_.js} +0 -0
- /package/dist/web/assets/{pug-LDcAMD8w.js → pug-3CmTiGoi.js} +0 -0
- /package/dist/web/assets/{qsharp-IHfqKOfK.js → qsharp-CDUCQwQO.js} +0 -0
- /package/dist/web/assets/{r-D-QApv87.js → r-Decg_RIU.js} +0 -0
- /package/dist/web/assets/{redis-SXdDyWR9.js → redis-Cl3EBA4R.js} +0 -0
- /package/dist/web/assets/{redshift-Y6lsCryn.js → redshift-5ZsNLhOp.js} +0 -0
- /package/dist/web/assets/{restructuredtext-edObr9a8.js → restructuredtext-BulNNF_e.js} +0 -0
- /package/dist/web/assets/{ruby-CNnUfF-8.js → ruby-D3Axi_9w.js} +0 -0
- /package/dist/web/assets/{rust-IHUZWzBr.js → rust-Csys1Tos.js} +0 -0
- /package/dist/web/assets/{sb-DrUvY44N.js → sb-C_iBPphi.js} +0 -0
- /package/dist/web/assets/{scala-B4hbXGLM.js → scala-Cg4p-EZ2.js} +0 -0
- /package/dist/web/assets/{scheme-BGrd12j3.js → scheme-BlVnEL_j.js} +0 -0
- /package/dist/web/assets/{scss-x5G1ES4U.js → scss-CmLW8ojr.js} +0 -0
- /package/dist/web/assets/{shell-DOehe2Y8.js → shell-B1DV_gpl.js} +0 -0
- /package/dist/web/assets/{solidity-BeRvcwWV.js → solidity-glFpNhe3.js} +0 -0
- /package/dist/web/assets/{sophia-DZbkUNjy.js → sophia-D9j4cFkA.js} +0 -0
- /package/dist/web/assets/{sparql-B7_oi5-h.js → sparql-DV5Ux9cO.js} +0 -0
- /package/dist/web/assets/{sql-CTlsFWVE.js → sql-K8tNKFcf.js} +0 -0
- /package/dist/web/assets/{st-DJVEJdPE.js → st-BhIdE2hj.js} +0 -0
- /package/dist/web/assets/{swift-CwhT3fYa.js → swift-B0pzSmmx.js} +0 -0
- /package/dist/web/assets/{systemverilog-BQN63pkN.js → systemverilog-CeBgixbN.js} +0 -0
- /package/dist/web/assets/{tcl-DqwfpskA.js → tcl-B0Ji3IbZ.js} +0 -0
- /package/dist/web/assets/{twig-BiyenUgc.js → twig-KUgPCP41.js} +0 -0
- /package/dist/web/assets/{typespec-CWOJribt.js → typespec-ryrhjid6.js} +0 -0
- /package/dist/web/assets/{vb-Cq5F87m3.js → vb-Z68-YtMY.js} +0 -0
- /package/dist/web/assets/{wgsl-BAvW2lVr.js → wgsl-bH-W-d_T.js} +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as doctorDiagnosticsTableRows,
|
|
1
|
+
import { C as formatDoctorDiagnosticsJson, S as doctorDiagnosticsTableRows, _ as JsonSchemaDefinitionSchema, a as DEFAULT_PROMPT_CONFIG, b as generateDrizzleSchema, c as AIConfigSchema, d as description, f as name, h as createMigrationConfig, i as writeAIConfig, l as createConfig, m as version, n as getDefaultAIConfig, o as PLACEHOLDER_SCHEMA, p as package_default, r as readAIConfig, s as PLACEHOLDER_TEXT, t as collectDoctorDiagnostics, u as seedConfig, v as parseJsonSchema, y as toSnakeCase } from "./doctor-C98H0Qz4.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
@@ -13674,7 +13674,7 @@ const schemaCommand = defineCommand({
|
|
|
13674
13674
|
title: "ExamScoreReport",
|
|
13675
13675
|
type: "object",
|
|
13676
13676
|
table: {
|
|
13677
|
-
name: "
|
|
13677
|
+
name: "score_report",
|
|
13678
13678
|
timestamps: true
|
|
13679
13679
|
},
|
|
13680
13680
|
properties: {
|
|
@@ -13772,105 +13772,10 @@ const schemaCommand = defineCommand({
|
|
|
13772
13772
|
"totalScore"
|
|
13773
13773
|
]
|
|
13774
13774
|
};
|
|
13775
|
-
const
|
|
13776
|
-
$schema: $id,
|
|
13777
|
-
title: "Post",
|
|
13778
|
-
type: "object",
|
|
13779
|
-
table: {
|
|
13780
|
-
name: "posts",
|
|
13781
|
-
timestamps: true,
|
|
13782
|
-
softDelete: true
|
|
13783
|
-
},
|
|
13784
|
-
properties: {
|
|
13785
|
-
id: {
|
|
13786
|
-
type: "integer",
|
|
13787
|
-
primary: true,
|
|
13788
|
-
autoIncrement: true
|
|
13789
|
-
},
|
|
13790
|
-
title: {
|
|
13791
|
-
type: "string",
|
|
13792
|
-
minLength: 5,
|
|
13793
|
-
maxLength: 200
|
|
13794
|
-
},
|
|
13795
|
-
slug: {
|
|
13796
|
-
type: "string",
|
|
13797
|
-
maxLength: 250,
|
|
13798
|
-
unique: true
|
|
13799
|
-
},
|
|
13800
|
-
content: { type: "string" },
|
|
13801
|
-
excerpt: {
|
|
13802
|
-
type: "string",
|
|
13803
|
-
maxLength: 300
|
|
13804
|
-
},
|
|
13805
|
-
authorId: { type: "integer" },
|
|
13806
|
-
status: {
|
|
13807
|
-
type: "string",
|
|
13808
|
-
default: "draft"
|
|
13809
|
-
},
|
|
13810
|
-
viewCount: {
|
|
13811
|
-
type: "integer",
|
|
13812
|
-
default: 0,
|
|
13813
|
-
minimum: 0
|
|
13814
|
-
},
|
|
13815
|
-
likeCount: {
|
|
13816
|
-
type: "integer",
|
|
13817
|
-
default: 0,
|
|
13818
|
-
minimum: 0
|
|
13819
|
-
},
|
|
13820
|
-
publishedAt: {
|
|
13821
|
-
type: "string",
|
|
13822
|
-
format: "date-time"
|
|
13823
|
-
},
|
|
13824
|
-
tags: {
|
|
13825
|
-
type: "array",
|
|
13826
|
-
items: { type: "string" }
|
|
13827
|
-
},
|
|
13828
|
-
metadata: {
|
|
13829
|
-
type: "object",
|
|
13830
|
-
drizzle: { mode: "json" },
|
|
13831
|
-
properties: {
|
|
13832
|
-
featuredImage: { type: "string" },
|
|
13833
|
-
readingTime: { type: "integer" },
|
|
13834
|
-
seoTitle: { type: "string" },
|
|
13835
|
-
seoDescription: { type: "string" }
|
|
13836
|
-
}
|
|
13837
|
-
},
|
|
13838
|
-
comments: {
|
|
13839
|
-
type: "array",
|
|
13840
|
-
items: {
|
|
13841
|
-
type: "object",
|
|
13842
|
-
nested: {
|
|
13843
|
-
enabled: true,
|
|
13844
|
-
relation: "has-many"
|
|
13845
|
-
},
|
|
13846
|
-
properties: {
|
|
13847
|
-
content: {
|
|
13848
|
-
type: "string",
|
|
13849
|
-
minLength: 1,
|
|
13850
|
-
maxLength: 1e3
|
|
13851
|
-
},
|
|
13852
|
-
authorId: { type: "integer" },
|
|
13853
|
-
status: {
|
|
13854
|
-
type: "string",
|
|
13855
|
-
default: "pending"
|
|
13856
|
-
},
|
|
13857
|
-
parentId: { type: "integer" }
|
|
13858
|
-
}
|
|
13859
|
-
}
|
|
13860
|
-
}
|
|
13861
|
-
},
|
|
13862
|
-
required: [
|
|
13863
|
-
"title",
|
|
13864
|
-
"slug",
|
|
13865
|
-
"authorId"
|
|
13866
|
-
]
|
|
13867
|
-
};
|
|
13868
|
-
const examStatus = await writeJsonIfAbsent(path.join(config.schemaPath, "exam_score_report.json"), examReportSchema);
|
|
13869
|
-
const postStatus = await writeJsonIfAbsent(path.join(config.schemaPath, "post.json"), postSchema);
|
|
13775
|
+
const examStatus = await writeJsonIfAbsent(path.join(config.schemaPath, "score_report.json"), examReportSchema);
|
|
13870
13776
|
consola.success(`Initialized ${pc.cyan(".aiex/")} with example schemas`);
|
|
13871
|
-
if (examStatus === "skipped") consola.warn(`${pc.cyan(".aiex/schema/
|
|
13872
|
-
|
|
13873
|
-
consola.info("Example includes: ExamScoreReport (exam results), Post (blog with comments)");
|
|
13777
|
+
if (examStatus === "skipped") consola.warn(`${pc.cyan(".aiex/schema/score_report.json")} already exists, skipped`);
|
|
13778
|
+
consola.info("Example includes: ExamScoreReport (college entrance exam score report)");
|
|
13874
13779
|
outro("Run: aiex schema");
|
|
13875
13780
|
return;
|
|
13876
13781
|
}
|
|
@@ -13912,13 +13817,6 @@ const schemaCommand = defineCommand({
|
|
|
13912
13817
|
|
|
13913
13818
|
//#endregion
|
|
13914
13819
|
//#region src/server/routes/ai.ts
|
|
13915
|
-
function maskSecretKey(key) {
|
|
13916
|
-
if (!key || key.length <= 4) return "****";
|
|
13917
|
-
return `sk-***${key.slice(-4)}`;
|
|
13918
|
-
}
|
|
13919
|
-
function isMasked(key) {
|
|
13920
|
-
return key.startsWith("sk-***");
|
|
13921
|
-
}
|
|
13922
13820
|
function aiRoutes(config) {
|
|
13923
13821
|
const app = new Hono();
|
|
13924
13822
|
const aiexDir = path.dirname(config.schemaPath);
|
|
@@ -13934,17 +13832,7 @@ function aiRoutes(config) {
|
|
|
13934
13832
|
}
|
|
13935
13833
|
});
|
|
13936
13834
|
}
|
|
13937
|
-
return c.json(
|
|
13938
|
-
...aiConfig,
|
|
13939
|
-
provider: {
|
|
13940
|
-
...aiConfig.provider,
|
|
13941
|
-
apiKey: maskApiKey(aiConfig.provider.apiKey)
|
|
13942
|
-
},
|
|
13943
|
-
langfuse: aiConfig.langfuse ? {
|
|
13944
|
-
...aiConfig.langfuse,
|
|
13945
|
-
secretKey: maskSecretKey(aiConfig.langfuse.secretKey)
|
|
13946
|
-
} : void 0
|
|
13947
|
-
});
|
|
13835
|
+
return c.json(aiConfig);
|
|
13948
13836
|
});
|
|
13949
13837
|
app.post("/ai/registry-lookup", async (c) => {
|
|
13950
13838
|
try {
|
|
@@ -13972,16 +13860,6 @@ function aiRoutes(config) {
|
|
|
13972
13860
|
success: false,
|
|
13973
13861
|
error: "At least one model must be configured"
|
|
13974
13862
|
}, 400);
|
|
13975
|
-
if (body.provider?.apiKey?.startsWith("sk-***")) {
|
|
13976
|
-
const existing = await readAIConfig(aiexDir);
|
|
13977
|
-
if (existing) body.provider.apiKey = existing.provider.apiKey;
|
|
13978
|
-
else body.provider.apiKey = "";
|
|
13979
|
-
}
|
|
13980
|
-
if (body.langfuse?.secretKey && isMasked(body.langfuse.secretKey)) {
|
|
13981
|
-
const existing = await readAIConfig(aiexDir);
|
|
13982
|
-
if (existing?.langfuse) body.langfuse.secretKey = existing.langfuse.secretKey;
|
|
13983
|
-
else body.langfuse.secretKey = "";
|
|
13984
|
-
}
|
|
13985
13863
|
await writeAIConfig(aiexDir, AIConfigSchema.parse(body));
|
|
13986
13864
|
return c.json({ success: true });
|
|
13987
13865
|
} catch (error) {
|
|
@@ -411,7 +411,7 @@ function generateDrizzleConfig() {
|
|
|
411
411
|
//#endregion
|
|
412
412
|
//#region package.json
|
|
413
413
|
var name = "aiex-cli";
|
|
414
|
-
var version = "0.0.1-beta.
|
|
414
|
+
var version = "0.0.1-beta.15";
|
|
415
415
|
var description = "JSON Schema → SQLite with AI-powered data extraction";
|
|
416
416
|
var package_default = {
|
|
417
417
|
name,
|
|
@@ -618,10 +618,6 @@ async function writeAIConfig(aiexDir, config) {
|
|
|
618
618
|
function getDefaultAIConfig() {
|
|
619
619
|
return { ...DEFAULT_AI_CONFIG };
|
|
620
620
|
}
|
|
621
|
-
function maskApiKey(apiKey) {
|
|
622
|
-
if (apiKey.length <= 4) return "****";
|
|
623
|
-
return `sk-***${apiKey.slice(-4)}`;
|
|
624
|
-
}
|
|
625
621
|
async function addToGitignore(aiexDir, fileName) {
|
|
626
622
|
const projectRoot = path.dirname(aiexDir);
|
|
627
623
|
const gitignorePath = path.join(projectRoot, GITIGNORE_FILE);
|
|
@@ -722,4 +718,4 @@ async function collectDoctorDiagnostics(options = {}) {
|
|
|
722
718
|
}
|
|
723
719
|
|
|
724
720
|
//#endregion
|
|
725
|
-
export {
|
|
721
|
+
export { formatDoctorDiagnosticsJson as C, doctorDiagnosticsTableRows as S, JsonSchemaDefinitionSchema as _, DEFAULT_PROMPT_CONFIG as a, generateDrizzleSchema as b, AIConfigSchema as c, description as d, name as f, generateDrizzleConfig as g, createMigrationConfig as h, writeAIConfig as i, createConfig as l, version as m, getDefaultAIConfig as n, PLACEHOLDER_SCHEMA as o, package_default as p, readAIConfig as r, PLACEHOLDER_TEXT as s, collectDoctorDiagnostics as t, seedConfig as u, parseJsonSchema as v, buildDoctorDiagnostics as x, toSnakeCase as y };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as formatDoctorDiagnosticsJson, S as doctorDiagnosticsTableRows, _ as JsonSchemaDefinitionSchema, b as generateDrizzleSchema, g as generateDrizzleConfig, h as createMigrationConfig, t as collectDoctorDiagnostics, v as parseJsonSchema, x as buildDoctorDiagnostics } from "./doctor-C98H0Qz4.mjs";
|
|
2
2
|
|
|
3
3
|
export { JsonSchemaDefinitionSchema, buildDoctorDiagnostics, collectDoctorDiagnostics, createMigrationConfig, doctorDiagnosticsTableRows, formatDoctorDiagnosticsJson, generateDrizzleConfig, generateDrizzleSchema, parseJsonSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1
|
+
import{$ as e,A as t,I as n,S as r,W as i,f as a,g as o,i as s,n as c,nt as l,q as u,r as d,s as f,t as ee,u as p,x as m}from"./dialog-D2ms6RSf.js";import{$ as h,E as g,F as te,I as _,K as v,L as y,M as ne,N as b,U as re,_ as x,at as S,c as ie,ct as C,d as w,f as T,g as E,it as D,j as ae,m as O,o as oe,p as k,t as A,u as j,y as M,z as N}from"./runtime-dom.esm-bundler-KKBGC_Sx.js";import{c as se,d as ce,n as le,s as ue}from"./api-client-D4tjF5I9.js";import{a as P,n as F,r as I,t as L}from"./overlayeventbus-CSu8Uk3d.js";var R={name:`MinusIcon`,extends:f};function z(e){return fe(e)||de(e)||V(e)||B()}function B(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(e,t){if(e){if(typeof e==`string`)return H(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}function de(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function fe(e){if(Array.isArray(e))return H(e)}function H(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pe(e,t,n,r,i,a){return b(),O(`svg`,g({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),z(t[0]||=[w(`path`,{d:`M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z`,fill:`currentColor`},null,-1)]),16)}R.render=pe;var me=a.extend({name:`checkbox`,style:`
|
|
3
3
|
.p-checkbox {
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-flex;
|
|
@@ -138,10 +138,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
138
138
|
width: dt('checkbox.icon.lg.size');
|
|
139
139
|
height: dt('checkbox.icon.lg.size');
|
|
140
140
|
}
|
|
141
|
-
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-checkbox p-component`,{"p-checkbox-checked":t.checked,"p-disabled":n.disabled,"p-invalid":t.$pcCheckboxGroup?t.$pcCheckboxGroup.$invalid:t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-checkbox-sm p-inputfield-sm":n.size===`small`,"p-checkbox-lg p-inputfield-lg":n.size===`large`}]},box:`p-checkbox-box`,input:`p-checkbox-input`,icon:`p-checkbox-icon`}}),he={name:`BaseCheckbox`,extends:
|
|
142
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e,t){if(e){if(typeof e==`string`)return W(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function Se(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ce(e){if(Array.isArray(e))return W(e)}function W(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var G={name:`Checkbox`,extends:he,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`update:indeterminate`],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(e){this.d_indeterminate=e,this.updateIndeterminate()}},mounted:function(){this.updateIndeterminate()},updated:function(){this.updateIndeterminate()},methods:{getPTOptions:function(e){return(e===`root`?this.ptmi:this.ptm)(e,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(
|
|
143
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(e,t){if(e){if(typeof e==`string`)return K(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function Me(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ne(e){if(Array.isArray(e))return K(e)}function K(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t,n,r,i,a){return
|
|
144
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e,t){if(e){if(typeof e==`string`)return q(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}function ze(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Be(e){if(Array.isArray(e))return q(e)}function q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ve(e,t,n,r,i,a){return
|
|
141
|
+
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-checkbox p-component`,{"p-checkbox-checked":t.checked,"p-disabled":n.disabled,"p-invalid":t.$pcCheckboxGroup?t.$pcCheckboxGroup.$invalid:t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-checkbox-sm p-inputfield-sm":n.size===`small`,"p-checkbox-lg p-inputfield-lg":n.size===`large`}]},box:`p-checkbox-box`,input:`p-checkbox-input`,icon:`p-checkbox-icon`}}),he={name:`BaseCheckbox`,extends:I,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:me,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function U(e){"@babel/helpers - typeof";return U=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},U(e)}function ge(e,t,n){return(t=_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){var t=ve(e,`string`);return U(t)==`symbol`?t:t+``}function ve(e,t){if(U(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(U(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ye(e){return Ce(e)||Se(e)||xe(e)||be()}function be(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
142
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e,t){if(e){if(typeof e==`string`)return W(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function Se(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ce(e){if(Array.isArray(e))return W(e)}function W(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var G={name:`Checkbox`,extends:he,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`update:indeterminate`],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(e){this.d_indeterminate=e,this.updateIndeterminate()}},mounted:function(){this.updateIndeterminate()},updated:function(){this.updateIndeterminate()},methods:{getPTOptions:function(e){return(e===`root`?this.ptmi:this.ptm)(e,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var n=this;if(!this.disabled&&!this.readonly){var r=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,i=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?r.filter(function(t){return!e(t,n.value)}):r?[].concat(ye(r),[this.value]):[this.value];this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit(`update:indeterminate`,this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(i,t):this.writeValue(i,t),this.$emit(`change`,t)}},onFocus:function(e){this.$emit(`focus`,e)},onBlur:function(e){var t,n;this.$emit(`blur`,e),(t=(n=this.formField).onBlur)==null||t.call(n,e)},updateIndeterminate:function(){this.$refs.input&&(this.$refs.input.indeterminate=this.d_indeterminate)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var e=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return this.d_indeterminate?!1:this.binary?e===this.trueValue:l(this.value,e)},dataP:function(){return u(ge({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant===`filled`},this.size,this.size))}},components:{CheckIcon:P,MinusIcon:R}},we=[`data-p-checked`,`data-p-indeterminate`,`data-p-disabled`,`data-p`],Te=[`id`,`value`,`name`,`checked`,`tabindex`,`disabled`,`readonly`,`required`,`aria-labelledby`,`aria-label`,`aria-invalid`],Ee=[`data-p`];function De(e,t,n,r,i,a){var o=y(`CheckIcon`),s=y(`MinusIcon`);return b(),O(`div`,g({class:e.cx(`root`)},a.getPTOptions(`root`),{"data-p-checked":a.checked,"data-p-indeterminate":i.d_indeterminate||void 0,"data-p-disabled":e.disabled,"data-p":a.dataP}),[w(`input`,g({ref:`input`,id:e.inputId,type:`checkbox`,class:[e.cx(`input`),e.inputClass],style:e.inputStyle,value:e.value,name:a.groupName,checked:a.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onFocus:t[0]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[1]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onChange:t[2]||=function(){return a.onChange&&a.onChange.apply(a,arguments)}},a.getPTOptions(`input`)),null,16,Te),w(`div`,g({class:e.cx(`box`)},a.getPTOptions(`box`),{"data-p":a.dataP}),[_(e.$slots,`icon`,{checked:a.checked,indeterminate:i.d_indeterminate,class:S(e.cx(`icon`)),dataP:a.dataP},function(){return[a.checked?(b(),T(o,g({key:0,class:e.cx(`icon`)},a.getPTOptions(`icon`),{"data-p":a.dataP}),null,16,[`class`,`data-p`])):i.d_indeterminate?(b(),T(s,g({key:1,class:e.cx(`icon`)},a.getPTOptions(`icon`),{"data-p":a.dataP}),null,16,[`class`,`data-p`])):k(``,!0)]})],16,Ee)],16,we)}G.render=De;var Oe={name:`EyeIcon`,extends:f};function ke(e){return Ne(e)||Me(e)||je(e)||Ae()}function Ae(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(e,t){if(e){if(typeof e==`string`)return K(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function Me(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ne(e){if(Array.isArray(e))return K(e)}function K(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t,n,r,i,a){return b(),O(`svg`,g({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),ke(t[0]||=[w(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z`,fill:`currentColor`},null,-1)]),16)}Oe.render=Pe;var Fe={name:`EyeSlashIcon`,extends:f};function Ie(e){return Be(e)||ze(e)||Re(e)||Le()}function Le(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
144
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e,t){if(e){if(typeof e==`string`)return q(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}function ze(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Be(e){if(Array.isArray(e))return q(e)}function q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ve(e,t,n,r,i,a){return b(),O(`svg`,g({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Ie(t[0]||=[w(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z`,fill:`currentColor`},null,-1)]),16)}Fe.render=Ve;var He=a.extend({name:`password`,style:`
|
|
145
145
|
.p-password {
|
|
146
146
|
display: inline-flex;
|
|
147
147
|
position: relative;
|
|
@@ -239,7 +239,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
239
239
|
padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2));
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
`,classes:{root:function(e){var t=e.instance;return[`p-password p-component p-inputwrapper`,{"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":t.focused,"p-password-fluid":t.$fluid}]},pcInputText:`p-password-input`,maskIcon:`p-password-toggle-mask-icon p-password-mask-icon`,unmaskIcon:`p-password-toggle-mask-icon p-password-unmask-icon`,clearIcon:`p-password-clear-icon`,overlay:`p-password-overlay p-component`,content:`p-password-content`,meter:`p-password-meter`,meterLabel:function(e){var t=e.instance;return`p-password-meter-label ${t.meter?`p-password-meter-`+t.meter.strength:``}`},meterText:`p-password-meter-text`},inlineStyles:{root:function(e){return{position:e.props.appendTo===`self`?`relative`:void 0}}}}),Ue={name:`BasePassword`,extends:L,props:{promptLabel:{type:String,default:null},mediumRegex:{type:[String,RegExp],default:`^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})`},strongRegex:{type:[String,RegExp],default:`^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})`},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:`body`},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},maskIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},unmaskIcon:{type:String,default:void 0},showClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},overlayId:{type:String,default:null},overlayClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},autofocus:{type:Boolean,default:null}},style:He,provide:function(){return{$pcPassword:this,$parentInstance:this}}};function J(e){"@babel/helpers - typeof";return J=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},J(e)}function We(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){var t=Ke(e,`string`);return J(t)==`symbol`?t:t+``}function Ke(e,t){if(J(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(J(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Y={name:`Password`,extends:Ue,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`invalid`],inject:{$pcFluid:{default:null}},data:function(){return{overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(N.clear(this.overlay),null)},methods:{onOverlayEnter:function(e){N.set(`overlay`,e,this.$primevue.config.zIndex.overlay),o(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``)},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(e){N.clear(e)},alignOverlay:function(){this.appendTo===`self`?n(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=g(this.$refs.input.$el)+`px`,r(this.overlay,this.$refs.input.$el))},testStrength:function(e){var t=0;return this.strongCheckRegExp.test(e)?t=3:this.mediumCheckRegExp.test(e)?t=2:e.length&&(t=1),t},onInput:function(e){this.writeValue(e.target.value,e),this.$emit(`change`,e)},onFocus:function(e){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.d_value),this.overlayVisible=!0),this.$emit(`focus`,e)},onBlur:function(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit(`blur`,e)},onKeyUp:function(e){if(this.feedback){var t=e.target.value,n=this.checkPasswordStrength(t),r=n.meter,i=n.label;if(this.meter=r,this.infoText=i,e.code===`Escape`){this.overlayVisible&&=!1;return}this.overlayVisible||=!0}},setPasswordMeter:function(){if(!this.d_value){this.meter=null,this.infoText=this.promptText;return}var e=this.checkPasswordStrength(this.d_value),t=e.meter,n=e.label;this.meter=t,this.infoText=n,this.overlayVisible||=!0},checkPasswordStrength:function(e){var t=null,n=null;switch(this.testStrength(e)){case 1:t=this.weakText,n={strength:`weak`,width:`33.33%`};break;case 2:t=this.mediumText,n={strength:`medium`,width:`66.66%`};break;case 3:t=this.strongText,n={strength:`strong`,width:`100%`};break;default:t=this.promptText,n=null;break}return{label:t,meter:n}},onInvalid:function(e){this.$emit(`invalid`,e)},bindScrollListener:function(){var e=this;this.scrollHandler||=new re(this.$refs.input.$el,function(){e.overlayVisible&&=!1}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!a()&&(e.overlayVisible=!1)},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},overlayRef:function(e){this.overlay=e},onMaskToggle:function(){this.unmasked=!this.unmasked},onClearClick:function(e){this.writeValue(null,{})},onOverlayClick:function(e){R.emit(`overlay-click`,{originalEvent:e,target:this.$el})}},computed:{inputType:function(){return this.unmasked?`text`:`password`},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},isClearIconVisible:function(){return this.showClear&&this.$filled&&!this.disabled},overlayUniqueId:function(){return this.$id+`_overlay`},containerDataP:function(){return E({fluid:this.$fluid})},meterDataP:function(){return E(We({},this.meter?.strength,this.meter?.strength))},overlayDataP:function(){return E(We({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},components:{InputText:I,Portal:P,EyeSlashIcon:Fe,EyeIcon:Oe,TimesIcon:ie}};function X(e){"@babel/helpers - typeof";return X=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},X(e)}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qe(Object(n),!0).forEach(function(t){Je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=Xe(e,`string`);return X(t)==`symbol`?t:t+``}function Xe(e,t){if(X(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(X(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ze=[`data-p`],Qe=[`id`,`data-p`],$e=[`data-p`];function et(e,t,n,r,a,o){var u=i(`InputText`),p=i(`TimesIcon`),h=i(`Portal`);return d(),c(`div`,s({class:e.cx(`root`),style:e.sx(`root`),"data-p":o.containerDataP},e.ptmi(`root`)),[l(u,s({ref:`input`,id:e.inputId,type:o.inputType,class:[e.cx(`pcInputText`),e.inputClass],style:e.inputStyle,defaultValue:e.d_value,name:e.$formName,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-expanded":a.overlayVisible,"aria-controls":a.overlayVisible?e.overlayProps&&e.overlayProps.id||e.overlayId||e.panelProps&&e.panelProps.id||e.panelId||o.overlayUniqueId:void 0,"aria-haspopup":e.feedback,placeholder:e.placeholder,required:e.required,fluid:e.fluid,disabled:e.disabled,variant:e.variant,invalid:e.invalid,size:e.size,autofocus:e.autofocus,onInput:o.onInput,onFocus:o.onFocus,onBlur:o.onBlur,onKeyup:o.onKeyUp,onInvalid:o.onInvalid},e.inputProps,{"data-p-has-e-icon":e.toggleMask,pt:e.ptm(`pcInputText`),unstyled:e.unstyled}),null,16,`id.type.class.style.defaultValue.name.aria-labelledby.aria-label.aria-expanded.aria-controls.aria-haspopup.placeholder.required.fluid.disabled.variant.invalid.size.autofocus.onInput.onFocus.onBlur.onKeyup.onInvalid.data-p-has-e-icon.pt.unstyled`.split(`.`)),e.toggleMask&&a.unmasked?f(e.$slots,e.$slots.maskicon?`maskicon`:`hideicon`,s({key:0,toggleCallback:o.onMaskToggle,class:[e.cx(`maskIcon`),e.maskIcon]},e.ptm(`maskIcon`)),function(){return[(d(),m(T(e.maskIcon?`i`:`EyeSlashIcon`),s({class:[e.cx(`maskIcon`),e.maskIcon],onClick:o.onMaskToggle},e.ptm(`maskIcon`)),null,16,[`class`,`onClick`]))]}):j(``,!0),e.toggleMask&&!a.unmasked?f(e.$slots,e.$slots.unmaskicon?`unmaskicon`:`showicon`,s({key:1,toggleCallback:o.onMaskToggle,class:[e.cx(`unmaskIcon`)]},e.ptm(`unmaskIcon`)),function(){return[(d(),m(T(e.unmaskIcon?`i`:`EyeIcon`),s({class:[e.cx(`unmaskIcon`),e.unmaskIcon],onClick:o.onMaskToggle},e.ptm(`unmaskIcon`)),null,16,[`class`,`onClick`]))]}):j(``,!0),o.isClearIconVisible?f(e.$slots,`clearicon`,s({key:2,class:e.cx(`clearIcon`),clearCallback:o.onClearClick},e.ptm(`clearIcon`)),function(){return[l(p,s({class:[e.cx(`clearIcon`)],onClick:o.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):j(``,!0),M(`span`,s({class:`p-hidden-accessible`,"aria-live":`polite`},e.ptm(`hiddenAccesible`),{"data-p-hidden-accessible":!0}),b(a.infoText),17),l(h,{appendTo:e.appendTo},{default:_(function(){return[l(S,s({name:`p-anchored-overlay`,onEnter:o.onOverlayEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},e.ptm(`transition`)),{default:_(function(){return[a.overlayVisible?(d(),c(`div`,s({key:0,ref:o.overlayRef,id:e.overlayId||e.panelId||o.overlayUniqueId,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:[e.overlayStyle,e.panelStyle],onClick:t[0]||=function(){return o.onOverlayClick&&o.onOverlayClick.apply(o,arguments)},"data-p":o.overlayDataP,role:`dialog`,"aria-live":`polite`},Z(Z(Z({},e.panelProps),e.overlayProps),e.ptm(`overlay`))),[f(e.$slots,`header`),f(e.$slots,`content`,{},function(){return[M(`div`,s({class:e.cx(`content`)},e.ptm(`content`)),[M(`div`,s({class:e.cx(`meter`)},e.ptm(`meter`)),[M(`div`,s({class:e.cx(`meterLabel`),style:{width:a.meter?a.meter.width:``},"data-p":o.meterDataP},e.ptm(`meterLabel`)),null,16,$e)],16),M(`div`,s({class:e.cx(`meterText`)},e.ptm(`meterText`)),b(a.infoText),17)],16)]}),f(e.$slots,`footer`)],16,Qe)):j(``,!0)]}),_:3},16,[`onEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,Ze)}Y.render=et;var tt=h.extend({name:`textarea`,style:`
|
|
242
|
+
`,classes:{root:function(e){var t=e.instance;return[`p-password p-component p-inputwrapper`,{"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":t.focused,"p-password-fluid":t.$fluid}]},pcInputText:`p-password-input`,maskIcon:`p-password-toggle-mask-icon p-password-mask-icon`,unmaskIcon:`p-password-toggle-mask-icon p-password-unmask-icon`,clearIcon:`p-password-clear-icon`,overlay:`p-password-overlay p-component`,content:`p-password-content`,meter:`p-password-meter`,meterLabel:function(e){var t=e.instance;return`p-password-meter-label ${t.meter?`p-password-meter-`+t.meter.strength:``}`},meterText:`p-password-meter-text`},inlineStyles:{root:function(e){return{position:e.props.appendTo===`self`?`relative`:void 0}}}}),Ue={name:`BasePassword`,extends:I,props:{promptLabel:{type:String,default:null},mediumRegex:{type:[String,RegExp],default:`^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})`},strongRegex:{type:[String,RegExp],default:`^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})`},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:`body`},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},maskIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},unmaskIcon:{type:String,default:void 0},showClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},overlayId:{type:String,default:null},overlayClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},autofocus:{type:Boolean,default:null}},style:He,provide:function(){return{$pcPassword:this,$parentInstance:this}}};function J(e){"@babel/helpers - typeof";return J=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},J(e)}function We(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){var t=Ke(e,`string`);return J(t)==`symbol`?t:t+``}function Ke(e,t){if(J(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(J(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Y={name:`Password`,extends:Ue,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`invalid`],inject:{$pcFluid:{default:null}},data:function(){return{overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(o.clear(this.overlay),null)},methods:{onOverlayEnter:function(e){o.set(`overlay`,e,this.$primevue.config.zIndex.overlay),t(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``)},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(e){o.clear(e)},alignOverlay:function(){this.appendTo===`self`?r(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=i(this.$refs.input.$el)+`px`,m(this.overlay,this.$refs.input.$el))},testStrength:function(e){var t=0;return this.strongCheckRegExp.test(e)?t=3:this.mediumCheckRegExp.test(e)?t=2:e.length&&(t=1),t},onInput:function(e){this.writeValue(e.target.value,e),this.$emit(`change`,e)},onFocus:function(e){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.d_value),this.overlayVisible=!0),this.$emit(`focus`,e)},onBlur:function(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit(`blur`,e)},onKeyUp:function(e){if(this.feedback){var t=e.target.value,n=this.checkPasswordStrength(t),r=n.meter,i=n.label;if(this.meter=r,this.infoText=i,e.code===`Escape`){this.overlayVisible&&=!1;return}this.overlayVisible||=!0}},setPasswordMeter:function(){if(!this.d_value){this.meter=null,this.infoText=this.promptText;return}var e=this.checkPasswordStrength(this.d_value),t=e.meter,n=e.label;this.meter=t,this.infoText=n,this.overlayVisible||=!0},checkPasswordStrength:function(e){var t=null,n=null;switch(this.testStrength(e)){case 1:t=this.weakText,n={strength:`weak`,width:`33.33%`};break;case 2:t=this.mediumText,n={strength:`medium`,width:`66.66%`};break;case 3:t=this.strongText,n={strength:`strong`,width:`100%`};break;default:t=this.promptText,n=null;break}return{label:t,meter:n}},onInvalid:function(e){this.$emit(`invalid`,e)},bindScrollListener:function(){var e=this;this.scrollHandler||=new p(this.$refs.input.$el,function(){e.overlayVisible&&=!1}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!n()&&(e.overlayVisible=!1)},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},overlayRef:function(e){this.overlay=e},onMaskToggle:function(){this.unmasked=!this.unmasked},onClearClick:function(e){this.writeValue(null,{})},onOverlayClick:function(e){L.emit(`overlay-click`,{originalEvent:e,target:this.$el})}},computed:{inputType:function(){return this.unmasked?`text`:`password`},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},isClearIconVisible:function(){return this.showClear&&this.$filled&&!this.disabled},overlayUniqueId:function(){return this.$id+`_overlay`},containerDataP:function(){return u({fluid:this.$fluid})},meterDataP:function(){return u(We({},this.meter?.strength,this.meter?.strength))},overlayDataP:function(){return u(We({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},components:{InputText:F,Portal:c,EyeSlashIcon:Fe,EyeIcon:Oe,TimesIcon:d}};function X(e){"@babel/helpers - typeof";return X=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},X(e)}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qe(Object(n),!0).forEach(function(t){Je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=Xe(e,`string`);return X(t)==`symbol`?t:t+``}function Xe(e,t){if(X(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(X(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ze=[`data-p`],Qe=[`id`,`data-p`],$e=[`data-p`];function et(e,t,n,r,i,a){var o=y(`InputText`),s=y(`TimesIcon`),c=y(`Portal`);return b(),O(`div`,g({class:e.cx(`root`),style:e.sx(`root`),"data-p":a.containerDataP},e.ptmi(`root`)),[x(o,g({ref:`input`,id:e.inputId,type:a.inputType,class:[e.cx(`pcInputText`),e.inputClass],style:e.inputStyle,defaultValue:e.d_value,name:e.$formName,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-expanded":i.overlayVisible,"aria-controls":i.overlayVisible?e.overlayProps&&e.overlayProps.id||e.overlayId||e.panelProps&&e.panelProps.id||e.panelId||a.overlayUniqueId:void 0,"aria-haspopup":e.feedback,placeholder:e.placeholder,required:e.required,fluid:e.fluid,disabled:e.disabled,variant:e.variant,invalid:e.invalid,size:e.size,autofocus:e.autofocus,onInput:a.onInput,onFocus:a.onFocus,onBlur:a.onBlur,onKeyup:a.onKeyUp,onInvalid:a.onInvalid},e.inputProps,{"data-p-has-e-icon":e.toggleMask,pt:e.ptm(`pcInputText`),unstyled:e.unstyled}),null,16,`id.type.class.style.defaultValue.name.aria-labelledby.aria-label.aria-expanded.aria-controls.aria-haspopup.placeholder.required.fluid.disabled.variant.invalid.size.autofocus.onInput.onFocus.onBlur.onKeyup.onInvalid.data-p-has-e-icon.pt.unstyled`.split(`.`)),e.toggleMask&&i.unmasked?_(e.$slots,e.$slots.maskicon?`maskicon`:`hideicon`,g({key:0,toggleCallback:a.onMaskToggle,class:[e.cx(`maskIcon`),e.maskIcon]},e.ptm(`maskIcon`)),function(){return[(b(),T(N(e.maskIcon?`i`:`EyeSlashIcon`),g({class:[e.cx(`maskIcon`),e.maskIcon],onClick:a.onMaskToggle},e.ptm(`maskIcon`)),null,16,[`class`,`onClick`]))]}):k(``,!0),e.toggleMask&&!i.unmasked?_(e.$slots,e.$slots.unmaskicon?`unmaskicon`:`showicon`,g({key:1,toggleCallback:a.onMaskToggle,class:[e.cx(`unmaskIcon`)]},e.ptm(`unmaskIcon`)),function(){return[(b(),T(N(e.unmaskIcon?`i`:`EyeIcon`),g({class:[e.cx(`unmaskIcon`),e.unmaskIcon],onClick:a.onMaskToggle},e.ptm(`unmaskIcon`)),null,16,[`class`,`onClick`]))]}):k(``,!0),a.isClearIconVisible?_(e.$slots,`clearicon`,g({key:2,class:e.cx(`clearIcon`),clearCallback:a.onClearClick},e.ptm(`clearIcon`)),function(){return[x(s,g({class:[e.cx(`clearIcon`)],onClick:a.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):k(``,!0),w(`span`,g({class:`p-hidden-accessible`,"aria-live":`polite`},e.ptm(`hiddenAccesible`),{"data-p-hidden-accessible":!0}),C(i.infoText),17),x(c,{appendTo:e.appendTo},{default:v(function(){return[x(A,g({name:`p-anchored-overlay`,onEnter:a.onOverlayEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},e.ptm(`transition`)),{default:v(function(){return[i.overlayVisible?(b(),O(`div`,g({key:0,ref:a.overlayRef,id:e.overlayId||e.panelId||a.overlayUniqueId,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:[e.overlayStyle,e.panelStyle],onClick:t[0]||=function(){return a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},"data-p":a.overlayDataP,role:`dialog`,"aria-live":`polite`},Z(Z(Z({},e.panelProps),e.overlayProps),e.ptm(`overlay`))),[_(e.$slots,`header`),_(e.$slots,`content`,{},function(){return[w(`div`,g({class:e.cx(`content`)},e.ptm(`content`)),[w(`div`,g({class:e.cx(`meter`)},e.ptm(`meter`)),[w(`div`,g({class:e.cx(`meterLabel`),style:{width:i.meter?i.meter.width:``},"data-p":a.meterDataP},e.ptm(`meterLabel`)),null,16,$e)],16),w(`div`,g({class:e.cx(`meterText`)},e.ptm(`meterText`)),C(i.infoText),17)],16)]}),_(e.$slots,`footer`)],16,Qe)):k(``,!0)]}),_:3},16,[`onEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,Ze)}Y.render=et;var tt=a.extend({name:`textarea`,style:`
|
|
243
243
|
.p-textarea {
|
|
244
244
|
font-family: inherit;
|
|
245
245
|
font-feature-settings: inherit;
|
|
@@ -322,7 +322,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
322
322
|
padding-block: dt('textarea.lg.padding.y');
|
|
323
323
|
padding-inline: dt('textarea.lg.padding.x');
|
|
324
324
|
}
|
|
325
|
-
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-textarea p-component`,{"p-filled":t.$filled,"p-textarea-resizable ":n.autoResize,"p-textarea-sm p-inputfield-sm":n.size===`small`,"p-textarea-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-textarea-fluid":t.$fluid}]}}}),nt={name:`BaseTextarea`,extends:
|
|
325
|
+
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-textarea p-component`,{"p-filled":t.$filled,"p-textarea-resizable ":n.autoResize,"p-textarea-sm p-inputfield-sm":n.size===`small`,"p-textarea-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-textarea-fluid":t.$fluid}]}}}),nt={name:`BaseTextarea`,extends:I,props:{autoResize:Boolean},style:tt,provide:function(){return{$pcTextarea:this,$parentInstance:this}}};function Q(e){"@babel/helpers - typeof";return Q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Q(e)}function rt(e,t,n){return(t=it(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e){var t=at(e,`string`);return Q(t)==`symbol`?t:t+``}function at(e,t){if(Q(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Q(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $={name:`Textarea`,extends:nt,inheritAttrs:!1,observer:null,mounted:function(){var e=this;this.autoResize&&(this.observer=new ResizeObserver(function(){requestAnimationFrame(function(){e.resize()})}),this.observer.observe(this.$el))},updated:function(){this.autoResize&&this.resize()},beforeUnmount:function(){this.observer&&this.observer.disconnect()},methods:{resize:function(){if(this.$el.offsetParent){var e=this.$el.style.height,t=parseInt(e)||0,n=this.$el.scrollHeight;t&&n<t?(this.$el.style.height=`auto`,this.$el.style.height=`${this.$el.scrollHeight}px`):(!t||n>t)&&(this.$el.style.height=`${n}px`)}},onInput:function(e){this.autoResize&&this.resize(),this.writeValue(e.target.value,e)}},computed:{attrs:function(){return g(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return u(rt({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},ot=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function st(e,t,n,r,i,a){return b(),O(`textarea`,g({class:e.cx(`root`),value:e.d_value,name:e.name,disabled:e.disabled,"aria-invalid":e.invalid||void 0,"data-p":a.dataP,onInput:t[0]||=function(){return a.onInput&&a.onInput.apply(a,arguments)}},a.attrs),null,16,ot)}$.render=st;var ct={key:0,class:`flex items-center justify-center py-8`},lt={key:1,class:`space-y-6`},ut={class:`space-y-3`},dt={class:`flex flex-col gap-1`},ft={class:`flex flex-col gap-1`},pt={class:`space-y-3`},mt={class:`flex items-center gap-2`},ht={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},gt={class:`flex flex-col gap-1`},_t={class:`flex flex-col gap-1`},vt={class:`flex flex-col gap-1`},yt={class:`space-y-2`},bt={class:`text-sm font-mono flex-1`},xt={key:0,class:`flex flex-col gap-2 px-3 py-2 rounded border border-border bg-card`},St={class:`flex items-center gap-2`},Ct={class:`flex items-center gap-4 text-xs`},wt={class:`flex items-center gap-1.5 cursor-pointer`},Tt={class:`flex items-center gap-1.5 cursor-pointer`},Et={key:0,class:`text-muted-foreground ml-auto`},Dt={class:`space-y-3`},Ot={class:`flex flex-col gap-1`},kt={key:0,class:`text-xs text-red-500 mt-1`},At={class:`flex flex-col gap-1`},jt={key:0,class:`text-xs text-red-500 mt-1`},Mt={class:`flex justify-between`},Nt={class:`flex gap-2`},Pt=`You are a professional data extraction assistant. Your task is to extract structured data from text and return a JSON object based on the data structure definition provided below.
|
|
326
326
|
|
|
327
327
|
{schema}
|
|
328
328
|
|
|
@@ -331,4 +331,4 @@ Extraction requirements:
|
|
|
331
331
|
2. If a field's information is missing from the text, set that field to null
|
|
332
332
|
3. Do not add fields that are not in the structure definition
|
|
333
333
|
4. Maintain data accuracy and completeness`,Ft=`Please extract data from the following text:
|
|
334
|
-
{text}`,It=
|
|
334
|
+
{text}`,It=M({__name:`AISettings`,props:{visible:{type:Boolean,default:!1},visibleModifiers:{}},emits:[`update:visible`],setup(e){let t=re(e,`visible`),n=h(!1),r=h(!1),i=h(`https://dashscope.aliyuncs.com/compatible-mode/v1`),a=h(``),o=h([]),c=h(``),l=h(``),u=h(!1),d=h(``),f=h(``),p=h(``),m=h(!1),g=h(``),_=h({vision:!1,structuredOutput:!1}),y=h(`manual`);function A(){y.value=`manual`,_.value={vision:!1,structuredOutput:!1},g.value&&ue(g.value).then(e=>{e&&(_.value={...e},y.value=`registry`)})}function M(){g.value&&(o.value.push({name:g.value,capabilities:{..._.value}}),P())}function N(){P()}function P(){g.value=``,_.value={vision:!1,structuredOutput:!1},y.value=`manual`,m.value=!1}function I(e){o.value.splice(e,1)}let L=j(()=>c.value.includes(`{schema}`)?``:`System prompt must contain the {schema} placeholder`),R=j(()=>l.value.includes(`{text}`)?``:`User prompt must contain the {text} placeholder`),z=j(()=>!L.value&&!R.value&&!n.value&&o.value.length>0);async function B(){n.value=!0;try{let e=await le();i.value=e.provider.baseURL,a.value=e.provider.apiKey,o.value=e.provider.models??[],c.value=e.prompt.systemTemplate,l.value=e.prompt.userTemplate,u.value=!!e.langfuse,d.value=e.langfuse?.publicKey??``,f.value=e.langfuse?.secretKey??``,p.value=e.langfuse?.host??``}catch{a.value=``,o.value=[],c.value=Pt,l.value=Ft}finally{n.value=!1}}async function V(){if(z.value){r.value=!0;try{await se({provider:{baseURL:i.value,apiKey:a.value,models:o.value},prompt:{systemTemplate:c.value,userTemplate:l.value},extraction:{outputDir:`.aiex/extracted`},langfuse:u.value?{publicKey:d.value,secretKey:f.value,host:p.value||void 0}:void 0}),t.value=!1}catch(e){ce.error(e.message||`Failed to save`)}finally{r.value=!1}}}function de(){i.value=`https://dashscope.aliyuncs.com/compatible-mode/v1`,o.value=[{name:`qwen-plus`,capabilities:{vision:!1,structuredOutput:!0}},{name:`qwen-vl-plus`,capabilities:{vision:!0,structuredOutput:!0}}],c.value=Pt,l.value=Ft,u.value=!1,d.value=``,f.value=``,p.value=``}return ae(()=>{B()}),ne(()=>{}),(e,h)=>(b(),T(D(ee),{visible:t.value,"onUpdate:visible":h[13]||=e=>t.value=e,modal:``,header:`AI Settings`,style:{width:`680px`},draggable:!1},{footer:v(()=>[w(`div`,Mt,[x(D(s),{label:`Reset Defaults`,icon:`pi pi-replay`,severity:`secondary`,text:``,onClick:de}),w(`div`,Nt,[x(D(s),{label:`Cancel`,severity:`secondary`,text:``,onClick:h[12]||=e=>t.value=!1}),x(D(s),{label:`Save`,icon:`pi pi-check`,loading:r.value,disabled:!z.value,onClick:V},null,8,[`loading`,`disabled`])])])]),default:v(()=>[n.value?(b(),O(`div`,ct,[...h[14]||=[w(`i`,{class:`pi pi-spin pi-spinner text-xl`},null,-1)]])):(b(),O(`div`,lt,[w(`section`,null,[h[17]||=w(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Provider `,-1),w(`div`,ut,[w(`div`,dt,[h[15]||=w(`label`,{class:`text-xs text-muted-foreground`},`Base URL`,-1),x(D(F),{modelValue:i.value,"onUpdate:modelValue":h[0]||=e=>i.value=e,size:`small`,placeholder:`https://dashscope.aliyuncs.com/compatible-mode/v1`},null,8,[`modelValue`])]),w(`div`,ft,[h[16]||=w(`label`,{class:`text-xs text-muted-foreground`},`API Key`,-1),x(D(Y),{modelValue:a.value,"onUpdate:modelValue":h[1]||=e=>a.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`sk-xxx`,"input-class":`w-full`},null,8,[`modelValue`])])])]),w(`section`,null,[h[22]||=w(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Langfuse Tracing `,-1),w(`div`,pt,[w(`div`,mt,[x(D(G),{modelValue:u.value,"onUpdate:modelValue":h[2]||=e=>u.value=e,binary:!0,"input-id":`lf-enabled`},null,8,[`modelValue`]),h[18]||=w(`label`,{for:`lf-enabled`,class:`text-sm cursor-pointer`},`Enabled`,-1)]),u.value?(b(),O(`div`,ht,[w(`div`,gt,[h[19]||=w(`label`,{class:`text-xs text-muted-foreground`},`Secret Key`,-1),x(D(Y),{modelValue:f.value,"onUpdate:modelValue":h[3]||=e=>f.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`sk-lf-...`,"input-class":`w-full`},null,8,[`modelValue`])]),w(`div`,_t,[h[20]||=w(`label`,{class:`text-xs text-muted-foreground`},`Public Key`,-1),x(D(F),{modelValue:d.value,"onUpdate:modelValue":h[4]||=e=>d.value=e,size:`small`,placeholder:`pk-lf-...`},null,8,[`modelValue`])]),w(`div`,vt,[h[21]||=w(`label`,{class:`text-xs text-muted-foreground`},`Host (optional)`,-1),x(D(F),{modelValue:p.value,"onUpdate:modelValue":h[5]||=e=>p.value=e,size:`small`,placeholder:`https://us.cloud.langfuse.com`},null,8,[`modelValue`])])])):k(``,!0)])]),w(`section`,null,[h[24]||=w(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Models `,-1),w(`div`,yt,[(b(!0),O(ie,null,te(o.value,(e,t)=>(b(),O(`div`,{key:t,class:`flex items-center gap-2 px-3 py-2 rounded border border-border bg-card`},[w(`code`,bt,C(e.name),1),w(`span`,{class:S([`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded`,e.capabilities.structuredOutput?`bg-green-500/10 text-green-600`:`bg-yellow-500/10 text-yellow-600`])},[w(`i`,{class:S([e.capabilities.structuredOutput?`pi pi-check-circle`:`pi pi-exclamation-triangle`,`text-[10px]`])},null,2),E(` `+C(e.capabilities.structuredOutput?`Structured Output`:`Text-only Output`),1)],2),w(`span`,{class:S([`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded`,e.capabilities.vision?`bg-green-500/10 text-green-600`:`bg-red-500/10 text-red-600`])},[w(`i`,{class:S([e.capabilities.vision?`pi pi-check-circle`:`pi pi-times-circle`,`text-[10px]`])},null,2),E(` `+C(e.capabilities.vision?`Vision Supported`:`Vision Unsupported`),1)],2),x(D(s),{icon:`pi pi-times`,severity:`danger`,text:``,size:`small`,onClick:e=>I(t)},null,8,[`onClick`])]))),128)),m.value?(b(),O(`div`,xt,[w(`div`,St,[x(D(F),{modelValue:g.value,"onUpdate:modelValue":h[6]||=e=>g.value=e,size:`small`,placeholder:`Model name (e.g. gpt-4o)`,class:`flex-1 font-mono`,onInput:A,onKeyup:oe(M,[`enter`])},null,8,[`modelValue`]),x(D(s),{icon:`pi pi-check`,severity:`success`,text:``,size:`small`,disabled:!g.value,onClick:M},null,8,[`disabled`]),x(D(s),{icon:`pi pi-times`,severity:`secondary`,text:``,size:`small`,onClick:N})]),w(`div`,Ct,[w(`label`,wt,[x(D(G),{modelValue:_.value.structuredOutput,"onUpdate:modelValue":h[7]||=e=>_.value.structuredOutput=e,binary:!0,"input-id":`add-so`},null,8,[`modelValue`]),w(`span`,{class:S(_.value.structuredOutput?`text-green-600`:`text-muted-foreground`)},` Structured Output `,2)]),w(`label`,Tt,[x(D(G),{modelValue:_.value.vision,"onUpdate:modelValue":h[8]||=e=>_.value.vision=e,binary:!0,"input-id":`add-vision`},null,8,[`modelValue`]),w(`span`,{class:S(_.value.vision?`text-green-600`:`text-muted-foreground`)},` Vision `,2)]),y.value===`registry`?(b(),O(`span`,Et,[...h[23]||=[w(`i`,{class:`pi pi-database mr-0.5`},null,-1),E(`Registry `,-1)]])):k(``,!0)])])):(b(),T(D(s),{key:1,label:`Add Model`,icon:`pi pi-plus`,severity:`secondary`,text:``,size:`small`,onClick:h[9]||=e=>m.value=!0}))])]),w(`section`,null,[h[28]||=w(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Prompt Templates `,-1),w(`div`,Dt,[w(`div`,Ot,[h[25]||=w(`label`,{class:`text-xs text-muted-foreground`},`System Prompt`,-1),x(D($),{modelValue:c.value,"onUpdate:modelValue":h[10]||=e=>c.value=e,rows:`6`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`]),L.value?(b(),O(`p`,kt,C(L.value),1)):k(``,!0)]),w(`div`,At,[h[26]||=w(`label`,{class:`text-xs text-muted-foreground`},`User Prompt`,-1),x(D($),{modelValue:l.value,"onUpdate:modelValue":h[11]||=e=>l.value=e,rows:`6`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`]),R.value?(b(),O(`p`,jt,C(R.value),1)):k(``,!0)]),h[27]||=w(`div`,{class:`text-xs text-muted-foreground p-2 rounded border border-border`},[E(` Placeholders: `),w(`code`,{class:`bg-secondary px-1 rounded`},`{schema}`),E(` JSON Schema structure description, `),w(`code`,{class:`bg-secondary px-1 rounded`},`{text}`),E(` text to extract from `)],-1)])])]))]),_:1},8,[`visible`]))}});export{It as default};
|